diff --git a/.editorconfig b/.editorconfig index 7b1cbadda..141e8c9c9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,7 +6,6 @@ charset = utf-8 end_of_line = lf insert_final_newline = true -trim_trailing_whitespace = true # 4 space indentation indent_style = space diff --git a/.gitattributes b/.gitattributes index 6d2ce70f2..1ff0c4230 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,7 +17,7 @@ # # Merging from the command prompt will add diff markers to the files if there # are conflicts (Merging from VS is not affected by the settings below, in VS -# the diff markers are never inserted). Diff markers may cause the following +# the diff markers are never inserted). Diff markers may cause the following # file extensions to fail to load in VS. An alternative would be to treat # these files as binary and thus will always conflict and require user # intervention with every merge. To do so, just uncomment the entries below @@ -46,9 +46,9 @@ ############################################################################### # diff behavior for common document formats -# +# # Convert binary document formats to text before diffing them. This feature -# is only available from the command line. Turn it on by uncommenting the +# is only available from the command line. Turn it on by uncommenting the # entries below. ############################################################################### #*.doc diff=astextplain @@ -61,5 +61,3 @@ #*.PDF diff=astextplain #*.rtf diff=astextplain #*.RTF diff=astextplain - -imgui/**/Generated/**/*.cs linguist-generated=true diff --git a/.github/generate_changelog.py b/.github/generate_changelog.py deleted file mode 100644 index b07100115..000000000 --- a/.github/generate_changelog.py +++ /dev/null @@ -1,308 +0,0 @@ -#!/usr/bin/env python3 -""" -Generate a changelog from git commits between the last two tags and post to Discord webhook. -""" - -import subprocess -import re -import sys -import json -import argparse -import os -from typing import List, Tuple, Optional, Dict, Any - - -def run_git_command(args: List[str]) -> str: - """Run a git command and return its output.""" - try: - result = subprocess.run( - ["git"] + args, - capture_output=True, - text=True, - check=True - ) - return result.stdout.strip() - except subprocess.CalledProcessError as e: - print(f"Git command failed: {e}", file=sys.stderr) - sys.exit(1) - - -def get_last_two_tags() -> Tuple[str, str]: - """Get the latest two git tags.""" - tags = run_git_command(["tag", "--sort=-version:refname"]) - tag_list = [t for t in tags.split("\n") if t] - - # Filter out old tags that start with 'v' (old versioning scheme) - tag_list = [t for t in tag_list if not t.startswith('v')] - - if len(tag_list) < 2: - print("Error: Need at least 2 tags in the repository", file=sys.stderr) - sys.exit(1) - - return tag_list[0], tag_list[1] - - -def get_submodule_commit(submodule_path: str, tag: str) -> Optional[str]: - """Get the commit hash of a submodule at a specific tag.""" - try: - # Get the submodule commit at the specified tag - result = run_git_command(["ls-tree", tag, submodule_path]) - # Format is: " commit \t" - parts = result.split() - if len(parts) >= 3 and parts[1] == "commit": - return parts[2] - return None - except: - return None - - -def get_repo_info() -> Tuple[str, str]: - """Get repository owner and name from git remote.""" - try: - remote_url = run_git_command(["config", "--get", "remote.origin.url"]) - - # Handle both HTTPS and SSH URLs - # SSH: git@github.com:owner/repo.git - # HTTPS: https://github.com/owner/repo.git - match = re.search(r'github\.com[:/](.+?)/(.+?)(?:\.git)?$', remote_url) - if match: - owner = match.group(1) - repo = match.group(2) - return owner, repo - else: - print("Error: Could not parse GitHub repository from remote URL", file=sys.stderr) - sys.exit(1) - except: - print("Error: Could not get git remote URL", file=sys.stderr) - sys.exit(1) - - -def get_commits_between_tags(tag1: str, tag2: str) -> List[str]: - """Get commit SHAs between two tags.""" - log_output = run_git_command([ - "log", - f"{tag2}..{tag1}", - "--format=%H" - ]) - - commits = [sha.strip() for sha in log_output.split("\n") if sha.strip()] - return commits - - -def get_pr_for_commit(commit_sha: str, owner: str, repo: str, token: str) -> Optional[Dict[str, Any]]: - """Get PR information for a commit using GitHub API.""" - try: - import requests - except ImportError: - print("Error: requests library is required. Install it with: pip install requests", file=sys.stderr) - sys.exit(1) - - headers = { - "Accept": "application/vnd.github+json", - "X-GitHub-Api-Version": "2022-11-28" - } - - if token: - headers["Authorization"] = f"Bearer {token}" - - url = f"https://api.github.com/repos/{owner}/{repo}/commits/{commit_sha}/pulls" - - try: - response = requests.get(url, headers=headers) - response.raise_for_status() - prs = response.json() - - if prs and len(prs) > 0: - # Return the first PR (most relevant one) - pr = prs[0] - return { - "number": pr["number"], - "title": pr["title"], - "author": pr["user"]["login"], - "url": pr["html_url"] - } - except requests.exceptions.HTTPError as e: - if e.response.status_code == 404: - # Commit might not be associated with a PR - return None - elif e.response.status_code == 403: - print("Warning: GitHub API rate limit exceeded. Consider providing a token.", file=sys.stderr) - return None - else: - print(f"Warning: Failed to fetch PR for commit {commit_sha[:7]}: {e}", file=sys.stderr) - return None - except Exception as e: - print(f"Warning: Error fetching PR for commit {commit_sha[:7]}: {e}", file=sys.stderr) - return None - - return None - - -def get_prs_between_tags(tag1: str, tag2: str, owner: str, repo: str, token: str) -> List[Dict[str, Any]]: - """Get PRs between two tags using GitHub API.""" - commits = get_commits_between_tags(tag1, tag2) - print(f"Found {len(commits)} commits, fetching PR information...") - - prs = [] - seen_pr_numbers = set() - - for i, commit_sha in enumerate(commits, 1): - if i % 10 == 0: - print(f"Progress: {i}/{len(commits)} commits processed...") - - pr_info = get_pr_for_commit(commit_sha, owner, repo, token) - if pr_info and pr_info["number"] not in seen_pr_numbers: - seen_pr_numbers.add(pr_info["number"]) - prs.append(pr_info) - - return prs - - -def filter_prs(prs: List[Dict[str, Any]], ignore_patterns: List[str]) -> List[Dict[str, Any]]: - """Filter out PRs matching any of the ignore patterns.""" - compiled_patterns = [re.compile(pattern) for pattern in ignore_patterns] - - filtered = [] - for pr in prs: - if not any(pattern.search(pr["title"]) for pattern in compiled_patterns): - filtered.append(pr) - - return filtered - - -def generate_changelog(version: str, prev_version: str, prs: List[Dict[str, Any]], - cs_commit_new: Optional[str], cs_commit_old: Optional[str], - owner: str, repo: str) -> str: - """Generate markdown changelog.""" - # Calculate statistics - pr_count = len(prs) - unique_authors = len(set(pr["author"] for pr in prs)) - - changelog = f"# Dalamud Release v{version}\n\n" - changelog += f"We just released Dalamud v{version}, which should be available to users within a few minutes. " - changelog += f"This release includes **{pr_count} PR{'s' if pr_count != 1 else ''} from {unique_authors} contributor{'s' if unique_authors != 1 else ''}**.\n" - changelog += f"[Click here]() to see all Dalamud changes.\n\n" - - if cs_commit_new and cs_commit_old and cs_commit_new != cs_commit_old: - changelog += f"It ships with an updated **FFXIVClientStructs [`{cs_commit_new[:7]}`]()**.\n" - changelog += f"[Click here]() to see all CS changes.\n" - elif cs_commit_new: - changelog += f"It ships with **FFXIVClientStructs [`{cs_commit_new[:7]}`]()**.\n" - - changelog += "## Dalamud Changes\n\n" - - for pr in prs: - changelog += f"* {pr['title']} ([#**{pr['number']}**](<{pr['url']}>) by **{pr['author']}**)\n" - - return changelog - - -def post_to_discord(webhook_url: str, content: str, version: str) -> None: - """Post changelog to Discord webhook as a file attachment.""" - try: - import requests - except ImportError: - print("Error: requests library is required. Install it with: pip install requests", file=sys.stderr) - sys.exit(1) - - filename = f"changelog-v{version}.md" - - # Prepare the payload - data = { - "content": f"Dalamud v{version} has been released!", - "attachments": [ - { - "id": "0", - "filename": filename - } - ] - } - - # Prepare the files - files = { - "payload_json": (None, json.dumps(data)), - "files[0]": (filename, content.encode('utf-8'), 'text/markdown') - } - - try: - result = requests.post(webhook_url, files=files) - result.raise_for_status() - print(f"Successfully posted to Discord webhook, code {result.status_code}") - except requests.exceptions.HTTPError as err: - print(f"Failed to post to Discord: {err}", file=sys.stderr) - sys.exit(1) - except Exception as e: - print(f"Failed to post to Discord: {e}", file=sys.stderr) - sys.exit(1) - - -def main(): - parser = argparse.ArgumentParser( - description="Generate changelog from git commits and post to Discord webhook" - ) - parser.add_argument( - "--webhook-url", - required=True, - help="Discord webhook URL" - ) - parser.add_argument( - "--github-token", - default=os.environ.get("GITHUB_TOKEN"), - help="GitHub API token (or set GITHUB_TOKEN env var). Increases rate limit." - ) - parser.add_argument( - "--ignore", - action="append", - default=[], - help="Regex patterns to ignore PRs (can be specified multiple times)" - ) - parser.add_argument( - "--submodule-path", - default="lib/FFXIVClientStructs", - help="Path to the FFXIVClientStructs submodule (default: lib/FFXIVClientStructs)" - ) - - args = parser.parse_args() - - # Get repository info - owner, repo = get_repo_info() - print(f"Repository: {owner}/{repo}") - - # Get the last two tags - latest_tag, previous_tag = get_last_two_tags() - print(f"Generating changelog between {previous_tag} and {latest_tag}") - - # Get submodule commits at both tags - cs_commit_new = get_submodule_commit(args.submodule_path, latest_tag) - cs_commit_old = get_submodule_commit(args.submodule_path, previous_tag) - - if cs_commit_new: - print(f"FFXIVClientStructs commit (new): {cs_commit_new[:7]}") - if cs_commit_old: - print(f"FFXIVClientStructs commit (old): {cs_commit_old[:7]}") - - # Get PRs between tags - prs = get_prs_between_tags(latest_tag, previous_tag, owner, repo, args.github_token) - prs.reverse() - print(f"Found {len(prs)} PRs") - - # Filter PRs - filtered_prs = filter_prs(prs, args.ignore) - print(f"After filtering: {len(filtered_prs)} PRs") - - # Generate changelog - changelog = generate_changelog(latest_tag, previous_tag, filtered_prs, - cs_commit_new, cs_commit_old, owner, repo) - - print("\n" + "="*50) - print("Generated Changelog:") - print("="*50) - print(changelog) - print("="*50 + "\n") - - # Post to Discord - post_to_discord(args.webhook_url, changelog, latest_tag) - - -if __name__ == "__main__": - main() diff --git a/.github/workflows/backup.yml b/.github/workflows/backup.yml deleted file mode 100644 index 366f4682b..000000000 --- a/.github/workflows/backup.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Back up code to other forges - -on: - schedule: - - cron: '0 2 * * *' # Run every day at 2 AM - workflow_dispatch: # Allow manual trigger - -jobs: - push-to-forges: - runs-on: ubuntu-latest - if: github.repository == 'goatcorp/Dalamud' - - steps: - - name: Checkout the repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd #v0.9.1 - with: - ssh-private-key: | - ${{ secrets.MIRROR_GITLAB_SYNC_KEY }} - ${{ secrets.MIRROR_CODEBERG_SYNC_KEY }} - - - name: Add remotes & push - env: - GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=accept-new" - run: | - git remote add gitlab git@gitlab.com:goatcorp/Dalamud.git - git push gitlab --all --force - git remote add codeberg git@codeberg.org:goatcorp/Dalamud.git - git push codeberg --all --force diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml deleted file mode 100644 index e62d5f37c..000000000 --- a/.github/workflows/generate-changelog.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Generate Changelog - -on: - workflow_dispatch: - push: - tags: - - '*' - -permissions: read-all - -jobs: - generate-changelog: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Fetch all history and tags - submodules: true # Fetch submodules - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.14' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install requests - - - name: Generate and post changelog - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GIT_TERMINAL_PROMPT: 0 - run: | - python .github/generate_changelog.py \ - --webhook-url "${{ secrets.DISCORD_CHANGELOG_WEBHOOK_URL }}" \ - --ignore "Update ClientStructs" \ - --ignore "^build:" - - - name: Upload changelog as artifact - if: always() - uses: actions/upload-artifact@v4 - with: - name: changelog - path: changelog-*.md - if-no-files-found: ignore diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 209ed90de..669d6255a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,8 @@ name: Build Dalamud on: [push, pull_request, workflow_dispatch] - concurrency: group: build_dalamud_${{ github.ref_name }} - cancel-in-progress: false + cancel-in-progress: true jobs: build: @@ -23,7 +22,7 @@ jobs: uses: microsoft/setup-msbuild@v1.0.2 - uses: actions/setup-dotnet@v3 with: - dotnet-version: '10.0.100' + dotnet-version: '8.0.100' - name: Define VERSION run: | $env:COMMIT = $env:GITHUB_SHA.Substring(0, 7) @@ -33,8 +32,10 @@ jobs: ($env:REPO_NAME) >> VERSION ($env:BRANCH) >> VERSION ($env:COMMIT) >> VERSION - - name: Build and Test Dalamud - run: .\build.ps1 ci + - name: Build Dalamud + run: .\build.ps1 compile + - name: Test Dalamud + run: .\build.ps1 test - name: Sign Dalamud if: ${{ github.repository_owner == 'goatcorp' && github.event_name == 'push' }} env: @@ -54,7 +55,6 @@ jobs: bin/Release/Dalamud.*.dll bin/Release/Dalamud.*.exe bin/Release/FFXIVClientStructs.dll - bin/Release/cim*.dll - name: Upload artifact uses: actions/upload-artifact@v4 with: @@ -86,9 +86,9 @@ jobs: - name: "Verify Compatibility" run: | $FILES_TO_VALIDATE = "Dalamud.dll","FFXIVClientStructs.dll","Lumina.dll","Lumina.Excel.dll" - + $retcode = 0 - + foreach ($file in $FILES_TO_VALIDATE) { $testout = "" Write-Output "::group::=== API COMPATIBILITY CHECK: ${file} ===" @@ -99,7 +99,7 @@ jobs: $retcode = 1 } } - + exit $retcode deploy_stg: @@ -128,18 +128,18 @@ jobs: GH_BRANCH: ${{ steps.extract_branch.outputs.branch }} run: | Compress-Archive .\scratch\* .\canary.zip # Recreate the release zip - + $branchName = $env:GH_BRANCH - + if ($branchName -eq "master") { $branchName = "stg" } - + $newVersion = [System.IO.File]::ReadAllText("$(Get-Location)\scratch\TEMP_gitver.txt") $revision = [System.IO.File]::ReadAllText("$(Get-Location)\scratch\revision.txt") $commitHash = [System.IO.File]::ReadAllText("$(Get-Location)\scratch\commit_hash.txt") Remove-Item -Force -Recurse .\scratch - + if (Test-Path -Path $branchName) { $versionData = Get-Content ".\${branchName}\version" | ConvertFrom-Json $oldVersion = $versionData.AssemblyVersion @@ -158,7 +158,7 @@ jobs: Write-Host "Deployment folder doesn't exist. Not doing anything." Remove-Item .\canary.zip } - + - name: Commit changes shell: bash env: @@ -166,8 +166,8 @@ jobs: run: | git config --global user.name "Actions User" git config --global user.email "actions@github.com" - + git add . git commit -m "[CI] Update staging for ${DVER} on ${GH_BRANCH}" || true - + git push origin main || true diff --git a/.github/workflows/rollup.yml b/.github/workflows/rollup.yml index f4e013258..49b3d8c1d 100644 --- a/.github/workflows/rollup.yml +++ b/.github/workflows/rollup.yml @@ -1,8 +1,8 @@ name: Rollup changes to next version on: -# push: -# branches: -# - master + push: + branches: + - master workflow_dispatch: jobs: @@ -11,7 +11,7 @@ jobs: strategy: matrix: branches: - - api14 + - net9 defaults: run: diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml index af597fc58..19bd86b30 100644 --- a/.github/workflows/update-submodules.yml +++ b/.github/workflows/update-submodules.yml @@ -1,26 +1,16 @@ -name: Check for Submodule Changes +name: Check for FFXIVCS changes on: schedule: - - cron: "0 0,6,12,18 * * *" + - cron: "0 0,12,18 */1 * *" workflow_dispatch: jobs: check: - name: Check ${{ matrix.submodule.name }} + name: FFXIVCS Check runs-on: ubuntu-latest strategy: - fail-fast: false matrix: branches: [master] - submodule: - - name: ClientStructs - path: lib/FFXIVClientStructs - branch: main - branch-prefix: csupdate - - name: Excel Schema - path: lib/Lumina.Excel - branch: master - branch-prefix: schemaupdate defaults: run: @@ -34,41 +24,30 @@ jobs: ref: ${{ matrix.branches }} token: ${{ secrets.UPDATE_PAT }} - name: Create update branch - run: git checkout -b ${{ matrix.submodule.branch-prefix }}/${{ matrix.branches }} + run: git checkout -b csupdate/${{ matrix.branches }} - name: Initialize mandatory git config run: | git config --global user.name "github-actions[bot]" git config --global user.email noreply@github.com git config --global pull.rebase false - name: Update submodule - id: update-submodule run: | - git checkout -b ${{ matrix.submodule.branch-prefix }}-${{ matrix.branches }} + git checkout -b csupdate-${{ matrix.branches }} git reset --hard origin/${{ matrix.branches }} - cd ${{ matrix.submodule.path }} + cd lib/FFXIVClientStructs git fetch - git reset --hard origin/${{ matrix.submodule.branch }} + git reset --hard origin/main cd ../.. - git add ${{ matrix.submodule.path }} - - if [[ -z "$(git status --porcelain --untracked-files=no)" ]]; then - echo "No changes detected!" - echo "SUBMIT_PR=false" >> "$GITHUB_OUTPUT" - exit 0 - fi - - git commit --message "Update ${{ matrix.submodule.name }}" - git push origin ${{ matrix.submodule.branch-prefix }}-${{ matrix.branches }} --force - echo "SUBMIT_PR=true" >> "$GITHUB_OUTPUT" - + git add lib/FFXIVClientStructs + git commit --message "Update ClientStructs" + git push origin csupdate-${{ matrix.branches }} --force - name: Create PR - if: ${{ steps.update-submodule.outputs.SUBMIT_PR == 'true' }} run: | echo ${{ secrets.UPDATE_PAT }} | gh auth login --with-token - prNumber=$(gh pr list --base ${{ matrix.branches }} --head ${{ matrix.submodule.branch-prefix }}-${{ matrix.branches }} --state open --json number --template "{{range .}}{{.number}}{{end}}") + prNumber=$(gh pr list --base ${{ matrix.branches }} --head csupdate-${{ matrix.branches }} --state open --json number --template "{{range .}}{{.number}}{{end}}") if [ -z "$prNumber" ]; then echo "No PR found, creating one" - gh pr create --head ${{ matrix.submodule.branch-prefix }}-${{ matrix.branches }} --title "[${{ matrix.branches }}] Update ${{ matrix.submodule.name }}" --body "" --base ${{ matrix.branches }} + gh pr create --head csupdate-${{ matrix.branches }} --title "[${{ matrix.branches }}] Update ClientStructs" --body "" --base ${{ matrix.branches }} else echo "PR already exists, ignoring" fi diff --git a/.gitignore b/.gitignore index b6a32a3ce..7023fb37f 100644 --- a/.gitignore +++ b/.gitignore @@ -327,7 +327,4 @@ ASALocalRun/ *.nvuser # MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# HexaGen generated files -#imgui/**/Generated/**/* \ No newline at end of file +.mfractor/ \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 0d12df2b8..dd184b54e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ +[submodule "lib/ImGuiScene"] + path = lib/ImGuiScene + url = https://github.com/goatcorp/ImGuiScene [submodule "lib/FFXIVClientStructs"] path = lib/FFXIVClientStructs url = https://github.com/aers/FFXIVClientStructs @@ -7,18 +10,3 @@ [submodule "lib/TsudaKageyu-minhook"] path = lib/TsudaKageyu-minhook url = https://github.com/TsudaKageyu/minhook.git -[submodule "lib/cimgui"] - path = lib/cimgui - url = https://github.com/goatcorp/gc-cimgui -[submodule "lib/cimplot"] - path = lib/cimplot - url = https://github.com/goatcorp/gc-cimplot -[submodule "lib/cimguizmo"] - path = lib/cimguizmo - url = https://github.com/goatcorp/gc-cimguizmo -[submodule "lib/Hexa.NET.ImGui"] - path = lib/Hexa.NET.ImGui - url = https://github.com/goatcorp/Hexa.NET.ImGui.git -[submodule "lib/Lumina.Excel"] - path = lib/Lumina.Excel - url = https://github.com/NotAdam/Lumina.Excel.git diff --git a/.nuke/build.schema.json b/.nuke/build.schema.json index 6ffb3bb01..497f2b89a 100644 --- a/.nuke/build.schema.json +++ b/.nuke/build.schema.json @@ -1,57 +1,19 @@ { "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Build Schema", + "$ref": "#/definitions/build", "definitions": { - "Host": { - "type": "string", - "enum": [ - "AppVeyor", - "AzurePipelines", - "Bamboo", - "Bitbucket", - "Bitrise", - "GitHubActions", - "GitLab", - "Jenkins", - "Rider", - "SpaceAutomation", - "TeamCity", - "Terminal", - "TravisCI", - "VisualStudio", - "VSCode" - ] - }, - "ExecutableTarget": { - "type": "string", - "enum": [ - "CI", - "Clean", - "Compile", - "CompileCImGui", - "CompileCImGuizmo", - "CompileCImPlot", - "CompileDalamud", - "CompileDalamudBoot", - "CompileDalamudCrashHandler", - "CompileImGuiNatives", - "CompileInjector", - "Restore", - "SetCILogging", - "Test" - ] - }, - "Verbosity": { - "type": "string", - "description": "", - "enum": [ - "Verbose", - "Normal", - "Minimal", - "Quiet" - ] - }, - "NukeBuild": { + "build": { + "type": "object", "properties": { + "Configuration": { + "type": "string", + "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", + "enum": [ + "Debug", + "Release" + ] + }, "Continue": { "type": "boolean", "description": "Indicates to continue a previously failed build attempt" @@ -61,8 +23,29 @@ "description": "Shows the help text for this build assembly" }, "Host": { + "type": "string", "description": "Host for execution. Default is 'automatic'", - "$ref": "#/definitions/Host" + "enum": [ + "AppVeyor", + "AzurePipelines", + "Bamboo", + "Bitbucket", + "Bitrise", + "GitHubActions", + "GitLab", + "Jenkins", + "Rider", + "SpaceAutomation", + "TeamCity", + "Terminal", + "TravisCI", + "VisualStudio", + "VSCode" + ] + }, + "IsDocsBuild": { + "type": "boolean", + "description": "Whether we are building for documentation - emits generated files" }, "NoLogo": { "type": "boolean", @@ -91,46 +74,53 @@ "type": "array", "description": "List of targets to be skipped. Empty list skips all dependencies", "items": { - "$ref": "#/definitions/ExecutableTarget" + "type": "string", + "enum": [ + "Clean", + "Compile", + "CompileDalamud", + "CompileDalamudBoot", + "CompileDalamudCrashHandler", + "CompileInjector", + "CompileInjectorBoot", + "Restore", + "Test" + ] } }, + "Solution": { + "type": "string", + "description": "Path to a solution file that is automatically loaded" + }, "Target": { "type": "array", "description": "List of targets to be invoked. Default is '{default_target}'", "items": { - "$ref": "#/definitions/ExecutableTarget" + "type": "string", + "enum": [ + "Clean", + "Compile", + "CompileDalamud", + "CompileDalamudBoot", + "CompileDalamudCrashHandler", + "CompileInjector", + "CompileInjectorBoot", + "Restore", + "Test" + ] } }, "Verbosity": { + "type": "string", "description": "Logging verbosity during build execution. Default is 'Normal'", - "$ref": "#/definitions/Verbosity" - } - } - } - }, - "allOf": [ - { - "properties": { - "Configuration": { - "type": "string", - "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", "enum": [ - "Debug", - "Release" + "Minimal", + "Normal", + "Quiet", + "Verbose" ] - }, - "IsDocsBuild": { - "type": "boolean", - "description": "Whether we are building for documentation - emits generated files" - }, - "Solution": { - "type": "string", - "description": "Path to a solution file that is automatically loaded" } } - }, - { - "$ref": "#/definitions/NukeBuild" } - ] -} + } +} \ No newline at end of file diff --git a/Dalamud.Boot/Dalamud.Boot.rc b/Dalamud.Boot/Dalamud.Boot.rc index 655df27e1..b46e81caf 100644 --- a/Dalamud.Boot/Dalamud.Boot.rc +++ b/Dalamud.Boot/Dalamud.Boot.rc @@ -26,38 +26,6 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US RT_MANIFEST_THEMES RT_MANIFEST "themes.manifest" - -///////////////////////////////////////////////////////////////////////////// -// -// String Table -// - -STRINGTABLE -BEGIN - IDS_APPNAME "Dalamud Boot" - IDS_MSVCRT_ACTION_OPENDOWNLOAD - "Download Microsoft Visual C++ Redistributable 2022\nExit the game and download the latest setup file from Microsoft." - IDS_MSVCRT_ACTION_IGNORE - "Ignore and Continue\nAttempt to continue with the currently installed version.\nDalamud or plugins may fail to load." - IDS_MSVCRT_DIALOG_MAININSTRUCTION - "Outdated Microsoft Visual C++ Redistributable" - IDS_MSVCRT_DIALOG_CONTENT - "The Microsoft Visual C++ Redistributable version detected on this computer (v{0}.{1}.{2}.{3}) is out of date and may not work with Dalamud." - IDS_MSVCRT_DOWNLOADURL "https://aka.ms/vs/17/release/vc_redist.x64.exe" - IDS_INITIALIZEFAIL_ACTION_ABORT "Abort\nExit the game." - IDS_INITIALIZEFAIL_ACTION_CONTINUE - "Load game without Dalamud\nThe game will launch without Dalamud enabled." - IDS_INITIALIZEFAIL_DIALOG_MAININSTRUCTION "Failed to load Dalamud." - IDS_INITIALIZEFAIL_DIALOG_CONTENT - "An error is preventing Dalamud from being loaded along with the game." -END - -STRINGTABLE -BEGIN - IDS_INITIALIZEFAIL_DIALOG_FOOTER - "Last operation: {0}\nHRESULT: 0x{1:08X}\nDescription: {2}" -END - #endif // English (United States) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/Dalamud.Boot/Dalamud.Boot.vcxproj b/Dalamud.Boot/Dalamud.Boot.vcxproj index 0a4a9c563..80435cd67 100644 --- a/Dalamud.Boot/Dalamud.Boot.vcxproj +++ b/Dalamud.Boot/Dalamud.Boot.vcxproj @@ -28,7 +28,7 @@ v143 false Unicode - bin\$(Configuration)\ + ..\bin\$(Configuration)\ obj\$(Configuration)\ @@ -48,7 +48,8 @@ Level3 true true - stdcpp23 + stdcpp20 + MultiThreadedDebug pch.h ProgramDatabase CPPDLLTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) @@ -65,7 +66,6 @@ true false - MultiThreadedDebugDLL _DEBUG;%(PreprocessorDefinitions) Use 26812 @@ -80,7 +80,6 @@ true true - MultiThreadedDLL NDEBUG;%(PreprocessorDefinitions) Use 26812 @@ -133,10 +132,6 @@ NotUsing - - NotUsing - NotUsing - NotUsing @@ -180,7 +175,6 @@ - @@ -206,9 +200,8 @@ - - - - + + + \ No newline at end of file diff --git a/Dalamud.Boot/Dalamud.Boot.vcxproj.filters b/Dalamud.Boot/Dalamud.Boot.vcxproj.filters index 15e3eb8b3..7c26b28ff 100644 --- a/Dalamud.Boot/Dalamud.Boot.vcxproj.filters +++ b/Dalamud.Boot/Dalamud.Boot.vcxproj.filters @@ -76,9 +76,6 @@ Dalamud.Boot DLL - - Common Boot - @@ -149,9 +146,6 @@ Dalamud.Boot DLL - - Common Boot - diff --git a/Dalamud.Boot/DalamudStartInfo.cpp b/Dalamud.Boot/DalamudStartInfo.cpp index 9c8fd9721..985332966 100644 --- a/Dalamud.Boot/DalamudStartInfo.cpp +++ b/Dalamud.Boot/DalamudStartInfo.cpp @@ -108,13 +108,7 @@ void from_json(const nlohmann::json& json, DalamudStartInfo& config) { config.LogName = json.value("LogName", config.LogName); config.PluginDirectory = json.value("PluginDirectory", config.PluginDirectory); config.AssetDirectory = json.value("AssetDirectory", config.AssetDirectory); - - if (json.contains("TempDirectory") && !json["TempDirectory"].is_null()) { - config.TempDirectory = json.value("TempDirectory", config.TempDirectory); - } - config.Language = json.value("Language", config.Language); - config.Platform = json.value("Platform", config.Platform); config.GameVersion = json.value("GameVersion", config.GameVersion); config.TroubleshootingPackData = json.value("TroubleshootingPackData", std::string{}); config.DelayInitializeMs = json.value("DelayInitializeMs", config.DelayInitializeMs); @@ -122,7 +116,6 @@ void from_json(const nlohmann::json& json, DalamudStartInfo& config) { config.NoLoadThirdPartyPlugins = json.value("NoLoadThirdPartyPlugins", config.NoLoadThirdPartyPlugins); config.BootLogPath = json.value("BootLogPath", config.BootLogPath); - config.BootDebugDirectX = json.value("BootDebugDirectX", config.BootDebugDirectX); config.BootShowConsole = json.value("BootShowConsole", config.BootShowConsole); config.BootDisableFallbackConsole = json.value("BootDisableFallbackConsole", config.BootDisableFallbackConsole); config.BootWaitMessageBox = json.value("BootWaitMessageBox", config.BootWaitMessageBox); diff --git a/Dalamud.Boot/DalamudStartInfo.h b/Dalamud.Boot/DalamudStartInfo.h index 308dcab7d..cc31ba2c5 100644 --- a/Dalamud.Boot/DalamudStartInfo.h +++ b/Dalamud.Boot/DalamudStartInfo.h @@ -17,7 +17,7 @@ struct DalamudStartInfo { DirectHook = 1, }; friend void from_json(const nlohmann::json&, DotNetOpenProcessHookMode&); - + enum class ClientLanguage : int { Japanese, English, @@ -44,11 +44,9 @@ struct DalamudStartInfo { std::string ConfigurationPath; std::string LogPath; std::string LogName; - std::string TempDirectory; std::string PluginDirectory; std::string AssetDirectory; ClientLanguage Language = ClientLanguage::English; - std::string Platform; std::string GameVersion; std::string TroubleshootingPackData; int DelayInitializeMs = 0; @@ -56,7 +54,6 @@ struct DalamudStartInfo { bool NoLoadThirdPartyPlugins; std::string BootLogPath; - bool BootDebugDirectX = false; bool BootShowConsole = false; bool BootDisableFallbackConsole = false; WaitMessageboxFlags BootWaitMessageBox = WaitMessageboxFlags::None; diff --git a/Dalamud.Boot/crashhandler_shared.h b/Dalamud.Boot/crashhandler_shared.h index 0308306ce..8d93e4460 100644 --- a/Dalamud.Boot/crashhandler_shared.h +++ b/Dalamud.Boot/crashhandler_shared.h @@ -6,8 +6,6 @@ #define WIN32_LEAN_AND_MEAN #include -#define CUSTOM_EXCEPTION_EXTERNAL_EVENT 0x12345679 - struct exception_info { LPEXCEPTION_POINTERS pExceptionPointers; diff --git a/Dalamud.Boot/dllmain.cpp b/Dalamud.Boot/dllmain.cpp index 687089f82..5c7c00b68 100644 --- a/Dalamud.Boot/dllmain.cpp +++ b/Dalamud.Boot/dllmain.cpp @@ -1,136 +1,17 @@ #include "pch.h" -#include -#include - #include "DalamudStartInfo.h" -#include "hooks.h" #include "logging.h" #include "utils.h" #include "veh.h" #include "xivfixes.h" -#include "resource.h" HMODULE g_hModule; HINSTANCE g_hGameInstance = GetModuleHandleW(nullptr); -static void CheckMsvcrtVersion() { - // Commit introducing inline mutex ctor: tagged vs-2022-17.14 (2024-06-18) - // - https://github.com/microsoft/STL/commit/22a88260db4d754bbc067e2002430144d6ec5391 - // MSVC Redist versions: - // - https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md - // - 14.40.33810.0 dsig 2024-04-28 - // - 14.40.33816.0 dsig 2024-09-11 - - constexpr WORD RequiredMsvcrtVersionComponents[] = {14, 40, 33816, 0}; - constexpr auto RequiredMsvcrtVersion = 0ULL - | (static_cast(RequiredMsvcrtVersionComponents[0]) << 48) - | (static_cast(RequiredMsvcrtVersionComponents[1]) << 32) - | (static_cast(RequiredMsvcrtVersionComponents[2]) << 16) - | (static_cast(RequiredMsvcrtVersionComponents[3]) << 0); - - constexpr const wchar_t* RuntimeDllNames[] = { -#ifdef _DEBUG - L"msvcp140d.dll", - L"vcruntime140d.dll", - L"vcruntime140_1d.dll", -#else - L"msvcp140.dll", - L"vcruntime140.dll", - L"vcruntime140_1.dll", -#endif - }; - - uint64_t lowestVersion = 0; - for (const auto& runtimeDllName : RuntimeDllNames) { - const utils::loaded_module mod(GetModuleHandleW(runtimeDllName)); - if (!mod) { - logging::E("MSVCRT DLL not found: {}", runtimeDllName); - continue; - } - - const auto path = mod.path() - .transform([](const auto& p) { return p.wstring(); }) - .value_or(runtimeDllName); - - if (const auto versionResult = mod.get_file_version()) { - const auto& versionFull = versionResult->get(); - logging::I("MSVCRT DLL {} has version {}.", path, utils::format_file_version(versionFull)); - - const auto version = 0ULL | - (static_cast(versionFull.dwFileVersionMS) << 32) | - (static_cast(versionFull.dwFileVersionLS) << 0); - - if (version < RequiredMsvcrtVersion && (lowestVersion == 0 || lowestVersion > version)) - lowestVersion = version; - } else { - logging::E("Failed to detect MSVCRT DLL version for {}: {}", path, versionResult.error().describe()); - } - } - - if (!lowestVersion) - return; - - enum IdTaskDialogAction { - IdTaskDialogActionOpenDownload = 101, - IdTaskDialogActionIgnore, - }; - - const TASKDIALOG_BUTTON buttons[]{ - {IdTaskDialogActionOpenDownload, MAKEINTRESOURCEW(IDS_MSVCRT_ACTION_OPENDOWNLOAD)}, - {IdTaskDialogActionIgnore, MAKEINTRESOURCEW(IDS_MSVCRT_ACTION_IGNORE)}, - }; - - const WORD lowestVersionComponents[]{ - static_cast(lowestVersion >> 48), - static_cast(lowestVersion >> 32), - static_cast(lowestVersion >> 16), - static_cast(lowestVersion >> 0), - }; - - const auto dialogContent = std::vformat( - utils::get_string_resource(IDS_MSVCRT_DIALOG_CONTENT), - std::make_wformat_args( - lowestVersionComponents[0], - lowestVersionComponents[1], - lowestVersionComponents[2], - lowestVersionComponents[3])); - - const TASKDIALOGCONFIG config{ - .cbSize = sizeof config, - .hInstance = g_hModule, - .dwFlags = TDF_CAN_BE_MINIMIZED | TDF_ALLOW_DIALOG_CANCELLATION | TDF_USE_COMMAND_LINKS, - .pszWindowTitle = MAKEINTRESOURCEW(IDS_APPNAME), - .pszMainIcon = MAKEINTRESOURCEW(IDI_ICON1), - .pszMainInstruction = MAKEINTRESOURCEW(IDS_MSVCRT_DIALOG_MAININSTRUCTION), - .pszContent = dialogContent.c_str(), - .cButtons = _countof(buttons), - .pButtons = buttons, - .nDefaultButton = IdTaskDialogActionOpenDownload, - }; - - int buttonPressed; - if (utils::scoped_dpi_awareness_context ctx; - FAILED(TaskDialogIndirect(&config, &buttonPressed, nullptr, nullptr))) - buttonPressed = IdTaskDialogActionOpenDownload; - - switch (buttonPressed) { - case IdTaskDialogActionOpenDownload: - ShellExecuteW( - nullptr, - L"open", - utils::get_string_resource(IDS_MSVCRT_DOWNLOADURL).c_str(), - nullptr, - nullptr, - SW_SHOW); - ExitProcess(0); - break; - } -} - HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { g_startInfo.from_envvars(); - + std::string jsonParseError; try { from_json(nlohmann::json::parse(std::string_view(static_cast(lpParam))), g_startInfo); @@ -139,8 +20,8 @@ HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { } if (g_startInfo.BootShowConsole) - ConsoleSetup(utils::get_string_resource(IDS_APPNAME).c_str()); - + ConsoleSetup(L"Dalamud Boot"); + logging::update_dll_load_status(true); const auto logFilePath = unicode::convert(g_startInfo.BootLogPath); @@ -148,16 +29,16 @@ HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { auto attemptFallbackLog = false; if (logFilePath.empty()) { attemptFallbackLog = true; - + logging::I("No log file path given; not logging to file."); } else { try { logging::start_file_logging(logFilePath, !g_startInfo.BootShowConsole); logging::I("Logging to file: {}", logFilePath); - + } catch (const std::exception& e) { attemptFallbackLog = true; - + logging::E("Couldn't open log file: {}", logFilePath); logging::E("Error: {} / {}", errno, e.what()); } @@ -178,15 +59,15 @@ HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { SYSTEMTIME st; GetLocalTime(&st); logFilePath += std::format(L"Dalamud.Boot.{:04}{:02}{:02}.{:02}{:02}{:02}.{:03}.{}.log", st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds, GetCurrentProcessId()); - + try { logging::start_file_logging(logFilePath, !g_startInfo.BootShowConsole); logging::I("Logging to fallback log file: {}", logFilePath); - + } catch (const std::exception& e) { if (!g_startInfo.BootShowConsole && !g_startInfo.BootDisableFallbackConsole) ConsoleSetup(L"Dalamud Boot - Fallback Console"); - + logging::E("Couldn't open fallback log file: {}", logFilePath); logging::E("Error: {} / {}", errno, e.what()); } @@ -202,81 +83,16 @@ HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { } else { logging::E("Failed to initialize MinHook (status={}({}))", MH_StatusToString(mhStatus), static_cast(mhStatus)); } - + logging::I("Dalamud.Boot Injectable, (c) 2021 XIVLauncher Contributors"); logging::I("Built at: " __DATE__ "@" __TIME__); if ((g_startInfo.BootWaitMessageBox & DalamudStartInfo::WaitMessageboxFlags::BeforeInitialize) != DalamudStartInfo::WaitMessageboxFlags::None) MessageBoxW(nullptr, L"Press OK to continue (BeforeInitialize)", L"Dalamud Boot", MB_OK); - CheckMsvcrtVersion(); - - if (g_startInfo.BootDebugDirectX) { - logging::I("Enabling DirectX Debugging."); - - const auto hD3D11 = GetModuleHandleW(L"d3d11.dll"); - const auto hDXGI = GetModuleHandleW(L"dxgi.dll"); - const auto pfnD3D11CreateDevice = static_cast( - hD3D11 ? static_cast(GetProcAddress(hD3D11, "D3D11CreateDevice")) : nullptr); - if (pfnD3D11CreateDevice) { - static hooks::direct_hook s_hookD3D11CreateDevice( - "d3d11.dll!D3D11CreateDevice", - pfnD3D11CreateDevice); - s_hookD3D11CreateDevice.set_detour([]( - IDXGIAdapter* pAdapter, - D3D_DRIVER_TYPE DriverType, - HMODULE Software, - UINT Flags, - const D3D_FEATURE_LEVEL* pFeatureLevels, - UINT FeatureLevels, - UINT SDKVersion, - ID3D11Device** ppDevice, - D3D_FEATURE_LEVEL* pFeatureLevel, - ID3D11DeviceContext** ppImmediateContext - ) -> HRESULT { - return s_hookD3D11CreateDevice.call_original( - pAdapter, - DriverType, - Software, - (Flags & ~D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY) | D3D11_CREATE_DEVICE_DEBUG, - pFeatureLevels, - FeatureLevels, - SDKVersion, - ppDevice, - pFeatureLevel, - ppImmediateContext); - }); - } else { - logging::W("Could not find d3d11!D3D11CreateDevice."); - } - - const auto pfnCreateDXGIFactory = static_cast( - hDXGI ? static_cast(GetProcAddress(hDXGI, "CreateDXGIFactory")) : nullptr); - const auto pfnCreateDXGIFactory1 = static_cast( - hDXGI ? static_cast(GetProcAddress(hDXGI, "CreateDXGIFactory1")) : nullptr); - static const auto pfnCreateDXGIFactory2 = static_cast( - hDXGI ? static_cast(GetProcAddress(hDXGI, "CreateDXGIFactory2")) : nullptr); - if (pfnCreateDXGIFactory2) { - static hooks::direct_hook s_hookCreateDXGIFactory( - "dxgi.dll!CreateDXGIFactory", - pfnCreateDXGIFactory); - static hooks::direct_hook s_hookCreateDXGIFactory1( - "dxgi.dll!CreateDXGIFactory1", - pfnCreateDXGIFactory1); - s_hookCreateDXGIFactory.set_detour([](REFIID riid, _COM_Outptr_ void **ppFactory) -> HRESULT { - return pfnCreateDXGIFactory2(DXGI_CREATE_FACTORY_DEBUG, riid, ppFactory); - }); - s_hookCreateDXGIFactory1.set_detour([](REFIID riid, _COM_Outptr_ void **ppFactory) -> HRESULT { - return pfnCreateDXGIFactory2(DXGI_CREATE_FACTORY_DEBUG, riid, ppFactory); - }); - } else { - logging::W("Could not find dxgi!CreateDXGIFactory2."); - } - } - if (minHookLoaded) { logging::I("Applying fixes..."); - std::thread([] { xivfixes::apply_all(true); }).join(); + xivfixes::apply_all(true); logging::I("Fixes OK"); } else { logging::W("Skipping fixes, as MinHook has failed to load."); @@ -287,14 +103,11 @@ HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { while (!IsDebuggerPresent()) Sleep(100); logging::I("Debugger attached."); - __debugbreak(); } - const auto fs_module_path = utils::loaded_module(g_hModule).path(); - if (!fs_module_path) - return fs_module_path.error(); - const auto runtimeconfig_path = std::filesystem::path(*fs_module_path).replace_filename(L"Dalamud.runtimeconfig.json").wstring(); - const auto module_path = std::filesystem::path(*fs_module_path).replace_filename(L"Dalamud.dll").wstring(); + const auto fs_module_path = utils::get_module_path(g_hModule); + const auto runtimeconfig_path = std::filesystem::path(fs_module_path).replace_filename(L"Dalamud.runtimeconfig.json").wstring(); + const auto module_path = std::filesystem::path(fs_module_path).replace_filename(L"Dalamud.dll").wstring(); // ============================== CLR ========================================= // @@ -331,51 +144,6 @@ HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue) { logging::I("VEH was disabled manually"); } - // ============================== CLR Reporting =================================== // - - // This is pretty horrible - CLR just doesn't provide a way for us to handle these events, and the API for it - // was pushed back to .NET 11, so we have to hook ReportEventW and catch them ourselves for now. - // Ideally all of this will go away once they get to it. - static std::shared_ptr> s_report_event_hook; - s_report_event_hook = std::make_shared>( - "advapi32.dll!ReportEventW (global import, hook_clr_report_event)", L"advapi32.dll", "ReportEventW"); - s_report_event_hook->set_detour([hook = s_report_event_hook.get()]( - HANDLE hEventLog, - WORD wType, - WORD wCategory, - DWORD dwEventID, - PSID lpUserSid, - WORD wNumStrings, - DWORD dwDataSize, - LPCWSTR* lpStrings, - LPVOID lpRawData)-> BOOL { - - // Check for CLR Error Event IDs - // https://github.com/dotnet/runtime/blob/v10.0.0/src/coreclr/vm/eventreporter.cpp#L370 - if (dwEventID != 1026 && // ERT_UnhandledException: The process was terminated due to an unhandled exception - dwEventID != 1025 && // ERT_ManagedFailFast: The application requested process termination through System.Environment.FailFast - dwEventID != 1023 && // ERT_UnmanagedFailFast: The process was terminated due to an internal error in the .NET Runtime - dwEventID != 1027 && // ERT_StackOverflow: The process was terminated due to a stack overflow - dwEventID != 1028) // ERT_CodeContractFailed: The application encountered a bug. A managed code contract (precondition, postcondition, object invariant, or assert) failed - { - return hook->call_original(hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, lpStrings, lpRawData); - } - - if (wNumStrings == 0 || lpStrings == nullptr) { - logging::W("ReportEventW called with no strings."); - return hook->call_original(hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, lpStrings, lpRawData); - } - - // In most cases, DalamudCrashHandler will kill us now, so call original here to make sure we still write to the event log. - const BOOL original_ret = hook->call_original(hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, lpStrings, lpRawData); - - const std::wstring error_details(lpStrings[0]); - veh::raise_external_event(error_details); - - return original_ret; - }); - logging::I("ReportEventW hook installed."); - // ============================== Dalamud ==================================== // if (static_cast(g_startInfo.BootWaitMessageBox) & static_cast(DalamudStartInfo::WaitMessageboxFlags::BeforeDalamudEntrypoint)) @@ -406,11 +174,11 @@ BOOL APIENTRY DllMain(const HMODULE hModule, const DWORD dwReason, LPVOID lpRese case DLL_PROCESS_DETACH: // do not show debug message boxes on abort() here _set_abort_behavior(0, _WRITE_ABORT_MSG); - + // process is terminating; don't bother cleaning up if (lpReserved) return TRUE; - + logging::update_dll_load_status(false); xivfixes::apply_all(false); diff --git a/Dalamud.Boot/error_info.cpp b/Dalamud.Boot/error_info.cpp deleted file mode 100644 index 02356b730..000000000 --- a/Dalamud.Boot/error_info.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "error_info.h" - -#define WIN32_LEAN_AND_MEAN -#include - -DalamudBootError::DalamudBootError(DalamudBootErrorDescription dalamudErrorDescription, long hresult) noexcept - : m_dalamudErrorDescription(dalamudErrorDescription) - , m_hresult(hresult) { -} - -DalamudBootError::DalamudBootError(DalamudBootErrorDescription dalamudErrorDescription) noexcept - : DalamudBootError(dalamudErrorDescription, E_FAIL) { -} - -const char* DalamudBootError::describe() const { - switch (m_dalamudErrorDescription) { - case DalamudBootErrorDescription::ModuleResourceLoadFail: - return "Failed to load resource."; - case DalamudBootErrorDescription::ModuleResourceVersionReadFail: - return "Failed to query version information."; - case DalamudBootErrorDescription::ModuleResourceVersionSignatureFail: - return "Invalid version info found."; - default: - return "(unavailable)"; - } -} diff --git a/Dalamud.Boot/error_info.h b/Dalamud.Boot/error_info.h deleted file mode 100644 index b5862d0dd..000000000 --- a/Dalamud.Boot/error_info.h +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include -#include - -typedef unsigned long DWORD; -typedef _Return_type_success_(return >= 0) long HRESULT; - -enum class DalamudBootErrorDescription { - None, - ModulePathResolutionFail, - ModuleResourceLoadFail, - ModuleResourceVersionReadFail, - ModuleResourceVersionSignatureFail, -}; - -class DalamudBootError { - DalamudBootErrorDescription m_dalamudErrorDescription; - long m_hresult; - -public: - DalamudBootError(DalamudBootErrorDescription dalamudErrorDescription, long hresult) noexcept; - DalamudBootError(DalamudBootErrorDescription dalamudErrorDescription) noexcept; - - const char* describe() const; - - operator HRESULT() const { - return m_hresult; - } -}; - -template -using DalamudExpected = std::expected< - std::conditional_t< - std::is_reference_v, - std::reference_wrapper>, - T - >, - DalamudBootError ->; - -using DalamudUnexpected = std::unexpected; diff --git a/Dalamud.Boot/hooks.cpp b/Dalamud.Boot/hooks.cpp index 3443a5f8a..295d427ae 100644 --- a/Dalamud.Boot/hooks.cpp +++ b/Dalamud.Boot/hooks.cpp @@ -84,13 +84,19 @@ void hooks::getprocaddress_singleton_import_hook::initialize() { const auto dllName = unicode::convert(pData->Loaded.FullDllName->Buffer); utils::loaded_module mod(pData->Loaded.DllBase); - const auto version = mod.get_file_version() - .transform([](const auto& v) { return utils::format_file_version(v.get()); }) - .value_or(L""); - - const auto description = mod.get_description() - .value_or(L""); - + std::wstring version, description; + try { + version = utils::format_file_version(mod.get_file_version()); + } catch (...) { + version = L""; + } + + try { + description = mod.get_description(); + } catch (...) { + description = L""; + } + logging::I(R"({} "{}" ("{}" ver {}) has been loaded at 0x{:X} ~ 0x{:X} (0x{:X}); finding import table items to hook.)", LogTag, dllName, description, version, reinterpret_cast(pData->Loaded.DllBase), @@ -119,9 +125,7 @@ void hooks::getprocaddress_singleton_import_hook::hook_module(const utils::loade if (mod.is_current_process()) return; - const auto path = mod.path() - .transform([](const auto& p) { return unicode::convert(p.wstring()); }) - .value_or(""); + const auto path = unicode::convert(mod.path().wstring()); for (const auto& [hModule, targetFns] : m_targetFns) { for (const auto& [targetFn, pfnThunk] : targetFns) { @@ -129,7 +133,7 @@ void hooks::getprocaddress_singleton_import_hook::hook_module(const utils::loade if (void* pGetProcAddressImport; mod.find_imported_function_pointer(dllName.c_str(), targetFn.c_str(), 0, pGetProcAddressImport)) { auto& hook = m_hooks[hModule][targetFn][mod]; if (!hook) { - logging::I("{} Hooking {}!{} imported by {}", LogTag, dllName, targetFn, path); + logging::I("{} Hooking {}!{} imported by {}", LogTag, dllName, targetFn, unicode::convert(mod.path().wstring())); hook.emplace(std::format("getprocaddress_singleton_import_hook::hook_module({}!{})", dllName, targetFn), static_cast(pGetProcAddressImport), pfnThunk); } diff --git a/Dalamud.Boot/pch.h b/Dalamud.Boot/pch.h index ac1394e57..c2194c157 100644 --- a/Dalamud.Boot/pch.h +++ b/Dalamud.Boot/pch.h @@ -11,9 +11,6 @@ #define WIN32_LEAN_AND_MEAN #define NOMINMAX -// https://developercommunity.visualstudio.com/t/Access-violation-with-std::mutex::lock-a/10664660 -#define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR - // Windows Header Files (1) #include @@ -24,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -55,7 +51,6 @@ #include #include #include -#include #include // https://www.akenotsuki.com/misc/srell/en/ diff --git a/Dalamud.Boot/resource.h b/Dalamud.Boot/resource.h index 2a1cde6e2..51acf37df 100644 --- a/Dalamud.Boot/resource.h +++ b/Dalamud.Boot/resource.h @@ -3,23 +3,12 @@ // Used by Dalamud.Boot.rc // #define IDI_ICON1 101 -#define IDS_APPNAME 102 -#define IDS_MSVCRT_ACTION_OPENDOWNLOAD 103 -#define IDS_MSVCRT_ACTION_IGNORE 104 -#define IDS_MSVCRT_DIALOG_MAININSTRUCTION 105 -#define IDS_MSVCRT_DIALOG_CONTENT 106 -#define IDS_MSVCRT_DOWNLOADURL 107 -#define IDS_INITIALIZEFAIL_ACTION_ABORT 108 -#define IDS_INITIALIZEFAIL_ACTION_CONTINUE 109 -#define IDS_INITIALIZEFAIL_DIALOG_MAININSTRUCTION 110 -#define IDS_INITIALIZEFAIL_DIALOG_CONTENT 111 -#define IDS_INITIALIZEFAIL_DIALOG_FOOTER 112 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 103 +#define _APS_NEXT_RESOURCE_VALUE 102 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1001 #define _APS_NEXT_SYMED_VALUE 101 diff --git a/Dalamud.Boot/rewrite_entrypoint.cpp b/Dalamud.Boot/rewrite_entrypoint.cpp index 69a4ec818..3a1672af7 100644 --- a/Dalamud.Boot/rewrite_entrypoint.cpp +++ b/Dalamud.Boot/rewrite_entrypoint.cpp @@ -2,7 +2,6 @@ #include "logging.h" #include "utils.h" -#include "resource.h" HRESULT WINAPI InitializeImpl(LPVOID lpParam, HANDLE hMainThreadContinue); @@ -380,50 +379,12 @@ extern "C" void WINAPI RewrittenEntryPoint_AdjustedStack(RewrittenEntryPointPara auto desc = err.Description(); if (desc.length() == 0) desc = err.ErrorMessage(); - - enum IdTaskDialogAction { - IdTaskDialogActionAbort = 101, - IdTaskDialogActionContinue, - }; - - const TASKDIALOG_BUTTON buttons[]{ - {IdTaskDialogActionAbort, MAKEINTRESOURCEW(IDS_INITIALIZEFAIL_ACTION_ABORT)}, - {IdTaskDialogActionContinue, MAKEINTRESOURCEW(IDS_INITIALIZEFAIL_ACTION_CONTINUE)}, - }; - - const auto hru32 = static_cast(hr); - const auto footer = std::vformat( - utils::get_string_resource(IDS_INITIALIZEFAIL_DIALOG_FOOTER), - std::make_wformat_args( - last_operation, - hru32, - desc.GetBSTR())); - - const TASKDIALOGCONFIG config{ - .cbSize = sizeof config, - .hInstance = g_hModule, - .dwFlags = TDF_CAN_BE_MINIMIZED | TDF_ALLOW_DIALOG_CANCELLATION | TDF_USE_COMMAND_LINKS | TDF_EXPAND_FOOTER_AREA, - .pszWindowTitle = MAKEINTRESOURCEW(IDS_APPNAME), - .pszMainIcon = MAKEINTRESOURCEW(IDI_ICON1), - .pszMainInstruction = MAKEINTRESOURCEW(IDS_INITIALIZEFAIL_DIALOG_MAININSTRUCTION), - .pszContent = MAKEINTRESOURCEW(IDS_INITIALIZEFAIL_DIALOG_CONTENT), - .cButtons = _countof(buttons), - .pButtons = buttons, - .nDefaultButton = IdTaskDialogActionAbort, - .pszFooter = footer.c_str(), - }; - - int buttonPressed; - if (utils::scoped_dpi_awareness_context ctx; - FAILED(TaskDialogIndirect(&config, &buttonPressed, nullptr, nullptr))) - buttonPressed = IdTaskDialogActionAbort; - - switch (buttonPressed) { - case IdTaskDialogActionAbort: - ExitProcess(-1); - break; - } - + if (MessageBoxW(nullptr, std::format( + L"Failed to load Dalamud. Load game without Dalamud(yes) or abort(no)?\n\n{}\n{}", + last_operation, + desc.GetBSTR()).c_str(), + L"Dalamud.Boot", MB_OK | MB_YESNO) == IDNO) + ExitProcess(-1); if (hMainThreadContinue) { CloseHandle(hMainThreadContinue); hMainThreadContinue = nullptr; diff --git a/Dalamud.Boot/utils.cpp b/Dalamud.Boot/utils.cpp index 9820e5b7f..bbe47db82 100644 --- a/Dalamud.Boot/utils.cpp +++ b/Dalamud.Boot/utils.cpp @@ -1,29 +1,23 @@ #include "pch.h" -#include "DalamudStartInfo.h" #include "utils.h" -DalamudExpected utils::loaded_module::path() const { - for (std::wstring buf(MAX_PATH, L'\0');; buf.resize(buf.size() * 2)) { - if (const auto len = GetModuleFileNameW(m_hModule, &buf[0], static_cast(buf.size())); - len != buf.size()) { - if (!len) { - return DalamudUnexpected( - std::in_place, - DalamudBootErrorDescription::ModulePathResolutionFail, - HRESULT_FROM_WIN32(GetLastError())); - } - +std::filesystem::path utils::loaded_module::path() const { + std::wstring buf(MAX_PATH, L'\0'); + for (;;) { + if (const auto len = GetModuleFileNameExW(GetCurrentProcess(), m_hModule, &buf[0], static_cast(buf.size())); len != buf.size()) { + if (buf.empty()) + throw std::runtime_error(std::format("Failed to resolve module path: Win32 error {}", GetLastError())); buf.resize(len); return buf; } - if (buf.size() > PATHCCH_MAX_CCH) { - return DalamudUnexpected( - std::in_place, - DalamudBootErrorDescription::ModulePathResolutionFail, - E_OUTOFMEMORY); - } + if (buf.size() * 2 < PATHCCH_MAX_CCH) + buf.resize(buf.size() * 2); + else if (auto p = std::filesystem::path(buf); exists(p)) + return p; + else + throw std::runtime_error("Failed to resolve module path: no amount of buffer size would fit the data"); } } @@ -149,90 +143,66 @@ void* utils::loaded_module::get_imported_function_pointer(const char* pcszDllNam throw std::runtime_error(std::format("Failed to find import for {}!{} ({}).", pcszDllName, pcszFunctionName ? pcszFunctionName : "", hintOrOrdinal)); } -DalamudExpected, decltype(&FreeResource)>> utils::loaded_module::get_resource(LPCWSTR lpName, LPCWSTR lpType) const { +std::unique_ptr, decltype(&FreeResource)> utils::loaded_module::get_resource(LPCWSTR lpName, LPCWSTR lpType) const { const auto hres = FindResourceW(m_hModule, lpName, lpType); if (!hres) - return DalamudUnexpected(std::in_place, DalamudBootErrorDescription::ModuleResourceLoadFail, GetLastError()); - + throw std::runtime_error("No such resource"); + const auto hRes = LoadResource(m_hModule, hres); if (!hRes) - return DalamudUnexpected(std::in_place, DalamudBootErrorDescription::ModuleResourceLoadFail, GetLastError()); + throw std::runtime_error("LoadResource failure"); - return std::unique_ptr, decltype(&FreeResource)>(hRes, &FreeResource); + return {hRes, &FreeResource}; } -DalamudExpected utils::loaded_module::get_description() const { - auto rsrc = get_resource(MAKEINTRESOURCE(VS_VERSION_INFO), RT_VERSION); - if (!rsrc) - return DalamudUnexpected(std::move(rsrc.error())); - - const auto pBlock = LockResource(rsrc->get()); - +std::wstring utils::loaded_module::get_description() const { + const auto rsrc = get_resource(MAKEINTRESOURCE(VS_VERSION_INFO), RT_VERSION); + const auto pBlock = LockResource(rsrc.get()); + struct LANGANDCODEPAGE { WORD wLanguage; WORD wCodePage; } * lpTranslate; UINT cbTranslate; if (!VerQueryValueW(pBlock, - L"\\VarFileInfo\\Translation", + TEXT("\\VarFileInfo\\Translation"), reinterpret_cast(&lpTranslate), &cbTranslate)) { - return DalamudUnexpected( - std::in_place, - DalamudBootErrorDescription::ModuleResourceVersionReadFail, - HRESULT_FROM_WIN32(GetLastError())); + throw std::runtime_error("Invalid version information (1)"); } for (size_t i = 0; i < (cbTranslate / sizeof(LANGANDCODEPAGE)); i++) { - wchar_t subblockNameBuf[64]; - *std::format_to_n( - subblockNameBuf, - _countof(subblockNameBuf), - L"\\StringFileInfo\\{:04x}{:04x}\\FileDescription", - lpTranslate[i].wLanguage, - lpTranslate[i].wCodePage).out = 0;; - wchar_t* buf = nullptr; UINT size = 0; - if (!VerQueryValueW(pBlock, subblockNameBuf, reinterpret_cast(&buf), &size)) + if (!VerQueryValueW(pBlock, + std::format(L"\\StringFileInfo\\{:04x}{:04x}\\FileDescription", + lpTranslate[i].wLanguage, + lpTranslate[i].wCodePage).c_str(), + reinterpret_cast(&buf), + &size)) { continue; - + } auto currName = std::wstring_view(buf, size); - if (const auto p = currName.find(L'\0'); p != std::string::npos) - currName = currName.substr(0, p); + while (!currName.empty() && currName.back() == L'\0') + currName = currName.substr(0, currName.size() - 1); if (currName.empty()) continue; return std::wstring(currName); } - - return DalamudUnexpected( - std::in_place, - DalamudBootErrorDescription::ModuleResourceVersionReadFail, - HRESULT_FROM_WIN32(ERROR_NOT_FOUND)); + + throw std::runtime_error("Invalid version information (2)"); } -std::expected, DalamudBootError> utils::loaded_module::get_file_version() const { - auto rsrc = get_resource(MAKEINTRESOURCE(VS_VERSION_INFO), RT_VERSION); - if (!rsrc) - return DalamudUnexpected(std::move(rsrc.error())); - - const auto pBlock = LockResource(rsrc->get()); +VS_FIXEDFILEINFO utils::loaded_module::get_file_version() const { + const auto rsrc = get_resource(MAKEINTRESOURCE(VS_VERSION_INFO), RT_VERSION); + const auto pBlock = LockResource(rsrc.get()); UINT size = 0; LPVOID lpBuffer = nullptr; - if (!VerQueryValueW(pBlock, L"\\", &lpBuffer, &size)) { - return std::unexpected( - std::in_place, - DalamudBootErrorDescription::ModuleResourceVersionReadFail, - HRESULT_FROM_WIN32(GetLastError())); - } - + if (!VerQueryValueW(pBlock, L"\\", &lpBuffer, &size)) + throw std::runtime_error("Failed to query version information."); const VS_FIXEDFILEINFO& versionInfo = *static_cast(lpBuffer); - if (versionInfo.dwSignature != 0xfeef04bd) { - return std::unexpected( - std::in_place, - DalamudBootErrorDescription::ModuleResourceVersionSignatureFail); - } - + if (versionInfo.dwSignature != 0xfeef04bd) + throw std::runtime_error("Invalid version info found."); return versionInfo; } @@ -382,7 +352,7 @@ const char* utils::signature_finder::result::resolve_jump_target(size_t instruct nmd_x86_instruction instruction{}; if (!nmd_x86_decode(&Match[instructionOffset], NMD_X86_MAXIMUM_INSTRUCTION_LENGTH, &instruction, NMD_X86_MODE_64, NMD_X86_DECODER_FLAGS_ALL)) throw std::runtime_error("Matched address does not have a valid assembly instruction"); - + size_t numExplicitOperands = 0; for (size_t i = 0; i < instruction.num_operands; i++) numExplicitOperands += instruction.operands[i].is_implicit ? 0 : 1; @@ -614,14 +584,17 @@ std::vector utils::get_env_list(const wchar_t* pcszName) { return res; } -bool utils::is_running_on_wine() { - return g_startInfo.Platform != "WINDOWS"; -} - -std::wstring utils::get_string_resource(uint32_t resId) { - LPCWSTR pstr; - const auto len = LoadStringW(g_hModule, resId, reinterpret_cast(&pstr), 0); - return std::wstring(pstr, len); +std::filesystem::path utils::get_module_path(HMODULE hModule) { + std::wstring buf(MAX_PATH, L'\0'); + while (true) { + if (const auto res = GetModuleFileNameW(hModule, &buf[0], static_cast(buf.size())); !res) + throw std::runtime_error(std::format("GetModuleFileName failure: 0x{:X}", GetLastError())); + else if (res < buf.size()) { + buf.resize(res); + return buf; + } else + buf.resize(buf.size() * 2); + } } HWND utils::try_find_game_window() { @@ -647,7 +620,7 @@ void utils::wait_for_game_window() { std::wstring utils::escape_shell_arg(const std::wstring& arg) { // https://docs.microsoft.com/en-us/archive/blogs/twistylittlepassagesallalike/everyone-quotes-command-line-arguments-the-wrong-way - + std::wstring res; if (!arg.empty() && arg.find_first_of(L" \t\n\v\"") == std::wstring::npos) { res.append(arg); @@ -699,22 +672,3 @@ std::wstring utils::format_win32_error(DWORD err) { return std::format(L"Win32 error ({}=0x{:X})", err, err); } - -utils::scoped_dpi_awareness_context::scoped_dpi_awareness_context() - : scoped_dpi_awareness_context(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) { -} - -utils::scoped_dpi_awareness_context::scoped_dpi_awareness_context(DPI_AWARENESS_CONTEXT context) { - const auto user32 = GetModuleHandleW(L"user32.dll"); - m_setThreadDpiAwarenessContext = - user32 - ? reinterpret_cast( - GetProcAddress(user32, "SetThreadDpiAwarenessContext")) - : nullptr; - m_old = m_setThreadDpiAwarenessContext ? m_setThreadDpiAwarenessContext(context) : DPI_AWARENESS_CONTEXT_UNAWARE; -} - -utils::scoped_dpi_awareness_context::~scoped_dpi_awareness_context() { - if (m_setThreadDpiAwarenessContext) - m_setThreadDpiAwarenessContext(m_old); -} diff --git a/Dalamud.Boot/utils.h b/Dalamud.Boot/utils.h index c5833722b..eef405b26 100644 --- a/Dalamud.Boot/utils.h +++ b/Dalamud.Boot/utils.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include #include @@ -8,7 +7,6 @@ #include #include -#include "error_info.h" #include "unicode.h" namespace utils { @@ -20,13 +18,14 @@ namespace utils { loaded_module(void* hModule) : m_hModule(reinterpret_cast(hModule)) {} loaded_module(size_t hModule) : m_hModule(reinterpret_cast(hModule)) {} - DalamudExpected path() const; + std::filesystem::path path() const; bool is_current_process() const { return m_hModule == GetModuleHandleW(nullptr); } bool owns_address(const void* pAddress) const; - operator HMODULE() const { return m_hModule; } - operator bool() const { return m_hModule; } + operator HMODULE() const { + return m_hModule; + } size_t address_int() const { return reinterpret_cast(m_hModule); } size_t image_size() const { return is_pe64() ? nt_header64().OptionalHeader.SizeOfImage : nt_header32().OptionalHeader.SizeOfImage; } @@ -59,9 +58,9 @@ namespace utils { void* get_imported_function_pointer(const char* pcszDllName, const char* pcszFunctionName, uint32_t hintOrOrdinal) const; template TFn** get_imported_function_pointer(const char* pcszDllName, const char* pcszFunctionName, uint32_t hintOrOrdinal) { return reinterpret_cast(get_imported_function_pointer(pcszDllName, pcszFunctionName, hintOrOrdinal)); } - [[nodiscard]] DalamudExpected, decltype(&FreeResource)>> get_resource(LPCWSTR lpName, LPCWSTR lpType) const; - [[nodiscard]] DalamudExpected get_description() const; - [[nodiscard]] DalamudExpected get_file_version() const; + [[nodiscard]] std::unique_ptr, decltype(&FreeResource)> get_resource(LPCWSTR lpName, LPCWSTR lpType) const; + [[nodiscard]] std::wstring get_description() const; + [[nodiscard]] VS_FIXEDFILEINFO get_file_version() const; static loaded_module current_process(); static std::vector all_modules(); @@ -268,9 +267,7 @@ namespace utils { return get_env_list(unicode::convert(pcszName).c_str()); } - bool is_running_on_wine(); - - std::wstring get_string_resource(uint32_t resId); + std::filesystem::path get_module_path(HMODULE hModule); /// @brief Find the game main window. /// @return Handle to the game main window, or nullptr if it doesn't exist (yet). @@ -281,18 +278,4 @@ namespace utils { std::wstring escape_shell_arg(const std::wstring& arg); std::wstring format_win32_error(DWORD err); - - class scoped_dpi_awareness_context { - DPI_AWARENESS_CONTEXT m_old; - decltype(&SetThreadDpiAwarenessContext) m_setThreadDpiAwarenessContext; - - public: - scoped_dpi_awareness_context(); - scoped_dpi_awareness_context(DPI_AWARENESS_CONTEXT); - ~scoped_dpi_awareness_context(); - scoped_dpi_awareness_context(const scoped_dpi_awareness_context&) = delete; - scoped_dpi_awareness_context(scoped_dpi_awareness_context&&) = delete; - scoped_dpi_awareness_context& operator=(const scoped_dpi_awareness_context&) = delete; - scoped_dpi_awareness_context& operator=(scoped_dpi_awareness_context&&) = delete; - }; } diff --git a/Dalamud.Boot/veh.cpp b/Dalamud.Boot/veh.cpp index c0a0b034a..85d58eb9d 100644 --- a/Dalamud.Boot/veh.cpp +++ b/Dalamud.Boot/veh.cpp @@ -31,8 +31,6 @@ HANDLE g_crashhandler_process = nullptr; HANDLE g_crashhandler_event = nullptr; HANDLE g_crashhandler_pipe_write = nullptr; -wchar_t g_external_event_info[16384] = L""; - std::recursive_mutex g_exception_handler_mutex; std::chrono::time_point g_time_start; @@ -104,13 +102,9 @@ bool is_ffxiv_address(const wchar_t* module_name, const DWORD64 address) return false; } -static DalamudExpected append_injector_launch_args(std::vector& args) +static void append_injector_launch_args(std::vector& args) { - if (auto path = utils::loaded_module::current_process().path()) - args.emplace_back(L"--game=\"" + path->wstring() + L"\""); - else - return DalamudUnexpected(std::in_place, std::move(path.error())); - + args.emplace_back(L"--game=\"" + utils::loaded_module::current_process().path().wstring() + L"\""); switch (g_startInfo.DalamudLoadMethod) { case DalamudStartInfo::LoadMethod::Entrypoint: args.emplace_back(L"--mode=entrypoint"); @@ -124,7 +118,6 @@ static DalamudExpected append_injector_launch_args(std::vector(g_startInfo.LogName) + L"\""); args.emplace_back(L"--dalamud-plugin-directory=\"" + unicode::convert(g_startInfo.PluginDirectory) + L"\""); args.emplace_back(L"--dalamud-asset-directory=\"" + unicode::convert(g_startInfo.AssetDirectory) + L"\""); - args.emplace_back(L"--dalamud-temp-directory=\"" + unicode::convert(g_startInfo.TempDirectory) + L"\""); args.emplace_back(std::format(L"--dalamud-client-language={}", static_cast(g_startInfo.Language))); args.emplace_back(std::format(L"--dalamud-delay-initialize={}", g_startInfo.DelayInitializeMs)); // NoLoadPlugins/NoLoadThirdPartyPlugins: supplied from DalamudCrashHandler @@ -162,8 +155,6 @@ static DalamudExpected append_injector_launch_args(std::vectorExceptionRecord->ExceptionCode == CUSTOM_EXCEPTION_EXTERNAL_EVENT) - { - stackTrace = std::wstring(g_external_event_info); - } - else if (!g_clr) + if (!g_clr) { stackTrace = L"(no CLR stack trace available)"; } @@ -258,12 +245,6 @@ LONG WINAPI structured_exception_handler(EXCEPTION_POINTERS* ex) LONG WINAPI vectored_exception_handler(EXCEPTION_POINTERS* ex) { - // special case for CLR exceptions, always trigger crash handler - if (ex->ExceptionRecord->ExceptionCode == CUSTOM_EXCEPTION_EXTERNAL_EVENT) - { - return exception_handler(ex); - } - if (ex->ExceptionRecord->ExceptionCode == 0x12345678) { // pass @@ -281,7 +262,7 @@ LONG WINAPI vectored_exception_handler(EXCEPTION_POINTERS* ex) if (!is_ffxiv_address(L"ffxiv_dx11.exe", ex->ContextRecord->Rip) && !is_ffxiv_address(L"cimgui.dll", ex->ContextRecord->Rip)) - return EXCEPTION_CONTINUE_SEARCH; + return EXCEPTION_CONTINUE_SEARCH; } return exception_handler(ex); @@ -310,7 +291,7 @@ bool veh::add_handler(bool doFullDump, const std::string& workingDirectory) if (HANDLE hReadPipeRaw, hWritePipeRaw; CreatePipe(&hReadPipeRaw, &hWritePipeRaw, nullptr, 65536)) { hWritePipe.emplace(hWritePipeRaw, &CloseHandle); - + if (HANDLE hReadPipeInheritableRaw; DuplicateHandle(GetCurrentProcess(), hReadPipeRaw, GetCurrentProcess(), &hReadPipeInheritableRaw, 0, TRUE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) { hReadPipeInheritable.emplace(hReadPipeInheritableRaw, &CloseHandle); @@ -328,9 +309,9 @@ bool veh::add_handler(bool doFullDump, const std::string& workingDirectory) } // additional information - STARTUPINFOEXW siex{}; + STARTUPINFOEXW siex{}; PROCESS_INFORMATION pi{}; - + siex.StartupInfo.cb = sizeof siex; siex.StartupInfo.dwFlags = STARTF_USESHOWWINDOW; siex.StartupInfo.wShowWindow = g_startInfo.CrashHandlerShow ? SW_SHOW : SW_HIDE; @@ -377,20 +358,11 @@ bool veh::add_handler(bool doFullDump, const std::string& workingDirectory) args.emplace_back(std::format(L"--process-handle={}", reinterpret_cast(hInheritableCurrentProcess))); args.emplace_back(std::format(L"--exception-info-pipe-read-handle={}", reinterpret_cast(hReadPipeInheritable->get()))); args.emplace_back(std::format(L"--asset-directory={}", unicode::convert(g_startInfo.AssetDirectory))); - if (const auto path = utils::loaded_module(g_hModule).path()) { - args.emplace_back(std::format(L"--log-directory={}", g_startInfo.BootLogPath.empty() - ? path->parent_path().wstring() - : std::filesystem::path(unicode::convert(g_startInfo.BootLogPath)).parent_path().wstring())); - } else { - logging::W("Failed to read path of the Dalamud Boot module: {}", path.error().describe()); - return false; - } - + args.emplace_back(std::format(L"--log-directory={}", g_startInfo.BootLogPath.empty() + ? utils::loaded_module(g_hModule).path().parent_path().wstring() + : std::filesystem::path(unicode::convert(g_startInfo.BootLogPath)).parent_path().wstring())); args.emplace_back(L"--"); - if (auto r = append_injector_launch_args(args); !r) { - logging::W("Failed to generate injector launch args: {}", r.error().describe()); - return false; - } + append_injector_launch_args(args); for (const auto& arg : args) { @@ -398,7 +370,7 @@ bool veh::add_handler(bool doFullDump, const std::string& workingDirectory) argstr.push_back(L' '); } argstr.pop_back(); - + if (!handles.empty() && !UpdateProcThreadAttribute(siex.lpAttributeList, 0, PROC_THREAD_ATTRIBUTE_HANDLE_LIST, &handles[0], std::span(handles).size_bytes(), nullptr, nullptr)) { logging::W("Failed to launch DalamudCrashHandler.exe: UpdateProcThreadAttribute error 0x{:x}", GetLastError()); @@ -413,7 +385,7 @@ bool veh::add_handler(bool doFullDump, const std::string& workingDirectory) TRUE, // Set handle inheritance to FALSE EXTENDED_STARTUPINFO_PRESENT, // lpStartupInfo actually points to a STARTUPINFOEX(W) nullptr, // Use parent's environment block - nullptr, // Use parent's starting directory + nullptr, // Use parent's starting directory &siex.StartupInfo, // Pointer to STARTUPINFO structure &pi // Pointer to PROCESS_INFORMATION structure (removed extra parentheses) )) @@ -429,7 +401,7 @@ bool veh::add_handler(bool doFullDump, const std::string& workingDirectory) } CloseHandle(pi.hThread); - + g_crashhandler_process = pi.hProcess; g_crashhandler_pipe_write = hWritePipe->release(); logging::I("Launched DalamudCrashHandler.exe: PID {}", pi.dwProcessId); @@ -447,16 +419,3 @@ bool veh::remove_handler() } return false; } - -void veh::raise_external_event(const std::wstring& info) -{ - const auto info_size = std::min(info.size(), std::size(g_external_event_info) - 1); - wcsncpy_s(g_external_event_info, info.c_str(), info_size); - RaiseException(CUSTOM_EXCEPTION_EXTERNAL_EVENT, 0, 0, nullptr); -} - -extern "C" __declspec(dllexport) void BootVehRaiseExternalEventW(LPCWSTR info) -{ - const std::wstring info_wstr(info); - veh::raise_external_event(info_wstr); -} diff --git a/Dalamud.Boot/veh.h b/Dalamud.Boot/veh.h index 2a02c374e..1905272ea 100644 --- a/Dalamud.Boot/veh.h +++ b/Dalamud.Boot/veh.h @@ -4,5 +4,4 @@ namespace veh { bool add_handler(bool doFullDump, const std::string& workingDirectory); bool remove_handler(); - void raise_external_event(const std::wstring& info); } diff --git a/Dalamud.Boot/xivfixes.cpp b/Dalamud.Boot/xivfixes.cpp index 7f9e92225..f3b6aaa2c 100644 --- a/Dalamud.Boot/xivfixes.cpp +++ b/Dalamud.Boot/xivfixes.cpp @@ -8,6 +8,12 @@ #include "ntdll.h" #include "utils.h" +template +static std::span assume_nonempty_span(std::span t, const char* descr) { + if (t.empty()) + throw std::runtime_error(std::format("Unexpected empty span found: {}", descr)); + return t; +} void xivfixes::unhook_dll(bool bApply) { static const auto LogTag = "[xivfixes:unhook_dll]"; static const auto LogTagW = L"[xivfixes:unhook_dll]"; @@ -17,90 +23,77 @@ void xivfixes::unhook_dll(bool bApply) { const auto mods = utils::loaded_module::all_modules(); - for (size_t i = 0; i < mods.size(); i++) { - const auto& mod = mods[i]; - const auto path = mod.path(); - if (!path) { - logging::W( - "{} [{}/{}] Module 0x{:X}: Failed to resolve path: {}", - LogTag, - i + 1, - mods.size(), - mod.address_int(), - path.error().describe()); + const auto test_module = [&](size_t i, const utils::loaded_module & mod) { + std::filesystem::path path; + try { + path = mod.path(); + std::wstring version, description; + try { + version = utils::format_file_version(mod.get_file_version()); + } catch (...) { + version = L""; + } + + try { + description = mod.get_description(); + } catch (...) { + description = L""; + } + + logging::I(R"({} [{}/{}] Module 0x{:X} ~ 0x{:X} (0x{:X}): "{}" ("{}" ver {}))", LogTagW, i + 1, mods.size(), mod.address_int(), mod.address_int() + mod.image_size(), mod.image_size(), path.wstring(), description, version); + } catch (const std::exception& e) { + logging::W("{} [{}/{}] Module 0x{:X}: Failed to resolve path: {}", LogTag, i + 1, mods.size(), mod.address_int(), e.what()); return; } - const auto version = mod.get_file_version() - .transform([](const auto& v) { return utils::format_file_version(v.get()); }) - .value_or(L""); + const auto moduleName = unicode::convert(path.filename().wstring()); - const auto description = mod.get_description() - .value_or(L""); - - logging::I( - R"({} [{}/{}] Module 0x{:X} ~ 0x{:X} (0x{:X}): "{}" ("{}" ver {}))", - LogTagW, - i + 1, - mods.size(), - mod.address_int(), - mod.address_int() + mod.image_size(), - mod.image_size(), - path->wstring(), - description, - version); - - const auto moduleName = unicode::convert(path->filename().wstring()); - - const auto& sectionHeader = mod.section_header(".text"); - const auto section = mod.span_as(sectionHeader.VirtualAddress, sectionHeader.Misc.VirtualSize); - if (section.empty()) { - logging::W("{} Error: .text[VA:VA + VS] is empty", LogTag); - return; - } - - auto hFsDllRaw = CreateFileW(path->c_str(), GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, 0, nullptr); - if (hFsDllRaw == INVALID_HANDLE_VALUE) { - logging::W("{} Module loaded in current process but could not open file: Win32 error {}", LogTag, GetLastError()); - return; - } - - auto hFsDll = std::unique_ptr(hFsDllRaw, &CloseHandle); - std::vector buf(section.size()); - SetFilePointer(hFsDll.get(), sectionHeader.PointerToRawData, nullptr, FILE_CURRENT); - if (DWORD read{}; ReadFile(hFsDll.get(), &buf[0], static_cast(buf.size()), &read, nullptr)) { - if (read < section.size_bytes()) { - logging::W("{} ReadFile: read {} bytes < requested {} bytes", LogTagW, read, section.size_bytes()); + std::vector buf; + std::string formatBuf; + try { + const auto& sectionHeader = mod.section_header(".text"); + const auto section = assume_nonempty_span(mod.span_as(sectionHeader.VirtualAddress, sectionHeader.Misc.VirtualSize), ".text[VA:VA+VS]"); + auto hFsDllRaw = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, 0, nullptr); + if (hFsDllRaw == INVALID_HANDLE_VALUE) { + logging::W("{} Module loaded in current process but could not open file: Win32 error {}", LogTag, GetLastError()); return; } - } else { - logging::I("{} ReadFile: Win32 error {}", LogTagW, GetLastError()); - return; - } + auto hFsDll = std::unique_ptr(hFsDllRaw, &CloseHandle); + + buf.resize(section.size()); + SetFilePointer(hFsDll.get(), sectionHeader.PointerToRawData, nullptr, FILE_CURRENT); + if (DWORD read{}; ReadFile(hFsDll.get(), &buf[0], static_cast(buf.size()), &read, nullptr)) { + if (read < section.size_bytes()) { + logging::W("{} ReadFile: read {} bytes < requested {} bytes", LogTagW, read, section.size_bytes()); + return; + } + } else { + logging::I("{} ReadFile: Win32 error {}", LogTagW, GetLastError()); + return; + } + + const auto doRestore = g_startInfo.BootUnhookDlls.contains(unicode::convert(path.filename().u8string())); - const auto doRestore = g_startInfo.BootUnhookDlls.contains(unicode::convert(path->filename().u8string())); - try { std::optional tenderizer; - std::string formatBuf; - for (size_t inst = 0, instructionLength = 1, printed = 0; inst < buf.size(); inst += instructionLength) { - if (section[inst] == buf[inst]) { + for (size_t i = 0, instructionLength = 1, printed = 0; i < buf.size(); i += instructionLength) { + if (section[i] == buf[i]) { instructionLength = 1; continue; } - const auto rva = sectionHeader.VirtualAddress + inst; + const auto rva = sectionHeader.VirtualAddress + i; nmd_x86_instruction instruction{}; - if (!nmd_x86_decode(§ion[inst], section.size() - inst, &instruction, NMD_X86_MODE_64, NMD_X86_DECODER_FLAGS_ALL)) { + if (!nmd_x86_decode(§ion[i], section.size() - i, &instruction, NMD_X86_MODE_64, NMD_X86_DECODER_FLAGS_ALL)) { instructionLength = 1; if (printed < 64) { - logging::W("{} {}+0x{:0X}: dd {:02X}", LogTag, moduleName, rva, static_cast(section[inst])); + logging::W("{} {}+0x{:0X}: dd {:02X}", LogTag, moduleName, rva, static_cast(section[i])); printed++; } } else { instructionLength = instruction.length; if (printed < 64) { formatBuf.resize(128); - nmd_x86_format(&instruction, &formatBuf[0], reinterpret_cast(§ion[inst]), NMD_X86_FORMAT_FLAGS_DEFAULT | NMD_X86_FORMAT_FLAGS_BYTES); + nmd_x86_format(&instruction, &formatBuf[0], reinterpret_cast(§ion[i]), NMD_X86_FORMAT_FLAGS_DEFAULT | NMD_X86_FORMAT_FLAGS_BYTES); formatBuf.resize(strnlen(&formatBuf[0], formatBuf.size())); const auto& directory = mod.data_directory(IMAGE_DIRECTORY_ENTRY_EXPORT); @@ -110,25 +103,25 @@ void xivfixes::unhook_dll(bool bApply) { const auto functions = mod.span_as(exportDirectory.AddressOfFunctions, exportDirectory.NumberOfFunctions); std::string resolvedExportName; - for (size_t nameIndex = 0; nameIndex < names.size(); ++nameIndex) { + for (size_t j = 0; j < names.size(); ++j) { std::string_view name; - if (const char* pcszName = mod.address_as(names[nameIndex]); pcszName < mod.address() || pcszName >= mod.address() + mod.image_size()) { + if (const char* pcszName = mod.address_as(names[j]); pcszName < mod.address() || pcszName >= mod.address() + mod.image_size()) { if (IsBadReadPtr(pcszName, 256)) { - logging::W("{} Name #{} points to an invalid address outside the executable. Skipping.", LogTag, nameIndex); + logging::W("{} Name #{} points to an invalid address outside the executable. Skipping.", LogTag, j); continue; } name = std::string_view(pcszName, strnlen(pcszName, 256)); - logging::W("{} Name #{} points to a seemingly valid address outside the executable: {}", LogTag, nameIndex, name); + logging::W("{} Name #{} points to a seemingly valid address outside the executable: {}", LogTag, j, name); } - if (ordinals[nameIndex] >= functions.size()) { - logging::W("{} Ordinal #{} points to function index #{} >= #{}. Skipping.", LogTag, nameIndex, ordinals[nameIndex], functions.size()); + if (ordinals[j] >= functions.size()) { + logging::W("{} Ordinal #{} points to function index #{} >= #{}. Skipping.", LogTag, j, ordinals[j], functions.size()); continue; } - const auto rva = functions[ordinals[nameIndex]]; - if (rva == §ion[inst] - mod.address()) { + const auto rva = functions[ordinals[j]]; + if (rva == §ion[i] - mod.address()) { resolvedExportName = std::format("[export:{}]", name); break; } @@ -142,7 +135,7 @@ void xivfixes::unhook_dll(bool bApply) { if (doRestore) { if (!tenderizer) tenderizer.emplace(section, PAGE_EXECUTE_READWRITE); - memcpy(§ion[inst], &buf[inst], instructionLength); + memcpy(§ion[i], &buf[i], instructionLength); } } @@ -154,7 +147,21 @@ void xivfixes::unhook_dll(bool bApply) { } catch (const std::exception& e) { logging::W("{} Error: {}", LogTag, e.what()); } - } + }; + + // This is needed since try and __try cannot be used in the same function. Lambdas circumvent the limitation. + const auto windows_exception_handler = [&]() { + for (size_t i = 0; i < mods.size(); i++) { + const auto& mod = mods[i]; + __try { + test_module(i, mod); + } __except (EXCEPTION_EXECUTE_HANDLER) { + logging::W("{} Error: Access Violation", LogTag); + } + } + }; + + windows_exception_handler(); } using TFnGetInputDeviceManager = void* (); @@ -287,11 +294,13 @@ static bool is_xivalex(const std::filesystem::path& dllPath) { static bool is_openprocess_already_dealt_with() { static const auto s_value = [] { for (const auto& mod : utils::loaded_module::all_modules()) { - const auto path = mod.path().value_or({}); - if (path.empty()) - continue; - if (is_xivalex(path)) - return true; + try { + if (is_xivalex(mod.path())) + return true; + + } catch (...) { + // pass + } } return false; }(); @@ -639,27 +648,6 @@ void xivfixes::symbol_load_patches(bool bApply) { } } -void xivfixes::disable_game_debugging_protection(bool bApply) { - static const char* LogTag = "[xivfixes:disable_game_debugging_protection]"; - static std::optional> s_hookIsDebuggerPresent; - - if (bApply) { - if (!g_startInfo.BootEnabledGameFixes.contains("disable_game_debugging_protection")) { - logging::I("{} Turned off via environment variable.", LogTag); - return; - } - - s_hookIsDebuggerPresent.emplace("kernel32.dll!IsDebuggerPresent", "kernel32.dll", "IsDebuggerPresent", 0); - s_hookIsDebuggerPresent->set_detour([]() { return false; }); - logging::I("{} Enable", LogTag); - } else { - if (s_hookIsDebuggerPresent) { - logging::I("{} Disable", LogTag); - s_hookIsDebuggerPresent.reset(); - } - } -} - void xivfixes::apply_all(bool bApply) { for (const auto& [taskName, taskFunction] : std::initializer_list> { @@ -670,7 +658,6 @@ void xivfixes::apply_all(bool bApply) { { "backup_userdata_save", &backup_userdata_save }, { "prevent_icmphandle_crashes", &prevent_icmphandle_crashes }, { "symbol_load_patches", &symbol_load_patches }, - { "disable_game_debugging_protection", &disable_game_debugging_protection }, } ) { try { diff --git a/Dalamud.Boot/xivfixes.h b/Dalamud.Boot/xivfixes.h index 1cab3afae..afe2edb45 100644 --- a/Dalamud.Boot/xivfixes.h +++ b/Dalamud.Boot/xivfixes.h @@ -8,7 +8,6 @@ namespace xivfixes { void backup_userdata_save(bool bApply); void prevent_icmphandle_crashes(bool bApply); void symbol_load_patches(bool bApply); - void disable_game_debugging_protection(bool bApply); void apply_all(bool bApply); } diff --git a/Dalamud.Common/Dalamud.Common.csproj b/Dalamud.Common/Dalamud.Common.csproj index 774b551ad..594e09021 100644 --- a/Dalamud.Common/Dalamud.Common.csproj +++ b/Dalamud.Common/Dalamud.Common.csproj @@ -1,12 +1,13 @@ + net8.0 enable enable - + diff --git a/Dalamud.Common/DalamudStartInfo.cs b/Dalamud.Common/DalamudStartInfo.cs index 8c66a85ba..c3cc33a12 100644 --- a/Dalamud.Common/DalamudStartInfo.cs +++ b/Dalamud.Common/DalamudStartInfo.cs @@ -1,4 +1,3 @@ -using System.Runtime.InteropServices; using Dalamud.Common.Game; using Newtonsoft.Json; @@ -16,7 +15,7 @@ public record DalamudStartInfo /// public DalamudStartInfo() { - this.Platform = OSPlatform.Create("UNKNOWN"); + // ignored } /// @@ -34,12 +33,6 @@ public record DalamudStartInfo /// public string? ConfigurationPath { get; set; } - /// - /// Gets or sets the directory for temporary files. This directory needs to exist and be writable to the user. - /// It should also be predictable and easy for launchers to find. - /// - public string? TempDirectory { get; set; } - /// /// Gets or sets the path of the log files. /// @@ -65,12 +58,6 @@ public record DalamudStartInfo /// public ClientLanguage Language { get; set; } = ClientLanguage.English; - /// - /// Gets or sets the underlying platform�Dalamud runs on. - /// - [JsonConverter(typeof(OSPlatformConverter))] - public OSPlatform Platform { get; set; } - /// /// Gets or sets the current game version code. /// @@ -107,11 +94,6 @@ public record DalamudStartInfo /// public bool BootShowConsole { get; set; } - /// - /// Gets or sets a value indicating whether to enable D3D11 and DXGI debugging if possible. - /// - public bool BootDebugDirectX { get; set; } - /// /// Gets or sets a value indicating whether the fallback console should be shown, if needed. /// @@ -138,7 +120,7 @@ public record DalamudStartInfo public bool BootVehFull { get; set; } /// - /// Gets or sets a value indicating whether ETW should be enabled. + /// Gets or sets a value indicating whether or not ETW should be enabled. /// public bool BootEnableEtw { get; set; } diff --git a/Dalamud.Common/OSPlatformConverter.cs b/Dalamud.Common/OSPlatformConverter.cs deleted file mode 100644 index 62d2996d4..000000000 --- a/Dalamud.Common/OSPlatformConverter.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.Runtime.InteropServices; -using Newtonsoft.Json; - -namespace Dalamud.Common; - -/// -/// Converts a to and from a string (e.g. "FreeBSD"). -/// -public sealed class OSPlatformConverter : JsonConverter -{ - /// - /// Writes the JSON representation of the object. - /// - /// The to write to. - /// The value. - /// The calling serializer. - public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) - { - if (value == null) - { - writer.WriteNull(); - } - else if (value is OSPlatform) - { - writer.WriteValue(value.ToString()); - } - else - { - throw new JsonSerializationException("Expected OSPlatform object value"); - } - } - - /// - /// Reads the JSON representation of the object. - /// - /// The to read from. - /// Type of the object. - /// The existing property value of the JSON that is being converted. - /// The calling serializer. - /// The object value. - public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer) - { - if (reader.TokenType == JsonToken.Null) - { - return null; - } - else - { - if (reader.TokenType == JsonToken.String) - { - try - { - return OSPlatform.Create((string)reader.Value!); - } - catch (Exception ex) - { - throw new JsonSerializationException($"Error parsing OSPlatform string: {reader.Value}", ex); - } - } - else - { - throw new JsonSerializationException($"Unexpected token or value when parsing OSPlatform. Token: {reader.TokenType}, Value: {reader.Value}"); - } - } - } - - /// - /// Determines whether this instance can convert the specified object type. - /// - /// Type of the object. - /// - /// true if this instance can convert the specified object type; otherwise, false. - /// - public override bool CanConvert(Type objectType) - { - return objectType == typeof(OSPlatform); - } -} diff --git a/Dalamud.Common/Util/EnvironmentUtils.cs b/Dalamud.Common/Util/EnvironmentUtils.cs deleted file mode 100644 index d6cf65e3d..000000000 --- a/Dalamud.Common/Util/EnvironmentUtils.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -namespace Dalamud.Common.Util; - -public static class EnvironmentUtils -{ - /// - /// Attempts to get an environment variable using the Try pattern. - /// - /// The env var to get. - /// An output containing the env var, if present. - /// A boolean indicating whether the var was present. - public static bool TryGetEnvironmentVariable(string variableName, [NotNullWhen(true)] out string? value) - { - value = Environment.GetEnvironmentVariable(variableName); - return value != null; - } -} diff --git a/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj b/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj index 9b355a40b..b85607f0f 100644 --- a/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj +++ b/Dalamud.CorePlugin/Dalamud.CorePlugin.csproj @@ -1,7 +1,9 @@ Dalamud.CorePlugin + net8.0-windows x64 + 10.0 true false false @@ -25,9 +27,10 @@ - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -37,6 +40,15 @@ false + + false + + + false + + + false + diff --git a/Dalamud.CorePlugin/PluginImpl.cs b/Dalamud.CorePlugin/PluginImpl.cs index 1942e271b..951050b33 100644 --- a/Dalamud.CorePlugin/PluginImpl.cs +++ b/Dalamud.CorePlugin/PluginImpl.cs @@ -46,8 +46,6 @@ namespace Dalamud.CorePlugin #else private readonly WindowSystem windowSystem = new("Dalamud.CorePlugin"); - private readonly PluginWindow window; - private Localization localization; private IPluginLog pluginLog; @@ -65,8 +63,7 @@ namespace Dalamud.CorePlugin this.Interface = pluginInterface; this.pluginLog = log; - this.window = new PluginWindow(); - this.windowSystem.AddWindow(this.window); + this.windowSystem.AddWindow(new PluginWindow()); this.Interface.UiBuilder.Draw += this.OnDraw; this.Interface.UiBuilder.OpenConfigUi += this.OnOpenConfigUi; @@ -139,12 +136,12 @@ namespace Dalamud.CorePlugin { this.pluginLog.Information("Command called!"); - this.window.IsOpen ^= true; + // this.window.IsOpen = true; } private void OnOpenConfigUi() { - this.window.IsOpen = true; + // this.window.IsOpen = true; } private void OnOpenMainUi() diff --git a/Dalamud.CorePlugin/PluginWindow.cs b/Dalamud.CorePlugin/PluginWindow.cs index 3a17ea065..27be82f41 100644 --- a/Dalamud.CorePlugin/PluginWindow.cs +++ b/Dalamud.CorePlugin/PluginWindow.cs @@ -1,8 +1,8 @@ using System; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Windowing; +using ImGuiNET; namespace Dalamud.CorePlugin { diff --git a/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj b/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj new file mode 100644 index 000000000..c293e258c --- /dev/null +++ b/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj @@ -0,0 +1,110 @@ + + + + {8874326B-E755-4D13-90B4-59AB263A3E6B} + Dalamud_Injector_Boot + Debug + x64 + + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + 10.0 + Dalamud.Injector + + + + Application + true + v143 + false + Unicode + ..\bin\$(Configuration)\ + obj\$(Configuration)\ + + + + + Level3 + true + true + stdcpplatest + MultiThreadedDebug + pch.h + ProgramDatabase + CPPDLLTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + + + Console + true + false + ..\lib\CoreCLR;%(AdditionalLibraryDirectories) + $(OutDir)$(TargetName).Boot.pdb + + + + + true + false + _DEBUG;%(PreprocessorDefinitions) + + + false + false + + + + + true + true + NDEBUG;%(PreprocessorDefinitions) + + + true + true + + + + + + nethost.dll + PreserveNewest + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj.filters b/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj.filters new file mode 100644 index 000000000..8f4372d89 --- /dev/null +++ b/Dalamud.Injector.Boot/Dalamud.Injector.Boot.vcxproj.filters @@ -0,0 +1,67 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {4faac519-3a73-4b2b-96e7-fb597f02c0be} + ico;rc + + + + + Resource Files + + + + + Resource Files + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + \ No newline at end of file diff --git a/Dalamud.Injector/dalamud.ico b/Dalamud.Injector.Boot/dalamud.ico similarity index 100% rename from Dalamud.Injector/dalamud.ico rename to Dalamud.Injector.Boot/dalamud.ico diff --git a/Dalamud.Injector.Boot/main.cpp b/Dalamud.Injector.Boot/main.cpp new file mode 100644 index 000000000..df4120009 --- /dev/null +++ b/Dalamud.Injector.Boot/main.cpp @@ -0,0 +1,48 @@ +#define WIN32_LEAN_AND_MEAN + +#include +#include +#include +#include "..\Dalamud.Boot\logging.h" +#include "..\lib\CoreCLR\CoreCLR.h" +#include "..\lib\CoreCLR\boot.h" + +int wmain(int argc, wchar_t** argv) +{ + // Take care: don't redirect stderr/out here, we need to write our pid to stdout for XL to read + //logging::start_file_logging("dalamud.injector.boot.log", false); + logging::I("Dalamud Injector, (c) 2021 XIVLauncher Contributors"); + logging::I("Built at : " __DATE__ "@" __TIME__); + + wchar_t _module_path[MAX_PATH]; + GetModuleFileNameW(NULL, _module_path, sizeof _module_path / 2); + std::filesystem::path fs_module_path(_module_path); + + std::wstring runtimeconfig_path = _wcsdup(fs_module_path.replace_filename(L"Dalamud.Injector.runtimeconfig.json").c_str()); + std::wstring module_path = _wcsdup(fs_module_path.replace_filename(L"Dalamud.Injector.dll").c_str()); + + // =========================================================================== // + + void* entrypoint_vfn; + const auto result = InitializeClrAndGetEntryPoint( + GetModuleHandleW(nullptr), + false, + runtimeconfig_path, + module_path, + L"Dalamud.Injector.EntryPoint, Dalamud.Injector", + L"Main", + L"Dalamud.Injector.EntryPoint+MainDelegate, Dalamud.Injector", + &entrypoint_vfn); + + if (FAILED(result)) + return result; + + typedef int (CORECLR_DELEGATE_CALLTYPE* custom_component_entry_point_fn)(int, wchar_t**); + custom_component_entry_point_fn entrypoint_fn = reinterpret_cast(entrypoint_vfn); + + logging::I("Running Dalamud Injector..."); + const auto ret = entrypoint_fn(argc, argv); + logging::I("Done!"); + + return ret; +} diff --git a/Dalamud.Injector.Boot/pch.h b/Dalamud.Injector.Boot/pch.h new file mode 100644 index 000000000..6f70f09be --- /dev/null +++ b/Dalamud.Injector.Boot/pch.h @@ -0,0 +1 @@ +#pragma once diff --git a/Dalamud.Injector.Boot/resources.rc b/Dalamud.Injector.Boot/resources.rc new file mode 100644 index 000000000..8369e82a1 --- /dev/null +++ b/Dalamud.Injector.Boot/resources.rc @@ -0,0 +1 @@ +MAINICON ICON "dalamud.ico" diff --git a/Dalamud.Injector/Dalamud.Injector.csproj b/Dalamud.Injector/Dalamud.Injector.csproj index a0b4f6451..1ff29ea66 100644 --- a/Dalamud.Injector/Dalamud.Injector.csproj +++ b/Dalamud.Injector/Dalamud.Injector.csproj @@ -1,7 +1,11 @@ + net8.0 win-x64 + x64 + x64;AnyCPU + 10.0 @@ -13,13 +17,12 @@ - Exe + Library ..\bin\$(Configuration)\ false false true false - dalamud.ico @@ -42,6 +45,10 @@ DEBUG;TRACE + + $(MSBuildProjectDirectory)\ + $(AppOutputBase)=C:\goatsoft\companysecrets\injector\ + IDE0003;IDE0044;IDE1006;CS1591;CS1701;CS1702 @@ -53,18 +60,17 @@ - - - - - - - - - - - - + + + + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Dalamud.Injector/Program.cs b/Dalamud.Injector/EntryPoint.cs similarity index 82% rename from Dalamud.Injector/Program.cs rename to Dalamud.Injector/EntryPoint.cs index 13fcacef2..6507436c2 100644 --- a/Dalamud.Injector/Program.cs +++ b/Dalamud.Injector/EntryPoint.cs @@ -11,34 +11,47 @@ using System.Text.RegularExpressions; using Dalamud.Common; using Dalamud.Common.Game; -using Dalamud.Common.Util; using Newtonsoft.Json; using Reloaded.Memory.Buffers; using Serilog; using Serilog.Core; using Serilog.Events; -using Windows.Win32.Foundation; -using Windows.Win32.UI.WindowsAndMessaging; + +using static Dalamud.Injector.NativeFunctions; namespace Dalamud.Injector { /// /// Entrypoint to the program. /// - public sealed class Program + public sealed class EntryPoint { + /// + /// A delegate used during initialization of the CLR from Dalamud.Injector.Boot. + /// + /// Count of arguments. + /// char** string arguments. + /// Return value (HRESULT). + public delegate int MainDelegate(int argc, IntPtr argvPtr); + /// /// Start the Dalamud injector. /// - /// Command line arguments. + /// Count of arguments. + /// byte** string arguments. /// Return value (HRESULT). - public static int Main(string[] argsArray) + public static int Main(int argc, IntPtr argvPtr) { try { - // API14 TODO: Refactor - var args = argsArray.ToList(); - args.Insert(0, Assembly.GetExecutingAssembly().Location); + List args = new(argc); + + unsafe + { + var argv = (IntPtr*)argvPtr; + for (var i = 0; i < argc; i++) + args.Add(Marshal.PtrToStringUni(argv[i])); + } Init(args); args.Remove("-v"); // Remove "verbose" flag @@ -76,13 +89,11 @@ namespace Dalamud.Injector startInfo = ExtractAndInitializeStartInfoFromArguments(startInfo, args); // Remove already handled arguments - args.Remove("--debug-directx"); args.Remove("--console"); args.Remove("--msgbox1"); args.Remove("--msgbox2"); args.Remove("--msgbox3"); args.Remove("--etw"); - args.Remove("--no-legacy-corrupted-state-exceptions"); args.Remove("--veh"); args.Remove("--veh-full"); args.Remove("--no-plugin"); @@ -251,35 +262,6 @@ namespace Dalamud.Injector } } - private static OSPlatform DetectPlatformHeuristic() - { - var ntdll = Windows.Win32.PInvoke.GetModuleHandle("ntdll.dll"); - var wineServerCallPtr = Windows.Win32.PInvoke.GetProcAddress(ntdll, "wine_server_call"); - var wineGetHostVersionPtr = Windows.Win32.PInvoke.GetProcAddress(ntdll, "wine_get_host_version"); - var winePlatform = GetWinePlatform(wineGetHostVersionPtr); - var isWine = wineServerCallPtr != nint.Zero; - - static unsafe string? GetWinePlatform(nint wineGetHostVersionPtr) - { - if (wineGetHostVersionPtr == nint.Zero) return null; - - var methodDelegate = (delegate* unmanaged[Cdecl])wineGetHostVersionPtr; - methodDelegate(out var platformPtr, out var _); - - if (platformPtr == null) return null; - - return Marshal.PtrToStringAnsi((nint)platformPtr); - } - - if (!isWine) - return OSPlatform.Windows; - - if (winePlatform == "Darwin") - return OSPlatform.OSX; - - return OSPlatform.Linux; - } - private static DalamudStartInfo ExtractAndInitializeStartInfoFromArguments(DalamudStartInfo? startInfo, List args) { int len; @@ -291,19 +273,13 @@ namespace Dalamud.Injector var configurationPath = startInfo.ConfigurationPath; var pluginDirectory = startInfo.PluginDirectory; var assetDirectory = startInfo.AssetDirectory; - var tempDirectory = startInfo.TempDirectory; var delayInitializeMs = startInfo.DelayInitializeMs; var logName = startInfo.LogName; var logPath = startInfo.LogPath; var languageStr = startInfo.Language.ToString().ToLowerInvariant(); - var platformStr = startInfo.Platform.ToString().ToLowerInvariant(); var unhandledExceptionStr = startInfo.UnhandledException.ToString().ToLowerInvariant(); var troubleshootingData = "{\"empty\": true, \"description\": \"No troubleshooting data supplied.\"}"; - // env vars are brought in prior to launch args, since args can override them. - if (EnvironmentUtils.TryGetEnvironmentVariable("XL_PLATFORM", out var xlPlatformEnv)) - platformStr = xlPlatformEnv.ToLowerInvariant(); - for (var i = 2; i < args.Count; i++) { if (args[i].StartsWith(key = "--dalamud-working-directory=")) @@ -322,10 +298,6 @@ namespace Dalamud.Injector { assetDirectory = args[i][key.Length..]; } - else if (args[i].StartsWith(key = "--dalamud-temp-directory=")) - { - tempDirectory = args[i][key.Length..]; - } else if (args[i].StartsWith(key = "--dalamud-delay-initialize=")) { delayInitializeMs = int.Parse(args[i][key.Length..]); @@ -334,10 +306,6 @@ namespace Dalamud.Injector { languageStr = args[i][key.Length..].ToLowerInvariant(); } - else if (args[i].StartsWith(key = "--dalamud-platform=")) - { - platformStr = args[i][key.Length..].ToLowerInvariant(); - } else if (args[i].StartsWith(key = "--dalamud-tspack-b64=")) { troubleshootingData = Encoding.UTF8.GetString(Convert.FromBase64String(args[i][key.Length..])); @@ -409,38 +377,11 @@ namespace Dalamud.Injector throw new CommandLineException($"\"{languageStr}\" is not a valid supported language."); } - OSPlatform platform; - - // covers both win32 and Windows - if (platformStr[0..(len = Math.Min(platformStr.Length, (key = "win").Length))] == key[0..len]) - { - platform = OSPlatform.Windows; - } - else if (platformStr[0..(len = Math.Min(platformStr.Length, (key = "linux").Length))] == key[0..len]) - { - platform = OSPlatform.Linux; - } - else if (platformStr[0..(len = Math.Min(platformStr.Length, (key = "macos").Length))] == key[0..len]) - { - platform = OSPlatform.OSX; - } - else if (platformStr[0..(len = Math.Min(platformStr.Length, (key = "osx").Length))] == key[0..len]) - { - platform = OSPlatform.OSX; - } - else - { - platform = DetectPlatformHeuristic(); - Log.Warning("Heuristically determined host system platform as {platform}", platform); - } - startInfo.WorkingDirectory = workingDirectory; startInfo.ConfigurationPath = configurationPath; startInfo.PluginDirectory = pluginDirectory; startInfo.AssetDirectory = assetDirectory; - startInfo.TempDirectory = tempDirectory; startInfo.Language = clientLanguage; - startInfo.Platform = platform; startInfo.DelayInitializeMs = delayInitializeMs; startInfo.GameVersion = null; startInfo.TroubleshootingPackData = troubleshootingData; @@ -456,7 +397,6 @@ namespace Dalamud.Injector startInfo.LogName ??= string.Empty; // Set boot defaults - startInfo.BootDebugDirectX = args.Contains("--debug-directx"); startInfo.BootShowConsole = args.Contains("--console"); startInfo.BootEnableEtw = args.Contains("--etw"); startInfo.BootLogPath = GetLogPath(startInfo.LogPath, "dalamud.boot", startInfo.LogName); @@ -469,7 +409,6 @@ namespace Dalamud.Injector "backup_userdata_save", "prevent_icmphandle_crashes", "symbol_load_patches", - "disable_game_debugging_protection", }; startInfo.BootDotnetOpenProcessHookMode = 0; startInfo.BootWaitMessageBox |= args.Contains("--msgbox1") ? 1 : 0; @@ -524,14 +463,13 @@ namespace Dalamud.Injector } Console.WriteLine("Specifying dalamud start info: [--dalamud-working-directory=path] [--dalamud-configuration-path=path]"); - Console.WriteLine(" [--dalamud-plugin-directory=path] [--dalamud-platform=win32|linux|macOS]"); + Console.WriteLine(" [--dalamud-plugin-directory=path]"); Console.WriteLine(" [--dalamud-asset-directory=path] [--dalamud-delay-initialize=0(ms)]"); Console.WriteLine(" [--dalamud-client-language=0-3|j(apanese)|e(nglish)|d|g(erman)|f(rench)]"); Console.WriteLine("Verbose logging:\t[-v]"); Console.WriteLine("Show Console:\t[--console] [--crash-handler-console]"); Console.WriteLine("Enable ETW:\t[--etw]"); - Console.WriteLine("Disable legacy corrupted state exceptions:\t[--no-legacy-corrupted-state-exceptions]"); Console.WriteLine("Enable VEH:\t[--veh], [--veh-full], [--unhandled-exception=default|stalldebug|none]"); Console.WriteLine("Show messagebox:\t[--msgbox1], [--msgbox2], [--msgbox3]"); Console.WriteLine("No plugins:\t[--no-plugin] [--no-3rd-plugin]"); @@ -612,13 +550,10 @@ namespace Dalamud.Injector if (warnManualInjection) { - var result = Windows.Win32.PInvoke.MessageBox( - HWND.Null, - $"Take care: you are manually injecting Dalamud into FFXIV({string.Join(", ", processes.Select(x => $"{x.Id}"))}).\n\nIf you are doing this to use plugins before they are officially whitelisted on patch days, things may go wrong and you may get into trouble.\nWe discourage you from doing this and you won't be warned again in-game.", - "Dalamud", - MESSAGEBOX_STYLE.MB_ICONWARNING | MESSAGEBOX_STYLE.MB_OKCANCEL); + var result = MessageBoxW(IntPtr.Zero, $"Take care: you are manually injecting Dalamud into FFXIV({string.Join(", ", processes.Select(x => $"{x.Id}"))}).\n\nIf you are doing this to use plugins before they are officially whitelisted on patch days, things may go wrong and you may get into trouble.\nWe discourage you from doing this and you won't be warned again in-game.", "Dalamud", MessageBoxType.IconWarning | MessageBoxType.OkCancel); - if (result == MESSAGEBOX_RESULT.IDCANCEL) + // IDCANCEL + if (result == 2) { Log.Information("User cancelled injection"); return -2; @@ -794,42 +729,15 @@ namespace Dalamud.Injector { try { - if (dalamudStartInfo.Platform == OSPlatform.Windows) - { - var appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); - var xivlauncherDir = Path.Combine(appDataDir, "XIVLauncher"); - var launcherConfigPath = Path.Combine(xivlauncherDir, "launcherConfigV3.json"); - gamePath = Path.Combine( - JsonSerializer.CreateDefault() - .Deserialize>( - new JsonTextReader(new StringReader(File.ReadAllText(launcherConfigPath))))["GamePath"], - "game", - "ffxiv_dx11.exe"); - Log.Information("Using game installation path configuration from from XIVLauncher: {0}", gamePath); - } - else if (dalamudStartInfo.Platform == OSPlatform.Linux) - { - var homeDir = $"Z:\\home\\{Environment.UserName}"; - var xivlauncherDir = Path.Combine(homeDir, ".xlcore"); - var launcherConfigPath = Path.Combine(xivlauncherDir, "launcher.ini"); - var config = File.ReadAllLines(launcherConfigPath) - .Where(line => line.Contains('=')) - .ToDictionary(line => line.Split('=')[0], line => line.Split('=')[1]); - gamePath = Path.Combine("Z:" + config["GamePath"].Replace('/', '\\'), "game", "ffxiv_dx11.exe"); - Log.Information("Using game installation path configuration from from XIVLauncher Core: {0}", gamePath); - } - else - { - var homeDir = $"Z:\\Users\\{Environment.UserName}"; - var xomlauncherDir = Path.Combine(homeDir, "Library", "Application Support", "XIV on Mac"); - // we could try to parse the binary plist file here if we really wanted to... - gamePath = Path.Combine(xomlauncherDir, "ffxiv", "game", "ffxiv_dx11.exe"); - Log.Information("Using default game installation path from XOM: {0}", gamePath); - } + var appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); + var xivlauncherDir = Path.Combine(appDataDir, "XIVLauncher"); + var launcherConfigPath = Path.Combine(xivlauncherDir, "launcherConfigV3.json"); + gamePath = Path.Combine(JsonSerializer.CreateDefault().Deserialize>(new JsonTextReader(new StringReader(File.ReadAllText(launcherConfigPath))))["GamePath"], "game", "ffxiv_dx11.exe"); + Log.Information("Using game installation path configuration from from XIVLauncher: {0}", gamePath); } catch (Exception) { - Log.Error("Failed to read launcher config to get the set-up game path, please specify one using -g"); + Log.Error("Failed to read launcherConfigV3.json to get the set-up game path, please specify one using -g"); return -1; } @@ -884,6 +792,20 @@ namespace Dalamud.Injector if (encryptArguments) { var rawTickCount = (uint)Environment.TickCount; + + if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + { + [System.Runtime.InteropServices.DllImport("c")] +#pragma warning disable SA1300 + static extern ulong clock_gettime_nsec_np(int clockId); +#pragma warning restore SA1300 + + const int CLOCK_MONOTONIC_RAW = 4; + var rawTickCountFixed = clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW) / 1000000; + Log.Information("ArgumentBuilder::DeriveKey() fixing up rawTickCount from {0} to {1} on macOS", rawTickCount, rawTickCountFixed); + rawTickCount = (uint)rawTickCountFixed; + } + var ticks = rawTickCount & 0xFFFF_FFFFu; var key = ticks & 0xFFFF_0000u; gameArguments.Insert(0, $"T={ticks}"); @@ -928,48 +850,30 @@ namespace Dalamud.Injector Inject(process, startInfo, false); } - var processHandleForOwner = HANDLE.Null; + var processHandleForOwner = IntPtr.Zero; if (handleOwner != IntPtr.Zero) { - unsafe + if (!DuplicateHandle(Process.GetCurrentProcess().Handle, process.Handle, handleOwner, out processHandleForOwner, 0, false, DuplicateOptions.SameAccess)) { - if (!Windows.Win32.PInvoke.DuplicateHandle( - new HANDLE(Process.GetCurrentProcess().Handle.ToPointer()), - new HANDLE(process.Handle.ToPointer()), - new HANDLE(handleOwner), - &processHandleForOwner, - 0, - false, - DUPLICATE_HANDLE_OPTIONS.DUPLICATE_SAME_ACCESS)) - { - Log.Warning("Failed to call DuplicateHandle: Win32 error code {0}", Marshal.GetLastWin32Error()); - } + Log.Warning("Failed to call DuplicateHandle: Win32 error code {0}", Marshal.GetLastWin32Error()); } } - Console.WriteLine($"{{\"pid\": {process.Id}, \"handle\": {(IntPtr)processHandleForOwner}}}"); + Console.WriteLine($"{{\"pid\": {process.Id}, \"handle\": {processHandleForOwner}}}"); Log.CloseAndFlush(); return 0; } - private static unsafe Process GetInheritableCurrentProcessHandle() + private static Process GetInheritableCurrentProcessHandle() { - var currentProcessHandle = new HANDLE(Process.GetCurrentProcess().Handle.ToPointer()); - var inheritableHandle = HANDLE.Null; - if (!Windows.Win32.PInvoke.DuplicateHandle( - currentProcessHandle, - currentProcessHandle, - currentProcessHandle, - &inheritableHandle, - 0, - true, - DUPLICATE_HANDLE_OPTIONS.DUPLICATE_SAME_ACCESS)) + if (!DuplicateHandle(Process.GetCurrentProcess().Handle, Process.GetCurrentProcess().Handle, Process.GetCurrentProcess().Handle, out var inheritableCurrentProcessHandle, 0, true, DuplicateOptions.SameAccess)) { - throw new Win32Exception("Failed to call DuplicateHandle"); + Log.Error("Failed to call DuplicateHandle: Win32 error code {0}", Marshal.GetLastWin32Error()); + return null; } - return new ExistingProcess(inheritableHandle); + return new ExistingProcess(inheritableCurrentProcessHandle); } private static int ProcessLaunchTestCommand(List args) @@ -1060,13 +964,13 @@ namespace Dalamud.Injector } injector.GetFunctionAddress(bootModule, "Initialize", out var initAddress); - var exitCode = injector.CallRemoteFunction(initAddress, startInfoAddress); + injector.CallRemoteFunction(initAddress, startInfoAddress, out var exitCode); // ====================================================== if (exitCode > 0) { - Log.Error("Dalamud.Boot::Initialize returned {ExitCode}", exitCode); + Log.Error($"Dalamud.Boot::Initialize returned {exitCode}"); return; } diff --git a/Dalamud.Injector/Injector.cs b/Dalamud.Injector/Injector.cs index 0b57e7cbd..17ca5ccb5 100644 --- a/Dalamud.Injector/Injector.cs +++ b/Dalamud.Injector/Injector.cs @@ -13,8 +13,8 @@ using Reloaded.Memory.Buffers; using Reloaded.Memory.Sources; using Reloaded.Memory.Utilities; using Serilog; -using Windows.Win32.Foundation; +using static Dalamud.Injector.NativeFunctions; using static Iced.Intel.AssemblerRegisters; namespace Dalamud.Injector @@ -88,7 +88,7 @@ namespace Dalamud.Injector if (lpParameter == 0) throw new Exception("Unable to allocate LoadLibraryW parameter"); - var err = this.CallRemoteFunction(this.loadLibraryShellPtr, lpParameter); + this.CallRemoteFunction(this.loadLibraryShellPtr, lpParameter, out var err); this.extMemory.Read(this.loadLibraryRetPtr, out address); if (address == IntPtr.Zero) throw new Exception($"LoadLibraryW(\"{modulePath}\") failure: {new Win32Exception((int)err).Message} ({err})"); @@ -108,7 +108,7 @@ namespace Dalamud.Injector if (lpParameter == 0) throw new Exception("Unable to allocate GetProcAddress parameter ptr"); - var err = this.CallRemoteFunction(this.getProcAddressShellPtr, lpParameter); + this.CallRemoteFunction(this.getProcAddressShellPtr, lpParameter, out var err); this.extMemory.Read(this.getProcAddressRetPtr, out address); if (address == 0) throw new Exception($"GetProcAddress(0x{module:X}, \"{functionName}\") failure: {new Win32Exception((int)err).Message} ({err})"); @@ -119,30 +119,27 @@ namespace Dalamud.Injector /// /// Method address. /// Parameter address. - /// Thread exit code. - public unsafe uint CallRemoteFunction(nuint methodAddress, nuint parameterAddress) + /// Thread exit code. + public void CallRemoteFunction(nuint methodAddress, nuint parameterAddress, out uint exitCode) { // Create and initialize a thread at our address and parameter address. - var threadHandle = Windows.Win32.PInvoke.CreateRemoteThread( - new HANDLE(this.targetProcess.Handle.ToPointer()), - null, + var threadHandle = CreateRemoteThread( + this.targetProcess.Handle, + IntPtr.Zero, UIntPtr.Zero, - (delegate* unmanaged[Stdcall])methodAddress, - parameterAddress.ToPointer(), - 0, // Run immediately - null); + methodAddress, + parameterAddress, + CreateThreadFlags.RunImmediately, + out _); if (threadHandle == IntPtr.Zero) throw new Exception($"CreateRemoteThread failure: {Marshal.GetLastWin32Error()}"); - _ = Windows.Win32.PInvoke.WaitForSingleObject(threadHandle, uint.MaxValue); + _ = WaitForSingleObject(threadHandle, uint.MaxValue); - uint exitCode = 0; - if (!Windows.Win32.PInvoke.GetExitCodeThread(threadHandle, &exitCode)) - throw new Exception($"GetExitCodeThread failure: {Marshal.GetLastWin32Error()}"); + GetExitCodeThread(threadHandle, out exitCode); - Windows.Win32.PInvoke.CloseHandle(threadHandle); - return exitCode; + CloseHandle(threadHandle); } private void SetupLoadLibrary(ProcessModule kernel32Module, ExportFunction[] kernel32Exports) diff --git a/Dalamud.Injector/NativeFunctions.cs b/Dalamud.Injector/NativeFunctions.cs new file mode 100644 index 000000000..2a4654aaf --- /dev/null +++ b/Dalamud.Injector/NativeFunctions.cs @@ -0,0 +1,914 @@ +using System; +using System.Runtime.InteropServices; + +namespace Dalamud.Injector +{ + /// + /// Native user32 functions. + /// + internal static partial class NativeFunctions + { + /// + /// MB_* from winuser. + /// + public enum MessageBoxType : uint + { + /// + /// The default value for any of the various subtypes. + /// + DefaultValue = 0x0, + + // To indicate the buttons displayed in the message box, specify one of the following values. + + /// + /// The message box contains three push buttons: Abort, Retry, and Ignore. + /// + AbortRetryIgnore = 0x2, + + /// + /// The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead + /// of MB_ABORTRETRYIGNORE. + /// + CancelTryContinue = 0x6, + + /// + /// Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends + /// a WM_HELP message to the owner. + /// + Help = 0x4000, + + /// + /// The message box contains one push button: OK. This is the default. + /// + Ok = DefaultValue, + + /// + /// The message box contains two push buttons: OK and Cancel. + /// + OkCancel = 0x1, + + /// + /// The message box contains two push buttons: Retry and Cancel. + /// + RetryCancel = 0x5, + + /// + /// The message box contains two push buttons: Yes and No. + /// + YesNo = 0x4, + + /// + /// The message box contains three push buttons: Yes, No, and Cancel. + /// + YesNoCancel = 0x3, + + // To display an icon in the message box, specify one of the following values. + + /// + /// An exclamation-point icon appears in the message box. + /// + IconExclamation = 0x30, + + /// + /// An exclamation-point icon appears in the message box. + /// + IconWarning = IconExclamation, + + /// + /// An icon consisting of a lowercase letter i in a circle appears in the message box. + /// + IconInformation = 0x40, + + /// + /// An icon consisting of a lowercase letter i in a circle appears in the message box. + /// + IconAsterisk = IconInformation, + + /// + /// A question-mark icon appears in the message box. + /// The question-mark message icon is no longer recommended because it does not clearly represent a specific type + /// of message and because the phrasing of a message as a question could apply to any message type. In addition, + /// users can confuse the message symbol question mark with Help information. Therefore, do not use this question + /// mark message symbol in your message boxes. The system continues to support its inclusion only for backward + /// compatibility. + /// + IconQuestion = 0x20, + + /// + /// A stop-sign icon appears in the message box. + /// + IconStop = 0x10, + + /// + /// A stop-sign icon appears in the message box. + /// + IconError = IconStop, + + /// + /// A stop-sign icon appears in the message box. + /// + IconHand = IconStop, + + // To indicate the default button, specify one of the following values. + + /// + /// The first button is the default button. + /// MB_DEFBUTTON1 is the default unless MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 is specified. + /// + DefButton1 = DefaultValue, + + /// + /// The second button is the default button. + /// + DefButton2 = 0x100, + + /// + /// The third button is the default button. + /// + DefButton3 = 0x200, + + /// + /// The fourth button is the default button. + /// + DefButton4 = 0x300, + + // To indicate the modality of the dialog box, specify one of the following values. + + /// + /// The user must respond to the message box before continuing work in the window identified by the hWnd parameter. + /// However, the user can move to the windows of other threads and work in those windows. Depending on the hierarchy + /// of windows in the application, the user may be able to move to other windows within the thread. All child windows + /// of the parent of the message box are automatically disabled, but pop-up windows are not. MB_APPLMODAL is the + /// default if neither MB_SYSTEMMODAL nor MB_TASKMODAL is specified. + /// + ApplModal = DefaultValue, + + /// + /// Same as MB_APPLMODAL except that the message box has the WS_EX_TOPMOST style. + /// Use system-modal message boxes to notify the user of serious, potentially damaging errors that require immediate + /// attention (for example, running out of memory). This flag has no effect on the user's ability to interact with + /// windows other than those associated with hWnd. + /// + SystemModal = 0x1000, + + /// + /// Same as MB_APPLMODAL except that all the top-level windows belonging to the current thread are disabled if the + /// hWnd parameter is NULL. Use this flag when the calling application or library does not have a window handle + /// available but still needs to prevent input to other windows in the calling thread without suspending other threads. + /// + TaskModal = 0x2000, + + // To specify other options, use one or more of the following values. + + /// + /// Same as desktop of the interactive window station. For more information, see Window Stations. If the current + /// input desktop is not the default desktop, MessageBox does not return until the user switches to the default + /// desktop. + /// + DefaultDesktopOnly = 0x20000, + + /// + /// The text is right-justified. + /// + Right = 0x80000, + + /// + /// Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems. + /// + RtlReading = 0x100000, + + /// + /// The message box becomes the foreground window. Internally, the system calls the SetForegroundWindow function + /// for the message box. + /// + SetForeground = 0x10000, + + /// + /// The message box is created with the WS_EX_TOPMOST window style. + /// + Topmost = 0x40000, + + /// + /// The caller is a service notifying the user of an event. The function displays a message box on the current active + /// desktop, even if there is no user logged on to the computer. + /// + ServiceNotification = 0x200000, + } + + /// + /// Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, + /// such as status or error information. The message box returns an integer value that indicates which button the user + /// clicked. + /// + /// + /// A handle to the owner window of the message box to be created. If this parameter is NULL, the message box has no + /// owner window. + /// + /// + /// The message to be displayed. If the string consists of more than one line, you can separate the lines using a carriage + /// return and/or linefeed character between each line. + /// + /// + /// The dialog box title. If this parameter is NULL, the default title is Error. + /// + /// The contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups + /// of flags. + /// + /// + /// If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or + /// the Cancel button is selected. If the message box has no Cancel button, pressing ESC will no effect - unless an + /// MB_OK button is present. If an MB_OK button is displayed and the user presses ESC, the return value will be IDOK. + /// If the function fails, the return value is zero.To get extended error information, call GetLastError. If the function + /// succeeds, the return value is one of the ID* enum values. + /// + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] + public static extern int MessageBoxW(IntPtr hWnd, string text, string caption, MessageBoxType type); + } + + /// + /// Native kernel32 functions. + /// + internal static partial class NativeFunctions + { + /// + /// MEM_* from memoryapi. + /// + [Flags] + public enum AllocationType + { + /// + /// To coalesce two adjacent placeholders, specify MEM_RELEASE | MEM_COALESCE_PLACEHOLDERS. When you coalesce + /// placeholders, lpAddress and dwSize must exactly match those of the placeholder. + /// + CoalescePlaceholders = 0x1, + + /// + /// Frees an allocation back to a placeholder (after you've replaced a placeholder with a private allocation using + /// VirtualAlloc2 or Virtual2AllocFromApp). To split a placeholder into two placeholders, specify + /// MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER. + /// + PreservePlaceholder = 0x2, + + /// + /// Allocates memory charges (from the overall size of memory and the paging files on disk) for the specified reserved + /// memory pages. The function also guarantees that when the caller later initially accesses the memory, the contents + /// will be zero. Actual physical pages are not allocated unless/until the virtual addresses are actually accessed. + /// To reserve and commit pages in one step, call VirtualAllocEx with MEM_COMMIT | MEM_RESERVE. Attempting to commit + /// a specific address range by specifying MEM_COMMIT without MEM_RESERVE and a non-NULL lpAddress fails unless the + /// entire range has already been reserved. The resulting error code is ERROR_INVALID_ADDRESS. An attempt to commit + /// a page that is already committed does not cause the function to fail. This means that you can commit pages without + /// first determining the current commitment state of each page. If lpAddress specifies an address within an enclave, + /// flAllocationType must be MEM_COMMIT. + /// + Commit = 0x1000, + + /// + /// Reserves a range of the process's virtual address space without allocating any actual physical storage in memory + /// or in the paging file on disk. You commit reserved pages by calling VirtualAllocEx again with MEM_COMMIT. To + /// reserve and commit pages in one step, call VirtualAllocEx with MEM_COMMIT | MEM_RESERVE. Other memory allocation + /// functions, such as malloc and LocalAlloc, cannot use reserved memory until it has been released. + /// + Reserve = 0x2000, + + /// + /// Decommits the specified region of committed pages. After the operation, the pages are in the reserved state. + /// The function does not fail if you attempt to decommit an uncommitted page. This means that you can decommit + /// a range of pages without first determining the current commitment state. The MEM_DECOMMIT value is not supported + /// when the lpAddress parameter provides the base address for an enclave. + /// + Decommit = 0x4000, + + /// + /// Releases the specified region of pages, or placeholder (for a placeholder, the address space is released and + /// available for other allocations). After this operation, the pages are in the free state. If you specify this + /// value, dwSize must be 0 (zero), and lpAddress must point to the base address returned by the VirtualAlloc function + /// when the region is reserved. The function fails if either of these conditions is not met. If any pages in the + /// region are committed currently, the function first decommits, and then releases them. The function does not + /// fail if you attempt to release pages that are in different states, some reserved and some committed. This means + /// that you can release a range of pages without first determining the current commitment state. + /// + Release = 0x8000, + + /// + /// Indicates that data in the memory range specified by lpAddress and dwSize is no longer of interest. The pages + /// should not be read from or written to the paging file. However, the memory block will be used again later, so + /// it should not be decommitted. This value cannot be used with any other value. Using this value does not guarantee + /// that the range operated on with MEM_RESET will contain zeros. If you want the range to contain zeros, decommit + /// the memory and then recommit it. When you use MEM_RESET, the VirtualAllocEx function ignores the value of fProtect. + /// However, you must still set fProtect to a valid protection value, such as PAGE_NOACCESS. VirtualAllocEx returns + /// an error if you use MEM_RESET and the range of memory is mapped to a file. A shared view is only acceptable + /// if it is mapped to a paging file. + /// + Reset = 0x80000, + + /// + /// MEM_RESET_UNDO should only be called on an address range to which MEM_RESET was successfully applied earlier. + /// It indicates that the data in the specified memory range specified by lpAddress and dwSize is of interest to + /// the caller and attempts to reverse the effects of MEM_RESET. If the function succeeds, that means all data in + /// the specified address range is intact. If the function fails, at least some of the data in the address range + /// has been replaced with zeroes. This value cannot be used with any other value. If MEM_RESET_UNDO is called on + /// an address range which was not MEM_RESET earlier, the behavior is undefined. When you specify MEM_RESET, the + /// VirtualAllocEx function ignores the value of flProtect. However, you must still set flProtect to a valid + /// protection value, such as PAGE_NOACCESS. + /// + ResetUndo = 0x1000000, + + /// + /// Reserves an address range that can be used to map Address Windowing Extensions (AWE) pages. This value must + /// be used with MEM_RESERVE and no other values. + /// + Physical = 0x400000, + + /// + /// Allocates memory at the highest possible address. This can be slower than regular allocations, especially when + /// there are many allocations. + /// + TopDown = 0x100000, + + /// + /// Causes the system to track pages that are written to in the allocated region. If you specify this value, you + /// must also specify MEM_RESERVE. To retrieve the addresses of the pages that have been written to since the region + /// was allocated or the write-tracking state was reset, call the GetWriteWatch function. To reset the write-tracking + /// state, call GetWriteWatch or ResetWriteWatch. The write-tracking feature remains enabled for the memory region + /// until the region is freed. + /// + WriteWatch = 0x200000, + + /// + /// Allocates memory using large page support. The size and alignment must be a multiple of the large-page minimum. + /// To obtain this value, use the GetLargePageMinimum function. If you specify this value, you must also specify + /// MEM_RESERVE and MEM_COMMIT. + /// + LargePages = 0x20000000, + } + + /// + /// Unprefixed flags from CreateRemoteThread. + /// + [Flags] + public enum CreateThreadFlags + { + /// + /// The thread runs immediately after creation. + /// + RunImmediately = 0x0, + + /// + /// The thread is created in a suspended state, and does not run until the ResumeThread function is called. + /// + CreateSuspended = 0x4, + + /// + /// The dwStackSize parameter specifies the initial reserve size of the stack. If this flag is not specified, dwStackSize specifies the commit size. + /// + StackSizeParamIsReservation = 0x10000, + } + + /// + /// DUPLICATE_* values for DuplicateHandle's dwDesiredAccess. + /// + [Flags] + public enum DuplicateOptions : uint + { + /// + /// Closes the source handle. This occurs regardless of any error status returned. + /// + CloseSource = 0x00000001, + + /// + /// Ignores the dwDesiredAccess parameter. The duplicate handle has the same access as the source handle. + /// + SameAccess = 0x00000002, + } + + /// + /// PAGE_* from memoryapi. + /// + [Flags] + public enum MemoryProtection + { + /// + /// Enables execute access to the committed region of pages. An attempt to write to the committed region results + /// in an access violation. This flag is not supported by the CreateFileMapping function. + /// + Execute = 0x10, + + /// + /// Enables execute or read-only access to the committed region of pages. An attempt to write to the committed region + /// results in an access violation. + /// + ExecuteRead = 0x20, + + /// + /// Enables execute, read-only, or read/write access to the committed region of pages. + /// + ExecuteReadWrite = 0x40, + + /// + /// Enables execute, read-only, or copy-on-write access to a mapped view of a file mapping object. An attempt to + /// write to a committed copy-on-write page results in a private copy of the page being made for the process. The + /// private page is marked as PAGE_EXECUTE_READWRITE, and the change is written to the new page. This flag is not + /// supported by the VirtualAlloc or VirtualAllocEx functions. + /// + ExecuteWriteCopy = 0x80, + + /// + /// Disables all access to the committed region of pages. An attempt to read from, write to, or execute the committed + /// region results in an access violation. This flag is not supported by the CreateFileMapping function. + /// + NoAccess = 0x01, + + /// + /// Enables read-only access to the committed region of pages. An attempt to write to the committed region results + /// in an access violation. If Data Execution Prevention is enabled, an attempt to execute code in the committed + /// region results in an access violation. + /// + ReadOnly = 0x02, + + /// + /// Enables read-only or read/write access to the committed region of pages. If Data Execution Prevention is enabled, + /// attempting to execute code in the committed region results in an access violation. + /// + ReadWrite = 0x04, + + /// + /// Enables read-only or copy-on-write access to a mapped view of a file mapping object. An attempt to write to + /// a committed copy-on-write page results in a private copy of the page being made for the process. The private + /// page is marked as PAGE_READWRITE, and the change is written to the new page. If Data Execution Prevention is + /// enabled, attempting to execute code in the committed region results in an access violation. This flag is not + /// supported by the VirtualAlloc or VirtualAllocEx functions. + /// + WriteCopy = 0x08, + + /// + /// Sets all locations in the pages as invalid targets for CFG. Used along with any execute page protection like + /// PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE and PAGE_EXECUTE_WRITECOPY. Any indirect call to locations + /// in those pages will fail CFG checks and the process will be terminated. The default behavior for executable + /// pages allocated is to be marked valid call targets for CFG. This flag is not supported by the VirtualProtect + /// or CreateFileMapping functions. + /// + TargetsInvalid = 0x40000000, + + /// + /// Pages in the region will not have their CFG information updated while the protection changes for VirtualProtect. + /// For example, if the pages in the region was allocated using PAGE_TARGETS_INVALID, then the invalid information + /// will be maintained while the page protection changes. This flag is only valid when the protection changes to + /// an executable type like PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE and PAGE_EXECUTE_WRITECOPY. + /// The default behavior for VirtualProtect protection change to executable is to mark all locations as valid call + /// targets for CFG. + /// + TargetsNoUpdate = TargetsInvalid, + + /// + /// Pages in the region become guard pages. Any attempt to access a guard page causes the system to raise a + /// STATUS_GUARD_PAGE_VIOLATION exception and turn off the guard page status. Guard pages thus act as a one-time + /// access alarm. For more information, see Creating Guard Pages. When an access attempt leads the system to turn + /// off guard page status, the underlying page protection takes over. If a guard page exception occurs during a + /// system service, the service typically returns a failure status indicator. This value cannot be used with + /// PAGE_NOACCESS. This flag is not supported by the CreateFileMapping function. + /// + Guard = 0x100, + + /// + /// Sets all pages to be non-cachable. Applications should not use this attribute except when explicitly required + /// for a device. Using the interlocked functions with memory that is mapped with SEC_NOCACHE can result in an + /// EXCEPTION_ILLEGAL_INSTRUCTION exception. The PAGE_NOCACHE flag cannot be used with the PAGE_GUARD, PAGE_NOACCESS, + /// or PAGE_WRITECOMBINE flags. The PAGE_NOCACHE flag can be used only when allocating private memory with the + /// VirtualAlloc, VirtualAllocEx, or VirtualAllocExNuma functions. To enable non-cached memory access for shared + /// memory, specify the SEC_NOCACHE flag when calling the CreateFileMapping function. + /// + NoCache = 0x200, + + /// + /// Sets all pages to be write-combined. Applications should not use this attribute except when explicitly required + /// for a device. Using the interlocked functions with memory that is mapped as write-combined can result in an + /// EXCEPTION_ILLEGAL_INSTRUCTION exception. The PAGE_WRITECOMBINE flag cannot be specified with the PAGE_NOACCESS, + /// PAGE_GUARD, and PAGE_NOCACHE flags. The PAGE_WRITECOMBINE flag can be used only when allocating private memory + /// with the VirtualAlloc, VirtualAllocEx, or VirtualAllocExNuma functions. To enable write-combined memory access + /// for shared memory, specify the SEC_WRITECOMBINE flag when calling the CreateFileMapping function. + /// + WriteCombine = 0x400, + } + + /// + /// PROCESS_* from processthreadsapi. + /// + [Flags] + public enum ProcessAccessFlags : uint + { + /// + /// All possible access rights for a process object. + /// + AllAccess = 0x001F0FFF, + + /// + /// Required to create a process. + /// + CreateProcess = 0x0080, + + /// + /// Required to create a thread. + /// + CreateThread = 0x0002, + + /// + /// Required to duplicate a handle using DuplicateHandle. + /// + DupHandle = 0x0040, + + /// + /// Required to retrieve certain information about a process, such as its token, exit code, + /// and priority class (see OpenProcessToken). + /// + QueryInformation = 0x0400, + + /// + /// Required to retrieve certain information about a process(see GetExitCodeProcess, GetPriorityClass, IsProcessInJob, + /// QueryFullProcessImageName). A handle that has the PROCESS_QUERY_INFORMATION access right is automatically granted + /// PROCESS_QUERY_LIMITED_INFORMATION. + /// + QueryLimitedInformation = 0x1000, + + /// + /// Required to set certain information about a process, such as its priority class (see SetPriorityClass). + /// + SetInformation = 0x0200, + + /// + /// Required to set memory limits using SetProcessWorkingSetSize. + /// + SetQuote = 0x0100, + + /// + /// Required to suspend or resume a process. + /// + SuspendResume = 0x0800, + + /// + /// Required to terminate a process using TerminateProcess. + /// + Terminate = 0x0001, + + /// + /// Required to perform an operation on the address space of a process(see VirtualProtectEx and WriteProcessMemory). + /// + VmOperation = 0x0008, + + /// + /// Required to read memory in a process using ReadProcessMemory. + /// + VmRead = 0x0010, + + /// + /// Required to write to memory in a process using WriteProcessMemory. + /// + VmWrite = 0x0020, + + /// + /// Required to wait for the process to terminate using the wait functions. + /// + Synchronize = 0x00100000, + } + + /// + /// WAIT_* from synchapi. + /// + public enum WaitResult + { + /// + /// The specified object is a mutex object that was not released by the thread that owned the mutex object + /// before the owning thread terminated.Ownership of the mutex object is granted to the calling thread and + /// the mutex state is set to nonsignaled. If the mutex was protecting persistent state information, you + /// should check it for consistency. + /// + Abandoned = 0x80, + + /// + /// The state of the specified object is signaled. + /// + Object0 = 0x0, + + /// + /// The time-out interval elapsed, and the object's state is nonsignaled. + /// + Timeout = 0x102, + + /// + /// The function has failed. To get extended error information, call GetLastError. + /// + WAIT_FAILED = 0xFFFFFFF, + } + + /// + /// Closes an open object handle. + /// + /// + /// A valid handle to an open object. + /// + /// + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error + /// information, call GetLastError. If the application is running under a debugger, the function will throw an exception if it receives + /// either a handle value that is not valid or a pseudo-handle value. This can happen if you close a handle twice, or if you call + /// CloseHandle on a handle returned by the FindFirstFile function instead of calling the FindClose function. + /// + [DllImport("kernel32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + public static extern bool CloseHandle(IntPtr hObject); + + /// + /// Creates a thread that runs in the virtual address space of another process. Use the CreateRemoteThreadEx function + /// to create a thread that runs in the virtual address space of another process and optionally specify extended attributes. + /// + /// + /// A handle to the process in which the thread is to be created. The handle must have the PROCESS_CREATE_THREAD, + /// PROCESS_QUERY_INFORMATION, PROCESS_VM_OPERATION, PROCESS_VM_WRITE, and PROCESS_VM_READ access rights, and may fail without + /// these rights on certain platforms. For more information, see Process Security and Access Rights. + /// + /// + /// A pointer to a SECURITY_ATTRIBUTES structure that specifies a security descriptor for the new thread and determines whether + /// child processes can inherit the returned handle. If lpThreadAttributes is NULL, the thread gets a default security descriptor + /// and the handle cannot be inherited. The access control lists (ACL) in the default security descriptor for a thread come from + /// the primary token of the creator. + /// + /// + /// The initial size of the stack, in bytes. The system rounds this value to the nearest page. If this parameter is 0 (zero), the + /// new thread uses the default size for the executable. For more information, see Thread Stack Size. + /// + /// + /// A pointer to the application-defined function of type LPTHREAD_START_ROUTINE to be executed by the thread and represents the + /// starting address of the thread in the remote process. The function must exist in the remote process. For more information, + /// see ThreadProc. + /// + /// + /// A pointer to a variable to be passed to the thread function. + /// + /// + /// The flags that control the creation of the thread. + /// + /// + /// A pointer to a variable that receives the thread identifier. If this parameter is NULL, the thread identifier is not returned. + /// + /// + /// If the function succeeds, the return value is a handle to the new thread. If the function fails, the return value is + /// NULL.To get extended error information, call GetLastError. Note that CreateRemoteThread may succeed even if lpStartAddress + /// points to data, code, or is not accessible. If the start address is invalid when the thread runs, an exception occurs, and + /// the thread terminates. Thread termination due to a invalid start address is handled as an error exit for the thread's process. + /// This behavior is similar to the asynchronous nature of CreateProcess, where the process is created even if it refers to + /// invalid or missing dynamic-link libraries (DLL). + /// + [DllImport("kernel32.dll", SetLastError = true)] + public static extern IntPtr CreateRemoteThread( + IntPtr hProcess, + IntPtr lpThreadAttributes, + UIntPtr dwStackSize, + nuint lpStartAddress, + nuint lpParameter, + CreateThreadFlags dwCreationFlags, + out uint lpThreadId); + + /// + /// Retrieves the termination status of the specified thread. + /// + /// + /// A handle to the thread. The handle must have the THREAD_QUERY_INFORMATION or THREAD_QUERY_LIMITED_INFORMATION + /// access right.For more information, see Thread Security and Access Rights. + /// + /// + /// A pointer to a variable to receive the thread termination status. + /// + /// + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get + /// extended error information, call GetLastError. + /// + [DllImport("kernel32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + public static extern bool GetExitCodeThread(IntPtr hThread, out uint lpExitCode); + + /// + /// Opens an existing local process object. + /// + /// + /// The access to the process object. This access right is checked against the security descriptor for the process. This parameter can be one or + /// more of the process access rights. If the caller has enabled the SeDebugPrivilege privilege, the requested access is granted regardless of the + /// contents of the security descriptor. + /// + /// + /// If this value is TRUE, processes created by this process will inherit the handle. Otherwise, the processes do not inherit this handle. + /// + /// + /// The identifier of the local process to be opened. If the specified process is the System Idle Process(0x00000000), the function fails and the + /// last error code is ERROR_INVALID_PARAMETER.If the specified process is the System process or one of the Client Server Run-Time Subsystem(CSRSS) + /// processes, this function fails and the last error code is ERROR_ACCESS_DENIED because their access restrictions prevent user-level code from + /// opening them. If you are using GetCurrentProcessId as an argument to this function, consider using GetCurrentProcess instead of OpenProcess, for + /// improved performance. + /// + /// + /// If the function succeeds, the return value is an open handle to the specified process. + /// If the function fails, the return value is NULL.To get extended error information, call GetLastError. + /// + [DllImport("kernel32.dll", SetLastError = true)] + public static extern IntPtr OpenProcess( + ProcessAccessFlags dwDesiredAccess, + bool bInheritHandle, + int dwProcessId); + + /// + /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualallocex. + /// Reserves, commits, or changes the state of a region of memory within the virtual address space of a specified process. + /// The function initializes the memory it allocates to zero. To specify the NUMA node for the physical memory, see + /// VirtualAllocExNuma. + /// + /// + /// The handle to a process. The function allocates memory within the virtual address space of this process. The handle + /// must have the PROCESS_VM_OPERATION access right. For more information, see Process Security and Access Rights. + /// + /// + /// The pointer that specifies a desired starting address for the region of pages that you want to allocate. If you + /// are reserving memory, the function rounds this address down to the nearest multiple of the allocation granularity. + /// If you are committing memory that is already reserved, the function rounds this address down to the nearest page + /// boundary. To determine the size of a page and the allocation granularity on the host computer, use the GetSystemInfo + /// function. If lpAddress is NULL, the function determines where to allocate the region. If this address is within + /// an enclave that you have not initialized by calling InitializeEnclave, VirtualAllocEx allocates a page of zeros + /// for the enclave at that address. The page must be previously uncommitted, and will not be measured with the EEXTEND + /// instruction of the Intel Software Guard Extensions programming model. If the address in within an enclave that you + /// initialized, then the allocation operation fails with the ERROR_INVALID_ADDRESS error. + /// + /// + /// The size of the region of memory to allocate, in bytes. If lpAddress is NULL, the function rounds dwSize up to the + /// next page boundary. If lpAddress is not NULL, the function allocates all pages that contain one or more bytes in + /// the range from lpAddress to lpAddress+dwSize. This means, for example, that a 2-byte range that straddles a page + /// boundary causes the function to allocate both pages. + /// + /// + /// The type of memory allocation. This parameter must contain one of the MEM_* enum values. + /// + /// + /// The memory protection for the region of pages to be allocated. If the pages are being committed, you can specify + /// any one of the memory protection constants. + /// + /// + /// If the function succeeds, the return value is the base address of the allocated region of pages. If the function + /// fails, the return value is NULL.To get extended error information, call GetLastError. + /// + [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] + public static extern IntPtr VirtualAllocEx( + IntPtr hProcess, + IntPtr lpAddress, + int dwSize, + AllocationType flAllocationType, + MemoryProtection flProtect); + + /// + /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualfreeex. + /// Releases, decommits, or releases and decommits a region of memory within the virtual address space of a specified + /// process. + /// + /// + /// A handle to a process. The function frees memory within the virtual address space of the process. The handle must + /// have the PROCESS_VM_OPERATION access right.For more information, see Process Security and Access Rights. + /// + /// + /// A pointer to the starting address of the region of memory to be freed. If the dwFreeType parameter is MEM_RELEASE, + /// lpAddress must be the base address returned by the VirtualAllocEx function when the region is reserved. + /// + /// + /// The size of the region of memory to free, in bytes. If the dwFreeType parameter is MEM_RELEASE, dwSize must be 0 + /// (zero). The function frees the entire region that is reserved in the initial allocation call to VirtualAllocEx. + /// If dwFreeType is MEM_DECOMMIT, the function decommits all memory pages that contain one or more bytes in the range + /// from the lpAddress parameter to (lpAddress+dwSize). This means, for example, that a 2-byte region of memory that + /// straddles a page boundary causes both pages to be decommitted. If lpAddress is the base address returned by + /// VirtualAllocEx and dwSize is 0 (zero), the function decommits the entire region that is allocated by VirtualAllocEx. + /// After that, the entire region is in the reserved state. + /// + /// + /// The type of free operation. This parameter must be one of the MEM_* enum values. + /// + /// + /// If the function succeeds, the return value is a nonzero value. If the function fails, the return value is 0 (zero). + /// To get extended error information, call GetLastError. + /// + [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] + public static extern bool VirtualFreeEx( + IntPtr hProcess, + IntPtr lpAddress, + int dwSize, + AllocationType dwFreeType); + + /// + /// Waits until the specified object is in the signaled state or the time-out interval elapses. To enter an alertable wait + /// state, use the WaitForSingleObjectEx function.To wait for multiple objects, use WaitForMultipleObjects. + /// + /// + /// A handle to the object. For a list of the object types whose handles can be specified, see the following Remarks section. + /// If this handle is closed while the wait is still pending, the function's behavior is undefined. The handle must have the + /// SYNCHRONIZE access right. For more information, see Standard Access Rights. + /// + /// + /// The time-out interval, in milliseconds. If a nonzero value is specified, the function waits until the object is signaled + /// or the interval elapses. If dwMilliseconds is zero, the function does not enter a wait state if the object is not signaled; + /// it always returns immediately. If dwMilliseconds is INFINITE, the function will return only when the object is signaled. + /// + /// + /// If the function succeeds, the return value indicates the event that caused the function to return. + /// It can be one of the WaitResult values. + /// + [DllImport("kernel32.dll", SetLastError = true)] + public static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds); + + /// + /// Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or + /// the operation fails. + /// + /// + /// A handle to the process memory to be modified. The handle must have PROCESS_VM_WRITE and PROCESS_VM_OPERATION access + /// to the process. + /// + /// + /// A pointer to the base address in the specified process to which data is written. Before data transfer occurs, the + /// system verifies that all data in the base address and memory of the specified size is accessible for write access, + /// and if it is not accessible, the function fails. + /// + /// + /// A pointer to the buffer that contains data to be written in the address space of the specified process. + /// + /// + /// The number of bytes to be written to the specified process. + /// + /// + /// A pointer to a variable that receives the number of bytes transferred into the specified process. This parameter + /// is optional. If lpNumberOfBytesWritten is NULL, the parameter is ignored. + /// + /// + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is 0 (zero). To get + /// extended error information, call GetLastError.The function fails if the requested write operation crosses into an + /// area of the process that is inaccessible. + /// + [DllImport("kernel32.dll", SetLastError = true)] + public static extern bool WriteProcessMemory( + IntPtr hProcess, + IntPtr lpBaseAddress, + byte[] lpBuffer, + int dwSize, + out IntPtr lpNumberOfBytesWritten); + + /// + /// Duplicates an object handle. + /// + /// + /// A handle to the process with the handle to be duplicated. + /// + /// The handle must have the PROCESS_DUP_HANDLE access right. + /// + /// + /// The handle to be duplicated. This is an open object handle that is valid in the context of the source process. + /// For a list of objects whose handles can be duplicated, see the following Remarks section. + /// + /// + /// A handle to the process that is to receive the duplicated handle. + /// + /// The handle must have the PROCESS_DUP_HANDLE access right. + /// + /// + /// A pointer to a variable that receives the duplicate handle. This handle value is valid in the context of the target process. + /// + /// If hSourceHandle is a pseudo handle returned by GetCurrentProcess or GetCurrentThread, DuplicateHandle converts it to a real handle to a process or thread, respectively. + /// + /// If lpTargetHandle is NULL, the function duplicates the handle, but does not return the duplicate handle value to the caller. This behavior exists only for backward compatibility with previous versions of this function. You should not use this feature, as you will lose system resources until the target process terminates. + /// + /// This parameter is ignored if hTargetProcessHandle is NULL. + /// + /// + /// The access requested for the new handle. For the flags that can be specified for each object type, see the following Remarks section. + /// + /// This parameter is ignored if the dwOptions parameter specifies the DUPLICATE_SAME_ACCESS flag. Otherwise, the flags that can be specified depend on the type of object whose handle is to be duplicated. + /// + /// This parameter is ignored if hTargetProcessHandle is NULL. + /// + /// + /// A variable that indicates whether the handle is inheritable. If TRUE, the duplicate handle can be inherited by new processes created by the target process. If FALSE, the new handle cannot be inherited. + /// + /// This parameter is ignored if hTargetProcessHandle is NULL. + /// + /// + /// Optional actions. + /// + /// + /// If the function succeeds, the return value is nonzero. + /// + /// If the function fails, the return value is zero. To get extended error information, call GetLastError. + /// + /// + /// See https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-duplicatehandle. + /// + [DllImport("kernel32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + public static extern bool DuplicateHandle( + IntPtr hSourceProcessHandle, + IntPtr hSourceHandle, + IntPtr hTargetProcessHandle, + out IntPtr lpTargetHandle, + uint dwDesiredAccess, + [MarshalAs(UnmanagedType.Bool)] bool bInheritHandle, + DuplicateOptions dwOptions); + } +} diff --git a/Dalamud.Injector/NativeMethods.json b/Dalamud.Injector/NativeMethods.json deleted file mode 100644 index ffb313dfc..000000000 --- a/Dalamud.Injector/NativeMethods.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://aka.ms/CsWin32.schema.json", - "allowMarshaling": false -} diff --git a/Dalamud.Injector/NativeMethods.txt b/Dalamud.Injector/NativeMethods.txt deleted file mode 100644 index ffcf192a2..000000000 --- a/Dalamud.Injector/NativeMethods.txt +++ /dev/null @@ -1,8 +0,0 @@ -CreateRemoteThread -WaitForSingleObject -GetExitCodeThread -DuplicateHandle - -MessageBox -GetModuleHandle -GetProcAddress diff --git a/Dalamud.Test/Dalamud.Test.csproj b/Dalamud.Test/Dalamud.Test.csproj index 488534e5e..28e326238 100644 --- a/Dalamud.Test/Dalamud.Test.csproj +++ b/Dalamud.Test/Dalamud.Test.csproj @@ -1,5 +1,13 @@ + + net8.0-windows + win-x64 + x64 + x64;AnyCPU + 11.0 + + Dalamud.Test Dalamud.Test @@ -42,19 +50,19 @@ - - - - - - - - - + + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Dalamud.Test/Game/Text/SeStringHandling/SeStringTests.cs b/Dalamud.Test/Game/Text/SeStringHandling/SeStringTests.cs index 2a19d6216..9a48a6615 100644 --- a/Dalamud.Test/Game/Text/SeStringHandling/SeStringTests.cs +++ b/Dalamud.Test/Game/Text/SeStringHandling/SeStringTests.cs @@ -1,10 +1,6 @@ -using System; -using System.IO; - +using System; using Dalamud.Configuration; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Game.Text.SeStringHandling.Payloads; - using Xunit; namespace Dalamud.Test.Game.Text.SeStringHandling @@ -54,41 +50,19 @@ namespace Dalamud.Test.Game.Text.SeStringHandling var config = new MockConfig { Text = seString }; PluginConfigurations.SerializeConfig(config); } - + [Fact] public void TestConfigDeserializable() { var builder = new SeStringBuilder(); var seString = builder.AddText("Some text").Build(); var config = new MockConfig { Text = seString }; - + // This relies on the type information being maintained, which is why we're using these // static methods instead of default serialization/deserialization. var configSerialized = PluginConfigurations.SerializeConfig(config); var configDeserialized = (MockConfig)PluginConfigurations.DeserializeConfig(configSerialized); Assert.Equal(config, configDeserialized); } - - [Theory] - [InlineData(49, 209)] - [InlineData(71, 7)] - [InlineData(62, 116)] - public void TestAutoTranslatePayloadReencode(uint group, uint key) - { - var payload = new AutoTranslatePayload(group, key); - - Assert.Equal(group, payload.Group); - Assert.Equal(key, payload.Key); - - var encoded = payload.Encode(); - using var stream = new MemoryStream(encoded); - using var reader = new BinaryReader(stream); - var decodedPayload = Payload.Decode(reader) as AutoTranslatePayload; - - Assert.Equal(group, decodedPayload.Group); - Assert.Equal(key, decodedPayload.Key); - - Assert.Equal(encoded, decodedPayload.Encode()); - } } } diff --git a/Dalamud.Test/Storage/ReliableFileStorageTests.cs b/Dalamud.Test/Storage/ReliableFileStorageTests.cs index 8a955e430..ff56293e0 100644 --- a/Dalamud.Test/Storage/ReliableFileStorageTests.cs +++ b/Dalamud.Test/Storage/ReliableFileStorageTests.cs @@ -31,19 +31,19 @@ public class ReliableFileStorageTests .Select( i => Parallel.ForEachAsync( Enumerable.Range(1, 100), - async (j, _) => + (j, _) => { if (i % 2 == 0) { // ReSharper disable once AccessToDisposedClosure - await rfs.Instance.WriteAllTextAsync(tempFile, j.ToString()); + rfs.Instance.WriteAllText(tempFile, j.ToString()); } else if (i % 3 == 0) { try { // ReSharper disable once AccessToDisposedClosure - await rfs.Instance.ReadAllTextAsync(tempFile); + rfs.Instance.ReadAllText(tempFile); } catch (FileNotFoundException) { @@ -54,6 +54,8 @@ public class ReliableFileStorageTests { File.Delete(tempFile); } + + return ValueTask.CompletedTask; }))); } @@ -110,41 +112,41 @@ public class ReliableFileStorageTests } [Fact] - public async Task Exists_WhenFileInBackup_ReturnsTrue() + public void Exists_WhenFileInBackup_ReturnsTrue() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); File.Delete(tempFile); Assert.True(rfs.Instance.Exists(tempFile)); } [Fact] - public async Task Exists_WhenFileInBackup_WithDifferentContainerId_ReturnsFalse() + public void Exists_WhenFileInBackup_WithDifferentContainerId_ReturnsFalse() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); File.Delete(tempFile); Assert.False(rfs.Instance.Exists(tempFile, Guid.NewGuid())); } [Fact] - public async Task WriteAllText_ThrowsIfPathIsEmpty() + public void WriteAllText_ThrowsIfPathIsEmpty() { using var rfs = CreateRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.WriteAllTextAsync("", TestFileContent1)); + Assert.Throws(() => rfs.Instance.WriteAllText("", TestFileContent1)); } [Fact] - public async Task WriteAllText_ThrowsIfPathIsNull() + public void WriteAllText_ThrowsIfPathIsNull() { using var rfs = CreateRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.WriteAllTextAsync(null!, TestFileContent1)); + Assert.Throws(() => rfs.Instance.WriteAllText(null!, TestFileContent1)); } [Fact] @@ -153,26 +155,26 @@ public class ReliableFileStorageTests var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); Assert.True(File.Exists(tempFile)); - Assert.Equal(TestFileContent1, await rfs.Instance.ReadAllTextAsync(tempFile, forceBackup: true)); + Assert.Equal(TestFileContent1, rfs.Instance.ReadAllText(tempFile, forceBackup: true)); Assert.Equal(TestFileContent1, await File.ReadAllTextAsync(tempFile)); } [Fact] - public async Task WriteAllText_SeparatesContainers() + public void WriteAllText_SeparatesContainers() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); var containerId = Guid.NewGuid(); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent2, containerId); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent2, containerId); File.Delete(tempFile); - Assert.Equal(TestFileContent1, await rfs.Instance.ReadAllTextAsync(tempFile, forceBackup: true)); - Assert.Equal(TestFileContent2, await rfs.Instance.ReadAllTextAsync(tempFile, forceBackup: true, containerId)); + Assert.Equal(TestFileContent1, rfs.Instance.ReadAllText(tempFile, forceBackup: true)); + Assert.Equal(TestFileContent2, rfs.Instance.ReadAllText(tempFile, forceBackup: true, containerId)); } [Fact] @@ -181,7 +183,7 @@ public class ReliableFileStorageTests var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateFailedRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); Assert.True(File.Exists(tempFile)); Assert.Equal(TestFileContent1, await File.ReadAllTextAsync(tempFile)); @@ -193,38 +195,38 @@ public class ReliableFileStorageTests var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent2); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent2); Assert.True(File.Exists(tempFile)); - Assert.Equal(TestFileContent2, await rfs.Instance.ReadAllTextAsync(tempFile, forceBackup: true)); + Assert.Equal(TestFileContent2, rfs.Instance.ReadAllText(tempFile, forceBackup: true)); Assert.Equal(TestFileContent2, await File.ReadAllTextAsync(tempFile)); } [Fact] - public async Task WriteAllText_SupportsNullContent() + public void WriteAllText_SupportsNullContent() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, null); + rfs.Instance.WriteAllText(tempFile, null); Assert.True(File.Exists(tempFile)); - Assert.Equal("", await rfs.Instance.ReadAllTextAsync(tempFile)); + Assert.Equal("", rfs.Instance.ReadAllText(tempFile)); } [Fact] - public async Task ReadAllText_ThrowsIfPathIsEmpty() + public void ReadAllText_ThrowsIfPathIsEmpty() { using var rfs = CreateRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.ReadAllTextAsync("")); + Assert.Throws(() => rfs.Instance.ReadAllText("")); } [Fact] - public async Task ReadAllText_ThrowsIfPathIsNull() + public void ReadAllText_ThrowsIfPathIsNull() { using var rfs = CreateRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.ReadAllTextAsync(null!)); + Assert.Throws(() => rfs.Instance.ReadAllText(null!)); } [Fact] @@ -234,40 +236,40 @@ public class ReliableFileStorageTests await File.WriteAllTextAsync(tempFile, TestFileContent1); using var rfs = CreateRfs(); - Assert.Equal(TestFileContent1, await rfs.Instance.ReadAllTextAsync(tempFile)); + Assert.Equal(TestFileContent1, rfs.Instance.ReadAllText(tempFile)); } [Fact] - public async Task ReadAllText_WhenFileMissingWithBackup_ReturnsContent() + public void ReadAllText_WhenFileMissingWithBackup_ReturnsContent() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); File.Delete(tempFile); - Assert.Equal(TestFileContent1, await rfs.Instance.ReadAllTextAsync(tempFile)); + Assert.Equal(TestFileContent1, rfs.Instance.ReadAllText(tempFile)); } [Fact] - public async Task ReadAllText_WhenFileMissingWithBackup_ThrowsWithDifferentContainerId() + public void ReadAllText_WhenFileMissingWithBackup_ThrowsWithDifferentContainerId() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); var containerId = Guid.NewGuid(); using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); File.Delete(tempFile); - await Assert.ThrowsAsync(async () => await rfs.Instance.ReadAllTextAsync(tempFile, containerId: containerId)); + Assert.Throws(() => rfs.Instance.ReadAllText(tempFile, containerId: containerId)); } [Fact] - public async Task ReadAllText_WhenFileMissing_ThrowsIfDbFailed() + public void ReadAllText_WhenFileMissing_ThrowsIfDbFailed() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateFailedRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.ReadAllTextAsync(tempFile)); + Assert.Throws(() => rfs.Instance.ReadAllText(tempFile)); } [Fact] @@ -276,7 +278,7 @@ public class ReliableFileStorageTests var tempFile = Path.Combine(CreateTempDir(), TestFileName); await File.WriteAllTextAsync(tempFile, TestFileContent1); using var rfs = CreateRfs(); - await rfs.Instance.ReadAllTextAsync(tempFile, text => Assert.Equal(TestFileContent1, text)); + rfs.Instance.ReadAllText(tempFile, text => Assert.Equal(TestFileContent1, text)); } [Fact] @@ -288,7 +290,7 @@ public class ReliableFileStorageTests var readerCalledOnce = false; using var rfs = CreateRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.ReadAllTextAsync(tempFile, Reader)); + Assert.Throws(() => rfs.Instance.ReadAllText(tempFile, Reader)); return; @@ -301,7 +303,7 @@ public class ReliableFileStorageTests } [Fact] - public async Task ReadAllText_WithReader_WhenReaderThrows_ReadsContentFromBackup() + public void ReadAllText_WithReader_WhenReaderThrows_ReadsContentFromBackup() { var tempFile = Path.Combine(CreateTempDir(), TestFileName); @@ -309,10 +311,10 @@ public class ReliableFileStorageTests var assertionCalled = false; using var rfs = CreateRfs(); - await rfs.Instance.WriteAllTextAsync(tempFile, TestFileContent1); + rfs.Instance.WriteAllText(tempFile, TestFileContent1); File.Delete(tempFile); - await rfs.Instance.ReadAllTextAsync(tempFile, Reader); + rfs.Instance.ReadAllText(tempFile, Reader); Assert.True(assertionCalled); return; @@ -333,17 +335,17 @@ public class ReliableFileStorageTests var tempFile = Path.Combine(CreateTempDir(), TestFileName); await File.WriteAllTextAsync(tempFile, TestFileContent1); using var rfs = CreateRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.ReadAllTextAsync(tempFile, _ => throw new FileNotFoundException())); + Assert.Throws(() => rfs.Instance.ReadAllText(tempFile, _ => throw new FileNotFoundException())); } [Theory] [InlineData(true)] [InlineData(false)] - public async Task ReadAllText_WhenFileDoesNotExist_Throws(bool forceBackup) + public void ReadAllText_WhenFileDoesNotExist_Throws(bool forceBackup) { var tempFile = Path.Combine(CreateTempDir(), TestFileName); using var rfs = CreateRfs(); - await Assert.ThrowsAsync(async () => await rfs.Instance.ReadAllTextAsync(tempFile, forceBackup)); + Assert.Throws(() => rfs.Instance.ReadAllText(tempFile, forceBackup)); } private static DisposableReliableFileStorage CreateRfs() diff --git a/Dalamud.sln b/Dalamud.sln index 758253b9c..22cc59a8d 100644 --- a/Dalamud.sln +++ b/Dalamud.sln @@ -1,4 +1,4 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 +Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.1.32319.34 MinimumVisualStudioVersion = 10.0.40219.1 @@ -6,28 +6,32 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig .gitignore = .gitignore + targets\Dalamud.Plugin.Bootstrap.targets = targets\Dalamud.Plugin.Bootstrap.targets + targets\Dalamud.Plugin.targets = targets\Dalamud.Plugin.targets + Directory.Build.props = Directory.Build.props tools\BannedSymbols.txt = tools\BannedSymbols.txt tools\dalamud.ruleset = tools\dalamud.ruleset - Directory.Build.props = Directory.Build.props - Directory.Packages.props = Directory.Packages.props EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "build", "build\build.csproj", "{94E5B016-02B1-459B-97D9-E783F28764B2}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dalamud", "Dalamud\Dalamud.csproj", "{B92DAB43-2279-4A2C-96E3-D9D5910EDBEA}" - ProjectSection(ProjectDependencies) = postProject - {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16} = {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16} - {8430077C-F736-4246-A052-8EA1CECE844E} = {8430077C-F736-4246-A052-8EA1CECE844E} - {F258347D-31BE-4605-98CE-40E43BDF6F9D} = {F258347D-31BE-4605-98CE-40E43BDF6F9D} - EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dalamud.Boot", "Dalamud.Boot\Dalamud.Boot.vcxproj", "{55198DC3-A03D-408E-A8EB-2077780C8576}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dalamud.Injector", "Dalamud.Injector\Dalamud.Injector.csproj", "{5B832F73-5F54-4ADC-870F-D0095EF72C9A}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dalamud.Injector.Boot", "Dalamud.Injector.Boot\Dalamud.Injector.Boot.vcxproj", "{8874326B-E755-4D13-90B4-59AB263A3E6B}" +EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dalamud.Test", "Dalamud.Test\Dalamud.Test.csproj", "{C8004563-1806-4329-844F-0EF6274291FC}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dependencies", "Dependencies", "{E15BDA6D-E881-4482-94BA-BE5527E917FF}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Interface", "Interface", "{E15BDA6D-E881-4482-94BA-BE5527E917FF}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImGui.NET-472", "lib\ImGuiScene\deps\ImGui.NET\src\ImGui.NET-472\ImGui.NET-472.csproj", "{0483026E-C6CE-4B1A-AA68-46544C08140B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImGuiScene", "lib\ImGuiScene\ImGuiScene\ImGuiScene.csproj", "{C0E7E797-4FBF-4F46-BC57-463F3719BA7A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SDL2-CS", "lib\ImGuiScene\deps\SDL2-CS\SDL2-CS.csproj", "{2F7FF0A8-B619-4572-86C7-71E46FE22FB8}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dalamud.CorePlugin", "Dalamud.CorePlugin\Dalamud.CorePlugin.csproj", "{4AFDB34A-7467-4D41-B067-53BC4101D9D0}" EndProject @@ -45,57 +49,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InteropGenerator", "lib\FFX EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InteropGenerator.Runtime", "lib\FFXIVClientStructs\InteropGenerator.Runtime\InteropGenerator.Runtime.csproj", "{A6AA1C3F-9470-4922-9D3F-D4549657AB22}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Utilities", "Utilities", "{8F079208-C227-4D96-9427-2BEBE0003944}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cimgui", "external\cimgui\cimgui.vcxproj", "{8430077C-F736-4246-A052-8EA1CECE844E}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "imgui", "imgui", "{DBE5345E-6594-4A59-B183-1C3D5592269D}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CS", "CS", "{8BBACF2D-7AB8-4610-A115-0E363D35C291}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cimplot", "external\cimplot\cimplot.vcxproj", "{76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cimguizmo", "external\cimguizmo\cimguizmo.vcxproj", "{F258347D-31BE-4605-98CE-40E43BDF6F9D}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.Bindings.ImGui", "imgui\Dalamud.Bindings.ImGui\Dalamud.Bindings.ImGui.csproj", "{B0AA8737-33A3-4766-8CBE-A48F2EF283BA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.Bindings.ImGuizmo", "imgui\Dalamud.Bindings.ImGuizmo\Dalamud.Bindings.ImGuizmo.csproj", "{5E6EDD75-AE95-43A6-9D67-95B840EB4B71}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.Bindings.ImPlot", "imgui\Dalamud.Bindings.ImPlot\Dalamud.Bindings.ImPlot.csproj", "{9C70BD06-D52C-425E-9C14-5D66BC6046EF}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Bindings", "Bindings", "{A217B3DF-607A-4EFB-B107-3C4809348043}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandaloneImGuiTestbed", "imgui\StandaloneImGuiTestbed\StandaloneImGuiTestbed.csproj", "{4702A911-2513-478C-A434-2776393FDE77}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImGuiScene", "imgui\ImGuiScene\ImGuiScene.csproj", "{66753AC7-0029-4373-9CC4-7760B1F46141}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Lumina", "Lumina", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Excel.Generator", "lib\Lumina.Excel\src\Lumina.Excel.Generator\Lumina.Excel.Generator.csproj", "{5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Excel", "lib\Lumina.Excel\src\Lumina.Excel\Lumina.Excel.csproj", "{88FB719B-EB41-73C5-8D25-C03E0C69904F}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Generators", "Source Generators", "{50BEC23B-FFFD-427B-A95D-27E1D1958FFF}" - ProjectSection(SolutionItems) = preProject - generators\Directory.Build.props = generators\Directory.Build.props - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.EnumGenerator", "generators\Dalamud.EnumGenerator\Dalamud.EnumGenerator\Dalamud.EnumGenerator.csproj", "{27AA9F87-D2AA-41D9-A559-0F1EBA38C5F8}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.EnumGenerator.Sample", "generators\Dalamud.EnumGenerator\Dalamud.EnumGenerator.Sample\Dalamud.EnumGenerator.Sample.csproj", "{8CDAEB2D-5022-450A-A97F-181C6270185F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dalamud.EnumGenerator.Tests", "generators\Dalamud.EnumGenerator\Dalamud.EnumGenerator.Tests\Dalamud.EnumGenerator.Tests.csproj", "{F5D92D2D-D36F-4471-B657-8B9AA6C98AD6}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {94E5B016-02B1-459B-97D9-E783F28764B2}.Debug|Any CPU.ActiveCfg = Debug|x64 - {94E5B016-02B1-459B-97D9-E783F28764B2}.Debug|Any CPU.Build.0 = Debug|x64 - {94E5B016-02B1-459B-97D9-E783F28764B2}.Release|Any CPU.ActiveCfg = Release|x64 - {94E5B016-02B1-459B-97D9-E783F28764B2}.Release|Any CPU.Build.0 = Release|x64 + {94E5B016-02B1-459B-97D9-E783F28764B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {94E5B016-02B1-459B-97D9-E783F28764B2}.Release|Any CPU.ActiveCfg = Release|Any CPU {B92DAB43-2279-4A2C-96E3-D9D5910EDBEA}.Debug|Any CPU.ActiveCfg = Debug|x64 {B92DAB43-2279-4A2C-96E3-D9D5910EDBEA}.Debug|Any CPU.Build.0 = Debug|x64 {B92DAB43-2279-4A2C-96E3-D9D5910EDBEA}.Release|Any CPU.ActiveCfg = Release|x64 @@ -108,10 +69,26 @@ Global {5B832F73-5F54-4ADC-870F-D0095EF72C9A}.Debug|Any CPU.Build.0 = Debug|x64 {5B832F73-5F54-4ADC-870F-D0095EF72C9A}.Release|Any CPU.ActiveCfg = Release|x64 {5B832F73-5F54-4ADC-870F-D0095EF72C9A}.Release|Any CPU.Build.0 = Release|x64 + {8874326B-E755-4D13-90B4-59AB263A3E6B}.Debug|Any CPU.ActiveCfg = Debug|x64 + {8874326B-E755-4D13-90B4-59AB263A3E6B}.Debug|Any CPU.Build.0 = Debug|x64 + {8874326B-E755-4D13-90B4-59AB263A3E6B}.Release|Any CPU.ActiveCfg = Release|x64 + {8874326B-E755-4D13-90B4-59AB263A3E6B}.Release|Any CPU.Build.0 = Release|x64 {C8004563-1806-4329-844F-0EF6274291FC}.Debug|Any CPU.ActiveCfg = Debug|x64 {C8004563-1806-4329-844F-0EF6274291FC}.Debug|Any CPU.Build.0 = Debug|x64 {C8004563-1806-4329-844F-0EF6274291FC}.Release|Any CPU.ActiveCfg = Release|x64 {C8004563-1806-4329-844F-0EF6274291FC}.Release|Any CPU.Build.0 = Release|x64 + {0483026E-C6CE-4B1A-AA68-46544C08140B}.Debug|Any CPU.ActiveCfg = Debug|x64 + {0483026E-C6CE-4B1A-AA68-46544C08140B}.Debug|Any CPU.Build.0 = Debug|x64 + {0483026E-C6CE-4B1A-AA68-46544C08140B}.Release|Any CPU.ActiveCfg = Release|x64 + {0483026E-C6CE-4B1A-AA68-46544C08140B}.Release|Any CPU.Build.0 = Release|x64 + {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Debug|Any CPU.ActiveCfg = Debug|x64 + {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Debug|Any CPU.Build.0 = Debug|x64 + {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Release|Any CPU.ActiveCfg = Release|x64 + {C0E7E797-4FBF-4F46-BC57-463F3719BA7A}.Release|Any CPU.Build.0 = Release|x64 + {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Debug|Any CPU.ActiveCfg = Debug|x64 + {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Debug|Any CPU.Build.0 = Debug|x64 + {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Release|Any CPU.ActiveCfg = Release|x64 + {2F7FF0A8-B619-4572-86C7-71E46FE22FB8}.Release|Any CPU.Build.0 = Release|x64 {4AFDB34A-7467-4D41-B067-53BC4101D9D0}.Debug|Any CPU.ActiveCfg = Debug|x64 {4AFDB34A-7467-4D41-B067-53BC4101D9D0}.Debug|Any CPU.Build.0 = Debug|x64 {4AFDB34A-7467-4D41-B067-53BC4101D9D0}.Release|Any CPU.ActiveCfg = Release|x64 @@ -120,22 +97,18 @@ Global {C9B87BD7-AF49-41C3-91F1-D550ADEB7833}.Debug|Any CPU.Build.0 = Debug|Any CPU {C9B87BD7-AF49-41C3-91F1-D550ADEB7833}.Release|Any CPU.ActiveCfg = Release|Any CPU {C9B87BD7-AF49-41C3-91F1-D550ADEB7833}.Release|Any CPU.Build.0 = Release|Any CPU - {E0D51896-604F-4B40-8CFE-51941607B3A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E0D51896-604F-4B40-8CFE-51941607B3A1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E0D51896-604F-4B40-8CFE-51941607B3A1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E0D51896-604F-4B40-8CFE-51941607B3A1}.Release|Any CPU.Build.0 = Release|Any CPU {317A264C-920B-44A1-8A34-F3A6827B0705}.Debug|Any CPU.ActiveCfg = Debug|x64 {317A264C-920B-44A1-8A34-F3A6827B0705}.Debug|Any CPU.Build.0 = Debug|x64 {317A264C-920B-44A1-8A34-F3A6827B0705}.Release|Any CPU.ActiveCfg = Release|x64 {317A264C-920B-44A1-8A34-F3A6827B0705}.Release|Any CPU.Build.0 = Release|x64 - {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Debug|Any CPU.ActiveCfg = Debug|x64 - {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Debug|Any CPU.Build.0 = Debug|x64 - {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Release|Any CPU.ActiveCfg = Release|x64 - {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Release|Any CPU.Build.0 = Release|x64 - {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Debug|Any CPU.ActiveCfg = Debug|x64 - {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Debug|Any CPU.Build.0 = Debug|x64 - {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Release|Any CPU.ActiveCfg = Release|x64 - {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Release|Any CPU.Build.0 = Release|x64 + {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F21B13D2-D7D0-4456-B70F-3F8D695064E2}.Release|Any CPU.Build.0 = Release|Any CPU + {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0}.Release|Any CPU.Build.0 = Release|Any CPU {3620414C-7DFC-423E-929F-310E19F5D930}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3620414C-7DFC-423E-929F-310E19F5D930}.Debug|Any CPU.Build.0 = Debug|Any CPU {3620414C-7DFC-423E-929F-310E19F5D930}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -144,85 +117,21 @@ Global {A6AA1C3F-9470-4922-9D3F-D4549657AB22}.Debug|Any CPU.Build.0 = Debug|Any CPU {A6AA1C3F-9470-4922-9D3F-D4549657AB22}.Release|Any CPU.ActiveCfg = Release|Any CPU {A6AA1C3F-9470-4922-9D3F-D4549657AB22}.Release|Any CPU.Build.0 = Release|Any CPU - {8430077C-F736-4246-A052-8EA1CECE844E}.Debug|Any CPU.ActiveCfg = Debug|x64 - {8430077C-F736-4246-A052-8EA1CECE844E}.Debug|Any CPU.Build.0 = Debug|x64 - {8430077C-F736-4246-A052-8EA1CECE844E}.Release|Any CPU.ActiveCfg = Release|x64 - {8430077C-F736-4246-A052-8EA1CECE844E}.Release|Any CPU.Build.0 = Release|x64 - {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16}.Debug|Any CPU.ActiveCfg = Debug|x64 - {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16}.Debug|Any CPU.Build.0 = Debug|x64 - {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16}.Release|Any CPU.ActiveCfg = Release|x64 - {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16}.Release|Any CPU.Build.0 = Release|x64 - {F258347D-31BE-4605-98CE-40E43BDF6F9D}.Debug|Any CPU.ActiveCfg = Debug|x64 - {F258347D-31BE-4605-98CE-40E43BDF6F9D}.Debug|Any CPU.Build.0 = Debug|x64 - {F258347D-31BE-4605-98CE-40E43BDF6F9D}.Release|Any CPU.ActiveCfg = Release|x64 - {F258347D-31BE-4605-98CE-40E43BDF6F9D}.Release|Any CPU.Build.0 = Release|x64 - {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Debug|Any CPU.ActiveCfg = Debug|x64 - {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Debug|Any CPU.Build.0 = Debug|x64 - {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Release|Any CPU.ActiveCfg = Release|x64 - {B0AA8737-33A3-4766-8CBE-A48F2EF283BA}.Release|Any CPU.Build.0 = Release|x64 - {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Debug|Any CPU.ActiveCfg = Debug|x64 - {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Debug|Any CPU.Build.0 = Debug|x64 - {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Release|Any CPU.ActiveCfg = Release|x64 - {5E6EDD75-AE95-43A6-9D67-95B840EB4B71}.Release|Any CPU.Build.0 = Release|x64 - {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Debug|Any CPU.ActiveCfg = Debug|x64 - {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Debug|Any CPU.Build.0 = Debug|x64 - {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Release|Any CPU.ActiveCfg = Release|x64 - {9C70BD06-D52C-425E-9C14-5D66BC6046EF}.Release|Any CPU.Build.0 = Release|x64 - {4702A911-2513-478C-A434-2776393FDE77}.Debug|Any CPU.ActiveCfg = Debug|x64 - {4702A911-2513-478C-A434-2776393FDE77}.Debug|Any CPU.Build.0 = Debug|x64 - {4702A911-2513-478C-A434-2776393FDE77}.Release|Any CPU.ActiveCfg = Release|x64 - {4702A911-2513-478C-A434-2776393FDE77}.Release|Any CPU.Build.0 = Release|x64 - {66753AC7-0029-4373-9CC4-7760B1F46141}.Debug|Any CPU.ActiveCfg = Debug|x64 - {66753AC7-0029-4373-9CC4-7760B1F46141}.Debug|Any CPU.Build.0 = Debug|x64 - {66753AC7-0029-4373-9CC4-7760B1F46141}.Release|Any CPU.ActiveCfg = Release|x64 - {66753AC7-0029-4373-9CC4-7760B1F46141}.Release|Any CPU.Build.0 = Release|x64 - {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D}.Release|Any CPU.Build.0 = Release|Any CPU - {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {88FB719B-EB41-73C5-8D25-C03E0C69904F}.Release|Any CPU.Build.0 = Release|Any CPU - {27AA9F87-D2AA-41D9-A559-0F1EBA38C5F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {27AA9F87-D2AA-41D9-A559-0F1EBA38C5F8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {27AA9F87-D2AA-41D9-A559-0F1EBA38C5F8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {27AA9F87-D2AA-41D9-A559-0F1EBA38C5F8}.Release|Any CPU.Build.0 = Release|Any CPU - {8CDAEB2D-5022-450A-A97F-181C6270185F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8CDAEB2D-5022-450A-A97F-181C6270185F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8CDAEB2D-5022-450A-A97F-181C6270185F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8CDAEB2D-5022-450A-A97F-181C6270185F}.Release|Any CPU.Build.0 = Release|Any CPU - {F5D92D2D-D36F-4471-B657-8B9AA6C98AD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F5D92D2D-D36F-4471-B657-8B9AA6C98AD6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F5D92D2D-D36F-4471-B657-8B9AA6C98AD6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F5D92D2D-D36F-4471-B657-8B9AA6C98AD6}.Release|Any CPU.Build.0 = Release|Any CPU + {E0D51896-604F-4B40-8CFE-51941607B3A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E0D51896-604F-4B40-8CFE-51941607B3A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E0D51896-604F-4B40-8CFE-51941607B3A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E0D51896-604F-4B40-8CFE-51941607B3A1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {4AFDB34A-7467-4D41-B067-53BC4101D9D0} = {8F079208-C227-4D96-9427-2BEBE0003944} - {C9B87BD7-AF49-41C3-91F1-D550ADEB7833} = {8BBACF2D-7AB8-4610-A115-0E363D35C291} - {E0D51896-604F-4B40-8CFE-51941607B3A1} = {8BBACF2D-7AB8-4610-A115-0E363D35C291} - {A568929D-6FF6-4DFA-9D14-5D7DC08FA5E0} = {8F079208-C227-4D96-9427-2BEBE0003944} - {3620414C-7DFC-423E-929F-310E19F5D930} = {8BBACF2D-7AB8-4610-A115-0E363D35C291} - {A6AA1C3F-9470-4922-9D3F-D4549657AB22} = {8BBACF2D-7AB8-4610-A115-0E363D35C291} - {8430077C-F736-4246-A052-8EA1CECE844E} = {DBE5345E-6594-4A59-B183-1C3D5592269D} - {DBE5345E-6594-4A59-B183-1C3D5592269D} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} - {8BBACF2D-7AB8-4610-A115-0E363D35C291} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} - {76CAA246-C405-4A8C-B0AE-F4A0EF3D4E16} = {DBE5345E-6594-4A59-B183-1C3D5592269D} - {F258347D-31BE-4605-98CE-40E43BDF6F9D} = {DBE5345E-6594-4A59-B183-1C3D5592269D} - {B0AA8737-33A3-4766-8CBE-A48F2EF283BA} = {A217B3DF-607A-4EFB-B107-3C4809348043} - {5E6EDD75-AE95-43A6-9D67-95B840EB4B71} = {A217B3DF-607A-4EFB-B107-3C4809348043} - {9C70BD06-D52C-425E-9C14-5D66BC6046EF} = {A217B3DF-607A-4EFB-B107-3C4809348043} - {4702A911-2513-478C-A434-2776393FDE77} = {A217B3DF-607A-4EFB-B107-3C4809348043} - {66753AC7-0029-4373-9CC4-7760B1F46141} = {A217B3DF-607A-4EFB-B107-3C4809348043} - {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} - {5A44DF0C-C9DA-940F-4D6B-4A11D13AEA3D} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} - {88FB719B-EB41-73C5-8D25-C03E0C69904F} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} - {27AA9F87-D2AA-41D9-A559-0F1EBA38C5F8} = {50BEC23B-FFFD-427B-A95D-27E1D1958FFF} - {8CDAEB2D-5022-450A-A97F-181C6270185F} = {50BEC23B-FFFD-427B-A95D-27E1D1958FFF} - {F5D92D2D-D36F-4471-B657-8B9AA6C98AD6} = {50BEC23B-FFFD-427B-A95D-27E1D1958FFF} + {0483026E-C6CE-4B1A-AA68-46544C08140B} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} + {C0E7E797-4FBF-4F46-BC57-463F3719BA7A} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} + {2F7FF0A8-B619-4572-86C7-71E46FE22FB8} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} + {C9B87BD7-AF49-41C3-91F1-D550ADEB7833} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} + {3620414C-7DFC-423E-929F-310E19F5D930} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} + {A6AA1C3F-9470-4922-9D3F-D4549657AB22} = {E15BDA6D-E881-4482-94BA-BE5527E917FF} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {79B65AC9-C940-410E-AB61-7EA7E12C7599} diff --git a/Dalamud.sln.DotSettings b/Dalamud.sln.DotSettings index 6d0e1fdcd..b0f66b736 100644 --- a/Dalamud.sln.DotSettings +++ b/Dalamud.sln.DotSettings @@ -54,7 +54,6 @@ True True True - True True True True @@ -67,7 +66,6 @@ True True True - True True True True diff --git a/Dalamud/Configuration/Internal/DalamudConfiguration.cs b/Dalamud/Configuration/Internal/DalamudConfiguration.cs index 7e93d2863..5c2378f68 100644 --- a/Dalamud/Configuration/Internal/DalamudConfiguration.cs +++ b/Dalamud/Configuration/Internal/DalamudConfiguration.cs @@ -3,9 +3,7 @@ using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; -using System.Numerics; using System.Runtime.InteropServices; -using System.Threading.Tasks; using Dalamud.Game.Text; using Dalamud.Interface; @@ -13,20 +11,15 @@ using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.Internal; using Dalamud.Interface.Internal.ReShadeHandling; using Dalamud.Interface.Style; -using Dalamud.Interface.Windowing.Persistence; using Dalamud.IoC.Internal; using Dalamud.Plugin.Internal.AutoUpdate; using Dalamud.Plugin.Internal.Profiles; using Dalamud.Storage; using Dalamud.Utility; - using Newtonsoft.Json; - using Serilog; using Serilog.Events; -using Windows.Win32.UI.WindowsAndMessaging; - namespace Dalamud.Configuration.Internal; /// @@ -52,8 +45,6 @@ internal sealed class DalamudConfiguration : IInternalDisposableService [JsonIgnore] private bool isSaveQueued; - private Task? writeTask; - /// /// Delegate for the event that occurs when the dalamud configuration is saved. /// @@ -71,12 +62,12 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public List? BadWords { get; set; } /// - /// Gets or sets a value indicating whether the taskbar should flash once a duty is found. + /// Gets or sets a value indicating whether or not the taskbar should flash once a duty is found. /// public bool DutyFinderTaskbarFlash { get; set; } = true; /// - /// Gets or sets a value indicating whether a message should be sent in chat once a duty is found. + /// Gets or sets a value indicating whether or not a message should be sent in chat once a duty is found. /// public bool DutyFinderChatMessage { get; set; } = true; @@ -93,7 +84,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService /// /// Gets or sets a dictionary of seen FTUE levels. /// - public Dictionary SeenFtueLevels { get; set; } = []; + public Dictionary SeenFtueLevels { get; set; } = new(); /// /// Gets or sets the last loaded Dalamud version. @@ -106,29 +97,34 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public XivChatType GeneralChatType { get; set; } = XivChatType.Debug; /// - /// Gets or sets a value indicating whether plugin testing builds should be shown. + /// Gets or sets a value indicating whether or not plugin testing builds should be shown. /// public bool DoPluginTest { get; set; } = false; /// - /// Gets or sets a list of custom repos. + /// Gets or sets a key to opt into Dalamud staging builds. /// - public List ThirdRepoList { get; set; } = []; + public string? DalamudBetaKey { get; set; } = null; /// - /// Gets or sets a value indicating whether a disclaimer regarding third-party repos has been dismissed. + /// Gets or sets a list of custom repos. + /// + public List ThirdRepoList { get; set; } = new(); + + /// + /// Gets or sets a value indicating whether or not a disclaimer regarding third-party repos has been dismissed. /// public bool? ThirdRepoSpeedbumpDismissed { get; set; } = null; /// /// Gets or sets a list of hidden plugins. /// - public List HiddenPluginInternalName { get; set; } = []; + public List HiddenPluginInternalName { get; set; } = new(); /// /// Gets or sets a list of seen plugins. /// - public List SeenPluginInternalName { get; set; } = []; + public List SeenPluginInternalName { get; set; } = new(); /// /// Gets or sets a list of additional settings for devPlugins. The key is the absolute path @@ -136,25 +132,37 @@ internal sealed class DalamudConfiguration : IInternalDisposableService /// However by specifiying this value manually, you can add arbitrary files outside the normal /// file paths. /// - public Dictionary DevPluginSettings { get; set; } = []; + public Dictionary DevPluginSettings { get; set; } = new(); /// /// Gets or sets a list of additional locations that dev plugins should be loaded from. This can /// be either a DLL or folder, but should be the absolute path, or a path relative to the currently /// injected Dalamud instance. /// - public List DevPluginLoadLocations { get; set; } = []; + public List DevPluginLoadLocations { get; set; } = new(); /// /// Gets or sets the global UI scale. /// public float GlobalUiScale { get; set; } = 1.0f; + /// + /// Gets or sets a value indicating whether to use AXIS fonts from the game. + /// + [Obsolete($"See {nameof(DefaultFontSpec)}")] + public bool UseAxisFontsFromGame { get; set; } = true; + /// /// Gets or sets the default font spec. /// public IFontSpec? DefaultFontSpec { get; set; } + /// + /// Gets or sets the gamma value to apply for Dalamud fonts. Do not use. + /// + [Obsolete("It happens that nobody touched this setting", true)] + public float FontGammaLevel { get; set; } = 1.4f; + /// Gets or sets the opacity of the IME state indicator. /// 0 will hide the state indicator. 1 will make the state indicator fully visible. Values outside the /// range will be clamped to [0, 1]. @@ -162,38 +170,38 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public float ImeStateIndicatorOpacity { get; set; } = 1f; /// - /// Gets or sets a value indicating whether plugin UI should be hidden. + /// Gets or sets a value indicating whether or not plugin UI should be hidden. /// public bool ToggleUiHide { get; set; } = true; /// - /// Gets or sets a value indicating whether plugin UI should be hidden during cutscenes. + /// Gets or sets a value indicating whether or not plugin UI should be hidden during cutscenes. /// public bool ToggleUiHideDuringCutscenes { get; set; } = true; /// - /// Gets or sets a value indicating whether plugin UI should be hidden during GPose. + /// Gets or sets a value indicating whether or not plugin UI should be hidden during GPose. /// public bool ToggleUiHideDuringGpose { get; set; } = true; /// - /// Gets or sets a value indicating whether a message containing Dalamud's current version and the number of loaded plugins should be sent at login. + /// Gets or sets a value indicating whether or not a message containing Dalamud's current version and the number of loaded plugins should be sent at login. /// public bool PrintDalamudWelcomeMsg { get; set; } = true; /// - /// Gets or sets a value indicating whether a message containing detailed plugin information should be sent at login. + /// Gets or sets a value indicating whether or not a message containing detailed plugin information should be sent at login. /// public bool PrintPluginsWelcomeMsg { get; set; } = true; /// - /// Gets or sets a value indicating whether plugins should be auto-updated. + /// Gets or sets a value indicating whether or not plugins should be auto-updated. /// [Obsolete("Use AutoUpdateBehavior instead.")] public bool AutoUpdatePlugins { get; set; } /// - /// Gets or sets a value indicating whether Dalamud should add buttons to the system menu. + /// Gets or sets a value indicating whether or not Dalamud should add buttons to the system menu. /// public bool DoButtonsSystemMenu { get; set; } = true; @@ -208,12 +216,12 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public bool LogSynchronously { get; set; } = false; /// - /// Gets or sets a value indicating whether the debug log should scroll automatically. + /// Gets or sets a value indicating whether or not the debug log should scroll automatically. /// public bool LogAutoScroll { get; set; } = true; /// - /// Gets or sets a value indicating whether the debug log should open at startup. + /// Gets or sets a value indicating whether or not the debug log should open at startup. /// public bool LogOpenAtStartup { get; set; } @@ -225,35 +233,36 @@ internal sealed class DalamudConfiguration : IInternalDisposableService /// /// Gets or sets a list representing the command history for the Dalamud Console. /// - public List LogCommandHistory { get; set; } = []; + public List LogCommandHistory { get; set; } = new(); /// - /// Gets or sets a value indicating whether the dev bar should open at startup. + /// Gets or sets a value indicating whether or not the dev bar should open at startup. /// public bool DevBarOpenAtStartup { get; set; } /// - /// Gets or sets a value indicating whether ImGui asserts should be enabled at startup. + /// Gets or sets a value indicating whether or not ImGui asserts should be enabled at startup. /// - public bool? ImGuiAssertsEnabledAtStartup { get; set; } + public bool AssertsEnabledAtStartup { get; set; } /// - /// Gets or sets a value indicating whether docking should be globally enabled in ImGui. + /// Gets or sets a value indicating whether or not docking should be globally enabled in ImGui. /// public bool IsDocking { get; set; } - + /// - /// Gets or sets a value indicating whether plugin user interfaces should trigger sound effects. + /// Gets or sets a value indicating whether or not plugin user interfaces should trigger sound effects. /// This setting is effected by the in-game "System Sounds" option and volume. /// [SuppressMessage("ReSharper", "InconsistentNaming", Justification = "ABI")] - public bool EnablePluginUISoundEffects { get; set; } = true; + public bool EnablePluginUISoundEffects { get; set; } /// - /// Gets or sets a value indicating whether an additional button allowing pinning and clickthrough options should be shown + /// Gets or sets a value indicating whether or not an additional button allowing pinning and clickthrough options should be shown /// on plugin title bars when using the Window System. /// - public bool EnablePluginUiAdditionalOptions { get; set; } = true; + [JsonProperty("EnablePluginUiAdditionalOptionsExperimental")] + public bool EnablePluginUiAdditionalOptions { get; set; } = false; /// /// Gets or sets a value indicating whether viewports should always be disabled. @@ -261,22 +270,32 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public bool IsDisableViewport { get; set; } = true; /// - /// Gets or sets a value indicating whether navigation via a gamepad should be globally enabled in ImGui. + /// Gets or sets a value indicating whether or not navigation via a gamepad should be globally enabled in ImGui. /// public bool IsGamepadNavigationEnabled { get; set; } = true; /// - /// Gets or sets a value indicating whether focus management is enabled. + /// Gets or sets a value indicating whether or not focus management is enabled. /// public bool IsFocusManagementEnabled { get; set; } = true; + /// + /// Gets or sets a value indicating whether or not the anti-anti-debug check is enabled on startup. + /// + public bool IsAntiAntiDebugEnabled { get; set; } = false; + /// /// Gets or sets a value indicating whether to resume game main thread after plugins load. /// public bool IsResumeGameAfterPluginLoad { get; set; } = false; /// - /// Gets or sets a value indicating whether any plugin should be loaded when the game is started. + /// Gets or sets the kind of beta to download when matches the server value. + /// + public string? DalamudBetaKind { get; set; } + + /// + /// Gets or sets a value indicating whether or not any plugin should be loaded when the game is started. /// It is reset immediately when read. /// public bool PluginSafeMode { get; set; } @@ -288,7 +307,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public int? PluginWaitBeforeFree { get; set; } /// - /// Gets or sets a value indicating whether crashes during shutdown should be reported. + /// Gets or sets a value indicating whether or not crashes during shutdown should be reported. /// public bool ReportShutdownCrashes { get; set; } @@ -320,20 +339,15 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public ProfileModel? DefaultProfile { get; set; } /// - /// Gets or sets a value indicating whether profiles are enabled. + /// Gets or sets a value indicating whether or not profiles are enabled. /// public bool ProfilesEnabled { get; set; } = false; /// - /// Gets or sets a value indicating whether the user has seen the profiles tutorial. + /// Gets or sets a value indicating whether or not the user has seen the profiles tutorial. /// public bool ProfilesHasSeenTutorial { get; set; } = false; - /// - /// Gets or sets the default UI preset. - /// - public PresetModel DefaultUiPreset { get; set; } = new(); - /// /// Gets or sets the order of DTR elements, by title. /// @@ -369,7 +383,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public bool? ReduceMotions { get; set; } /// - /// Gets or sets a value indicating whether market board data should be uploaded. + /// Gets or sets a value indicating whether or not market board data should be uploaded. /// public bool IsMbCollect { get; set; } = true; @@ -405,7 +419,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService } /// - /// Gets or sets a value indicating whether to show info on dev bar. + /// Gets or sets a value indicating whether or not to show info on dev bar. /// public bool ShowDevBarInfo { get; set; } = true; @@ -470,60 +484,27 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public AutoUpdateBehavior? AutoUpdateBehavior { get; set; } = null; /// - /// Gets or sets a value indicating whether users should be notified regularly about pending updates. + /// Gets or sets a value indicating whether or not users should be notified regularly about pending updates. /// public bool CheckPeriodicallyForUpdates { get; set; } = true; - /// - /// Gets or sets a value indicating whether users should be notified about updates in chat. - /// - public bool SendUpdateNotificationToChat { get; set; } = false; - - /// - /// Gets or sets a value indicating whether disabled plugins should be auto-updated. - /// - public bool UpdateDisabledPlugins { get; set; } = false; - - /// - /// Gets or sets a value indicating where notifications are anchored to on the screen. - /// - public Vector2 NotificationAnchorPosition { get; set; } = new(1f, 1f); - -#pragma warning disable SA1600 -#pragma warning disable SA1516 - // XLCore/XoM compatibility until they move it out - public string? DalamudBetaKey { get; set; } = null; - public string? DalamudBetaKind { get; set; } -#pragma warning restore SA1516 -#pragma warning restore SA1600 - - /// - /// Gets or sets a list of badge passwords used to unlock badges. - /// - public List UsedBadgePasswords { get; set; } = []; - - /// - /// Gets or sets a value indicating whether badges should be shown on the title screen. - /// - public bool ShowBadgesOnTitleScreen { get; set; } = true; - /// /// Load a configuration from the provided path. /// /// Path to read from. /// File storage. /// The deserialized configuration file. - public static async Task Load(string path, ReliableFileStorage fs) + public static DalamudConfiguration Load(string path, ReliableFileStorage fs) { DalamudConfiguration deserialized = null; try { - await fs.ReadAllTextAsync(path, text => + fs.ReadAllText(path, text => { deserialized = JsonConvert.DeserializeObject(text, SerializerSettings); - + // If this reads as null, the file was empty, that's no good if (deserialized == null) throw new Exception("Read config was null."); @@ -549,7 +530,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService { Log.Error(e, "Failed to set defaults for DalamudConfiguration"); } - + return deserialized; } @@ -567,18 +548,13 @@ internal sealed class DalamudConfiguration : IInternalDisposableService public void ForceSave() { this.Save(); - this.isSaveQueued = false; - this.writeTask?.GetAwaiter().GetResult(); } - + /// void IInternalDisposableService.DisposeService() { // Make sure that we save, if a save is queued while we are shutting down this.Update(); - - // Wait for the write task to finish - this.writeTask?.Wait(); } /// @@ -590,6 +566,8 @@ internal sealed class DalamudConfiguration : IInternalDisposableService { this.Save(); this.isSaveQueued = false; + + Log.Verbose("Config saved"); } } @@ -601,15 +579,11 @@ internal sealed class DalamudConfiguration : IInternalDisposableService { // https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/animation/animation_win.cc;l=29?q=ReducedMotion&ss=chromium var winAnimEnabled = 0; - bool success; - unsafe - { - success = Windows.Win32.PInvoke.SystemParametersInfo( - SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETCLIENTAREAANIMATION, - 0, - &winAnimEnabled, - 0); - } + var success = NativeFunctions.SystemParametersInfo( + (uint)NativeFunctions.AccessibilityParameter.SPI_GETCLIENTAREAANIMATION, + 0, + ref winAnimEnabled, + 0); if (!success) { @@ -621,50 +595,22 @@ internal sealed class DalamudConfiguration : IInternalDisposableService this.ReduceMotions = winAnimEnabled == 0; } } - + // Migrate old auto-update setting to new auto-update behavior this.AutoUpdateBehavior ??= this.AutoUpdatePlugins ? Plugin.Internal.AutoUpdate.AutoUpdateBehavior.UpdateAll : Plugin.Internal.AutoUpdate.AutoUpdateBehavior.OnlyNotify; #pragma warning restore CS0618 } - + private void Save() { ThreadSafety.AssertMainThread(); if (this.configPath is null) throw new InvalidOperationException("configPath is not set."); - // Wait for previous write to finish - this.writeTask?.Wait(); - - this.writeTask = Task.Run(async () => - { - await Service.Get().WriteAllTextAsync( - this.configPath, - JsonConvert.SerializeObject(this, SerializerSettings)); - Log.Verbose("DalamudConfiguration saved"); - }).ContinueWith(t => - { - if (t.IsFaulted) - { - Log.Error( - t.Exception, - "Failed to save DalamudConfiguration to {Path}", - this.configPath); - } - }); - - foreach (var action in Delegate.EnumerateInvocationList(this.DalamudConfigurationSaved)) - { - try - { - action(this); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } - } + Service.Get().WriteAllText( + this.configPath, JsonConvert.SerializeObject(this, SerializerSettings)); + this.DalamudConfigurationSaved?.Invoke(this); } } diff --git a/Dalamud/Configuration/Internal/DevPluginSettings.cs b/Dalamud/Configuration/Internal/DevPluginSettings.cs index 400834cf8..361632a14 100644 --- a/Dalamud/Configuration/Internal/DevPluginSettings.cs +++ b/Dalamud/Configuration/Internal/DevPluginSettings.cs @@ -12,24 +12,18 @@ internal sealed class DevPluginSettings /// public bool StartOnBoot { get; set; } = true; - /// - /// Gets or sets a value indicating whether we should show notifications for errors this plugin - /// is creating. - /// - public bool NotifyForErrors { get; set; } = true; - /// /// Gets or sets a value indicating whether this plugin should automatically reload on file change. /// public bool AutomaticReloading { get; set; } = false; - + /// /// Gets or sets an ID uniquely identifying this specific instance of a devPlugin. /// public Guid WorkingPluginId { get; set; } = Guid.Empty; - + /// /// Gets or sets a list of validation problems that have been dismissed by the user. /// - public List DismissedValidationProblems { get; set; } = []; + public List DismissedValidationProblems { get; set; } = new(); } diff --git a/Dalamud/Configuration/Internal/EnvironmentConfiguration.cs b/Dalamud/Configuration/Internal/EnvironmentConfiguration.cs index 4b7e6dd3d..2df9ec5fe 100644 --- a/Dalamud/Configuration/Internal/EnvironmentConfiguration.cs +++ b/Dalamud/Configuration/Internal/EnvironmentConfiguration.cs @@ -5,6 +5,11 @@ namespace Dalamud.Configuration.Internal; /// internal class EnvironmentConfiguration { + /// + /// Gets a value indicating whether the XL_WINEONLINUX setting has been enabled. + /// + public static bool XlWineOnLinux { get; } = GetEnvironmentVariable("XL_WINEONLINUX"); + /// /// Gets a value indicating whether the DALAMUD_NOT_HAVE_PLUGINS setting has been enabled. /// @@ -21,7 +26,7 @@ internal class EnvironmentConfiguration public static bool DalamudForceMinHook { get; } = GetEnvironmentVariable("DALAMUD_FORCE_MINHOOK"); /// - /// Gets a value indicating whether Dalamud context menus should be disabled. + /// Gets a value indicating whether or not Dalamud context menus should be disabled. /// public static bool DalamudDoContextMenu { get; } = GetEnvironmentVariable("DALAMUD_ENABLE_CONTEXTMENU"); diff --git a/Dalamud/Configuration/PluginConfigurations.cs b/Dalamud/Configuration/PluginConfigurations.cs index 7ce4697cb..8e32fa992 100644 --- a/Dalamud/Configuration/PluginConfigurations.cs +++ b/Dalamud/Configuration/PluginConfigurations.cs @@ -2,8 +2,6 @@ using System.IO; using System.Reflection; using Dalamud.Storage; -using Dalamud.Utility; - using Newtonsoft.Json; namespace Dalamud.Configuration; @@ -11,7 +9,6 @@ namespace Dalamud.Configuration; /// /// Configuration to store settings for a dalamud plugin. /// -[Api15ToDo("Make this a service. We need to be able to dispose it reliably to write configs asynchronously. Maybe also let people write files with vfs.")] public sealed class PluginConfigurations { private readonly DirectoryInfo configDirectory; @@ -39,7 +36,7 @@ public sealed class PluginConfigurations public void Save(IPluginConfiguration config, string pluginName, Guid workingPluginId) { Service.Get() - .WriteAllTextAsync(this.GetConfigFile(pluginName).FullName, SerializeConfig(config), workingPluginId).GetAwaiter().GetResult(); + .WriteAllText(this.GetConfigFile(pluginName).FullName, SerializeConfig(config), workingPluginId); } /// @@ -55,12 +52,12 @@ public sealed class PluginConfigurations IPluginConfiguration? config = null; try { - Service.Get().ReadAllTextAsync(path.FullName, text => + Service.Get().ReadAllText(path.FullName, text => { config = DeserializeConfig(text); if (config == null) throw new Exception("Read config was null."); - }, workingPluginId).GetAwaiter().GetResult(); + }, workingPluginId); } catch (FileNotFoundException) { diff --git a/Dalamud/Console/ConsoleEntry.cs b/Dalamud/Console/ConsoleEntry.cs index 407411c6b..93f250228 100644 --- a/Dalamud/Console/ConsoleEntry.cs +++ b/Dalamud/Console/ConsoleEntry.cs @@ -11,13 +11,13 @@ public interface IConsoleEntry /// Gets the name of the entry. /// public string Name { get; } - + /// /// Gets the description of the entry. /// public string Description { get; } } - + /// /// Interface representing a command in the console. /// @@ -27,7 +27,7 @@ public interface IConsoleCommand : IConsoleEntry /// Execute this command. /// /// Arguments to invoke the entry with. - /// Whether execution succeeded. + /// Whether or not execution succeeded. public bool Invoke(IEnumerable arguments); } diff --git a/Dalamud/Console/ConsoleManager.cs b/Dalamud/Console/ConsoleManager.cs index ba1c38b16..4112cde2a 100644 --- a/Dalamud/Console/ConsoleManager.cs +++ b/Dalamud/Console/ConsoleManager.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; @@ -17,10 +17,10 @@ namespace Dalamud.Console; [ServiceManager.BlockingEarlyLoadedService("Console is needed by other blocking early loaded services.")] internal partial class ConsoleManager : IServiceType { - private static readonly ModuleLog Log = ModuleLog.Create(); - - private Dictionary entries = []; - + private static readonly ModuleLog Log = new("CON"); + + private Dictionary entries = new(); + /// /// Initializes a new instance of the class. /// @@ -29,17 +29,17 @@ internal partial class ConsoleManager : IServiceType { this.AddCommand("toggle", "Toggle a boolean variable.", this.OnToggleVariable); } - + /// /// Event that is triggered when a command is processed. Return true to stop the command from being processed any further. /// public event Func? Invoke; - + /// /// Gets a read-only dictionary of console entries. /// public IReadOnlyDictionary Entries => this.entries; - + /// /// Add a command to the console. /// @@ -53,13 +53,13 @@ internal partial class ConsoleManager : IServiceType ArgumentNullException.ThrowIfNull(name); ArgumentNullException.ThrowIfNull(description); ArgumentNullException.ThrowIfNull(func); - + if (this.FindEntry(name) != null) throw new InvalidOperationException($"Entry '{name}' already exists."); var command = new ConsoleCommand(name, description, func); this.entries.Add(name, command); - + return command; } @@ -77,14 +77,14 @@ internal partial class ConsoleManager : IServiceType ArgumentNullException.ThrowIfNull(name); ArgumentNullException.ThrowIfNull(description); Traits.ThrowIfTIsNullableAndNull(defaultValue); - + if (this.FindEntry(name) != null) throw new InvalidOperationException($"Entry '{name}' already exists."); var variable = new ConsoleVariable(name, description); variable.Value = defaultValue; this.entries.Add(name, variable); - + return variable; } @@ -98,8 +98,11 @@ internal partial class ConsoleManager : IServiceType { ArgumentNullException.ThrowIfNull(name); ArgumentNullException.ThrowIfNull(alias); - - var target = this.FindEntry(name) ?? throw new EntryNotFoundException(name); + + var target = this.FindEntry(name); + if (target == null) + throw new EntryNotFoundException(name); + if (this.FindEntry(alias) != null) throw new InvalidOperationException($"Entry '{alias}' already exists."); @@ -132,21 +135,21 @@ internal partial class ConsoleManager : IServiceType public T GetVariable(string name) { ArgumentNullException.ThrowIfNull(name); - + var entry = this.FindEntry(name); - + if (entry is ConsoleVariable variable) return variable.Value; - + if (entry is ConsoleVariable) throw new InvalidOperationException($"Variable '{name}' is not of type {typeof(T).Name}."); - + if (entry is null) throw new EntryNotFoundException(name); - + throw new InvalidOperationException($"Command '{name}' is not a variable."); } - + /// /// Set the value of a variable. /// @@ -159,18 +162,18 @@ internal partial class ConsoleManager : IServiceType { ArgumentNullException.ThrowIfNull(name); Traits.ThrowIfTIsNullableAndNull(value); - + var entry = this.FindEntry(name); - + if (entry is ConsoleVariable variable) variable.Value = value; - + if (entry is ConsoleVariable) throw new InvalidOperationException($"Variable '{name}' is not of type {typeof(T).Name}."); if (entry is null) - throw new EntryNotFoundException(name); - + throw new EntryNotFoundException(name); + throw new InvalidOperationException($"Command '{name}' is not a variable."); } @@ -178,26 +181,16 @@ internal partial class ConsoleManager : IServiceType /// Process a console command. /// /// The command to process. - /// Whether the command was successfully processed. + /// Whether or not the command was successfully processed. public bool ProcessCommand(string command) { - foreach (var action in Delegate.EnumerateInvocationList(this.Invoke)) - { - try - { - if (action(command)) - return true; - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } - } - + if (this.Invoke?.Invoke(command) == true) + return true; + var matches = GetCommandParsingRegex().Matches(command); if (matches.Count == 0) return false; - + var entryName = matches[0].Value; if (string.IsNullOrEmpty(entryName) || entryName.Any(char.IsWhiteSpace)) { @@ -211,7 +204,7 @@ internal partial class ConsoleManager : IServiceType Log.Error("Command {CommandName} not found", entryName); return false; } - + var parsedArguments = new List(); if (entry.ValidArguments != null) @@ -224,13 +217,13 @@ internal partial class ConsoleManager : IServiceType PrintUsage(entry); return false; } - + var argumentToMatch = entry.ValidArguments[i - 1]; - + var group = matches[i]; if (!group.Success) continue; - + var value = group.Value; if (string.IsNullOrEmpty(value)) continue; @@ -269,15 +262,15 @@ internal partial class ConsoleManager : IServiceType throw new Exception("Unhandled argument type."); } } - + if (parsedArguments.Count != entry.ValidArguments.Count) { // Either fill in the default values or error out - + for (var i = parsedArguments.Count; i < entry.ValidArguments.Count; i++) { var argument = entry.ValidArguments[i]; - + // If the default value is DBNull, we need to error out as that means it was not specified if (argument.DefaultValue == DBNull.Value) { @@ -288,7 +281,7 @@ internal partial class ConsoleManager : IServiceType parsedArguments.Add(argument.DefaultValue); } - + if (parsedArguments.Count != entry.ValidArguments.Count) { Log.Error("Too many arguments for command {CommandName}", entryName); @@ -309,20 +302,20 @@ internal partial class ConsoleManager : IServiceType return entry.Invoke(parsedArguments); } - + [GeneratedRegex("""("[^"]+"|[^\s"]+)""", RegexOptions.Compiled)] private static partial Regex GetCommandParsingRegex(); - + private static void PrintUsage(ConsoleEntry entry, bool error = true) { Log.WriteLog( - error ? LogEventLevel.Error : LogEventLevel.Information, + error ? LogEventLevel.Error : LogEventLevel.Information, "Usage: {CommandName} {Arguments}", null, entry.Name, string.Join(" ", entry.ValidArguments?.Select(x => $"<{x.Type.ToString().ToLowerInvariant()}>") ?? Enumerable.Empty())); } - + private ConsoleEntry? FindEntry(string name) { return this.entries.TryGetValue(name, out var entry) ? entry as ConsoleEntry : null; @@ -340,10 +333,10 @@ internal partial class ConsoleManager : IServiceType return true; } - + private static class Traits { - public static void ThrowIfTIsNullableAndNull(T? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null) + public static void ThrowIfTIsNullableAndNull(T? argument, [CallerArgumentExpression("argument")] string? paramName = null) { if (argument == null && !typeof(T).IsValueType) throw new ArgumentNullException(paramName); @@ -371,17 +364,17 @@ internal partial class ConsoleManager : IServiceType /// public string Description { get; } - + /// /// Gets or sets a list of valid argument types for this console entry. /// public IReadOnlyList? ValidArguments { get; protected set; } - + /// /// Execute this command. /// /// Arguments to invoke the entry with. - /// Whether execution succeeded. + /// Whether or not execution succeeded. public abstract bool Invoke(IEnumerable arguments); /// @@ -395,19 +388,19 @@ internal partial class ConsoleManager : IServiceType { if (type == typeof(string)) return new ArgumentInfo(ConsoleArgumentType.String, defaultValue); - + if (type == typeof(int)) return new ArgumentInfo(ConsoleArgumentType.Integer, defaultValue); - + if (type == typeof(float)) return new ArgumentInfo(ConsoleArgumentType.Float, defaultValue); - + if (type == typeof(bool)) return new ArgumentInfo(ConsoleArgumentType.Bool, defaultValue); - + throw new ArgumentException($"Invalid argument type: {type.Name}"); } - + public record ArgumentInfo(ConsoleArgumentType Type, object? DefaultValue); } @@ -443,7 +436,7 @@ internal partial class ConsoleManager : IServiceType private class ConsoleCommand : ConsoleEntry, IConsoleCommand { private readonly Delegate func; - + /// /// Initializes a new instance of the class. /// @@ -454,17 +447,17 @@ internal partial class ConsoleManager : IServiceType : base(name, description) { this.func = func; - + if (func.Method.ReturnType != typeof(bool)) throw new ArgumentException("Console command functions must return a boolean indicating success."); - + var validArguments = new List(); foreach (var parameterInfo in func.Method.GetParameters()) { var paraT = parameterInfo.ParameterType; validArguments.Add(TypeToArgument(paraT, parameterInfo.DefaultValue)); } - + this.ValidArguments = validArguments; } @@ -498,7 +491,7 @@ internal partial class ConsoleManager : IServiceType { this.ValidArguments = new List { TypeToArgument(typeof(T), null) }; } - + /// public T Value { get; set; } @@ -514,16 +507,16 @@ internal partial class ConsoleManager : IServiceType { this.Value = (T)(object)!boolValue; } - + Log.WriteLog(LogEventLevel.Information, "{VariableName} = {VariableValue}", null, this.Name, this.Value); return true; } - + if (first.GetType() != typeof(T)) throw new ArgumentException($"Console variable must be set with an argument of type {typeof(T).Name}."); this.Value = (T)first; - + return true; } } diff --git a/Dalamud/Console/ConsoleManagerPluginScoped.cs b/Dalamud/Console/ConsoleManagerPluginScoped.cs index 8e7516429..e1eddcf7a 100644 --- a/Dalamud/Console/ConsoleManagerPluginScoped.cs +++ b/Dalamud/Console/ConsoleManagerPluginScoped.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; @@ -11,47 +11,6 @@ namespace Dalamud.Console; #pragma warning disable Dalamud001 -/// -/// Utility functions for the console manager. -/// -internal static partial class ConsoleManagerPluginUtil -{ - private static readonly string[] ReservedNamespaces = ["dalamud", "xl", "plugin"]; - - /// - /// Get a sanitized namespace name from a plugin's internal name. - /// - /// The plugin's internal name. - /// A sanitized namespace. - public static string GetSanitizedNamespaceName(string pluginInternalName) - { - // Must be lowercase - pluginInternalName = pluginInternalName.ToLowerInvariant(); - - // Remove all non-alphabetic characters - pluginInternalName = NonAlphaRegex().Replace(pluginInternalName, string.Empty); - - // Remove reserved namespaces from the start or end - foreach (var reservedNamespace in ReservedNamespaces) - { - if (pluginInternalName.StartsWith(reservedNamespace)) - { - pluginInternalName = pluginInternalName[reservedNamespace.Length..]; - } - - if (pluginInternalName.EndsWith(reservedNamespace)) - { - pluginInternalName = pluginInternalName[..^reservedNamespace.Length]; - } - } - - return pluginInternalName; - } - - [GeneratedRegex(@"[^a-z]")] - private static partial Regex NonAlphaRegex(); -} - /// /// Plugin-scoped version of the console service. /// @@ -60,12 +19,12 @@ internal static partial class ConsoleManagerPluginUtil #pragma warning disable SA1015 [ResolveVia] #pragma warning restore SA1015 -internal class ConsoleManagerPluginScoped : IConsole, IInternalDisposableService +public class ConsoleManagerPluginScoped : IConsole, IInternalDisposableService { [ServiceManager.ServiceDependency] private readonly ConsoleManager console = Service.Get(); - - private readonly List trackedEntries = []; + + private readonly List trackedEntries = new(); /// /// Initializes a new instance of the class. @@ -79,7 +38,7 @@ internal class ConsoleManagerPluginScoped : IConsole, IInternalDisposableService /// public string Prefix { get; private set; } - + /// void IInternalDisposableService.DisposeService() { @@ -87,7 +46,7 @@ internal class ConsoleManagerPluginScoped : IConsole, IInternalDisposableService { this.console.RemoveEntry(trackedEntry); } - + this.trackedEntries.Clear(); } @@ -149,21 +108,21 @@ internal class ConsoleManagerPluginScoped : IConsole, IInternalDisposableService this.console.RemoveEntry(entry); this.trackedEntries.Remove(entry); } - + private string GetPrefixedName(string name) { ArgumentNullException.ThrowIfNull(name); - + // If the name is empty, return the prefix to allow for a single command or variable to be top-level. if (name.Length == 0) return this.Prefix; - + if (name.Any(char.IsWhiteSpace)) throw new ArgumentException("Name cannot contain whitespace.", nameof(name)); - + return $"{this.Prefix}.{name}"; } - + private IConsoleCommand InternalAddCommand(string name, string description, Delegate func) { var command = this.console.AddCommand(this.GetPrefixedName(name), description, func); @@ -171,3 +130,44 @@ internal class ConsoleManagerPluginScoped : IConsole, IInternalDisposableService return command; } } + +/// +/// Utility functions for the console manager. +/// +internal static partial class ConsoleManagerPluginUtil +{ + private static readonly string[] ReservedNamespaces = ["dalamud", "xl", "plugin"]; + + /// + /// Get a sanitized namespace name from a plugin's internal name. + /// + /// The plugin's internal name. + /// A sanitized namespace. + public static string GetSanitizedNamespaceName(string pluginInternalName) + { + // Must be lowercase + pluginInternalName = pluginInternalName.ToLowerInvariant(); + + // Remove all non-alphabetic characters + pluginInternalName = NonAlphaRegex().Replace(pluginInternalName, string.Empty); + + // Remove reserved namespaces from the start or end + foreach (var reservedNamespace in ReservedNamespaces) + { + if (pluginInternalName.StartsWith(reservedNamespace)) + { + pluginInternalName = pluginInternalName[reservedNamespace.Length..]; + } + + if (pluginInternalName.EndsWith(reservedNamespace)) + { + pluginInternalName = pluginInternalName[..^reservedNamespace.Length]; + } + } + + return pluginInternalName; + } + + [GeneratedRegex(@"[^a-z]")] + private static partial Regex NonAlphaRegex(); +} diff --git a/Dalamud/Dalamud.cs b/Dalamud/Dalamud.cs index f80252ef9..93de4c64d 100644 --- a/Dalamud/Dalamud.cs +++ b/Dalamud/Dalamud.cs @@ -9,17 +9,13 @@ using System.Threading.Tasks; using Dalamud.Common; using Dalamud.Configuration.Internal; using Dalamud.Game; -using Dalamud.Hooking.Internal.Verification; using Dalamud.Plugin.Internal; using Dalamud.Storage; using Dalamud.Utility; using Dalamud.Utility.Timing; - +using PInvoke; using Serilog; -using Windows.Win32.Foundation; -using Windows.Win32.Security; - #if DEBUG [assembly: InternalsVisibleTo("Dalamud.CorePlugin")] #endif @@ -33,13 +29,13 @@ namespace Dalamud; /// The main Dalamud class containing all subsystems. /// [ServiceManager.ProvidedService] -internal sealed unsafe class Dalamud : IServiceType +internal sealed class Dalamud : IServiceType { #region Internals private static int shownServiceError = 0; private readonly ManualResetEvent unloadSignal; - + #endregion /// @@ -52,15 +48,15 @@ internal sealed unsafe class Dalamud : IServiceType public Dalamud(DalamudStartInfo info, ReliableFileStorage fs, DalamudConfiguration configuration, IntPtr mainThreadContinueEvent) { this.StartInfo = info; - + this.unloadSignal = new ManualResetEvent(false); this.unloadSignal.Reset(); - + // Directory resolved signatures(CS, our own) will be cached in var cacheDir = new DirectoryInfo(Path.Combine(this.StartInfo.WorkingDirectory!, "cachedSigs")); if (!cacheDir.Exists) cacheDir.Create(); - + // Set up the SigScanner for our target module TargetSigScanner scanner; using (Timings.Start("SigScanner Init")) @@ -75,31 +71,26 @@ internal sealed unsafe class Dalamud : IServiceType configuration, scanner, Localization.FromAssets(info.AssetDirectory!, configuration.LanguageOverride)); - - using (Timings.Start("HookVerifier Init")) - { - HookVerifier.Initialize(scanner); - } - + // Set up FFXIVClientStructs this.SetupClientStructsResolver(cacheDir); - + void KickoffGameThread() { Log.Verbose("=============== GAME THREAD KICKOFF ==============="); Timings.Event("Game thread kickoff"); - Windows.Win32.PInvoke.SetEvent(new HANDLE(mainThreadContinueEvent)); + NativeFunctions.SetEvent(mainThreadContinueEvent); } void HandleServiceInitFailure(Task t) { Log.Error(t.Exception!, "Service initialization failure"); - + if (Interlocked.CompareExchange(ref shownServiceError, 1, 0) != 0) return; Util.Fatal( - $"Dalamud failed to load all necessary services.\nThe game will continue, but you may not be able to use plugins.\n\n{t.Exception}", + "Dalamud failed to load all necessary services.\n\nThe game will continue, but you may not be able to use plugins.", "Dalamud", false); } @@ -125,15 +116,15 @@ internal sealed unsafe class Dalamud : IServiceType HandleServiceInitFailure(t); }); - this.DefaultExceptionFilter = SetExceptionHandler(nint.Zero); - SetExceptionHandler(this.DefaultExceptionFilter); - Log.Debug($"SE default exception filter at {new IntPtr(this.DefaultExceptionFilter):X}"); + this.DefaultExceptionFilter = NativeFunctions.SetUnhandledExceptionFilter(nint.Zero); + NativeFunctions.SetUnhandledExceptionFilter(this.DefaultExceptionFilter); + Log.Debug($"SE default exception filter at {this.DefaultExceptionFilter.ToInt64():X}"); var debugSig = "40 55 53 57 48 8D AC 24 70 AD FF FF"; this.DebugExceptionFilter = Service.Get().ScanText(debugSig); Log.Debug($"SE debug exception filter at {this.DebugExceptionFilter.ToInt64():X}"); } - + /// /// Gets the start information for this Dalamud instance. /// @@ -179,9 +170,8 @@ internal sealed unsafe class Dalamud : IServiceType if (!reportCrashesSetting && !pmHasDevPlugins) { // Leaking on purpose for now - var attribs = default(SECURITY_ATTRIBUTES); - attribs.nLength = (uint)Unsafe.SizeOf(); - Windows.Win32.PInvoke.CreateMutex(attribs, false, "DALAMUD_CRASHES_NO_MORE"); + var attribs = Kernel32.SECURITY_ATTRIBUTES.Create(); + Kernel32.CreateMutex(attribs, false, "DALAMUD_CRASHES_NO_MORE"); } this.unloadSignal.Set(); @@ -198,30 +188,28 @@ internal sealed unsafe class Dalamud : IServiceType /// /// Replace the current exception handler with the default one. /// - internal void UseDefaultExceptionHandler() => - SetExceptionHandler(this.DefaultExceptionFilter); + internal void UseDefaultExceptionHandler() => + this.SetExceptionHandler(this.DefaultExceptionFilter); /// /// Replace the current exception handler with a debug one. /// internal void UseDebugExceptionHandler() => - SetExceptionHandler(this.DebugExceptionFilter); + this.SetExceptionHandler(this.DebugExceptionFilter); /// /// Disable the current exception handler. /// internal void UseNoExceptionHandler() => - SetExceptionHandler(nint.Zero); + this.SetExceptionHandler(nint.Zero); /// /// Helper function to set the exception handler. /// - private static nint SetExceptionHandler(nint newFilter) + private void SetExceptionHandler(nint newFilter) { - var oldFilter = - Windows.Win32.PInvoke.SetUnhandledExceptionFilter((delegate* unmanaged[Stdcall])newFilter); - Log.Debug("Set ExceptionFilter to {0}, old: {1}", newFilter, (nint)oldFilter); - return (nint)oldFilter; + var oldFilter = NativeFunctions.SetUnhandledExceptionFilter(newFilter); + Log.Debug("Set ExceptionFilter to {0}, old: {1}", newFilter, oldFilter); } private void SetupClientStructsResolver(DirectoryInfo cacheDir) diff --git a/Dalamud/Dalamud.csproj b/Dalamud/Dalamud.csproj index adaf876ee..39bc83762 100644 --- a/Dalamud/Dalamud.csproj +++ b/Dalamud/Dalamud.csproj @@ -1,12 +1,16 @@ + net8.0-windows + x64 + x64;AnyCPU + 12.0 True + 11.0.2.0 XIV Launcher addon framework - 14.0.2.1 $(DalamudVersion) $(DalamudVersion) $(DalamudVersion) @@ -35,10 +39,6 @@ true annotations true - - - @@ -47,6 +47,10 @@ DEBUG;TRACE + + $(MSBuildProjectDirectory)\ + $(AppOutputBase)=C:\goatsoft\companysecrets\dalamud\ + IDE0002;IDE0003;IDE1006;IDE0044;CA1822;CS1591;CS1701;CS1702 @@ -61,59 +65,42 @@ - - - - - - - - + + + + + + + + + + all - - - - - - - - + + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + + + + - - - - - - - - - - - - - imgui-frag.hlsl.bytes - - - imgui-vertex.hlsl.bytes - - - - - - - - - + + + @@ -125,8 +112,6 @@ PreserveNewest - - @@ -136,13 +121,6 @@ - - - - - - - @@ -167,9 +145,6 @@ - - - @@ -177,7 +152,6 @@ $([System.Text.RegularExpressions.Regex]::Replace($(DalamudGitCommitCount), @"\t|\n|\r", "")) $([System.Text.RegularExpressions.Regex]::Replace($(DalamudGitCommitHash), @"\t|\n|\r", "")) - $([System.Text.RegularExpressions.Regex]::Replace($(DalamudGitBranch), @"\t|\n|\r", "")) $([System.Text.RegularExpressions.Regex]::Replace($(DalamudGitDescribeOutput), @"\t|\n|\r", "")) $([System.Text.RegularExpressions.Regex]::Replace($(ClientStructsGitDescribeOutput), @"\t|\n|\r", "")) @@ -191,7 +165,6 @@ Local build at $([System.DateTime]::Now.ToString(yyyy-MM-dd HH:mm:ss)) - ??? ??? @@ -215,10 +188,6 @@ <_Parameter1>GitCommitCount <_Parameter2>$(CommitCount) - - <_Parameter1>GitBranch - <_Parameter2>$(Branch) - <_Parameter1>GitHashClientStructs <_Parameter2>$(CommitHashClientStructs) @@ -231,4 +200,9 @@ + + + + + diff --git a/Dalamud/Dalamud.csproj.DotSettings b/Dalamud/Dalamud.csproj.DotSettings index e723e4da1..9089754a3 100644 --- a/Dalamud/Dalamud.csproj.DotSettings +++ b/Dalamud/Dalamud.csproj.DotSettings @@ -1,3 +1,3 @@  -True - True +True +300000 diff --git a/Dalamud/DalamudAsset.cs b/Dalamud/DalamudAsset.cs index 9c0f247ee..27771116e 100644 --- a/Dalamud/DalamudAsset.cs +++ b/Dalamud/DalamudAsset.cs @@ -73,7 +73,7 @@ public enum DalamudAsset [DalamudAsset(DalamudAssetPurpose.TextureFromPng)] [DalamudAssetPath("UIRes", "troubleIcon.png")] TroubleIcon = 1006, - + /// /// : The plugin trouble icon overlay. /// @@ -124,13 +124,6 @@ public enum DalamudAsset [DalamudAssetPath("UIRes", "tsmShade.png")] TitleScreenMenuShade = 1013, - /// - /// : Atlas containing badges. - /// - [DalamudAsset(DalamudAssetPurpose.TextureFromPng)] - [DalamudAssetPath("UIRes", "badgeAtlas.png")] - BadgeAtlas = 1015, - /// /// : Noto Sans CJK JP Medium. /// @@ -158,7 +151,7 @@ public enum DalamudAsset /// : FontAwesome Free Solid. /// [DalamudAsset(DalamudAssetPurpose.Font)] - [DalamudAssetPath("UIRes", "FontAwesome710FreeSolid.otf")] + [DalamudAssetPath("UIRes", "FontAwesomeFreeSolid.otf")] FontAwesomeFreeSolid = 2003, /// diff --git a/Dalamud/Data/DataManager.cs b/Dalamud/Data/DataManager.cs index 11cb3a979..d017bf85a 100644 --- a/Dalamud/Data/DataManager.cs +++ b/Dalamud/Data/DataManager.cs @@ -8,13 +8,11 @@ using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; using Dalamud.Utility.Timing; - using Lumina; using Lumina.Data; using Lumina.Excel; using Newtonsoft.Json; - using Serilog; namespace Dalamud.Data; @@ -43,7 +41,7 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager try { Log.Verbose("Starting data load..."); - + using (Timings.Start("Lumina Init")) { var luminaOptions = new LuminaOptions @@ -55,25 +53,12 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager DefaultExcelLanguage = this.Language.ToLumina(), }; - try + this.GameData = new( + Path.Combine(Path.GetDirectoryName(Environment.ProcessPath)!, "sqpack"), + luminaOptions) { - this.GameData = new( - Path.Combine(Path.GetDirectoryName(Environment.ProcessPath)!, "sqpack"), - luminaOptions) - { - StreamPool = new(), - }; - } - catch (Exception ex) - { - Log.Error(ex, "Lumina GameData init failed"); - Util.Fatal( - "Dalamud could not read required game data files. This likely means your game installation is corrupted or incomplete.\n\n" + - "Please repair your installation by right-clicking the login button in XIVLauncher and choosing \"Repair game files\".", - "Dalamud"); - - return; - } + StreamPool = new(), + }; Log.Information("Lumina is ready: {0}", this.GameData.DataPath); @@ -84,14 +69,9 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager var tsInfo = JsonConvert.DeserializeObject( dalamud.StartInfo.TroubleshootingPackData); - - // Don't fail for IndexIntegrityResult.Exception, since the check during launch has a very small timeout - // this.HasModifiedGameDataFiles = - // tsInfo?.IndexIntegrity is LauncherTroubleshootingInfo.IndexIntegrityResult.Failed; - - // TODO: Put above back when check in XL is fixed - this.HasModifiedGameDataFiles = false; - + this.HasModifiedGameDataFiles = + tsInfo?.IndexIntegrity is LauncherTroubleshootingInfo.IndexIntegrityResult.Failed or LauncherTroubleshootingInfo.IndexIntegrityResult.Exception; + if (this.HasModifiedGameDataFiles) Log.Verbose("Game data integrity check failed!\n{TsData}", dalamud.StartInfo.TroubleshootingPackData); } @@ -150,7 +130,7 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager #region Lumina Wrappers /// - public ExcelSheet GetExcelSheet(ClientLanguage? language = null, string? name = null) where T : struct, IExcelRow + public ExcelSheet GetExcelSheet(ClientLanguage? language = null, string? name = null) where T : struct, IExcelRow => this.Excel.GetSheet(language?.ToLumina(), name); /// @@ -158,7 +138,7 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager => this.Excel.GetSubrowSheet(language?.ToLumina(), name); /// - public FileResource? GetFile(string path) + public FileResource? GetFile(string path) => this.GetFile(path); /// @@ -181,7 +161,7 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager : Task.FromException(new FileNotFoundException("The file could not be found.")); /// - public bool FileExists(string path) + public bool FileExists(string path) => this.GameData.FileExists(path); #endregion diff --git a/Dalamud/Data/RsvResolver.cs b/Dalamud/Data/RsvResolver.cs index 6fd84356c..3f507ff1d 100644 --- a/Dalamud/Data/RsvResolver.cs +++ b/Dalamud/Data/RsvResolver.cs @@ -3,9 +3,7 @@ using System.Collections.Generic; using Dalamud.Hooking; using Dalamud.Logging.Internal; using Dalamud.Memory; - using FFXIVClientStructs.FFXIV.Client.LayoutEngine; - using Lumina.Text.ReadOnly; namespace Dalamud.Data; @@ -15,7 +13,7 @@ namespace Dalamud.Data; /// internal sealed unsafe class RsvResolver : IDisposable { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("RsvProvider"); private readonly Hook addRsvStringHook; diff --git a/Dalamud/EntryPoint.cs b/Dalamud/EntryPoint.cs index 7abebee3b..512acd4cc 100644 --- a/Dalamud/EntryPoint.cs +++ b/Dalamud/EntryPoint.cs @@ -1,6 +1,6 @@ -using System.ComponentModel; using System.Diagnostics; using System.IO; +using System.Net; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; @@ -14,15 +14,13 @@ using Dalamud.Plugin.Internal; using Dalamud.Storage; using Dalamud.Support; using Dalamud.Utility; - using Newtonsoft.Json; - +using PInvoke; using Serilog; using Serilog.Core; using Serilog.Events; -using Windows.Win32.Foundation; -using Windows.Win32.UI.WindowsAndMessaging; +using static Dalamud.NativeFunctions; namespace Dalamud; @@ -60,7 +58,7 @@ public sealed class EntryPoint var info = JsonConvert.DeserializeObject(infoStr)!; if ((info.BootWaitMessageBox & 4) != 0) - Windows.Win32.PInvoke.MessageBox(HWND.Null, "Press OK to continue (BeforeDalamudConstruct)", "Dalamud Boot", MESSAGEBOX_STYLE.MB_OK); + MessageBoxW(IntPtr.Zero, "Press OK to continue (BeforeDalamudConstruct)", "Dalamud Boot", MessageBoxType.Ok); new Thread(() => RunThread(info, mainThreadContinueEvent)).Start(); } @@ -137,16 +135,13 @@ public sealed class EntryPoint /// Event used to signal the main thread to continue. private static void RunThread(DalamudStartInfo info, IntPtr mainThreadContinueEvent) { - NativeLibrary.Load(Path.Combine(info.WorkingDirectory!, "cimgui.dll")); - // Setup logger InitLogging(info.LogPath!, info.BootShowConsole, true, info.LogName); SerilogEventSink.Instance.LogLine += SerilogOnLogLine; // Load configuration first to get some early persistent state, like log level var fs = new ReliableFileStorage(Path.GetDirectoryName(info.ConfigurationPath)!); - var configuration = DalamudConfiguration.Load(info.ConfigurationPath!, fs) - .GetAwaiter().GetResult(); + var configuration = DalamudConfiguration.Load(info.ConfigurationPath!, fs); // Set the appropriate logging level from the configuration if (!configuration.LogSynchronously) @@ -184,17 +179,16 @@ public sealed class EntryPoint Reloaded.Hooks.Tools.Utilities.FasmBasePath = new DirectoryInfo(info.WorkingDirectory); - // Apply common fixes for culture issues - CultureFixes.Apply(); + // This is due to GitHub not supporting TLS 1.0, so we enable all TLS versions globally + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls; - // Currently VEH is not fully functional on WINE - if (info.Platform != OSPlatform.Windows) + if (!Util.IsWine()) InitSymbolHandler(info); var dalamud = new Dalamud(info, fs, configuration, mainThreadContinueEvent); - Log.Information("This is Dalamud - Core: {GitHash}, CS: {CsGitHash} [{CsVersion}]", - Versioning.GetScmVersion(), - Versioning.GetGitHashClientStructs(), + Log.Information("This is Dalamud - Core: {GitHash}, CS: {CsGitHash} [{CsVersion}]", + Util.GetScmVersion(), + Util.GetGitHashClientStructs(), FFXIVClientStructs.ThisAssembly.Git.Commits); dalamud.WaitForUnload(); @@ -264,12 +258,10 @@ public sealed class EntryPoint var symbolPath = Path.Combine(info.AssetDirectory, "UIRes", "pdb"); var searchPath = $".;{symbolPath}"; - var currentProcess = Windows.Win32.PInvoke.GetCurrentProcess(); - // Remove any existing Symbol Handler and Init a new one with our search path added - Windows.Win32.PInvoke.SymCleanup(currentProcess); + SymCleanup(GetCurrentProcess()); - if (!Windows.Win32.PInvoke.SymInitialize(currentProcess, searchPath, true)) + if (!SymInitialize(GetCurrentProcess(), searchPath, true)) throw new Win32Exception(); } catch (Exception ex) @@ -293,6 +285,7 @@ public sealed class EntryPoint } var pluginInfo = string.Empty; + var supportText = ", please visit us on Discord for more help"; try { var pm = Service.GetNullable(); @@ -300,6 +293,9 @@ public sealed class EntryPoint if (plugin != null) { pluginInfo = $"Plugin that caused this:\n{plugin.Name}\n\nClick \"Yes\" and remove it.\n\n"; + + if (plugin.IsThirdParty) + supportText = string.Empty; } } catch @@ -307,18 +303,31 @@ public sealed class EntryPoint // ignored } - Log.CloseAndFlush(); + const MessageBoxType flags = NativeFunctions.MessageBoxType.YesNo | NativeFunctions.MessageBoxType.IconError | NativeFunctions.MessageBoxType.SystemModal; + var result = MessageBoxW( + Process.GetCurrentProcess().MainWindowHandle, + $"An internal error in a Dalamud plugin occurred.\nThe game must close.\n\n{ex.GetType().Name}\n{info}\n\n{pluginInfo}More information has been recorded separately{supportText}.\n\nDo you want to disable all plugins the next time you start the game?", + "Dalamud", + flags); - ErrorHandling.CrashWithContext($"{ex}\n\n{info}\n\n{pluginInfo}"); + if (result == (int)User32.MessageBoxResult.IDYES) + { + Log.Information("User chose to disable plugins on next launch..."); + var config = Service.Get(); + config.PluginSafeMode = true; + config.QueueSave(); + } + + Log.CloseAndFlush(); + Environment.Exit(-1); break; default: Log.Fatal("Unhandled SEH object on AppDomain: {Object}", args.ExceptionObject); Log.CloseAndFlush(); + Environment.Exit(-1); break; } - - Environment.Exit(-1); } private static void OnUnhandledExceptionStallDebug(object sender, UnhandledExceptionEventArgs args) diff --git a/Dalamud/EnumCloneMap.txt b/Dalamud/EnumCloneMap.txt deleted file mode 100644 index bbc3c1eda..000000000 --- a/Dalamud/EnumCloneMap.txt +++ /dev/null @@ -1,3 +0,0 @@ -# Format: Target.Full.TypeName = Source.Full.EnumTypeName -# Example: Generate a local enum MyGeneratedEnum in namespace Sample.Gen mapped to SourceEnums.SampleSourceEnum -Dalamud.Game.Agent.AgentId = FFXIVClientStructs.FFXIV.Client.UI.Agent.AgentId diff --git a/Dalamud/Game/ActionKind.cs b/Dalamud/Game/ActionKind.cs deleted file mode 100644 index 9a574f9a8..000000000 --- a/Dalamud/Game/ActionKind.cs +++ /dev/null @@ -1,89 +0,0 @@ -namespace Dalamud.Game; - -/// -/// Enum describing possible action kinds. -/// -public enum ActionKind -{ - /// - /// A Trait. - /// - Trait = 0, - - /// - /// An Action. - /// - Action = 1, - - /// - /// A usable Item. - /// - Item = 2, // does not work? - - /// - /// A usable EventItem. - /// - EventItem = 3, // does not work? - - /// - /// An EventAction. - /// - EventAction = 4, - - /// - /// A GeneralAction. - /// - GeneralAction = 5, - - /// - /// A BuddyAction. - /// - BuddyAction = 6, - - /// - /// A MainCommand. - /// - MainCommand = 7, - - /// - /// A Companion. - /// - Companion = 8, // unresolved?! - - /// - /// A CraftAction. - /// - CraftAction = 9, - - /// - /// An Action (again). - /// - Action2 = 10, // what's the difference? - - /// - /// A PetAction. - /// - PetAction = 11, - - /// - /// A CompanyAction. - /// - CompanyAction = 12, - - /// - /// A Mount. - /// - Mount = 13, - - // 14-18 unused - - /// - /// A BgcArmyAction. - /// - BgcArmyAction = 19, - - /// - /// An Ornament. - /// - Ornament = 20, -} diff --git a/Dalamud/Game/Addon/AddonLifecyclePooledArgs.cs b/Dalamud/Game/Addon/AddonLifecyclePooledArgs.cs new file mode 100644 index 000000000..14def2036 --- /dev/null +++ b/Dalamud/Game/Addon/AddonLifecyclePooledArgs.cs @@ -0,0 +1,107 @@ +using System.Runtime.CompilerServices; +using System.Threading; + +using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; + +namespace Dalamud.Game.Addon; + +/// Argument pool for Addon Lifecycle services. +[ServiceManager.EarlyLoadedService] +internal sealed class AddonLifecyclePooledArgs : IServiceType +{ + private readonly AddonSetupArgs?[] addonSetupArgPool = new AddonSetupArgs?[64]; + private readonly AddonFinalizeArgs?[] addonFinalizeArgPool = new AddonFinalizeArgs?[64]; + private readonly AddonDrawArgs?[] addonDrawArgPool = new AddonDrawArgs?[64]; + private readonly AddonUpdateArgs?[] addonUpdateArgPool = new AddonUpdateArgs?[64]; + private readonly AddonRefreshArgs?[] addonRefreshArgPool = new AddonRefreshArgs?[64]; + private readonly AddonRequestedUpdateArgs?[] addonRequestedUpdateArgPool = new AddonRequestedUpdateArgs?[64]; + private readonly AddonReceiveEventArgs?[] addonReceiveEventArgPool = new AddonReceiveEventArgs?[64]; + + [ServiceManager.ServiceConstructor] + private AddonLifecyclePooledArgs() + { + } + + /// Rents an instance of an argument. + /// The rented instance. + /// The returner. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public PooledEntry Rent(out AddonSetupArgs arg) => new(out arg, this.addonSetupArgPool); + + /// Rents an instance of an argument. + /// The rented instance. + /// The returner. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public PooledEntry Rent(out AddonFinalizeArgs arg) => new(out arg, this.addonFinalizeArgPool); + + /// Rents an instance of an argument. + /// The rented instance. + /// The returner. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public PooledEntry Rent(out AddonDrawArgs arg) => new(out arg, this.addonDrawArgPool); + + /// Rents an instance of an argument. + /// The rented instance. + /// The returner. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public PooledEntry Rent(out AddonUpdateArgs arg) => new(out arg, this.addonUpdateArgPool); + + /// Rents an instance of an argument. + /// The rented instance. + /// The returner. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public PooledEntry Rent(out AddonRefreshArgs arg) => new(out arg, this.addonRefreshArgPool); + + /// Rents an instance of an argument. + /// The rented instance. + /// The returner. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public PooledEntry Rent(out AddonRequestedUpdateArgs arg) => + new(out arg, this.addonRequestedUpdateArgPool); + + /// Rents an instance of an argument. + /// The rented instance. + /// The returner. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public PooledEntry Rent(out AddonReceiveEventArgs arg) => + new(out arg, this.addonReceiveEventArgPool); + + /// Returns the object to the pool on dispose. + /// The type. + public readonly ref struct PooledEntry + where T : AddonArgs, new() + { + private readonly Span pool; + private readonly T obj; + + /// Initializes a new instance of the struct. + /// An instance of the argument. + /// The pool to rent from and return to. + public PooledEntry(out T arg, Span pool) + { + this.pool = pool; + foreach (ref var item in pool) + { + if (Interlocked.Exchange(ref item, null) is { } v) + { + this.obj = arg = v; + return; + } + } + + this.obj = arg = new(); + } + + /// Returns the item to the pool. + public void Dispose() + { + var tmp = this.obj; + foreach (ref var item in this.pool) + { + if (Interlocked.Exchange(ref item, tmp) is not { } tmp2) + return; + tmp = tmp2; + } + } + } +} diff --git a/Dalamud/Game/Addon/Events/AddonEventEntry.cs b/Dalamud/Game/Addon/Events/AddonEventEntry.cs index eca1903f2..8b5808087 100644 --- a/Dalamud/Game/Addon/Events/AddonEventEntry.cs +++ b/Dalamud/Game/Addon/Events/AddonEventEntry.cs @@ -1,5 +1,5 @@ +using Dalamud.Memory; using Dalamud.Plugin.Services; - using FFXIVClientStructs.FFXIV.Component.GUI; namespace Dalamud.Game.Addon.Events; @@ -14,9 +14,9 @@ internal unsafe class AddonEventEntry /// Name of an invalid addon. /// public const string InvalidAddonName = "NullAddon"; - + private string? addonName; - + /// /// Gets the pointer to the addons AtkUnitBase. /// @@ -33,20 +33,20 @@ internal unsafe class AddonEventEntry public required nint Node { get; init; } /// - /// Gets the delegate that gets called when this event is triggered. + /// Gets the handler that gets called when this event is triggered. /// - public required IAddonEventManager.AddonEventDelegate Delegate { get; init; } - + public required IAddonEventManager.AddonEventHandler Handler { get; init; } + /// /// Gets the unique id for this event. /// public required uint ParamKey { get; init; } - + /// /// Gets the event type for this event. /// public required AddonEventType EventType { get; init; } - + /// /// Gets the event handle for this event. /// diff --git a/Dalamud/Game/Addon/Events/AddonEventListener.cs b/Dalamud/Game/Addon/Events/AddonEventListener.cs index 515785d72..cc6416fe8 100644 --- a/Dalamud/Game/Addon/Events/AddonEventListener.cs +++ b/Dalamud/Game/Addon/Events/AddonEventListener.cs @@ -11,9 +11,9 @@ namespace Dalamud.Game.Addon.Events; internal unsafe class AddonEventListener : IDisposable { private ReceiveEventDelegate? receiveEventDelegate; - + private AtkEventListener* eventListener; - + /// /// Initializes a new instance of the class. /// @@ -24,7 +24,7 @@ internal unsafe class AddonEventListener : IDisposable this.eventListener = (AtkEventListener*)Marshal.AllocHGlobal(sizeof(AtkEventListener)); this.eventListener->VirtualTable = (AtkEventListener.AtkEventListenerVirtualTable*)Marshal.AllocHGlobal(sizeof(void*) * 3); - this.eventListener->VirtualTable->Dtor = (delegate* unmanaged)(delegate* unmanaged)&NullSub; + this.eventListener->VirtualTable->Dtor = (delegate* unmanaged)(delegate* unmanaged)&NullSub; this.eventListener->VirtualTable->ReceiveGlobalEvent = (delegate* unmanaged)(delegate* unmanaged)&NullSub; this.eventListener->VirtualTable->ReceiveEvent = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.receiveEventDelegate); } @@ -38,17 +38,17 @@ internal unsafe class AddonEventListener : IDisposable /// Pointer to the AtkEvent. /// Pointer to the AtkEventData. public delegate void ReceiveEventDelegate(AtkEventListener* self, AtkEventType eventType, uint eventParam, AtkEvent* eventPtr, AtkEventData* eventDataPtr); - + /// /// Gets the address of this listener. /// public nint Address => (nint)this.eventListener; - + /// public void Dispose() { if (this.eventListener is null) return; - + Marshal.FreeHGlobal((nint)this.eventListener->VirtualTable); Marshal.FreeHGlobal((nint)this.eventListener); @@ -88,7 +88,7 @@ internal unsafe class AddonEventListener : IDisposable node->RemoveEvent(eventType, param, this.eventListener, false); }); } - + [UnmanagedCallersOnly] private static void NullSub() { diff --git a/Dalamud/Game/Addon/Events/AddonEventManager.cs b/Dalamud/Game/Addon/Events/AddonEventManager.cs index 17b70fcc2..dce2a7e73 100644 --- a/Dalamud/Game/Addon/Events/AddonEventManager.cs +++ b/Dalamud/Game/Addon/Events/AddonEventManager.cs @@ -1,4 +1,4 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; @@ -9,6 +9,7 @@ using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; +using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; namespace Dalamud.Game.Addon.Events; @@ -23,29 +24,33 @@ internal unsafe class AddonEventManager : IInternalDisposableService /// PluginName for Dalamud Internal use. /// public static readonly Guid DalamudInternalKey = Guid.NewGuid(); - - private static readonly ModuleLog Log = ModuleLog.Create(); - + + private static readonly ModuleLog Log = new("AddonEventManager"); + [ServiceManager.ServiceDependency] private readonly AddonLifecycle addonLifecycle = Service.Get(); private readonly AddonLifecycleEventListener finalizeEventListener; - - private readonly Hook onUpdateCursor; + + private readonly AddonEventManagerAddressResolver address; + private readonly Hook onUpdateCursor; private readonly ConcurrentDictionary pluginEventControllers; - - private AtkCursor.CursorType? cursorOverride; - + + private AddonCursorType? cursorOverride; + [ServiceManager.ServiceConstructor] - private AddonEventManager() + private AddonEventManager(TargetSigScanner sigScanner) { + this.address = new AddonEventManagerAddressResolver(); + this.address.Setup(sigScanner); + this.pluginEventControllers = new ConcurrentDictionary(); this.pluginEventControllers.TryAdd(DalamudInternalKey, new PluginEventController()); - + this.cursorOverride = null; - this.onUpdateCursor = Hook.FromAddress(AtkUnitManager.Addresses.UpdateCursor.Value, this.UpdateCursorDetour); + this.onUpdateCursor = Hook.FromAddress(this.address.UpdateCursor, this.UpdateCursorDetour); this.finalizeEventListener = new AddonLifecycleEventListener(AddonEvent.PreFinalize, string.Empty, this.OnAddonFinalize); this.addonLifecycle.RegisterListener(this.finalizeEventListener); @@ -53,6 +58,8 @@ internal unsafe class AddonEventManager : IInternalDisposableService this.onUpdateCursor.Enable(); } + private delegate nint UpdateCursorDelegate(RaptureAtkModule* module); + /// void IInternalDisposableService.DisposeService() { @@ -62,7 +69,7 @@ internal unsafe class AddonEventManager : IInternalDisposableService { pluginEventController.Dispose(); } - + this.addonLifecycle.UnregisterListener(this.finalizeEventListener); } @@ -73,19 +80,19 @@ internal unsafe class AddonEventManager : IInternalDisposableService /// The parent addon for this event. /// The node that will trigger this event. /// The event type for this event. - /// The delegate to call when event is triggered. + /// The handler to call when event is triggered. /// IAddonEventHandle used to remove the event. - internal IAddonEventHandle? AddEvent(Guid pluginId, nint atkUnitBase, nint atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventDelegate eventDelegate) + internal IAddonEventHandle? AddEvent(Guid pluginId, IntPtr atkUnitBase, IntPtr atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventHandler eventHandler) { if (this.pluginEventControllers.TryGetValue(pluginId, out var controller)) { - return controller.AddEvent(atkUnitBase, atkResNode, eventType, eventDelegate); + return controller.AddEvent(atkUnitBase, atkResNode, eventType, eventHandler); } else { Log.Verbose($"Unable to locate controller for {pluginId}. No event was added."); } - + return null; } @@ -105,12 +112,12 @@ internal unsafe class AddonEventManager : IInternalDisposableService Log.Verbose($"Unable to locate controller for {pluginId}. No event was removed."); } } - + /// /// Force the game cursor to be the specified cursor. /// /// Which cursor to use. - internal void SetCursor(AddonCursorType cursor) => this.cursorOverride = (AtkCursor.CursorType)cursor; + internal void SetCursor(AddonCursorType cursor) => this.cursorOverride = cursor; /// /// Un-forces the game cursor. @@ -160,23 +167,22 @@ internal unsafe class AddonEventManager : IInternalDisposableService pluginList.Value.RemoveForAddon(addonInfo.AddonName); } } - - private void UpdateCursorDetour(AtkUnitManager* thisPtr) + + private nint UpdateCursorDetour(RaptureAtkModule* module) { try { var atkStage = AtkStage.Instance(); - + if (this.cursorOverride is not null && atkStage is not null) { - ref var atkCursor = ref atkStage->AtkCursor; - - if (atkCursor.Type != this.cursorOverride) + var cursor = (AddonCursorType)atkStage->AtkCursor.Type; + if (cursor != this.cursorOverride) { - atkCursor.SetCursorType((AtkCursor.CursorType)this.cursorOverride, 1); + AtkStage.Instance()->AtkCursor.SetCursorType((AtkCursor.CursorType)this.cursorOverride, 1); } - - return; + + return nint.Zero; } } catch (Exception e) @@ -184,7 +190,7 @@ internal unsafe class AddonEventManager : IInternalDisposableService Log.Error(e, "Exception in UpdateCursorDetour."); } - this.onUpdateCursor!.Original(thisPtr); + return this.onUpdateCursor!.Original(module); } } @@ -212,7 +218,7 @@ internal class AddonEventManagerPluginScoped : IInternalDisposableService, IAddo public AddonEventManagerPluginScoped(LocalPlugin plugin) { this.plugin = plugin; - + this.eventManagerService.AddPluginEventController(plugin.EffectiveWorkingPluginId); } @@ -224,34 +230,31 @@ internal class AddonEventManagerPluginScoped : IInternalDisposableService, IAddo { this.eventManagerService.ResetCursor(); } - - Service.Get().RunOnFrameworkThread(() => - { - this.eventManagerService.RemovePluginEventController(this.plugin.EffectiveWorkingPluginId); - }).Wait(); + + this.eventManagerService.RemovePluginEventController(this.plugin.EffectiveWorkingPluginId); } - + /// - public IAddonEventHandle? AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventDelegate eventDelegate) - => this.eventManagerService.AddEvent(this.plugin.EffectiveWorkingPluginId, atkUnitBase, atkResNode, eventType, eventDelegate); + public IAddonEventHandle? AddEvent(IntPtr atkUnitBase, IntPtr atkResNode, AddonEventType eventType, IAddonEventManager.AddonEventHandler eventHandler) + => this.eventManagerService.AddEvent(this.plugin.EffectiveWorkingPluginId, atkUnitBase, atkResNode, eventType, eventHandler); /// public void RemoveEvent(IAddonEventHandle eventHandle) => this.eventManagerService.RemoveEvent(this.plugin.EffectiveWorkingPluginId, eventHandle); - + /// public void SetCursor(AddonCursorType cursor) { this.isForcingCursor = true; - + this.eventManagerService.SetCursor(cursor); } - + /// public void ResetCursor() { this.isForcingCursor = false; - + this.eventManagerService.ResetCursor(); } } diff --git a/Dalamud/Game/Addon/Events/AddonEventManagerAddressResolver.cs b/Dalamud/Game/Addon/Events/AddonEventManagerAddressResolver.cs new file mode 100644 index 000000000..415e1b169 --- /dev/null +++ b/Dalamud/Game/Addon/Events/AddonEventManagerAddressResolver.cs @@ -0,0 +1,21 @@ +namespace Dalamud.Game.Addon.Events; + +/// +/// AddonEventManager memory address resolver. +/// +internal class AddonEventManagerAddressResolver : BaseAddressResolver +{ + /// + /// Gets the address of the AtkModule UpdateCursor method. + /// + public nint UpdateCursor { get; private set; } + + /// + /// Scan for and setup any configured address pointers. + /// + /// The signature scanner to facilitate setup. + protected override void Setup64Bit(ISigScanner scanner) + { + this.UpdateCursor = scanner.ScanText("48 89 74 24 ?? 48 89 7C 24 ?? 41 56 48 83 EC 20 4C 8B F1 E8 ?? ?? ?? ?? 49 8B CE"); // unnamed in CS + } +} diff --git a/Dalamud/Game/Addon/Events/AddonEventType.cs b/Dalamud/Game/Addon/Events/AddonEventType.cs index 9e062a9d0..100168e22 100644 --- a/Dalamud/Game/Addon/Events/AddonEventType.cs +++ b/Dalamud/Game/Addon/Events/AddonEventType.cs @@ -1,4 +1,4 @@ -namespace Dalamud.Game.Addon.Events; +namespace Dalamud.Game.Addon.Events; /// /// Reimplementation of AtkEventType. @@ -9,301 +9,150 @@ public enum AddonEventType : byte /// Mouse Down. /// MouseDown = 3, - + /// /// Mouse Up. /// MouseUp = 4, - + /// /// Mouse Move. /// MouseMove = 5, - + /// /// Mouse Over. /// MouseOver = 6, - + /// /// Mouse Out. /// MouseOut = 7, - - /// - /// Mouse Wheel. - /// - MouseWheel = 8, - + /// /// Mouse Click. /// MouseClick = 9, - - /// - /// Mouse Double Click. - /// - MouseDoubleClick = 10, - + /// /// Input Received. /// InputReceived = 12, - - /// - /// Input Navigation (LEFT, RIGHT, UP, DOWN, TAB_NEXT, TAB_PREV, TAB_BOTH_NEXT, TAB_BOTH_PREV, PAGEUP, PAGEDOWN). - /// - InputNavigation = 13, - - /// - /// InputBase Input Received (AtkComponentTextInput and AtkComponentNumericInput).
- /// For example, this is fired for moving the text cursor, deletion of a character and inserting a new line. - ///
- InputBaseInputReceived = 15, - - /// - /// Fired at the very beginning of AtkInputManager.HandleInput on AtkStage.ViewportEventManager. Used in LovmMiniMap. - /// - RawInputData = 16, - + /// /// Focus Start. /// FocusStart = 18, - + /// /// Focus Stop. /// FocusStop = 19, - + /// - /// Resize (ChatLogPanel). - /// - Resize = 21, - - /// - /// AtkComponentButton Press, sent on MouseDown on Button. + /// Button Press, sent on MouseDown on Button. /// ButtonPress = 23, - + /// - /// AtkComponentButton Release, sent on MouseUp and MouseOut. + /// Button Release, sent on MouseUp and MouseOut. /// ButtonRelease = 24, - + /// - /// AtkComponentButton Click, sent on MouseUp and MouseClick on button. + /// Button Click, sent on MouseUp and MouseClick on button. /// ButtonClick = 25, - + /// - /// Value Update (NumericInput, ScrollBar, etc.) - /// - ValueUpdate = 27, - - /// - /// AtkComponentSlider Value Update. - /// - SliderValueUpdate = 29, - - /// - /// AtkComponentSlider Released. - /// - SliderReleased = 30, - - /// - /// AtkComponentList Button Press. - /// - ListButtonPress = 31, - - /// - /// AtkComponentList Roll Over. + /// List Item RollOver. /// ListItemRollOver = 33, - + /// - /// AtkComponentList Roll Out. + /// List Item Roll Out. /// ListItemRollOut = 34, - + /// - /// AtkComponentList Click. + /// List Item Toggle. /// - ListItemClick = 35, - + ListItemToggle = 35, + /// - /// AtkComponentList Double Click. - /// - ListItemDoubleClick = 36, - - /// - /// AtkComponentList Highlight. - /// - ListItemHighlight = 37, - - /// - /// AtkComponentList Select. - /// - ListItemSelect = 38, - - /// - /// AtkComponentList Pad Drag Drop Begin. - /// - ListItemPadDragDropBegin = 40, - - /// - /// AtkComponentList Pad Drag Drop End. - /// - ListItemPadDragDropEnd = 41, - - /// - /// AtkComponentList Pad Drag Drop Insert. - /// - ListItemPadDragDropInsert = 42, - - /// - /// AtkComponentDragDrop Begin. + /// Drag Drop Begin. /// Sent on MouseDown over a draggable icon (will NOT send for a locked icon). /// - DragDropBegin = 50, - + DragDropBegin = 47, + /// - /// AtkComponentDragDrop End. - /// - DragDropEnd = 51, - - /// - /// AtkComponentDragDrop Insert Attempt. - /// - DragDropInsertAttempt = 52, - - /// - /// AtkComponentDragDrop Insert. + /// Drag Drop Insert. /// Sent when dropping an icon into a hotbar/inventory slot or similar. /// - DragDropInsert = 53, - + DragDropInsert = 50, + /// - /// AtkComponentDragDrop Can Accept Check. + /// Drag Drop Roll Over. /// - DragDropCanAcceptCheck = 54, - + DragDropRollOver = 52, + /// - /// AtkComponentDragDrop Roll Over. + /// Drag Drop Roll Out. /// - DragDropRollOver = 55, - + DragDropRollOut = 53, + /// - /// AtkComponentDragDrop Roll Out. - /// - DragDropRollOut = 56, - - /// - /// AtkComponentDragDrop Discard. + /// Drag Drop Discard. /// Sent when dropping an icon into empty screenspace, eg to remove an action from a hotBar. /// - DragDropDiscard = 57, - + DragDropDiscard = 54, + /// - /// AtkComponentDragDrop Click. + /// Drag Drop Unknown. + /// + [Obsolete("Use DragDropDiscard")] + DragDropUnk54 = 54, + + /// + /// Drag Drop Cancel. /// Sent on MouseUp if the cursor has not moved since DragDropBegin, OR on MouseDown over a locked icon. /// - DragDropClick = 58, - + DragDropCancel = 55, + /// - /// AtkComponentDragDrop Cancel. - /// Sent on MouseUp if the cursor has not moved since DragDropBegin, OR on MouseDown over a locked icon. + /// Drag Drop Unknown. /// - [Obsolete("Renamed to DragDropClick")] - DragDropCancel = 58, - + [Obsolete("Use DragDropCancel")] + DragDropUnk55 = 55, + /// - /// AtkComponentIconText Roll Over. + /// Icon Text Roll Over. /// - IconTextRollOver = 59, - + IconTextRollOver = 56, + /// - /// AtkComponentIconText Roll Out. + /// Icon Text Roll Out. /// - IconTextRollOut = 60, - + IconTextRollOut = 57, + /// - /// AtkComponentIconText Click. + /// Icon Text Click. /// - IconTextClick = 61, - + IconTextClick = 58, + /// - /// AtkDialogue Close. + /// Window Roll Over. /// - DialogueClose = 62, - + WindowRollOver = 67, + /// - /// AtkDialogue Submit. + /// Window Roll Out. /// - DialogueSubmit = 63, - + WindowRollOut = 68, + /// - /// AtkTimer Tick. + /// Window Change Scale. /// - TimerTick = 64, - - /// - /// AtkTimer End. - /// - TimerEnd = 65, - - /// - /// AtkTimer Start. - /// - TimerStart = 66, - - /// - /// AtkSimpleTween Progress. - /// - TweenProgress = 67, - - /// - /// AtkSimpleTween Complete. - /// - TweenComplete = 68, - - /// - /// AtkAddonControl Child Addon Attached. - /// - ChildAddonAttached = 69, - - /// - /// AtkComponentWindow Roll Over. - /// - WindowRollOver = 70, - - /// - /// AtkComponentWindow Roll Out. - /// - WindowRollOut = 71, - - /// - /// AtkComponentWindow Change Scale. - /// - WindowChangeScale = 72, - - /// - /// AtkTimeline Active Label Changed. - /// - TimelineActiveLabelChanged = 75, - - /// - /// AtkTextNode Link Mouse Click. - /// - LinkMouseClick = 75, - - /// - /// AtkTextNode Link Mouse Over. - /// - LinkMouseOver = 76, - - /// - /// AtkTextNode Link Mouse Out. - /// - LinkMouseOut = 77, + WindowChangeScale = 69, } diff --git a/Dalamud/Game/Addon/Events/EventDataTypes/AddonEventData.cs b/Dalamud/Game/Addon/Events/EventDataTypes/AddonEventData.cs deleted file mode 100644 index 423bf5eb9..000000000 --- a/Dalamud/Game/Addon/Events/EventDataTypes/AddonEventData.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Dalamud.Game.Addon.Events.EventDataTypes; - -/// -/// Object representing data that is relevant in handling native events. -/// -public class AddonEventData -{ - /// - /// Initializes a new instance of the class. - /// - internal AddonEventData() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// Other event data to copy. - internal AddonEventData(AddonEventData eventData) - { - this.AtkEventType = eventData.AtkEventType; - this.Param = eventData.Param; - this.AtkEventPointer = eventData.AtkEventPointer; - this.AtkEventDataPointer = eventData.AtkEventDataPointer; - this.AddonPointer = eventData.AddonPointer; - this.NodeTargetPointer = eventData.NodeTargetPointer; - this.AtkEventListener = eventData.AtkEventListener; - } - - /// - /// Gets the AtkEventType for this event. - /// - public AddonEventType AtkEventType { get; internal set; } - - /// - /// Gets the param field for this event. - /// - public uint Param { get; internal set; } - - /// - /// Gets the pointer to the AtkEvent object for this event. - /// - /// Note: This is not a pointer to the AtkEventData object.

- /// Warning: AtkEvent->Node has been modified to be the AtkUnitBase*, and AtkEvent->Target has been modified to be the AtkResNode* that triggered this event.
- public nint AtkEventPointer { get; internal set; } - - /// - /// Gets the pointer to the AtkEventData object for this event. - /// - /// This field will contain relevant data such as left vs right click, scroll up vs scroll down. - public nint AtkEventDataPointer { get; internal set; } - - /// - /// Gets the pointer to the AtkUnitBase that is handling this event. - /// - public nint AddonPointer { get; internal set; } - - /// - /// Gets the pointer to the AtkResNode that triggered this event. - /// - public nint NodeTargetPointer { get; internal set; } - - /// - /// Gets or sets a pointer to the AtkEventListener responsible for handling this event. - /// Note: As the event listener is dalamud allocated, there's no reason to expose this field. - /// - internal nint AtkEventListener { get; set; } -} diff --git a/Dalamud/Game/Addon/Events/EventDataTypes/AddonMouseEventData.cs b/Dalamud/Game/Addon/Events/EventDataTypes/AddonMouseEventData.cs deleted file mode 100644 index 27d56c287..000000000 --- a/Dalamud/Game/Addon/Events/EventDataTypes/AddonMouseEventData.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.Numerics; - -using FFXIVClientStructs.FFXIV.Component.GUI; - -using AtkMouseData = FFXIVClientStructs.FFXIV.Component.GUI.AtkEventData.AtkMouseData; -using ModifierFlag = FFXIVClientStructs.FFXIV.Component.GUI.AtkEventData.AtkMouseData.ModifierFlag; - -namespace Dalamud.Game.Addon.Events.EventDataTypes; - -/// -public unsafe class AddonMouseEventData : AddonEventData -{ - /// - /// Initializes a new instance of the class. - /// - internal AddonMouseEventData() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// Other event data to copy. - internal AddonMouseEventData(AddonEventData eventData) - : base(eventData) - { - } - - /// - /// Gets a value indicating whether the event was a Left Mouse Click. - /// - public bool IsLeftClick => this.MouseData.ButtonId is 0; - - /// - /// Gets a value indicating whether the event was a Right Mouse Click. - /// - public bool IsRightClick => this.MouseData.ButtonId is 1; - - /// - /// Gets a value indicating whether there are any modifiers set such as alt, control, shift, or dragging. - /// - public bool IsNoModifier => this.MouseData.Modifier is 0; - - /// - /// Gets a value indicating whether alt was being held when this event triggered. - /// - public bool IsAltHeld => this.MouseData.Modifier.HasFlag(ModifierFlag.Alt); - - /// - /// Gets a value indicating whether control was being held when this event triggered. - /// - public bool IsControlHeld => this.MouseData.Modifier.HasFlag(ModifierFlag.Ctrl); - - /// - /// Gets a value indicating whether shift was being held when this event triggered. - /// - public bool IsShiftHeld => this.MouseData.Modifier.HasFlag(ModifierFlag.Shift); - - /// - /// Gets a value indicating whether this event is a mouse drag or not. - /// - public bool IsDragging => this.MouseData.Modifier.HasFlag(ModifierFlag.Dragging); - - /// - /// Gets a value indicating whether the event was a scroll up. - /// - public bool IsScrollUp => this.MouseData.WheelDirection is 1; - - /// - /// Gets a value indicating whether the event was a scroll down. - /// - public bool IsScrollDown => this.MouseData.WheelDirection is -1; - - /// - /// Gets the position of the mouse when this event was triggered. - /// - public Vector2 Position => new(this.MouseData.PosX, this.MouseData.PosY); - - private AtkEventData* AtkEventData => (AtkEventData*)this.AtkEventDataPointer; - - private AtkMouseData MouseData => this.AtkEventData->MouseData; -} diff --git a/Dalamud/Game/Addon/Events/PluginEventController.cs b/Dalamud/Game/Addon/Events/PluginEventController.cs index 076c39cbb..403a812db 100644 --- a/Dalamud/Game/Addon/Events/PluginEventController.cs +++ b/Dalamud/Game/Addon/Events/PluginEventController.cs @@ -1,9 +1,9 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using Dalamud.Game.Addon.Events.EventDataTypes; using Dalamud.Game.Gui; using Dalamud.Logging.Internal; +using Dalamud.Memory; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Component.GUI; @@ -15,7 +15,7 @@ namespace Dalamud.Game.Addon.Events; ///
internal unsafe class PluginEventController : IDisposable { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("AddonEventManager"); /// /// Initializes a new instance of the class. @@ -26,8 +26,8 @@ internal unsafe class PluginEventController : IDisposable } private AddonEventListener EventListener { get; init; } - - private List Events { get; } = []; + + private List Events { get; } = new(); /// /// Adds a tracked event. @@ -35,16 +35,16 @@ internal unsafe class PluginEventController : IDisposable /// The Parent addon for the event. /// The Node for the event. /// The Event Type. - /// The delegate to call when invoking this event. + /// The delegate to call when invoking this event. /// IAddonEventHandle used to remove the event. - public IAddonEventHandle AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType atkEventType, IAddonEventManager.AddonEventDelegate eventDelegate) + public IAddonEventHandle AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType atkEventType, IAddonEventManager.AddonEventHandler handler) { var node = (AtkResNode*)atkResNode; var addon = (AtkUnitBase*)atkUnitBase; var eventType = (AtkEventType)atkEventType; var eventId = this.GetNextParamKey(); var eventGuid = Guid.NewGuid(); - + var eventHandle = new AddonEventHandle { AddonName = addon->NameString, @@ -52,11 +52,11 @@ internal unsafe class PluginEventController : IDisposable EventType = atkEventType, EventGuid = eventGuid, }; - + var eventEntry = new AddonEventEntry { Addon = atkUnitBase, - Delegate = eventDelegate, + Handler = handler, Node = atkResNode, EventType = atkEventType, ParamKey = eventId, @@ -92,14 +92,14 @@ internal unsafe class PluginEventController : IDisposable if (this.Events.Where(entry => entry.AddonName == addonName).ToList() is { Count: not 0 } events) { Log.Verbose($"Addon: {addonName} is Finalizing, removing {events.Count} events."); - + foreach (var registeredEvent in events) { this.RemoveEvent(registeredEvent.Handle); } } } - + /// public void Dispose() { @@ -107,7 +107,7 @@ internal unsafe class PluginEventController : IDisposable { this.RemoveEvent(registeredEvent.Handle); } - + this.EventListener.Dispose(); } @@ -120,7 +120,7 @@ internal unsafe class PluginEventController : IDisposable throw new OverflowException($"uint.MaxValue number of ParamKeys used for this event controller."); } - + /// /// Attempts to remove a tracked event from native UI. /// This method performs several safety checks to only remove events from a still active addon. @@ -139,22 +139,20 @@ internal unsafe class PluginEventController : IDisposable // Is our stored addon pointer the same as the active addon pointer? if (currentAddonPointer != eventEntry.Addon) return; - // Make sure the addon is not unloaded - var atkUnitBase = currentAddonPointer.Struct; - if (atkUnitBase->UldManager.LoadedState == AtkLoadState.Unloaded) return; - // Does this addon contain the node this event is for? (by address) + var atkUnitBase = (AtkUnitBase*)currentAddonPointer; var nodeFound = false; - foreach (var node in atkUnitBase->UldManager.Nodes) + foreach (var index in Enumerable.Range(0, atkUnitBase->UldManager.NodeListCount)) { + var node = atkUnitBase->UldManager.NodeList[index]; + // If this node matches our node, then we know our node is still valid. - if ((nint)node.Value == eventEntry.Node) + if (node is not null && (nint)node == eventEntry.Node) { nodeFound = true; - break; } } - + // If we didn't find the node, we can't remove the event. if (!nodeFound) return; @@ -168,41 +166,33 @@ internal unsafe class PluginEventController : IDisposable var paramKeyMatches = currentEvent->Param == eventEntry.ParamKey; var eventListenerAddressMatches = (nint)currentEvent->Listener == this.EventListener.Address; var eventTypeMatches = currentEvent->State.EventType == eventType; - + if (paramKeyMatches && eventListenerAddressMatches && eventTypeMatches) { eventFound = true; break; } - + // Move to the next event. currentEvent = currentEvent->NextEvent; } - + // If we didn't find the event, we can't remove the event. if (!eventFound) return; // We have a valid addon, valid node, valid event, and valid key. this.EventListener.UnregisterEvent(atkResNode, eventType, eventEntry.ParamKey); } - + private void PluginEventListHandler(AtkEventListener* self, AtkEventType eventType, uint eventParam, AtkEvent* eventPtr, AtkEventData* eventDataPtr) { try { if (eventPtr is null) return; if (this.Events.FirstOrDefault(handler => handler.ParamKey == eventParam) is not { } eventInfo) return; - - eventInfo.Delegate.Invoke((AddonEventType)eventType, new AddonEventData - { - AddonPointer = (nint)eventPtr->Node, - NodeTargetPointer = (nint)eventPtr->Target, - AtkEventDataPointer = (nint)eventDataPtr, - AtkEventListener = (nint)self, - AtkEventType = (AddonEventType)eventType, - Param = eventParam, - AtkEventPointer = (nint)eventPtr, - }); + + // We stored the AtkUnitBase* in EventData->Node, and EventData->Target contains the node that triggered the event. + eventInfo.Handler.Invoke((AddonEventType)eventType, (nint)eventPtr->Node, (nint)eventPtr->Target); } catch (Exception exception) { diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs index c4a7e8f53..36083337e 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonArgs.cs @@ -1,46 +1,92 @@ -using Dalamud.Game.NativeWrapper; +using System.Runtime.CompilerServices; + +using Dalamud.Memory; + +using FFXIVClientStructs.FFXIV.Component.GUI; namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; /// /// Base class for AddonLifecycle AddonArgTypes. /// -public class AddonArgs +public abstract unsafe class AddonArgs { /// /// Constant string representing the name of an addon that is invalid. /// public const string InvalidAddon = "NullAddon"; - /// - /// Initializes a new instance of the class. - /// - internal AddonArgs() - { - } + private string? addonName; + private IntPtr addon; /// /// Gets the name of the addon this args referrers to. /// - public string AddonName { get; private set; } = InvalidAddon; + public string AddonName => this.GetAddonName(); /// /// Gets the pointer to the addons AtkUnitBase. /// - public AtkUnitBasePtr Addon + public nint Addon { - get; - internal set - { - field = value; - - if (!this.Addon.IsNull && !string.IsNullOrEmpty(value.Name)) - this.AddonName = value.Name; - } + get => this.AddonInternal; + init => this.AddonInternal = value; } /// /// Gets the type of these args. /// - public virtual AddonArgsType Type => AddonArgsType.Generic; + public abstract AddonArgsType Type { get; } + + /// + /// Gets or sets the pointer to the addons AtkUnitBase. + /// + internal nint AddonInternal + { + get => this.addon; + set + { + this.addon = value; + + // Note: always clear addonName on updating the addon being pointed. + // Same address may point to a different addon. + this.addonName = null; + } + } + + /// + /// Checks if addon name matches the given span of char. + /// + /// The name to check. + /// Whether it is the case. + internal bool IsAddon(ReadOnlySpan name) + { + if (this.Addon == nint.Zero) return false; + if (name.Length is 0 or > 0x20) + return false; + + var addonPointer = (AtkUnitBase*)this.Addon; + if (addonPointer->Name[0] == 0) return false; + + // note: might want to rewrite this to just compare to NameString + return MemoryHelper.EqualsZeroTerminatedString( + name, + (nint)Unsafe.AsPointer(ref addonPointer->Name[0]), + null, + 0x20); + } + + /// + /// Helper method for ensuring the name of the addon is valid. + /// + /// The name of the addon for this object. when invalid. + private string GetAddonName() + { + if (this.Addon == nint.Zero) return InvalidAddon; + + var addonPointer = (AtkUnitBase*)this.Addon; + if (addonPointer->Name[0] == 0) return InvalidAddon; + + return this.addonName ??= addonPointer->NameString; + } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonCloseArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonCloseArgs.cs deleted file mode 100644 index db3e442f8..000000000 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonCloseArgs.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; - -/// -/// Addon argument data for Close events. -/// -public class AddonCloseArgs : AddonArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AddonCloseArgs() - { - } - - /// - public override AddonArgsType Type => AddonArgsType.Close; - - /// - /// Gets or sets a value indicating whether the window should fire the callback method on close. - /// - public bool FireCallback { get; set; } -} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonDrawArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonDrawArgs.cs new file mode 100644 index 000000000..989e11912 --- /dev/null +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonDrawArgs.cs @@ -0,0 +1,24 @@ +namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; + +/// +/// Addon argument data for Draw events. +/// +public class AddonDrawArgs : AddonArgs, ICloneable +{ + /// + /// Initializes a new instance of the class. + /// + [Obsolete("Not intended for public construction.", false)] + public AddonDrawArgs() + { + } + + /// + public override AddonArgsType Type => AddonArgsType.Draw; + + /// + public AddonDrawArgs Clone() => (AddonDrawArgs)this.MemberwiseClone(); + + /// + object ICloneable.Clone() => this.Clone(); +} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonFinalizeArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonFinalizeArgs.cs new file mode 100644 index 000000000..d9401b414 --- /dev/null +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonFinalizeArgs.cs @@ -0,0 +1,24 @@ +namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; + +/// +/// Addon argument data for ReceiveEvent events. +/// +public class AddonFinalizeArgs : AddonArgs, ICloneable +{ + /// + /// Initializes a new instance of the class. + /// + [Obsolete("Not intended for public construction.", false)] + public AddonFinalizeArgs() + { + } + + /// + public override AddonArgsType Type => AddonArgsType.Finalize; + + /// + public AddonFinalizeArgs Clone() => (AddonFinalizeArgs)this.MemberwiseClone(); + + /// + object ICloneable.Clone() => this.Clone(); +} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonFocusChangedArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonFocusChangedArgs.cs deleted file mode 100644 index 8936a233b..000000000 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonFocusChangedArgs.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; - -/// -/// Addon argument data for OnFocusChanged events. -/// -public class AddonFocusChangedArgs : AddonArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AddonFocusChangedArgs() - { - } - - /// - public override AddonArgsType Type => AddonArgsType.FocusChanged; - - /// - /// Gets or sets a value indicating whether the window is being focused or unfocused. - /// - public bool ShouldFocus { get; set; } -} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonHideArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonHideArgs.cs deleted file mode 100644 index 3e3521bd0..000000000 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonHideArgs.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; - -/// -/// Addon argument data for Hide events. -/// -public class AddonHideArgs : AddonArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AddonHideArgs() - { - } - - /// - public override AddonArgsType Type => AddonArgsType.Hide; - - /// - /// Gets or sets a value indicating whether to call the hide callback handler when this hides. - /// - public bool CallHideCallback { get; set; } - - /// - /// Gets or sets the flags that the window will set when it Shows/Hides. - /// - public uint SetShowHideFlags { get; set; } - - /// - /// Gets or sets a value indicating whether something for this event message. - /// - internal bool UnknownBool { get; set; } -} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs index 785cd199f..a557b0cb3 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonReceiveEventArgs.cs @@ -3,12 +3,13 @@ namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; /// /// Addon argument data for ReceiveEvent events. /// -public class AddonReceiveEventArgs : AddonArgs +public class AddonReceiveEventArgs : AddonArgs, ICloneable { /// /// Initializes a new instance of the class. /// - internal AddonReceiveEventArgs() + [Obsolete("Not intended for public construction.", false)] + public AddonReceiveEventArgs() { } @@ -31,7 +32,13 @@ public class AddonReceiveEventArgs : AddonArgs public nint AtkEvent { get; set; } /// - /// Gets or sets the pointer to an AtkEventData for this event message. + /// Gets or sets the pointer to a block of data for this event message. /// - public nint AtkEventData { get; set; } + public nint Data { get; set; } + + /// + public AddonReceiveEventArgs Clone() => (AddonReceiveEventArgs)this.MemberwiseClone(); + + /// + object ICloneable.Clone() => this.Clone(); } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs index d81d262bf..6e1b11ead 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRefreshArgs.cs @@ -1,22 +1,17 @@ -using System.Collections.Generic; - -using Dalamud.Game.NativeWrapper; -using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Component.GUI; -using FFXIVClientStructs.Interop; namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; /// /// Addon argument data for Refresh events. /// -public class AddonRefreshArgs : AddonArgs +public class AddonRefreshArgs : AddonArgs, ICloneable { /// /// Initializes a new instance of the class. /// - internal AddonRefreshArgs() + [Obsolete("Not intended for public construction.", false)] + public AddonRefreshArgs() { } @@ -36,32 +31,11 @@ public class AddonRefreshArgs : AddonArgs /// /// Gets the AtkValues in the form of a span. /// - [Obsolete("Pending removal, Use AtkValueEnumerable instead.")] - [Api15ToDo("Make this internal, remove obsolete")] public unsafe Span AtkValueSpan => new(this.AtkValues.ToPointer(), (int)this.AtkValueCount); - /// - /// Gets an enumerable collection of of the event's AtkValues. - /// - /// - /// An of corresponding to the event's AtkValues. - /// - public IEnumerable AtkValueEnumerable - { - get - { - for (var i = 0; i < this.AtkValueCount; i++) - { - AtkValuePtr ptr; - unsafe - { -#pragma warning disable CS0618 // Type or member is obsolete - ptr = new AtkValuePtr((nint)this.AtkValueSpan.GetPointer(i)); -#pragma warning restore CS0618 // Type or member is obsolete - } + /// + public AddonRefreshArgs Clone() => (AddonRefreshArgs)this.MemberwiseClone(); - yield return ptr; - } - } - } + /// + object ICloneable.Clone() => this.Clone(); } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs index 7005b77c2..26357abb0 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonRequestedUpdateArgs.cs @@ -1,14 +1,15 @@ -namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; +namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; /// /// Addon argument data for OnRequestedUpdate events. /// -public class AddonRequestedUpdateArgs : AddonArgs +public class AddonRequestedUpdateArgs : AddonArgs, ICloneable { /// /// Initializes a new instance of the class. /// - internal AddonRequestedUpdateArgs() + [Obsolete("Not intended for public construction.", false)] + public AddonRequestedUpdateArgs() { } @@ -24,4 +25,10 @@ public class AddonRequestedUpdateArgs : AddonArgs /// Gets or sets the StringArrayData** for this event. /// public nint StringArrayData { get; set; } + + /// + public AddonRequestedUpdateArgs Clone() => (AddonRequestedUpdateArgs)this.MemberwiseClone(); + + /// + object ICloneable.Clone() => this.Clone(); } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs index 1cc0eacf3..19c93ce25 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonSetupArgs.cs @@ -1,22 +1,17 @@ -using System.Collections.Generic; - -using Dalamud.Game.NativeWrapper; -using Dalamud.Utility; - -using FFXIVClientStructs.FFXIV.Component.GUI; -using FFXIVClientStructs.Interop; +using FFXIVClientStructs.FFXIV.Component.GUI; namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; /// /// Addon argument data for Setup events. /// -public class AddonSetupArgs : AddonArgs +public class AddonSetupArgs : AddonArgs, ICloneable { /// /// Initializes a new instance of the class. /// - internal AddonSetupArgs() + [Obsolete("Not intended for public construction.", false)] + public AddonSetupArgs() { } @@ -36,32 +31,11 @@ public class AddonSetupArgs : AddonArgs /// /// Gets the AtkValues in the form of a span. /// - [Obsolete("Pending removal, Use AtkValueEnumerable instead.")] - [Api15ToDo("Make this internal, remove obsolete")] public unsafe Span AtkValueSpan => new(this.AtkValues.ToPointer(), (int)this.AtkValueCount); - /// - /// Gets an enumerable collection of of the event's AtkValues. - /// - /// - /// An of corresponding to the event's AtkValues. - /// - public IEnumerable AtkValueEnumerable - { - get - { - for (var i = 0; i < this.AtkValueCount; i++) - { - AtkValuePtr ptr; - unsafe - { -#pragma warning disable CS0618 // Type or member is obsolete - ptr = new AtkValuePtr((nint)this.AtkValueSpan.GetPointer(i)); -#pragma warning restore CS0618 // Type or member is obsolete - } + /// + public AddonSetupArgs Clone() => (AddonSetupArgs)this.MemberwiseClone(); - yield return ptr; - } - } - } + /// + object ICloneable.Clone() => this.Clone(); } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonShowArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonShowArgs.cs deleted file mode 100644 index 3153d1208..000000000 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonShowArgs.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; - -/// -/// Addon argument data for Show events. -/// -public class AddonShowArgs : AddonArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AddonShowArgs() - { - } - - /// - public override AddonArgsType Type => AddonArgsType.Show; - - /// - /// Gets or sets a value indicating whether the window should play open sound effects. - /// - public bool SilenceOpenSoundEffect { get; set; } - - /// - /// Gets or sets the flags that the window will unset when it Shows/Hides. - /// - public uint UnsetShowHideFlags { get; set; } -} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonUpdateArgs.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonUpdateArgs.cs new file mode 100644 index 000000000..cc34a7531 --- /dev/null +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgTypes/AddonUpdateArgs.cs @@ -0,0 +1,38 @@ +namespace Dalamud.Game.Addon.Lifecycle.AddonArgTypes; + +/// +/// Addon argument data for Update events. +/// +public class AddonUpdateArgs : AddonArgs, ICloneable +{ + /// + /// Initializes a new instance of the class. + /// + [Obsolete("Not intended for public construction.", false)] + public AddonUpdateArgs() + { + } + + /// + public override AddonArgsType Type => AddonArgsType.Update; + + /// + /// Gets the time since the last update. + /// + public float TimeDelta + { + get => this.TimeDeltaInternal; + init => this.TimeDeltaInternal = value; + } + + /// + /// Gets or sets the time since the last update. + /// + internal float TimeDeltaInternal { get; set; } + + /// + public AddonUpdateArgs Clone() => (AddonUpdateArgs)this.MemberwiseClone(); + + /// + object ICloneable.Clone() => this.Clone(); +} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonArgsType.cs b/Dalamud/Game/Addon/Lifecycle/AddonArgsType.cs index bc48eeed0..b58b5f4c7 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonArgsType.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonArgsType.cs @@ -5,48 +5,38 @@ /// public enum AddonArgsType { - /// - /// Generic arg type that contains no meaningful data. - /// - Generic, - /// /// Contains argument data for Setup. /// Setup, - + + /// + /// Contains argument data for Update. + /// + Update, + + /// + /// Contains argument data for Draw. + /// + Draw, + + /// + /// Contains argument data for Finalize. + /// + Finalize, + /// /// Contains argument data for RequestedUpdate. - /// + /// RequestedUpdate, - + /// /// Contains argument data for Refresh. - /// + /// Refresh, - + /// /// Contains argument data for ReceiveEvent. /// ReceiveEvent, - - /// - /// Contains argument data for Show. - /// - Show, - - /// - /// Contains argument data for Hide. - /// - Hide, - - /// - /// Contains argument data for Close. - /// - Close, - - /// - /// Contains argument data for OnFocusChanged. - /// - FocusChanged, } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonEvent.cs b/Dalamud/Game/Addon/Lifecycle/AddonEvent.cs index 74c84d754..5fd0ac964 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonEvent.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonEvent.cs @@ -16,7 +16,7 @@ public enum AddonEvent /// /// PreSetup, - + /// /// An event that is fired after an addon has finished its initial setup. This event is particularly useful for /// developers seeking to add custom elements to now-initialized and populated node lists, as well as reading data @@ -29,6 +29,7 @@ public enum AddonEvent /// An event that is fired before an addon begins its update cycle via . This event /// is fired every frame that an addon is loaded, regardless of visibility. /// + /// PreUpdate, /// @@ -41,6 +42,7 @@ public enum AddonEvent /// An event that is fired before an addon begins drawing to screen via . Unlike /// , this event is only fired if an addon is visible or otherwise drawing to screen. /// + /// PreDraw, /// @@ -60,8 +62,9 @@ public enum AddonEvent ///
/// As this is part of the destruction process for an addon, this event does not have an associated Post event. /// + /// PreFinalize, - + /// /// An event that is fired before a call to is made in response to a /// change in the subscribed or @@ -78,13 +81,13 @@ public enum AddonEvent /// to the Free Company's overview. /// PreRequestedUpdate, - + /// /// An event that is fired after an addon has finished processing an ArrayData update. /// See for more information. /// PostRequestedUpdate, - + /// /// An event that is fired before an addon calls its method. Refreshes are /// generally triggered in response to certain user interactions such as changing tabs, and are primarily used to @@ -93,13 +96,13 @@ public enum AddonEvent /// /// PreRefresh, - + /// /// An event that is fired after an addon has finished its refresh. /// See for more information. /// PostRefresh, - + /// /// An event that is fired before an addon begins processing a user-driven event via /// , such as mousing over an element or clicking a button. This event @@ -109,108 +112,10 @@ public enum AddonEvent /// /// PreReceiveEvent, - + /// /// An event that is fired after an addon finishes calling its method. /// See for more information. /// PostReceiveEvent, - - /// - /// An event that is fired before an addon processes its open method. - /// - PreOpen, - - /// - /// An event that is fired after an addon has processed its open method. - /// - PostOpen, - - /// - /// An even that is fired before an addon processes its Close method. - /// - PreClose, - - /// - /// An event that is fired after an addon has processed its Close method. - /// - PostClose, - - /// - /// An event that is fired before an addon processes its Show method. - /// - PreShow, - - /// - /// An event that is fired after an addon has processed its Show method. - /// - PostShow, - - /// - /// An event that is fired before an addon processes its Hide method. - /// - PreHide, - - /// - /// An event that is fired after an addon has processed its Hide method. - /// - PostHide, - - /// - /// An event that is fired before an addon processes its OnMove method. - /// OnMove is triggered only when a move is completed. - /// - PreMove, - - /// - /// An event that is fired after an addon has processed its OnMove method. - /// OnMove is triggered only when a move is completed. - /// - PostMove, - - /// - /// An event that is fired before an addon processes its MouseOver method. - /// - PreMouseOver, - - /// - /// An event that is fired after an addon has processed its MouseOver method. - /// - PostMouseOver, - - /// - /// An event that is fired before an addon processes its MouseOut method. - /// - PreMouseOut, - - /// - /// An event that is fired after an addon has processed its MouseOut method. - /// - PostMouseOut, - - /// - /// An event that is fired before an addon processes its Focus method. - /// - /// - /// Be aware this is only called for certain popup windows, it is not triggered when clicking on windows. - /// - PreFocus, - - /// - /// An event that is fired after an addon has processed its Focus method. - /// - /// - /// Be aware this is only called for certain popup windows, it is not triggered when clicking on windows. - /// - PostFocus, - - /// - /// An event that is fired before an addon processes its FocusChanged method. - /// - PreFocusChanged, - - /// - /// An event that is fired after a addon processes its FocusChanged method. - /// - PostFocusChanged, } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs b/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs index 2e5439ed0..b9179edde 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonLifecycle.cs @@ -1,15 +1,16 @@ using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; using Dalamud.Hooking; +using Dalamud.Hooking.Internal; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; using Dalamud.Plugin.Services; +using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; namespace Dalamud.Game.Addon.Lifecycle; @@ -20,56 +21,75 @@ namespace Dalamud.Game.Addon.Lifecycle; [ServiceManager.EarlyLoadedService] internal unsafe class AddonLifecycle : IInternalDisposableService { - /// - /// Gets a list of all allocated addon virtual tables. - /// - public static readonly List AllocatedTables = []; - - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("AddonLifecycle"); [ServiceManager.ServiceDependency] private readonly Framework framework = Service.Get(); - private Hook? onInitializeAddonHook; - private bool isInvokingListeners; + [ServiceManager.ServiceDependency] + private readonly AddonLifecyclePooledArgs argsPool = Service.Get(); + + private readonly nint disallowedReceiveEventAddress; + + private readonly AddonLifecycleAddressResolver address; + private readonly AddonSetupHook onAddonSetupHook; + private readonly Hook onAddonFinalizeHook; + private readonly CallHook onAddonDrawHook; + private readonly CallHook onAddonUpdateHook; + private readonly Hook onAddonRefreshHook; + private readonly CallHook onAddonRequestedUpdateHook; [ServiceManager.ServiceConstructor] - private AddonLifecycle() + private AddonLifecycle(TargetSigScanner sigScanner) { - this.onInitializeAddonHook = Hook.FromAddress((nint)AtkUnitBase.StaticVirtualTablePointer->Initialize, this.OnAddonInitialize); - this.onInitializeAddonHook.Enable(); + this.address = new AddonLifecycleAddressResolver(); + this.address.Setup(sigScanner); + + this.disallowedReceiveEventAddress = (nint)AtkUnitBase.StaticVirtualTablePointer->ReceiveEvent; + + var refreshAddonAddress = (nint)RaptureAtkUnitManager.StaticVirtualTablePointer->RefreshAddon; + + this.onAddonSetupHook = new AddonSetupHook(this.address.AddonSetup, this.OnAddonSetup); + this.onAddonFinalizeHook = Hook.FromAddress(this.address.AddonFinalize, this.OnAddonFinalize); + this.onAddonDrawHook = new CallHook(this.address.AddonDraw, this.OnAddonDraw); + this.onAddonUpdateHook = new CallHook(this.address.AddonUpdate, this.OnAddonUpdate); + this.onAddonRefreshHook = Hook.FromAddress(refreshAddonAddress, this.OnAddonRefresh); + this.onAddonRequestedUpdateHook = new CallHook(this.address.AddonOnRequestedUpdate, this.OnRequestedUpdate); + + this.onAddonSetupHook.Enable(); + this.onAddonFinalizeHook.Enable(); + this.onAddonDrawHook.Enable(); + this.onAddonUpdateHook.Enable(); + this.onAddonRefreshHook.Enable(); + this.onAddonRequestedUpdateHook.Enable(); } + private delegate void AddonFinalizeDelegate(AtkUnitManager* unitManager, AtkUnitBase** atkUnitBase); + + /// + /// Gets a list of all AddonLifecycle ReceiveEvent Listener Hooks. + /// + internal List ReceiveEventListeners { get; } = new(); + /// /// Gets a list of all AddonLifecycle Event Listeners. - ///
- /// Mapping is: EventType -> AddonName -> ListenerList - internal Dictionary>> EventListeners { get; } = []; + ///
+ internal List EventListeners { get; } = new(); /// void IInternalDisposableService.DisposeService() { - this.onInitializeAddonHook?.Dispose(); - this.onInitializeAddonHook = null; + this.onAddonSetupHook.Dispose(); + this.onAddonFinalizeHook.Dispose(); + this.onAddonDrawHook.Dispose(); + this.onAddonUpdateHook.Dispose(); + this.onAddonRefreshHook.Dispose(); + this.onAddonRequestedUpdateHook.Dispose(); - AllocatedTables.ForEach(entry => entry.Dispose()); - AllocatedTables.Clear(); - } - - /// - /// Resolves a virtual table address to the original virtual table address. - /// - /// The modified address to resolve. - /// The original address. - internal static AtkUnitBase.AtkUnitBaseVirtualTable* GetOriginalVirtualTable(AtkUnitBase.AtkUnitBaseVirtualTable* tableAddress) - { - var matchedTable = AllocatedTables.FirstOrDefault(table => table.ModifiedVirtualTable == tableAddress); - if (matchedTable == null) + foreach (var receiveEventListener in this.ReceiveEventListeners) { - return null; + receiveEventListener.Dispose(); } - - return matchedTable.OriginalVirtualTable; } /// @@ -78,14 +98,20 @@ internal unsafe class AddonLifecycle : IInternalDisposableService /// The listener to register. internal void RegisterListener(AddonLifecycleEventListener listener) { - if (this.isInvokingListeners) + this.framework.RunOnTick(() => { - this.framework.RunOnTick(() => this.RegisterListenerMethod(listener)); - } - else - { - this.framework.RunOnFrameworkThread(() => this.RegisterListenerMethod(listener)); - } + this.EventListeners.Add(listener); + + // If we want receive event messages have an already active addon, enable the receive event hook. + // If the addon isn't active yet, we'll grab the hook when it sets up. + if (listener is { EventType: AddonEvent.PreReceiveEvent or AddonEvent.PostReceiveEvent }) + { + if (this.ReceiveEventListeners.FirstOrDefault(listeners => listeners.AddonNames.Contains(listener.AddonName)) is { } receiveEventListener) + { + receiveEventListener.TryEnable(); + } + } + }); } /// @@ -94,16 +120,27 @@ internal unsafe class AddonLifecycle : IInternalDisposableService /// The listener to unregister. internal void UnregisterListener(AddonLifecycleEventListener listener) { - listener.IsRequestedToClear = true; + // Set removed state to true immediately, then lazily remove it from the EventListeners list on next Framework Update. + listener.Removed = true; - if (this.isInvokingListeners) + this.framework.RunOnTick(() => { - this.framework.RunOnTick(() => this.UnregisterListenerMethod(listener)); - } - else - { - this.framework.RunOnFrameworkThread(() => this.UnregisterListenerMethod(listener)); - } + this.EventListeners.Remove(listener); + + // If we are disabling an ReceiveEvent listener, check if we should disable the hook. + if (listener is { EventType: AddonEvent.PreReceiveEvent or AddonEvent.PostReceiveEvent }) + { + // Get the ReceiveEvent Listener for this addon + if (this.ReceiveEventListeners.FirstOrDefault(listeners => listeners.AddonNames.Contains(listener.AddonName)) is { } receiveEventListener) + { + // If there are no other listeners listening for this event, disable the hook. + if (!this.EventListeners.Any(listeners => listeners.AddonName.Contains(listener.AddonName) && listener.EventType is AddonEvent.PreReceiveEvent or AddonEvent.PostReceiveEvent)) + { + receiveEventListener.Disable(); + } + } + } + }); } /// @@ -114,104 +151,220 @@ internal unsafe class AddonLifecycle : IInternalDisposableService /// What to blame on errors. internal void InvokeListenersSafely(AddonEvent eventType, AddonArgs args, [CallerMemberName] string blame = "") { - this.isInvokingListeners = true; - - // Early return if we don't have any listeners of this type - if (!this.EventListeners.TryGetValue(eventType, out var addonListeners)) return; - - // Handle listeners for this event type that don't care which addon is triggering it - if (addonListeners.TryGetValue(string.Empty, out var globalListeners)) + // Do not use linq; this is a high-traffic function, and more heap allocations avoided, the better. + foreach (var listener in this.EventListeners) { - foreach (var listener in globalListeners) + if (listener.EventType != eventType) + continue; + + // If the listener is pending removal, and is waiting until the next Framework Update, don't invoke listener. + if (listener.Removed) + continue; + + // Match on string.empty for listeners that want events for all addons. + if (!string.IsNullOrWhiteSpace(listener.AddonName) && !args.IsAddon(listener.AddonName)) + continue; + + try { - if (listener.IsRequestedToClear) continue; - - try - { - listener.FunctionDelegate.Invoke(eventType, args); - } - catch (Exception e) - { - Log.Error(e, $"Exception in {blame} during {eventType} invoke, for global addon event listener."); - } + listener.FunctionDelegate.Invoke(eventType, args); + } + catch (Exception e) + { + Log.Error(e, $"Exception in {blame} during {eventType} invoke."); } } - - // Handle listeners that are listening for this addon and event type specifically - if (addonListeners.TryGetValue(args.AddonName, out var addonListener)) - { - foreach (var listener in addonListener) - { - if (listener.IsRequestedToClear) continue; - - try - { - listener.FunctionDelegate.Invoke(eventType, args); - } - catch (Exception e) - { - Log.Error(e, $"Exception in {blame} during {eventType} invoke, for specific addon {args.AddonName}."); - } - } - } - - this.isInvokingListeners = false; } - private void RegisterListenerMethod(AddonLifecycleEventListener listener) + private void RegisterReceiveEventHook(AtkUnitBase* addon) { - if (!this.EventListeners.ContainsKey(listener.EventType)) + // Hook the addon's ReceiveEvent function here, but only enable the hook if we have an active listener. + // Disallows hooking the core internal event handler. + var addonName = addon->NameString; + var receiveEventAddress = (nint)addon->VirtualTable->ReceiveEvent; + if (receiveEventAddress != this.disallowedReceiveEventAddress) { - if (!this.EventListeners.TryAdd(listener.EventType, [])) + // If we have a ReceiveEvent listener already made for this hook address, add this addon's name to that handler. + if (this.ReceiveEventListeners.FirstOrDefault(listener => listener.FunctionAddress == receiveEventAddress) is { } existingListener) { - return; + if (!existingListener.AddonNames.Contains(addonName)) + { + existingListener.AddonNames.Add(addonName); + } + } + + // Else, we have an addon that we don't have the ReceiveEvent for yet, make it. + else + { + this.ReceiveEventListeners.Add(new AddonLifecycleReceiveEventListener(this, addonName, receiveEventAddress)); + } + + // If we have an active listener for this addon already, we need to activate this hook. + if (this.EventListeners.Any(listener => (listener.EventType is AddonEvent.PostReceiveEvent or AddonEvent.PreReceiveEvent) && listener.AddonName == addonName)) + { + if (this.ReceiveEventListeners.FirstOrDefault(listener => listener.AddonNames.Contains(addonName)) is { } receiveEventListener) + { + receiveEventListener.TryEnable(); + } } } - - // Note: string.Empty is a valid addon name, as that will trigger on any addon for this event type - if (!this.EventListeners[listener.EventType].ContainsKey(listener.AddonName)) - { - if (!this.EventListeners[listener.EventType].TryAdd(listener.AddonName, [])) - { - return; - } - } - - this.EventListeners[listener.EventType][listener.AddonName].Add(listener); } - private void UnregisterListenerMethod(AddonLifecycleEventListener listener) + private void UnregisterReceiveEventHook(string addonName) { - if (this.EventListeners.TryGetValue(listener.EventType, out var addonListeners)) + // Remove this addons ReceiveEvent Registration + if (this.ReceiveEventListeners.FirstOrDefault(listener => listener.AddonNames.Contains(addonName)) is { } eventListener) { - if (addonListeners.TryGetValue(listener.AddonName, out var addonListener)) + eventListener.AddonNames.Remove(addonName); + + // If there are no more listeners let's remove and dispose. + if (eventListener.AddonNames.Count is 0) { - addonListener.Remove(listener); + this.ReceiveEventListeners.Remove(eventListener); + eventListener.Dispose(); } } } - private void OnAddonInitialize(AtkUnitBase* addon) + private void OnAddonSetup(AtkUnitBase* addon, uint valueCount, AtkValue* values) { try { - this.LogInitialize(addon->NameString); - - // AddonVirtualTable class handles creating the virtual table, and overriding each of the tracked virtual functions - AllocatedTables.Add(new AddonVirtualTable(addon, this)); + this.RegisterReceiveEventHook(addon); } catch (Exception e) { - Log.Error(e, "Exception in AddonLifecycle during OnAddonInitialize."); + Log.Error(e, "Exception in OnAddonSetup ReceiveEvent Registration."); } - this.onInitializeAddonHook!.Original(addon); + using var returner = this.argsPool.Rent(out AddonSetupArgs arg); + arg.AddonInternal = (nint)addon; + arg.AtkValueCount = valueCount; + arg.AtkValues = (nint)values; + this.InvokeListenersSafely(AddonEvent.PreSetup, arg); + valueCount = arg.AtkValueCount; + values = (AtkValue*)arg.AtkValues; + + try + { + addon->OnSetup(valueCount, values); + } + catch (Exception e) + { + Log.Error(e, "Caught exception when calling original AddonSetup. This may be a bug in the game or another plugin hooking this method."); + } + + this.InvokeListenersSafely(AddonEvent.PostSetup, arg); } - [Conditional("DEBUG")] - private void LogInitialize(string addonName) + private void OnAddonFinalize(AtkUnitManager* unitManager, AtkUnitBase** atkUnitBase) { - Log.Debug($"Initializing {addonName}"); + try + { + var addonName = atkUnitBase[0]->NameString; + this.UnregisterReceiveEventHook(addonName); + } + catch (Exception e) + { + Log.Error(e, "Exception in OnAddonFinalize ReceiveEvent Removal."); + } + + using var returner = this.argsPool.Rent(out AddonFinalizeArgs arg); + arg.AddonInternal = (nint)atkUnitBase[0]; + this.InvokeListenersSafely(AddonEvent.PreFinalize, arg); + + try + { + this.onAddonFinalizeHook.Original(unitManager, atkUnitBase); + } + catch (Exception e) + { + Log.Error(e, "Caught exception when calling original AddonFinalize. This may be a bug in the game or another plugin hooking this method."); + } + } + + private void OnAddonDraw(AtkUnitBase* addon) + { + using var returner = this.argsPool.Rent(out AddonDrawArgs arg); + arg.AddonInternal = (nint)addon; + this.InvokeListenersSafely(AddonEvent.PreDraw, arg); + + try + { + addon->Draw(); + } + catch (Exception e) + { + Log.Error(e, "Caught exception when calling original AddonDraw. This may be a bug in the game or another plugin hooking this method."); + } + + this.InvokeListenersSafely(AddonEvent.PostDraw, arg); + } + + private void OnAddonUpdate(AtkUnitBase* addon, float delta) + { + using var returner = this.argsPool.Rent(out AddonUpdateArgs arg); + arg.AddonInternal = (nint)addon; + arg.TimeDeltaInternal = delta; + this.InvokeListenersSafely(AddonEvent.PreUpdate, arg); + + try + { + addon->Update(delta); + } + catch (Exception e) + { + Log.Error(e, "Caught exception when calling original AddonUpdate. This may be a bug in the game or another plugin hooking this method."); + } + + this.InvokeListenersSafely(AddonEvent.PostUpdate, arg); + } + + private bool OnAddonRefresh(AtkUnitManager* thisPtr, AtkUnitBase* addon, uint valueCount, AtkValue* values) + { + var result = false; + + using var returner = this.argsPool.Rent(out AddonRefreshArgs arg); + arg.AddonInternal = (nint)addon; + arg.AtkValueCount = valueCount; + arg.AtkValues = (nint)values; + this.InvokeListenersSafely(AddonEvent.PreRefresh, arg); + valueCount = arg.AtkValueCount; + values = (AtkValue*)arg.AtkValues; + + try + { + result = this.onAddonRefreshHook.Original(thisPtr, addon, valueCount, values); + } + catch (Exception e) + { + Log.Error(e, "Caught exception when calling original AddonRefresh. This may be a bug in the game or another plugin hooking this method."); + } + + this.InvokeListenersSafely(AddonEvent.PostRefresh, arg); + return result; + } + + private void OnRequestedUpdate(AtkUnitBase* addon, NumberArrayData** numberArrayData, StringArrayData** stringArrayData) + { + using var returner = this.argsPool.Rent(out AddonRequestedUpdateArgs arg); + arg.AddonInternal = (nint)addon; + arg.NumberArrayData = (nint)numberArrayData; + arg.StringArrayData = (nint)stringArrayData; + this.InvokeListenersSafely(AddonEvent.PreRequestedUpdate, arg); + numberArrayData = (NumberArrayData**)arg.NumberArrayData; + stringArrayData = (StringArrayData**)arg.StringArrayData; + + try + { + addon->OnRequestedUpdate(numberArrayData, stringArrayData); + } + catch (Exception e) + { + Log.Error(e, "Caught exception when calling original AddonRequestedUpdate. This may be a bug in the game or another plugin hooking this method."); + } + + this.InvokeListenersSafely(AddonEvent.PostRequestedUpdate, arg); } } @@ -228,7 +381,7 @@ internal class AddonLifecyclePluginScoped : IInternalDisposableService, IAddonLi [ServiceManager.ServiceDependency] private readonly AddonLifecycle addonLifecycleService = Service.Get(); - private readonly List eventListeners = []; + private readonly List eventListeners = new(); /// void IInternalDisposableService.DisposeService() @@ -299,14 +452,10 @@ internal class AddonLifecyclePluginScoped : IInternalDisposableService, IAddonLi this.eventListeners.RemoveAll(entry => { if (entry.FunctionDelegate != handler) return false; - + this.addonLifecycleService.UnregisterListener(entry); return true; }); } } - - /// - public unsafe nint GetOriginalVirtualTable(nint virtualTableAddress) - => (nint)AddonLifecycle.GetOriginalVirtualTable((AtkUnitBase.AtkUnitBaseVirtualTable*)virtualTableAddress); } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonLifecycleAddressResolver.cs b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleAddressResolver.cs new file mode 100644 index 000000000..baf8bb86c --- /dev/null +++ b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleAddressResolver.cs @@ -0,0 +1,56 @@ +using FFXIVClientStructs.FFXIV.Component.GUI; + +namespace Dalamud.Game.Addon.Lifecycle; + +/// +/// AddonLifecycleService memory address resolver. +/// +internal unsafe class AddonLifecycleAddressResolver : BaseAddressResolver +{ + /// + /// Gets the address of the addon setup hook invoked by the AtkUnitManager. + /// There are two callsites for this vFunc, we need to hook both of them to catch both normal UI and special UI cases like dialogue. + /// This is called for a majority of all addon OnSetup's. + /// + public nint AddonSetup { get; private set; } + + /// + /// Gets the address of the other addon setup hook invoked by the AtkUnitManager. + /// There are two callsites for this vFunc, we need to hook both of them to catch both normal UI and special UI cases like dialogue. + /// This seems to be called rarely for specific addons. + /// + public nint AddonSetup2 { get; private set; } + + /// + /// Gets the address of the addon finalize hook invoked by the AtkUnitManager. + /// + public nint AddonFinalize { get; private set; } + + /// + /// Gets the address of the addon draw hook invoked by virtual function call. + /// + public nint AddonDraw { get; private set; } + + /// + /// Gets the address of the addon update hook invoked by virtual function call. + /// + public nint AddonUpdate { get; private set; } + + /// + /// Gets the address of the addon onRequestedUpdate hook invoked by virtual function call. + /// + public nint AddonOnRequestedUpdate { get; private set; } + + /// + /// Scan for and setup any configured address pointers. + /// + /// The signature scanner to facilitate setup. + protected override void Setup64Bit(ISigScanner sig) + { + this.AddonSetup = sig.ScanText("4C 8B 88 ?? ?? ?? ?? 66 44 39 BB"); + this.AddonFinalize = sig.ScanText("E8 ?? ?? ?? ?? 48 83 EF 01 75 D5"); + this.AddonDraw = sig.ScanText("FF 90 ?? ?? ?? ?? 83 EB 01 79 C4 48 81 EF ?? ?? ?? ?? 48 83 ED 01"); + this.AddonUpdate = sig.ScanText("FF 90 ?? ?? ?? ?? 40 88 AF ?? ?? ?? ?? 45 33 D2"); + this.AddonOnRequestedUpdate = sig.ScanText("FF 90 98 01 00 00 48 8B 5C 24 30 48 83 C4 20"); + } +} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonLifecycleEventListener.cs b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleEventListener.cs index 38c081e65..9d411cdbc 100644 --- a/Dalamud/Game/Addon/Lifecycle/AddonLifecycleEventListener.cs +++ b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleEventListener.cs @@ -25,19 +25,19 @@ internal class AddonLifecycleEventListener /// string.Empty if it wants to be called for any addon. /// public string AddonName { get; init; } - + + /// + /// Gets or sets a value indicating whether this event has been unregistered. + /// + public bool Removed { get; set; } + /// /// Gets the event type this listener is looking for. /// public AddonEvent EventType { get; init; } - + /// /// Gets the delegate this listener invokes. /// public IAddonLifecycle.AddonEventDelegate FunctionDelegate { get; init; } - - /// - /// Gets or sets if the listener is requested to be cleared. - /// - internal bool IsRequestedToClear { get; set; } } diff --git a/Dalamud/Game/Addon/Lifecycle/AddonLifecycleReceiveEventListener.cs b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleReceiveEventListener.cs new file mode 100644 index 000000000..a66440b25 --- /dev/null +++ b/Dalamud/Game/Addon/Lifecycle/AddonLifecycleReceiveEventListener.cs @@ -0,0 +1,111 @@ +using System.Collections.Generic; + +using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; +using Dalamud.Hooking; +using Dalamud.Logging.Internal; + +using FFXIVClientStructs.FFXIV.Component.GUI; + +namespace Dalamud.Game.Addon.Lifecycle; + +/// +/// This class is a helper for tracking and invoking listener delegates for Addon_OnReceiveEvent. +/// Multiple addons may use the same ReceiveEvent function, this helper makes sure that those addon events are handled properly. +/// +internal unsafe class AddonLifecycleReceiveEventListener : IDisposable +{ + private static readonly ModuleLog Log = new("AddonLifecycle"); + + [ServiceManager.ServiceDependency] + private readonly AddonLifecyclePooledArgs argsPool = Service.Get(); + + /// + /// Initializes a new instance of the class. + /// + /// AddonLifecycle service instance. + /// Initial Addon Requesting this listener. + /// Address of Addon's ReceiveEvent function. + internal AddonLifecycleReceiveEventListener(AddonLifecycle service, string addonName, nint receiveEventAddress) + { + this.AddonLifecycle = service; + this.AddonNames = [addonName]; + this.FunctionAddress = receiveEventAddress; + } + + /// + /// Gets the list of addons that use this receive event hook. + /// + public List AddonNames { get; init; } + + /// + /// Gets the address of the ReceiveEvent function as provided by the vtable on setup. + /// + public nint FunctionAddress { get; init; } + + /// + /// Gets the contained hook for these addons. + /// + public Hook? Hook { get; private set; } + + /// + /// Gets or sets the Reference to AddonLifecycle service instance. + /// + private AddonLifecycle AddonLifecycle { get; set; } + + /// + /// Try to hook and enable this receive event handler. + /// + public void TryEnable() + { + this.Hook ??= Hook.FromAddress(this.FunctionAddress, this.OnReceiveEvent); + this.Hook?.Enable(); + } + + /// + /// Disable the hook for this receive event handler. + /// + public void Disable() + { + this.Hook?.Disable(); + } + + /// + public void Dispose() + { + this.Hook?.Dispose(); + } + + private void OnReceiveEvent(AtkUnitBase* addon, AtkEventType eventType, int eventParam, AtkEvent* atkEvent, AtkEventData* atkEventData) + { + // Check that we didn't get here through a call to another addons handler. + var addonName = addon->NameString; + if (!this.AddonNames.Contains(addonName)) + { + this.Hook!.Original(addon, eventType, eventParam, atkEvent, atkEventData); + return; + } + + using var returner = this.argsPool.Rent(out AddonReceiveEventArgs arg); + arg.AddonInternal = (nint)addon; + arg.AtkEventType = (byte)eventType; + arg.EventParam = eventParam; + arg.AtkEvent = (IntPtr)atkEvent; + arg.Data = (nint)atkEventData; + this.AddonLifecycle.InvokeListenersSafely(AddonEvent.PreReceiveEvent, arg); + eventType = (AtkEventType)arg.AtkEventType; + eventParam = arg.EventParam; + atkEvent = (AtkEvent*)arg.AtkEvent; + atkEventData = (AtkEventData*)arg.Data; + + try + { + this.Hook!.Original(addon, eventType, eventParam, atkEvent, atkEventData); + } + catch (Exception e) + { + Log.Error(e, "Caught exception when calling original AddonReceiveEvent. This may be a bug in the game or another plugin hooking this method."); + } + + this.AddonLifecycle.InvokeListenersSafely(AddonEvent.PostReceiveEvent, arg); + } +} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonSetupHook.cs b/Dalamud/Game/Addon/Lifecycle/AddonSetupHook.cs new file mode 100644 index 000000000..aa684a644 --- /dev/null +++ b/Dalamud/Game/Addon/Lifecycle/AddonSetupHook.cs @@ -0,0 +1,80 @@ +using System.Runtime.InteropServices; + +using Reloaded.Hooks.Definitions; + +namespace Dalamud.Game.Addon.Lifecycle; + +/// +/// This class represents a callsite hook used to replace the address of the OnSetup function in r9. +/// +/// Delegate signature for this hook. +internal class AddonSetupHook : IDisposable where T : Delegate +{ + private readonly Reloaded.Hooks.AsmHook asmHook; + + private T? detour; + private bool activated; + + /// + /// Initializes a new instance of the class. + /// + /// Address of the instruction to replace. + /// Delegate to invoke. + internal AddonSetupHook(nint address, T detour) + { + this.detour = detour; + + var detourPtr = Marshal.GetFunctionPointerForDelegate(this.detour); + var code = new[] + { + "use64", + $"mov r9, 0x{detourPtr:X8}", + }; + + var opt = new AsmHookOptions + { + PreferRelativeJump = true, + Behaviour = Reloaded.Hooks.Definitions.Enums.AsmHookBehaviour.DoNotExecuteOriginal, + MaxOpcodeSize = 5, + }; + + this.asmHook = new Reloaded.Hooks.AsmHook(code, (nuint)address, opt); + } + + /// + /// Gets a value indicating whether or not the hook is enabled. + /// + public bool IsEnabled => this.asmHook.IsEnabled; + + /// + /// Starts intercepting a call to the function. + /// + public void Enable() + { + if (!this.activated) + { + this.activated = true; + this.asmHook.Activate(); + return; + } + + this.asmHook.Enable(); + } + + /// + /// Stops intercepting a call to the function. + /// + public void Disable() + { + this.asmHook.Disable(); + } + + /// + /// Remove a hook from the current process. + /// + public void Dispose() + { + this.asmHook.Disable(); + this.detour = null; + } +} diff --git a/Dalamud/Game/Addon/Lifecycle/AddonVirtualTable.cs b/Dalamud/Game/Addon/Lifecycle/AddonVirtualTable.cs deleted file mode 100644 index 1b2c828f8..000000000 --- a/Dalamud/Game/Addon/Lifecycle/AddonVirtualTable.cs +++ /dev/null @@ -1,679 +0,0 @@ -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Threading; - -using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; -using Dalamud.Logging.Internal; - -using FFXIVClientStructs.FFXIV.Client.System.Memory; -using FFXIVClientStructs.FFXIV.Component.GUI; - -namespace Dalamud.Game.Addon.Lifecycle; - -/// -/// Represents a class that holds references to an addons original and modified virtual table entries. -/// -internal unsafe class AddonVirtualTable : IDisposable -{ - // This need to be at minimum the largest virtual table size of all addons - // Copying extra entries is not problematic, and is considered safe. - private const int VirtualTableEntryCount = 200; - - private const bool EnableLogging = false; - - private static readonly ModuleLog Log = new("LifecycleVT"); - - private readonly AddonLifecycle lifecycleService; - - // Each addon gets its own set of args that are used to mutate the original call when used in pre-calls - private readonly AddonSetupArgs setupArgs = new(); - private readonly AddonArgs finalizeArgs = new(); - private readonly AddonArgs drawArgs = new(); - private readonly AddonArgs updateArgs = new(); - private readonly AddonRefreshArgs refreshArgs = new(); - private readonly AddonRequestedUpdateArgs requestedUpdateArgs = new(); - private readonly AddonReceiveEventArgs receiveEventArgs = new(); - private readonly AddonArgs openArgs = new(); - private readonly AddonCloseArgs closeArgs = new(); - private readonly AddonShowArgs showArgs = new(); - private readonly AddonHideArgs hideArgs = new(); - private readonly AddonArgs onMoveArgs = new(); - private readonly AddonArgs onMouseOverArgs = new(); - private readonly AddonArgs onMouseOutArgs = new(); - private readonly AddonArgs focusArgs = new(); - private readonly AddonFocusChangedArgs focusChangedArgs = new(); - - private readonly AtkUnitBase* atkUnitBase; - - // Pinned Function Delegates, as these functions get assigned to an unmanaged virtual table, - // the CLR needs to know they are in use, or it will invalidate them causing random crashing. - private readonly AtkUnitBase.Delegates.Dtor destructorFunction; - private readonly AtkUnitBase.Delegates.OnSetup onSetupFunction; - private readonly AtkUnitBase.Delegates.Finalizer finalizerFunction; - private readonly AtkUnitBase.Delegates.Draw drawFunction; - private readonly AtkUnitBase.Delegates.Update updateFunction; - private readonly AtkUnitBase.Delegates.OnRefresh onRefreshFunction; - private readonly AtkUnitBase.Delegates.OnRequestedUpdate onRequestedUpdateFunction; - private readonly AtkUnitBase.Delegates.ReceiveEvent onReceiveEventFunction; - private readonly AtkUnitBase.Delegates.Open openFunction; - private readonly AtkUnitBase.Delegates.Close closeFunction; - private readonly AtkUnitBase.Delegates.Show showFunction; - private readonly AtkUnitBase.Delegates.Hide hideFunction; - private readonly AtkUnitBase.Delegates.OnMove onMoveFunction; - private readonly AtkUnitBase.Delegates.OnMouseOver onMouseOverFunction; - private readonly AtkUnitBase.Delegates.OnMouseOut onMouseOutFunction; - private readonly AtkUnitBase.Delegates.Focus focusFunction; - private readonly AtkUnitBase.Delegates.OnFocusChange onFocusChangeFunction; - - /// - /// Initializes a new instance of the class. - /// - /// AtkUnitBase* for the addon to replace the table of. - /// Reference to AddonLifecycle service to callback and invoke listeners. - internal AddonVirtualTable(AtkUnitBase* addon, AddonLifecycle lifecycleService) - { - this.atkUnitBase = addon; - this.lifecycleService = lifecycleService; - - // Save original virtual table - this.OriginalVirtualTable = addon->VirtualTable; - - // Create copy of original table - // Note this will copy any derived/overriden functions that this specific addon has. - // Note: currently there are 73 virtual functions, but there's no harm in copying more for when they add new virtual functions to the game - this.ModifiedVirtualTable = (AtkUnitBase.AtkUnitBaseVirtualTable*)IMemorySpace.GetUISpace()->Malloc(0x8 * VirtualTableEntryCount, 8); - NativeMemory.Copy(addon->VirtualTable, this.ModifiedVirtualTable, 0x8 * VirtualTableEntryCount); - - // Overwrite the addons existing virtual table with our own - addon->VirtualTable = this.ModifiedVirtualTable; - - // Pin each of our listener functions - this.destructorFunction = this.OnAddonDestructor; - this.onSetupFunction = this.OnAddonSetup; - this.finalizerFunction = this.OnAddonFinalize; - this.drawFunction = this.OnAddonDraw; - this.updateFunction = this.OnAddonUpdate; - this.onRefreshFunction = this.OnAddonRefresh; - this.onRequestedUpdateFunction = this.OnRequestedUpdate; - this.onReceiveEventFunction = this.OnAddonReceiveEvent; - this.openFunction = this.OnAddonOpen; - this.closeFunction = this.OnAddonClose; - this.showFunction = this.OnAddonShow; - this.hideFunction = this.OnAddonHide; - this.onMoveFunction = this.OnAddonMove; - this.onMouseOverFunction = this.OnAddonMouseOver; - this.onMouseOutFunction = this.OnAddonMouseOut; - this.focusFunction = this.OnAddonFocus; - this.onFocusChangeFunction = this.OnAddonFocusChange; - - // Overwrite specific virtual table entries - this.ModifiedVirtualTable->Dtor = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.destructorFunction); - this.ModifiedVirtualTable->OnSetup = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onSetupFunction); - this.ModifiedVirtualTable->Finalizer = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.finalizerFunction); - this.ModifiedVirtualTable->Draw = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.drawFunction); - this.ModifiedVirtualTable->Update = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.updateFunction); - this.ModifiedVirtualTable->OnRefresh = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onRefreshFunction); - this.ModifiedVirtualTable->OnRequestedUpdate = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onRequestedUpdateFunction); - this.ModifiedVirtualTable->ReceiveEvent = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onReceiveEventFunction); - this.ModifiedVirtualTable->Open = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.openFunction); - this.ModifiedVirtualTable->Close = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.closeFunction); - this.ModifiedVirtualTable->Show = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.showFunction); - this.ModifiedVirtualTable->Hide = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.hideFunction); - this.ModifiedVirtualTable->OnMove = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onMoveFunction); - this.ModifiedVirtualTable->OnMouseOver = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onMouseOverFunction); - this.ModifiedVirtualTable->OnMouseOut = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onMouseOutFunction); - this.ModifiedVirtualTable->Focus = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.focusFunction); - this.ModifiedVirtualTable->OnFocusChange = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.onFocusChangeFunction); - } - - /// - /// Gets the original virtual table address for this addon. - /// - internal AtkUnitBase.AtkUnitBaseVirtualTable* OriginalVirtualTable { get; private set; } - - /// - /// Gets the modified virtual address for this addon. - /// - internal AtkUnitBase.AtkUnitBaseVirtualTable* ModifiedVirtualTable { get; private set; } - - /// - public void Dispose() - { - // Ensure restoration is done atomically. - Interlocked.Exchange(ref *(nint*)&this.atkUnitBase->VirtualTable, (nint)this.OriginalVirtualTable); - IMemorySpace.Free(this.ModifiedVirtualTable, 0x8 * VirtualTableEntryCount); - } - - private AtkEventListener* OnAddonDestructor(AtkUnitBase* thisPtr, byte freeFlags) - { - AtkEventListener* result = null; - - try - { - this.LogEvent(EnableLogging); - - try - { - result = this.OriginalVirtualTable->Dtor(thisPtr, freeFlags); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Dtor. This may be a bug in the game or another plugin hooking this method."); - } - - if ((freeFlags & 1) == 1) - { - IMemorySpace.Free(this.ModifiedVirtualTable, 0x8 * VirtualTableEntryCount); - AddonLifecycle.AllocatedTables.Remove(this); - } - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonDestructor."); - } - - return result; - } - - private void OnAddonSetup(AtkUnitBase* addon, uint valueCount, AtkValue* values) - { - try - { - this.LogEvent(EnableLogging); - - this.setupArgs.Addon = addon; - this.setupArgs.AtkValueCount = valueCount; - this.setupArgs.AtkValues = (nint)values; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreSetup, this.setupArgs); - - valueCount = this.setupArgs.AtkValueCount; - values = (AtkValue*)this.setupArgs.AtkValues; - - try - { - this.OriginalVirtualTable->OnSetup(addon, valueCount, values); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnSetup. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostSetup, this.setupArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonSetup."); - } - } - - private void OnAddonFinalize(AtkUnitBase* thisPtr) - { - try - { - this.LogEvent(EnableLogging); - - this.finalizeArgs.Addon = thisPtr; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreFinalize, this.finalizeArgs); - - try - { - this.OriginalVirtualTable->Finalizer(thisPtr); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Finalizer. This may be a bug in the game or another plugin hooking this method."); - } - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonFinalize."); - } - } - - private void OnAddonDraw(AtkUnitBase* addon) - { - try - { - this.LogEvent(EnableLogging); - - this.drawArgs.Addon = addon; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreDraw, this.drawArgs); - - try - { - this.OriginalVirtualTable->Draw(addon); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Draw. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostDraw, this.drawArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonDraw."); - } - } - - private void OnAddonUpdate(AtkUnitBase* addon, float delta) - { - try - { - this.LogEvent(EnableLogging); - - this.updateArgs.Addon = addon; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreUpdate, this.updateArgs); - - // Note: Do not pass or allow manipulation of delta. - // It's realistically not something that should be needed. - // And even if someone does, they are encouraged to hook Update themselves. - - try - { - this.OriginalVirtualTable->Update(addon, delta); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Update. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostUpdate, this.updateArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonUpdate."); - } - } - - private bool OnAddonRefresh(AtkUnitBase* addon, uint valueCount, AtkValue* values) - { - var result = false; - - try - { - this.LogEvent(EnableLogging); - - this.refreshArgs.Addon = addon; - this.refreshArgs.AtkValueCount = valueCount; - this.refreshArgs.AtkValues = (nint)values; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreRefresh, this.refreshArgs); - - valueCount = this.refreshArgs.AtkValueCount; - values = (AtkValue*)this.refreshArgs.AtkValues; - - try - { - result = this.OriginalVirtualTable->OnRefresh(addon, valueCount, values); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnRefresh. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostRefresh, this.refreshArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonRefresh."); - } - - return result; - } - - private void OnRequestedUpdate(AtkUnitBase* addon, NumberArrayData** numberArrayData, StringArrayData** stringArrayData) - { - try - { - this.LogEvent(EnableLogging); - - this.requestedUpdateArgs.Addon = addon; - this.requestedUpdateArgs.NumberArrayData = (nint)numberArrayData; - this.requestedUpdateArgs.StringArrayData = (nint)stringArrayData; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreRequestedUpdate, this.requestedUpdateArgs); - - numberArrayData = (NumberArrayData**)this.requestedUpdateArgs.NumberArrayData; - stringArrayData = (StringArrayData**)this.requestedUpdateArgs.StringArrayData; - - try - { - this.OriginalVirtualTable->OnRequestedUpdate(addon, numberArrayData, stringArrayData); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnRequestedUpdate. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostRequestedUpdate, this.requestedUpdateArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnRequestedUpdate."); - } - } - - private void OnAddonReceiveEvent(AtkUnitBase* addon, AtkEventType eventType, int eventParam, AtkEvent* atkEvent, AtkEventData* atkEventData) - { - try - { - this.LogEvent(EnableLogging); - - this.receiveEventArgs.Addon = (nint)addon; - this.receiveEventArgs.AtkEventType = (byte)eventType; - this.receiveEventArgs.EventParam = eventParam; - this.receiveEventArgs.AtkEvent = (IntPtr)atkEvent; - this.receiveEventArgs.AtkEventData = (nint)atkEventData; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreReceiveEvent, this.receiveEventArgs); - - eventType = (AtkEventType)this.receiveEventArgs.AtkEventType; - eventParam = this.receiveEventArgs.EventParam; - atkEvent = (AtkEvent*)this.receiveEventArgs.AtkEvent; - atkEventData = (AtkEventData*)this.receiveEventArgs.AtkEventData; - - try - { - this.OriginalVirtualTable->ReceiveEvent(addon, eventType, eventParam, atkEvent, atkEventData); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon ReceiveEvent. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostReceiveEvent, this.receiveEventArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonReceiveEvent."); - } - } - - private bool OnAddonOpen(AtkUnitBase* thisPtr, uint depthLayer) - { - var result = false; - - try - { - this.LogEvent(EnableLogging); - - this.openArgs.Addon = thisPtr; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreOpen, this.openArgs); - - try - { - result = this.OriginalVirtualTable->Open(thisPtr, depthLayer); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Open. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostOpen, this.openArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonOpen."); - } - - return result; - } - - private bool OnAddonClose(AtkUnitBase* thisPtr, bool fireCallback) - { - var result = false; - - try - { - this.LogEvent(EnableLogging); - - this.closeArgs.Addon = thisPtr; - this.closeArgs.FireCallback = fireCallback; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreClose, this.closeArgs); - - fireCallback = this.closeArgs.FireCallback; - - try - { - result = this.OriginalVirtualTable->Close(thisPtr, fireCallback); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Close. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostClose, this.closeArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonClose."); - } - - return result; - } - - private void OnAddonShow(AtkUnitBase* thisPtr, bool silenceOpenSoundEffect, uint unsetShowHideFlags) - { - try - { - this.LogEvent(EnableLogging); - - this.showArgs.Addon = thisPtr; - this.showArgs.SilenceOpenSoundEffect = silenceOpenSoundEffect; - this.showArgs.UnsetShowHideFlags = unsetShowHideFlags; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreShow, this.showArgs); - - silenceOpenSoundEffect = this.showArgs.SilenceOpenSoundEffect; - unsetShowHideFlags = this.showArgs.UnsetShowHideFlags; - - try - { - this.OriginalVirtualTable->Show(thisPtr, silenceOpenSoundEffect, unsetShowHideFlags); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Show. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostShow, this.showArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonShow."); - } - } - - private void OnAddonHide(AtkUnitBase* thisPtr, bool unkBool, bool callHideCallback, uint setShowHideFlags) - { - try - { - this.LogEvent(EnableLogging); - - this.hideArgs.Addon = thisPtr; - this.hideArgs.UnknownBool = unkBool; - this.hideArgs.CallHideCallback = callHideCallback; - this.hideArgs.SetShowHideFlags = setShowHideFlags; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreHide, this.hideArgs); - - unkBool = this.hideArgs.UnknownBool; - callHideCallback = this.hideArgs.CallHideCallback; - setShowHideFlags = this.hideArgs.SetShowHideFlags; - - try - { - this.OriginalVirtualTable->Hide(thisPtr, unkBool, callHideCallback, setShowHideFlags); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Hide. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostHide, this.hideArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonHide."); - } - } - - private void OnAddonMove(AtkUnitBase* thisPtr) - { - try - { - this.LogEvent(EnableLogging); - - this.onMoveArgs.Addon = thisPtr; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreMove, this.onMoveArgs); - - try - { - this.OriginalVirtualTable->OnMove(thisPtr); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnMove. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostMove, this.onMoveArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonMove."); - } - } - - private void OnAddonMouseOver(AtkUnitBase* thisPtr) - { - try - { - this.LogEvent(EnableLogging); - - this.onMouseOverArgs.Addon = thisPtr; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreMouseOver, this.onMouseOverArgs); - - try - { - this.OriginalVirtualTable->OnMouseOver(thisPtr); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnMouseOver. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostMouseOver, this.onMouseOverArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonMouseOver."); - } - } - - private void OnAddonMouseOut(AtkUnitBase* thisPtr) - { - try - { - this.LogEvent(EnableLogging); - - this.onMouseOutArgs.Addon = thisPtr; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreMouseOut, this.onMouseOutArgs); - - try - { - this.OriginalVirtualTable->OnMouseOut(thisPtr); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnMouseOut. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostMouseOut, this.onMouseOutArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonMouseOut."); - } - } - - private void OnAddonFocus(AtkUnitBase* thisPtr) - { - try - { - this.LogEvent(EnableLogging); - - this.focusArgs.Addon = thisPtr; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreFocus, this.focusArgs); - - try - { - this.OriginalVirtualTable->Focus(thisPtr); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Focus. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostFocus, this.focusArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonFocus."); - } - } - - private void OnAddonFocusChange(AtkUnitBase* thisPtr, bool isFocused) - { - try - { - this.LogEvent(EnableLogging); - - this.focusChangedArgs.Addon = thisPtr; - this.focusChangedArgs.ShouldFocus = isFocused; - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PreFocusChanged, this.focusChangedArgs); - - isFocused = this.focusChangedArgs.ShouldFocus; - - try - { - this.OriginalVirtualTable->OnFocusChange(thisPtr, isFocused); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnFocusChanged. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AddonEvent.PostFocusChanged, this.focusChangedArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAddonFocusChange."); - } - } - - [Conditional("DEBUG")] - private void LogEvent(bool loggingEnabled, [CallerMemberName] string caller = "") - { - if (loggingEnabled) - { - // Manually disable the really spammy log events, you can comment this out if you need to debug them. - if (caller is "OnAddonUpdate" or "OnAddonDraw" or "OnAddonReceiveEvent" or "OnRequestedUpdate") - return; - - Log.Debug($"[{caller}]: {this.atkUnitBase->NameString}"); - } - } -} diff --git a/Dalamud/Game/Agent/AgentArgTypes/AgentArgs.cs b/Dalamud/Game/Agent/AgentArgTypes/AgentArgs.cs deleted file mode 100644 index 1de80694f..000000000 --- a/Dalamud/Game/Agent/AgentArgTypes/AgentArgs.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Dalamud.Game.NativeWrapper; - -namespace Dalamud.Game.Agent.AgentArgTypes; - -/// -/// Base class for AgentLifecycle AgentArgTypes. -/// -public unsafe class AgentArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AgentArgs() - { - } - - /// - /// Gets the pointer to the Agents AgentInterface*. - /// - public AgentInterfacePtr Agent { get; internal set; } - - /// - /// Gets the agent id. - /// - public AgentId AgentId { get; internal set; } - - /// - /// Gets the type of these args. - /// - public virtual AgentArgsType Type => AgentArgsType.Generic; - - /// - /// Gets the typed pointer to the Agents AgentInterface*. - /// - /// AgentInterface. - /// Typed pointer to contained Agents AgentInterface. - public T* GetAgentPointer() where T : unmanaged - => (T*)this.Agent.Address; -} diff --git a/Dalamud/Game/Agent/AgentArgTypes/AgentClassJobChangeArgs.cs b/Dalamud/Game/Agent/AgentArgTypes/AgentClassJobChangeArgs.cs deleted file mode 100644 index 351760963..000000000 --- a/Dalamud/Game/Agent/AgentArgTypes/AgentClassJobChangeArgs.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Game.Agent.AgentArgTypes; - -/// -/// Agent argument data for game events. -/// -public class AgentClassJobChangeArgs : AgentArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AgentClassJobChangeArgs() - { - } - - /// - public override AgentArgsType Type => AgentArgsType.ClassJobChange; - - /// - /// Gets or sets a value indicating what the new ClassJob is. - /// - public byte ClassJobId { get; set; } -} diff --git a/Dalamud/Game/Agent/AgentArgTypes/AgentGameEventArgs.cs b/Dalamud/Game/Agent/AgentArgTypes/AgentGameEventArgs.cs deleted file mode 100644 index 3da601707..000000000 --- a/Dalamud/Game/Agent/AgentArgTypes/AgentGameEventArgs.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Game.Agent.AgentArgTypes; - -/// -/// Agent argument data for game events. -/// -public class AgentGameEventArgs : AgentArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AgentGameEventArgs() - { - } - - /// - public override AgentArgsType Type => AgentArgsType.GameEvent; - - /// - /// Gets or sets a value representing which gameEvent was triggered. - /// - public int GameEvent { get; set; } -} diff --git a/Dalamud/Game/Agent/AgentArgTypes/AgentLevelChangeArgs.cs b/Dalamud/Game/Agent/AgentArgTypes/AgentLevelChangeArgs.cs deleted file mode 100644 index a74371ebb..000000000 --- a/Dalamud/Game/Agent/AgentArgTypes/AgentLevelChangeArgs.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Dalamud.Game.Agent.AgentArgTypes; - -/// -/// Agent argument data for game events. -/// -public class AgentLevelChangeArgs : AgentArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AgentLevelChangeArgs() - { - } - - /// - public override AgentArgsType Type => AgentArgsType.LevelChange; - - /// - /// Gets or sets a value indicating which ClassJob was switched to. - /// - public byte ClassJobId { get; set; } - - /// - /// Gets or sets a value indicating what the new level is. - /// - public ushort Level { get; set; } -} diff --git a/Dalamud/Game/Agent/AgentArgTypes/AgentReceiveEventArgs.cs b/Dalamud/Game/Agent/AgentArgTypes/AgentReceiveEventArgs.cs deleted file mode 100644 index 01e1f25f6..000000000 --- a/Dalamud/Game/Agent/AgentArgTypes/AgentReceiveEventArgs.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace Dalamud.Game.Agent.AgentArgTypes; - -/// -/// Agent argument data for ReceiveEvent events. -/// -public class AgentReceiveEventArgs : AgentArgs -{ - /// - /// Initializes a new instance of the class. - /// - internal AgentReceiveEventArgs() - { - } - - /// - public override AgentArgsType Type => AgentArgsType.ReceiveEvent; - - /// - /// Gets or sets the AtkValue return value for this event message. - /// - public nint ReturnValue { get; set; } - - /// - /// Gets or sets the AtkValue array for this event message. - /// - public nint AtkValues { get; set; } - - /// - /// Gets or sets the AtkValue count for this event message. - /// - public uint ValueCount { get; set; } - - /// - /// Gets or sets the event kind for this event message. - /// - public ulong EventKind { get; set; } -} diff --git a/Dalamud/Game/Agent/AgentArgsType.cs b/Dalamud/Game/Agent/AgentArgsType.cs deleted file mode 100644 index 0c96c0135..000000000 --- a/Dalamud/Game/Agent/AgentArgsType.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace Dalamud.Game.Agent; - -/// -/// Enumeration for available AgentLifecycle arg data. -/// -public enum AgentArgsType -{ - /// - /// Generic arg type that contains no meaningful data. - /// - Generic, - - /// - /// Contains argument data for ReceiveEvent. - /// - ReceiveEvent, - - /// - /// Contains argument data for GameEvent. - /// - GameEvent, - - /// - /// Contains argument data for LevelChange. - /// - LevelChange, - - /// - /// Contains argument data for ClassJobChange. - /// - ClassJobChange, -} diff --git a/Dalamud/Game/Agent/AgentEvent.cs b/Dalamud/Game/Agent/AgentEvent.cs deleted file mode 100644 index e9c9a1b85..000000000 --- a/Dalamud/Game/Agent/AgentEvent.cs +++ /dev/null @@ -1,87 +0,0 @@ -namespace Dalamud.Game.Agent; - -/// -/// Enumeration for available AgentLifecycle events. -/// -public enum AgentEvent -{ - /// - /// An event that is fired before the agent processes its Receive Event Function. - /// - PreReceiveEvent, - - /// - /// An event that is fired after the agent has processed its Receive Event Function. - /// - PostReceiveEvent, - - /// - /// An event that is fired before the agent processes its Filtered Receive Event Function. - /// - PreReceiveEventWithResult, - - /// - /// An event that is fired after the agent has processed its Filtered Receive Event Function. - /// - PostReceiveEventWithResult, - - /// - /// An event that is fired before the agent processes its Show Function. - /// - PreShow, - - /// - /// An event that is fired after the agent has processed its Show Function. - /// - PostShow, - - /// - /// An event that is fired before the agent processes its Hide Function. - /// - PreHide, - - /// - /// An event that is fired after the agent has processed its Hide Function. - /// - PostHide, - - /// - /// An event that is fired before the agent processes its Update Function. - /// - PreUpdate, - - /// - /// An event that is fired after the agent has processed its Update Function. - /// - PostUpdate, - - /// - /// An event that is fired before the agent processes its Game Event Function. - /// - PreGameEvent, - - /// - /// An event that is fired after the agent has processed its Game Event Function. - /// - PostGameEvent, - - /// - /// An event that is fired before the agent processes its Game Event Function. - /// - PreLevelChange, - - /// - /// An event that is fired after the agent has processed its Level Change Function. - /// - PostLevelChange, - - /// - /// An event that is fired before the agent processes its ClassJob Change Function. - /// - PreClassJobChange, - - /// - /// An event that is fired after the agent has processed its ClassJob Change Function. - /// - PostClassJobChange, -} diff --git a/Dalamud/Game/Agent/AgentLifecycle.cs b/Dalamud/Game/Agent/AgentLifecycle.cs deleted file mode 100644 index 1c895f9da..000000000 --- a/Dalamud/Game/Agent/AgentLifecycle.cs +++ /dev/null @@ -1,344 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Runtime.CompilerServices; - -using Dalamud.Game.Agent.AgentArgTypes; -using Dalamud.Hooking; -using Dalamud.IoC; -using Dalamud.IoC.Internal; -using Dalamud.Logging.Internal; -using Dalamud.Plugin.Services; - -using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Client.UI.Agent; -using FFXIVClientStructs.Interop; - -namespace Dalamud.Game.Agent; - -/// -/// This class provides events for in-game agent lifecycles. -/// -[ServiceManager.EarlyLoadedService] -internal unsafe class AgentLifecycle : IInternalDisposableService -{ - /// - /// Gets a list of all allocated agent virtual tables. - /// - public static readonly List AllocatedTables = []; - - private static readonly ModuleLog Log = new("AgentLifecycle"); - - [ServiceManager.ServiceDependency] - private readonly Framework framework = Service.Get(); - - private Hook? onInitializeAgentsHook; - private bool isInvokingListeners; - - [ServiceManager.ServiceConstructor] - private AgentLifecycle() - { - var agentModuleInstance = AgentModule.Instance(); - - // Hook is only used to determine appropriate timing for replacing Agent Virtual Tables - // If the agent module is already initialized, then we can replace the tables safely. - if (agentModuleInstance is null) - { - this.onInitializeAgentsHook = Hook.FromAddress((nint)AgentModule.MemberFunctionPointers.Ctor, this.OnAgentModuleInitialize); - this.onInitializeAgentsHook.Enable(); - } - else - { - // For safety because this might be injected async, we will make sure we are on the main thread first. - this.framework.RunOnFrameworkThread(() => this.ReplaceVirtualTables(agentModuleInstance)); - } - } - - /// - /// Gets a list of all AgentLifecycle Event Listeners. - ///
- /// Mapping is: EventType -> ListenerList - internal Dictionary>> EventListeners { get; } = []; - - /// - void IInternalDisposableService.DisposeService() - { - this.onInitializeAgentsHook?.Dispose(); - this.onInitializeAgentsHook = null; - - AllocatedTables.ForEach(entry => entry.Dispose()); - AllocatedTables.Clear(); - } - - /// - /// Resolves a virtual table address to the original virtual table address. - /// - /// The modified address to resolve. - /// The original address. - internal static AgentInterface.AgentInterfaceVirtualTable* GetOriginalVirtualTable(AgentInterface.AgentInterfaceVirtualTable* tableAddress) - { - var matchedTable = AllocatedTables.FirstOrDefault(table => table.ModifiedVirtualTable == tableAddress); - if (matchedTable == null) - { - return null; - } - - return matchedTable.OriginalVirtualTable; - } - - /// - /// Register a listener for the target event and agent. - /// - /// The listener to register. - internal void RegisterListener(AgentLifecycleEventListener listener) - { - if (this.isInvokingListeners) - { - this.framework.RunOnTick(() => this.RegisterListenerMethod(listener)); - } - else - { - this.framework.RunOnFrameworkThread(() => this.RegisterListenerMethod(listener)); - } - } - - /// - /// Unregisters the listener from events. - /// - /// The listener to unregister. - internal void UnregisterListener(AgentLifecycleEventListener listener) - { - listener.IsRequestedToClear = true; - - if (this.isInvokingListeners) - { - this.framework.RunOnTick(() => this.UnregisterListenerMethod(listener)); - } - else - { - this.framework.RunOnFrameworkThread(() => this.UnregisterListenerMethod(listener)); - } - } - - /// - /// Invoke listeners for the specified event type. - /// - /// Event Type. - /// AgentARgs. - /// What to blame on errors. - internal void InvokeListenersSafely(AgentEvent eventType, AgentArgs args, [CallerMemberName] string blame = "") - { - this.isInvokingListeners = true; - - // Early return if we don't have any listeners of this type - if (!this.EventListeners.TryGetValue(eventType, out var agentListeners)) return; - - // Handle listeners for this event type that don't care which agent is triggering it - if (agentListeners.TryGetValue((AgentId)uint.MaxValue, out var globalListeners)) - { - foreach (var listener in globalListeners) - { - if (listener.IsRequestedToClear) continue; - - try - { - listener.FunctionDelegate.Invoke(eventType, args); - } - catch (Exception e) - { - Log.Error(e, $"Exception in {blame} during {eventType} invoke, for global agent event listener."); - } - } - } - - // Handle listeners that are listening for this agent and event type specifically - if (agentListeners.TryGetValue(args.AgentId, out var agentListener)) - { - foreach (var listener in agentListener) - { - if (listener.IsRequestedToClear) continue; - - try - { - listener.FunctionDelegate.Invoke(eventType, args); - } - catch (Exception e) - { - Log.Error(e, $"Exception in {blame} during {eventType} invoke, for specific agent {args.AgentId}."); - } - } - } - - this.isInvokingListeners = false; - } - - private void OnAgentModuleInitialize(AgentModule* thisPtr, UIModule* uiModule) - { - this.onInitializeAgentsHook!.Original(thisPtr, uiModule); - - try - { - this.ReplaceVirtualTables(thisPtr); - - // We don't need this hook anymore, it did its job! - this.onInitializeAgentsHook!.Dispose(); - this.onInitializeAgentsHook = null; - } - catch (Exception e) - { - Log.Error(e, "Exception in AgentLifecycle during AgentModule Ctor."); - } - } - - private void RegisterListenerMethod(AgentLifecycleEventListener listener) - { - if (!this.EventListeners.ContainsKey(listener.EventType)) - { - if (!this.EventListeners.TryAdd(listener.EventType, [])) - { - return; - } - } - - // Note: uint.MaxValue is a valid agent id, as that will trigger on any agent for this event type - if (!this.EventListeners[listener.EventType].ContainsKey(listener.AgentId)) - { - if (!this.EventListeners[listener.EventType].TryAdd(listener.AgentId, [])) - { - return; - } - } - - this.EventListeners[listener.EventType][listener.AgentId].Add(listener); - } - - private void UnregisterListenerMethod(AgentLifecycleEventListener listener) - { - if (this.EventListeners.TryGetValue(listener.EventType, out var agentListeners)) - { - if (agentListeners.TryGetValue(listener.AgentId, out var agentListener)) - { - agentListener.Remove(listener); - } - } - } - - private void ReplaceVirtualTables(AgentModule* agentModule) - { - foreach (uint index in Enumerable.Range(0, agentModule->Agents.Length)) - { - try - { - var agentPointer = agentModule->Agents.GetPointer((int)index); - - if (agentPointer is null) - { - Log.Warning("Null Agent Found?"); - continue; - } - - // AgentVirtualTable class handles creating the virtual table, and overriding each of the tracked virtual functions - AllocatedTables.Add(new AgentVirtualTable(agentPointer->Value, (AgentId)index, this)); - } - catch (Exception e) - { - Log.Error(e, "Exception in AgentLifecycle during ReplaceVirtualTables."); - } - } - } -} - -/// -/// Plugin-scoped version of a AgentLifecycle service. -/// -[PluginInterface] -[ServiceManager.ScopedService] -#pragma warning disable SA1015 -[ResolveVia] -#pragma warning restore SA1015 -internal class AgentLifecyclePluginScoped : IInternalDisposableService, IAgentLifecycle -{ - [ServiceManager.ServiceDependency] - private readonly AgentLifecycle agentLifecycleService = Service.Get(); - - private readonly List eventListeners = []; - - /// - void IInternalDisposableService.DisposeService() - { - foreach (var listener in this.eventListeners) - { - this.agentLifecycleService.UnregisterListener(listener); - } - } - - /// - public void RegisterListener(AgentEvent eventType, IEnumerable agentIds, IAgentLifecycle.AgentEventDelegate handler) - { - foreach (var agentId in agentIds) - { - this.RegisterListener(eventType, agentId, handler); - } - } - - /// - public void RegisterListener(AgentEvent eventType, AgentId agentId, IAgentLifecycle.AgentEventDelegate handler) - { - var listener = new AgentLifecycleEventListener(eventType, agentId, handler); - this.eventListeners.Add(listener); - this.agentLifecycleService.RegisterListener(listener); - } - - /// - public void RegisterListener(AgentEvent eventType, IAgentLifecycle.AgentEventDelegate handler) - { - this.RegisterListener(eventType, (AgentId)uint.MaxValue, handler); - } - - /// - public void UnregisterListener(AgentEvent eventType, IEnumerable agentIds, IAgentLifecycle.AgentEventDelegate? handler = null) - { - foreach (var agentId in agentIds) - { - this.UnregisterListener(eventType, agentId, handler); - } - } - - /// - public void UnregisterListener(AgentEvent eventType, AgentId agentId, IAgentLifecycle.AgentEventDelegate? handler = null) - { - this.eventListeners.RemoveAll(entry => - { - if (entry.EventType != eventType) return false; - if (entry.AgentId != agentId) return false; - if (handler is not null && entry.FunctionDelegate != handler) return false; - - this.agentLifecycleService.UnregisterListener(entry); - return true; - }); - } - - /// - public void UnregisterListener(AgentEvent eventType, IAgentLifecycle.AgentEventDelegate? handler = null) - { - this.UnregisterListener(eventType, (AgentId)uint.MaxValue, handler); - } - - /// - public void UnregisterListener(params IAgentLifecycle.AgentEventDelegate[] handlers) - { - foreach (var handler in handlers) - { - this.eventListeners.RemoveAll(entry => - { - if (entry.FunctionDelegate != handler) return false; - - this.agentLifecycleService.UnregisterListener(entry); - return true; - }); - } - } - - /// - public unsafe nint GetOriginalVirtualTable(nint virtualTableAddress) - => (nint)AgentLifecycle.GetOriginalVirtualTable((AgentInterface.AgentInterfaceVirtualTable*)virtualTableAddress); -} diff --git a/Dalamud/Game/Agent/AgentLifecycleEventListener.cs b/Dalamud/Game/Agent/AgentLifecycleEventListener.cs deleted file mode 100644 index 592c126ba..000000000 --- a/Dalamud/Game/Agent/AgentLifecycleEventListener.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Dalamud.Plugin.Services; - -namespace Dalamud.Game.Agent; - -/// -/// This class is a helper for tracking and invoking listener delegates. -/// -public class AgentLifecycleEventListener -{ - /// - /// Initializes a new instance of the class. - /// - /// Event type to listen for. - /// Agent id to listen for. - /// Delegate to invoke. - internal AgentLifecycleEventListener(AgentEvent eventType, AgentId agentId, IAgentLifecycle.AgentEventDelegate functionDelegate) - { - this.EventType = eventType; - this.AgentId = agentId; - this.FunctionDelegate = functionDelegate; - } - - /// - /// Gets the agentId of the agent this listener is looking for. - /// uint.MaxValue if it wants to be called for any agent. - /// - public AgentId AgentId { get; init; } - - /// - /// Gets the event type this listener is looking for. - /// - public AgentEvent EventType { get; init; } - - /// - /// Gets the delegate this listener invokes. - /// - public IAgentLifecycle.AgentEventDelegate FunctionDelegate { get; init; } - - /// - /// Gets or sets if the listener is requested to be cleared. - /// - internal bool IsRequestedToClear { get; set; } -} diff --git a/Dalamud/Game/Agent/AgentVirtualTable.cs b/Dalamud/Game/Agent/AgentVirtualTable.cs deleted file mode 100644 index 99f613137..000000000 --- a/Dalamud/Game/Agent/AgentVirtualTable.cs +++ /dev/null @@ -1,391 +0,0 @@ -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Threading; - -using Dalamud.Game.Agent.AgentArgTypes; -using Dalamud.Logging.Internal; - -using FFXIVClientStructs.FFXIV.Client.System.Memory; -using FFXIVClientStructs.FFXIV.Client.UI.Agent; -using FFXIVClientStructs.FFXIV.Component.GUI; - -namespace Dalamud.Game.Agent; - -/// -/// Represents a class that holds references to an agents original and modified virtual table entries. -/// -internal unsafe class AgentVirtualTable : IDisposable -{ - // This need to be at minimum the largest virtual table size of all agents - // Copying extra entries is not problematic, and is considered safe. - private const int VirtualTableEntryCount = 60; - - private const bool EnableLogging = false; - - private static readonly ModuleLog Log = new("AgentVT"); - - private readonly AgentLifecycle lifecycleService; - - private readonly AgentId agentId; - - // Each agent gets its own set of args that are used to mutate the original call when used in pre-calls - private readonly AgentReceiveEventArgs receiveEventArgs = new(); - private readonly AgentReceiveEventArgs filteredReceiveEventArgs = new(); - private readonly AgentArgs showArgs = new(); - private readonly AgentArgs hideArgs = new(); - private readonly AgentArgs updateArgs = new(); - private readonly AgentGameEventArgs gameEventArgs = new(); - private readonly AgentLevelChangeArgs levelChangeArgs = new(); - private readonly AgentClassJobChangeArgs classJobChangeArgs = new(); - - private readonly AgentInterface* agentInterface; - - // Pinned Function Delegates, as these functions get assigned to an unmanaged virtual table, - // the CLR needs to know they are in use, or it will invalidate them causing random crashing. - private readonly AgentInterface.Delegates.ReceiveEvent receiveEventFunction; - private readonly AgentInterface.Delegates.ReceiveEventWithResult receiveEventWithResultFunction; - private readonly AgentInterface.Delegates.Show showFunction; - private readonly AgentInterface.Delegates.Hide hideFunction; - private readonly AgentInterface.Delegates.Update updateFunction; - private readonly AgentInterface.Delegates.OnGameEvent gameEventFunction; - private readonly AgentInterface.Delegates.OnLevelChange levelChangeFunction; - private readonly AgentInterface.Delegates.OnClassJobChange classJobChangeFunction; - - /// - /// Initializes a new instance of the class. - /// - /// AgentInterface* for the agent to replace the table of. - /// Agent ID. - /// Reference to AgentLifecycle service to callback and invoke listeners. - internal AgentVirtualTable(AgentInterface* agent, AgentId agentId, AgentLifecycle lifecycleService) - { - this.agentInterface = agent; - this.agentId = agentId; - this.lifecycleService = lifecycleService; - - // Save original virtual table - this.OriginalVirtualTable = agent->VirtualTable; - - // Create copy of original table - // Note this will copy any derived/overriden functions that this specific agent has. - // Note: currently there are 16 virtual functions, but there's no harm in copying more for when they add new virtual functions to the game - this.ModifiedVirtualTable = (AgentInterface.AgentInterfaceVirtualTable*)IMemorySpace.GetUISpace()->Malloc(0x8 * VirtualTableEntryCount, 8); - NativeMemory.Copy(agent->VirtualTable, this.ModifiedVirtualTable, 0x8 * VirtualTableEntryCount); - - // Overwrite the agents existing virtual table with our own - agent->VirtualTable = this.ModifiedVirtualTable; - - // Pin each of our listener functions - this.receiveEventFunction = this.OnAgentReceiveEvent; - this.receiveEventWithResultFunction = this.OnAgentReceiveEventWithResult; - this.showFunction = this.OnAgentShow; - this.hideFunction = this.OnAgentHide; - this.updateFunction = this.OnAgentUpdate; - this.gameEventFunction = this.OnAgentGameEvent; - this.levelChangeFunction = this.OnAgentLevelChange; - this.classJobChangeFunction = this.OnClassJobChange; - - // Overwrite specific virtual table entries - this.ModifiedVirtualTable->ReceiveEvent = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.receiveEventFunction); - this.ModifiedVirtualTable->ReceiveEventWithResult = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.receiveEventWithResultFunction); - this.ModifiedVirtualTable->Show = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.showFunction); - this.ModifiedVirtualTable->Hide = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.hideFunction); - this.ModifiedVirtualTable->Update = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.updateFunction); - this.ModifiedVirtualTable->OnGameEvent = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.gameEventFunction); - this.ModifiedVirtualTable->OnLevelChange = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.levelChangeFunction); - this.ModifiedVirtualTable->OnClassJobChange = (delegate* unmanaged)Marshal.GetFunctionPointerForDelegate(this.classJobChangeFunction); - } - - /// - /// Gets the original virtual table address for this agent. - /// - internal AgentInterface.AgentInterfaceVirtualTable* OriginalVirtualTable { get; private set; } - - /// - /// Gets the modified virtual address for this agent. - /// - internal AgentInterface.AgentInterfaceVirtualTable* ModifiedVirtualTable { get; private set; } - - /// - public void Dispose() - { - // Ensure restoration is done atomically. - Interlocked.Exchange(ref *(nint*)&this.agentInterface->VirtualTable, (nint)this.OriginalVirtualTable); - IMemorySpace.Free(this.ModifiedVirtualTable, 0x8 * VirtualTableEntryCount); - } - - private AtkValue* OnAgentReceiveEvent(AgentInterface* thisPtr, AtkValue* returnValue, AtkValue* values, uint valueCount, ulong eventKind) - { - AtkValue* result = null; - - try - { - this.LogEvent(EnableLogging); - - this.receiveEventArgs.Agent = thisPtr; - this.receiveEventArgs.AgentId = this.agentId; - this.receiveEventArgs.ReturnValue = (nint)returnValue; - this.receiveEventArgs.AtkValues = (nint)values; - this.receiveEventArgs.ValueCount = valueCount; - this.receiveEventArgs.EventKind = eventKind; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreReceiveEvent, this.receiveEventArgs); - - returnValue = (AtkValue*)this.receiveEventArgs.ReturnValue; - values = (AtkValue*)this.receiveEventArgs.AtkValues; - valueCount = this.receiveEventArgs.ValueCount; - eventKind = this.receiveEventArgs.EventKind; - - try - { - result = this.OriginalVirtualTable->ReceiveEvent(thisPtr, returnValue, values, valueCount, eventKind); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Agent ReceiveEvent. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostReceiveEvent, this.receiveEventArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAgentReceiveEvent."); - } - - return result; - } - - private AtkValue* OnAgentReceiveEventWithResult(AgentInterface* thisPtr, AtkValue* returnValue, AtkValue* values, uint valueCount, ulong eventKind) - { - AtkValue* result = null; - - try - { - this.LogEvent(EnableLogging); - - this.filteredReceiveEventArgs.Agent = thisPtr; - this.filteredReceiveEventArgs.AgentId = this.agentId; - this.filteredReceiveEventArgs.ReturnValue = (nint)returnValue; - this.filteredReceiveEventArgs.AtkValues = (nint)values; - this.filteredReceiveEventArgs.ValueCount = valueCount; - this.filteredReceiveEventArgs.EventKind = eventKind; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreReceiveEventWithResult, this.filteredReceiveEventArgs); - - returnValue = (AtkValue*)this.filteredReceiveEventArgs.ReturnValue; - values = (AtkValue*)this.filteredReceiveEventArgs.AtkValues; - valueCount = this.filteredReceiveEventArgs.ValueCount; - eventKind = this.filteredReceiveEventArgs.EventKind; - - try - { - result = this.OriginalVirtualTable->ReceiveEventWithResult(thisPtr, returnValue, values, valueCount, eventKind); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Agent FilteredReceiveEvent. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostReceiveEventWithResult, this.filteredReceiveEventArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAgentReceiveEventWithResult."); - } - - return result; - } - - private void OnAgentShow(AgentInterface* thisPtr) - { - try - { - this.LogEvent(EnableLogging); - - this.showArgs.Agent = thisPtr; - this.showArgs.AgentId = this.agentId; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreShow, this.showArgs); - - try - { - this.OriginalVirtualTable->Show(thisPtr); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Show. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostShow, this.showArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAgentShow."); - } - } - - private void OnAgentHide(AgentInterface* thisPtr) - { - try - { - this.LogEvent(EnableLogging); - - this.hideArgs.Agent = thisPtr; - this.hideArgs.AgentId = this.agentId; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreHide, this.hideArgs); - - try - { - this.OriginalVirtualTable->Hide(thisPtr); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Hide. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostHide, this.hideArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAgentHide."); - } - } - - private void OnAgentUpdate(AgentInterface* thisPtr, uint frameCount) - { - try - { - this.LogEvent(EnableLogging); - - this.updateArgs.Agent = thisPtr; - this.updateArgs.AgentId = this.agentId; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreUpdate, this.updateArgs); - - try - { - this.OriginalVirtualTable->Update(thisPtr, frameCount); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon Update. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostUpdate, this.updateArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAgentUpdate."); - } - } - - private void OnAgentGameEvent(AgentInterface* thisPtr, AgentInterface.GameEvent gameEvent) - { - try - { - this.LogEvent(EnableLogging); - - this.gameEventArgs.Agent = thisPtr; - this.gameEventArgs.AgentId = this.agentId; - this.gameEventArgs.GameEvent = (int)gameEvent; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreGameEvent, this.gameEventArgs); - - gameEvent = (AgentInterface.GameEvent)this.gameEventArgs.GameEvent; - - try - { - this.OriginalVirtualTable->OnGameEvent(thisPtr, gameEvent); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnGameEvent. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostGameEvent, this.gameEventArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAgentGameEvent."); - } - } - - private void OnAgentLevelChange(AgentInterface* thisPtr, byte classJobId, ushort level) - { - try - { - this.LogEvent(EnableLogging); - - this.levelChangeArgs.Agent = thisPtr; - this.levelChangeArgs.AgentId = this.agentId; - this.levelChangeArgs.ClassJobId = classJobId; - this.levelChangeArgs.Level = level; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreLevelChange, this.levelChangeArgs); - - classJobId = this.levelChangeArgs.ClassJobId; - level = this.levelChangeArgs.Level; - - try - { - this.OriginalVirtualTable->OnLevelChange(thisPtr, classJobId, level); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnLevelChange. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostLevelChange, this.levelChangeArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnAgentLevelChange."); - } - } - - private void OnClassJobChange(AgentInterface* thisPtr, byte classJobId) - { - try - { - this.LogEvent(EnableLogging); - - this.classJobChangeArgs.Agent = thisPtr; - this.classJobChangeArgs.AgentId = this.agentId; - this.classJobChangeArgs.ClassJobId = classJobId; - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PreClassJobChange, this.classJobChangeArgs); - - classJobId = this.classJobChangeArgs.ClassJobId; - - try - { - this.OriginalVirtualTable->OnClassJobChange(thisPtr, classJobId); - } - catch (Exception e) - { - Log.Error(e, "Caught exception when calling original Addon OnClassJobChange. This may be a bug in the game or another plugin hooking this method."); - } - - this.lifecycleService.InvokeListenersSafely(AgentEvent.PostClassJobChange, this.classJobChangeArgs); - } - catch (Exception e) - { - Log.Error(e, "Caught exception from Dalamud when attempting to process OnClassJobChange."); - } - } - - [Conditional("DEBUG")] - private void LogEvent(bool loggingEnabled, [CallerMemberName] string caller = "") - { - if (loggingEnabled) - { - // Manually disable the really spammy log events, you can comment this out if you need to debug them. - if (caller is "OnAgentUpdate" || this.agentId is AgentId.PadMouseMode) - return; - - Log.Debug($"[{caller}]: {this.agentId}"); - } - } -} diff --git a/Dalamud/Game/BaseAddressResolver.cs b/Dalamud/Game/BaseAddressResolver.cs index 1f20e3aeb..4133117d7 100644 --- a/Dalamud/Game/BaseAddressResolver.cs +++ b/Dalamud/Game/BaseAddressResolver.cs @@ -2,8 +2,6 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; -using Dalamud.Plugin.Services; - namespace Dalamud.Game; /// @@ -14,7 +12,7 @@ public abstract class BaseAddressResolver /// /// Gets a list of memory addresses that were found, to list in /xldata. /// - public static Dictionary> DebugScannedValues { get; } = []; + public static Dictionary> DebugScannedValues { get; } = new(); /// /// Gets or sets a value indicating whether the resolver has successfully run or . diff --git a/Dalamud/Game/Chat/LogMessage.cs b/Dalamud/Game/Chat/LogMessage.cs deleted file mode 100644 index c772783a1..000000000 --- a/Dalamud/Game/Chat/LogMessage.cs +++ /dev/null @@ -1,221 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -using Dalamud.Data; -using Dalamud.Utility; - -using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI.Agent; -using FFXIVClientStructs.FFXIV.Client.UI.Misc; -using FFXIVClientStructs.FFXIV.Component.Text; -using FFXIVClientStructs.Interop; - -using Lumina.Excel; -using Lumina.Text.ReadOnly; - -namespace Dalamud.Game.Chat; - -/// -/// Interface representing a log message. -/// -public interface ILogMessage : IEquatable -{ - /// - /// Gets the address of the log message in memory. - /// - nint Address { get; } - - /// - /// Gets the ID of this log message. - /// - uint LogMessageId { get; } - - /// - /// Gets the GameData associated with this log message. - /// - RowRef GameData { get; } - - /// - /// Gets the entity that is the source of this log message, if any. - /// - ILogMessageEntity? SourceEntity { get; } - - /// - /// Gets the entity that is the target of this log message, if any. - /// - ILogMessageEntity? TargetEntity { get; } - - /// - /// Gets the number of parameters. - /// - int ParameterCount { get; } - - /// - /// Retrieves the value of a parameter for the log message if it is an int. - /// - /// The index of the parameter to retrieve. - /// The value of the parameter. - /// if the parameter was retrieved successfully. - bool TryGetIntParameter(int index, out int value); - - /// - /// Retrieves the value of a parameter for the log message if it is a string. - /// - /// The index of the parameter to retrieve. - /// The value of the parameter. - /// if the parameter was retrieved successfully. - bool TryGetStringParameter(int index, out ReadOnlySeString value); - - /// - /// Formats this log message into an approximation of the string that will eventually be shown in the log. - /// - /// This can cause side effects such as playing sound effects and thus should only be used for debugging. - /// The formatted string. - ReadOnlySeString FormatLogMessageForDebugging(); -} - -/// -/// This struct represents log message in the queue to be added to the chat. -/// -/// A pointer to the log message. -internal unsafe readonly struct LogMessage(LogMessageQueueItem* ptr) : ILogMessage -{ - /// - public nint Address => (nint)ptr; - - /// - public uint LogMessageId => ptr->LogMessageId; - - /// - public RowRef GameData => LuminaUtils.CreateRef(ptr->LogMessageId); - - /// - ILogMessageEntity? ILogMessage.SourceEntity => ptr->SourceKind == EntityRelationKind.None ? null : this.SourceEntity; - - /// - ILogMessageEntity? ILogMessage.TargetEntity => ptr->TargetKind == EntityRelationKind.None ? null : this.TargetEntity; - - /// - public int ParameterCount => ptr->Parameters.Count; - - private LogMessageEntity SourceEntity => new(ptr, true); - - private LogMessageEntity TargetEntity => new(ptr, false); - - public static bool operator ==(LogMessage x, LogMessage y) => x.Equals(y); - - public static bool operator !=(LogMessage x, LogMessage y) => !(x == y); - - /// - public bool Equals(ILogMessage? other) - { - return other is LogMessage logMessage && this.Equals(logMessage); - } - - /// - public override bool Equals([NotNullWhen(true)] object? obj) - { - return obj is LogMessage logMessage && this.Equals(logMessage); - } - - /// - public override int GetHashCode() - { - return HashCode.Combine(this.LogMessageId, this.SourceEntity, this.TargetEntity); - } - - /// - public bool TryGetIntParameter(int index, out int value) - { - value = 0; - if (!this.TryGetParameter(index, out var parameter)) return false; - if (parameter.Type != TextParameterType.Integer) return false; - value = parameter.IntValue; - return true; - } - - /// - public bool TryGetStringParameter(int index, out ReadOnlySeString value) - { - value = default; - if (!this.TryGetParameter(index, out var parameter)) return false; - if (parameter.Type == TextParameterType.String) - { - value = new(parameter.StringValue.AsSpan()); - return true; - } - - if (parameter.Type == TextParameterType.ReferencedUtf8String) - { - value = new(parameter.ReferencedUtf8StringValue->Utf8String.AsSpan()); - return true; - } - - return false; - } - - /// - public ReadOnlySeString FormatLogMessageForDebugging() - { - var logModule = RaptureLogModule.Instance(); - - // the formatting logic is taken from RaptureLogModule_Update - - using var utf8 = new Utf8String(); - SetName(logModule, this.SourceEntity); - SetName(logModule, this.TargetEntity); - - using var rssb = new RentedSeStringBuilder(); - logModule->RaptureTextModule->FormatString(rssb.Builder.Append(this.GameData.Value.Text).GetViewAsSpan(), &ptr->Parameters, &utf8); - - return new ReadOnlySeString(utf8.AsSpan()); - - static void SetName(RaptureLogModule* self, LogMessageEntity item) - { - var name = item.NameSpan.GetPointer(0); - - if (item.IsPlayer) - { - var str = self->TempParseMessage.GetPointer(item.IsSourceEntity ? 8 : 9); - self->FormatPlayerLink(name, str, null, 0, item.Kind != 1 /* LocalPlayer */, item.HomeWorldId, false, null, false); - - if (item.HomeWorldId != 0 && item.HomeWorldId != AgentLobby.Instance()->LobbyData.HomeWorldId) - { - var crossWorldSymbol = self->RaptureTextModule->UnkStrings0.GetPointer(3); - if (!crossWorldSymbol->StringPtr.HasValue) - self->RaptureTextModule->ProcessMacroCode(crossWorldSymbol, "\0"u8); - str->Append(crossWorldSymbol); - if (self->UIModule->GetWorldHelper()->AllWorlds.TryGetValuePointer(item.HomeWorldId, out var world)) - str->ConcatCStr(world->Name); - } - - name = str->StringPtr; - } - - if (item.IsSourceEntity) - { - self->RaptureTextModule->SetGlobalTempEntity1(name, item.Sex, item.ObjStrId); - } - else - { - self->RaptureTextModule->SetGlobalTempEntity2(name, item.Sex, item.ObjStrId); - } - } - } - - private bool TryGetParameter(int index, out TextParameter value) - { - if (index < 0 || index >= ptr->Parameters.Count) - { - value = default; - return false; - } - - value = ptr->Parameters[index]; - return true; - } - - private bool Equals(LogMessage other) - { - return this.LogMessageId == other.LogMessageId && this.SourceEntity == other.SourceEntity && this.TargetEntity == other.TargetEntity; - } -} diff --git a/Dalamud/Game/Chat/LogMessageEntity.cs b/Dalamud/Game/Chat/LogMessageEntity.cs deleted file mode 100644 index 91e905928..000000000 --- a/Dalamud/Game/Chat/LogMessageEntity.cs +++ /dev/null @@ -1,113 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -using Dalamud.Data; -using Dalamud.Plugin.Services; - -using FFXIVClientStructs.FFXIV.Client.UI.Misc; - -using Lumina.Excel; -using Lumina.Excel.Sheets; -using Lumina.Text.ReadOnly; - -namespace Dalamud.Game.Chat; - -/// -/// Interface representing an entity related to a log message. -/// -public interface ILogMessageEntity : IEquatable -{ - /// - /// Gets the name of this entity. - /// - ReadOnlySeString Name { get; } - - /// - /// Gets the ID of the homeworld of this entity, if it is a player. - /// - ushort HomeWorldId { get; } - - /// - /// Gets the homeworld of this entity, if it is a player. - /// - RowRef HomeWorld { get; } - - /// - /// Gets the ObjStr ID of this entity, if not a player. See . - /// - uint ObjStrId { get; } - - /// - /// Gets a value indicating whether this entity is a player. - /// - bool IsPlayer { get; } -} - -/// -/// This struct represents an entity related to a log message. -/// -/// A pointer to the log message item. -/// If represents the source entity of the log message, otherwise represents the target entity. -internal unsafe readonly struct LogMessageEntity(LogMessageQueueItem* ptr, bool source) : ILogMessageEntity -{ - /// - public ReadOnlySeString Name => new(this.NameSpan[..this.NameSpan.IndexOf((byte)0)]); - - /// - public ushort HomeWorldId => source ? ptr->SourceHomeWorld : ptr->TargetHomeWorld; - - /// - public RowRef HomeWorld => LuminaUtils.CreateRef(this.HomeWorldId); - - /// - public uint ObjStrId => source ? ptr->SourceObjStrId : ptr->TargetObjStrId; - - /// - public bool IsPlayer => source ? ptr->SourceIsPlayer : ptr->TargetIsPlayer; - - /// - /// Gets the Span containing the raw name of this entity. - /// - internal Span NameSpan => source ? ptr->SourceName : ptr->TargetName; - - /// - /// Gets the kind of the entity. - /// - internal byte Kind => source ? (byte)ptr->SourceKind : (byte)ptr->TargetKind; - - /// - /// Gets the Sex of this entity. - /// - internal byte Sex => source ? ptr->SourceSex : ptr->TargetSex; - - /// - /// Gets a value indicating whether this entity is the source entity of a log message. - /// - internal bool IsSourceEntity => source; - - public static bool operator ==(LogMessageEntity x, LogMessageEntity y) => x.Equals(y); - - public static bool operator !=(LogMessageEntity x, LogMessageEntity y) => !(x == y); - - /// - public bool Equals(ILogMessageEntity other) - { - return other is LogMessageEntity entity && this.Equals(entity); - } - - /// - public override bool Equals([NotNullWhen(true)] object? obj) - { - return obj is LogMessageEntity entity && this.Equals(entity); - } - - /// - public override int GetHashCode() - { - return HashCode.Combine(this.Name, this.HomeWorldId, this.ObjStrId, this.Sex, this.IsPlayer); - } - - private bool Equals(LogMessageEntity other) - { - return this.Name == other.Name && this.HomeWorldId == other.HomeWorldId && this.ObjStrId == other.ObjStrId && this.Kind == other.Kind && this.Sex == other.Sex && this.IsPlayer == other.IsPlayer; - } -} diff --git a/Dalamud/Game/ChatHandlers.cs b/Dalamud/Game/ChatHandlers.cs index 2d7d3c83a..c40744ca4 100644 --- a/Dalamud/Game/ChatHandlers.cs +++ b/Dalamud/Game/ChatHandlers.cs @@ -1,4 +1,5 @@ using System.Linq; +using System.Reflection; using System.Text.RegularExpressions; using CheapLoc; @@ -7,8 +8,6 @@ using Dalamud.Configuration.Internal; using Dalamud.Game.Gui; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Game.Text.SeStringHandling.Payloads; -using Dalamud.Interface; using Dalamud.Interface.Internal; using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal; @@ -22,7 +21,7 @@ namespace Dalamud.Game; [ServiceManager.EarlyLoadedService] internal partial class ChatHandlers : IServiceType { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("ChatHandlers"); [ServiceManager.ServiceDependency] private readonly DalamudConfiguration configuration = Service.Get(); @@ -42,7 +41,7 @@ internal partial class ChatHandlers : IServiceType public string? LastLink { get; private set; } /// - /// Gets a value indicating whether auto-updates have already completed this session. + /// Gets a value indicating whether or not auto-updates have already completed this session. /// public bool IsAutoUpdateComplete { get; private set; } @@ -76,7 +75,7 @@ internal partial class ChatHandlers : IServiceType } // For injections while logged in - if (clientState.IsLoggedIn && clientState.TerritoryType == 0 && !this.hasSeenLoadingMsg) + if (clientState.LocalPlayer != null && clientState.TerritoryType == 0 && !this.hasSeenLoadingMsg) this.PrintWelcomeMessage(); #if !DEBUG && false @@ -101,9 +100,11 @@ internal partial class ChatHandlers : IServiceType if (chatGui == null || pluginManager == null || dalamudInterface == null) return; + var assemblyVersion = Assembly.GetAssembly(typeof(ChatHandlers)).GetName().Version.ToString(); + if (this.configuration.PrintDalamudWelcomeMsg) { - chatGui.Print(string.Format(Loc.Localize("DalamudWelcome", "Dalamud {0} loaded."), Versioning.GetScmVersion()) + chatGui.Print(string.Format(Loc.Localize("DalamudWelcome", "Dalamud {0} loaded."), Util.GetScmVersion()) + string.Format(Loc.Localize("PluginsWelcome", " {0} plugin(s) loaded."), pluginManager.InstalledPlugins.Count(x => x.IsLoaded))); } @@ -115,28 +116,15 @@ internal partial class ChatHandlers : IServiceType } } - if (string.IsNullOrEmpty(this.configuration.LastVersion) || !Versioning.GetAssemblyVersion().StartsWith(this.configuration.LastVersion)) + if (string.IsNullOrEmpty(this.configuration.LastVersion) || !assemblyVersion.StartsWith(this.configuration.LastVersion)) { - var linkPayload = chatGui.AddChatLinkHandler( - (_, _) => dalamudInterface.OpenPluginInstallerTo(PluginInstallerOpenKind.Changelogs)); - - var updateMessage = new SeStringBuilder() - .AddText(Loc.Localize("DalamudUpdated", "Dalamud has been updated successfully!")) - .AddUiForeground(500) - .AddText(" [ ") - .Add(linkPayload) - .AddText(Loc.Localize("DalamudClickToViewChangelogs", "Click here to view the changelog.")) - .Add(RawPayload.LinkTerminator) - .AddText(" ]") - .AddUiForegroundOff(); - chatGui.Print(new XivChatEntry { - Message = updateMessage.Build(), + Message = Loc.Localize("DalamudUpdated", "Dalamud has been updated successfully! Please check the discord for a full changelog."), Type = XivChatType.Notice, }); - this.configuration.LastVersion = Versioning.GetAssemblyVersion(); + this.configuration.LastVersion = assemblyVersion; this.configuration.QueueSave(); } diff --git a/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs b/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs index e0a5df06d..244989476 100644 --- a/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs +++ b/Dalamud/Game/ClientState/Aetherytes/AetheryteEntry.cs @@ -63,37 +63,47 @@ public interface IAetheryteEntry } /// -/// This struct represents an aetheryte entry available to the game. +/// Class representing an aetheryte entry available to the game. /// -/// Data read from the Aetheryte List. -internal readonly struct AetheryteEntry(TeleportInfo data) : IAetheryteEntry +internal sealed class AetheryteEntry : IAetheryteEntry { - /// - public uint AetheryteId => data.AetheryteId; + private readonly TeleportInfo data; + + /// + /// Initializes a new instance of the class. + /// + /// Data read from the Aetheryte List. + internal AetheryteEntry(TeleportInfo data) + { + this.data = data; + } /// - public uint TerritoryId => data.TerritoryId; + public uint AetheryteId => this.data.AetheryteId; /// - public byte SubIndex => data.SubIndex; + public uint TerritoryId => this.data.TerritoryId; /// - public byte Ward => data.Ward; + public byte SubIndex => this.data.SubIndex; /// - public byte Plot => data.Plot; + public byte Ward => this.data.Ward; /// - public uint GilCost => data.GilCost; + public byte Plot => this.data.Plot; /// - public bool IsFavourite => data.IsFavourite; + public uint GilCost => this.data.GilCost; /// - public bool IsSharedHouse => data.IsSharedHouse; + public bool IsFavourite => this.data.IsFavourite != 0; /// - public bool IsApartment => data.IsApartment; + public bool IsSharedHouse => this.data.IsSharedHouse; + + /// + public bool IsApartment => this.data.IsApartment; /// public RowRef AetheryteData => LuminaUtils.CreateRef(this.AetheryteId); diff --git a/Dalamud/Game/ClientState/Aetherytes/AetheryteList.cs b/Dalamud/Game/ClientState/Aetherytes/AetheryteList.cs index 2df64b73b..a3d44d423 100644 --- a/Dalamud/Game/ClientState/Aetherytes/AetheryteList.cs +++ b/Dalamud/Game/ClientState/Aetherytes/AetheryteList.cs @@ -1,14 +1,12 @@ using System.Collections; using System.Collections.Generic; -using Dalamud.Game.ClientState.Objects; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.Game.UI; - using Serilog; namespace Dalamud.Game.ClientState.Aetherytes; @@ -24,7 +22,7 @@ namespace Dalamud.Game.ClientState.Aetherytes; internal sealed unsafe partial class AetheryteList : IServiceType, IAetheryteList { [ServiceManager.ServiceDependency] - private readonly ObjectTable objectTable = Service.Get(); + private readonly ClientState clientState = Service.Get(); private readonly Telepo* telepoInstance = Telepo.Instance(); @@ -39,7 +37,7 @@ internal sealed unsafe partial class AetheryteList : IServiceType, IAetheryteLis { get { - if (this.objectTable.LocalPlayer == null) + if (this.clientState.LocalPlayer == null) return 0; this.Update(); @@ -61,7 +59,7 @@ internal sealed unsafe partial class AetheryteList : IServiceType, IAetheryteLis return null; } - if (this.objectTable.LocalPlayer == null) + if (this.clientState.LocalPlayer == null) return null; return new AetheryteEntry(this.telepoInstance->TeleportList[index]); @@ -71,7 +69,7 @@ internal sealed unsafe partial class AetheryteList : IServiceType, IAetheryteLis private void Update() { // this is very very important as otherwise it crashes - if (this.objectTable.LocalPlayer == null) + if (this.clientState.LocalPlayer == null) return; this.telepoInstance->UpdateAetheryteList(); @@ -89,7 +87,10 @@ internal sealed partial class AetheryteList /// public IEnumerator GetEnumerator() { - return new Enumerator(this); + for (var i = 0; i < this.Length; i++) + { + yield return this[i]; + } } /// @@ -97,34 +98,4 @@ internal sealed partial class AetheryteList { return this.GetEnumerator(); } - - private struct Enumerator(AetheryteList aetheryteList) : IEnumerator - { - private int index = -1; - - public IAetheryteEntry Current { get; private set; } - - object IEnumerator.Current => this.Current; - - public bool MoveNext() - { - if (++this.index < aetheryteList.Length) - { - this.Current = aetheryteList[this.index]; - return true; - } - - this.Current = default; - return false; - } - - public void Reset() - { - this.index = -1; - } - - public void Dispose() - { - } - } } diff --git a/Dalamud/Game/ClientState/Buddy/BuddyList.cs b/Dalamud/Game/ClientState/Buddy/BuddyList.cs index 3bec6d9f1..84cfd24a3 100644 --- a/Dalamud/Game/ClientState/Buddy/BuddyList.cs +++ b/Dalamud/Game/ClientState/Buddy/BuddyList.cs @@ -2,14 +2,11 @@ using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; -using Dalamud.Game.Player; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; -using CSBuddy = FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy; -using CSBuddyMember = FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy.BuddyMember; -using CSUIState = FFXIVClientStructs.FFXIV.Client.Game.UI.UIState; +using FFXIVClientStructs.FFXIV.Client.Game.UI; namespace Dalamud.Game.ClientState.Buddy; @@ -24,10 +21,10 @@ namespace Dalamud.Game.ClientState.Buddy; #pragma warning restore SA1015 internal sealed partial class BuddyList : IServiceType, IBuddyList { - private const uint InvalidEntityId = 0xE0000000; + private const uint InvalidObjectID = 0xE0000000; [ServiceManager.ServiceDependency] - private readonly PlayerState playerState = Service.Get(); + private readonly ClientState clientState = Service.Get(); [ServiceManager.ServiceConstructor] private BuddyList() @@ -72,7 +69,7 @@ internal sealed partial class BuddyList : IServiceType, IBuddyList } } - private unsafe CSBuddy* BuddyListStruct => &CSUIState.Instance()->Buddy; + private unsafe FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy* BuddyListStruct => &UIState.Instance()->Buddy; /// public IBuddyMember? this[int index] @@ -85,37 +82,37 @@ internal sealed partial class BuddyList : IServiceType, IBuddyList } /// - public unsafe nint GetCompanionBuddyMemberAddress() + public unsafe IntPtr GetCompanionBuddyMemberAddress() { - return (nint)this.BuddyListStruct->CompanionInfo.Companion; + return (IntPtr)this.BuddyListStruct->CompanionInfo.Companion; } /// - public unsafe nint GetPetBuddyMemberAddress() + public unsafe IntPtr GetPetBuddyMemberAddress() { - return (nint)this.BuddyListStruct->PetInfo.Pet; + return (IntPtr)this.BuddyListStruct->PetInfo.Pet; } /// - public unsafe nint GetBattleBuddyMemberAddress(int index) + public unsafe IntPtr GetBattleBuddyMemberAddress(int index) { if (index < 0 || index >= 3) - return 0; + return IntPtr.Zero; - return (nint)Unsafe.AsPointer(ref this.BuddyListStruct->BattleBuddies[index]); + return (IntPtr)Unsafe.AsPointer(ref this.BuddyListStruct->BattleBuddies[index]); } /// - public unsafe IBuddyMember? CreateBuddyMemberReference(nint address) + public IBuddyMember? CreateBuddyMemberReference(IntPtr address) { - if (address == 0) + if (this.clientState.LocalContentId == 0) return null; - if (this.playerState.ContentId == 0) + if (address == IntPtr.Zero) return null; - var buddy = new BuddyMember((CSBuddyMember*)address); - if (buddy.EntityId == InvalidEntityId) + var buddy = new BuddyMember(address); + if (buddy.ObjectId == InvalidObjectID) return null; return buddy; @@ -133,39 +130,12 @@ internal sealed partial class BuddyList /// public IEnumerator GetEnumerator() { - return new Enumerator(this); + for (var i = 0; i < this.Length; i++) + { + yield return this[i]; + } } /// IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator(); - - private struct Enumerator(BuddyList buddyList) : IEnumerator - { - private int index = -1; - - public IBuddyMember Current { get; private set; } - - object IEnumerator.Current => this.Current; - - public bool MoveNext() - { - if (++this.index < buddyList.Length) - { - this.Current = buddyList[this.index]; - return true; - } - - this.Current = default; - return false; - } - - public void Reset() - { - this.index = -1; - } - - public void Dispose() - { - } - } } diff --git a/Dalamud/Game/ClientState/Buddy/BuddyMember.cs b/Dalamud/Game/ClientState/Buddy/BuddyMember.cs index 8018bafaf..025de611d 100644 --- a/Dalamud/Game/ClientState/Buddy/BuddyMember.cs +++ b/Dalamud/Game/ClientState/Buddy/BuddyMember.cs @@ -1,36 +1,26 @@ -using System.Diagnostics.CodeAnalysis; - using Dalamud.Data; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Lumina.Excel; -using CSBuddyMember = FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy.BuddyMember; - namespace Dalamud.Game.ClientState.Buddy; /// /// Interface representing represents a buddy such as the chocobo companion, summoned pets, squadron groups and trust parties. /// -public interface IBuddyMember : IEquatable +public interface IBuddyMember { /// /// Gets the address of the buddy in memory. /// - nint Address { get; } + IntPtr Address { get; } /// /// Gets the object ID of this buddy. /// - [Obsolete("Renamed to EntityId")] uint ObjectId { get; } - /// - /// Gets the entity ID of this buddy. - /// - uint EntityId { get; } - /// /// Gets the actor associated with this buddy. /// @@ -71,34 +61,39 @@ public interface IBuddyMember : IEquatable } /// -/// This struct represents a buddy such as the chocobo companion, summoned pets, squadron groups and trust parties. +/// This class represents a buddy such as the chocobo companion, summoned pets, squadron groups and trust parties. /// -/// A pointer to the BuddyMember. -internal readonly unsafe struct BuddyMember(CSBuddyMember* ptr) : IBuddyMember +internal unsafe class BuddyMember : IBuddyMember { [ServiceManager.ServiceDependency] private readonly ObjectTable objectTable = Service.Get(); - /// - public nint Address => (nint)ptr; + /// + /// Initializes a new instance of the class. + /// + /// Buddy address. + internal BuddyMember(IntPtr address) + { + this.Address = address; + } /// - public uint ObjectId => this.EntityId; + public IntPtr Address { get; } /// - public uint EntityId => ptr->EntityId; + public uint ObjectId => this.Struct->EntityId; /// - public IGameObject? GameObject => this.objectTable.SearchById(this.EntityId); + public IGameObject? GameObject => this.objectTable.SearchById(this.ObjectId); /// - public uint CurrentHP => ptr->CurrentHealth; + public uint CurrentHP => this.Struct->CurrentHealth; /// - public uint MaxHP => ptr->MaxHealth; + public uint MaxHP => this.Struct->MaxHealth; /// - public uint DataID => ptr->DataId; + public uint DataID => this.Struct->DataId; /// public RowRef MountData => LuminaUtils.CreateRef(this.DataID); @@ -109,25 +104,5 @@ internal readonly unsafe struct BuddyMember(CSBuddyMember* ptr) : IBuddyMember /// public RowRef TrustData => LuminaUtils.CreateRef(this.DataID); - public static bool operator ==(BuddyMember x, BuddyMember y) => x.Equals(y); - - public static bool operator !=(BuddyMember x, BuddyMember y) => !(x == y); - - /// - public bool Equals(IBuddyMember? other) - { - return this.EntityId == other.EntityId; - } - - /// - public override bool Equals([NotNullWhen(true)] object? obj) - { - return obj is BuddyMember fate && this.Equals(fate); - } - - /// - public override int GetHashCode() - { - return this.EntityId.GetHashCode(); - } + private FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy.BuddyMember* Struct => (FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy.BuddyMember*)this.Address; } diff --git a/Dalamud/Game/ClientState/ClientState.cs b/Dalamud/Game/ClientState/ClientState.cs index 304dde82c..c898e107a 100644 --- a/Dalamud/Game/ClientState/ClientState.cs +++ b/Dalamud/Game/ClientState/ClientState.cs @@ -6,7 +6,6 @@ using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.Gui; using Dalamud.Game.Network.Internal; -using Dalamud.Game.Player; using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; @@ -16,14 +15,14 @@ using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Application.Network; using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Network; +using FFXIVClientStructs.FFXIV.Client.Game.Event; +using FFXIVClientStructs.FFXIV.Client.Game.UI; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Client.UI.Agent; using Lumina.Excel.Sheets; using Action = System.Action; -using CSUIState = FFXIVClientStructs.FFXIV.Client.Game.UI.UIState; namespace Dalamud.Game.ClientState; @@ -33,33 +32,23 @@ namespace Dalamud.Game.ClientState; [ServiceManager.EarlyLoadedService] internal sealed class ClientState : IInternalDisposableService, IClientState { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("ClientState"); private readonly GameLifecycle lifecycle; private readonly ClientStateAddressResolver address; + private readonly Hook setupTerritoryTypeHook; private readonly Hook uiModuleHandlePacketHook; - private readonly Hook setCurrentInstanceHook; + private readonly Hook onLogoutHook; [ServiceManager.ServiceDependency] private readonly Framework framework = Service.Get(); - + [ServiceManager.ServiceDependency] private readonly NetworkHandlers networkHandlers = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly PlayerState playerState = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly ObjectTable objectTable = Service.Get(); - - private Hook onLogoutHook; - private bool initialized; - private ushort territoryTypeId; - private bool isPvP; - private uint mapId; - private uint instance; + private bool lastConditionNone = true; + [ServiceManager.ServiceConstructor] private unsafe ClientState(TargetSigScanner sigScanner, Dalamud dalamud, GameLifecycle lifecycle) { @@ -71,35 +60,26 @@ internal sealed class ClientState : IInternalDisposableService, IClientState this.ClientLanguage = (ClientLanguage)dalamud.StartInfo.Language; - this.uiModuleHandlePacketHook = Hook.FromAddress((nint)UIModule.StaticVirtualTablePointer->HandlePacket, this.UIModuleHandlePacketDetour); - this.setCurrentInstanceHook = Hook.FromAddress(this.AddressResolver.SetCurrentInstance, this.SetCurrentInstanceDetour); + var setTerritoryTypeAddr = EventFramework.Addresses.SetTerritoryTypeId.Value; + Log.Verbose($"SetupTerritoryType address {Util.DescribeAddress(setTerritoryTypeAddr)}"); + this.setupTerritoryTypeHook = Hook.FromAddress(setTerritoryTypeAddr, this.SetupTerritoryTypeDetour); + this.uiModuleHandlePacketHook = Hook.FromAddress((nint)UIModule.StaticVirtualTablePointer->HandlePacket, this.UIModuleHandlePacketDetour); + this.onLogoutHook = Hook.FromAddress((nint)LogoutCallbackInterface.StaticVirtualTablePointer->OnLogout, this.OnLogoutDetour); + + this.framework.Update += this.FrameworkOnOnUpdateEvent; this.networkHandlers.CfPop += this.NetworkHandlersOnCfPop; + this.setupTerritoryTypeHook.Enable(); this.uiModuleHandlePacketHook.Enable(); - this.setCurrentInstanceHook.Enable(); - - this.framework.RunOnTick(this.Setup); + this.onLogoutHook.Enable(); } private unsafe delegate void ProcessPacketPlayerSetupDelegate(nint a1, nint packet); - private unsafe delegate void HandleZoneInitPacketDelegate(nint a1, uint localPlayerEntityId, nint packet, byte type); - - private unsafe delegate void SetCurrentInstanceDelegate(NetworkModuleProxy* thisPtr, short instanceId); - - /// - public event Action ZoneInit; - /// public event Action? TerritoryChanged; - /// - public event Action? MapIdChanged; - - /// - public event Action? InstanceChanged; - /// public event IClientState.ClassJobChangeDelegate? ClassJobChanged; @@ -125,73 +105,23 @@ internal sealed class ClientState : IInternalDisposableService, IClientState public ClientLanguage ClientLanguage { get; } /// - public ushort TerritoryType + public ushort TerritoryType { get; private set; } + + /// + public unsafe uint MapId { - get => this.territoryTypeId; - private set + get { - if (this.territoryTypeId != value) - { - this.territoryTypeId = value; - - if (this.initialized) - { - Log.Debug("TerritoryType changed: {0}", value); - this.TerritoryChanged?.InvokeSafely(value); - } - - var rowRef = LuminaUtils.CreateRef(value); - if (rowRef.IsValid) - { - this.IsPvP = rowRef.Value.IsPvpZone; - } - } + var agentMap = AgentMap.Instance(); + return agentMap != null ? agentMap->CurrentMapId : 0; } } /// - public uint MapId - { - get => this.mapId; - private set - { - if (this.mapId != value) - { - this.mapId = value; - - if (this.initialized) - { - Log.Debug("MapId changed: {0}", value); - this.MapIdChanged?.InvokeSafely(value); - } - } - } - } + public IPlayerCharacter? LocalPlayer => Service.GetNullable()?[0] as IPlayerCharacter; /// - public uint Instance - { - get => this.instance; - private set - { - if (this.instance != value) - { - this.instance = value; - - if (this.initialized) - { - Log.Debug("Instance changed: {0}", value); - this.InstanceChanged?.InvokeSafely(value); - } - } - } - } - - /// - public IPlayerCharacter? LocalPlayer => this.objectTable.LocalPlayer; - - /// - public unsafe ulong LocalContentId => this.playerState.ContentId; + public unsafe ulong LocalContentId => PlayerState.Instance()->ContentId; /// public unsafe bool IsLoggedIn @@ -204,31 +134,7 @@ internal sealed class ClientState : IInternalDisposableService, IClientState } /// - public bool IsPvP - { - get => this.isPvP; - private set - { - if (this.isPvP != value) - { - this.isPvP = value; - - if (this.initialized) - { - if (value) - { - Log.Debug("EnterPvP"); - this.EnterPvP?.InvokeSafely(); - } - else - { - Log.Debug("LeavePvP"); - this.LeavePvP?.InvokeSafely(); - } - } - } - } - } + public bool IsPvP { get; private set; } /// public bool IsPvPExcludingDen => this.IsPvP && this.TerritoryType != 250; @@ -245,7 +151,7 @@ internal sealed class ClientState : IInternalDisposableService, IClientState public bool IsClientIdle(out ConditionFlag blockingFlag) { blockingFlag = 0; - if (this.objectTable.LocalPlayer is null) return true; + if (this.LocalPlayer is null) return true; var condition = Service.GetNullable(); @@ -253,8 +159,7 @@ internal sealed class ClientState : IInternalDisposableService, IClientState ConditionFlag.NormalConditions, ConditionFlag.Jumping, ConditionFlag.Mounted, - ConditionFlag.UsingFashionAccessory, - ConditionFlag.OnFreeTrial]); + ConditionFlag.UsingParasol]); blockingFlag = blockingConditions.FirstOrDefault(); return blockingFlag == 0; @@ -268,95 +173,94 @@ internal sealed class ClientState : IInternalDisposableService, IClientState /// void IInternalDisposableService.DisposeService() { + this.setupTerritoryTypeHook.Dispose(); this.uiModuleHandlePacketHook.Dispose(); this.onLogoutHook.Dispose(); - this.setCurrentInstanceHook.Dispose(); - this.framework.Update -= this.OnFrameworkUpdate; + this.framework.Update -= this.FrameworkOnOnUpdateEvent; this.networkHandlers.CfPop -= this.NetworkHandlersOnCfPop; } - private unsafe void Setup() + private unsafe void SetupTerritoryTypeDetour(EventFramework* eventFramework, ushort territoryType) { - this.onLogoutHook = Hook.FromAddress((nint)AgentLobby.Instance()->LogoutCallbackInterface.VirtualTable->OnLogout, this.OnLogoutDetour); - this.onLogoutHook.Enable(); + Log.Debug("TerritoryType changed: {0}", territoryType); - this.TerritoryType = (ushort)GameMain.Instance()->CurrentTerritoryTypeId; - this.MapId = AgentMap.Instance()->CurrentMapId; - this.Instance = CSUIState.Instance()->PublicInstance.InstanceId; + this.TerritoryType = territoryType; + this.TerritoryChanged?.InvokeSafely(territoryType); - this.initialized = true; + var rowRef = LuminaUtils.CreateRef(territoryType); + if (rowRef.IsValid) + { + var isPvP = rowRef.Value.IsPvpZone; + if (isPvP != this.IsPvP) + { + this.IsPvP = isPvP; - this.framework.Update += this.OnFrameworkUpdate; + if (this.IsPvP) + { + Log.Debug("EnterPvP"); + this.EnterPvP?.InvokeSafely(); + } + else + { + Log.Debug("LeavePvP"); + this.LeavePvP?.InvokeSafely(); + } + } + } + + this.setupTerritoryTypeHook.Original(eventFramework, territoryType); } - private unsafe void UIModuleHandlePacketDetour( - UIModule* thisPtr, UIModulePacketType type, uint uintParam, void* packet) + private unsafe void UIModuleHandlePacketDetour(UIModule* thisPtr, UIModulePacketType type, uint uintParam, void* packet) { this.uiModuleHandlePacketHook.Original(thisPtr, type, uintParam, packet); switch (type) { - case UIModulePacketType.ClassJobChange: - { - var classJobId = uintParam; - - foreach (var action in Delegate.EnumerateInvocationList(this.ClassJobChanged)) + case UIModulePacketType.ClassJobChange when this.ClassJobChanged is { } callback: { - try + var classJobId = uintParam; + + foreach (var action in callback.GetInvocationList().Cast()) { - action(classJobId); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); + try + { + action(classJobId); + } + catch (Exception ex) + { + Log.Error(ex, "Exception during raise of {handler}", action.Method); + } } + + break; } - break; - } - - case UIModulePacketType.LevelChange: - { - var classJobId = *(uint*)packet; - var level = *(ushort*)((nint)packet + 4); - - foreach (var action in Delegate.EnumerateInvocationList(this.LevelChanged)) + case UIModulePacketType.LevelChange when this.LevelChanged is { } callback: { - try + var classJobId = *(uint*)packet; + var level = *(ushort*)((nint)packet + 4); + + foreach (var action in callback.GetInvocationList().Cast()) { - action(classJobId, level); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); + try + { + action(classJobId, level); + } + catch (Exception ex) + { + Log.Error(ex, "Exception during raise of {handler}", action.Method); + } } + + break; } - - break; - } - - case (UIModulePacketType)5: // TODO: Use UIModulePacketType.InitZone when available - { - var eventArgs = ZoneInitEventArgs.Read((nint)packet); - Log.Debug($"ZoneInit: {eventArgs}"); - this.ZoneInit?.InvokeSafely(eventArgs); - this.TerritoryType = (ushort)eventArgs.TerritoryType.RowId; - break; - } } } - private unsafe void SetCurrentInstanceDetour(NetworkModuleProxy* thisPtr, short instanceId) + private void FrameworkOnOnUpdateEvent(IFramework framework1) { - this.setCurrentInstanceHook.Original(thisPtr, instanceId); - this.Instance = (uint)instanceId; - } - - private unsafe void OnFrameworkUpdate(IFramework framework) - { - this.MapId = AgentMap.Instance()->CurrentMapId; - var condition = Service.GetNullable(); var gameGui = Service.GetNullable(); var data = Service.GetNullable(); @@ -364,7 +268,7 @@ internal sealed class ClientState : IInternalDisposableService, IClientState if (condition == null || gameGui == null || data == null) return; - if (condition.Any() && this.lastConditionNone && this.objectTable.LocalPlayer != null) + if (condition.Any() && this.lastConditionNone && this.LocalPlayer != null) { Log.Debug("Is login"); this.lastConditionNone = false; @@ -388,15 +292,18 @@ internal sealed class ClientState : IInternalDisposableService, IClientState Log.Debug("Logout: Type {type}, Code {code}", type, code); - foreach (var action in Delegate.EnumerateInvocationList(this.Logout)) + if (this.Logout is { } callback) { - try + foreach (var action in callback.GetInvocationList().Cast()) { - action(type, code); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); + try + { + action(type, code); + } + catch (Exception ex) + { + Log.Error(ex, "Exception during raise of {handler}", action.Method); + } } } @@ -438,10 +345,7 @@ internal class ClientStatePluginScoped : IInternalDisposableService, IClientStat /// internal ClientStatePluginScoped() { - this.clientStateService.ZoneInit += this.ZoneInitForward; this.clientStateService.TerritoryChanged += this.TerritoryChangedForward; - this.clientStateService.MapIdChanged += this.MapIdChangedForward; - this.clientStateService.InstanceChanged += this.InstanceChangedForward; this.clientStateService.ClassJobChanged += this.ClassJobChangedForward; this.clientStateService.LevelChanged += this.LevelChangedForward; this.clientStateService.Login += this.LoginForward; @@ -451,18 +355,9 @@ internal class ClientStatePluginScoped : IInternalDisposableService, IClientStat this.clientStateService.CfPop += this.ContentFinderPopForward; } - /// - public event Action ZoneInit; - /// public event Action? TerritoryChanged; - /// - public event Action? MapIdChanged; - - /// - public event Action? InstanceChanged; - /// public event IClientState.ClassJobChangeDelegate? ClassJobChanged; @@ -493,9 +388,6 @@ internal class ClientStatePluginScoped : IInternalDisposableService, IClientStat /// public uint MapId => this.clientStateService.MapId; - /// - public uint Instance => this.clientStateService.Instance; - /// public IPlayerCharacter? LocalPlayer => this.clientStateService.LocalPlayer; @@ -523,10 +415,7 @@ internal class ClientStatePluginScoped : IInternalDisposableService, IClientStat /// void IInternalDisposableService.DisposeService() { - this.clientStateService.ZoneInit -= this.ZoneInitForward; this.clientStateService.TerritoryChanged -= this.TerritoryChangedForward; - this.clientStateService.MapIdChanged -= this.MapIdChangedForward; - this.clientStateService.InstanceChanged -= this.InstanceChangedForward; this.clientStateService.ClassJobChanged -= this.ClassJobChangedForward; this.clientStateService.LevelChanged -= this.LevelChangedForward; this.clientStateService.Login -= this.LoginForward; @@ -535,12 +424,7 @@ internal class ClientStatePluginScoped : IInternalDisposableService, IClientStat this.clientStateService.LeavePvP -= this.ExitPvPForward; this.clientStateService.CfPop -= this.ContentFinderPopForward; - this.ZoneInit = null; this.TerritoryChanged = null; - this.MapIdChanged = null; - this.InstanceChanged = null; - this.ClassJobChanged = null; - this.LevelChanged = null; this.Login = null; this.Logout = null; this.EnterPvP = null; @@ -548,14 +432,8 @@ internal class ClientStatePluginScoped : IInternalDisposableService, IClientStat this.CfPop = null; } - private void ZoneInitForward(ZoneInitEventArgs eventArgs) => this.ZoneInit?.Invoke(eventArgs); - private void TerritoryChangedForward(ushort territoryId) => this.TerritoryChanged?.Invoke(territoryId); - private void MapIdChangedForward(uint mapId) => this.MapIdChanged?.Invoke(mapId); - - private void InstanceChangedForward(uint instanceId) => this.InstanceChanged?.Invoke(instanceId); - private void ClassJobChangedForward(uint classJobId) => this.ClassJobChanged?.Invoke(classJobId); private void LevelChangedForward(uint classJobId, uint level) => this.LevelChanged?.Invoke(classJobId, level); diff --git a/Dalamud/Game/ClientState/ClientStateAddressResolver.cs b/Dalamud/Game/ClientState/ClientStateAddressResolver.cs index ae7549b97..d44275ef8 100644 --- a/Dalamud/Game/ClientState/ClientStateAddressResolver.cs +++ b/Dalamud/Game/ClientState/ClientStateAddressResolver.cs @@ -1,5 +1,3 @@ -using Dalamud.Plugin.Services; - namespace Dalamud.Game.ClientState; /// @@ -12,19 +10,25 @@ internal sealed class ClientStateAddressResolver : BaseAddressResolver /// /// Gets the address of the keyboard state. /// - public nint KeyboardState { get; private set; } + public IntPtr KeyboardState { get; private set; } /// /// Gets the address of the keyboard state index array which translates the VK enumeration to the key state. /// - public nint KeyboardStateIndexArray { get; private set; } + public IntPtr KeyboardStateIndexArray { get; private set; } // Functions /// - /// Gets the address of the method that sets the current public instance. + /// Gets the address of the method which sets up the player. /// - public nint SetCurrentInstance { get; private set; } + public IntPtr ProcessPacketPlayerSetup { get; private set; } + + /// + /// Gets the address of the method which polls the gamepads for data. + /// Called every frame, even when `Enable Gamepad` is off in the settings. + /// + public IntPtr GamepadPoll { get; private set; } /// /// Scan for and setup any configured address pointers. @@ -32,12 +36,14 @@ internal sealed class ClientStateAddressResolver : BaseAddressResolver /// The signature scanner to facilitate setup. protected override void Setup64Bit(ISigScanner sig) { - this.SetCurrentInstance = sig.ScanText("E8 ?? ?? ?? ?? 0F B6 55 ?? 48 8D 0D ?? ?? ?? ?? C0 EA"); // NetworkModuleProxy.SetCurrentInstance + this.ProcessPacketPlayerSetup = sig.ScanText("40 53 48 83 EC 20 48 8D 0D ?? ?? ?? ?? 48 8B DA E8 ?? ?? ?? ?? 48 8B D3"); // not in cs struct // These resolve to fixed offsets only, without the base address added in, so GetStaticAddressFromSig() can't be used. // lea rcx, ds:1DB9F74h[rax*4] KeyboardState // movzx edx, byte ptr [rbx+rsi+1D5E0E0h] KeyboardStateIndexArray this.KeyboardState = sig.ScanText("48 8D 0C 85 ?? ?? ?? ?? 8B 04 31 85 C2 0F 85") + 0x4; this.KeyboardStateIndexArray = sig.ScanText("0F B6 94 33 ?? ?? ?? ?? 84 D2") + 0x4; + + this.GamepadPoll = sig.ScanText("40 55 53 57 41 54 41 57 48 8D AC 24 ?? ?? ?? ?? 48 81 EC ?? ?? ?? ?? 44 0F 29 B4 24"); // unnamed in cs } } diff --git a/Dalamud/Game/ClientState/Conditions/Condition.cs b/Dalamud/Game/ClientState/Conditions/Condition.cs index 6f61ab246..8f39df46f 100644 --- a/Dalamud/Game/ClientState/Conditions/Condition.cs +++ b/Dalamud/Game/ClientState/Conditions/Condition.cs @@ -18,11 +18,11 @@ internal sealed class Condition : IInternalDisposableService, ICondition /// /// Gets the current max number of conditions. You can get this just by looking at the condition sheet and how many rows it has. /// - internal const int MaxConditionEntries = 112; + internal const int MaxConditionEntries = 104; [ServiceManager.ServiceDependency] private readonly Framework framework = Service.Get(); - + private readonly bool[] cache = new bool[MaxConditionEntries]; private bool isDisposed; @@ -38,7 +38,7 @@ internal sealed class Condition : IInternalDisposableService, ICondition this.framework.Update += this.FrameworkUpdate; } - + /// Finalizes an instance of the class. ~Condition() => this.Dispose(false); @@ -69,12 +69,12 @@ internal sealed class Condition : IInternalDisposableService, ICondition /// void IInternalDisposableService.DisposeService() => this.Dispose(true); - + /// public IReadOnlySet AsReadOnlySet() { var result = new HashSet(); - + for (var i = 0; i < MaxConditionEntries; i++) { if (this[i]) @@ -99,14 +99,14 @@ internal sealed class Condition : IInternalDisposableService, ICondition return false; } - + /// public bool Any(params ConditionFlag[] flags) { foreach (var flag in flags) { // this[i] performs range checking, so no need to check here - if (this[flag]) + if (this[flag]) { return true; } @@ -114,7 +114,7 @@ internal sealed class Condition : IInternalDisposableService, ICondition return false; } - + /// public bool AnyExcept(params ConditionFlag[] excluded) { @@ -157,16 +157,13 @@ internal sealed class Condition : IInternalDisposableService, ICondition { this.cache[i] = value; - foreach (var d in Delegate.EnumerateInvocationList(this.ConditionChange)) + try { - try - { - d((ConditionFlag)i, value); - } - catch (Exception ex) - { - Log.Error(ex, $"While invoking {d.Method.Name}, an exception was thrown."); - } + this.ConditionChange?.Invoke((ConditionFlag)i, value); + } + catch (Exception ex) + { + Log.Error(ex, $"While invoking {nameof(this.ConditionChange)}, an exception was thrown."); } } } @@ -193,7 +190,7 @@ internal class ConditionPluginScoped : IInternalDisposableService, ICondition { this.conditionService.ConditionChange += this.ConditionChangedForward; } - + /// public event ICondition.ConditionChangeDelegate? ConditionChange; @@ -205,7 +202,7 @@ internal class ConditionPluginScoped : IInternalDisposableService, ICondition /// public bool this[int flag] => this.conditionService[flag]; - + /// void IInternalDisposableService.DisposeService() { @@ -213,7 +210,7 @@ internal class ConditionPluginScoped : IInternalDisposableService, ICondition this.ConditionChange = null; } - + /// public IReadOnlySet AsReadOnlySet() => this.conditionService.AsReadOnlySet(); @@ -225,10 +222,10 @@ internal class ConditionPluginScoped : IInternalDisposableService, ICondition /// public bool AnyExcept(params ConditionFlag[] except) => this.conditionService.AnyExcept(except); - + /// public bool OnlyAny(params ConditionFlag[] other) => this.conditionService.OnlyAny(other); - + /// public bool EqualTo(params ConditionFlag[] other) => this.conditionService.EqualTo(other); diff --git a/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs b/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs index b5894d891..5b7bd2145 100644 --- a/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs +++ b/Dalamud/Game/ClientState/Conditions/ConditionFlag.cs @@ -5,8 +5,6 @@ namespace Dalamud.Game.ClientState.Conditions; /// /// These come from LogMessage (somewhere) and directly map to each state field managed by the client. As of 5.25, it maps to /// LogMessage row 7700 and onwards, which can be checked by looking at the Condition sheet and looking at what column 2 maps to. -/// -/// The first 24 conditions are the local players CharacterModes. /// public enum ConditionFlag { @@ -63,12 +61,6 @@ public enum ConditionFlag /// /// Unable to execute command while mounted. /// - RidingPillion = 10, - - /// - /// Unable to execute command while mounted. - /// - [Obsolete("Renamed to RidingPillion", true)] Mounted2 = 10, /// @@ -184,15 +176,12 @@ public enum ConditionFlag /// /// Unable to execute command while occupied. /// - /// - /// Observed during Materialize (Desynthesis, Materia Extraction, Aetherial Reduction) and Repair. - /// Occupied39 = 39, /// /// Unable to execute command while crafting. /// - ExecutingCraftingAction = 40, + Crafting40 = 40, /// /// Unable to execute command while preparing to craft. @@ -202,8 +191,7 @@ public enum ConditionFlag /// /// Unable to execute command while gathering. /// - /// Includes fishing. - ExecutingGatheringAction = 42, + Gathering42 = 42, /// /// Unable to execute command while fishing. @@ -232,7 +220,7 @@ public enum ConditionFlag /// /// Unable to execute command while auto-run is active. /// - UsingChocoboTaxi = 49, + AutorunActive = 49, /// /// Unable to execute command while occupied. @@ -273,7 +261,7 @@ public enum ConditionFlag /// /// Unable to execute command at this time. /// - MountOrOrnamentTransition = 57, + Unknown57 = 57, /// /// Unable to execute command while watching a cutscene. @@ -343,9 +331,6 @@ public enum ConditionFlag /// /// Unable to execute command while mounting. /// - /// - /// Observed in Cosmic Exploration while using the actions Astrodrill (only briefly) and Solar Flarethrower. - /// Mounting71 = 71, /// @@ -413,10 +398,7 @@ public enum ConditionFlag /// ParticipatingInCrossWorldPartyOrAlliance = 84, - /// - /// Observed in Cosmic Exploration while gathering during a stellar mission. - /// - Unknown85 = 85, + // Unknown85 = 85, /// /// Unable to execute command while playing duty record. @@ -431,12 +413,6 @@ public enum ConditionFlag /// /// Unable to execute command in this state. /// - MountImmobile = 88, - - /// - /// Unable to execute command in this state. - /// - [Obsolete("Renamed to MountImmobile", true)] InThisState88 = 88, /// @@ -449,6 +425,12 @@ public enum ConditionFlag /// RolePlaying = 90, + /// + /// Unable to execute command while bound by duty. + /// + [Obsolete("Use InDutyQueue")] + BoundToDuty97 = 91, + /// /// Unable to execute command while bound by duty. /// Specifically triggered when you are in a queue for a duty but not inside a duty. @@ -466,9 +448,9 @@ public enum ConditionFlag WaitingToVisitOtherWorld = 93, /// - /// Unable to execute command while using a fashion accessory. + /// Unable to execute command while using a parasol. /// - UsingFashionAccessory = 94, + UsingParasol = 94, /// /// Unable to execute command while bound by duty. @@ -478,9 +460,6 @@ public enum ConditionFlag /// /// Cannot execute at this time. /// - /// - /// Observed in Cosmic Exploration while participating in MechaEvent. - /// Unknown96 = 96, /// @@ -502,35 +481,4 @@ public enum ConditionFlag /// Unable to execute command while editing a portrait. /// EditingPortrait = 100, - - /// - /// Cannot execute at this time. - /// - /// - /// Observed in Cosmic Exploration, in mech flying to FATE or during Cosmoliner use. Maybe ClientPath related. - /// - Unknown101 = 101, - - /// - /// Unable to execute command while undertaking a duty. - /// - /// - /// Used in Cosmic Exploration. - /// - PilotingMech = 102, - - // Unknown103 = 103, - - /// - /// Unable to execute command while editing a strategy board. - /// - EditingStrategyBoard = 104, - - // Unknown105 = 105, - // Unknown106 = 106, - // Unknown107 = 107, - // Unknown108 = 108, - // Unknown109 = 109, - // Unknown110 = 110, - // Unknown111 = 111, } diff --git a/Dalamud/Game/ClientState/Customize/CustomizeData.cs b/Dalamud/Game/ClientState/Customize/CustomizeData.cs deleted file mode 100644 index baf8d3a0a..000000000 --- a/Dalamud/Game/ClientState/Customize/CustomizeData.cs +++ /dev/null @@ -1,311 +0,0 @@ -using Dalamud.Game.ClientState.Objects.Types; - -namespace Dalamud.Game.ClientState.Customize; - -/// -/// This collection represents customization data a has. -/// -public interface ICustomizeData -{ - /// - /// Gets the current race. - /// E.g., Miqo'te, Aura. - /// - public byte Race { get; } - - /// - /// Gets the current sex. - /// - public byte Sex { get; } - - /// - /// Gets the current body type. - /// - public byte BodyType { get; } - - /// - /// Gets the current height (0 to 100). - /// - public byte Height { get; } - - /// - /// Gets the current tribe. - /// E.g., Seeker of the Sun, Keeper of the Moon. - /// - public byte Tribe { get; } - - /// - /// Gets the current face (1 to 4). - /// - public byte Face { get; } - - /// - /// Gets the current hairstyle. - /// - public byte Hairstyle { get; } - - /// - /// Gets the current skin color. - /// - public byte SkinColor { get; } - - /// - /// Gets the current color of the left eye. - /// - public byte EyeColorLeft { get; } - - /// - /// Gets the current color of the right eye. - /// - public byte EyeColorRight { get; } - - /// - /// Gets the current main hair color. - /// - public byte HairColor { get; } - - /// - /// Gets the current highlight hair color. - /// - public byte HighlightsColor { get; } - - /// - /// Gets the current tattoo color. - /// - public byte TattooColor { get; } - - /// - /// Gets the current eyebrow type. - /// - public byte Eyebrows { get; } - - /// - /// Gets the current nose type. - /// - public byte Nose { get; } - - /// - /// Gets the current jaw type. - /// - public byte Jaw { get; } - - /// - /// Gets the current lip color fur pattern. - /// - public byte LipColorFurPattern { get; } - - /// - /// Gets the current muscle mass value. - /// - public byte MuscleMass { get; } - - /// - /// Gets the current tail type (1 to 4). - /// - public byte TailShape { get; } - - /// - /// Gets the current bust size (0 to 100). - /// - public byte BustSize { get; } - - /// - /// Gets the current color of the face paint. - /// - public byte FacePaintColor { get; } - - /// - /// Gets a value indicating whether highlight color is used. - /// - public bool Highlights { get; } - - /// - /// Gets a value indicating whether this facial feature is used. - /// - public bool FacialFeature1 { get; } - - /// - public bool FacialFeature2 { get; } - - /// - public bool FacialFeature3 { get; } - - /// - public bool FacialFeature4 { get; } - - /// - public bool FacialFeature5 { get; } - - /// - public bool FacialFeature6 { get; } - - /// - public bool FacialFeature7 { get; } - - /// - /// Gets a value indicating whether the legacy tattoo is used. - /// - public bool LegacyTattoo { get; } - - /// - /// Gets the current eye shape type. - /// - public byte EyeShape { get; } - - /// - /// Gets a value indicating whether small iris is used. - /// - public bool SmallIris { get; } - - /// - /// Gets the current mouth type. - /// - public byte Mouth { get; } - - /// - /// Gets a value indicating whether lipstick is used. - /// - public bool Lipstick { get; } - - /// - /// Gets the current face paint type. - /// - public byte FacePaint { get; } - - /// - /// Gets a value indicating whether face paint reversed is used. - /// - public bool FacePaintReversed { get; } -} - -/// -internal readonly unsafe struct CustomizeData : ICustomizeData -{ - /// - /// Gets or sets the address of the customize data struct in memory. - /// - public readonly nint Address; - - /// - /// Initializes a new instance of the struct. - /// - /// Address of the status list. - internal CustomizeData(nint address) - { - this.Address = address; - } - - /// - public byte Race => this.Struct->Race; - - /// - public byte Sex => this.Struct->Sex; - - /// - public byte BodyType => this.Struct->BodyType; - - /// - public byte Height => this.Struct->Height; - - /// - public byte Tribe => this.Struct->Tribe; - - /// - public byte Face => this.Struct->Face; - - /// - public byte Hairstyle => this.Struct->Hairstyle; - - /// - public byte SkinColor => this.Struct->SkinColor; - - /// - public byte EyeColorLeft => this.Struct->EyeColorLeft; - - /// - public byte EyeColorRight => this.Struct->EyeColorRight; - - /// - public byte HairColor => this.Struct->HairColor; - - /// - public byte HighlightsColor => this.Struct->HighlightsColor; - - /// - public byte TattooColor => this.Struct->TattooColor; - - /// - public byte Eyebrows => this.Struct->Eyebrows; - - /// - public byte Nose => this.Struct->Nose; - - /// - public byte Jaw => this.Struct->Jaw; - - /// - public byte LipColorFurPattern => this.Struct->LipColorFurPattern; - - /// - public byte MuscleMass => this.Struct->MuscleMass; - - /// - public byte TailShape => this.Struct->TailShape; - - /// - public byte BustSize => this.Struct->BustSize; - - /// - public byte FacePaintColor => this.Struct->FacePaintColor; - - /// - public bool Highlights => this.Struct->Highlights; - - /// - public bool FacialFeature1 => this.Struct->FacialFeature1; - - /// - public bool FacialFeature2 => this.Struct->FacialFeature2; - - /// - public bool FacialFeature3 => this.Struct->FacialFeature3; - - /// - public bool FacialFeature4 => this.Struct->FacialFeature4; - - /// - public bool FacialFeature5 => this.Struct->FacialFeature5; - - /// - public bool FacialFeature6 => this.Struct->FacialFeature6; - - /// - public bool FacialFeature7 => this.Struct->FacialFeature7; - - /// - public bool LegacyTattoo => this.Struct->LegacyTattoo; - - /// - public byte EyeShape => this.Struct->EyeShape; - - /// - public bool SmallIris => this.Struct->SmallIris; - - /// - public byte Mouth => this.Struct->Mouth; - - /// - public bool Lipstick => this.Struct->Lipstick; - - /// - public byte FacePaint => this.Struct->FacePaint; - - /// - public bool FacePaintReversed => this.Struct->FacePaintReversed; - - /// - /// Gets the underlying structure. - /// - internal FFXIVClientStructs.FFXIV.Client.Game.Character.CustomizeData* Struct => - (FFXIVClientStructs.FFXIV.Client.Game.Character.CustomizeData*)this.Address; -} diff --git a/Dalamud/Game/ClientState/Fates/Fate.cs b/Dalamud/Game/ClientState/Fates/Fate.cs index 4348c4025..03714a52b 100644 --- a/Dalamud/Game/ClientState/Fates/Fate.cs +++ b/Dalamud/Game/ClientState/Fates/Fate.cs @@ -1,19 +1,15 @@ -using System.Diagnostics.CodeAnalysis; using System.Numerics; using Dalamud.Data; -using Dalamud.Game.Player; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Memory; using Lumina.Excel; -using CSFateContext = FFXIVClientStructs.FFXIV.Client.Game.Fate.FateContext; - namespace Dalamud.Game.ClientState.Fates; /// -/// Interface representing a fate entry that can be seen in the current area. +/// Interface representing an fate entry that can be seen in the current area. /// public interface IFate : IEquatable { @@ -73,7 +69,13 @@ public interface IFate : IEquatable byte Progress { get; } /// - /// Gets a value indicating whether this has a bonus. + /// Gets a value indicating whether or not this has a EXP bonus. + /// + [Obsolete($"Use {nameof(HasBonus)} instead")] + bool HasExpBonus { get; } + + /// + /// Gets a value indicating whether or not this has a bonus. /// bool HasBonus { get; } @@ -115,96 +117,137 @@ public interface IFate : IEquatable /// /// Gets the address of this Fate in memory. /// - nint Address { get; } + IntPtr Address { get; } } /// -/// This struct represents a Fate. +/// This class represents an FFXIV Fate. /// -/// A pointer to the FateContext. -internal readonly unsafe struct Fate(CSFateContext* ptr) : IFate +internal unsafe partial class Fate { + /// + /// Initializes a new instance of the class. + /// + /// The address of this fate in memory. + internal Fate(IntPtr address) + { + this.Address = address; + } + /// - public nint Address => (nint)ptr; + public IntPtr Address { get; } + + private FFXIVClientStructs.FFXIV.Client.Game.Fate.FateContext* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Fate.FateContext*)this.Address; + + public static bool operator ==(Fate fate1, Fate fate2) + { + if (fate1 is null || fate2 is null) + return Equals(fate1, fate2); + + return fate1.Equals(fate2); + } + + public static bool operator !=(Fate fate1, Fate fate2) => !(fate1 == fate2); + + /// + /// Gets a value indicating whether this Fate is still valid in memory. + /// + /// The fate to check. + /// True or false. + public static bool IsValid(Fate fate) + { + var clientState = Service.GetNullable(); + + if (fate == null || clientState == null) + return false; + + if (clientState.LocalContentId == 0) + return false; + + return true; + } + + /// + /// Gets a value indicating whether this actor is still valid in memory. + /// + /// True or false. + public bool IsValid() => IsValid(this); /// - public ushort FateId => ptr->FateId; + bool IEquatable.Equals(IFate other) => this.FateId == other?.FateId; + + /// + public override bool Equals(object obj) => ((IEquatable)this).Equals(obj as IFate); + + /// + public override int GetHashCode() => this.FateId.GetHashCode(); +} + +/// +/// This class represents an FFXIV Fate. +/// +internal unsafe partial class Fate : IFate +{ + /// + public ushort FateId => this.Struct->FateId; /// public RowRef GameData => LuminaUtils.CreateRef(this.FateId); /// - public int StartTimeEpoch => ptr->StartTimeEpoch; + public int StartTimeEpoch => this.Struct->StartTimeEpoch; /// - public short Duration => ptr->Duration; + public short Duration => this.Struct->Duration; /// public long TimeRemaining => this.StartTimeEpoch + this.Duration - DateTimeOffset.Now.ToUnixTimeSeconds(); /// - public SeString Name => MemoryHelper.ReadSeString(&ptr->Name); + public SeString Name => MemoryHelper.ReadSeString(&this.Struct->Name); /// - public SeString Description => MemoryHelper.ReadSeString(&ptr->Description); + public SeString Description => MemoryHelper.ReadSeString(&this.Struct->Description); /// - public SeString Objective => MemoryHelper.ReadSeString(&ptr->Objective); + public SeString Objective => MemoryHelper.ReadSeString(&this.Struct->Objective); /// - public FateState State => (FateState)ptr->State; + public FateState State => (FateState)this.Struct->State; /// - public byte HandInCount => ptr->HandInCount; + public byte HandInCount => this.Struct->HandInCount; /// - public byte Progress => ptr->Progress; + public byte Progress => this.Struct->Progress; /// - public bool HasBonus => ptr->IsBonus; + [Obsolete($"Use {nameof(HasBonus)} instead")] + public bool HasExpBonus => this.Struct->IsExpBonus; /// - public uint IconId => ptr->IconId; + public bool HasBonus => this.Struct->IsBonus; /// - public byte Level => ptr->Level; + public uint IconId => this.Struct->IconId; /// - public byte MaxLevel => ptr->MaxLevel; + public byte Level => this.Struct->Level; /// - public Vector3 Position => ptr->Location; + public byte MaxLevel => this.Struct->MaxLevel; /// - public float Radius => ptr->Radius; + public Vector3 Position => this.Struct->Location; /// - public uint MapIconId => ptr->MapIconId; + public float Radius => this.Struct->Radius; + + /// + public uint MapIconId => this.Struct->MapIconId; /// /// Gets the territory this is located in. /// - public RowRef TerritoryType => LuminaUtils.CreateRef(ptr->MapMarkers[0].MapMarkerData.TerritoryTypeId); - - public static bool operator ==(Fate x, Fate y) => x.Equals(y); - - public static bool operator !=(Fate x, Fate y) => !(x == y); - - /// - public bool Equals(IFate? other) - { - return this.FateId == other.FateId; - } - - /// - public override bool Equals([NotNullWhen(true)] object? obj) - { - return obj is Fate fate && this.Equals(fate); - } - - /// - public override int GetHashCode() - { - return this.FateId.GetHashCode(); - } + public RowRef TerritoryType => LuminaUtils.CreateRef(this.Struct->TerritoryId); } diff --git a/Dalamud/Game/ClientState/Fates/FateState.cs b/Dalamud/Game/ClientState/Fates/FateState.cs index ad605a99c..8f2ef85cc 100644 --- a/Dalamud/Game/ClientState/Fates/FateState.cs +++ b/Dalamud/Game/ClientState/Fates/FateState.cs @@ -8,25 +8,25 @@ public enum FateState : byte /// /// The Fate is active. /// - Running = 0x04, + Running = 0x02, /// /// The Fate has ended. /// - Ended = 0x07, + Ended = 0x04, /// /// The player failed the Fate. /// - Failed = 0x08, + Failed = 0x05, /// /// The Fate is preparing to run. /// - Preparation = 0x03, + Preparation = 0x07, /// /// The Fate is preparing to end. /// - WaitingForEnd = 0x05, + WaitingForEnd = 0x08, } diff --git a/Dalamud/Game/ClientState/Fates/FateTable.cs b/Dalamud/Game/ClientState/Fates/FateTable.cs index 41e974f04..1bf557ad5 100644 --- a/Dalamud/Game/ClientState/Fates/FateTable.cs +++ b/Dalamud/Game/ClientState/Fates/FateTable.cs @@ -1,12 +1,10 @@ using System.Collections; using System.Collections.Generic; -using Dalamud.Game.Player; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; -using CSFateContext = FFXIVClientStructs.FFXIV.Client.Game.Fate.FateContext; using CSFateManager = FFXIVClientStructs.FFXIV.Client.Game.Fate.FateManager; namespace Dalamud.Game.ClientState.Fates; @@ -27,7 +25,7 @@ internal sealed partial class FateTable : IServiceType, IFateTable } /// - public unsafe nint Address => (nint)CSFateManager.Instance(); + public unsafe IntPtr Address => (nint)CSFateManager.Instance(); /// public unsafe int Length @@ -62,37 +60,42 @@ internal sealed partial class FateTable : IServiceType, IFateTable /// public bool IsValid(IFate fate) { - if (fate == null) + var clientState = Service.GetNullable(); + + if (fate == null || clientState == null) return false; - var playerState = Service.Get(); - return playerState.IsLoaded == true; + if (clientState.LocalContentId == 0) + return false; + + return true; } /// - public unsafe nint GetFateAddress(int index) + public unsafe IntPtr GetFateAddress(int index) { if (index >= this.Length) - return 0; + return IntPtr.Zero; var fateManager = CSFateManager.Instance(); if (fateManager == null) - return 0; + return IntPtr.Zero; - return (nint)fateManager->Fates[index].Value; + return (IntPtr)fateManager->Fates[index].Value; } /// - public unsafe IFate? CreateFateReference(IntPtr address) + public IFate? CreateFateReference(IntPtr offset) { - if (address == 0) - return null; - var clientState = Service.Get(); + if (clientState.LocalContentId == 0) return null; - return new Fate((CSFateContext*)address); + if (offset == IntPtr.Zero) + return null; + + return new Fate(offset); } } @@ -107,39 +110,12 @@ internal sealed partial class FateTable /// public IEnumerator GetEnumerator() { - return new Enumerator(this); + for (var i = 0; i < this.Length; i++) + { + yield return this[i]; + } } /// IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator(); - - private struct Enumerator(FateTable fateTable) : IEnumerator - { - private int index = -1; - - public IFate Current { get; private set; } - - object IEnumerator.Current => this.Current; - - public bool MoveNext() - { - if (++this.index < fateTable.Length) - { - this.Current = fateTable[this.index]; - return true; - } - - this.Current = default; - return false; - } - - public void Reset() - { - this.index = -1; - } - - public void Dispose() - { - } - } } diff --git a/Dalamud/Game/ClientState/GamePad/GamepadInput.cs b/Dalamud/Game/ClientState/GamePad/GamepadInput.cs new file mode 100644 index 000000000..d9dcea60f --- /dev/null +++ b/Dalamud/Game/ClientState/GamePad/GamepadInput.cs @@ -0,0 +1,75 @@ +using System.Runtime.InteropServices; + +namespace Dalamud.Game.ClientState.GamePad; + +/// +/// Struct which gets populated by polling the gamepads. +/// +/// Has an array of gamepads, among many other things (here not mapped). +/// All we really care about is the final data which the game uses to determine input. +/// +/// The size is definitely bigger than only the following fields but I do not know how big. +/// +[StructLayout(LayoutKind.Explicit)] +public struct GamepadInput +{ + /// + /// Left analogue stick's horizontal value, -99 for left, 99 for right. + /// + [FieldOffset(0x78)] + public int LeftStickX; + + /// + /// Left analogue stick's vertical value, -99 for down, 99 for up. + /// + [FieldOffset(0x7C)] + public int LeftStickY; + + /// + /// Right analogue stick's horizontal value, -99 for left, 99 for right. + /// + [FieldOffset(0x80)] + public int RightStickX; + + /// + /// Right analogue stick's vertical value, -99 for down, 99 for up. + /// + [FieldOffset(0x84)] + public int RightStickY; + + /// + /// Raw input, set the whole time while a button is held. See for the mapping. + /// + /// + /// This is a bitfield. + /// + [FieldOffset(0x88)] + public ushort ButtonsRaw; + + /// + /// Button pressed, set once when the button is pressed. See for the mapping. + /// + /// + /// This is a bitfield. + /// + [FieldOffset(0x8C)] + public ushort ButtonsPressed; + + /// + /// Button released input, set once right after the button is not hold anymore. See for the mapping. + /// + /// + /// This is a bitfield. + /// + [FieldOffset(0x90)] + public ushort ButtonsReleased; + + /// + /// Repeatedly emits the held button input in fixed intervals. See for the mapping. + /// + /// + /// This is a bitfield. + /// + [FieldOffset(0x94)] + public ushort ButtonsRepeat; +} diff --git a/Dalamud/Game/ClientState/GamePad/GamepadState.cs b/Dalamud/Game/ClientState/GamePad/GamepadState.cs index 3a8642cfa..05d691823 100644 --- a/Dalamud/Game/ClientState/GamePad/GamepadState.cs +++ b/Dalamud/Game/ClientState/GamePad/GamepadState.cs @@ -1,13 +1,12 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; +using Dalamud.Utility; -using FFXIVClientStructs.FFXIV.Client.System.Input; - +using ImGuiNET; using Serilog; namespace Dalamud.Game.ClientState.GamePad; @@ -24,7 +23,7 @@ namespace Dalamud.Game.ClientState.GamePad; #pragma warning restore SA1015 internal unsafe class GamepadState : IInternalDisposableService, IGamepadState { - private readonly Hook? gamepadPoll; + private readonly Hook? gamepadPoll; private bool isDisposed; @@ -36,21 +35,25 @@ internal unsafe class GamepadState : IInternalDisposableService, IGamepadState [ServiceManager.ServiceConstructor] private GamepadState(ClientState clientState) { - this.gamepadPoll = Hook.FromAddress((nint)PadDevice.StaticVirtualTablePointer->Poll, this.GamepadPollDetour); + var resolver = clientState.AddressResolver; + Log.Verbose($"GamepadPoll address {Util.DescribeAddress(resolver.GamepadPoll)}"); + this.gamepadPoll = Hook.FromAddress(resolver.GamepadPoll, this.GamepadPollDetour); this.gamepadPoll?.Enable(); } + private delegate int ControllerPoll(IntPtr controllerInput); + /// /// Gets the pointer to the current instance of the GamepadInput struct. /// public IntPtr GamepadInputAddress { get; private set; } /// - public Vector2 LeftStick => + public Vector2 LeftStick => new(this.leftStickX, this.leftStickY); - + /// - public Vector2 RightStick => + public Vector2 RightStick => new(this.rightStickX, this.rightStickY); /// @@ -58,28 +61,28 @@ internal unsafe class GamepadState : IInternalDisposableService, IGamepadState /// /// Exposed internally for Debug Data window. /// - internal GamepadButtons ButtonsPressed { get; private set; } + internal ushort ButtonsPressed { get; private set; } /// /// Gets raw button bitmask, set the whole time while a button is held. See for the mapping. /// /// Exposed internally for Debug Data window. /// - internal GamepadButtons ButtonsRaw { get; private set; } + internal ushort ButtonsRaw { get; private set; } /// /// Gets button released bitmask, set once right after the button is not hold anymore. See for the mapping. /// /// Exposed internally for Debug Data window. /// - internal GamepadButtons ButtonsReleased { get; private set; } + internal ushort ButtonsReleased { get; private set; } /// /// Gets button repeat bitmask, emits the held button input in fixed intervals. See for the mapping. /// /// Exposed internally for Debug Data window. /// - internal GamepadButtons ButtonsRepeat { get; private set; } + internal ushort ButtonsRepeat { get; private set; } /// /// Gets or sets a value indicating whether detour should block gamepad input for game. @@ -92,16 +95,16 @@ internal unsafe class GamepadState : IInternalDisposableService, IGamepadState internal bool NavEnableGamepad { get; set; } /// - public float Pressed(GamepadButtons button) => (this.ButtonsPressed & button) > 0 ? 1 : 0; + public float Pressed(GamepadButtons button) => (this.ButtonsPressed & (ushort)button) > 0 ? 1 : 0; /// - public float Repeat(GamepadButtons button) => (this.ButtonsRepeat & button) > 0 ? 1 : 0; + public float Repeat(GamepadButtons button) => (this.ButtonsRepeat & (ushort)button) > 0 ? 1 : 0; /// - public float Released(GamepadButtons button) => (this.ButtonsReleased & button) > 0 ? 1 : 0; + public float Released(GamepadButtons button) => (this.ButtonsReleased & (ushort)button) > 0 ? 1 : 0; /// - public float Raw(GamepadButtons button) => (this.ButtonsRaw & button) > 0 ? 1 : 0; + public float Raw(GamepadButtons button) => (this.ButtonsRaw & (ushort)button) > 0 ? 1 : 0; /// /// Disposes this instance, alongside its hooks. @@ -112,28 +115,28 @@ internal unsafe class GamepadState : IInternalDisposableService, IGamepadState GC.SuppressFinalize(this); } - private nint GamepadPollDetour(PadDevice* gamepadInput) + private int GamepadPollDetour(IntPtr gamepadInput) { var original = this.gamepadPoll!.Original(gamepadInput); try { - this.GamepadInputAddress = (nint)gamepadInput; - - this.leftStickX = gamepadInput->GamepadInputData.LeftStickX; - this.leftStickY = gamepadInput->GamepadInputData.LeftStickY; - this.rightStickX = gamepadInput->GamepadInputData.RightStickX; - this.rightStickY = gamepadInput->GamepadInputData.RightStickY; - this.ButtonsRaw = (GamepadButtons)gamepadInput->GamepadInputData.Buttons; - this.ButtonsPressed = (GamepadButtons)gamepadInput->GamepadInputData.ButtonsPressed; - this.ButtonsReleased = (GamepadButtons)gamepadInput->GamepadInputData.ButtonsReleased; - this.ButtonsRepeat = (GamepadButtons)gamepadInput->GamepadInputData.ButtonsRepeat; + this.GamepadInputAddress = gamepadInput; + var input = (GamepadInput*)gamepadInput; + this.leftStickX = input->LeftStickX; + this.leftStickY = input->LeftStickY; + this.rightStickX = input->RightStickX; + this.rightStickY = input->RightStickY; + this.ButtonsRaw = input->ButtonsRaw; + this.ButtonsPressed = input->ButtonsPressed; + this.ButtonsReleased = input->ButtonsReleased; + this.ButtonsRepeat = input->ButtonsRepeat; if (this.NavEnableGamepad) { - gamepadInput->GamepadInputData.LeftStickX = 0; - gamepadInput->GamepadInputData.LeftStickY = 0; - gamepadInput->GamepadInputData.RightStickX = 0; - gamepadInput->GamepadInputData.RightStickY = 0; + input->LeftStickX = 0; + input->LeftStickY = 0; + input->RightStickX = 0; + input->RightStickY = 0; // NOTE (Chiv) Zeroing `ButtonsRaw` destroys `ButtonPressed`, `ButtonReleased` // and `ButtonRepeat` as the game uses the RAW input to determine those (apparently). @@ -150,16 +153,16 @@ internal unsafe class GamepadState : IInternalDisposableService, IGamepadState // `ButtonPressed` while ImGuiConfigFlags.NavEnableGamepad is set. // This is debatable. // ImGui itself does not care either way as it uses the Raw values and does its own state handling. - const GamepadButtonsFlags deletionMask = ~GamepadButtonsFlags.L2 - & ~GamepadButtonsFlags.R2 - & ~GamepadButtonsFlags.DPadDown - & ~GamepadButtonsFlags.DPadLeft - & ~GamepadButtonsFlags.DPadUp - & ~GamepadButtonsFlags.DPadRight; - gamepadInput->GamepadInputData.Buttons &= deletionMask; - gamepadInput->GamepadInputData.ButtonsPressed = 0; - gamepadInput->GamepadInputData.ButtonsReleased = 0; - gamepadInput->GamepadInputData.ButtonsRepeat = 0; + const ushort deletionMask = (ushort)(~GamepadButtons.L2 + & ~GamepadButtons.R2 + & ~GamepadButtons.DpadDown + & ~GamepadButtons.DpadLeft + & ~GamepadButtons.DpadUp + & ~GamepadButtons.DpadRight); + input->ButtonsRaw &= deletionMask; + input->ButtonsPressed = 0; + input->ButtonsReleased = 0; + input->ButtonsRepeat = 0; return 0; } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/BeastChakra.cs b/Dalamud/Game/ClientState/JobGauge/Enums/BeastChakra.cs index 9191ca020..bbe4ad70d 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/BeastChakra.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/BeastChakra.cs @@ -8,20 +8,20 @@ public enum BeastChakra : byte /// /// No chakra. /// - None = 0, + NONE = 0, /// /// The Opo-Opo chakra. /// - OpoOpo = 1, + OPOOPO = 1, /// /// The Raptor chakra. /// - Raptor = 2, + RAPTOR = 2, /// /// The Coeurl chakra. /// - Coeurl = 3, + COEURL = 3, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/CardType.cs b/Dalamud/Game/ClientState/JobGauge/Enums/CardType.cs index 89fceed96..24ffc2b19 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/CardType.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/CardType.cs @@ -8,45 +8,45 @@ public enum CardType : byte /// /// No card. /// - None = 0, + NONE = 0, /// /// The Balance card. /// - Balance = 1, + BALANCE = 1, /// /// The Bole card. /// - Bole = 2, + BOLE = 2, /// /// The Arrow card. /// - Arrow = 3, + ARROW = 3, /// /// The Spear card. /// - Spear = 4, + SPEAR = 4, /// /// The Ewer card. /// - Ewer = 5, + EWER = 5, /// /// The Spire card. /// - Spire = 6, + SPIRE = 6, /// /// The Lord of Crowns card. /// - Lord = 7, + LORD = 7, /// /// The Lady of Crowns card. /// - Lady = 8, + LADY = 8, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/DeliriumStep.cs b/Dalamud/Game/ClientState/JobGauge/Enums/DeliriumStep.cs deleted file mode 100644 index d2a41b93c..000000000 --- a/Dalamud/Game/ClientState/JobGauge/Enums/DeliriumStep.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Game.ClientState.JobGauge.Enums; - -/// -/// Enum representing the current step of Delirium. -/// -public enum DeliriumStep -{ - /// - /// Scarlet Delirium can be used. - /// - ScarletDelirium = 0, - - /// - /// Comeuppance can be used. - /// - Comeuppance = 1, - - /// - /// Torcleaver can be used. - /// - Torcleaver = 2, -} diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/DismissedFairy.cs b/Dalamud/Game/ClientState/JobGauge/Enums/DismissedFairy.cs index 446489bd1..b674d11b8 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/DismissedFairy.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/DismissedFairy.cs @@ -8,10 +8,10 @@ public enum DismissedFairy : byte /// /// Dismissed fairy is Eos. /// - Eos = 6, + EOS = 6, /// /// Dismissed fairy is Selene. /// - Selene = 7, + SELENE = 7, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/DrawType.cs b/Dalamud/Game/ClientState/JobGauge/Enums/DrawType.cs index 619059daa..f8833d6d0 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/DrawType.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/DrawType.cs @@ -8,10 +8,10 @@ public enum DrawType : byte /// /// Astral Draw active. /// - Astral = 0, + ASTRAL = 0, /// /// Umbral Draw active. /// - Umbral = 1, + UMBRAL = 1, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/Kaeshi.cs b/Dalamud/Game/ClientState/JobGauge/Enums/Kaeshi.cs index 86e58771b..e35dcc7f9 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/Kaeshi.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/Kaeshi.cs @@ -8,25 +8,25 @@ public enum Kaeshi : byte /// /// No Kaeshi is active. /// - None = 0, + NONE = 0, /// /// Kaeshi: Higanbana type. /// - Higanbana = 1, + HIGANBANA = 1, /// /// Kaeshi: Goken type. /// - Goken = 2, + GOKEN = 2, /// /// Kaeshi: Setsugekka type. /// - Setsugekka = 3, + SETSUGEKKA = 3, /// /// Kaeshi: Namikiri type. /// - Namikiri = 4, + NAMIKIRI = 4, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/Mudras.cs b/Dalamud/Game/ClientState/JobGauge/Enums/Mudras.cs index 8955c0735..31ee6dac1 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/Mudras.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/Mudras.cs @@ -8,15 +8,15 @@ public enum Mudras : byte /// /// Ten mudra. /// - Ten = 1, + TEN = 1, /// /// Chi mudra. /// - Chi = 2, + CHI = 2, /// /// Jin mudra. /// - Jin = 3, + JIN = 3, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/Nadi.cs b/Dalamud/Game/ClientState/JobGauge/Enums/Nadi.cs index f61e54104..8be5c739e 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/Nadi.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/Nadi.cs @@ -9,15 +9,15 @@ public enum Nadi : byte /// /// No nadi. /// - None = 0, + NONE = 0, /// /// The Lunar nadi. /// - Lunar = 1, + LUNAR = 1, /// /// The Solar nadi. /// - Solar = 2, + SOLAR = 2, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/PetGlam.cs b/Dalamud/Game/ClientState/JobGauge/Enums/PetGlam.cs index c10c369d3..248caa396 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/PetGlam.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/PetGlam.cs @@ -8,40 +8,40 @@ public enum PetGlam : byte /// /// No pet glam. /// - None = 0, + NONE = 0, /// /// Emerald carbuncle pet glam. /// - Emerald = 1, + EMERALD = 1, /// /// Topaz carbuncle pet glam. /// - Topaz = 2, + TOPAZ = 2, /// /// Ruby carbuncle pet glam. /// - Ruby = 3, + RUBY = 3, /// /// Normal carbuncle pet glam. /// - Carbuncle = 4, + CARBUNCLE = 4, /// /// Ifrit Egi pet glam. /// - Ifrit = 5, + IFRIT = 5, /// /// Titan Egi pet glam. /// - Titan = 6, + TITAN = 6, /// /// Garuda Egi pet glam. /// - Garuda = 7, + GARUDA = 7, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/Sen.cs b/Dalamud/Game/ClientState/JobGauge/Enums/Sen.cs index 0eb86b1b1..a1a6035c6 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/Sen.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/Sen.cs @@ -9,20 +9,20 @@ public enum Sen : byte /// /// No Sen. /// - None = 0, + NONE = 0, /// /// Setsu Sen type. /// - Setsu = 1 << 0, + SETSU = 1 << 0, /// /// Getsu Sen type. /// - Getsu = 1 << 1, + GETSU = 1 << 1, /// /// Ka Sen type. /// - Ka = 1 << 2, + KA = 1 << 2, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs b/Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs index f4850cf8c..0fc50d87a 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs @@ -8,35 +8,35 @@ public enum SerpentCombo : byte /// /// No Serpent combo is active. /// - None = 0, + NONE = 0, /// /// Death Rattle action. /// - DeathRattle = 1, + DEATHRATTLE = 1, /// /// Last Lash action. /// - LastLash = 2, + LASTLASH = 2, /// /// First Legacy action. /// - FirstLegacy = 3, + FIRSTLEGACY = 3, /// /// Second Legacy action. /// - SecondLegacy = 4, + SECONDLEGACY = 4, /// /// Third Legacy action. /// - ThirdLegacy = 5, + THIRDLEGACY = 5, /// /// Fourth Legacy action. /// - FourthLegacy = 6, + FOURTHLEGACY = 6, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/Song.cs b/Dalamud/Game/ClientState/JobGauge/Enums/Song.cs index 7ca6b6c07..c23fbbbff 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/Song.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/Song.cs @@ -8,20 +8,20 @@ public enum Song : byte /// /// No song is active type. /// - None = 0, + NONE = 0, /// /// Mage's Ballad type. /// - Mage = 1, + MAGE = 1, /// /// Army's Paeon type. /// - Army = 2, + ARMY = 2, /// /// The Wanderer's Minuet type. /// - Wanderer = 3, + WANDERER = 3, } diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/SummonAttunement.cs b/Dalamud/Game/ClientState/JobGauge/Enums/SummonAttunement.cs deleted file mode 100644 index a07c0d04f..000000000 --- a/Dalamud/Game/ClientState/JobGauge/Enums/SummonAttunement.cs +++ /dev/null @@ -1,30 +0,0 @@ -namespace Dalamud.Game.ClientState.JobGauge.Enums; - -/// -/// Enum representing the current attunement of a summoner. -/// -public enum SummonAttunement -{ - /// - /// No attunement. - /// - None = 0, - - /// - /// Attuned to the summon Ifrit. - /// Same as . - /// - Ifrit = 1, - - /// - /// Attuned to the summon Titan. - /// Same as . - /// - Titan = 2, - - /// - /// Attuned to the summon Garuda. - /// Same as . - /// - Garuda = 3, -} diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/SummonPet.cs b/Dalamud/Game/ClientState/JobGauge/Enums/SummonPet.cs index 37569f4bf..30cc0fff0 100644 --- a/Dalamud/Game/ClientState/JobGauge/Enums/SummonPet.cs +++ b/Dalamud/Game/ClientState/JobGauge/Enums/SummonPet.cs @@ -8,10 +8,10 @@ public enum SummonPet : byte /// /// No pet. /// - None = 0, + NONE = 0, /// /// The summoned pet Carbuncle. /// - Carbuncle = 23, + CARBUNCLE = 23, } diff --git a/Dalamud/Game/ClientState/JobGauge/JobGauges.cs b/Dalamud/Game/ClientState/JobGauge/JobGauges.cs index 5d6ba4554..67429956b 100644 --- a/Dalamud/Game/ClientState/JobGauge/JobGauges.cs +++ b/Dalamud/Game/ClientState/JobGauge/JobGauges.cs @@ -37,7 +37,7 @@ internal class JobGauges : IServiceType, IJobGauges // Since the gauge itself reads from live memory, there isn't much downside to doing this. if (!this.cache.TryGetValue(typeof(T), out var gauge)) { - gauge = this.cache[typeof(T)] = (T)Activator.CreateInstance(typeof(T), BindingFlags.NonPublic | BindingFlags.Instance, null, [this.Address], null); + gauge = this.cache[typeof(T)] = (T)Activator.CreateInstance(typeof(T), BindingFlags.NonPublic | BindingFlags.Instance, null, new object[] { this.Address }, null); } return (T)gauge; diff --git a/Dalamud/Game/ClientState/JobGauge/Types/BLMGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/BLMGauge.cs index ad0cdd9e1..ebf70abe7 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/BLMGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/BLMGauge.cs @@ -19,6 +19,11 @@ public unsafe class BLMGauge : JobGaugeBase public short EnochianTimer => this.Struct->EnochianTimer; + /// + /// Gets the time remaining for Astral Fire or Umbral Ice in milliseconds. + /// + public short ElementTimeRemaining => this.Struct->ElementTimeRemaining; + /// /// Gets the number of Polyglot stacks remaining. /// @@ -45,19 +50,19 @@ public unsafe class BLMGauge : JobGaugeBase this.Struct->AstralSoulStacks; /// - /// Gets a value indicating whether the player is in Umbral Ice. + /// Gets a value indicating whether or not the player is in Umbral Ice. /// /// true or false. public bool InUmbralIce => this.Struct->ElementStance < 0; /// - /// Gets a value indicating whether the player is in Astral fire. + /// Gets a value indicating whether or not the player is in Astral fire. /// /// true or false. public bool InAstralFire => this.Struct->ElementStance > 0; /// - /// Gets a value indicating whether Enochian is active. + /// Gets a value indicating whether or not Enochian is active. /// /// true or false. public bool IsEnochianActive => this.Struct->EnochianActive; diff --git a/Dalamud/Game/ClientState/JobGauge/Types/BRDGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/BRDGauge.cs index de73d540e..bfcf3cc38 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/BRDGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/BRDGauge.cs @@ -1,5 +1,4 @@ using Dalamud.Game.ClientState.JobGauge.Enums; - using FFXIVClientStructs.FFXIV.Client.Game.Gauge; namespace Dalamud.Game.ClientState.JobGauge.Types; @@ -41,15 +40,15 @@ public unsafe class BRDGauge : JobGaugeBaseSongFlags.HasFlag(SongFlags.WanderersMinuet)) - return Song.Wanderer; + return Song.WANDERER; if (this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeon)) - return Song.Army; + return Song.ARMY; if (this.Struct->SongFlags.HasFlag(SongFlags.MagesBallad)) - return Song.Mage; + return Song.MAGE; - return Song.None; + return Song.NONE; } } @@ -61,15 +60,15 @@ public unsafe class BRDGauge : JobGaugeBaseSongFlags.HasFlag(SongFlags.WanderersMinuetLastPlayed)) - return Song.Wanderer; + return Song.WANDERER; if (this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeonLastPlayed)) - return Song.Army; + return Song.ARMY; if (this.Struct->SongFlags.HasFlag(SongFlags.MagesBalladLastPlayed)) - return Song.Mage; + return Song.MAGE; - return Song.None; + return Song.NONE; } } @@ -77,18 +76,18 @@ public unsafe class BRDGauge : JobGaugeBase /// - /// This will always return an array of size 3, inactive Coda are represented by . + /// This will always return an array of size 3, inactive Coda are represented by . /// public Song[] Coda { get { - return - [ - this.Struct->SongFlags.HasFlag(SongFlags.MagesBalladCoda) ? Song.Mage : Song.None, - this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeonCoda) ? Song.Army : Song.None, - this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuetCoda) ? Song.Wanderer : Song.None, - ]; + return new[] + { + this.Struct->SongFlags.HasFlag(SongFlags.MagesBalladCoda) ? Song.MAGE : Song.NONE, + this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeonCoda) ? Song.ARMY : Song.NONE, + this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuetCoda) ? Song.WANDERER : Song.NONE, + }; } } } diff --git a/Dalamud/Game/ClientState/JobGauge/Types/DRKGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/DRKGauge.cs index 06d923cc4..834087040 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/DRKGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/DRKGauge.cs @@ -1,13 +1,9 @@ -using Dalamud.Game.ClientState.JobGauge.Enums; - -using FFXIVClientStructs.FFXIV.Client.Game.Gauge; - namespace Dalamud.Game.ClientState.JobGauge.Types; /// /// In-memory DRK job gauge. /// -public unsafe class DRKGauge : JobGaugeBase +public unsafe class DRKGauge : JobGaugeBase { /// /// Initializes a new instance of the class. @@ -38,16 +34,4 @@ public unsafe class DRKGauge : JobGaugeBase /// /// true or false. public bool HasDarkArts => this.Struct->DarkArtsState > 0; - - /// - /// Gets the step of the Delirium Combo (Scarlet Delirium, Comeuppance, - /// Torcleaver) that the player is on.
- /// Does not in any way consider whether the player is still under Delirium, or - /// if the player still has stacks of Delirium to use. - ///
- /// - /// Value will persist until combo is finished OR - /// if the combo is not completed then the value will stay until about halfway into Delirium's cooldown. - /// - public DeliriumStep DeliriumComboStep => (DeliriumStep)this.Struct->DeliriumStep; } diff --git a/Dalamud/Game/ClientState/JobGauge/Types/MNKGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/MNKGauge.cs index 31a5ceb9b..803740f33 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/MNKGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/MNKGauge.cs @@ -27,7 +27,7 @@ public unsafe class MNKGauge : JobGaugeBase /// - /// This will always return an array of size 3, inactive Beast Chakra are represented by . + /// This will always return an array of size 3, inactive Beast Chakra are represented by . /// public BeastChakra[] BeastChakra => this.Struct->BeastChakra.Select(c => (BeastChakra)c).ToArray(); diff --git a/Dalamud/Game/ClientState/JobGauge/Types/PCTGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/PCTGauge.cs index 9745bff7c..db9d51dc4 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/PCTGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/PCTGauge.cs @@ -1,4 +1,4 @@ -using FFXIVClientStructs.FFXIV.Client.Game.Gauge; +using FFXIVClientStructs.FFXIV.Client.Game.Gauge; using CanvasFlags = Dalamud.Game.ClientState.JobGauge.Enums.CanvasFlags; using CreatureFlags = Dalamud.Game.ClientState.JobGauge.Enums.CreatureFlags; @@ -14,7 +14,7 @@ public unsafe class PCTGauge : JobGaugeBase /// Initializes a new instance of the class. ///
/// Address of the job gauge. - internal PCTGauge(IntPtr address) + internal PCTGauge(IntPtr address) : base(address) { } @@ -22,45 +22,45 @@ public unsafe class PCTGauge : JobGaugeBase /// /// Gets the use of subjective pallete. /// - public byte PalleteGauge => this.Struct->PalleteGauge; + public byte PalleteGauge => Struct->PalleteGauge; /// /// Gets the amount of paint the player has. /// - public byte Paint => this.Struct->Paint; + public byte Paint => Struct->Paint; + + /// + /// Gets a value indicating whether or not a creature motif is drawn. + /// + public bool CreatureMotifDrawn => Struct->CreatureMotifDrawn; /// - /// Gets a value indicating whether a creature motif is drawn. + /// Gets a value indicating whether or not a weapon motif is drawn. /// - public bool CreatureMotifDrawn => this.Struct->CreatureMotifDrawn; + public bool WeaponMotifDrawn => Struct->WeaponMotifDrawn; /// - /// Gets a value indicating whether a weapon motif is drawn. + /// Gets a value indicating whether or not a landscape motif is drawn. /// - public bool WeaponMotifDrawn => this.Struct->WeaponMotifDrawn; + public bool LandscapeMotifDrawn => Struct->LandscapeMotifDrawn; /// - /// Gets a value indicating whether a landscape motif is drawn. + /// Gets a value indicating whether or not a moogle portrait is ready. /// - public bool LandscapeMotifDrawn => this.Struct->LandscapeMotifDrawn; - + public bool MooglePortraitReady => Struct->MooglePortraitReady; + /// - /// Gets a value indicating whether a moogle portrait is ready. + /// Gets a value indicating whether or not a madeen portrait is ready. /// - public bool MooglePortraitReady => this.Struct->MooglePortraitReady; - - /// - /// Gets a value indicating whether a madeen portrait is ready. - /// - public bool MadeenPortraitReady => this.Struct->MadeenPortraitReady; + public bool MadeenPortraitReady => Struct->MadeenPortraitReady; /// /// Gets which creature flags are present. /// - public CreatureFlags CreatureFlags => (CreatureFlags)this.Struct->CreatureFlags; + public CreatureFlags CreatureFlags => (CreatureFlags)Struct->CreatureFlags; /// /// Gets which canvas flags are present. /// - public CanvasFlags CanvasFlags => (CanvasFlags)this.Struct->CanvasFlags; + public CanvasFlags CanvasFlags => (CanvasFlags)Struct->CanvasFlags; } diff --git a/Dalamud/Game/ClientState/JobGauge/Types/SAMGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/SAMGauge.cs index 52dc0e51a..f3417f002 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/SAMGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/SAMGauge.cs @@ -40,17 +40,17 @@ public unsafe class SAMGauge : JobGaugeBase /// true or false. - public bool HasSetsu => (this.Sen & Sen.Setsu) != 0; + public bool HasSetsu => (this.Sen & Sen.SETSU) != 0; /// /// Gets a value indicating whether the Getsu Sen is active. /// /// true or false. - public bool HasGetsu => (this.Sen & Sen.Getsu) != 0; + public bool HasGetsu => (this.Sen & Sen.GETSU) != 0; /// /// Gets a value indicating whether the Ka Sen is active. /// /// true or false. - public bool HasKa => (this.Sen & Sen.Ka) != 0; + public bool HasKa => (this.Sen & Sen.KA) != 0; } diff --git a/Dalamud/Game/ClientState/JobGauge/Types/SMNGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/SMNGauge.cs index 5f2d6e932..81be0e762 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/SMNGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/SMNGauge.cs @@ -1,5 +1,4 @@ using Dalamud.Game.ClientState.JobGauge.Enums; - using FFXIVClientStructs.FFXIV.Client.Game.Gauge; namespace Dalamud.Game.ClientState.JobGauge.Types; @@ -26,13 +25,7 @@ public unsafe class SMNGauge : JobGaugeBase /// /// Gets the time remaining for the current attunement. /// - [Obsolete("Typo fixed. Use AttunementTimerRemaining instead.", true)] - public ushort AttunmentTimerRemaining => this.AttunementTimerRemaining; - - /// - /// Gets the time remaining for the current attunement. - /// - public ushort AttunementTimerRemaining => this.Struct->AttunementTimer; + public ushort AttunmentTimerRemaining => this.Struct->AttunementTimer; /// /// Gets the summon that will return after the current summon expires. @@ -47,25 +40,10 @@ public unsafe class SMNGauge : JobGaugeBase public PetGlam ReturnSummonGlam => (PetGlam)this.Struct->ReturnSummonGlam; /// - /// Gets the amount of aspected Attunement remaining. + /// Gets the amount of aspected Attunment remaining. /// - /// - /// As of 7.01, this should be treated as a bit field. - /// Use and instead. - /// public byte Attunement => this.Struct->Attunement; - /// - /// Gets the count of attunement cost resource available. - /// - public byte AttunementCount => this.Struct->AttunementCount; - - /// - /// Gets the type of attunement available. - /// Use the summon attuned accessors instead. - /// - public SummonAttunement AttunementType => (SummonAttunement)this.Struct->AttunementType; - /// /// Gets the current aether flags. /// Use the summon accessors instead. @@ -106,19 +84,19 @@ public unsafe class SMNGauge : JobGaugeBase /// Gets a value indicating whether if Ifrit is currently attuned. /// /// true or false. - public bool IsIfritAttuned => this.AttunementType == SummonAttunement.Ifrit; + public bool IsIfritAttuned => this.AetherFlags.HasFlag(AetherFlags.IfritAttuned) && !this.AetherFlags.HasFlag(AetherFlags.GarudaAttuned); /// /// Gets a value indicating whether if Titan is currently attuned. /// /// true or false. - public bool IsTitanAttuned => this.AttunementType == SummonAttunement.Titan; + public bool IsTitanAttuned => this.AetherFlags.HasFlag(AetherFlags.TitanAttuned) && !this.AetherFlags.HasFlag(AetherFlags.GarudaAttuned); /// /// Gets a value indicating whether if Garuda is currently attuned. /// /// true or false. - public bool IsGarudaAttuned => this.AttunementType == SummonAttunement.Garuda; + public bool IsGarudaAttuned => this.AetherFlags.HasFlag(AetherFlags.GarudaAttuned); /// /// Gets a value indicating whether there are any Aetherflow stacks available. diff --git a/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs index 625ecde24..3c822c7d7 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs @@ -1,5 +1,7 @@ using FFXIVClientStructs.FFXIV.Client.Game.Gauge; +using Reloaded.Memory; + using DreadCombo = Dalamud.Game.ClientState.JobGauge.Enums.DreadCombo; using SerpentCombo = Dalamud.Game.ClientState.JobGauge.Enums.SerpentCombo; @@ -22,25 +24,25 @@ public unsafe class VPRGauge : JobGaugeBase /// /// Gets how many uses of uncoiled fury the player has. /// - public byte RattlingCoilStacks => this.Struct->RattlingCoilStacks; + public byte RattlingCoilStacks => Struct->RattlingCoilStacks; /// /// Gets Serpent Offering stacks and gauge. /// - public byte SerpentOffering => this.Struct->SerpentOffering; + public byte SerpentOffering => Struct->SerpentOffering; /// /// Gets value indicating the use of 1st, 2nd, 3rd, 4th generation and Ouroboros. /// - public byte AnguineTribute => this.Struct->AnguineTribute; + public byte AnguineTribute => Struct->AnguineTribute; /// /// Gets the last Weaponskill used in DreadWinder/Pit of Dread combo. /// - public DreadCombo DreadCombo => (DreadCombo)this.Struct->DreadCombo; + public DreadCombo DreadCombo => (DreadCombo)Struct->DreadCombo; /// /// Gets current ability for Serpent's Tail. /// - public SerpentCombo SerpentCombo => (SerpentCombo)this.Struct->SerpentCombo; + public SerpentCombo SerpentCombo => (SerpentCombo)Struct->SerpentCombo; } diff --git a/Dalamud/Game/ClientState/Objects/Enums/CustomizeIndex.cs b/Dalamud/Game/ClientState/Objects/Enums/CustomizeIndex.cs index 534ee6347..299583fd3 100644 --- a/Dalamud/Game/ClientState/Objects/Enums/CustomizeIndex.cs +++ b/Dalamud/Game/ClientState/Objects/Enums/CustomizeIndex.cs @@ -42,7 +42,7 @@ public enum CustomizeIndex HairStyle = 0x06, /// - /// Whether the character has hair highlights. + /// Whether or not the character has hair highlights. /// HasHighlights = 0x07, // negative to enable, positive to disable diff --git a/Dalamud/Game/ClientState/Objects/ObjectTable.cs b/Dalamud/Game/ClientState/Objects/ObjectTable.cs index 9a2c7343e..8ea1b582f 100644 --- a/Dalamud/Game/ClientState/Objects/ObjectTable.cs +++ b/Dalamud/Game/ClientState/Objects/ObjectTable.cs @@ -5,14 +5,17 @@ using System.Runtime.CompilerServices; using Dalamud.Game.ClientState.Objects.Enums; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Game.Player; using Dalamud.IoC; using Dalamud.IoC.Internal; +using Dalamud.Logging.Internal; +using Dalamud.Plugin.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; using FFXIVClientStructs.Interop; +using Microsoft.Extensions.ObjectPool; + using CSGameObject = FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject; using CSGameObjectManager = FFXIVClientStructs.FFXIV.Client.Game.Object.GameObjectManager; @@ -28,22 +31,34 @@ namespace Dalamud.Game.ClientState.Objects; #pragma warning restore SA1015 internal sealed partial class ObjectTable : IServiceType, IObjectTable { + private static readonly ModuleLog Log = new("ObjectTable"); + private static int objectTableLength; - [ServiceManager.ServiceDependency] - private readonly PlayerState playerState = Service.Get(); - + private readonly ClientState clientState; private readonly CachedEntry[] cachedObjectTable; + private readonly ObjectPool multiThreadedEnumerators = + new DefaultObjectPoolProvider().Create(); + + private readonly Enumerator?[] frameworkThreadEnumerators = new Enumerator?[4]; + + private long nextMultithreadedUsageWarnTime; + [ServiceManager.ServiceConstructor] - private unsafe ObjectTable() + private unsafe ObjectTable(ClientState clientState) { + this.clientState = clientState; + var nativeObjectTable = CSGameObjectManager.Instance()->Objects.IndexSorted; objectTableLength = nativeObjectTable.Length; this.cachedObjectTable = new CachedEntry[objectTableLength]; for (var i = 0; i < this.cachedObjectTable.Length; i++) this.cachedObjectTable[i] = new(nativeObjectTable.GetPointer(i)); + + for (var i = 0; i < this.frameworkThreadEnumerators.Length; i++) + this.frameworkThreadEnumerators[i] = new(this, i); } /// @@ -51,7 +66,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable { get { - ThreadSafety.AssertMainThread(); + _ = this.WarnMultithreadedUsage(); return (nint)(&CSGameObjectManager.Instance()->Objects); } @@ -60,33 +75,12 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable /// public int Length => objectTableLength; - /// - public IPlayerCharacter? LocalPlayer => this[0] as IPlayerCharacter; - - /// - public IEnumerable PlayerObjects => this.GetPlayerObjects(); - - /// - public IEnumerable CharacterManagerObjects => this.GetObjectsInRange(..199); - - /// - public IEnumerable ClientObjects => this.GetObjectsInRange(200..448); - - /// - public IEnumerable EventObjects => this.GetObjectsInRange(449..488); - - /// - public IEnumerable StandObjects => this.GetObjectsInRange(489..628); - - /// - public IEnumerable ReactionEventObjects => this.GetObjectsInRange(629..728); - /// public IGameObject? this[int index] { get { - ThreadSafety.AssertMainThread(); + _ = this.WarnMultithreadedUsage(); return (index >= objectTableLength || index < 0) ? null : this.cachedObjectTable[index].Update(); } @@ -95,7 +89,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable /// public IGameObject? SearchById(ulong gameObjectId) { - ThreadSafety.AssertMainThread(); + _ = this.WarnMultithreadedUsage(); if (gameObjectId is 0) return null; @@ -112,7 +106,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable /// public IGameObject? SearchByEntityId(uint entityId) { - ThreadSafety.AssertMainThread(); + _ = this.WarnMultithreadedUsage(); if (entityId is 0 or 0xE0000000) return null; @@ -129,7 +123,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable /// public unsafe nint GetObjectAddress(int index) { - ThreadSafety.AssertMainThread(); + _ = this.WarnMultithreadedUsage(); return (index >= objectTableLength || index < 0) ? nint.Zero : (nint)this.cachedObjectTable[index].Address; } @@ -137,12 +131,12 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable /// public unsafe IGameObject? CreateObjectReference(nint address) { - ThreadSafety.AssertMainThread(); + _ = this.WarnMultithreadedUsage(); - if (address == nint.Zero) + if (this.clientState.LocalContentId == 0) return null; - if (!this.playerState.IsLoaded) + if (address == nint.Zero) return null; var obj = (CSGameObject*)address; @@ -161,26 +155,25 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable }; } - private IEnumerable GetPlayerObjects() + [Api11ToDo("Use ThreadSafety.AssertMainThread() instead of this.")] + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private bool WarnMultithreadedUsage() { - for (var index = 0; index < 200; index += 2) - { - if (this[index] is IBattleChara { ObjectKind: ObjectKind.Player } gameObject) - { - yield return gameObject; - } - } - } + if (ThreadSafety.IsMainThread) + return false; - private IEnumerable GetObjectsInRange(Range range) - { - for (var index = range.Start.Value; index <= range.End.Value; index++) + var n = Environment.TickCount64; + if (this.nextMultithreadedUsageWarnTime < n) { - if (this[index] is { } gameObject) - { - yield return gameObject; - } + this.nextMultithreadedUsageWarnTime = n + 30000; + + Log.Warning( + "{plugin} is accessing {objectTable} outside the main thread. This is deprecated.", + Service.Get().FindCallingPlugin()?.Name ?? "", + nameof(ObjectTable)); } + + return true; } /// Stores an object table entry, with preallocated concrete types. @@ -235,26 +228,60 @@ internal sealed partial class ObjectTable /// public IEnumerator GetEnumerator() { - ThreadSafety.AssertMainThread(); - return new Enumerator(this); + // If something's trying to enumerate outside the framework thread, we use the ObjectPool. + if (this.WarnMultithreadedUsage()) + { + // let's not + var e = this.multiThreadedEnumerators.Get(); + e.InitializeForPooledObjects(this); + return e; + } + + // If we're on the framework thread, see if there's an already allocated enumerator available for use. + foreach (ref var x in this.frameworkThreadEnumerators.AsSpan()) + { + if (x is not null) + { + var t = x; + x = null; + t.Reset(); + return t; + } + } + + // No reusable enumerator is available; allocate a new temporary one. + return new Enumerator(this, -1); } /// IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator(); - private struct Enumerator(ObjectTable owner) : IEnumerator + private sealed class Enumerator : IEnumerator, IResettable { + private readonly int slotId; + private ObjectTable? owner; + private int index = -1; - public IGameObject Current { get; private set; } + public Enumerator() => this.slotId = -1; + + public Enumerator(ObjectTable owner, int slotId) + { + this.owner = owner; + this.slotId = slotId; + } + + public IGameObject Current { get; private set; } = null!; object IEnumerator.Current => this.Current; public bool MoveNext() { - var cache = owner.cachedObjectTable.AsSpan(); + if (this.index == objectTableLength) + return false; - while (++this.index < objectTableLength) + var cache = this.owner!.cachedObjectTable.AsSpan(); + for (this.index++; this.index < objectTableLength; this.index++) { if (cache[this.index].Update() is { } ao) { @@ -263,17 +290,28 @@ internal sealed partial class ObjectTable } } - this.Current = default; return false; } - public void Reset() - { - this.index = -1; - } + public void InitializeForPooledObjects(ObjectTable ot) => this.owner = ot; + + public void Reset() => this.index = -1; public void Dispose() { + if (this.owner is not { } o) + return; + + if (this.slotId == -1) + o.multiThreadedEnumerators.Return(this); + else + o.frameworkThreadEnumerators[this.slotId] = this; + } + + public bool TryReset() + { + this.Reset(); + return true; } } } diff --git a/Dalamud/Game/ClientState/Objects/TargetManager.cs b/Dalamud/Game/ClientState/Objects/TargetManager.cs index 5f317d077..5d7ae8945 100644 --- a/Dalamud/Game/ClientState/Objects/TargetManager.cs +++ b/Dalamud/Game/ClientState/Objects/TargetManager.cs @@ -1,7 +1,6 @@ using Dalamud.Game.ClientState.Objects.Types; using Dalamud.IoC; using Dalamud.IoC.Internal; -using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game.Control; @@ -21,7 +20,7 @@ internal sealed unsafe class TargetManager : IServiceType, ITargetManager { [ServiceManager.ServiceDependency] private readonly ObjectTable objectTable = Service.Get(); - + [ServiceManager.ServiceConstructor] private TargetManager() { @@ -30,50 +29,50 @@ internal sealed unsafe class TargetManager : IServiceType, ITargetManager /// public IGameObject? Target { - get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->GetHardTarget()); - set => this.Struct->SetHardTarget((FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address); + get => this.objectTable.CreateObjectReference((IntPtr)Struct->Target); + set => Struct->Target = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; } /// public IGameObject? MouseOverTarget { - get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->MouseOverTarget); - set => this.Struct->MouseOverTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; + get => this.objectTable.CreateObjectReference((IntPtr)Struct->MouseOverTarget); + set => Struct->MouseOverTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; } /// public IGameObject? FocusTarget { - get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->FocusTarget); - set => this.Struct->FocusTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; + get => this.objectTable.CreateObjectReference((IntPtr)Struct->FocusTarget); + set => Struct->FocusTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; } /// public IGameObject? PreviousTarget { - get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->PreviousTarget); - set => this.Struct->PreviousTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; + get => this.objectTable.CreateObjectReference((IntPtr)Struct->PreviousTarget); + set => Struct->PreviousTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; } /// public IGameObject? SoftTarget { - get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->GetSoftTarget()); - set => this.Struct->SetSoftTarget((FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address); + get => this.objectTable.CreateObjectReference((IntPtr)Struct->SoftTarget); + set => Struct->SoftTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; } /// public IGameObject? GPoseTarget { - get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->GPoseTarget); - set => this.Struct->GPoseTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; + get => this.objectTable.CreateObjectReference((IntPtr)Struct->GPoseTarget); + set => Struct->GPoseTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; } - + /// public IGameObject? MouseOverNameplateTarget { - get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->MouseOverNameplateTarget); - set => this.Struct->MouseOverNameplateTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; + get => this.objectTable.CreateObjectReference((IntPtr)Struct->MouseOverNameplateTarget); + set => Struct->MouseOverNameplateTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; } private TargetSystem* Struct => TargetSystem.Instance(); diff --git a/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs b/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs index 37f1f5504..efd8b5b3b 100644 --- a/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs +++ b/Dalamud/Game/ClientState/Objects/Types/BattleChara.cs @@ -1,4 +1,5 @@ using Dalamud.Game.ClientState.Statuses; +using Dalamud.Utility; namespace Dalamud.Game.ClientState.Objects.Types; @@ -76,10 +77,10 @@ internal unsafe class BattleChara : Character, IBattleChara public StatusList StatusList => new(this.Struct->GetStatusManager()); /// - public bool IsCasting => this.Struct->GetCastInfo()->IsCasting; + public bool IsCasting => this.Struct->GetCastInfo()->IsCasting > 0; /// - public bool IsCastInterruptible => this.Struct->GetCastInfo()->Interruptible; + public bool IsCastInterruptible => this.Struct->GetCastInfo()->Interruptible > 0; /// public byte CastActionType => (byte)this.Struct->GetCastInfo()->ActionType; diff --git a/Dalamud/Game/ClientState/Objects/Types/Character.cs b/Dalamud/Game/ClientState/Objects/Types/Character.cs index f122f1f27..a91ecc230 100644 --- a/Dalamud/Game/ClientState/Objects/Types/Character.cs +++ b/Dalamud/Game/ClientState/Objects/Types/Character.cs @@ -1,8 +1,9 @@ +using System.Runtime.CompilerServices; + using Dalamud.Data; -using Dalamud.Game.ClientState.Customize; using Dalamud.Game.ClientState.Objects.Enums; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Utility; +using Dalamud.Memory; using Lumina.Excel; using Lumina.Excel.Sheets; @@ -15,73 +16,68 @@ namespace Dalamud.Game.ClientState.Objects.Types; public interface ICharacter : IGameObject { /// - /// Gets the current HP of this character. + /// Gets the current HP of this Chara. /// public uint CurrentHp { get; } /// - /// Gets the maximum HP of this character. + /// Gets the maximum HP of this Chara. /// public uint MaxHp { get; } /// - /// Gets the current MP of this character. + /// Gets the current MP of this Chara. /// public uint CurrentMp { get; } /// - /// Gets the maximum MP of this character. + /// Gets the maximum MP of this Chara. /// public uint MaxMp { get; } /// - /// Gets the current GP of this character. + /// Gets the current GP of this Chara. /// public uint CurrentGp { get; } /// - /// Gets the maximum GP of this character. + /// Gets the maximum GP of this Chara. /// public uint MaxGp { get; } /// - /// Gets the current CP of this character. + /// Gets the current CP of this Chara. /// public uint CurrentCp { get; } /// - /// Gets the maximum CP of this character. + /// Gets the maximum CP of this Chara. /// public uint MaxCp { get; } /// - /// Gets the shield percentage of this character. + /// Gets the shield percentage of this Chara. /// public byte ShieldPercentage { get; } /// - /// Gets the ClassJob of this character. + /// Gets the ClassJob of this Chara. /// public RowRef ClassJob { get; } /// - /// Gets the level of this character. + /// Gets the level of this Chara. /// public byte Level { get; } /// - /// Gets a byte array describing the visual appearance of this character. + /// Gets a byte array describing the visual appearance of this Chara. /// Indexed by . /// public byte[] Customize { get; } /// - /// Gets the underlying CustomizeData struct for this character. - /// - public ICustomizeData CustomizeData { get; } - - /// - /// Gets the Free Company tag of this character. + /// Gets the Free Company tag of this chara. /// public SeString CompanyTag { get; } @@ -99,12 +95,12 @@ public interface ICharacter : IGameObject /// Gets the status flags. /// public StatusFlags StatusFlags { get; } - + /// /// Gets the current mount for this character. Will be null if the character doesn't have a mount. /// public RowRef? CurrentMount { get; } - + /// /// Gets the current minion summoned for this character. Will be null if the character doesn't have a minion. /// This method *will* return information about a spawned (but invisible) minion, e.g. if the character is riding a @@ -123,7 +119,7 @@ internal unsafe class Character : GameObject, ICharacter /// This represents a non-static entity. /// /// The address of this character in memory. - internal Character(nint address) + internal Character(IntPtr address) : base(address) { } @@ -162,12 +158,8 @@ internal unsafe class Character : GameObject, ICharacter public byte Level => this.Struct->CharacterData.Level; /// - [Api15ToDo("Do not allocate on each call, use the CS Span and let consumers do allocation if necessary")] public byte[] Customize => this.Struct->DrawData.CustomizeData.Data.ToArray(); - /// - public ICustomizeData CustomizeData => new CustomizeData((nint)(&this.Struct->DrawData.CustomizeData)); - /// public SeString CompanyTag => SeString.Parse(this.Struct->FreeCompanyTag); @@ -194,14 +186,14 @@ internal unsafe class Character : GameObject, ICharacter (this.Struct->IsAllianceMember ? StatusFlags.AllianceMember : StatusFlags.None) | (this.Struct->IsFriend ? StatusFlags.Friend : StatusFlags.None) | (this.Struct->IsCasting ? StatusFlags.IsCasting : StatusFlags.None); - + /// public RowRef? CurrentMount { get { if (this.Struct->IsNotMounted()) return null; // just for safety. - + var mountId = this.Struct->Mount.MountId; return mountId == 0 ? null : LuminaUtils.CreateRef(mountId); } @@ -212,7 +204,7 @@ internal unsafe class Character : GameObject, ICharacter { get { - if (this.Struct->CompanionObject != null) + if (this.Struct->CompanionObject != null) return LuminaUtils.CreateRef(this.Struct->CompanionObject->BaseId); // this is only present if a minion is summoned but hidden (e.g. the player's on a mount). diff --git a/Dalamud/Game/ClientState/Objects/Types/GameObject.cs b/Dalamud/Game/ClientState/Objects/Types/GameObject.cs index 4b331a479..4209100f0 100644 --- a/Dalamud/Game/ClientState/Objects/Types/GameObject.cs +++ b/Dalamud/Game/ClientState/Objects/Types/GameObject.cs @@ -1,8 +1,9 @@ using System.Numerics; +using System.Runtime.CompilerServices; using Dalamud.Game.ClientState.Objects.Enums; -using Dalamud.Game.Player; using Dalamud.Game.Text.SeStringHandling; +using Dalamud.Memory; namespace Dalamud.Game.ClientState.Objects.Types; @@ -34,14 +35,8 @@ public interface IGameObject : IEquatable /// /// Gets the data ID for linking to other respective game data. /// - [Obsolete("Renamed to BaseId")] public uint DataId { get; } - /// - /// Gets the base ID for linking to other respective game data. - /// - public uint BaseId { get; } - /// /// Gets the ID of this GameObject's owner. /// @@ -169,11 +164,15 @@ internal partial class GameObject /// True or false. public static bool IsValid(IGameObject? actor) { - if (actor == null) + var clientState = Service.GetNullable(); + + if (actor is null || clientState == null) return false; - var playerState = Service.Get(); - return playerState.IsLoaded == true; + if (clientState.LocalContentId == 0) + return false; + + return true; } /// @@ -209,9 +208,6 @@ internal unsafe partial class GameObject : IGameObject /// public uint DataId => this.Struct->BaseId; - /// - public uint BaseId => this.Struct->BaseId; - /// public uint OwnerId => this.Struct->OwnerId; diff --git a/Dalamud/Game/ClientState/Party/PartyList.cs b/Dalamud/Game/ClientState/Party/PartyList.cs index 0326350d2..a016a8211 100644 --- a/Dalamud/Game/ClientState/Party/PartyList.cs +++ b/Dalamud/Game/ClientState/Party/PartyList.cs @@ -3,13 +3,11 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Dalamud.Game.Player; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; using CSGroupManager = FFXIVClientStructs.FFXIV.Client.Game.Group.GroupManager; -using CSPartyMember = FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember; namespace Dalamud.Game.ClientState.Party; @@ -27,7 +25,7 @@ internal sealed unsafe partial class PartyList : IServiceType, IPartyList private const int AllianceLength = 20; [ServiceManager.ServiceDependency] - private readonly PlayerState playerState = Service.Get(); + private readonly ClientState clientState = Service.Get(); [ServiceManager.ServiceConstructor] private PartyList() @@ -44,20 +42,20 @@ internal sealed unsafe partial class PartyList : IServiceType, IPartyList public bool IsAlliance => this.GroupManagerStruct->MainGroup.AllianceFlags > 0; /// - public unsafe nint GroupManagerAddress => (nint)CSGroupManager.Instance(); + public unsafe IntPtr GroupManagerAddress => (nint)CSGroupManager.Instance(); /// - public nint GroupListAddress => (nint)Unsafe.AsPointer(ref this.GroupManagerStruct->MainGroup.PartyMembers[0]); + public IntPtr GroupListAddress => (IntPtr)Unsafe.AsPointer(ref GroupManagerStruct->MainGroup.PartyMembers[0]); /// - public nint AllianceListAddress => (nint)Unsafe.AsPointer(ref this.GroupManagerStruct->MainGroup.AllianceMembers[0]); + public IntPtr AllianceListAddress => (IntPtr)Unsafe.AsPointer(ref this.GroupManagerStruct->MainGroup.AllianceMembers[0]); /// public long PartyId => this.GroupManagerStruct->MainGroup.PartyId; - private static int PartyMemberSize { get; } = Marshal.SizeOf(); + private static int PartyMemberSize { get; } = Marshal.SizeOf(); - private CSGroupManager* GroupManagerStruct => (CSGroupManager*)this.GroupManagerAddress; + private FFXIVClientStructs.FFXIV.Client.Game.Group.GroupManager* GroupManagerStruct => (FFXIVClientStructs.FFXIV.Client.Game.Group.GroupManager*)this.GroupManagerAddress; /// public IPartyMember? this[int index] @@ -82,45 +80,45 @@ internal sealed unsafe partial class PartyList : IServiceType, IPartyList } /// - public nint GetPartyMemberAddress(int index) + public IntPtr GetPartyMemberAddress(int index) { if (index < 0 || index >= GroupLength) - return 0; + return IntPtr.Zero; return this.GroupListAddress + (index * PartyMemberSize); } /// - public IPartyMember? CreatePartyMemberReference(nint address) + public IPartyMember? CreatePartyMemberReference(IntPtr address) { - if (this.playerState.ContentId == 0) + if (this.clientState.LocalContentId == 0) return null; - if (address == 0) + if (address == IntPtr.Zero) return null; - return new PartyMember((CSPartyMember*)address); + return new PartyMember(address); } /// - public nint GetAllianceMemberAddress(int index) + public IntPtr GetAllianceMemberAddress(int index) { if (index < 0 || index >= AllianceLength) - return 0; + return IntPtr.Zero; return this.AllianceListAddress + (index * PartyMemberSize); } /// - public IPartyMember? CreateAllianceMemberReference(nint address) + public IPartyMember? CreateAllianceMemberReference(IntPtr address) { - if (this.playerState.ContentId == 0) + if (this.clientState.LocalContentId == 0) return null; - if (address == 0) + if (address == IntPtr.Zero) return null; - return new PartyMember((CSPartyMember*)address); + return new PartyMember(address); } } @@ -135,43 +133,18 @@ internal sealed partial class PartyList /// public IEnumerator GetEnumerator() { - return new Enumerator(this); + // Normally using Length results in a recursion crash, however we know the party size via ptr. + for (var i = 0; i < this.Length; i++) + { + var member = this[i]; + + if (member == null) + break; + + yield return member; + } } /// IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator(); - - private struct Enumerator(PartyList partyList) : IEnumerator - { - private int index = -1; - - public IPartyMember Current { get; private set; } - - object IEnumerator.Current => this.Current; - - public bool MoveNext() - { - while (++this.index < partyList.Length) - { - var partyMember = partyList[this.index]; - if (partyMember != null) - { - this.Current = partyMember; - return true; - } - } - - this.Current = default; - return false; - } - - public void Reset() - { - this.index = -1; - } - - public void Dispose() - { - } - } } diff --git a/Dalamud/Game/ClientState/Party/PartyMember.cs b/Dalamud/Game/ClientState/Party/PartyMember.cs index 843824318..cf620a7ef 100644 --- a/Dalamud/Game/ClientState/Party/PartyMember.cs +++ b/Dalamud/Game/ClientState/Party/PartyMember.cs @@ -1,29 +1,26 @@ -using System.Diagnostics.CodeAnalysis; using System.Numerics; +using System.Runtime.CompilerServices; using Dalamud.Data; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.ClientState.Statuses; using Dalamud.Game.Text.SeStringHandling; - -using Dalamud.Utility; +using Dalamud.Memory; using Lumina.Excel; -using CSPartyMember = FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember; - namespace Dalamud.Game.ClientState.Party; /// /// Interface representing a party member. /// -public interface IPartyMember : IEquatable +public interface IPartyMember { /// /// Gets the address of this party member in memory. /// - nint Address { get; } + IntPtr Address { get; } /// /// Gets a list of buffs or debuffs applied to this party member. @@ -43,14 +40,8 @@ public interface IPartyMember : IEquatable /// /// Gets the actor ID of this party member. /// - [Obsolete("Renamed to EntityId")] uint ObjectId { get; } - /// - /// Gets the entity ID of this party member. - /// - uint EntityId { get; } - /// /// Gets the actor associated with this buddy. /// @@ -111,82 +102,101 @@ public interface IPartyMember : IEquatable } /// -/// This struct represents a party member in the group manager. +/// This class represents a party member in the group manager. /// -/// A pointer to the PartyMember. -internal unsafe readonly struct PartyMember(CSPartyMember* ptr) : IPartyMember +internal unsafe class PartyMember : IPartyMember { - /// - public nint Address => (nint)ptr; - - /// - public StatusList Statuses => new(&ptr->StatusManager); - - /// - public Vector3 Position => ptr->Position; - - /// - [Api15ToDo("Change type to ulong.")] - public long ContentId => (long)ptr->ContentId; - - /// - public uint ObjectId => ptr->EntityId; - - /// - public uint EntityId => ptr->EntityId; - - /// - public IGameObject? GameObject => Service.Get().SearchById(this.EntityId); - - /// - public uint CurrentHP => ptr->CurrentHP; - - /// - public uint MaxHP => ptr->MaxHP; - - /// - public ushort CurrentMP => ptr->CurrentMP; - - /// - public ushort MaxMP => ptr->MaxMP; - - /// - public RowRef Territory => LuminaUtils.CreateRef(ptr->TerritoryType); - - /// - public RowRef World => LuminaUtils.CreateRef(ptr->HomeWorld); - - /// - public SeString Name => SeString.Parse(ptr->Name); - - /// - public byte Sex => ptr->Sex; - - /// - public RowRef ClassJob => LuminaUtils.CreateRef(ptr->ClassJob); - - /// - public byte Level => ptr->Level; - - public static bool operator ==(PartyMember x, PartyMember y) => x.Equals(y); - - public static bool operator !=(PartyMember x, PartyMember y) => !(x == y); - - /// - public bool Equals(IPartyMember? other) + /// + /// Initializes a new instance of the class. + /// + /// Address of the party member. + internal PartyMember(IntPtr address) { - return this.EntityId == other.EntityId; + this.Address = address; } - /// - public override bool Equals([NotNullWhen(true)] object? obj) - { - return obj is PartyMember fate && this.Equals(fate); - } + /// + /// Gets the address of this party member in memory. + /// + public IntPtr Address { get; } - /// - public override int GetHashCode() - { - return this.EntityId.GetHashCode(); - } + /// + /// Gets a list of buffs or debuffs applied to this party member. + /// + public StatusList Statuses => new(&this.Struct->StatusManager); + + /// + /// Gets the position of the party member. + /// + public Vector3 Position => new(this.Struct->X, this.Struct->Y, this.Struct->Z); + + /// + /// Gets the content ID of the party member. + /// + public long ContentId => (long)this.Struct->ContentId; + + /// + /// Gets the actor ID of this party member. + /// + public uint ObjectId => this.Struct->EntityId; + + /// + /// Gets the actor associated with this buddy. + /// + /// + /// This iterates the actor table, it should be used with care. + /// + public IGameObject? GameObject => Service.Get().SearchById(this.ObjectId); + + /// + /// Gets the current HP of this party member. + /// + public uint CurrentHP => this.Struct->CurrentHP; + + /// + /// Gets the maximum HP of this party member. + /// + public uint MaxHP => this.Struct->MaxHP; + + /// + /// Gets the current MP of this party member. + /// + public ushort CurrentMP => this.Struct->CurrentMP; + + /// + /// Gets the maximum MP of this party member. + /// + public ushort MaxMP => this.Struct->MaxMP; + + /// + /// Gets the territory this party member is located in. + /// + public RowRef Territory => LuminaUtils.CreateRef(this.Struct->TerritoryType); + + /// + /// Gets the World this party member resides in. + /// + public RowRef World => LuminaUtils.CreateRef(this.Struct->HomeWorld); + + /// + /// Gets the displayname of this party member. + /// + public SeString Name => SeString.Parse(this.Struct->Name); + + /// + /// Gets the sex of this party member. + /// + public byte Sex => this.Struct->Sex; + + /// + /// Gets the classjob of this party member. + /// + public RowRef ClassJob => LuminaUtils.CreateRef(this.Struct->ClassJob); + + /// + /// Gets the level of this party member. + /// + public byte Level => this.Struct->Level; + + private FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember*)this.Address; } diff --git a/Dalamud/Game/ClientState/Statuses/Status.cs b/Dalamud/Game/ClientState/Statuses/Status.cs index 160b15de5..f09d13fb3 100644 --- a/Dalamud/Game/ClientState/Statuses/Status.cs +++ b/Dalamud/Game/ClientState/Statuses/Status.cs @@ -1,49 +1,59 @@ -using System.Diagnostics.CodeAnalysis; - using Dalamud.Data; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Lumina.Excel; -using CSStatus = FFXIVClientStructs.FFXIV.Client.Game.Status; - namespace Dalamud.Game.ClientState.Statuses; /// -/// Interface representing a status. +/// This class represents a status effect an actor is afflicted by. /// -public interface IStatus : IEquatable +public unsafe class Status { + /// + /// Initializes a new instance of the class. + /// + /// Status address. + internal Status(IntPtr address) + { + this.Address = address; + } + /// /// Gets the address of the status in memory. /// - nint Address { get; } + public IntPtr Address { get; } /// /// Gets the status ID of this status. /// - uint StatusId { get; } + public uint StatusId => this.Struct->StatusId; /// /// Gets the GameData associated with this status. /// - RowRef GameData { get; } + public RowRef GameData => LuminaUtils.CreateRef(this.Struct->StatusId); /// /// Gets the parameter value of the status. /// - ushort Param { get; } + public ushort Param => this.Struct->Param; + + /// + /// Gets the stack count of this status. + /// + public byte StackCount => this.Struct->StackCount; /// /// Gets the time remaining of this status. /// - float RemainingTime { get; } + public float RemainingTime => this.Struct->RemainingTime; /// /// Gets the source ID of this status. /// - uint SourceId { get; } + public uint SourceId => this.Struct->SourceId; /// /// Gets the source actor associated with this status. @@ -51,55 +61,7 @@ public interface IStatus : IEquatable /// /// This iterates the actor table, it should be used with care. /// - IGameObject? SourceObject { get; } -} - -/// -/// This struct represents a status effect an actor is afflicted by. -/// -/// A pointer to the Status. -internal unsafe readonly struct Status(CSStatus* ptr) : IStatus -{ - /// - public nint Address => (nint)ptr; - - /// - public uint StatusId => ptr->StatusId; - - /// - public RowRef GameData => LuminaUtils.CreateRef(ptr->StatusId); - - /// - public ushort Param => ptr->Param; - - /// - public float RemainingTime => ptr->RemainingTime; - - /// - public uint SourceId => ptr->SourceObject.ObjectId; - - /// public IGameObject? SourceObject => Service.Get().SearchById(this.SourceId); - public static bool operator ==(Status x, Status y) => x.Equals(y); - - public static bool operator !=(Status x, Status y) => !(x == y); - - /// - public bool Equals(IStatus? other) - { - return this.StatusId == other.StatusId && this.SourceId == other.SourceId && this.Param == other.Param && this.RemainingTime == other.RemainingTime; - } - - /// - public override bool Equals([NotNullWhen(true)] object? obj) - { - return obj is Status fate && this.Equals(fate); - } - - /// - public override int GetHashCode() - { - return HashCode.Combine(this.StatusId, this.SourceId, this.Param, this.RemainingTime); - } + private FFXIVClientStructs.FFXIV.Client.Game.Status* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Status*)this.Address; } diff --git a/Dalamud/Game/ClientState/Statuses/StatusList.cs b/Dalamud/Game/ClientState/Statuses/StatusList.cs index 2e8024ab8..a38e45ea3 100644 --- a/Dalamud/Game/ClientState/Statuses/StatusList.cs +++ b/Dalamud/Game/ClientState/Statuses/StatusList.cs @@ -3,8 +3,6 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using CSStatus = FFXIVClientStructs.FFXIV.Client.Game.Status; - namespace Dalamud.Game.ClientState.Statuses; /// @@ -16,7 +14,7 @@ public sealed unsafe partial class StatusList /// Initializes a new instance of the class. /// /// Address of the status list. - internal StatusList(nint address) + internal StatusList(IntPtr address) { this.Address = address; } @@ -26,19 +24,19 @@ public sealed unsafe partial class StatusList /// /// Pointer to the status list. internal unsafe StatusList(void* pointer) - : this((nint)pointer) + : this((IntPtr)pointer) { } /// /// Gets the address of the status list in memory. /// - public nint Address { get; } + public IntPtr Address { get; } /// /// Gets the amount of status effect slots the actor has. /// - public int Length => this.Struct->NumValidStatuses; + public int Length => Struct->NumValidStatuses; private static int StatusSize { get; } = Marshal.SizeOf(); @@ -49,7 +47,7 @@ public sealed unsafe partial class StatusList /// /// Status Index. /// The status at the specified index. - public IStatus? this[int index] + public Status? this[int index] { get { @@ -66,11 +64,8 @@ public sealed unsafe partial class StatusList /// /// The address of the status list in memory. /// The status object containing the requested data. - public static StatusList? CreateStatusListReference(nint address) + public static StatusList? CreateStatusListReference(IntPtr address) { - if (address == IntPtr.Zero) - return null; - // The use case for CreateStatusListReference and CreateStatusReference to be static is so // fake status lists can be generated. Since they aren't exposed as services, it's either // here or somewhere else. @@ -79,7 +74,7 @@ public sealed unsafe partial class StatusList if (clientState.LocalContentId == 0) return null; - if (address == 0) + if (address == IntPtr.Zero) return null; return new StatusList(address); @@ -90,15 +85,17 @@ public sealed unsafe partial class StatusList /// /// The address of the status effect in memory. /// The status object containing the requested data. - public static IStatus? CreateStatusReference(nint address) + public static Status? CreateStatusReference(IntPtr address) { + var clientState = Service.Get(); + + if (clientState.LocalContentId == 0) + return null; + if (address == IntPtr.Zero) return null; - if (address == 0) - return null; - - return new Status((CSStatus*)address); + return new Status(address); } /// @@ -106,22 +103,22 @@ public sealed unsafe partial class StatusList /// /// The index of the status. /// The memory address of the status. - public nint GetStatusAddress(int index) + public IntPtr GetStatusAddress(int index) { if (index < 0 || index >= this.Length) - return 0; + return IntPtr.Zero; - return (nint)Unsafe.AsPointer(ref this.Struct->Status[index]); + return (IntPtr)Unsafe.AsPointer(ref this.Struct->Status[index]); } } /// /// This collection represents the status effects an actor is afflicted by. /// -public sealed partial class StatusList : IReadOnlyCollection, ICollection +public sealed partial class StatusList : IReadOnlyCollection, ICollection { /// - int IReadOnlyCollection.Count => this.Length; + int IReadOnlyCollection.Count => this.Length; /// int ICollection.Count => this.Length; @@ -133,9 +130,17 @@ public sealed partial class StatusList : IReadOnlyCollection, ICollecti object ICollection.SyncRoot => this; /// - public IEnumerator GetEnumerator() + public IEnumerator GetEnumerator() { - return new Enumerator(this); + for (var i = 0; i < this.Length; i++) + { + var status = this[i]; + + if (status == null || status.StatusId == 0) + continue; + + yield return status; + } } /// @@ -150,38 +155,4 @@ public sealed partial class StatusList : IReadOnlyCollection, ICollecti index++; } } - - private struct Enumerator(StatusList statusList) : IEnumerator - { - private int index = -1; - - public IStatus Current { get; private set; } - - object IEnumerator.Current => this.Current; - - public bool MoveNext() - { - while (++this.index < statusList.Length) - { - var status = statusList[this.index]; - if (status != null && status.StatusId != 0) - { - this.Current = status; - return true; - } - } - - this.Current = default; - return false; - } - - public void Reset() - { - this.index = -1; - } - - public void Dispose() - { - } - } } diff --git a/Dalamud/Game/ClientState/Structs/StatusEffect.cs b/Dalamud/Game/ClientState/Structs/StatusEffect.cs new file mode 100644 index 000000000..2a60a7d3b --- /dev/null +++ b/Dalamud/Game/ClientState/Structs/StatusEffect.cs @@ -0,0 +1,35 @@ +using System.Runtime.InteropServices; + +namespace Dalamud.Game.ClientState.Structs; + +/// +/// Native memory representation of a FFXIV status effect. +/// +[StructLayout(LayoutKind.Sequential)] +public struct StatusEffect +{ + /// + /// The effect ID. + /// + public short EffectId; + + /// + /// How many stacks are present. + /// + public byte StackCount; + + /// + /// Additional parameters. + /// + public byte Param; + + /// + /// The duration remaining. + /// + public float Duration; + + /// + /// The ID of the actor that caused this effect. + /// + public int OwnerId; +} diff --git a/Dalamud/Game/ClientState/ZoneInit.cs b/Dalamud/Game/ClientState/ZoneInit.cs deleted file mode 100644 index 7eb4576aa..000000000 --- a/Dalamud/Game/ClientState/ZoneInit.cs +++ /dev/null @@ -1,90 +0,0 @@ -using System.Linq; -using System.Text; - -using Dalamud.Data; - -using Lumina.Excel.Sheets; - -namespace Dalamud.Game.ClientState; - -/// -/// Provides event data for when the game should initialize a zone. -/// -public class ZoneInitEventArgs : EventArgs -{ - /// - /// Gets the territory type of the zone being entered. - /// - public TerritoryType TerritoryType { get; private set; } - - /// - /// Gets the instance number of the zone, used when multiple copies of an area are active. - /// - public ushort Instance { get; private set; } - - /// - /// Gets the associated content finder condition for the zone, if any. - /// - public ContentFinderCondition ContentFinderCondition { get; private set; } - - /// - /// Gets the current weather in the zone upon entry. - /// - public Weather Weather { get; private set; } - - /// - /// Gets the set of active festivals in the zone. - /// - public Festival[] ActiveFestivals { get; private set; } = []; - - /// - /// Gets the phases corresponding to the active festivals. - /// - public ushort[] ActiveFestivalPhases { get; private set; } = []; - - /// - /// Reads raw zone initialization data from a network packet and constructs the event arguments. - /// - /// A pointer to the raw packet data. - /// A populated from the packet. - public static unsafe ZoneInitEventArgs Read(nint packet) - { - var dataManager = Service.Get(); - var eventArgs = new ZoneInitEventArgs(); - - var flags = *(byte*)(packet + 0x12); - - eventArgs.TerritoryType = dataManager.GetExcelSheet().GetRow(*(ushort*)(packet + 0x02)); - eventArgs.Instance = flags >= 0 ? (ushort)0 : *(ushort*)(packet + 0x04); - eventArgs.ContentFinderCondition = dataManager.GetExcelSheet().GetRow(*(ushort*)(packet + 0x06)); - eventArgs.Weather = dataManager.GetExcelSheet().GetRow(*(byte*)(packet + 0x10)); - - const int NumFestivals = 8; - eventArgs.ActiveFestivals = new Festival[NumFestivals]; - eventArgs.ActiveFestivalPhases = new ushort[NumFestivals]; - - // There are also 4 festival ids and phases for PlayerState at +0x3E and +0x46 respectively, - // but it's unclear why they exist as separate entries and why they would be different. - for (var i = 0; i < NumFestivals; i++) - { - eventArgs.ActiveFestivals[i] = dataManager.GetExcelSheet().GetRow(*(ushort*)(packet + 0x26 + (i * 2))); - eventArgs.ActiveFestivalPhases[i] = *(ushort*)(packet + 0x36 + (i * 2)); - } - - return eventArgs; - } - - /// - public override string ToString() - { - var sb = new StringBuilder("ZoneInitEventArgs { "); - sb.Append($"TerritoryTypeId = {this.TerritoryType.RowId}, "); - sb.Append($"Instance = {this.Instance}, "); - sb.Append($"ContentFinderCondition = {this.ContentFinderCondition.RowId}, "); - sb.Append($"Weather = {this.Weather.RowId}, "); - sb.Append($"ActiveFestivals = [{string.Join(", ", this.ActiveFestivals.Select(f => f.RowId))}], "); - sb.Append($"ActiveFestivalPhases = [{string.Join(", ", this.ActiveFestivalPhases)}]"); - sb.Append(" }"); - return sb.ToString(); - } -} diff --git a/Dalamud/Game/Command/CommandInfo.cs b/Dalamud/Game/Command/CommandInfo.cs index 16462a831..8aed817d0 100644 --- a/Dalamud/Game/Command/CommandInfo.cs +++ b/Dalamud/Game/Command/CommandInfo.cs @@ -11,7 +11,7 @@ public interface IReadOnlyCommandInfo /// The command itself. /// The arguments supplied to the command, ready for parsing. public delegate void HandlerDelegate(string command, string arguments); - + /// /// Gets a which will be called when the command is dispatched. /// @@ -26,11 +26,6 @@ public interface IReadOnlyCommandInfo /// Gets a value indicating whether if this command should be shown in the help output. ///
bool ShowInHelp { get; } - - /// - /// Gets the display order of this command. Defaults to alphabetical ordering. - /// - int DisplayOrder { get; } } /// @@ -56,7 +51,4 @@ public sealed class CommandInfo : IReadOnlyCommandInfo /// public bool ShowInHelp { get; set; } = true; - - /// - public int DisplayOrder { get; set; } = -1; } diff --git a/Dalamud/Game/Command/CommandManager.cs b/Dalamud/Game/Command/CommandManager.cs index e9abb7336..078ce8c50 100644 --- a/Dalamud/Game/Command/CommandManager.cs +++ b/Dalamud/Game/Command/CommandManager.cs @@ -10,7 +10,6 @@ using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; -using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Client.UI; @@ -24,7 +23,7 @@ namespace Dalamud.Game.Command; [ServiceManager.EarlyLoadedService] internal sealed unsafe class CommandManager : IInternalDisposableService, ICommandManager { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("Command"); private readonly ConcurrentDictionary commandMap = new(); private readonly ConcurrentDictionary<(string, IReadOnlyCommandInfo), string> commandAssemblyNameMap = new(); @@ -45,16 +44,6 @@ internal sealed unsafe class CommandManager : IInternalDisposableService, IComma this.console.Invoke += this.ConsoleOnInvoke; } - /// - /// Published whenever a command is registered - /// - public event EventHandler? CommandAdded; - - /// - /// Published whenever a command is unregistered - /// - public event EventHandler? CommandRemoved; - /// public ReadOnlyDictionary Commands => new(this.commandMap); @@ -71,7 +60,7 @@ internal sealed unsafe class CommandManager : IInternalDisposableService, IComma if (separatorPosition + 1 >= content.Length) { // Remove the trailing space - command = content[..separatorPosition]; + command = content.Substring(0, separatorPosition); } else { @@ -132,12 +121,6 @@ internal sealed unsafe class CommandManager : IInternalDisposableService, IComma return false; } - this.CommandAdded?.InvokeSafely(this, new CommandEventArgs - { - Command = command, - CommandInfo = info, - }); - if (!this.commandAssemblyNameMap.TryAdd((command, info), loaderAssemblyName)) { this.commandMap.Remove(command, out _); @@ -160,34 +143,13 @@ internal sealed unsafe class CommandManager : IInternalDisposableService, IComma return false; } - this.CommandAdded?.InvokeSafely(this, new CommandEventArgs - { - Command = command, - CommandInfo = info, - }); - return true; } /// public bool RemoveHandler(string command) { - if (this.commandAssemblyNameMap.FindFirst(c => c.Key.Item1 == command, out var assemblyKeyValuePair)) - { - this.commandAssemblyNameMap.TryRemove(assemblyKeyValuePair.Key, out _); - } - - var removed = this.commandMap.Remove(command, out var info); - if (removed) - { - this.CommandRemoved?.InvokeSafely(this, new CommandEventArgs - { - Command = command, - CommandInfo = info, - }); - } - - return removed; + return this.commandMap.Remove(command, out _); } /// @@ -236,20 +198,6 @@ internal sealed unsafe class CommandManager : IInternalDisposableService, IComma return this.ProcessCommand(command->ToString()) ? 0 : result; } - - /// - public class CommandEventArgs : EventArgs - { - /// - /// Gets the command string. - /// - public string Command { get; init; } - - /// - /// Gets the command info. - /// - public IReadOnlyCommandInfo CommandInfo { get; init; } - } } /// @@ -262,12 +210,12 @@ internal sealed unsafe class CommandManager : IInternalDisposableService, IComma #pragma warning restore SA1015 internal class CommandManagerPluginScoped : IInternalDisposableService, ICommandManager { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("Command"); [ServiceManager.ServiceDependency] private readonly CommandManager commandManagerService = Service.Get(); - private readonly List pluginRegisteredCommands = []; + private readonly List pluginRegisteredCommands = new(); private readonly LocalPlugin pluginInfo; /// @@ -314,7 +262,7 @@ internal class CommandManagerPluginScoped : IInternalDisposableService, ICommand } else { - Log.Error("Command {Command} is already registered.", command); + Log.Error($"Command {command} is already registered."); } return false; @@ -333,7 +281,7 @@ internal class CommandManagerPluginScoped : IInternalDisposableService, ICommand } else { - Log.Error("Command {Command} not found.", command); + Log.Error($"Command {command} not found."); } return false; diff --git a/Dalamud/Game/Config/GameConfig.cs b/Dalamud/Game/Config/GameConfig.cs index a55056351..9579d84bc 100644 --- a/Dalamud/Game/Config/GameConfig.cs +++ b/Dalamud/Game/Config/GameConfig.cs @@ -1,13 +1,11 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Common.Configuration; - using Serilog; namespace Dalamud.Game.Config; diff --git a/Dalamud/Game/Config/GameConfigAddressResolver.cs b/Dalamud/Game/Config/GameConfigAddressResolver.cs index e03f4f40b..2491c4033 100644 --- a/Dalamud/Game/Config/GameConfigAddressResolver.cs +++ b/Dalamud/Game/Config/GameConfigAddressResolver.cs @@ -1,6 +1,4 @@ -using Dalamud.Plugin.Services; - -namespace Dalamud.Game.Config; +namespace Dalamud.Game.Config; /// /// Game config system address resolver. diff --git a/Dalamud/Game/Config/GameConfigSection.cs b/Dalamud/Game/Config/GameConfigSection.cs index eb2f1107e..9cd239d84 100644 --- a/Dalamud/Game/Config/GameConfigSection.cs +++ b/Dalamud/Game/Config/GameConfigSection.cs @@ -1,12 +1,10 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.Diagnostics; using System.Text; using Dalamud.Memory; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Common.Configuration; - using Serilog; namespace Dalamud.Game.Config; @@ -54,7 +52,7 @@ public class GameConfigSection /// /// Event which is fired when a game config option is changed within the section. /// - internal event EventHandler? Changed; + internal event EventHandler? Changed; /// /// Gets the number of config entries contained within the section. @@ -528,8 +526,8 @@ public class GameConfigSection { if (!this.enumMap.TryGetValue(entry->Index, out var enumObject)) { - if (entry->Name.Value == null) return null; - var name = entry->Name.ToString(); + if (entry->Name == null) return null; + var name = MemoryHelper.ReadStringNullTerminated(new IntPtr(entry->Name)); if (Enum.TryParse(typeof(TEnum), name, out enumObject)) { this.enumMap.TryAdd(entry->Index, enumObject); @@ -546,7 +544,7 @@ public class GameConfigSection this.Changed?.InvokeSafely(this, eventArgs); return eventArgs; } - + private unsafe bool TryGetIndex(string name, out uint index) { if (this.indexMap.TryGetValue(name, out index)) @@ -558,12 +556,12 @@ public class GameConfigSection var e = configBase->ConfigEntry; for (var i = 0U; i < configBase->ConfigCount; i++, e++) { - if (e->Name.Value == null) + if (e->Name == null) { continue; } - var eName = e->Name.ToString(); + var eName = MemoryHelper.ReadStringNullTerminated(new IntPtr(e->Name)); if (eName.Equals(name)) { this.indexMap.TryAdd(name, i); diff --git a/Dalamud/Game/Config/SystemConfigOption.cs b/Dalamud/Game/Config/SystemConfigOption.cs index dcfe16751..f7e3bd3f8 100644 --- a/Dalamud/Game/Config/SystemConfigOption.cs +++ b/Dalamud/Game/Config/SystemConfigOption.cs @@ -597,20 +597,6 @@ public enum SystemConfigOption [GameConfigOption("EnablePsFunction", ConfigType.UInt)] EnablePsFunction, - /// - /// System option with the internal name ActiveInstanceGuid. - /// This option is a String. - /// - [GameConfigOption("ActiveInstanceGuid", ConfigType.String)] - ActiveInstanceGuid, - - /// - /// System option with the internal name ActiveProductGuid. - /// This option is a String. - /// - [GameConfigOption("ActiveProductGuid", ConfigType.String)] - ActiveProductGuid, - /// /// System option with the internal name WaterWet. /// This option is a UInt. @@ -1010,34 +996,6 @@ public enum SystemConfigOption [GameConfigOption("AutoChangeCameraMode", ConfigType.UInt)] AutoChangeCameraMode, - /// - /// System option with the internal name MsqProgress. - /// This option is a UInt. - /// - [GameConfigOption("MsqProgress", ConfigType.UInt)] - MsqProgress, - - /// - /// System option with the internal name PromptConfigUpdate. - /// This option is a UInt. - /// - [GameConfigOption("PromptConfigUpdate", ConfigType.UInt)] - PromptConfigUpdate, - - /// - /// System option with the internal name TitleScreenType. - /// This option is a UInt. - /// - [GameConfigOption("TitleScreenType", ConfigType.UInt)] - TitleScreenType, - - /// - /// System option with the internal name DisplayObjectLimitType2. - /// This option is a UInt. - /// - [GameConfigOption("DisplayObjectLimitType2", ConfigType.UInt)] - DisplayObjectLimitType2, - /// /// System option with the internal name AccessibilitySoundVisualEnable. /// This option is a UInt. @@ -1101,13 +1059,6 @@ public enum SystemConfigOption [GameConfigOption("IdlingCameraAFK", ConfigType.UInt)] IdlingCameraAFK, - /// - /// System option with the internal name FirstConfigBackup. - /// This option is a UInt. - /// - [GameConfigOption("FirstConfigBackup", ConfigType.UInt)] - FirstConfigBackup, - /// /// System option with the internal name MouseSpeed. /// This option is a Float. @@ -1122,13 +1073,6 @@ public enum SystemConfigOption [GameConfigOption("CameraZoom", ConfigType.UInt)] CameraZoom, - /// - /// System option with the internal name DynamicAroundRangeMode. - /// This option is a UInt. - /// - [GameConfigOption("DynamicAroundRangeMode", ConfigType.UInt)] - DynamicAroundRangeMode, - /// /// System option with the internal name DynamicRezoType. /// This option is a UInt. @@ -1492,4 +1436,46 @@ public enum SystemConfigOption /// [GameConfigOption("PadButton_R3", ConfigType.String)] PadButton_R3, + + /// + /// System option with the internal name ActiveInstanceGuid. + /// This option is a String. + /// + [GameConfigOption("ActiveInstanceGuid", ConfigType.String)] + ActiveInstanceGuid, + + /// + /// System option with the internal name ActiveProductGuid. + /// This option is a String. + /// + [GameConfigOption("ActiveProductGuid", ConfigType.String)] + ActiveProductGuid, + + /// + /// System option with the internal name MsqProgress. + /// This option is a UInt. + /// + [GameConfigOption("MsqProgress", ConfigType.UInt)] + MsqProgress, + + /// + /// System option with the internal name PromptConfigUpdate. + /// This option is a UInt. + /// + [GameConfigOption("PromptConfigUpdate", ConfigType.UInt)] + PromptConfigUpdate, + + /// + /// System option with the internal name TitleScreenType. + /// This option is a UInt. + /// + [GameConfigOption("TitleScreenType", ConfigType.UInt)] + TitleScreenType, + + /// + /// System option with the internal name FirstConfigBackup. + /// This option is a UInt. + /// + [GameConfigOption("FirstConfigBackup", ConfigType.UInt)] + FirstConfigBackup, } diff --git a/Dalamud/Game/Config/UiConfigOption.cs b/Dalamud/Game/Config/UiConfigOption.cs index 0cfc3b1e9..53e64c89f 100644 --- a/Dalamud/Game/Config/UiConfigOption.cs +++ b/Dalamud/Game/Config/UiConfigOption.cs @@ -37,13 +37,6 @@ public enum UiConfigOption [GameConfigOption("BattleEffectPvPEnemyPc", ConfigType.UInt)] BattleEffectPvPEnemyPc, - /// - /// UiConfig option with the internal name PadMode. - /// This option is a UInt. - /// - [GameConfigOption("PadMode", ConfigType.UInt)] - PadMode, - /// /// UiConfig option with the internal name WeaponAutoPutAway. /// This option is a UInt. @@ -121,6 +114,14 @@ public enum UiConfigOption [GameConfigOption("LockonDefaultZoom", ConfigType.Float)] LockonDefaultZoom, + /// + /// UiConfig option with the internal name LockonDefaultZoom_179. + /// This option is a Float. + /// + [Obsolete("This option won't work. Use LockonDefaultZoom.", true)] + [GameConfigOption("LockonDefaultZoom_179", ConfigType.Float)] + LockonDefaultZoom_179, + /// /// UiConfig option with the internal name CameraProductionOfAction. /// This option is a UInt. @@ -310,27 +311,6 @@ public enum UiConfigOption [GameConfigOption("RightClickExclusionMinion", ConfigType.UInt)] RightClickExclusionMinion, - /// - /// UiConfig option with the internal name EnableMoveTiltCharacter. - /// This option is a UInt. - /// - [GameConfigOption("EnableMoveTiltCharacter", ConfigType.UInt)] - EnableMoveTiltCharacter, - - /// - /// UiConfig option with the internal name EnableMoveTiltMountGround. - /// This option is a UInt. - /// - [GameConfigOption("EnableMoveTiltMountGround", ConfigType.UInt)] - EnableMoveTiltMountGround, - - /// - /// UiConfig option with the internal name EnableMoveTiltMountFly. - /// This option is a UInt. - /// - [GameConfigOption("EnableMoveTiltMountFly", ConfigType.UInt)] - EnableMoveTiltMountFly, - /// /// UiConfig option with the internal name TurnSpeed. /// This option is a UInt. @@ -1150,27 +1130,6 @@ public enum UiConfigOption [GameConfigOption("HotbarXHBEditEnable", ConfigType.UInt)] HotbarXHBEditEnable, - /// - /// UiConfig option with the internal name HotbarContentsAction2ReverseOperation. - /// This option is a UInt. - /// - [GameConfigOption("HotbarContentsAction2ReverseOperation", ConfigType.UInt)] - HotbarContentsAction2ReverseOperation, - - /// - /// UiConfig option with the internal name HotbarContentsAction2ReturnInitialSlot. - /// This option is a UInt. - /// - [GameConfigOption("HotbarContentsAction2ReturnInitialSlot", ConfigType.UInt)] - HotbarContentsAction2ReturnInitialSlot, - - /// - /// UiConfig option with the internal name HotbarContentsAction2ReverseRotate. - /// This option is a UInt. - /// - [GameConfigOption("HotbarContentsAction2ReverseRotate", ConfigType.UInt)] - HotbarContentsAction2ReverseRotate, - /// /// UiConfig option with the internal name PlateType. /// This option is a UInt. @@ -2032,13 +1991,6 @@ public enum UiConfigOption [GameConfigOption("NamePlateDispJobIconInInstanceOther", ConfigType.UInt)] NamePlateDispJobIconInInstanceOther, - /// - /// UiConfig option with the internal name LogNamePlateDispEnemyCast. - /// This option is a UInt. - /// - [GameConfigOption("LogNamePlateDispEnemyCast", ConfigType.UInt)] - LogNamePlateDispEnemyCast, - /// /// UiConfig option with the internal name ActiveInfo. /// This option is a UInt. @@ -2697,594 +2649,6 @@ public enum UiConfigOption [GameConfigOption("LogColorOtherClass", ConfigType.UInt)] LogColorOtherClass, - /// - /// UiConfig option with the internal name LogChatBubbleEnableChatBubble. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleEnableChatBubble", ConfigType.UInt)] - LogChatBubbleEnableChatBubble, - - /// - /// UiConfig option with the internal name LogChatBubbleShowMax. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShowMax", ConfigType.UInt)] - LogChatBubbleShowMax, - - /// - /// UiConfig option with the internal name LogChatBubbleShowOwnMessage. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShowOwnMessage", ConfigType.UInt)] - LogChatBubbleShowOwnMessage, - - /// - /// UiConfig option with the internal name LogChatBubbleShowDuringBattle. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShowDuringBattle", ConfigType.UInt)] - LogChatBubbleShowDuringBattle, - - /// - /// UiConfig option with the internal name LogChatBubbleSizeType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleSizeType", ConfigType.UInt)] - LogChatBubbleSizeType, - - /// - /// UiConfig option with the internal name LogChatBubbleShowLargePvP. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShowLargePvP", ConfigType.UInt)] - LogChatBubbleShowLargePvP, - - /// - /// UiConfig option with the internal name LogChatBubbleShowQuickChat. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShowQuickChat", ConfigType.UInt)] - LogChatBubbleShowQuickChat, - - /// - /// UiConfig option with the internal name LogChatBubbleDispRowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleDispRowType", ConfigType.UInt)] - LogChatBubbleDispRowType, - - /// - /// UiConfig option with the internal name LogChatBubbleSayShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleSayShowType", ConfigType.UInt)] - LogChatBubbleSayShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleSayFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleSayFontColor", ConfigType.UInt)] - LogChatBubbleSayFontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleSayWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleSayWindowColor", ConfigType.UInt)] - LogChatBubbleSayWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleYellShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleYellShowType", ConfigType.UInt)] - LogChatBubbleYellShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleYellFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleYellFontColor", ConfigType.UInt)] - LogChatBubbleYellFontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleYellWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleYellWindowColor", ConfigType.UInt)] - LogChatBubbleYellWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleShoutShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShoutShowType", ConfigType.UInt)] - LogChatBubbleShoutShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleShoutFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShoutFontColor", ConfigType.UInt)] - LogChatBubbleShoutFontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleShoutWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleShoutWindowColor", ConfigType.UInt)] - LogChatBubbleShoutWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleTellShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleTellShowType", ConfigType.UInt)] - LogChatBubbleTellShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleTellFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleTellFontColor", ConfigType.UInt)] - LogChatBubbleTellFontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleTellWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleTellWindowColor", ConfigType.UInt)] - LogChatBubbleTellWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubblePartyShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubblePartyShowType", ConfigType.UInt)] - LogChatBubblePartyShowType, - - /// - /// UiConfig option with the internal name LogChatBubblePartyFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubblePartyFontColor", ConfigType.UInt)] - LogChatBubblePartyFontColor, - - /// - /// UiConfig option with the internal name LogChatBubblePartyWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubblePartyWindowColor", ConfigType.UInt)] - LogChatBubblePartyWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleAllianceShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleAllianceShowType", ConfigType.UInt)] - LogChatBubbleAllianceShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleAllianceFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleAllianceFontColor", ConfigType.UInt)] - LogChatBubbleAllianceFontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleAllianceWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleAllianceWindowColor", ConfigType.UInt)] - LogChatBubbleAllianceWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleFcShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleFcShowType", ConfigType.UInt)] - LogChatBubbleFcShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleFcFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleFcFontColor", ConfigType.UInt)] - LogChatBubbleFcFontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleFcWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleFcWindowColor", ConfigType.UInt)] - LogChatBubbleFcWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleBeginnerShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleBeginnerShowType", ConfigType.UInt)] - LogChatBubbleBeginnerShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleBeginnerFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleBeginnerFontColor", ConfigType.UInt)] - LogChatBubbleBeginnerFontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleBeginnerWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleBeginnerWindowColor", ConfigType.UInt)] - LogChatBubbleBeginnerWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubblePvpteamShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubblePvpteamShowType", ConfigType.UInt)] - LogChatBubblePvpteamShowType, - - /// - /// UiConfig option with the internal name LogChatBubblePvpteamFontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubblePvpteamFontColor", ConfigType.UInt)] - LogChatBubblePvpteamFontColor, - - /// - /// UiConfig option with the internal name LogChatBubblePvpteamWindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubblePvpteamWindowColor", ConfigType.UInt)] - LogChatBubblePvpteamWindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs1ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs1ShowType", ConfigType.UInt)] - LogChatBubbleLs1ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs1FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs1FontColor", ConfigType.UInt)] - LogChatBubbleLs1FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs1WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs1WindowColor", ConfigType.UInt)] - LogChatBubbleLs1WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs2ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs2ShowType", ConfigType.UInt)] - LogChatBubbleLs2ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs2FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs2FontColor", ConfigType.UInt)] - LogChatBubbleLs2FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs2WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs2WindowColor", ConfigType.UInt)] - LogChatBubbleLs2WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs3ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs3ShowType", ConfigType.UInt)] - LogChatBubbleLs3ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs3FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs3FontColor", ConfigType.UInt)] - LogChatBubbleLs3FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs3WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs3WindowColor", ConfigType.UInt)] - LogChatBubbleLs3WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs4ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs4ShowType", ConfigType.UInt)] - LogChatBubbleLs4ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs4FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs4FontColor", ConfigType.UInt)] - LogChatBubbleLs4FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs4WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs4WindowColor", ConfigType.UInt)] - LogChatBubbleLs4WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs5ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs5ShowType", ConfigType.UInt)] - LogChatBubbleLs5ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs5FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs5FontColor", ConfigType.UInt)] - LogChatBubbleLs5FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs5WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs5WindowColor", ConfigType.UInt)] - LogChatBubbleLs5WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs6ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs6ShowType", ConfigType.UInt)] - LogChatBubbleLs6ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs6FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs6FontColor", ConfigType.UInt)] - LogChatBubbleLs6FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs6WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs6WindowColor", ConfigType.UInt)] - LogChatBubbleLs6WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs7ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs7ShowType", ConfigType.UInt)] - LogChatBubbleLs7ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs7FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs7FontColor", ConfigType.UInt)] - LogChatBubbleLs7FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs7WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs7WindowColor", ConfigType.UInt)] - LogChatBubbleLs7WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs8ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs8ShowType", ConfigType.UInt)] - LogChatBubbleLs8ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleLs8FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs8FontColor", ConfigType.UInt)] - LogChatBubbleLs8FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleLs8WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleLs8WindowColor", ConfigType.UInt)] - LogChatBubbleLs8WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls1ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls1ShowType", ConfigType.UInt)] - LogChatBubbleCwls1ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls1FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls1FontColor", ConfigType.UInt)] - LogChatBubbleCwls1FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls1WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls1WindowColor", ConfigType.UInt)] - LogChatBubbleCwls1WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls2ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls2ShowType", ConfigType.UInt)] - LogChatBubbleCwls2ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls2FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls2FontColor", ConfigType.UInt)] - LogChatBubbleCwls2FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls2WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls2WindowColor", ConfigType.UInt)] - LogChatBubbleCwls2WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls3ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls3ShowType", ConfigType.UInt)] - LogChatBubbleCwls3ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls3FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls3FontColor", ConfigType.UInt)] - LogChatBubbleCwls3FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls3WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls3WindowColor", ConfigType.UInt)] - LogChatBubbleCwls3WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls4ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls4ShowType", ConfigType.UInt)] - LogChatBubbleCwls4ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls4FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls4FontColor", ConfigType.UInt)] - LogChatBubbleCwls4FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls4WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls4WindowColor", ConfigType.UInt)] - LogChatBubbleCwls4WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls5ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls5ShowType", ConfigType.UInt)] - LogChatBubbleCwls5ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls5FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls5FontColor", ConfigType.UInt)] - LogChatBubbleCwls5FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls5WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls5WindowColor", ConfigType.UInt)] - LogChatBubbleCwls5WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls6ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls6ShowType", ConfigType.UInt)] - LogChatBubbleCwls6ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls6FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls6FontColor", ConfigType.UInt)] - LogChatBubbleCwls6FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls6WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls6WindowColor", ConfigType.UInt)] - LogChatBubbleCwls6WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls7ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls7ShowType", ConfigType.UInt)] - LogChatBubbleCwls7ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls7FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls7FontColor", ConfigType.UInt)] - LogChatBubbleCwls7FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls7WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls7WindowColor", ConfigType.UInt)] - LogChatBubbleCwls7WindowColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls8ShowType. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls8ShowType", ConfigType.UInt)] - LogChatBubbleCwls8ShowType, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls8FontColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls8FontColor", ConfigType.UInt)] - LogChatBubbleCwls8FontColor, - - /// - /// UiConfig option with the internal name LogChatBubbleCwls8WindowColor. - /// This option is a UInt. - /// - [GameConfigOption("LogChatBubbleCwls8WindowColor", ConfigType.UInt)] - LogChatBubbleCwls8WindowColor, - - /// - /// UiConfig option with the internal name LogPermeationRateInput. - /// This option is a UInt. - /// - [GameConfigOption("LogPermeationRateInput", ConfigType.UInt)] - LogPermeationRateInput, - /// /// UiConfig option with the internal name ChatType. /// This option is a UInt. @@ -4048,34 +3412,6 @@ public enum UiConfigOption [GameConfigOption("GPoseMotionFilterAction", ConfigType.UInt)] GPoseMotionFilterAction, - /// - /// UiConfig option with the internal name GPoseRollRotationCameraCorrection. - /// This option is a UInt. - /// - [GameConfigOption("GPoseRollRotationCameraCorrection", ConfigType.UInt)] - GPoseRollRotationCameraCorrection, - - /// - /// UiConfig option with the internal name GPoseInitCameraFocus. - /// This option is a UInt. - /// - [GameConfigOption("GPoseInitCameraFocus", ConfigType.UInt)] - GPoseInitCameraFocus, - - /// - /// UiConfig option with the internal name GposePortraitRotateType. - /// This option is a UInt. - /// - [GameConfigOption("GposePortraitRotateType", ConfigType.UInt)] - GposePortraitRotateType, - - /// - /// UiConfig option with the internal name GroupPosePortraitUnlockAspectLimit. - /// This option is a UInt. - /// - [GameConfigOption("GroupPosePortraitUnlockAspectLimit", ConfigType.UInt)] - GroupPosePortraitUnlockAspectLimit, - /// /// UiConfig option with the internal name LsListSortPriority. /// This option is a UInt. @@ -4236,4 +3572,32 @@ public enum UiConfigOption /// [GameConfigOption("PvPFrontlinesGCFree", ConfigType.UInt)] PvPFrontlinesGCFree, + + /// + /// UiConfig option with the internal name PadMode. + /// This option is a UInt. + /// + [GameConfigOption("PadMode", ConfigType.UInt)] + PadMode, + + /// + /// UiConfig option with the internal name EnableMoveTiltCharacter. + /// This option is a UInt. + /// + [GameConfigOption("EnableMoveTiltCharacter", ConfigType.UInt)] + EnableMoveTiltCharacter, + + /// + /// UiConfig option with the internal name EnableMoveTiltMountGround. + /// This option is a UInt. + /// + [GameConfigOption("EnableMoveTiltMountGround", ConfigType.UInt)] + EnableMoveTiltMountGround, + + /// + /// UiConfig option with the internal name EnableMoveTiltMountFly. + /// This option is a UInt. + /// + [GameConfigOption("EnableMoveTiltMountFly", ConfigType.UInt)] + EnableMoveTiltMountFly, } diff --git a/Dalamud/Game/DutyState/DutyState.cs b/Dalamud/Game/DutyState/DutyState.cs index 4d719685b..3a3afbab0 100644 --- a/Dalamud/Game/DutyState/DutyState.cs +++ b/Dalamud/Game/DutyState/DutyState.cs @@ -1,11 +1,10 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; using Dalamud.Game.ClientState.Conditions; using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; -using Dalamud.Utility; namespace Dalamud.Game.DutyState; @@ -82,33 +81,33 @@ internal unsafe class DutyState : IInternalDisposableService, IDutyState // Duty Commenced case 0x4000_0001: this.IsDutyStarted = true; - this.DutyStarted?.InvokeSafely(this, this.clientState.TerritoryType); + this.DutyStarted?.Invoke(this, this.clientState.TerritoryType); break; // Party Wipe case 0x4000_0005: this.IsDutyStarted = false; - this.DutyWiped?.InvokeSafely(this, this.clientState.TerritoryType); + this.DutyWiped?.Invoke(this, this.clientState.TerritoryType); break; // Duty Recommence case 0x4000_0006: this.IsDutyStarted = true; - this.DutyRecommenced?.InvokeSafely(this, this.clientState.TerritoryType); + this.DutyRecommenced?.Invoke(this, this.clientState.TerritoryType); break; // Duty Completed Flytext Shown case 0x4000_0002 when !this.CompletedThisTerritory: this.IsDutyStarted = false; this.CompletedThisTerritory = true; - this.DutyCompleted?.InvokeSafely(this, this.clientState.TerritoryType); + this.DutyCompleted?.Invoke(this, this.clientState.TerritoryType); break; // Duty Completed case 0x4000_0003 when !this.CompletedThisTerritory: this.IsDutyStarted = false; this.CompletedThisTerritory = true; - this.DutyCompleted?.InvokeSafely(this, this.clientState.TerritoryType); + this.DutyCompleted?.Invoke(this, this.clientState.TerritoryType); break; } } diff --git a/Dalamud/Game/DutyState/DutyStateAddressResolver.cs b/Dalamud/Game/DutyState/DutyStateAddressResolver.cs index 480b699a0..1bca93efb 100644 --- a/Dalamud/Game/DutyState/DutyStateAddressResolver.cs +++ b/Dalamud/Game/DutyState/DutyStateAddressResolver.cs @@ -1,5 +1,3 @@ -using Dalamud.Plugin.Services; - namespace Dalamud.Game.DutyState; /// diff --git a/Dalamud/Game/Framework.cs b/Dalamud/Game/Framework.cs index e40274043..82c7f5f6c 100644 --- a/Dalamud/Game/Framework.cs +++ b/Dalamud/Game/Framework.cs @@ -12,7 +12,6 @@ using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; -using Dalamud.Plugin.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; @@ -26,7 +25,7 @@ namespace Dalamud.Game; [ServiceManager.EarlyLoadedService] internal sealed class Framework : IInternalDisposableService, IFramework { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("Framework"); private static readonly Stopwatch StatsStopwatch = new(); @@ -48,7 +47,7 @@ internal sealed class Framework : IInternalDisposableService, IFramework private readonly ConcurrentDictionary tickDelayedTaskCompletionSources = new(); - private ulong tickCounter; + private ulong tickCounter; [ServiceManager.ServiceConstructor] private unsafe Framework() @@ -86,7 +85,7 @@ internal sealed class Framework : IInternalDisposableService, IFramework /// /// Gets the stats history mapping. /// - public static Dictionary> StatsHistory { get; } = []; + public static Dictionary> StatsHistory { get; } = new(); /// public DateTime LastUpdate { get; private set; } = DateTime.MinValue; @@ -106,7 +105,7 @@ internal sealed class Framework : IInternalDisposableService, IFramework /// /// Gets the list of update sub-delegates that didn't get updated this frame. /// - internal List NonUpdatedSubDelegates { get; private set; } = []; + internal List NonUpdatedSubDelegates { get; private set; } = new(); /// /// Gets or sets a value indicating whether to dispatch update events. @@ -121,9 +120,9 @@ internal sealed class Framework : IInternalDisposableService, IFramework /// public Task DelayTicks(long numTicks, CancellationToken cancellationToken = default) { - if (this.frameworkDestroy.IsCancellationRequested) // Going away + if (this.frameworkDestroy.IsCancellationRequested) return Task.FromCanceled(this.frameworkDestroy.Token); - if (numTicks <= 0 || this.frameworkThreadTaskScheduler.BoundThread == null) // Nonsense or before first tick + if (numTicks <= 0) return Task.CompletedTask; var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); @@ -212,10 +211,11 @@ internal sealed class Framework : IInternalDisposableService, IFramework if (cancellationToken == default) cancellationToken = this.FrameworkThreadTaskFactory.CancellationToken; return this.FrameworkThreadTaskFactory.ContinueWhenAll( - [ + new[] + { Task.Delay(delay, cancellationToken), this.DelayTicks(delayTicks, cancellationToken), - ], + }, _ => func(), cancellationToken, TaskContinuationOptions.HideScheduler, @@ -238,10 +238,11 @@ internal sealed class Framework : IInternalDisposableService, IFramework if (cancellationToken == default) cancellationToken = this.FrameworkThreadTaskFactory.CancellationToken; return this.FrameworkThreadTaskFactory.ContinueWhenAll( - [ + new[] + { Task.Delay(delay, cancellationToken), this.DelayTicks(delayTicks, cancellationToken), - ], + }, _ => action(), cancellationToken, TaskContinuationOptions.HideScheduler, @@ -264,10 +265,11 @@ internal sealed class Framework : IInternalDisposableService, IFramework if (cancellationToken == default) cancellationToken = this.FrameworkThreadTaskFactory.CancellationToken; return this.FrameworkThreadTaskFactory.ContinueWhenAll( - [ + new[] + { Task.Delay(delay, cancellationToken), this.DelayTicks(delayTicks, cancellationToken), - ], + }, _ => func(), cancellationToken, TaskContinuationOptions.HideScheduler, @@ -290,10 +292,11 @@ internal sealed class Framework : IInternalDisposableService, IFramework if (cancellationToken == default) cancellationToken = this.FrameworkThreadTaskFactory.CancellationToken; return this.FrameworkThreadTaskFactory.ContinueWhenAll( - [ + new[] + { Task.Delay(delay, cancellationToken), this.DelayTicks(delayTicks, cancellationToken), - ], + }, _ => func(), cancellationToken, TaskContinuationOptions.HideScheduler, @@ -329,7 +332,7 @@ internal sealed class Framework : IInternalDisposableService, IFramework internal static void AddToStats(string key, double ms) { if (!StatsHistory.ContainsKey(key)) - StatsHistory.Add(key, []); + StatsHistory.Add(key, new List()); StatsHistory[key].Add(ms); @@ -346,13 +349,17 @@ internal sealed class Framework : IInternalDisposableService, IFramework /// The Framework Instance to pass to delegate. internal void ProfileAndInvoke(IFramework.OnUpdateDelegate? eventDelegate, IFramework frameworkInstance) { + if (eventDelegate is null) return; + + var invokeList = eventDelegate.GetInvocationList(); + // Individually invoke OnUpdate handlers and time them. - foreach (var d in Delegate.EnumerateInvocationList(eventDelegate)) + foreach (var d in invokeList) { var stopwatch = Stopwatch.StartNew(); try { - d(frameworkInstance); + d.Method.Invoke(d.Target, new object[] { frameworkInstance }); } catch (Exception ex) { @@ -362,7 +369,8 @@ internal sealed class Framework : IInternalDisposableService, IFramework stopwatch.Stop(); var key = $"{d.Target}::{d.Method.Name}"; - this.NonUpdatedSubDelegates.Remove(key); + if (this.NonUpdatedSubDelegates.Contains(key)) + this.NonUpdatedSubDelegates.Remove(key); AddToStats(key, stopwatch.Elapsed.TotalMilliseconds); } @@ -496,18 +504,14 @@ internal sealed class Framework : IInternalDisposableService, IFramework #pragma warning restore SA1015 internal class FrameworkPluginScoped : IInternalDisposableService, IFramework { - private readonly PluginErrorHandler pluginErrorHandler; - [ServiceManager.ServiceDependency] private readonly Framework frameworkService = Service.Get(); /// /// Initializes a new instance of the class. /// - /// Error handler instance. - internal FrameworkPluginScoped(PluginErrorHandler pluginErrorHandler) + internal FrameworkPluginScoped() { - this.pluginErrorHandler = pluginErrorHandler; this.frameworkService.Update += this.OnUpdateForward; } @@ -600,7 +604,7 @@ internal class FrameworkPluginScoped : IInternalDisposableService, IFramework } else { - this.pluginErrorHandler.InvokeAndCatch(this.Update, $"{nameof(IFramework)}::{nameof(IFramework.Update)}", framework); + this.Update?.Invoke(framework); } } } diff --git a/Dalamud/Game/Gui/AgentUpdateFlag.cs b/Dalamud/Game/Gui/AgentUpdateFlag.cs deleted file mode 100644 index 3e2808adb..000000000 --- a/Dalamud/Game/Gui/AgentUpdateFlag.cs +++ /dev/null @@ -1,34 +0,0 @@ -using FFXIVClientStructs.FFXIV.Client.UI.Agent; - -namespace Dalamud.Game.Gui; - -/// -/// Represents a flag set by the game used by agents to conditionally update their addons. -/// -[Flags] -public enum AgentUpdateFlag : byte -{ - /// Set when an inventory has been updated. - InventoryUpdate = 1 << 0, - - /// Set when a hotbar slot has been executed, or a Gearset or Macro has been changed. - ActionBarUpdate = 1 << 1, - - /// Set when the RetainerMarket inventory has been updated. - RetainerMarketInventoryUpdate = 1 << 2, - - // /// Unknown use case. - // NameplateUpdate = 1 << 3, - - /// Set when the player unlocked collectibles, contents or systems. - UnlocksUpdate = 1 << 4, - - /// Set when was called. - MainCommandEnabledStateUpdate = 1 << 5, - - /// Set when any housing inventory has been updated. - HousingInventoryUpdate = 1 << 6, - - /// Set when any content inventory has been updated. - ContentInventoryUpdate = 1 << 7, -} diff --git a/Dalamud/Game/Gui/ChatGui.cs b/Dalamud/Game/Gui/ChatGui.cs index c514752da..791cbb97a 100644 --- a/Dalamud/Game/Gui/ChatGui.cs +++ b/Dalamud/Game/Gui/ChatGui.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Dalamud.Configuration.Internal; @@ -13,7 +12,6 @@ using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; using Dalamud.Memory; -using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; using Dalamud.Utility; @@ -27,6 +25,7 @@ using Lumina.Text; using Lumina.Text.Payloads; using Lumina.Text.ReadOnly; +using LSeStringBuilder = Lumina.Text.SeStringBuilder; using SeString = Dalamud.Game.Text.SeStringHandling.SeString; using SeStringBuilder = Dalamud.Game.Text.SeStringHandling.SeStringBuilder; @@ -38,22 +37,19 @@ namespace Dalamud.Game.Gui; [ServiceManager.EarlyLoadedService] internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("ChatGui"); private readonly Queue chatQueue = new(); - private readonly Dictionary<(string PluginName, uint CommandId), Action> dalamudLinkHandlers = []; - private readonly List seenLogMessageObjects = []; + private readonly Dictionary<(string PluginName, uint CommandId), Action> dalamudLinkHandlers = new(); private readonly Hook printMessageHook; private readonly Hook inventoryItemCopyHook; private readonly Hook handleLinkClickHook; - private readonly Hook handleLogModuleUpdate; [ServiceManager.ServiceDependency] private readonly DalamudConfiguration configuration = Service.Get(); private ImmutableDictionary<(string PluginName, uint CommandId), Action>? dalamudLinkHandlersCopy; - private uint dalamudChatHandlerId = 1000; [ServiceManager.ServiceConstructor] private ChatGui() @@ -61,12 +57,10 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui this.printMessageHook = Hook.FromAddress(RaptureLogModule.Addresses.PrintMessage.Value, this.HandlePrintMessageDetour); this.inventoryItemCopyHook = Hook.FromAddress((nint)InventoryItem.StaticVirtualTablePointer->Copy, this.InventoryItemCopyDetour); this.handleLinkClickHook = Hook.FromAddress(LogViewer.Addresses.HandleLinkClick.Value, this.HandleLinkClickDetour); - this.handleLogModuleUpdate = Hook.FromAddress(RaptureLogModule.Addresses.Update.Value, this.UpdateDetour); this.printMessageHook.Enable(); this.inventoryItemCopyHook.Enable(); this.handleLinkClickHook.Enable(); - this.handleLogModuleUpdate.Enable(); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] @@ -84,9 +78,6 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui /// public event IChatGui.OnMessageUnhandledDelegate? ChatMessageUnhandled; - /// - public event IChatGui.OnLogMessageDelegate? LogMessage; - /// public uint LastLinkedItemId { get; private set; } @@ -118,7 +109,6 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui this.printMessageHook.Dispose(); this.inventoryItemCopyHook.Dispose(); this.handleLinkClickHook.Dispose(); - this.handleLogModuleUpdate.Dispose(); } #region DalamudSeString @@ -171,42 +161,6 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui #endregion - #region Chat Links - - /// - /// Register a chat link handler. - /// - /// Internal use only. - /// The action to be executed. - /// Returns an SeString payload for the link. - public DalamudLinkPayload AddChatLinkHandler(Action commandAction) - { - return this.AddChatLinkHandler("Dalamud", this.dalamudChatHandlerId++, commandAction); - } - - /// - /// Internal use only. - public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action commandAction) - { - return this.AddChatLinkHandler("Dalamud", commandId, commandAction); - } - - /// - /// Internal use only. - public void RemoveChatLinkHandler(uint commandId) - { - this.RemoveChatLinkHandler("Dalamud", commandId); - } - - /// - /// Internal use only. - public void RemoveChatLinkHandler() - { - this.RemoveChatLinkHandler("Dalamud"); - } - - #endregion - /// /// Process a chat queue. /// @@ -215,21 +169,21 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui if (this.chatQueue.Count == 0) return; - using var rssb = new RentedSeStringBuilder(); + var sb = LSeStringBuilder.SharedPool.Get(); Span namebuf = stackalloc byte[256]; using var sender = new Utf8String(); using var message = new Utf8String(); while (this.chatQueue.TryDequeue(out var chat)) { - rssb.Builder.Clear(); + sb.Clear(); foreach (var c in UtfEnumerator.From(chat.MessageBytes, UtfEnumeratorFlags.Utf8SeString)) { if (c.IsSeStringPayload) - rssb.Builder.Append((ReadOnlySeStringSpan)chat.MessageBytes.AsSpan(c.ByteOffset, c.ByteLength)); + sb.Append((ReadOnlySeStringSpan)chat.MessageBytes.AsSpan(c.ByteOffset, c.ByteLength)); else if (c.Value.IntValue == 0x202F) - rssb.Builder.BeginMacro(MacroCode.NonBreakingSpace).EndMacro(); + sb.BeginMacro(MacroCode.NonBreakingSpace).EndMacro(); else - rssb.Builder.Append(c); + sb.Append(c); } if (chat.NameBytes.Length + 1 < namebuf.Length) @@ -243,7 +197,7 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui sender.SetString(chat.NameBytes.NullTerminate()); } - message.SetString(rssb.Builder.GetViewAsSpan()); + message.SetString(sb.GetViewAsSpan()); var targetChannel = chat.Type ?? this.configuration.GeneralChatType; @@ -255,6 +209,8 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui chat.Timestamp, (byte)(chat.Silent ? 1 : 0)); } + + LSeStringBuilder.SharedPool.Return(sb); } /// @@ -332,28 +288,29 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui private void PrintTagged(ReadOnlySpan message, XivChatType channel, string? tag, ushort? color) { - using var rssb = new RentedSeStringBuilder(); + var sb = LSeStringBuilder.SharedPool.Get(); if (!tag.IsNullOrEmpty()) { if (color is not null) { - rssb.Builder - .PushColorType(color.Value) - .Append($"[{tag}] ") - .PopColorType(); + sb.PushColorType(color.Value); + sb.Append($"[{tag}] "); + sb.PopColorType(); } else { - rssb.Builder.Append($"[{tag}] "); + sb.Append($"[{tag}] "); } } this.Print(new XivChatEntry { - MessageBytes = rssb.Builder.Append((ReadOnlySeStringSpan)message).ToArray(), + MessageBytes = sb.Append((ReadOnlySeStringSpan)message).ToArray(), Type = channel, }); + + LSeStringBuilder.SharedPool.Return(sb); } private void InventoryItemCopyDetour(InventoryItem* thisPtr, InventoryItem* otherPtr) @@ -388,21 +345,24 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui // Call events var isHandled = false; - foreach (var action in Delegate.EnumerateInvocationList(this.CheckMessageHandled)) + if (this.CheckMessageHandled is { } handledCallback) { - try + foreach (var action in handledCallback.GetInvocationList().Cast()) { - action(chatType, timestamp, ref parsedSender, ref parsedMessage, ref isHandled); - } - catch (Exception e) - { - Log.Error(e, "Could not invoke registered OnCheckMessageHandledDelegate for {Name}", action.Method); + try + { + action(chatType, timestamp, ref parsedSender, ref parsedMessage, ref isHandled); + } + catch (Exception e) + { + Log.Error(e, "Could not invoke registered OnCheckMessageHandledDelegate for {Name}", action.Method); + } } } - if (!isHandled) + if (!isHandled && this.ChatMessage is { } callback) { - foreach (var action in Delegate.EnumerateInvocationList(this.ChatMessage)) + foreach (var action in callback.GetInvocationList().Cast()) { try { @@ -420,27 +380,25 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui if (!terminatedSender.SequenceEqual(possiblyModifiedSenderData)) { - Log.Verbose($"HandlePrintMessageDetour Sender modified: {new ReadOnlySeStringSpan(terminatedSender).ToMacroString()} -> {new ReadOnlySeStringSpan(possiblyModifiedSenderData).ToMacroString()}"); + Log.Verbose($"HandlePrintMessageDetour Sender modified: {SeString.Parse(terminatedSender)} -> {parsedSender}"); sender->SetString(possiblyModifiedSenderData); } if (!terminatedMessage.SequenceEqual(possiblyModifiedMessageData)) { - Log.Verbose($"HandlePrintMessageDetour Message modified: {new ReadOnlySeStringSpan(terminatedMessage).ToMacroString()} -> {new ReadOnlySeStringSpan(possiblyModifiedMessageData).ToMacroString()}"); + Log.Verbose($"HandlePrintMessageDetour Message modified: {SeString.Parse(terminatedMessage)} -> {parsedMessage}"); message->SetString(possiblyModifiedMessageData); } // Print the original chat if it's handled. if (isHandled) { - foreach (var d in Delegate.EnumerateInvocationList(this.ChatMessageHandled)) - d(chatType, timestamp, parsedSender, parsedMessage); + this.ChatMessageHandled?.Invoke(chatType, timestamp, parsedSender, parsedMessage); } else { messageId = this.printMessageHook.Original(manager, chatType, sender, message, timestamp, silent); - foreach (var d in Delegate.EnumerateInvocationList(this.ChatMessageUnhandled)) - d(chatType, timestamp, parsedSender, parsedMessage); + this.ChatMessageUnhandled?.Invoke(chatType, timestamp, parsedSender, parsedMessage); } } catch (Exception ex) @@ -462,8 +420,7 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui Log.Verbose($"InteractableLinkClicked: {Payload.EmbeddedInfoType.DalamudLink}"); - using var rssb = new RentedSeStringBuilder(); - + var sb = LSeStringBuilder.SharedPool.Get(); try { var seStringSpan = new ReadOnlySeStringSpan(linkData->Payload); @@ -471,7 +428,7 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui // read until link terminator foreach (var payload in seStringSpan) { - rssb.Builder.Append(payload); + sb.Append(payload); if (payload.Type == ReadOnlySePayloadType.Macro && payload.MacroCode == MacroCode.Link && @@ -483,7 +440,7 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui } } - var seStr = SeString.Parse(rssb.Builder.ToArray()); + var seStr = SeString.Parse(sb.ToArray()); if (seStr.Payloads.Count == 0 || seStr.Payloads[0] is not DalamudLinkPayload link) return; @@ -501,45 +458,9 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui { Log.Error(ex, "Exception in HandleLinkClickDetour"); } - } - - private void UpdateDetour(RaptureLogModule* thisPtr) - { - try + finally { - foreach (ref var item in thisPtr->LogMessageQueue) - { - var logMessage = new Chat.LogMessage((LogMessageQueueItem*)Unsafe.AsPointer(ref item)); - - // skip any entries that survived the previous Update call as the event was already called for them - if (this.seenLogMessageObjects.Contains(logMessage.Address)) - continue; - - foreach (var action in Delegate.EnumerateInvocationList(this.LogMessage)) - { - try - { - action(logMessage); - } - catch (Exception e) - { - Log.Error(e, "Could not invoke registered OnLogMessageDelegate for {Name}", action.Method); - } - } - } - - this.handleLogModuleUpdate.Original(thisPtr); - - // record the log messages for that we already called the event, but are still in the queue - this.seenLogMessageObjects.Clear(); - foreach (ref var item in thisPtr->LogMessageQueue) - { - this.seenLogMessageObjects.Add((nint)Unsafe.AsPointer(ref item)); - } - } - catch (Exception ex) - { - Log.Error(ex, "Exception in UpdateDetour"); + LSeStringBuilder.SharedPool.Return(sb); } } } @@ -557,20 +478,15 @@ internal class ChatGuiPluginScoped : IInternalDisposableService, IChatGui [ServiceManager.ServiceDependency] private readonly ChatGui chatGuiService = Service.Get(); - private readonly LocalPlugin plugin; - /// /// Initializes a new instance of the class. /// - /// The plugin. - internal ChatGuiPluginScoped(LocalPlugin plugin) + internal ChatGuiPluginScoped() { - this.plugin = plugin; this.chatGuiService.ChatMessage += this.OnMessageForward; this.chatGuiService.CheckMessageHandled += this.OnCheckMessageForward; this.chatGuiService.ChatMessageHandled += this.OnMessageHandledForward; this.chatGuiService.ChatMessageUnhandled += this.OnMessageUnhandledForward; - this.chatGuiService.LogMessage += this.OnLogMessageForward; } /// @@ -585,9 +501,6 @@ internal class ChatGuiPluginScoped : IInternalDisposableService, IChatGui /// public event IChatGui.OnMessageUnhandledDelegate? ChatMessageUnhandled; - /// - public event IChatGui.OnLogMessageDelegate? LogMessage; - /// public uint LastLinkedItemId => this.chatGuiService.LastLinkedItemId; @@ -604,27 +517,13 @@ internal class ChatGuiPluginScoped : IInternalDisposableService, IChatGui this.chatGuiService.CheckMessageHandled -= this.OnCheckMessageForward; this.chatGuiService.ChatMessageHandled -= this.OnMessageHandledForward; this.chatGuiService.ChatMessageUnhandled -= this.OnMessageUnhandledForward; - this.chatGuiService.LogMessage -= this.OnLogMessageForward; this.ChatMessage = null; this.CheckMessageHandled = null; this.ChatMessageHandled = null; this.ChatMessageUnhandled = null; - this.LogMessage = null; } - /// - public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action commandAction) - => this.chatGuiService.AddChatLinkHandler(this.plugin.InternalName, commandId, commandAction); - - /// - public void RemoveChatLinkHandler(uint commandId) - => this.chatGuiService.RemoveChatLinkHandler(this.plugin.InternalName, commandId); - - /// - public void RemoveChatLinkHandler() - => this.chatGuiService.RemoveChatLinkHandler(this.plugin.InternalName); - /// public void Print(XivChatEntry chat) => this.chatGuiService.Print(chat); @@ -664,7 +563,4 @@ internal class ChatGuiPluginScoped : IInternalDisposableService, IChatGui private void OnMessageUnhandledForward(XivChatType type, int timestamp, SeString sender, SeString message) => this.ChatMessageUnhandled?.Invoke(type, timestamp, sender, message); - - private void OnLogMessageForward(Chat.ILogMessage message) - => this.LogMessage?.Invoke(message); } diff --git a/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs b/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs index ab3da7bf3..604af5ac7 100644 --- a/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs +++ b/Dalamud/Game/Gui/ContextMenu/ContextMenu.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Threading; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; @@ -29,10 +28,10 @@ namespace Dalamud.Game.Gui.ContextMenu; [ServiceManager.EarlyLoadedService] internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextMenu { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("ContextMenu"); private readonly Hook atkModuleVf22OpenAddonByAgentHook; - private readonly Hook addonContextMenuOnMenuSelectedHook; + private readonly Hook addonContextMenuOnMenuSelectedHook; private uint? addonContextSubNameId; @@ -41,20 +40,24 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM { var raptureAtkModuleVtable = (nint*)RaptureAtkModule.StaticVirtualTablePointer; this.atkModuleVf22OpenAddonByAgentHook = Hook.FromAddress(raptureAtkModuleVtable[22], this.AtkModuleVf22OpenAddonByAgentDetour); - this.addonContextMenuOnMenuSelectedHook = Hook.FromAddress((nint)AddonContextMenu.StaticVirtualTablePointer->OnMenuSelected, this.AddonContextMenuOnMenuSelectedDetour); + this.addonContextMenuOnMenuSelectedHook = Hook.FromAddress((nint)AddonContextMenu.StaticVirtualTablePointer->OnMenuSelected, this.AddonContextMenuOnMenuSelectedDetour); this.atkModuleVf22OpenAddonByAgentHook.Enable(); this.addonContextMenuOnMenuSelectedHook.Enable(); } private delegate ushort AtkModuleVf22OpenAddonByAgentDelegate(AtkModule* module, byte* addonName, int valueCount, AtkValue* values, AgentInterface* agent, nint a7, bool a8); + + private delegate bool AddonContextMenuOnMenuSelectedDelegate(AddonContextMenu* addon, int selectedIdx, byte a3); + + private delegate ushort RaptureAtkModuleOpenAddonDelegate(RaptureAtkModule* a1, uint addonNameId, uint valueCount, AtkValue* values, AgentInterface* parentAgent, ulong unk, ushort parentAddonId, int unk2); /// public event IContextMenu.OnMenuOpenedDelegate? OnMenuOpened; private Dictionary> MenuItems { get; } = []; - private Lock MenuItemsLock { get; } = new(); + private object MenuItemsLock { get; } = new(); private AgentInterface* SelectedAgent { get; set; } @@ -89,22 +92,16 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM /// void IInternalDisposableService.DisposeService() { - this.atkModuleVf22OpenAddonByAgentHook.Dispose(); - this.addonContextMenuOnMenuSelectedHook.Dispose(); - var manager = RaptureAtkUnitManager.Instance(); - if (manager == null) - return; - var menu = manager->GetAddonByName("ContextMenu"); var submenu = manager->GetAddonByName("AddonContextSub"); - if (menu == null || submenu == null) - return; - if (menu->IsVisible) menu->FireCallbackInt(-1); if (submenu->IsVisible) submenu->FireCallbackInt(-1); + + this.atkModuleVf22OpenAddonByAgentHook.Dispose(); + this.addonContextMenuOnMenuSelectedHook.Dispose(); } /// @@ -182,7 +179,7 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM values[0].ChangeType(ValueType.UInt); values[0].UInt = 0; values[1].ChangeType(ValueType.String); - values[1].SetManagedString(name.EncodeWithNullTerminator()); + values[1].SetManagedString(name.Encode().NullTerminate()); values[2].ChangeType(ValueType.Int); values[2].Int = x; values[3].ChangeType(ValueType.Int); @@ -262,7 +259,7 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM submenuMask |= 1u << i; nameData[i].ChangeType(ValueType.String); - nameData[i].SetManagedString(this.GetPrefixedName(item).EncodeWithNullTerminator()); + nameData[i].SetManagedString(this.GetPrefixedName(item).Encode().NullTerminate()); } for (var i = 0; i < prefixMenuSize; ++i) @@ -292,9 +289,8 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM // 2: UInt = Return Mask (?) // 3: UInt = Submenu Mask // 4: UInt = OpenAtCursorPosition ? 2 : 1 - // 5: UInt = ? - // 6: UInt = ? - // 7: UInt = ? + // 5: UInt = 0 + // 6: UInt = 0 foreach (var item in items) { @@ -310,7 +306,7 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM } } - this.SetupGenericMenu(8, 0, 2, 3, items, ref valueCount, ref values); + this.SetupGenericMenu(7, 0, 2, 3, items, ref valueCount, ref values); } private void SetupContextSubMenu(IReadOnlyList items, ref int valueCount, ref AtkValue* values) @@ -336,7 +332,7 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM this.MenuCallbackIds.Clear(); this.SelectedAgent = agent; var unitManager = RaptureAtkUnitManager.Instance(); - this.SelectedParentAddon = unitManager->GetAddonById(unitManager->GetAddonByName(addonName)->BlockedParentId); + this.SelectedParentAddon = unitManager->GetAddonById(unitManager->GetAddonByName(addonName)->ContextMenuParentId); this.SelectedEventInterfaces.Clear(); if (this.SelectedAgent == AgentInventoryContext.Instance()) { @@ -449,14 +445,14 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM case ContextMenuType.Default: { var ownerAddonId = ((AgentContext*)this.SelectedAgent)->OwnerAddon; - module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, &this.SelectedAgent->AtkEventInterface, 71, checked((ushort)ownerAddonId), 4); + module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, this.SelectedAgent, 71, checked((ushort)ownerAddonId), 4); break; } case ContextMenuType.Inventory: { var ownerAddonId = ((AgentInventoryContext*)this.SelectedAgent)->OwnerAddonId; - module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, &this.SelectedAgent->AtkEventInterface, 0, checked((ushort)ownerAddonId), 4); + module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, this.SelectedAgent, 0, checked((ushort)ownerAddonId), 4); break; } diff --git a/Dalamud/Game/Gui/ContextMenu/MenuArgs.cs b/Dalamud/Game/Gui/ContextMenu/MenuArgs.cs index 900935ed5..39fd1c52c 100644 --- a/Dalamud/Game/Gui/ContextMenu/MenuArgs.cs +++ b/Dalamud/Game/Gui/ContextMenu/MenuArgs.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; +using Dalamud.Memory; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.UI.Agent; diff --git a/Dalamud/Game/Gui/Dtr/DtrBar.cs b/Dalamud/Game/Gui/Dtr/DtrBar.cs index e5de6b2bd..f37b3addc 100644 --- a/Dalamud/Game/Gui/Dtr/DtrBar.cs +++ b/Dalamud/Game/Gui/Dtr/DtrBar.cs @@ -5,7 +5,6 @@ using System.Threading; using Dalamud.Configuration.Internal; using Dalamud.Game.Addon.Events; -using Dalamud.Game.Addon.Events.EventDataTypes; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; using Dalamud.Game.Text.SeStringHandling; @@ -30,8 +29,8 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar { private const uint BaseNodeId = 1000; - private static readonly ModuleLog Log = ModuleLog.Create(); - + private static readonly ModuleLog Log = new("DtrBar"); + [ServiceManager.ServiceDependency] private readonly Framework framework = Service.Get(); @@ -54,12 +53,12 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar private readonly ReaderWriterLockSlim entriesLock = new(); private readonly List entries = []; - private readonly Dictionary> eventHandles = []; + private readonly Dictionary> eventHandles = new(); private ImmutableList? entriesReadOnlyCopy; private Utf8String* emptyString; - + private uint runningNodeIds = BaseNodeId; private float entryStartPos = float.NaN; @@ -73,7 +72,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar this.addonLifecycle.RegisterListener(this.dtrPostDrawListener); this.addonLifecycle.RegisterListener(this.dtrPostRequestedUpdateListener); this.addonLifecycle.RegisterListener(this.dtrPreFinalizeListener); - + this.framework.Update += this.Update; this.configuration.DtrOrder ??= []; @@ -257,7 +256,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar /// The resources to remove. internal void RemoveEntry(DtrBarEntry toRemove) { - this.RemoveNode(toRemove); + this.RemoveNode(toRemove.TextNode); if (toRemove.Storage != null) { @@ -270,7 +269,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar /// Check whether an entry with the specified title exists. /// /// The title to check for. - /// Whether an entry with that title is registered. + /// Whether or not an entry with that title is registered. internal bool HasEntry(string title) { var found = false; @@ -331,7 +330,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar this.entriesReadOnlyCopy = null; } - private AtkUnitBase* GetDtr() => this.gameGui.GetAddonByName("_DTR").Struct; + private AtkUnitBase* GetDtr() => (AtkUnitBase*)this.gameGui.GetAddonByName("_DTR").ToPointer(); private void Update(IFramework unused) { @@ -378,12 +377,12 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar var isHide = !data.Shown || data.UserHidden; var node = data.TextNode; - var nodeHidden = !node->IsVisible(); + var nodeHidden = !node->AtkResNode.IsVisible(); if (!isHide) { if (nodeHidden) - node->ToggleVisibility(true); + node->AtkResNode.ToggleVisibility(true); if (data is { Added: true, Text: not null, TextNode: not null } && (data.Dirty || nodeHidden)) { @@ -397,35 +396,27 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar ushort w = 0, h = 0; node->GetTextDrawSize(&w, &h, node->NodeText.StringPtr); - - if (data.MinimumWidth > 0) - { - node->SetWidth(Math.Max(data.MinimumWidth, w)); - } - else - { - node->SetWidth(w); - } + node->AtkResNode.SetWidth(w); } - var elementWidth = data.TextNode->Width + this.configuration.DtrSpacing; + var elementWidth = data.TextNode->AtkResNode.Width + this.configuration.DtrSpacing; if (this.configuration.DtrSwapDirection) { - data.TextNode->SetPositionFloat(runningXPos + this.configuration.DtrSpacing, 2); + data.TextNode->AtkResNode.SetPositionFloat(runningXPos + this.configuration.DtrSpacing, 2); runningXPos += elementWidth; } else { runningXPos -= elementWidth; - data.TextNode->SetPositionFloat(runningXPos, 2); + data.TextNode->AtkResNode.SetPositionFloat(runningXPos, 2); } } else if (!nodeHidden) { // If we want the node hidden, shift it up, to prevent collision conflicts - node->SetYFloat(-collisionNode->Height * dtr->RootNode->ScaleX); - node->ToggleVisibility(false); + node->AtkResNode.SetYFloat(-collisionNode->Height * dtr->RootNode->ScaleX); + node->AtkResNode.ToggleVisibility(false); } data.Dirty = false; @@ -436,7 +427,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar private void FixCollision(AddonEvent eventType, AddonArgs addonInfo) { - var addon = addonInfo.Addon.Struct; + var addon = (AtkUnitBase*)addonInfo.Addon; if (addon->RootNode is null || addon->UldManager.NodeList is null) return; float minX = addon->RootNode->Width; @@ -524,20 +515,20 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar var node = data.TextNode = this.MakeNode(++this.runningNodeIds); - this.eventHandles.TryAdd(node->NodeId, []); - this.eventHandles[node->NodeId].AddRange(new List + this.eventHandles.TryAdd(node->AtkResNode.NodeId, new List()); + this.eventHandles[node->AtkResNode.NodeId].AddRange(new List { this.uiEventManager.AddEvent(AddonEventManager.DalamudInternalKey, (nint)dtr, (nint)node, AddonEventType.MouseOver, this.DtrEventHandler), this.uiEventManager.AddEvent(AddonEventManager.DalamudInternalKey, (nint)dtr, (nint)node, AddonEventType.MouseOut, this.DtrEventHandler), this.uiEventManager.AddEvent(AddonEventManager.DalamudInternalKey, (nint)dtr, (nint)node, AddonEventType.MouseClick, this.DtrEventHandler), }); - + var lastChild = dtr->RootNode->ChildNode; while (lastChild->PrevSiblingNode != null) lastChild = lastChild->PrevSiblingNode; Log.Debug($"Found last sibling: {(ulong)lastChild:X}"); lastChild->PrevSiblingNode = (AtkResNode*)node; - node->ParentNode = lastChild->ParentNode; - node->NextSiblingNode = lastChild; + node->AtkResNode.ParentNode = lastChild->ParentNode; + node->AtkResNode.NextSiblingNode = lastChild; dtr->RootNode->ChildCount = (ushort)(dtr->RootNode->ChildCount + 1); Log.Debug("Set last sibling of DTR and updated child count"); @@ -550,31 +541,22 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar return true; } - private void RemoveNode(DtrBarEntry data) + private void RemoveNode(AtkTextNode* node) { var dtr = this.GetDtr(); - var node = data.TextNode; if (dtr == null || dtr->RootNode == null || dtr->UldManager.NodeList == null || node == null) return; - if (this.eventHandles.TryGetValue(node->NodeId, out var eventHandles)) - { - eventHandles.ForEach(handle => this.uiEventManager.RemoveEvent(AddonEventManager.DalamudInternalKey, handle)); - eventHandles.Clear(); - } - else - { - Log.Warning("Could not find AtkResNode with NodeId {nodeId} in eventHandles", node->NodeId); - } + this.eventHandles[node->AtkResNode.NodeId].ForEach(handle => this.uiEventManager.RemoveEvent(AddonEventManager.DalamudInternalKey, handle)); + this.eventHandles[node->AtkResNode.NodeId].Clear(); - var tmpPrevNode = node->PrevSiblingNode; - var tmpNextNode = node->NextSiblingNode; + var tmpPrevNode = node->AtkResNode.PrevSiblingNode; + var tmpNextNode = node->AtkResNode.NextSiblingNode; // if (tmpNextNode != null) tmpNextNode->PrevSiblingNode = tmpPrevNode; if (tmpPrevNode != null) tmpPrevNode->NextSiblingNode = tmpNextNode; - node->Destroy(true); - data.TextNode = null; + node->AtkResNode.Destroy(true); dtr->RootNode->ChildCount = (ushort)(dtr->RootNode->ChildCount - 1); Log.Debug("Set last sibling of DTR and updated child count"); @@ -592,34 +574,46 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar return null; } - newTextNode->NodeId = nodeId; - newTextNode->Type = NodeType.Text; - newTextNode->NodeFlags = NodeFlags.AnchorLeft | NodeFlags.AnchorTop | NodeFlags.Enabled | NodeFlags.RespondToMouse | NodeFlags.HasCollision | NodeFlags.EmitsEvents; - newTextNode->DrawFlags = 12; - newTextNode->SetWidth(22); - newTextNode->SetHeight(22); - newTextNode->SetPositionFloat(-200, 2); + newTextNode->AtkResNode.NodeId = nodeId; + newTextNode->AtkResNode.Type = NodeType.Text; + newTextNode->AtkResNode.NodeFlags = NodeFlags.AnchorLeft | NodeFlags.AnchorTop | NodeFlags.Enabled | NodeFlags.RespondToMouse | NodeFlags.HasCollision | NodeFlags.EmitsEvents; + newTextNode->AtkResNode.DrawFlags = 12; + newTextNode->AtkResNode.SetWidth(22); + newTextNode->AtkResNode.SetHeight(22); + newTextNode->AtkResNode.SetPositionFloat(-200, 2); newTextNode->LineSpacing = 12; newTextNode->AlignmentFontType = 5; newTextNode->FontSize = 14; - newTextNode->TextFlags = TextFlags.Edge; + newTextNode->TextFlags = (byte)TextFlags.Edge; + newTextNode->TextFlags2 = 0; if (this.emptyString == null) this.emptyString = Utf8String.FromString(" "); - + newTextNode->SetText(this.emptyString->StringPtr); newTextNode->TextColor = new ByteColor { R = 255, G = 255, B = 255, A = 255 }; newTextNode->EdgeColor = new ByteColor { R = 142, G = 106, B = 12, A = 255 }; + // ICreatable was restored, this may be necessary if AtkUldManager.CreateAtkTextNode(); is used instead of Create + // // Memory is filled with random data after being created, zero out some things to avoid issues. + // newTextNode->UnkPtr_1 = null; + // newTextNode->SelectStart = 0; + // newTextNode->SelectEnd = 0; + // newTextNode->FontCacheHandle = 0; + // newTextNode->CharSpacing = 0; + // newTextNode->BackgroundColor = new ByteColor { R = 0, G = 0, B = 0, A = 0 }; + // newTextNode->TextId = 0; + // newTextNode->SheetType = 0; + return newTextNode; } - - private void DtrEventHandler(AddonEventType atkEventType, AddonEventData eventData) + + private void DtrEventHandler(AddonEventType atkEventType, IntPtr atkUnitBase, IntPtr atkResNode) { - var addon = (AtkUnitBase*)eventData.AddonPointer; - var node = (AtkResNode*)eventData.NodeTargetPointer; + var addon = (AtkUnitBase*)atkUnitBase; + var node = (AtkResNode*)atkResNode; DtrBarEntry? dtrBarEntry = null; this.entriesLock.EnterReadLock(); @@ -638,7 +632,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar case AddonEventType.MouseOver: AtkStage.Instance()->TooltipManager.ShowTooltip(addon->Id, node, dtrBarEntry.Tooltip.Encode()); break; - + case AddonEventType.MouseOut: AtkStage.Instance()->TooltipManager.HideTooltip(addon->Id); break; @@ -652,13 +646,13 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar case AddonEventType.MouseOver: this.uiEventManager.SetCursor(AddonCursorType.Clickable); break; - + case AddonEventType.MouseOut: this.uiEventManager.ResetCursor(); break; - + case AddonEventType.MouseClick: - dtrBarEntry.OnClick?.Invoke(DtrInteractionEvent.FromMouseEvent(new AddonMouseEventData(eventData))); + dtrBarEntry.OnClick.Invoke(); break; } } diff --git a/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs b/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs index 47e86fde1..8ba46f999 100644 --- a/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs +++ b/Dalamud/Game/Gui/Dtr/DtrBarEntry.cs @@ -1,6 +1,4 @@ -using System.Numerics; - -using Dalamud.Configuration.Internal; +using Dalamud.Configuration.Internal; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; @@ -19,46 +17,37 @@ public interface IReadOnlyDtrBarEntry /// Gets the title of this entry. /// public string Title { get; } - + /// /// Gets a value indicating whether this entry has a click action. /// public bool HasClickAction { get; } - + /// /// Gets the text of this entry. /// public SeString? Text { get; } - + /// /// Gets a tooltip to be shown when the user mouses over the dtr entry. /// public SeString? Tooltip { get; } - + /// /// Gets a value indicating whether this entry should be shown. /// public bool Shown { get; } - + /// - /// Gets a value indicating this entry's minimum width. - /// - public ushort MinimumWidth { get; } - - /// - /// Gets a value indicating whether the user has hidden this entry from view through the Dalamud settings. + /// Gets a value indicating whether or not the user has hidden this entry from view through the Dalamud settings. /// public bool UserHidden { get; } - + /// - /// Gets an action to be invoked when the user clicks on the dtr entry. + /// Triggers the click action of this entry. /// - public Action? OnClick { get; } - - /// - /// Gets the axis-aligned bounding box of this entry, in screen coordinates. - /// - public (Vector2 Min, Vector2 Max) ScreenBounds { get; } + /// True, if a click action was registered and executed. + public bool TriggerClickAction(); } /// @@ -70,27 +59,22 @@ public interface IDtrBarEntry : IReadOnlyDtrBarEntry /// Gets or sets the text of this entry. /// public new SeString? Text { get; set; } - + /// /// Gets or sets a tooltip to be shown when the user mouses over the dtr entry. /// public new SeString? Tooltip { get; set; } - + /// /// Gets or sets a value indicating whether this entry is visible. /// public new bool Shown { get; set; } - + /// - /// Gets or sets a value specifying the requested minimum width to make this entry. + /// Gets or sets a action to be invoked when the user clicks on the dtr entry. /// - public new ushort MinimumWidth { get; set; } - - /// - /// Gets or sets an action to be invoked when the user clicks on the dtr entry. - /// - public new Action? OnClick { get; set; } - + public Action? OnClick { get; set; } + /// /// Remove this entry from the bar. /// You will need to re-acquire it from DtrBar to reuse it. @@ -137,28 +121,11 @@ internal sealed unsafe class DtrBarEntry : IDisposable, IDtrBarEntry /// public SeString? Tooltip { get; set; } - - /// - public ushort MinimumWidth - { - get; - set - { - field = value; - if (this.TextNode is not null) - { - if (this.TextNode->GetWidth() < value) - { - this.TextNode->SetWidth(value); - } - } - - this.Dirty = true; - } - } - - /// - public Action? OnClick { get; set; } + + /// + /// Gets or sets a action to be invoked when the user clicks on the dtr entry. + /// + public Action? OnClick { get; set; } /// public bool HasClickAction => this.OnClick != null; @@ -178,25 +145,14 @@ internal sealed unsafe class DtrBarEntry : IDisposable, IDtrBarEntry } /// - [Api15ToDo("Maybe make this config scoped to internal name?")] + [Api11ToDo("Maybe make this config scoped to internalname?")] public bool UserHidden => this.configuration.DtrIgnore?.Contains(this.Title) ?? false; - /// - public (Vector2 Min, Vector2 Max) ScreenBounds - => this.TextNode switch - { - null => default, - var node => node->IsVisible() - ? (new(node->ScreenX, node->ScreenY), - new(node->ScreenX + node->GetWidth(), node->ScreenY + node->GetHeight())) - : default, - }; - /// /// Gets or sets the internal text node of this entry. /// internal AtkTextNode* TextNode { get; set; } - + /// /// Gets or sets the storage for the text of this entry. /// @@ -215,13 +171,23 @@ internal sealed unsafe class DtrBarEntry : IDisposable, IDtrBarEntry /// /// Gets or sets a value indicating whether this entry has just been added. /// - internal bool Added { get; set; } + internal bool Added { get; set; } /// /// Gets or sets the plugin that owns this entry. /// internal LocalPlugin? OwnerPlugin { get; set; } + /// + public bool TriggerClickAction() + { + if (this.OnClick == null) + return false; + + this.OnClick.Invoke(); + return true; + } + /// /// Remove this entry from the bar. /// You will need to re-acquire it from DtrBar to reuse it. diff --git a/Dalamud/Game/Gui/Dtr/DtrInteractionEvent.cs b/Dalamud/Game/Gui/Dtr/DtrInteractionEvent.cs deleted file mode 100644 index 8b2bd8a7d..000000000 --- a/Dalamud/Game/Gui/Dtr/DtrInteractionEvent.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System.Numerics; - -using Dalamud.Game.Addon.Events.EventDataTypes; - -namespace Dalamud.Game.Gui.Dtr; - -/// -/// Represents an interaction event from the DTR system. -/// -public class DtrInteractionEvent -{ - /// - /// Gets the type of mouse click (left or right). - /// - public MouseClickType ClickType { get; init; } - - /// - /// Gets the modifier keys that were held during the click. - /// - public ClickModifierKeys ModifierKeys { get; init; } - - /// - /// Gets the scroll direction of the mouse wheel, if applicable. - /// - public MouseScrollDirection ScrollDirection { get; init; } - - /// - /// Gets lower-level mouse data, if this event came from native UI. - /// - /// Can only be set by Dalamud. If null, this event was manually created. - /// - public AddonMouseEventData? AtkEventSource { get; private init; } - - /// - /// Gets the position of the mouse cursor when the event occurred. - /// - public Vector2 Position { get; init; } - - /// - /// Helper to create a from an . - /// - /// The event. - /// A better event. - public static DtrInteractionEvent FromMouseEvent(AddonMouseEventData ev) - { - return new DtrInteractionEvent - { - AtkEventSource = ev, - ClickType = ev.IsLeftClick ? MouseClickType.Left : MouseClickType.Right, - ModifierKeys = (ev.IsAltHeld ? ClickModifierKeys.Alt : 0) | - (ev.IsControlHeld ? ClickModifierKeys.Ctrl : 0) | - (ev.IsShiftHeld ? ClickModifierKeys.Shift : 0), - ScrollDirection = ev.IsScrollUp ? MouseScrollDirection.Up : - ev.IsScrollDown ? MouseScrollDirection.Down : - MouseScrollDirection.None, - Position = ev.Position, - }; - } -} diff --git a/Dalamud/Game/Gui/Dtr/DtrInteractionTypes.cs b/Dalamud/Game/Gui/Dtr/DtrInteractionTypes.cs deleted file mode 100644 index 7c498dc94..000000000 --- a/Dalamud/Game/Gui/Dtr/DtrInteractionTypes.cs +++ /dev/null @@ -1,65 +0,0 @@ -namespace Dalamud.Game.Gui.Dtr; - -/// -/// An enum representing the mouse click types. -/// -public enum MouseClickType -{ - /// - /// A left click. - /// - Left, - - /// - /// A right click. - /// - Right, -} - -/// -/// Modifier keys that can be held during a mouse click event. -/// -[Flags] -public enum ClickModifierKeys -{ - /// - /// No modifiers were present. - /// - None = 0, - - /// - /// The CTRL key was held. - /// - Ctrl = 1 << 0, - - /// - /// The ALT key was held. - /// - Alt = 1 << 1, - - /// - /// The SHIFT key was held. - /// - Shift = 1 << 2, -} - -/// -/// Possible directions for scroll wheel events. -/// -public enum MouseScrollDirection -{ - /// - /// No scrolling. - /// - None = 0, - - /// - /// A scroll up event. - /// - Up = 1, - - /// - /// A scroll down event. - /// - Down = -1, -} diff --git a/Dalamud/Game/Gui/FlyText/FlyTextGui.cs b/Dalamud/Game/Gui/FlyText/FlyTextGui.cs index d869c6fd1..cbf166cfc 100644 --- a/Dalamud/Game/Gui/FlyText/FlyTextGui.cs +++ b/Dalamud/Game/Gui/FlyText/FlyTextGui.cs @@ -75,7 +75,7 @@ internal sealed class FlyTextGui : IInternalDisposableService, IFlyTextGui strArray->SetValue((int)strOffset + 0, text1.EncodeWithNullTerminator(), false, true, false); strArray->SetValue((int)strOffset + 1, text2.EncodeWithNullTerminator(), false, true, false); - + flytext->AddFlyText(actorIndex, 1, numArray, numOffset, 10, strArray, strOffset, 2, 0); } @@ -116,27 +116,17 @@ internal sealed class FlyTextGui : IInternalDisposableService, IFlyTextGui $"text1({(nint)text1:X}, \"{tmpText1}\") text2({(nint)text2:X}, \"{tmpText2}\") " + $"color({color:X}) icon({icon}) yOffset({yOffset})"); Log.Verbose("[FlyText] Calling flytext events!"); - foreach (var d in Delegate.EnumerateInvocationList(this.FlyTextCreated)) - { - try - { - d( - ref tmpKind, - ref tmpVal1, - ref tmpVal2, - ref tmpText1, - ref tmpText2, - ref tmpColor, - ref tmpIcon, - ref tmpDamageTypeIcon, - ref tmpYOffset, - ref handled); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", d.Method); - } - } + this.FlyTextCreated?.Invoke( + ref tmpKind, + ref tmpVal1, + ref tmpVal2, + ref tmpText1, + ref tmpText2, + ref tmpColor, + ref tmpIcon, + ref tmpDamageTypeIcon, + ref tmpYOffset, + ref handled); // If handled, ignore the original call if (handled) diff --git a/Dalamud/Game/Gui/FlyText/FlyTextKind.cs b/Dalamud/Game/Gui/FlyText/FlyTextKind.cs index da448c683..3727fd0f8 100644 --- a/Dalamud/Game/Gui/FlyText/FlyTextKind.cs +++ b/Dalamud/Game/Gui/FlyText/FlyTextKind.cs @@ -92,229 +92,214 @@ public enum FlyTextKind : int /// IslandExp = 15, - /// - /// Val1 in serif font next to all caps condensed font Text1 with Text2 in sans-serif as subtitle. - /// - Dataset = 16, - - /// - /// Val1 in serif font, Text2 in sans-serif as subtitle. - /// - Knowledge = 17, - - /// - /// Val1 in serif font, Text2 in sans-serif as subtitle. - /// - PhantomExp = 18, - /// /// Sans-serif Text1 next to serif Val1 with all caps condensed font MP with Text2 in sans-serif as subtitle. /// - MpDrain = 19, + MpDrain = 16, /// /// Currently not used by the game. /// Sans-serif Text1 next to serif Val1 with all caps condensed font TP with Text2 in sans-serif as subtitle. /// - NamedTp = 20, + NamedTp = 17, /// /// Val1 in serif font, Text2 in sans-serif as subtitle with sans-serif Text1 to the left of the Val1. /// - Healing = 21, + Healing = 18, /// /// Sans-serif Text1 next to serif Val1 with all caps condensed font MP with Text2 in sans-serif as subtitle. /// - MpRegen = 22, + MpRegen = 19, /// /// Currently not used by the game. /// Sans-serif Text1 next to serif Val1 with all caps condensed font TP with Text2 in sans-serif as subtitle. /// - NamedTp2 = 23, + NamedTp2 = 20, /// /// Sans-serif Text1 next to serif Val1 with all caps condensed font EP with Text2 in sans-serif as subtitle. /// - EpRegen = 24, + EpRegen = 21, /// /// Sans-serif Text1 next to serif Val1 with all caps condensed font CP with Text2 in sans-serif as subtitle. /// - CpRegen = 25, + CpRegen = 22, /// /// Sans-serif Text1 next to serif Val1 with all caps condensed font GP with Text2 in sans-serif as subtitle. /// - GpRegen = 26, + GpRegen = 23, /// /// Displays nothing. /// - None = 27, + None = 24, /// /// All caps serif INVULNERABLE. /// - Invulnerable = 28, + Invulnerable = 25, /// /// All caps sans-serif condensed font INTERRUPTED! /// Does a large bounce effect on appearance. /// Does not scroll up or down the screen. /// - Interrupted = 29, + Interrupted = 26, /// /// Val1 in serif font. /// - CraftingProgress = 30, + CraftingProgress = 27, /// /// Val1 in serif font. /// - CraftingQuality = 31, + CraftingQuality = 28, /// /// Val1 in larger serif font with exclamation, with Text2 in sans-serif as subtitle. Does a bigger bounce effect on appearance. /// - CraftingQualityCrit = 32, + CraftingQualityCrit = 29, /// /// Currently not used by the game. /// Val1 in serif font. /// - AutoAttackNoText3 = 33, + AutoAttackNoText3 = 30, /// /// CriticalHit with sans-serif Text1 to the left of the Val1 (2). /// - HealingCrit = 34, + HealingCrit = 31, /// /// Currently not used by the game. /// Same as DamageCrit with a MP in condensed font to the right of Val1. /// Does a jiggle effect to the right on appearance. /// - NamedCriticalHitWithMp = 35, + NamedCriticalHitWithMp = 32, /// /// Currently not used by the game. /// Same as DamageCrit with a TP in condensed font to the right of Val1. /// Does a jiggle effect to the right on appearance. /// - NamedCriticalHitWithTp = 36, + NamedCriticalHitWithTp = 33, /// /// Icon next to sans-serif Text1 with sans-serif "has no effect!" to the right. /// - DebuffNoEffect = 37, + DebuffNoEffect = 34, /// /// Icon next to sans-serif slightly faded Text1. /// - BuffFading = 38, + BuffFading = 35, /// /// Icon next to sans-serif slightly faded Text1. /// - DebuffFading = 39, + DebuffFading = 36, /// /// Text1 in sans-serif font. /// - Named = 40, + Named = 37, /// /// Icon next to sans-serif Text1 with sans-serif "(fully resisted)" to the right. /// - DebuffResisted = 41, + DebuffResisted = 38, /// /// All caps serif 'INCAPACITATED!'. /// - Incapacitated = 42, + Incapacitated = 39, /// /// Text1 with sans-serif "(fully resisted)" to the right. /// - FullyResisted = 43, + FullyResisted = 40, /// /// Text1 with sans-serif "has no effect!" to the right. /// - HasNoEffect = 44, + HasNoEffect = 41, /// /// Val1 in serif font, Text2 in sans-serif as subtitle with sans-serif Text1 to the left of the Val1. /// - HpDrain = 45, + HpDrain = 42, /// /// Currently not used by the game. /// Sans-serif Text1 next to serif Val1 with all caps condensed font MP with Text2 in sans-serif as subtitle. /// - NamedMp3 = 46, + NamedMp3 = 43, /// /// Currently not used by the game. /// Sans-serif Text1 next to serif Val1 with all caps condensed font TP with Text2 in sans-serif as subtitle. /// - NamedTp3 = 47, + NamedTp3 = 44, /// /// Icon next to sans-serif Text1 with serif "INVULNERABLE!" beneath the Text1. /// - DebuffInvulnerable = 48, + DebuffInvulnerable = 45, /// /// All caps serif RESIST. /// - Resist = 49, + Resist = 46, /// /// Icon with an item icon outline next to sans-serif Text1. /// - LootedItem = 50, + LootedItem = 47, /// /// Val1 in serif font. /// - Collectability = 51, + Collectability = 48, /// /// Val1 in larger serif font with exclamation, with Text2 in sans-serif as subtitle. /// Does a bigger bounce effect on appearance. /// - CollectabilityCrit = 52, + CollectabilityCrit = 49, /// /// All caps serif REFLECT. /// - Reflect = 53, + Reflect = 50, /// /// All caps serif REFLECTED. /// - Reflected = 54, + Reflected = 51, /// /// Val1 in serif font, Text2 in sans-serif as subtitle. /// Does a bounce effect on appearance. /// - CraftingQualityDh = 55, + CraftingQualityDh = 52, /// /// Currently not used by the game. /// Val1 in larger serif font with exclamation, with Text2 in sans-serif as subtitle. /// Does a bigger bounce effect on appearance. /// - CriticalHit4 = 56, + CriticalHit4 = 53, /// /// Val1 in even larger serif font with 2 exclamations, Text2 in sans-serif as subtitle. /// Does a large bounce effect on appearance. Does not scroll up or down the screen. /// - CraftingQualityCritDh = 57, + CraftingQualityCritDh = 54, } diff --git a/Dalamud/Game/Gui/GameGui.cs b/Dalamud/Game/Gui/GameGui.cs index 3b0f6eb66..aecbb7201 100644 --- a/Dalamud/Game/Gui/GameGui.cs +++ b/Dalamud/Game/Gui/GameGui.cs @@ -1,7 +1,5 @@ using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; -using Dalamud.Game.NativeWrapper; using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Hooking; using Dalamud.Interface.Utility; @@ -11,7 +9,6 @@ using Dalamud.Logging.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; -using FFXIVClientStructs.FFXIV.Client.Game; using FFXIVClientStructs.FFXIV.Client.Game.Control; using FFXIVClientStructs.FFXIV.Client.Graphics.Kernel; using FFXIVClientStructs.FFXIV.Client.System.String; @@ -19,6 +16,7 @@ using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Client.UI.Agent; using FFXIVClientStructs.FFXIV.Common.Component.BGCollision; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; using Vector2 = System.Numerics.Vector2; using Vector3 = System.Numerics.Vector3; @@ -32,10 +30,11 @@ namespace Dalamud.Game.Gui; [ServiceManager.EarlyLoadedService] internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("GameGui"); private readonly GameGuiAddressResolver address; + private readonly Hook setGlobalBgmHook; private readonly Hook handleItemHoverHook; private readonly Hook handleItemOutHook; private readonly Hook handleActionHoverHook; @@ -43,7 +42,6 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui private readonly Hook handleImmHook; private readonly Hook setUiVisibilityHook; private readonly Hook utf8StringFromSequenceHook; - private readonly Hook raptureAtkModuleUpdateHook; [ServiceManager.ServiceConstructor] private GameGui(TargetSigScanner sigScanner) @@ -52,8 +50,12 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui this.address.Setup(sigScanner); Log.Verbose("===== G A M E G U I ====="); + Log.Verbose($"GameGuiManager address {Util.DescribeAddress(this.address.BaseAddress)}"); + Log.Verbose($"SetGlobalBgm address {Util.DescribeAddress(this.address.SetGlobalBgm)}"); Log.Verbose($"HandleImm address {Util.DescribeAddress(this.address.HandleImm)}"); + this.setGlobalBgmHook = Hook.FromAddress(this.address.SetGlobalBgm, this.HandleSetGlobalBgmDetour); + this.handleItemHoverHook = Hook.FromAddress((nint)AgentItemDetail.StaticVirtualTablePointer->Update, this.HandleItemHoverDetour); this.handleItemOutHook = Hook.FromAddress((nint)AgentItemDetail.StaticVirtualTablePointer->ReceiveEvent, this.HandleItemOutDetour); @@ -66,10 +68,7 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui this.utf8StringFromSequenceHook = Hook.FromAddress(Utf8String.Addresses.Ctor_FromSequence.Value, this.Utf8StringFromSequenceDetour); - this.raptureAtkModuleUpdateHook = Hook.FromFunctionPointerVariable( - new(&RaptureAtkModule.StaticVirtualTablePointer->Update), - this.RaptureAtkModuleUpdateDetour); - + this.setGlobalBgmHook.Enable(); this.handleItemHoverHook.Enable(); this.handleItemOutHook.Enable(); this.handleImmHook.Enable(); @@ -77,10 +76,12 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui this.handleActionHoverHook.Enable(); this.handleActionOutHook.Enable(); this.utf8StringFromSequenceHook.Enable(); - this.raptureAtkModuleUpdateHook.Enable(); } // Hooked delegates + + [UnmanagedFunctionPointer(CallingConvention.ThisCall)] + private delegate IntPtr SetGlobalBgmDelegate(ushort bgmKey, byte a2, uint a3, uint a4, uint a5, byte a6); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate char HandleImmDelegate(IntPtr framework, char a2, byte a3); @@ -94,9 +95,6 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui /// public event EventHandler? HoveredActionChanged; - /// - public event Action AgentUpdate; - /// public bool GameUiHidden { get; private set; } @@ -176,63 +174,79 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui } /// - public UIModulePtr GetUIModule() + public IntPtr GetUIModule() { - return (nint)UIModule.Instance(); + var framework = FFXIVClientStructs.FFXIV.Client.System.Framework.Framework.Instance(); + if (framework == null) + return IntPtr.Zero; + + var uiModule = framework->GetUIModule(); + if (uiModule == null) + return IntPtr.Zero; + + return (IntPtr)uiModule; } /// - public AtkUnitBasePtr GetAddonByName(string name, int index = 1) + public IntPtr GetAddonByName(string name, int index = 1) { - var unitManager = RaptureAtkUnitManager.Instance(); - if (unitManager == null) - return 0; + var atkStage = AtkStage.Instance(); + if (atkStage == null) + return IntPtr.Zero; - return (nint)unitManager->GetAddonByName(name, index); + var unitMgr = atkStage->RaptureAtkUnitManager; + if (unitMgr == null) + return IntPtr.Zero; + + var addon = unitMgr->GetAddonByName(name, index); + if (addon == null) + return IntPtr.Zero; + + return (IntPtr)addon; } /// - public T* GetAddonByName(string name, int index = 1) where T : unmanaged - => (T*)this.GetAddonByName(name, index).Address; - - /// - public AgentInterfacePtr GetAgentById(int id) - { - var agentModule = AgentModule.Instance(); - if (agentModule == null || id < 0 || id >= agentModule->Agents.Length) - return 0; - - return (nint)agentModule->Agents[id].Value; - } - - /// - public AgentInterfacePtr FindAgentInterface(string addonName) + public IntPtr FindAgentInterface(string addonName) { var addon = this.GetAddonByName(addonName); return this.FindAgentInterface(addon); } /// - public AgentInterfacePtr FindAgentInterface(AtkUnitBasePtr addon) + public IntPtr FindAgentInterface(void* addon) => this.FindAgentInterface((IntPtr)addon); + + /// + public IntPtr FindAgentInterface(IntPtr addonPtr) { - if (addon.IsNull) - return 0; + if (addonPtr == IntPtr.Zero) + return IntPtr.Zero; - var agentModule = AgentModule.Instance(); + var uiModule = (UIModule*)this.GetUIModule(); + if (uiModule == null) + return IntPtr.Zero; + + var agentModule = uiModule->GetAgentModule(); if (agentModule == null) - return 0; + return IntPtr.Zero; + + var addon = (AtkUnitBase*)addonPtr; + var addonId = addon->ParentId == 0 ? addon->Id : addon->ParentId; - var addonId = addon.ParentId == 0 ? addon.Id : addon.ParentId; if (addonId == 0) - return 0; + return IntPtr.Zero; - foreach (AgentInterface* agent in agentModule->Agents) + var index = 0; + while (true) { - if (agent != null && agent->AddonId == addonId) - return (nint)agent; + var agent = agentModule->GetAgentByInternalId((AgentId)index++); + if (agent == uiModule || agent == null) + break; + + if (agent->AddonId == addonId) + return new IntPtr(agent); } - return 0; + return IntPtr.Zero; } /// @@ -240,6 +254,7 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui /// void IInternalDisposableService.DisposeService() { + this.setGlobalBgmHook.Dispose(); this.handleItemHoverHook.Dispose(); this.handleItemOutHook.Dispose(); this.handleImmHook.Dispose(); @@ -247,27 +262,28 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui this.handleActionHoverHook.Dispose(); this.handleActionOutHook.Dispose(); this.utf8StringFromSequenceHook.Dispose(); - this.raptureAtkModuleUpdateHook.Dispose(); } /// - /// Indicates if the game is in the lobby scene (title screen, chara select, chara make, aesthetician etc.). + /// Indicates if the game is on the title screen. /// - /// A value indicating whether the game is in the lobby scene. - internal bool IsInLobby() => RaptureAtkModule.Instance()->CurrentUIScene.StartsWith("LobbyMain"u8); + /// A value indicating whether or not the game is on the title screen. + internal bool IsOnTitleScreen() + { + var charaSelect = this.GetAddonByName("CharaSelect"); + var charaMake = this.GetAddonByName("CharaMake"); + var titleDcWorldMap = this.GetAddonByName("TitleDCWorldMap"); + if (charaMake != nint.Zero || charaSelect != nint.Zero || titleDcWorldMap != nint.Zero) + return false; + + return !Service.Get().IsLoggedIn; + } /// - /// Sets the current background music. + /// Set the current background music. /// - /// The BGM row id. - /// The BGM scene index. Defaults to MiniGame scene to avoid conflicts. - internal void SetBgm(ushort bgmId, uint sceneId = 2) => BGMSystem.SetBGM(bgmId, sceneId); - - /// - /// Resets the current background music. - /// - /// The BGM scene index. - internal void ResetBgm(uint sceneId = 2) => BGMSystem.Instance()->ResetBGM(sceneId); + /// The background music key. + internal void SetBgm(ushort bgmKey) => this.setGlobalBgmHook.Original(bgmKey, 0, 0, 0, 0, 0); /// /// Reset the stored "UI hide" state. @@ -277,6 +293,15 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui this.GameUiHidden = false; } + private IntPtr HandleSetGlobalBgmDetour(ushort bgmKey, byte a2, uint a3, uint a4, uint a5, byte a6) + { + var retVal = this.setGlobalBgmHook.Original(bgmKey, a2, a3, a4, a5, a6); + + Log.Verbose("SetGlobalBgm: {0} {1} {2} {3} {4} {5} -> {6}", bgmKey, a2, a3, a4, a5, a6, retVal); + + return retVal; + } + private void HandleItemHoverDetour(AgentItemDetail* thisPtr, uint frameCount) { this.handleItemHoverHook.Original(thisPtr, frameCount); @@ -290,6 +315,8 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui this.HoveredItem = itemId; this.HoveredItemChanged?.InvokeSafely(this, itemId); + + Log.Verbose($"HoveredItem changed: {itemId}"); } private AtkValue* HandleItemOutDetour(AgentItemDetail* thisPtr, AtkValue* returnValue, AtkValue* values, uint valueCount, ulong eventKind) @@ -299,19 +326,31 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui if (values != null && valueCount == 1 && values->Int == -1) { this.HoveredItem = 0; - this.HoveredItemChanged?.InvokeSafely(this, 0ul); + + try + { + this.HoveredItemChanged?.Invoke(this, 0); + } + catch (Exception e) + { + Log.Error(e, "Could not dispatch HoveredItemChanged event."); + } + + Log.Verbose("HoveredItem changed: 0"); } return ret; } - private void HandleActionHoverDetour(AgentActionDetail* hoverState, FFXIVClientStructs.FFXIV.Client.UI.Agent.ActionKind actionKind, uint actionId, int a4, bool a5, int a6, int a7) + private void HandleActionHoverDetour(AgentActionDetail* hoverState, ActionKind actionKind, uint actionId, int a4, byte a5) { - this.handleActionHoverHook.Original(hoverState, actionKind, actionId, a4, a5, a6, a7); + this.handleActionHoverHook.Original(hoverState, actionKind, actionId, a4, a5); this.HoveredAction.ActionKind = (HoverActionKind)actionKind; this.HoveredAction.BaseActionID = actionId; this.HoveredAction.ActionID = hoverState->ActionId; this.HoveredActionChanged?.InvokeSafely(this, this.HoveredAction); + + Log.Verbose($"HoverActionId: {actionKind}/{actionId} this:{(nint)hoverState:X}"); } private AtkValue* HandleActionOutDetour(AgentActionDetail* agentActionDetail, AtkValue* a2, AtkValue* a3, uint a4, ulong a5) @@ -327,14 +366,24 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui this.HoveredAction.ActionKind = HoverActionKind.None; this.HoveredAction.BaseActionID = 0; this.HoveredAction.ActionID = 0; - this.HoveredActionChanged?.InvokeSafely(this, this.HoveredAction); + + try + { + this.HoveredActionChanged?.Invoke(this, this.HoveredAction); + } + catch (Exception e) + { + Log.Error(e, "Could not dispatch HoveredActionChanged event."); + } + + Log.Verbose("HoverActionId: 0"); } } return retVal; } - private void SetUiVisibilityDetour(RaptureAtkModule* thisPtr, bool uiVisible) + private unsafe void SetUiVisibilityDetour(RaptureAtkModule* thisPtr, bool uiVisible) { this.setUiVisibilityHook.Original(thisPtr, uiVisible); @@ -364,21 +413,6 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui return thisPtr; // this function shouldn't need to return but the original asm moves this into rax before returning so be safe? } - - private void RaptureAtkModuleUpdateDetour(RaptureAtkModule* thisPtr, float delta) - { - // The game clears the AgentUpdateFlag in the original function, but it also updates agents in it too. - // We'll make a copy of the flags, so that we can fire events after the agents have been updated. - - var agentUpdateFlag = thisPtr->AgentUpdateFlag; - - this.raptureAtkModuleUpdateHook.Original(thisPtr, delta); - - if (agentUpdateFlag != RaptureAtkModule.AgentUpdateFlags.None) - { - this.AgentUpdate.InvokeSafely((AgentUpdateFlag)agentUpdateFlag); - } - } } /// @@ -402,7 +436,6 @@ internal class GameGuiPluginScoped : IInternalDisposableService, IGameGui this.gameGuiService.UiHideToggled += this.UiHideToggledForward; this.gameGuiService.HoveredItemChanged += this.HoveredItemForward; this.gameGuiService.HoveredActionChanged += this.HoveredActionForward; - this.gameGuiService.AgentUpdate += this.AgentUpdateForward; } /// @@ -414,9 +447,6 @@ internal class GameGuiPluginScoped : IInternalDisposableService, IGameGui /// public event EventHandler? HoveredActionChanged; - /// - public event Action AgentUpdate; - /// public bool GameUiHidden => this.gameGuiService.GameUiHidden; @@ -436,7 +466,6 @@ internal class GameGuiPluginScoped : IInternalDisposableService, IGameGui this.gameGuiService.UiHideToggled -= this.UiHideToggledForward; this.gameGuiService.HoveredItemChanged -= this.HoveredItemForward; this.gameGuiService.HoveredActionChanged -= this.HoveredActionForward; - this.gameGuiService.AgentUpdate -= this.AgentUpdateForward; this.UiHideToggled = null; this.HoveredItemChanged = null; @@ -460,34 +489,28 @@ internal class GameGuiPluginScoped : IInternalDisposableService, IGameGui => this.gameGuiService.ScreenToWorld(screenPos, out worldPos, rayDistance); /// - public UIModulePtr GetUIModule() + public IntPtr GetUIModule() => this.gameGuiService.GetUIModule(); /// - public AtkUnitBasePtr GetAddonByName(string name, int index = 1) + public IntPtr GetAddonByName(string name, int index = 1) => this.gameGuiService.GetAddonByName(name, index); /// - public unsafe T* GetAddonByName(string name, int index = 1) where T : unmanaged - => (T*)this.gameGuiService.GetAddonByName(name, index).Address; - - /// - public AgentInterfacePtr GetAgentById(int id) - => this.gameGuiService.GetAgentById(id); - - /// - public AgentInterfacePtr FindAgentInterface(string addonName) + public IntPtr FindAgentInterface(string addonName) => this.gameGuiService.FindAgentInterface(addonName); /// - public AgentInterfacePtr FindAgentInterface(AtkUnitBasePtr addon) + public unsafe IntPtr FindAgentInterface(void* addon) => this.gameGuiService.FindAgentInterface(addon); + /// + public IntPtr FindAgentInterface(IntPtr addonPtr) + => this.gameGuiService.FindAgentInterface(addonPtr); + private void UiHideToggledForward(object sender, bool toggled) => this.UiHideToggled?.Invoke(sender, toggled); private void HoveredItemForward(object sender, ulong itemId) => this.HoveredItemChanged?.Invoke(sender, itemId); private void HoveredActionForward(object sender, HoveredAction hoverAction) => this.HoveredActionChanged?.Invoke(sender, hoverAction); - - private void AgentUpdateForward(AgentUpdateFlag agentUpdateFlag) => this.AgentUpdate.InvokeSafely(agentUpdateFlag); } diff --git a/Dalamud/Game/Gui/GameGuiAddressResolver.cs b/Dalamud/Game/Gui/GameGuiAddressResolver.cs index 1295e2047..bdd579c7e 100644 --- a/Dalamud/Game/Gui/GameGuiAddressResolver.cs +++ b/Dalamud/Game/Gui/GameGuiAddressResolver.cs @@ -1,5 +1,3 @@ -using Dalamud.Plugin.Services; - namespace Dalamud.Game.Gui; /// @@ -7,6 +5,16 @@ namespace Dalamud.Game.Gui; /// internal sealed class GameGuiAddressResolver : BaseAddressResolver { + /// + /// Gets the base address of the native GuiManager class. + /// + public IntPtr BaseAddress { get; private set; } + + /// + /// Gets the address of the native SetGlobalBgm method. + /// + public IntPtr SetGlobalBgm { get; private set; } + /// /// Gets the address of the native HandleImm method. /// @@ -15,6 +23,7 @@ internal sealed class GameGuiAddressResolver : BaseAddressResolver /// protected override void Setup64Bit(ISigScanner sig) { + this.SetGlobalBgm = sig.ScanText("E8 ?? ?? ?? ?? 8B 2F"); // unnamed in CS this.HandleImm = sig.ScanText("E8 ?? ?? ?? ?? 84 C0 75 10 48 83 FF 09"); // unnamed in CS } } diff --git a/Dalamud/Game/Gui/HoverActionKind.cs b/Dalamud/Game/Gui/HoverActionKind.cs index b786f12ee..ef8fe6400 100644 --- a/Dalamud/Game/Gui/HoverActionKind.cs +++ b/Dalamud/Game/Gui/HoverActionKind.cs @@ -14,145 +14,140 @@ public enum HoverActionKind /// /// A regular action is hovered. /// - Action = 29, + Action = 28, /// /// A crafting action is hovered. /// - CraftingAction = 30, + CraftingAction = 29, /// /// A general action is hovered. /// - GeneralAction = 31, + GeneralAction = 30, /// /// A companion order type of action is hovered. /// - CompanionOrder = 32, // Game Term: BuddyOrder + CompanionOrder = 31, // Game Term: BuddyOrder /// /// A main command type of action is hovered. /// - MainCommand = 33, + MainCommand = 32, /// /// An extras command type of action is hovered. /// - ExtraCommand = 34, + ExtraCommand = 33, /// /// A companion action is hovered. /// - Companion = 35, + Companion = 34, /// /// A pet order type of action is hovered. /// - PetOrder = 36, + PetOrder = 35, /// /// A trait is hovered. /// - Trait = 37, + Trait = 36, /// /// A buddy action is hovered. /// - BuddyAction = 38, + BuddyAction = 37, /// /// A company action is hovered. /// - CompanyAction = 39, + CompanyAction = 38, /// /// A mount is hovered. /// - Mount = 40, + Mount = 39, /// /// A chocobo race action is hovered. /// - ChocoboRaceAction = 41, + ChocoboRaceAction = 40, /// /// A chocobo race item is hovered. /// - ChocoboRaceItem = 42, + ChocoboRaceItem = 41, /// /// A deep dungeon equipment is hovered. /// - DeepDungeonEquipment = 43, + DeepDungeonEquipment = 42, /// /// A deep dungeon equipment 2 is hovered. /// - DeepDungeonEquipment2 = 44, + DeepDungeonEquipment2 = 43, /// /// A deep dungeon item is hovered. /// - DeepDungeonItem = 45, + DeepDungeonItem = 44, /// /// A quick chat is hovered. /// - QuickChat = 46, + QuickChat = 45, /// /// An action combo route is hovered. /// - ActionComboRoute = 47, + ActionComboRoute = 46, /// /// A pvp trait is hovered. /// - PvPSelectTrait = 48, + PvPSelectTrait = 47, /// /// A squadron action is hovered. /// - BgcArmyAction = 49, + BgcArmyAction = 48, /// /// A perform action is hovered. /// - Perform = 50, + Perform = 49, /// /// A deep dungeon magic stone is hovered. /// - DeepDungeonMagicStone = 51, + DeepDungeonMagicStone = 50, /// /// A deep dungeon demiclone is hovered. /// - DeepDungeonDemiclone = 52, + DeepDungeonDemiclone = 51, /// /// An eureka magia action is hovered. /// - EurekaMagiaAction = 53, + EurekaMagiaAction = 52, /// /// An island sanctuary temporary item is hovered. /// - MYCTemporaryItem = 54, + MYCTemporaryItem = 53, /// /// An ornament is hovered. /// - Ornament = 55, + Ornament = 54, /// /// Glasses are hovered. /// - Glasses = 56, - - /// - /// Phantom Job Trait is hovered. - /// - MKDTrait = 58, + Glasses = 55, } diff --git a/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs b/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs index 7f83f180c..32192ad21 100644 --- a/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs +++ b/Dalamud/Game/Gui/NamePlate/NamePlateGui.cs @@ -6,7 +6,6 @@ using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; -using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; @@ -72,7 +71,7 @@ internal sealed class NamePlateGui : IInternalDisposableService, INamePlateGui /// public unsafe void RequestRedraw() { - var addon = (AddonNamePlate*)(nint)this.gameGui.GetAddonByName("NamePlate"); + var addon = (AddonNamePlate*)this.gameGui.GetAddonByName("NamePlate"); if (addon != null) { addon->DoFullUpdate = 1; @@ -170,8 +169,8 @@ internal sealed class NamePlateGui : IInternalDisposableService, INamePlateGui handler.ResetState(); } - this.OnDataUpdate?.InvokeSafely(this.context, activeHandlers); - this.OnNamePlateUpdate?.InvokeSafely(this.context, activeHandlers); + this.OnDataUpdate?.Invoke(this.context, activeHandlers); + this.OnNamePlateUpdate?.Invoke(this.context, activeHandlers); if (this.context.HasParts) this.ApplyBuilders(activeHandlers); @@ -186,8 +185,8 @@ internal sealed class NamePlateGui : IInternalDisposableService, INamePlateGui Log.Error(e, "Caught exception when calling original AddonNamePlate OnRequestedUpdate."); } - this.OnPostNamePlateUpdate?.InvokeSafely(this.context, activeHandlers); - this.OnPostDataUpdate?.InvokeSafely(this.context, activeHandlers); + this.OnPostNamePlateUpdate?.Invoke(this.context, activeHandlers); + this.OnPostDataUpdate?.Invoke(this.context, activeHandlers); } else { @@ -201,8 +200,8 @@ internal sealed class NamePlateGui : IInternalDisposableService, INamePlateGui if (this.OnDataUpdate is not null) { - this.OnDataUpdate?.InvokeSafely(this.context, activeHandlers); - this.OnNamePlateUpdate?.InvokeSafely(this.context, updatedHandlers); + this.OnDataUpdate?.Invoke(this.context, activeHandlers); + this.OnNamePlateUpdate?.Invoke(this.context, updatedHandlers); if (this.context.HasParts) this.ApplyBuilders(activeHandlers); @@ -217,12 +216,12 @@ internal sealed class NamePlateGui : IInternalDisposableService, INamePlateGui Log.Error(e, "Caught exception when calling original AddonNamePlate OnRequestedUpdate."); } - this.OnPostNamePlateUpdate?.InvokeSafely(this.context, updatedHandlers); - this.OnPostDataUpdate?.InvokeSafely(this.context, activeHandlers); + this.OnPostNamePlateUpdate?.Invoke(this.context, updatedHandlers); + this.OnPostDataUpdate?.Invoke(this.context, activeHandlers); } else if (updatedHandlers.Count != 0) { - this.OnNamePlateUpdate?.InvokeSafely(this.context, updatedHandlers); + this.OnNamePlateUpdate?.Invoke(this.context, updatedHandlers); if (this.context.HasParts) this.ApplyBuilders(updatedHandlers); @@ -237,8 +236,8 @@ internal sealed class NamePlateGui : IInternalDisposableService, INamePlateGui Log.Error(e, "Caught exception when calling original AddonNamePlate OnRequestedUpdate."); } - this.OnPostNamePlateUpdate?.InvokeSafely(this.context, updatedHandlers); - this.OnPostDataUpdate?.InvokeSafely(this.context, activeHandlers); + this.OnPostNamePlateUpdate?.Invoke(this.context, updatedHandlers); + this.OnPostDataUpdate?.Invoke(this.context, activeHandlers); } } } diff --git a/Dalamud/Game/Gui/NamePlate/NamePlateGuiAddressResolver.cs b/Dalamud/Game/Gui/NamePlate/NamePlateGuiAddressResolver.cs index f97450c28..450e1fa9f 100644 --- a/Dalamud/Game/Gui/NamePlate/NamePlateGuiAddressResolver.cs +++ b/Dalamud/Game/Gui/NamePlate/NamePlateGuiAddressResolver.cs @@ -1,5 +1,3 @@ -using Dalamud.Plugin.Services; - namespace Dalamud.Game.Gui.NamePlate; /// diff --git a/Dalamud/Game/Gui/NamePlate/NamePlateQuotedParts.cs b/Dalamud/Game/Gui/NamePlate/NamePlateQuotedParts.cs index 0093a1b40..a398bdb82 100644 --- a/Dalamud/Game/Gui/NamePlate/NamePlateQuotedParts.cs +++ b/Dalamud/Game/Gui/NamePlate/NamePlateQuotedParts.cs @@ -6,7 +6,7 @@ namespace Dalamud.Game.Gui.NamePlate; /// A part builder for constructing and setting quoted nameplate fields (i.e. free company tag and title). /// /// The field type which should be set. -/// Whether this is a Free Company part. +/// Whether or not this is a Free Company part. /// /// This class works as a lazy writer initialized with empty parts, where an empty part signifies no change should be /// performed. Only after all handler processing is complete does it write out any parts which were set to the @@ -53,7 +53,7 @@ public class NamePlateQuotedParts(NamePlateStringField field, bool isFreeCompany return; var sb = new SeStringBuilder(); - if (this.OuterWrap is { Item1: { } outerLeft }) + if (this.OuterWrap is { Item1: var outerLeft }) { sb.Append(outerLeft); } @@ -67,7 +67,7 @@ public class NamePlateQuotedParts(NamePlateStringField field, bool isFreeCompany sb.Append(isFreeCompany ? " «" : "《"); } - if (this.TextWrap is { Item1: { } left, Item2: { } right }) + if (this.TextWrap is { Item1: var left, Item2: var right }) { sb.Append(left); sb.Append(this.Text ?? this.GetStrippedField(handler)); @@ -87,7 +87,7 @@ public class NamePlateQuotedParts(NamePlateStringField field, bool isFreeCompany sb.Append(isFreeCompany ? "»" : "》"); } - if (this.OuterWrap is { Item2: { } outerRight }) + if (this.OuterWrap is { Item2: var outerRight }) { sb.Append(outerRight); } diff --git a/Dalamud/Game/Gui/NamePlate/NamePlateSimpleParts.cs b/Dalamud/Game/Gui/NamePlate/NamePlateSimpleParts.cs index 7ec178795..2906005da 100644 --- a/Dalamud/Game/Gui/NamePlate/NamePlateSimpleParts.cs +++ b/Dalamud/Game/Gui/NamePlate/NamePlateSimpleParts.cs @@ -35,7 +35,7 @@ public class NamePlateSimpleParts(NamePlateStringField field) if ((nint)handler.GetFieldAsPointer(field) == NamePlateGui.EmptyStringPointer) return; - if (this.TextWrap is { Item1: { } left, Item2: { } right }) + if (this.TextWrap is { Item1: var left, Item2: var right }) { var sb = new SeStringBuilder(); sb.Append(left); diff --git a/Dalamud/Game/Gui/NamePlate/NamePlateUpdateContext.cs b/Dalamud/Game/Gui/NamePlate/NamePlateUpdateContext.cs index 0a6fe801f..fef3f9a86 100644 --- a/Dalamud/Game/Gui/NamePlate/NamePlateUpdateContext.cs +++ b/Dalamud/Game/Gui/NamePlate/NamePlateUpdateContext.cs @@ -1,7 +1,6 @@ using Dalamud.Game.ClientState.Objects; using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Client.UI.Arrays; using FFXIVClientStructs.FFXIV.Component.GUI; namespace Dalamud.Game.Gui.NamePlate; @@ -125,7 +124,7 @@ internal unsafe class NamePlateUpdateContext : INamePlateUpdateContext /// /// Gets a pointer to the NamePlate addon's number array entries as a struct. /// - internal NamePlateNumberArray* NumberStruct { get; private set; } + internal AddonNamePlate.AddonNamePlateNumberArray* NumberStruct { get; private set; } /// /// Gets or sets a value indicating whether any handler in the current context has instantiated a part builder. @@ -142,7 +141,7 @@ internal unsafe class NamePlateUpdateContext : INamePlateUpdateContext { this.Addon = (AddonNamePlate*)addon; this.NumberData = AtkStage.Instance()->GetNumberArrayData(NumberArrayType.NamePlate); - this.NumberStruct = (NamePlateNumberArray*)this.NumberData->IntArray; + this.NumberStruct = (AddonNamePlate.AddonNamePlateNumberArray*)this.NumberData->IntArray; this.StringData = AtkStage.Instance()->GetStringArrayData(StringArrayType.NamePlate); this.HasParts = false; diff --git a/Dalamud/Game/Gui/NamePlate/NamePlateUpdateHandler.cs b/Dalamud/Game/Gui/NamePlate/NamePlateUpdateHandler.cs index e197e2360..4f16ab660 100644 --- a/Dalamud/Game/Gui/NamePlate/NamePlateUpdateHandler.cs +++ b/Dalamud/Game/Gui/NamePlate/NamePlateUpdateHandler.cs @@ -7,7 +7,6 @@ using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.Text.SeStringHandling; using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Client.UI.Arrays; using FFXIVClientStructs.Interop; namespace Dalamud.Game.Gui.NamePlate; @@ -340,16 +339,9 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler return null; } - if (this.ArrayIndex >= this.context.Ui3DModule->NamePlateObjectInfoCount) - return null; - - var objectInfoPtr = this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex]; - if (objectInfoPtr.Value == null) return null; - - var gameObjectPtr = objectInfoPtr.Value->GameObject; - if (gameObjectPtr == null) return null; - - return this.gameObject ??= this.context.ObjectTable[gameObjectPtr->ObjectIndex]; + return this.gameObject ??= this.context.ObjectTable[ + this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex] + .Value->GameObject->ObjectIndex]; } } @@ -427,8 +419,8 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler /// public int VisibilityFlags { - get => this.ObjectData->VisibilityFlags; - set => this.ObjectData->VisibilityFlags = value; + get => ObjectData->VisibilityFlags; + set => ObjectData->VisibilityFlags = value; } /// @@ -511,7 +503,7 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler private AddonNamePlate.NamePlateObject* NamePlateObject => &this.context.Addon->NamePlateObjectArray[this.NamePlateIndex]; - private NamePlateNumberArray.NamePlateObjectIntArrayData* ObjectData => + private AddonNamePlate.AddonNamePlateNumberArray.NamePlateObjectIntArrayData* ObjectData => this.context.NumberStruct->ObjectData.GetPointer(this.ArrayIndex); /// diff --git a/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs b/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs index 5caadb29d..0b25a87be 100644 --- a/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs +++ b/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs @@ -89,17 +89,7 @@ internal sealed unsafe class PartyFinderGui : IInternalDisposableService, IParty var listing = new PartyFinderListing(packet.Listings[i]); var args = new PartyFinderListingEventArgs(packet.BatchNumber); - foreach (var d in Delegate.EnumerateInvocationList(this.ReceiveListing)) - { - try - { - d(listing, args); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", d.Method); - } - } + this.ReceiveListing?.Invoke(listing, args); if (args.Visible) { diff --git a/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs b/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs index 5d6130cc1..475892205 100644 --- a/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs +++ b/Dalamud/Game/Gui/PartyFinder/Types/JobFlags.cs @@ -127,7 +127,7 @@ public enum JobFlags : ulong RedMage = 1ul << 24, /// - /// Blue mage (BLU). + /// Blue mage (BLM). /// BlueMage = 1ul << 25, diff --git a/Dalamud/Game/Gui/PartyFinder/Types/JobFlagsExtensions.cs b/Dalamud/Game/Gui/PartyFinder/Types/JobFlagsExtensions.cs index d7ab3080b..1c78c871b 100644 --- a/Dalamud/Game/Gui/PartyFinder/Types/JobFlagsExtensions.cs +++ b/Dalamud/Game/Gui/PartyFinder/Types/JobFlagsExtensions.cs @@ -1,5 +1,4 @@ using Dalamud.Plugin.Services; - using Lumina.Excel.Sheets; namespace Dalamud.Game.Gui.PartyFinder.Types; diff --git a/Dalamud/Game/Gui/PartyFinder/Types/PartyFinderSlot.cs b/Dalamud/Game/Gui/PartyFinder/Types/PartyFinderSlot.cs index 953e575d4..3d1e496fc 100644 --- a/Dalamud/Game/Gui/PartyFinder/Types/PartyFinderSlot.cs +++ b/Dalamud/Game/Gui/PartyFinder/Types/PartyFinderSlot.cs @@ -23,7 +23,23 @@ public class PartyFinderSlot /// /// Gets a list of jobs that this slot is accepting. /// - public IReadOnlyCollection Accepting => this.listAccepting ??= Enum.GetValues().Where(flag => this[flag]).ToArray(); + public IReadOnlyCollection Accepting + { + get + { + if (this.listAccepting != null) + { + return this.listAccepting; + } + + this.listAccepting = Enum.GetValues(typeof(JobFlags)) + .Cast() + .Where(flag => this[flag]) + .ToArray(); + + return this.listAccepting; + } + } /// /// Tests if this slot is accepting a job. diff --git a/Dalamud/Game/Gui/Toast/ToastGui.cs b/Dalamud/Game/Gui/Toast/ToastGui.cs index ab0b05445..6b55b3408 100644 --- a/Dalamud/Game/Gui/Toast/ToastGui.cs +++ b/Dalamud/Game/Gui/Toast/ToastGui.cs @@ -10,8 +10,6 @@ using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.UI; -using Serilog; - namespace Dalamud.Game.Gui.Toast; /// @@ -114,7 +112,7 @@ internal sealed partial class ToastGui options ??= new ToastOptions(); this.normalQueue.Enqueue((Encoding.UTF8.GetBytes(message), options)); } - + /// public void ShowNormal(SeString message, ToastOptions? options = null) { @@ -152,17 +150,7 @@ internal sealed partial class ToastGui Speed = (ToastSpeed)isFast, }; - foreach (var d in Delegate.EnumerateInvocationList(this.Toast)) - { - try - { - d.Invoke(ref str, ref options, ref isHandled); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", d.Method); - } - } + this.Toast?.Invoke(ref str, ref options, ref isHandled); // do nothing if handled if (isHandled) @@ -192,7 +180,7 @@ internal sealed partial class ToastGui options ??= new QuestToastOptions(); this.questQueue.Enqueue((Encoding.UTF8.GetBytes(message), options)); } - + /// public void ShowQuest(SeString message, QuestToastOptions? options = null) { @@ -235,17 +223,7 @@ internal sealed partial class ToastGui PlaySound = playSound == 1, }; - foreach (var d in Delegate.EnumerateInvocationList(this.QuestToast)) - { - try - { - d.Invoke(ref str, ref options, ref isHandled); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", d.Method); - } - } + this.QuestToast?.Invoke(ref str, ref options, ref isHandled); // do nothing if handled if (isHandled) @@ -308,17 +286,7 @@ internal sealed partial class ToastGui var isHandled = false; var str = SeString.Parse(text); - foreach (var d in Delegate.EnumerateInvocationList(this.ErrorToast)) - { - try - { - d.Invoke(ref str, ref isHandled); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", d.Method); - } - } + this.ErrorToast?.Invoke(ref str, ref isHandled); // do nothing if handled if (isHandled) @@ -353,16 +321,16 @@ internal class ToastGuiPluginScoped : IInternalDisposableService, IToastGui this.toastGuiService.QuestToast += this.QuestToastForward; this.toastGuiService.ErrorToast += this.ErrorToastForward; } - + /// public event IToastGui.OnNormalToastDelegate? Toast; - + /// public event IToastGui.OnQuestToastDelegate? QuestToast; - + /// public event IToastGui.OnErrorToastDelegate? ErrorToast; - + /// void IInternalDisposableService.DisposeService() { @@ -374,7 +342,7 @@ internal class ToastGuiPluginScoped : IInternalDisposableService, IToastGui this.QuestToast = null; this.ErrorToast = null; } - + /// public void ShowNormal(string message, ToastOptions? options = null) => this.toastGuiService.ShowNormal(message, options); diff --git a/Dalamud/Game/Internal/AntiDebug.cs b/Dalamud/Game/Internal/AntiDebug.cs new file mode 100644 index 000000000..48b8688a1 --- /dev/null +++ b/Dalamud/Game/Internal/AntiDebug.cs @@ -0,0 +1,102 @@ +using System.Collections.Generic; + +using Dalamud.Utility; + +#if !DEBUG +using Dalamud.Configuration.Internal; +#endif +using Serilog; + +namespace Dalamud.Game.Internal; + +/// +/// This class disables anti-debug functionality in the game client. +/// +[ServiceManager.EarlyLoadedService] +internal sealed class AntiDebug : IInternalDisposableService +{ + private readonly byte[] nop = [0x31, 0xC0, 0x90, 0x90, 0x90, 0x90]; + private byte[]? original; + private IntPtr debugCheckAddress; + + [ServiceManager.ServiceConstructor] + private AntiDebug(TargetSigScanner sigScanner) + { + try + { + // This sig has to be the call site in Framework_Tick + this.debugCheckAddress = sigScanner.ScanText("FF 15 ?? ?? ?? ?? 85 C0 74 13 41"); + } + catch (KeyNotFoundException) + { + this.debugCheckAddress = IntPtr.Zero; + } + + Log.Verbose($"Debug check address {Util.DescribeAddress(this.debugCheckAddress)}"); + + if (!this.IsEnabled) + { +#if DEBUG + this.Enable(); +#else + if (Service.Get().IsAntiAntiDebugEnabled) + this.Enable(); +#endif + } + } + + /// Finalizes an instance of the class. + ~AntiDebug() => ((IInternalDisposableService)this).DisposeService(); + + /// + /// Gets a value indicating whether the anti-debugging is enabled. + /// + public bool IsEnabled { get; private set; } = false; + + /// + void IInternalDisposableService.DisposeService() => this.Disable(); + + /// + /// Enables the anti-debugging by overwriting code in memory. + /// + public void Enable() + { + if (this.IsEnabled) + return; + + this.original = new byte[this.nop.Length]; + if (this.debugCheckAddress != IntPtr.Zero && !this.IsEnabled) + { + Log.Information($"Overwriting debug check at {Util.DescribeAddress(this.debugCheckAddress)}"); + SafeMemory.ReadBytes(this.debugCheckAddress, this.nop.Length, out this.original); + SafeMemory.WriteBytes(this.debugCheckAddress, this.nop); + } + else + { + Log.Information("Debug check already overwritten?"); + } + + this.IsEnabled = true; + } + + /// + /// Disable the anti-debugging by reverting the overwritten code in memory. + /// + public void Disable() + { + if (!this.IsEnabled) + return; + + if (this.debugCheckAddress != IntPtr.Zero && this.original != null) + { + Log.Information($"Reverting debug check at {Util.DescribeAddress(this.debugCheckAddress)}"); + SafeMemory.WriteBytes(this.debugCheckAddress, this.original); + } + else + { + Log.Information("Debug check was not overwritten?"); + } + + this.IsEnabled = false; + } +} diff --git a/Dalamud/Game/Internal/DalamudAtkTweaks.cs b/Dalamud/Game/Internal/DalamudAtkTweaks.cs index 24fa88023..7834ab58f 100644 --- a/Dalamud/Game/Internal/DalamudAtkTweaks.cs +++ b/Dalamud/Game/Internal/DalamudAtkTweaks.cs @@ -1,12 +1,12 @@ using CheapLoc; - using Dalamud.Configuration.Internal; using Dalamud.Game.Text; +using Dalamud.Game.Text.SeStringHandling; +using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Hooking; using Dalamud.Interface.Internal; using Dalamud.Interface.Windowing; using Dalamud.Logging.Internal; -using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Client.UI.Agent; @@ -22,7 +22,7 @@ namespace Dalamud.Game.Internal; [ServiceManager.EarlyLoadedService] internal sealed unsafe class DalamudAtkTweaks : IInternalDisposableService { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new("DalamudAtkTweaks"); private readonly Hook hookAgentHudOpenSystemMenu; @@ -53,7 +53,7 @@ internal sealed unsafe class DalamudAtkTweaks : IInternalDisposableService this.locDalamudSettings = Loc.Localize("SystemMenuSettings", "Dalamud Settings"); // this.contextMenu.ContextMenuOpened += this.ContextMenuOnContextMenuOpened; - + this.hookAgentHudOpenSystemMenu.Enable(); this.hookUiModuleExecuteMainCommand.Enable(); this.hookAtkUnitBaseReceiveGlobalEvent.Enable(); @@ -113,7 +113,7 @@ internal sealed unsafe class DalamudAtkTweaks : IInternalDisposableService private void AtkUnitBaseReceiveGlobalEventDetour(AtkUnitBase* thisPtr, AtkEventType eventType, int eventParam, AtkEvent* atkEvent, AtkEventData* atkEventData) { // 3 == Close - if (eventType == AtkEventType.InputReceived && WindowSystem.ShouldInhibitAtkCloseEvents && atkEventData != null && *(int*)atkEventData == 3 && this.configuration.IsFocusManagementEnabled) + if (eventType == AtkEventType.InputReceived && WindowSystem.HasAnyWindowSystemFocus && atkEventData != null && *(int*)atkEventData == 3 && this.configuration.IsFocusManagementEnabled) { Log.Verbose($"Cancelling global event SendHotkey command due to WindowSystem {WindowSystem.FocusedWindowSystemNamespace}"); return; @@ -124,7 +124,7 @@ internal sealed unsafe class DalamudAtkTweaks : IInternalDisposableService private void AgentHudOpenSystemMenuDetour(AgentHUD* thisPtr, AtkValue* atkValueArgs, uint menuSize) { - if (WindowSystem.ShouldInhibitAtkCloseEvents && this.configuration.IsFocusManagementEnabled) + if (WindowSystem.HasAnyWindowSystemFocus && this.configuration.IsFocusManagementEnabled) { Log.Verbose($"Cancelling OpenSystemMenu due to WindowSystem {WindowSystem.FocusedWindowSystemNamespace}"); return; @@ -180,28 +180,22 @@ internal sealed unsafe class DalamudAtkTweaks : IInternalDisposableService // about hooking the exd reader, thank god var firstStringEntry = &atkValueArgs[5 + 18]; firstStringEntry->ChangeType(ValueType.String); - + var secondStringEntry = &atkValueArgs[6 + 18]; secondStringEntry->ChangeType(ValueType.String); const int color = 539; - - using var rssb = new RentedSeStringBuilder(); - - firstStringEntry->SetManagedString(rssb.Builder - .PushColorType(color) - .Append($"{SeIconChar.BoxedLetterD.ToIconString()} ") - .PopColorType() - .Append(this.locDalamudPlugins) - .GetViewAsSpan()); - - rssb.Builder.Clear(); - secondStringEntry->SetManagedString(rssb.Builder - .PushColorType(color) - .Append($"{SeIconChar.BoxedLetterD.ToIconString()} ") - .PopColorType() - .Append(this.locDalamudSettings) - .GetViewAsSpan()); + var strPlugins = new SeString().Append(new UIForegroundPayload(color)) + .Append($"{SeIconChar.BoxedLetterD.ToIconString()} ") + .Append(new UIForegroundPayload(0)) + .Append(this.locDalamudPlugins).Encode(); + var strSettings = new SeString().Append(new UIForegroundPayload(color)) + .Append($"{SeIconChar.BoxedLetterD.ToIconString()} ") + .Append(new UIForegroundPayload(0)) + .Append(this.locDalamudSettings).Encode(); + + firstStringEntry->SetManagedString(strPlugins); + secondStringEntry->SetManagedString(strSettings); // open menu with new size var sizeEntry = &atkValueArgs[4]; diff --git a/Dalamud/Game/Internal/DalamudCompletion.cs b/Dalamud/Game/Internal/DalamudCompletion.cs deleted file mode 100644 index 50816a603..000000000 --- a/Dalamud/Game/Internal/DalamudCompletion.cs +++ /dev/null @@ -1,275 +0,0 @@ -using System.Collections.Generic; -using System.Linq; - -using Dalamud.Game.Command; -using Dalamud.Hooking; -using Dalamud.Utility; - -using FFXIVClientStructs.FFXIV.Client.System.Memory; -using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Component.Completion; -using FFXIVClientStructs.FFXIV.Component.GUI; - -namespace Dalamud.Game.Internal; - -/// -/// This class adds Dalamud and plugin commands to the chat box's autocompletion. -/// -[ServiceManager.EarlyLoadedService] -internal sealed unsafe class DalamudCompletion : IInternalDisposableService -{ - // 0xFF is a magic group number that causes CompletionModule's internals to treat entries - // as raw strings instead of as lookups into an EXD sheet - private const int GroupNumber = 0xFF; - - [ServiceManager.ServiceDependency] - private readonly CommandManager commandManager = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly Framework framework = Service.Get(); - - private readonly Dictionary cachedCommands = []; - - private EntryStrings? dalamudCategory; - - private Hook openSuggestionsHook; - private Hook? getSelectionHook; - - /// - /// Initializes a new instance of the class. - /// - [ServiceManager.ServiceConstructor] - internal DalamudCompletion() - { - this.framework.RunOnTick(this.Setup); - } - - /// - void IInternalDisposableService.DisposeService() - { - this.openSuggestionsHook?.Disable(); - this.openSuggestionsHook?.Dispose(); - - this.getSelectionHook?.Disable(); - this.getSelectionHook?.Dispose(); - - this.dalamudCategory?.Dispose(); - - this.ClearCachedCommands(); - } - - private void Setup() - { - var uiModule = UIModule.Instance(); - if (uiModule == null || uiModule->FrameCount == 0) - { - this.framework.RunOnTick(this.Setup); - return; - } - - this.dalamudCategory = new EntryStrings("【Dalamud】"); - - this.openSuggestionsHook = Hook.FromAddress( - (nint)AtkTextInput.MemberFunctionPointers.OpenCompletion, - this.OpenSuggestionsDetour); - - this.getSelectionHook = Hook.FromAddress( - (nint)uiModule->CompletionModule.VirtualTable->GetSelection, - this.GetSelectionDetour); - - this.openSuggestionsHook.Enable(); - this.getSelectionHook.Enable(); - } - - private void OpenSuggestionsDetour(AtkTextInput* thisPtr) - { - this.UpdateCompletionData(); - this.openSuggestionsHook!.Original(thisPtr); - } - - private int GetSelectionDetour(CompletionModule* thisPtr, CategoryData.CompletionDataStruct* dataStructs, int index, Utf8String* outputString, Utf8String* outputDisplayString) - { - var ret = this.getSelectionHook!.Original.Invoke(thisPtr, dataStructs, index, outputString, outputDisplayString); - this.HandleInsert(ret, outputString, outputDisplayString); - return ret; - } - - private void UpdateCompletionData() - { - if (!this.TryGetActiveTextInput(out var component, out var addon)) - { - if (this.HasDalamudCategory()) - this.ResetCompletionData(); - - return; - } - - var uiModule = UIModule.Instance(); - if (uiModule == null) - return; - - this.ResetCompletionData(); - this.ClearCachedCommands(); - - var currentText = component->EvaluatedString.StringPtr.ExtractText(); - - var commands = this.commandManager.Commands - .Where(kv => kv.Value.ShowInHelp && (currentText.Length == 0 || kv.Key.StartsWith(currentText))) - .OrderBy(kv => kv.Key); - - if (!commands.Any()) - return; - - var categoryData = (CategoryData*)IMemorySpace.GetDefaultSpace()->Malloc((ulong)sizeof(CategoryData), 0x08); - categoryData->Ctor(GroupNumber, 0xFF); - - uiModule->CompletionModule.AddCategoryData( - GroupNumber, - this.dalamudCategory!.Display->StringPtr, - this.dalamudCategory.Match->StringPtr, categoryData); - - foreach (var (cmd, info) in commands) - { - if (!this.cachedCommands.TryGetValue(cmd, out var entryString)) - this.cachedCommands.Add(cmd, entryString = new EntryStrings(cmd)); - - uiModule->CompletionModule.AddCompletionEntry( - GroupNumber, - 0xFF, - entryString.Display->StringPtr, - entryString.Match->StringPtr, - 0xFF); - } - - categoryData->SortEntries(); - } - - private void HandleInsert(int ret, Utf8String* outputString, Utf8String* outputDisplayString) - { - // -2 means it was a plain text final selection, so it might be ours. - if (ret != -2 || outputString == null) - return; - - // Strip out color payloads that we added to the string. - var txt = outputString->StringPtr.ExtractText(); - if (!this.cachedCommands.ContainsKey(txt)) - return; - - if (!this.TryGetActiveTextInput(out _, out _)) - { - outputString->Clear(); - - if (outputDisplayString != null) - outputDisplayString->Clear(); - - return; - } - - outputString->SetString(txt + ' '); - } - - private bool TryGetActiveTextInput(out AtkComponentTextInput* component, out AtkUnitBase* addon) - { - component = null; - addon = null; - - var raptureAtkModule = RaptureAtkModule.Instance(); - if (raptureAtkModule == null) - return false; - - var textInputEventInterface = raptureAtkModule->TextInput.TargetTextInputEventInterface; - if (textInputEventInterface == null) - return false; - - var ownerNode = textInputEventInterface->GetOwnerNode(); - if (ownerNode == null || ownerNode->GetNodeType() != NodeType.Component) - return false; - - var componentNode = (AtkComponentNode*)ownerNode; - var componentBase = componentNode->Component; - if (componentBase == null || componentBase->GetComponentType() != ComponentType.TextInput) - return false; - - component = (AtkComponentTextInput*)componentBase; - - addon = component->OwnerAddon; - - if (addon == null) - addon = component->ContainingAddon2; - - if (addon == null) - addon = RaptureAtkUnitManager.Instance()->GetAddonByNode((AtkResNode*)component->OwnerNode); - - return addon != null && addon->NameString == "ChatLog"; - } - - private bool HasDalamudCategory() - { - var uiModule = UIModule.Instance(); - if (uiModule == null) - return false; - - for (var i = 0; i < uiModule->CompletionModule.CategoryNames.Count; i++) - { - if (uiModule->CompletionModule.CategoryNames[i].AsReadOnlySeStringSpan().ContainsText("【Dalamud】"u8)) - { - return true; - } - } - - return false; - } - - private void ResetCompletionData() - { - var uiModule = UIModule.Instance(); - if (uiModule == null) - return; - - uiModule->CompletionModule.ClearCompletionData(); - - // This happens in UIModule.Update. Just repeat it to fill CompletionData back up with defaults. - uiModule->CompletionModule.Update( - &uiModule->CompletionSheetName, - &uiModule->CompletionOpenIconMacro, - &uiModule->CompletionCloseIconMacro, - 0); - } - - private void ClearCachedCommands() - { - foreach (var entry in this.cachedCommands.Values) - { - entry.Dispose(); - } - - this.cachedCommands.Clear(); - } - - private class EntryStrings : IDisposable - { - public EntryStrings(string command) - { - using var rssb = new RentedSeStringBuilder(); - - this.Display = Utf8String.FromSequence(rssb.Builder - .PushColorType(539) - .Append(command) - .PopColorType() - .GetViewAsSpan()); - - this.Match = Utf8String.FromString(command); - } - - public Utf8String* Display { get; } - - public Utf8String* Match { get; } - - public void Dispose() - { - this.Display->Dtor(true); - this.Match->Dtor(true); - } - } -} diff --git a/Dalamud/Game/Inventory/GameInventory.cs b/Dalamud/Game/Inventory/GameInventory.cs index 2cfacfad0..02412c551 100644 --- a/Dalamud/Game/Inventory/GameInventory.cs +++ b/Dalamud/Game/Inventory/GameInventory.cs @@ -1,15 +1,17 @@ -using System.Collections; +using System.Collections; using System.Collections.Generic; using System.Linq; -using Dalamud.Game.Gui; using Dalamud.Game.Inventory.InventoryEventArgTypes; +using Dalamud.Hooking; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Services; +using FFXIVClientStructs.FFXIV.Client.UI; + namespace Dalamud.Game.Inventory; /// @@ -18,21 +20,20 @@ namespace Dalamud.Game.Inventory; [ServiceManager.EarlyLoadedService] internal class GameInventory : IInternalDisposableService { - private readonly List subscribersPendingChange = []; - private readonly List subscribers = []; + private readonly List subscribersPendingChange = new(); + private readonly List subscribers = new(); - private readonly List addedEvents = []; - private readonly List removedEvents = []; - private readonly List changedEvents = []; - private readonly List movedEvents = []; - private readonly List splitEvents = []; - private readonly List mergedEvents = []; + private readonly List addedEvents = new(); + private readonly List removedEvents = new(); + private readonly List changedEvents = new(); + private readonly List movedEvents = new(); + private readonly List splitEvents = new(); + private readonly List mergedEvents = new(); [ServiceManager.ServiceDependency] private readonly Framework framework = Service.Get(); - [ServiceManager.ServiceDependency] - private readonly GameGui gameGui = Service.Get(); + private readonly Hook raptureAtkModuleUpdateHook; private readonly GameInventoryType[] inventoryTypes; private readonly GameInventoryItem[]?[] inventoryItems; @@ -46,9 +47,18 @@ internal class GameInventory : IInternalDisposableService this.inventoryTypes = Enum.GetValues(); this.inventoryItems = new GameInventoryItem[this.inventoryTypes.Length][]; - this.gameGui.AgentUpdate += this.OnAgentUpdate; + unsafe + { + this.raptureAtkModuleUpdateHook = Hook.FromFunctionPointerVariable( + new(&RaptureAtkModule.StaticVirtualTablePointer->Update), + this.RaptureAtkModuleUpdateDetour); + } + + this.raptureAtkModuleUpdateHook.Enable(); } + private unsafe delegate void RaptureAtkModuleUpdateDelegate(RaptureAtkModule* ram, float f1); + /// void IInternalDisposableService.DisposeService() { @@ -58,7 +68,7 @@ internal class GameInventory : IInternalDisposableService this.subscribersPendingChange.Clear(); this.subscribersChanged = false; this.framework.Update -= this.OnFrameworkUpdate; - this.gameGui.AgentUpdate -= this.OnAgentUpdate; + this.raptureAtkModuleUpdateHook.Dispose(); } } @@ -110,7 +120,7 @@ internal class GameInventory : IInternalDisposableService continue; // Assumption: newItems is sorted by slots, and the last item has the highest slot number. - var oldItems = this.inventoryItems[i] ??= this.CreateItemsArray(newItems[^1].InternalItem.Slot + 1); + var oldItems = this.inventoryItems[i] ??= new GameInventoryItem[newItems[^1].InternalItem.Slot + 1]; foreach (ref readonly var newItem in newItems) { @@ -151,7 +161,7 @@ internal class GameInventory : IInternalDisposableService bool isNew; lock (this.subscribersPendingChange) { - isNew = this.subscribersPendingChange.Count != 0 && this.subscribers.Count == 0; + isNew = this.subscribersPendingChange.Any() && !this.subscribers.Any(); this.subscribers.Clear(); this.subscribers.AddRange(this.subscribersPendingChange); this.subscribersChanged = false; @@ -302,17 +312,10 @@ internal class GameInventory : IInternalDisposableService this.mergedEvents.Clear(); } - private GameInventoryItem[] CreateItemsArray(int length) + private unsafe void RaptureAtkModuleUpdateDetour(RaptureAtkModule* ram, float f1) { - var items = new GameInventoryItem[length]; - foreach (ref var item in items.AsSpan()) - item = new(); - return items; - } - - private void OnAgentUpdate(AgentUpdateFlag agentUpdateFlag) - { - this.inventoriesMightBeChanged |= true; + this.inventoriesMightBeChanged |= ram->AgentUpdateFlag != 0; + this.raptureAtkModuleUpdateHook.Original(ram, f1); } /// @@ -348,7 +351,7 @@ internal class GameInventory : IInternalDisposableService #pragma warning restore SA1015 internal class GameInventoryPluginScoped : IInternalDisposableService, IGameInventory { - private static readonly ModuleLog Log = ModuleLog.Create(); + private static readonly ModuleLog Log = new(nameof(GameInventoryPluginScoped)); [ServiceManager.ServiceDependency] private readonly GameInventory gameInventoryService = Service.Get(); diff --git a/Dalamud/Game/Inventory/GameInventoryItem.cs b/Dalamud/Game/Inventory/GameInventoryItem.cs index af35262d6..a9b178411 100644 --- a/Dalamud/Game/Inventory/GameInventoryItem.cs +++ b/Dalamud/Game/Inventory/GameInventoryItem.cs @@ -1,15 +1,9 @@ -using System.Collections.Generic; +using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Dalamud.Data; -using Dalamud.Game.Inventory.Records; -using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.Game; -using Lumina.Excel.Sheets; - namespace Dalamud.Game.Inventory; /// @@ -23,21 +17,13 @@ public unsafe struct GameInventoryItem : IEquatable /// [FieldOffset(0)] internal readonly InventoryItem InternalItem; - + /// /// The view of the backing data, in . /// [FieldOffset(0)] private fixed ulong dataUInt64[InventoryItem.StructSize / 0x8]; - /// - /// Initializes a new instance of the struct. - /// - public GameInventoryItem() - { - this.InternalItem.Ctor(); - } - /// /// Initializes a new instance of the struct. /// @@ -47,143 +33,67 @@ public unsafe struct GameInventoryItem : IEquatable /// /// Gets a value indicating whether the this is empty. /// - public bool IsEmpty => this.InternalItem.IsEmpty(); + public bool IsEmpty => this.InternalItem.ItemId == 0; /// /// Gets the container inventory type. /// - public GameInventoryType ContainerType => (GameInventoryType)this.InternalItem.GetInventoryType(); + public GameInventoryType ContainerType => (GameInventoryType)this.InternalItem.Container; /// /// Gets the inventory slot index this item is in. /// - public uint InventorySlot => this.InternalItem.GetSlot(); + public uint InventorySlot => (uint)this.InternalItem.Slot; /// /// Gets the item id. /// - public uint ItemId => this.InternalItem.GetItemId(); - - /// - /// Gets the base item id (without HQ or Collectible offset applied). - /// - public uint BaseItemId => ItemUtil.GetBaseId(this.ItemId).ItemId; + public uint ItemId => this.InternalItem.ItemId; /// /// Gets the quantity of items in this item stack. /// - public int Quantity => (int)this.InternalItem.GetQuantity(); - - /// - /// Gets the spiritbond or collectability of this item. - /// - public uint SpiritbondOrCollectability => this.InternalItem.GetSpiritbondOrCollectability(); + public int Quantity => this.InternalItem.Quantity; /// /// Gets the spiritbond of this item. /// - [Obsolete($"Renamed to {nameof(SpiritbondOrCollectability)}", true)] - public uint Spiritbond => this.SpiritbondOrCollectability; + public uint Spiritbond => this.InternalItem.Spiritbond; /// /// Gets the repair condition of this item. /// - public uint Condition => this.InternalItem.GetCondition(); // Note: This will be the Breeding Capacity of Race Chocobos + public uint Condition => this.InternalItem.Condition; /// /// Gets a value indicating whether the item is High Quality. /// - public bool IsHq => this.InternalItem.GetFlags().HasFlag(InventoryItem.ItemFlags.HighQuality); + public bool IsHq => (this.InternalItem.Flags & InventoryItem.ItemFlags.HighQuality) != 0; /// /// Gets a value indicating whether the item has a company crest applied. /// - public bool IsCompanyCrestApplied => this.InternalItem.GetFlags().HasFlag(InventoryItem.ItemFlags.CompanyCrestApplied); + public bool IsCompanyCrestApplied => (this.InternalItem.Flags & InventoryItem.ItemFlags.CompanyCrestApplied) != 0; /// /// Gets a value indicating whether the item is a relic. /// - public bool IsRelic => this.InternalItem.GetFlags().HasFlag(InventoryItem.ItemFlags.Relic); + public bool IsRelic => (this.InternalItem.Flags & InventoryItem.ItemFlags.Relic) != 0; /// /// Gets a value indicating whether the is a collectable. /// - public bool IsCollectable => this.InternalItem.GetFlags().HasFlag(InventoryItem.ItemFlags.Collectable); + public bool IsCollectable => (this.InternalItem.Flags & InventoryItem.ItemFlags.Collectable) != 0; /// /// Gets the array of materia types. /// - public ReadOnlySpan Materia - { - get - { - var baseItemId = this.BaseItemId; - - if (ItemUtil.IsEventItem(baseItemId) || this.IsMateriaUsedForDate) - return []; - - Span materiaIds = new ushort[this.InternalItem.Materia.Length]; - var materiaRowCount = Service.Get().GetExcelSheet().Count; - - for (byte i = 0; i < this.InternalItem.Materia.Length; i++) - { - var materiaId = this.InternalItem.GetMateriaId(i); - if (materiaId < materiaRowCount) - materiaIds[i] = materiaId; - } - - return materiaIds; - } - } + public ReadOnlySpan Materia => new(Unsafe.AsPointer(ref this.InternalItem.Materia[0]), 5); /// /// Gets the array of materia grades. /// - public ReadOnlySpan MateriaGrade - { - get - { - var baseItemId = this.BaseItemId; - - if (ItemUtil.IsEventItem(baseItemId) || this.IsMateriaUsedForDate) - return []; - - Span materiaGrades = new byte[this.InternalItem.MateriaGrades.Length]; - var materiaGradeRowCount = Service.Get().GetExcelSheet().Count; - - for (byte i = 0; i < this.InternalItem.MateriaGrades.Length; i++) - { - var materiaGrade = this.InternalItem.GetMateriaGrade(i); - if (materiaGrade < materiaGradeRowCount) - materiaGrades[i] = materiaGrade; - } - - return materiaGrades; - } - } - - /// - /// Gets a list of materia entries for this item. Exists as a user-friendly interface to and - /// . - /// - public IReadOnlyList MateriaEntries - { - get - { - if (ItemUtil.IsEventItem(this.BaseItemId) || this.IsMateriaUsedForDate) - return []; - - var result = new List(); - for (byte i = 0; i < this.InternalItem.GetMateriaCount(); i++) - { - var entry = new MateriaEntry(this.InternalItem.GetMateriaId(i), this.InternalItem.GetMateriaGrade(i)); - if (entry.IsValid()) - result.Add(entry); - } - - return result; - } - } + public ReadOnlySpan MateriaGrade => new(Unsafe.AsPointer(ref this.InternalItem.MateriaGrades[0]), 5); /// /// Gets the address of native inventory item in the game.
@@ -212,60 +122,18 @@ public unsafe struct GameInventoryItem : IEquatable /// /// Gets the color used for this item. /// - public ReadOnlySpan Stains - { - get - { - var baseItemId = this.BaseItemId; - - if (ItemUtil.IsEventItem(baseItemId)) - return []; - - var dataManager = Service.Get(); - - if (!dataManager.GetExcelSheet().TryGetRow(baseItemId, out var item) || item.DyeCount == 0) - return []; - - Span stainIds = new byte[item.DyeCount]; - var stainRowCount = dataManager.GetExcelSheet().Count; - - for (byte i = 0; i < item.DyeCount; i++) - { - var stainId = this.InternalItem.GetStain(i); - if (stainId < stainRowCount) - stainIds[i] = stainId; - } - - return stainIds; - } - } + public ReadOnlySpan Stains => new(Unsafe.AsPointer(ref this.InternalItem.Stains[0]), 2); /// /// Gets the glamour id for this item. /// - public uint GlamourId => this.InternalItem.GetGlamourId(); + public uint GlamourId => this.InternalItem.GlamourId; /// /// Gets the items crafter's content id. /// NOTE: I'm not sure if this is a good idea to include or not in the dalamud api. Marked internal for now. /// - internal ulong CrafterContentId => this.InternalItem.GetCrafterContentId(); - - /// - /// Gets a value indicating whether the Materia fields are used to store a date. - /// - private bool IsMateriaUsedForDate => this.BaseItemId - // Race Chocobo related items - is 9560 // Proof of Covering - - // Wedding related items - or 8575 // Eternity Ring - or 8693 // Promise of Innocence - or 8694 // Promise of Passion - or 8695 // Promise of Devotion - or 8696 // (Unknown/unused) - or 8698 // Blank Invitation - or 8699; // Ceremony Invitation + internal ulong CrafterContentId => this.InternalItem.CrafterContentId; public static bool operator ==(in GameInventoryItem l, in GameInventoryItem r) => l.Equals(r); diff --git a/Dalamud/Game/Inventory/Records/MateriaEntry.cs b/Dalamud/Game/Inventory/Records/MateriaEntry.cs deleted file mode 100644 index 4c7528123..000000000 --- a/Dalamud/Game/Inventory/Records/MateriaEntry.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Dalamud.Data; - -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace Dalamud.Game.Inventory.Records; - -/// -/// A record to hold easy information about a given piece of Materia. -/// -public record MateriaEntry -{ - /// - /// Initializes a new instance of the class. - /// - /// The ID of the materia. - /// The grade of the materia. - public MateriaEntry(ushort typeId, byte gradeValue) - { - this.Type = LuminaUtils.CreateRef(typeId); - this.Grade = LuminaUtils.CreateRef(gradeValue); - } - - /// - /// Gets the Lumina row for this Materia. - /// - public RowRef Type { get; } - - /// - /// Gets the Lumina row for this Materia's grade. - /// - public RowRef Grade { get; } - - /// - /// Checks if this MateriaEntry is valid. - /// - /// True if valid, false otherwise. - internal bool IsValid() - { - return this.Type.IsValid && this.Grade.IsValid; - } -} diff --git a/Dalamud/Game/Marketboard/MarketBoard.cs b/Dalamud/Game/Marketboard/MarketBoard.cs index 563a5bc4a..3642b86b8 100644 --- a/Dalamud/Game/Marketboard/MarketBoard.cs +++ b/Dalamud/Game/Marketboard/MarketBoard.cs @@ -1,13 +1,9 @@ -using Dalamud.Game.Network.Internal; +using Dalamud.Game.Network.Internal; using Dalamud.Game.Network.Structures; using Dalamud.IoC; using Dalamud.IoC.Internal; -using Dalamud.Logging.Internal; -using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; -using static Dalamud.Plugin.Services.IMarketBoard; - namespace Dalamud.Game.MarketBoard; /// @@ -33,19 +29,19 @@ internal class MarketBoard : IInternalDisposableService, IMarketBoard } /// - public event HistoryReceivedDelegate? HistoryReceived; + public event IMarketBoard.HistoryReceivedDelegate? HistoryReceived; /// - public event ItemPurchasedDelegate? ItemPurchased; + public event IMarketBoard.ItemPurchasedDelegate? ItemPurchased; /// - public event OfferingsReceivedDelegate? OfferingsReceived; + public event IMarketBoard.OfferingsReceivedDelegate? OfferingsReceived; /// - public event PurchaseRequestedDelegate? PurchaseRequested; + public event IMarketBoard.PurchaseRequestedDelegate? PurchaseRequested; /// - public event TaxRatesReceivedDelegate? TaxRatesReceived; + public event IMarketBoard.TaxRatesReceivedDelegate? TaxRatesReceived; /// public void DisposeService() @@ -93,42 +89,35 @@ internal class MarketBoard : IInternalDisposableService, IMarketBoard #pragma warning restore SA1015 internal class MarketBoardPluginScoped : IInternalDisposableService, IMarketBoard { - private static readonly ModuleLog Log = ModuleLog.Create(); - [ServiceManager.ServiceDependency] private readonly MarketBoard marketBoardService = Service.Get(); - private readonly string owningPluginName; - /// /// Initializes a new instance of the class. /// - /// The plugin owning this service. - internal MarketBoardPluginScoped(LocalPlugin? plugin) + internal MarketBoardPluginScoped() { this.marketBoardService.HistoryReceived += this.OnHistoryReceived; this.marketBoardService.ItemPurchased += this.OnItemPurchased; this.marketBoardService.OfferingsReceived += this.OnOfferingsReceived; this.marketBoardService.PurchaseRequested += this.OnPurchaseRequested; this.marketBoardService.TaxRatesReceived += this.OnTaxRatesReceived; - - this.owningPluginName = plugin?.InternalName ?? "DalamudInternal"; } /// - public event HistoryReceivedDelegate? HistoryReceived; + public event IMarketBoard.HistoryReceivedDelegate? HistoryReceived; /// - public event ItemPurchasedDelegate? ItemPurchased; + public event IMarketBoard.ItemPurchasedDelegate? ItemPurchased; /// - public event OfferingsReceivedDelegate? OfferingsReceived; + public event IMarketBoard.OfferingsReceivedDelegate? OfferingsReceived; /// - public event PurchaseRequestedDelegate? PurchaseRequested; + public event IMarketBoard.PurchaseRequestedDelegate? PurchaseRequested; /// - public event TaxRatesReceivedDelegate? TaxRatesReceived; + public event IMarketBoard.TaxRatesReceivedDelegate? TaxRatesReceived; /// void IInternalDisposableService.DisposeService() @@ -148,85 +137,26 @@ internal class MarketBoardPluginScoped : IInternalDisposableService, IMarketBoar private void OnHistoryReceived(IMarketBoardHistory history) { - foreach (var action in Delegate.EnumerateInvocationList(this.HistoryReceived)) - { - try - { - action.Invoke(history); - } - catch (Exception ex) - { - this.LogInvocationError(ex, nameof(this.HistoryReceived)); - } - } + this.HistoryReceived?.Invoke(history); } private void OnItemPurchased(IMarketBoardPurchase purchase) { - foreach (var action in Delegate.EnumerateInvocationList(this.ItemPurchased)) - { - try - { - action.Invoke(purchase); - } - catch (Exception ex) - { - this.LogInvocationError(ex, nameof(this.ItemPurchased)); - } - } + this.ItemPurchased?.Invoke(purchase); } private void OnOfferingsReceived(IMarketBoardCurrentOfferings currentOfferings) { - foreach (var action in Delegate.EnumerateInvocationList(this.OfferingsReceived)) - { - try - { - action.Invoke(currentOfferings); - } - catch (Exception ex) - { - this.LogInvocationError(ex, nameof(this.OfferingsReceived)); - } - } + this.OfferingsReceived?.Invoke(currentOfferings); } private void OnPurchaseRequested(IMarketBoardPurchaseHandler purchaseHandler) { - foreach (var action in Delegate.EnumerateInvocationList(this.PurchaseRequested)) - { - try - { - action.Invoke(purchaseHandler); - } - catch (Exception ex) - { - this.LogInvocationError(ex, nameof(this.PurchaseRequested)); - } - } + this.PurchaseRequested?.Invoke(purchaseHandler); } private void OnTaxRatesReceived(IMarketTaxRates taxRates) { - foreach (var action in Delegate.EnumerateInvocationList(this.TaxRatesReceived)) - { - try - { - action.Invoke(taxRates); - } - catch (Exception ex) - { - this.LogInvocationError(ex, nameof(this.TaxRatesReceived)); - } - } - } - - private void LogInvocationError(Exception ex, string delegateName) - { - Log.Error( - ex, - "An error occured while invoking event `{evName}` for {plugin}", - delegateName, - this.owningPluginName); + this.TaxRatesReceived?.Invoke(taxRates); } } diff --git a/Dalamud/Game/NativeWrapper/AgentInterfacePtr.cs b/Dalamud/Game/NativeWrapper/AgentInterfacePtr.cs deleted file mode 100644 index b5e8938dd..000000000 --- a/Dalamud/Game/NativeWrapper/AgentInterfacePtr.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System.Runtime.InteropServices; - -using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Client.UI.Agent; - -namespace Dalamud.Game.NativeWrapper; - -/// -/// A readonly wrapper for AgentInterface. -/// -/// The address to the AgentInterface. -[StructLayout(LayoutKind.Explicit, Size = 0x08)] -public readonly unsafe struct AgentInterfacePtr(nint address) : IEquatable -{ - /// - /// The address to the AgentInterface. - /// - [FieldOffset(0x00)] - public readonly nint Address = address; - - /// - /// Gets a value indicating whether the underlying pointer is a nullptr. - /// - public readonly bool IsNull => this.Address == 0; - - /// - /// Gets a value indicating whether the agents addon is visible. - /// - public readonly AtkUnitBasePtr Addon - { - get - { - if (this.IsNull) - return 0; - - var raptureAtkUnitManager = RaptureAtkUnitManager.Instance(); - if (raptureAtkUnitManager == null) - return 0; - - return (nint)raptureAtkUnitManager->GetAddonById(this.AddonId); - } - } - - /// - /// Gets a value indicating whether the agent is active. - /// - public readonly ushort AddonId => (ushort)(this.IsNull ? 0 : this.Struct->GetAddonId()); - - /// - /// Gets a value indicating whether the agent is active. - /// - public readonly bool IsAgentActive => !this.IsNull && this.Struct->IsAgentActive(); - - /// - /// Gets a value indicating whether the agents addon is ready. - /// - public readonly bool IsAddonReady => !this.IsNull && this.Struct->IsAddonReady(); - - /// - /// Gets a value indicating whether the agents addon is visible. - /// - public readonly bool IsAddonShown => !this.IsNull && this.Struct->IsAddonShown(); - - /// - /// Gets the AgentInterface*. - /// - /// Internal use only. - internal readonly AgentInterface* Struct => (AgentInterface*)this.Address; - - public static implicit operator nint(AgentInterfacePtr wrapper) => wrapper.Address; - - public static implicit operator AgentInterfacePtr(nint address) => new(address); - - public static implicit operator AgentInterfacePtr(void* ptr) => new((nint)ptr); - - public static bool operator ==(AgentInterfacePtr left, AgentInterfacePtr right) => left.Address == right.Address; - - public static bool operator !=(AgentInterfacePtr left, AgentInterfacePtr right) => left.Address != right.Address; - - /// - /// Focuses the AtkUnitBase. - /// - /// true when the addon was focused, false otherwise. - public readonly bool FocusAddon() => !this.IsNull && this.Struct->FocusAddon(); - - /// Determines whether the specified AgentInterfacePtr is equal to the current AgentInterfacePtr. - /// The AgentInterfacePtr to compare with the current AgentInterfacePtr. - /// true if the specified AgentInterfacePtr is equal to the current AgentInterfacePtr; otherwise, false. - public readonly bool Equals(AgentInterfacePtr other) => this.Address == other.Address; - - /// - public override readonly bool Equals(object obj) => obj is AgentInterfacePtr wrapper && this.Equals(wrapper); - - /// - public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); -} diff --git a/Dalamud/Game/NativeWrapper/AtkUnitBasePtr.cs b/Dalamud/Game/NativeWrapper/AtkUnitBasePtr.cs deleted file mode 100644 index d4ebf4d3b..000000000 --- a/Dalamud/Game/NativeWrapper/AtkUnitBasePtr.cs +++ /dev/null @@ -1,171 +0,0 @@ -using System.Collections.Generic; -using System.Numerics; -using System.Runtime.InteropServices; - -using FFXIVClientStructs.FFXIV.Component.GUI; -using FFXIVClientStructs.Interop; - -namespace Dalamud.Game.NativeWrapper; - -/// -/// A readonly wrapper for AtkUnitBase. -/// -/// The address to the AtkUnitBase. -[StructLayout(LayoutKind.Explicit, Size = 0x08)] -public readonly unsafe struct AtkUnitBasePtr(nint address) : IEquatable -{ - /// - /// The address to the AtkUnitBase. - /// - [FieldOffset(0x00)] - public readonly nint Address = address; - - /// - /// Gets a value indicating whether the underlying pointer is a nullptr. - /// - public readonly bool IsNull => this.Address == 0; - - /// - /// Gets a value indicating whether the OnSetup function has been called. - /// - public readonly bool IsReady => !this.IsNull && this.Struct->IsReady; - - /// - /// Gets a value indicating whether the AtkUnitBase is visible. - /// - public readonly bool IsVisible => !this.IsNull && this.Struct->IsVisible; - - /// - /// Gets the name. - /// - public readonly string Name => this.IsNull ? string.Empty : this.Struct->NameString; - - /// - /// Gets the id. - /// - public readonly ushort Id => this.IsNull ? (ushort)0 : this.Struct->Id; - - /// - /// Gets the parent id. - /// - public readonly ushort ParentId => this.IsNull ? (ushort)0 : this.Struct->ParentId; - - /// - /// Gets the host id. - /// - public readonly ushort HostId => this.IsNull ? (ushort)0 : this.Struct->HostId; - - /// - /// Gets the scale. - /// - public readonly float Scale => this.IsNull ? 0f : this.Struct->Scale; - - /// - /// Gets the x-position. - /// - public readonly short X => this.IsNull ? (short)0 : this.Struct->X; - - /// - /// Gets the y-position. - /// - public readonly short Y => this.IsNull ? (short)0 : this.Struct->Y; - - /// - /// Gets the width. - /// - public readonly float Width => this.IsNull ? 0f : this.Struct->GetScaledWidth(false); - - /// - /// Gets the height. - /// - public readonly float Height => this.IsNull ? 0f : this.Struct->GetScaledHeight(false); - - /// - /// Gets the scaled width. - /// - public readonly float ScaledWidth => this.IsNull ? 0f : this.Struct->GetScaledWidth(true); - - /// - /// Gets the scaled height. - /// - public readonly float ScaledHeight => this.IsNull ? 0f : this.Struct->GetScaledHeight(true); - - /// - /// Gets the position. - /// - public readonly Vector2 Position => new(this.X, this.Y); - - /// - /// Gets the size. - /// - public readonly Vector2 Size => new(this.Width, this.Height); - - /// - /// Gets the scaled size. - /// - public readonly Vector2 ScaledSize => new(this.ScaledWidth, this.ScaledHeight); - - /// - /// Gets the number of entries. - /// - public readonly int AtkValuesCount => this.Struct->AtkValuesCount; - - /// - /// Gets an enumerable collection of of the addons current AtkValues. - /// - /// - /// An of corresponding to the addons AtkValues. - /// - public IEnumerable AtkValues - { - get - { - for (var i = 0; i < this.AtkValuesCount; i++) - { - AtkValuePtr ptr; - unsafe - { - ptr = new AtkValuePtr((nint)this.Struct->AtkValuesSpan.GetPointer(i)); - } - - yield return ptr; - } - } - } - - /// - /// Gets the AtkUnitBase*. - /// - /// Internal use only. - internal readonly AtkUnitBase* Struct => (AtkUnitBase*)this.Address; - - public static implicit operator nint(AtkUnitBasePtr wrapper) => wrapper.Address; - - public static implicit operator AtkUnitBasePtr(nint address) => new(address); - - public static implicit operator AtkUnitBasePtr(void* ptr) => new((nint)ptr); - - public static bool operator ==(AtkUnitBasePtr left, AtkUnitBasePtr right) => left.Address == right.Address; - - public static bool operator !=(AtkUnitBasePtr left, AtkUnitBasePtr right) => left.Address != right.Address; - - /// - /// Focuses the AtkUnitBase. - /// - public readonly void Focus() - { - if (!this.IsNull) - this.Struct->Focus(); - } - - /// Determines whether the specified AtkUnitBasePtr is equal to the current AtkUnitBasePtr. - /// The AtkUnitBasePtr to compare with the current AtkUnitBasePtr. - /// true if the specified AtkUnitBasePtr is equal to the current AtkUnitBasePtr; otherwise, false. - public readonly bool Equals(AtkUnitBasePtr other) => this.Address == other.Address; - - /// - public override readonly bool Equals(object obj) => obj is AtkUnitBasePtr wrapper && this.Equals(wrapper); - - /// - public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); -} diff --git a/Dalamud/Game/NativeWrapper/AtkValuePtr.cs b/Dalamud/Game/NativeWrapper/AtkValuePtr.cs deleted file mode 100644 index b274d388b..000000000 --- a/Dalamud/Game/NativeWrapper/AtkValuePtr.cs +++ /dev/null @@ -1,113 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; - -using Dalamud.Utility; - -using FFXIVClientStructs.FFXIV.Component.GUI; - -namespace Dalamud.Game.NativeWrapper; - -/// -/// A readonly wrapper for AtkValue. -/// -/// The address to the AtkValue. -[StructLayout(LayoutKind.Explicit, Size = 0x08)] -public readonly unsafe struct AtkValuePtr(nint address) : IEquatable -{ - /// - /// The address to the AtkValue. - /// - [FieldOffset(0x00)] - public readonly nint Address = address; - - /// - /// Gets a value indicating whether the underlying pointer is a nullptr. - /// - public readonly bool IsNull => this.Address == 0; - - /// - /// Gets the value type. - /// - public readonly AtkValueType ValueType => (AtkValueType)this.Struct->Type; - - /// - /// Gets the AtkValue*. - /// - /// Internal use only. - internal readonly AtkValue* Struct => (AtkValue*)this.Address; - - public static implicit operator nint(AtkValuePtr wrapper) => wrapper.Address; - - public static implicit operator AtkValuePtr(nint address) => new(address); - - public static implicit operator AtkValuePtr(void* ptr) => new((nint)ptr); - - public static bool operator ==(AtkValuePtr left, AtkValuePtr right) => left.Address == right.Address; - - public static bool operator !=(AtkValuePtr left, AtkValuePtr right) => left.Address != right.Address; - - /// - /// Gets the value of the underlying as a boxed object, based on its . - /// - /// - /// The boxed value represented by this , or null if the value is null or undefined. - /// - /// - /// Thrown if the value type is not currently handled by this implementation. - /// - public unsafe object? GetValue() - { - if (this.Struct == null) - return null; - - return this.ValueType switch - { - AtkValueType.Undefined or AtkValueType.Null => null, - AtkValueType.Bool => this.Struct->Bool, - AtkValueType.Int => this.Struct->Int, - AtkValueType.Int64 => this.Struct->Int64, - AtkValueType.UInt => this.Struct->UInt, - AtkValueType.UInt64 => this.Struct->UInt64, - AtkValueType.Float => this.Struct->Float, - AtkValueType.String or AtkValueType.String8 or AtkValueType.ManagedString => this.Struct->String.HasValue ? this.Struct->String.AsReadOnlySeString() : default, - AtkValueType.WideString => this.Struct->WideString == null ? string.Empty : new string(this.Struct->WideString), - AtkValueType.Pointer => (nint)this.Struct->Pointer, - _ => throw new NotImplementedException($"AtkValueType {this.ValueType} is currently not supported"), - }; - } - - /// - /// Attempts to retrieve the value as a strongly-typed object if the underlying type matches. - /// - /// The expected value type to extract. - /// - /// When this method returns true, contains the extracted value of type . - /// Otherwise, contains the default value of type . - /// - /// - /// true if the value was successfully extracted and matched ; otherwise, false. - /// - public unsafe bool TryGet([NotNullWhen(true)] out T? result) where T : struct - { - var value = this.GetValue(); - if (value is T typed) - { - result = typed; - return true; - } - - result = default; - return false; - } - - /// Determines whether the specified AtkValuePtr is equal to the current AtkValuePtr. - /// The AtkValuePtr to compare with the current AtkValuePtr. - /// true if the specified AtkValuePtr is equal to the current AtkValuePtr; otherwise, false. - public readonly bool Equals(AtkValuePtr other) => this.Address == other.Address || this.Struct->EqualTo(other.Struct); - - /// - public override readonly bool Equals(object obj) => obj is AtkValuePtr wrapper && this.Equals(wrapper); - - /// - public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); -} diff --git a/Dalamud/Game/NativeWrapper/AtkValueType.cs b/Dalamud/Game/NativeWrapper/AtkValueType.cs deleted file mode 100644 index ef169e102..000000000 --- a/Dalamud/Game/NativeWrapper/AtkValueType.cs +++ /dev/null @@ -1,87 +0,0 @@ -namespace Dalamud.Game.NativeWrapper; - -/// -/// Represents the data type of the AtkValue. -/// -public enum AtkValueType -{ - /// - /// The value is undefined or invalid. - /// - Undefined = 0, - - /// - /// The value is null. - /// - Null = 0x1, - - /// - /// The value is a boolean. - /// - Bool = 0x2, - - /// - /// The value is a 32-bit signed integer. - /// - Int = 0x3, - - /// - /// The value is a 64-bit signed integer. - /// - Int64 = 0x4, - - /// - /// The value is a 32-bit unsigned integer. - /// - UInt = 0x5, - - /// - /// The value is a 64-bit unsigned integer. - /// - UInt64 = 0x6, - - /// - /// The value is a 32-bit floating-point number. - /// - Float = 0x7, - - /// - /// The value points to a null-terminated 8-bit character string (ASCII or UTF-8). - /// - String = 0x8, - - /// - /// The value points to a null-terminated 16-bit character string (UTF-16 / wide string). - /// - WideString = 0x9, - - /// - /// The value points to a constant null-terminated 8-bit character string (const char*). - /// - String8 = 0xA, - - /// - /// The value is a vector. - /// - Vector = 0xB, - - /// - /// The value is a pointer. - /// - Pointer = 0xC, - - /// - /// The value is pointing to an array of AtkValue entries. - /// - AtkValues = 0xD, - - /// - /// The value is a managed string. See . - /// - ManagedString = 0x28, - - /// - /// The value is a managed vector. See . - /// - ManagedVector = 0x2B, -} diff --git a/Dalamud/Game/NativeWrapper/UIModulePtr.cs b/Dalamud/Game/NativeWrapper/UIModulePtr.cs deleted file mode 100644 index f6b841610..000000000 --- a/Dalamud/Game/NativeWrapper/UIModulePtr.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System.Runtime.InteropServices; - -using FFXIVClientStructs.FFXIV.Client.UI; - -namespace Dalamud.Game.NativeWrapper; - -/// -/// A readonly wrapper for UIModule. -/// -/// The address to the UIModule. -[StructLayout(LayoutKind.Explicit, Size = 0x08)] -public readonly unsafe struct UIModulePtr(nint address) : IEquatable -{ - /// - /// The address to the UIModule. - /// - [FieldOffset(0x00)] - public readonly nint Address = address; - - /// - /// Gets a value indicating whether the underlying pointer is a nullptr. - /// - public readonly bool IsNull => this.Address == 0; - - /// - /// Gets the UIModule*. - /// - /// Internal use only. - internal readonly UIModule* Struct => (UIModule*)this.Address; - - public static implicit operator nint(UIModulePtr wrapper) => wrapper.Address; - - public static implicit operator UIModulePtr(nint address) => new(address); - - public static implicit operator UIModulePtr(void* ptr) => new((nint)ptr); - - public static bool operator ==(UIModulePtr left, UIModulePtr right) => left.Address == right.Address; - - public static bool operator !=(UIModulePtr left, UIModulePtr right) => left.Address != right.Address; - - /// Determines whether the specified UIModulePtr is equal to the current UIModulePtr. - /// The UIModulePtr to compare with the current UIModulePtr. - /// true if the specified UIModulePtr is equal to the current UIModulePtr; otherwise, false. - public readonly bool Equals(UIModulePtr other) => this.Address == other.Address; - - /// - public override readonly bool Equals(object obj) => obj is UIModulePtr wrapper && this.Equals(wrapper); - - /// - public override readonly int GetHashCode() => ((nuint)this.Address).GetHashCode(); -} diff --git a/Dalamud/Game/Network/GameNetwork.cs b/Dalamud/Game/Network/GameNetwork.cs new file mode 100644 index 000000000..5022eb93d --- /dev/null +++ b/Dalamud/Game/Network/GameNetwork.cs @@ -0,0 +1,170 @@ +using System.Runtime.InteropServices; + +using Dalamud.Configuration.Internal; +using Dalamud.Hooking; +using Dalamud.IoC; +using Dalamud.IoC.Internal; +using Dalamud.Plugin.Services; +using Dalamud.Utility; + +using FFXIVClientStructs.FFXIV.Client.Network; + +using Serilog; + +namespace Dalamud.Game.Network; + +/// +/// This class handles interacting with game network events. +/// +[ServiceManager.EarlyLoadedService] +internal sealed unsafe class GameNetwork : IInternalDisposableService, IGameNetwork +{ + private readonly GameNetworkAddressResolver address; + private readonly Hook processZonePacketDownHook; + private readonly Hook processZonePacketUpHook; + + private readonly HitchDetector hitchDetectorUp; + private readonly HitchDetector hitchDetectorDown; + + [ServiceManager.ServiceDependency] + private readonly DalamudConfiguration configuration = Service.Get(); + + [ServiceManager.ServiceConstructor] + private unsafe GameNetwork(TargetSigScanner sigScanner) + { + this.hitchDetectorUp = new HitchDetector("GameNetworkUp", this.configuration.GameNetworkUpHitch); + this.hitchDetectorDown = new HitchDetector("GameNetworkDown", this.configuration.GameNetworkDownHitch); + + this.address = new GameNetworkAddressResolver(); + this.address.Setup(sigScanner); + + var onReceivePacketAddress = (nint)PacketDispatcher.StaticVirtualTablePointer->OnReceivePacket; + + Log.Verbose("===== G A M E N E T W O R K ====="); + Log.Verbose($"OnReceivePacket address {Util.DescribeAddress(onReceivePacketAddress)}"); + Log.Verbose($"ProcessZonePacketUp address {Util.DescribeAddress(this.address.ProcessZonePacketUp)}"); + + this.processZonePacketDownHook = Hook.FromAddress(onReceivePacketAddress, this.ProcessZonePacketDownDetour); + this.processZonePacketUpHook = Hook.FromAddress(this.address.ProcessZonePacketUp, this.ProcessZonePacketUpDetour); + + this.processZonePacketDownHook.Enable(); + this.processZonePacketUpHook.Enable(); + } + + [UnmanagedFunctionPointer(CallingConvention.ThisCall)] + private delegate byte ProcessZonePacketUpDelegate(IntPtr a1, IntPtr dataPtr, IntPtr a3, byte a4); + + /// + public event IGameNetwork.OnNetworkMessageDelegate? NetworkMessage; + + /// + void IInternalDisposableService.DisposeService() + { + this.processZonePacketDownHook.Dispose(); + this.processZonePacketUpHook.Dispose(); + } + + private void ProcessZonePacketDownDetour(PacketDispatcher* dispatcher, uint targetId, IntPtr dataPtr) + { + this.hitchDetectorDown.Start(); + + // Go back 0x10 to get back to the start of the packet header + dataPtr -= 0x10; + + try + { + // Call events + this.NetworkMessage?.Invoke(dataPtr + 0x20, (ushort)Marshal.ReadInt16(dataPtr, 0x12), 0, targetId, NetworkMessageDirection.ZoneDown); + + this.processZonePacketDownHook.Original(dispatcher, targetId, dataPtr + 0x10); + } + catch (Exception ex) + { + string header; + try + { + var data = new byte[32]; + Marshal.Copy(dataPtr, data, 0, 32); + header = BitConverter.ToString(data); + } + catch (Exception) + { + header = "failed"; + } + + Log.Error(ex, "Exception on ProcessZonePacketDown hook. Header: " + header); + + this.processZonePacketDownHook.Original(dispatcher, targetId, dataPtr + 0x10); + } + + this.hitchDetectorDown.Stop(); + } + + private byte ProcessZonePacketUpDetour(IntPtr a1, IntPtr dataPtr, IntPtr a3, byte a4) + { + this.hitchDetectorUp.Start(); + + try + { + // Call events + // TODO: Implement actor IDs + this.NetworkMessage?.Invoke(dataPtr + 0x20, (ushort)Marshal.ReadInt16(dataPtr), 0x0, 0x0, NetworkMessageDirection.ZoneUp); + } + catch (Exception ex) + { + string header; + try + { + var data = new byte[32]; + Marshal.Copy(dataPtr, data, 0, 32); + header = BitConverter.ToString(data); + } + catch (Exception) + { + header = "failed"; + } + + Log.Error(ex, "Exception on ProcessZonePacketUp hook. Header: " + header); + } + + this.hitchDetectorUp.Stop(); + + return this.processZonePacketUpHook.Original(a1, dataPtr, a3, a4); + } +} + +/// +/// Plugin-scoped version of a AddonLifecycle service. +/// +[PluginInterface] +[ServiceManager.ScopedService] +#pragma warning disable SA1015 +[ResolveVia] +#pragma warning restore SA1015 +internal class GameNetworkPluginScoped : IInternalDisposableService, IGameNetwork +{ + [ServiceManager.ServiceDependency] + private readonly GameNetwork gameNetworkService = Service.Get(); + + /// + /// Initializes a new instance of the class. + /// + internal GameNetworkPluginScoped() + { + this.gameNetworkService.NetworkMessage += this.NetworkMessageForward; + } + + /// + public event IGameNetwork.OnNetworkMessageDelegate? NetworkMessage; + + /// + void IInternalDisposableService.DisposeService() + { + this.gameNetworkService.NetworkMessage -= this.NetworkMessageForward; + + this.NetworkMessage = null; + } + + private void NetworkMessageForward(nint dataPtr, ushort opCode, uint sourceActorId, uint targetActorId, NetworkMessageDirection direction) + => this.NetworkMessage?.Invoke(dataPtr, opCode, sourceActorId, targetActorId, direction); +} diff --git a/Dalamud/Game/Network/GameNetworkAddressResolver.cs b/Dalamud/Game/Network/GameNetworkAddressResolver.cs new file mode 100644 index 000000000..de92f7c10 --- /dev/null +++ b/Dalamud/Game/Network/GameNetworkAddressResolver.cs @@ -0,0 +1,18 @@ +namespace Dalamud.Game.Network; + +/// +/// The address resolver for the class. +/// +internal sealed class GameNetworkAddressResolver : BaseAddressResolver +{ + /// + /// Gets the address of the ProcessZonePacketUp method. + /// + public IntPtr ProcessZonePacketUp { get; private set; } + + /// + protected override void Setup64Bit(ISigScanner sig) + { + this.ProcessZonePacketUp = sig.ScanText("48 89 5C 24 ?? 48 89 74 24 ?? 4C 89 64 24 ?? 55 41 56 41 57 48 8B EC 48 83 EC 70"); // unnamed in cs + } +} diff --git a/Dalamud/Game/Network/Internal/MarketBoardUploaders/IMarketBoardUploader.cs b/Dalamud/Game/Network/Internal/MarketBoardUploaders/IMarketBoardUploader.cs index adf5f0228..dadfef604 100644 --- a/Dalamud/Game/Network/Internal/MarketBoardUploaders/IMarketBoardUploader.cs +++ b/Dalamud/Game/Network/Internal/MarketBoardUploaders/IMarketBoardUploader.cs @@ -13,26 +13,20 @@ internal interface IMarketBoardUploader /// Upload data about an item. /// /// The item request data being uploaded. - /// The uploaders ContentId. - /// The uploaders WorldId. /// An async task. - Task Upload(MarketBoardItemRequest item, ulong uploaderId, uint worldId); + Task Upload(MarketBoardItemRequest item); /// /// Upload tax rate data. /// /// The tax rate data being uploaded. - /// The uploaders ContentId. - /// The uploaders WorldId. /// An async task. - Task UploadTax(MarketTaxRates taxRates, ulong uploaderId, uint worldId); + Task UploadTax(MarketTaxRates taxRates); /// /// Upload information about a purchase this client has made. /// /// The purchase handler data associated with the sale. - /// The uploaders ContentId. - /// The uploaders WorldId. /// An async task. - Task UploadPurchase(MarketBoardPurchaseHandler purchaseHandler, ulong uploaderId, uint worldId); + Task UploadPurchase(MarketBoardPurchaseHandler purchaseHandler); } diff --git a/Dalamud/Game/Network/Internal/MarketBoardUploaders/MarketBoardItemRequest.cs b/Dalamud/Game/Network/Internal/MarketBoardUploaders/MarketBoardItemRequest.cs index 9c566687a..a32a92b13 100644 --- a/Dalamud/Game/Network/Internal/MarketBoardUploaders/MarketBoardItemRequest.cs +++ b/Dalamud/Game/Network/Internal/MarketBoardUploaders/MarketBoardItemRequest.cs @@ -21,7 +21,7 @@ internal class MarketBoardItemRequest public uint Status { get; private set; } /// - /// Gets a value indicating whether this request was successful. + /// Gets a value indicating whether or not this request was successful. /// public bool Ok => this.Status == 0; diff --git a/Dalamud/Game/Network/Internal/MarketBoardUploaders/Universalis/UniversalisMarketBoardUploader.cs b/Dalamud/Game/Network/Internal/MarketBoardUploaders/Universalis/UniversalisMarketBoardUploader.cs index 67769e4ca..f326c5ce0 100644 --- a/Dalamud/Game/Network/Internal/MarketBoardUploaders/Universalis/UniversalisMarketBoardUploader.cs +++ b/Dalamud/Game/Network/Internal/MarketBoardUploaders/Universalis/UniversalisMarketBoardUploader.cs @@ -1,3 +1,5 @@ +using System.Collections.Generic; +using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; @@ -7,7 +9,6 @@ using Dalamud.Game.Network.Structures; using Dalamud.Networking.Http; using Newtonsoft.Json; - using Serilog; namespace Dalamud.Game.Network.Internal.MarketBoardUploaders.Universalis; @@ -32,16 +33,21 @@ internal class UniversalisMarketBoardUploader : IMarketBoardUploader this.httpClient = happyHttpClient.SharedHttpClient; /// - public async Task Upload(MarketBoardItemRequest request, ulong uploaderId, uint worldId) + public async Task Upload(MarketBoardItemRequest request) { + var clientState = Service.GetNullable(); + if (clientState == null) + return; + Log.Verbose("Starting Universalis upload"); + var uploader = clientState.LocalContentId; // ==================================================================================== var uploadObject = new UniversalisItemUploadRequest { - WorldId = worldId, - UploaderId = uploaderId.ToString(), + WorldId = clientState.LocalPlayer?.CurrentWorld.RowId ?? 0, + UploaderId = uploader.ToString(), ItemId = request.CatalogId, Listings = [], Sales = [], @@ -64,7 +70,7 @@ internal class UniversalisMarketBoardUploader : IMarketBoardUploader PricePerUnit = marketBoardItemListing.PricePerUnit, Quantity = marketBoardItemListing.ItemQuantity, RetainerCity = marketBoardItemListing.RetainerCityId, - Materia = [], + Materia = new List(), }; #pragma warning restore CS0618 // Type or member is obsolete @@ -111,12 +117,18 @@ internal class UniversalisMarketBoardUploader : IMarketBoardUploader } /// - public async Task UploadTax(MarketTaxRates taxRates, ulong uploaderId, uint worldId) + public async Task UploadTax(MarketTaxRates taxRates) { + var clientState = Service.GetNullable(); + if (clientState == null) + return; + + // ==================================================================================== + var taxUploadObject = new UniversalisTaxUploadRequest { - WorldId = worldId, - UploaderId = uploaderId.ToString(), + WorldId = clientState.LocalPlayer?.CurrentWorld.RowId ?? 0, + UploaderId = clientState.LocalContentId.ToString(), TaxData = new UniversalisTaxData { LimsaLominsa = taxRates.LimsaLominsaTax, @@ -147,9 +159,14 @@ internal class UniversalisMarketBoardUploader : IMarketBoardUploader /// to track the available listings, that is done via the listings packet. All this does is remove /// a listing, or delete it, when a purchase has been made. /// - public async Task UploadPurchase(MarketBoardPurchaseHandler purchaseHandler, ulong uploaderId, uint worldId) + public async Task UploadPurchase(MarketBoardPurchaseHandler purchaseHandler) { + var clientState = Service.GetNullable(); + if (clientState == null) + return; + var itemId = purchaseHandler.CatalogId; + var worldId = clientState.LocalPlayer?.CurrentWorld.RowId ?? 0; // ==================================================================================== @@ -159,7 +176,7 @@ internal class UniversalisMarketBoardUploader : IMarketBoardUploader Quantity = purchaseHandler.ItemQuantity, ListingId = purchaseHandler.ListingId.ToString(), RetainerId = purchaseHandler.RetainerId.ToString(), - UploaderId = uploaderId.ToString(), + UploaderId = clientState.LocalContentId.ToString(), }; var deletePath = $"/api/{worldId}/{itemId}/delete"; diff --git a/Dalamud/Game/Network/Internal/NetworkHandlers.cs b/Dalamud/Game/Network/Internal/NetworkHandlers.cs index d3a53b4f2..a25444f10 100644 --- a/Dalamud/Game/Network/Internal/NetworkHandlers.cs +++ b/Dalamud/Game/Network/Internal/NetworkHandlers.cs @@ -11,7 +11,6 @@ using Dalamud.Game.Gui; using Dalamud.Game.Network.Internal.MarketBoardUploaders; using Dalamud.Game.Network.Internal.MarketBoardUploaders.Universalis; using Dalamud.Game.Network.Structures; -using Dalamud.Game.Player; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Hooking; using Dalamud.Networking.Http; @@ -20,9 +19,7 @@ using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.Game.InstanceContent; using FFXIVClientStructs.FFXIV.Client.Network; using FFXIVClientStructs.FFXIV.Client.UI.Info; - using Lumina.Excel.Sheets; - using Serilog; namespace Dalamud.Game.Network.Internal; @@ -33,7 +30,7 @@ namespace Dalamud.Game.Network.Internal; [ServiceManager.EarlyLoadedService] internal unsafe class NetworkHandlers : IInternalDisposableService { - private readonly UniversalisMarketBoardUploader uploader; + private readonly IMarketBoardUploader uploader; private readonly IDisposable handleMarketBoardItemRequest; private readonly IDisposable handleMarketTaxRates; @@ -55,7 +52,10 @@ internal unsafe class NetworkHandlers : IInternalDisposableService private bool disposing; [ServiceManager.ServiceConstructor] - private NetworkHandlers(TargetSigScanner sigScanner, HappyHttpClient happyHttpClient) + private NetworkHandlers( + GameNetwork gameNetwork, + TargetSigScanner sigScanner, + HappyHttpClient happyHttpClient) { this.uploader = new UniversalisMarketBoardUploader(happyHttpClient); @@ -245,7 +245,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService /// /// Disposes of managed and unmanaged resources. /// - /// Whether to execute the disposal. + /// Whether or not to execute the disposal. protected void Dispose(bool shouldDispose) { if (!shouldDispose) @@ -264,12 +264,6 @@ internal unsafe class NetworkHandlers : IInternalDisposableService this.cfPopHook.Dispose(); } - private static (ulong UploaderId, uint WorldId) GetUploaderInfo() - { - var playerState = Service.Get(); - return (playerState.ContentId, playerState.CurrentWorld.RowId); - } - private unsafe nint CfPopDetour(PublicContentDirector.EnterContentInfoPacket* packetData) { var result = this.cfPopHook.OriginalDisposeSafe(packetData); @@ -416,7 +410,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService private IDisposable HandleMarketBoardItemRequest() { - static void LogStartObserved(MarketBoardItemRequest request) + void LogStartObserved(MarketBoardItemRequest request) { Log.Verbose("Observed start of request for item with {NumListings} expected listings", request.AmountToArrive); } @@ -430,14 +424,14 @@ internal unsafe class NetworkHandlers : IInternalDisposableService startObservable .And(this.OnMarketBoardSalesBatch(startObservable)) .And(this.OnMarketBoardListingsBatch(startObservable)) - .Then((request, sales, listings) => (request, sales, listings, GetUploaderInfo()))) + .Then((request, sales, listings) => (request, sales, listings))) .Where(this.ShouldUpload) .SubscribeOn(ThreadPoolScheduler.Instance) .Subscribe( data => { - var (request, sales, listings, uploaderInfo) = data; - this.UploadMarketBoardData(request, sales, listings, uploaderInfo.UploaderId, uploaderInfo.WorldId); + var (request, sales, listings) = data; + this.UploadMarketBoardData(request, sales, listings); }, ex => Log.Error(ex, "Failed to handle Market Board item request event")); } @@ -445,9 +439,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService private void UploadMarketBoardData( MarketBoardItemRequest request, (uint CatalogId, ICollection Sales) sales, - List listings, - ulong uploaderId, - uint worldId) + ICollection listings) { var catalogId = sales.CatalogId; if (listings.Count != request.AmountToArrive) @@ -468,7 +460,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService request.Listings.AddRange(listings); request.History.AddRange(sales.Sales); - Task.Run(() => this.uploader.Upload(request, uploaderId, worldId)) + Task.Run(() => this.uploader.Upload(request)) .ContinueWith( task => Log.Error(task.Exception, "Market Board offerings data upload failed"), TaskContinuationOptions.OnlyOnFaulted); @@ -477,14 +469,11 @@ internal unsafe class NetworkHandlers : IInternalDisposableService private IDisposable HandleMarketTaxRates() { return this.MbTaxesObservable - .Select((taxes) => (taxes, GetUploaderInfo())) .Where(this.ShouldUpload) .SubscribeOn(ThreadPoolScheduler.Instance) .Subscribe( - data => + taxes => { - var (taxes, uploaderInfo) = data; - Log.Verbose( "MarketTaxRates: limsa#{0} grid#{1} uldah#{2} ish#{3} kugane#{4} cr#{5} sh#{6}", taxes.LimsaLominsaTax, @@ -495,7 +484,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService taxes.CrystariumTax, taxes.SharlayanTax); - Task.Run(() => this.uploader.UploadTax(taxes, uploaderInfo.UploaderId, uploaderInfo.WorldId)) + Task.Run(() => this.uploader.UploadTax(taxes)) .ContinueWith( task => Log.Error(task.Exception, "Market Board tax data upload failed"), TaskContinuationOptions.OnlyOnFaulted); @@ -506,13 +495,13 @@ internal unsafe class NetworkHandlers : IInternalDisposableService private IDisposable HandleMarketBoardPurchaseHandler() { return this.MbPurchaseSentObservable - .Zip(this.MbPurchaseObservable, (handler, purchase) => (handler, purchase, GetUploaderInfo())) + .Zip(this.MbPurchaseObservable) .Where(this.ShouldUpload) .SubscribeOn(ThreadPoolScheduler.Instance) .Subscribe( data => { - var (handler, purchase, uploaderInfo) = data; + var (handler, purchase) = data; var sameQty = purchase.ItemQuantity == handler.ItemQuantity; var itemMatch = purchase.CatalogId == handler.CatalogId; @@ -527,7 +516,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService handler.CatalogId, handler.PricePerUnit * purchase.ItemQuantity, handler.ListingId); - Task.Run(() => this.uploader.UploadPurchase(handler, uploaderInfo.UploaderId, uploaderInfo.WorldId)) + Task.Run(() => this.uploader.UploadPurchase(handler)) .ContinueWith( task => Log.Error(task.Exception, "Market Board purchase data upload failed"), TaskContinuationOptions.OnlyOnFaulted); @@ -541,7 +530,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService return this.configuration.IsMbCollect; } - private void MarketPurchasePacketDetour(uint targetId, nint packetData) + private void MarketPurchasePacketDetour(PacketDispatcher* a1, nint packetData) { try { @@ -552,7 +541,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService Log.Error(ex, "MarketPurchasePacketHandler threw an exception"); } - this.mbPurchaseHook.OriginalDisposeSafe(targetId, packetData); + this.mbPurchaseHook.OriginalDisposeSafe(a1, packetData); } private void MarketHistoryPacketDetour(InfoProxyItemSearch* a1, nint packetData) @@ -585,7 +574,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService this.customTalkHook.OriginalDisposeSafe(a1, eventId, responseId, args, argCount); } - private void MarketItemRequestStartDetour(uint targetId, nint packetRef) + private void MarketItemRequestStartDetour(PacketDispatcher* a1, nint packetRef) { try { @@ -596,7 +585,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService Log.Error(ex, "MarketItemRequestStartDetour threw an exception"); } - this.mbItemRequestStartHook.OriginalDisposeSafe(targetId, packetRef); + this.mbItemRequestStartHook.OriginalDisposeSafe(a1, packetRef); } private void MarketBoardOfferingsDetour(InfoProxyItemSearch* a1, nint packetRef) diff --git a/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs b/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs index 34c071556..18c48b67d 100644 --- a/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs +++ b/Dalamud/Game/Network/Internal/NetworkHandlersAddressResolver.cs @@ -1,6 +1,4 @@ -using Dalamud.Plugin.Services; - -namespace Dalamud.Game.Network.Internal; +namespace Dalamud.Game.Network.Internal; /// /// Internal address resolver for the network handlers. @@ -18,6 +16,6 @@ internal class NetworkHandlersAddressResolver : BaseAddressResolver { this.CustomTalkEventResponsePacketHandler = scanner.ScanText( - "48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC ?? 49 8B D9 41 0F B6 F8 0F B7 F2 8B E9 E8 ?? ?? ?? ?? 44 0F B6 54 24 ?? 44 0F B6 CF 44 88 54 24 ?? 44 0F B7 C6 8B D5"); // unnamed in CS + "48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC ?? 49 8B D9 41 0F B6 F8 0F B7 F2 8B E9 E8 ?? ?? ?? ?? 48 8B C8 44 0F B6 CF 0F B6 44 24 ?? 44 0F B7 C6 88 44 24 ?? 8B D5 48 89 5C 24"); // unnamed in CS } } diff --git a/Dalamud/Game/Network/Internal/WinSockHandlers.cs b/Dalamud/Game/Network/Internal/WinSockHandlers.cs index 4b002021a..384858cfe 100644 --- a/Dalamud/Game/Network/Internal/WinSockHandlers.cs +++ b/Dalamud/Game/Network/Internal/WinSockHandlers.cs @@ -55,37 +55,4 @@ internal sealed class WinSockHandlers : IInternalDisposableService return socket; } - - /// - /// Native ws2_32 functions. - /// - private static class NativeFunctions - { - /// - /// See https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt. - /// The setsockopt function sets a socket option. - /// - /// - /// A descriptor that identifies a socket. - /// - /// - /// The level at which the option is defined (for example, SOL_SOCKET). - /// - /// - /// The socket option for which the value is to be set (for example, SO_BROADCAST). The optname parameter must be a - /// socket option defined within the specified level, or behavior is undefined. - /// - /// - /// A pointer to the buffer in which the value for the requested option is specified. - /// - /// - /// The size, in bytes, of the buffer pointed to by the optval parameter. - /// - /// - /// If no error occurs, setsockopt returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error - /// code can be retrieved by calling WSAGetLastError. - /// - [DllImport("ws2_32.dll", CallingConvention = CallingConvention.Winapi, EntryPoint = "setsockopt")] - public static extern int SetSockOpt(IntPtr socket, SocketOptionLevel level, SocketOptionName optName, ref IntPtr optVal, int optLen); - } } diff --git a/Dalamud/Game/Network/NetworkMessageDirection.cs b/Dalamud/Game/Network/NetworkMessageDirection.cs index 12cfc3d17..87cce5173 100644 --- a/Dalamud/Game/Network/NetworkMessageDirection.cs +++ b/Dalamud/Game/Network/NetworkMessageDirection.cs @@ -3,7 +3,6 @@ namespace Dalamud.Game.Network; /// /// This represents the direction of a network message. /// -[Obsolete("No longer part of public API", true)] public enum NetworkMessageDirection { /// diff --git a/Dalamud/Game/Player/MentorVersion.cs b/Dalamud/Game/Player/MentorVersion.cs deleted file mode 100644 index e856e1169..000000000 --- a/Dalamud/Game/Player/MentorVersion.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Dalamud.Game.Player; - -/// -/// Specifies the mentor certification version for a player. -/// -public enum MentorVersion : byte -{ - /// - /// Indicates that the player has never held mentor status in any expansion. - /// - None = 0, - - /// - /// Indicates that the player was last a mentor during the Shadowbringers expansion. - /// - Shadowbringers = 1, - - /// - /// Indicates that the player was last a mentor during the Endwalker expansion. - /// - Endwalker = 2, - - /// - /// Indicates that the player was last a mentor during the Dawntrail expansion. - /// - Dawntrail = 3, -} diff --git a/Dalamud/Game/Player/PlayerAttribute.cs b/Dalamud/Game/Player/PlayerAttribute.cs deleted file mode 100644 index 9d9954817..000000000 --- a/Dalamud/Game/Player/PlayerAttribute.cs +++ /dev/null @@ -1,489 +0,0 @@ -namespace Dalamud.Game.Player; - -/// -/// Represents a player's attribute. -/// -public enum PlayerAttribute -{ - /// - /// Strength. - /// - /// - /// Affects physical damage dealt by gladiator's arms, marauder's arms, dark knight's arms, gunbreaker's arms, pugilist's arms, lancer's arms, samurai's arms, reaper's arms, thaumaturge's arms, arcanist's arms, red mage's arms, pictomancer's arms, conjurer's arms, astrologian's arms, sage's arms, and blue mage's arms. - /// - Strength = 1, - - /// - /// Dexterity. - /// - /// - /// Affects physical damage dealt by rogue's arms, viper's arms, archer's arms, machinist's arms, and dancer's arms. - /// - Dexterity = 2, - - /// - /// Vitality. - /// - /// - /// Affects maximum HP. - /// - Vitality = 3, - - /// - /// Intelligence. - /// - /// - /// Affects attack magic potency when role is DPS. - /// - Intelligence = 4, - - /// - /// Mind. - /// - /// - /// Affects healing magic potency. Also affects attack magic potency when role is Healer. - /// - Mind = 5, - - /// - /// Piety. - /// - /// - /// Affects MP regeneration. Regeneration rate is determined by piety. Only applicable when in battle and role is Healer. - /// - Piety = 6, - - /// - /// Health Points. - /// - HP = 7, - - /// - /// Mana Points. - /// - MP = 8, - - /// - /// Tactical Points. - /// - TP = 9, - - /// - /// Gathering Point. - /// - GP = 10, - - /// - /// Crafting Points. - /// - CP = 11, - - /// - /// Physical Damage. - /// - PhysicalDamage = 12, - - /// - /// Magic Damage. - /// - MagicDamage = 13, - - /// - /// Delay. - /// - Delay = 14, - - /// - /// Additional Effect. - /// - AdditionalEffect = 15, - - /// - /// Attack Speed. - /// - AttackSpeed = 16, - - /// - /// Block Rate. - /// - BlockRate = 17, - - /// - /// Block Strength. - /// - BlockStrength = 18, - - /// - /// Tenacity. - /// - /// - /// Affects the amount of physical and magic damage dealt and received, as well as HP restored. The higher the value, the more damage dealt, the more HP restored, and the less damage taken. Only applicable when role is Tank. - /// - Tenacity = 19, - - /// - /// Attack Power. - /// - /// - /// Affects amount of damage dealt by physical attacks. The higher the value, the more damage dealt. - /// - AttackPower = 20, - - /// - /// Defense. - /// - /// - /// Affects the amount of damage taken by physical attacks. The higher the value, the less damage taken. - /// - Defense = 21, - - /// - /// Direct Hit Rate. - /// - /// - /// Affects the rate at which your physical and magic attacks land direct hits, dealing slightly more damage than normal hits. The higher the value, the higher the frequency with which your hits will be direct. Higher values will also result in greater damage for actions which guarantee direct hits. - /// - DirectHitRate = 22, - - /// - /// Evasion. - /// - Evasion = 23, - - /// - /// Magic Defense. - /// - /// - /// Affects the amount of damage taken by magic attacks. The higher the value, the less damage taken. - /// - MagicDefense = 24, - - /// - /// Critical Hit Power. - /// - CriticalHitPower = 25, - - /// - /// Critical Hit Resilience. - /// - CriticalHitResilience = 26, - - /// - /// Critical Hit. - /// - /// - /// Affects the amount of physical and magic damage dealt, as well as HP restored. The higher the value, the higher the frequency with which your hits will be critical/higher the potency of critical hits. - /// - CriticalHit = 27, - - /// - /// Critical Hit Evasion. - /// - CriticalHitEvasion = 28, - - /// - /// Slashing Resistance. - /// - /// - /// Decreases damage done by slashing attacks. - /// - SlashingResistance = 29, - - /// - /// Piercing Resistance. - /// - /// - /// Decreases damage done by piercing attacks. - /// - PiercingResistance = 30, - - /// - /// Blunt Resistance. - /// - /// - /// Decreases damage done by blunt attacks. - /// - BluntResistance = 31, - - /// - /// Projectile Resistance. - /// - ProjectileResistance = 32, - - /// - /// Attack Magic Potency. - /// - /// - /// Affects the amount of damage dealt by magic attacks. - /// - AttackMagicPotency = 33, - - /// - /// Healing Magic Potency. - /// - /// - /// Affects the amount of HP restored via healing magic. - /// - HealingMagicPotency = 34, - - /// - /// Enhancement Magic Potency. - /// - EnhancementMagicPotency = 35, - - /// - /// Elemental Bonus. - /// - ElementalBonus = 36, - - /// - /// Fire Resistance. - /// - /// - /// Decreases fire-aspected damage. - /// - FireResistance = 37, - - /// - /// Ice Resistance. - /// - /// - /// Decreases ice-aspected damage. - /// - IceResistance = 38, - - /// - /// Wind Resistance. - /// - /// - /// Decreases wind-aspected damage. - /// - WindResistance = 39, - - /// - /// Earth Resistance. - /// - /// - /// Decreases earth-aspected damage. - /// - EarthResistance = 40, - - /// - /// Lightning Resistance. - /// - /// - /// Decreases lightning-aspected damage. - /// - LightningResistance = 41, - - /// - /// Water Resistance. - /// - /// - /// Decreases water-aspected damage. - /// - WaterResistance = 42, - - /// - /// Magic Resistance. - /// - MagicResistance = 43, - - /// - /// Determination. - /// - /// - /// Affects the amount of damage dealt by both physical and magic attacks, as well as the amount of HP restored by healing spells. - /// - Determination = 44, - - /// - /// Skill Speed. - /// - /// - /// Affects both the casting and recast timers, as well as the damage over time potency for weaponskills and auto-attacks. The higher the value, the shorter the timers/higher the potency. - /// - SkillSpeed = 45, - - /// - /// Spell Speed. - /// - /// - /// Affects both the casting and recast timers for spells. The higher the value, the shorter the timers. Also affects a spell's damage over time or healing over time potency. - /// - SpellSpeed = 46, - - /// - /// Haste. - /// - Haste = 47, - - /// - /// Morale. - /// - /// - /// In PvP, replaces physical and magical defense in determining damage inflicted by other players. Also influences the amount of damage dealt to other players. - /// - Morale = 48, - - /// - /// Enmity. - /// - Enmity = 49, - - /// - /// Enmity Reduction. - /// - EnmityReduction = 50, - - /// - /// Desynthesis Skill Gain. - /// - DesynthesisSkillGain = 51, - - /// - /// EXP Bonus. - /// - EXPBonus = 52, - - /// - /// Regen. - /// - Regen = 53, - - /// - /// Special Attribute. - /// - SpecialAttribute = 54, - - /// - /// Main Attribute. - /// - MainAttribute = 55, - - /// - /// Secondary Attribute. - /// - SecondaryAttribute = 56, - - /// - /// Slow Resistance. - /// - /// - /// Shortens the duration of slow. - /// - SlowResistance = 57, - - /// - /// Petrification Resistance. - /// - PetrificationResistance = 58, - - /// - /// Paralysis Resistance. - /// - ParalysisResistance = 59, - - /// - /// Silence Resistance. - /// - /// - /// Shortens the duration of silence. - /// - SilenceResistance = 60, - - /// - /// Blind Resistance. - /// - /// - /// Shortens the duration of blind. - /// - BlindResistance = 61, - - /// - /// Poison Resistance. - /// - /// - /// Shortens the duration of poison. - /// - PoisonResistance = 62, - - /// - /// Stun Resistance. - /// - /// - /// Shortens the duration of stun. - /// - StunResistance = 63, - - /// - /// Sleep Resistance. - /// - /// - /// Shortens the duration of sleep. - /// - SleepResistance = 64, - - /// - /// Bind Resistance. - /// - /// - /// Shortens the duration of bind. - /// - BindResistance = 65, - - /// - /// Heavy Resistance. - /// - /// - /// Shortens the duration of heavy. - /// - HeavyResistance = 66, - - /// - /// Doom Resistance. - /// - DoomResistance = 67, - - /// - /// Reduced Durability Loss. - /// - ReducedDurabilityLoss = 68, - - /// - /// Increased Spiritbond Gain. - /// - IncreasedSpiritbondGain = 69, - - /// - /// Craftsmanship. - /// - /// - /// Affects the amount of progress achieved in a single synthesis step. - /// - Craftsmanship = 70, - - /// - /// Control. - /// - /// - /// Affects the amount of quality improved in a single synthesis step. - /// - Control = 71, - - /// - /// Gathering. - /// - /// - /// Affects the rate at which items are gathered. - /// - Gathering = 72, - - /// - /// Perception. - /// - /// - /// Affects item yield when gathering as a botanist or miner, and the size of fish when fishing or spearfishing. - /// - Perception = 73, -} diff --git a/Dalamud/Game/Player/PlayerState.cs b/Dalamud/Game/Player/PlayerState.cs deleted file mode 100644 index bd19b5bfb..000000000 --- a/Dalamud/Game/Player/PlayerState.cs +++ /dev/null @@ -1,232 +0,0 @@ -using System.Collections.Generic; - -using Dalamud.Data; -using Dalamud.IoC; -using Dalamud.IoC.Internal; -using Dalamud.Plugin.Services; - -using FFXIVClientStructs.FFXIV.Client.UI.Agent; - -using Lumina.Excel; -using Lumina.Excel.Sheets; - -using CSPlayerState = FFXIVClientStructs.FFXIV.Client.Game.UI.PlayerState; -using GrandCompany = Lumina.Excel.Sheets.GrandCompany; - -namespace Dalamud.Game.Player; - -/// -/// This class contains the PlayerState wrappers. -/// -[PluginInterface] -[ServiceManager.EarlyLoadedService] -[ResolveVia] -internal unsafe class PlayerState : IServiceType, IPlayerState -{ - [ServiceManager.ServiceConstructor] - private PlayerState() - { - } - - /// - public bool IsLoaded => CSPlayerState.Instance()->IsLoaded; - - /// - public string CharacterName => this.IsLoaded ? CSPlayerState.Instance()->CharacterNameString : string.Empty; - - /// - public uint EntityId => this.IsLoaded ? CSPlayerState.Instance()->EntityId : default; - - /// - public ulong ContentId => this.IsLoaded ? CSPlayerState.Instance()->ContentId : default; - - /// - public RowRef CurrentWorld - { - get - { - var agentLobby = AgentLobby.Instance(); - return agentLobby->IsLoggedIn - ? LuminaUtils.CreateRef(agentLobby->LobbyData.CurrentWorldId) - : default; - } - } - - /// - public RowRef HomeWorld - { - get - { - var agentLobby = AgentLobby.Instance(); - return agentLobby->IsLoggedIn - ? LuminaUtils.CreateRef(agentLobby->LobbyData.HomeWorldId) - : default; - } - } - - /// - public Sex Sex => this.IsLoaded ? (Sex)CSPlayerState.Instance()->Sex : default; - - /// - public RowRef Race => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->Race) : default; - - /// - public RowRef Tribe => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->Tribe) : default; - - /// - public RowRef ClassJob => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->CurrentClassJobId) : default; - - /// - public short Level => this.IsLoaded && this.ClassJob.IsValid ? this.GetClassJobLevel(this.ClassJob.Value) : this.EffectiveLevel; - - /// - public bool IsLevelSynced => this.IsLoaded && CSPlayerState.Instance()->IsLevelSynced; - - /// - public short EffectiveLevel => this.IsLoaded ? (this.IsLevelSynced ? CSPlayerState.Instance()->SyncedLevel : CSPlayerState.Instance()->CurrentLevel) : default; - - /// - public RowRef GuardianDeity => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->GuardianDeity) : default; - - /// - public byte BirthMonth => this.IsLoaded ? CSPlayerState.Instance()->BirthMonth : default; - - /// - public byte BirthDay => this.IsLoaded ? CSPlayerState.Instance()->BirthDay : default; - - /// - public RowRef FirstClass => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->FirstClass) : default; - - /// - public RowRef StartTown => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->StartTown) : default; - - /// - public int BaseStrength => this.IsLoaded ? CSPlayerState.Instance()->BaseStrength : default; - - /// - public int BaseDexterity => this.IsLoaded ? CSPlayerState.Instance()->BaseDexterity : default; - - /// - public int BaseVitality => this.IsLoaded ? CSPlayerState.Instance()->BaseVitality : default; - - /// - public int BaseIntelligence => this.IsLoaded ? CSPlayerState.Instance()->BaseIntelligence : default; - - /// - public int BaseMind => this.IsLoaded ? CSPlayerState.Instance()->BaseMind : default; - - /// - public int BasePiety => this.IsLoaded ? CSPlayerState.Instance()->BasePiety : default; - - /// - public RowRef GrandCompany => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->GrandCompany) : default; - - /// - public RowRef HomeAetheryte => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->HomeAetheryteId) : default; - - /// - public IReadOnlyList> FavoriteAetherytes - { - get - { - var playerState = CSPlayerState.Instance(); - if (!playerState->IsLoaded) - return default; - - var count = playerState->FavouriteAetheryteCount; - if (count == 0) - return default; - - var array = new RowRef[count]; - - for (var i = 0; i < count; i++) - array[i] = LuminaUtils.CreateRef(playerState->FavouriteAetherytes[i]); - - return array; - } - } - - /// - public RowRef FreeAetheryte => this.IsLoaded ? LuminaUtils.CreateRef(CSPlayerState.Instance()->FreeAetheryteId) : default; - - /// - public uint BaseRestedExperience => this.IsLoaded ? CSPlayerState.Instance()->BaseRestedExperience : default; - - /// - public short PlayerCommendations => this.IsLoaded ? CSPlayerState.Instance()->PlayerCommendations : default; - - /// - public byte DeliveryLevel => this.IsLoaded ? CSPlayerState.Instance()->DeliveryLevel : default; - - /// - public MentorVersion MentorVersion => this.IsLoaded ? (MentorVersion)CSPlayerState.Instance()->MentorVersion : default; - - /// - public bool IsMentor => this.IsLoaded && CSPlayerState.Instance()->IsMentor(); - - /// - public bool IsBattleMentor => this.IsLoaded && CSPlayerState.Instance()->IsBattleMentor(); - - /// - public bool IsTradeMentor => this.IsLoaded && CSPlayerState.Instance()->IsTradeMentor(); - - /// - public bool IsNovice => this.IsLoaded && CSPlayerState.Instance()->IsNovice(); - - /// - public bool IsReturner => this.IsLoaded && CSPlayerState.Instance()->IsReturner(); - - /// - public int GetAttribute(PlayerAttribute attribute) => this.IsLoaded ? CSPlayerState.Instance()->Attributes[(int)attribute] : default; - - /// - public byte GetGrandCompanyRank(GrandCompany grandCompany) - { - if (!this.IsLoaded) - return default; - - return grandCompany.RowId switch - { - 1 => CSPlayerState.Instance()->GCRankMaelstrom, - 2 => CSPlayerState.Instance()->GCRankTwinAdders, - 3 => CSPlayerState.Instance()->GCRankImmortalFlames, - _ => default, - }; - } - - /// - public short GetClassJobLevel(ClassJob classJob) - { - if (classJob.ExpArrayIndex == -1) - return default; - - if (!this.IsLoaded) - return default; - - return CSPlayerState.Instance()->ClassJobLevels[classJob.ExpArrayIndex]; - } - - /// - public int GetClassJobExperience(ClassJob classJob) - { - if (classJob.ExpArrayIndex == -1) - return default; - - if (!this.IsLoaded) - return default; - - return CSPlayerState.Instance()->ClassJobExperience[classJob.ExpArrayIndex]; - } - - /// - public float GetDesynthesisLevel(ClassJob classJob) - { - if (classJob.DohDolJobIndex == -1) - return default; - - if (!this.IsLoaded) - return default; - - return CSPlayerState.Instance()->DesynthesisLevels[classJob.DohDolJobIndex] / 100f; - } -} diff --git a/Dalamud/Game/Player/Sex.cs b/Dalamud/Game/Player/Sex.cs deleted file mode 100644 index 0981cb9a4..000000000 --- a/Dalamud/Game/Player/Sex.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Dalamud.Game.Player; - -/// -/// Represents the sex of a character. -/// -public enum Sex : byte -{ - /// - /// Male sex. - /// - Male = 0, - - /// - /// Female sex. - /// - Female = 1, -} diff --git a/Dalamud/Game/SigScanner.cs b/Dalamud/Game/SigScanner.cs index 81fb8a3a3..3422848f3 100644 --- a/Dalamud/Game/SigScanner.cs +++ b/Dalamud/Game/SigScanner.cs @@ -8,12 +8,8 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; -using Dalamud.Plugin.Services; - using Iced.Intel; - using Newtonsoft.Json; - using Serilog; namespace Dalamud.Game; @@ -25,8 +21,6 @@ namespace Dalamud.Game; /// public class SigScanner : IDisposable, ISigScanner { - private static byte[]? fileBytes; - private readonly FileInfo? cacheFile; private nint moduleCopyPtr; @@ -37,7 +31,7 @@ public class SigScanner : IDisposable, ISigScanner /// /// Initializes a new instance of the class using the main module of the current process. /// - /// Whether to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks. + /// Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks. /// File used to cached signatures. public SigScanner(bool doCopy = false, FileInfo? cacheFile = null) : this(Process.GetCurrentProcess().MainModule!, doCopy, cacheFile) @@ -48,7 +42,7 @@ public class SigScanner : IDisposable, ISigScanner /// Initializes a new instance of the class. /// /// The ProcessModule to be used for scanning. - /// Whether to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks. + /// Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks. /// File used to cached signatures. public SigScanner(ProcessModule module, bool doCopy = false, FileInfo? cacheFile = null) { @@ -57,16 +51,12 @@ public class SigScanner : IDisposable, ISigScanner this.Is32BitProcess = !Environment.Is64BitProcess; this.IsCopy = doCopy; - if (this.IsCopy) - { - this.SetupCopiedSegments(); - - fileBytes ??= File.ReadAllBytes(module.FileName); - } - // Limit the search space to .text section. this.SetupSearchSpace(module); + if (this.IsCopy) + this.SetupCopiedSegments(); + Log.Verbose($"Module base: 0x{this.TextSectionBase.ToInt64():X}"); Log.Verbose($"Module size: 0x{this.TextSectionSize:X}"); @@ -330,7 +320,7 @@ public class SigScanner : IDisposable, ISigScanner } /// - public nint[] ScanAllText(string signature) => this.ScanAllText(signature, CancellationToken.None).ToArray(); + public nint[] ScanAllText(string signature) => this.ScanAllText(signature, default).ToArray(); /// public IEnumerable ScanAllText(string signature, CancellationToken cancellationToken) @@ -342,16 +332,16 @@ public class SigScanner : IDisposable, ISigScanner { cancellationToken.ThrowIfCancellationRequested(); - var index = IndexOf(mBase, this.TextSectionSize - (int)(mBase - this.TextSectionBase), needle, mask, badShift); + var index = IndexOf(mBase, this.TextSectionSize, needle, mask, badShift); if (index < 0) break; var scanRet = mBase + index; - mBase = scanRet + 1; if (this.IsCopy) scanRet -= this.moduleCopyOffset; yield return scanRet; + mBase = scanRet + 1; } } @@ -504,18 +494,6 @@ public class SigScanner : IDisposable, ISigScanner case 0x747865742E: // .text this.TextSectionOffset = Marshal.ReadInt32(sectionCursor, 12); this.TextSectionSize = Marshal.ReadInt32(sectionCursor, 8); - - if (this.IsCopy) - { - var pointerToRawData = Marshal.ReadInt32(sectionCursor, 20); - - Marshal.Copy( - fileBytes.AsSpan(pointerToRawData, this.TextSectionSize).ToArray(), - 0, - this.moduleCopyPtr + (nint)this.TextSectionOffset, - this.TextSectionSize); - } - break; case 0x617461642E: // .data this.DataSectionOffset = Marshal.ReadInt32(sectionCursor, 12); diff --git a/Dalamud/Game/TargetSigScanner.cs b/Dalamud/Game/TargetSigScanner.cs index 540d0ea47..5c93fb4d4 100644 --- a/Dalamud/Game/TargetSigScanner.cs +++ b/Dalamud/Game/TargetSigScanner.cs @@ -1,9 +1,8 @@ -using System.Diagnostics; +using System.Diagnostics; using System.IO; using Dalamud.IoC; using Dalamud.IoC.Internal; -using Dalamud.Plugin.Services; namespace Dalamud.Game; @@ -20,7 +19,7 @@ internal class TargetSigScanner : SigScanner, IPublicDisposableService /// /// Initializes a new instance of the class. /// - /// Whether to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks. + /// Whether or not to copy the module upon initialization for search operations to use, as to not get disturbed by possible hooks. /// File used to cached signatures. public TargetSigScanner(bool doCopy = false, FileInfo? cacheFile = null) : base(Process.GetCurrentProcess().MainModule!, doCopy, cacheFile) diff --git a/Dalamud/Game/Text/Evaluator/Internal/SeStringBuilderIconWrap.cs b/Dalamud/Game/Text/Evaluator/Internal/SeStringBuilderIconWrap.cs deleted file mode 100644 index 65567d240..000000000 --- a/Dalamud/Game/Text/Evaluator/Internal/SeStringBuilderIconWrap.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Lumina.Text; - -namespace Dalamud.Game.Text.Evaluator.Internal; - -/// -/// Wraps payloads in an open and close icon, for example the Auto Translation open/close brackets. -/// -internal readonly struct SeStringBuilderIconWrap : IDisposable -{ - private readonly SeStringBuilder builder; - private readonly uint iconClose; - - /// - /// Initializes a new instance of the struct.
- /// Appends an icon macro with on creation, and an icon macro with - /// on disposal. - ///
- /// The builder to use. - /// The open icon id. - /// The close icon id. - public SeStringBuilderIconWrap(SeStringBuilder builder, uint iconOpen, uint iconClose) - { - this.builder = builder; - this.iconClose = iconClose; - this.builder.AppendIcon(iconOpen); - } - - /// - public void Dispose() => this.builder.AppendIcon(this.iconClose); -} diff --git a/Dalamud/Game/Text/Evaluator/Internal/SeStringContext.cs b/Dalamud/Game/Text/Evaluator/Internal/SeStringContext.cs deleted file mode 100644 index a32702f6c..000000000 --- a/Dalamud/Game/Text/Evaluator/Internal/SeStringContext.cs +++ /dev/null @@ -1,83 +0,0 @@ -using System.Globalization; - -using Dalamud.Utility; - -using Lumina.Text; -using Lumina.Text.ReadOnly; - -namespace Dalamud.Game.Text.Evaluator.Internal; - -/// -/// A context wrapper used in . -/// -internal readonly ref struct SeStringContext -{ - /// - /// The to append text and macros to. - /// - internal readonly SeStringBuilder Builder; - - /// - /// A list of local parameters. - /// - internal readonly Span LocalParameters; - - /// - /// The target language, used for sheet lookups. - /// - internal readonly ClientLanguage Language; - - /// - /// Initializes a new instance of the struct. - /// - /// The to append text and macros to. - /// A list of local parameters. - /// The target language, used for sheet lookups. - internal SeStringContext(SeStringBuilder builder, Span localParameters, ClientLanguage language) - { - this.Builder = builder; - this.LocalParameters = localParameters; - this.Language = language; - } - - /// - /// Gets the of the current target . - /// - internal CultureInfo CultureInfo => Localization.GetCultureInfoFromLangCode(this.Language.ToCode()); - - /// - /// Tries to get a number from the local parameters at the specified index. - /// - /// The index in the list. - /// The local parameter number. - /// true if the local parameters list contained a parameter at given index, false otherwise. - internal bool TryGetLNum(int index, out uint value) - { - if (index >= 0 && this.LocalParameters.Length > index) - { - value = this.LocalParameters[index].UIntValue; - return true; - } - - value = 0; - return false; - } - - /// - /// Tries to get a string from the local parameters at the specified index. - /// - /// The index in the list. - /// The local parameter string. - /// true if the local parameters list contained a parameter at given index, false otherwise. - internal bool TryGetLStr(int index, out ReadOnlySeString value) - { - if (index >= 0 && this.LocalParameters.Length > index) - { - value = this.LocalParameters[index].StringValue; - return true; - } - - value = default; - return false; - } -} diff --git a/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectFlags.cs b/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectFlags.cs deleted file mode 100644 index 1c1171873..000000000 --- a/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectFlags.cs +++ /dev/null @@ -1,49 +0,0 @@ -namespace Dalamud.Game.Text.Evaluator.Internal; - -/// -/// An enum providing additional information about the sheet redirect. -/// -[Flags] -internal enum SheetRedirectFlags -{ - /// - /// No flags. - /// - None = 0, - - /// - /// Resolved to a sheet related with items. - /// - Item = 1, - - /// - /// Resolved to the EventItem sheet. - /// - EventItem = 2, - - /// - /// Resolved to a high quality item. - /// - /// - /// Append Addon#9. - /// - HighQuality = 4, - - /// - /// Resolved to a collectible item. - /// - /// - /// Append Addon#150. - /// - Collectible = 8, - - /// - /// Resolved to a sheet related with actions. - /// - Action = 16, - - /// - /// Resolved to the Action sheet. - /// - ActionSheet = 32, -} diff --git a/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectResolver.cs b/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectResolver.cs deleted file mode 100644 index 523086f48..000000000 --- a/Dalamud/Game/Text/Evaluator/Internal/SheetRedirectResolver.cs +++ /dev/null @@ -1,232 +0,0 @@ -using Dalamud.Data; -using Dalamud.Utility; - -using Lumina.Extensions; - -using LSheets = Lumina.Excel.Sheets; - -namespace Dalamud.Game.Text.Evaluator.Internal; - -/// -/// A service to resolve sheet redirects in expressions. -/// -[ServiceManager.EarlyLoadedService] -internal class SheetRedirectResolver : IServiceType -{ - private static readonly (string SheetName, uint ColumnIndex, bool ReturnActionSheetFlag)[] ActStrSheets = - [ - (nameof(LSheets.Trait), 0, false), - (nameof(LSheets.Action), 0, true), - (nameof(LSheets.Item), 0, false), - (nameof(LSheets.EventItem), 0, false), - (nameof(LSheets.EventAction), 0, false), - (nameof(LSheets.GeneralAction), 0, false), - (nameof(LSheets.BuddyAction), 0, false), - (nameof(LSheets.MainCommand), 5, false), - (nameof(LSheets.Companion), 0, false), - (nameof(LSheets.CraftAction), 0, false), - (nameof(LSheets.Action), 0, true), - (nameof(LSheets.PetAction), 0, false), - (nameof(LSheets.CompanyAction), 0, false), - (nameof(LSheets.Mount), 0, false), - (string.Empty, 0, false), - (string.Empty, 0, false), - (string.Empty, 0, false), - (string.Empty, 0, false), - (string.Empty, 0, false), - (nameof(LSheets.BgcArmyAction), 1, false), - (nameof(LSheets.Ornament), 8, false), - ]; - - private static readonly string[] ObjStrSheetNames = - [ - nameof(LSheets.BNpcName), - nameof(LSheets.ENpcResident), - nameof(LSheets.Treasure), - nameof(LSheets.Aetheryte), - nameof(LSheets.GatheringPointName), - nameof(LSheets.EObjName), - nameof(LSheets.Mount), - nameof(LSheets.Companion), - string.Empty, - string.Empty, - nameof(LSheets.Item), - ]; - - [ServiceManager.ServiceDependency] - private readonly DataManager dataManager = Service.Get(); - - [ServiceManager.ServiceConstructor] - private SheetRedirectResolver() - { - } - - /// - /// Resolves the sheet redirect, if any is present. - /// - /// The sheet name. - /// The row id. - /// The column index. Use ushort.MaxValue as default. - /// Flags giving additional information about the redirect. - internal SheetRedirectFlags Resolve(ref string sheetName, ref uint rowId, ref uint colIndex) - { - var flags = SheetRedirectFlags.None; - - switch (sheetName) - { - case nameof(LSheets.Item) or "ItemHQ" or "ItemMP": - { - flags |= SheetRedirectFlags.Item; - - var (itemId, kind) = ItemUtil.GetBaseId(rowId); - - if (kind == ItemKind.Hq || sheetName == "ItemHQ") - { - flags |= SheetRedirectFlags.HighQuality; - } - else if (kind == ItemKind.Collectible || sheetName == "ItemMP") - { - // MP for Masterpiece?! - flags |= SheetRedirectFlags.Collectible; - } - - if (kind == ItemKind.EventItem && - rowId - 2_000_000 <= this.dataManager.GetExcelSheet().Count) - { - flags |= SheetRedirectFlags.EventItem; - sheetName = nameof(LSheets.EventItem); - } - else - { - sheetName = nameof(LSheets.Item); - rowId = itemId; - } - - if (colIndex is >= 4 and <= 7) - return SheetRedirectFlags.None; - - break; - } - - case "ActStr": - { - var returnActionSheetFlag = false; - (var index, rowId) = uint.DivRem(rowId, 1000000); - if (index < ActStrSheets.Length) - (sheetName, colIndex, returnActionSheetFlag) = ActStrSheets[index]; - - if (sheetName != nameof(LSheets.Companion) && colIndex != 13) - flags |= SheetRedirectFlags.Action; - - if (returnActionSheetFlag) - flags |= SheetRedirectFlags.ActionSheet; - - break; - } - - case "ObjStr": - { - (var index, rowId) = uint.DivRem(rowId, 1000000); - if (index < ObjStrSheetNames.Length) - sheetName = ObjStrSheetNames[index]; - - colIndex = 0; - - switch (index) - { - case 0: // BNpcName - if (rowId >= 100000) - rowId += 900000; - break; - - case 1: // ENpcResident - rowId += 1000000; - break; - - case 2: // Treasure - if (this.dataManager.GetExcelSheet().TryGetRow(rowId, out var treasureRow) && - treasureRow.Unknown0.IsEmpty) - rowId = 0; // defaulting to "Treasure Coffer" - break; - - case 3: // Aetheryte - rowId = this.dataManager.GetExcelSheet() - .TryGetRow(rowId, out var aetheryteRow) && aetheryteRow.IsAetheryte - ? 0u // "Aetheryte" - : 1; // "Aethernet Shard" - break; - - case 5: // EObjName - rowId += 2000000; - break; - } - - break; - } - - case nameof(LSheets.EObj) when colIndex is <= 7 or ushort.MaxValue: - sheetName = nameof(LSheets.EObjName); - break; - - case nameof(LSheets.Treasure) - when this.dataManager.GetExcelSheet().TryGetRow(rowId, out var treasureRow) && - treasureRow.Unknown0.IsEmpty: - rowId = 0; // defaulting to "Treasure Coffer" - break; - - case "WeatherPlaceName": - { - sheetName = nameof(LSheets.PlaceName); - - var placeNameSubId = rowId; - if (this.dataManager.GetExcelSheet().TryGetFirst( - r => r.PlaceNameSub.RowId == placeNameSubId, - out var row)) - rowId = row.PlaceNameParent.RowId; - break; - } - - case nameof(LSheets.InstanceContent) when colIndex == 3: - { - sheetName = nameof(LSheets.ContentFinderCondition); - colIndex = 43; - - if (this.dataManager.GetExcelSheet().TryGetRow(rowId, out var row)) - rowId = row.ContentFinderCondition.RowId; - break; - } - - case nameof(LSheets.PartyContent) when colIndex == 2: - { - sheetName = nameof(LSheets.ContentFinderCondition); - colIndex = 43; - - if (this.dataManager.GetExcelSheet().TryGetRow(rowId, out var row)) - rowId = row.ContentFinderCondition.RowId; - break; - } - - case nameof(LSheets.PublicContent) when colIndex == 3: - { - sheetName = nameof(LSheets.ContentFinderCondition); - colIndex = 43; - - if (this.dataManager.GetExcelSheet().TryGetRow(rowId, out var row)) - rowId = row.ContentFinderCondition.RowId; - break; - } - - case nameof(LSheets.AkatsukiNote): - { - sheetName = nameof(LSheets.AkatsukiNoteString); - colIndex = 0; - - if (this.dataManager.Excel.GetSubrowSheet().TryGetSubrow(rowId, 0, out var row)) - rowId = row.ListName.RowId; - break; - } - } - - return flags; - } -} diff --git a/Dalamud/Game/Text/Evaluator/SeStringEvaluator.cs b/Dalamud/Game/Text/Evaluator/SeStringEvaluator.cs deleted file mode 100644 index 58b9011e6..000000000 --- a/Dalamud/Game/Text/Evaluator/SeStringEvaluator.cs +++ /dev/null @@ -1,2146 +0,0 @@ -using System.Collections.Concurrent; -using System.Globalization; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text; - -using Dalamud.Configuration.Internal; -using Dalamud.Data; -using Dalamud.Game.ClientState.Objects.Enums; -using Dalamud.Game.Config; -using Dalamud.Game.Player; -using Dalamud.Game.Text.Evaluator.Internal; -using Dalamud.Game.Text.Noun; -using Dalamud.Game.Text.Noun.Enums; -using Dalamud.IoC; -using Dalamud.IoC.Internal; -using Dalamud.Logging.Internal; -using Dalamud.Plugin.Services; -using Dalamud.Utility; - -using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Client.UI.Agent; -using FFXIVClientStructs.FFXIV.Client.UI.Info; -using FFXIVClientStructs.FFXIV.Client.UI.Misc; -using FFXIVClientStructs.FFXIV.Component.Text; -using FFXIVClientStructs.Interop; - -using Lumina.Data.Structs.Excel; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using Lumina.Extensions; -using Lumina.Text; -using Lumina.Text.Expressions; -using Lumina.Text.Payloads; -using Lumina.Text.ReadOnly; - -using AddonSheet = Lumina.Excel.Sheets.Addon; -using StatusSheet = Lumina.Excel.Sheets.Status; - -namespace Dalamud.Game.Text.Evaluator; - -/// -/// Evaluator for SeStrings. -/// -[PluginInterface] -[ServiceManager.EarlyLoadedService] -[ResolveVia] -internal class SeStringEvaluator : IServiceType, ISeStringEvaluator -{ - private static readonly ModuleLog Log = ModuleLog.Create(); - - [ServiceManager.ServiceDependency] - private readonly ClientState.ClientState clientState = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly DataManager dataManager = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly GameConfig gameConfig = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly DalamudConfiguration dalamudConfiguration = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly NounProcessor nounProcessor = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly SheetRedirectResolver sheetRedirectResolver = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly PlayerState playerState = Service.Get(); - - private readonly ConcurrentDictionary, string> actStrCache = []; - private readonly ConcurrentDictionary, string> objStrCache = []; - - [ServiceManager.ServiceConstructor] - private SeStringEvaluator() - { - } - - /// - public ReadOnlySeString Evaluate( - ReadOnlySeString str, - Span localParameters = default, - ClientLanguage? language = null) - { - return this.Evaluate(str.AsSpan(), localParameters, language); - } - - /// - public ReadOnlySeString Evaluate( - ReadOnlySeStringSpan str, - Span localParameters = default, - ClientLanguage? language = null) - { - if (str.IsTextOnly()) - return new(str); - - var lang = language ?? this.GetEffectiveClientLanguage(); - - // TODO: remove culture info toggling after supporting CultureInfo for SeStringBuilder.Append, - // and then remove try...finally block (discard builder from the pool on exception) - var previousCulture = CultureInfo.CurrentCulture; - using var rssb = new RentedSeStringBuilder(); - try - { - CultureInfo.CurrentCulture = Localization.GetCultureInfoFromLangCode(lang.ToCode()); - return this.EvaluateAndAppendTo(rssb.Builder, str, localParameters, lang).ToReadOnlySeString(); - } - finally - { - CultureInfo.CurrentCulture = previousCulture; - } - } - - /// - public ReadOnlySeString EvaluateMacroString( - string macroString, - Span localParameters = default, - ClientLanguage? language = null) - { - return this.Evaluate(ReadOnlySeString.FromMacroString(macroString).AsSpan(), localParameters, language); - } - - /// - public ReadOnlySeString EvaluateMacroString( - ReadOnlySpan macroString, - Span localParameters = default, - ClientLanguage? language = null) - { - return this.Evaluate(ReadOnlySeString.FromMacroString(macroString).AsSpan(), localParameters, language); - } - - /// - public ReadOnlySeString EvaluateFromAddon( - uint addonId, - Span localParameters = default, - ClientLanguage? language = null) - { - var lang = language ?? this.GetEffectiveClientLanguage(); - - if (!this.dataManager.GetExcelSheet(lang).TryGetRow(addonId, out var addonRow)) - return default; - - return this.Evaluate(addonRow.Text.AsSpan(), localParameters, lang); - } - - /// - public ReadOnlySeString EvaluateFromLobby( - uint lobbyId, - Span localParameters = default, - ClientLanguage? language = null) - { - var lang = language ?? this.GetEffectiveClientLanguage(); - - if (!this.dataManager.GetExcelSheet(lang).TryGetRow(lobbyId, out var lobbyRow)) - return default; - - return this.Evaluate(lobbyRow.Text.AsSpan(), localParameters, lang); - } - - /// - public ReadOnlySeString EvaluateFromLogMessage( - uint logMessageId, - Span localParameters = default, - ClientLanguage? language = null) - { - var lang = language ?? this.GetEffectiveClientLanguage(); - - if (!this.dataManager.GetExcelSheet(lang).TryGetRow(logMessageId, out var logMessageRow)) - return default; - - return this.Evaluate(logMessageRow.Text.AsSpan(), localParameters, lang); - } - - /// - public string EvaluateActStr(ActionKind actionKind, uint id, ClientLanguage? language = null) => - this.actStrCache.GetOrAdd( - new(actionKind, id, language ?? this.GetEffectiveClientLanguage()), - static (key, t) => t.EvaluateFromAddon(2026, [key.Kind.GetActStrId(key.Id)], key.Language) - .ExtractText() - .StripSoftHyphen(), - this); - - /// - public string EvaluateObjStr(ObjectKind objectKind, uint id, ClientLanguage? language = null) => - this.objStrCache.GetOrAdd( - new(objectKind, id, language ?? this.GetEffectiveClientLanguage()), - static (key, t) => t.EvaluateFromAddon(2025, [key.Kind.GetObjStrId(key.Id)], key.Language) - .ExtractText() - .StripSoftHyphen(), - this); - - // TODO: move this to MapUtil? - private static uint ConvertRawToMapPos(Lumina.Excel.Sheets.Map map, short offset, float value) - { - var scale = map.SizeFactor / 100.0f; - return (uint)(10 - (int)(((((value + offset) * scale) + 1024f) * -0.2f) / scale)); - } - - private static uint ConvertRawToMapPosX(Lumina.Excel.Sheets.Map map, float x) - => ConvertRawToMapPos(map, map.OffsetX, x); - - private static uint ConvertRawToMapPosY(Lumina.Excel.Sheets.Map map, float y) - => ConvertRawToMapPos(map, map.OffsetY, y); - - private ClientLanguage GetEffectiveClientLanguage() - { - return this.dalamudConfiguration.EffectiveLanguage switch - { - "ja" => ClientLanguage.Japanese, - "en" => ClientLanguage.English, - "de" => ClientLanguage.German, - "fr" => ClientLanguage.French, - _ => this.clientState.ClientLanguage, - }; - } - - private SeStringBuilder EvaluateAndAppendTo( - SeStringBuilder builder, - ReadOnlySeStringSpan str, - Span localParameters, - ClientLanguage language) - { - var context = new SeStringContext(builder, localParameters, language); - - foreach (var payload in str) - { - if (!this.ResolvePayload(in context, payload)) - { - context.Builder.Append(payload); - } - } - - return builder; - } - - private bool ResolvePayload(in SeStringContext context, ReadOnlySePayloadSpan payload) - { - if (payload.Type != ReadOnlySePayloadType.Macro) - return false; - - // if (context.HandlePayload(payload, in context)) - // return true; - - return payload.MacroCode switch - { - MacroCode.SetResetTime => this.TryResolveSetResetTime(in context, payload), - MacroCode.SetTime => this.TryResolveSetTime(in context, payload), - MacroCode.If => this.TryResolveIf(in context, payload), - MacroCode.Switch => this.TryResolveSwitch(in context, payload), - MacroCode.SwitchPlatform => this.TryResolveSwitchPlatform(in context, payload), - MacroCode.PcName => this.TryResolvePcName(in context, payload), - MacroCode.IfPcGender => this.TryResolveIfPcGender(in context, payload), - MacroCode.IfPcName => this.TryResolveIfPcName(in context, payload), - // MacroCode.Josa - // MacroCode.Josaro - MacroCode.IfSelf => this.TryResolveIfSelf(in context, payload), - // MacroCode.NewLine (pass through) - // MacroCode.Wait (pass through) - // MacroCode.Icon (pass through) - MacroCode.Color => this.TryResolveColor(in context, payload), - MacroCode.EdgeColor => this.TryResolveEdgeColor(in context, payload), - MacroCode.ShadowColor => this.TryResolveShadowColor(in context, payload), - // MacroCode.SoftHyphen (pass through) - // MacroCode.Key - // MacroCode.Scale - MacroCode.Bold => this.TryResolveBold(in context, payload), - MacroCode.Italic => this.TryResolveItalic(in context, payload), - // MacroCode.Edge - // MacroCode.Shadow - // MacroCode.NonBreakingSpace (pass through) - // MacroCode.Icon2 (pass through) - // MacroCode.Hyphen (pass through) - MacroCode.Num => this.TryResolveNum(in context, payload), - MacroCode.Hex => this.TryResolveHex(in context, payload), - MacroCode.Kilo => this.TryResolveKilo(in context, payload), - // MacroCode.Byte - MacroCode.Sec => this.TryResolveSec(in context, payload), - // MacroCode.Time - MacroCode.Float => this.TryResolveFloat(in context, payload), - // MacroCode.Link (pass through) - MacroCode.Sheet => this.TryResolveSheet(in context, payload), - MacroCode.SheetSub => this.TryResolveSheetSub(in context, payload), - MacroCode.String => this.TryResolveString(in context, payload), - MacroCode.Caps => this.TryResolveCaps(in context, payload), - MacroCode.Head => this.TryResolveHead(in context, payload), - MacroCode.Split => this.TryResolveSplit(in context, payload), - MacroCode.HeadAll => this.TryResolveHeadAll(in context, payload), - MacroCode.Fixed => this.TryResolveFixed(in context, payload), - MacroCode.Lower => this.TryResolveLower(in context, payload), - MacroCode.JaNoun => this.TryResolveNoun(ClientLanguage.Japanese, in context, payload), - MacroCode.EnNoun => this.TryResolveNoun(ClientLanguage.English, in context, payload), - MacroCode.DeNoun => this.TryResolveNoun(ClientLanguage.German, in context, payload), - MacroCode.FrNoun => this.TryResolveNoun(ClientLanguage.French, in context, payload), - // MacroCode.ChNoun - MacroCode.LowerHead => this.TryResolveLowerHead(in context, payload), - MacroCode.ColorType => this.TryResolveColorType(in context, payload), - MacroCode.EdgeColorType => this.TryResolveEdgeColorType(in context, payload), - // MacroCode.Ruby - MacroCode.Digit => this.TryResolveDigit(in context, payload), - MacroCode.Ordinal => this.TryResolveOrdinal(in context, payload), - // MacroCode.Sound (pass through) - MacroCode.LevelPos => this.TryResolveLevelPos(in context, payload), - _ => false, - }; - } - - private unsafe bool TryResolveSetResetTime(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - DateTime date; - - if (payload.TryGetExpression(out var eHour, out var eWeekday) - && this.TryResolveInt(in context, eHour, out var eHourVal) - && this.TryResolveInt(in context, eWeekday, out var eWeekdayVal)) - { - var t = DateTime.UtcNow.AddDays(((eWeekdayVal - (int)DateTime.UtcNow.DayOfWeek) + 7) % 7); - date = new DateTime(t.Year, t.Month, t.Day, eHourVal, 0, 0, DateTimeKind.Utc).ToLocalTime(); - } - else if (payload.TryGetExpression(out eHour) - && this.TryResolveInt(in context, eHour, out eHourVal)) - { - var t = DateTime.UtcNow; - date = new DateTime(t.Year, t.Month, t.Day, eHourVal, 0, 0, DateTimeKind.Utc).ToLocalTime(); - } - else - { - return false; - } - - MacroDecoder.GetMacroTime()->SetTime(date); - - return true; - } - - private unsafe bool TryResolveSetTime(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eTime) || !this.TryResolveUInt(in context, eTime, out var eTimeVal)) - return false; - - var date = DateTimeOffset.FromUnixTimeSeconds(eTimeVal).LocalDateTime; - MacroDecoder.GetMacroTime()->SetTime(date); - - return true; - } - - private bool TryResolveIf(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - return - payload.TryGetExpression(out var eCond, out var eTrue, out var eFalse) - && this.ResolveStringExpression( - context, - this.TryResolveBool(in context, eCond, out var eCondVal) && eCondVal - ? eTrue - : eFalse); - } - - private bool TryResolveSwitch(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - var cond = -1; - foreach (var e in payload) - { - switch (cond) - { - case -1: - cond = this.TryResolveUInt(in context, e, out var eVal) ? (int)eVal : 0; - break; - case > 1: - cond--; - break; - default: - return this.ResolveStringExpression(in context, e); - } - } - - return false; - } - - private bool TryResolveSwitchPlatform(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var expr1)) - return false; - - if (!expr1.TryGetInt(out var intVal)) - return false; - - // Our version of the game uses IsMacClient() here and the - // Xbox version seems to always return 7 for the platform. - var platform = Util.IsWine() ? 5 : 3; - - // The sheet is seeminly split into first 20 rows for wired controllers - // and the last 20 rows for wireless controllers. - var rowId = (uint)((20 * ((intVal - 1) / 20)) + (platform - 4 < 2 ? 2 : 1)); - - if (!this.dataManager.GetExcelSheet().TryGetRow(rowId, out var platformRow)) - return false; - - context.Builder.Append(platformRow.Name); - return true; - } - - private unsafe bool TryResolvePcName(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eEntityId)) - return false; - - if (!this.TryResolveUInt(in context, eEntityId, out var entityId)) - return false; - - // TODO: handle LogNameType - - NameCache.CharacterInfo characterInfo = default; - if (NameCache.Instance()->TryGetCharacterInfoByEntityId(entityId, &characterInfo)) - { - context.Builder.Append((ReadOnlySeStringSpan)characterInfo.Name.AsSpan()); - - if (characterInfo.HomeWorldId != AgentLobby.Instance()->LobbyData.HomeWorldId && - WorldHelper.Instance()->AllWorlds.TryGetValue((ushort)characterInfo.HomeWorldId, out var world, false)) - { - context.Builder.AppendIcon(88); - - if (this.gameConfig.UiConfig.TryGetUInt("LogCrossWorldName", out var logCrossWorldName) && - logCrossWorldName == 1) - context.Builder.Append(new ReadOnlySeStringSpan(world.Name.GetPointer(0))); - } - - return true; - } - - // TODO: lookup via InstanceContentCrystallineConflictDirector - // TODO: lookup via MJIManager - - return false; - } - - private unsafe bool TryResolveIfPcGender(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eEntityId, out var eMale, out var eFemale)) - return false; - - if (!this.TryResolveUInt(in context, eEntityId, out var entityId)) - return false; - - NameCache.CharacterInfo characterInfo = default; - if (NameCache.Instance()->TryGetCharacterInfoByEntityId(entityId, &characterInfo)) - return this.ResolveStringExpression(in context, characterInfo.Sex == 0 ? eMale : eFemale); - - // TODO: lookup via InstanceContentCrystallineConflictDirector - - return false; - } - - private unsafe bool TryResolveIfPcName(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eEntityId, out var eName, out var eTrue, out var eFalse)) - return false; - - if (!this.TryResolveUInt(in context, eEntityId, out var entityId) || !eName.TryGetString(out var name)) - return false; - - name = this.Evaluate(name, context.LocalParameters, context.Language).AsSpan(); - - NameCache.CharacterInfo characterInfo = default; - return NameCache.Instance()->TryGetCharacterInfoByEntityId(entityId, &characterInfo) && - this.ResolveStringExpression( - context, - name.Equals(characterInfo.Name.AsSpan()) - ? eTrue - : eFalse); - } - - private unsafe bool TryResolveIfSelf(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eEntityId, out var eTrue, out var eFalse)) - return false; - - if (!this.TryResolveUInt(in context, eEntityId, out var entityId)) - return false; - - // the game uses LocalPlayer here, but using PlayerState seems more safe. - return this.ResolveStringExpression(in context, this.playerState.EntityId == entityId ? eTrue : eFalse); - } - - private bool TryResolveColor(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eColor)) - return false; - - if (eColor.TryGetPlaceholderExpression(out var ph) && ph == (int)ExpressionType.StackColor) - context.Builder.PopColor(); - else if (this.TryResolveUInt(in context, eColor, out var eColorVal)) - context.Builder.PushColorBgra(eColorVal); - - return true; - } - - private bool TryResolveEdgeColor(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eColor)) - return false; - - if (eColor.TryGetPlaceholderExpression(out var ph) && ph == (int)ExpressionType.StackColor) - context.Builder.PopEdgeColor(); - else if (this.TryResolveUInt(in context, eColor, out var eColorVal)) - context.Builder.PushEdgeColorBgra(eColorVal); - - return true; - } - - private bool TryResolveShadowColor(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eColor)) - return false; - - if (eColor.TryGetPlaceholderExpression(out var ph) && ph == (int)ExpressionType.StackColor) - context.Builder.PopShadowColor(); - else if (this.TryResolveUInt(in context, eColor, out var eColorVal)) - context.Builder.PushShadowColorBgra(eColorVal); - - return true; - } - - private bool TryResolveBold(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eEnable) || - !this.TryResolveBool(in context, eEnable, out var eEnableVal)) - return false; - - context.Builder.AppendSetBold(eEnableVal); - - return true; - } - - private bool TryResolveItalic(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eEnable) || - !this.TryResolveBool(in context, eEnable, out var eEnableVal)) - return false; - - context.Builder.AppendSetItalic(eEnableVal); - - return true; - } - - private bool TryResolveNum(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eInt) || !this.TryResolveInt(in context, eInt, out var eIntVal)) - { - context.Builder.Append('0'); - return true; - } - - context.Builder.Append(eIntVal.ToString()); - - return true; - } - - private bool TryResolveHex(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eUInt) || !this.TryResolveUInt(in context, eUInt, out var eUIntVal)) - { - // TODO: throw? - // ERROR: mismatch parameter type ('' is not numeric) - return false; - } - - context.Builder.Append("0x{0:X08}".Format(eUIntVal)); - - return true; - } - - private bool TryResolveKilo(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eInt, out var eSep) || - !this.TryResolveInt(in context, eInt, out var eIntVal)) - { - context.Builder.Append('0'); - return true; - } - - if (eIntVal == int.MinValue) - { - // -2147483648 - context.Builder.Append("-2"u8); - this.ResolveStringExpression(in context, eSep); - context.Builder.Append("147"u8); - this.ResolveStringExpression(in context, eSep); - context.Builder.Append("483"u8); - this.ResolveStringExpression(in context, eSep); - context.Builder.Append("648"u8); - return true; - } - - if (eIntVal < 0) - { - context.Builder.Append('-'); - eIntVal = -eIntVal; - } - - if (eIntVal == 0) - { - context.Builder.Append('0'); - return true; - } - - var anyDigitPrinted = false; - for (var i = 1_000_000_000; i > 0; i /= 10) - { - var digit = (eIntVal / i) % 10; - switch (anyDigitPrinted) - { - case false when digit == 0: - continue; - case true when MathF.Log10(i) % 3 == 2: - this.ResolveStringExpression(in context, eSep); - break; - } - - anyDigitPrinted = true; - context.Builder.Append((char)('0' + digit)); - } - - return true; - } - - private bool TryResolveSec(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eInt) || !this.TryResolveUInt(in context, eInt, out var eIntVal)) - { - // TODO: throw? - // ERROR: mismatch parameter type ('' is not numeric) - return false; - } - - context.Builder.Append("{0:00}".Format(eIntVal)); - return true; - } - - private bool TryResolveFloat(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eValue, out var eRadix, out var eSeparator) - || !this.TryResolveInt(in context, eValue, out var eValueVal) - || !this.TryResolveInt(in context, eRadix, out var eRadixVal)) - { - return false; - } - - var (integerPart, fractionalPart) = int.DivRem(eValueVal, eRadixVal); - if (fractionalPart < 0) - { - integerPart--; - fractionalPart += eRadixVal; - } - - context.Builder.Append(integerPart.ToString()); - this.ResolveStringExpression(in context, eSeparator); - - // brain fried code - Span fractionalDigits = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - var pos = fractionalDigits.Length - 1; - for (var r = eRadixVal; r > 1; r /= 10) - { - fractionalDigits[pos--] = (byte)('0' + (fractionalPart % 10)); - fractionalPart /= 10; - } - - context.Builder.Append(fractionalDigits[(pos + 1)..]); - - return true; - } - - private bool TryResolveSheet(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - var enu = payload.GetEnumerator(); - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var eSheetNameStr)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eRowIdValue)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eColIndexValue)) - return false; - - var eColParamValue = 0u; - if (enu.MoveNext()) - this.TryResolveUInt(in context, enu.Current, out eColParamValue); - - var resolvedSheetName = this.Evaluate(eSheetNameStr, context.LocalParameters, context.Language).ExtractText(); - var originalRowIdValue = eRowIdValue; - var flags = this.sheetRedirectResolver.Resolve(ref resolvedSheetName, ref eRowIdValue, ref eColIndexValue); - - if (string.IsNullOrEmpty(resolvedSheetName)) - return false; - - var text = this.FormatSheetValue(context.Language, resolvedSheetName, eRowIdValue, eColIndexValue, eColParamValue); - if (text.IsEmpty) - return false; - - this.AddSheetRedirectItemDecoration(context, ref text, flags, eRowIdValue); - - if (resolvedSheetName != "DescriptionString") - eColParamValue = originalRowIdValue; - - // Note: The link marker symbol is added by RaptureLogMessage, probably somewhere in it's Update function. - // It is not part of this generated link. - this.CreateSheetLink(context, resolvedSheetName, text, eRowIdValue, eColParamValue); - - return true; - } - - private bool TryResolveSheetSub(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - var enu = payload.GetEnumerator(); - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var eSheetNameStr)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eRowIdValue)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eSubrowIdValue)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eColIndexValue)) - return false; - - var secondaryRowId = this.GetSubrowSheetIntValue(context.Language, eSheetNameStr.ExtractText(), eRowIdValue, (ushort)eSubrowIdValue, eColIndexValue); - if (secondaryRowId == -1) - return false; - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var eSecondarySheetNameStr)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var secondaryColIndex)) - return false; - - var text = this.FormatSheetValue(context.Language, eSecondarySheetNameStr.ExtractText(), (uint)secondaryRowId, secondaryColIndex, 0); - if (text.IsEmpty) - return false; - - this.CreateSheetLink(context, eSecondarySheetNameStr.ExtractText(), text, eRowIdValue, eSubrowIdValue); - - return true; - } - - private int GetSubrowSheetIntValue(ClientLanguage language, string sheetName, uint rowId, ushort subrowId, uint colIndex) - { - if (!this.dataManager.Excel.SheetNames.Contains(sheetName)) - return -1; - - if (!this.dataManager.GetSubrowExcelSheet(language, sheetName) - .TryGetSubrow(rowId, subrowId, out var row)) - return -1; - - if (colIndex >= row.Columns.Count) - return -1; - - var column = row.Columns[(int)colIndex]; - return column.Type switch - { - ExcelColumnDataType.Int8 => row.ReadInt8(column.Offset), - ExcelColumnDataType.UInt8 => row.ReadUInt8(column.Offset), - ExcelColumnDataType.Int16 => row.ReadInt16(column.Offset), - ExcelColumnDataType.UInt16 => row.ReadUInt16(column.Offset), - ExcelColumnDataType.Int32 => row.ReadInt32(column.Offset), - _ => -1, - }; - } - - private ReadOnlySeString FormatSheetValue(ClientLanguage language, string sheetName, uint rowId, uint colIndex, uint colParam) - { - if (!this.dataManager.Excel.SheetNames.Contains(sheetName)) - return default; - - if (!this.dataManager.GetExcelSheet(language, sheetName) - .TryGetRow(rowId, out var row)) - return default; - - if (colIndex >= row.Columns.Count) - return default; - - var column = row.Columns[(int)colIndex]; - return column.Type switch - { - ExcelColumnDataType.String => this.Evaluate(row.ReadString(column.Offset), [colParam], language), - ExcelColumnDataType.Bool => (row.ReadBool(column.Offset) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.Int8 => row.ReadInt8(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.UInt8 => row.ReadUInt8(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.Int16 => row.ReadInt16(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.UInt16 => row.ReadUInt16(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.Int32 => row.ReadInt32(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.UInt32 => row.ReadUInt32(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.Float32 => row.ReadFloat32(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.Int64 => row.ReadInt64(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.UInt64 => row.ReadUInt64(column.Offset).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool0 => (row.ReadPackedBool(column.Offset, 0) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool1 => (row.ReadPackedBool(column.Offset, 1) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool2 => (row.ReadPackedBool(column.Offset, 2) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool3 => (row.ReadPackedBool(column.Offset, 3) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool4 => (row.ReadPackedBool(column.Offset, 4) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool5 => (row.ReadPackedBool(column.Offset, 5) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool6 => (row.ReadPackedBool(column.Offset, 6) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - ExcelColumnDataType.PackedBool7 => (row.ReadPackedBool(column.Offset, 7) ? 1u : 0).ToString("D", CultureInfo.InvariantCulture), - _ => default, - }; - } - - private void AddSheetRedirectItemDecoration(in SeStringContext context, ref ReadOnlySeString text, SheetRedirectFlags flags, uint eRowIdValue) - { - if (!flags.HasFlag(SheetRedirectFlags.Item)) - return; - - var rarity = 1u; - var skipLink = false; - - if (flags.HasFlag(SheetRedirectFlags.EventItem)) - { - rarity = 8; - skipLink = true; - } - - var itemId = eRowIdValue; - - if (this.dataManager.GetExcelSheet(context.Language).TryGetRow(itemId, out var itemRow)) - { - rarity = itemRow.Rarity; - if (rarity == 0) - rarity = 1; - - if (itemRow.FilterGroup is 38 or 50) - skipLink = true; - } - - if (flags.HasFlag(SheetRedirectFlags.Collectible)) - { - itemId += 500000; - } - else if (flags.HasFlag(SheetRedirectFlags.HighQuality)) - { - itemId += 1000000; - } - - using var rssb = new RentedSeStringBuilder(); - var sb = rssb.Builder; - - sb.Append(this.EvaluateFromAddon(6, [rarity], context.Language)); // appends colortype and edgecolortype - - if (!skipLink) - sb.PushLink(LinkMacroPayloadType.Item, itemId, rarity, 0u); // arg3 = some LogMessage flag based on LogKind RowId? => "89 5C 24 20 E8 ?? ?? ?? ?? 48 8B 1F" - - // there is code here for handling noun link markers (//), but i don't know why - - sb.Append(text); - - if (flags.HasFlag(SheetRedirectFlags.HighQuality) - && this.dataManager.GetExcelSheet(context.Language).TryGetRow(9, out var hqSymbol)) - { - sb.Append(hqSymbol.Text); - } - else if (flags.HasFlag(SheetRedirectFlags.Collectible) - && this.dataManager.GetExcelSheet(context.Language).TryGetRow(150, out var collectibleSymbol)) - { - sb.Append(collectibleSymbol.Text); - } - - if (!skipLink) - sb.PopLink(); - - sb.PopEdgeColorType(); - sb.PopColorType(); - - text = sb.ToReadOnlySeString(); - } - - private void CreateSheetLink(in SeStringContext context, string resolvedSheetName, ReadOnlySeString text, uint eRowIdValue, uint eColParamValue) - { - switch (resolvedSheetName) - { - case "Achievement": - context.Builder.PushLink(LinkMacroPayloadType.Achievement, eRowIdValue, 0u, 0u, text.AsSpan()); - context.Builder.Append(text); - context.Builder.PopLink(); - return; - - case "HowTo": - context.Builder.PushLink(LinkMacroPayloadType.HowTo, eRowIdValue, 0u, 0u, text.AsSpan()); - context.Builder.Append(text); - context.Builder.PopLink(); - return; - - case "Status" when this.dataManager.GetExcelSheet(context.Language).TryGetRow(eRowIdValue, out var statusRow): - context.Builder.PushLink(LinkMacroPayloadType.Status, eRowIdValue, 0u, 0u, []); - - switch (statusRow.StatusCategory) - { - case 1: context.Builder.Append(this.EvaluateFromAddon(376)); break; // buff symbol - case 2: context.Builder.Append(this.EvaluateFromAddon(377)); break; // debuff symbol - } - - context.Builder.Append(text); - context.Builder.PopLink(); - return; - - case "AkatsukiNoteString": - context.Builder.PushLink(LinkMacroPayloadType.AkatsukiNote, eColParamValue, 0u, 0u, text.AsSpan()); - context.Builder.Append(text); - context.Builder.PopLink(); - return; - - case "DescriptionString" when eColParamValue > 0: - context.Builder.PushLink((LinkMacroPayloadType)11, eRowIdValue, eColParamValue, 0u, text.AsSpan()); - context.Builder.Append(text); - context.Builder.PopLink(); - return; - - case "WKSPioneeringTrailString": - context.Builder.PushLink((LinkMacroPayloadType)12, eRowIdValue, eColParamValue, 0u, text.AsSpan()); - context.Builder.Append(text); - context.Builder.PopLink(); - return; - - case "MKDLore": - context.Builder.PushLink((LinkMacroPayloadType)13, eRowIdValue, 0u, 0u, text.AsSpan()); - context.Builder.Append(text); - context.Builder.PopLink(); - return; - - default: - context.Builder.Append(text); - return; - } - } - - private bool TryResolveString(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - return payload.TryGetExpression(out var eStr) && this.ResolveStringExpression(in context, eStr); - } - - private bool TryResolveCaps(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eStr)) - return false; - - using var rssb = new RentedSeStringBuilder(); - - var headContext = new SeStringContext(rssb.Builder, context.LocalParameters, context.Language); - - if (!this.ResolveStringExpression(headContext, eStr)) - return false; - - var str = rssb.Builder.ToReadOnlySeString(); - var pIdx = 0; - - foreach (var p in str) - { - pIdx++; - - if (p.Type == ReadOnlySePayloadType.Invalid) - continue; - - if (pIdx == 1 && p.Type == ReadOnlySePayloadType.Text) - { - context.Builder.Append(Encoding.UTF8.GetString(p.Body.ToArray()).ToUpper(context.CultureInfo)); - continue; - } - - context.Builder.Append(p); - } - - return true; - } - - private bool TryResolveHead(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eStr)) - return false; - - using var rssb = new RentedSeStringBuilder(); - - var headContext = new SeStringContext(rssb.Builder, context.LocalParameters, context.Language); - - if (!this.ResolveStringExpression(headContext, eStr)) - return false; - - var str = rssb.Builder.ToReadOnlySeString(); - var pIdx = 0; - - foreach (var p in str) - { - pIdx++; - - if (p.Type == ReadOnlySePayloadType.Invalid) - continue; - - if (pIdx == 1 && p.Type == ReadOnlySePayloadType.Text) - { - context.Builder.Append(Encoding.UTF8.GetString(p.Body.Span).FirstCharToUpper(context.CultureInfo)); - continue; - } - - context.Builder.Append(p); - } - - return true; - } - - private bool TryResolveSplit(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eText, out var eSeparator, out var eIndex)) - return false; - - if (!eSeparator.TryGetString(out var eSeparatorVal) || !eIndex.TryGetUInt(out var eIndexVal) || eIndexVal <= 0) - return false; - - using var rssb = new RentedSeStringBuilder(); - - var headContext = new SeStringContext(rssb.Builder, context.LocalParameters, context.Language); - - if (!this.ResolveStringExpression(headContext, eText)) - return false; - - var separator = eSeparatorVal.ExtractText(); - if (separator.Length < 1) - return false; - - var splitted = rssb.Builder.ToReadOnlySeString().ExtractText().Split(separator[0]); - if (eIndexVal <= splitted.Length) - { - context.Builder.Append(splitted[eIndexVal - 1]); - return true; - } - - return false; - } - - private bool TryResolveHeadAll(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eStr)) - return false; - - using var rssb = new RentedSeStringBuilder(); - - var headContext = new SeStringContext(rssb.Builder, context.LocalParameters, context.Language); - - if (!this.ResolveStringExpression(headContext, eStr)) - return false; - - var str = rssb.Builder.ToReadOnlySeString(); - - foreach (var p in str) - { - if (p.Type == ReadOnlySePayloadType.Invalid) - continue; - - if (p.Type == ReadOnlySePayloadType.Text) - { - context.Builder.Append(Encoding.UTF8.GetString(p.Body.Span).ToUpper(true, true, false, context.Language)); - continue; - } - - context.Builder.Append(p); - } - - return true; - } - - private bool TryResolveFixed(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - // This is handled by the second function in Client::UI::Misc::PronounModule_ProcessString - - var enu = payload.GetEnumerator(); - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var e0Val)) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var e1Val)) - return false; - - return e0Val switch - { - 100 or 200 => e1Val switch - { - 1 => this.TryResolveFixedPlayerLink(in context, ref enu), - 2 => this.TryResolveFixedClassJobLevel(in context, ref enu), - 3 => this.TryResolveFixedMapLink(in context, ref enu), - 4 => this.TryResolveFixedItemLink(in context, ref enu), - 5 => this.TryResolveFixedChatSoundEffect(in context, ref enu), - 6 => this.TryResolveFixedObjStr(in context, ref enu), - 7 => this.TryResolveFixedString(in context, ref enu), - 8 => this.TryResolveFixedTimeRemaining(in context, ref enu), - // Reads a uint and saves it to PronounModule+0x3AC - // TODO: handle this? looks like it's for the mentor/beginner icon of the player link in novice network - // see "FF 50 50 8B B0" - 9 => true, - 10 => this.TryResolveFixedStatusLink(in context, ref enu), - 11 => this.TryResolveFixedPartyFinderLink(in context, ref enu), - 12 => this.TryResolveFixedQuestLink(in context, ref enu), - _ => false, - }, - _ => this.TryResolveFixedAutoTranslation(in context, payload, e0Val, e1Val), - }; - } - - private unsafe bool TryResolveFixedPlayerLink(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var worldId)) - return false; - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var playerName)) - return false; - - if (UIGlobals.IsValidPlayerCharacterName(playerName.ExtractText())) - { - var flags = 0u; - if (InfoModule.Instance()->IsInCrossWorldDuty()) - flags |= 0x10; - - context.Builder.PushLink(LinkMacroPayloadType.Character, flags, worldId, 0u, playerName); - context.Builder.Append(playerName); - context.Builder.PopLink(); - } - else - { - context.Builder.Append(playerName); - } - - if (worldId == AgentLobby.Instance()->LobbyData.HomeWorldId) - return true; - - if (!this.dataManager.GetExcelSheet(context.Language).TryGetRow(worldId, out var worldRow)) - return false; - - context.Builder.AppendIcon(88); - context.Builder.Append(worldRow.Name); - - return true; - } - - private bool TryResolveFixedClassJobLevel(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var classJobId) || classJobId <= 0) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var level)) - return false; - - if (!this.dataManager.GetExcelSheet(context.Language) - .TryGetRow((uint)classJobId, out var classJobRow)) - return false; - - context.Builder.Append(classJobRow.Name); - - if (level != 0) - context.Builder.Append(context.CultureInfo, $"({level:D})"); - - return true; - } - - private bool TryResolveFixedMapLink(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var territoryTypeId)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var packedIds)) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var rawX)) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var rawY)) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var rawZ)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var placeNameIdInt)) - return false; - - var instance = packedIds >> 16; - var mapId = packedIds & 0xFFFF; - - if (this.dataManager.GetExcelSheet(context.Language) - .TryGetRow(territoryTypeId, out var territoryTypeRow)) - { - if (!this.dataManager.GetExcelSheet(context.Language) - .TryGetRow( - placeNameIdInt == 0 ? territoryTypeRow.PlaceName.RowId : placeNameIdInt, - out var placeNameRow)) - return false; - - if (!this.dataManager.GetExcelSheet().TryGetRow(mapId, out var mapRow)) - return false; - - using var rssb = new RentedSeStringBuilder(); - - rssb.Builder.Append(placeNameRow.Name); - if (instance is > 0 and <= 9) - rssb.Builder.Append((char)((char)0xE0B0 + (char)instance)); - - var placeNameWithInstance = rssb.Builder.ToReadOnlySeString(); - - var mapPosX = ConvertRawToMapPosX(mapRow, rawX / 1000f); - var mapPosY = ConvertRawToMapPosY(mapRow, rawY / 1000f); - - var linkText = rawZ == -30000 - ? this.EvaluateFromAddon( - 1635, - [placeNameWithInstance, mapPosX, mapPosY], - context.Language) - : this.EvaluateFromAddon( - 1636, - [placeNameWithInstance, mapPosX, mapPosY, rawZ / (rawZ >= 0 ? 10 : -10), rawZ], - context.Language); - - context.Builder.PushLinkMapPosition(territoryTypeId, mapId, rawX, rawY); - context.Builder.Append(this.EvaluateFromAddon(371, [linkText], context.Language)); - context.Builder.PopLink(); - - return true; - } - - var rowId = mapId switch - { - 0 => 875u, // "(No location set for map link)" - 1 => 874u, // "(Map link unavailable in this area)" - 2 => 13743u, // "(Unable to set map link)" - _ => 0u, - }; - if (rowId == 0u) - return false; - if (this.dataManager.GetExcelSheet(context.Language).TryGetRow(rowId, out var addonRow)) - context.Builder.Append(addonRow.Text); - return true; - } - - private bool TryResolveFixedItemLink(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var itemId)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var rarity)) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var unk2)) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var unk3)) - return false; - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var itemName)) // TODO: unescape?? - return false; - - // rarity color start - context.Builder.Append(this.EvaluateFromAddon(6, [rarity], context.Language)); - - var v2 = (ushort)((unk2 & 0xFF) + (unk3 << 0x10)); // TODO: find out what this does - - context.Builder.PushLink(LinkMacroPayloadType.Item, itemId, rarity, v2); - - // arrow and item name - context.Builder.Append(this.EvaluateFromAddon(371, [itemName], context.Language)); - - context.Builder.PopLink(); - context.Builder.PopColor(); - - return true; - } - - private bool TryResolveFixedChatSoundEffect(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var soundEffectId)) - return false; - - context.Builder.Append($""); - - // the game would play it here - - return true; - } - - private bool TryResolveFixedObjStr(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var objStrId)) - return false; - - context.Builder.Append(this.EvaluateFromAddon(2025, [objStrId], context.Language)); - - return true; - } - - private bool TryResolveFixedString(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !enu.Current.TryGetString(out var text)) - return false; - - // formats it through vsprintf using "%s"?? - context.Builder.Append(text.ExtractText()); - - return true; - } - - private bool TryResolveFixedTimeRemaining(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var seconds)) - return false; - - if (seconds != 0) - { - context.Builder.Append(this.EvaluateFromAddon(33, [seconds / 60, seconds % 60], context.Language)); - } - else - { - if (this.dataManager.GetExcelSheet(context.Language).TryGetRow(48, out var addonRow)) - context.Builder.Append(addonRow.Text); - } - - return true; - } - - private bool TryResolveFixedStatusLink(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var statusId)) - return false; - - if (!enu.MoveNext() || !this.TryResolveBool(in context, enu.Current, out var hasOverride)) - return false; - - if (!this.dataManager.GetExcelSheet(context.Language) - .TryGetRow(statusId, out var statusRow)) - return false; - - ReadOnlySeStringSpan statusName; - ReadOnlySeStringSpan statusDescription; - - if (hasOverride) - { - if (!enu.MoveNext() || !enu.Current.TryGetString(out statusName)) - return false; - - if (!enu.MoveNext() || !enu.Current.TryGetString(out statusDescription)) - return false; - } - else - { - statusName = statusRow.Name.AsSpan(); - statusDescription = statusRow.Description.AsSpan(); - } - - using var rssb = new RentedSeStringBuilder(); - - switch (statusRow.StatusCategory) - { - case 1: - rssb.Builder.Append(this.EvaluateFromAddon(376, default, context.Language)); - break; - - case 2: - rssb.Builder.Append(this.EvaluateFromAddon(377, default, context.Language)); - break; - } - - rssb.Builder.Append(statusName); - - var linkText = rssb.Builder.ToReadOnlySeString(); - - context.Builder - .BeginMacro(MacroCode.Link) - .AppendUIntExpression((uint)LinkMacroPayloadType.Status) - .AppendUIntExpression(statusId) - .AppendUIntExpression(0) - .AppendUIntExpression(0) - .AppendStringExpression(statusName) - .AppendStringExpression(statusDescription) - .EndMacro(); - - context.Builder.Append(this.EvaluateFromAddon(371, [linkText], context.Language)); - - context.Builder.PopLink(); - - return true; - } - - private bool TryResolveFixedPartyFinderLink(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var listingId)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var unk1)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var worldId)) - return false; - - if (!enu.MoveNext() || !this.TryResolveInt( - context, - enu.Current, - out var crossWorldFlag)) // 0 = cross world, 1 = not cross world - return false; - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var playerName)) - return false; - - context.Builder - .BeginMacro(MacroCode.Link) - .AppendUIntExpression((uint)LinkMacroPayloadType.PartyFinder) - .AppendUIntExpression(listingId) - .AppendUIntExpression(unk1) - .AppendUIntExpression((uint)(crossWorldFlag << 0x10) + worldId) - .EndMacro(); - - context.Builder.Append( - this.EvaluateFromAddon( - 371, - [this.EvaluateFromAddon(2265, [playerName, crossWorldFlag], context.Language)], - context.Language)); - - context.Builder.PopLink(); - - return true; - } - - private bool TryResolveFixedQuestLink(in SeStringContext context, ref ReadOnlySePayloadSpan.Enumerator enu) - { - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var questId)) - return false; - - if (!enu.MoveNext() || !enu.MoveNext() || !enu.MoveNext()) // unused - return false; - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var questName)) - return false; - - /* TODO: hide incomplete, repeatable special event quest names - if (!QuestManager.IsQuestComplete(questId) && !QuestManager.Instance()->IsQuestAccepted(questId)) - { - var questRecompleteManager = QuestRecompleteManager.Instance(); - if (questRecompleteManager == null || !questRecompleteManager->"E8 ?? ?? ?? ?? 0F B6 57 FF"(questId)) { - if (_excelService.TryGetRow(5497, context.Language, out var addonRow)) - questName = addonRow.Text.AsSpan(); - } - } - */ - - context.Builder - .BeginMacro(MacroCode.Link) - .AppendUIntExpression((uint)LinkMacroPayloadType.Quest) - .AppendUIntExpression(questId) - .AppendUIntExpression(0) - .AppendUIntExpression(0) - .EndMacro(); - - context.Builder.Append(this.EvaluateFromAddon(371, [questName], context.Language)); - - context.Builder.PopLink(); - - return true; - } - - private bool TryResolveFixedAutoTranslation( - in SeStringContext context, in ReadOnlySePayloadSpan payload, int e0Val, int e1Val) - { - // Auto-Translation / Completion - var group = (uint)(e0Val + 1); - var rowId = (uint)e1Val; - - if (!this.dataManager.GetExcelSheet(context.Language).TryGetFirst( - row => row.Group == group && !row.LookupTable.IsEmpty, - out var groupRow)) - return false; - - var lookupTable = ( - groupRow.LookupTable.IsTextOnly() - ? groupRow.LookupTable - : this.Evaluate( - groupRow.LookupTable.AsSpan(), - context.LocalParameters, - context.Language)).ExtractText(); - - // Completion sheet - if (lookupTable.Equals("@")) - { - if (this.dataManager.GetExcelSheet(context.Language).TryGetRow(rowId, out var completionRow)) - { - context.Builder.Append(completionRow.Text); - } - - return true; - } - - using var icons = new SeStringBuilderIconWrap(context.Builder, 54, 55); - - // CategoryDataCache - if (lookupTable.Equals("#")) - { - // couldn't find any, so we don't handle them :p - context.Builder.Append(payload); - return false; - } - - // All other sheets - var rangesStart = lookupTable.IndexOf('['); - // Sheet without ranges - if (rangesStart == -1) - { - if (this.dataManager.GetExcelSheet(context.Language, lookupTable).TryGetRow(rowId, out var row)) - { - context.Builder.Append(row.ReadStringColumn(0)); - return true; - } - } - - var sheetName = lookupTable[..rangesStart]; - var ranges = lookupTable[(rangesStart + 1)..^1]; - if (ranges.Length == 0) - return true; - - var isNoun = false; - - var colIndex = 0; - Span cols = stackalloc int[8]; - cols.Clear(); - var hasRanges = false; - var isInRange = false; - - while (!string.IsNullOrWhiteSpace(ranges)) - { - // find the end of the current entry - var entryEnd = ranges.IndexOf(','); - if (entryEnd == -1) - entryEnd = ranges.Length; - - var entry = ranges.AsSpan(0, entryEnd); - - if (ranges.StartsWith("noun", StringComparison.Ordinal)) - { - isNoun = true; - } - else if (ranges.StartsWith("col", StringComparison.Ordinal) && colIndex < cols.Length) - { - cols[colIndex++] = int.Parse(entry[4..]); - } - else if (ranges.StartsWith("tail", StringComparison.Ordinal)) - { - // currently not supported, since there are no known uses - context.Builder.Append(payload); - return false; - } - else - { - var dash = entry.IndexOf('-'); - - hasRanges |= true; - - if (dash == -1) - { - isInRange |= int.Parse(entry) == rowId; - } - else - { - isInRange |= rowId >= int.Parse(entry[..dash]) - && rowId <= int.Parse(entry[(dash + 1)..]); - } - } - - // if it's the end of the string, we're done - if (entryEnd == ranges.Length) - break; - - // else, move to the next entry - ranges = ranges[(entryEnd + 1)..].TrimStart(); - } - - if (hasRanges && !isInRange) - { - context.Builder.Append(payload); - return false; - } - - if (isNoun && context.Language == ClientLanguage.German && sheetName == "Companion") - { - context.Builder.Append(this.nounProcessor.ProcessNoun(new NounParams() - { - Language = ClientLanguage.German, - SheetName = sheetName, - RowId = rowId, - Quantity = 1, - ArticleType = (int)GermanArticleType.ZeroArticle, - })); - } - else if (this.dataManager.GetExcelSheet(context.Language, sheetName).TryGetRow(rowId, out var row)) - { - if (colIndex == 0) - { - context.Builder.Append(row.ReadStringColumn(0)); - return true; - } - else - { - for (var i = 0; i < colIndex; i++) - { - var text = row.ReadStringColumn(cols[i]); - if (!text.IsEmpty) - { - context.Builder.Append(text); - break; - } - } - } - } - - return true; - } - - private bool TryResolveLower(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eStr)) - return false; - - using var rssb = new RentedSeStringBuilder(); - - var headContext = new SeStringContext(rssb.Builder, context.LocalParameters, context.Language); - - if (!this.ResolveStringExpression(headContext, eStr)) - return false; - - var str = rssb.Builder.ToReadOnlySeString(); - - foreach (var p in str) - { - if (p.Type == ReadOnlySePayloadType.Invalid) - continue; - - if (p.Type == ReadOnlySePayloadType.Text) - { - context.Builder.Append(Encoding.UTF8.GetString(p.Body.ToArray()).ToLower(context.CultureInfo)); - - continue; - } - - context.Builder.Append(p); - } - - return true; - } - - private bool TryResolveNoun(ClientLanguage language, in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - var eAmountVal = 1; - var eCaseVal = 1; - - var enu = payload.GetEnumerator(); - - if (!enu.MoveNext() || !enu.Current.TryGetString(out var eSheetNameStr)) - return false; - - var sheetName = this.Evaluate(eSheetNameStr, context.LocalParameters, context.Language).ExtractText(); - - if (!enu.MoveNext() || !this.TryResolveInt(in context, enu.Current, out var eArticleTypeVal)) - return false; - - if (!enu.MoveNext() || !this.TryResolveUInt(in context, enu.Current, out var eRowIdVal)) - return false; - - uint colIndex = ushort.MaxValue; - var flags = this.sheetRedirectResolver.Resolve(ref sheetName, ref eRowIdVal, ref colIndex); - - if (string.IsNullOrEmpty(sheetName)) - return false; - - // optional arguments - if (enu.MoveNext()) - { - if (!this.TryResolveInt(in context, enu.Current, out eAmountVal)) - return false; - - if (enu.MoveNext()) - { - if (!this.TryResolveInt(in context, enu.Current, out eCaseVal)) - return false; - - // For Chinese texts? - /* - if (enu.MoveNext()) - { - var eUnkInt5 = enu.Current; - if (!TryResolveInt(context,eUnkInt5, out eUnkInt5Val)) - return false; - } - */ - } - } - - context.Builder.Append( - this.nounProcessor.ProcessNoun(new NounParams() - { - Language = language, - SheetName = sheetName, - RowId = eRowIdVal, - Quantity = eAmountVal, - ArticleType = eArticleTypeVal, - GrammaticalCase = eCaseVal - 1, - IsActionSheet = flags.HasFlag(SheetRedirectFlags.Action), - })); - - return true; - } - - private bool TryResolveLowerHead(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eStr)) - return false; - - using var rssb = new RentedSeStringBuilder(); - - var headContext = new SeStringContext(rssb.Builder, context.LocalParameters, context.Language); - - if (!this.ResolveStringExpression(headContext, eStr)) - return false; - - var str = rssb.Builder.ToReadOnlySeString(); - var pIdx = 0; - - foreach (var p in str) - { - pIdx++; - - if (p.Type == ReadOnlySePayloadType.Invalid) - continue; - - if (pIdx == 1 && p.Type == ReadOnlySePayloadType.Text) - { - context.Builder.Append(Encoding.UTF8.GetString(p.Body.Span).FirstCharToLower(context.CultureInfo)); - continue; - } - - context.Builder.Append(p); - } - - return true; - } - - private bool TryResolveColorType(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eColorType) || - !this.TryResolveUInt(in context, eColorType, out var eColorTypeVal)) - return false; - - if (eColorTypeVal == 0) - context.Builder.PopColor(); - else if (this.dataManager.GetExcelSheet().TryGetRow(eColorTypeVal, out var row)) - context.Builder.PushColorBgra((row.Dark >> 8) | (row.Dark << 24)); - - return true; - } - - private bool TryResolveEdgeColorType(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eColorType) || - !this.TryResolveUInt(in context, eColorType, out var eColorTypeVal)) - return false; - - if (eColorTypeVal == 0) - context.Builder.PopEdgeColor(); - else if (this.dataManager.GetExcelSheet().TryGetRow(eColorTypeVal, out var row)) - context.Builder.PushEdgeColorBgra((row.Dark >> 8) | (row.Dark << 24)); - - return true; - } - - private bool TryResolveDigit(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eValue, out var eTargetLength)) - return false; - - if (!this.TryResolveInt(in context, eValue, out var eValueVal)) - return false; - - if (!this.TryResolveInt(in context, eTargetLength, out var eTargetLengthVal)) - return false; - - context.Builder.Append(eValueVal.ToString(new string('0', eTargetLengthVal))); - - return true; - } - - private bool TryResolveOrdinal(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eValue) || !this.TryResolveUInt(in context, eValue, out var eValueVal)) - return false; - - // TODO: Culture support? - context.Builder.Append( - $"{eValueVal}{(eValueVal % 10) switch - { - _ when eValueVal is >= 10 and <= 19 => "th", - 1 => "st", - 2 => "nd", - 3 => "rd", - _ => "th", - }}"); - return true; - } - - private bool TryResolveLevelPos(in SeStringContext context, in ReadOnlySePayloadSpan payload) - { - if (!payload.TryGetExpression(out var eLevel) || !this.TryResolveUInt(in context, eLevel, out var eLevelVal)) - return false; - - if (!this.dataManager.GetExcelSheet(context.Language).TryGetRow(eLevelVal, out var level) || - !level.Map.IsValid) - return false; - - if (!this.dataManager.GetExcelSheet(context.Language).TryGetRow( - level.Map.Value.PlaceName.RowId, - out var placeName)) - return false; - - var mapPosX = ConvertRawToMapPosX(level.Map.Value, level.X); - var mapPosY = ConvertRawToMapPosY(level.Map.Value, level.Z); // Z is [sic] - - context.Builder.Append( - this.EvaluateFromAddon( - 1637, - [placeName.Name, mapPosX, mapPosY], - context.Language)); - - return true; - } - - private unsafe bool TryGetGNumDefault(uint parameterIndex, out uint value) - { - value = 0u; - - var rtm = RaptureTextModule.Instance(); - if (rtm is null) - return false; - - ThreadSafety.AssertMainThread("Global parameters may only be used from the main thread."); - - ref var gp = ref rtm->TextModule.MacroDecoder.GlobalParameters; - if (parameterIndex >= gp.MySize) - return false; - - var p = rtm->TextModule.MacroDecoder.GlobalParameters[parameterIndex]; - switch (p.Type) - { - case TextParameterType.Integer: - value = (uint)p.IntValue; - return true; - - case TextParameterType.ReferencedUtf8String: - Log.Error("Requested a number; Utf8String global parameter at {parameterIndex}.", parameterIndex); - return false; - - case TextParameterType.String: - Log.Error("Requested a number; string global parameter at {parameterIndex}.", parameterIndex); - return false; - - case TextParameterType.Uninitialized: - Log.Error("Requested a number; uninitialized global parameter at {parameterIndex}.", parameterIndex); - return false; - - default: - return false; - } - } - - private unsafe bool TryProduceGStrDefault(SeStringBuilder builder, ClientLanguage language, uint parameterIndex) - { - var rtm = RaptureTextModule.Instance(); - if (rtm is null) - return false; - - ref var gp = ref rtm->TextModule.MacroDecoder.GlobalParameters; - if (parameterIndex >= gp.MySize) - return false; - - if (!ThreadSafety.IsMainThread) - { - Log.Error("Global parameters may only be used from the main thread."); - return false; - } - - var p = rtm->TextModule.MacroDecoder.GlobalParameters[parameterIndex]; - switch (p.Type) - { - case TextParameterType.Integer: - builder.Append($"{p.IntValue:D}"); - return true; - - case TextParameterType.ReferencedUtf8String: - this.EvaluateAndAppendTo( - builder, - p.ReferencedUtf8StringValue->Utf8String.AsSpan(), - null, - language); - return false; - - case TextParameterType.String: - this.EvaluateAndAppendTo(builder, p.StringValue.AsSpan(), null, language); - return false; - - case TextParameterType.Uninitialized: - default: - return false; - } - } - - private unsafe bool TryResolveUInt( - in SeStringContext context, in ReadOnlySeExpressionSpan expression, out uint value) - { - if (expression.TryGetUInt(out value)) - return true; - - if (expression.TryGetPlaceholderExpression(out var exprType)) - { - // if (context.TryGetPlaceholderNum(exprType, out value)) - // return true; - - switch ((ExpressionType)exprType) - { - case ExpressionType.Millisecond: - value = (uint)DateTime.Now.Millisecond; - return true; - case ExpressionType.Second: - value = (uint)MacroDecoder.GetMacroTime()->tm_sec; - return true; - case ExpressionType.Minute: - value = (uint)MacroDecoder.GetMacroTime()->tm_min; - return true; - case ExpressionType.Hour: - value = (uint)MacroDecoder.GetMacroTime()->tm_hour; - return true; - case ExpressionType.Day: - value = (uint)MacroDecoder.GetMacroTime()->tm_mday; - return true; - case ExpressionType.Weekday: - value = (uint)MacroDecoder.GetMacroTime()->tm_wday + 1; - return true; - case ExpressionType.Month: - value = (uint)MacroDecoder.GetMacroTime()->tm_mon + 1; - return true; - case ExpressionType.Year: - value = (uint)MacroDecoder.GetMacroTime()->tm_year + 1900; - return true; - default: - return false; - } - } - - if (expression.TryGetParameterExpression(out exprType, out var operand1)) - { - if (!this.TryResolveUInt(in context, operand1, out var paramIndex)) - return false; - if (paramIndex == 0) - return false; - paramIndex--; - return (ExpressionType)exprType switch - { - ExpressionType.LocalNumber => context.TryGetLNum((int)paramIndex, out value), // lnum - ExpressionType.GlobalNumber => this.TryGetGNumDefault(paramIndex, out value), // gnum - _ => false, // gstr, lstr - }; - } - - if (expression.TryGetBinaryExpression(out exprType, out operand1, out var operand2)) - { - switch ((ExpressionType)exprType) - { - case ExpressionType.GreaterThanOrEqualTo: - case ExpressionType.GreaterThan: - case ExpressionType.LessThanOrEqualTo: - case ExpressionType.LessThan: - if (!this.TryResolveInt(in context, operand1, out var value1) - || !this.TryResolveInt(in context, operand2, out var value2)) - { - return false; - } - - value = (ExpressionType)exprType switch - { - ExpressionType.GreaterThanOrEqualTo => value1 >= value2 ? 1u : 0u, - ExpressionType.GreaterThan => value1 > value2 ? 1u : 0u, - ExpressionType.LessThanOrEqualTo => value1 <= value2 ? 1u : 0u, - ExpressionType.LessThan => value1 < value2 ? 1u : 0u, - _ => 0u, - }; - return true; - - case ExpressionType.Equal: - case ExpressionType.NotEqual: - if (this.TryResolveInt(in context, operand1, out value1) && - this.TryResolveInt(in context, operand2, out value2)) - { - if ((ExpressionType)exprType == ExpressionType.Equal) - value = value1 == value2 ? 1u : 0u; - else - value = value1 == value2 ? 0u : 1u; - return true; - } - - if (operand1.TryGetString(out var strval1) && operand2.TryGetString(out var strval2)) - { - using var rssb1 = new RentedSeStringBuilder(); - using var rssb2 = new RentedSeStringBuilder(); - var resolvedStr1 = this.EvaluateAndAppendTo( - rssb1.Builder, - strval1, - context.LocalParameters, - context.Language); - var resolvedStr2 = this.EvaluateAndAppendTo( - rssb2.Builder, - strval2, - context.LocalParameters, - context.Language); - var equals = resolvedStr1.GetViewAsSpan().SequenceEqual(resolvedStr2.GetViewAsSpan()); - - if ((ExpressionType)exprType == ExpressionType.Equal) - value = equals ? 1u : 0u; - else - value = equals ? 0u : 1u; - return true; - } - - // compare int with string, string with int?? - - return true; - - default: - return false; - } - } - - if (expression.TryGetString(out var str)) - { - var evaluatedStr = this.Evaluate(str, context.LocalParameters, context.Language); - - foreach (var payload in evaluatedStr) - { - if (!payload.TryGetExpression(out var expr)) - return false; - - return this.TryResolveUInt(in context, expr, out value); - } - - return false; - } - - return false; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private bool TryResolveInt(in SeStringContext context, in ReadOnlySeExpressionSpan expression, out int value) - { - if (this.TryResolveUInt(in context, expression, out var u32)) - { - value = (int)u32; - return true; - } - - value = 0; - return false; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private bool TryResolveBool(in SeStringContext context, in ReadOnlySeExpressionSpan expression, out bool value) - { - if (this.TryResolveUInt(in context, expression, out var u32)) - { - value = u32 != 0; - return true; - } - - value = false; - return false; - } - - private bool ResolveStringExpression(in SeStringContext context, in ReadOnlySeExpressionSpan expression) - { - uint u32; - - if (expression.TryGetString(out var innerString)) - { - context.Builder.Append(this.Evaluate(innerString, context.LocalParameters, context.Language)); - return true; - } - - /* - if (expression.TryGetPlaceholderExpression(out var exprType)) - { - if (context.TryProducePlaceholder(context,exprType)) - return true; - } - */ - - if (expression.TryGetParameterExpression(out var exprType, out var operand1)) - { - if (!this.TryResolveUInt(in context, operand1, out var paramIndex)) - return false; - if (paramIndex == 0) - return false; - paramIndex--; - switch ((ExpressionType)exprType) - { - case ExpressionType.LocalNumber: // lnum - if (!context.TryGetLNum((int)paramIndex, out u32)) - return false; - - context.Builder.Append(unchecked((int)u32).ToString()); - return true; - - case ExpressionType.LocalString: // lstr - if (!context.TryGetLStr((int)paramIndex, out var str)) - return false; - - context.Builder.Append(str); - return true; - - case ExpressionType.GlobalNumber: // gnum - if (!this.TryGetGNumDefault(paramIndex, out u32)) - return false; - - context.Builder.Append(unchecked((int)u32).ToString()); - return true; - - case ExpressionType.GlobalString: // gstr - return this.TryProduceGStrDefault(context.Builder, context.Language, paramIndex); - - default: - return false; - } - } - - // Handles UInt and Binary expressions - if (!this.TryResolveUInt(in context, expression, out u32)) - return false; - - context.Builder.Append(((int)u32).ToString()); - return true; - } - - private readonly record struct StringCacheKey(TK Kind, uint Id, ClientLanguage Language) - where TK : struct, Enum; -} diff --git a/Dalamud/Game/Text/Evaluator/SeStringParameter.cs b/Dalamud/Game/Text/Evaluator/SeStringParameter.cs deleted file mode 100644 index 036d1c921..000000000 --- a/Dalamud/Game/Text/Evaluator/SeStringParameter.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.Globalization; - -using Lumina.Text.ReadOnly; - -using DSeString = Dalamud.Game.Text.SeStringHandling.SeString; - -namespace Dalamud.Game.Text.Evaluator; - -/// -/// A wrapper for a local parameter, holding either a number or a string. -/// -public readonly struct SeStringParameter -{ - private readonly uint num; - private readonly ReadOnlySeString str; - - /// - /// Initializes a new instance of the struct for a number parameter. - /// - /// The number value. - public SeStringParameter(uint value) - { - this.num = value; - } - - /// - /// Initializes a new instance of the struct for a string parameter. - /// - /// The string value. - public SeStringParameter(ReadOnlySeString value) - { - this.str = value; - this.IsString = true; - } - - /// - /// Initializes a new instance of the struct for a string parameter. - /// - /// The string value. - public SeStringParameter(string value) - { - this.str = new ReadOnlySeString(value); - this.IsString = true; - } - - /// - /// Gets a value indicating whether the backing type of this parameter is a string. - /// - public bool IsString { get; } - - /// - /// Gets a numeric value. - /// - public uint UIntValue => - !this.IsString - ? this.num - : uint.TryParse(this.str.ExtractText(), out var value) ? value : 0; - - /// - /// Gets a string value. - /// - public ReadOnlySeString StringValue => - this.IsString ? this.str : new(this.num.ToString("D", CultureInfo.InvariantCulture)); - - public static implicit operator SeStringParameter(int value) => new((uint)value); - - public static implicit operator SeStringParameter(uint value) => new(value); - - public static implicit operator SeStringParameter(ReadOnlySeString value) => new(value); - - public static implicit operator SeStringParameter(ReadOnlySeStringSpan value) => new(new ReadOnlySeString(value)); - - public static implicit operator SeStringParameter(DSeString value) => new(new ReadOnlySeString(value.Encode())); - - public static implicit operator SeStringParameter(string value) => new(value); - - public static implicit operator SeStringParameter(ReadOnlySpan value) => new(value); -} diff --git a/Dalamud/Game/Text/Noun/Enums/EnglishArticleType.cs b/Dalamud/Game/Text/Noun/Enums/EnglishArticleType.cs deleted file mode 100644 index 9214bea0b..000000000 --- a/Dalamud/Game/Text/Noun/Enums/EnglishArticleType.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Dalamud.Game.Text.Noun.Enums; - -/// -/// Article types for . -/// -public enum EnglishArticleType -{ - /// - /// Indefinite article (a, an). - /// - Indefinite = 1, - - /// - /// Definite article (the). - /// - Definite = 2, -} diff --git a/Dalamud/Game/Text/Noun/Enums/FrenchArticleType.cs b/Dalamud/Game/Text/Noun/Enums/FrenchArticleType.cs deleted file mode 100644 index 3b6d6a63e..000000000 --- a/Dalamud/Game/Text/Noun/Enums/FrenchArticleType.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace Dalamud.Game.Text.Noun.Enums; - -/// -/// Article types for . -/// -public enum FrenchArticleType -{ - /// - /// Indefinite article (une, des). - /// - Indefinite = 1, - - /// - /// Definite article (le, la, les). - /// - Definite = 2, - - /// - /// Possessive article (mon, mes). - /// - PossessiveFirstPerson = 3, - - /// - /// Possessive article (ton, tes). - /// - PossessiveSecondPerson = 4, - - /// - /// Possessive article (son, ses). - /// - PossessiveThirdPerson = 5, -} diff --git a/Dalamud/Game/Text/Noun/Enums/GermanArticleType.cs b/Dalamud/Game/Text/Noun/Enums/GermanArticleType.cs deleted file mode 100644 index 29124e172..000000000 --- a/Dalamud/Game/Text/Noun/Enums/GermanArticleType.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace Dalamud.Game.Text.Noun.Enums; - -/// -/// Article types for . -/// -public enum GermanArticleType -{ - /// - /// Unbestimmter Artikel (ein, eine, etc.). - /// - Indefinite = 1, - - /// - /// Bestimmter Artikel (der, die, das, etc.). - /// - Definite = 2, - - /// - /// Possessivartikel "dein" (dein, deine, etc.). - /// - Possessive = 3, - - /// - /// Negativartikel "kein" (kein, keine, etc.). - /// - Negative = 4, - - /// - /// Nullartikel. - /// - ZeroArticle = 5, - - /// - /// Demonstrativpronomen "dieser" (dieser, diese, etc.). - /// - Demonstrative = 6, -} diff --git a/Dalamud/Game/Text/Noun/Enums/JapaneseArticleType.cs b/Dalamud/Game/Text/Noun/Enums/JapaneseArticleType.cs deleted file mode 100644 index 14a29c4ff..000000000 --- a/Dalamud/Game/Text/Noun/Enums/JapaneseArticleType.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Dalamud.Game.Text.Noun.Enums; - -/// -/// Article types for . -/// -public enum JapaneseArticleType -{ - /// - /// Near listener (それら). - /// - NearListener = 1, - - /// - /// Distant from both speaker and listener (あれら). - /// - Distant = 2, -} diff --git a/Dalamud/Game/Text/Noun/NounParams.cs b/Dalamud/Game/Text/Noun/NounParams.cs deleted file mode 100644 index ab7a732d2..000000000 --- a/Dalamud/Game/Text/Noun/NounParams.cs +++ /dev/null @@ -1,73 +0,0 @@ -using Dalamud.Game.Text.Noun.Enums; - -using Lumina.Text.ReadOnly; - -using LSheets = Lumina.Excel.Sheets; - -namespace Dalamud.Game.Text.Noun; - -/// -/// Parameters for noun processing. -/// -internal record struct NounParams() -{ - /// - /// The language of the sheet to be processed. - /// - public required ClientLanguage Language; - - /// - /// The name of the sheet containing the row to process. - /// - public required string SheetName = string.Empty; - - /// - /// The row id within the sheet to process. - /// - public required uint RowId; - - /// - /// The quantity of the entity (default is 1). Used to determine grammatical number (e.g., singular or plural). - /// - public int Quantity = 1; - - /// - /// The article type. - /// - /// - /// Depending on the , this has different meanings.
- /// See , , , . - ///
- public int ArticleType = 1; - - /// - /// The grammatical case (e.g., Nominative, Genitive, Dative, Accusative) used for German texts (default is 0). - /// - public int GrammaticalCase = 0; - - /// - /// An optional string that is placed in front of the text that should be linked, such as item names (default is an empty string; the game uses "//"). - /// - public ReadOnlySeString LinkMarker = default; - - /// - /// An indicator that this noun will be processed from an Action sheet. Only used for German texts. - /// - public bool IsActionSheet; - - /// - /// Gets the column offset. - /// - public readonly int ColumnOffset => this.SheetName switch - { - // See "E8 ?? ?? ?? ?? 44 8B 66 ?? 8B E8" - nameof(LSheets.BeastTribe) => 11, - nameof(LSheets.DeepDungeonItem) => 1, - nameof(LSheets.DeepDungeonEquipment) => 1, - nameof(LSheets.DeepDungeonMagicStone) => 1, - nameof(LSheets.DeepDungeonDemiclone) => 1, - nameof(LSheets.Glasses) => 4, - nameof(LSheets.GlassesStyle) => 15, - _ => 0, - }; -} diff --git a/Dalamud/Game/Text/Noun/NounProcessor.cs b/Dalamud/Game/Text/Noun/NounProcessor.cs deleted file mode 100644 index c218bb26c..000000000 --- a/Dalamud/Game/Text/Noun/NounProcessor.cs +++ /dev/null @@ -1,440 +0,0 @@ -using System.Collections.Concurrent; - -using Dalamud.Configuration.Internal; -using Dalamud.Data; -using Dalamud.Game.Text.Noun.Enums; -using Dalamud.Logging.Internal; -using Dalamud.Utility; - -using Lumina.Excel; -using Lumina.Text.ReadOnly; - -using LSheets = Lumina.Excel.Sheets; - -namespace Dalamud.Game.Text.Noun; - -/* -Attributive sheet: - Japanese: - Unknown0 = Singular Demonstrative - Unknown1 = Plural Demonstrative - English: - Unknown2 = Article before a singular noun beginning with a consonant sound - Unknown3 = Article before a generic noun beginning with a consonant sound - Unknown4 = N/A - Unknown5 = Article before a singular noun beginning with a vowel sound - Unknown6 = Article before a generic noun beginning with a vowel sound - Unknown7 = N/A - German: - Unknown8 = Nominative Masculine - Unknown9 = Nominative Feminine - Unknown10 = Nominative Neutral - Unknown11 = Nominative Plural - Unknown12 = Genitive Masculine - Unknown13 = Genitive Feminine - Unknown14 = Genitive Neutral - Unknown15 = Genitive Plural - Unknown16 = Dative Masculine - Unknown17 = Dative Feminine - Unknown18 = Dative Neutral - Unknown19 = Dative Plural - Unknown20 = Accusative Masculine - Unknown21 = Accusative Feminine - Unknown22 = Accusative Neutral - Unknown23 = Accusative Plural - French (unsure): - Unknown24 = Singular Article - Unknown25 = Singular Masculine Article - Unknown26 = Plural Masculine Article - Unknown27 = ? - Unknown28 = ? - Unknown29 = Singular Masculine/Feminine Article, before a noun beginning in a vowel or an h - Unknown30 = Plural Masculine/Feminine Article, before a noun beginning in a vowel or an h - Unknown31 = ? - Unknown32 = ? - Unknown33 = Singular Feminine Article - Unknown34 = Plural Feminine Article - Unknown35 = ? - Unknown36 = ? - Unknown37 = Singular Masculine/Feminine Article, before a noun beginning in a vowel or an h - Unknown38 = Plural Masculine/Feminine Article, before a noun beginning in a vowel or an h - Unknown39 = ? - Unknown40 = ? - -Placeholders: - [t] = article or grammatical gender (EN: the, DE: der, die, das) - [n] = amount (number) - [a] = declension - [p] = plural - [pa] = ? -*/ - -/// -/// Provides functionality to process texts from sheets containing grammatical placeholders. -/// -[ServiceManager.EarlyLoadedService] -internal class NounProcessor : IServiceType -{ - // column names from ExdSchema, most likely incorrect - private const int SingularColumnIdx = 0; - private const int AdjectiveColumnIdx = 1; - private const int PluralColumnIdx = 2; - private const int PossessivePronounColumnIdx = 3; - private const int StartsWithVowelColumnIdx = 4; - private const int Unknown5ColumnIdx = 5; // probably used in Chinese texts - private const int PronounColumnIdx = 6; - private const int ArticleColumnIdx = 7; - - private static readonly ModuleLog Log = ModuleLog.Create(); - - [ServiceManager.ServiceDependency] - private readonly DataManager dataManager = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly DalamudConfiguration dalamudConfiguration = Service.Get(); - - private readonly ConcurrentDictionary cache = []; - - [ServiceManager.ServiceConstructor] - private NounProcessor() - { - } - - /// - /// Processes a specific row from a sheet and generates a formatted string based on grammatical and language-specific rules. - /// - /// Parameters for processing. - /// A ReadOnlySeString representing the processed text. - public ReadOnlySeString ProcessNoun(NounParams nounParams) - { - if (nounParams.GrammaticalCase < 0 || nounParams.GrammaticalCase > 5) - return default; - - if (this.cache.TryGetValue(nounParams, out var value)) - return value; - - var output = nounParams.Language switch - { - ClientLanguage.Japanese => this.ResolveNounJa(nounParams), - ClientLanguage.English => this.ResolveNounEn(nounParams), - ClientLanguage.German => this.ResolveNounDe(nounParams), - ClientLanguage.French => this.ResolveNounFr(nounParams), - _ => default, - }; - - this.cache.TryAdd(nounParams, output); - - return output; - } - - /// - /// Resolves noun placeholders in Japanese text. - /// - /// Parameters for processing. - /// A ReadOnlySeString representing the processed text. - /// - /// This is a C# implementation of Component::Text::Localize::NounJa.Resolve. - /// - private ReadOnlySeString ResolveNounJa(NounParams nounParams) - { - var sheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nounParams.SheetName); - if (!sheet.TryGetRow(nounParams.RowId, out var row)) - { - Log.Warning("Sheet {SheetName} does not contain row #{RowId}", nounParams.SheetName, nounParams.RowId); - return default; - } - - var attributiveSheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nameof(LSheets.Attributive)); - - using var rssb = new RentedSeStringBuilder(); - - // Ko-So-A-Do - var ksad = attributiveSheet.GetRow((uint)nounParams.ArticleType).ReadStringColumn(nounParams.Quantity > 1 ? 1 : 0); - if (!ksad.IsEmpty) - { - rssb.Builder.Append(ksad); - - if (nounParams.Quantity > 1) - { - rssb.Builder.ReplaceText("[n]"u8, ReadOnlySeString.FromText(nounParams.Quantity.ToString())); - } - } - - if (!nounParams.LinkMarker.IsEmpty) - rssb.Builder.Append(nounParams.LinkMarker); - - var text = row.ReadStringColumn(nounParams.ColumnOffset); - if (!text.IsEmpty) - rssb.Builder.Append(text); - - return rssb.Builder.ToReadOnlySeString(); - } - - /// - /// Resolves noun placeholders in English text. - /// - /// Parameters for processing. - /// A ReadOnlySeString representing the processed text. - /// - /// This is a C# implementation of Component::Text::Localize::NounEn.Resolve. - /// - private ReadOnlySeString ResolveNounEn(NounParams nounParams) - { - /* - a1->Offsets[0] = SingularColumnIdx - a1->Offsets[1] = PluralColumnIdx - a1->Offsets[2] = StartsWithVowelColumnIdx - a1->Offsets[3] = PossessivePronounColumnIdx - a1->Offsets[4] = ArticleColumnIdx - */ - - var sheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nounParams.SheetName); - if (!sheet.TryGetRow(nounParams.RowId, out var row)) - { - Log.Warning("Sheet {SheetName} does not contain row #{RowId}", nounParams.SheetName, nounParams.RowId); - return default; - } - - var attributiveSheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nameof(LSheets.Attributive)); - - using var rssb = new RentedSeStringBuilder(); - - var isProperNounColumn = nounParams.ColumnOffset + ArticleColumnIdx; - var isProperNoun = isProperNounColumn >= 0 ? row.ReadInt8Column(isProperNounColumn) : ~isProperNounColumn; - if (isProperNoun == 0) - { - var startsWithVowelColumn = nounParams.ColumnOffset + StartsWithVowelColumnIdx; - var startsWithVowel = startsWithVowelColumn >= 0 - ? row.ReadInt8Column(startsWithVowelColumn) - : ~startsWithVowelColumn; - - var articleColumn = startsWithVowel + (2 * (startsWithVowel + 1)); - var grammaticalNumberColumnOffset = nounParams.Quantity == 1 ? SingularColumnIdx : PluralColumnIdx; - var article = attributiveSheet.GetRow((uint)nounParams.ArticleType) - .ReadStringColumn(articleColumn + grammaticalNumberColumnOffset); - if (!article.IsEmpty) - rssb.Builder.Append(article); - - if (!nounParams.LinkMarker.IsEmpty) - rssb.Builder.Append(nounParams.LinkMarker); - } - - var text = row.ReadStringColumn(nounParams.ColumnOffset + (nounParams.Quantity == 1 ? SingularColumnIdx : PluralColumnIdx)); - if (!text.IsEmpty) - rssb.Builder.Append(text); - - rssb.Builder.ReplaceText("[n]"u8, ReadOnlySeString.FromText(nounParams.Quantity.ToString())); - - return rssb.Builder.ToReadOnlySeString(); - } - - /// - /// Resolves noun placeholders in German text. - /// - /// Parameters for processing. - /// A ReadOnlySeString representing the processed text. - /// - /// This is a C# implementation of Component::Text::Localize::NounDe.Resolve. - /// - private ReadOnlySeString ResolveNounDe(NounParams nounParams) - { - /* - a1->Offsets[0] = SingularColumnIdx - a1->Offsets[1] = PluralColumnIdx - a1->Offsets[2] = PronounColumnIdx - a1->Offsets[3] = AdjectiveColumnIdx - a1->Offsets[4] = PossessivePronounColumnIdx - a1->Offsets[5] = Unknown5ColumnIdx - a1->Offsets[6] = ArticleColumnIdx - */ - - var sheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nounParams.SheetName); - if (!sheet.TryGetRow(nounParams.RowId, out var row)) - { - Log.Warning("Sheet {SheetName} does not contain row #{RowId}", nounParams.SheetName, nounParams.RowId); - return default; - } - - var attributiveSheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nameof(LSheets.Attributive)); - - using var rssb = new RentedSeStringBuilder(); - - if (nounParams.IsActionSheet) - { - rssb.Builder.Append(row.ReadStringColumn(nounParams.GrammaticalCase)); - rssb.Builder.ReplaceText("[n]"u8, ReadOnlySeString.FromText(nounParams.Quantity.ToString())); - return rssb.Builder.ToReadOnlySeString(); - } - - var genderIndexColumn = nounParams.ColumnOffset + PronounColumnIdx; - var genderIndex = genderIndexColumn >= 0 ? row.ReadInt8Column(genderIndexColumn) : ~genderIndexColumn; - - var articleIndexColumn = nounParams.ColumnOffset + ArticleColumnIdx; - var articleIndex = articleIndexColumn >= 0 ? row.ReadInt8Column(articleIndexColumn) : ~articleIndexColumn; - - var caseColumnOffset = (4 * nounParams.GrammaticalCase) + 8; - - var caseRowOffsetColumn = nounParams.ColumnOffset + (nounParams.Quantity == 1 ? AdjectiveColumnIdx : PossessivePronounColumnIdx); - var caseRowOffset = caseRowOffsetColumn >= 0 - ? row.ReadInt8Column(caseRowOffsetColumn) - : (sbyte)~caseRowOffsetColumn; - - if (nounParams.Quantity != 1) - genderIndex = 3; - - var hasT = false; - var text = row.ReadStringColumn(nounParams.ColumnOffset + (nounParams.Quantity == 1 ? SingularColumnIdx : PluralColumnIdx)); - if (!text.IsEmpty) - { - hasT = text.ContainsText("[t]"u8); - - if (articleIndex == 0 && !hasT) - { - var grammaticalGender = attributiveSheet.GetRow((uint)nounParams.ArticleType) - .ReadStringColumn(caseColumnOffset + genderIndex); // Genus - if (!grammaticalGender.IsEmpty) - rssb.Builder.Append(grammaticalGender); - } - - if (!nounParams.LinkMarker.IsEmpty) - rssb.Builder.Append(nounParams.LinkMarker); - - rssb.Builder.Append(text); - - var plural = attributiveSheet.GetRow((uint)(caseRowOffset + 26)) - .ReadStringColumn(caseColumnOffset + genderIndex); - if (rssb.Builder.ContainsText("[p]"u8)) - rssb.Builder.ReplaceText("[p]"u8, plural); - else - rssb.Builder.Append(plural); - - if (hasT) - { - var article = - attributiveSheet.GetRow(39).ReadStringColumn(caseColumnOffset + genderIndex); // Definiter Artikel - rssb.Builder.ReplaceText("[t]"u8, article); - } - } - - rssb.Builder.ReplaceText("[pa]"u8, attributiveSheet.GetRow(24).ReadStringColumn(caseColumnOffset + genderIndex)); - - var declensionRow = (GermanArticleType)nounParams.ArticleType switch - { - // Schwache Flexion eines Adjektivs?! - GermanArticleType.Possessive or GermanArticleType.Demonstrative => attributiveSheet.GetRow(25), - _ when hasT => attributiveSheet.GetRow(25), - - // Starke Deklination - GermanArticleType.ZeroArticle => attributiveSheet.GetRow(38), - - // Gemischte Deklination - GermanArticleType.Definite => attributiveSheet.GetRow(37), - - // Starke Flexion eines Artikels?! - GermanArticleType.Indefinite or GermanArticleType.Negative => attributiveSheet.GetRow(26), - _ => attributiveSheet.GetRow(26), - }; - - rssb.Builder.ReplaceText("[a]"u8, declensionRow.ReadStringColumn(caseColumnOffset + genderIndex)); - rssb.Builder.ReplaceText("[n]"u8, ReadOnlySeString.FromText(nounParams.Quantity.ToString())); - - return rssb.Builder.ToReadOnlySeString(); - } - - /// - /// Resolves noun placeholders in French text. - /// - /// Parameters for processing. - /// A ReadOnlySeString representing the processed text. - /// - /// This is a C# implementation of Component::Text::Localize::NounFr.Resolve. - /// - private ReadOnlySeString ResolveNounFr(NounParams nounParams) - { - /* - a1->Offsets[0] = SingularColumnIdx - a1->Offsets[1] = PluralColumnIdx - a1->Offsets[2] = StartsWithVowelColumnIdx - a1->Offsets[3] = PronounColumnIdx - a1->Offsets[4] = Unknown5ColumnIdx - a1->Offsets[5] = ArticleColumnIdx - */ - - var sheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nounParams.SheetName); - if (!sheet.TryGetRow(nounParams.RowId, out var row)) - { - Log.Warning("Sheet {SheetName} does not contain row #{RowId}", nounParams.SheetName, nounParams.RowId); - return default; - } - - var attributiveSheet = this.dataManager.Excel.GetSheet(nounParams.Language.ToLumina(), nameof(LSheets.Attributive)); - - using var rssb = new RentedSeStringBuilder(); - - var startsWithVowelColumn = nounParams.ColumnOffset + StartsWithVowelColumnIdx; - var startsWithVowel = startsWithVowelColumn >= 0 - ? row.ReadInt8Column(startsWithVowelColumn) - : ~startsWithVowelColumn; - - var pronounColumn = nounParams.ColumnOffset + PronounColumnIdx; - var pronoun = pronounColumn >= 0 ? row.ReadInt8Column(pronounColumn) : ~pronounColumn; - - var articleColumn = nounParams.ColumnOffset + ArticleColumnIdx; - var article = articleColumn >= 0 ? row.ReadInt8Column(articleColumn) : ~articleColumn; - - var v20 = 4 * (startsWithVowel + 6 + (2 * pronoun)); - - if (article != 0) - { - var v21 = attributiveSheet.GetRow((uint)nounParams.ArticleType).ReadStringColumn(v20); - if (!v21.IsEmpty) - rssb.Builder.Append(v21); - - if (!nounParams.LinkMarker.IsEmpty) - rssb.Builder.Append(nounParams.LinkMarker); - - var text = row.ReadStringColumn(nounParams.ColumnOffset + (nounParams.Quantity <= 1 ? SingularColumnIdx : PluralColumnIdx)); - if (!text.IsEmpty) - rssb.Builder.Append(text); - - if (nounParams.Quantity <= 1) - rssb.Builder.ReplaceText("[n]"u8, ReadOnlySeString.FromText(nounParams.Quantity.ToString())); - - return rssb.Builder.ToReadOnlySeString(); - } - - var v17 = row.ReadInt8Column(nounParams.ColumnOffset + Unknown5ColumnIdx); - if (v17 != 0 && (nounParams.Quantity > 1 || v17 == 2)) - { - var v29 = attributiveSheet.GetRow((uint)nounParams.ArticleType).ReadStringColumn(v20 + 2); - if (!v29.IsEmpty) - { - rssb.Builder.Append(v29); - - if (!nounParams.LinkMarker.IsEmpty) - rssb.Builder.Append(nounParams.LinkMarker); - - var text = row.ReadStringColumn(nounParams.ColumnOffset + PluralColumnIdx); - if (!text.IsEmpty) - rssb.Builder.Append(text); - } - } - else - { - var v27 = attributiveSheet.GetRow((uint)nounParams.ArticleType).ReadStringColumn(v20 + (v17 != 0 ? 1 : 3)); - if (!v27.IsEmpty) - rssb.Builder.Append(v27); - - if (!nounParams.LinkMarker.IsEmpty) - rssb.Builder.Append(nounParams.LinkMarker); - - var text = row.ReadStringColumn(nounParams.ColumnOffset + SingularColumnIdx); - if (!text.IsEmpty) - rssb.Builder.Append(text); - } - - rssb.Builder.ReplaceText("[n]"u8, ReadOnlySeString.FromText(nounParams.Quantity.ToString())); - - return rssb.Builder.ToReadOnlySeString(); - } -} diff --git a/Dalamud/Game/Text/SeStringHandling/BitmapFontIcon.cs b/Dalamud/Game/Text/SeStringHandling/BitmapFontIcon.cs index 8dca7c4ce..7db528f6a 100644 --- a/Dalamud/Game/Text/SeStringHandling/BitmapFontIcon.cs +++ b/Dalamud/Game/Text/SeStringHandling/BitmapFontIcon.cs @@ -739,54 +739,4 @@ public enum BitmapFontIcon : uint /// The Venture Delivery Moogle icon. ///
VentureDeliveryMoogle = 172, - - /// - /// The Watching Cutscene icon. - /// - WatchingCutscene = 173, - - /// - /// The Away from Keyboard icon. - /// - Away = 174, - - /// - /// The Camera Mode icon. - /// - CameraMode = 175, - - /// - /// The Looking For Party icon. - /// - LookingForParty = 176, - - /// - /// The Group Finder icon. - /// - GroupFinder = 177, - - /// - /// The Party Leader icon. - /// - PartyLeader = 178, - - /// - /// The Party Member icon. - /// - PartyMember = 179, - - /// - /// The Cross-World Party Leader icon. - /// - CrossWorldPartyLeader = 180, - - /// - /// The Cross-World Party Member icon. - /// - CrossWorldPartyMember = 181, - - /// - /// The Event Tutorial icon. - /// - EventTutorial = 182, } diff --git a/Dalamud/Game/Text/SeStringHandling/Payload.cs b/Dalamud/Game/Text/SeStringHandling/Payload.cs index 685ff517a..a38a8271d 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payload.cs @@ -2,8 +2,11 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; +using Dalamud.Data; using Dalamud.Game.Text.SeStringHandling.Payloads; +using Dalamud.Plugin.Services; +using Newtonsoft.Json; using Serilog; // TODOs: @@ -114,7 +117,7 @@ public abstract partial class Payload var chunkType = (SeStringChunkType)reader.ReadByte(); var chunkLen = GetInteger(reader); - var expressionsStart = reader.BaseStream.Position; + var packetStart = reader.BaseStream.Position; // any unhandled payload types will be turned into a RawPayload with the exact same binary data switch (chunkType) @@ -198,25 +201,27 @@ public abstract partial class Payload case SeStringChunkType.Icon: payload = new IconPayload(); break; - + default: // Log.Verbose("Unhandled SeStringChunkType: {0}", chunkType); break; } payload ??= new RawPayload((byte)chunkType); - payload.DecodeImpl(reader, reader.BaseStream.Position + chunkLen); + payload.DecodeImpl(reader, reader.BaseStream.Position + chunkLen - 1); - // skip to the end of the payload, in case the specific payload handler didn't read everything - reader.BaseStream.Seek(expressionsStart + chunkLen + 1, SeekOrigin.Begin); // +1 for the END_BYTE marker + // read through the rest of the packet + var readBytes = (uint)(reader.BaseStream.Position - packetStart); + reader.ReadBytes((int)(chunkLen - readBytes + 1)); // +1 for the END_BYTE marker return payload; } - private static TextPayload DecodeText(BinaryReader reader) + private static Payload DecodeText(BinaryReader reader) { var payload = new TextPayload(); payload.DecodeImpl(reader, reader.BaseStream.Length); + return payload; } } @@ -301,7 +306,7 @@ public abstract partial class Payload /// See the . ///
NewLine = 0x10, - + /// /// See the class. /// @@ -381,7 +386,7 @@ public abstract partial class Payload { if (value < 0xCF) { - return [(byte)(value + 1)]; + return new byte[] { (byte)(value + 1) }; } var bytes = BitConverter.GetBytes(value); diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/AutoTranslatePayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/AutoTranslatePayload.cs index 8178a6d33..b038deb6f 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/AutoTranslatePayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/AutoTranslatePayload.cs @@ -1,12 +1,14 @@ +using System.Collections.Generic; using System.IO; +using System.Linq; -using Dalamud.Game.Text.Evaluator; -using Dalamud.Utility; +using Dalamud.Data; -using Lumina.Text.Payloads; +using Lumina.Excel.Sheets; using Lumina.Text.ReadOnly; using Newtonsoft.Json; +using Serilog; namespace Dalamud.Game.Text.SeStringHandling.Payloads; @@ -15,7 +17,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads; ///
public class AutoTranslatePayload : Payload, ITextProvider { - private ReadOnlySeString payload; + private string? text; /// /// Initializes a new instance of the class. @@ -32,15 +34,6 @@ public class AutoTranslatePayload : Payload, ITextProvider // TODO: friendlier ctor? not sure how to handle that given how weird the tables are this.Group = group; this.Key = key; - - using var rssb = new RentedSeStringBuilder(); - - this.payload = rssb.Builder - .BeginMacro(MacroCode.Fixed) - .AppendUIntExpression(group - 1) - .AppendUIntExpression(key) - .EndMacro() - .ToReadOnlySeString(); } /// @@ -48,7 +41,6 @@ public class AutoTranslatePayload : Payload, ITextProvider /// internal AutoTranslatePayload() { - this.payload = default; // parsed by DecodeImpl } /// @@ -76,13 +68,8 @@ public class AutoTranslatePayload : Payload, ITextProvider { get { - if (this.Group is 100 or 200) - { - return Service.Get().Evaluate(this.payload).ToString(); - } - - // wrap the text in the colored brackets that are used in-game, since those are not actually part of any of the fixed macro payload - return $"{(char)SeIconChar.AutoTranslateOpen} {Service.Get().Evaluate(this.payload)} {(char)SeIconChar.AutoTranslateClose}"; + // wrap the text in the colored brackets that is uses in-game, since those are not actually part of any of the payloads + return this.text ??= $"{(char)SeIconChar.AutoTranslateOpen} {this.Resolve()} {(char)SeIconChar.AutoTranslateClose}"; } } @@ -98,25 +85,95 @@ public class AutoTranslatePayload : Payload, ITextProvider /// protected override byte[] EncodeImpl() { - return this.payload.Data.ToArray(); + var keyBytes = MakeInteger(this.Key); + + var chunkLen = keyBytes.Length + 2; + var bytes = new List() + { + START_BYTE, + (byte)SeStringChunkType.AutoTranslateKey, (byte)chunkLen, + (byte)this.Group, + }; + bytes.AddRange(keyBytes); + bytes.Add(END_BYTE); + + return bytes.ToArray(); } /// protected override void DecodeImpl(BinaryReader reader, long endOfStream) { - var body = reader.ReadBytes((int)(endOfStream - reader.BaseStream.Position)); - var rosps = new ReadOnlySePayloadSpan(ReadOnlySePayloadType.Macro, MacroCode.Fixed, body.AsSpan()); + // this seems to always be a bare byte, and not following normal integer encoding + // the values in the table are all <70 so this is presumably ok + this.Group = reader.ReadByte(); - var span = rosps.EnvelopeByteLength <= 512 ? stackalloc byte[rosps.EnvelopeByteLength] : new byte[rosps.EnvelopeByteLength]; - rosps.WriteEnvelopeTo(span); - this.payload = new ReadOnlySeString(span); + this.Key = GetInteger(reader); + } - if (rosps.TryGetExpression(out var expr1, out var expr2) - && expr1.TryGetUInt(out var group) - && expr2.TryGetUInt(out var key)) + private static ReadOnlySeString ResolveTextCommand(TextCommand command) + { + // TextCommands prioritize the `Alias` field, if it not empty + // Example for this is /rangerpose2l which becomes /blackrangerposeb in chat + return !command.Alias.IsEmpty ? command.Alias : command.Command; + } + + private string Resolve() + { + string value = null; + + var excelModule = Service.Get().Excel; + var completionSheet = excelModule.GetSheet(); + + // try to get the row in the Completion table itself, because this is 'easiest' + // The row may not exist at all (if the Key is for another table), or it could be the wrong row + // (again, if it's meant for another table) + + if (completionSheet.GetRowOrDefault(this.Key) is { } completion && completion.Group == this.Group) { - this.Group = group + 1; - this.Key = key; + // if the row exists in this table and the group matches, this is actually the correct data + value = completion.Text.ExtractText(); } + else + { + try + { + // we need to get the linked table and do the lookup there instead + // in this case, there will only be one entry for this group id + var row = completionSheet.First(r => r.Group == this.Group); + // many of the names contain valid id ranges after the table name, but we don't need those + var actualTableName = row.LookupTable.ExtractText().Split('[')[0]; + + var name = actualTableName switch + { + "Action" => excelModule.GetSheet().GetRow(this.Key).Name, + "ActionComboRoute" => excelModule.GetSheet().GetRow(this.Key).Name, + "BuddyAction" => excelModule.GetSheet().GetRow(this.Key).Name, + "ClassJob" => excelModule.GetSheet().GetRow(this.Key).Name, + "Companion" => excelModule.GetSheet().GetRow(this.Key).Singular, + "CraftAction" => excelModule.GetSheet().GetRow(this.Key).Name, + "GeneralAction" => excelModule.GetSheet().GetRow(this.Key).Name, + "GuardianDeity" => excelModule.GetSheet().GetRow(this.Key).Name, + "MainCommand" => excelModule.GetSheet().GetRow(this.Key).Name, + "Mount" => excelModule.GetSheet().GetRow(this.Key).Singular, + "Pet" => excelModule.GetSheet().GetRow(this.Key).Name, + "PetAction" => excelModule.GetSheet().GetRow(this.Key).Name, + "PetMirage" => excelModule.GetSheet().GetRow(this.Key).Name, + "PlaceName" => excelModule.GetSheet().GetRow(this.Key).Name, + "Race" => excelModule.GetSheet().GetRow(this.Key).Masculine, + "TextCommand" => AutoTranslatePayload.ResolveTextCommand(excelModule.GetSheet().GetRow(this.Key)), + "Tribe" => excelModule.GetSheet().GetRow(this.Key).Masculine, + "Weather" => excelModule.GetSheet().GetRow(this.Key).Name, + _ => throw new Exception(actualTableName), + }; + + value = name.ExtractText(); + } + catch (Exception e) + { + Log.Error(e, $"AutoTranslatePayload - failed to resolve: {this.Type} - Group: {this.Group}, Key: {this.Key}"); + } + } + + return value; } } diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/DalamudLinkPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/DalamudLinkPayload.cs index 2becb815b..8b020b111 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/DalamudLinkPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/DalamudLinkPayload.cs @@ -1,7 +1,5 @@ using System.IO; -using Dalamud.Utility; - using Lumina.Text.Payloads; using Lumina.Text.ReadOnly; @@ -39,18 +37,19 @@ public class DalamudLinkPayload : Payload /// protected override byte[] EncodeImpl() { - using var rssb = new RentedSeStringBuilder(); - return rssb.Builder - .BeginMacro(MacroCode.Link) - .AppendIntExpression((int)EmbeddedInfoType.DalamudLink - 1) - .AppendUIntExpression(this.CommandId) - .AppendIntExpression(this.Extra1) - .AppendIntExpression(this.Extra2) - .BeginStringExpression() - .Append(JsonConvert.SerializeObject(new[] { this.Plugin, this.ExtraString })) - .EndExpression() - .EndMacro() - .ToArray(); + var ssb = Lumina.Text.SeStringBuilder.SharedPool.Get(); + var res = ssb.BeginMacro(MacroCode.Link) + .AppendIntExpression((int)EmbeddedInfoType.DalamudLink - 1) + .AppendUIntExpression(this.CommandId) + .AppendIntExpression(this.Extra1) + .AppendIntExpression(this.Extra2) + .BeginStringExpression() + .Append(JsonConvert.SerializeObject(new[] { this.Plugin, this.ExtraString })) + .EndExpression() + .EndMacro() + .ToArray(); + Lumina.Text.SeStringBuilder.SharedPool.Return(ssb); + return res; } /// diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/IconPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/IconPayload.cs index ad25de01d..7963d422f 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/IconPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/IconPayload.cs @@ -45,10 +45,10 @@ public class IconPayload : Payload { var indexBytes = MakeInteger((uint)this.Icon); var chunkLen = indexBytes.Length + 1; - var bytes = new List( - [ + var bytes = new List(new byte[] + { START_BYTE, (byte)SeStringChunkType.Icon, (byte)chunkLen, - ]); + }); bytes.AddRange(indexBytes); bytes.Add(END_BYTE); return bytes.ToArray(); diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs index 20f05958f..c31707ff2 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/ItemPayload.cs @@ -4,11 +4,8 @@ using System.Linq; using System.Text; using Dalamud.Data; -using Dalamud.Utility; - using Lumina.Excel; using Lumina.Excel.Sheets; - using Newtonsoft.Json; namespace Dalamud.Game.Text.SeStringHandling.Payloads; @@ -32,7 +29,7 @@ public class ItemPayload : Payload /// Creates a payload representing an interactable item link for the specified item. /// /// The id of the item. - /// Whether the link should be for the high-quality variant of the item. + /// Whether or not the link should be for the high-quality variant of the item. /// An optional name to include in the item link. Typically this should /// be left as null, or set to the normal item name. Actual overrides are better done with the subsequent /// TextPayload that is a part of a full item link in chat. @@ -73,6 +70,32 @@ public class ItemPayload : Payload { } + /// + /// Kinds of items that can be fetched from this payload. + /// + public enum ItemKind : uint + { + /// + /// Normal items. + /// + Normal, + + /// + /// Collectible Items. + /// + Collectible = 500_000, + + /// + /// High-Quality items. + /// + Hq = 1_000_000, + + /// + /// Event/Key items. + /// + EventItem = 2_000_000, + } + /// public override PayloadType Type => PayloadType.Item; @@ -98,7 +121,7 @@ public class ItemPayload : Payload /// Gets the actual item ID of this payload. /// [JsonIgnore] - public uint ItemId => ItemUtil.GetBaseId(this.rawItemId).ItemId; + public uint ItemId => GetAdjustedId(this.rawItemId).ItemId; /// /// Gets the raw, unadjusted item ID of this payload. @@ -116,7 +139,7 @@ public class ItemPayload : Payload : (RowRef)LuminaUtils.CreateRef(this.ItemId); /// - /// Gets a value indicating whether this item link is for a high-quality version of the item. + /// Gets a value indicating whether or not this item link is for a high-quality version of the item. /// [JsonProperty] public bool IsHQ => this.Kind == ItemKind.Hq; @@ -138,7 +161,7 @@ public class ItemPayload : Payload /// The created item payload. public static ItemPayload FromRaw(uint rawItemId, string? displayNameOverride = null) { - var (id, kind) = ItemUtil.GetBaseId(rawItemId); + var (id, kind) = GetAdjustedId(rawItemId); return new ItemPayload(id, kind, displayNameOverride); } @@ -173,7 +196,7 @@ public class ItemPayload : Payload }; bytes.AddRange(idBytes); // unk - bytes.AddRange([0x02, 0x01]); + bytes.AddRange(new byte[] { 0x02, 0x01 }); // Links don't have to include the name, but if they do, it requires additional work if (hasName) @@ -184,17 +207,17 @@ public class ItemPayload : Payload nameLen += 4; // space plus 3 bytes for HQ symbol } - bytes.AddRange( - [ + bytes.AddRange(new byte[] + { 0xFF, // unk (byte)nameLen, - ]); + }); bytes.AddRange(Encoding.UTF8.GetBytes(this.displayName)); if (this.IsHQ) { // space and HQ symbol - bytes.AddRange([0x20, 0xEE, 0x80, 0xBC]); + bytes.AddRange(new byte[] { 0x20, 0xEE, 0x80, 0xBC }); } } @@ -207,7 +230,7 @@ public class ItemPayload : Payload protected override void DecodeImpl(BinaryReader reader, long endOfStream) { this.rawItemId = GetInteger(reader); - this.Kind = ItemUtil.GetBaseId(this.rawItemId).Kind; + this.Kind = GetAdjustedId(this.rawItemId).Kind; if (reader.BaseStream.Position + 3 < endOfStream) { @@ -232,4 +255,15 @@ public class ItemPayload : Payload this.displayName = Encoding.UTF8.GetString(itemNameBytes); } } + + private static (uint ItemId, ItemKind Kind) GetAdjustedId(uint rawItemId) + { + return rawItemId switch + { + > 500_000 and < 1_000_000 => (rawItemId - 500_000, ItemKind.Collectible), + > 1_000_000 and < 2_000_000 => (rawItemId - 1_000_000, ItemKind.Hq), + > 2_000_000 => (rawItemId, ItemKind.EventItem), // EventItem IDs are NOT adjusted + _ => (rawItemId, ItemKind.Normal), + }; + } } diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/MapLinkPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/MapLinkPayload.cs index 31cab41a1..7b672d07a 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/MapLinkPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/MapLinkPayload.cs @@ -5,7 +5,6 @@ using Dalamud.Data; using Lumina.Excel; using Lumina.Excel.Sheets; - using Newtonsoft.Json; namespace Dalamud.Game.Text.SeStringHandling.Payloads; @@ -175,7 +174,7 @@ public class MapLinkPayload : Payload bytes.AddRange(yBytes); // unk - bytes.AddRange([0xFF, 0x01, END_BYTE]); + bytes.AddRange(new byte[] { 0xFF, 0x01, END_BYTE }); return bytes.ToArray(); } diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/NewLinePayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/NewLinePayload.cs index 8072c87f5..0b090b3d6 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/NewLinePayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/NewLinePayload.cs @@ -7,7 +7,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads; /// public class NewLinePayload : Payload, ITextProvider { - private readonly byte[] bytes = [START_BYTE, (byte)SeStringChunkType.NewLine, 0x01, END_BYTE]; + private readonly byte[] bytes = { START_BYTE, (byte)SeStringChunkType.NewLine, 0x01, END_BYTE }; /// /// Gets an instance of NewLinePayload. diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/PartyFinderPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/PartyFinderPayload.cs index 77ed7b8bc..0931ab03f 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/PartyFinderPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/PartyFinderPayload.cs @@ -3,7 +3,6 @@ using System.Diagnostics.CodeAnalysis; using System.IO; using Lumina.Extensions; - using Newtonsoft.Json; namespace Dalamud.Game.Text.SeStringHandling.Payloads @@ -98,7 +97,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads reader.ReadByte(); // if the next byte is 0xF3 then this listing is limited to home world - var nextByte = reader.ReadByte(); + byte nextByte = reader.ReadByte(); switch (nextByte) { case (byte)PartyFinderLinkType.LimitedToHomeWorld: @@ -122,11 +121,11 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads // if the link type is notification, just use premade payload data since it's always the same. // i have no idea why it is formatted like this, but it is how it is. // note it is identical to the link terminator payload except the embedded info type is 0x08 - if (this.LinkType == PartyFinderLinkType.PartyFinderNotification) return [0x02, 0x27, 0x07, 0x08, 0x01, 0x01, 0x01, 0xFF, 0x01, 0x03,]; + if (this.LinkType == PartyFinderLinkType.PartyFinderNotification) return new byte[] { 0x02, 0x27, 0x07, 0x08, 0x01, 0x01, 0x01, 0xFF, 0x01, 0x03, }; // back to our regularly scheduled programming... var listingIDBytes = MakeInteger(this.ListingId); - var isFlagSpecified = this.LinkType != PartyFinderLinkType.NotSpecified; + bool isFlagSpecified = this.LinkType != PartyFinderLinkType.NotSpecified; var chunkLen = listingIDBytes.Length + 4; // 1 more byte for the type flag if it is specified diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/PlayerPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/PlayerPayload.cs index 01ca1b955..55697782e 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/PlayerPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/PlayerPayload.cs @@ -1,7 +1,8 @@ +using System.Collections.Generic; using System.IO; +using System.Text; using Dalamud.Data; -using Dalamud.Utility; using Lumina.Excel; using Lumina.Excel.Sheets; @@ -86,12 +87,14 @@ public class PlayerPayload : Payload /// protected override byte[] EncodeImpl() { - using var rssb = new RentedSeStringBuilder(); - return rssb.Builder - .PushLinkCharacter(this.playerName, this.serverId) - .Append(this.playerName) - .PopLink() - .ToArray(); + var ssb = Lumina.Text.SeStringBuilder.SharedPool.Get(); + var res = ssb + .PushLinkCharacter(this.playerName, this.serverId) + .Append(this.playerName) + .PopLink() + .ToArray(); + Lumina.Text.SeStringBuilder.SharedPool.Return(ssb); + return res; } /// diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/QuestPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/QuestPayload.cs index 47947ccde..19d494d8a 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/QuestPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/QuestPayload.cs @@ -5,7 +5,6 @@ using Dalamud.Data; using Lumina.Excel; using Lumina.Excel.Sheets; - using Newtonsoft.Json; namespace Dalamud.Game.Text.SeStringHandling.Payloads; @@ -63,7 +62,7 @@ public class QuestPayload : Payload }; bytes.AddRange(idBytes); - bytes.AddRange([0x01, 0x01, END_BYTE]); + bytes.AddRange(new byte[] { 0x01, 0x01, END_BYTE }); return bytes.ToArray(); } diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/RawPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/RawPayload.cs index 50464077b..a7e41cbc6 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/RawPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/RawPayload.cs @@ -45,7 +45,7 @@ public class RawPayload : Payload /// /// Gets a fixed Payload representing a common link-termination sequence, found in many payload chains. /// - public static RawPayload LinkTerminator => new([0x02, 0x27, 0x07, 0xCF, 0x01, 0x01, 0x01, 0xFF, 0x01, 0x03]); + public static RawPayload LinkTerminator => new(new byte[] { 0x02, 0x27, 0x07, 0xCF, 0x01, 0x01, 0x01, 0xFF, 0x01, 0x03 }); /// public override PayloadType Type => PayloadType.Unknown; @@ -95,12 +95,14 @@ public class RawPayload : Payload /// protected override byte[] EncodeImpl() { + var chunkLen = this.data.Length + 1; + var bytes = new List() { START_BYTE, this.chunkType, + (byte)chunkLen, }; - bytes.AddRange(MakeInteger((uint)this.data.Length)); // chunkLen bytes.AddRange(this.data); bytes.Add(END_BYTE); @@ -111,6 +113,6 @@ public class RawPayload : Payload /// protected override void DecodeImpl(BinaryReader reader, long endOfStream) { - this.data = reader.ReadBytes((int)(endOfStream - reader.BaseStream.Position)); + this.data = reader.ReadBytes((int)(endOfStream - reader.BaseStream.Position + 1)); } } diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/SeHyphenPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/SeHyphenPayload.cs index 48c55a5a8..1739b9cda 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/SeHyphenPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/SeHyphenPayload.cs @@ -7,7 +7,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads; /// public class SeHyphenPayload : Payload, ITextProvider { - private readonly byte[] bytes = [START_BYTE, (byte)SeStringChunkType.SeHyphen, 0x01, END_BYTE]; + private readonly byte[] bytes = { START_BYTE, (byte)SeStringChunkType.SeHyphen, 0x01, END_BYTE }; /// /// Gets an instance of SeHyphenPayload. diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/StatusPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/StatusPayload.cs index c17213f60..d102dfab6 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/StatusPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/StatusPayload.cs @@ -5,7 +5,6 @@ using Dalamud.Data; using Lumina.Excel; using Lumina.Excel.Sheets; - using Newtonsoft.Json; namespace Dalamud.Game.Text.SeStringHandling.Payloads; @@ -64,7 +63,7 @@ public class StatusPayload : Payload bytes.AddRange(idBytes); // unk - bytes.AddRange([0x01, 0x01, 0xFF, 0x02, 0x20, END_BYTE]); + bytes.AddRange(new byte[] { 0x01, 0x01, 0xFF, 0x02, 0x20, END_BYTE }); return bytes.ToArray(); } diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/UIForegroundPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/UIForegroundPayload.cs index f161cff9d..995c20211 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/UIForegroundPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/UIForegroundPayload.cs @@ -5,14 +5,12 @@ using Dalamud.Data; using Lumina.Excel; using Lumina.Excel.Sheets; - using Newtonsoft.Json; namespace Dalamud.Game.Text.SeStringHandling.Payloads; /// -/// An SeString Payload that allows text to have a specific color. The color selected will be determined by the -/// theme's coloring, regardless of the active theme. +/// An SeString Payload representing a UI foreground color applied to following text payloads. /// public class UIForegroundPayload : Payload { @@ -47,7 +45,7 @@ public class UIForegroundPayload : Payload public override PayloadType Type => PayloadType.UIForeground; /// - /// Gets a value indicating whether this payload represents applying a foreground color, or disabling one. + /// Gets a value indicating whether or not this payload represents applying a foreground color, or disabling one. /// public bool IsEnabled => this.ColorKey != 0; @@ -76,13 +74,13 @@ public class UIForegroundPayload : Payload /// Gets the Red/Green/Blue/Alpha values for this foreground color, encoded as a typical hex color. /// [JsonIgnore] - public uint RGBA => this.UIColor.Value.Dark; + public uint RGBA => this.UIColor.Value.UIForeground; /// /// Gets the ABGR value for this foreground color, as ImGui requires it in PushColor. /// [JsonIgnore] - public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.Dark); + public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.UIForeground); /// public override string ToString() @@ -96,10 +94,10 @@ public class UIForegroundPayload : Payload var colorBytes = MakeInteger(this.colorKey); var chunkLen = colorBytes.Length + 1; - var bytes = new List( - [ + var bytes = new List(new byte[] + { START_BYTE, (byte)SeStringChunkType.UIForeground, (byte)chunkLen, - ]); + }); bytes.AddRange(colorBytes); bytes.Add(END_BYTE); diff --git a/Dalamud/Game/Text/SeStringHandling/Payloads/UIGlowPayload.cs b/Dalamud/Game/Text/SeStringHandling/Payloads/UIGlowPayload.cs index 01c0d05d2..3049ccac3 100644 --- a/Dalamud/Game/Text/SeStringHandling/Payloads/UIGlowPayload.cs +++ b/Dalamud/Game/Text/SeStringHandling/Payloads/UIGlowPayload.cs @@ -5,14 +5,12 @@ using Dalamud.Data; using Lumina.Excel; using Lumina.Excel.Sheets; - using Newtonsoft.Json; namespace Dalamud.Game.Text.SeStringHandling.Payloads; /// -/// An SeString Payload that allows text to have a specific edge glow. The color selected will be determined by the -/// theme's coloring, regardless of the active theme. +/// An SeString Payload representing a UI glow color applied to following text payloads. /// public class UIGlowPayload : Payload { @@ -65,7 +63,7 @@ public class UIGlowPayload : Payload } /// - /// Gets a value indicating whether this payload represents applying a glow color, or disabling one. + /// Gets a value indicating whether or not this payload represents applying a glow color, or disabling one. /// public bool IsEnabled => this.ColorKey != 0; @@ -73,13 +71,13 @@ public class UIGlowPayload : Payload /// Gets the Red/Green/Blue/Alpha values for this glow color, encoded as a typical hex color. ///
[JsonIgnore] - public uint RGBA => this.UIColor.Value.Light; + public uint RGBA => this.UIColor.Value.UIGlow; /// /// Gets the ABGR value for this glow color, as ImGui requires it in PushColor. /// [JsonIgnore] - public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.Light); + public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.UIGlow); /// /// Gets a Lumina UIColor object representing this payload. The actual color data is at UIColor.UIGlow. @@ -99,10 +97,10 @@ public class UIGlowPayload : Payload var colorBytes = MakeInteger(this.colorKey); var chunkLen = colorBytes.Length + 1; - var bytes = new List( - [ + var bytes = new List(new byte[] + { START_BYTE, (byte)SeStringChunkType.UIGlow, (byte)chunkLen, - ]); + }); bytes.AddRange(colorBytes); bytes.Add(END_BYTE); diff --git a/Dalamud/Game/Text/SeStringHandling/SeString.cs b/Dalamud/Game/Text/SeStringHandling/SeString.cs index b64a8bb67..7f1955da5 100644 --- a/Dalamud/Game/Text/SeStringHandling/SeString.cs +++ b/Dalamud/Game/Text/SeStringHandling/SeString.cs @@ -5,16 +5,11 @@ using System.Runtime.InteropServices; using System.Text; using Dalamud.Data; -using Dalamud.Game.Text.Evaluator; using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Utility; - using Lumina.Excel.Sheets; - using Newtonsoft.Json; -using LSeStringBuilder = Lumina.Text.SeStringBuilder; - namespace Dalamud.Game.Text.SeStringHandling; /// @@ -28,7 +23,7 @@ public class SeString /// public SeString() { - this.Payloads = []; + this.Payloads = new List(); } /// @@ -113,6 +108,13 @@ public class SeString /// Equivalent SeString. public static implicit operator SeString(string str) => new(new TextPayload(str)); + /// + /// Implicitly convert a string into a SeString containing a . + /// + /// string to convert. + /// Equivalent SeString. + public static explicit operator SeString(Lumina.Text.SeString str) => str.ToDalamudString(); + /// /// Parse a binary game message into an SeString. /// @@ -174,7 +176,7 @@ public class SeString /// An optional name override to display, instead of the actual item name. /// An SeString containing all the payloads necessary to display an item link in the chat log. public static SeString CreateItemLink(uint itemId, bool isHq, string? displayNameOverride = null) => - CreateItemLink(itemId, isHq ? ItemKind.Hq : ItemKind.Normal, displayNameOverride); + CreateItemLink(itemId, isHq ? ItemPayload.ItemKind.Hq : ItemPayload.ItemKind.Normal, displayNameOverride); /// /// Creates an SeString representing an entire Payload chain that can be used to link an item in the chat log. @@ -183,34 +185,59 @@ public class SeString /// The kind of item to link. /// An optional name override to display, instead of the actual item name. /// An SeString containing all the payloads necessary to display an item link in the chat log. - public static SeString CreateItemLink(uint itemId, ItemKind kind = ItemKind.Normal, string? displayNameOverride = null) + public static SeString CreateItemLink(uint itemId, ItemPayload.ItemKind kind = ItemPayload.ItemKind.Normal, string? displayNameOverride = null) { - var clientState = Service.Get(); - var seStringEvaluator = Service.Get(); + var data = Service.Get(); - var rawId = ItemUtil.GetRawId(itemId, kind); + var displayName = displayNameOverride; + var rarity = 1; // default: white + if (displayName == null) + { + switch (kind) + { + case ItemPayload.ItemKind.Normal: + case ItemPayload.ItemKind.Collectible: + case ItemPayload.ItemKind.Hq: + var item = data.GetExcelSheet()?.GetRowOrDefault(itemId); + displayName = item?.Name.ExtractText(); + rarity = item?.Rarity ?? 1; + break; + case ItemPayload.ItemKind.EventItem: + displayName = data.GetExcelSheet()?.GetRowOrDefault(itemId)?.Name.ExtractText(); + break; + default: + throw new ArgumentOutOfRangeException(nameof(kind), kind, null); + } + } - var displayName = displayNameOverride ?? ItemUtil.GetItemName(rawId); - if (displayName.IsEmpty) + if (displayName == null) + { throw new Exception("Invalid item ID specified, could not determine item name."); + } - var copyName = ItemUtil.GetItemName(rawId, false).ExtractText(); - var textColor = ItemUtil.GetItemRarityColorType(rawId); - var textEdgeColor = textColor + 1u; + if (kind == ItemPayload.ItemKind.Hq) + { + displayName += $" {(char)SeIconChar.HighQuality}"; + } + else if (kind == ItemPayload.ItemKind.Collectible) + { + displayName += $" {(char)SeIconChar.Collectible}"; + } - using var rssb = new RentedSeStringBuilder(); + var textColor = (ushort)(549 + ((rarity - 1) * 2)); + var textGlowColor = (ushort)(textColor + 1); - var itemLink = rssb.Builder - .PushColorType(textColor) - .PushEdgeColorType(textEdgeColor) - .PushLinkItem(rawId, copyName) - .Append(displayName) - .PopLink() - .PopEdgeColorType() - .PopColorType() - .ToReadOnlySeString(); - - return SeString.Parse(seStringEvaluator.EvaluateFromAddon(371, [itemLink], clientState.ClientLanguage)); + // Note: `SeStringBuilder.AddItemLink` uses this function, so don't call it here! + return new SeStringBuilder() + .AddUiForeground(textColor) + .AddUiGlow(textGlowColor) + .Add(new ItemPayload(itemId, kind)) + .Append(TextArrowPayloads) + .AddText(displayName) + .AddUiGlowOff() + .AddUiForegroundOff() + .Add(RawPayload.LinkTerminator) + .Build(); } /// @@ -250,12 +277,16 @@ public class SeString var mapPayload = new MapLinkPayload(territoryId, mapId, rawX, rawY); var nameString = GetMapLinkNameString(mapPayload.PlaceName, instance, mapPayload.CoordinateString); - return new SeString(new List([ + var payloads = new List(new Payload[] + { mapPayload, - ..TextArrowPayloads, + // arrow goes here new TextPayload(nameString), RawPayload.LinkTerminator, - ])); + }); + payloads.InsertRange(1, TextArrowPayloads); + + return new SeString(payloads); } /// @@ -270,7 +301,7 @@ public class SeString public static SeString CreateMapLink( uint territoryId, uint mapId, float xCoord, float yCoord, float fudgeFactor = 0.05f) => CreateMapLinkWithInstance(territoryId, mapId, null, xCoord, yCoord, fudgeFactor); - + /// /// Creates an SeString representing an entire Payload chain that can be used to link a map position in the chat log. /// @@ -286,12 +317,16 @@ public class SeString var mapPayload = new MapLinkPayload(territoryId, mapId, xCoord, yCoord, fudgeFactor); var nameString = GetMapLinkNameString(mapPayload.PlaceName, instance, mapPayload.CoordinateString); - return new SeString(new List([ + var payloads = new List(new Payload[] + { mapPayload, - ..TextArrowPayloads, + // arrow goes here new TextPayload(nameString), RawPayload.LinkTerminator, - ])); + }); + payloads.InsertRange(1, TextArrowPayloads); + + return new SeString(payloads); } /// @@ -305,7 +340,7 @@ public class SeString /// An SeString containing all of the payloads necessary to display a map link in the chat log. public static SeString? CreateMapLink(string placeName, float xCoord, float yCoord, float fudgeFactor = 0.05f) => CreateMapLinkWithInstance(placeName, null, xCoord, yCoord, fudgeFactor); - + /// /// Creates an SeString representing an entire Payload chain that can be used to link a map position in the chat log, matching a specified zone name. /// Returns null if no corresponding PlaceName was found. @@ -347,15 +382,21 @@ public class SeString /// An SeString containing all the payloads necessary to display a party finder link in the chat log. public static SeString CreatePartyFinderLink(uint listingId, string recruiterName, bool isCrossWorld = false) { - var clientState = Service.Get(); - var seStringEvaluator = Service.Get(); - - return new SeString(new List([ + var payloads = new List() + { new PartyFinderPayload(listingId, isCrossWorld ? PartyFinderPayload.PartyFinderLinkType.NotSpecified : PartyFinderPayload.PartyFinderLinkType.LimitedToHomeWorld), - ..TextArrowPayloads, - ..SeString.Parse(seStringEvaluator.EvaluateFromAddon(2265, [recruiterName, isCrossWorld ? 0 : 1], clientState.ClientLanguage)).Payloads, - RawPayload.LinkTerminator - ])); + // -> + new TextPayload($"Looking for Party ({recruiterName})" + (isCrossWorld ? " " : string.Empty)), + }; + + payloads.InsertRange(1, TextArrowPayloads); + + if (isCrossWorld) + payloads.Add(new IconPayload(BitmapFontIcon.CrossWorld)); + + payloads.Add(RawPayload.LinkTerminator); + + return new SeString(payloads); } /// @@ -365,12 +406,16 @@ public class SeString /// An SeString containing all the payloads necessary to display a link to the party finder search conditions. public static SeString CreatePartyFinderSearchConditionsLink(string message) { - return new SeString(new List([ + var payloads = new List() + { new PartyFinderPayload(), - ..TextArrowPayloads, + // -> new TextPayload(message), - RawPayload.LinkTerminator - ])); + }; + payloads.InsertRange(1, TextArrowPayloads); + payloads.Add(RawPayload.LinkTerminator); + + return new SeString(payloads); } /// @@ -466,7 +511,7 @@ public class SeString { messageBytes.AddRange(p.Encode()); } - + // Add Null Terminator messageBytes.Add(0); @@ -481,7 +526,7 @@ public class SeString { return this.TextValue; } - + private static string GetMapLinkNameString(string placeName, int? instance, string coordinateString) { var instanceString = string.Empty; @@ -489,7 +534,7 @@ public class SeString { instanceString = (SeIconChar.Instance1 + instance.Value - 1).ToIconString(); } - + return $"{placeName}{instanceString} {coordinateString}"; } } diff --git a/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs b/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs index ae673e516..e78ac2de8 100644 --- a/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs +++ b/Dalamud/Game/Text/SeStringHandling/SeStringBuilder.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using Dalamud.Game.Text.SeStringHandling.Payloads; -using Dalamud.Utility; namespace Dalamud.Game.Text.SeStringHandling; @@ -114,7 +113,7 @@ public class SeStringBuilder /// Add an item link to the builder. /// /// The item ID. - /// Whether the item is high quality. + /// Whether or not the item is high quality. /// Override for the item's name. /// The current builder. public SeStringBuilder AddItemLink(uint itemId, bool isHq, string? itemNameOverride = null) => @@ -127,7 +126,7 @@ public class SeStringBuilder /// Kind of item to encode. /// Override for the item's name. /// The current builder. - public SeStringBuilder AddItemLink(uint itemId, ItemKind kind = ItemKind.Normal, string? itemNameOverride = null) => + public SeStringBuilder AddItemLink(uint itemId, ItemPayload.ItemKind kind = ItemPayload.ItemKind.Normal, string? itemNameOverride = null) => this.Append(SeString.CreateItemLink(itemId, kind, itemNameOverride)); /// diff --git a/Dalamud/Game/Text/XivChatEntry.cs b/Dalamud/Game/Text/XivChatEntry.cs index d4ec751f3..7932ead72 100644 --- a/Dalamud/Game/Text/XivChatEntry.cs +++ b/Dalamud/Game/Text/XivChatEntry.cs @@ -36,12 +36,12 @@ public sealed class XivChatEntry } /// - /// Gets or sets the name payloads. + /// Gets or Sets the name payloads /// public byte[] NameBytes { get; set; } = []; /// - /// Gets or sets the message payloads. + /// Gets or Sets the message payloads. /// public byte[] MessageBytes { get; set; } = []; diff --git a/Dalamud/Game/Text/XivChatTypeExtensions.cs b/Dalamud/Game/Text/XivChatTypeExtensions.cs index 457d3b145..3bdeb1525 100644 --- a/Dalamud/Game/Text/XivChatTypeExtensions.cs +++ b/Dalamud/Game/Text/XivChatTypeExtensions.cs @@ -12,7 +12,7 @@ public static class XivChatTypeExtensions /// /// The chat type. /// The info attribute. - public static XivChatTypeInfoAttribute? GetDetails(this XivChatType chatType) + public static XivChatTypeInfoAttribute GetDetails(this XivChatType chatType) { return chatType.GetAttribute(); } diff --git a/Dalamud/Game/UnlockState/ItemActionAction.cs b/Dalamud/Game/UnlockState/ItemActionAction.cs deleted file mode 100644 index 0e86fcb67..000000000 --- a/Dalamud/Game/UnlockState/ItemActionAction.cs +++ /dev/null @@ -1,95 +0,0 @@ -using Lumina.Excel.Sheets; - -namespace Dalamud.Game.UnlockState; - -/// -/// Enum for . -/// -internal enum ItemActionAction : ushort -{ - /// - /// No item action. - /// - None = 0, - - /// - /// Unlocks a companion (minion). - /// - Companion = 853, - - /// - /// Unlocks a chocobo companion barding. - /// - BuddyEquip = 1013, - - /// - /// Unlocks a mount. - /// - Mount = 1322, - - /// - /// Unlocks recipes from a crafting recipe book. - /// - SecretRecipeBook = 2136, - - /// - /// Unlocks various types of content (e.g. Riding Maps, Blue Mage Totems, Emotes, Hairstyles). - /// - UnlockLink = 2633, - - /// - /// Unlocks a Triple Triad Card. - /// - TripleTriadCard = 3357, - - /// - /// Unlocks gathering nodes of a Folklore Tome. - /// - FolkloreTome = 4107, - - /// - /// Unlocks an Orchestrion Roll. - /// - OrchestrionRoll = 25183, - - /// - /// Unlocks portrait designs. - /// - FramersKit = 29459, - - /// - /// Unlocks Bozjan Field Notes. - /// - /// These are server-side but are cached client-side. - FieldNotes = 19743, - - /// - /// Unlocks an Ornament (fashion accessory). - /// - Ornament = 20086, - - /// - /// Unlocks Glasses. - /// - Glasses = 37312, - - /// - /// Company Seal Vouchers, which convert the item into Company Seals when used. - /// - CompanySealVouchers = 41120, - - /// - /// Unlocks Occult Records in Occult Crescent. - /// - OccultRecords = 43141, - - /// - /// Unlocks Phantom Jobs in Occult Crescent. - /// - SoulShards = 43142, - - /// - /// Star Contributor Certificate, which grants the Star Contributor status in Cosmic Exploration. - /// - StarContributorCertificate = 45189, -} diff --git a/Dalamud/Game/UnlockState/RecipeData.cs b/Dalamud/Game/UnlockState/RecipeData.cs deleted file mode 100644 index 7fa0d4b8f..000000000 --- a/Dalamud/Game/UnlockState/RecipeData.cs +++ /dev/null @@ -1,239 +0,0 @@ -using System.Linq; - -using CommunityToolkit.HighPerformance; - -using Dalamud.Data; -using Dalamud.Game.Gui; - -using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using FFXIVClientStructs.Interop; - -using Lumina.Excel.Sheets; - -namespace Dalamud.Game.UnlockState; - -/// -/// Represents recipe-related data for all crafting classes. -/// -[ServiceManager.EarlyLoadedService] -internal unsafe class RecipeData : IInternalDisposableService -{ - [ServiceManager.ServiceDependency] - private readonly DataManager dataManager = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly ClientState.ClientState clientState = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly GameGui gameGui = Service.Get(); - - private readonly ushort[] craftTypeLevels; - private readonly byte[] unlockedNoteBookDivisionsCount; - private readonly byte[] unlockedSecretNoteBookDivisionsCount; - private readonly ushort[,] noteBookDivisionIds; - private byte[]? cachedUnlockedSecretRecipeBooks; - private byte[]? cachedUnlockLinks; - private byte[]? cachedCompletedQuests; - - /// - /// Initializes a new instance of the class. - /// - [ServiceManager.ServiceConstructor] - public RecipeData() - { - var numCraftTypes = this.dataManager.GetExcelSheet().Count(); - var numSecretNotBookDivisions = this.dataManager.GetExcelSheet().Count(row => row.RowId is >= 1000 and < 2000); - - this.unlockedNoteBookDivisionsCount = new byte[numCraftTypes]; - this.unlockedSecretNoteBookDivisionsCount = new byte[numCraftTypes]; - this.noteBookDivisionIds = new ushort[numCraftTypes, numSecretNotBookDivisions]; - - this.craftTypeLevels = new ushort[numCraftTypes]; - - this.clientState.Login += this.Update; - this.clientState.Logout += this.OnLogout; - this.clientState.LevelChanged += this.OnlevelChanged; - this.gameGui.AgentUpdate += this.OnAgentUpdate; - } - - /// - void IInternalDisposableService.DisposeService() - { - this.clientState.Login -= this.Update; - this.clientState.Logout -= this.OnLogout; - this.clientState.LevelChanged -= this.OnlevelChanged; - this.gameGui.AgentUpdate -= this.OnAgentUpdate; - } - - /// - /// Determines whether the specified Recipe is unlocked. - /// - /// The Recipe row to check. - /// if unlocked; otherwise, . - public bool IsRecipeUnlocked(Recipe row) - { - // E8 ?? ?? ?? ?? 48 63 76 (2025.09.04) - var division = row.RecipeNotebookList.RowId != 0 && row.RecipeNotebookList.IsValid - ? (row.RecipeNotebookList.RowId - 1000) / 8 + 1000 - : ((uint)row.RecipeLevelTable.Value.ClassJobLevel - 1) / 5; - - // E8 ?? ?? ?? ?? 33 ED 84 C0 75 (2025.09.04) - foreach (var craftTypeRow in this.dataManager.GetExcelSheet()) - { - var craftType = (byte)craftTypeRow.RowId; - - if (division < this.unlockedNoteBookDivisionsCount[craftType]) - return true; - - if (this.unlockedNoteBookDivisionsCount[craftType] == 0) - continue; - - if (division is 5000 or 5001) - return true; - - if (division < 1000) - continue; - - if (this.unlockedSecretNoteBookDivisionsCount[craftType] == 0) - continue; - - if (this.noteBookDivisionIds.GetRowSpan(craftType).Contains((ushort)division)) - return true; - } - - return false; - } - - private void OnLogout(int type, int code) - { - this.cachedUnlockedSecretRecipeBooks = null; - this.cachedUnlockLinks = null; - this.cachedCompletedQuests = null; - } - - private void OnlevelChanged(uint classJobId, uint level) - { - if (this.dataManager.GetExcelSheet().TryGetRow(classJobId, out var classJobRow) && - classJobRow.ClassJobCategory.RowId == 33) // Crafter - { - this.Update(); - } - } - - private void OnAgentUpdate(AgentUpdateFlag agentUpdateFlag) - { - if (agentUpdateFlag.HasFlag(AgentUpdateFlag.UnlocksUpdate)) - this.Update(); - } - - private void Update() - { - // based on Client::Game::UI::RecipeNote.InitializeStructs - - if (!this.clientState.IsLoggedIn || !this.NeedsUpdate()) - return; - - Array.Clear(this.unlockedNoteBookDivisionsCount, 0, this.unlockedNoteBookDivisionsCount.Length); - Array.Clear(this.unlockedSecretNoteBookDivisionsCount, 0, this.unlockedSecretNoteBookDivisionsCount.Length); - Array.Clear(this.noteBookDivisionIds, 0, this.noteBookDivisionIds.Length); - - foreach (var craftTypeRow in this.dataManager.GetExcelSheet()) - { - var craftType = (byte)craftTypeRow.RowId; - var craftTypeLevel = RecipeNote.Instance()->GetCraftTypeLevel(craftType); - if (craftTypeLevel == 0) - continue; - - var noteBookDivisionIndex = -1; - - foreach (var noteBookDivisionRow in this.dataManager.GetExcelSheet()) - { - if (noteBookDivisionRow.RowId < 1000) - { - if (craftTypeLevel >= noteBookDivisionRow.CraftOpeningLevel) - this.unlockedNoteBookDivisionsCount[craftType]++; - } - else if (noteBookDivisionRow.RowId < 2000) - { - noteBookDivisionIndex++; - - if (!noteBookDivisionRow.AllowedCraftTypes[craftType]) - continue; - - if (noteBookDivisionRow.GatheringOpeningLevel != byte.MaxValue) - continue; - - if (noteBookDivisionRow.RequiresSecretRecipeBookGroupUnlock) - { - var secretRecipeBookUnlocked = false; - - foreach (var secretRecipeBookGroup in noteBookDivisionRow.SecretRecipeBookGroups) - { - if (secretRecipeBookGroup.RowId == 0 || !secretRecipeBookGroup.IsValid) - continue; - - var bitIndex = secretRecipeBookGroup.Value.SecretRecipeBook[craftType].RowId; - if (PlayerState.Instance()->UnlockedSecretRecipeBooksBitArray.Get((int)bitIndex)) - { - secretRecipeBookUnlocked = true; - break; - } - } - - if (noteBookDivisionRow.CraftOpeningLevel > craftTypeLevel && !secretRecipeBookUnlocked) - continue; - } - else if (craftTypeLevel < noteBookDivisionRow.CraftOpeningLevel) - { - continue; - } - else if (noteBookDivisionRow.QuestUnlock.RowId != 0 && !UIState.Instance()->IsUnlockLinkUnlockedOrQuestCompleted(noteBookDivisionRow.QuestUnlock.RowId)) - { - continue; - } - - this.unlockedSecretNoteBookDivisionsCount[craftType]++; - this.noteBookDivisionIds[craftType, noteBookDivisionIndex] = (ushort)noteBookDivisionRow.RowId; - } - } - } - } - - private bool NeedsUpdate() - { - var changed = false; - - foreach (var craftTypeRow in this.dataManager.GetExcelSheet()) - { - var craftType = (byte)craftTypeRow.RowId; - var craftTypeLevel = RecipeNote.Instance()->GetCraftTypeLevel(craftType); - - if (this.craftTypeLevels[craftType] != craftTypeLevel) - { - this.craftTypeLevels[craftType] = craftTypeLevel; - changed |= true; - } - } - - if (this.cachedUnlockedSecretRecipeBooks == null || !PlayerState.Instance()->UnlockedSecretRecipeBooks.SequenceEqual(this.cachedUnlockedSecretRecipeBooks)) - { - this.cachedUnlockedSecretRecipeBooks = PlayerState.Instance()->UnlockedSecretRecipeBooks.ToArray(); - changed |= true; - } - - if (this.cachedUnlockLinks == null || !UIState.Instance()->UnlockLinks.SequenceEqual(this.cachedUnlockLinks)) - { - this.cachedUnlockLinks = UIState.Instance()->UnlockLinks.ToArray(); - changed |= true; - } - - if (this.cachedCompletedQuests == null || !QuestManager.Instance()->CompletedQuests.SequenceEqual(this.cachedCompletedQuests)) - { - this.cachedCompletedQuests = QuestManager.Instance()->CompletedQuests.ToArray(); - changed |= true; - } - - return changed; - } -} diff --git a/Dalamud/Game/UnlockState/UnlockState.cs b/Dalamud/Game/UnlockState/UnlockState.cs deleted file mode 100644 index 4b83e114a..000000000 --- a/Dalamud/Game/UnlockState/UnlockState.cs +++ /dev/null @@ -1,1004 +0,0 @@ -using System.Collections.Concurrent; -using System.Collections.Generic; - -using Dalamud.Data; -using Dalamud.Game.Gui; -using Dalamud.Hooking; -using Dalamud.IoC; -using Dalamud.IoC.Internal; -using Dalamud.Logging.Internal; -using Dalamud.Plugin.Services; - -using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Game.InstanceContent; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using FFXIVClientStructs.FFXIV.Component.Exd; - -using Lumina.Excel; -using Lumina.Excel.Sheets; - -using AchievementSheet = Lumina.Excel.Sheets.Achievement; -using ActionSheet = Lumina.Excel.Sheets.Action; -using CSAchievement = FFXIVClientStructs.FFXIV.Client.Game.UI.Achievement; -using InstanceContentSheet = Lumina.Excel.Sheets.InstanceContent; -using PublicContentSheet = Lumina.Excel.Sheets.PublicContent; - -namespace Dalamud.Game.UnlockState; - -/// -/// This class provides unlock state of various content in the game. -/// -[ServiceManager.EarlyLoadedService] -internal unsafe class UnlockState : IInternalDisposableService, IUnlockState -{ - private static readonly ModuleLog Log = new(nameof(UnlockState)); - - [ServiceManager.ServiceDependency] - private readonly DataManager dataManager = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly ClientState.ClientState clientState = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly GameGui gameGui = Service.Get(); - - [ServiceManager.ServiceDependency] - private readonly RecipeData recipeData = Service.Get(); - - private readonly ConcurrentDictionary> cachedUnlockedRowIds = []; - private readonly Hook setAchievementCompletedHook; - private readonly Hook setTitleUnlockedHook; - - [ServiceManager.ServiceConstructor] - private UnlockState() - { - this.clientState.Login += this.OnLogin; - this.clientState.Logout += this.OnLogout; - this.gameGui.AgentUpdate += this.OnAgentUpdate; - - this.setAchievementCompletedHook = Hook.FromAddress( - (nint)CSAchievement.MemberFunctionPointers.SetAchievementCompleted, - this.SetAchievementCompletedDetour); - - this.setTitleUnlockedHook = Hook.FromAddress( - (nint)TitleList.MemberFunctionPointers.SetTitleUnlocked, - this.SetTitleUnlockedDetour); - - this.setAchievementCompletedHook.Enable(); - this.setTitleUnlockedHook.Enable(); - } - - /// - public event IUnlockState.UnlockDelegate Unlock; - - /// - public bool IsAchievementListLoaded => CSAchievement.Instance()->IsLoaded(); - - /// - public bool IsTitleListLoaded => UIState.Instance()->TitleList.DataReceived; - - private bool IsLoaded => PlayerState.Instance()->IsLoaded; - - /// - void IInternalDisposableService.DisposeService() - { - this.clientState.Login -= this.OnLogin; - this.clientState.Logout -= this.OnLogout; - this.gameGui.AgentUpdate -= this.OnAgentUpdate; - - this.setAchievementCompletedHook.Dispose(); - } - - /// - public bool IsAchievementComplete(AchievementSheet row) - { - // Only check for login state here as individual Achievements - // may be flagged as complete when you unlock them, regardless - // of whether the full Achievements list was loaded or not. - - if (!this.IsLoaded) - return false; - - return CSAchievement.Instance()->IsComplete((int)row.RowId); - } - - /// - public bool IsActionUnlocked(ActionSheet row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink.RowId); - } - - /// - public bool IsAdventureComplete(Adventure row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsAdventureComplete(row.RowId - 0x210000); - } - - /// - public bool IsAetherCurrentUnlocked(AetherCurrent row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsAetherCurrentUnlocked(row.RowId); - } - - /// - public bool IsAetherCurrentCompFlgSetUnlocked(AetherCurrentCompFlgSet row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsAetherCurrentZoneComplete(row.RowId); - } - - /// - public bool IsAozActionUnlocked(AozAction row) - { - if (!this.IsLoaded) - return false; - - if (row.RowId == 0 || !row.Action.IsValid) - return false; - - return UIState.Instance()->IsUnlockLinkUnlockedOrQuestCompleted(row.Action.Value.UnlockLink.RowId); - } - - /// - public bool IsBannerBgUnlocked(BannerBg row) - { - return row.UnlockCondition.IsValid && this.IsBannerConditionUnlocked(row.UnlockCondition.Value); - } - - /// - public bool IsBannerConditionUnlocked(BannerCondition row) - { - if (row.RowId == 0) - return false; - - if (!this.IsLoaded) - return false; - - var rowPtr = ExdModule.GetBannerConditionByIndex(row.RowId); - if (rowPtr == null) - return false; - - return ExdModule.GetBannerConditionUnlockState(rowPtr) == 0; - } - - /// - public bool IsBannerDecorationUnlocked(BannerDecoration row) - { - return row.UnlockCondition.IsValid && this.IsBannerConditionUnlocked(row.UnlockCondition.Value); - } - - /// - public bool IsBannerFacialUnlocked(BannerFacial row) - { - return row.UnlockCondition.IsValid && this.IsBannerConditionUnlocked(row.UnlockCondition.Value); - } - - /// - public bool IsBannerFrameUnlocked(BannerFrame row) - { - return row.UnlockCondition.IsValid && this.IsBannerConditionUnlocked(row.UnlockCondition.Value); - } - - /// - public bool IsBannerTimelineUnlocked(BannerTimeline row) - { - return row.UnlockCondition.IsValid && this.IsBannerConditionUnlocked(row.UnlockCondition.Value); - } - - /// - public bool IsBuddyActionUnlocked(BuddyAction row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsBuddyEquipUnlocked(BuddyEquip row) - { - if (!this.IsLoaded) - return false; - - return UIState.Instance()->Buddy.CompanionInfo.IsBuddyEquipUnlocked(row.RowId); - } - - /// - public bool IsCharaMakeCustomizeUnlocked(CharaMakeCustomize row) - { - return row.IsPurchasable && this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsChocoboTaxiStandUnlocked(ChocoboTaxiStand row) - { - if (!this.IsLoaded) - return false; - - return UIState.Instance()->IsChocoboTaxiStandUnlocked(row.RowId); - } - - /// - public bool IsCompanionUnlocked(Companion row) - { - if (!this.IsLoaded) - return false; - - return UIState.Instance()->IsCompanionUnlocked(row.RowId); - } - - /// - public bool IsCraftActionUnlocked(CraftAction row) - { - return this.IsUnlockLinkUnlocked(row.QuestRequirement.RowId); - } - - /// - public bool IsCSBonusContentTypeUnlocked(CSBonusContentType row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsEmoteUnlocked(Emote row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsEmjVoiceNpcUnlocked(EmjVoiceNpc row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsEmjCostumeUnlocked(EmjCostume row) - { - return this.dataManager.GetExcelSheet().TryGetRow(row.RowId, out var emjVoiceNpcRow) - && this.IsEmjVoiceNpcUnlocked(emjVoiceNpcRow) - && QuestManager.IsQuestComplete(row.UnlockQuest.RowId); - } - - /// - public bool IsGeneralActionUnlocked(GeneralAction row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsGlassesUnlocked(Glasses row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsGlassesUnlocked((ushort)row.RowId); - } - - /// - public bool IsHowToUnlocked(HowTo row) - { - if (!this.IsLoaded) - return false; - - return UIState.Instance()->IsHowToUnlocked(row.RowId); - } - - /// - public bool IsInstanceContentUnlocked(InstanceContentSheet row) - { - if (!this.IsLoaded) - return false; - - return UIState.IsInstanceContentUnlocked(row.RowId); - } - - /// - public unsafe bool IsItemUnlocked(Item row) - { - if (row.ItemAction.RowId == 0) - return false; - - if (!this.IsLoaded) - return false; - - // To avoid the ExdModule.GetItemRowById call, which can return null if the excel page - // is not loaded, we're going to imitate the IsItemActionUnlocked call first: - switch ((ItemActionAction)row.ItemAction.Value.Action.RowId) - { - case ItemActionAction.Companion: - return UIState.Instance()->IsCompanionUnlocked(row.ItemAction.Value.Data[0]); - - case ItemActionAction.BuddyEquip: - return UIState.Instance()->Buddy.CompanionInfo.IsBuddyEquipUnlocked(row.ItemAction.Value.Data[0]); - - case ItemActionAction.Mount: - return PlayerState.Instance()->IsMountUnlocked(row.ItemAction.Value.Data[0]); - - case ItemActionAction.SecretRecipeBook: - return PlayerState.Instance()->IsSecretRecipeBookUnlocked(row.ItemAction.Value.Data[0]); - - case ItemActionAction.UnlockLink: - case ItemActionAction.OccultRecords: - return UIState.Instance()->IsUnlockLinkUnlocked(row.ItemAction.Value.Data[0]); - - case ItemActionAction.TripleTriadCard when row.AdditionalData.Is(): - return UIState.Instance()->IsTripleTriadCardUnlocked((ushort)row.AdditionalData.RowId); - - case ItemActionAction.FolkloreTome: - return PlayerState.Instance()->IsFolkloreBookUnlocked(row.ItemAction.Value.Data[0]); - - case ItemActionAction.OrchestrionRoll when row.AdditionalData.Is(): - return PlayerState.Instance()->IsOrchestrionRollUnlocked(row.AdditionalData.RowId); - - case ItemActionAction.FramersKit: - return PlayerState.Instance()->IsFramersKitUnlocked(row.AdditionalData.RowId); - - case ItemActionAction.Ornament: - return PlayerState.Instance()->IsOrnamentUnlocked(row.ItemAction.Value.Data[0]); - - case ItemActionAction.Glasses: - return PlayerState.Instance()->IsGlassesUnlocked((ushort)row.AdditionalData.RowId); - - case ItemActionAction.SoulShards when PublicContentOccultCrescent.GetState() is var occultCrescentState && occultCrescentState != null: - var supportJobId = (byte)row.ItemAction.Value.Data[0]; - return supportJobId < occultCrescentState->SupportJobLevels.Length && occultCrescentState->SupportJobLevels[supportJobId] != 0; - - case ItemActionAction.CompanySealVouchers: - return false; - } - - var nativeRow = ExdModule.GetItemRowById(row.RowId); - return nativeRow != null && UIState.Instance()->IsItemActionUnlocked(nativeRow) == 1; - } - - /// - public bool IsLeveCompleted(Leve row) - { - if (!this.IsLoaded) - return false; - - return QuestManager.Instance()->IsLevequestComplete((ushort)row.RowId); - } - - /// - public bool IsMJILandmarkUnlocked(MJILandmark row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsMKDLoreUnlocked(MKDLore row) - { - return this.IsUnlockLinkUnlocked(row.UnlockLink); - } - - /// - public bool IsMcGuffinUnlocked(McGuffin row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsMcGuffinUnlocked(row.RowId); - } - - /// - public bool IsMountUnlocked(Mount row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsMountUnlocked(row.RowId); - } - - /// - public bool IsNotebookDivisionUnlocked(NotebookDivision row) - { - return this.IsUnlockLinkUnlocked(row.QuestUnlock.RowId); - } - - /// - public bool IsOrchestrionUnlocked(Orchestrion row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsOrchestrionRollUnlocked(row.RowId); - } - - /// - public bool IsOrnamentUnlocked(Ornament row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsOrnamentUnlocked(row.RowId); - } - - /// - public bool IsPerformUnlocked(Perform row) - { - return this.IsUnlockLinkUnlocked((uint)row.UnlockLink); - } - - /// - public bool IsPublicContentUnlocked(PublicContentSheet row) - { - if (!this.IsLoaded) - return false; - - return UIState.IsPublicContentUnlocked(row.RowId); - } - - /// - public bool IsQuestCompleted(Quest row) - { - if (!this.IsLoaded) - return false; - - return QuestManager.IsQuestComplete(row.RowId); - } - - /// - public bool IsRecipeUnlocked(Recipe row) - { - if (!this.IsLoaded) - return false; - - return this.recipeData.IsRecipeUnlocked(row); - } - - /// - public bool IsSecretRecipeBookUnlocked(SecretRecipeBook row) - { - if (!this.IsLoaded) - return false; - - return PlayerState.Instance()->IsSecretRecipeBookUnlocked(row.RowId); - } - - /// - public bool IsTitleUnlocked(Title row) - { - // Only check for login state here as individual Titles - // may be flagged as complete when you unlock them, regardless - // of whether the full Titles list was loaded or not. - - if (!this.IsLoaded) - return false; - - return UIState.Instance()->TitleList.IsTitleUnlocked((ushort)row.RowId); - } - - /// - public bool IsTraitUnlocked(Trait row) - { - return this.IsUnlockLinkUnlocked(row.Quest.RowId); - } - - /// - public bool IsTripleTriadCardUnlocked(TripleTriadCard row) - { - if (!this.IsLoaded) - return false; - - return UIState.Instance()->IsTripleTriadCardUnlocked((ushort)row.RowId); - } - - /// - public bool IsItemUnlockable(Item row) - { - if (row.ItemAction.RowId == 0) - return false; - - return (ItemActionAction)row.ItemAction.Value.Action.RowId - is ItemActionAction.Companion - or ItemActionAction.BuddyEquip - or ItemActionAction.Mount - or ItemActionAction.SecretRecipeBook - or ItemActionAction.UnlockLink - or ItemActionAction.TripleTriadCard - or ItemActionAction.FolkloreTome - or ItemActionAction.OrchestrionRoll - or ItemActionAction.FramersKit - or ItemActionAction.Ornament - or ItemActionAction.Glasses - or ItemActionAction.OccultRecords - or ItemActionAction.SoulShards; - } - - /// - public bool IsRowRefUnlocked(RowRef rowRef) where T : struct, IExcelRow - { - return this.IsRowRefUnlocked((RowRef)rowRef); - } - - /// - public bool IsRowRefUnlocked(RowRef rowRef) - { - if (!this.IsLoaded || rowRef.IsUntyped) - return false; - - if (rowRef.TryGetValue(out var achievementRow)) - return this.IsAchievementComplete(achievementRow); - - if (rowRef.TryGetValue(out var actionRow)) - return this.IsActionUnlocked(actionRow); - - if (rowRef.TryGetValue(out var adventureRow)) - return this.IsAdventureComplete(adventureRow); - - if (rowRef.TryGetValue(out var aetherCurrentRow)) - return this.IsAetherCurrentUnlocked(aetherCurrentRow); - - if (rowRef.TryGetValue(out var aetherCurrentCompFlgSetRow)) - return this.IsAetherCurrentCompFlgSetUnlocked(aetherCurrentCompFlgSetRow); - - if (rowRef.TryGetValue(out var aozActionRow)) - return this.IsAozActionUnlocked(aozActionRow); - - if (rowRef.TryGetValue(out var bannerBgRow)) - return this.IsBannerBgUnlocked(bannerBgRow); - - if (rowRef.TryGetValue(out var bannerConditionRow)) - return this.IsBannerConditionUnlocked(bannerConditionRow); - - if (rowRef.TryGetValue(out var bannerDecorationRow)) - return this.IsBannerDecorationUnlocked(bannerDecorationRow); - - if (rowRef.TryGetValue(out var bannerFacialRow)) - return this.IsBannerFacialUnlocked(bannerFacialRow); - - if (rowRef.TryGetValue(out var bannerFrameRow)) - return this.IsBannerFrameUnlocked(bannerFrameRow); - - if (rowRef.TryGetValue(out var bannerTimelineRow)) - return this.IsBannerTimelineUnlocked(bannerTimelineRow); - - if (rowRef.TryGetValue(out var buddyActionRow)) - return this.IsBuddyActionUnlocked(buddyActionRow); - - if (rowRef.TryGetValue(out var buddyEquipRow)) - return this.IsBuddyEquipUnlocked(buddyEquipRow); - - if (rowRef.TryGetValue(out var csBonusContentTypeRow)) - return this.IsCSBonusContentTypeUnlocked(csBonusContentTypeRow); - - if (rowRef.TryGetValue(out var charaMakeCustomizeRow)) - return this.IsCharaMakeCustomizeUnlocked(charaMakeCustomizeRow); - - if (rowRef.TryGetValue(out var chocoboTaxiStandRow)) - return this.IsChocoboTaxiStandUnlocked(chocoboTaxiStandRow); - - if (rowRef.TryGetValue(out var companionRow)) - return this.IsCompanionUnlocked(companionRow); - - if (rowRef.TryGetValue(out var craftActionRow)) - return this.IsCraftActionUnlocked(craftActionRow); - - if (rowRef.TryGetValue(out var emoteRow)) - return this.IsEmoteUnlocked(emoteRow); - - if (rowRef.TryGetValue(out var generalActionRow)) - return this.IsGeneralActionUnlocked(generalActionRow); - - if (rowRef.TryGetValue(out var glassesRow)) - return this.IsGlassesUnlocked(glassesRow); - - if (rowRef.TryGetValue(out var howToRow)) - return this.IsHowToUnlocked(howToRow); - - if (rowRef.TryGetValue(out var instanceContentRow)) - return this.IsInstanceContentUnlocked(instanceContentRow); - - if (rowRef.TryGetValue(out var itemRow)) - return this.IsItemUnlocked(itemRow); - - if (rowRef.TryGetValue(out var leveRow)) - return this.IsLeveCompleted(leveRow); - - if (rowRef.TryGetValue(out var mjiLandmarkRow)) - return this.IsMJILandmarkUnlocked(mjiLandmarkRow); - - if (rowRef.TryGetValue(out var mkdLoreRow)) - return this.IsMKDLoreUnlocked(mkdLoreRow); - - if (rowRef.TryGetValue(out var mcGuffinRow)) - return this.IsMcGuffinUnlocked(mcGuffinRow); - - if (rowRef.TryGetValue(out var mountRow)) - return this.IsMountUnlocked(mountRow); - - if (rowRef.TryGetValue(out var notebookDivisionRow)) - return this.IsNotebookDivisionUnlocked(notebookDivisionRow); - - if (rowRef.TryGetValue(out var orchestrionRow)) - return this.IsOrchestrionUnlocked(orchestrionRow); - - if (rowRef.TryGetValue(out var ornamentRow)) - return this.IsOrnamentUnlocked(ornamentRow); - - if (rowRef.TryGetValue(out var performRow)) - return this.IsPerformUnlocked(performRow); - - if (rowRef.TryGetValue(out var publicContentRow)) - return this.IsPublicContentUnlocked(publicContentRow); - - if (rowRef.TryGetValue(out var questRow)) - return this.IsQuestCompleted(questRow); - - if (rowRef.TryGetValue(out var recipeRow)) - return this.IsRecipeUnlocked(recipeRow); - - if (rowRef.TryGetValue(out var secretRecipeBookRow)) - return this.IsSecretRecipeBookUnlocked(secretRecipeBookRow); - - if (rowRef.TryGetValue(out var titleRow)) - return this.IsTitleUnlocked(titleRow); - - if (rowRef.TryGetValue<Trait>(out var traitRow)) - return this.IsTraitUnlocked(traitRow); - - if (rowRef.TryGetValue<TripleTriadCard>(out var tripleTriadCardRow)) - return this.IsTripleTriadCardUnlocked(tripleTriadCardRow); - - return false; - } - - /// <inheritdoc/> - public bool IsUnlockLinkUnlocked(ushort unlockLink) - { - if (!this.IsLoaded) - return false; - - if (unlockLink == 0) - return false; - - return UIState.Instance()->IsUnlockLinkUnlocked(unlockLink); - } - - /// <inheritdoc/> - public bool IsUnlockLinkUnlocked(uint unlockLink) - { - if (!this.IsLoaded) - return false; - - if (unlockLink == 0) - return false; - - return UIState.Instance()->IsUnlockLinkUnlockedOrQuestCompleted(unlockLink); - } - - private void OnLogin() - { - this.Update(); - } - - private void OnLogout(int type, int code) - { - this.cachedUnlockedRowIds.Clear(); - } - - private void OnAgentUpdate(AgentUpdateFlag agentUpdateFlag) - { - if (agentUpdateFlag.HasFlag(AgentUpdateFlag.UnlocksUpdate)) - this.Update(); - } - - private void SetAchievementCompletedDetour(CSAchievement* thisPtr, uint id) - { - this.setAchievementCompletedHook.Original(thisPtr, id); - - if (!this.IsLoaded) - return; - - this.RaiseUnlockSafely((RowRef)LuminaUtils.CreateRef<AchievementSheet>(id)); - } - - private void SetTitleUnlockedDetour(TitleList* thisPtr, ushort id) - { - this.setTitleUnlockedHook.Original(thisPtr, id); - - if (!this.IsLoaded) - return; - - this.RaiseUnlockSafely((RowRef)LuminaUtils.CreateRef<Title>(id)); - } - - private void Update() - { - if (!this.IsLoaded) - return; - - Log.Verbose("Checking for new unlocks..."); - - // Do not check for Achievements or Titles here! - - this.UpdateUnlocksForSheet<ActionSheet>(); - this.UpdateUnlocksForSheet<Adventure>(); - this.UpdateUnlocksForSheet<AetherCurrent>(); - this.UpdateUnlocksForSheet<AetherCurrentCompFlgSet>(); - this.UpdateUnlocksForSheet<AozAction>(); - this.UpdateUnlocksForSheet<BannerBg>(); - this.UpdateUnlocksForSheet<BannerCondition>(); - this.UpdateUnlocksForSheet<BannerDecoration>(); - this.UpdateUnlocksForSheet<BannerFacial>(); - this.UpdateUnlocksForSheet<BannerFrame>(); - this.UpdateUnlocksForSheet<BannerTimeline>(); - this.UpdateUnlocksForSheet<BuddyAction>(); - this.UpdateUnlocksForSheet<BuddyEquip>(); - this.UpdateUnlocksForSheet<CSBonusContentType>(); - this.UpdateUnlocksForSheet<CharaMakeCustomize>(); - this.UpdateUnlocksForSheet<ChocoboTaxi>(); - this.UpdateUnlocksForSheet<Companion>(); - this.UpdateUnlocksForSheet<CraftAction>(); - this.UpdateUnlocksForSheet<EmjVoiceNpc>(); - this.UpdateUnlocksForSheet<Emote>(); - this.UpdateUnlocksForSheet<GeneralAction>(); - this.UpdateUnlocksForSheet<Glasses>(); - this.UpdateUnlocksForSheet<HowTo>(); - this.UpdateUnlocksForSheet<InstanceContentSheet>(); - this.UpdateUnlocksForSheet<Item>(); - this.UpdateUnlocksForSheet<MJILandmark>(); - this.UpdateUnlocksForSheet<MKDLore>(); - this.UpdateUnlocksForSheet<McGuffin>(); - this.UpdateUnlocksForSheet<Mount>(); - this.UpdateUnlocksForSheet<NotebookDivision>(); - this.UpdateUnlocksForSheet<Orchestrion>(); - this.UpdateUnlocksForSheet<Ornament>(); - this.UpdateUnlocksForSheet<Perform>(); - this.UpdateUnlocksForSheet<PublicContentSheet>(); - this.UpdateUnlocksForSheet<Quest>(); - this.UpdateUnlocksForSheet<Recipe>(); - this.UpdateUnlocksForSheet<SecretRecipeBook>(); - this.UpdateUnlocksForSheet<Trait>(); - this.UpdateUnlocksForSheet<TripleTriadCard>(); - - // Not implemented: - // - DescriptionPage: quite complex - // - QuestAcceptAdditionCondition: ignored - // - Leve: AgentUpdateFlag.UnlocksUpdate is not set and the completed status can be unset again! - - // For some other day: - // - FishingSpot - // - Spearfishing - // - MinerFolkloreTome - // - BotanistFolkloreTome - // - FishingFolkloreTome - // - VVD or is that unlocked via quest? - // - VVDNotebookContents? - // - FramersKit (is that just an Item?) - // - ... more? - - // Subrow sheets, which are incompatible with the current Unlock event, since RowRef doesn't carry the SubrowId: - // - EmjCostume - - // Probably not happening, because it requires fetching data from server: - // - Bozjan Field Notes - // - Support/Phantom Jobs, which require to be in Occult Crescent, because it checks the jobs level for != 0 - } - - private void UpdateUnlocksForSheet<T>() where T : struct, IExcelRow<T> - { - var unlockedRowIds = this.cachedUnlockedRowIds.GetOrAdd(typeof(T), _ => []); - - foreach (var row in this.dataManager.GetExcelSheet<T>()) - { - if (unlockedRowIds.Contains(row.RowId)) - continue; - - var rowRef = LuminaUtils.CreateRef<T>(row.RowId); - - if (!this.IsRowRefUnlocked(rowRef)) - continue; - - unlockedRowIds.Add(row.RowId); - - // Log.Verbose($"Unlock detected: {typeof(T).Name}#{row.RowId}"); - - this.RaiseUnlockSafely((RowRef)rowRef); - } - } - - private void RaiseUnlockSafely(RowRef rowRef) - { - foreach (var action in Delegate.EnumerateInvocationList(this.Unlock)) - { - try - { - action(rowRef); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } - } - } -} - -/// <summary> -/// Plugin-scoped version of a <see cref="UnlockState"/> service. -/// </summary> -[PluginInterface] -[ServiceManager.ScopedService] -#pragma warning disable SA1015 -[ResolveVia<IUnlockState>] -#pragma warning restore SA1015 -internal class UnlockStatePluginScoped : IInternalDisposableService, IUnlockState -{ - [ServiceManager.ServiceDependency] - private readonly UnlockState unlockStateService = Service<UnlockState>.Get(); - - /// <summary> - /// Initializes a new instance of the <see cref="UnlockStatePluginScoped"/> class. - /// </summary> - internal UnlockStatePluginScoped() - { - this.unlockStateService.Unlock += this.UnlockForward; - } - - /// <inheritdoc/> - public event IUnlockState.UnlockDelegate? Unlock; - - /// <inheritdoc/> - public bool IsAchievementListLoaded => this.unlockStateService.IsAchievementListLoaded; - - /// <inheritdoc/> - public bool IsTitleListLoaded => this.unlockStateService.IsTitleListLoaded; - - /// <inheritdoc/> - public bool IsAchievementComplete(AchievementSheet row) => this.unlockStateService.IsAchievementComplete(row); - - /// <inheritdoc/> - public bool IsActionUnlocked(ActionSheet row) => this.unlockStateService.IsActionUnlocked(row); - - /// <inheritdoc/> - public bool IsAdventureComplete(Adventure row) => this.unlockStateService.IsAdventureComplete(row); - - /// <inheritdoc/> - public bool IsAetherCurrentCompFlgSetUnlocked(AetherCurrentCompFlgSet row) => this.unlockStateService.IsAetherCurrentCompFlgSetUnlocked(row); - - /// <inheritdoc/> - public bool IsAetherCurrentUnlocked(AetherCurrent row) => this.unlockStateService.IsAetherCurrentUnlocked(row); - - /// <inheritdoc/> - public bool IsAozActionUnlocked(AozAction row) => this.unlockStateService.IsAozActionUnlocked(row); - - /// <inheritdoc/> - public bool IsBannerBgUnlocked(BannerBg row) => this.unlockStateService.IsBannerBgUnlocked(row); - - /// <inheritdoc/> - public bool IsBannerConditionUnlocked(BannerCondition row) => this.unlockStateService.IsBannerConditionUnlocked(row); - - /// <inheritdoc/> - public bool IsBannerDecorationUnlocked(BannerDecoration row) => this.unlockStateService.IsBannerDecorationUnlocked(row); - - /// <inheritdoc/> - public bool IsBannerFacialUnlocked(BannerFacial row) => this.unlockStateService.IsBannerFacialUnlocked(row); - - /// <inheritdoc/> - public bool IsBannerFrameUnlocked(BannerFrame row) => this.unlockStateService.IsBannerFrameUnlocked(row); - - /// <inheritdoc/> - public bool IsBannerTimelineUnlocked(BannerTimeline row) => this.unlockStateService.IsBannerTimelineUnlocked(row); - - /// <inheritdoc/> - public bool IsBuddyActionUnlocked(BuddyAction row) => this.unlockStateService.IsBuddyActionUnlocked(row); - - /// <inheritdoc/> - public bool IsBuddyEquipUnlocked(BuddyEquip row) => this.unlockStateService.IsBuddyEquipUnlocked(row); - - /// <inheritdoc/> - public bool IsCharaMakeCustomizeUnlocked(CharaMakeCustomize row) => this.unlockStateService.IsCharaMakeCustomizeUnlocked(row); - - /// <inheritdoc/> - public bool IsChocoboTaxiStandUnlocked(ChocoboTaxiStand row) => this.unlockStateService.IsChocoboTaxiStandUnlocked(row); - - /// <inheritdoc/> - public bool IsCompanionUnlocked(Companion row) => this.unlockStateService.IsCompanionUnlocked(row); - - /// <inheritdoc/> - public bool IsCraftActionUnlocked(CraftAction row) => this.unlockStateService.IsCraftActionUnlocked(row); - - /// <inheritdoc/> - public bool IsCSBonusContentTypeUnlocked(CSBonusContentType row) => this.unlockStateService.IsCSBonusContentTypeUnlocked(row); - - /// <inheritdoc/> - public bool IsEmoteUnlocked(Emote row) => this.unlockStateService.IsEmoteUnlocked(row); - - /// <inheritdoc/> - public bool IsEmjVoiceNpcUnlocked(EmjVoiceNpc row) => this.unlockStateService.IsEmjVoiceNpcUnlocked(row); - - /// <inheritdoc/> - public bool IsEmjCostumeUnlocked(EmjCostume row) => this.unlockStateService.IsEmjCostumeUnlocked(row); - - /// <inheritdoc/> - public bool IsGeneralActionUnlocked(GeneralAction row) => this.unlockStateService.IsGeneralActionUnlocked(row); - - /// <inheritdoc/> - public bool IsGlassesUnlocked(Glasses row) => this.unlockStateService.IsGlassesUnlocked(row); - - /// <inheritdoc/> - public bool IsHowToUnlocked(HowTo row) => this.unlockStateService.IsHowToUnlocked(row); - - /// <inheritdoc/> - public bool IsInstanceContentUnlocked(InstanceContentSheet row) => this.unlockStateService.IsInstanceContentUnlocked(row); - - /// <inheritdoc/> - public bool IsItemUnlockable(Item row) => this.unlockStateService.IsItemUnlockable(row); - - /// <inheritdoc/> - public bool IsItemUnlocked(Item row) => this.unlockStateService.IsItemUnlocked(row); - - /// <inheritdoc/> - public bool IsLeveCompleted(Leve row) => this.unlockStateService.IsLeveCompleted(row); - - /// <inheritdoc/> - public bool IsMJILandmarkUnlocked(MJILandmark row) => this.unlockStateService.IsMJILandmarkUnlocked(row); - - /// <inheritdoc/> - public bool IsMKDLoreUnlocked(MKDLore row) => this.unlockStateService.IsMKDLoreUnlocked(row); - - /// <inheritdoc/> - public bool IsMcGuffinUnlocked(McGuffin row) => this.unlockStateService.IsMcGuffinUnlocked(row); - - /// <inheritdoc/> - public bool IsMountUnlocked(Mount row) => this.unlockStateService.IsMountUnlocked(row); - - /// <inheritdoc/> - public bool IsNotebookDivisionUnlocked(NotebookDivision row) => this.unlockStateService.IsNotebookDivisionUnlocked(row); - - /// <inheritdoc/> - public bool IsOrchestrionUnlocked(Orchestrion row) => this.unlockStateService.IsOrchestrionUnlocked(row); - - /// <inheritdoc/> - public bool IsOrnamentUnlocked(Ornament row) => this.unlockStateService.IsOrnamentUnlocked(row); - - /// <inheritdoc/> - public bool IsPerformUnlocked(Perform row) => this.unlockStateService.IsPerformUnlocked(row); - - /// <inheritdoc/> - public bool IsPublicContentUnlocked(PublicContentSheet row) => this.unlockStateService.IsPublicContentUnlocked(row); - - /// <inheritdoc/> - public bool IsQuestCompleted(Quest row) => this.unlockStateService.IsQuestCompleted(row); - - /// <inheritdoc/> - public bool IsRecipeUnlocked(Recipe row) => this.unlockStateService.IsRecipeUnlocked(row); - - /// <inheritdoc/> - public bool IsRowRefUnlocked(RowRef rowRef) => this.unlockStateService.IsRowRefUnlocked(rowRef); - - /// <inheritdoc/> - public bool IsRowRefUnlocked<T>(RowRef<T> rowRef) where T : struct, IExcelRow<T> => this.unlockStateService.IsRowRefUnlocked(rowRef); - - /// <inheritdoc/> - public bool IsSecretRecipeBookUnlocked(SecretRecipeBook row) => this.unlockStateService.IsSecretRecipeBookUnlocked(row); - - /// <inheritdoc/> - public bool IsTitleUnlocked(Title row) => this.unlockStateService.IsTitleUnlocked(row); - - /// <inheritdoc/> - public bool IsTraitUnlocked(Trait row) => this.unlockStateService.IsTraitUnlocked(row); - - /// <inheritdoc/> - public bool IsTripleTriadCardUnlocked(TripleTriadCard row) => this.unlockStateService.IsTripleTriadCardUnlocked(row); - - /// <inheritdoc/> - public bool IsUnlockLinkUnlocked(uint unlockLink) => this.unlockStateService.IsUnlockLinkUnlocked(unlockLink); - - /// <inheritdoc/> - public bool IsUnlockLinkUnlocked(ushort unlockLink) => this.unlockStateService.IsUnlockLinkUnlocked(unlockLink); - - /// <inheritdoc/> - void IInternalDisposableService.DisposeService() - { - this.unlockStateService.Unlock -= this.UnlockForward; - } - - private void UnlockForward(RowRef rowRef) => this.Unlock?.Invoke(rowRef); -} diff --git a/Dalamud/GlobalSuppressions.cs b/Dalamud/GlobalSuppressions.cs index 35754eb04..8a9d31b12 100644 --- a/Dalamud/GlobalSuppressions.cs +++ b/Dalamud/GlobalSuppressions.cs @@ -21,7 +21,6 @@ using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1116:SplitParametersMustStartOnLineAfterDeclaration", Justification = "Reviewed.")] [assembly: SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleType", Justification = "This would be nice, but a big refactor")] [assembly: SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649:FileNameMustMatchTypeName", Justification = "I don't like this one so much")] -[assembly: SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1108:BlockStatementsMustNotContainEmbeddedComments", Justification = "I like having comments in blocks")] // ImRAII stuff [assembly: SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented", Justification = "Reviewed.", Scope = "namespaceanddescendants", Target = "Dalamud.Interface.Utility.Raii")] diff --git a/Dalamud/Hooking/AsmHook.cs b/Dalamud/Hooking/AsmHook.cs index e6c9f61d8..4ee96bb15 100644 --- a/Dalamud/Hooking/AsmHook.cs +++ b/Dalamud/Hooking/AsmHook.cs @@ -21,8 +21,6 @@ public sealed class AsmHook : IDisposable, IDalamudHook private DynamicMethod statsMethod; - private Guid hookId = Guid.NewGuid(); - /// <summary> /// Initializes a new instance of the <see cref="AsmHook"/> class. /// This is an assembly hook and should not be used for except under unique circumstances. @@ -46,7 +44,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook this.statsMethod.GetILGenerator().Emit(OpCodes.Ret); var dele = this.statsMethod.CreateDelegate(typeof(Action)); - HookManager.TrackedHooks.TryAdd(this.hookId, new HookInfo(this, dele, Assembly.GetCallingAssembly())); + HookManager.TrackedHooks.TryAdd(Guid.NewGuid(), new HookInfo(this, dele, Assembly.GetCallingAssembly())); } /// <summary> @@ -72,7 +70,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook this.statsMethod.GetILGenerator().Emit(OpCodes.Ret); var dele = this.statsMethod.CreateDelegate(typeof(Action)); - HookManager.TrackedHooks.TryAdd(this.hookId, new HookInfo(this, dele, Assembly.GetCallingAssembly())); + HookManager.TrackedHooks.TryAdd(Guid.NewGuid(), new HookInfo(this, dele, Assembly.GetCallingAssembly())); } /// <summary> @@ -89,7 +87,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook } /// <summary> - /// Gets a value indicating whether the hook is enabled. + /// Gets a value indicating whether or not the hook is enabled. /// </summary> public bool IsEnabled { @@ -101,7 +99,7 @@ public sealed class AsmHook : IDisposable, IDalamudHook } /// <summary> - /// Gets a value indicating whether the hook has been disposed. + /// Gets a value indicating whether or not the hook has been disposed. /// </summary> public bool IsDisposed { get; private set; } @@ -118,8 +116,6 @@ public sealed class AsmHook : IDisposable, IDalamudHook this.IsDisposed = true; - HookManager.TrackedHooks.TryRemove(this.hookId, out _); - if (this.isEnabled) { this.isEnabled = false; @@ -169,6 +165,9 @@ public sealed class AsmHook : IDisposable, IDalamudHook /// </summary> private void CheckDisposed() { - ObjectDisposedException.ThrowIf(this.IsDisposed, this); + if (this.IsDisposed) + { + throw new ObjectDisposedException(message: "Hook is already disposed", null); + } } } diff --git a/Dalamud/Hooking/Hook.cs b/Dalamud/Hooking/Hook.cs index 265b118bc..da65fedc7 100644 --- a/Dalamud/Hooking/Hook.cs +++ b/Dalamud/Hooking/Hook.cs @@ -4,9 +4,6 @@ using System.Runtime.InteropServices; using Dalamud.Configuration.Internal; using Dalamud.Hooking.Internal; -using Dalamud.Hooking.Internal.Verification; - -using TerraFX.Interop.Windows; namespace Dalamud.Hooking; @@ -22,8 +19,6 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate private const ulong IMAGE_ORDINAL_FLAG64 = 0x8000000000000000; // ReSharper disable once InconsistentNaming private const uint IMAGE_ORDINAL_FLAG32 = 0x80000000; - // ReSharper disable once InconsistentNaming - private const int IMAGE_DIRECTORY_ENTRY_IMPORT = 1; #pragma warning restore SA1310 private readonly IntPtr address; @@ -64,23 +59,18 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate => this.IsDisposed ? Marshal.GetDelegateForFunctionPointer<T>(this.address) : this.Original; /// <summary> - /// Gets a value indicating whether the hook is enabled. + /// Gets a value indicating whether or not the hook is enabled. /// </summary> public virtual bool IsEnabled => throw new NotImplementedException(); /// <summary> - /// Gets a value indicating whether the hook has been disposed. + /// Gets a value indicating whether or not the hook has been disposed. /// </summary> public bool IsDisposed { get; private set; } /// <inheritdoc/> public virtual string BackendName => throw new NotImplementedException(); - - /// <summary> - /// Gets the unique GUID for this hook. - /// </summary> - protected Guid HookId { get; } = Guid.NewGuid(); - + /// <summary> /// Remove a hook from the current process. /// </summary> @@ -95,7 +85,6 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate /// <summary> /// Starts intercepting a call to the function. /// </summary> - /// <exception cref="ObjectDisposedException">Hook is already disposed.</exception> public virtual void Enable() => throw new NotImplementedException(); /// <summary> @@ -128,25 +117,25 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate module ??= Process.GetCurrentProcess().MainModule; if (module == null) throw new InvalidOperationException("Current module is null?"); - var pDos = (IMAGE_DOS_HEADER*)module.BaseAddress; - var pNt = (IMAGE_FILE_HEADER*)(module.BaseAddress + pDos->e_lfanew + 4); - var isPe64 = pNt->SizeOfOptionalHeader == Marshal.SizeOf<IMAGE_OPTIONAL_HEADER64>(); - IMAGE_DATA_DIRECTORY* pDataDirectory; + var pDos = (PeHeader.IMAGE_DOS_HEADER*)module.BaseAddress; + var pNt = (PeHeader.IMAGE_FILE_HEADER*)(module.BaseAddress + (int)pDos->e_lfanew + 4); + var isPe64 = pNt->SizeOfOptionalHeader == Marshal.SizeOf<PeHeader.IMAGE_OPTIONAL_HEADER64>(); + PeHeader.IMAGE_DATA_DIRECTORY* pDataDirectory; if (isPe64) { - var pOpt = (IMAGE_OPTIONAL_HEADER64*)(module.BaseAddress + pDos->e_lfanew + 4 + Marshal.SizeOf<IMAGE_FILE_HEADER>()); - pDataDirectory = &pOpt->DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT]; + var pOpt = (PeHeader.IMAGE_OPTIONAL_HEADER64*)(module.BaseAddress + (int)pDos->e_lfanew + 4 + Marshal.SizeOf<PeHeader.IMAGE_FILE_HEADER>()); + pDataDirectory = &pOpt->ImportTable; } else { - var pOpt = (IMAGE_OPTIONAL_HEADER32*)(module.BaseAddress + pDos->e_lfanew + 4 + Marshal.SizeOf<IMAGE_FILE_HEADER>()); - pDataDirectory = &pOpt->DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT]; + var pOpt = (PeHeader.IMAGE_OPTIONAL_HEADER32*)(module.BaseAddress + (int)pDos->e_lfanew + 4 + Marshal.SizeOf<PeHeader.IMAGE_FILE_HEADER>()); + pDataDirectory = &pOpt->ImportTable; } var moduleNameLowerWithNullTerminator = (moduleName + "\0").ToLowerInvariant(); - foreach (ref var importDescriptor in new Span<IMAGE_IMPORT_DESCRIPTOR>( - (IMAGE_IMPORT_DESCRIPTOR*)(module.BaseAddress + (int)pDataDirectory->VirtualAddress), - (int)(pDataDirectory->Size / Marshal.SizeOf<IMAGE_IMPORT_DESCRIPTOR>()))) + foreach (ref var importDescriptor in new Span<PeHeader.IMAGE_IMPORT_DESCRIPTOR>( + (PeHeader.IMAGE_IMPORT_DESCRIPTOR*)(module.BaseAddress + (int)pDataDirectory->VirtualAddress), + (int)(pDataDirectory->Size / Marshal.SizeOf<PeHeader.IMAGE_IMPORT_DESCRIPTOR>()))) { // Having all zero values signals the end of the table. We didn't find anything. if (importDescriptor.Characteristics == 0) @@ -164,7 +153,7 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate (int)Math.Min(pDataDirectory->Size + pDataDirectory->VirtualAddress - importDescriptor.Name, moduleNameLowerWithNullTerminator.Length)); // Is this entry about the DLL that we're looking for? (Case insensitive) - if (!currentDllNameWithNullTerminator.Equals(moduleNameLowerWithNullTerminator, StringComparison.InvariantCultureIgnoreCase)) + if (currentDllNameWithNullTerminator.ToLowerInvariant() != moduleNameLowerWithNullTerminator) continue; if (isPe64) @@ -206,19 +195,19 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate if (EnvironmentConfiguration.DalamudForceMinHook) useMinHook = true; - var moduleHandle = Windows.Win32.PInvoke.GetModuleHandle(moduleName); - if (moduleHandle.IsNull) + var moduleHandle = NativeFunctions.GetModuleHandleW(moduleName); + if (moduleHandle == IntPtr.Zero) throw new Exception($"Could not get a handle to module {moduleName}"); - var procAddress = Windows.Win32.PInvoke.GetProcAddress(moduleHandle, exportName); - if (procAddress.IsNull) + var procAddress = NativeFunctions.GetProcAddress(moduleHandle, exportName); + if (procAddress == IntPtr.Zero) throw new Exception($"Could not get the address of {moduleName}::{exportName}"); - var address = HookManager.FollowJmp(procAddress.Value); + procAddress = HookManager.FollowJmp(procAddress); if (useMinHook) - return new MinHookHook<T>(address, detour, Assembly.GetCallingAssembly()); + return new MinHookHook<T>(procAddress, detour, Assembly.GetCallingAssembly()); else - return new ReloadedHook<T>(address, detour, Assembly.GetCallingAssembly()); + return new ReloadedHook<T>(procAddress, detour, Assembly.GetCallingAssembly()); } /// <summary> @@ -235,8 +224,6 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate if (EnvironmentConfiguration.DalamudForceMinHook) useMinHook = true; - HookVerifier.Verify<T>(procAddress); - procAddress = HookManager.FollowJmp(procAddress); if (useMinHook) return new MinHookHook<T>(procAddress, detour, Assembly.GetCallingAssembly()); @@ -249,10 +236,13 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate /// </summary> protected void CheckDisposed() { - ObjectDisposedException.ThrowIf(this.IsDisposed, this); + if (this.IsDisposed) + { + throw new ObjectDisposedException(message: "Hook is already disposed", null); + } } - private static unsafe IntPtr FromImportHelper32(IntPtr baseAddress, ref IMAGE_IMPORT_DESCRIPTOR desc, ref IMAGE_DATA_DIRECTORY dir, string functionName, uint hintOrOrdinal) + private static unsafe IntPtr FromImportHelper32(IntPtr baseAddress, ref PeHeader.IMAGE_IMPORT_DESCRIPTOR desc, ref PeHeader.IMAGE_DATA_DIRECTORY dir, string functionName, uint hintOrOrdinal) { var importLookupsOversizedSpan = new Span<uint>((uint*)(baseAddress + (int)desc.OriginalFirstThunk), (int)((dir.Size - desc.OriginalFirstThunk) / Marshal.SizeOf<int>())); var importAddressesOversizedSpan = new Span<uint>((uint*)(baseAddress + (int)desc.FirstThunk), (int)((dir.Size - desc.FirstThunk) / Marshal.SizeOf<int>())); @@ -302,7 +292,7 @@ public abstract class Hook<T> : IDalamudHook where T : Delegate throw new MissingMethodException("Specified method not found"); } - private static unsafe IntPtr FromImportHelper64(IntPtr baseAddress, ref IMAGE_IMPORT_DESCRIPTOR desc, ref IMAGE_DATA_DIRECTORY dir, string functionName, uint hintOrOrdinal) + private static unsafe IntPtr FromImportHelper64(IntPtr baseAddress, ref PeHeader.IMAGE_IMPORT_DESCRIPTOR desc, ref PeHeader.IMAGE_DATA_DIRECTORY dir, string functionName, uint hintOrOrdinal) { var importLookupsOversizedSpan = new Span<ulong>((ulong*)(baseAddress + (int)desc.OriginalFirstThunk), (int)((dir.Size - desc.OriginalFirstThunk) / Marshal.SizeOf<ulong>())); var importAddressesOversizedSpan = new Span<ulong>((ulong*)(baseAddress + (int)desc.FirstThunk), (int)((dir.Size - desc.FirstThunk) / Marshal.SizeOf<ulong>())); diff --git a/Dalamud/Hooking/IDalamudHook.cs b/Dalamud/Hooking/IDalamudHook.cs index 5ced572c0..bffca242e 100644 --- a/Dalamud/Hooking/IDalamudHook.cs +++ b/Dalamud/Hooking/IDalamudHook.cs @@ -11,12 +11,12 @@ public interface IDalamudHook : IDisposable public IntPtr Address { get; } /// <summary> - /// Gets a value indicating whether the hook is enabled. + /// Gets a value indicating whether or not the hook is enabled. /// </summary> public bool IsEnabled { get; } /// <summary> - /// Gets a value indicating whether the hook is disposed. + /// Gets a value indicating whether or not the hook is disposed. /// </summary> public bool IsDisposed { get; } diff --git a/Dalamud/Hooking/Internal/CallHook.cs b/Dalamud/Hooking/Internal/CallHook.cs new file mode 100644 index 000000000..c9b5562ba --- /dev/null +++ b/Dalamud/Hooking/Internal/CallHook.cs @@ -0,0 +1,88 @@ +using System.Runtime.InteropServices; + +using Reloaded.Hooks.Definitions; + +namespace Dalamud.Hooking.Internal; + +/// <summary> +/// This class represents a callsite hook. Only the specific address's instructions are replaced with this hook. +/// This is a destructive operation, no other callsite hooks can coexist at the same address. +/// +/// There's no .Original for this hook type. +/// This is only intended for be for functions where the parameters provided allow you to invoke the original call. +/// +/// This class was specifically added for hooking virtual function callsites. +/// Only the specific callsite hooked is modified, if the game calls the virtual function from other locations this hook will not be triggered. +/// </summary> +/// <typeparam name="T">Delegate signature for this hook.</typeparam> +internal class CallHook<T> : IDisposable where T : Delegate +{ + private readonly Reloaded.Hooks.AsmHook asmHook; + + private T? detour; + private bool activated; + + /// <summary> + /// Initializes a new instance of the <see cref="CallHook{T}"/> class. + /// </summary> + /// <param name="address">Address of the instruction to replace.</param> + /// <param name="detour">Delegate to invoke.</param> + internal CallHook(nint address, T detour) + { + this.detour = detour; + + var detourPtr = Marshal.GetFunctionPointerForDelegate(this.detour); + var code = new[] + { + "use64", + $"mov rax, 0x{detourPtr:X8}", + "call rax", + }; + + var opt = new AsmHookOptions + { + PreferRelativeJump = true, + Behaviour = Reloaded.Hooks.Definitions.Enums.AsmHookBehaviour.DoNotExecuteOriginal, + MaxOpcodeSize = 5, + }; + + this.asmHook = new Reloaded.Hooks.AsmHook(code, (nuint)address, opt); + } + + /// <summary> + /// Gets a value indicating whether or not the hook is enabled. + /// </summary> + public bool IsEnabled => this.asmHook.IsEnabled; + + /// <summary> + /// Starts intercepting a call to the function. + /// </summary> + public void Enable() + { + if (!this.activated) + { + this.activated = true; + this.asmHook.Activate(); + return; + } + + this.asmHook.Enable(); + } + + /// <summary> + /// Stops intercepting a call to the function. + /// </summary> + public void Disable() + { + this.asmHook.Disable(); + } + + /// <summary> + /// Remove a hook from the current process. + /// </summary> + public void Dispose() + { + this.asmHook.Disable(); + this.detour = null; + } +} diff --git a/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs b/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs index 3d1073d2f..7a177206f 100644 --- a/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs +++ b/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs @@ -1,19 +1,18 @@ +using System.Collections.Generic; +using System.ComponentModel; using System.Reflection; using System.Runtime.InteropServices; +using Dalamud.Memory; using JetBrains.Annotations; -using Windows.Win32.System.Memory; - -using Win32Exception = System.ComponentModel.Win32Exception; - namespace Dalamud.Hooking.Internal; /// <summary> /// Manages a hook with MinHook. /// </summary> /// <typeparam name="T">Delegate type to represents a function prototype. This must be the same prototype as original function do.</typeparam> -internal unsafe class FunctionPointerVariableHook<T> : Hook<T> +internal class FunctionPointerVariableHook<T> : Hook<T> where T : Delegate { private readonly nint pfnDetour; @@ -45,7 +44,7 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> if (!HookManager.MultiHookTracker.TryGetValue(this.Address, out var indexList)) { - indexList = HookManager.MultiHookTracker[this.Address] = []; + indexList = HookManager.MultiHookTracker[this.Address] = new List<IDalamudHook>(); } this.detourDelegate = detour; @@ -56,11 +55,11 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> // Note: WINE seemingly tries to clean up all heap allocations on process exit. // We want our allocation to be kept there forever, until no running thread remains. // Therefore we're using VirtualAlloc instead of HeapCreate/HeapAlloc. - var pfnThunkBytes = (byte*)Windows.Win32.PInvoke.VirtualAlloc( - null, + var pfnThunkBytes = (byte*)NativeFunctions.VirtualAlloc( + 0, 12, - VIRTUAL_ALLOCATION_TYPE.MEM_RESERVE | VIRTUAL_ALLOCATION_TYPE.MEM_COMMIT, - PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE); + NativeFunctions.AllocationType.Reserve | NativeFunctions.AllocationType.Commit, + MemoryProtection.ExecuteReadWrite); if (pfnThunkBytes == null) { throw new OutOfMemoryException("Failed to allocate memory for import hooks."); @@ -79,10 +78,10 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> this.ppfnThunkJumpTarget = this.pfnThunk + 2; - if (!Windows.Win32.PInvoke.VirtualProtect( - this.Address.ToPointer(), + if (!NativeFunctions.VirtualProtect( + this.Address, (UIntPtr)Marshal.SizeOf<IntPtr>(), - PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE, + MemoryProtection.ExecuteReadWrite, out var oldProtect)) { throw new Win32Exception(Marshal.GetLastWin32Error()); @@ -94,14 +93,14 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> Marshal.WriteIntPtr(this.Address, this.pfnThunk); // This really should not fail, but then even if it does, whatever. - Windows.Win32.PInvoke.VirtualProtect(this.Address.ToPointer(), (UIntPtr)Marshal.SizeOf<IntPtr>(), oldProtect, out _); + NativeFunctions.VirtualProtect(this.Address, (UIntPtr)Marshal.SizeOf<IntPtr>(), oldProtect, out _); // Add afterwards, so the hookIdent starts at 0. indexList.Add(this); unhooker.TrimAfterHook(); - HookManager.TrackedHooks.TryAdd(this.HookId, new HookInfo(this, detour, callingAssembly)); + HookManager.TrackedHooks.TryAdd(Guid.NewGuid(), new HookInfo(this, detour, callingAssembly)); } } @@ -116,7 +115,14 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> } /// <inheritdoc/> - public override bool IsEnabled => !this.IsDisposed && this.enabled; + public override bool IsEnabled + { + get + { + this.CheckDisposed(); + return this.enabled; + } + } /// <inheritdoc/> public override string BackendName => "MinHook"; @@ -125,12 +131,12 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> public override void Dispose() { if (this.IsDisposed) + { return; + } this.Disable(); - HookManager.TrackedHooks.TryRemove(this.HookId, out _); - var index = HookManager.MultiHookTracker[this.Address].IndexOf(this); HookManager.MultiHookTracker[this.Address][index] = null; @@ -140,13 +146,15 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> /// <inheritdoc/> public override void Enable() { + this.CheckDisposed(); + + if (this.enabled) + { + return; + } + lock (HookManager.HookEnableSyncRoot) { - this.CheckDisposed(); - - if (this.enabled) - return; - Marshal.WriteIntPtr(this.ppfnThunkJumpTarget, this.pfnDetour); this.enabled = true; } @@ -155,14 +163,15 @@ internal unsafe class FunctionPointerVariableHook<T> : Hook<T> /// <inheritdoc/> public override void Disable() { + this.CheckDisposed(); + + if (!this.enabled) + { + return; + } + lock (HookManager.HookEnableSyncRoot) { - if (this.IsDisposed) - return; - - if (!this.enabled) - return; - Marshal.WriteIntPtr(this.ppfnThunkJumpTarget, this.pfnOriginal); this.enabled = false; } diff --git a/Dalamud/Hooking/Internal/GameInteropProviderPluginScoped.cs b/Dalamud/Hooking/Internal/GameInteropProviderPluginScoped.cs index 583060d53..f7c4db00a 100644 --- a/Dalamud/Hooking/Internal/GameInteropProviderPluginScoped.cs +++ b/Dalamud/Hooking/Internal/GameInteropProviderPluginScoped.cs @@ -1,3 +1,4 @@ +using System.Collections.Concurrent; using System.Diagnostics; using System.Linq; @@ -6,9 +7,7 @@ using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; -using Dalamud.Utility; using Dalamud.Utility.Signatures; - using Serilog; namespace Dalamud.Hooking.Internal; @@ -26,7 +25,7 @@ internal class GameInteropProviderPluginScoped : IGameInteropProvider, IInternal private readonly LocalPlugin plugin; private readonly SigScanner scanner; - private readonly WeakConcurrentCollection<IDalamudHook> trackedHooks = []; + private readonly ConcurrentBag<IDalamudHook> trackedHooks = new(); /// <summary> /// Initializes a new instance of the <see cref="GameInteropProviderPluginScoped"/> class. diff --git a/Dalamud/Hooking/Internal/HookManager.cs b/Dalamud/Hooking/Internal/HookManager.cs index 83af01bf4..8f5dba583 100644 --- a/Dalamud/Hooking/Internal/HookManager.cs +++ b/Dalamud/Hooking/Internal/HookManager.cs @@ -2,7 +2,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; -using System.Threading; using Dalamud.Logging.Internal; using Dalamud.Memory; @@ -21,7 +20,7 @@ internal class HookManager : IInternalDisposableService /// <summary> /// Logger shared with <see cref="Unhooker"/>. /// </summary> - internal static readonly ModuleLog Log = ModuleLog.Create<HookManager>(); + internal static readonly ModuleLog Log = new("HM"); [ServiceManager.ServiceConstructor] private HookManager() @@ -31,7 +30,7 @@ internal class HookManager : IInternalDisposableService /// <summary> /// Gets sync root object for hook enabling/disabling. /// </summary> - internal static Lock HookEnableSyncRoot { get; } = new(); + internal static object HookEnableSyncRoot { get; } = new(); /// <summary> /// Gets a static list of tracked and registered hooks. diff --git a/Dalamud/Hooking/Internal/MinHookHook.cs b/Dalamud/Hooking/Internal/MinHookHook.cs index 9c7ec0f88..4cebca0d0 100644 --- a/Dalamud/Hooking/Internal/MinHookHook.cs +++ b/Dalamud/Hooking/Internal/MinHookHook.cs @@ -24,7 +24,7 @@ internal class MinHookHook<T> : Hook<T> where T : Delegate var unhooker = HookManager.RegisterUnhooker(this.Address); if (!HookManager.MultiHookTracker.TryGetValue(this.Address, out var indexList)) - indexList = HookManager.MultiHookTracker[this.Address] = []; + indexList = HookManager.MultiHookTracker[this.Address] = new(); var index = (ulong)indexList.Count; @@ -35,7 +35,7 @@ internal class MinHookHook<T> : Hook<T> where T : Delegate unhooker.TrimAfterHook(); - HookManager.TrackedHooks.TryAdd(this.HookId, new HookInfo(this, detour, callingAssembly)); + HookManager.TrackedHooks.TryAdd(Guid.NewGuid(), new HookInfo(this, detour, callingAssembly)); } } @@ -50,7 +50,14 @@ internal class MinHookHook<T> : Hook<T> where T : Delegate } /// <inheritdoc/> - public override bool IsEnabled => !this.IsDisposed && this.minHookImpl.Enabled; + public override bool IsEnabled + { + get + { + this.CheckDisposed(); + return this.minHookImpl.Enabled; + } + } /// <inheritdoc/> public override string BackendName => "MinHook"; @@ -69,37 +76,34 @@ internal class MinHookHook<T> : Hook<T> where T : Delegate HookManager.MultiHookTracker[this.Address][index] = null; } - HookManager.TrackedHooks.TryRemove(this.HookId, out _); - base.Dispose(); } /// <inheritdoc/> public override void Enable() { - lock (HookManager.HookEnableSyncRoot) + this.CheckDisposed(); + + if (!this.minHookImpl.Enabled) { - this.CheckDisposed(); - - if (!this.minHookImpl.Enabled) - return; - - this.minHookImpl.Enable(); + lock (HookManager.HookEnableSyncRoot) + { + this.minHookImpl.Enable(); + } } } /// <inheritdoc/> public override void Disable() { - lock (HookManager.HookEnableSyncRoot) + this.CheckDisposed(); + + if (this.minHookImpl.Enabled) { - if (this.IsDisposed) - return; - - if (!this.minHookImpl.Enabled) - return; - - this.minHookImpl.Disable(); + lock (HookManager.HookEnableSyncRoot) + { + this.minHookImpl.Disable(); + } } } } diff --git a/Dalamud/Hooking/Internal/PeHeader.cs b/Dalamud/Hooking/Internal/PeHeader.cs new file mode 100644 index 000000000..51df4a174 --- /dev/null +++ b/Dalamud/Hooking/Internal/PeHeader.cs @@ -0,0 +1,390 @@ +using System.Runtime.InteropServices; + +#pragma warning disable +namespace Dalamud.Hooking.Internal; + +internal class PeHeader +{ + public struct IMAGE_DOS_HEADER + { + public UInt16 e_magic; + public UInt16 e_cblp; + public UInt16 e_cp; + public UInt16 e_crlc; + public UInt16 e_cparhdr; + public UInt16 e_minalloc; + public UInt16 e_maxalloc; + public UInt16 e_ss; + public UInt16 e_sp; + public UInt16 e_csum; + public UInt16 e_ip; + public UInt16 e_cs; + public UInt16 e_lfarlc; + public UInt16 e_ovno; + public UInt16 e_res_0; + public UInt16 e_res_1; + public UInt16 e_res_2; + public UInt16 e_res_3; + public UInt16 e_oemid; + public UInt16 e_oeminfo; + public UInt16 e_res2_0; + public UInt16 e_res2_1; + public UInt16 e_res2_2; + public UInt16 e_res2_3; + public UInt16 e_res2_4; + public UInt16 e_res2_5; + public UInt16 e_res2_6; + public UInt16 e_res2_7; + public UInt16 e_res2_8; + public UInt16 e_res2_9; + public UInt32 e_lfanew; + } + + [StructLayout(LayoutKind.Sequential)] + public struct IMAGE_DATA_DIRECTORY + { + public UInt32 VirtualAddress; + public UInt32 Size; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct IMAGE_OPTIONAL_HEADER32 + { + public UInt16 Magic; + public Byte MajorLinkerVersion; + public Byte MinorLinkerVersion; + public UInt32 SizeOfCode; + public UInt32 SizeOfInitializedData; + public UInt32 SizeOfUninitializedData; + public UInt32 AddressOfEntryPoint; + public UInt32 BaseOfCode; + public UInt32 BaseOfData; + public UInt32 ImageBase; + public UInt32 SectionAlignment; + public UInt32 FileAlignment; + public UInt16 MajorOperatingSystemVersion; + public UInt16 MinorOperatingSystemVersion; + public UInt16 MajorImageVersion; + public UInt16 MinorImageVersion; + public UInt16 MajorSubsystemVersion; + public UInt16 MinorSubsystemVersion; + public UInt32 Win32VersionValue; + public UInt32 SizeOfImage; + public UInt32 SizeOfHeaders; + public UInt32 CheckSum; + public UInt16 Subsystem; + public UInt16 DllCharacteristics; + public UInt32 SizeOfStackReserve; + public UInt32 SizeOfStackCommit; + public UInt32 SizeOfHeapReserve; + public UInt32 SizeOfHeapCommit; + public UInt32 LoaderFlags; + public UInt32 NumberOfRvaAndSizes; + + public IMAGE_DATA_DIRECTORY ExportTable; + public IMAGE_DATA_DIRECTORY ImportTable; + public IMAGE_DATA_DIRECTORY ResourceTable; + public IMAGE_DATA_DIRECTORY ExceptionTable; + public IMAGE_DATA_DIRECTORY CertificateTable; + public IMAGE_DATA_DIRECTORY BaseRelocationTable; + public IMAGE_DATA_DIRECTORY Debug; + public IMAGE_DATA_DIRECTORY Architecture; + public IMAGE_DATA_DIRECTORY GlobalPtr; + public IMAGE_DATA_DIRECTORY TLSTable; + public IMAGE_DATA_DIRECTORY LoadConfigTable; + public IMAGE_DATA_DIRECTORY BoundImport; + public IMAGE_DATA_DIRECTORY IAT; + public IMAGE_DATA_DIRECTORY DelayImportDescriptor; + public IMAGE_DATA_DIRECTORY CLRRuntimeHeader; + public IMAGE_DATA_DIRECTORY Reserved; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct IMAGE_OPTIONAL_HEADER64 + { + public UInt16 Magic; + public Byte MajorLinkerVersion; + public Byte MinorLinkerVersion; + public UInt32 SizeOfCode; + public UInt32 SizeOfInitializedData; + public UInt32 SizeOfUninitializedData; + public UInt32 AddressOfEntryPoint; + public UInt32 BaseOfCode; + public UInt64 ImageBase; + public UInt32 SectionAlignment; + public UInt32 FileAlignment; + public UInt16 MajorOperatingSystemVersion; + public UInt16 MinorOperatingSystemVersion; + public UInt16 MajorImageVersion; + public UInt16 MinorImageVersion; + public UInt16 MajorSubsystemVersion; + public UInt16 MinorSubsystemVersion; + public UInt32 Win32VersionValue; + public UInt32 SizeOfImage; + public UInt32 SizeOfHeaders; + public UInt32 CheckSum; + public UInt16 Subsystem; + public UInt16 DllCharacteristics; + public UInt64 SizeOfStackReserve; + public UInt64 SizeOfStackCommit; + public UInt64 SizeOfHeapReserve; + public UInt64 SizeOfHeapCommit; + public UInt32 LoaderFlags; + public UInt32 NumberOfRvaAndSizes; + + public IMAGE_DATA_DIRECTORY ExportTable; + public IMAGE_DATA_DIRECTORY ImportTable; + public IMAGE_DATA_DIRECTORY ResourceTable; + public IMAGE_DATA_DIRECTORY ExceptionTable; + public IMAGE_DATA_DIRECTORY CertificateTable; + public IMAGE_DATA_DIRECTORY BaseRelocationTable; + public IMAGE_DATA_DIRECTORY Debug; + public IMAGE_DATA_DIRECTORY Architecture; + public IMAGE_DATA_DIRECTORY GlobalPtr; + public IMAGE_DATA_DIRECTORY TLSTable; + public IMAGE_DATA_DIRECTORY LoadConfigTable; + public IMAGE_DATA_DIRECTORY BoundImport; + public IMAGE_DATA_DIRECTORY IAT; + public IMAGE_DATA_DIRECTORY DelayImportDescriptor; + public IMAGE_DATA_DIRECTORY CLRRuntimeHeader; + public IMAGE_DATA_DIRECTORY Reserved; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct IMAGE_FILE_HEADER + { + public UInt16 Machine; + public UInt16 NumberOfSections; + public UInt32 TimeDateStamp; + public UInt32 PointerToSymbolTable; + public UInt32 NumberOfSymbols; + public UInt16 SizeOfOptionalHeader; + public UInt16 Characteristics; + } + + [StructLayout(LayoutKind.Explicit)] + public struct IMAGE_SECTION_HEADER + { + [FieldOffset(0)] + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] + public char[] Name; + [FieldOffset(8)] + public UInt32 VirtualSize; + [FieldOffset(12)] + public UInt32 VirtualAddress; + [FieldOffset(16)] + public UInt32 SizeOfRawData; + [FieldOffset(20)] + public UInt32 PointerToRawData; + [FieldOffset(24)] + public UInt32 PointerToRelocations; + [FieldOffset(28)] + public UInt32 PointerToLinenumbers; + [FieldOffset(32)] + public UInt16 NumberOfRelocations; + [FieldOffset(34)] + public UInt16 NumberOfLinenumbers; + [FieldOffset(36)] + public DataSectionFlags Characteristics; + + public string Section + { + get { return new string(Name); } + } + } + + [Flags] + public enum DataSectionFlags : uint + { + /// <summary> + /// Reserved for future use. + /// </summary> + TypeReg = 0x00000000, + /// <summary> + /// Reserved for future use. + /// </summary> + TypeDsect = 0x00000001, + /// <summary> + /// Reserved for future use. + /// </summary> + TypeNoLoad = 0x00000002, + /// <summary> + /// Reserved for future use. + /// </summary> + TypeGroup = 0x00000004, + /// <summary> + /// The section should not be padded to the next boundary. This flag is obsolete and is replaced by IMAGE_SCN_ALIGN_1BYTES. This is valid only for object files. + /// </summary> + TypeNoPadded = 0x00000008, + /// <summary> + /// Reserved for future use. + /// </summary> + TypeCopy = 0x00000010, + /// <summary> + /// The section contains executable code. + /// </summary> + ContentCode = 0x00000020, + /// <summary> + /// The section contains initialized data. + /// </summary> + ContentInitializedData = 0x00000040, + /// <summary> + /// The section contains uninitialized data. + /// </summary> + ContentUninitializedData = 0x00000080, + /// <summary> + /// Reserved for future use. + /// </summary> + LinkOther = 0x00000100, + /// <summary> + /// The section contains comments or other information. The .drectve section has this type. This is valid for object files only. + /// </summary> + LinkInfo = 0x00000200, + /// <summary> + /// Reserved for future use. + /// </summary> + TypeOver = 0x00000400, + /// <summary> + /// The section will not become part of the image. This is valid only for object files. + /// </summary> + LinkRemove = 0x00000800, + /// <summary> + /// The section contains COMDAT data. For more information, see section 5.5.6, COMDAT Sections (Object Only). This is valid only for object files. + /// </summary> + LinkComDat = 0x00001000, + /// <summary> + /// Reset speculative exceptions handling bits in the TLB entries for this section. + /// </summary> + NoDeferSpecExceptions = 0x00004000, + /// <summary> + /// The section contains data referenced through the global pointer (GP). + /// </summary> + RelativeGP = 0x00008000, + /// <summary> + /// Reserved for future use. + /// </summary> + MemPurgeable = 0x00020000, + /// <summary> + /// Reserved for future use. + /// </summary> + Memory16Bit = 0x00020000, + /// <summary> + /// Reserved for future use. + /// </summary> + MemoryLocked = 0x00040000, + /// <summary> + /// Reserved for future use. + /// </summary> + MemoryPreload = 0x00080000, + /// <summary> + /// Align data on a 1-byte boundary. Valid only for object files. + /// </summary> + Align1Bytes = 0x00100000, + /// <summary> + /// Align data on a 2-byte boundary. Valid only for object files. + /// </summary> + Align2Bytes = 0x00200000, + /// <summary> + /// Align data on a 4-byte boundary. Valid only for object files. + /// </summary> + Align4Bytes = 0x00300000, + /// <summary> + /// Align data on an 8-byte boundary. Valid only for object files. + /// </summary> + Align8Bytes = 0x00400000, + /// <summary> + /// Align data on a 16-byte boundary. Valid only for object files. + /// </summary> + Align16Bytes = 0x00500000, + /// <summary> + /// Align data on a 32-byte boundary. Valid only for object files. + /// </summary> + Align32Bytes = 0x00600000, + /// <summary> + /// Align data on a 64-byte boundary. Valid only for object files. + /// </summary> + Align64Bytes = 0x00700000, + /// <summary> + /// Align data on a 128-byte boundary. Valid only for object files. + /// </summary> + Align128Bytes = 0x00800000, + /// <summary> + /// Align data on a 256-byte boundary. Valid only for object files. + /// </summary> + Align256Bytes = 0x00900000, + /// <summary> + /// Align data on a 512-byte boundary. Valid only for object files. + /// </summary> + Align512Bytes = 0x00A00000, + /// <summary> + /// Align data on a 1024-byte boundary. Valid only for object files. + /// </summary> + Align1024Bytes = 0x00B00000, + /// <summary> + /// Align data on a 2048-byte boundary. Valid only for object files. + /// </summary> + Align2048Bytes = 0x00C00000, + /// <summary> + /// Align data on a 4096-byte boundary. Valid only for object files. + /// </summary> + Align4096Bytes = 0x00D00000, + /// <summary> + /// Align data on an 8192-byte boundary. Valid only for object files. + /// </summary> + Align8192Bytes = 0x00E00000, + /// <summary> + /// The section contains extended relocations. + /// </summary> + LinkExtendedRelocationOverflow = 0x01000000, + /// <summary> + /// The section can be discarded as needed. + /// </summary> + MemoryDiscardable = 0x02000000, + /// <summary> + /// The section cannot be cached. + /// </summary> + MemoryNotCached = 0x04000000, + /// <summary> + /// The section is not pageable. + /// </summary> + MemoryNotPaged = 0x08000000, + /// <summary> + /// The section can be shared in memory. + /// </summary> + MemoryShared = 0x10000000, + /// <summary> + /// The section can be executed as code. + /// </summary> + MemoryExecute = 0x20000000, + /// <summary> + /// The section can be read. + /// </summary> + MemoryRead = 0x40000000, + /// <summary> + /// The section can be written to. + /// </summary> + MemoryWrite = 0x80000000 + } + + [StructLayout(LayoutKind.Explicit)] + public struct IMAGE_IMPORT_DESCRIPTOR + { + [FieldOffset(0)] + public uint Characteristics; + + [FieldOffset(0)] + public uint OriginalFirstThunk; + + [FieldOffset(4)] + public uint TimeDateStamp; + + [FieldOffset(8)] + public uint ForwarderChain; + + [FieldOffset(12)] + public uint Name; + + [FieldOffset(16)] + public uint FirstThunk; + } +} diff --git a/Dalamud/Hooking/Internal/ReloadedHook.cs b/Dalamud/Hooking/Internal/ReloadedHook.cs index cdd939d19..bf441a86d 100644 --- a/Dalamud/Hooking/Internal/ReloadedHook.cs +++ b/Dalamud/Hooking/Internal/ReloadedHook.cs @@ -30,7 +30,7 @@ internal class ReloadedHook<T> : Hook<T> where T : Delegate unhooker.TrimAfterHook(); - HookManager.TrackedHooks.TryAdd(this.HookId, new HookInfo(this, detour, callingAssembly)); + HookManager.TrackedHooks.TryAdd(Guid.NewGuid(), new HookInfo(this, detour, callingAssembly)); } } @@ -45,7 +45,14 @@ internal class ReloadedHook<T> : Hook<T> where T : Delegate } /// <inheritdoc/> - public override bool IsEnabled => !this.IsDisposed && this.hookImpl.IsHookEnabled; + public override bool IsEnabled + { + get + { + this.CheckDisposed(); + return this.hookImpl.IsHookEnabled; + } + } /// <inheritdoc/> public override string BackendName => "Reloaded"; @@ -56,8 +63,6 @@ internal class ReloadedHook<T> : Hook<T> where T : Delegate if (this.IsDisposed) return; - HookManager.TrackedHooks.TryRemove(this.HookId, out _); - this.Disable(); base.Dispose(); @@ -66,10 +71,10 @@ internal class ReloadedHook<T> : Hook<T> where T : Delegate /// <inheritdoc/> public override void Enable() { + this.CheckDisposed(); + lock (HookManager.HookEnableSyncRoot) { - this.CheckDisposed(); - if (!this.hookImpl.IsHookEnabled) this.hookImpl.Enable(); } @@ -78,11 +83,10 @@ internal class ReloadedHook<T> : Hook<T> where T : Delegate /// <inheritdoc/> public override void Disable() { + this.CheckDisposed(); + lock (HookManager.HookEnableSyncRoot) { - if (this.IsDisposed) - return; - if (!this.hookImpl.IsHookActivated) return; diff --git a/Dalamud/Hooking/Internal/Verification/HookVerificationException.cs b/Dalamud/Hooking/Internal/Verification/HookVerificationException.cs deleted file mode 100644 index c43b5d540..000000000 --- a/Dalamud/Hooking/Internal/Verification/HookVerificationException.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Linq; - -namespace Dalamud.Hooking.Internal.Verification; - -/// <summary> -/// Exception thrown when a provided delegate for a hook does not match a known delegate. -/// </summary> -public class HookVerificationException : Exception -{ - private HookVerificationException(string message) - : base(message) - { - } - - /// <summary> - /// Create a new <see cref="HookVerificationException"/> exception. - /// </summary> - /// <param name="address">The address of the function that is being hooked.</param> - /// <param name="passed">The delegate passed by the user.</param> - /// <param name="enforced">The delegate we think is correct.</param> - /// <param name="message">Additional context to show to the user.</param> - /// <returns>The created exception.</returns> - internal static HookVerificationException Create(IntPtr address, Type passed, Type enforced, string message) - { - return new HookVerificationException( - $"Hook verification failed for address 0x{address.ToInt64():X}\n\n" + - $"Why: {message}\n" + - $"Passed Delegate: {GetSignature(passed)}\n" + - $"Correct Delegate: {GetSignature(enforced)}\n\n" + - "The hook delegate must exactly match the provided signature to prevent memory corruption and wrong data passed to originals."); - } - - private static string GetSignature(Type delegateType) - { - var method = delegateType.GetMethod("Invoke"); - if (method == null) return delegateType.Name; - - var parameters = string.Join(", ", method.GetParameters().Select(p => p.ParameterType.Name)); - return $"{method.ReturnType.Name} ({parameters})"; - } -} diff --git a/Dalamud/Hooking/Internal/Verification/HookVerifier.cs b/Dalamud/Hooking/Internal/Verification/HookVerifier.cs deleted file mode 100644 index 98568a567..000000000 --- a/Dalamud/Hooking/Internal/Verification/HookVerifier.cs +++ /dev/null @@ -1,161 +0,0 @@ -using System.Linq; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using Dalamud.Game; -using Dalamud.Logging.Internal; - -using FFXIVClientStructs.FFXIV.Application.Network; - -using InteropGenerator.Runtime; - -namespace Dalamud.Hooking.Internal.Verification; - -/// <summary> -/// Global utility that can verify whether hook delegates are correctly declared. -/// Initialized out-of-band, since Hook is instantiated all over the place without a service, so this cannot be -/// a service either. -/// </summary> -internal static class HookVerifier -{ - private static readonly ModuleLog Log = new("HookVerifier"); - - private static readonly VerificationEntry[] ToVerify = - [ - new( - "ActorControlSelf", - "E8 ?? ?? ?? ?? 0F B7 0B 83 E9 64", - typeof(ActorControlSelfDelegate), // TODO: change this to CS delegate - "Signature changed in Patch 7.4"), // 7.4 (new parameters) - new( - "SendPacket", - ZoneClient.Addresses.SendPacket.String, - typeof(ZoneClient.Delegates.SendPacket), - "Force marshaling context") // If people hook with 4 byte return this locks people out from logging in - ]; - - private static readonly string ClientStructsInteropNamespacePrefix = string.Join(".", nameof(FFXIVClientStructs), nameof(FFXIVClientStructs.Interop)); - - private delegate void ActorControlSelfDelegate(uint category, uint eventId, uint param1, uint param2, uint param3, uint param4, uint param5, uint param6, uint param7, uint param8, ulong targetId, byte param9); // TODO: change this to CS delegate - - /// <summary> - /// Initializes a new instance of the <see cref="HookVerifier"/> class. - /// </summary> - /// <param name="scanner">Process to scan in.</param> - public static void Initialize(TargetSigScanner scanner) - { - foreach (var entry in ToVerify) - { - if (!scanner.TryScanText(entry.Signature, out var address)) - { - Log.Error("Could not resolve signature for hook {Name} ({Sig})", entry.Name, entry.Signature); - continue; - } - - entry.Address = address; - } - } - - /// <summary> - /// Verify the hook with the provided address and exception. - /// </summary> - /// <param name="address">The address of the function we are hooking.</param> - /// <typeparam name="T">The delegate type passed by the creator of the hook.</typeparam> - /// <exception cref="HookVerificationException">Exception thrown when we think the hook is not correctly declared.</exception> - public static void Verify<T>(IntPtr address) where T : Delegate - { - var entry = ToVerify.FirstOrDefault(x => x.Address == address); - - // Nothing to verify for this hook? - if (entry == null) - { - return; - } - - var passedType = typeof(T); - var isAssemblyMarshaled = passedType.Assembly.GetCustomAttribute<DisableRuntimeMarshallingAttribute>() is null; - - // Directly compare delegates - if (passedType == entry.TargetDelegateType) - { - return; - } - - var passedInvoke = passedType.GetMethod("Invoke")!; - var enforcedInvoke = entry.TargetDelegateType.GetMethod("Invoke")!; - - // Compare Return Type - var mismatch = !CheckParam(passedInvoke.ReturnType, enforcedInvoke.ReturnType, isAssemblyMarshaled); - - // Compare Parameter Count - var passedParams = passedInvoke.GetParameters(); - var enforcedParams = enforcedInvoke.GetParameters(); - - if (passedParams.Length != enforcedParams.Length) - { - mismatch = true; - } - else - { - // Compare Parameter Types - for (var i = 0; i < passedParams.Length; i++) - { - if (!CheckParam(passedParams[i].ParameterType, enforcedParams[i].ParameterType, isAssemblyMarshaled)) - { - mismatch = true; - break; - } - } - } - - if (mismatch) - { - throw HookVerificationException.Create(address, passedType, entry.TargetDelegateType, entry.Message); - } - } - - private static bool CheckParam(Type paramLeft, Type paramRight, bool isMarshaled) - { - var sameType = paramLeft == paramRight; - return sameType || SizeOf(paramLeft, isMarshaled) == SizeOf(paramRight, false); - } - - private static int SizeOf(Type type, bool isMarshaled) - { - return type switch { - _ when type == typeof(sbyte) || type == typeof(byte) || (type == typeof(bool) && !isMarshaled) => 1, - _ when type == typeof(char) || type == typeof(short) || type == typeof(ushort) || type == typeof(Half) => 2, - _ when type == typeof(int) || type == typeof(uint) || type == typeof(float) || (type == typeof(bool) && isMarshaled) => 4, - _ when type == typeof(long) || type == typeof(ulong) || type == typeof(double) || type.IsPointer || type.IsFunctionPointer || type.IsUnmanagedFunctionPointer || (type.Name == "Pointer`1" && type.Namespace.AsSpan().SequenceEqual(ClientStructsInteropNamespacePrefix)) || type == typeof(CStringPointer) => 8, - _ when type.Name.StartsWith("FixedSizeArray") => SizeOf(type.GetGenericArguments()[0], isMarshaled) * int.Parse(type.Name[14..type.Name.IndexOf('`')]), - _ when type.GetCustomAttribute<InlineArrayAttribute>() is { Length: var length } => SizeOf(type.GetGenericArguments()[0], isMarshaled) * length, - _ when IsStruct(type) && !type.IsGenericType && (type.StructLayoutAttribute?.Value ?? LayoutKind.Sequential) != LayoutKind.Sequential => type.StructLayoutAttribute?.Size ?? (int?)typeof(Unsafe).GetMethod("SizeOf")?.MakeGenericMethod(type).Invoke(null, null) ?? 0, - _ when type.IsEnum => SizeOf(Enum.GetUnderlyingType(type), isMarshaled), - _ when type.IsGenericType => Marshal.SizeOf(Activator.CreateInstance(type)!), - _ => GetSizeOf(type), - }; - } - - private static int GetSizeOf(Type type) - { - try - { - return Marshal.SizeOf(Activator.CreateInstance(type)!); - } - catch - { - return 0; - } - } - - private static bool IsStruct(Type type) - { - return type != typeof(decimal) && type is { IsValueType: true, IsPrimitive: false, IsEnum: false }; - } - - private record VerificationEntry(string Name, string Signature, Type TargetDelegateType, string Message) - { - public nint Address { get; set; } - } -} diff --git a/Dalamud/Hooking/WndProcHook/WndProcHookManager.cs b/Dalamud/Hooking/WndProcHook/WndProcHookManager.cs index 82620eed8..e8e0b7536 100644 --- a/Dalamud/Hooking/WndProcHook/WndProcHookManager.cs +++ b/Dalamud/Hooking/WndProcHook/WndProcHookManager.cs @@ -17,10 +17,10 @@ namespace Dalamud.Hooking.WndProcHook; [ServiceManager.EarlyLoadedService] internal sealed class WndProcHookManager : IInternalDisposableService { - private static readonly ModuleLog Log = ModuleLog.Create<WndProcHookManager>(); + private static readonly ModuleLog Log = new(nameof(WndProcHookManager)); private readonly Hook<DispatchMessageWDelegate> dispatchMessageWHook; - private readonly Dictionary<HWND, WndProcEventArgs> wndProcOverrides = []; + private readonly Dictionary<HWND, WndProcEventArgs> wndProcOverrides = new(); private HWND mainWindowHwnd; @@ -36,7 +36,7 @@ internal sealed class WndProcHookManager : IInternalDisposableService this.dispatchMessageWHook.Enable(); // Capture the game main window handle, - // so that no guarantees would have to be made on the service dispose order. + // so that no guarantees would have to be made on the service dispose order. Service<InterfaceManager.InterfaceManagerWithScene> .GetAsync() .ContinueWith(r => this.mainWindowHwnd = (HWND)r.Result.Manager.GameWindowHandle); @@ -82,16 +82,13 @@ internal sealed class WndProcHookManager : IInternalDisposableService /// <param name="args">The arguments.</param> internal void InvokePreWndProc(WndProcEventArgs args) { - foreach (var d in Delegate.EnumerateInvocationList(this.PreWndProc)) + try { - try - { - d(args); - } - catch (Exception e) - { - Log.Error(e, $"{nameof(this.PreWndProc)} error calling {d.Method.Name}"); - } + this.PreWndProc?.Invoke(args); + } + catch (Exception e) + { + Log.Error(e, $"{nameof(this.PreWndProc)} error"); } } @@ -101,16 +98,13 @@ internal sealed class WndProcHookManager : IInternalDisposableService /// <param name="args">The arguments.</param> internal void InvokePostWndProc(WndProcEventArgs args) { - foreach (var d in Delegate.EnumerateInvocationList(this.PostWndProc)) + try { - try - { - d(args); - } - catch (Exception e) - { - Log.Error(e, $"{nameof(this.PostWndProc)} error calling {d.Method.Name}"); - } + this.PostWndProc?.Invoke(args); + } + catch (Exception e) + { + Log.Error(e, $"{nameof(this.PostWndProc)} error"); } } diff --git a/Dalamud/Interface/Animation/Easing.cs b/Dalamud/Interface/Animation/Easing.cs index a9dfad1f0..edab25149 100644 --- a/Dalamud/Interface/Animation/Easing.cs +++ b/Dalamud/Interface/Animation/Easing.cs @@ -1,8 +1,6 @@ using System.Diagnostics; using System.Numerics; -using Dalamud.Utility; - namespace Dalamud.Interface.Animation; /// <summary> @@ -45,22 +43,9 @@ public abstract class Easing public bool IsInverse { get; set; } /// <summary> - /// Gets the current value of the animation, following unclamped logic. + /// Gets or sets the current value of the animation, from 0 to 1. /// </summary> - [Obsolete($"This field has been deprecated. Use either {nameof(ValueClamped)} or {nameof(ValueUnclamped)} instead.", true)] - [Api15ToDo("Map this field to ValueClamped, probably.")] - public double Value => this.ValueUnclamped; - - /// <summary> - /// Gets the current value of the animation, from 0 to 1. - /// </summary> - public double ValueClamped => Math.Clamp(this.ValueUnclamped, 0, 1); - - /// <summary> - /// Gets or sets the current value of the animation, not limited to a range of 0 to 1. - /// Will return numbers outside of this range if accessed beyond animation time. - /// </summary> - public double ValueUnclamped + public double Value { get { @@ -85,12 +70,12 @@ public abstract class Easing public TimeSpan Duration { get; set; } /// <summary> - /// Gets a value indicating whether the animation is running. + /// Gets a value indicating whether or not the animation is running. /// </summary> public bool IsRunning => this.animationTimer.IsRunning; /// <summary> - /// Gets a value indicating whether the animation is done. + /// Gets a value indicating whether or not the animation is done. /// </summary> public bool IsDone => this.animationTimer.ElapsedMilliseconds > this.Duration.TotalMilliseconds; diff --git a/Dalamud/Interface/Animation/EasingFunctions/InCirc.cs b/Dalamud/Interface/Animation/EasingFunctions/InCirc.cs index d94e9fc9f..c467104c5 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InCirc.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InCirc.cs @@ -19,6 +19,6 @@ public class InCirc : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = 1 - Math.Sqrt(1 - Math.Pow(p, 2)); + this.Value = 1 - Math.Sqrt(1 - Math.Pow(p, 2)); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InCubic.cs b/Dalamud/Interface/Animation/EasingFunctions/InCubic.cs index 64ebc5ba3..78f6774ac 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InCubic.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InCubic.cs @@ -19,6 +19,6 @@ public class InCubic : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p * p * p; + this.Value = p * p * p; } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InElastic.cs b/Dalamud/Interface/Animation/EasingFunctions/InElastic.cs index 2e834e41c..c53c3d587 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InElastic.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InElastic.cs @@ -21,10 +21,10 @@ public class InElastic : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p == 0 - ? 0 - : p == 1 - ? 1 - : -Math.Pow(2, (10 * p) - 10) * Math.Sin(((p * 10) - 10.75) * Constant); + this.Value = p == 0 + ? 0 + : p == 1 + ? 1 + : -Math.Pow(2, (10 * p) - 10) * Math.Sin(((p * 10) - 10.75) * Constant); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InOutCirc.cs b/Dalamud/Interface/Animation/EasingFunctions/InOutCirc.cs index a63ab648a..71a598dfb 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InOutCirc.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InOutCirc.cs @@ -19,8 +19,8 @@ public class InOutCirc : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p < 0.5 - ? (1 - Math.Sqrt(1 - Math.Pow(2 * p, 2))) / 2 - : (Math.Sqrt(1 - Math.Pow((-2 * p) + 2, 2)) + 1) / 2; + this.Value = p < 0.5 + ? (1 - Math.Sqrt(1 - Math.Pow(2 * p, 2))) / 2 + : (Math.Sqrt(1 - Math.Pow((-2 * p) + 2, 2)) + 1) / 2; } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InOutCubic.cs b/Dalamud/Interface/Animation/EasingFunctions/InOutCubic.cs index 4083265b7..07bcfa28d 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InOutCubic.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InOutCubic.cs @@ -19,6 +19,6 @@ public class InOutCubic : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p < 0.5 ? 4 * p * p * p : 1 - (Math.Pow((-2 * p) + 2, 3) / 2); + this.Value = p < 0.5 ? 4 * p * p * p : 1 - (Math.Pow((-2 * p) + 2, 3) / 2); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InOutElastic.cs b/Dalamud/Interface/Animation/EasingFunctions/InOutElastic.cs index f27726038..f78f9f336 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InOutElastic.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InOutElastic.cs @@ -21,12 +21,12 @@ public class InOutElastic : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p == 0 - ? 0 - : p == 1 - ? 1 - : p < 0.5 - ? -(Math.Pow(2, (20 * p) - 10) * Math.Sin(((20 * p) - 11.125) * Constant)) / 2 - : (Math.Pow(2, (-20 * p) + 10) * Math.Sin(((20 * p) - 11.125) * Constant) / 2) + 1; + this.Value = p == 0 + ? 0 + : p == 1 + ? 1 + : p < 0.5 + ? -(Math.Pow(2, (20 * p) - 10) * Math.Sin(((20 * p) - 11.125) * Constant)) / 2 + : (Math.Pow(2, (-20 * p) + 10) * Math.Sin(((20 * p) - 11.125) * Constant) / 2) + 1; } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InOutQuint.cs b/Dalamud/Interface/Animation/EasingFunctions/InOutQuint.cs index e08129b25..64ab98b16 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InOutQuint.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InOutQuint.cs @@ -19,6 +19,6 @@ public class InOutQuint : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p < 0.5 ? 16 * p * p * p * p * p : 1 - (Math.Pow((-2 * p) + 2, 5) / 2); + this.Value = p < 0.5 ? 16 * p * p * p * p * p : 1 - (Math.Pow((-2 * p) + 2, 5) / 2); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InOutSine.cs b/Dalamud/Interface/Animation/EasingFunctions/InOutSine.cs index cb940d87d..2f347ff80 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InOutSine.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InOutSine.cs @@ -19,6 +19,6 @@ public class InOutSine : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = -(Math.Cos(Math.PI * p) - 1) / 2; + this.Value = -(Math.Cos(Math.PI * p) - 1) / 2; } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InQuint.cs b/Dalamud/Interface/Animation/EasingFunctions/InQuint.cs index 827e0e21b..a5ab5a22c 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InQuint.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InQuint.cs @@ -19,6 +19,6 @@ public class InQuint : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p * p * p * p * p; + this.Value = p * p * p * p * p; } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/InSine.cs b/Dalamud/Interface/Animation/EasingFunctions/InSine.cs index 61affa10a..fa079baad 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/InSine.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/InSine.cs @@ -19,6 +19,6 @@ public class InSine : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = 1 - Math.Cos((p * Math.PI) / 2); + this.Value = 1 - Math.Cos((p * Math.PI) / 2); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/OutCirc.cs b/Dalamud/Interface/Animation/EasingFunctions/OutCirc.cs index 980e29a81..b0d3b895a 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/OutCirc.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/OutCirc.cs @@ -19,6 +19,6 @@ public class OutCirc : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = Math.Sqrt(1 - Math.Pow(p - 1, 2)); + this.Value = Math.Sqrt(1 - Math.Pow(p - 1, 2)); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/OutCubic.cs b/Dalamud/Interface/Animation/EasingFunctions/OutCubic.cs index e1a79c35b..9c1bb57dc 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/OutCubic.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/OutCubic.cs @@ -19,6 +19,6 @@ public class OutCubic : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = 1 - Math.Pow(1 - p, 3); + this.Value = 1 - Math.Pow(1 - p, 3); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/OutElastic.cs b/Dalamud/Interface/Animation/EasingFunctions/OutElastic.cs index 1f525b404..6a4fcd6dc 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/OutElastic.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/OutElastic.cs @@ -21,10 +21,10 @@ public class OutElastic : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = p == 0 - ? 0 - : p == 1 - ? 1 - : (Math.Pow(2, -10 * p) * Math.Sin(((p * 10) - 0.75) * Constant)) + 1; + this.Value = p == 0 + ? 0 + : p == 1 + ? 1 + : (Math.Pow(2, -10 * p) * Math.Sin(((p * 10) - 0.75) * Constant)) + 1; } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/OutQuint.cs b/Dalamud/Interface/Animation/EasingFunctions/OutQuint.cs index 24a2255d3..a3174e762 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/OutQuint.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/OutQuint.cs @@ -19,6 +19,6 @@ public class OutQuint : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = 1 - Math.Pow(1 - p, 5); + this.Value = 1 - Math.Pow(1 - p, 5); } } diff --git a/Dalamud/Interface/Animation/EasingFunctions/OutSine.cs b/Dalamud/Interface/Animation/EasingFunctions/OutSine.cs index a376d7f57..ba82232b3 100644 --- a/Dalamud/Interface/Animation/EasingFunctions/OutSine.cs +++ b/Dalamud/Interface/Animation/EasingFunctions/OutSine.cs @@ -19,6 +19,6 @@ public class OutSine : Easing public override void Update() { var p = this.Progress; - this.ValueUnclamped = Math.Sin((p * Math.PI) / 2); + this.Value = Math.Sin((p * Math.PI) / 2); } } diff --git a/Dalamud/Interface/ColorHelpers.cs b/Dalamud/Interface/ColorHelpers.cs index dd56f3d14..a3ae6799e 100644 --- a/Dalamud/Interface/ColorHelpers.cs +++ b/Dalamud/Interface/ColorHelpers.cs @@ -56,10 +56,11 @@ public static class ColorHelpers var min = Math.Min(r, Math.Min(g, b)); var h = max; + var s = max; var v = max; var d = max - min; - var s = max == 0 ? 0 : d / max; + s = max == 0 ? 0 : d / max; if (max == min) { diff --git a/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs b/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs index e2f9d9970..e2f68eab2 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.ColorPickerWithPalette.cs @@ -1,9 +1,10 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; + namespace Dalamud.Interface.Components; /// <summary> diff --git a/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs b/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs index a8c3c03a3..ab2ed4724 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.DisabledButton.cs @@ -1,8 +1,9 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; + namespace Dalamud.Interface.Components; /// <summary> diff --git a/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs b/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs index 0d919cf6e..3392136d1 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs @@ -1,8 +1,9 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Common.Math; +using ImGuiNET; + namespace Dalamud.Interface.Components; /// <summary> @@ -44,7 +45,7 @@ public static partial class ImGuiComponents { using (ImRaii.TextWrapPos(ImGui.GetFontSize() * 35.0f)) { - ImGui.Text(helpText); + ImGui.TextUnformatted(helpText); } } } diff --git a/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs b/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs index 03befd11f..d2b1b4a36 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs @@ -1,9 +1,10 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; + namespace Dalamud.Interface.Components; /// <summary> @@ -181,10 +182,7 @@ public static partial class ImGuiComponents /// </summary> /// <param name="icon">Icon to show.</param> /// <param name="text">Text to show.</param> - /// <param name="size"> - /// Sets the size of the button. If either dimension is set to 0, - /// that dimension will conform to the size of the icon and text. - /// </param> + /// <param name="size">Sets the size of the button. If either dimension is set to 0, that dimension will conform to the size of the icon & text.</param> /// <returns>Indicator if button is clicked.</returns> public static bool IconButtonWithText(FontAwesomeIcon icon, string text, Vector2 size) => IconButtonWithText(icon, text, null, null, null, size); @@ -196,10 +194,7 @@ public static partial class ImGuiComponents /// <param name="defaultColor">The default color of the button.</param> /// <param name="activeColor">The color of the button when active.</param> /// <param name="hoveredColor">The color of the button when hovered.</param> - /// <param name="size"> - /// Sets the size of the button. If either dimension is set to 0, - /// that dimension will conform to the size of the icon and text. - /// </param> + /// <param name="size">Sets the size of the button. If either dimension is set to 0, that dimension will conform to the size of the icon & text.</param> /// <returns>Indicator if button is clicked.</returns> public static bool IconButtonWithText(FontAwesomeIcon icon, string text, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null, Vector2? size = null) { @@ -277,14 +272,15 @@ public static partial class ImGuiComponents /// <returns>Width.</returns> public static float GetIconButtonWithTextWidth(FontAwesomeIcon icon, string text) { - Vector2 iconSize; using (ImRaii.PushFont(UiBuilder.IconFont)) { - iconSize = ImGui.CalcTextSize(icon.ToIconString()); - } + var iconSize = ImGui.CalcTextSize(icon.ToIconString()); - var textSize = ImGui.CalcTextSize(text); - var iconPadding = 3 * ImGuiHelpers.GlobalScale; - return iconSize.X + textSize.X + (ImGui.GetStyle().FramePadding.X * 2) + iconPadding; + var textSize = ImGui.CalcTextSize(text); + + var iconPadding = 3 * ImGuiHelpers.GlobalScale; + + return iconSize.X + textSize.X + (ImGui.GetStyle().FramePadding.X * 2) + iconPadding; + } } } diff --git a/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs b/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs index 1dc454c9a..ad83c7201 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.IconButtonSelect.cs @@ -2,14 +2,12 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Components; -/// <summary> -/// ImGui component used to create a radio-like input that uses icon buttons. -/// </summary> public static partial class ImGuiComponents { /// <summary> diff --git a/Dalamud/Interface/Components/ImGuiComponents.Test.cs b/Dalamud/Interface/Components/ImGuiComponents.Test.cs index 4937b57c0..ddc083cd8 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.Test.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.Test.cs @@ -1,4 +1,4 @@ -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Components; @@ -12,6 +12,6 @@ public static partial class ImGuiComponents /// </summary> public static void Test() { - ImGui.Text("You are viewing the test component. The test was a success."u8); + ImGui.Text("You are viewing the test component. The test was a success."); } } diff --git a/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs b/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs index 84d38799c..43b54fc93 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.TextWithLabel.cs @@ -1,6 +1,7 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; + namespace Dalamud.Interface.Components; /// <summary> @@ -29,7 +30,7 @@ public static partial class ImGuiComponents { using (ImRaii.Tooltip()) { - ImGui.Text(hint); + ImGui.TextUnformatted(hint); } } } diff --git a/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs b/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs index b114eafd7..6d6e0f6c3 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.ToggleSwitch.cs @@ -1,6 +1,6 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Components; diff --git a/Dalamud/Interface/DalamudWindowOpenKinds.cs b/Dalamud/Interface/DalamudWindowOpenKinds.cs index 891f9281a..588ff858b 100644 --- a/Dalamud/Interface/DalamudWindowOpenKinds.cs +++ b/Dalamud/Interface/DalamudWindowOpenKinds.cs @@ -14,21 +14,16 @@ public enum PluginInstallerOpenKind /// Open to the "Installed Plugins" page. /// </summary> InstalledPlugins, - + /// <summary> /// Open to the "Can be updated" page. /// </summary> UpdateablePlugins, /// <summary> - /// Open to the "Plugin Changelogs" page. + /// Open to the "Changelogs" page. /// </summary> Changelogs, - - /// <summary> - /// Open to the "Dalamud Changelogs" page. - /// </summary> - DalamudChangelogs, } /// <summary> @@ -40,12 +35,12 @@ public enum SettingsOpenKind /// Open to the "General" page. /// </summary> General, - + /// <summary> /// Open to the "Look & Feel" page. /// </summary> LookAndFeel, - + /// <summary> /// Open to the "Auto Updates" page. /// </summary> @@ -56,11 +51,6 @@ public enum SettingsOpenKind /// </summary> ServerInfoBar, - /// <summary> - /// Open to the "Badges" page. - /// </summary> - Badge, - /// <summary> /// Open to the "Experimental" page. /// </summary> diff --git a/Dalamud/Interface/DragDrop/DragDropManager.cs b/Dalamud/Interface/DragDrop/DragDropManager.cs index 504bdc716..c9f0f9b80 100644 --- a/Dalamud/Interface/DragDrop/DragDropManager.cs +++ b/Dalamud/Interface/DragDrop/DragDropManager.cs @@ -1,11 +1,11 @@ using System.Collections.Generic; using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.IoC; using Dalamud.IoC.Internal; +using ImGuiNET; using Serilog; namespace Dalamud.Interface.DragDrop; @@ -32,7 +32,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa Service<InterfaceManager.InterfaceManagerWithScene>.GetAsync() .ContinueWith(t => { - this.windowHandlePtr = t.Result.Manager.GameWindowHandle; + this.windowHandlePtr = t.Result.Manager.WindowHandlePtr; this.Enable(); }); } @@ -103,7 +103,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa } /// <inheritdoc cref="IDragDropManager.CreateImGuiSource(string, Func{IDragDropManager, bool}, Func{IDragDropManager, bool})"/> - public unsafe void CreateImGuiSource(string label, Func<IDragDropManager, bool> validityCheck, Func<IDragDropManager, bool> tooltipBuilder) + public void CreateImGuiSource(string label, Func<IDragDropManager, bool> validityCheck, Func<IDragDropManager, bool> tooltipBuilder) { if (!this.IsDragging && !this.IsDropping()) { @@ -115,7 +115,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa return; } - ImGui.SetDragDropPayload(label, null, 0); + ImGui.SetDragDropPayload(label, nint.Zero, 0); if (this.CheckTooltipFrame(out var frame) && tooltipBuilder(this)) { this.lastTooltipFrame = frame; @@ -136,7 +136,7 @@ internal partial class DragDropManager : IInternalDisposableService, IDragDropMa unsafe { - if (ImGui.AcceptDragDropPayload(label, ImGuiDragDropFlags.AcceptBeforeDelivery).Handle != null && this.IsDropping()) + if (ImGui.AcceptDragDropPayload(label, ImGuiDragDropFlags.AcceptBeforeDelivery).NativePtr != null && this.IsDropping()) { this.lastDropFrame = -2; files = this.Files; diff --git a/Dalamud/Interface/DragDrop/DragDropTarget.cs b/Dalamud/Interface/DragDrop/DragDropTarget.cs index 8ac347c72..8115e7353 100644 --- a/Dalamud/Interface/DragDrop/DragDropTarget.cs +++ b/Dalamud/Interface/DragDrop/DragDropTarget.cs @@ -4,9 +4,8 @@ using System.Linq; using System.Runtime.InteropServices.ComTypes; using System.Text; -using Dalamud.Bindings.ImGui; using Dalamud.Utility; - +using ImGuiNET; using Serilog; namespace Dalamud.Interface.DragDrop; diff --git a/Dalamud/Interface/FontAwesome/FontAwesomeExtensions.cs b/Dalamud/Interface/FontAwesome/FontAwesomeExtensions.cs index 0bab4538a..2b8cb8c52 100644 --- a/Dalamud/Interface/FontAwesome/FontAwesomeExtensions.cs +++ b/Dalamud/Interface/FontAwesome/FontAwesomeExtensions.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Utility; @@ -37,7 +37,7 @@ public static class FontAwesomeExtensions public static IEnumerable<string> GetSearchTerms(this FontAwesomeIcon icon) { var searchTermsAttribute = icon.GetAttribute<FontAwesomeSearchTermsAttribute>(); - return searchTermsAttribute == null ? [] : searchTermsAttribute.SearchTerms; + return searchTermsAttribute == null ? new string[] { } : searchTermsAttribute.SearchTerms; } /// <summary> @@ -48,6 +48,6 @@ public static class FontAwesomeExtensions public static IEnumerable<string> GetCategories(this FontAwesomeIcon icon) { var categoriesAttribute = icon.GetAttribute<FontAwesomeCategoriesAttribute>(); - return categoriesAttribute == null ? [] : categoriesAttribute.Categories; + return categoriesAttribute == null ? new string[] { } : categoriesAttribute.Categories; } } diff --git a/Dalamud/Interface/FontAwesome/FontAwesomeHelpers.cs b/Dalamud/Interface/FontAwesome/FontAwesomeHelpers.cs index 51c896ad2..cf34d736e 100644 --- a/Dalamud/Interface/FontAwesome/FontAwesomeHelpers.cs +++ b/Dalamud/Interface/FontAwesome/FontAwesomeHelpers.cs @@ -16,7 +16,14 @@ public static class FontAwesomeHelpers /// <returns>list of font awesome icons.</returns> public static List<FontAwesomeIcon> GetIcons() { - return [.. Enum.GetValues<FontAwesomeIcon>().Where(icon => !icon.IsObsolete())]; + var icons = new List<FontAwesomeIcon>(); + foreach (var icon in Enum.GetValues(typeof(FontAwesomeIcon)).Cast<FontAwesomeIcon>().ToList()) + { + if (icon.IsObsolete()) continue; + icons.Add(icon); + } + + return icons; } /// <summary> @@ -68,7 +75,7 @@ public static class FontAwesomeHelpers { var name = Enum.GetName(icon)?.ToLowerInvariant(); var searchTerms = icon.GetSearchTerms(); - if (name!.Contains(search, StringComparison.InvariantCultureIgnoreCase) || searchTerms.Contains(search.ToLowerInvariant())) + if (name!.Contains(search.ToLowerInvariant()) || searchTerms.Contains(search.ToLowerInvariant())) { result.Add(icon); } @@ -98,7 +105,7 @@ public static class FontAwesomeHelpers var name = Enum.GetName(icon)?.ToLowerInvariant(); var searchTerms = icon.GetSearchTerms(); var categories = icon.GetCategories(); - if ((name!.Contains(search, StringComparison.InvariantCultureIgnoreCase) || searchTerms.Contains(search.ToLowerInvariant())) && categories.Contains(category)) + if ((name!.Contains(search.ToLowerInvariant()) || searchTerms.Contains(search.ToLowerInvariant())) && categories.Contains(category)) { result.Add(icon); } diff --git a/Dalamud/Interface/FontAwesome/FontAwesomeIcon.cs b/Dalamud/Interface/FontAwesome/FontAwesomeIcon.cs index 35df9cfbc..f88d7f8f0 100644 --- a/Dalamud/Interface/FontAwesome/FontAwesomeIcon.cs +++ b/Dalamud/Interface/FontAwesome/FontAwesomeIcon.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // <auto-generated> // Generated by Dalamud.FASharpGen - don't modify this file directly. -// Font-Awesome Version: 7.1.0 +// Font-Awesome Version: 6.4.2 // </auto-generated> //------------------------------------------------------------------------------ @@ -29,14 +29,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "address-book" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "address book", "contact", "directory", "employee", "index", "little black book", "portfolio", "rolodex", "uer", "username" })] + [FontAwesomeSearchTerms(new[] { "address book", "contact", "directory", "index", "little black book", "rolodex" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication", "Users + People" })] AddressBook = 0xF2B9, /// <summary> /// The Font Awesome "address-card" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "address card", "about", "contact", "employee", "id", "identification", "portfolio", "postcard", "profile", "registration", "uer", "username" })] + [FontAwesomeSearchTerms(new[] { "address card", "about", "contact", "id", "identification", "postcard", "profile", "registration" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Alphabet", "Business", "Communication", "Users + People" })] AddressCard = 0xF2BB, @@ -54,13 +54,6 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Automotive" })] AirFreshener = 0xF5D0, - /// <summary> - /// The Font Awesome "alarm-clock" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "alarm clock", "alarm", "alarm clock", "clock", "date", "late", "pending", "reminder", "sleep", "snooze", "timer", "timestamp", "watch" })] - [FontAwesomeCategoriesAttribute(new[] { "Alert", "Time", "Travel + Hotel" })] - AlarmClock = 0xF34E, - /// <summary> /// The Font Awesome "align-center" icon unicode character. /// </summary> @@ -120,28 +113,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "anchor-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "anchor circle check", "enable", "marina", "not affected", "ok", "okay", "port", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "anchor circle check", "marina", "not affected", "ok", "okay", "port" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Maritime" })] AnchorCircleCheck = 0xE4AA, /// <summary> /// The Font Awesome "anchor-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "anchor circle exclamation", "affected", "failed", "marina", "port" })] + [FontAwesomeSearchTerms(new[] { "anchor circle exclamation", "affected", "marina", "port" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Maritime" })] AnchorCircleExclamation = 0xE4AB, /// <summary> /// The Font Awesome "anchor-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "anchor circle xmark", "destroy", "marina", "port", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "anchor circle xmark", "destroy", "marina", "port" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Maritime" })] AnchorCircleXmark = 0xE4AC, /// <summary> /// The Font Awesome "anchor-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "anchor lock", "closed", "lockdown", "marina", "padlock", "port", "privacy", "quarantine" })] + [FontAwesomeSearchTerms(new[] { "anchor lock", "closed", "lockdown", "marina", "port", "quarantine" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Maritime" })] AnchorLock = 0xE4AD, @@ -176,7 +169,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "angle-down" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "angle down", "down arrowhead", "arrow", "caret", "download", "expand", "insert" })] + [FontAwesomeSearchTerms(new[] { "angle down", "down arrowhead", "arrow", "caret", "download", "expand" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] AngleDown = 0xF107, @@ -197,7 +190,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "angle-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "angle up", "up arrowhead", "arrow", "caret", "collapse", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "angle up", "up arrowhead", "arrow", "caret", "collapse", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] AngleUp = 0xF106, @@ -260,7 +253,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "circle-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle up", "arrow-circle-o-up", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "circle up", "arrow-circle-o-up" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ArrowAltCircleUp = 0xF35B, @@ -288,7 +281,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "circle-arrow-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle arrow up", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "circle arrow up", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ArrowCircleUp = 0xF0AA, @@ -316,7 +309,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrow-down-up-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow down up lock", "border", "closed", "crossing", "lockdown", "padlock", "privacy", "quarantine", "transfer" })] + [FontAwesomeSearchTerms(new[] { "arrow down up lock", "border", "closed", "crossing", "lockdown", "quarantine", "transfer" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Humanitarian" })] ArrowDownUpLock = 0xE4B0, @@ -344,7 +337,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrow-right-arrow-left" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow right arrow left", "arrow", "arrows", "reciprocate", "return", "swap", "transfer" })] + [FontAwesomeSearchTerms(new[] { "arrow right arrow left", "rightwards arrow over leftwards arrow", "arrow", "arrows", "reciprocate", "return", "swap", "transfer" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ArrowRightArrowLeft = 0xF0EC, @@ -365,14 +358,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrow-right-to-bracket" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow right to bracket", "arrow", "enter", "insert", "join", "log in", "login", "sign in", "sign up", "sign-in", "signin", "signup" })] + [FontAwesomeSearchTerms(new[] { "arrow right to bracket", "arrow", "enter", "join", "log in", "login", "sign in", "sign up", "sign-in", "signin", "signup" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ArrowRightToBracket = 0xF090, /// <summary> /// The Font Awesome "arrow-right-to-city" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow right to city", "building", "city", "exodus", "insert", "rural", "urban" })] + [FontAwesomeSearchTerms(new[] { "arrow right to city", "building", "city", "exodus", "rural", "urban" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] ArrowRightToCity = 0xE4B3, @@ -400,14 +393,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrows-down-to-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows down to line", "insert", "scale down", "sink" })] + [FontAwesomeSearchTerms(new[] { "arrows down to line", "scale down", "sink" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Humanitarian" })] ArrowsDownToLine = 0xE4B8, /// <summary> /// The Font Awesome "arrows-down-to-people" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows down to people", "affected", "focus", "insert", "targeted", "together", "uer" })] + [FontAwesomeSearchTerms(new[] { "arrows down to people", "affected", "focus", "targeted" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] ArrowsDownToPeople = 0xE4B9, @@ -442,14 +435,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrows-to-circle" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows to circle", "center", "concentrate", "coordinate", "coordination", "focal point", "focus", "insert" })] + [FontAwesomeSearchTerms(new[] { "arrows to circle", "center", "concentrate", "coordinate", "coordination", "focal point", "focus" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Humanitarian" })] ArrowsToCircle = 0xE4BD, /// <summary> /// The Font Awesome "arrows-to-dot" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows to dot", "assembly point", "center", "condense", "focus", "insert", "minimize" })] + [FontAwesomeSearchTerms(new[] { "arrows to dot", "assembly point", "center", "condense", "focus", "minimize" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Business", "Humanitarian", "Marketing" })] ArrowsToDot = 0xE4BE, @@ -470,7 +463,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrows-turn-to-dots" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows turn to dots", "destination", "insert", "nexus" })] + [FontAwesomeSearchTerms(new[] { "arrows turn to dots", "destination", "nexus" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Humanitarian" })] ArrowsTurnToDots = 0xE4C1, @@ -491,7 +484,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrows-up-to-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows up to line", "rise", "scale up", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "arrows up to line", "rise", "scale up" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Humanitarian" })] ArrowsUpToLine = 0xE4C2, @@ -526,28 +519,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrow-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow up", "upwards arrow", "forward", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "arrow up", "upwards arrow", "forward", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ArrowUp = 0xF062, /// <summary> /// The Font Awesome "arrow-up-from-bracket" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow up from bracket", "share", "transfer", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "arrow up from bracket", "share", "transfer", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ArrowUpFromBracket = 0xE09A, /// <summary> /// The Font Awesome "arrow-up-from-ground-water" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow up from ground water", "groundwater", "spring", "upgrade", "water supply", "water table" })] + [FontAwesomeSearchTerms(new[] { "arrow up from ground water", "groundwater", "spring", "water supply", "water table" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Energy", "Humanitarian" })] ArrowUpFromGroundWater = 0xE4B5, /// <summary> /// The Font Awesome "arrow-up-from-water-pump" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow up from water pump", "flood", "groundwater", "pump", "submersible", "sump pump", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "arrow up from water pump", "flood", "groundwater", "pump", "submersible", "sump pump" })] [FontAwesomeCategoriesAttribute(new[] { "Household", "Humanitarian" })] ArrowUpFromWaterPump = 0xE4B6, @@ -561,14 +554,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrow-up-right-dots" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow up right dots", "growth", "increase", "population", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "arrow up right dots", "growth", "increase", "population" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Humanitarian" })] ArrowUpRightDots = 0xE4B7, /// <summary> /// The Font Awesome "arrow-up-right-from-square" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow up right from square", "new", "open", "send", "share", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "arrow up right from square", "new", "open", "send", "share" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Humanitarian" })] ArrowUpRightFromSquare = 0xF08E, @@ -583,7 +576,7 @@ public enum FontAwesomeIcon /// The Font Awesome "asterisk" icon unicode character. /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0x2A. /// </summary> - [FontAwesomeSearchTerms(new[] { "asterisk", "asterisk", "heavy asterisk", "annotation", "details", "reference", "required", "star" })] + [FontAwesomeSearchTerms(new[] { "asterisk", "asterisk", "heavy asterisk", "annotation", "details", "reference", "star" })] [FontAwesomeCategoriesAttribute(new[] { "Punctuation + Symbols", "Spinners" })] Asterisk = 0xF069, @@ -598,14 +591,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "book-atlas" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "book atlas", "book", "directions", "geography", "globe", "knowledge", "library", "map", "research", "travel", "wayfinding" })] + [FontAwesomeSearchTerms(new[] { "book atlas", "book", "directions", "geography", "globe", "library", "map", "research", "travel", "wayfinding" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Travel + Hotel" })] Atlas = 0xF558, /// <summary> /// The Font Awesome "atom" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "atheism", "atheist", "atom", "atom symbol", "chemistry", "electron", "ion", "isotope", "knowledge", "neutron", "nuclear", "proton", "science" })] + [FontAwesomeSearchTerms(new[] { "atheism", "atheist", "atom", "atom symbol", "chemistry", "electron", "ion", "isotope", "neutron", "nuclear", "proton", "science" })] [FontAwesomeCategoriesAttribute(new[] { "Education", "Energy", "Religion", "Science", "Science Fiction", "Spinners" })] Atom = 0xF5D2, @@ -626,14 +619,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "award" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "award", "guarantee", "honor", "praise", "prize", "recognition", "ribbon", "trophy", "warranty" })] + [FontAwesomeSearchTerms(new[] { "award", "honor", "praise", "prize", "recognition", "ribbon", "trophy" })] [FontAwesomeCategoriesAttribute(new[] { "Education", "Political" })] Award = 0xF559, /// <summary> /// The Font Awesome "baby" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "baby", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "baby", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Humanitarian", "Users + People" })] Baby = 0xF77C, @@ -675,7 +668,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "bacterium" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bacterium", "antibiotic", "antibody", "covid-19", "germ", "health", "organism", "sick" })] + [FontAwesomeSearchTerms(new[] { "bacterium", "antibiotic", "antibody", "covid-19", "health", "organism", "sick" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health" })] Bacterium = 0xE05A, @@ -717,14 +710,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "ban" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "404", "abort", "ban", "block", "cancel", "circle", "delete", "deny", "disabled", "entry", "failed", "forbidden", "hide", "no", "not", "not found", "prohibit", "prohibited", "remove", "slash", "stop", "trash" })] + [FontAwesomeSearchTerms(new[] { "abort", "ban", "block", "cancel", "delete", "entry", "forbidden", "hide", "no", "not", "prohibit", "prohibited", "remove", "stop", "trash" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security" })] Ban = 0xF05E, /// <summary> /// The Font Awesome "bandage" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "adhesive bandage", "bandage", "boo boo", "first aid", "modify", "ouch" })] + [FontAwesomeSearchTerms(new[] { "adhesive bandage", "bandage", "boo boo", "first aid", "ouch" })] [FontAwesomeCategoriesAttribute(new[] { "Editing", "Medical + Health" })] BandAid = 0xF462, @@ -822,7 +815,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "bed" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bed", "hospital", "hotel", "lodging", "mattress", "patient", "person in bed", "rest", "sleep", "travel", "uer" })] + [FontAwesomeSearchTerms(new[] { "bed", "hospital", "hotel", "lodging", "mattress", "patient", "person in bed", "rest", "sleep", "travel" })] [FontAwesomeCategoriesAttribute(new[] { "Household", "Humanitarian", "Maps", "Travel + Hotel", "Users + People" })] Bed = 0xF236, @@ -836,7 +829,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "bell" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "alarm", "alert", "bel", "bell", "chime", "notification", "reminder", "request" })] + [FontAwesomeSearchTerms(new[] { "alarm", "alert", "bel", "bell", "chime", "notification", "reminder" })] [FontAwesomeCategoriesAttribute(new[] { "Alert", "Education", "Household", "Maps", "Shopping", "Social", "Time" })] Bell = 0xF0F3, @@ -871,14 +864,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-biking" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person biking", "bicycle", "bike", "biking", "cyclist", "pedal", "person biking", "summer", "uer", "wheel" })] + [FontAwesomeSearchTerms(new[] { "person biking", "bicycle", "bike", "biking", "cyclist", "pedal", "person biking", "summer", "wheel" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Sports + Fitness", "Users + People" })] Biking = 0xF84A, /// <summary> /// The Font Awesome "binoculars" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "binoculars", "glasses", "inspection", "magnifier", "magnify", "scenic", "spyglass", "view" })] + [FontAwesomeSearchTerms(new[] { "binoculars", "glasses", "magnify", "scenic", "spyglass", "view" })] [FontAwesomeCategoriesAttribute(new[] { "Astronomy", "Camping", "Maps", "Nature" })] Binoculars = 0xF1E5, @@ -920,7 +913,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-walking-with-cane" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person walking with cane", "blind", "cane", "follow", "uer" })] + [FontAwesomeSearchTerms(new[] { "person walking with cane", "blind", "cane" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Maps", "Users + People" })] Blind = 0xF29D, @@ -976,14 +969,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "book" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "book", "cover", "decorated", "diary", "documentation", "journal", "knowledge", "library", "notebook", "notebook with decorative cover", "read", "research", "scholar" })] + [FontAwesomeSearchTerms(new[] { "book", "cover", "decorated", "diary", "documentation", "journal", "library", "notebook", "notebook with decorative cover", "read", "research" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Maps", "Writing" })] Book = 0xF02D, /// <summary> /// The Font Awesome "book-bookmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "book bookmark", "knowledge", "library", "research" })] + [FontAwesomeSearchTerms(new[] { "book bookmark", "library", "research" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Writing" })] BookBookmark = 0xE0BB, @@ -1011,7 +1004,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "book-open" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "book open", "book", "book", "flyer", "knowledge", "library", "notebook", "open", "open book", "pamphlet", "reading", "research" })] + [FontAwesomeSearchTerms(new[] { "book open", "book", "book", "flyer", "library", "notebook", "open", "open book", "pamphlet", "reading", "research" })] [FontAwesomeCategoriesAttribute(new[] { "Education" })] BookOpen = 0xF518, @@ -1137,7 +1130,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "brain" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "brain", "cerebellum", "gray matter", "intellect", "intelligent", "knowledge", "medulla oblongata", "mind", "noodle", "scholar", "wit" })] + [FontAwesomeSearchTerms(new[] { "brain", "cerebellum", "gray matter", "intellect", "intelligent", "medulla oblongata", "mind", "noodle", "wit" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Science" })] Brain = 0xF5DC, @@ -1165,28 +1158,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "bridge-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bridge circle check", "bridge", "enable", "not affected", "ok", "okay", "road", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "bridge circle check", "bridge", "not affected", "ok", "okay", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] BridgeCircleCheck = 0xE4C9, /// <summary> /// The Font Awesome "bridge-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bridge circle exclamation", "affected", "bridge", "failed", "road" })] + [FontAwesomeSearchTerms(new[] { "bridge circle exclamation", "affected", "bridge", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] BridgeCircleExclamation = 0xE4CA, /// <summary> /// The Font Awesome "bridge-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bridge circle xmark", "bridge", "destroy", "road", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "bridge circle xmark", "bridge", "destroy", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] BridgeCircleXmark = 0xE4CB, /// <summary> /// The Font Awesome "bridge-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bridge lock", "bridge", "closed", "lockdown", "padlock", "privacy", "quarantine", "road" })] + [FontAwesomeSearchTerms(new[] { "bridge lock", "bridge", "closed", "lockdown", "quarantine", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] BridgeLock = 0xE4CC, @@ -1200,7 +1193,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "briefcase" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bag", "briefcas", "briefcase", "business", "luggage", "offer", "office", "portfolio", "work" })] + [FontAwesomeSearchTerms(new[] { "bag", "briefcas", "briefcase", "business", "luggage", "office", "work" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Maps", "Travel + Hotel" })] Briefcase = 0xF0B1, @@ -1214,7 +1207,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "tower-broadcast" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "tower broadcast", "airwaves", "antenna", "communication", "emergency", "radio", "reception", "signal", "waves" })] + [FontAwesomeSearchTerms(new[] { "tower broadcast", "airwaves", "antenna", "communication", "emergency", "radio", "reception", "waves" })] [FontAwesomeCategoriesAttribute(new[] { "Connectivity", "Energy", "Film + Video", "Humanitarian" })] BroadcastTower = 0xF519, @@ -1228,7 +1221,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "brush" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "brush", "art", "bristles", "color", "handle", "maintenance", "modify", "paint" })] + [FontAwesomeSearchTerms(new[] { "brush", "art", "bristles", "color", "handle", "paint" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Design", "Editing" })] Brush = 0xF55D, @@ -1256,7 +1249,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "bug-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bug slash", "beetle", "disabled", "fix", "glitch", "insect", "optimize", "repair", "report", "warning" })] + [FontAwesomeSearchTerms(new[] { "bug slash", "beetle", "fix", "glitch", "insect", "optimize", "repair", "report", "warning" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Security" })] BugSlash = 0xE490, @@ -1277,42 +1270,42 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "building-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "building circle check", "building", "city", "enable", "not affected", "office", "ok", "okay", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "building circle check", "building", "city", "not affected", "office", "ok", "okay" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] BuildingCircleCheck = 0xE4D2, /// <summary> /// The Font Awesome "building-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "building circle exclamation", "affected", "building", "city", "failed", "office" })] + [FontAwesomeSearchTerms(new[] { "building circle exclamation", "affected", "building", "city", "office" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] BuildingCircleExclamation = 0xE4D3, /// <summary> /// The Font Awesome "building-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "building circle xmark", "building", "city", "destroy", "office", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "building circle xmark", "building", "city", "destroy", "office" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] BuildingCircleXmark = 0xE4D4, /// <summary> /// The Font Awesome "building-flag" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "building flag", "building", "city", "diplomat", "embassy", "flag", "headquarters", "united nations" })] + [FontAwesomeSearchTerms(new[] { "building flag", " city", "building", "diplomat", "embassy", "flag", "headquarters", "united nations" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian", "Political" })] BuildingFlag = 0xE4D5, /// <summary> /// The Font Awesome "building-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "building lock", "building", "city", "closed", "lock", "lockdown", "padlock", "privacy", "quarantine", "secure" })] + [FontAwesomeSearchTerms(new[] { "building lock", "building", "city", "closed", "lock", "lockdown", "quarantine", "secure" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian", "Security" })] BuildingLock = 0xE4D6, /// <summary> /// The Font Awesome "building-ngo" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "building ngo", "building", "city", "non governmental organization", "office" })] + [FontAwesomeSearchTerms(new[] { "building ngo", " city", "building", "non governmental organization", "office" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] BuildingNgo = 0xE4D7, @@ -1333,7 +1326,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "building-user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "building user", "apartment", "building", "city", "employee", "uer" })] + [FontAwesomeSearchTerms(new[] { "building user", "apartment", "building", "city" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] BuildingUser = 0xE4DA, @@ -1347,7 +1340,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "bullhorn" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bullhorn", "bullhorn", "announcement", "broadcast", "loud", "louder", "loudspeaker", "megaphone", "public address", "request", "share" })] + [FontAwesomeSearchTerms(new[] { "bullhorn", "bullhorn", "announcement", "broadcast", "loud", "louder", "loudspeaker", "megaphone", "public address", "share" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication", "Marketing", "Political", "Shopping" })] Bullhorn = 0xF0A1, @@ -1389,17 +1382,10 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "business-time" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "business time", "alarm", "briefcase", "business socks", "clock", "flight of the conchords", "portfolio", "reminder", "wednesday" })] + [FontAwesomeSearchTerms(new[] { "business time", "alarm", "briefcase", "business socks", "clock", "flight of the conchords", "reminder", "wednesday" })] [FontAwesomeCategoriesAttribute(new[] { "Business" })] BusinessTime = 0xF64A, - /// <summary> - /// The Font Awesome "bus-side" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "bus side", "bus", "public transportation", "transportation", "travel", "vehicle" })] - [FontAwesomeCategoriesAttribute(new[] { "Automotive", "Humanitarian", "Logistics", "Transportation", "Travel + Hotel" })] - BusSide = 0xE81D, - /// <summary> /// The Font Awesome "calculator" icon unicode character. /// </summary> @@ -1424,7 +1410,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "calendar-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "calendar check", "accept", "agree", "appointment", "confirm", "correct", "date", "day", "done", "enable", "event", "month", "ok", "schedule", "select", "success", "tick", "time", "todo", "validate", "warranty", "when", "working", "year" })] + [FontAwesomeSearchTerms(new[] { "calendar check", "accept", "agree", "appointment", "confirm", "correct", "date", "day", "done", "event", "month", "ok", "schedule", "select", "success", "tick", "time", "todo", "when", "year" })] [FontAwesomeCategoriesAttribute(new[] { "Time" })] CalendarCheck = 0xF274, @@ -1452,7 +1438,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "calendar-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "calendar xmark", "archive", "calendar", "date", "day", "delete", "event", "month", "remove", "schedule", "time", "uncheck", "when", "x", "year" })] + [FontAwesomeSearchTerms(new[] { "calendar xmark", "archive", "calendar", "date", "day", "delete", "event", "month", "remove", "schedule", "time", "when", "x", "year" })] [FontAwesomeCategoriesAttribute(new[] { "Time" })] CalendarTimes = 0xF273, @@ -1466,21 +1452,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "camera" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "camera", "image", "img", "lens", "photo", "picture", "record", "shutter", "video" })] + [FontAwesomeSearchTerms(new[] { "camera", "image", "lens", "photo", "picture", "record", "shutter", "video" })] [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware", "Photos + Images", "Shopping", "Social" })] Camera = 0xF030, /// <summary> /// The Font Awesome "camera-retro" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "camera retro", "camera", "image", "img", "lens", "photo", "picture", "record", "shutter", "video" })] + [FontAwesomeSearchTerms(new[] { "camera retro", "camera", "image", "lens", "photo", "picture", "record", "shutter", "video" })] [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware", "Photos + Images", "Shopping" })] CameraRetro = 0xF083, /// <summary> /// The Font Awesome "camera-rotate" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "camera rotate", "flip", "front-facing", "img", "photo", "selfie" })] + [FontAwesomeSearchTerms(new[] { "camera rotate", "flip", "front-facing", "photo", "selfie" })] [FontAwesomeCategoriesAttribute(new[] { "Photos + Images" })] CameraRotate = 0xE0D8, @@ -1571,7 +1557,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "square-caret-down" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square caret down", "arrow", "caret-square-o-down", "dropdown", "expand", "insert", "menu", "more", "triangle" })] + [FontAwesomeSearchTerms(new[] { "square caret down", "arrow", "caret-square-o-down", "dropdown", "expand", "menu", "more", "triangle" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] CaretSquareDown = 0xF150, @@ -1592,14 +1578,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "square-caret-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square caret up", "arrow", "caret-square-o-up", "collapse", "triangle", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "square caret up", "arrow", "caret-square-o-up", "collapse", "triangle", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] CaretSquareUp = 0xF151, /// <summary> /// The Font Awesome "caret-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "caret up", "arrow", "collapse", "triangle", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "caret up", "arrow", "collapse", "triangle" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] CaretUp = 0xF0D8, @@ -1627,7 +1613,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "cart-arrow-down" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "cart arrow down", "download", "insert", "save", "shopping" })] + [FontAwesomeSearchTerms(new[] { "cart arrow down", "download", "save", "shopping" })] [FontAwesomeCategoriesAttribute(new[] { "Shopping" })] CartArrowDown = 0xF218, @@ -1676,7 +1662,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "certificate" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "certificate", "badge", "guarantee", "star", "verified" })] + [FontAwesomeSearchTerms(new[] { "certificate", "badge", "star", "verified" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Shapes", "Shopping", "Spinners" })] Certificate = 0xF0A3, @@ -1697,98 +1683,91 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "chalkboard-user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chalkboard user", "blackboard", "instructor", "learning", "professor", "school", "uer", "whiteboard", "writing" })] + [FontAwesomeSearchTerms(new[] { "chalkboard user", "blackboard", "instructor", "learning", "professor", "school", "whiteboard", "writing" })] [FontAwesomeCategoriesAttribute(new[] { "Education", "Users + People" })] ChalkboardTeacher = 0xF51C, /// <summary> /// The Font Awesome "charging-station" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "charging station", "car charger", "charge", "charging", "electric", "ev", "tesla", "vehicle" })] + [FontAwesomeSearchTerms(new[] { "charging station", "electric", "ev", "tesla", "vehicle" })] [FontAwesomeCategoriesAttribute(new[] { "Automotive", "Energy" })] ChargingStation = 0xF5E7, /// <summary> /// The Font Awesome "chart-area" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chart area", "analytics", "area", "chart", "graph", "performance", "revenue", "statistics" })] + [FontAwesomeSearchTerms(new[] { "chart area", "analytics", "area", "chart", "graph" })] [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams" })] ChartArea = 0xF1FE, /// <summary> /// The Font Awesome "chart-bar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chart bar", "analytics", "bar", "chart", "graph", "performance", "statistics" })] + [FontAwesomeSearchTerms(new[] { "chart bar", "analytics", "bar", "chart", "graph" })] [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams" })] ChartBar = 0xF080, /// <summary> /// The Font Awesome "chart-column" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chart column", "bar", "bar chart", "chart", "graph", "performance", "revenue", "statistics", "track", "trend" })] + [FontAwesomeSearchTerms(new[] { "chart column", "bar", "bar chart", "chart", "graph", "track", "trend" })] [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams" })] ChartColumn = 0xE0E3, - /// <summary> - /// The Font Awesome "chart-diagram" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "chart diagram", "algorithm", "analytics", "flow", "graph" })] - [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams", "Coding" })] - ChartDiagram = 0xE695, - /// <summary> /// The Font Awesome "chart-gantt" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chart gantt", "chart", "graph", "performance", "statistics", "track", "trend" })] + [FontAwesomeSearchTerms(new[] { "chart gantt", "chart", "graph", "track", "trend" })] [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams" })] ChartGantt = 0xE0E4, /// <summary> /// The Font Awesome "chart-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chart line", "activity", "analytics", "chart", "dashboard", "gain", "graph", "increase", "line", "performance", "revenue", "statistics" })] + [FontAwesomeSearchTerms(new[] { "chart line", "activity", "analytics", "chart", "dashboard", "gain", "graph", "increase", "line" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Charts + Diagrams", "Money" })] ChartLine = 0xF201, /// <summary> /// The Font Awesome "chart-pie" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chart pie", "analytics", "chart", "diagram", "graph", "performance", "pie", "revenue", "statistics" })] + [FontAwesomeSearchTerms(new[] { "chart pie", "analytics", "chart", "diagram", "graph", "pie" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Charts + Diagrams", "Money" })] ChartPie = 0xF200, /// <summary> /// The Font Awesome "chart-simple" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chart simple", "analytics", "bar", "chart", "column", "graph", "performance", "revenue", "row", "statistics", "trend" })] + [FontAwesomeSearchTerms(new[] { "chart simple", "analytics", "bar", "chart", "column", "graph", "row", "trend" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Charts + Diagrams", "Editing", "Logistics", "Marketing" })] ChartSimple = 0xE473, /// <summary> /// The Font Awesome "check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "check mark", "accept", "agree", "check", "check mark", "checkmark", "confirm", "correct", "coupon", "done", "enable", "mark", "notice", "notification", "notify", "ok", "select", "success", "tick", "todo", "true", "validate", "working", "yes", "✓" })] + [FontAwesomeSearchTerms(new[] { "check mark", "accept", "agree", "check", "check mark", "checkmark", "confirm", "correct", "done", "mark", "notice", "notification", "notify", "ok", "select", "success", "tick", "todo", "yes", "✓" })] [FontAwesomeCategoriesAttribute(new[] { "Editing", "Punctuation + Symbols", "Text Formatting" })] Check = 0xF00C, /// <summary> /// The Font Awesome "circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle check", "accept", "affected", "agree", "clear", "confirm", "correct", "coupon", "done", "enable", "ok", "select", "success", "tick", "todo", "validate", "working", "yes" })] + [FontAwesomeSearchTerms(new[] { "circle check", "accept", "affected", "agree", "clear", "confirm", "correct", "done", "ok", "select", "success", "tick", "todo", "yes" })] [FontAwesomeCategoriesAttribute(new[] { "Editing", "Text Formatting", "Toggle" })] CheckCircle = 0xF058, /// <summary> /// The Font Awesome "check-double" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "check double", "accept", "agree", "checkmark", "confirm", "correct", "coupon", "done", "enable", "notice", "notification", "notify", "ok", "select", "select all", "success", "tick", "todo", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "check double", "accept", "agree", "checkmark", "confirm", "correct", "done", "notice", "notification", "notify", "ok", "select", "success", "tick", "todo" })] [FontAwesomeCategoriesAttribute(new[] { "Editing", "Political", "Punctuation + Symbols", "Text Formatting" })] CheckDouble = 0xF560, /// <summary> /// The Font Awesome "square-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square check", "accept", "agree", "box", "button", "check", "check box with check", "check mark button", "checkmark", "confirm", "correct", "coupon", "done", "enable", "mark", "ok", "select", "success", "tick", "todo", "validate", "working", "yes", "✓" })] + [FontAwesomeSearchTerms(new[] { "square check", "accept", "agree", "box", "button", "check", "check box with check", "check mark button", "checkmark", "confirm", "correct", "done", "mark", "ok", "select", "success", "tick", "todo", "yes", "✓" })] [FontAwesomeCategoriesAttribute(new[] { "Editing", "Text Formatting" })] CheckSquare = 0xF14A, @@ -1879,14 +1858,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "circle-chevron-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle chevron up", "arrow", "collapse", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "circle chevron up", "arrow", "collapse", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ChevronCircleUp = 0xF139, /// <summary> /// The Font Awesome "chevron-down" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chevron down", "arrow", "download", "expand", "insert" })] + [FontAwesomeSearchTerms(new[] { "chevron down", "arrow", "download", "expand" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ChevronDown = 0xF078, @@ -1907,14 +1886,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "chevron-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "chevron up", "arrow", "collapse", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "chevron up", "arrow", "collapse", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ChevronUp = 0xF077, /// <summary> /// The Font Awesome "child" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "child", "boy", "girl", "kid", "toddler", "uer", "young", "youth" })] + [FontAwesomeSearchTerms(new[] { "child", "boy", "girl", "kid", "toddler", "young", "youth" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Users + People" })] Child = 0xF1AE, @@ -1928,21 +1907,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "child-dress" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "child dress", "boy", "girl", "kid", "toddler", "uer", "young", "youth" })] + [FontAwesomeSearchTerms(new[] { "child dress", "boy", "girl", "kid", "toddler", "young", "youth" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Users + People" })] ChildDress = 0xE59C, /// <summary> /// The Font Awesome "child-reaching" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "child reaching", "boy", "girl", "kid", "toddler", "uer", "young", "youth" })] + [FontAwesomeSearchTerms(new[] { "child reaching", "boy", "girl", "kid", "toddler", "young", "youth" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Users + People" })] ChildReaching = 0xE59D, /// <summary> /// The Font Awesome "children" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "children", "boy", "child", "girl", "kid", "kids", "together", "uer", "young", "youth" })] + [FontAwesomeSearchTerms(new[] { "children", "boy", "child", "girl", "kid", "kids", "young", "youth" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Humanitarian", "Users + People" })] Children = 0xE4E1, @@ -1998,49 +1977,49 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "clipboard" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clipboard", "copy", "notepad", "notes", "paste", "record" })] + [FontAwesomeSearchTerms(new[] { "clipboar", "clipboard", "copy", "notes", "paste", "record" })] [FontAwesomeCategoriesAttribute(new[] { "Business" })] Clipboard = 0xF328, /// <summary> /// The Font Awesome "clipboard-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clipboard check", "accept", "agree", "confirm", "coupon", "done", "enable", "ok", "select", "success", "tick", "todo", "validate", "working", "yes" })] - [FontAwesomeCategoriesAttribute(new[] { "Business", "Logistics", "Science" })] + [FontAwesomeSearchTerms(new[] { "clipboard check", "accept", "agree", "confirm", "done", "ok", "select", "success", "tick", "todo", "yes" })] + [FontAwesomeCategoriesAttribute(new[] { "Logistics", "Science" })] ClipboardCheck = 0xF46C, /// <summary> /// The Font Awesome "clipboard-list" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clipboard list", "cheatsheet", "checklist", "completed", "done", "finished", "intinerary", "ol", "schedule", "summary", "survey", "tick", "todo", "ul", "wishlist" })] + [FontAwesomeSearchTerms(new[] { "clipboard list", "checklist", "completed", "done", "finished", "intinerary", "ol", "schedule", "tick", "todo", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Logistics" })] ClipboardList = 0xF46D, /// <summary> /// The Font Awesome "clipboard-question" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clipboard question", "assistance", "faq", "interview", "query", "question" })] + [FontAwesomeSearchTerms(new[] { "clipboard question", "assistance", "interview", "query", "question" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Humanitarian", "Logistics" })] ClipboardQuestion = 0xE4E3, /// <summary> /// The Font Awesome "clipboard-user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clipboard user", "attendance", "employee", "record", "roster", "staff", "uer" })] - [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Medical + Health", "Users + People" })] + [FontAwesomeSearchTerms(new[] { "clipboard user", "attendance", "record", "roster", "staff" })] + [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health", "Users + People" })] ClipboardUser = 0xF7F3, /// <summary> /// The Font Awesome "clock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "00", "4", "4:00", "clock", "date", "four", "four o’clock", "hour", "late", "minute", "o'clock", "o’clock", "pending", "schedule", "ticking", "time", "timer", "timestamp", "watch" })] + [FontAwesomeSearchTerms(new[] { "00", "4", "4:00", "clock", "date", "four", "four o’clock", "hour", "late", "minute", "o'clock", "o’clock", "schedule", "ticking", "time", "timer", "timestamp", "watch" })] [FontAwesomeCategoriesAttribute(new[] { "Time" })] Clock = 0xF017, /// <summary> /// The Font Awesome "clone" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clone", "add", "arrange", "copy", "duplicate", "new", "paste" })] + [FontAwesomeSearchTerms(new[] { "clone", "arrange", "copy", "duplicate", "paste" })] [FontAwesomeCategoriesAttribute(new[] { "Design", "Files", "Photos + Images" })] Clone = 0xF24D, @@ -2133,7 +2112,7 @@ public enum FontAwesomeIcon /// The Font Awesome "cloud-arrow-up" icon unicode character. /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0xF0EE. /// </summary> - [FontAwesomeSearchTerms(new[] { "cloud arrow up", "import", "save", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "cloud arrow up", "import", "save", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Connectivity" })] CloudUploadAlt = 0xF382, @@ -2154,14 +2133,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "code" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "brackets", "code", "development", "html", "mysql", "sql" })] + [FontAwesomeSearchTerms(new[] { "brackets", "code", "development", "html" })] [FontAwesomeCategoriesAttribute(new[] { "Coding" })] Code = 0xF121, /// <summary> /// The Font Awesome "code-branch" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "code branch", "branch", "git", "github", "mysql", "rebase", "sql", "svn", "vcs", "version" })] + [FontAwesomeSearchTerms(new[] { "code branch", "branch", "git", "github", "rebase", "svn", "vcs", "version" })] [FontAwesomeCategoriesAttribute(new[] { "Coding" })] CodeBranch = 0xF126, @@ -2210,21 +2189,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "gear" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "cog", "cogwheel", "configuration", "gear", "mechanical", "modify", "settings", "sprocket", "tool", "wheel" })] + [FontAwesomeSearchTerms(new[] { "cog", "cogwheel", "gear", "mechanical", "settings", "sprocket", "tool", "wheel" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Editing", "Spinners" })] Cog = 0xF013, /// <summary> /// The Font Awesome "gears" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "configuration", "gears", "mechanical", "modify", "settings", "sprocket", "wheel" })] + [FontAwesomeSearchTerms(new[] { "gears", "mechanical", "settings", "sprocket", "wheel" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Logistics" })] Cogs = 0xF085, /// <summary> /// The Font Awesome "coins" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "coins", "currency", "dime", "financial", "gold", "money", "penny", "premium" })] + [FontAwesomeSearchTerms(new[] { "coins", "currency", "dime", "financial", "gold", "money", "penny" })] [FontAwesomeCategoriesAttribute(new[] { "Money" })] Coins = 0xF51E, @@ -2238,70 +2217,63 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "table-columns" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "table columns", "browser", "category", "dashboard", "organize", "panes", "split" })] + [FontAwesomeSearchTerms(new[] { "table columns", "browser", "dashboard", "organize", "panes", "split" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Text Formatting" })] Columns = 0xF0DB, /// <summary> /// The Font Awesome "comment" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comment", "right speech bubble", "answer", "bubble", "chat", "commenting", "conversation", "conversation", "discussion", "feedback", "message", "note", "notification", "sms", "speech", "talk", "talking", "texting" })] + [FontAwesomeSearchTerms(new[] { "comment", "right speech bubble", "bubble", "chat", "commenting", "conversation", "feedback", "message", "note", "notification", "sms", "speech", "texting" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Shapes", "Social" })] Comment = 0xF075, /// <summary> /// The Font Awesome "message" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "answer", "bubble", "chat", "commenting", "conversation", "conversation", "discussion", "feedback", "message", "note", "notification", "sms", "speech", "talk", "talking", "texting" })] + [FontAwesomeSearchTerms(new[] { "bubble", "chat", "commenting", "conversation", "feedback", "message", "note", "notification", "sms", "speech", "texting" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Social" })] CommentAlt = 0xF27A, /// <summary> /// The Font Awesome "comment-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comment dollar", "answer", "bubble", "chat", "commenting", "conversation", "feedback", "message", "money", "note", "notification", "pay", "salary", "sms", "speech", "spend", "texting", "transfer" })] + [FontAwesomeSearchTerms(new[] { "comment dollar", "bubble", "chat", "commenting", "conversation", "feedback", "message", "money", "note", "notification", "pay", "sms", "speech", "spend", "texting", "transfer" })] [FontAwesomeCategoriesAttribute(new[] { "Marketing", "Money" })] CommentDollar = 0xF651, /// <summary> /// The Font Awesome "comment-dots" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comment dots", "answer", "balloon", "bubble", "chat", "comic", "commenting", "conversation", "dialog", "feedback", "message", "more", "note", "notification", "reply", "request", "sms", "speech", "speech balloon", "texting" })] + [FontAwesomeSearchTerms(new[] { "comment dots", "balloon", "bubble", "chat", "comic", "commenting", "conversation", "dialog", "feedback", "message", "more", "note", "notification", "reply", "sms", "speech", "speech balloon", "texting" })] [FontAwesomeCategoriesAttribute(new[] { "Communication" })] CommentDots = 0xF4AD, /// <summary> /// The Font Awesome "comment-medical" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comment medical", "advice", "answer", "bubble", "chat", "commenting", "conversation", "diagnose", "feedback", "message", "note", "notification", "prescription", "sms", "speech", "texting" })] + [FontAwesomeSearchTerms(new[] { "comment medical", "advice", "bubble", "chat", "commenting", "conversation", "diagnose", "feedback", "message", "note", "notification", "prescription", "sms", "speech", "texting" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Medical + Health" })] CommentMedical = 0xF7F5, - /// <summary> - /// The Font Awesome "comment-nodes" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "comment nodes", "ai", "artificial intelligence", "cluster", "language", "model", "network", "neuronal" })] - [FontAwesomeCategoriesAttribute(new[] { "Coding", "Communication" })] - CommentNodes = 0xE696, - /// <summary> /// The Font Awesome "comments" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comments", "two speech bubbles", "answer", "bubble", "chat", "commenting", "conversation", "conversation", "discussion", "feedback", "message", "note", "notification", "sms", "speech", "talk", "talking", "texting" })] + [FontAwesomeSearchTerms(new[] { "comments", "two speech bubbles", "bubble", "chat", "commenting", "conversation", "feedback", "message", "note", "notification", "sms", "speech", "texting" })] [FontAwesomeCategoriesAttribute(new[] { "Communication" })] Comments = 0xF086, /// <summary> /// The Font Awesome "comments-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comments dollar", "answer", "bubble", "chat", "commenting", "conversation", "feedback", "message", "money", "note", "notification", "pay", "salary", "sms", "speech", "spend", "texting", "transfer" })] + [FontAwesomeSearchTerms(new[] { "comments dollar", "bubble", "chat", "commenting", "conversation", "feedback", "message", "money", "note", "notification", "pay", "sms", "speech", "spend", "texting", "transfer" })] [FontAwesomeCategoriesAttribute(new[] { "Marketing", "Money" })] CommentsDollar = 0xF653, /// <summary> /// The Font Awesome "comment-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comment slash", "answer", "bubble", "cancel", "chat", "commenting", "conversation", "disabled", "feedback", "message", "mute", "note", "notification", "quiet", "sms", "speech", "texting" })] + [FontAwesomeSearchTerms(new[] { "comment slash", "bubble", "cancel", "chat", "commenting", "conversation", "feedback", "message", "mute", "note", "notification", "quiet", "sms", "speech", "texting" })] [FontAwesomeCategoriesAttribute(new[] { "Communication" })] CommentSlash = 0xF4B3, @@ -2329,7 +2301,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "down-left-and-up-right-to-center" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "down left and up right to center", "collapse", "fullscreen", "minimize", "move", "resize", "scale", "shrink", "size", "smaller" })] + [FontAwesomeSearchTerms(new[] { "down left and up right to center", "collapse", "fullscreen", "minimize", "move", "resize", "shrink", "smaller" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] CompressAlt = 0xF422, @@ -2350,7 +2322,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "bell-concierge" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bell concierge", "attention", "bell", "bellhop", "bellhop bell", "hotel", "receptionist", "request", "service", "support" })] + [FontAwesomeSearchTerms(new[] { "bell concierge", "attention", "bell", "bellhop", "bellhop bell", "hotel", "receptionist", "service", "support" })] [FontAwesomeCategoriesAttribute(new[] { "Travel + Hotel" })] ConciergeBell = 0xF562, @@ -2406,14 +2378,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "crop" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "crop", "design", "frame", "mask", "modify", "resize", "shrink" })] + [FontAwesomeSearchTerms(new[] { "crop", "design", "frame", "mask", "resize", "shrink" })] [FontAwesomeCategoriesAttribute(new[] { "Design", "Editing" })] Crop = 0xF125, /// <summary> /// The Font Awesome "crop-simple" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "crop simple", "design", "frame", "mask", "modify", "resize", "shrink" })] + [FontAwesomeSearchTerms(new[] { "crop simple", "design", "frame", "mask", "resize", "shrink" })] [FontAwesomeCategoriesAttribute(new[] { "Design", "Editing" })] CropAlt = 0xF565, @@ -2441,7 +2413,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "crown" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "award", "clothing", "crown", "favorite", "king", "queen", "royal", "tiara", "vip" })] + [FontAwesomeSearchTerms(new[] { "award", "clothing", "crown", "favorite", "king", "queen", "royal", "tiara" })] [FontAwesomeCategoriesAttribute(new[] { "Shapes" })] Crown = 0xF521, @@ -2483,14 +2455,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "scissors" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "black safety scissors", "white scissors", "clip", "cutting", "equipment", "modify", "scissors", "snip", "tool" })] + [FontAwesomeSearchTerms(new[] { "black safety scissors", "white scissors", "clip", "cutting", "scissors", "snip", "tool" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design", "Editing", "Files" })] Cut = 0xF0C4, /// <summary> /// The Font Awesome "database" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "database", "computer", "development", "directory", "memory", "mysql", "sql", "storage" })] + [FontAwesomeSearchTerms(new[] { "database", "computer", "development", "directory", "memory", "storage" })] [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware" })] Database = 0xF1C0, @@ -2498,7 +2470,7 @@ public enum FontAwesomeIcon /// The Font Awesome "ear-deaf" icon unicode character. /// </summary> [FontAwesomeSearchTerms(new[] { "ear deaf", "ear", "hearing", "sign language" })] - [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Communication" })] + [FontAwesomeCategoriesAttribute(new[] { "Accessibility" })] Deaf = 0xF2A4, /// <summary> @@ -2526,7 +2498,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-dots-from-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person dots from line", "allergy", "diagnosis", "uer" })] + [FontAwesomeSearchTerms(new[] { "person dots from line", "allergy", "diagnosis" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Users + People" })] Diagnoses = 0xF470, @@ -2554,7 +2526,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "diamond" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "diamond", "ace", "card", "cards", "diamond suit", "game", "gem", "gemstone", "poker", "suit" })] + [FontAwesomeSearchTerms(new[] { "diamond", "card", "cards", "diamond suit", "game", "gem", "gemstone", "poker", "suit" })] [FontAwesomeCategoriesAttribute(new[] { "Gaming", "Shapes" })] Diamond = 0xF219, @@ -2681,7 +2653,7 @@ public enum FontAwesomeIcon /// The Font Awesome "dollar-sign" icon unicode character. /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0x24. /// </summary> - [FontAwesomeSearchTerms(new[] { "dollar sign", "dollar sign", "coupon", "currency", "dollar", "heavy dollar sign", "investment", "money", "premium", "revenue", "salary" })] + [FontAwesomeSearchTerms(new[] { "dollar sign", "dollar sign", "currency", "dollar", "heavy dollar sign", "money" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Maps", "Money" })] DollarSign = 0xF155, @@ -2702,7 +2674,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "circle-dollar-to-slot" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle dollar to slot", "contribute", "generosity", "gift", "give", "premium" })] + [FontAwesomeSearchTerms(new[] { "circle dollar to slot", "contribute", "generosity", "gift", "give" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Money", "Political" })] Donate = 0xF4B9, @@ -2716,7 +2688,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "door-closed" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "door closed", "doo", "door", "enter", "exit", "locked", "privacy" })] + [FontAwesomeSearchTerms(new[] { "door closed", "doo", "door", "enter", "exit", "locked" })] [FontAwesomeCategoriesAttribute(new[] { "Household", "Security", "Travel + Hotel" })] DoorClosed = 0xF52A, @@ -2744,7 +2716,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "download" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "download", "export", "hard drive", "insert", "save", "transfer" })] + [FontAwesomeSearchTerms(new[] { "download", "export", "hard drive", "save", "transfer" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Devices + Hardware" })] Download = 0xF019, @@ -2793,7 +2765,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "dumbbell" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "dumbbell", "exercise", "gym", "strength", "weight", "weight-lifting", "workout" })] + [FontAwesomeSearchTerms(new[] { "dumbbell", "exercise", "gym", "strength", "weight", "weight-lifting" })] [FontAwesomeCategoriesAttribute(new[] { "Sports + Fitness", "Travel + Hotel" })] Dumbbell = 0xF44B, @@ -2828,7 +2800,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "pen-to-square" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "pen to square", "edit", "modify", "pen", "pencil", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "pen to square", "edit", "pen", "pencil", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design", "Editing", "Writing" })] Edit = 0xF044, @@ -2849,56 +2821,56 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "elevator" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "accessibility", "elevator", "hoist", "lift", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "accessibility", "elevator", "hoist", "lift", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Travel + Hotel", "Users + People" })] Elevator = 0xE16D, /// <summary> /// The Font Awesome "ellipsis" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ellipsis", "dots", "drag", "kebab", "list", "menu", "nav", "navigation", "ol", "pacman", "reorder", "settings", "three dots", "ul" })] + [FontAwesomeSearchTerms(new[] { "ellipsis", "dots", "drag", "kebab", "list", "menu", "nav", "navigation", "ol", "pacman", "reorder", "settings", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Editing" })] EllipsisH = 0xF141, /// <summary> /// The Font Awesome "ellipsis-vertical" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ellipsis vertical", "bullet", "dots", "drag", "kebab", "list", "menu", "nav", "navigation", "ol", "reorder", "settings", "three dots", "ul" })] + [FontAwesomeSearchTerms(new[] { "ellipsis vertical", "dots", "drag", "kebab", "list", "menu", "nav", "navigation", "ol", "reorder", "settings", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Editing" })] EllipsisV = 0xF142, /// <summary> /// The Font Awesome "envelope" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "back of envelope", "e-mail", "email", "envelope", "letter", "mail", "message", "newsletter", "notification", "offer", "support" })] + [FontAwesomeSearchTerms(new[] { "back of envelope", "e-mail", "email", "envelope", "letter", "mail", "message", "notification", "support" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication", "Humanitarian", "Social", "Writing" })] Envelope = 0xF0E0, /// <summary> /// The Font Awesome "envelope-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "envelope circle check", "check", "email", "enable", "envelope", "mail", "not affected", "ok", "okay", "read", "sent", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "envelope circle check", "check", "email", "envelope", "mail", "not affected", "ok", "okay", "read", "sent" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication", "Humanitarian" })] EnvelopeCircleCheck = 0xE4E8, /// <summary> /// The Font Awesome "envelope-open" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "envelope open", "e-mail", "email", "letter", "mail", "message", "newsletter", "notification", "offer", "support" })] + [FontAwesomeSearchTerms(new[] { "envelope open", "e-mail", "email", "letter", "mail", "message", "notification", "support" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication", "Writing" })] EnvelopeOpen = 0xF2B6, /// <summary> /// The Font Awesome "envelope-open-text" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "envelope open text", "e-mail", "email", "letter", "mail", "message", "newsletter", "notification", "offer", "support" })] + [FontAwesomeSearchTerms(new[] { "envelope open text", "e-mail", "email", "letter", "mail", "message", "notification", "support" })] [FontAwesomeCategoriesAttribute(new[] { "Marketing" })] EnvelopeOpenText = 0xF658, /// <summary> /// The Font Awesome "square-envelope" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square envelope", "e-mail", "email", "letter", "mail", "message", "notification", "offer", "support" })] + [FontAwesomeSearchTerms(new[] { "square envelope", "e-mail", "email", "letter", "mail", "message", "notification", "support" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication" })] EnvelopeSquare = 0xF199, @@ -2942,42 +2914,42 @@ public enum FontAwesomeIcon /// The Font Awesome "exclamation" icon unicode character. /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0x21. /// </summary> - [FontAwesomeSearchTerms(new[] { "!", "exclamation mark", "alert", "attention", "danger", "error", "exclamation", "failed", "important", "mark", "notice", "notification", "notify", "outlined", "problem", "punctuation", "red exclamation mark", "required", "warning", "white exclamation mark" })] + [FontAwesomeSearchTerms(new[] { "!", "exclamation mark", "alert", "danger", "error", "exclamation", "important", "mark", "notice", "notification", "notify", "outlined", "problem", "punctuation", "red exclamation mark", "warning", "white exclamation mark" })] [FontAwesomeCategoriesAttribute(new[] { "Alert", "Punctuation + Symbols" })] Exclamation = 0xF12A, /// <summary> /// The Font Awesome "circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle exclamation", "affect", "alert", "attention", "damage", "danger", "error", "failed", "important", "notice", "notification", "notify", "problem", "required", "warning" })] + [FontAwesomeSearchTerms(new[] { "circle exclamation", "affect", "alert", "damage", "danger", "error", "important", "notice", "notification", "notify", "problem", "warning" })] [FontAwesomeCategoriesAttribute(new[] { "Alert", "Punctuation + Symbols" })] ExclamationCircle = 0xF06A, /// <summary> /// The Font Awesome "triangle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "triangle exclamation", "alert", "attention", "danger", "error", "failed", "important", "notice", "notification", "notify", "problem", "required", "warnin", "warning" })] + [FontAwesomeSearchTerms(new[] { "triangle exclamation", "alert", "danger", "error", "important", "notice", "notification", "notify", "problem", "warnin", "warning" })] [FontAwesomeCategoriesAttribute(new[] { "Alert" })] ExclamationTriangle = 0xF071, /// <summary> /// The Font Awesome "expand" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows", "bigger", "enlarge", "expand", "fullscreen", "maximize", "resize", "resize", "scale", "size", "viewfinder" })] + [FontAwesomeSearchTerms(new[] { "expand", "bigger", "crop", "enlarge", "focus", "fullscreen", "resize", "viewfinder" })] [FontAwesomeCategoriesAttribute(new[] { "Media Playback" })] Expand = 0xF065, /// <summary> /// The Font Awesome "up-right-and-down-left-from-center" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "up right and down left from center", "arrows", "bigger", "enlarge", "expand", "fullscreen", "maximize", "resize", "resize", "scale", "size" })] + [FontAwesomeSearchTerms(new[] { "up right and down left from center", "arrows", "bigger", "enlarge", "fullscreen", "resize" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] ExpandAlt = 0xF424, /// <summary> /// The Font Awesome "maximize" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows", "bigger", "enlarge", "expand", "fullscreen", "maximize", "resize", "resize", "scale", "size" })] + [FontAwesomeSearchTerms(new[] { "maximize", "bigger", "enlarge", "fullscreen", "move", "resize" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] ExpandArrowsAlt = 0xF31E, @@ -2991,7 +2963,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "up-right-from-square" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "up right from square", "external-link", "new", "open", "share", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "up right from square", "external-link", "new", "open", "share" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] ExternalLinkAlt = 0xF35D, @@ -3019,7 +2991,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "eye-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "eye slash", "blind", "disabled", "hide", "show", "toggle", "unseen", "views", "visible", "visiblity" })] + [FontAwesomeSearchTerms(new[] { "eye slash", "blind", "hide", "show", "toggle", "unseen", "views", "visible", "visiblity" })] [FontAwesomeCategoriesAttribute(new[] { "Design", "Editing", "Maps", "Photos + Images", "Security" })] EyeSlash = 0xF070, @@ -3033,14 +3005,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "backward-fast" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "backward fast", "arrow", "beginning", "first", "last track button", "previous", "previous scene", "previous track", "quick", "rewind", "start", "triangle" })] + [FontAwesomeSearchTerms(new[] { "backward fast", "arrow", "beginning", "first", "last track button", "previous", "previous scene", "previous track", "rewind", "start", "triangle" })] [FontAwesomeCategoriesAttribute(new[] { "Media Playback" })] FastBackward = 0xF049, /// <summary> /// The Font Awesome "forward-fast" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "forward fast", "arrow", "end", "last", "next", "next scene", "next track", "next track button", "quick", "triangle" })] + [FontAwesomeSearchTerms(new[] { "forward fast", "arrow", "end", "last", "next", "next scene", "next track", "next track button", "triangle" })] [FontAwesomeCategoriesAttribute(new[] { "Media Playback" })] FastForward = 0xF050, @@ -3082,7 +3054,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-dress" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person dress", "man", "skirt", "uer", "woman" })] + [FontAwesomeSearchTerms(new[] { "person dress", "man", "skirt", "woman" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] Female = 0xF182, @@ -3103,7 +3075,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "file" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file", "empty document", "cv", "document", "new", "page", "page facing up", "pdf", "resume" })] + [FontAwesomeSearchTerms(new[] { "file", "empty document", "document", "new", "page", "page facing up", "pdf", "resume" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Coding", "Files", "Humanitarian", "Shapes", "Writing" })] File = 0xF15B, @@ -3131,14 +3103,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "file-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file circle check", "document", "enable", "file", "not affected", "ok", "okay", "paper", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "file circle check", "document", "file", "not affected", "ok", "okay", "paper" })] [FontAwesomeCategoriesAttribute(new[] { "Files", "Humanitarian" })] FileCircleCheck = 0xE5A0, /// <summary> /// The Font Awesome "file-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file circle exclamation", "document", "failed", "file", "paper" })] + [FontAwesomeSearchTerms(new[] { "file circle exclamation", "document", "file", "paper" })] [FontAwesomeCategoriesAttribute(new[] { "Files", "Humanitarian" })] FileCircleExclamation = 0xE4EB, @@ -3166,21 +3138,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "file-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file circle xmark", "document", "file", "paper", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "file circle xmark", "document", "file", "paper" })] [FontAwesomeCategoriesAttribute(new[] { "Files", "Humanitarian" })] FileCircleXmark = 0xE5A1, /// <summary> /// The Font Awesome "file-code" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file code", "css", "development", "document", "html", "mysql", "sql" })] + [FontAwesomeSearchTerms(new[] { "file code", "css", "development", "document", "html" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Files" })] FileCode = 0xF1C9, /// <summary> /// The Font Awesome "file-contract" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file contract", "agreement", "binding", "document", "legal", "signature", "username" })] + [FontAwesomeSearchTerms(new[] { "file contract", "agreement", "binding", "document", "legal", "signature" })] [FontAwesomeCategoriesAttribute(new[] { "Security" })] FileContract = 0xF56C, @@ -3194,7 +3166,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "file-arrow-down" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file arrow down", "archive", "document", "export", "insert", "save" })] + [FontAwesomeSearchTerms(new[] { "file arrow down", "document", "export", "save" })] [FontAwesomeCategoriesAttribute(new[] { "Files" })] FileDownload = 0xF56D, @@ -3212,31 +3184,17 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Files" })] FileExport = 0xF56E, - /// <summary> - /// The Font Awesome "file-fragment" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "file fragment", "block", "data", "partial", "piece" })] - [FontAwesomeCategoriesAttribute(new[] { "Files" })] - FileFragment = 0xE697, - - /// <summary> - /// The Font Awesome "file-half-dashed" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "file half dashed", "data", "fragment", "partial", "piece" })] - [FontAwesomeCategoriesAttribute(new[] { "Files" })] - FileHalfDashed = 0xE698, - /// <summary> /// The Font Awesome "file-image" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file image", "document with picture", "document", "image", "img", "jpg", "photo", "png" })] + [FontAwesomeSearchTerms(new[] { "file image", "document with picture", "document", "image", "jpg", "photo", "png" })] [FontAwesomeCategoriesAttribute(new[] { "Files", "Photos + Images" })] FileImage = 0xF1C5, /// <summary> /// The Font Awesome "file-import" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file import", "copy", "document", "insert", "send", "upload" })] + [FontAwesomeSearchTerms(new[] { "file import", "copy", "document", "send", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Files" })] FileImport = 0xF56F, @@ -3250,7 +3208,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "file-invoice-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file invoice dollar", "$", "account", "bill", "charge", "document", "dollar-sign", "money", "payment", "receipt", "revenue", "salary", "usd" })] + [FontAwesomeSearchTerms(new[] { "file invoice dollar", "$", "account", "bill", "charge", "document", "dollar-sign", "money", "payment", "receipt", "usd" })] [FontAwesomeCategoriesAttribute(new[] { "Money" })] FileInvoiceDollar = 0xF571, @@ -3278,7 +3236,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "file-pen" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file pen", "edit", "memo", "modify", "pen", "pencil", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "file pen", "edit", "memo", "pen", "pencil", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Files", "Humanitarian" })] FilePen = 0xF31C, @@ -3306,14 +3264,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "file-signature" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file signature", "john hancock", "contract", "document", "name", "username" })] + [FontAwesomeSearchTerms(new[] { "file signature", "john hancock", "contract", "document", "name" })] [FontAwesomeCategoriesAttribute(new[] { "Security" })] FileSignature = 0xF573, /// <summary> /// The Font Awesome "file-arrow-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "file arrow up", "document", "import", "page", "save", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "file arrow up", "document", "import", "page", "save" })] [FontAwesomeCategoriesAttribute(new[] { "Files" })] FileUpload = 0xF574, @@ -3362,14 +3320,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "filter-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "filter circle xmark", "cancel", "funnel", "options", "remove", "separate", "sort", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "filter circle xmark", "cancel", "funnel", "options", "remove", "separate", "sort" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] FilterCircleXmark = 0xE17B, /// <summary> /// The Font Awesome "fingerprint" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "fingerprint", "human", "id", "identification", "lock", "privacy", "smudge", "touch", "unique", "unlock" })] + [FontAwesomeSearchTerms(new[] { "fingerprint", "human", "id", "identification", "lock", "smudge", "touch", "unique", "unlock" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Security" })] Fingerprint = 0xF577, @@ -3453,14 +3411,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "flask" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "flask", "beaker", "chemicals", "experiment", "experimental", "knowledge", "labs", "liquid", "potion", "science", "vial" })] + [FontAwesomeSearchTerms(new[] { "flask", "beaker", "chemicals", "experiment", "experimental", "labs", "liquid", "potion", "science", "vial" })] [FontAwesomeCategoriesAttribute(new[] { "Food + Beverage", "Maps", "Medical + Health", "Science" })] Flask = 0xF0C3, /// <summary> /// The Font Awesome "flask-vial" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "flask vial", "ampule", "beaker", "chemicals", "chemistry", "experiment", "experimental", "lab", "laboratory", "labs", "liquid", "potion", "science", "test", "test tube", "vial" })] + [FontAwesomeSearchTerms(new[] { "flask vial", " beaker", " chemicals", " experiment", " experimental", " labs", " liquid", " science", " vial", "ampule", "chemistry", "lab", "laboratory", "potion", "test", "test tube" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health", "Science" })] FlaskVial = 0xE4F3, @@ -3581,7 +3539,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "face-frown" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "face frown", "disapprove", "emoticon", "face", "frown", "frowning face", "rating", "sad", "uer" })] + [FontAwesomeSearchTerms(new[] { "face frown", "disapprove", "emoticon", "face", "frown", "frowning face", "rating", "sad" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Emoji", "Users + People" })] Frown = 0xF119, @@ -3595,7 +3553,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "filter-circle-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "filter circle dollar", "filter", "money", "options", "premium", "separate", "sort" })] + [FontAwesomeSearchTerms(new[] { "filter circle dollar", "filter", "money", "options", "separate", "sort" })] [FontAwesomeCategoriesAttribute(new[] { "Marketing" })] FunnelDollar = 0xF662, @@ -3609,7 +3567,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "gamepad" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "gamepad", "arcade", "controller", "d-pad", "joystick", "playstore", "video", "video game" })] + [FontAwesomeSearchTerms(new[] { "gamepad", "arcade", "controller", "d-pad", "joystick", "video", "video game" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Devices + Hardware", "Gaming", "Maps" })] Gamepad = 0xF11B, @@ -3637,7 +3595,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "gauge-simple-high" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "gauge simple high", "dashboard", "fast", "odometer", "quick", "speed", "speedometer" })] + [FontAwesomeSearchTerms(new[] { "gauge simple high", "dashboard", "fast", "odometer", "speed", "speedometer" })] [FontAwesomeCategoriesAttribute(new[] { "Automotive" })] GaugeSimpleHigh = 0xF62A, @@ -3735,7 +3693,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "globe" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "all", "coordinates", "country", "earth", "global", "globe", "globe with meridians", "gps", "internet", "language", "localize", "location", "map", "meridians", "network", "online", "place", "planet", "translate", "travel", "world", "www" })] + [FontAwesomeSearchTerms(new[] { "all", "coordinates", "country", "earth", "global", "globe", "globe with meridians", "gps", "internet", "language", "localize", "location", "map", "meridians", "network", "online", "place", "planet", "translate", "travel", "world" })] [FontAwesomeCategoriesAttribute(new[] { "Astronomy", "Business", "Charity", "Connectivity", "Maps" })] Globe = 0xF0AC, @@ -3862,7 +3820,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "face-grin-stars" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "face grin stars", "emoticon", "eyes", "face", "grinning", "quality", "star", "star-struck", "starry-eyed", "vip" })] + [FontAwesomeSearchTerms(new[] { "face grin stars", "emoticon", "eyes", "face", "grinning", "star", "star-struck", "starry-eyed" })] [FontAwesomeCategoriesAttribute(new[] { "Emoji" })] GrinStars = 0xF587, @@ -3904,7 +3862,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "grip" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "grip", "affordance", "app", "collection", "dashboard", "drag", "drop", "grab", "grid", "handle", "launcher", "square" })] + [FontAwesomeSearchTerms(new[] { "grip", "affordance", "drag", "drop", "grab", "handle" })] [FontAwesomeCategoriesAttribute(new[] { "Editing" })] GripHorizontal = 0xF58D, @@ -3967,7 +3925,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hammer" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "admin", "configuration", "equipment", "fix", "hammer", "maintenance", "modify", "recovery", "repair", "settings", "tool" })] + [FontAwesomeSearchTerms(new[] { "admin", "fix", "hammer", "recovery", "repair", "settings", "tool" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Humanitarian" })] Hammer = 0xF6E3, @@ -3995,8 +3953,8 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hand-holding-droplet" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hand holding droplet", "blood", "carry", "covid-19", "drought", "grow", "lift", "sanitation" })] - [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands", "Medical + Health" })] + [FontAwesomeSearchTerms(new[] { "hand holding droplet", "carry", "covid-19", "drought", "grow", "lift", "sanitation" })] + [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands" })] HandHoldingDroplet = 0xF4C1, /// <summary> @@ -4009,7 +3967,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hand-holding-heart" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hand holding heart", "carry", "charity", "gift", "lift", "package", "wishlist" })] + [FontAwesomeSearchTerms(new[] { "hand holding heart", "carry", "charity", "gift", "lift", "package" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands" })] HandHoldingHeart = 0xF4BE, @@ -4023,7 +3981,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hand-holding-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hand holding dollar", "$", "carry", "coupon", "dollar sign", "donate", "donation", "giving", "investment", "lift", "money", "premium", "price", "revenue", "salary" })] + [FontAwesomeSearchTerms(new[] { "hand holding dollar", "$", "carry", "dollar sign", "donation", "giving", "lift", "money", "price" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands", "Money" })] HandHoldingUsd = 0xF4C0, @@ -4044,7 +4002,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hand" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hand", "raised hand", "backhand", "game", "halt", "palm", "raised", "raised back of hand", "request", "roshambo", "stop" })] + [FontAwesomeSearchTerms(new[] { "hand", "raised hand", "backhand", "game", "halt", "palm", "raised", "raised back of hand", "roshambo", "stop" })] [FontAwesomeCategoriesAttribute(new[] { "Hands", "Media Playback" })] HandPaper = 0xF256, @@ -4086,7 +4044,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hand-point-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hand point up", "finger", "hand", "hand-o-up", "index", "index pointing up", "point", "request", "up", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "hand point up", "finger", "hand", "hand-o-up", "index", "index pointing up", "point", "up" })] [FontAwesomeCategoriesAttribute(new[] { "Hands" })] HandPointUp = 0xF0A6, @@ -4136,29 +4094,27 @@ public enum FontAwesomeIcon /// The Font Awesome "handshake" icon unicode character. /// </summary> [FontAwesomeSearchTerms(new[] { "handshake", "agreement", "greeting", "meeting", "partnership" })] - [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands", "Humanitarian", "Political", "Shopping" })] + [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands", "Political", "Shopping" })] Handshake = 0xF2B5, /// <summary> - /// The Font Awesome "handshake" icon unicode character. - /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0xF2B5. + /// The Font Awesome "handshake-simple" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "handshake", "agreement", "greeting", "meeting", "partnership" })] - [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands", "Humanitarian", "Political", "Shopping" })] + [FontAwesomeSearchTerms(new[] { "handshake simple", "agreement", "greeting", "hand", "handshake", "meeting", "partnership", "shake" })] + [FontAwesomeCategoriesAttribute(new[] { "Charity", "Hands", "Humanitarian" })] HandshakeSimple = 0xF4C6, /// <summary> - /// The Font Awesome "handshake-slash" icon unicode character. - /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0xE060. + /// The Font Awesome "handshake-simple-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "handshake slash", "broken", "covid-19", "disabled", "social distance" })] + [FontAwesomeSearchTerms(new[] { "handshake simple slash", "broken", "covid-19", "social distance" })] [FontAwesomeCategoriesAttribute(new[] { "Hands" })] HandshakeSimpleSlash = 0xE05F, /// <summary> /// The Font Awesome "handshake-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "handshake slash", "broken", "covid-19", "disabled", "social distance" })] + [FontAwesomeSearchTerms(new[] { "handshake slash", "broken", "covid-19", "social distance" })] [FontAwesomeCategoriesAttribute(new[] { "Hands" })] HandshakeSlash = 0xE060, @@ -4172,7 +4128,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hands-holding-child" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hands holding child", "care", "give", "help", "hold", "parent", "protect" })] + [FontAwesomeSearchTerms(new[] { "hands holding child", "care", "give", "help", "hold", "protect" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Childhood", "Hands", "Humanitarian", "Security" })] HandsHoldingChild = 0xE4FA, @@ -4207,7 +4163,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "helmet-safety" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "helmet safety", "construction", "hardhat", "helmet", "maintenance", "safety" })] + [FontAwesomeSearchTerms(new[] { "helmet safety", "construction", "hardhat", "helmet", "safety" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Logistics" })] HardHat = 0xF807, @@ -4262,11 +4218,10 @@ public enum FontAwesomeIcon Headphones = 0xF025, /// <summary> - /// The Font Awesome "headphones" icon unicode character. - /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0xF025. + /// The Font Awesome "headphones-simple" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "headphones", "audio", "earbud", "headphone", "listen", "music", "sound", "speaker" })] - [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware", "Film + Video", "Music + Audio" })] + [FontAwesomeSearchTerms(new[] { "headphones simple", "audio", "listen", "music", "sound", "speaker" })] + [FontAwesomeCategoriesAttribute(new[] { "Music + Audio" })] HeadphonesAlt = 0xF58F, /// <summary> @@ -4279,35 +4234,35 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "head-side-cough" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "head side cough", "cough", "covid-19", "germs", "lungs", "respiratory", "sick", "uer" })] + [FontAwesomeSearchTerms(new[] { "head side cough", "cough", "covid-19", "germs", "lungs", "respiratory", "sick" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Users + People" })] HeadSideCough = 0xE061, /// <summary> /// The Font Awesome "head-side-cough-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "head side cough slash", "cough", "covid-19", "disabled", "germs", "lungs", "respiratory", "sick", "uer" })] + [FontAwesomeSearchTerms(new[] { "head side cough slash", "cough", "covid-19", "germs", "lungs", "respiratory", "sick" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Users + People" })] HeadSideCoughSlash = 0xE062, /// <summary> /// The Font Awesome "head-side-mask" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "head side mask", "breath", "coronavirus", "covid-19", "filter", "flu", "infection", "pandemic", "respirator", "uer", "virus" })] + [FontAwesomeSearchTerms(new[] { "head side mask", "breath", "coronavirus", "covid-19", "filter", "flu", "infection", "pandemic", "respirator", "virus" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Users + People" })] HeadSideMask = 0xE063, /// <summary> /// The Font Awesome "head-side-virus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "head side virus", "cold", "coronavirus", "covid-19", "flu", "infection", "pandemic", "sick", "uer" })] + [FontAwesomeSearchTerms(new[] { "head side virus", "cold", "coronavirus", "covid-19", "flu", "infection", "pandemic", "sick" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Users + People" })] HeadSideVirus = 0xE064, /// <summary> /// The Font Awesome "heart" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ace", "card", "favorite", "game", "heart", "heart suit", "like", "love", "relationship", "valentine", "wishlist" })] + [FontAwesomeSearchTerms(new[] { "black", "black heart", "blue", "blue heart", "brown", "brown heart", "card", "evil", "favorite", "game", "green", "green heart", "heart", "heart suit", "like", "love", "orange", "orange heart", "purple", "purple heart", "red heart", "relationship", "valentine", "white", "white heart", "wicked", "yellow", "yellow heart" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Gaming", "Holidays", "Maps", "Medical + Health", "Shapes", "Shopping", "Social", "Sports + Fitness" })] Heart = 0xF004, @@ -4335,14 +4290,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "heart-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "heart circle check", "enable", "favorite", "heart", "love", "not affected", "ok", "okay", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "heart circle check", "favorite", "heart", "love", "not affected", "ok", "okay" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health" })] HeartCircleCheck = 0xE4FD, /// <summary> /// The Font Awesome "heart-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "heart circle exclamation", "failed", "favorite", "heart", "love" })] + [FontAwesomeSearchTerms(new[] { "heart circle exclamation", "favorite", "heart", "love" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health" })] HeartCircleExclamation = 0xE4FE, @@ -4363,7 +4318,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "heart-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "heart circle xmark", "favorite", "heart", "love", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "heart circle xmark", "favorite", "heart", "love" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health" })] HeartCircleXmark = 0xE501, @@ -4388,38 +4343,17 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Disaster + Crisis", "Humanitarian" })] HelmetUn = 0xE503, - /// <summary> - /// The Font Awesome "hexagon" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "hexagon", "horizontal black hexagon", "geometry", "honeycomb", "polygon", "shape" })] - [FontAwesomeCategoriesAttribute(new[] { "Shapes" })] - Hexagon = 0xF312, - - /// <summary> - /// The Font Awesome "hexagon-nodes" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "hexagon nodes", "action", "ai", "artificial intelligence", "cluster", "graph", "language", "llm", "model", "network", "neuronal" })] - [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams", "Coding" })] - HexagonNodes = 0xE699, - - /// <summary> - /// The Font Awesome "hexagon-nodes-bolt" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "hexagon nodes bolt", "llm", "action", "ai", "artificial intelligence", "cluster", "graph", "language", "llm", "model", "network", "neuronal" })] - [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams", "Coding" })] - HexagonNodesBolt = 0xE69A, - /// <summary> /// The Font Awesome "highlighter" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "highlighter", "edit", "marker", "modify", "sharpie", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "highlighter", "edit", "marker", "sharpie", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design", "Text Formatting" })] Highlighter = 0xF591, /// <summary> /// The Font Awesome "person-hiking" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person hiking", "autumn", "fall", "follow", "hike", "mountain", "outdoors", "summer", "uer", "walk" })] + [FontAwesomeSearchTerms(new[] { "person hiking", "autumn", "fall", "hike", "mountain", "outdoors", "summer", "walk" })] [FontAwesomeCategoriesAttribute(new[] { "Camping", "Nature", "Sports + Fitness", "Users + People" })] Hiking = 0xF6EC, @@ -4447,7 +4381,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "clock-rotate-left" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clock rotate left", "rewind", "clock", "pending", "reverse", "time", "time machine", "time travel", "waiting" })] + [FontAwesomeSearchTerms(new[] { "clock rotate left", "rewind", "clock", "reverse", "time", "time machine", "time travel" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Medical + Health" })] History = 0xF1DA, @@ -4511,7 +4445,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hospital-user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hospital user", "covid-19", "doctor", "network", "patient", "primary care", "uer" })] + [FontAwesomeSearchTerms(new[] { "hospital user", "covid-19", "doctor", "network", "patient", "primary care" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Medical + Health", "Users + People" })] HospitalUser = 0xF80D, @@ -4532,7 +4466,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hot-tub-person" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hot tub person", "jacuzzi", "spa", "uer" })] + [FontAwesomeSearchTerms(new[] { "hot tub person", "jacuzzi", "spa" })] [FontAwesomeCategoriesAttribute(new[] { "Travel + Hotel", "Users + People" })] HotTub = 0xF593, @@ -4546,21 +4480,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "hourglass-end" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hourglass end", "hour", "hourglass done", "minute", "pending", "sand", "stopwatch", "time", "timer", "waiting" })] + [FontAwesomeSearchTerms(new[] { "hourglass end", "hour", "hourglass done", "minute", "sand", "stopwatch", "time", "timer" })] [FontAwesomeCategoriesAttribute(new[] { "Time" })] HourglassEnd = 0xF253, /// <summary> /// The Font Awesome "hourglass-half" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hourglass half", "hour", "minute", "pending", "sand", "stopwatch", "time", "waiting" })] + [FontAwesomeSearchTerms(new[] { "hourglass half", "hour", "minute", "sand", "stopwatch", "time" })] [FontAwesomeCategoriesAttribute(new[] { "Time" })] HourglassHalf = 0xF252, /// <summary> /// The Font Awesome "hourglass-start" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "hourglass start", "hour", "minute", "sand", "stopwatch", "time", "waiting" })] + [FontAwesomeSearchTerms(new[] { "hourglass start", "hour", "minute", "sand", "stopwatch", "time" })] [FontAwesomeCategoriesAttribute(new[] { "Time" })] HourglassStart = 0xF251, @@ -4574,7 +4508,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "house-chimney-user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house chimney user", "covid-19", "home", "isolation", "quarantine", "uer" })] + [FontAwesomeSearchTerms(new[] { "house chimney user", "covid-19", "home", "isolation", "quarantine" })] [FontAwesomeCategoriesAttribute(new[] { "Household", "Users + People" })] HouseChimneyUser = 0xE065, @@ -4588,21 +4522,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "house-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house circle check", "abode", "enable", "home", "house", "not affected", "ok", "okay", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "house circle check", "abode", "home", "house", "not affected", "ok", "okay" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] HouseCircleCheck = 0xE509, /// <summary> /// The Font Awesome "house-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house circle exclamation", "abode", "affected", "failed", "home", "house" })] + [FontAwesomeSearchTerms(new[] { "house circle exclamation", "abode", "affected", "home", "house" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] HouseCircleExclamation = 0xE50A, /// <summary> /// The Font Awesome "house-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house circle xmark", "abode", "destroy", "home", "house", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "house circle xmark", "abode", "destroy", "home", "house" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian" })] HouseCircleXmark = 0xE50B, @@ -4658,7 +4592,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "house-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house lock", "closed", "home", "house", "lockdown", "padlock", "privacy", "quarantine" })] + [FontAwesomeSearchTerms(new[] { "house lock", "closed", "home", "house", "lockdown", "quarantine" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Household", "Humanitarian", "Security" })] HouseLock = 0xE510, @@ -4672,21 +4606,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "house-medical-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house medical circle check", "clinic", "enable", "hospital", "not affected", "ok", "okay", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "house medical circle check", "clinic", "hospital", "not affected", "ok", "okay" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian", "Medical + Health" })] HouseMedicalCircleCheck = 0xE511, /// <summary> /// The Font Awesome "house-medical-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house medical circle exclamation", "affected", "clinic", "failed", "hospital" })] + [FontAwesomeSearchTerms(new[] { "house medical circle exclamation", "affected", "clinic", "hospital" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian", "Medical + Health" })] HouseMedicalCircleExclamation = 0xE512, /// <summary> /// The Font Awesome "house-medical-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house medical circle xmark", "clinic", "destroy", "hospital", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "house medical circle xmark", "clinic", "destroy", "hospital" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian", "Medical + Health" })] HouseMedicalCircleXmark = 0xE513, @@ -4700,7 +4634,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "house-signal" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house signal", "abode", "building", "connect", "family", "home", "residence", "smart home", "wifi", "www" })] + [FontAwesomeSearchTerms(new[] { "house signal", "abode", "building", "connect", "family", "home", "residence", "smart home", "wifi" })] [FontAwesomeCategoriesAttribute(new[] { "Connectivity", "Household", "Humanitarian" })] HouseSignal = 0xE012, @@ -4714,7 +4648,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "house-user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "house user", "house", "uer" })] + [FontAwesomeSearchTerms(new[] { "house user", "house" })] [FontAwesomeCategoriesAttribute(new[] { "Household", "Users + People" })] HouseUser = 0xE1B0, @@ -4756,7 +4690,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "icons" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "icons", "bolt", "category", "emoji", "heart", "image", "music", "photo", "symbols" })] + [FontAwesomeSearchTerms(new[] { "icons", "bolt", "emoji", "heart", "image", "music", "photo", "symbols" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Design", "Social", "Text Formatting" })] Icons = 0xF86D, @@ -4770,21 +4704,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "id-badge" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "id badge", "address", "contact", "identification", "license", "profile", "uer", "username" })] + [FontAwesomeSearchTerms(new[] { "id badge", "address", "contact", "identification", "license", "profile" })] [FontAwesomeCategoriesAttribute(new[] { "Photos + Images", "Security", "Users + People" })] IdBadge = 0xF2C1, /// <summary> /// The Font Awesome "id-card" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "id card", "contact", "demographics", "document", "identification", "issued", "profile", "registration", "uer", "username" })] + [FontAwesomeSearchTerms(new[] { "id card", "contact", "demographics", "document", "identification", "issued", "profile", "registration" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Photos + Images", "Security", "Users + People" })] IdCard = 0xF2C2, /// <summary> /// The Font Awesome "id-card-clip" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "id card clip", "contact", "demographics", "document", "identification", "issued", "profile", "uer", "username" })] + [FontAwesomeSearchTerms(new[] { "id card clip", "contact", "demographics", "document", "identification", "issued", "profile" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Security", "Users + People" })] IdCardAlt = 0xF47F, @@ -4798,14 +4732,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "image" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "image", "album", "img", "landscape", "photo", "picture" })] + [FontAwesomeSearchTerms(new[] { "image", "album", "landscape", "photo", "picture" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Photos + Images", "Social" })] Image = 0xF03E, /// <summary> /// The Font Awesome "images" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "images", "album", "img", "landscape", "photo", "picture" })] + [FontAwesomeSearchTerms(new[] { "images", "album", "landscape", "photo", "picture" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Photos + Images", "Social" })] Images = 0xF302, @@ -4858,12 +4792,6 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Maps" })] InfoCircle = 0xF05A, - /// <summary> - /// The Font Awesome "instagramsquare" icon unicode character. - /// </summary> - [Obsolete] - InstagramSquare = 0xF955, - /// <summary> /// The Font Awesome "italic" icon unicode character. /// </summary> @@ -4993,7 +4921,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "landmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "landmark", "building", "classical", "historic", "memorable", "monument", "museum", "politics", "society" })] + [FontAwesomeSearchTerms(new[] { "landmark", "building", "classical", "historic", "memorable", "monument", "museum", "politics" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Business", "Humanitarian", "Maps", "Money" })] Landmark = 0xF66F, @@ -5028,14 +4956,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "laptop" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "computer", "cpu", "dell", "demo", "device", "fabook", "fb", "laptop", "mac", "macbook", "machine", "pc", "personal" })] + [FontAwesomeSearchTerms(new[] { "computer", "cpu", "dell", "demo", "device", "laptop", "mac", "macbook", "machine", "pc", "personal" })] [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware", "Humanitarian" })] Laptop = 0xF109, /// <summary> /// The Font Awesome "laptop-code" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "laptop code", "computer", "cpu", "dell", "demo", "develop", "device", "fabook", "fb", "mac", "macbook", "machine", "mysql", "pc", "sql" })] + [FontAwesomeSearchTerms(new[] { "laptop code", "computer", "cpu", "dell", "demo", "develop", "device", "mac", "macbook", "machine", "pc" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Education" })] LaptopCode = 0xF5FC, @@ -5091,7 +5019,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "layer-group" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "layer group", "arrange", "category", "develop", "layers", "map", "platform", "stack" })] + [FontAwesomeSearchTerms(new[] { "layer group", "arrange", "develop", "layers", "map", "stack" })] [FontAwesomeCategoriesAttribute(new[] { "Design", "Maps" })] LayerGroup = 0xF5FD, @@ -5148,7 +5076,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "lightbulb" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "lightbulb", "bulb", "bulb", "comic", "comic", "electric", "electric", "energy", "idea", "idea", "innovation", "inspiration", "inspiration", "light", "light bulb", "mechanical" })] + [FontAwesomeSearchTerms(new[] { "lightbulb", " comic", " electric", " idea", " innovation", " inspiration", " light", " light bulb", " bulb", "bulb", "comic", "electric", "energy", "idea", "inspiration", "mechanical" })] [FontAwesomeCategoriesAttribute(new[] { "Energy", "Household", "Maps", "Marketing" })] Lightbulb = 0xF0EB, @@ -5176,28 +5104,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "list" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "list", "bullet", "category", "cheatsheet", "checklist", "completed", "done", "finished", "ol", "summary", "todo", "ul" })] + [FontAwesomeSearchTerms(new[] { "list", "checklist", "completed", "done", "finished", "ol", "todo", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] List = 0xF03A, /// <summary> /// The Font Awesome "rectangle-list" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "rectangle list", "cheatsheet", "checklist", "completed", "done", "finished", "ol", "summary", "todo", "ul" })] + [FontAwesomeSearchTerms(new[] { "rectangle list", "checklist", "completed", "done", "finished", "ol", "todo", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] ListAlt = 0xF022, /// <summary> /// The Font Awesome "list-ol" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "list ol", "cheatsheet", "checklist", "completed", "done", "finished", "numbers", "ol", "summary", "todo", "ul" })] + [FontAwesomeSearchTerms(new[] { "list ol", "checklist", "completed", "done", "finished", "numbers", "ol", "todo", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] ListOl = 0xF0CB, /// <summary> /// The Font Awesome "list-ul" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "list ul", "bullet", "cheatsheet", "checklist", "completed", "done", "finished", "ol", "summary", "survey", "todo", "ul" })] + [FontAwesomeSearchTerms(new[] { "list ul", "checklist", "completed", "done", "finished", "ol", "todo", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] ListUl = 0xF0CA, @@ -5225,21 +5153,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "location-pin-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "location pin lock", "closed", "lockdown", "map", "padlock", "privacy", "quarantine" })] + [FontAwesomeSearchTerms(new[] { "location pin lock", "closed", "lockdown", "map", "quarantine" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Maps" })] LocationPinLock = 0xE51F, /// <summary> /// The Font Awesome "lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "admin", "closed", "lock", "locked", "open", "padlock", "password", "privacy", "private", "protect", "security" })] + [FontAwesomeSearchTerms(new[] { "admin", "closed", "lock", "locked", "open", "password", "private", "protect", "security" })] [FontAwesomeCategoriesAttribute(new[] { "Security" })] Lock = 0xF023, /// <summary> /// The Font Awesome "lock-open" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "lock open", "admin", "lock", "open", "padlock", "password", "privacy", "private", "protect", "security", "unlock" })] + [FontAwesomeSearchTerms(new[] { "lock open", "admin", "lock", "open", "password", "private", "protect", "security", "unlock" })] [FontAwesomeCategoriesAttribute(new[] { "Security" })] LockOpen = 0xF3C1, @@ -5274,7 +5202,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "up-long" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "up long", "long-arrow-up", "upgrade", "upload" })] + [FontAwesomeSearchTerms(new[] { "up long", "long-arrow-up", "upload" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] LongArrowAltUp = 0xF30C, @@ -5323,28 +5251,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "magnifying-glass-arrow-right" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "magnifying glass arrow right", "find", "magnifier", "next", "search" })] + [FontAwesomeSearchTerms(new[] { "magnifying glass arrow right", "find", "next", "search" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Humanitarian", "Marketing" })] MagnifyingGlassArrowRight = 0xE521, /// <summary> /// The Font Awesome "magnifying-glass-chart" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "magnifying glass chart", "analysis", "chart", "data", "graph", "intelligence", "magnifier", "market", "revenue" })] + [FontAwesomeSearchTerms(new[] { "magnifying glass chart", " data", " graph", " intelligence", "analysis", "chart", "market" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Humanitarian", "Marketing" })] MagnifyingGlassChart = 0xE522, /// <summary> /// The Font Awesome "envelopes-bulk" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "envelopes bulk", "archive", "envelope", "letter", "newsletter", "offer", "post office", "postal", "postcard", "send", "stamp", "usps" })] + [FontAwesomeSearchTerms(new[] { "envelopes bulk", "archive", "envelope", "letter", "post office", "postal", "postcard", "send", "stamp", "usps" })] [FontAwesomeCategoriesAttribute(new[] { "Marketing" })] MailBulk = 0xF674, /// <summary> /// The Font Awesome "person" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person", "default", "man", "person standing", "stand", "standing", "uer", "woman" })] + [FontAwesomeSearchTerms(new[] { "person", "man", "person standing", "stand", "standing", "woman" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Maps", "Users + People" })] Male = 0xF183, @@ -5407,7 +5335,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "marker" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "marker", "design", "edit", "modify", "sharpie", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "marker", "design", "edit", "sharpie", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design" })] Marker = 0xF5A1, @@ -5421,7 +5349,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "mars-and-venus-burst" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "mars and venus burst", "gender", "uer", "violence" })] + [FontAwesomeSearchTerms(new[] { "mars and venus burst", "gender", "violence" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] MarsAndVenusBurst = 0xE523, @@ -5484,7 +5412,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "medal" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "award", "guarantee", "medal", "quality", "ribbon", "sports medal", "star", "trophy", "warranty" })] + [FontAwesomeSearchTerms(new[] { "award", "medal", "ribbon", "sports medal", "star", "trophy" })] [FontAwesomeCategoriesAttribute(new[] { "Sports + Fitness" })] Medal = 0xF5A2, @@ -5498,7 +5426,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "face-meh" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "face meh", "deadpan", "default", "emoticon", "face", "meh", "neutral", "neutral face", "rating", "uer" })] + [FontAwesomeSearchTerms(new[] { "face meh", "deadpan", "emoticon", "face", "meh", "neutral", "neutral face", "rating" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Emoji", "Users + People" })] Meh = 0xF11A, @@ -5554,35 +5482,35 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "microphone" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "microphone", "address", "audio", "information", "podcast", "public", "record", "sing", "sound", "talking", "voice" })] + [FontAwesomeSearchTerms(new[] { "microphone", "address", "audio", "information", "podcast", "public", "record", "sing", "sound", "voice" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Film + Video", "Music + Audio", "Toggle" })] Microphone = 0xF130, /// <summary> /// The Font Awesome "microphone-lines" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "microphone lines", "audio", "mic", "microphone", "music", "podcast", "record", "sing", "sound", "studio", "studio microphone", "talking", "voice" })] + [FontAwesomeSearchTerms(new[] { "microphone lines", "audio", "mic", "microphone", "music", "podcast", "record", "sing", "sound", "studio", "studio microphone", "voice" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Film + Video", "Music + Audio" })] MicrophoneAlt = 0xF3C9, /// <summary> /// The Font Awesome "microphone-lines-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "microphone lines slash", "audio", "disable", "disabled", "disconnect", "disconnect", "mute", "podcast", "record", "sing", "sound", "voice" })] + [FontAwesomeSearchTerms(new[] { "microphone lines slash", "audio", "disable", "mute", "podcast", "record", "sing", "sound", "voice" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Film + Video", "Music + Audio" })] MicrophoneAltSlash = 0xF539, /// <summary> /// The Font Awesome "microphone-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "microphone slash", "audio", "disable", "disabled", "mute", "podcast", "record", "sing", "sound", "voice" })] + [FontAwesomeSearchTerms(new[] { "microphone slash", "audio", "disable", "mute", "podcast", "record", "sing", "sound", "voice" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Film + Video", "Music + Audio", "Toggle" })] MicrophoneSlash = 0xF131, /// <summary> /// The Font Awesome "microscope" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "covid-19", "electron", "knowledge", "lens", "microscope", "optics", "science", "shrink", "testing", "tool" })] + [FontAwesomeSearchTerms(new[] { "covid-19", "electron", "lens", "microscope", "optics", "science", "shrink", "testing", "tool" })] [FontAwesomeCategoriesAttribute(new[] { "Education", "Humanitarian", "Medical + Health", "Science" })] Microscope = 0xF610, @@ -5656,80 +5584,73 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Communication", "Devices + Hardware", "Humanitarian" })] MobileScreen = 0xF3CF, - /// <summary> - /// The Font Awesome "mobile-vibrate" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "mobile vibrate", "android", "call", "cell", "cell phone", "device", "haptic", "mobile", "mobile phone", "notification", "number", "phone", "screen", "telephone", "text" })] - [FontAwesomeCategoriesAttribute(new[] { "Communication", "Devices + Hardware" })] - MobileVibrate = 0xE816, - /// <summary> /// The Font Awesome "money-bill" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bill", "buy", "cash", "checkout", "coupon", "investment", "money", "payment", "premium", "price", "purchase", "revenue", "salary" })] + [FontAwesomeSearchTerms(new[] { "money bill", "buy", "cash", "checkout", "money", "payment", "price", "purchase" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Money" })] MoneyBill = 0xF0D6, /// <summary> /// The Font Awesome "money-bill-1" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bill 1", "buy", "cash", "checkout", "money", "payment", "premium", "price", "purchase", "salary" })] + [FontAwesomeSearchTerms(new[] { "money bill 1", "buy", "cash", "checkout", "money", "payment", "price", "purchase" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Money" })] MoneyBillAlt = 0xF3D1, /// <summary> /// The Font Awesome "money-bills" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bills", "atm", "cash", "investment", "money", "moolah", "premium", "revenue", "salary" })] + [FontAwesomeSearchTerms(new[] { "money bills", "atm", "cash", "money", "moolah" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Money" })] MoneyBills = 0xE1F3, /// <summary> /// The Font Awesome "money-bill-transfer" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bill transfer", "bank", "conversion", "deposit", "investment", "money", "salary", "transfer", "withdrawal" })] + [FontAwesomeSearchTerms(new[] { "money bill transfer", "bank", "conversion", "deposit", "money", "transfer", "withdrawal" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Money" })] MoneyBillTransfer = 0xE528, /// <summary> /// The Font Awesome "money-bill-trend-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bill trend up", "bank", "bonds", "inflation", "investment", "market", "revenue", "salary", "stocks", "trade" })] + [FontAwesomeSearchTerms(new[] { "money bill trend up", "bank", "bonds", "inflation", "market", "stocks", "trade" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Money" })] MoneyBillTrendUp = 0xE529, /// <summary> /// The Font Awesome "money-bill-wave" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bill wave", "buy", "cash", "checkout", "money", "payment", "premium", "price", "purchase", "salary" })] + [FontAwesomeSearchTerms(new[] { "money bill wave", "buy", "cash", "checkout", "money", "payment", "price", "purchase" })] [FontAwesomeCategoriesAttribute(new[] { "Money" })] MoneyBillWave = 0xF53A, /// <summary> /// The Font Awesome "money-bill-1-wave" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bill 1 wave", "buy", "cash", "checkout", "money", "payment", "premium", "price", "purchase", "salary" })] + [FontAwesomeSearchTerms(new[] { "money bill 1 wave", "buy", "cash", "checkout", "money", "payment", "price", "purchase" })] [FontAwesomeCategoriesAttribute(new[] { "Money" })] MoneyBillWaveAlt = 0xF53B, /// <summary> /// The Font Awesome "money-bill-wheat" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money bill wheat", "agribusiness", "agriculture", "farming", "food", "investment", "livelihood", "subsidy" })] + [FontAwesomeSearchTerms(new[] { "money bill wheat", "agribusiness", "agriculture", "farming", "food", "livelihood", "subsidy" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Money" })] MoneyBillWheat = 0xE52A, /// <summary> /// The Font Awesome "money-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money check", "bank check", "buy", "checkout", "cheque", "money", "payment", "price", "purchase", "salary" })] + [FontAwesomeSearchTerms(new[] { "money check", "bank check", "buy", "checkout", "cheque", "money", "payment", "price", "purchase" })] [FontAwesomeCategoriesAttribute(new[] { "Money", "Shopping" })] MoneyCheck = 0xF53C, /// <summary> /// The Font Awesome "money-check-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "money check dollar", "bank check", "buy", "checkout", "cheque", "money", "payment", "price", "purchase", "salary" })] + [FontAwesomeSearchTerms(new[] { "money check dollar", "bank check", "buy", "checkout", "cheque", "money", "payment", "price", "purchase" })] [FontAwesomeCategoriesAttribute(new[] { "Money", "Shopping" })] MoneyCheckAlt = 0xF53D, @@ -5862,21 +5783,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "newspaper" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "article", "editorial", "headline", "journal", "journalism", "news", "newsletter", "newspaper", "paper", "press" })] + [FontAwesomeSearchTerms(new[] { "article", "editorial", "headline", "journal", "journalism", "news", "newspaper", "paper", "press" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Writing" })] Newspaper = 0xF1EA, - /// <summary> - /// The Font Awesome "non-binary" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "non binary", "female", "gender", "male", "nb", "queer" })] - [FontAwesomeCategoriesAttribute(new[] { "Genders" })] - NonBinary = 0xE807, - /// <summary> /// The Font Awesome "notdef" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "notdef", "404", "close", "missing", "not found" })] + [FontAwesomeSearchTerms(new[] { "notdef", "close", "missing" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Writing" })] Notdef = 0xE1FE, @@ -5908,13 +5822,6 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Design" })] ObjectUngroup = 0xF248, - /// <summary> - /// The Font Awesome "octagon" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "octagon", "octagonal", "shape", "sign", "stop", "stop sign" })] - [FontAwesomeCategoriesAttribute(new[] { "Shapes" })] - Octagon = 0xF306, - /// <summary> /// The Font Awesome "oil-can" icon unicode character. /// </summary> @@ -5960,14 +5867,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "paintbrush" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "acrylic", "art", "brush", "color", "fill", "modify", "paint", "paintbrush", "painting", "pigment", "watercolor" })] + [FontAwesomeSearchTerms(new[] { "acrylic", "art", "brush", "color", "fill", "paint", "paintbrush", "painting", "pigment", "watercolor" })] [FontAwesomeCategoriesAttribute(new[] { "Design", "Editing" })] PaintBrush = 0xF1FC, /// <summary> /// The Font Awesome "paint-roller" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "paint roller", "acrylic", "art", "brush", "color", "fill", "maintenance", "paint", "pigment", "watercolor" })] + [FontAwesomeSearchTerms(new[] { "paint roller", "acrylic", "art", "brush", "color", "fill", "paint", "pigment", "watercolor" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Design" })] PaintRoller = 0xF5AA, @@ -5988,7 +5895,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "panorama" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "panorama", "image", "img", "landscape", "photo", "wide" })] + [FontAwesomeSearchTerms(new[] { "panorama", "image", "landscape", "photo", "wide" })] [FontAwesomeCategoriesAttribute(new[] { "Photos + Images" })] Panorama = 0xE209, @@ -6079,105 +5986,98 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "pen" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ballpoint", "design", "edit", "modify", "pen", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "ballpoint", "design", "edit", "pen", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design", "Editing", "Writing" })] Pen = 0xF304, /// <summary> /// The Font Awesome "pen-clip" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "pen clip", "design", "edit", "modify", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "pen clip", "design", "edit", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design", "Editing", "Writing" })] PenAlt = 0xF305, /// <summary> /// The Font Awesome "pencil" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "lower left pencil", "design", "draw", "edit", "lead", "maintenance", "modify", "pencil", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "lower left pencil", "design", "draw", "edit", "lead", "pencil", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Construction", "Design", "Editing", "Writing" })] PencilAlt = 0xF303, /// <summary> /// The Font Awesome "pen-ruler" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "pen ruler", "design", "draft", "draw", "maintenance", "modify", "pencil" })] + [FontAwesomeSearchTerms(new[] { "pen ruler", "design", "draft", "draw", "pencil" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Design", "Editing" })] PencilRuler = 0xF5AE, /// <summary> /// The Font Awesome "pen-fancy" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "pen fancy", "black nib", "design", "edit", "fountain", "fountain pen", "modify", "nib", "pen", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "pen fancy", "black nib", "design", "edit", "fountain", "fountain pen", "nib", "pen", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design", "Editing" })] PenFancy = 0xF5AC, /// <summary> /// The Font Awesome "pen-nib" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "pen nib", "design", "edit", "fountain pen", "modify", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "pen nib", "design", "edit", "fountain pen", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Design", "Editing" })] PenNib = 0xF5AD, /// <summary> /// The Font Awesome "square-pen" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square pen", "edit", "modify", "pencil-square", "update", "write" })] + [FontAwesomeSearchTerms(new[] { "square pen", "edit", "pencil-square", "update", "write" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Editing", "Writing" })] PenSquare = 0xF14B, - /// <summary> - /// The Font Awesome "pentagon" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "5", "five", "pentagon", "shape" })] - [FontAwesomeCategoriesAttribute(new[] { "Shapes" })] - Pentagon = 0xE790, - /// <summary> /// The Font Awesome "people-arrows" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "people arrows", "conversation", "discussion", "distance", "insert", "isolation", "separate", "social distancing", "talk", "talking", "together", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "people arrows", "distance", "isolation", "separate", "social distancing", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PeopleArrows = 0xE068, /// <summary> /// The Font Awesome "people-carry-box" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "people carry box", "together", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "people carry box", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Moving", "Users + People" })] PeopleCarry = 0xF4CE, /// <summary> /// The Font Awesome "people-group" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "people group", "crowd", "family", "group", "team", "together", "uer" })] + [FontAwesomeSearchTerms(new[] { "people group", "family", "group", "team" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Marketing", "Users + People" })] PeopleGroup = 0xE533, /// <summary> /// The Font Awesome "people-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "people line", "crowd", "group", "need", "together", "uer" })] + [FontAwesomeSearchTerms(new[] { "people line", "group", "need" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PeopleLine = 0xE534, /// <summary> /// The Font Awesome "people-pulling" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "people pulling", "forced return", "together", "uer", "yanking" })] + [FontAwesomeSearchTerms(new[] { "people pulling", "forced return", "yanking" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PeoplePulling = 0xE535, /// <summary> /// The Font Awesome "people-robbery" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "people robbery", "criminal", "hands up", "looting", "robbery", "steal", "uer" })] + [FontAwesomeSearchTerms(new[] { "people robbery", "criminal", "hands up", "looting", "robbery", "steal" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PeopleRobbery = 0xE536, /// <summary> /// The Font Awesome "people-roof" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "people roof", "crowd", "family", "group", "manage", "people", "safe", "shelter", "together", "uer" })] + [FontAwesomeSearchTerms(new[] { "people roof", "family", "group", "manage", "people", "safe", "shelter" })] [FontAwesomeCategoriesAttribute(new[] { "Camping", "Household", "Humanitarian", "Users + People" })] PeopleRoof = 0xE537, @@ -6207,105 +6107,105 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-arrow-down-to-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person arrow down to line", "ground", "indigenous", "insert", "native", "uer" })] + [FontAwesomeSearchTerms(new[] { "person arrow down to line", "ground", "indigenous", "native" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonArrowDownToLine = 0xE538, /// <summary> /// The Font Awesome "person-arrow-up-from-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person arrow up from line", "population", "rise", "uer", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "person arrow up from line", "population", "rise" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonArrowUpFromLine = 0xE539, /// <summary> /// The Font Awesome "person-booth" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person booth", "changing room", "curtain", "uer", "vote", "voting" })] + [FontAwesomeSearchTerms(new[] { "person booth", "changing room", "curtain", "vote", "voting" })] [FontAwesomeCategoriesAttribute(new[] { "Political", "Shopping", "Users + People" })] PersonBooth = 0xF756, /// <summary> /// The Font Awesome "person-breastfeeding" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person breastfeeding", "baby", "child", "infant", "mother", "nutrition", "parent", "sustenance", "uer" })] + [FontAwesomeSearchTerms(new[] { "person breastfeeding", "baby", "child", "infant", "mother", "nutrition", "sustenance" })] [FontAwesomeCategoriesAttribute(new[] { "Childhood", "Humanitarian", "Medical + Health", "Users + People" })] PersonBreastfeeding = 0xE53A, /// <summary> /// The Font Awesome "person-burst" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person burst", "abuse", "accident", "crash", "explode", "uer", "violence" })] + [FontAwesomeSearchTerms(new[] { "person burst", "abuse", "accident", "crash", "explode", "violence" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonBurst = 0xE53B, /// <summary> /// The Font Awesome "person-cane" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person cane", "aging", "cane", "elderly", "old", "staff", "uer" })] + [FontAwesomeSearchTerms(new[] { "person cane", "aging", "cane", "elderly", "old", "staff" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Humanitarian", "Medical + Health", "Users + People" })] PersonCane = 0xE53C, /// <summary> /// The Font Awesome "person-chalkboard" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person chalkboard", "blackboard", "instructor", "keynote", "lesson", "presentation", "teacher", "uer" })] + [FontAwesomeSearchTerms(new[] { "person chalkboard", "blackboard", "instructor", "keynote", "lesson", "presentation", "teacher" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Education", "Humanitarian", "Users + People" })] PersonChalkboard = 0xE53D, /// <summary> /// The Font Awesome "person-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person circle check", "approved", "enable", "not affected", "ok", "okay", "uer", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "person circle check", "approved", "not affected", "ok", "okay" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonCircleCheck = 0xE53E, /// <summary> /// The Font Awesome "person-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person circle exclamation", "affected", "alert", "failed", "lost", "missing", "uer" })] + [FontAwesomeSearchTerms(new[] { "person circle exclamation", "affected", "alert", "lost", "missing" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonCircleExclamation = 0xE53F, /// <summary> /// The Font Awesome "person-circle-minus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person circle minus", "delete", "remove", "uer" })] + [FontAwesomeSearchTerms(new[] { "person circle minus", "delete", "remove" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonCircleMinus = 0xE540, /// <summary> /// The Font Awesome "person-circle-plus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person circle plus", "add", "follow", "found", "uer" })] + [FontAwesomeSearchTerms(new[] { "person circle plus", "add", "found" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonCirclePlus = 0xE541, /// <summary> /// The Font Awesome "person-circle-question" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person circle question", "faq", "lost", "missing", "request", "uer" })] + [FontAwesomeSearchTerms(new[] { "person circle question", "lost", "missing" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonCircleQuestion = 0xE542, /// <summary> /// The Font Awesome "person-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person circle xmark", "dead", "removed", "uer", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "person circle xmark", "dead", "removed" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonCircleXmark = 0xE543, /// <summary> /// The Font Awesome "person-digging" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person digging", "bury", "construction", "debris", "dig", "maintenance", "men at work", "uer" })] + [FontAwesomeSearchTerms(new[] { "person digging", "bury", "construction", "debris", "dig", "men at work" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Humanitarian", "Users + People" })] PersonDigging = 0xF85E, /// <summary> /// The Font Awesome "person-dress-burst" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person dress burst", "abuse", "accident", "crash", "explode", "uer", "violence" })] + [FontAwesomeSearchTerms(new[] { "person dress burst", "abuse", "accident", "crash", "explode", "violence" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonDressBurst = 0xE544, @@ -6319,112 +6219,112 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-falling" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person falling", "accident", "fall", "trip", "uer" })] + [FontAwesomeSearchTerms(new[] { "person falling", "accident", "fall", "trip" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonFalling = 0xE546, /// <summary> /// The Font Awesome "person-falling-burst" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person falling burst", "accident", "crash", "death", "fall", "homicide", "murder", "uer" })] + [FontAwesomeSearchTerms(new[] { "person falling burst", "accident", "crash", "death", "fall", "homicide", "murder" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonFallingBurst = 0xE547, /// <summary> /// The Font Awesome "person-half-dress" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person half dress", "gender", "man", "restroom", "transgender", "uer", "woman" })] + [FontAwesomeSearchTerms(new[] { "person half dress", "gender", "man", "restroom", "transgender", "woman" })] [FontAwesomeCategoriesAttribute(new[] { "Genders", "Humanitarian", "Medical + Health", "Users + People" })] PersonHalfDress = 0xE548, /// <summary> /// The Font Awesome "person-harassing" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person harassing", "abuse", "scream", "shame", "shout", "uer", "yell" })] + [FontAwesomeSearchTerms(new[] { "person harassing", "abuse", "scream", "shame", "shout", "yell" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonHarassing = 0xE549, /// <summary> /// The Font Awesome "person-military-pointing" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person military pointing", "army", "customs", "guard", "uer" })] + [FontAwesomeSearchTerms(new[] { "person military pointing", "army", "customs", "guard" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonMilitaryPointing = 0xE54A, /// <summary> /// The Font Awesome "person-military-rifle" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person military rifle", "armed forces", "army", "military", "rifle", "uer", "war" })] + [FontAwesomeSearchTerms(new[] { "person military rifle", "armed forces", "army", "military", "rifle", "war" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonMilitaryRifle = 0xE54B, /// <summary> /// The Font Awesome "person-military-to-person" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person military to person", "civilian", "coordination", "military", "uer" })] + [FontAwesomeSearchTerms(new[] { "person military to person", "civilian", "coordination", "military" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonMilitaryToPerson = 0xE54C, /// <summary> /// The Font Awesome "person-pregnant" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person pregnant", "baby", "birth", "child", "parent", "pregnant", "pregnant woman", "uer", "woman" })] + [FontAwesomeSearchTerms(new[] { "person pregnant", "baby", "birth", "child", "pregnant", "pregnant woman", "woman" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] PersonPregnant = 0xE31E, /// <summary> /// The Font Awesome "person-rays" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person rays", "affected", "focus", "shine", "uer" })] + [FontAwesomeSearchTerms(new[] { "person rays", "affected", "focus", "shine" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Marketing", "Users + People" })] PersonRays = 0xE54D, /// <summary> /// The Font Awesome "person-rifle" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person rifle", "army", "combatant", "gun", "military", "rifle", "uer", "war" })] + [FontAwesomeSearchTerms(new[] { "person rifle", "army", "combatant", "gun", "military", "rifle", "war" })] [FontAwesomeCategoriesAttribute(new[] { "Disaster + Crisis", "Humanitarian", "Security", "Users + People" })] PersonRifle = 0xE54E, /// <summary> /// The Font Awesome "person-shelter" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person shelter", "house", "inside", "roof", "safe", "safety", "shelter", "uer" })] + [FontAwesomeSearchTerms(new[] { "person shelter", "house", "inside", "roof", "safe", "safety", "shelter" })] [FontAwesomeCategoriesAttribute(new[] { "Camping", "Humanitarian", "Security", "Users + People" })] PersonShelter = 0xE54F, /// <summary> /// The Font Awesome "person-through-window" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person through window", "door", "exit", "forced entry", "leave", "robbery", "steal", "uer", "window" })] + [FontAwesomeSearchTerms(new[] { "person through window", "door", "exit", "forced entry", "leave", "robbery", "steal", "window" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] PersonThroughWindow = 0xE5A9, /// <summary> /// The Font Awesome "person-walking-arrow-loop-left" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person walking arrow loop left", "follow", "population return", "return", "uer" })] + [FontAwesomeSearchTerms(new[] { "person walking arrow loop left", "population return", "return" })] [FontAwesomeCategoriesAttribute(new[] { "Disaster + Crisis", "Humanitarian", "Users + People" })] PersonWalkingArrowLoopLeft = 0xE551, /// <summary> /// The Font Awesome "person-walking-arrow-right" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person walking arrow right", "exit", "follow", "internally displaced", "leave", "refugee", "uer" })] + [FontAwesomeSearchTerms(new[] { "person walking arrow right", "exit", "internally displaced", "leave", "refugee" })] [FontAwesomeCategoriesAttribute(new[] { "Disaster + Crisis", "Humanitarian", "Users + People" })] PersonWalkingArrowRight = 0xE552, /// <summary> /// The Font Awesome "person-walking-dashed-line-arrow-right" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person walking dashed line arrow right", "exit", "follow", "refugee", "uer" })] + [FontAwesomeSearchTerms(new[] { "person walking dashed line arrow right", "exit", "refugee" })] [FontAwesomeCategoriesAttribute(new[] { "Disaster + Crisis", "Humanitarian", "Users + People" })] PersonWalkingDashedLineArrowRight = 0xE553, /// <summary> /// The Font Awesome "person-walking-luggage" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person walking luggage", "bag", "baggage", "briefcase", "carry-on", "deployment", "follow", "rolling", "uer" })] + [FontAwesomeSearchTerms(new[] { "person walking luggage", "bag", "baggage", "briefcase", "carry-on", "deployment", "rolling" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Travel + Hotel", "Users + People" })] PersonWalkingLuggage = 0xE554, @@ -6445,7 +6345,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "phone" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "left hand telephone receiver", "call", "earphone", "number", "phone", "receiver", "support", "talking", "telephone", "telephone receiver", "voice" })] + [FontAwesomeSearchTerms(new[] { "left hand telephone receiver", "call", "earphone", "number", "phone", "receiver", "support", "telephone", "telephone receiver", "voice" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication", "Maps" })] Phone = 0xF095, @@ -6459,7 +6359,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "phone-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "phone slash", "call", "cancel", "disabled", "disconnect", "earphone", "mute", "number", "support", "telephone", "voice" })] + [FontAwesomeSearchTerms(new[] { "phone slash", "call", "cancel", "earphone", "mute", "number", "support", "telephone", "voice" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Communication" })] PhoneSlash = 0xF3DD, @@ -6480,7 +6380,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "phone-volume" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "phone volume", "call", "earphone", "number", "ring", "ringing", "sound", "support", "talking", "telephone", "voice", "volume-control-phone" })] + [FontAwesomeSearchTerms(new[] { "phone volume", "call", "earphone", "number", "sound", "support", "telephone", "voice", "volume-control-phone" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Business", "Communication", "Maps", "Media Playback" })] PhoneVolume = 0xF2A0, @@ -6494,7 +6394,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "piggy-bank" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "piggy bank", "bank", "salary", "save", "savings" })] + [FontAwesomeSearchTerms(new[] { "piggy bank", "bank", "save", "savings" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Money", "Political" })] PiggyBank = 0xF4D3, @@ -6530,27 +6430,27 @@ public enum FontAwesomeIcon /// The Font Awesome "plane-arrival" icon unicode character. /// </summary> [FontAwesomeSearchTerms(new[] { "plane arrival", "aeroplane", "airplane", "airplane arrival", "airport", "arrivals", "arriving", "destination", "fly", "land", "landing", "location", "mode", "travel", "trip" })] - [FontAwesomeCategoriesAttribute(new[] { "Transportation", "Travel + Hotel" })] + [FontAwesomeCategoriesAttribute(new[] { "Travel + Hotel" })] PlaneArrival = 0xF5AF, /// <summary> /// The Font Awesome "plane-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plane circle check", "airplane", "airport", "enable", "flight", "fly", "not affected", "ok", "okay", "travel", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "plane circle check", "airplane", "airport", "flight", "fly", "not affected", "ok", "okay", "travel" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Travel + Hotel" })] PlaneCircleCheck = 0xE555, /// <summary> /// The Font Awesome "plane-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plane circle exclamation", "affected", "airplane", "airport", "failed", "flight", "fly", "travel" })] + [FontAwesomeSearchTerms(new[] { "plane circle exclamation", "affected", "airplane", "airport", "flight", "fly", "travel" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Travel + Hotel" })] PlaneCircleExclamation = 0xE556, /// <summary> /// The Font Awesome "plane-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plane circle xmark", "airplane", "airport", "destroy", "flight", "fly", "travel", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "plane circle xmark", "airplane", "airport", "destroy", "flight", "fly", "travel" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Travel + Hotel" })] PlaneCircleXmark = 0xE557, @@ -6564,14 +6464,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "plane-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plane lock", "airplane", "airport", "closed", "flight", "fly", "lockdown", "padlock", "privacy", "quarantine", "travel" })] + [FontAwesomeSearchTerms(new[] { "plane lock", "airplane", "airport", "closed", "flight", "fly", "lockdown", "quarantine", "travel" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics", "Travel + Hotel" })] PlaneLock = 0xE558, /// <summary> /// The Font Awesome "plane-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plane slash", "airplane mode", "airport", "canceled", "covid-19", "delayed", "disabled", "grounded", "travel" })] + [FontAwesomeSearchTerms(new[] { "plane slash", "airplane mode", "airport", "canceled", "covid-19", "delayed", "grounded", "travel" })] [FontAwesomeCategoriesAttribute(new[] { "Transportation", "Travel + Hotel" })] PlaneSlash = 0xE069, @@ -6627,21 +6527,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "plug-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plug circle check", "electric", "electricity", "enable", "not affected", "ok", "okay", "plug", "power", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "plug circle check", "electric", "electricity", "not affected", "ok", "okay", "plug", "power" })] [FontAwesomeCategoriesAttribute(new[] { "Energy", "Humanitarian" })] PlugCircleCheck = 0xE55C, /// <summary> /// The Font Awesome "plug-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plug circle exclamation", "affected", "electric", "electricity", "failed", "plug", "power" })] + [FontAwesomeSearchTerms(new[] { "plug circle exclamation", "affected", "electric", "electricity", "plug", "power" })] [FontAwesomeCategoriesAttribute(new[] { "Energy", "Humanitarian" })] PlugCircleExclamation = 0xE55D, /// <summary> /// The Font Awesome "plug-circle-minus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plug circle minus", "disconnect", "electric", "electricity", "plug", "power" })] + [FontAwesomeSearchTerms(new[] { "plug circle minus", "electric", "electricity", "plug", "power" })] [FontAwesomeCategoriesAttribute(new[] { "Energy", "Humanitarian" })] PlugCircleMinus = 0xE55E, @@ -6655,7 +6555,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "plug-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "plug circle xmark", "destroy", "disconnect", "electric", "electricity", "outage", "plug", "power", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "plug circle xmark", "destroy", "electric", "electricity", "outage", "plug", "power" })] [FontAwesomeCategoriesAttribute(new[] { "Energy", "Humanitarian" })] PlugCircleXmark = 0xE560, @@ -6663,7 +6563,7 @@ public enum FontAwesomeIcon /// The Font Awesome "plus" icon unicode character. /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0x2B. /// </summary> - [FontAwesomeSearchTerms(new[] { "+", "plus sign", "add", "create", "expand", "follow", "math", "modify", "new", "plus", "positive", "shape", "sign" })] + [FontAwesomeSearchTerms(new[] { "+", "plus sign", "add", "create", "expand", "math", "new", "plus", "positive", "shape", "sign" })] [FontAwesomeCategoriesAttribute(new[] { "Editing", "Maps", "Mathematics", "Medical + Health", "Punctuation + Symbols" })] Plus = 0xF067, @@ -6698,21 +6598,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "square-poll-vertical" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square poll vertical", "chart", "graph", "results", "revenue", "statistics", "survey", "trend", "vote", "voting" })] + [FontAwesomeSearchTerms(new[] { "square poll vertical", "chart", "graph", "results", "survey", "trend", "vote", "voting" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Charts + Diagrams", "Marketing", "Social" })] Poll = 0xF681, /// <summary> /// The Font Awesome "square-poll-horizontal" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square poll horizontal", "chart", "graph", "results", "statistics", "survey", "trend", "vote", "voting" })] + [FontAwesomeSearchTerms(new[] { "square poll horizontal", "chart", "graph", "results", "survey", "trend", "vote", "voting" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Charts + Diagrams", "Marketing", "Social" })] PollH = 0xF682, /// <summary> /// The Font Awesome "poo" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "crap", "dung", "face", "monster", "pile of poo", "poo", "poop", "shit", "smile", "turd", "uer" })] + [FontAwesomeSearchTerms(new[] { "crap", "dung", "face", "monster", "pile of poo", "poo", "poop", "shit", "smile", "turd" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Users + People" })] Poo = 0xF2FE, @@ -6733,7 +6633,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "image-portrait" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "image portrait", "id", "image", "img", "photo", "picture", "selfie", "uer", "username" })] + [FontAwesomeSearchTerms(new[] { "image portrait", "id", "image", "photo", "picture", "selfie" })] [FontAwesomeCategoriesAttribute(new[] { "Photos + Images", "Users + People" })] Portrait = 0xF3E0, @@ -6754,7 +6654,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-praying" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person praying", "kneel", "place of worship", "religion", "thank", "uer", "worship" })] + [FontAwesomeSearchTerms(new[] { "person praying", "kneel", "place of worship", "religion", "thank", "worship" })] [FontAwesomeCategoriesAttribute(new[] { "Religion", "Users + People" })] Pray = 0xF683, @@ -6803,7 +6703,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "diagram-project" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "diagram project", "chart", "graph", "network", "pert", "statistics" })] + [FontAwesomeSearchTerms(new[] { "diagram project", "chart", "graph", "network", "pert" })] [FontAwesomeCategoriesAttribute(new[] { "Charts + Diagrams", "Coding" })] ProjectDiagram = 0xF542, @@ -6831,22 +6731,22 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "qrcode" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "qrcode", "barcode", "info", "information", "qr", "qr-code", "scan" })] - [FontAwesomeCategoriesAttribute(new[] { "Coding", "Shopping" })] + [FontAwesomeSearchTerms(new[] { "qrcode", "barcode", "info", "information", "scan" })] + [FontAwesomeCategoriesAttribute(new[] { "Coding" })] Qrcode = 0xF029, /// <summary> /// The Font Awesome "question" icon unicode character. /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0x3F. /// </summary> - [FontAwesomeSearchTerms(new[] { "?", "question mark", "faq", "help", "information", "mark", "outlined", "punctuation", "question", "red question mark", "request", "support", "unknown", "white question mark" })] + [FontAwesomeSearchTerms(new[] { "?", "question mark", "help", "information", "mark", "outlined", "punctuation", "question", "red question mark", "support", "unknown", "white question mark" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Alert", "Punctuation + Symbols" })] Question = 0xF128, /// <summary> /// The Font Awesome "circle-question" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle question", "faq", "help", "information", "support", "unknown" })] + [FontAwesomeSearchTerms(new[] { "circle question", "help", "information", "support", "unknown" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Punctuation + Symbols" })] QuestionCircle = 0xF059, @@ -6916,14 +6816,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "ranking-star" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ranking star", "chart", "first place", "podium", "quality", "rank", "revenue", "win" })] + [FontAwesomeSearchTerms(new[] { "ranking star", "chart", "first place", "podium", "rank", "win" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Marketing", "Sports + Fitness" })] RankingStar = 0xE561, /// <summary> /// The Font Awesome "receipt" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "accounting", "bookkeeping", "check", "coupon", "evidence", "invoice", "money", "pay", "proof", "receipt", "table" })] + [FontAwesomeSearchTerms(new[] { "accounting", "bookkeeping", "check", "evidence", "invoice", "money", "pay", "proof", "receipt", "table" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Money", "Shopping" })] Receipt = 0xF543, @@ -6944,15 +6844,15 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrow-rotate-right" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow rotate right", "clockwise open circle arrow", "forward", "refresh", "reload", "renew", "repeat", "retry" })] - [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback", "Spinners" })] + [FontAwesomeSearchTerms(new[] { "arrow rotate right", "clockwise open circle arrow", "forward", "refresh", "reload", "repeat" })] + [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] Redo = 0xF01E, /// <summary> /// The Font Awesome "rotate-right" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "rotate right", "forward", "refresh", "reload", "renew", "repeat", "retry" })] - [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback", "Spinners" })] + [FontAwesomeSearchTerms(new[] { "rotate right", "forward", "refresh", "reload", "repeat" })] + [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] RedoAlt = 0xF2F9, /// <summary> @@ -6965,14 +6865,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "text-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "text slash", "cancel", "disabled", "font", "format", "remove", "style", "text" })] + [FontAwesomeSearchTerms(new[] { "text slash", "cancel", "font", "format", "remove", "style", "text" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] RemoveFormat = 0xF87D, /// <summary> /// The Font Awesome "repeat" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow", "clockwise", "flip", "reload", "renew", "repeat", "repeat button", "retry", "rewind", "switch" })] + [FontAwesomeSearchTerms(new[] { "arrow", "clockwise", "flip", "reload", "repeat", "repeat button", "rewind", "switch" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] Repeat = 0xF363, @@ -7000,14 +6900,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "restroom" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "restroom", "bathroom", "toilet", "uer", "water closet", "wc" })] + [FontAwesomeSearchTerms(new[] { "restroom", "bathroom", "toilet", "water closet", "wc" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Users + People" })] Restroom = 0xF7BD, /// <summary> /// The Font Awesome "retweet" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "retweet", "refresh", "reload", "renew", "retry", "share", "swap" })] + [FontAwesomeSearchTerms(new[] { "retweet", "refresh", "reload", "share", "swap" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Social" })] Retweet = 0xF079, @@ -7021,7 +6921,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "ring" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ring", "dungeons & dragons", "gollum", "band", "binding", "d&d", "dnd", "engagement", "fantasy", "gold", "jewelry", "marriage", "precious", "premium" })] + [FontAwesomeSearchTerms(new[] { "ring", "dungeons & dragons", "gollum", "band", "binding", "d&d", "dnd", "engagement", "fantasy", "gold", "jewelry", "marriage", "precious" })] [FontAwesomeCategoriesAttribute(new[] { "Gaming", "Spinners" })] Ring = 0xF70B, @@ -7049,28 +6949,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "road-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "road circle check", "enable", "freeway", "highway", "not affected", "ok", "okay", "pavement", "road", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "road circle check", "freeway", "highway", "not affected", "ok", "okay", "pavement", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] RoadCircleCheck = 0xE564, /// <summary> /// The Font Awesome "road-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "road circle exclamation", "affected", "failed", "freeway", "highway", "pavement", "road" })] + [FontAwesomeSearchTerms(new[] { "road circle exclamation", "affected", "freeway", "highway", "pavement", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] RoadCircleExclamation = 0xE565, /// <summary> /// The Font Awesome "road-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "road circle xmark", "destroy", "freeway", "highway", "pavement", "road", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "road circle xmark", "destroy", "freeway", "highway", "pavement", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] RoadCircleXmark = 0xE566, /// <summary> /// The Font Awesome "road-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "road lock", "closed", "freeway", "highway", "lockdown", "padlock", "pavement", "privacy", "quarantine", "road" })] + [FontAwesomeSearchTerms(new[] { "road lock", "closed", "freeway", "highway", "lockdown", "pavement", "quarantine", "road" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Logistics" })] RoadLock = 0xE567, @@ -7161,7 +7061,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-running" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person running", "exit", "flee", "follow", "marathon", "person running", "race", "running", "uer", "workout" })] + [FontAwesomeSearchTerms(new[] { "person running", "exit", "flee", "marathon", "person running", "race", "running" })] [FontAwesomeCategoriesAttribute(new[] { "Sports + Fitness", "Users + People" })] Running = 0xF70C, @@ -7182,14 +7082,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "sack-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "sack dollar", "bag", "burlap", "cash", "dollar", "investment", "money", "money bag", "moneybag", "premium", "robber", "salary", "santa", "usd" })] + [FontAwesomeSearchTerms(new[] { "sack dollar", "bag", "burlap", "cash", "dollar", "money", "money bag", "moneybag", "robber", "santa", "usd" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Money" })] SackDollar = 0xF81D, /// <summary> /// The Font Awesome "sack-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "sack xmark", "bag", "burlap", "coupon", "rations", "salary", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "sack xmark", "bag", "burlap", "rations" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Money" })] SackXmark = 0xE56A, @@ -7245,21 +7145,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "school-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "school circle check", "enable", "not affected", "ok", "okay", "schoolhouse", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "school circle check", "not affected", "ok", "okay", "schoolhouse" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Education", "Humanitarian" })] SchoolCircleCheck = 0xE56B, /// <summary> /// The Font Awesome "school-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "school circle exclamation", "affected", "failed", "schoolhouse" })] + [FontAwesomeSearchTerms(new[] { "school circle exclamation", "affected", "schoolhouse" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Education", "Humanitarian" })] SchoolCircleExclamation = 0xE56C, /// <summary> /// The Font Awesome "school-circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "school circle xmark", "destroy", "schoolhouse", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "school circle xmark", "destroy", "schoolhouse" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Education", "Humanitarian" })] SchoolCircleXmark = 0xE56D, @@ -7273,63 +7173,63 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "school-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "school lock", "closed", "lockdown", "padlock", "privacy", "quarantine", "schoolhouse" })] + [FontAwesomeSearchTerms(new[] { "school lock", "closed", "lockdown", "quarantine", "schoolhouse" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Education", "Humanitarian" })] SchoolLock = 0xE56F, /// <summary> /// The Font Awesome "screwdriver" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "admin", "configuration", "equipment", "fix", "maintenance", "mechanic", "modify", "repair", "screw", "screwdriver", "settings", "tool" })] + [FontAwesomeSearchTerms(new[] { "admin", "fix", "mechanic", "repair", "screw", "screwdriver", "settings", "tool" })] [FontAwesomeCategoriesAttribute(new[] { "Construction" })] Screwdriver = 0xF54A, /// <summary> /// The Font Awesome "scroll" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "dungeons & dragons", "announcement", "d&d", "dnd", "fantasy", "paper", "scholar", "script", "scroll" })] + [FontAwesomeSearchTerms(new[] { "dungeons & dragons", "announcement", "d&d", "dnd", "fantasy", "paper", "script", "scroll" })] [FontAwesomeCategoriesAttribute(new[] { "Gaming" })] Scroll = 0xF70E, /// <summary> /// The Font Awesome "sd-card" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "sd card", "image", "img", "memory", "photo", "save" })] + [FontAwesomeSearchTerms(new[] { "sd card", "image", "memory", "photo", "save" })] [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware" })] SdCard = 0xF7C2, /// <summary> /// The Font Awesome "magnifying-glass" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "magnifying glass", "bigger", "enlarge", "equipment", "find", "glass", "inspection", "magnifier", "magnify", "magnifying", "magnifying glass tilted left", "preview", "search", "tool", "zoom" })] + [FontAwesomeSearchTerms(new[] { "magnifying glass", "bigger", "enlarge", "find", "glass", "magnify", "magnifying", "magnifying glass tilted left", "preview", "search", "tool", "zoom" })] [FontAwesomeCategoriesAttribute(new[] { "Maps" })] Search = 0xF002, /// <summary> /// The Font Awesome "magnifying-glass-dollar" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "magnifying glass dollar", "bigger", "enlarge", "find", "magnifier", "magnify", "money", "preview", "zoom" })] + [FontAwesomeSearchTerms(new[] { "magnifying glass dollar", "bigger", "enlarge", "find", "magnify", "money", "preview", "zoom" })] [FontAwesomeCategoriesAttribute(new[] { "Marketing" })] SearchDollar = 0xF688, /// <summary> /// The Font Awesome "magnifying-glass-location" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "magnifying glass location", "bigger", "enlarge", "find", "magnifier", "magnify", "preview", "zoom" })] - [FontAwesomeCategoriesAttribute(new[] { "Maps", "Marketing" })] + [FontAwesomeSearchTerms(new[] { "magnifying glass location", "bigger", "enlarge", "find", "magnify", "preview", "zoom" })] + [FontAwesomeCategoriesAttribute(new[] { "Marketing" })] SearchLocation = 0xF689, /// <summary> /// The Font Awesome "magnifying-glass-minus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "magnifying glass minus", "magnifier", "minify", "negative", "smaller", "zoom", "zoom out" })] + [FontAwesomeSearchTerms(new[] { "magnifying glass minus", "minify", "negative", "smaller", "zoom", "zoom out" })] [FontAwesomeCategoriesAttribute(new[] { "Maps" })] SearchMinus = 0xF010, /// <summary> /// The Font Awesome "magnifying-glass-plus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "magnifying glass plus", "bigger", "enlarge", "magnifier", "magnify", "positive", "zoom", "zoom in" })] + [FontAwesomeSearchTerms(new[] { "magnifying glass plus", "bigger", "enlarge", "magnify", "positive", "zoom", "zoom in" })] [FontAwesomeCategoriesAttribute(new[] { "Maps" })] SearchPlus = 0xF00E, @@ -7343,21 +7243,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "seedling" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "environment", "flora", "grow", "investment", "plant", "sapling", "seedling", "vegan", "young" })] + [FontAwesomeSearchTerms(new[] { "environment", "flora", "grow", "plant", "sapling", "seedling", "vegan", "young" })] [FontAwesomeCategoriesAttribute(new[] { "Charity", "Energy", "Food + Beverage", "Fruits + Vegetables", "Humanitarian", "Nature", "Science" })] Seedling = 0xF4D8, - /// <summary> - /// The Font Awesome "septagon" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "septagon", "7", "heptagon", "seven", "shape" })] - [FontAwesomeCategoriesAttribute(new[] { "Shapes" })] - Septagon = 0xE820, - /// <summary> /// The Font Awesome "server" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "server", "computer", "cpu", "database", "hardware", "mysql", "network", "sql" })] + [FontAwesomeSearchTerms(new[] { "server", "computer", "cpu", "database", "hardware", "network" })] [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware" })] Server = 0xF233, @@ -7420,7 +7313,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "shield-halved" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "shield halved", "achievement", "armor", "award", "block", "cleric", "defend", "defense", "holy", "paladin", "privacy", "security", "shield", "weapon", "winner" })] + [FontAwesomeSearchTerms(new[] { "shield halved", "achievement", "armor", "award", "block", "cleric", "defend", "defense", "holy", "paladin", "security", "shield", "weapon", "winner" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Gaming", "Security" })] ShieldAlt = 0xF3ED, @@ -7441,7 +7334,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "shield-heart" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "shield heart", "love", "protect", "safe", "safety", "shield", "wishlist" })] + [FontAwesomeSearchTerms(new[] { "shield heart", "love", "protect", "safe", "safety", "shield" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security" })] ShieldHeart = 0xE574, @@ -7462,7 +7355,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "truck-fast" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "truck fast", "express", "fedex", "mail", "overnight", "package", "quick", "ups" })] + [FontAwesomeSearchTerms(new[] { "truck fast", "express", "fedex", "mail", "overnight", "package", "ups" })] [FontAwesomeCategoriesAttribute(new[] { "Logistics", "Shopping" })] ShippingFast = 0xF48B, @@ -7476,7 +7369,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "shop-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "shop lock", "bodega", "building", "buy", "closed", "lock", "lockdown", "market", "padlock", "privacy", "purchase", "quarantine", "shop", "shopping", "store" })] + [FontAwesomeSearchTerms(new[] { "shop lock", "bodega", "building", "buy", "closed", "lock", "lockdown", "market", "purchase", "quarantine", "shop", "shopping", "store" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Humanitarian", "Shopping" })] ShopLock = 0xE4A5, @@ -7504,7 +7397,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "shop-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "shop slash", "building", "buy", "closed", "disabled", "purchase", "shopping" })] + [FontAwesomeSearchTerms(new[] { "shop slash", "building", "buy", "closed", "covid-19", "purchase", "shopping" })] [FontAwesomeCategoriesAttribute(new[] { "Shopping" })] ShopSlash = 0xE070, @@ -7525,7 +7418,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "van-shuttle" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "van shuttle", "airport", "bus", "minibus", "public-transportation", "transportation", "travel", "vehicle" })] + [FontAwesomeSearchTerms(new[] { "van shuttle", "airport", "bus", "machine", "minibus", "public-transportation", "transportation", "travel", "vehicle" })] [FontAwesomeCategoriesAttribute(new[] { "Automotive", "Transportation", "Travel + Hotel" })] ShuttleVan = 0xF5B6, @@ -7546,7 +7439,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "signature" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "signature", "john hancock", "cursive", "name", "username", "writing" })] + [FontAwesomeSearchTerms(new[] { "signature", "john hancock", "cursive", "name", "writing" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Editing", "Writing" })] Signature = 0xF5B7, @@ -7578,20 +7471,6 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Devices + Hardware" })] SimCard = 0xF7C4, - /// <summary> - /// The Font Awesome "single-quote-left" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "single quote left", "left single quotation mark", "mention", "note", "phrase", "text", "type" })] - [FontAwesomeCategoriesAttribute(new[] { "Communication", "Punctuation + Symbols", "Writing" })] - SingleQuoteLeft = 0xE81B, - - /// <summary> - /// The Font Awesome "single-quote-right" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "single quote right", "mention", "note", "phrase", "right single quotation mark", "text", "type" })] - [FontAwesomeCategoriesAttribute(new[] { "Communication", "Punctuation + Symbols", "Writing" })] - SingleQuoteRight = 0xE81C, - /// <summary> /// The Font Awesome "sink" icon unicode character. /// </summary> @@ -7609,28 +7488,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-skating" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person skating", "figure skating", "ice", "olympics", "rink", "skate", "uer", "winter" })] + [FontAwesomeSearchTerms(new[] { "person skating", "figure skating", "ice", "olympics", "rink", "skate", "winter" })] [FontAwesomeCategoriesAttribute(new[] { "Sports + Fitness", "Users + People" })] Skating = 0xF7C5, /// <summary> /// The Font Awesome "person-skiing" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person skiing", "downhill", "olympics", "ski", "skier", "snow", "uer", "winter" })] + [FontAwesomeSearchTerms(new[] { "person skiing", "downhill", "olympics", "ski", "skier", "snow", "winter" })] [FontAwesomeCategoriesAttribute(new[] { "Sports + Fitness", "Users + People" })] Skiing = 0xF7C9, /// <summary> /// The Font Awesome "person-skiing-nordic" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person skiing nordic", "cross country", "olympics", "uer", "winter" })] + [FontAwesomeSearchTerms(new[] { "person skiing nordic", "cross country", "olympics", "winter" })] [FontAwesomeCategoriesAttribute(new[] { "Sports + Fitness", "Users + People" })] SkiingNordic = 0xF7CA, /// <summary> /// The Font Awesome "skull" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bones", "death", "face", "fairy tale", "monster", "skeleton", "skull", "uer", "x-ray", "yorick" })] + [FontAwesomeSearchTerms(new[] { "bones", "death", "face", "fairy tale", "monster", "skeleton", "skull", "x-ray", "yorick" })] [FontAwesomeCategoriesAttribute(new[] { "Halloween", "Medical + Health", "Users + People" })] Skull = 0xF54C, @@ -7658,14 +7537,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "sliders" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "adjust", "configuration", "modify", "settings", "sliders", "toggle" })] - [FontAwesomeCategoriesAttribute(new[] { "Editing", "Media Playback", "Music + Audio", "Photos + Images", "Toggle" })] + [FontAwesomeSearchTerms(new[] { "adjust", "settings", "sliders", "toggle" })] + [FontAwesomeCategoriesAttribute(new[] { "Editing", "Media Playback", "Music + Audio", "Photos + Images" })] SlidersH = 0xF1DE, /// <summary> /// The Font Awesome "face-smile" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "face smile", "approve", "default", "emoticon", "face", "happy", "rating", "satisfied", "slightly smiling face", "smile", "uer" })] + [FontAwesomeSearchTerms(new[] { "face smile", "approve", "emoticon", "face", "happy", "rating", "satisfied", "slightly smiling face", "smile" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Emoji", "Users + People" })] Smile = 0xF118, @@ -7700,21 +7579,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "ban-smoking" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ban smoking", "ban", "cancel", "circle", "deny", "disabled", "forbidden", "no", "no smoking", "non-smoking", "not", "prohibited", "slash", "smoking" })] + [FontAwesomeSearchTerms(new[] { "ban smoking", "ban", "cancel", "forbidden", "no", "no smoking", "non-smoking", "not", "prohibited", "smoking" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Travel + Hotel" })] SmokingBan = 0xF54D, /// <summary> /// The Font Awesome "comment-sms" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "comment sms", "answer", "chat", "conversation", "message", "mobile", "notification", "phone", "sms", "texting" })] + [FontAwesomeSearchTerms(new[] { "comment sms", "chat", "conversation", "message", "mobile", "notification", "phone", "sms", "texting" })] [FontAwesomeCategoriesAttribute(new[] { "Communication" })] Sms = 0xF7CD, /// <summary> /// The Font Awesome "person-snowboarding" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person snowboarding", "olympics", "ski", "snow", "snowboard", "snowboarder", "uer", "winter" })] + [FontAwesomeSearchTerms(new[] { "person snowboarding", "olympics", "ski", "snow", "snowboard", "snowboarder", "winter" })] [FontAwesomeCategoriesAttribute(new[] { "Sports + Fitness", "Users + People" })] Snowboarding = 0xF7CE, @@ -7812,7 +7691,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrow-up-wide-short" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow up wide short", "arrange", "filter", "order", "sort-amount-desc", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "arrow up wide short", "arrange", "filter", "order", "sort-amount-desc" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] SortAmountUp = 0xF161, @@ -7826,7 +7705,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "sort-down" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "sort down", "arrow", "descending", "filter", "insert", "order", "sort-desc" })] + [FontAwesomeSearchTerms(new[] { "sort down", "arrow", "descending", "filter", "order", "sort-desc" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] SortDown = 0xF0DD, @@ -7861,7 +7740,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "sort-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "sort up", "arrow", "ascending", "filter", "order", "sort-asc", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "sort up", "arrow", "ascending", "filter", "order", "sort-asc" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] SortUp = 0xF0DE, @@ -7882,7 +7761,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "spell-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "spell check", "dictionary", "edit", "editor", "enable", "grammar", "text", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "spell check", "dictionary", "edit", "editor", "grammar", "text" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] SpellCheck = 0xF891, @@ -7896,17 +7775,10 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "spinner" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "spinner", "circle", "loading", "pending", "progress" })] + [FontAwesomeSearchTerms(new[] { "spinner", "circle", "loading", "progress" })] [FontAwesomeCategoriesAttribute(new[] { "Spinners" })] Spinner = 0xF110, - /// <summary> - /// The Font Awesome "spiral" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "spiral", "design", "dizzy", "rotate", "spin", "swirl", "twist" })] - [FontAwesomeCategoriesAttribute(new[] { "Design", "Shapes" })] - Spiral = 0xE80A, - /// <summary> /// The Font Awesome "splotch" icon unicode character. /// </summary> @@ -7935,13 +7807,6 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Arrows" })] SquareArrowUpRight = 0xF14C, - /// <summary> - /// The Font Awesome "square-binary" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "square binary", "ai", "data", "language", "llm", "model", "programming", "token" })] - [FontAwesomeCategoriesAttribute(new[] { "Coding", "Shapes" })] - SquareBinary = 0xE69B, - /// <summary> /// The Font Awesome "square-full" icon unicode character. /// </summary> @@ -7959,7 +7824,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "square-person-confined" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square person confined", "captivity", "confined", "uer" })] + [FontAwesomeSearchTerms(new[] { "square person confined", "captivity", "confined" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Security", "Users + People" })] SquarePersonConfined = 0xE577, @@ -7980,7 +7845,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "square-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "square xmark", "close", "cross", "cross mark button", "incorrect", "mark", "notice", "notification", "notify", "problem", "square", "uncheck", "window", "wrong", "x", "×" })] + [FontAwesomeSearchTerms(new[] { "square xmark", "close", "cross", "cross mark button", "incorrect", "mark", "notice", "notification", "notify", "problem", "square", "window", "wrong", "x", "×" })] [FontAwesomeCategoriesAttribute(new[] { "Mathematics" })] SquareXmark = 0xF2D3, @@ -8015,7 +7880,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "star" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "achievement", "award", "favorite", "important", "night", "quality", "rating", "score", "star", "vip" })] + [FontAwesomeSearchTerms(new[] { "achievement", "award", "favorite", "important", "night", "rating", "score", "star" })] [FontAwesomeCategoriesAttribute(new[] { "Shapes", "Shopping", "Social", "Toggle" })] Star = 0xF005, @@ -8099,7 +7964,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "stopwatch" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "clock", "reminder", "stopwatch", "time", "waiting" })] + [FontAwesomeSearchTerms(new[] { "clock", "reminder", "stopwatch", "time" })] [FontAwesomeCategoriesAttribute(new[] { "Time" })] Stopwatch = 0xF2F2, @@ -8127,7 +7992,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "store-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "store slash", "building", "buy", "closed", "disabled", "purchase", "shopping" })] + [FontAwesomeSearchTerms(new[] { "store slash", "building", "buy", "closed", "covid-19", "purchase", "shopping" })] [FontAwesomeCategoriesAttribute(new[] { "Shopping" })] StoreSlash = 0xE071, @@ -8141,14 +8006,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "street-view" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "street view", "directions", "location", "map", "navigation", "uer" })] + [FontAwesomeSearchTerms(new[] { "street view", "directions", "location", "map", "navigation" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Users + People" })] StreetView = 0xF21D, /// <summary> /// The Font Awesome "strikethrough" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "strikethrough", "cancel", "edit", "font", "format", "modify", "text", "type" })] + [FontAwesomeSearchTerms(new[] { "strikethrough", "cancel", "edit", "font", "format", "text", "type" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] Strikethrough = 0xF0CC, @@ -8225,7 +8090,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-swimming" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person swimming", "ocean", "person swimming", "pool", "sea", "swim", "uer", "water" })] + [FontAwesomeSearchTerms(new[] { "person swimming", "ocean", "person swimming", "pool", "sea", "swim", "water" })] [FontAwesomeCategoriesAttribute(new[] { "Maritime", "Sports + Fitness", "Travel + Hotel", "Users + People" })] Swimmer = 0xF5C4, @@ -8246,14 +8111,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "arrows-rotate" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrows rotate", "clockwise right and left semicircle arrows", "clockwise", "exchange", "modify", "refresh", "reload", "renew", "retry", "rotate", "swap" })] - [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Editing", "Media Playback", "Spinners" })] + [FontAwesomeSearchTerms(new[] { "arrows rotate", "clockwise right and left semicircle arrows", "exchange", "refresh", "reload", "rotate", "swap" })] + [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Editing", "Media Playback" })] Sync = 0xF021, /// <summary> /// The Font Awesome "rotate" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "arrow", "clockwise", "exchange", "modify", "refresh", "reload", "renew", "retry", "rotate", "swap", "withershins" })] + [FontAwesomeSearchTerms(new[] { "anticlockwise", "arrow", "counterclockwise", "counterclockwise arrows button", "exchange", "refresh", "reload", "rotate", "swap", "withershins" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Editing", "Media Playback", "Spinners" })] SyncAlt = 0xF2F1, @@ -8267,31 +8132,10 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "table" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "table", "category", "data", "excel", "spreadsheet" })] + [FontAwesomeSearchTerms(new[] { "table", "data", "excel", "spreadsheet" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Text Formatting" })] Table = 0xF0CE, - /// <summary> - /// The Font Awesome "table-cells-column-lock" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "table cells column lock", "blocks", "boxes", "category", "column", "excel", "grid", "lock", "spreadsheet", "squares" })] - [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] - TableCellsColumnLock = 0xE678, - - /// <summary> - /// The Font Awesome "table-cells-row-lock" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "table cells row lock", "blocks", "boxes", "category", "column", "column", "excel", "grid", "lock", "lock", "spreadsheet", "squares" })] - [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] - TableCellsRowLock = 0xE67A, - - /// <summary> - /// The Font Awesome "table-cells-row-unlock" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "table cells row unlock", "blocks", "boxes", "category", "column", "column", "excel", "grid", "lock", "lock", "spreadsheet", "squares", "unlock" })] - [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] - TableCellsRowUnlock = 0xE691, - /// <summary> /// The Font Awesome "tablet" icon unicode character. /// </summary> @@ -8331,7 +8175,7 @@ public enum FontAwesomeIcon /// The Font Awesome "gauge-high" icon unicode character. /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0xF625. /// </summary> - [FontAwesomeSearchTerms(new[] { "gauge high", "dashboard", "fast", "odometer", "quick", "speed", "speedometer" })] + [FontAwesomeSearchTerms(new[] { "gauge high", "dashboard", "fast", "odometer", "speed", "speedometer" })] [FontAwesomeCategoriesAttribute(new[] { "Automotive" })] TachometerAlt = 0xF3FD, @@ -8373,7 +8217,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "list-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "list check", "bullet", "cheatsheet", "checklist", "downloading", "downloads", "enable", "loading", "progress", "project management", "settings", "summary", "to do", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "list check", "checklist", "downloading", "downloads", "loading", "progress", "project management", "settings", "to do" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Text Formatting" })] Tasks = 0xF0AE, @@ -8436,42 +8280,42 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "tent" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bivouac", "campground", "campsite", "refugee", "shelter", "tent" })] + [FontAwesomeSearchTerms(new[] { "bivouac", "campground", "refugee", "shelter", "tent" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Camping", "Humanitarian" })] Tent = 0xE57D, /// <summary> /// The Font Awesome "tent-arrow-down-to-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "tent arrow down to line", "bivouac", "campground", "campsite", "permanent", "refugee", "refugee", "shelter", "shelter", "tent" })] + [FontAwesomeSearchTerms(new[] { "tent arrow down to line", "permanent", "refugee", "shelter" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Camping", "Humanitarian" })] TentArrowDownToLine = 0xE57E, /// <summary> /// The Font Awesome "tent-arrow-left-right" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "tent arrow left right", "bivouac", "campground", "campsite", "refugee", "refugee", "shelter", "shelter", "tent", "transition" })] + [FontAwesomeSearchTerms(new[] { "tent arrow left right", "refugee", "shelter", "transition" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Camping", "Humanitarian" })] TentArrowLeftRight = 0xE57F, /// <summary> /// The Font Awesome "tent-arrows-down" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "tent arrows down", "bivouac", "campground", "campsite", "insert", "refugee", "refugee", "shelter", "shelter", "spontaneous", "tent" })] + [FontAwesomeSearchTerms(new[] { "tent arrows down", "refugee", "shelter", "spontaneous" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Camping", "Humanitarian" })] TentArrowsDown = 0xE581, /// <summary> /// The Font Awesome "tent-arrow-turn-left" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "tent arrow turn left", "bivouac", "campground", "campsite", "refugee", "refugee", "shelter", "shelter", "temporary", "tent" })] + [FontAwesomeSearchTerms(new[] { "tent arrow turn left", "refugee", "shelter", "temporary" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Camping", "Humanitarian" })] TentArrowTurnLeft = 0xE580, /// <summary> /// The Font Awesome "tents" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "tents", "bivouac", "bivouac", "campground", "campground", "campsite", "refugee", "refugee", "shelter", "shelter", "tent", "tent" })] + [FontAwesomeSearchTerms(new[] { "tents", "bivouac", "campground", "refugee", "shelter", "tent" })] [FontAwesomeCategoriesAttribute(new[] { "Buildings", "Camping", "Humanitarian" })] Tents = 0xE582, @@ -8485,21 +8329,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "text-height" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "text height", "edit", "font", "format", "modify", "text", "type" })] + [FontAwesomeSearchTerms(new[] { "text height", "edit", "font", "format", "text", "type" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] TextHeight = 0xF034, /// <summary> /// The Font Awesome "text-width" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "text width", "edit", "font", "format", "modify", "text", "type" })] + [FontAwesomeSearchTerms(new[] { "text width", "edit", "font", "format", "text", "type" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] TextWidth = 0xF035, /// <summary> /// The Font Awesome "table-cells" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "table cells", "blocks", "boxes", "category", "excel", "grid", "spreadsheet", "squares" })] + [FontAwesomeSearchTerms(new[] { "table cells", "blocks", "boxes", "grid", "squares" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] Th = 0xF00A, @@ -8555,14 +8399,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "table-cells-large" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "table cells large", "blocks", "boxes", "category", "excel", "grid", "spreadsheet", "squares" })] + [FontAwesomeSearchTerms(new[] { "table cells large", "blocks", "boxes", "grid", "squares" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] ThLarge = 0xF009, /// <summary> /// The Font Awesome "table-list" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "table list", "category", "cheatsheet", "checklist", "completed", "done", "finished", "ol", "summary", "todo", "ul" })] + [FontAwesomeSearchTerms(new[] { "table list", "checklist", "completed", "done", "finished", "ol", "todo", "ul" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] ThList = 0xF00B, @@ -8587,24 +8431,17 @@ public enum FontAwesomeIcon [FontAwesomeCategoriesAttribute(new[] { "Business", "Maps", "Social", "Writing" })] Thumbtack = 0xF08D, - /// <summary> - /// The Font Awesome "thumbtack-slash" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "thumbtack slash", "black pushpin", "coordinates", "location", "marker", "pin", "pushpin", "thumb-tack", "unpin" })] - [FontAwesomeCategoriesAttribute(new[] { "Business", "Maps", "Social", "Writing" })] - ThumbtackSlash = 0xE68F, - /// <summary> /// The Font Awesome "ticket" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "admission", "admission tickets", "coupon", "movie", "pass", "support", "ticket", "voucher" })] + [FontAwesomeSearchTerms(new[] { "admission", "admission tickets", "movie", "pass", "support", "ticket" })] [FontAwesomeCategoriesAttribute(new[] { "Film + Video", "Maps" })] Ticket = 0xF145, /// <summary> /// The Font Awesome "ticket-simple" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "ticket simple", "admission", "coupon", "movie", "pass", "support", "ticket", "voucher" })] + [FontAwesomeSearchTerms(new[] { "ticket simple", "movie", "pass", "support", "ticket" })] [FontAwesomeCategoriesAttribute(new[] { "Maps", "Shapes" })] TicketAlt = 0xF3FF, @@ -8618,29 +8455,29 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "xmark", "cancellation x", "multiplication sign", "multiplication x", "cancel", "close", "cross", "cross mark", "error", "exit", "incorrect", "mark", "multiplication", "multiply", "notice", "notification", "notify", "problem", "sign", "uncheck", "wrong", "x", "×" })] + [FontAwesomeSearchTerms(new[] { "xmark", "cancellation x", "multiplication sign", "multiplication x", "cancel", "close", "cross", "cross mark", "error", "exit", "incorrect", "mark", "multiplication", "multiply", "notice", "notification", "notify", "problem", "sign", "wrong", "x", "×" })] [FontAwesomeCategoriesAttribute(new[] { "Editing", "Mathematics" })] Times = 0xF00D, /// <summary> /// The Font Awesome "circle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle xmark", "close", "cross", "destroy", "exit", "incorrect", "notice", "notification", "notify", "problem", "uncheck", "wrong", "x" })] + [FontAwesomeSearchTerms(new[] { "circle xmark", "close", "cross", "destroy", "exit", "incorrect", "notice", "notification", "notify", "problem", "wrong", "x" })] [FontAwesomeCategoriesAttribute(new[] { "Mathematics" })] TimesCircle = 0xF057, /// <summary> /// The Font Awesome "droplet" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "blood", "cold", "color", "comic", "drop", "droplet", "raindrop", "sweat", "waterdrop" })] - [FontAwesomeCategoriesAttribute(new[] { "Design", "Humanitarian", "Maps", "Medical + Health", "Photos + Images" })] + [FontAwesomeSearchTerms(new[] { "cold", "color", "comic", "drop", "droplet", "raindrop", "sweat", "waterdrop" })] + [FontAwesomeCategoriesAttribute(new[] { "Design", "Humanitarian", "Maps", "Photos + Images" })] Tint = 0xF043, /// <summary> /// The Font Awesome "droplet-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "droplet slash", "blood", "color", "disabled", "drop", "droplet", "raindrop", "waterdrop" })] - [FontAwesomeCategoriesAttribute(new[] { "Design", "Medical + Health" })] + [FontAwesomeSearchTerms(new[] { "droplet slash", "color", "drop", "droplet", "raindrop", "waterdrop" })] + [FontAwesomeCategoriesAttribute(new[] { "Design" })] TintSlash = 0xF5C7, /// <summary> @@ -8681,7 +8518,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "toilet-paper-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "toilet paper slash", "bathroom", "covid-19", "disabled", "halloween", "holiday", "lavatory", "leaves", "prank", "privy", "restroom", "roll", "toilet", "trouble", "ut oh", "wipe" })] + [FontAwesomeSearchTerms(new[] { "toilet paper slash", "bathroom", "covid-19", "halloween", "holiday", "lavatory", "leaves", "prank", "privy", "restroom", "roll", "toilet", "trouble", "ut oh", "wipe" })] [FontAwesomeCategoriesAttribute(new[] { "Household" })] ToiletPaperSlash = 0xE072, @@ -8702,14 +8539,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "toolbox" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "admin", "chest", "configuration", "container", "equipment", "fix", "maintenance", "mechanic", "modify", "repair", "settings", "tool", "toolbox", "tools" })] + [FontAwesomeSearchTerms(new[] { "admin", "chest", "container", "fix", "mechanic", "repair", "settings", "tool", "toolbox", "tools" })] [FontAwesomeCategoriesAttribute(new[] { "Construction" })] Toolbox = 0xF552, /// <summary> /// The Font Awesome "screwdriver-wrench" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "screwdriver wrench", "admin", "configuration", "equipment", "fix", "maintenance", "modify", "repair", "screwdriver", "settings", "tools", "wrench" })] + [FontAwesomeSearchTerms(new[] { "screwdriver wrench", "admin", "fix", "repair", "screwdriver", "settings", "tools", "wrench" })] [FontAwesomeCategoriesAttribute(new[] { "Construction" })] Tools = 0xF7D9, @@ -8744,7 +8581,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "tower-cell" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "tower cell", "airwaves", "antenna", "communication", "radio", "reception", "signal", "waves" })] + [FontAwesomeSearchTerms(new[] { "tower cell", "airwaves", "antenna", "communication", "radio", "reception", "waves" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Connectivity", "Film + Video", "Humanitarian" })] TowerCell = 0xE585, @@ -8772,7 +8609,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "traffic-light" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "traffic light", "direction", "go", "light", "road", "signal", "slow", "stop", "traffic", "travel", "vertical traffic light" })] + [FontAwesomeSearchTerms(new[] { "traffic light", "direction", "light", "road", "signal", "traffic", "travel", "vertical traffic light" })] [FontAwesomeCategoriesAttribute(new[] { "Maps" })] TrafficLight = 0xF637, @@ -8828,21 +8665,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "trash-arrow-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "trash arrow up", "back", "control z", "delete", "garbage", "hide", "oops", "remove", "undo", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "trash arrow up", "back", "control z", "delete", "garbage", "hide", "oops", "remove", "undo" })] [FontAwesomeCategoriesAttribute(new[] { "Editing" })] TrashRestore = 0xF829, /// <summary> /// The Font Awesome "trash-can-arrow-up" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "trash can arrow up", "back", "control z", "delete", "garbage", "hide", "oops", "remove", "undo", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "trash can arrow up", "back", "control z", "delete", "garbage", "hide", "oops", "remove", "undo" })] [FontAwesomeCategoriesAttribute(new[] { "Editing" })] TrashRestoreAlt = 0xF82A, /// <summary> /// The Font Awesome "tree" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "bark", "evergreen tree", "fall", "flora", "forest", "investment", "nature", "plant", "seasonal", "tree" })] + [FontAwesomeSearchTerms(new[] { "bark", "evergreen tree", "fall", "flora", "forest", "nature", "plant", "seasonal", "tree" })] [FontAwesomeCategoriesAttribute(new[] { "Camping", "Maps", "Nature" })] Tree = 0xF1BB, @@ -8863,14 +8700,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "trowel" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "trowel", "build", "construction", "equipment", "maintenance", "tool" })] + [FontAwesomeSearchTerms(new[] { "trowel", "build", "construction", "tool" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Humanitarian" })] Trowel = 0xE589, /// <summary> /// The Font Awesome "trowel-bricks" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "trowel bricks", "build", "construction", "maintenance", "reconstruction", "tool" })] + [FontAwesomeSearchTerms(new[] { "trowel bricks", "build", "construction", "reconstruction", "tool" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Humanitarian" })] TrowelBricks = 0xE58A, @@ -8891,8 +8728,8 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "truck-droplet" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "truck droplet", "blood", "thirst", "truck", "water", "water supply" })] - [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health", "Transportation" })] + [FontAwesomeSearchTerms(new[] { "truck droplet", "thirst", "truck", "water", "water supply" })] + [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Transportation" })] TruckDroplet = 0xE58C, /// <summary> @@ -8940,7 +8777,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "truck-pickup" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "truck pickup", "cargo", "maintenance", "pick-up", "pickup", "pickup truck", "truck", "vehicle" })] + [FontAwesomeSearchTerms(new[] { "truck pickup", "cargo", "pick-up", "pickup", "pickup truck", "truck", "vehicle" })] [FontAwesomeCategoriesAttribute(new[] { "Automotive", "Construction", "Transportation" })] TruckPickup = 0xF63C, @@ -8996,7 +8833,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "underline" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "underline", "edit", "emphasis", "format", "modify", "text", "writing" })] + [FontAwesomeSearchTerms(new[] { "underline", "edit", "emphasis", "format", "text", "writing" })] [FontAwesomeCategoriesAttribute(new[] { "Text Formatting" })] Underline = 0xF0CD, @@ -9004,20 +8841,20 @@ public enum FontAwesomeIcon /// The Font Awesome "arrow-rotate-left" icon unicode character. /// </summary> [FontAwesomeSearchTerms(new[] { "arrow rotate left", "anticlockwise open circle arrow", "back", "control z", "exchange", "oops", "return", "rotate", "swap" })] - [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback", "Spinners" })] + [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] Undo = 0xF0E2, /// <summary> /// The Font Awesome "rotate-left" icon unicode character. /// </summary> [FontAwesomeSearchTerms(new[] { "rotate left", "back", "control z", "exchange", "oops", "return", "swap" })] - [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback", "Spinners" })] + [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Media Playback" })] UndoAlt = 0xF2EA, /// <summary> /// The Font Awesome "universal-access" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "universal access", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "universal access", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility" })] UniversalAccess = 0xF29A, @@ -9031,254 +8868,252 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "link-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "link slash", "attachment", "chain", "chain-broken", "disabled", "disconnect", "remove" })] + [FontAwesomeSearchTerms(new[] { "link slash", "attachment", "chain", "chain-broken", "remove" })] [FontAwesomeCategoriesAttribute(new[] { "Editing" })] Unlink = 0xF127, /// <summary> /// The Font Awesome "unlock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "admin", "lock", "open", "padlock", "password", "privacy", "private", "protect", "unlock", "unlocked" })] + [FontAwesomeSearchTerms(new[] { "admin", "lock", "open", "password", "private", "protect", "unlock", "unlocked" })] [FontAwesomeCategoriesAttribute(new[] { "Security" })] Unlock = 0xF09C, /// <summary> /// The Font Awesome "unlock-keyhole" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "unlock keyhole", "admin", "lock", "padlock", "password", "privacy", "private", "protect" })] + [FontAwesomeSearchTerms(new[] { "unlock keyhole", "admin", "lock", "password", "private", "protect" })] [FontAwesomeCategoriesAttribute(new[] { "Security" })] UnlockAlt = 0xF13E, /// <summary> /// The Font Awesome "upload" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "upload", "hard drive", "import", "publish", "upgrade" })] + [FontAwesomeSearchTerms(new[] { "upload", "hard drive", "import", "publish" })] [FontAwesomeCategoriesAttribute(new[] { "Arrows", "Devices + Hardware" })] Upload = 0xF093, /// <summary> /// The Font Awesome "user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user", "adult", "bust", "bust in silhouette", "default", "employee", "gender-neutral", "person", "profile", "silhouette", "uer", "unspecified gender", "username", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user", "adult", "bust", "bust in silhouette", "gender-neutral", "person", "profile", "silhouette", "unspecified gender", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Social", "Users + People" })] User = 0xF007, /// <summary> - /// The Font Awesome "user" icon unicode character. - /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0xF007. + /// The Font Awesome "user-large" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user", "adult", "bust", "bust in silhouette", "default", "employee", "gender-neutral", "person", "profile", "silhouette", "uer", "unspecified gender", "username", "users-people" })] - [FontAwesomeCategoriesAttribute(new[] { "Social", "Users + People" })] + [FontAwesomeSearchTerms(new[] { "user large", "users-people" })] + [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserAlt = 0xF406, /// <summary> - /// The Font Awesome "user-slash" icon unicode character. - /// Uses a legacy unicode value for backwards compatability. The current unicode value is 0xF506. + /// The Font Awesome "user-large-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user slash", "ban", "delete", "deny", "disabled", "disconnect", "employee", "remove", "uer" })] + [FontAwesomeSearchTerms(new[] { "user large slash", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserAltSlash = 0xF4FA, /// <summary> /// The Font Awesome "user-astronaut" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user astronaut", "avatar", "clothing", "cosmonaut", "nasa", "space", "suit", "uer" })] + [FontAwesomeSearchTerms(new[] { "user astronaut", "avatar", "clothing", "cosmonaut", "nasa", "space", "suit" })] [FontAwesomeCategoriesAttribute(new[] { "Astronomy", "Science Fiction", "Users + People" })] UserAstronaut = 0xF4FB, /// <summary> /// The Font Awesome "user-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user check", "employee", "enable", "uer", "users-people", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "user check", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserCheck = 0xF4FC, /// <summary> /// The Font Awesome "circle-user" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "circle user", "employee", "uer", "username", "users-people" })] + [FontAwesomeSearchTerms(new[] { "circle user", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Social", "Users + People" })] UserCircle = 0xF2BD, /// <summary> /// The Font Awesome "user-clock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user clock", "employee", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user clock", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserClock = 0xF4FD, /// <summary> /// The Font Awesome "user-gear" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user gear", "employee", "together", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user gear", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserCog = 0xF4FE, /// <summary> /// The Font Awesome "user-pen" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user pen", "employee", "modify", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user pen", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserEdit = 0xF4FF, /// <summary> /// The Font Awesome "user-group" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user group", "bust", "busts in silhouette", "crowd", "employee", "silhouette", "together", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user group", "bust", "busts in silhouette", "silhouette", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Social", "Users + People" })] UserFriends = 0xF500, /// <summary> /// The Font Awesome "user-graduate" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user graduate", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user graduate", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Education", "Users + People" })] UserGraduate = 0xF501, /// <summary> /// The Font Awesome "user-injured" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user injured", "employee", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user injured", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] UserInjured = 0xF728, /// <summary> /// The Font Awesome "user-lock" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user lock", "employee", "padlock", "privacy", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user lock", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Security", "Users + People" })] UserLock = 0xF502, /// <summary> /// The Font Awesome "user-doctor" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user doctor", "covid-19", "health", "job", "medical", "nurse", "occupation", "physician", "profile", "surgeon", "uer", "worker" })] + [FontAwesomeSearchTerms(new[] { "user doctor", "covid-19", "health", "job", "medical", "nurse", "occupation", "physician", "profile", "surgeon", "worker" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health", "Users + People" })] UserMd = 0xF0F0, /// <summary> /// The Font Awesome "user-minus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user minus", "delete", "employee", "negative", "remove", "uer" })] + [FontAwesomeSearchTerms(new[] { "user minus", "delete", "negative", "remove" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserMinus = 0xF503, /// <summary> /// The Font Awesome "user-ninja" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user ninja", "assassin", "avatar", "dangerous", "deadly", "fighter", "hidden", "ninja", "sneaky", "stealth", "uer" })] + [FontAwesomeSearchTerms(new[] { "user ninja", "assassin", "avatar", "dangerous", "deadly", "fighter", "hidden", "ninja", "sneaky", "stealth" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserNinja = 0xF504, /// <summary> /// The Font Awesome "user-nurse" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user nurse", "covid-19", "doctor", "health", "md", "medical", "midwife", "physician", "practitioner", "surgeon", "uer", "worker" })] + [FontAwesomeSearchTerms(new[] { "user nurse", "covid-19", "doctor", "health", "md", "medical", "midwife", "physician", "practitioner", "surgeon", "worker" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Users + People" })] UserNurse = 0xF82F, /// <summary> /// The Font Awesome "user-plus" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user plus", "add", "avatar", "employee", "follow", "positive", "sign up", "signup", "team", "user" })] + [FontAwesomeSearchTerms(new[] { "user plus", "add", "avatar", "positive", "sign up", "signup", "team" })] [FontAwesomeCategoriesAttribute(new[] { "Social", "Users + People" })] UserPlus = 0xF234, /// <summary> /// The Font Awesome "users" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users", "employee", "together", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "users", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Social", "Users + People" })] Users = 0xF0C0, /// <summary> /// The Font Awesome "users-between-lines" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users between lines", "covered", "crowd", "employee", "group", "people", "together", "uer" })] + [FontAwesomeSearchTerms(new[] { "users between lines", "covered", "group", "people" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] UsersBetweenLines = 0xE591, /// <summary> /// The Font Awesome "users-gear" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users gear", "employee", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "users gear", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UsersCog = 0xF509, /// <summary> /// The Font Awesome "user-secret" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user secret", "detective", "sleuth", "spy", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user secret", "detective", "sleuth", "spy", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Coding", "Security", "Users + People" })] UserSecret = 0xF21B, /// <summary> /// The Font Awesome "user-shield" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user shield", "employee", "protect", "safety", "security", "uer" })] + [FontAwesomeSearchTerms(new[] { "user shield", "protect", "safety" })] [FontAwesomeCategoriesAttribute(new[] { "Security", "Users + People" })] UserShield = 0xF505, /// <summary> /// The Font Awesome "user-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user slash", "ban", "delete", "deny", "disabled", "disconnect", "employee", "remove", "uer" })] + [FontAwesomeSearchTerms(new[] { "user slash", "ban", "delete", "remove" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserSlash = 0xF506, /// <summary> /// The Font Awesome "users-line" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users line", "crowd", "employee", "group", "need", "people", "together", "uer" })] + [FontAwesomeSearchTerms(new[] { "users line", "group", "need", "people" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] UsersLine = 0xE592, /// <summary> /// The Font Awesome "users-rays" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users rays", "affected", "crowd", "employee", "focused", "group", "people", "uer" })] + [FontAwesomeSearchTerms(new[] { "users rays", "affected", "focused", "group", "people" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] UsersRays = 0xE593, /// <summary> /// The Font Awesome "users-rectangle" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users rectangle", "crowd", "employee", "focus", "group", "people", "reached", "uer" })] + [FontAwesomeSearchTerms(new[] { "users rectangle", "focus", "group", "people", "reached" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] UsersRectangle = 0xE594, /// <summary> /// The Font Awesome "users-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users slash", "disabled", "disconnect", "employee", "together", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "users slash", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UsersSlash = 0xE073, /// <summary> /// The Font Awesome "users-viewfinder" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "users viewfinder", "crowd", "focus", "group", "people", "targeted", "uer" })] + [FontAwesomeSearchTerms(new[] { "users viewfinder", "focus", "group", "people", "targeted" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Users + People" })] UsersViewfinder = 0xE595, /// <summary> /// The Font Awesome "user-tag" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user tag", "employee", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "user tag", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserTag = 0xF507, /// <summary> /// The Font Awesome "user-tie" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user tie", "administrator", "avatar", "business", "clothing", "employee", "formal", "offer", "portfolio", "professional", "suit", "uer" })] + [FontAwesomeSearchTerms(new[] { "user tie", "avatar", "business", "clothing", "formal", "professional", "suit" })] [FontAwesomeCategoriesAttribute(new[] { "Clothing + Fashion", "Users + People" })] UserTie = 0xF508, /// <summary> /// The Font Awesome "user-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "user xmark", "archive", "delete", "employee", "remove", "uer", "uncheck", "x" })] + [FontAwesomeSearchTerms(new[] { "user xmark", "archive", "delete", "remove", "x" })] [FontAwesomeCategoriesAttribute(new[] { "Users + People" })] UserTimes = 0xF235, @@ -9299,14 +9134,15 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "vault" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "vault", "bank", "important", "investment", "lock", "money", "premium", "privacy", "safe", "salary" })] + [FontAwesomeSearchTerms(new[] { "vault", "bank", "important", "lock", "money", "safe" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Money", "Security" })] Vault = 0xE2C5, /// <summary> - /// The Font Awesome "vectorsquare" icon unicode character. + /// The Font Awesome "vector-square" icon unicode character. /// </summary> - [Obsolete] + [FontAwesomeSearchTerms(new[] { "vector square", "anchors", "lines", "object", "render", "shape" })] + [FontAwesomeCategoriesAttribute(new[] { "Design" })] VectorSquare = 0xF5CB, /// <summary> @@ -9347,21 +9183,21 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "vial" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "vial", "ampule", "chemist", "chemistry", "experiment", "knowledge", "lab", "sample", "science", "test", "test tube" })] + [FontAwesomeSearchTerms(new[] { "vial", "ampule", "chemist", "chemistry", "experiment", "lab", "sample", "science", "test", "test tube" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Science" })] Vial = 0xF492, /// <summary> /// The Font Awesome "vial-circle-check" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "vial circle check", "ampule", "chemist", "chemistry", "enable", "not affected", "ok", "okay", "success", "test tube", "tube", "vaccine", "validate", "working" })] + [FontAwesomeSearchTerms(new[] { "vial circle check", "ampule", "chemist", "chemistry", "not affected", "ok", "okay", "success", "test tube", "tube", "vaccine" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Medical + Health", "Science" })] VialCircleCheck = 0xE596, /// <summary> /// The Font Awesome "vials" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "vials", "ampule", "experiment", "knowledge", "lab", "sample", "science", "test", "test tube" })] + [FontAwesomeSearchTerms(new[] { "vials", "ampule", "experiment", "lab", "sample", "science", "test", "test tube" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health", "Science" })] Vials = 0xF493, @@ -9382,7 +9218,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "video-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "video slash", "add", "create", "disabled", "disconnect", "film", "new", "positive", "record", "video" })] + [FontAwesomeSearchTerms(new[] { "video slash", "add", "create", "film", "new", "positive", "record", "video" })] [FontAwesomeCategoriesAttribute(new[] { "Communication", "Film + Video" })] VideoSlash = 0xF4E2, @@ -9410,7 +9246,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "virus-covid-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "virus covid slash", "bug", "covid-19", "disabled", "flu", "health", "infection", "pandemic", "vaccine", "viral", "virus" })] + [FontAwesomeSearchTerms(new[] { "virus covid slash", "bug", "covid-19", "flu", "health", "infection", "pandemic", "vaccine", "viral", "virus" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health" })] VirusCovidSlash = 0xE4A9, @@ -9424,7 +9260,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "virus-slash" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "virus slash", "bug", "coronavirus", "covid-19", "cure", "disabled", "eliminate", "flu", "health", "infection", "pandemic", "sick", "vaccine", "viral" })] + [FontAwesomeSearchTerms(new[] { "virus slash", "bug", "coronavirus", "covid-19", "cure", "eliminate", "flu", "health", "infection", "pandemic", "sick", "vaccine", "viral" })] [FontAwesomeCategoriesAttribute(new[] { "Medical + Health" })] VirusSlash = 0xE075, @@ -9480,7 +9316,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "check-to-slot" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "check to slot", "accept", "cast", "election", "enable", "politics", "positive", "validate", "voting", "working", "yes" })] + [FontAwesomeSearchTerms(new[] { "check to slot", "accept", "cast", "election", "politics", "positive", "voting", "yes" })] [FontAwesomeCategoriesAttribute(new[] { "Political" })] VoteYea = 0xF772, @@ -9501,14 +9337,14 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "person-walking" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "person walking", "crosswalk", "exercise", "follow", "hike", "move", "person walking", "uer", "walk", "walking", "workout" })] + [FontAwesomeSearchTerms(new[] { "person walking", "crosswalk", "exercise", "hike", "move", "person walking", "walk", "walking" })] [FontAwesomeCategoriesAttribute(new[] { "Humanitarian", "Sports + Fitness", "Users + People" })] Walking = 0xF554, /// <summary> /// The Font Awesome "wallet" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "wallet", "billfold", "cash", "currency", "money", "salary" })] + [FontAwesomeSearchTerms(new[] { "wallet", "billfold", "cash", "currency", "money" })] [FontAwesomeCategoriesAttribute(new[] { "Business", "Money" })] Wallet = 0xF555, @@ -9544,16 +9380,9 @@ public enum FontAwesomeIcon /// The Font Awesome "wave-square" icon unicode character. /// </summary> [FontAwesomeSearchTerms(new[] { "wave square", "frequency", "pulse", "signal" })] - [FontAwesomeCategoriesAttribute(new[] { "Mathematics", "Music + Audio" })] + [FontAwesomeCategoriesAttribute(new[] { "Mathematics" })] WaveSquare = 0xF83E, - /// <summary> - /// The Font Awesome "web-awesome" icon unicode character. - /// </summary> - [FontAwesomeSearchTerms(new[] { "web awesome", "awesome", "coding", "components", "crown", "web" })] - [FontAwesomeCategoriesAttribute(new[] { "Coding", "Design" })] - WebAwesome = 0xE682, - /// <summary> /// The Font Awesome "weight-scale" icon unicode character. /// </summary> @@ -9578,28 +9407,28 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "wheat-awn-circle-exclamation" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "wheat awn circle exclamation", "affected", "failed", "famine", "food", "gluten", "hunger", "starve", "straw" })] + [FontAwesomeSearchTerms(new[] { "wheat awn circle exclamation", "affected", "famine", "food", "gluten", "hunger", "starve", "straw" })] [FontAwesomeCategoriesAttribute(new[] { "Disaster + Crisis", "Food + Beverage", "Humanitarian" })] WheatAwnCircleExclamation = 0xE598, /// <summary> /// The Font Awesome "wheelchair" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "wheelchair", "disabled", "uer", "users-people" })] + [FontAwesomeSearchTerms(new[] { "wheelchair", "users-people" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Maps", "Medical + Health", "Transportation", "Travel + Hotel", "Users + People" })] Wheelchair = 0xF193, /// <summary> /// The Font Awesome "wheelchair-move" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "wheelchair move", "access", "disabled", "handicap", "impairment", "physical", "uer", "wheelchair symbol" })] + [FontAwesomeSearchTerms(new[] { "wheelchair move", "access", "handicap", "impairment", "physical", "wheelchair symbol" })] [FontAwesomeCategoriesAttribute(new[] { "Accessibility", "Humanitarian", "Maps", "Medical + Health", "Transportation", "Travel + Hotel", "Users + People" })] WheelchairMove = 0xE2CE, /// <summary> /// The Font Awesome "wifi" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "wifi", "connection", "hotspot", "internet", "network", "signal", "wireless", "www" })] + [FontAwesomeSearchTerms(new[] { "wifi", "connection", "hotspot", "internet", "network", "wireless" })] [FontAwesomeCategoriesAttribute(new[] { "Connectivity", "Humanitarian", "Maps", "Toggle", "Travel + Hotel" })] Wifi = 0xF1EB, @@ -9613,7 +9442,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "rectangle-xmark" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "rectangle xmark", "browser", "cancel", "computer", "development", "uncheck" })] + [FontAwesomeSearchTerms(new[] { "rectangle xmark", "browser", "cancel", "computer", "development" })] [FontAwesomeCategoriesAttribute(new[] { "Coding" })] WindowClose = 0xF410, @@ -9676,7 +9505,7 @@ public enum FontAwesomeIcon /// <summary> /// The Font Awesome "wrench" icon unicode character. /// </summary> - [FontAwesomeSearchTerms(new[] { "configuration", "construction", "equipment", "fix", "mechanic", "modify", "plumbing", "settings", "spanner", "tool", "update", "wrench" })] + [FontAwesomeSearchTerms(new[] { "construction", "fix", "mechanic", "plumbing", "settings", "spanner", "tool", "update", "wrench" })] [FontAwesomeCategoriesAttribute(new[] { "Construction", "Maps" })] Wrench = 0xF0AD, diff --git a/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs b/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs index 3778ea0de..a6d40e4b7 100644 --- a/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/DalamudAssetFontAndFamilyId.cs @@ -1,9 +1,10 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Storage.Assets; +using ImGuiNET; + using Newtonsoft.Json; using TerraFX.Interop.DirectX; diff --git a/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs b/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs index 4666de54a..7c6a69622 100644 --- a/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/DalamudDefaultFontAndFamilyId.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; +using ImGuiNET; + using Newtonsoft.Json; using TerraFX.Interop.DirectX; diff --git a/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs b/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs index f19a2ec6a..dd4ba0d66 100644 --- a/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/GameFontAndFamilyId.cs @@ -1,9 +1,10 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.GameFonts; using Dalamud.Interface.ManagedFontAtlas; +using ImGuiNET; + using Newtonsoft.Json; using TerraFX.Interop.DirectX; diff --git a/Dalamud/Interface/FontIdentifier/IFontFamilyId.cs b/Dalamud/Interface/FontIdentifier/IFontFamilyId.cs index 40780422a..991716f74 100644 --- a/Dalamud/Interface/FontIdentifier/IFontFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/IFontFamilyId.cs @@ -36,25 +36,26 @@ public interface IFontFamilyId : IObjectWithLocalizableName /// </summary> /// <returns>The list of fonts.</returns> public static List<IFontFamilyId> ListDalamudFonts() => - [ + new() + { new DalamudAssetFontAndFamilyId(DalamudAsset.NotoSansJpMedium), new DalamudAssetFontAndFamilyId(DalamudAsset.InconsolataRegular), new DalamudAssetFontAndFamilyId(DalamudAsset.FontAwesomeFreeSolid), - ]; + }; /// <summary> /// Gets the list of Game-provided fonts. /// </summary> /// <returns>The list of fonts.</returns> - public static List<IFontFamilyId> ListGameFonts() => - [ + public static List<IFontFamilyId> ListGameFonts() => new() + { new GameFontAndFamilyId(GameFontFamily.Axis), new GameFontAndFamilyId(GameFontFamily.Jupiter), new GameFontAndFamilyId(GameFontFamily.JupiterNumeric), new GameFontAndFamilyId(GameFontFamily.Meidinger), new GameFontAndFamilyId(GameFontFamily.MiedingerMid), new GameFontAndFamilyId(GameFontFamily.TrumpGothic), - ]; + }; /// <summary> /// Gets the list of System-provided fonts. diff --git a/Dalamud/Interface/FontIdentifier/IFontId.cs b/Dalamud/Interface/FontIdentifier/IFontId.cs index 7b457a95b..4c611edf8 100644 --- a/Dalamud/Interface/FontIdentifier/IFontId.cs +++ b/Dalamud/Interface/FontIdentifier/IFontId.cs @@ -1,6 +1,7 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; +using ImGuiNET; + namespace Dalamud.Interface.FontIdentifier; /// <summary> diff --git a/Dalamud/Interface/FontIdentifier/IFontSpec.cs b/Dalamud/Interface/FontIdentifier/IFontSpec.cs index c597ed4dd..4d0719d4e 100644 --- a/Dalamud/Interface/FontIdentifier/IFontSpec.cs +++ b/Dalamud/Interface/FontIdentifier/IFontSpec.cs @@ -1,6 +1,7 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; +using ImGuiNET; + namespace Dalamud.Interface.FontIdentifier; /// <summary> diff --git a/Dalamud/Interface/FontIdentifier/IObjectWithLocalizableName.cs b/Dalamud/Interface/FontIdentifier/IObjectWithLocalizableName.cs index 4b3860431..2b970a5fd 100644 --- a/Dalamud/Interface/FontIdentifier/IObjectWithLocalizableName.cs +++ b/Dalamud/Interface/FontIdentifier/IObjectWithLocalizableName.cs @@ -64,9 +64,9 @@ public interface IObjectWithLocalizableName var result = new Dictionary<string, string>((int)count); for (var i = 0u; i < count; i++) { - fn->GetLocaleName(i, buf, maxStrLen).ThrowOnError(); + fn->GetLocaleName(i, (ushort*)buf, maxStrLen).ThrowOnError(); var key = new string(buf); - fn->GetString(i, buf, maxStrLen).ThrowOnError(); + fn->GetString(i, (ushort*)buf, maxStrLen).ThrowOnError(); var value = new string(buf); result[key.ToLowerInvariant()] = value; } diff --git a/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs b/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs index b1c03f9dd..946215b85 100644 --- a/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs +++ b/Dalamud/Interface/FontIdentifier/SingleFontSpec.cs @@ -3,10 +3,11 @@ using System.Diagnostics.CodeAnalysis; using System.Numerics; using System.Text; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.Utility; +using ImGuiNET; + using Newtonsoft.Json; namespace Dalamud.Interface.FontIdentifier; diff --git a/Dalamud/Interface/FontIdentifier/SystemFontFamilyId.cs b/Dalamud/Interface/FontIdentifier/SystemFontFamilyId.cs index 60e20fb6f..420ee77a4 100644 --- a/Dalamud/Interface/FontIdentifier/SystemFontFamilyId.cs +++ b/Dalamud/Interface/FontIdentifier/SystemFontFamilyId.cs @@ -83,7 +83,7 @@ public sealed class SystemFontFamilyId : IFontFamilyId else if (candidates.Any(x => x.Style == (int)DWRITE_FONT_STYLE.DWRITE_FONT_STYLE_NORMAL)) candidates.RemoveAll(x => x.Style != (int)DWRITE_FONT_STYLE.DWRITE_FONT_STYLE_NORMAL); - if (candidates.Count == 0) + if (!candidates.Any()) return 0; for (var i = 0; i < this.Fonts.Count; i++) @@ -117,7 +117,7 @@ public sealed class SystemFontFamilyId : IFontFamilyId return new(IObjectWithLocalizableName.GetLocaleNames(fn)); } - private unsafe List<IFontId> GetFonts() + private unsafe IReadOnlyList<IFontId> GetFonts() { using var dwf = default(ComPtr<IDWriteFactory>); fixed (Guid* piid = &IID.IID_IDWriteFactory) @@ -133,8 +133,8 @@ public sealed class SystemFontFamilyId : IFontFamilyId var familyIndex = 0u; BOOL exists = false; - fixed (char* pName = this.EnglishName) - sfc.Get()->FindFamilyName(pName, &familyIndex, &exists).ThrowOnError(); + fixed (void* pName = this.EnglishName) + sfc.Get()->FindFamilyName((ushort*)pName, &familyIndex, &exists).ThrowOnError(); if (!exists) throw new FileNotFoundException($"Font \"{this.EnglishName}\" not found."); diff --git a/Dalamud/Interface/FontIdentifier/SystemFontId.cs b/Dalamud/Interface/FontIdentifier/SystemFontId.cs index 45885a9a8..0a350fc3a 100644 --- a/Dalamud/Interface/FontIdentifier/SystemFontId.cs +++ b/Dalamud/Interface/FontIdentifier/SystemFontId.cs @@ -2,10 +2,11 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Utility; +using ImGuiNET; + using Newtonsoft.Json; using TerraFX.Interop.DirectX; @@ -37,7 +38,7 @@ public sealed class SystemFontId : IFontId this.EnglishName = name; else if (this.LocaleNames.TryGetValue("en", out name)) this.EnglishName = name; - else + else this.EnglishName = this.LocaleNames.Values.First(); } @@ -115,8 +116,8 @@ public sealed class SystemFontId : IFontId var familyIndex = 0u; BOOL exists = false; - fixed (char* name = this.Family.EnglishName) - sfc.Get()->FindFamilyName(name, &familyIndex, &exists).ThrowOnError(); + fixed (void* name = this.Family.EnglishName) + sfc.Get()->FindFamilyName((ushort*)name, &familyIndex, &exists).ThrowOnError(); if (!exists) throw new FileNotFoundException($"Font \"{this.Family.EnglishName}\" not found."); @@ -153,7 +154,7 @@ public sealed class SystemFontId : IFontId flocal.Get()->GetFilePathLengthFromKey(refKey, refKeySize, &pathSize).ThrowOnError(); var path = stackalloc char[(int)pathSize + 1]; - flocal.Get()->GetFilePathFromKey(refKey, refKeySize, path, pathSize + 1).ThrowOnError(); + flocal.Get()->GetFilePathFromKey(refKey, refKeySize, (ushort*)path, pathSize + 1).ThrowOnError(); return (new(path, 0, (int)pathSize), (int)fface.Get()->GetIndex()); } diff --git a/Dalamud/Interface/GameFonts/FdtReader.cs b/Dalamud/Interface/GameFonts/FdtReader.cs index 6f6aaea25..0e8f3fb59 100644 --- a/Dalamud/Interface/GameFonts/FdtReader.cs +++ b/Dalamud/Interface/GameFonts/FdtReader.cs @@ -43,12 +43,12 @@ public class FdtReader /// <summary> /// Gets all the glyphs defined in this file. /// </summary> - public List<FontTableEntry> Glyphs { get; init; } = []; + public List<FontTableEntry> Glyphs { get; init; } = new(); /// <summary> /// Gets all the kerning entries defined in this file. /// </summary> - public List<KerningTableEntry> Distances { get; init; } = []; + public List<KerningTableEntry> Distances { get; init; } = new(); /// <summary> /// Finds the glyph index for the corresponding codepoint. @@ -269,7 +269,7 @@ public class FdtReader /// <summary> /// Mapping of texture channel index to byte index. /// </summary> - public static readonly int[] TextureChannelOrder = [2, 1, 0, 3]; + public static readonly int[] TextureChannelOrder = { 2, 1, 0, 3 }; /// <summary> /// Integer representation of a Unicode character in UTF-8 in reverse order, read in little endian. diff --git a/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs b/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs index 126e7601f..6b602d911 100644 --- a/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs +++ b/Dalamud/Interface/GameFonts/GameFontLayoutPlan.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Numerics; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.GameFonts; @@ -200,25 +200,30 @@ public class GameFontLayoutPlan return false; // TODO: Whatever - return char.GetUnicodeCategory((char)this.Codepoint) - is System.Globalization.UnicodeCategory.SpaceSeparator - or System.Globalization.UnicodeCategory.LineSeparator - or System.Globalization.UnicodeCategory.ParagraphSeparator - or System.Globalization.UnicodeCategory.Control - or System.Globalization.UnicodeCategory.Format - or System.Globalization.UnicodeCategory.Surrogate - or System.Globalization.UnicodeCategory.PrivateUse - or System.Globalization.UnicodeCategory.ConnectorPunctuation - or System.Globalization.UnicodeCategory.DashPunctuation - or System.Globalization.UnicodeCategory.OpenPunctuation - or System.Globalization.UnicodeCategory.ClosePunctuation - or System.Globalization.UnicodeCategory.InitialQuotePunctuation - or System.Globalization.UnicodeCategory.FinalQuotePunctuation - or System.Globalization.UnicodeCategory.OtherPunctuation - or System.Globalization.UnicodeCategory.MathSymbol - or System.Globalization.UnicodeCategory.ModifierSymbol - or System.Globalization.UnicodeCategory.OtherSymbol - or System.Globalization.UnicodeCategory.OtherNotAssigned; + switch (char.GetUnicodeCategory((char)this.Codepoint)) + { + case System.Globalization.UnicodeCategory.SpaceSeparator: + case System.Globalization.UnicodeCategory.LineSeparator: + case System.Globalization.UnicodeCategory.ParagraphSeparator: + case System.Globalization.UnicodeCategory.Control: + case System.Globalization.UnicodeCategory.Format: + case System.Globalization.UnicodeCategory.Surrogate: + case System.Globalization.UnicodeCategory.PrivateUse: + case System.Globalization.UnicodeCategory.ConnectorPunctuation: + case System.Globalization.UnicodeCategory.DashPunctuation: + case System.Globalization.UnicodeCategory.OpenPunctuation: + case System.Globalization.UnicodeCategory.ClosePunctuation: + case System.Globalization.UnicodeCategory.InitialQuotePunctuation: + case System.Globalization.UnicodeCategory.FinalQuotePunctuation: + case System.Globalization.UnicodeCategory.OtherPunctuation: + case System.Globalization.UnicodeCategory.MathSymbol: + case System.Globalization.UnicodeCategory.ModifierSymbol: + case System.Globalization.UnicodeCategory.OtherSymbol: + case System.Globalization.UnicodeCategory.OtherNotAssigned: + return true; + } + + return false; } } } @@ -295,7 +300,7 @@ public class GameFontLayoutPlan elements.Add(new() { Codepoint = c, Glyph = this.fdt.GetGlyph(c), }); var lastBreakIndex = 0; - List<int> lineBreakIndices = [0]; + List<int> lineBreakIndices = new() { 0 }; for (var i = 1; i < elements.Count; i++) { var prev = elements[i - 1]; diff --git a/Dalamud/Interface/GlyphRangesJapanese.cs b/Dalamud/Interface/GlyphRangesJapanese.cs index 2acf7f40e..2773b9db5 100644 --- a/Dalamud/Interface/GlyphRangesJapanese.cs +++ b/Dalamud/Interface/GlyphRangesJapanese.cs @@ -8,8 +8,8 @@ public static class GlyphRangesJapanese /// <summary> /// Gets the unicode glyph ranges for the Japanese language. /// </summary> - public static ushort[] GlyphRanges => - [ + public static ushort[] GlyphRanges => new ushort[] + { 0x0020, 0x00FF, 0x0391, 0x03A1, 0x03A3, 0x03A9, 0x03B1, 0x03C1, 0x03C3, 0x03C9, 0x0401, 0x0401, 0x0410, 0x044F, 0x0451, 0x0451, 0x2000, 0x206F, 0x2103, 0x2103, 0x212B, 0x212B, 0x2190, 0x2193, 0x21D2, 0x21D2, 0x21D4, 0x21D4, 0x2200, 0x2200, 0x2202, 0x2203, 0x2207, 0x2208, 0x220B, 0x220B, 0x2212, 0x2212, 0x221A, 0x221A, 0x221D, 0x221E, 0x2220, 0x2220, 0x2227, 0x222C, 0x2234, 0x2235, @@ -524,5 +524,5 @@ public static class GlyphRangesJapanese 0x9F4E, 0x9F4F, 0x9F52, 0x9F52, 0x9F54, 0x9F54, 0x9F5F, 0x9F63, 0x9F66, 0x9F67, 0x9F6A, 0x9F6A, 0x9F6C, 0x9F6C, 0x9F72, 0x9F72, 0x9F76, 0x9F77, 0x9F8D, 0x9F8D, 0x9F95, 0x9F95, 0x9F9C, 0x9F9D, 0x9FA0, 0x9FA0, 0xFF01, 0xFF01, 0xFF03, 0xFF06, 0xFF08, 0xFF0C, 0xFF0E, 0xFF3B, 0xFF3D, 0xFF5D, 0xFF61, 0xFF9F, 0xFFE3, 0xFFE3, 0xFFE5, 0xFFE5, 0xFFFF, 0xFFFF, 0, - ]; + }; } diff --git a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiBuildUiDelegate.cs b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiBuildUiDelegate.cs deleted file mode 100644 index 6ebab55c6..000000000 --- a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiBuildUiDelegate.cs +++ /dev/null @@ -1,4 +0,0 @@ -namespace Dalamud.Interface.ImGuiBackend.Delegates; - -/// <summary>Delegate to be called when ImGui should be used to layout now.</summary> -public delegate void ImGuiBuildUiDelegate(); diff --git a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewInputFrameDelegate.cs b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewInputFrameDelegate.cs deleted file mode 100644 index 7397d8d7f..000000000 --- a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewInputFrameDelegate.cs +++ /dev/null @@ -1,4 +0,0 @@ -namespace Dalamud.Interface.ImGuiBackend.Delegates; - -/// <summary>Delegate to be called on new input frame.</summary> -public delegate void ImGuiNewInputFrameDelegate(); diff --git a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewRenderFrameDelegate.cs b/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewRenderFrameDelegate.cs deleted file mode 100644 index 4a4b38b71..000000000 --- a/Dalamud/Interface/ImGuiBackend/Delegates/ImGuiNewRenderFrameDelegate.cs +++ /dev/null @@ -1,4 +0,0 @@ -namespace Dalamud.Interface.ImGuiBackend.Delegates; - -/// <summary>Delegate to be called on new render frame.</summary> -public delegate void ImGuiNewRenderFrameDelegate(); diff --git a/Dalamud/Interface/ImGuiBackend/Dx11Win32Backend.cs b/Dalamud/Interface/ImGuiBackend/Dx11Win32Backend.cs deleted file mode 100644 index e3b98ec37..000000000 --- a/Dalamud/Interface/ImGuiBackend/Dx11Win32Backend.cs +++ /dev/null @@ -1,246 +0,0 @@ -using System.Diagnostics.CodeAnalysis; - -using Dalamud.Bindings.ImGui; -using Dalamud.Bindings.ImGuizmo; -using Dalamud.Bindings.ImPlot; -using Dalamud.Interface.ImGuiBackend.Delegates; -using Dalamud.Interface.ImGuiBackend.Helpers; -using Dalamud.Interface.ImGuiBackend.InputHandler; -using Dalamud.Interface.ImGuiBackend.Renderers; -using Dalamud.Utility; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.ImGuiBackend; - -/// <summary> -/// Backend for ImGui, using <see cref="Dx11Renderer"/> and <see cref="Win32InputHandler"/>. -/// </summary> -[SuppressMessage( - "StyleCop.CSharp.LayoutRules", - "SA1519:Braces should not be omitted from multi-line child statement", - Justification = "Multiple fixed/using scopes")] -internal sealed unsafe class Dx11Win32Backend : IWin32Backend -{ - private readonly Dx11Renderer imguiRenderer; - private readonly Win32InputHandler imguiInput; - - private ComPtr<IDXGISwapChain> swapChainPossiblyWrapped; - private ComPtr<IDXGISwapChain> swapChain; - private ComPtr<ID3D11Device> device; - private ComPtr<ID3D11DeviceContext> deviceContext; - - private int targetWidth; - private int targetHeight; - - /// <summary> - /// Initializes a new instance of the <see cref="Dx11Win32Backend"/> class. - /// </summary> - /// <param name="swapChain">The pointer to an instance of <see cref="IDXGISwapChain"/>. The reference is copied.</param> - public Dx11Win32Backend(IDXGISwapChain* swapChain) - { - try - { - this.swapChainPossiblyWrapped = new(swapChain); - this.swapChain = new(swapChain); - fixed (ComPtr<IDXGISwapChain>* ppSwapChain = &this.swapChain) - ReShadePeeler.PeelSwapChain(ppSwapChain); - - fixed (Guid* guid = &IID.IID_ID3D11Device) - fixed (ID3D11Device** pp = &this.device.GetPinnableReference()) - this.swapChain.Get()->GetDevice(guid, (void**)pp).ThrowOnError(); - - fixed (ID3D11DeviceContext** pp = &this.deviceContext.GetPinnableReference()) - this.device.Get()->GetImmediateContext(pp); - - using var buffer = default(ComPtr<ID3D11Resource>); - fixed (Guid* guid = &IID.IID_ID3D11Resource) - this.swapChain.Get()->GetBuffer(0, guid, (void**)buffer.GetAddressOf()).ThrowOnError(); - - var desc = default(DXGI_SWAP_CHAIN_DESC); - this.swapChain.Get()->GetDesc(&desc).ThrowOnError(); - this.targetWidth = (int)desc.BufferDesc.Width; - this.targetHeight = (int)desc.BufferDesc.Height; - this.WindowHandle = desc.OutputWindow; - - var ctx = ImGui.CreateContext(); - ImGuizmo.SetImGuiContext(ctx); - ImPlot.SetImGuiContext(ctx); - ImPlot.CreateContext(); - - ImGui.GetIO().ConfigFlags |= ImGuiConfigFlags.DockingEnable | ImGuiConfigFlags.ViewportsEnable; - - this.imguiRenderer = new(this.SwapChain, this.Device, this.DeviceContext); - this.imguiInput = new(this.WindowHandle); - } - catch - { - this.Dispose(); - throw; - } - } - - /// <summary> - /// Finalizes an instance of the <see cref="Dx11Win32Backend"/> class. - /// </summary> - ~Dx11Win32Backend() => this.ReleaseUnmanagedResources(); - - /// <inheritdoc/> - public event ImGuiBuildUiDelegate? BuildUi; - - /// <inheritdoc/> - public event ImGuiNewInputFrameDelegate? NewInputFrame; - - /// <inheritdoc/> - public event ImGuiNewRenderFrameDelegate? NewRenderFrame; - - /// <inheritdoc/> - public bool UpdateCursor - { - get => this.imguiInput.UpdateCursor; - set => this.imguiInput.UpdateCursor = value; - } - - /// <inheritdoc/> - public string? IniPath - { - get => this.imguiInput.IniPath; - set => this.imguiInput.IniPath = value; - } - - /// <inheritdoc/> - public IImGuiInputHandler InputHandler => this.imguiInput; - - /// <inheritdoc/> - public IImGuiRenderer Renderer => this.imguiRenderer; - - /// <summary> - /// Gets the pointer to an instance of <see cref="IDXGISwapChain"/>. - /// </summary> - public IDXGISwapChain* SwapChain => this.swapChain; - - /// <summary> - /// Gets the pointer to an instance of <see cref="ID3D11Device"/>. - /// </summary> - public ID3D11Device* Device => this.device; - - /// <summary> - /// Gets the pointer to an instance of <see cref="ID3D11Device"/>, in <see cref="nint"/>. - /// </summary> - public nint DeviceHandle => (nint)this.device.Get(); - - /// <summary> - /// Gets the pointer to an instance of <see cref="ID3D11DeviceContext"/>. - /// </summary> - public ID3D11DeviceContext* DeviceContext => this.deviceContext; - - /// <summary> - /// Gets the window handle. - /// </summary> - public HWND WindowHandle { get; } - - /// <inheritdoc/> - public void Dispose() - { - this.ReleaseUnmanagedResources(); - GC.SuppressFinalize(this); - } - - /// <inheritdoc/> - public nint? ProcessWndProcW(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam) => - this.imguiInput.ProcessWndProcW(hWnd, msg, wParam, lParam); - - /// <inheritdoc/> - public void Render() - { - this.imguiRenderer.OnNewFrame(); - this.NewRenderFrame?.Invoke(); - this.imguiInput.NewFrame(this.targetWidth, this.targetHeight); - this.NewInputFrame?.Invoke(); - - ImGui.NewFrame(); - ImGuizmo.BeginFrame(); - - this.BuildUi?.Invoke(); - - ImGui.Render(); - - this.imguiRenderer.RenderDrawData(ImGui.GetDrawData()); - - ImGui.UpdatePlatformWindows(); - ImGui.RenderPlatformWindowsDefault(); - } - - /// <inheritdoc/> - public void OnPreResize() => this.imguiRenderer.OnPreResize(); - - /// <inheritdoc/> - public void OnPostResize(int newWidth, int newHeight) - { - this.imguiRenderer.OnPostResize(newWidth, newHeight); - this.targetWidth = newWidth; - this.targetHeight = newHeight; - } - - /// <inheritdoc/> - public void InvalidateFonts() => this.imguiRenderer.RebuildFontTexture(); - - /// <inheritdoc/> - public bool IsImGuiCursor(nint cursorHandle) => this.imguiInput.IsImGuiCursor(cursorHandle); - - /// <inheritdoc/> - public bool IsAttachedToPresentationTarget(nint targetHandle) => - AreIUnknownEqual(this.swapChain.Get(), (IUnknown*)targetHandle) - || AreIUnknownEqual(this.swapChainPossiblyWrapped.Get(), (IUnknown*)targetHandle); - - /// <inheritdoc/> - public bool IsMainViewportFullScreen() - { - BOOL fullscreen; - this.swapChain.Get()->GetFullscreenState(&fullscreen, null); - return fullscreen; - } - - private static bool AreIUnknownEqual<T1, T2>(T1* punk1, T2* punk2) - where T1 : unmanaged, IUnknown.Interface - where T2 : unmanaged, IUnknown.Interface - { - // https://learn.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-queryinterface(refiid_void) - // For any given COM object (also known as a COM component), a specific query for the IUnknown interface on any - // of the object's interfaces must always return the same pointer value. - - if (punk1 is null || punk2 is null) - return false; - - fixed (Guid* iid = &IID.IID_IUnknown) - { - using var u1 = default(ComPtr<IUnknown>); - if (punk1->QueryInterface(iid, (void**)u1.GetAddressOf()).FAILED) - return false; - - using var u2 = default(ComPtr<IUnknown>); - if (punk2->QueryInterface(iid, (void**)u2.GetAddressOf()).FAILED) - return false; - - return u1.Get() == u2.Get(); - } - } - - private void ReleaseUnmanagedResources() - { - if (this.device.IsEmpty()) - return; - - this.imguiRenderer?.Dispose(); - this.imguiInput?.Dispose(); - - ImPlot.DestroyContext(); - ImGui.DestroyContext(); - - this.swapChain.Dispose(); - this.deviceContext.Dispose(); - this.device.Dispose(); - this.swapChainPossiblyWrapped.Dispose(); - } -} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/D3D11DeviceContextStateBackup.cs b/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/D3D11DeviceContextStateBackup.cs deleted file mode 100644 index df1087ce3..000000000 --- a/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/D3D11DeviceContextStateBackup.cs +++ /dev/null @@ -1,655 +0,0 @@ -using System.Runtime.InteropServices; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.ImGuiBackend.Helpers.D3D11; - -/// <summary> -/// Captures states of a <see cref="ID3D11DeviceContext"/>. -/// </summary> -internal unsafe struct D3D11DeviceContextStateBackup : IDisposable -{ - private InputAssemblerState inputAssemblerState; - private RasterizerState rasterizerState; - private OutputMergerState outputMergerState; - private VertexShaderState vertexShaderState; - private HullShaderState hullShaderState; - private DomainShaderState domainShaderState; - private GeometryShaderState geometryShaderState; - private PixelShaderState pixelShaderState; - private ComputeShaderState computeShaderState; - - /// <summary> - /// Initializes a new instance of the <see cref="D3D11DeviceContextStateBackup"/> struct, - /// by capturing all states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - /// <param name="featureLevel">The feature level.</param> - /// <param name="ctx">The device context.</param> - public D3D11DeviceContextStateBackup(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) - { - this.inputAssemblerState = InputAssemblerState.From(ctx); - this.rasterizerState = RasterizerState.From(ctx); - this.outputMergerState = OutputMergerState.From(featureLevel, ctx); - this.vertexShaderState = VertexShaderState.From(ctx); - this.hullShaderState = HullShaderState.From(ctx); - this.domainShaderState = DomainShaderState.From(ctx); - this.geometryShaderState = GeometryShaderState.From(ctx); - this.pixelShaderState = PixelShaderState.From(ctx); - this.computeShaderState = ComputeShaderState.From(featureLevel, ctx); - } - - /// <inheritdoc/> - public void Dispose() - { - this.inputAssemblerState.Dispose(); - this.rasterizerState.Dispose(); - this.outputMergerState.Dispose(); - this.vertexShaderState.Dispose(); - this.hullShaderState.Dispose(); - this.domainShaderState.Dispose(); - this.geometryShaderState.Dispose(); - this.pixelShaderState.Dispose(); - this.computeShaderState.Dispose(); - } - - /// <summary> - /// Captures Input Assembler states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct InputAssemblerState : IDisposable - { - private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11InputLayout> layout; - private ComPtr<ID3D11Buffer> indexBuffer; - private DXGI_FORMAT indexFormat; - private uint indexOffset; - private D3D_PRIMITIVE_TOPOLOGY topology; - private fixed ulong buffers[BufferCount]; - private fixed uint strides[BufferCount]; - private fixed uint offsets[BufferCount]; - - /// <summary> - /// Creates a new instance of <see cref="InputAssemblerState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static InputAssemblerState From(ID3D11DeviceContext* ctx) - { - var state = default(InputAssemblerState); - state.context.Attach(ctx); - ctx->AddRef(); - ctx->IAGetInputLayout(state.layout.GetAddressOf()); - ctx->IAGetPrimitiveTopology(&state.topology); - ctx->IAGetIndexBuffer(state.indexBuffer.GetAddressOf(), &state.indexFormat, &state.indexOffset); - ctx->IAGetVertexBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers, state.strides, state.offsets); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (InputAssemblerState* pThis = &this) - { - ctx->IASetInputLayout(pThis->layout); - ctx->IASetPrimitiveTopology(pThis->topology); - ctx->IASetIndexBuffer(pThis->indexBuffer, pThis->indexFormat, pThis->indexOffset); - ctx->IASetVertexBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers, pThis->strides, pThis->offsets); - - pThis->context.Dispose(); - pThis->layout.Dispose(); - pThis->indexBuffer.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - } - } - } - - /// <summary> - /// Captures Rasterizer states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct RasterizerState : IDisposable - { - private const int Count = TerraFX.Interop.DirectX.D3D11.D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11RasterizerState> state; - private fixed byte viewports[24 * Count]; - private fixed ulong scissorRects[16 * Count]; - - /// <summary> - /// Creates a new instance of <see cref="RasterizerState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static RasterizerState From(ID3D11DeviceContext* ctx) - { - var state = default(RasterizerState); - state.context.Attach(ctx); - ctx->AddRef(); - ctx->RSGetState(state.state.GetAddressOf()); - uint n = Count; - ctx->RSGetViewports(&n, (D3D11_VIEWPORT*)state.viewports); - n = Count; - ctx->RSGetScissorRects(&n, (RECT*)state.scissorRects); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (RasterizerState* pThis = &this) - { - ctx->RSSetState(pThis->state); - ctx->RSSetViewports(Count, (D3D11_VIEWPORT*)pThis->viewports); - ctx->RSSetScissorRects(Count, (RECT*)pThis->scissorRects); - - pThis->context.Dispose(); - pThis->state.Dispose(); - } - } - } - - /// <summary> - /// Captures Output Merger states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct OutputMergerState : IDisposable - { - private const int RtvCount = TerraFX.Interop.DirectX.D3D11.D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; - private const int UavCountMax = TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11BlendState> blendState; - private fixed float blendFactor[4]; - private uint sampleMask; - private uint stencilRef; - private ComPtr<ID3D11DepthStencilState> depthStencilState; - private fixed ulong rtvs[RtvCount]; // ID3D11RenderTargetView*[RtvCount] - private ComPtr<ID3D11DepthStencilView> dsv; - private fixed ulong uavs[UavCountMax]; // ID3D11UnorderedAccessView*[UavCount] - private int uavCount; - - /// <summary> - /// Creates a new instance of <see cref="OutputMergerState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="featureLevel">The feature level.</param> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static OutputMergerState From(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) - { - var state = default(OutputMergerState); - state.uavCount = featureLevel >= D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_11_1 - ? TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT - : TerraFX.Interop.DirectX.D3D11.D3D11_PS_CS_UAV_REGISTER_COUNT; - state.context.Attach(ctx); - ctx->AddRef(); - ctx->OMGetBlendState(state.blendState.GetAddressOf(), state.blendFactor, &state.sampleMask); - ctx->OMGetDepthStencilState(state.depthStencilState.GetAddressOf(), &state.stencilRef); - ctx->OMGetRenderTargetsAndUnorderedAccessViews( - RtvCount, - (ID3D11RenderTargetView**)state.rtvs, - state.dsv.GetAddressOf(), - 0, - (uint)state.uavCount, - (ID3D11UnorderedAccessView**)state.uavs); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (OutputMergerState* pThis = &this) - { - ctx->OMSetBlendState(pThis->blendState, pThis->blendFactor, pThis->sampleMask); - ctx->OMSetDepthStencilState(pThis->depthStencilState, pThis->stencilRef); - var rtvc = (uint)RtvCount; - while (rtvc > 0 && pThis->rtvs[rtvc - 1] == 0) - rtvc--; - - var uavlb = rtvc; - while (uavlb < this.uavCount && pThis->uavs[uavlb] == 0) - uavlb++; - - var uavc = (uint)this.uavCount; - while (uavc > uavlb && pThis->uavs[uavc - 1] == 0) - uavlb--; - uavc -= uavlb; - - ctx->OMSetRenderTargetsAndUnorderedAccessViews( - rtvc, - (ID3D11RenderTargetView**)pThis->rtvs, - pThis->dsv, - uavc == 0 ? 0 : uavlb, - uavc, - uavc == 0 ? null : (ID3D11UnorderedAccessView**)pThis->uavs, - null); - - this.context.Reset(); - this.blendState.Reset(); - this.depthStencilState.Reset(); - this.dsv.Reset(); - foreach (ref var b in new Span<ComPtr<ID3D11RenderTargetView>>(pThis->rtvs, RtvCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11UnorderedAccessView>>(pThis->uavs, this.uavCount)) - b.Dispose(); - } - } - } - - /// <summary> - /// Captures Vertex Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct VertexShaderState : IDisposable - { - private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11VertexShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="VertexShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static VertexShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(VertexShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->VSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->VSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->VSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->VSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (VertexShaderState* pThis = &this) - { - ctx->VSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->VSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->VSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->VSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Hull Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct HullShaderState : IDisposable - { - private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11HullShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="HullShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static HullShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(HullShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->HSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->HSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->HSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->HSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (HullShaderState* pThis = &this) - { - ctx->HSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->HSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->HSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->HSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Domain Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct DomainShaderState : IDisposable - { - private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11DomainShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="DomainShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static DomainShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(DomainShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->DSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->DSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->DSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->DSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (DomainShaderState* pThis = &this) - { - ctx->DSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->DSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->DSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->DSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Geometry Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct GeometryShaderState : IDisposable - { - private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11GeometryShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="GeometryShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static GeometryShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(GeometryShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->GSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->GSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->GSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->GSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (GeometryShaderState* pThis = &this) - { - ctx->GSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->GSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->GSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->GSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Pixel Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct PixelShaderState : IDisposable - { - private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11PixelShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="PixelShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static PixelShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(PixelShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->PSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->PSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->PSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->PSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (PixelShaderState* pThis = &this) - { - ctx->PSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->PSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->PSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->PSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Compute Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct ComputeShaderState : IDisposable - { - private const int BufferCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = TerraFX.Interop.DirectX.D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int InstanceCount = 256; // According to msdn - private const int UavCountMax = TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11ComputeShader> shader; - private fixed ulong insts[InstanceCount]; // ID3D11ClassInstance*[BufferCount] - private fixed ulong buffers[BufferCount]; // ID3D11Buffer*[BufferCount] - private fixed ulong samplers[SamplerCount]; // ID3D11SamplerState*[SamplerCount] - private fixed ulong resources[ResourceCount]; // ID3D11ShaderResourceView*[ResourceCount] - private fixed ulong uavs[UavCountMax]; // ID3D11UnorderedAccessView*[UavCountMax] - private uint instCount; - private int uavCount; - - /// <summary> - /// Creates a new instance of <see cref="ComputeShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="featureLevel">The feature level.</param> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static ComputeShaderState From(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) - { - var state = default(ComputeShaderState); - state.uavCount = featureLevel >= D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_11_1 - ? TerraFX.Interop.DirectX.D3D11.D3D11_1_UAV_SLOT_COUNT - : TerraFX.Interop.DirectX.D3D11.D3D11_PS_CS_UAV_REGISTER_COUNT; - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = InstanceCount; - ctx->CSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->CSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->CSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->CSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - ctx->CSGetUnorderedAccessViews(0, (uint)state.uavCount, (ID3D11UnorderedAccessView**)state.uavs); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (ComputeShaderState* pThis = &this) - { - ctx->CSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->CSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->CSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->CSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - ctx->CSSetUnorderedAccessViews(0, (uint)this.uavCount, (ID3D11UnorderedAccessView**)pThis->uavs, null); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11UnorderedAccessView>>(pThis->uavs, this.uavCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } -} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/Extensions.cs b/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/Extensions.cs deleted file mode 100644 index 4d81cb5fc..000000000 --- a/Dalamud/Interface/ImGuiBackend/Helpers/D3D11/Extensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Text; - -using Dalamud.Utility; - -using TerraFX.Interop.DirectX; - -namespace Dalamud.Interface.ImGuiBackend.Helpers.D3D11; - -/// <summary>Utility extension methods for D3D11 objects.</summary> -internal static class Extensions -{ - /// <summary>Sets the name for debugging.</summary> - /// <param name="child">D3D11 object.</param> - /// <param name="name">Debug name.</param> - /// <typeparam name="T">Object type.</typeparam> - public static unsafe void SetDebugName<T>(ref this T child, string name) - where T : unmanaged, ID3D11DeviceChild.Interface - { - var len = Encoding.UTF8.GetByteCount(name); - var buf = stackalloc byte[len + 1]; - Encoding.UTF8.GetBytes(name, new(buf, len + 1)); - buf[len] = 0; - fixed (Guid* pId = &DirectX.WKPDID_D3DDebugObjectName) - child.SetPrivateData(pId, (uint)(len + 1), buf).ThrowOnError(); - } -} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/ImGuiViewportHelpers.cs b/Dalamud/Interface/ImGuiBackend/Helpers/ImGuiViewportHelpers.cs deleted file mode 100644 index bbcaa618e..000000000 --- a/Dalamud/Interface/ImGuiBackend/Helpers/ImGuiViewportHelpers.cs +++ /dev/null @@ -1,165 +0,0 @@ -using System.Diagnostics; -using System.Linq; -using System.Numerics; -using System.Runtime.InteropServices; - -using Dalamud.Bindings.ImGui; - -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; - -namespace Dalamud.Interface.ImGuiBackend.Helpers; - -/// <summary> -/// Helpers for using ImGui Viewports. -/// </summary> -internal static class ImGuiViewportHelpers -{ - /// <summary> - /// Delegate to be called when a window should be created. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - public delegate void CreateWindowDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when a window should be destroyed. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - public delegate void DestroyWindowDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when a window should be resized. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <param name="size">Size of the new window.</param> - public delegate void SetWindowSizeDelegate(ImGuiViewportPtr viewport, Vector2 size); - - /// <summary> - /// Delegate to be called when a window should be rendered. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <param name="v">Custom user-provided argument from <see cref="ImGui.RenderPlatformWindowsDefault()"/>.</param> - public delegate void RenderWindowDelegate(ImGuiViewportPtr viewport, nint v); - - /// <summary> - /// Delegate to be called when buffers for the window should be swapped. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <param name="v">Custom user-provided argument from <see cref="ImGui.RenderPlatformWindowsDefault()"/>.</param> - public delegate void SwapBuffersDelegate(ImGuiViewportPtr viewport, nint v); - - /// <summary> - /// Delegate to be called when the window should be showed. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - public delegate void ShowWindowDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when the window should be updated. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - public delegate void UpdateWindowDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when the window position is queried. - /// </summary> - /// <param name="returnStorage">The return value storage.</param> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <returns>Same value with <paramref name="returnStorage"/>.</returns> - public unsafe delegate Vector2* GetWindowPosDelegate(Vector2* returnStorage, ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when the window should be moved. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <param name="pos">The new position.</param> - public delegate void SetWindowPosDelegate(ImGuiViewportPtr viewport, Vector2 pos); - - /// <summary> - /// Delegate to be called when the window size is queried. - /// </summary> - /// <param name="returnStorage">The return value storage.</param> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <returns>Same value with <paramref name="returnStorage"/>.</returns> - public unsafe delegate Vector2* GetWindowSizeDelegate(Vector2* returnStorage, ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when the window should be given focus. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - public delegate void SetWindowFocusDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when the window is focused. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <returns>Whether the window is focused.</returns> - public delegate bool GetWindowFocusDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when whether the window is minimized is queried. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <returns>Whether the window is minimized.</returns> - public delegate bool GetWindowMinimizedDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when the window title should be changed. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <param name="title">The new title.</param> - public delegate void SetWindowTitleDelegate(ImGuiViewportPtr viewport, string title); - - /// <summary> - /// Delegate to be called when the window alpha should be changed. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <param name="alpha">The new alpha.</param> - public delegate void SetWindowAlphaDelegate(ImGuiViewportPtr viewport, float alpha); - - /// <summary> - /// Delegate to be called when the IME input position should be changed. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <param name="pos">The new position.</param> - public delegate void SetImeInputPosDelegate(ImGuiViewportPtr viewport, Vector2 pos); - - /// <summary> - /// Delegate to be called when the window's DPI scale value is queried. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - /// <returns>The DPI scale.</returns> - public delegate float GetWindowDpiScaleDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Delegate to be called when viewport is changed. - /// </summary> - /// <param name="viewport">An instance of <see cref="ImGuiViewportPtr"/>.</param> - public delegate void ChangedViewportDelegate(ImGuiViewportPtr viewport); - - /// <summary> - /// Disables ImGui from disabling alpha for Viewport window backgrounds. - /// </summary> - public static unsafe void EnableViewportWindowBackgroundAlpha() - { - // TODO: patch imgui.cpp:6126, which disables background transparency for extra viewport windows - var offset = 0x00007FFB6ADA632C - 0x00007FFB6AD60000; - offset += Process.GetCurrentProcess().Modules.Cast<ProcessModule>().First(x => x.ModuleName == "cimgui.dll") - .BaseAddress; - var b = (byte*)offset; - uint old; - if (!VirtualProtect(b, 1, PAGE.PAGE_EXECUTE_READWRITE, &old)) - { - throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) - ?? throw new InvalidOperationException($"{nameof(VirtualProtect)} failed."); - } - - *b = 0xEB; - if (!VirtualProtect(b, 1, old, &old)) - { - throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) - ?? throw new InvalidOperationException($"{nameof(VirtualProtect)} failed."); - } - } -} diff --git a/Dalamud/Interface/ImGuiBackend/Helpers/ReShadePeeler.cs b/Dalamud/Interface/ImGuiBackend/Helpers/ReShadePeeler.cs deleted file mode 100644 index 3f3c98c26..000000000 --- a/Dalamud/Interface/ImGuiBackend/Helpers/ReShadePeeler.cs +++ /dev/null @@ -1,230 +0,0 @@ -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; - -namespace Dalamud.Interface.ImGuiBackend.Helpers; - -/// <summary> -/// Peels ReShade off stuff. -/// </summary> -[SuppressMessage( - "StyleCop.CSharp.LayoutRules", - "SA1519:Braces should not be omitted from multi-line child statement", - Justification = "Multiple fixed blocks")] -internal static unsafe class ReShadePeeler -{ - /// <summary> - /// Peels <see cref="IDXGISwapChain"/> if it is wrapped by ReShade. - /// </summary> - /// <param name="comptr">[inout] The COM pointer to an instance of <see cref="IDXGISwapChain"/>.</param> - /// <typeparam name="T">A COM type that is or extends <see cref="IDXGISwapChain"/>.</typeparam> - /// <returns><c>true</c> if peeled.</returns> - public static bool PeelSwapChain<T>(ComPtr<T>* comptr) - where T : unmanaged, IDXGISwapChain.Interface => - PeelIUnknown(comptr, sizeof(IDXGISwapChain.Vtbl<IDXGISwapChain>)); - - private static bool PeelIUnknown<T>(ComPtr<T>* comptr, nint vtblSize) - where T : unmanaged, IUnknown.Interface - { - var changed = false; - while (comptr->Get() != null && IsReShadedComObject(comptr->Get())) - { - // Expectation: the pointer to the underlying object should come early after the overriden vtable. - for (nint i = 8; i <= 0x20; i += 8) - { - var ppObjectBehind = (nint)comptr->Get() + i; - - // Is the thing directly pointed from the address an actual something in the memory? - if (!IsValidReadableMemoryAddress(ppObjectBehind, 8)) - continue; - - var pObjectBehind = *(nint*)ppObjectBehind; - - // Is the address of vtable readable? - if (!IsValidReadableMemoryAddress(pObjectBehind, sizeof(nint))) - continue; - var pObjectBehindVtbl = *(nint*)pObjectBehind; - - // Is the vtable itself readable? - if (!IsValidReadableMemoryAddress(pObjectBehindVtbl, vtblSize)) - continue; - - // Are individual functions in vtable executable? - var valid = true; - for (var j = 0; valid && j < vtblSize; j += sizeof(nint)) - valid &= IsValidExecutableMemoryAddress(*(nint*)(pObjectBehindVtbl + j), 1); - if (!valid) - continue; - - // Interpret the object as an IUnknown. - // Note that `using` is not used, and `Attach` is used. We do not alter the reference count yet. - var punk = default(ComPtr<IUnknown>); - punk.Attach((IUnknown*)pObjectBehind); - - // Is the IUnknown object also the type we want? - using var comptr2 = default(ComPtr<T>); - if (punk.As(&comptr2).FAILED) - continue; - - comptr2.Swap(comptr); - changed = true; - break; - } - - if (!changed) - break; - } - - return changed; - } - - private static bool BelongsInReShadeDll(nint ptr) - { - foreach (ProcessModule processModule in Process.GetCurrentProcess().Modules) - { - if (ptr < processModule.BaseAddress) - continue; - - var dosh = (IMAGE_DOS_HEADER*)processModule.BaseAddress; - var nth = (IMAGE_NT_HEADERS64*)(processModule.BaseAddress + dosh->e_lfanew); - if (ptr >= processModule.BaseAddress + nth->OptionalHeader.SizeOfImage) - continue; - - fixed (byte* pfn0 = "CreateDXGIFactory"u8) - fixed (byte* pfn1 = "D2D1CreateDevice"u8) - fixed (byte* pfn2 = "D3D10CreateDevice"u8) - fixed (byte* pfn3 = "D3D11CreateDevice"u8) - fixed (byte* pfn4 = "D3D12CreateDevice"u8) - fixed (byte* pfn5 = "glBegin"u8) - fixed (byte* pfn6 = "vkCreateDevice"u8) - { - if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn0) == null) - continue; - if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn1) == null) - continue; - if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn2) == null) - continue; - if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn3) == null) - continue; - if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn4) == null) - continue; - if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn5) == null) - continue; - if (GetProcAddress((HMODULE)dosh, (sbyte*)pfn6) == null) - continue; - } - - var fileInfo = FileVersionInfo.GetVersionInfo(processModule.FileName); - - if (fileInfo.FileDescription == null) - continue; - - if (!fileInfo.FileDescription.Contains("GShade") && !fileInfo.FileDescription.Contains("ReShade")) - continue; - - return true; - } - - return false; - } - - private static bool IsReShadedComObject<T>(T* obj) - where T : unmanaged, IUnknown.Interface - { - if (!IsValidReadableMemoryAddress((nint)obj, sizeof(nint))) - return false; - - try - { - var vtbl = (nint**)Marshal.ReadIntPtr((nint)obj); - if (!IsValidReadableMemoryAddress((nint)vtbl, sizeof(nint) * 3)) - return false; - - for (var i = 0; i < 3; i++) - { - var pfn = Marshal.ReadIntPtr((nint)(vtbl + i)); - if (!IsValidExecutableMemoryAddress(pfn, 1)) - return false; - if (!BelongsInReShadeDll(pfn)) - return false; - } - - return true; - } - catch - { - return false; - } - } - - private static bool IsValidReadableMemoryAddress(nint p, nint size) - { - while (size > 0) - { - if (!IsValidUserspaceMemoryAddress(p)) - return false; - - MEMORY_BASIC_INFORMATION mbi; - if (VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) - return false; - - if (mbi is not - { - State: MEM.MEM_COMMIT, - Protect: PAGE.PAGE_READONLY or PAGE.PAGE_READWRITE or PAGE.PAGE_EXECUTE_READ - or PAGE.PAGE_EXECUTE_READWRITE, - }) - return false; - - var regionSize = (nint)((mbi.RegionSize + 0xFFFUL) & ~0x1000UL); - var checkedSize = ((nint)mbi.BaseAddress + regionSize) - p; - size -= checkedSize; - p += checkedSize; - } - - return true; - } - - private static bool IsValidExecutableMemoryAddress(nint p, nint size) - { - while (size > 0) - { - if (!IsValidUserspaceMemoryAddress(p)) - return false; - - MEMORY_BASIC_INFORMATION mbi; - if (VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) - return false; - - if (mbi is not - { - State: MEM.MEM_COMMIT, - Protect: PAGE.PAGE_EXECUTE or PAGE.PAGE_EXECUTE_READ or PAGE.PAGE_EXECUTE_READWRITE - or PAGE.PAGE_EXECUTE_WRITECOPY, - }) - return false; - - var regionSize = (nint)((mbi.RegionSize + 0xFFFUL) & ~0x1000UL); - var checkedSize = ((nint)mbi.BaseAddress + regionSize) - p; - size -= checkedSize; - p += checkedSize; - } - - return true; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static bool IsValidUserspaceMemoryAddress(nint p) - { - // https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/virtual-address-spaces - // A 64-bit process on 64-bit Windows has a virtual address space within the 128-terabyte range - // 0x000'00000000 through 0x7FFF'FFFFFFFF. - return p >= 0x10000 && p <= unchecked((nint)0x7FFF_FFFFFFFFUL); - } -} diff --git a/Dalamud/Interface/ImGuiBackend/IImGuiBackend.cs b/Dalamud/Interface/ImGuiBackend/IImGuiBackend.cs deleted file mode 100644 index 4a41191b5..000000000 --- a/Dalamud/Interface/ImGuiBackend/IImGuiBackend.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Dalamud.Interface.ImGuiBackend.Delegates; -using Dalamud.Interface.ImGuiBackend.InputHandler; -using Dalamud.Interface.ImGuiBackend.Renderers; - -namespace Dalamud.Interface.ImGuiBackend; - -/// <summary>Backend for ImGui.</summary> -internal interface IImGuiBackend : IDisposable -{ - /// <summary>User methods invoked every ImGui frame to construct custom UIs.</summary> - event ImGuiBuildUiDelegate? BuildUi; - - /// <summary>User methods invoked every ImGui frame on handling inputs.</summary> - event ImGuiNewInputFrameDelegate? NewInputFrame; - - /// <summary>User methods invoked every ImGui frame on handling renders.</summary> - event ImGuiNewRenderFrameDelegate? NewRenderFrame; - - /// <summary>Gets or sets a value indicating whether the cursor should be overridden with the ImGui cursor. - /// </summary> - bool UpdateCursor { get; set; } - - /// <summary>Gets or sets the path of ImGui configuration .ini file.</summary> - string? IniPath { get; set; } - - /// <summary>Gets the device handle.</summary> - nint DeviceHandle { get; } - - /// <summary>Gets the input handler.</summary> - IImGuiInputHandler InputHandler { get; } - - /// <summary>Gets the renderer.</summary> - IImGuiRenderer Renderer { get; } - - /// <summary>Performs a render cycle.</summary> - void Render(); - - /// <summary>Handles stuff before resizing happens.</summary> - void OnPreResize(); - - /// <summary>Handles stuff after resizing happens.</summary> - /// <param name="newWidth">The new width.</param> - /// <param name="newHeight">The new height.</param> - void OnPostResize(int newWidth, int newHeight); - - /// <summary>Invalidates fonts immediately.</summary> - /// <remarks>Call this while handling <see cref="NewRenderFrame"/>.</remarks> - void InvalidateFonts(); - - /// <summary>Determines if <paramref name="cursorHandle"/> is owned by this.</summary> - /// <param name="cursorHandle">The cursor.</param> - /// <returns>Whether it is the case.</returns> - bool IsImGuiCursor(nint cursorHandle); - - /// <summary>Determines if this instance of <see cref="IImGuiBackend"/> is rendering to - /// <paramref name="targetHandle"/>. </summary> - /// <param name="targetHandle">The present target handle.</param> - /// <returns>Whether it is the case.</returns> - bool IsAttachedToPresentationTarget(nint targetHandle); - - /// <summary>Determines if the main viewport is full screen. </summary> - /// <returns>Whether it is the case.</returns> - bool IsMainViewportFullScreen(); -} diff --git a/Dalamud/Interface/ImGuiBackend/IWin32Backend.cs b/Dalamud/Interface/ImGuiBackend/IWin32Backend.cs deleted file mode 100644 index 0b158dfbc..000000000 --- a/Dalamud/Interface/ImGuiBackend/IWin32Backend.cs +++ /dev/null @@ -1,15 +0,0 @@ -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.ImGuiBackend; - -/// <summary><see cref="IImGuiBackend"/> with Win32 support.</summary> -internal interface IWin32Backend : IImGuiBackend -{ - /// <summary>Processes window messages.</summary> - /// <param name="hWnd">Handle of the window.</param> - /// <param name="msg">Type of window message.</param> - /// <param name="wParam">wParam.</param> - /// <param name="lParam">lParam.</param> - /// <returns>Return value.</returns> - public nint? ProcessWndProcW(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam); -} diff --git a/Dalamud/Interface/ImGuiBackend/InputHandler/IImGuiInputHandler.cs b/Dalamud/Interface/ImGuiBackend/InputHandler/IImGuiInputHandler.cs deleted file mode 100644 index e6da2281e..000000000 --- a/Dalamud/Interface/ImGuiBackend/InputHandler/IImGuiInputHandler.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Interface.ImGuiBackend.InputHandler; - -/// <summary>A simple shared public interface that all ImGui input implementations follows.</summary> -internal interface IImGuiInputHandler : IDisposable -{ - /// <summary>Gets or sets a value indicating whether the cursor should be overridden with the ImGui cursor. - /// </summary> - public bool UpdateCursor { get; set; } - - /// <summary>Gets or sets the path of ImGui configuration .ini file.</summary> - string? IniPath { get; set; } - - /// <summary>Determines if <paramref name="cursorHandle"/> is owned by this.</summary> - /// <param name="cursorHandle">The cursor.</param> - /// <returns>Whether it is the case.</returns> - public bool IsImGuiCursor(nint cursorHandle); - - /// <summary>Marks the beginning of a new frame.</summary> - /// <param name="width">The width of the new frame.</param> - /// <param name="height">The height of the new frame.</param> - void NewFrame(int width, int height); -} diff --git a/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.StaticLookupFunctions.cs b/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.StaticLookupFunctions.cs deleted file mode 100644 index a7b70ce35..000000000 --- a/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.StaticLookupFunctions.cs +++ /dev/null @@ -1,310 +0,0 @@ -using System.Runtime.CompilerServices; - -using Dalamud.Bindings.ImGui; - -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.ImGuiBackend.InputHandler; - -/// <summary> -/// An implementation of <see cref="IImGuiInputHandler"/>, using Win32 APIs. -/// </summary> -internal sealed partial class Win32InputHandler -{ - /// <summary> - /// Maps a <see cref="VK"/> to <see cref="ImGuiKey"/>. - /// </summary> - /// <param name="key">The virtual key.</param> - /// <returns>The corresponding <see cref="ImGuiKey"/>.</returns> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiKey VirtualKeyToImGuiKey(int key) => key switch - { - VK.VK_TAB => ImGuiKey.Tab, - VK.VK_LEFT => ImGuiKey.LeftArrow, - VK.VK_RIGHT => ImGuiKey.RightArrow, - VK.VK_UP => ImGuiKey.UpArrow, - VK.VK_DOWN => ImGuiKey.DownArrow, - VK.VK_PRIOR => ImGuiKey.PageUp, - VK.VK_NEXT => ImGuiKey.PageDown, - VK.VK_HOME => ImGuiKey.Home, - VK.VK_END => ImGuiKey.End, - VK.VK_INSERT => ImGuiKey.Insert, - VK.VK_DELETE => ImGuiKey.Delete, - VK.VK_BACK => ImGuiKey.Backspace, - VK.VK_SPACE => ImGuiKey.Space, - VK.VK_RETURN => ImGuiKey.Enter, - VK.VK_ESCAPE => ImGuiKey.Escape, - VK.VK_OEM_7 => ImGuiKey.Apostrophe, - VK.VK_OEM_COMMA => ImGuiKey.Comma, - VK.VK_OEM_MINUS => ImGuiKey.Minus, - VK.VK_OEM_PERIOD => ImGuiKey.Period, - VK.VK_OEM_2 => ImGuiKey.Slash, - VK.VK_OEM_1 => ImGuiKey.Semicolon, - VK.VK_OEM_PLUS => ImGuiKey.Equal, - VK.VK_OEM_4 => ImGuiKey.LeftBracket, - VK.VK_OEM_5 => ImGuiKey.Backslash, - VK.VK_OEM_6 => ImGuiKey.RightBracket, - VK.VK_OEM_3 => ImGuiKey.GraveAccent, - VK.VK_CAPITAL => ImGuiKey.CapsLock, - VK.VK_SCROLL => ImGuiKey.ScrollLock, - VK.VK_NUMLOCK => ImGuiKey.NumLock, - VK.VK_SNAPSHOT => ImGuiKey.PrintScreen, - VK.VK_PAUSE => ImGuiKey.Pause, - VK.VK_NUMPAD0 => ImGuiKey.Keypad0, - VK.VK_NUMPAD1 => ImGuiKey.Keypad1, - VK.VK_NUMPAD2 => ImGuiKey.Keypad2, - VK.VK_NUMPAD3 => ImGuiKey.Keypad3, - VK.VK_NUMPAD4 => ImGuiKey.Keypad4, - VK.VK_NUMPAD5 => ImGuiKey.Keypad5, - VK.VK_NUMPAD6 => ImGuiKey.Keypad6, - VK.VK_NUMPAD7 => ImGuiKey.Keypad7, - VK.VK_NUMPAD8 => ImGuiKey.Keypad8, - VK.VK_NUMPAD9 => ImGuiKey.Keypad9, - VK.VK_DECIMAL => ImGuiKey.KeypadDecimal, - VK.VK_DIVIDE => ImGuiKey.KeypadDivide, - VK.VK_MULTIPLY => ImGuiKey.KeypadMultiply, - VK.VK_SUBTRACT => ImGuiKey.KeypadSubtract, - VK.VK_ADD => ImGuiKey.KeypadAdd, - VK.VK_RETURN + 256 => ImGuiKey.KeypadEnter, - VK.VK_LSHIFT => ImGuiKey.LeftShift, - VK.VK_LCONTROL => ImGuiKey.LeftCtrl, - VK.VK_LMENU => ImGuiKey.LeftAlt, - VK.VK_LWIN => ImGuiKey.LeftSuper, - VK.VK_RSHIFT => ImGuiKey.RightShift, - VK.VK_RCONTROL => ImGuiKey.RightCtrl, - VK.VK_RMENU => ImGuiKey.RightAlt, - VK.VK_RWIN => ImGuiKey.RightSuper, - VK.VK_APPS => ImGuiKey.Menu, - '0' => ImGuiKey.Key0, - '1' => ImGuiKey.Key1, - '2' => ImGuiKey.Key2, - '3' => ImGuiKey.Key3, - '4' => ImGuiKey.Key4, - '5' => ImGuiKey.Key5, - '6' => ImGuiKey.Key6, - '7' => ImGuiKey.Key7, - '8' => ImGuiKey.Key8, - '9' => ImGuiKey.Key9, - 'A' => ImGuiKey.A, - 'B' => ImGuiKey.B, - 'C' => ImGuiKey.C, - 'D' => ImGuiKey.D, - 'E' => ImGuiKey.E, - 'F' => ImGuiKey.F, - 'G' => ImGuiKey.G, - 'H' => ImGuiKey.H, - 'I' => ImGuiKey.I, - 'J' => ImGuiKey.J, - 'K' => ImGuiKey.K, - 'L' => ImGuiKey.L, - 'M' => ImGuiKey.M, - 'N' => ImGuiKey.N, - 'O' => ImGuiKey.O, - 'P' => ImGuiKey.P, - 'Q' => ImGuiKey.Q, - 'R' => ImGuiKey.R, - 'S' => ImGuiKey.S, - 'T' => ImGuiKey.T, - 'U' => ImGuiKey.U, - 'V' => ImGuiKey.V, - 'W' => ImGuiKey.W, - 'X' => ImGuiKey.X, - 'Y' => ImGuiKey.Y, - 'Z' => ImGuiKey.Z, - VK.VK_F1 => ImGuiKey.F1, - VK.VK_F2 => ImGuiKey.F2, - VK.VK_F3 => ImGuiKey.F3, - VK.VK_F4 => ImGuiKey.F4, - VK.VK_F5 => ImGuiKey.F5, - VK.VK_F6 => ImGuiKey.F6, - VK.VK_F7 => ImGuiKey.F7, - VK.VK_F8 => ImGuiKey.F8, - VK.VK_F9 => ImGuiKey.F9, - VK.VK_F10 => ImGuiKey.F10, - VK.VK_F11 => ImGuiKey.F11, - VK.VK_F12 => ImGuiKey.F12, - _ => ImGuiKey.None, - }; - - /// <summary> - /// Maps a <see cref="ImGuiKey"/> to <see cref="VK"/>. - /// </summary> - /// <param name="key">The ImGui key.</param> - /// <returns>The corresponding <see cref="VK"/>.</returns> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImGuiKeyToVirtualKey(ImGuiKey key) => key switch - { - ImGuiKey.Tab => VK.VK_TAB, - ImGuiKey.LeftArrow => VK.VK_LEFT, - ImGuiKey.RightArrow => VK.VK_RIGHT, - ImGuiKey.UpArrow => VK.VK_UP, - ImGuiKey.DownArrow => VK.VK_DOWN, - ImGuiKey.PageUp => VK.VK_PRIOR, - ImGuiKey.PageDown => VK.VK_NEXT, - ImGuiKey.Home => VK.VK_HOME, - ImGuiKey.End => VK.VK_END, - ImGuiKey.Insert => VK.VK_INSERT, - ImGuiKey.Delete => VK.VK_DELETE, - ImGuiKey.Backspace => VK.VK_BACK, - ImGuiKey.Space => VK.VK_SPACE, - ImGuiKey.Enter => VK.VK_RETURN, - ImGuiKey.Escape => VK.VK_ESCAPE, - ImGuiKey.Apostrophe => VK.VK_OEM_7, - ImGuiKey.Comma => VK.VK_OEM_COMMA, - ImGuiKey.Minus => VK.VK_OEM_MINUS, - ImGuiKey.Period => VK.VK_OEM_PERIOD, - ImGuiKey.Slash => VK.VK_OEM_2, - ImGuiKey.Semicolon => VK.VK_OEM_1, - ImGuiKey.Equal => VK.VK_OEM_PLUS, - ImGuiKey.LeftBracket => VK.VK_OEM_4, - ImGuiKey.Backslash => VK.VK_OEM_5, - ImGuiKey.RightBracket => VK.VK_OEM_6, - ImGuiKey.GraveAccent => VK.VK_OEM_3, - ImGuiKey.CapsLock => VK.VK_CAPITAL, - ImGuiKey.ScrollLock => VK.VK_SCROLL, - ImGuiKey.NumLock => VK.VK_NUMLOCK, - ImGuiKey.PrintScreen => VK.VK_SNAPSHOT, - ImGuiKey.Pause => VK.VK_PAUSE, - ImGuiKey.Keypad0 => VK.VK_NUMPAD0, - ImGuiKey.Keypad1 => VK.VK_NUMPAD1, - ImGuiKey.Keypad2 => VK.VK_NUMPAD2, - ImGuiKey.Keypad3 => VK.VK_NUMPAD3, - ImGuiKey.Keypad4 => VK.VK_NUMPAD4, - ImGuiKey.Keypad5 => VK.VK_NUMPAD5, - ImGuiKey.Keypad6 => VK.VK_NUMPAD6, - ImGuiKey.Keypad7 => VK.VK_NUMPAD7, - ImGuiKey.Keypad8 => VK.VK_NUMPAD8, - ImGuiKey.Keypad9 => VK.VK_NUMPAD9, - ImGuiKey.KeypadDecimal => VK.VK_DECIMAL, - ImGuiKey.KeypadDivide => VK.VK_DIVIDE, - ImGuiKey.KeypadMultiply => VK.VK_MULTIPLY, - ImGuiKey.KeypadSubtract => VK.VK_SUBTRACT, - ImGuiKey.KeypadAdd => VK.VK_ADD, - ImGuiKey.KeypadEnter => VK.VK_RETURN + 256, - ImGuiKey.LeftShift => VK.VK_LSHIFT, - ImGuiKey.LeftCtrl => VK.VK_LCONTROL, - ImGuiKey.LeftAlt => VK.VK_LMENU, - ImGuiKey.LeftSuper => VK.VK_LWIN, - ImGuiKey.RightShift => VK.VK_RSHIFT, - ImGuiKey.RightCtrl => VK.VK_RCONTROL, - ImGuiKey.RightAlt => VK.VK_RMENU, - ImGuiKey.RightSuper => VK.VK_RWIN, - ImGuiKey.Menu => VK.VK_APPS, - ImGuiKey.Key0 => '0', - ImGuiKey.Key1 => '1', - ImGuiKey.Key2 => '2', - ImGuiKey.Key3 => '3', - ImGuiKey.Key4 => '4', - ImGuiKey.Key5 => '5', - ImGuiKey.Key6 => '6', - ImGuiKey.Key7 => '7', - ImGuiKey.Key8 => '8', - ImGuiKey.Key9 => '9', - ImGuiKey.A => 'A', - ImGuiKey.B => 'B', - ImGuiKey.C => 'C', - ImGuiKey.D => 'D', - ImGuiKey.E => 'E', - ImGuiKey.F => 'F', - ImGuiKey.G => 'G', - ImGuiKey.H => 'H', - ImGuiKey.I => 'I', - ImGuiKey.J => 'J', - ImGuiKey.K => 'K', - ImGuiKey.L => 'L', - ImGuiKey.M => 'M', - ImGuiKey.N => 'N', - ImGuiKey.O => 'O', - ImGuiKey.P => 'P', - ImGuiKey.Q => 'Q', - ImGuiKey.R => 'R', - ImGuiKey.S => 'S', - ImGuiKey.T => 'T', - ImGuiKey.U => 'U', - ImGuiKey.V => 'V', - ImGuiKey.W => 'W', - ImGuiKey.X => 'X', - ImGuiKey.Y => 'Y', - ImGuiKey.Z => 'Z', - ImGuiKey.F1 => VK.VK_F1, - ImGuiKey.F2 => VK.VK_F2, - ImGuiKey.F3 => VK.VK_F3, - ImGuiKey.F4 => VK.VK_F4, - ImGuiKey.F5 => VK.VK_F5, - ImGuiKey.F6 => VK.VK_F6, - ImGuiKey.F7 => VK.VK_F7, - ImGuiKey.F8 => VK.VK_F8, - ImGuiKey.F9 => VK.VK_F9, - ImGuiKey.F10 => VK.VK_F10, - ImGuiKey.F11 => VK.VK_F11, - ImGuiKey.F12 => VK.VK_F12, - _ => 0, - }; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static bool IsGamepadKey(ImGuiKey key) => (int)key is >= 617 and <= 640; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static bool IsModKey(ImGuiKey key) => - key is ImGuiKey.LeftShift - or ImGuiKey.RightShift - or ImGuiKey.ModShift - or ImGuiKey.LeftCtrl - or ImGuiKey.ModCtrl - or ImGuiKey.LeftAlt - or ImGuiKey.RightAlt - or ImGuiKey.ModAlt; - - private static void AddKeyEvent(ImGuiKey key, bool down, int nativeKeycode, int nativeScancode = -1) - { - var io = ImGui.GetIO(); - io.AddKeyEvent(key, down); - io.SetKeyEventNativeData(key, nativeKeycode, nativeScancode); - } - - private static void UpdateKeyModifiers() - { - var io = ImGui.GetIO(); - io.AddKeyEvent(ImGuiKey.ModCtrl, IsVkDown(VK.VK_CONTROL)); - io.AddKeyEvent(ImGuiKey.ModShift, IsVkDown(VK.VK_SHIFT)); - io.AddKeyEvent(ImGuiKey.ModAlt, IsVkDown(VK.VK_MENU)); - io.AddKeyEvent(ImGuiKey.ModSuper, IsVkDown(VK.VK_APPS)); - } - - private static void UpAllKeys() - { - var io = ImGui.GetIO(); - for (var i = (int)ImGuiKey.NamedKeyBegin; i < (int)ImGuiKey.NamedKeyEnd; i++) - io.AddKeyEvent((ImGuiKey)i, false); - } - - private static void UpAllMouseButton() - { - var io = ImGui.GetIO(); - for (var i = 0; i < io.MouseDown.Length; i++) - io.MouseDown[i] = false; - } - - private static bool IsVkDown(int key) => (TerraFX.Interop.Windows.Windows.GetKeyState(key) & 0x8000) != 0; - - private static int GetButton(uint msg, WPARAM wParam) => msg switch - { - WM.WM_LBUTTONUP or WM.WM_LBUTTONDOWN or WM.WM_LBUTTONDBLCLK => 0, - WM.WM_RBUTTONUP or WM.WM_RBUTTONDOWN or WM.WM_RBUTTONDBLCLK => 1, - WM.WM_MBUTTONUP or WM.WM_MBUTTONDOWN or WM.WM_MBUTTONDBLCLK => 2, - WM.WM_XBUTTONUP or WM.WM_XBUTTONDOWN or WM.WM_XBUTTONDBLCLK => - TerraFX.Interop.Windows.Windows.GET_XBUTTON_WPARAM(wParam) == TerraFX.Interop.Windows.Windows.XBUTTON1 ? 3 : 4, - _ => 0, - }; - - private static void ViewportFlagsToWin32Styles(ImGuiViewportFlags flags, out int style, out int exStyle) - { - style = (flags & ImGuiViewportFlags.NoDecoration) != 0 ? unchecked((int)WS.WS_POPUP) : WS.WS_OVERLAPPEDWINDOW; - exStyle = (flags & ImGuiViewportFlags.NoTaskBarIcon) != 0 ? WS.WS_EX_TOOLWINDOW : WS.WS_EX_APPWINDOW; - exStyle |= WS.WS_EX_NOREDIRECTIONBITMAP; - if ((flags & ImGuiViewportFlags.TopMost) != 0) - exStyle |= WS.WS_EX_TOPMOST; - if ((flags & ImGuiViewportFlags.NoInputs) != 0) - exStyle |= WS.WS_EX_TRANSPARENT | WS.WS_EX_LAYERED; - } -} diff --git a/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.cs b/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.cs deleted file mode 100644 index ea60be98d..000000000 --- a/Dalamud/Interface/ImGuiBackend/InputHandler/Win32InputHandler.cs +++ /dev/null @@ -1,1126 +0,0 @@ -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Text; - -using Dalamud.Bindings.ImGui; -using Dalamud.Console; -using Dalamud.Memory; -using Dalamud.Utility; - -using Serilog; - -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; - -using ERROR = TerraFX.Interop.Windows.ERROR; - -namespace Dalamud.Interface.ImGuiBackend.InputHandler; - -/// <summary> -/// An implementation of <see cref="IImGuiInputHandler"/>, using Win32 APIs.<br /> -/// Largely a port of https://github.com/ocornut/imgui/blob/master/examples/imgui_impl_win32.cpp, -/// though some changes and wndproc hooking. -/// </summary> -[SuppressMessage( - "StyleCop.CSharp.LayoutRules", - "SA1519:Braces should not be omitted from multi-line child statement", - Justification = "Multiple fixed/using scopes")] -internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler -{ - private readonly HWND hWnd; - private readonly HCURSOR[] cursors; - - private readonly WndProcDelegate wndProcDelegate; - private readonly nint platformNamePtr; - - private readonly IConsoleVariable<bool> cvLogMouseEvents; - - private ViewportHandler viewportHandler; - - private int mouseButtonsDown; - private bool mouseTracked; - private long lastTime; - - private nint iniPathPtr; - - private bool disposedValue; - - /// <summary> - /// Initializes a new instance of the <see cref="Win32InputHandler"/> class. - /// </summary> - /// <param name="hWnd">The window handle.</param> - public Win32InputHandler(HWND hWnd) - { - var io = ImGui.GetIO(); - if (ImGui.GetIO().Handle->BackendPlatformName is not null) - throw new InvalidOperationException("ImGui backend platform seems to be have been already attached."); - - this.hWnd = hWnd; - - // hook wndproc - // have to hold onto the delegate to keep it in memory for unmanaged code - this.wndProcDelegate = this.WndProcDetour; - - io.BackendFlags |= ImGuiBackendFlags.HasMouseCursors | - ImGuiBackendFlags.HasSetMousePos | - ImGuiBackendFlags.RendererHasViewports | - ImGuiBackendFlags.PlatformHasViewports | - ImGuiBackendFlags.HasMouseHoveredViewport; - - this.platformNamePtr = Marshal.StringToHGlobalAnsi("imgui_impl_win32_c#"); - io.Handle->BackendPlatformName = (byte*)this.platformNamePtr; - - var mainViewport = ImGui.GetMainViewport(); - mainViewport.PlatformHandle = mainViewport.PlatformHandleRaw = hWnd; - if (io.ConfigFlags.HasFlag(ImGuiConfigFlags.ViewportsEnable)) - this.viewportHandler = new(this); - - this.cursors = new HCURSOR[9]; - this.cursors[(int)ImGuiMouseCursor.Arrow] = LoadCursorW(default, IDC.IDC_ARROW); - this.cursors[(int)ImGuiMouseCursor.TextInput] = LoadCursorW(default, IDC.IDC_IBEAM); - this.cursors[(int)ImGuiMouseCursor.ResizeAll] = LoadCursorW(default, IDC.IDC_SIZEALL); - this.cursors[(int)ImGuiMouseCursor.ResizeEw] = LoadCursorW(default, IDC.IDC_SIZEWE); - this.cursors[(int)ImGuiMouseCursor.ResizeNs] = LoadCursorW(default, IDC.IDC_SIZENS); - this.cursors[(int)ImGuiMouseCursor.ResizeNesw] = LoadCursorW(default, IDC.IDC_SIZENESW); - this.cursors[(int)ImGuiMouseCursor.ResizeNwse] = LoadCursorW(default, IDC.IDC_SIZENWSE); - this.cursors[(int)ImGuiMouseCursor.Hand] = LoadCursorW(default, IDC.IDC_HAND); - this.cursors[(int)ImGuiMouseCursor.NotAllowed] = LoadCursorW(default, IDC.IDC_NO); - - this.cvLogMouseEvents = Service<ConsoleManager>.Get().AddVariable( - "imgui.log_mouse_events", - "Log mouse events to console for debugging", - false); - } - - /// <summary> - /// Finalizes an instance of the <see cref="Win32InputHandler"/> class. - /// </summary> - ~Win32InputHandler() => this.ReleaseUnmanagedResources(); - - private delegate LRESULT WndProcDelegate(HWND hWnd, uint uMsg, WPARAM wparam, LPARAM lparam); - - /// <inheritdoc/> - public bool UpdateCursor { get; set; } = true; - - /// <inheritdoc/> - public string? IniPath - { - get - { - var ptr = (byte*)this.iniPathPtr; - if (ptr is null) - return string.Empty; - var len = 0; - while (ptr![len] != 0) - len++; - return Encoding.UTF8.GetString(ptr, len); - } - - set - { - if (this.iniPathPtr != 0) - Marshal.FreeHGlobal(this.iniPathPtr); - if (!string.IsNullOrEmpty(value)) - { - var e = Encoding.UTF8.GetByteCount(value); - var newAlloc = Marshal.AllocHGlobal(e + 2); - try - { - var span = new Span<byte>((void*)newAlloc, e + 2); - span[^1] = span[^2] = 0; - Encoding.UTF8.GetBytes(value, span); - } - catch - { - Marshal.FreeHGlobal(newAlloc); - throw; - } - - this.iniPathPtr = newAlloc; - } - - ImGui.GetIO().Handle->IniFilename = (byte*)this.iniPathPtr; - } - } - - /// <inheritdoc/> - public void Dispose() - { - this.ReleaseUnmanagedResources(); - GC.SuppressFinalize(this); - } - - /// <inheritdoc/> - public bool IsImGuiCursor(nint hCursor) => this.cursors.Contains((HCURSOR)hCursor); - - /// <inheritdoc/> - public void NewFrame(int targetWidth, int targetHeight) - { - var io = ImGui.GetIO(); - var focusedWindow = GetForegroundWindow(); - - io.DisplaySize.X = targetWidth; - io.DisplaySize.Y = targetHeight; - io.DisplayFramebufferScale.X = 1f; - io.DisplayFramebufferScale.Y = 1f; - - var frequency = Stopwatch.Frequency; - var currentTime = Stopwatch.GetTimestamp(); - io.DeltaTime = this.lastTime > 0 ? (float)((double)(currentTime - this.lastTime) / frequency) : 1f / 60; - this.lastTime = currentTime; - - this.viewportHandler.UpdateMonitors(); - - this.UpdateMouseData(focusedWindow); - - this.ProcessKeyEventsWorkarounds(focusedWindow); - - // TODO: need to figure out some way to unify all this - // The bottom case works(?) if the caller hooks SetCursor, but otherwise causes fps issues - // The top case more or less works if we use ImGui's software cursor (and ideally hide the - // game's hardware cursor) - // It would be nice if hooking WM_SETCURSOR worked as it 'should' so that external hooking - // wasn't necessary - - // this is what imgui's example does, but it doesn't seem to work for us - // this could be a timing issue.. or their logic could just be wrong for many applications - // var cursor = io.MouseDrawCursor ? ImGuiMouseCursor.None : ImGui.GetMouseCursor(); - // if (_oldCursor != cursor) - // { - // _oldCursor = cursor; - // UpdateMouseCursor(); - // } - - // hacky attempt to make cursors work how I think they 'should' - if ((io.WantCaptureMouse || io.MouseDrawCursor) && this.UpdateCursor) - { - this.UpdateMouseCursor(); - } - - // Similar issue seen with overlapping mouse clicks - // eg, right click and hold on imgui window, drag off, left click and hold - // release right click, release left click -> right click was 'stuck' and imgui - // would become unresponsive - if (!io.WantCaptureMouse) - { - for (var i = 0; i < io.MouseDown.Length; i++) - { - io.MouseDown[i] = false; - } - } - } - - /// <summary> - /// Processes window messages. Supports both WndProcA and WndProcW. - /// </summary> - /// <param name="hWndCurrent">Handle of the window.</param> - /// <param name="msg">Type of window message.</param> - /// <param name="wParam">wParam.</param> - /// <param name="lParam">lParam.</param> - /// <returns>Return value, if not doing further processing.</returns> - public LRESULT? ProcessWndProcW(HWND hWndCurrent, uint msg, WPARAM wParam, LPARAM lParam) - { - if (ImGui.GetCurrentContext().IsNull) - return null; - - var io = ImGui.GetIO(); - - switch (msg) - { - case WM.WM_MOUSEMOVE: - { - if (!this.mouseTracked) - { - var tme = new TRACKMOUSEEVENT - { - cbSize = (uint)sizeof(TRACKMOUSEEVENT), - dwFlags = TME.TME_LEAVE, - hwndTrack = hWndCurrent, - }; - this.mouseTracked = TrackMouseEvent(&tme); - } - - var mousePos = new POINT(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)); - if ((io.ConfigFlags & ImGuiConfigFlags.ViewportsEnable) != 0) - ClientToScreen(hWndCurrent, &mousePos); - io.AddMousePosEvent(mousePos.x, mousePos.y); - break; - } - - case WM.WM_MOUSELEAVE: - { - this.mouseTracked = false; - var mouseScreenPos = new POINT(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)); - ClientToScreen(hWndCurrent, &mouseScreenPos); - if (this.ViewportFromPoint(mouseScreenPos).IsNull) - { - var fltMax = ImGuiNative.GETFLTMAX(); - io.AddMousePosEvent(-fltMax, -fltMax); - } - - break; - } - - case WM.WM_LBUTTONDOWN: - case WM.WM_LBUTTONDBLCLK: - case WM.WM_RBUTTONDOWN: - case WM.WM_RBUTTONDBLCLK: - case WM.WM_MBUTTONDOWN: - case WM.WM_MBUTTONDBLCLK: - case WM.WM_XBUTTONDOWN: - case WM.WM_XBUTTONDBLCLK: - { - if (this.cvLogMouseEvents.Value) - { - Log.Verbose( - "Handle MouseDown {Btn} WantCaptureMouse: {Want} mouseButtonsDown: {Down}", - GetButton(msg, wParam), - io.WantCaptureMouse, - this.mouseButtonsDown); - } - - var button = GetButton(msg, wParam); - if (io.WantCaptureMouse) - { - if (this.mouseButtonsDown == 0 && GetCapture() == nint.Zero) - { - SetCapture(hWndCurrent); - } - - this.mouseButtonsDown |= 1 << button; - io.AddMouseButtonEvent(button, true); - return default(LRESULT); - } - - if (!ImGui.IsWindowHovered(ImGuiHoveredFlags.AnyWindow)) - ImGui.ClearWindowFocus(); - - break; - } - - case WM.WM_LBUTTONUP: - case WM.WM_RBUTTONUP: - case WM.WM_MBUTTONUP: - case WM.WM_XBUTTONUP: - { - if (this.cvLogMouseEvents.Value) - { - Log.Verbose( - "Handle MouseUp {Btn} WantCaptureMouse: {Want} mouseButtonsDown: {Down}", - GetButton(msg, wParam), - io.WantCaptureMouse, - this.mouseButtonsDown); - } - - var button = GetButton(msg, wParam); - - // Need to check if we captured the button event away from the game here, otherwise the game might get - // a down event but no up event, causing the cursor to get stuck. - // Can happen if WantCaptureMouse becomes true in between down and up - if (io.WantCaptureMouse && (this.mouseButtonsDown & (1 << button)) != 0) - { - this.mouseButtonsDown &= ~(1 << button); - if (this.mouseButtonsDown == 0 && GetCapture() == hWndCurrent) - { - ReleaseCapture(); - } - - io.AddMouseButtonEvent(button, false); - return default(LRESULT); - } - - break; - } - - case WM.WM_MOUSEWHEEL: - if (io.WantCaptureMouse) - { - io.AddMouseWheelEvent(0, GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA); - return default(LRESULT); - } - - break; - case WM.WM_MOUSEHWHEEL: - if (io.WantCaptureMouse) - { - io.AddMouseWheelEvent(GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA, 0); - return default(LRESULT); - } - - break; - case WM.WM_KEYDOWN: - case WM.WM_SYSKEYDOWN: - case WM.WM_KEYUP: - case WM.WM_SYSKEYUP: - { - var isKeyDown = msg is WM.WM_KEYDOWN or WM.WM_SYSKEYDOWN; - if ((int)wParam >= 256) - break; - - // Submit modifiers - UpdateKeyModifiers(); - - // Obtain virtual key code - // (keypad enter doesn't have its own... VK_RETURN with KF_EXTENDED flag means keypad enter, see IM_VK_KEYPAD_ENTER definition for details, it is mapped to ImGuiKey.KeyPadEnter.) - var vk = (int)wParam; - if (vk == VK.VK_RETURN && ((int)lParam & (256 << 16)) > 0) - vk = VK.VK_RETURN + 256; - - // Submit key event - var key = VirtualKeyToImGuiKey(vk); - var scancode = ((int)lParam & 0xff0000) >> 16; - if (key != ImGuiKey.None && io.WantTextInput) - { - AddKeyEvent(key, isKeyDown, vk, scancode); - return nint.Zero; - } - - switch (vk) - { - // Submit individual left/right modifier events - case VK.VK_SHIFT: - // Important: Shift keys tend to get stuck when pressed together, missing key-up events are corrected in OnProcessKeyEventsWorkarounds() - if (IsVkDown(VK.VK_LSHIFT) == isKeyDown) - AddKeyEvent(ImGuiKey.LeftShift, isKeyDown, VK.VK_LSHIFT, scancode); - - if (IsVkDown(VK.VK_RSHIFT) == isKeyDown) - AddKeyEvent(ImGuiKey.RightShift, isKeyDown, VK.VK_RSHIFT, scancode); - - break; - - case VK.VK_CONTROL: - if (IsVkDown(VK.VK_LCONTROL) == isKeyDown) - AddKeyEvent(ImGuiKey.LeftCtrl, isKeyDown, VK.VK_LCONTROL, scancode); - - if (IsVkDown(VK.VK_RCONTROL) == isKeyDown) - AddKeyEvent(ImGuiKey.RightCtrl, isKeyDown, VK.VK_RCONTROL, scancode); - - break; - - case VK.VK_MENU: - if (IsVkDown(VK.VK_LMENU) == isKeyDown) - AddKeyEvent(ImGuiKey.LeftAlt, isKeyDown, VK.VK_LMENU, scancode); - - if (IsVkDown(VK.VK_RMENU) == isKeyDown) - AddKeyEvent(ImGuiKey.RightAlt, isKeyDown, VK.VK_RMENU, scancode); - - break; - } - - break; - } - - case WM.WM_CHAR: - if (io.WantTextInput) - { - io.AddInputCharacter(new Rune((uint)wParam)); - return nint.Zero; - } - - break; - - // this never seemed to work reasonably, but I'll leave it for now - case WM.WM_SETCURSOR: - if (io.WantCaptureMouse) - { - if (LOWORD(lParam) == HTCLIENT && this.UpdateMouseCursor()) - { - // this message returns 1 to block further processing - // because consistency is no fun - return 1; - } - } - - break; - - case WM.WM_DISPLAYCHANGE: - this.viewportHandler.UpdateMonitors(); - break; - - case WM.WM_SETFOCUS when hWndCurrent == this.hWnd: - io.AddFocusEvent(true); - break; - - case WM.WM_KILLFOCUS when hWndCurrent == this.hWnd: - io.AddFocusEvent(false); - // if (!ImGui.IsAnyMouseDown() && GetCapture() == hWndCurrent) - // ReleaseCapture(); - // - // ImGui.GetIO().WantCaptureMouse = false; - // ImGui.ClearWindowFocus(); - break; - } - - return null; - } - - private void UpdateMouseData(HWND focusedWindow) - { - var io = ImGui.GetIO(); - - var mouseScreenPos = default(POINT); - var hasMouseScreenPos = GetCursorPos(&mouseScreenPos) != 0; - - var isAppFocused = - focusedWindow != default - && (focusedWindow == this.hWnd - || IsChild(focusedWindow, this.hWnd) - || !ImGui.FindViewportByPlatformHandle(focusedWindow).IsNull); - - if (isAppFocused) - { - // (Optional) Set OS mouse position from Dear ImGui if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) - // When multi-viewports are enabled, all Dear ImGui positions are same as OS positions. - if (io.WantSetMousePos) - { - var pos = new POINT((int)io.MousePos.X, (int)io.MousePos.Y); - if ((io.ConfigFlags & ImGuiConfigFlags.ViewportsEnable) != 0) - ClientToScreen(this.hWnd, &pos); - SetCursorPos(pos.x, pos.y); - } - } - - // (Optional) Fallback to provide mouse position when focused (WM_MOUSEMOVE already provides this when hovered or captured) - if (!io.WantSetMousePos && !this.mouseTracked && hasMouseScreenPos) - { - // Single viewport mode: mouse position in client window coordinates (io.MousePos is (0,0) when the mouse is on the upper-left corner of the app window) - // (This is the position you can get with ::GetCursorPos() + ::ScreenToClient() or WM_MOUSEMOVE.) - // Multi-viewport mode: mouse position in OS absolute coordinates (io.MousePos is (0,0) when the mouse is on the upper-left of the primary monitor) - // (This is the position you can get with ::GetCursorPos() or WM_MOUSEMOVE + ::ClientToScreen(). In theory adding viewport->Pos to a client position would also be the same.) - var mousePos = mouseScreenPos; - if ((io.ConfigFlags & ImGuiConfigFlags.ViewportsEnable) == 0) - { - // Use game window, otherwise, positions are calculated based on the focused window which might not be the game. - // Leads to offsets. - ClientToScreen(this.hWnd, &mousePos); - } - - io.AddMousePosEvent(mousePos.x, mousePos.y); - } - - // (Optional) When using multiple viewports: call io.AddMouseViewportEvent() with the viewport the OS mouse cursor is hovering. - // If ImGuiBackendFlags_HasMouseHoveredViewport is not set by the backend, Dear imGui will ignore this field and infer the information using its flawed heuristic. - // - [X] Win32 backend correctly ignore viewports with the _NoInputs flag (here using ::WindowFromPoint with WM_NCHITTEST + HTTRANSPARENT in WndProc does that) - // Some backend are not able to handle that correctly. If a backend report an hovered viewport that has the _NoInputs flag (e.g. when dragging a window - // for docking, the viewport has the _NoInputs flag in order to allow us to find the viewport under), then Dear ImGui is forced to ignore the value reported - // by the backend, and use its flawed heuristic to guess the viewport behind. - // - [X] Win32 backend correctly reports this regardless of another viewport behind focused and dragged from (we need this to find a useful drag and drop target). - if (hasMouseScreenPos) - { - var viewport = this.ViewportFromPoint(mouseScreenPos); - io.AddMouseViewportEvent(!viewport.IsNull ? viewport.ID : 0u); - } - else - { - io.AddMouseViewportEvent(0); - } - } - - private ImGuiViewportPtr ViewportFromPoint(POINT mouseScreenPos) - { - var hoveredHwnd = WindowFromPoint(mouseScreenPos); - return hoveredHwnd != default ? ImGui.FindViewportByPlatformHandle(hoveredHwnd) : default; - } - - private bool UpdateMouseCursor() - { - var io = ImGui.GetIO(); - if (io.ConfigFlags.HasFlag(ImGuiConfigFlags.NoMouseCursorChange)) - return false; - - var cur = ImGui.GetMouseCursor(); - if (cur == ImGuiMouseCursor.None || io.MouseDrawCursor) - SetCursor(default); - else - SetCursor(this.cursors[(int)cur]); - - return true; - } - - private void ProcessKeyEventsWorkarounds(HWND focusedWindow) - { - // Left & right Shift keys: when both are pressed together, Windows tend to not generate the WM_KEYUP event for the first released one. - if (ImGui.IsKeyDown(ImGuiKey.LeftShift) && !IsVkDown(VK.VK_LSHIFT)) - AddKeyEvent(ImGuiKey.LeftShift, false, VK.VK_LSHIFT); - if (ImGui.IsKeyDown(ImGuiKey.RightShift) && !IsVkDown(VK.VK_RSHIFT)) - AddKeyEvent(ImGuiKey.RightShift, false, VK.VK_RSHIFT); - - // Sometimes WM_KEYUP for Win key is not passed down to the app (e.g. for Win+V on some setups, according to GLFW). - if (ImGui.IsKeyDown(ImGuiKey.LeftSuper) && !IsVkDown(VK.VK_LWIN)) - AddKeyEvent(ImGuiKey.LeftSuper, false, VK.VK_LWIN); - if (ImGui.IsKeyDown(ImGuiKey.RightSuper) && !IsVkDown(VK.VK_RWIN)) - AddKeyEvent(ImGuiKey.RightSuper, false, VK.VK_RWIN); - - // From ImGui's FAQ: - // Note: Text input widget releases focus on "Return KeyDown", so the subsequent "Return KeyUp" event - // that your application receive will typically have io.WantCaptureKeyboard == false. Depending on your - // application logic it may or not be inconvenient. - // - // With how the local wndproc works, this causes the key up event to be missed when exiting ImGui text entry - // (eg, from hitting enter or escape. There may be other ways as well) - // This then causes the key to appear 'stuck' down, which breaks subsequent attempts to use the input field. - // This is something of a brute force fix that basically makes key up events irrelevant - // Holding a key will send repeated key down events and (re)set these where appropriate, so this should be ok. - var io = ImGui.GetIO(); - if (!io.WantTextInput) - { - // See: https://github.com/goatcorp/ImGuiScene/pull/13 - // > GetForegroundWindow from winuser.h is a surprisingly expensive function. - var isForeground = focusedWindow == this.hWnd; - for (var i = (int)ImGuiKey.NamedKeyBegin; i < (int)ImGuiKey.NamedKeyEnd; i++) - { - // Skip raising modifier keys if the game is focused. - // This allows us to raise the keys when one is held and the window becomes unfocused, - // but if we do not skip them, they will only be held down every 4th frame or so. - if (isForeground && (IsGamepadKey((ImGuiKey)i) || IsModKey((ImGuiKey)i))) - continue; - io.AddKeyEvent((ImGuiKey)i, false); - } - } - } - - /// <summary> - /// This WndProc is called for ImGuiScene windows. WndProc for main window will be called back from somewhere else. - /// </summary> - private LRESULT WndProcDetour(HWND hWndCurrent, uint msg, WPARAM wParam, LPARAM lParam) - { - // Attempt to process the result of this window message - // We will return the result here if we consider the message handled - var processResult = this.ProcessWndProcW(hWndCurrent, msg, wParam, lParam); - - if (processResult != null) return processResult.Value; - - // The message wasn't handled, but it's a platform window - // So we have to handle some messages ourselves - // BUT we might have disposed the context, so check that - if (ImGui.GetCurrentContext().IsNull) - return DefWindowProcW(hWndCurrent, msg, wParam, lParam); - - var viewport = ImGui.FindViewportByPlatformHandle(hWndCurrent); - if (viewport.Handle == null) - return DefWindowProcW(hWndCurrent, msg, wParam, lParam); - - switch (msg) - { - case WM.WM_CLOSE: - viewport.PlatformRequestClose = true; - return 0; - case WM.WM_MOVE: - viewport.PlatformRequestMove = true; - return 0; - case WM.WM_SIZE: - viewport.PlatformRequestResize = true; - return 0; - case WM.WM_MOUSEACTIVATE: - // We never want our platform windows to be active, or else Windows will think we - // want messages dispatched with its hWnd. We don't. The only way to activate a platform - // window is via clicking, it does not appear on the taskbar or alt-tab, so we just - // brute force behavior here. - - // Make the game the foreground window. This prevents ImGui windows from becoming - // choppy when users have the "limit FPS" option enabled in-game - SetForegroundWindow(this.hWnd); - - // Also set the window capture to the main window, as focus will not cause - // future messages to be dispatched to the main window unless it is receiving capture - SetCapture(this.hWnd); - - // We still want to return MA_NOACTIVATE - // https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-mouseactivate - return MA.MA_NOACTIVATE; - case WM.WM_NCHITTEST: - // Let mouse pass-through the window. This will allow the backend to set io.MouseHoveredViewport properly (which is OPTIONAL). - // The ImGuiViewportFlags_NoInputs flag is set while dragging a viewport, as want to detect the window behind the one we are dragging. - // If you cannot easily access those viewport flags from your windowing/event code: you may manually synchronize its state e.g. in - // your main loop after calling UpdatePlatformWindows(). Iterate all viewports/platform windows and pass the flag to your windowing system. - if (viewport.Flags.HasFlag(ImGuiViewportFlags.NoInputs)) - { - return HTTRANSPARENT; - } - - break; - } - - return DefWindowProcW(hWndCurrent, msg, wParam, lParam); - } - - private void ReleaseUnmanagedResources() - { - if (this.disposedValue) - return; - - this.viewportHandler.Dispose(); - - this.cursors.AsSpan().Clear(); - - if (ImGui.GetIO().Handle->BackendPlatformName == (void*)this.platformNamePtr) - ImGui.GetIO().Handle->BackendPlatformName = null; - if (this.platformNamePtr != nint.Zero) - Marshal.FreeHGlobal(this.platformNamePtr); - - if (this.iniPathPtr != nint.Zero) - { - ImGui.GetIO().Handle->IniFilename = null; - Marshal.FreeHGlobal(this.iniPathPtr); - this.iniPathPtr = nint.Zero; - } - - this.disposedValue = true; - } - - private struct ViewportHandler : IDisposable - { - private static readonly string WindowClassName = typeof(ViewportHandler).FullName!; - - private Win32InputHandler input; - - private bool wantUpdateMonitors = true; - - public ViewportHandler(Win32InputHandler input) - { - this.input = input; - - var pio = ImGui.GetPlatformIO(); - pio.PlatformCreateWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnCreateWindow; - pio.PlatformDestroyWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnDestroyWindow; - pio.PlatformShowWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnShowWindow; - pio.PlatformSetWindowPos = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, Vector2, void>)&OnSetWindowPos; - pio.PlatformGetWindowPos = (delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportPtr, Vector2*>)&OnGetWindowPos; - pio.PlatformSetWindowSize = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, Vector2, void>)&OnSetWindowSize; - pio.PlatformGetWindowSize = (delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportPtr, Vector2*>)&OnGetWindowSize; - pio.PlatformSetWindowFocus = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnSetWindowFocus; - pio.PlatformGetWindowFocus = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, byte>)&OnGetWindowFocus; - pio.PlatformGetWindowMinimized = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, byte>)&OnGetWindowMinimized; - pio.PlatformSetWindowTitle = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, byte*, void>)&OnSetWindowTitle; - pio.PlatformSetWindowAlpha = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, float, void>)&OnSetWindowAlpha; - pio.PlatformUpdateWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnUpdateWindow; - // pio.Platform_SetImeInputPos = this.RegisterFunctionPointer<SetImeInputPosDelegate>(this.OnSetImeInputPos); - // pio.Platform_GetWindowDpiScale = this.RegisterFunctionPointer<GetWindowDpiScaleDelegate>(this.OnGetWindowDpiScale); - // pio.Platform_ChangedViewport = this.RegisterFunctionPointer<ChangedViewportDelegate>(this.OnChangedViewport); - - fixed (char* windowClassNamePtr = WindowClassName) - { - var wcex = new WNDCLASSEXW - { - cbSize = (uint)sizeof(WNDCLASSEXW), - style = CS.CS_HREDRAW | CS.CS_VREDRAW, - hInstance = (HINSTANCE)Marshal.GetHINSTANCE(typeof(ViewportHandler).Module), - hbrBackground = (HBRUSH)(1 + COLOR.COLOR_BACKGROUND), - lpfnWndProc = (delegate* unmanaged<HWND, uint, WPARAM, LPARAM, LRESULT>)Marshal - .GetFunctionPointerForDelegate(this.input.wndProcDelegate), - lpszClassName = windowClassNamePtr, - }; - - if (RegisterClassExW(&wcex) == 0) - throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) ?? new("RegisterClassEx Fail"); - } - - // Register main window handle (which is owned by the main application, not by us) - // This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports. - var mainViewport = ImGui.GetMainViewport(); - - var data = (ImGuiViewportDataWin32*)Marshal.AllocHGlobal(Marshal.SizeOf<ImGuiViewportDataWin32>()); - mainViewport.PlatformUserData = data; - data->Hwnd = this.input.hWnd; - data->HwndOwned = false; - mainViewport.PlatformHandle = this.input.hWnd; - } - - public void Dispose() - { - if (this.input is null) - return; - - var pio = ImGui.GetPlatformIO(); - ImGui.GetPlatformIO().Handle->Monitors.Free(); - - fixed (char* windowClassNamePtr = WindowClassName) - { - UnregisterClassW( - windowClassNamePtr, - (HINSTANCE)Marshal.GetHINSTANCE(typeof(ViewportHandler).Module)); - } - - pio.PlatformCreateWindow = null; - pio.PlatformDestroyWindow = null; - pio.PlatformShowWindow = null; - pio.PlatformSetWindowPos = null; - pio.PlatformGetWindowPos = null; - pio.PlatformSetWindowSize = null; - pio.PlatformGetWindowSize = null; - pio.PlatformSetWindowFocus = null; - pio.PlatformGetWindowFocus = null; - pio.PlatformGetWindowMinimized = null; - pio.PlatformSetWindowTitle = null; - pio.PlatformSetWindowAlpha = null; - pio.PlatformUpdateWindow = null; - // pio.Platform_SetImeInputPos = nint.Zero; - // pio.Platform_GetWindowDpiScale = nint.Zero; - // pio.Platform_ChangedViewport = nint.Zero; - - this.input = null!; - } - - public void UpdateMonitors() - { - if (!this.wantUpdateMonitors || this.input is null) - return; - - this.wantUpdateMonitors = false; - - // Set up platformIO monitor structures - // Here we use a manual ImVector overload, free the existing monitor data, - // and allocate our own, as we are responsible for telling ImGui about monitors - var pio = ImGui.GetPlatformIO(); - pio.Handle->Monitors.Resize(0); - - EnumDisplayMonitors(default, null, &EnumDisplayMonitorsCallback, default); - - Log.Information("Monitors set up!"); - foreach (ref var monitor in pio.Handle->Monitors) - { - Log.Information( - "Monitor: {MainPos} {MainSize} {WorkPos} {WorkSize}", - monitor.MainPos, - monitor.MainSize, - monitor.WorkPos, - monitor.WorkSize); - } - - return; - - [UnmanagedCallersOnly] - static BOOL EnumDisplayMonitorsCallback(HMONITOR hMonitor, HDC hdc, RECT* rect, LPARAM lParam) - { - var info = new MONITORINFO { cbSize = (uint)sizeof(MONITORINFO) }; - if (!GetMonitorInfoW(hMonitor, &info)) - return true; - - var monitorLt = new Vector2(info.rcMonitor.left, info.rcMonitor.top); - var monitorRb = new Vector2(info.rcMonitor.right, info.rcMonitor.bottom); - var workLt = new Vector2(info.rcWork.left, info.rcWork.top); - var workRb = new Vector2(info.rcWork.right, info.rcWork.bottom); - - // Give ImGui the info for this display - var imMonitor = new ImGuiPlatformMonitor - { - MainPos = monitorLt, - MainSize = monitorRb - monitorLt, - WorkPos = workLt, - WorkSize = workRb - workLt, - DpiScale = 1f, - }; - if ((info.dwFlags & MONITORINFOF_PRIMARY) != 0) - ImGui.GetPlatformIO().Monitors.PushFront(imMonitor); - else - ImGui.GetPlatformIO().Monitors.PushBack(imMonitor); - return true; - } - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnCreateWindow(ImGuiViewportPtr viewport) - { - var data = (ImGuiViewportDataWin32*)Marshal.AllocHGlobal(Marshal.SizeOf<ImGuiViewportDataWin32>()); - viewport.PlatformUserData = data; - viewport.Flags = - ImGuiViewportFlags.NoTaskBarIcon | - ImGuiViewportFlags.NoFocusOnClick | - ImGuiViewportFlags.NoFocusOnAppearing | - viewport.Flags; - ViewportFlagsToWin32Styles(viewport.Flags, out data->DwStyle, out data->DwExStyle); - - var parentWindow = default(HWND); - if (viewport.ParentViewportId != 0) - { - var parentViewport = ImGui.FindViewportByID(viewport.ParentViewportId); - parentWindow = (HWND)parentViewport.PlatformHandle; - } - - // Create window - var rect = new RECT - { - left = (int)viewport.Pos.X, - top = (int)viewport.Pos.Y, - right = (int)(viewport.Pos.X + viewport.Size.X), - bottom = (int)(viewport.Pos.Y + viewport.Size.Y), - }; - AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); - - fixed (char* windowClassNamePtr = WindowClassName) - { - data->Hwnd = CreateWindowExW( - (uint)data->DwExStyle, - windowClassNamePtr, - windowClassNamePtr, - (uint)data->DwStyle, - rect.left, - rect.top, - rect.right - rect.left, - rect.bottom - rect.top, - parentWindow, - default, - (HINSTANCE)Marshal.GetHINSTANCE(typeof(ViewportHandler).Module), - null); - } - - if (data->Hwnd == 0) - Util.Fatal($"CreateWindowExW failed: {GetLastError()}", "ImGui Viewport error"); - - data->HwndOwned = true; - viewport.PlatformRequestResize = false; - viewport.PlatformHandle = viewport.PlatformHandleRaw = data->Hwnd; - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnDestroyWindow(ImGuiViewportPtr viewport) - { - // This is also called on the main viewport for some reason, and we never set that viewport's PlatformUserData - if (viewport.PlatformUserData == null) return; - - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - - if (GetCapture() == data->Hwnd) - { - // Transfer capture so if we started dragging from a window that later disappears, we'll still receive the MOUSEUP event. - ReleaseCapture(); - if (viewport.ParentViewportId != 0) - { - var parentViewport = ImGui.FindViewportByID(viewport.ParentViewportId); - SetCapture((HWND)parentViewport.PlatformHandle); - } - } - - if (data->Hwnd != nint.Zero && data->HwndOwned) - { - var result = DestroyWindow(data->Hwnd); - if (result == false && GetLastError() == ERROR.ERROR_ACCESS_DENIED) - { - // We are disposing, and we're doing it from a different thread because of course we are - // Just send the window the close message - PostMessageW(data->Hwnd, WM.WM_CLOSE, default, default); - } - } - - data->Hwnd = default; - Marshal.FreeHGlobal(new IntPtr(viewport.PlatformUserData)); - viewport.PlatformUserData = viewport.PlatformHandle = null; - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnShowWindow(ImGuiViewportPtr viewport) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - - if (viewport.Flags.HasFlag(ImGuiViewportFlags.NoFocusOnAppearing)) - ShowWindow(data->Hwnd, SW.SW_SHOWNA); - else - ShowWindow(data->Hwnd, SW.SW_SHOW); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnUpdateWindow(ImGuiViewportPtr viewport) - { - // (Optional) Update Win32 style if it changed _after_ creation. - // Generally they won't change unless configuration flags are changed, but advanced uses (such as manually rewriting viewport flags) make this useful. - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - - viewport.Flags = - ImGuiViewportFlags.NoTaskBarIcon | - ImGuiViewportFlags.NoFocusOnClick | - ImGuiViewportFlags.NoFocusOnAppearing | - viewport.Flags; - ViewportFlagsToWin32Styles(viewport.Flags, out var newStyle, out var newExStyle); - - // Only reapply the flags that have been changed from our point of view (as other flags are being modified by Windows) - if (data->DwStyle != newStyle || data->DwExStyle != newExStyle) - { - // (Optional) Update TopMost state if it changed _after_ creation - var topMostChanged = (data->DwExStyle & WS.WS_EX_TOPMOST) != - (newExStyle & WS.WS_EX_TOPMOST); - - var insertAfter = default(HWND); - if (topMostChanged) - { - insertAfter = viewport.Flags.HasFlag(ImGuiViewportFlags.TopMost) - ? HWND.HWND_TOPMOST - : HWND.HWND_NOTOPMOST; - } - - var swpFlag = topMostChanged ? 0 : SWP.SWP_NOZORDER; - - // Apply flags and position (since it is affected by flags) - data->DwStyle = newStyle; - data->DwExStyle = newExStyle; - - _ = SetWindowLongW(data->Hwnd, GWL.GWL_STYLE, data->DwStyle); - _ = SetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE, data->DwExStyle); - - // Create window - var rect = new RECT - { - left = (int)viewport.Pos.X, - top = (int)viewport.Pos.Y, - right = (int)(viewport.Pos.X + viewport.Size.X), - bottom = (int)(viewport.Pos.Y + viewport.Size.Y), - }; - AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); - SetWindowPos( - data->Hwnd, - insertAfter, - rect.left, - rect.top, - rect.right - rect.left, - rect.bottom - rect.top, - (uint)(swpFlag | SWP.SWP_NOACTIVATE | SWP.SWP_FRAMECHANGED)); - - // This is necessary when we alter the style - ShowWindow(data->Hwnd, SW.SW_SHOWNA); - viewport.PlatformRequestMove = viewport.PlatformRequestResize = true; - } - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static Vector2* OnGetWindowPos(Vector2* returnValueStorage, ImGuiViewportPtr viewport) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - var pt = new POINT { x = 0, y = 0 }; - ClientToScreen(data->Hwnd, &pt); - *returnValueStorage = new(pt.x, pt.y); - return returnValueStorage; - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnSetWindowPos(ImGuiViewportPtr viewport, Vector2 pos) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - var rect = new RECT((int)pos.X, (int)pos.Y, (int)pos.X, (int)pos.Y); - AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); - SetWindowPos( - data->Hwnd, - default, - rect.left, - rect.top, - 0, - 0, - SWP.SWP_NOZORDER | - SWP.SWP_NOSIZE | - SWP.SWP_NOACTIVATE); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static Vector2* OnGetWindowSize(Vector2* returnValueStorage, ImGuiViewportPtr viewport) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - RECT rect; - GetClientRect(data->Hwnd, &rect); - *returnValueStorage = new(rect.right - rect.left, rect.bottom - rect.top); - return returnValueStorage; - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnSetWindowSize(ImGuiViewportPtr viewport, Vector2 size) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - - var rect = new RECT(0, 0, (int)size.X, (int)size.Y); - AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle); - SetWindowPos( - data->Hwnd, - default, - 0, - 0, - rect.right - rect.left, - rect.bottom - rect.top, - SWP.SWP_NOZORDER | - SWP.SWP_NOMOVE | - SWP.SWP_NOACTIVATE); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnSetWindowFocus(ImGuiViewportPtr viewport) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - - BringWindowToTop(data->Hwnd); - SetForegroundWindow(data->Hwnd); - SetFocus(data->Hwnd); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static byte OnGetWindowFocus(ImGuiViewportPtr viewport) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - return GetForegroundWindow() == data->Hwnd ? (byte)1 : (byte)0; - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static byte OnGetWindowMinimized(ImGuiViewportPtr viewport) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - return IsIconic(data->Hwnd) ? (byte)1 : (byte)0; - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnSetWindowTitle(ImGuiViewportPtr viewport, byte* title) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - fixed (char* pwszTitle = MemoryHelper.ReadStringNullTerminated((nint)title)) - SetWindowTextW(data->Hwnd, pwszTitle); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static void OnSetWindowAlpha(ImGuiViewportPtr viewport, float alpha) - { - var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData; - var style = GetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE); - - alpha = Math.Clamp(alpha, 0f, 1f); - if (alpha < 1.0f) - { - style |= WS.WS_EX_LAYERED; - _ = SetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE, style); - } - else - { - style &= ~WS.WS_EX_LAYERED; - _ = SetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE, style); - } - - _ = SetLayeredWindowAttributes(data->Hwnd, 0, (byte)(255 * alpha), LWA.LWA_ALPHA); - } - - // TODO: Decode why IME is miserable - // private void OnSetImeInputPos(ImGuiViewportPtr viewport, Vector2 pos) { - // COMPOSITIONFORM cs = new COMPOSITIONFORM( - // 0x20, - // new POINT( - // (int) (pos.X - viewport.Pos.X), - // (int) (pos.Y - viewport.Pos.Y)), - // new RECT(0, 0, 0, 0) - // ); - // var hwnd = viewport.PlatformHandle; - // if (hwnd != nint.Zero) { - // var himc = ImmGetContext(hwnd); - // if (himc != nint.Zero) { - // ImmSetCompositionWindow(himc, ref cs); - // ImmReleaseContext(hwnd, himc); - // } - // } - // } - - // Helper structure we store in the void* RenderUserData field of each ImGuiViewport to easily retrieve our backend data-> - private struct ImGuiViewportDataWin32 - { - public HWND Hwnd; - public bool HwndOwned; - public int DwStyle; - public int DwExStyle; - } - } -} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.ViewportHandler.cs b/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.ViewportHandler.cs deleted file mode 100644 index c8d82648e..000000000 --- a/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.ViewportHandler.cs +++ /dev/null @@ -1,373 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; -using System.Runtime.InteropServices; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.ImGuiBackend.Helpers; -using Dalamud.Utility; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; - -namespace Dalamud.Interface.ImGuiBackend.Renderers; - -/// <summary> -/// Deals with rendering ImGui using DirectX 11. -/// See https://github.com/ocornut/imgui/blob/master/examples/imgui_impl_dx11.cpp for the original implementation. -/// </summary> -[SuppressMessage( - "StyleCop.CSharp.LayoutRules", - "SA1519:Braces should not be omitted from multi-line child statement", - Justification = "Multiple fixed/using scopes")] -internal unsafe partial class Dx11Renderer -{ - private class ViewportHandler : IDisposable - { - private readonly Dx11Renderer renderer; - - [SuppressMessage("ReSharper", "NotAccessedField.Local", Justification = "Keeping reference alive")] - private readonly ImGuiViewportHelpers.CreateWindowDelegate cwd; - - public ViewportHandler(Dx11Renderer renderer) - { - this.renderer = renderer; - - var pio = ImGui.GetPlatformIO(); - pio.RendererCreateWindow = Marshal.GetFunctionPointerForDelegate(this.cwd = this.OnCreateWindow).ToPointer(); - pio.RendererDestroyWindow = (delegate* unmanaged<ImGuiViewportPtr, void>)&OnDestroyWindow; - pio.RendererSetWindowSize = (delegate* unmanaged<ImGuiViewportPtr, Vector2, void>)&OnSetWindowSize; - pio.RendererRenderWindow = (delegate* unmanaged<ImGuiViewportPtr, nint, void>)&OnRenderWindow; - pio.RendererSwapBuffers = (delegate* unmanaged<ImGuiViewportPtr, nint, void>)&OnSwapBuffers; - } - - ~ViewportHandler() => ReleaseUnmanagedResources(); - - public void Dispose() - { - ReleaseUnmanagedResources(); - GC.SuppressFinalize(this); - } - - private static void ReleaseUnmanagedResources() - { - var pio = ImGui.GetPlatformIO(); - pio.RendererCreateWindow = null; - pio.RendererDestroyWindow = null; - pio.RendererSetWindowSize = null; - pio.RendererRenderWindow = null; - pio.RendererSwapBuffers = null; - } - - [UnmanagedCallersOnly] - private static void OnDestroyWindow(ImGuiViewportPtr viewport) - { - if (viewport.RendererUserData == null) - return; - ViewportData.Attach(viewport.RendererUserData).Dispose(); - viewport.RendererUserData = null; - } - - [UnmanagedCallersOnly] - private static void OnSetWindowSize(ImGuiViewportPtr viewport, Vector2 size) => - ViewportData.Attach(viewport.RendererUserData).ResizeBuffers((int)size.X, (int)size.Y, true); - - [UnmanagedCallersOnly] - private static void OnRenderWindow(ImGuiViewportPtr viewport, nint v) => - ViewportData.Attach(viewport.RendererUserData).Draw(viewport.DrawData, true); - - [UnmanagedCallersOnly] - private static void OnSwapBuffers(ImGuiViewportPtr viewport, nint v) => - ViewportData.Attach(viewport.RendererUserData).PresentIfSwapChainAvailable(); - - private void OnCreateWindow(ImGuiViewportPtr viewport) - { - // PlatformHandleRaw should always be a HWND, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). - // Some backend will leave PlatformHandleRaw NULL, in which case we assume PlatformHandle will contain the HWND. - var hWnd = viewport.PlatformHandleRaw; - if (hWnd == null) - hWnd = viewport.PlatformHandle; - try - { - viewport.RendererUserData = ViewportData.CreateDComposition(this.renderer, (HWND)hWnd).Handle; - } - catch - { - viewport.RendererUserData = ViewportData.Create(this.renderer, (HWND)hWnd).Handle; - } - } - } - - private sealed class ViewportData : IDisposable - { - private readonly Dx11Renderer parent; - - private GCHandle selfGcHandle; - private ComPtr<IDXGISwapChain> swapChain; - private ComPtr<ID3D11Texture2D> renderTarget; - private ComPtr<ID3D11RenderTargetView> renderTargetView; - private ComPtr<IDCompositionVisual> dcompVisual; - private ComPtr<IDCompositionTarget> dcompTarget; - - private int width; - private int height; - - public ViewportData( - Dx11Renderer parent, - IDXGISwapChain* swapChain, - int width, - int height, - IDCompositionVisual* dcompVisual, - IDCompositionTarget* dcompTarget) - { - this.parent = parent; - this.swapChain = new(swapChain); - this.width = width; - this.height = height; - if (dcompVisual is not null) - this.dcompVisual = new(dcompVisual); - if (dcompTarget is not null) - this.dcompTarget = new(dcompTarget); - this.selfGcHandle = GCHandle.Alloc(this); - } - - public IDXGISwapChain* SwapChain => this.swapChain; - - public void* Handle => GCHandle.ToIntPtr(this.selfGcHandle).ToPointer(); - - private DXGI_FORMAT RtvFormat => this.parent.rtvFormat; - - public static ViewportData Attach(void* handle) => - (ViewportData)GCHandle.FromIntPtr(new IntPtr(handle)).Target ?? throw new InvalidOperationException(); - - public static ViewportData Create( - Dx11Renderer renderer, - IDXGISwapChain* swapChain, - IDCompositionVisual* dcompVisual, - IDCompositionTarget* dcompTarget) - { - DXGI_SWAP_CHAIN_DESC desc; - swapChain->GetDesc(&desc).ThrowOnError(); - return new( - renderer, - swapChain, - (int)desc.BufferDesc.Width, - (int)desc.BufferDesc.Height, - dcompVisual, - dcompTarget); - } - - public static ViewportData CreateDComposition(Dx11Renderer renderer, HWND hWnd) - { - if (renderer.dcompDevice.IsEmpty()) - throw new NotSupportedException(); - - var mvsd = default(DXGI_SWAP_CHAIN_DESC); - renderer.mainViewport.SwapChain->GetDesc(&mvsd).ThrowOnError(); - - using var dxgiFactory = default(ComPtr<IDXGIFactory4>); - fixed (Guid* piidFactory = &IID.IID_IDXGIFactory4) - { -#if DEBUG - DirectX.CreateDXGIFactory2( - DXGI.DXGI_CREATE_FACTORY_DEBUG, - piidFactory, - (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); -#else - DirectX.CreateDXGIFactory1(piidFactory, (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); -#endif - } - - RECT rc; - if (!GetWindowRect(hWnd, &rc) || rc.right == rc.left || rc.bottom == rc.top) - rc = new(0, 0, 4, 4); - - using var swapChain1 = default(ComPtr<IDXGISwapChain1>); - var sd1 = new DXGI_SWAP_CHAIN_DESC1 - { - Width = (uint)(rc.right - rc.left), - Height = (uint)(rc.bottom - rc.top), - Format = renderer.rtvFormat, - Stereo = false, - SampleDesc = new(1, 0), - BufferUsage = DXGI.DXGI_USAGE_RENDER_TARGET_OUTPUT, - BufferCount = Math.Max(2u, mvsd.BufferCount), - Scaling = DXGI_SCALING.DXGI_SCALING_STRETCH, - SwapEffect = DXGI_SWAP_EFFECT.DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL, - AlphaMode = DXGI_ALPHA_MODE.DXGI_ALPHA_MODE_PREMULTIPLIED, - Flags = 0, - }; - dxgiFactory.Get()->CreateSwapChainForComposition( - (IUnknown*)renderer.device.Get(), - &sd1, - null, - swapChain1.GetAddressOf()).ThrowOnError(); - - if (ReShadePeeler.PeelSwapChain(&swapChain1)) - { - swapChain1.Get()->ResizeBuffers(sd1.BufferCount, sd1.Width, sd1.Height, sd1.Format, sd1.Flags) - .ThrowOnError(); - } - - using var dcTarget = default(ComPtr<IDCompositionTarget>); - renderer.dcompDevice.Get()->CreateTargetForHwnd(hWnd, BOOL.TRUE, dcTarget.GetAddressOf()); - - using var dcVisual = default(ComPtr<IDCompositionVisual>); - renderer.dcompDevice.Get()->CreateVisual(dcVisual.GetAddressOf()).ThrowOnError(); - - dcVisual.Get()->SetContent((IUnknown*)swapChain1.Get()).ThrowOnError(); - dcTarget.Get()->SetRoot(dcVisual).ThrowOnError(); - renderer.dcompDevice.Get()->Commit().ThrowOnError(); - - using var swapChain = default(ComPtr<IDXGISwapChain>); - swapChain1.As(&swapChain).ThrowOnError(); - return Create(renderer, swapChain, dcVisual, dcTarget); - } - - public static ViewportData Create(Dx11Renderer renderer, HWND hWnd) - { - using var dxgiFactory = default(ComPtr<IDXGIFactory>); - fixed (Guid* piidFactory = &IID.IID_IDXGIFactory) - { -#if DEBUG - DirectX.CreateDXGIFactory2( - DXGI.DXGI_CREATE_FACTORY_DEBUG, - piidFactory, - (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); -#else - DirectX.CreateDXGIFactory(piidFactory, (void**)dxgiFactory.GetAddressOf()).ThrowOnError(); -#endif - } - - // Create swapchain - using var swapChain = default(ComPtr<IDXGISwapChain>); - var desc = new DXGI_SWAP_CHAIN_DESC - { - BufferDesc = - { - Format = DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM, - }, - SampleDesc = new(1, 0), - BufferUsage = DXGI.DXGI_USAGE_RENDER_TARGET_OUTPUT, - BufferCount = 1, - OutputWindow = hWnd, - Windowed = true, - SwapEffect = DXGI_SWAP_EFFECT.DXGI_SWAP_EFFECT_DISCARD, - }; - dxgiFactory.Get()->CreateSwapChain((IUnknown*)renderer.device.Get(), &desc, swapChain.GetAddressOf()) - .ThrowOnError(); - - if (ReShadePeeler.PeelSwapChain(&swapChain)) - { - swapChain.Get()->ResizeBuffers( - desc.BufferCount, - desc.BufferDesc.Width, - desc.BufferDesc.Height, - desc.BufferDesc.Format, - desc.Flags) - .ThrowOnError(); - } - - return Create(renderer, swapChain, null, null); - } - - public void Dispose() - { - if (!this.selfGcHandle.IsAllocated) - return; - - this.ResetBuffers(); - this.dcompVisual.Reset(); - this.dcompTarget.Reset(); - this.swapChain.Reset(); - this.selfGcHandle.Free(); - } - - public void Draw(ImDrawDataPtr drawData, bool clearRenderTarget) - { - if (this.width < 1 || this.height < 1) - return; - - this.EnsureRenderTarget(); - this.parent.RenderDrawDataInternal(this.renderTargetView, drawData, clearRenderTarget); - } - - public void PresentIfSwapChainAvailable() - { - if (this.width < 1 || this.height < 1) - return; - - if (!this.swapChain.IsEmpty()) - this.swapChain.Get()->Present(0, 0).ThrowOnError(); - } - - public void ResetBuffers() - { - this.renderTargetView.Reset(); - this.renderTarget.Reset(); - } - - public void ResizeBuffers(int newWidth, int newHeight, bool resizeSwapChain) - { - this.ResetBuffers(); - - this.width = newWidth; - this.height = newHeight; - if (this.width < 1 || this.height < 1) - return; - - if (resizeSwapChain && !this.swapChain.IsEmpty()) - { - DXGI_SWAP_CHAIN_DESC desc; - this.swapChain.Get()->GetDesc(&desc).ThrowOnError(); - this.swapChain.Get()->ResizeBuffers( - desc.BufferCount, - (uint)newWidth, - (uint)newHeight, - DXGI_FORMAT.DXGI_FORMAT_UNKNOWN, - desc.Flags).ThrowOnError(); - } - } - - private void EnsureRenderTarget() - { - if (!this.renderTarget.IsEmpty() && !this.renderTargetView.IsEmpty()) - return; - - this.ResetBuffers(); - - fixed (ID3D11Texture2D** pprt = &this.renderTarget.GetPinnableReference()) - fixed (ID3D11RenderTargetView** pprtv = &this.renderTargetView.GetPinnableReference()) - { - if (this.swapChain.IsEmpty()) - { - var desc = new D3D11_TEXTURE2D_DESC - { - Width = (uint)this.width, - Height = (uint)this.height, - MipLevels = 1, - ArraySize = 1, - Format = this.RtvFormat, - SampleDesc = new(1, 0), - Usage = D3D11_USAGE.D3D11_USAGE_DEFAULT, - BindFlags = (uint)D3D11_BIND_FLAG.D3D11_BIND_SHADER_RESOURCE, - CPUAccessFlags = 0, - MiscFlags = (uint)D3D11_RESOURCE_MISC_FLAG.D3D11_RESOURCE_MISC_SHARED_NTHANDLE, - }; - this.parent.device.Get()->CreateTexture2D(&desc, null, pprt).ThrowOnError(); - } - else - { - fixed (Guid* piid = &IID.IID_ID3D11Texture2D) - { - this.swapChain.Get()->GetBuffer(0u, piid, (void**)pprt) - .ThrowOnError(); - } - } - - this.parent.device.Get()->CreateRenderTargetView((ID3D11Resource*)*pprt, null, pprtv).ThrowOnError(); - } - } - } -} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.cs b/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.cs deleted file mode 100644 index a6abbb862..000000000 --- a/Dalamud/Interface/ImGuiBackend/Renderers/Dx11Renderer.cs +++ /dev/null @@ -1,683 +0,0 @@ -using System.Buffers; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Numerics; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.ImGuiBackend.Helpers; -using Dalamud.Interface.ImGuiBackend.Helpers.D3D11; -using Dalamud.Interface.Textures; -using Dalamud.Interface.Textures.TextureWraps; -using Dalamud.Interface.Textures.TextureWraps.Internal; -using Dalamud.Interface.Utility; -using Dalamud.Utility; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.ImGuiBackend.Renderers; - -/// <summary> -/// Deals with rendering ImGui using DirectX 11. -/// See https://github.com/ocornut/imgui/blob/master/examples/imgui_impl_dx11.cpp for the original implementation. -/// </summary> -[SuppressMessage( - "StyleCop.CSharp.LayoutRules", - "SA1519:Braces should not be omitted from multi-line child statement", - Justification = "Multiple fixed/using scopes")] -internal unsafe partial class Dx11Renderer : IImGuiRenderer -{ - private readonly List<IDalamudTextureWrap> fontTextures = []; - private readonly D3D_FEATURE_LEVEL featureLevel; - private readonly ViewportHandler viewportHandler; - private readonly nint renderNamePtr; - private readonly DXGI_FORMAT rtvFormat; - private readonly ViewportData mainViewport; - - private bool releaseUnmanagedResourceCalled; - - private ComPtr<ID3D11Device> device; - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11VertexShader> vertexShader; - private ComPtr<ID3D11PixelShader> pixelShader; - private ComPtr<ID3D11SamplerState> sampler; - private ComPtr<ID3D11InputLayout> inputLayout; - private ComPtr<ID3D11Buffer> vertexConstantBuffer; - private ComPtr<ID3D11BlendState> blendState; - private ComPtr<ID3D11RasterizerState> rasterizerState; - private ComPtr<ID3D11DepthStencilState> depthStencilState; - private ComPtr<ID3D11Buffer> vertexBuffer; - private ComPtr<ID3D11Buffer> indexBuffer; - private int vertexBufferSize; - private int indexBufferSize; - - private ComPtr<IDCompositionDevice> dcompDevice; - - /// <summary> - /// Initializes a new instance of the <see cref="Dx11Renderer"/> class. - /// </summary> - /// <param name="swapChain">The swap chain.</param> - /// <param name="device">A pointer to an instance of <see cref="ID3D11Device"/>.</param> - /// <param name="context">A pointer to an instance of <see cref="ID3D11DeviceContext"/>.</param> - public Dx11Renderer(IDXGISwapChain* swapChain, ID3D11Device* device, ID3D11DeviceContext* context) - { - var io = ImGui.GetIO(); - if (ImGui.GetIO().Handle->BackendRendererName is not null) - throw new InvalidOperationException("ImGui backend renderer seems to be have been already attached."); - try - { - DXGI_SWAP_CHAIN_DESC desc; - swapChain->GetDesc(&desc).ThrowOnError(); - this.rtvFormat = desc.BufferDesc.Format; - this.device = new(device); - this.context = new(context); - this.featureLevel = device->GetFeatureLevel(); - - io.BackendFlags |= ImGuiBackendFlags.RendererHasVtxOffset | ImGuiBackendFlags.RendererHasViewports; - - this.renderNamePtr = Marshal.StringToHGlobalAnsi("imgui_impl_dx11_c#"); - io.Handle->BackendRendererName = (byte*)this.renderNamePtr; - - if (io.ConfigFlags.HasFlag(ImGuiConfigFlags.ViewportsEnable)) - { - try - { - fixed (IDCompositionDevice** pp = &this.dcompDevice.GetPinnableReference()) - fixed (Guid* piidDCompositionDevice = &IID.IID_IDCompositionDevice) - DirectX.DCompositionCreateDevice(null, piidDCompositionDevice, (void**)pp).ThrowOnError(); - - ImGuiViewportHelpers.EnableViewportWindowBackgroundAlpha(); - } - catch - { - // don't care; not using DComposition then - } - - this.viewportHandler = new(this); - } - - this.mainViewport = ViewportData.Create(this, swapChain, null, null); - var vp = ImGui.GetPlatformIO().Viewports[0]; - vp.RendererUserData = this.mainViewport.Handle; - } - catch - { - this.ReleaseUnmanagedResources(); - throw; - } - } - - /// <summary> - /// Finalizes an instance of the <see cref="Dx11Renderer"/> class. - /// </summary> - ~Dx11Renderer() => this.ReleaseUnmanagedResources(); - - /// <inheritdoc/> - public void Dispose() - { - this.ReleaseUnmanagedResources(); - GC.SuppressFinalize(this); - } - - /// <inheritdoc/> - public void OnNewFrame() - { - this.EnsureDeviceObjects(); - } - - /// <inheritdoc/> - public void OnPreResize() => this.mainViewport.ResetBuffers(); - - /// <inheritdoc/> - public void OnPostResize(int width, int height) => this.mainViewport.ResizeBuffers(width, height, false); - - /// <inheritdoc/> - public void RenderDrawData(ImDrawDataPtr drawData) => - this.mainViewport.Draw(drawData, this.mainViewport.SwapChain == null); - - /// <summary> - /// Rebuilds font texture. - /// </summary> - public void RebuildFontTexture() - { - foreach (var fontResourceView in this.fontTextures) - fontResourceView.Dispose(); - this.fontTextures.Clear(); - - this.CreateFontsTexture(); - } - - /// <inheritdoc/> - public IDalamudTextureWrap CreateTexture2D( - ReadOnlySpan<byte> data, - RawImageSpecification specs, - bool cpuRead, - bool cpuWrite, - bool allowRenderTarget, - [CallerMemberName] string debugName = "") - { - if (cpuRead && cpuWrite) - throw new ArgumentException("cpuRead and cpuWrite cannot be set at the same time."); - - var cpuaf = default(D3D11_CPU_ACCESS_FLAG); - if (cpuRead) - cpuaf |= D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_READ; - if (cpuWrite) - cpuaf |= D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE; - - D3D11_USAGE usage; - if (cpuRead) - usage = D3D11_USAGE.D3D11_USAGE_STAGING; - else if (cpuWrite) - usage = D3D11_USAGE.D3D11_USAGE_DYNAMIC; - else - usage = D3D11_USAGE.D3D11_USAGE_DEFAULT; - - var texDesc = new D3D11_TEXTURE2D_DESC - { - Width = (uint)specs.Width, - Height = (uint)specs.Height, - MipLevels = 1, - ArraySize = 1, - Format = specs.Format, - SampleDesc = new(1, 0), - Usage = usage, - BindFlags = (uint)(D3D11_BIND_FLAG.D3D11_BIND_SHADER_RESOURCE | - (allowRenderTarget ? D3D11_BIND_FLAG.D3D11_BIND_RENDER_TARGET : 0)), - CPUAccessFlags = (uint)cpuaf, - MiscFlags = 0, - }; - using var texture = default(ComPtr<ID3D11Texture2D>); - if (data.IsEmpty) - { - Marshal.ThrowExceptionForHR(this.device.Get()->CreateTexture2D(&texDesc, null, texture.GetAddressOf())); - } - else - { - fixed (void* dataPtr = data) - { - var subrdata = new D3D11_SUBRESOURCE_DATA { pSysMem = dataPtr, SysMemPitch = (uint)specs.Pitch }; - Marshal.ThrowExceptionForHR( - this.device.Get()->CreateTexture2D(&texDesc, &subrdata, texture.GetAddressOf())); - } - } - - texture.Get()->SetDebugName($"Texture:{debugName}:SRV"); - - using var srvTemp = default(ComPtr<ID3D11ShaderResourceView>); - var srvDesc = new D3D11_SHADER_RESOURCE_VIEW_DESC( - texture, - D3D_SRV_DIMENSION.D3D11_SRV_DIMENSION_TEXTURE2D); - this.device.Get()->CreateShaderResourceView((ID3D11Resource*)texture.Get(), &srvDesc, srvTemp.GetAddressOf()) - .ThrowOnError(); - srvTemp.Get()->SetDebugName($"Texture:{debugName}:SRV"); - - return new UnknownTextureWrap((IUnknown*)srvTemp.Get(), specs.Width, specs.Height, true); - } - - private void RenderDrawDataInternal( - ID3D11RenderTargetView* renderTargetView, - ImDrawDataPtr drawData, - bool clearRenderTarget) - { - // Do nothing when there's nothing to draw - if (drawData.IsNull || !drawData.Valid) - return; - - // Avoid rendering when minimized - if (drawData.DisplaySize.X <= 0 || drawData.DisplaySize.Y <= 0) - return; - - // Set up render target - this.context.Get()->OMSetRenderTargets(1, &renderTargetView, null); - if (clearRenderTarget) - { - var color = default(Vector4); - this.context.Get()->ClearRenderTargetView(renderTargetView, (float*)&color); - } - - // Stop if there's nothing to draw - var cmdLists = new Span<ImDrawListPtr>(drawData.Handle->CmdLists, drawData.Handle->CmdListsCount); - if (cmdLists.IsEmpty) - return; - - // Create and grow vertex/index buffers if needed - if (this.vertexBufferSize < drawData.TotalVtxCount) - this.vertexBuffer.Dispose(); - if (this.vertexBuffer.Get() is null) - { - this.vertexBufferSize = drawData.TotalVtxCount + 8192; - var desc = new D3D11_BUFFER_DESC( - (uint)(sizeof(ImDrawVert) * this.vertexBufferSize), - (uint)D3D11_BIND_FLAG.D3D11_BIND_VERTEX_BUFFER, - D3D11_USAGE.D3D11_USAGE_DYNAMIC, - (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); - var buffer = default(ID3D11Buffer*); - this.device.Get()->CreateBuffer(&desc, null, &buffer).ThrowOnError(); - this.vertexBuffer.Attach(buffer); - } - - if (this.indexBufferSize < drawData.TotalIdxCount) - this.indexBuffer.Dispose(); - if (this.indexBuffer.Get() is null) - { - this.indexBufferSize = drawData.TotalIdxCount + 16384; - var desc = new D3D11_BUFFER_DESC( - (uint)(sizeof(ushort) * this.indexBufferSize), - (uint)D3D11_BIND_FLAG.D3D11_BIND_INDEX_BUFFER, - D3D11_USAGE.D3D11_USAGE_DYNAMIC, - (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); - var buffer = default(ID3D11Buffer*); - this.device.Get()->CreateBuffer(&desc, null, &buffer).ThrowOnError(); - this.indexBuffer.Attach(buffer); - } - - using var oldState = new D3D11DeviceContextStateBackup(this.featureLevel, this.context.Get()); - - // Setup desired DX state - this.SetupRenderState(drawData); - - try - { - // Upload vertex/index data into a single contiguous GPU buffer. - var vertexData = default(D3D11_MAPPED_SUBRESOURCE); - var indexData = default(D3D11_MAPPED_SUBRESOURCE); - this.context.Get()->Map( - (ID3D11Resource*)this.vertexBuffer.Get(), - 0, - D3D11_MAP.D3D11_MAP_WRITE_DISCARD, - 0, - &vertexData).ThrowOnError(); - this.context.Get()->Map( - (ID3D11Resource*)this.indexBuffer.Get(), - 0, - D3D11_MAP.D3D11_MAP_WRITE_DISCARD, - 0, - &indexData).ThrowOnError(); - - var targetVertices = new Span<ImDrawVert>(vertexData.pData, this.vertexBufferSize); - var targetIndices = new Span<ushort>(indexData.pData, this.indexBufferSize); - foreach (ref var cmdList in cmdLists) - { - var vertices = new ImVectorWrapper<ImDrawVert>(cmdList.Handle->VtxBuffer.ToUntyped()); - var indices = new ImVectorWrapper<ushort>(cmdList.Handle->IdxBuffer.ToUntyped()); - - vertices.DataSpan.CopyTo(targetVertices); - indices.DataSpan.CopyTo(targetIndices); - - targetVertices = targetVertices[vertices.Length..]; - targetIndices = targetIndices[indices.Length..]; - } - - // Setup orthographic projection matrix into our constant buffer. - // Our visible imgui space lies from DisplayPos (LT) to DisplayPos+DisplaySize (RB). - // DisplayPos is (0,0) for single viewport apps. - var constantBufferData = default(D3D11_MAPPED_SUBRESOURCE); - this.context.Get()->Map( - (ID3D11Resource*)this.vertexConstantBuffer.Get(), - 0, - D3D11_MAP.D3D11_MAP_WRITE_DISCARD, - 0, - &constantBufferData).ThrowOnError(); - *(Matrix4x4*)constantBufferData.pData = Matrix4x4.CreateOrthographicOffCenter( - drawData.DisplayPos.X, - drawData.DisplayPos.X + drawData.DisplaySize.X, - drawData.DisplayPos.Y + drawData.DisplaySize.Y, - drawData.DisplayPos.Y, - 1f, - 0f); - } - finally - { - this.context.Get()->Unmap((ID3D11Resource*)this.vertexBuffer.Get(), 0); - this.context.Get()->Unmap((ID3D11Resource*)this.indexBuffer.Get(), 0); - this.context.Get()->Unmap((ID3D11Resource*)this.vertexConstantBuffer.Get(), 0); - } - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - var vertexOffset = 0; - var indexOffset = 0; - var clipOff = new Vector4(drawData.DisplayPos, drawData.DisplayPos.X, drawData.DisplayPos.Y); - foreach (ref var cmdList in cmdLists) - { - var cmds = new ImVectorWrapper<ImDrawCmd>(cmdList.Handle->CmdBuffer.ToUntyped()); - foreach (ref var cmd in cmds.DataSpan) - { - switch ((ImDrawCallbackEnum)(nint)cmd.UserCallback) - { - case ImDrawCallbackEnum.Empty: - { - var clipV4 = cmd.ClipRect - clipOff; - var clipRect = new RECT((int)clipV4.X, (int)clipV4.Y, (int)clipV4.Z, (int)clipV4.W); - - // Skip the draw if nothing would be visible - if (clipRect.left >= clipRect.right || clipRect.top >= clipRect.bottom) - continue; - - this.context.Get()->RSSetScissorRects(1, &clipRect); - - // Bind texture and draw - var srv = (ID3D11ShaderResourceView*)cmd.TextureId.Handle; - this.context.Get()->PSSetShaderResources(0, 1, &srv); - this.context.Get()->DrawIndexed( - cmd.ElemCount, - (uint)(cmd.IdxOffset + indexOffset), - (int)(cmd.VtxOffset + vertexOffset)); - break; - } - - case ImDrawCallbackEnum.ResetRenderState: - { - // Special callback value used by the user to request the renderer to reset render state. - this.SetupRenderState(drawData); - break; - } - - default: - { - // User callback, registered via ImDrawList::AddCallback() - var cb = (delegate* unmanaged<ImDrawListPtr, ImDrawCmdPtr, void>)cmd.UserCallback; - cb(cmdList, (ImDrawCmdPtr)Unsafe.AsPointer(ref cmd)); - break; - } - } - } - - indexOffset += cmdList.IdxBuffer.Size; - vertexOffset += cmdList.VtxBuffer.Size; - } - } - - /// <summary> - /// Builds fonts as necessary, and uploads the built data onto the GPU.<br /> - /// No-op if it has already been done. - /// </summary> - private void CreateFontsTexture() - { - ObjectDisposedException.ThrowIf(this.device.IsEmpty(), this); - - if (this.fontTextures.Count != 0) - return; - - var io = ImGui.GetIO(); - if (io.Fonts.Textures.Size == 0) - io.Fonts.Build(); - - for (int textureIndex = 0, textureCount = io.Fonts.Textures.Size; - textureIndex < textureCount; - textureIndex++) - { - int width = 0, height = 0, bytespp = 0; - byte* fontPixels = null; - - // Build texture atlas - io.Fonts.GetTexDataAsRGBA32( - textureIndex, - &fontPixels, - ref width, - ref height, - ref bytespp); - - var tex = this.CreateTexture2D( - new(fontPixels, width * height * bytespp), - new(width, height, (int)DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM, width * bytespp), - false, - false, - false, - $"Font#{textureIndex}"); - io.Fonts.SetTexID(textureIndex, tex.Handle); - this.fontTextures.Add(tex); - } - - io.Fonts.ClearTexData(); - } - - /// <summary> - /// Initializes the device context's render state to what we would use for rendering ImGui by default. - /// </summary> - /// <param name="drawData">The relevant ImGui draw data.</param> - private void SetupRenderState(ImDrawDataPtr drawData) - { - var ctx = this.context.Get(); - ctx->IASetInputLayout(this.inputLayout); - var buffer = this.vertexBuffer.Get(); - var stride = (uint)sizeof(ImDrawVert); - var offset = 0u; - ctx->IASetVertexBuffers(0, 1, &buffer, &stride, &offset); - ctx->IASetIndexBuffer(this.indexBuffer, DXGI_FORMAT.DXGI_FORMAT_R16_UINT, 0); - ctx->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY.D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); - - var viewport = new D3D11_VIEWPORT(0, 0, drawData.DisplaySize.X, drawData.DisplaySize.Y); - ctx->RSSetState(this.rasterizerState); - ctx->RSSetViewports(1, &viewport); - - var blendColor = default(Vector4); - ctx->OMSetBlendState(this.blendState, (float*)&blendColor, 0xffffffff); - ctx->OMSetDepthStencilState(this.depthStencilState, 0); - - ctx->VSSetShader(this.vertexShader.Get(), null, 0); - buffer = this.vertexConstantBuffer.Get(); - ctx->VSSetConstantBuffers(0, 1, &buffer); - - ctx->PSSetShader(this.pixelShader, null, 0); - ctx->PSSetSamplers(0, 1, this.sampler.GetAddressOf()); - - ctx->GSSetShader(null, null, 0); - ctx->HSSetShader(null, null, 0); - ctx->DSSetShader(null, null, 0); - ctx->CSSetShader(null, null, 0); - } - - /// <summary> - /// Creates objects from the device as necessary.<br /> - /// No-op if objects already are built. - /// </summary> - private void EnsureDeviceObjects() - { - ObjectDisposedException.ThrowIf(this.device.IsEmpty(), this); - - var assembly = Assembly.GetExecutingAssembly(); - - // Create the vertex shader - if (this.vertexShader.IsEmpty() || this.inputLayout.IsEmpty()) - { - using var stream = assembly.GetManifestResourceStream("imgui-vertex.hlsl.bytes")!; - var array = ArrayPool<byte>.Shared.Rent((int)stream.Length); - stream.ReadExactly(array, 0, (int)stream.Length); - fixed (byte* pArray = array) - fixed (ID3D11VertexShader** ppShader = &this.vertexShader.GetPinnableReference()) - fixed (ID3D11InputLayout** ppInputLayout = &this.inputLayout.GetPinnableReference()) - fixed (void* pszPosition = "POSITION"u8) - fixed (void* pszTexCoord = "TEXCOORD"u8) - fixed (void* pszColor = "COLOR"u8) - { - this.device.Get()->CreateVertexShader(pArray, (nuint)stream.Length, null, ppShader).ThrowOnError(); - - var ied = stackalloc D3D11_INPUT_ELEMENT_DESC[] - { - new() - { - SemanticName = (sbyte*)pszPosition, - Format = DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT, - AlignedByteOffset = uint.MaxValue, - }, - new() - { - SemanticName = (sbyte*)pszTexCoord, - Format = DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT, - AlignedByteOffset = uint.MaxValue, - }, - new() - { - SemanticName = (sbyte*)pszColor, - Format = DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM, - AlignedByteOffset = uint.MaxValue, - }, - }; - this.device.Get()->CreateInputLayout(ied, 3, pArray, (nuint)stream.Length, ppInputLayout) - .ThrowOnError(); - } - - ArrayPool<byte>.Shared.Return(array); - } - - // Create the pixel shader - if (this.pixelShader.IsEmpty()) - { - using var stream = assembly.GetManifestResourceStream("imgui-frag.hlsl.bytes")!; - var array = ArrayPool<byte>.Shared.Rent((int)stream.Length); - stream.ReadExactly(array, 0, (int)stream.Length); - fixed (byte* pArray = array) - fixed (ID3D11PixelShader** ppShader = &this.pixelShader.GetPinnableReference()) - this.device.Get()->CreatePixelShader(pArray, (nuint)stream.Length, null, ppShader).ThrowOnError(); - ArrayPool<byte>.Shared.Return(array); - } - - // Create the sampler state - if (this.sampler.IsEmpty()) - { - var samplerDesc = new D3D11_SAMPLER_DESC - { - Filter = D3D11_FILTER.D3D11_FILTER_MIN_MAG_MIP_LINEAR, - AddressU = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, - AddressV = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, - AddressW = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, - MipLODBias = 0, - MaxAnisotropy = 0, - ComparisonFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, - MinLOD = 0, - MaxLOD = 0, - }; - - fixed (ID3D11SamplerState** ppSampler = &this.sampler.GetPinnableReference()) - this.device.Get()->CreateSamplerState(&samplerDesc, ppSampler).ThrowOnError(); - } - - // Create the constant buffer - if (this.vertexConstantBuffer.IsEmpty()) - { - var bufferDesc = new D3D11_BUFFER_DESC( - (uint)sizeof(Matrix4x4), - (uint)D3D11_BIND_FLAG.D3D11_BIND_CONSTANT_BUFFER, - D3D11_USAGE.D3D11_USAGE_DYNAMIC, - (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); - fixed (ID3D11Buffer** ppBuffer = &this.vertexConstantBuffer.GetPinnableReference()) - this.device.Get()->CreateBuffer(&bufferDesc, null, ppBuffer).ThrowOnError(); - } - - // Create the blending setup - if (this.blendState.IsEmpty()) - { - var blendStateDesc = new D3D11_BLEND_DESC - { - RenderTarget = - { - e0 = - { - BlendEnable = true, - SrcBlend = D3D11_BLEND.D3D11_BLEND_SRC_ALPHA, - DestBlend = D3D11_BLEND.D3D11_BLEND_INV_SRC_ALPHA, - BlendOp = D3D11_BLEND_OP.D3D11_BLEND_OP_ADD, - SrcBlendAlpha = D3D11_BLEND.D3D11_BLEND_INV_DEST_ALPHA, - DestBlendAlpha = D3D11_BLEND.D3D11_BLEND_ONE, - BlendOpAlpha = D3D11_BLEND_OP.D3D11_BLEND_OP_ADD, - RenderTargetWriteMask = (byte)D3D11_COLOR_WRITE_ENABLE.D3D11_COLOR_WRITE_ENABLE_ALL, - }, - }, - }; - fixed (ID3D11BlendState** ppBlendState = &this.blendState.GetPinnableReference()) - this.device.Get()->CreateBlendState(&blendStateDesc, ppBlendState).ThrowOnError(); - } - - // Create the rasterizer state - if (this.rasterizerState.IsEmpty()) - { - var rasterizerDesc = new D3D11_RASTERIZER_DESC - { - FillMode = D3D11_FILL_MODE.D3D11_FILL_SOLID, - CullMode = D3D11_CULL_MODE.D3D11_CULL_NONE, - ScissorEnable = true, - DepthClipEnable = true, - }; - fixed (ID3D11RasterizerState** ppRasterizerState = &this.rasterizerState.GetPinnableReference()) - this.device.Get()->CreateRasterizerState(&rasterizerDesc, ppRasterizerState).ThrowOnError(); - } - - // Create the depth-stencil State - if (this.depthStencilState.IsEmpty()) - { - var dsDesc = new D3D11_DEPTH_STENCIL_DESC - { - DepthEnable = false, - DepthWriteMask = D3D11_DEPTH_WRITE_MASK.D3D11_DEPTH_WRITE_MASK_ALL, - DepthFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, - StencilEnable = false, - StencilReadMask = byte.MaxValue, - StencilWriteMask = byte.MaxValue, - FrontFace = - { - StencilFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, - StencilDepthFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, - StencilPassOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, - StencilFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, - }, - BackFace = - { - StencilFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, - StencilDepthFailOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, - StencilPassOp = D3D11_STENCIL_OP.D3D11_STENCIL_OP_KEEP, - StencilFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, - }, - }; - fixed (ID3D11DepthStencilState** ppDepthStencilState = &this.depthStencilState.GetPinnableReference()) - this.device.Get()->CreateDepthStencilState(&dsDesc, ppDepthStencilState).ThrowOnError(); - } - - this.CreateFontsTexture(); - } - - private void ReleaseUnmanagedResources() - { - if (this.releaseUnmanagedResourceCalled) - return; - this.releaseUnmanagedResourceCalled = true; - - this.mainViewport.Dispose(); - var vp = ImGui.GetPlatformIO().Viewports[0]; - vp.RendererUserData = null; - ImGui.DestroyPlatformWindows(); - - this.viewportHandler.Dispose(); - - var io = ImGui.GetIO(); - if (io.Handle->BackendRendererName == (void*)this.renderNamePtr) - io.Handle->BackendRendererName = null; - if (this.renderNamePtr != 0) - Marshal.FreeHGlobal(this.renderNamePtr); - - foreach (var fontResourceView in this.fontTextures) - fontResourceView.Dispose(); - - foreach (var i in Enumerable.Range(0, io.Fonts.Textures.Size)) - io.Fonts.SetTexID(i, ImTextureID.Null); - - this.device.Reset(); - this.context.Reset(); - this.vertexShader.Reset(); - this.pixelShader.Reset(); - this.sampler.Reset(); - this.inputLayout.Reset(); - this.vertexConstantBuffer.Reset(); - this.blendState.Reset(); - this.rasterizerState.Reset(); - this.depthStencilState.Reset(); - this.vertexBuffer.Reset(); - this.indexBuffer.Reset(); - this.dcompDevice.Reset(); - } -} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/IImGuiRenderer.cs b/Dalamud/Interface/ImGuiBackend/Renderers/IImGuiRenderer.cs deleted file mode 100644 index 2aa0cb086..000000000 --- a/Dalamud/Interface/ImGuiBackend/Renderers/IImGuiRenderer.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Runtime.CompilerServices; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Textures; -using Dalamud.Interface.Textures.TextureWraps; - -namespace Dalamud.Interface.ImGuiBackend.Renderers; - -/// <summary>A simple shared public interface that all ImGui render implementations follow.</summary> -internal interface IImGuiRenderer : IDisposable -{ - /// <summary>Load an image from a span of bytes of specified format.</summary> - /// <param name="data">The data to load.</param> - /// <param name="specs">Texture specifications.</param> - /// <param name="cpuRead">Whether to support reading from CPU, while disabling reading from GPU.</param> - /// <param name="cpuWrite">Whether to support writing from CPU, while disabling writing from GPU.</param> - /// <param name="allowRenderTarget">Whether to allow rendering to this texture.</param> - /// <param name="debugName">Name for debugging.</param> - /// <returns>A texture, ready to use in ImGui.</returns> - IDalamudTextureWrap CreateTexture2D( - ReadOnlySpan<byte> data, - RawImageSpecification specs, - bool cpuRead, - bool cpuWrite, - bool allowRenderTarget, - [CallerMemberName] string debugName = ""); - - /// <summary>Notifies that the window is about to be resized.</summary> - void OnPreResize(); - - /// <summary>Notifies that the window has been resized.</summary> - /// <param name="width">The new window width.</param> - /// <param name="height">The new window height.</param> - void OnPostResize(int width, int height); - - /// <summary>Marks the beginning of a new frame.</summary> - void OnNewFrame(); - - /// <summary>Renders the draw data.</summary> - /// <param name="drawData">The draw data.</param> - void RenderDrawData(ImDrawDataPtr drawData); -} diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/imgui-frag.hlsl.bytes b/Dalamud/Interface/ImGuiBackend/Renderers/imgui-frag.hlsl.bytes deleted file mode 100644 index 2a9fbf5a3..000000000 Binary files a/Dalamud/Interface/ImGuiBackend/Renderers/imgui-frag.hlsl.bytes and /dev/null differ diff --git a/Dalamud/Interface/ImGuiBackend/Renderers/imgui-vertex.hlsl.bytes b/Dalamud/Interface/ImGuiBackend/Renderers/imgui-vertex.hlsl.bytes deleted file mode 100644 index 572a04538..000000000 Binary files a/Dalamud/Interface/ImGuiBackend/Renderers/imgui-vertex.hlsl.bytes and /dev/null differ diff --git a/Dalamud/Interface/ImGuiFileDialog/DriveListLoader.cs b/Dalamud/Interface/ImGuiFileDialog/DriveListLoader.cs index 6998e2ef0..487a08132 100644 --- a/Dalamud/Interface/ImGuiFileDialog/DriveListLoader.cs +++ b/Dalamud/Interface/ImGuiFileDialog/DriveListLoader.cs @@ -23,7 +23,7 @@ internal class DriveListLoader public IReadOnlyList<DriveInfo> Drives { get; private set; } /// <summary> - /// Gets a value indicating whether the loader is loading. + /// Gets a value indicating whether or not the loader is loading. /// </summary> public bool Loading { get; private set; } diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialog.Files.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialog.Files.cs index 1bad08f08..121ec8890 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialog.Files.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialog.Files.cs @@ -1,9 +1,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Threading; - -using Dalamud.Utility; namespace Dalamud.Interface.ImGuiFileDialog; @@ -12,48 +9,15 @@ namespace Dalamud.Interface.ImGuiFileDialog; /// </summary> public partial class FileDialog { - private readonly Lock filesLock = new(); + private readonly object filesLock = new(); private readonly DriveListLoader driveListLoader = new(); - private readonly List<FileStruct> files = []; - private readonly List<FileStruct> filteredFiles = []; + private List<FileStruct> files = new(); + private List<FileStruct> filteredFiles = new(); private SortingField currentSortingField = SortingField.FileName; - - /// <summary> Fired whenever the sorting field changes. </summary> - public event Action<SortingField>? SortOrderChanged; - - /// <summary> The sorting type of the file selector. </summary> - public enum SortingField - { - /// <summary> No sorting specified. </summary> - None = 0, - - /// <summary> Sort for ascending file names in culture-specific order. </summary> - FileName = 1, - - /// <summary> Sort for ascending file types in culture-specific order. </summary> - Type = 2, - - /// <summary> Sort for ascending file sizes. </summary> - Size = 3, - - /// <summary> Sort for ascending last update dates. </summary> - Date = 4, - - /// <summary> Sort for descending file names in culture-specific order. </summary> - FileNameDescending = 5, - - /// <summary> Sort for descending file types in culture-specific order. </summary> - TypeDescending = 6, - - /// <summary> Sort for descending file sizes. </summary> - SizeDescending = 7, - - /// <summary> Sort for descending last update dates. </summary> - DateDescending = 8, - } + private bool[] sortDescending = { false, false, false, false }; private enum FileStructType { @@ -61,64 +25,34 @@ public partial class FileDialog Directory, } - /// <summary> Specify the current and subsequent sort order. </summary> - /// <param name="sortingField"> The new sort order. None is invalid and will not have any effect. </param> - public void SortFields(SortingField sortingField) + private enum SortingField { - Comparison<FileStruct>? sortFunc = sortingField switch - { - SortingField.FileName => SortByFileNameAsc, - SortingField.FileNameDescending => SortByFileNameDesc, - SortingField.Type => SortByTypeAsc, - SortingField.TypeDescending => SortByTypeDesc, - SortingField.Size => SortBySizeAsc, - SortingField.SizeDescending => SortBySizeDesc, - SortingField.Date => SortByDateAsc, - SortingField.DateDescending => SortByDateDesc, - _ => null, - }; - - if (sortFunc is null) - { - return; - } - - this.files.Sort(sortFunc); - this.currentSortingField = sortingField; - this.ApplyFilteringOnFileList(); - this.SortOrderChanged?.InvokeSafely(this.currentSortingField); + None, + FileName, + Type, + Size, + Date, } - private static string ComposeNewPath(List<string> decomposition) + private static string ComposeNewPath(List<string> decomp) { - switch (decomposition.Count) + if (decomp.Count == 1) { - // Handle UNC paths (network paths) - case >= 2 when string.IsNullOrEmpty(decomposition[0]) && string.IsNullOrEmpty(decomposition[1]): - var pathParts = new List<string>(decomposition); - pathParts.RemoveRange(0, 2); + var drivePath = decomp[0]; + if (drivePath[^1] != Path.DirectorySeparatorChar) + { // turn C: into C:\ + drivePath += Path.DirectorySeparatorChar; + } - // Can not access server level or UNC root - if (pathParts.Count <= 1) - { - return string.Empty; - } - - return $@"\\{string.Join('\\', pathParts)}"; - case 1: - var drivePath = decomposition[0]; - if (drivePath[^1] != Path.DirectorySeparatorChar) - { // turn C: into C:\ - drivePath += Path.DirectorySeparatorChar; - } - - return drivePath; - default: return Path.Combine(decomposition.ToArray()); + return drivePath; } + + return Path.Combine(decomp.ToArray()); } private static FileStruct GetFile(FileInfo file, string path) - => new() + { + return new FileStruct { FileName = file.Name, FilePath = path, @@ -128,9 +62,11 @@ public partial class FileDialog Type = FileStructType.File, Ext = file.Extension.Trim('.'), }; + } private static FileStruct GetDir(DirectoryInfo dir, string path) - => new() + { + return new FileStruct { FileName = dir.Name, FilePath = path, @@ -140,191 +76,136 @@ public partial class FileDialog Type = FileStructType.Directory, Ext = string.Empty, }; + } private static int SortByFileNameDesc(FileStruct a, FileStruct b) { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - - if (a.FileName[0] is '.') - { - if (b.FileName[0] is not '.') - { - return 1; - } - - if (a.FileName.Length is 1) - { - return -1; - } - - if (b.FileName.Length is 1) - { - return 1; - } - - return -1 * string.Compare(a.FileName[1..], b.FileName[1..], StringComparison.CurrentCulture); - } - - if (b.FileName[0] is '.') - { - return -1; - } - - if (a.Type != b.Type) - { - return a.Type is FileStructType.Directory ? 1 : -1; - } - - return -string.Compare(a.FileName, b.FileName, StringComparison.CurrentCulture); - } - - private static int SortByFileNameAsc(FileStruct a, FileStruct b) - { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - - if (a.FileName[0] is '.') - { - if (b.FileName[0] is not '.') - { - return -1; - } - - if (a.FileName.Length is 1) - { - return 1; - } - - if (b.FileName.Length is 1) - { - return -1; - } - - return string.Compare(a.FileName[1..], b.FileName[1..], StringComparison.CurrentCulture); - } - - if (b.FileName[0] is '.') + if (a.FileName[0] == '.' && b.FileName[0] != '.') { return 1; } - if (a.Type != b.Type) + if (a.FileName[0] != '.' && b.FileName[0] == '.') { - return a.Type is FileStructType.Directory ? -1 : 1; + return -1; } - return string.Compare(a.FileName, b.FileName, StringComparison.CurrentCulture); + if (a.FileName[0] == '.' && b.FileName[0] == '.') + { + if (a.FileName.Length == 1) + { + return -1; + } + + if (b.FileName.Length == 1) + { + return 1; + } + + return -1 * string.Compare(a.FileName[1..], b.FileName[1..]); + } + + if (a.Type != b.Type) + { + return a.Type == FileStructType.Directory ? 1 : -1; + } + + return -1 * string.Compare(a.FileName, b.FileName); + } + + private static int SortByFileNameAsc(FileStruct a, FileStruct b) + { + if (a.FileName[0] == '.' && b.FileName[0] != '.') + { + return -1; + } + + if (a.FileName[0] != '.' && b.FileName[0] == '.') + { + return 1; + } + + if (a.FileName[0] == '.' && b.FileName[0] == '.') + { + if (a.FileName.Length == 1) + { + return 1; + } + + if (b.FileName.Length == 1) + { + return -1; + } + + return string.Compare(a.FileName[1..], b.FileName[1..]); + } + + if (a.Type != b.Type) + { + return a.Type == FileStructType.Directory ? -1 : 1; + } + + return string.Compare(a.FileName, b.FileName); } private static int SortByTypeDesc(FileStruct a, FileStruct b) { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - if (a.Type != b.Type) { return (a.Type == FileStructType.Directory) ? 1 : -1; } - return string.Compare(a.Ext, b.Ext, StringComparison.CurrentCulture); + return string.Compare(a.Ext, b.Ext); } private static int SortByTypeAsc(FileStruct a, FileStruct b) { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - if (a.Type != b.Type) { return (a.Type == FileStructType.Directory) ? -1 : 1; } - return -string.Compare(a.Ext, b.Ext, StringComparison.CurrentCulture); + return -1 * string.Compare(a.Ext, b.Ext); } private static int SortBySizeDesc(FileStruct a, FileStruct b) { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - - if (a.Type != b.Type) - { - return (a.Type is FileStructType.Directory) ? 1 : -1; - } - - return a.FileSize.CompareTo(b.FileSize); - } - - private static int SortBySizeAsc(FileStruct a, FileStruct b) - { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - - if (a.Type != b.Type) - { - return (a.Type is FileStructType.Directory) ? -1 : 1; - } - - return -a.FileSize.CompareTo(b.FileSize); - } - - private static int SortByDateDesc(FileStruct a, FileStruct b) - { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - if (a.Type != b.Type) { return (a.Type == FileStructType.Directory) ? 1 : -1; } - return string.Compare(a.FileModifiedDate, b.FileModifiedDate, StringComparison.CurrentCulture); + return (a.FileSize > b.FileSize) ? 1 : -1; } - private static int SortByDateAsc(FileStruct a, FileStruct b) + private static int SortBySizeAsc(FileStruct a, FileStruct b) { - switch (a.FileName, b.FileName) - { - case ("..", ".."): return 0; - case ("..", _): return -1; - case (_, ".."): return 1; - } - if (a.Type != b.Type) { return (a.Type == FileStructType.Directory) ? -1 : 1; } - return -string.Compare(a.FileModifiedDate, b.FileModifiedDate, StringComparison.CurrentCulture); + return (a.FileSize > b.FileSize) ? -1 : 1; + } + + private static int SortByDateDesc(FileStruct a, FileStruct b) + { + if (a.Type != b.Type) + { + return (a.Type == FileStructType.Directory) ? 1 : -1; + } + + return string.Compare(a.FileModifiedDate, b.FileModifiedDate); + } + + private static int SortByDateAsc(FileStruct a, FileStruct b) + { + if (a.Type != b.Type) + { + return (a.Type == FileStructType.Directory) ? -1 : 1; + } + + return -1 * string.Compare(a.FileModifiedDate, b.FileModifiedDate); } private bool CreateDir(string dirPath) @@ -441,17 +322,52 @@ public partial class FileDialog this.quickAccess.Add(new SideBarItem("Videos", Environment.GetFolderPath(Environment.SpecialFolder.MyVideos), FontAwesomeIcon.Video)); } - private SortingField GetNewSorting(int column) - => column switch + private void SortFields(SortingField sortingField, bool canChangeOrder = false) + { + switch (sortingField) { - 0 when this.currentSortingField is SortingField.FileName => SortingField.FileNameDescending, - 0 => SortingField.FileName, - 1 when this.currentSortingField is SortingField.Type => SortingField.TypeDescending, - 1 => SortingField.Type, - 2 when this.currentSortingField is SortingField.Size => SortingField.SizeDescending, - 2 => SortingField.Size, - 3 when this.currentSortingField is SortingField.Date => SortingField.DateDescending, - 3 => SortingField.Date, - _ => SortingField.None, - }; + case SortingField.FileName: + if (canChangeOrder && sortingField == this.currentSortingField) + { + this.sortDescending[0] = !this.sortDescending[0]; + } + + this.files.Sort(this.sortDescending[0] ? SortByFileNameDesc : SortByFileNameAsc); + break; + + case SortingField.Type: + if (canChangeOrder && sortingField == this.currentSortingField) + { + this.sortDescending[1] = !this.sortDescending[1]; + } + + this.files.Sort(this.sortDescending[1] ? SortByTypeDesc : SortByTypeAsc); + break; + + case SortingField.Size: + if (canChangeOrder && sortingField == this.currentSortingField) + { + this.sortDescending[2] = !this.sortDescending[2]; + } + + this.files.Sort(this.sortDescending[2] ? SortBySizeDesc : SortBySizeAsc); + break; + + case SortingField.Date: + if (canChangeOrder && sortingField == this.currentSortingField) + { + this.sortDescending[3] = !this.sortDescending[3]; + } + + this.files.Sort(this.sortDescending[3] ? SortByDateDesc : SortByDateAsc); + break; + } + + if (sortingField != SortingField.None) + { + this.currentSortingField = sortingField; + } + + this.ApplyFilteringOnFileList(); + } } diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialog.Filters.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialog.Filters.cs index 46f264354..85b380bee 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialog.Filters.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialog.Filters.cs @@ -8,11 +8,10 @@ namespace Dalamud.Interface.ImGuiFileDialog; /// </summary> public partial class FileDialog { - private List<FilterStruct> filters = []; - private FilterStruct selectedFilter; + private static Regex filterRegex = new(@"[^,{}]+(\{([^{}]*?)\})?", RegexOptions.Compiled); - [GeneratedRegex(@"[^,{}]+(\{([^{}]*?)\})?", RegexOptions.Compiled)] - private static partial Regex FilterRegex(); + private List<FilterStruct> filters = new(); + private FilterStruct selectedFilter; private void ParseFilters(string filters) { @@ -23,13 +22,13 @@ public partial class FileDialog if (filters.Length == 0) return; var currentFilterFound = false; - var matches = FilterRegex().Matches(filters); + var matches = filterRegex.Matches(filters); foreach (Match m in matches) { var match = m.Value; var filter = default(FilterStruct); - if (match.Contains('{')) + if (match.Contains("{")) { var exts = m.Groups[2].Value; filter = new FilterStruct @@ -43,7 +42,7 @@ public partial class FileDialog filter = new FilterStruct { Filter = match, - CollectionFilters = [], + CollectionFilters = new(), }; } @@ -90,7 +89,7 @@ public partial class FileDialog foreach (var file in this.files) { var show = true; - if (!string.IsNullOrEmpty(this.searchBuffer) && !file.FileName.Contains(this.searchBuffer, StringComparison.InvariantCultureIgnoreCase)) + if (!string.IsNullOrEmpty(this.searchBuffer) && !file.FileName.ToLowerInvariant().Contains(this.searchBuffer.ToLowerInvariant())) { show = false; } diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialog.Helpers.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialog.Helpers.cs index 7e5363673..57844c48b 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialog.Helpers.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialog.Helpers.cs @@ -12,7 +12,7 @@ public partial class FileDialog private static string BytesToString(long byteCount) { - string[] suf = [" B", " KB", " MB", " GB", " TB"]; + string[] suf = { " B", " KB", " MB", " GB", " TB" }; if (byteCount == 0) return "0" + suf[0]; var bytes = Math.Abs(byteCount); diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs index b1fc6e049..e4747b1e6 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialog.UI.cs @@ -3,10 +3,9 @@ using System.IO; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.ImGuiFileDialog; @@ -54,7 +53,7 @@ public partial class FileDialog windowVisible = ImGui.Begin(name, ref this.visible, this.WindowFlags); } - var wasClosed = false; + bool wasClosed = false; if (windowVisible) { if (!this.visible) @@ -122,15 +121,15 @@ public partial class FileDialog { if (iconMap == null) { - iconMap = []; - AddToIconMap(["mp4", "gif", "mov", "avi"], FontAwesomeIcon.FileVideo, miscTextColor); - AddToIconMap(["pdf"], FontAwesomeIcon.FilePdf, miscTextColor); - AddToIconMap(["png", "jpg", "jpeg", "tiff"], FontAwesomeIcon.FileImage, imageTextColor); - AddToIconMap(["cs", "json", "cpp", "h", "py", "xml", "yaml", "js", "html", "css", "ts", "java"], FontAwesomeIcon.FileCode, codeTextColor); - AddToIconMap(["txt", "md"], FontAwesomeIcon.FileAlt, standardTextColor); - AddToIconMap(["zip", "7z", "gz", "tar"], FontAwesomeIcon.FileArchive, miscTextColor); - AddToIconMap(["mp3", "m4a", "ogg", "wav"], FontAwesomeIcon.FileAudio, miscTextColor); - AddToIconMap(["csv"], FontAwesomeIcon.FileCsv, miscTextColor); + iconMap = new(); + AddToIconMap(new[] { "mp4", "gif", "mov", "avi" }, FontAwesomeIcon.FileVideo, miscTextColor); + AddToIconMap(new[] { "pdf" }, FontAwesomeIcon.FilePdf, miscTextColor); + AddToIconMap(new[] { "png", "jpg", "jpeg", "tiff" }, FontAwesomeIcon.FileImage, imageTextColor); + AddToIconMap(new[] { "cs", "json", "cpp", "h", "py", "xml", "yaml", "js", "html", "css", "ts", "java" }, FontAwesomeIcon.FileCode, codeTextColor); + AddToIconMap(new[] { "txt", "md" }, FontAwesomeIcon.FileAlt, standardTextColor); + AddToIconMap(new[] { "zip", "7z", "gz", "tar" }, FontAwesomeIcon.FileArchive, miscTextColor); + AddToIconMap(new[] { "mp3", "m4a", "ogg", "wav" }, FontAwesomeIcon.FileAudio, miscTextColor); + AddToIconMap(new[] { "csv" }, FontAwesomeIcon.FileCsv, miscTextColor); } return iconMap.TryGetValue(ext.ToLowerInvariant(), out var icon) ? icon : new IconColorItem @@ -153,7 +152,7 @@ public partial class FileDialog private void DrawPathComposer() { - ImGui.PushFont(InterfaceManager.IconFont); + ImGui.PushFont(UiBuilder.IconFont); if (ImGui.Button(this.pathInputActivated ? FontAwesomeIcon.Times.ToIconString() : FontAwesomeIcon.Edit.ToIconString())) { this.pathInputActivated = !this.pathInputActivated; @@ -168,7 +167,7 @@ public partial class FileDialog if (this.pathInputActivated) { ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - ImGui.InputText("##pathedit"u8, ref this.pathInputBuffer, 255); + ImGui.InputText("##pathedit", ref this.pathInputBuffer, 255); } else { @@ -206,7 +205,7 @@ public partial class FileDialog private void DrawSearchBar() { - ImGui.PushFont(InterfaceManager.IconFont); + ImGui.PushFont(UiBuilder.IconFont); if (ImGui.Button(FontAwesomeIcon.Home.ToIconString())) { this.SetPath("."); @@ -216,7 +215,7 @@ public partial class FileDialog if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Reset to current directory"u8); + ImGui.SetTooltip("Reset to current directory"); } ImGui.SameLine(); @@ -226,10 +225,10 @@ public partial class FileDialog if (!this.createDirectoryMode) { ImGui.SameLine(); - ImGui.Text("Search :"u8); + ImGui.TextUnformatted("Search :"); ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputText("##InputImGuiFileDialogSearchField"u8, ref this.searchBuffer, 255)) + if (ImGui.InputText("##InputImGuiFileDialogSearchField", ref this.searchBuffer, 255)) { this.ApplyFilteringOnFileList(); } @@ -240,7 +239,7 @@ public partial class FileDialog { if (this.flags.HasFlag(ImGuiFileDialogFlags.DisableCreateDirectoryButton)) return; - ImGui.PushFont(InterfaceManager.IconFont); + ImGui.PushFont(UiBuilder.IconFont); if (ImGui.Button(FontAwesomeIcon.FolderPlus.ToIconString()) && !this.createDirectoryMode) { this.createDirectoryMode = true; @@ -251,21 +250,21 @@ public partial class FileDialog if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Create Directory"u8); + ImGui.SetTooltip("Create Directory"); } if (this.createDirectoryMode) { ImGui.SameLine(); - ImGui.Text("New Directory Name"u8); + ImGui.TextUnformatted("New Directory Name"); ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X - Scaled(100)); - ImGui.InputText("##DirectoryFileName"u8, ref this.createDirectoryBuffer, 255); + ImGui.InputText("##DirectoryFileName", ref this.createDirectoryBuffer, 255); ImGui.SameLine(); - if (ImGui.Button("Ok"u8)) + if (ImGui.Button("Ok")) { if (this.CreateDir(this.createDirectoryBuffer)) { @@ -277,7 +276,7 @@ public partial class FileDialog ImGui.SameLine(); - if (ImGui.Button("Cancel"u8)) + if (ImGui.Button("Cancel")) { this.createDirectoryMode = false; } @@ -290,9 +289,9 @@ public partial class FileDialog if (!this.flags.HasFlag(ImGuiFileDialogFlags.HideSideBar)) { - if (ImGui.BeginChild("##FileDialog_ColumnChild"u8, size)) + if (ImGui.BeginChild("##FileDialog_ColumnChild", size)) { - ImGui.Columns(2, "##FileDialog_Columns"u8); + ImGui.Columns(2, "##FileDialog_Columns"); this.DrawSideBar(size with { X = Scaled(150) }); @@ -314,7 +313,7 @@ public partial class FileDialog private void DrawSideBar(Vector2 size) { - if (ImGui.BeginChild("##FileDialog_SideBar"u8, size)) + if (ImGui.BeginChild("##FileDialog_SideBar", size)) { ImGui.SetCursorPosY(ImGui.GetCursorPosY() + Scaled(5)); @@ -329,10 +328,10 @@ public partial class FileDialog this.selectedSideBar = qa.Text; } - ImGui.PushFont(InterfaceManager.IconFont); + ImGui.PushFont(UiBuilder.IconFont); ImGui.SameLine(); ImGui.SetCursorPosX(0); - ImGui.Text(qa.Icon.ToIconString()); + ImGui.TextUnformatted(qa.Icon.ToIconString()); ImGui.PopFont(); ImGui.PopID(); @@ -344,14 +343,14 @@ public partial class FileDialog private unsafe void DrawFileListView(Vector2 size) { - if (!ImGui.BeginChild("##FileDialog_FileList"u8, size)) + if (!ImGui.BeginChild("##FileDialog_FileList", size)) { ImGui.EndChild(); return; } const ImGuiTableFlags tableFlags = ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg | ImGuiTableFlags.Hideable | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoHostExtendX; - if (ImGui.BeginTable("##FileTable"u8, 4, tableFlags, size)) + if (ImGui.BeginTable("##FileTable", 4, tableFlags, size)) { ImGui.TableSetupScrollFreeze(0, 1); @@ -359,10 +358,10 @@ public partial class FileDialog var hideSize = this.flags.HasFlag(ImGuiFileDialogFlags.HideColumnSize); var hideDate = this.flags.HasFlag(ImGuiFileDialogFlags.HideColumnDate); - ImGui.TableSetupColumn(" File Name"u8, ImGuiTableColumnFlags.WidthStretch, -1, 0); - ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthFixed | (hideType ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 1); - ImGui.TableSetupColumn("Size"u8, ImGuiTableColumnFlags.WidthFixed | (hideSize ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 2); - ImGui.TableSetupColumn("Date"u8, ImGuiTableColumnFlags.WidthFixed | (hideDate ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 3); + ImGui.TableSetupColumn(" File Name", ImGuiTableColumnFlags.WidthStretch, -1, 0); + ImGui.TableSetupColumn("Type", ImGuiTableColumnFlags.WidthFixed | (hideType ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 1); + ImGui.TableSetupColumn("Size", ImGuiTableColumnFlags.WidthFixed | (hideSize ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 2); + ImGui.TableSetupColumn("Date", ImGuiTableColumnFlags.WidthFixed | (hideDate ? ImGuiTableColumnFlags.DefaultHide : ImGuiTableColumnFlags.None), -1, 3); ImGui.TableNextRow(ImGuiTableRowFlags.Headers); for (var column = 0; column < 4; column++) @@ -374,14 +373,32 @@ public partial class FileDialog ImGui.PopID(); if (ImGui.IsItemClicked()) { - var sorting = this.GetNewSorting(column); - this.SortFields(sorting); + if (column == 0) + { + this.SortFields(SortingField.FileName, true); + } + else if (column == 1) + { + this.SortFields(SortingField.Type, true); + } + else if (column == 2) + { + this.SortFields(SortingField.Size, true); + } + else + { + this.SortFields(SortingField.Date, true); + } } } if (this.filteredFiles.Count > 0) { - var clipper = ImGui.ImGuiListClipper(); + ImGuiListClipperPtr clipper; + unsafe + { + clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + } lock (this.filesLock) { @@ -414,18 +431,18 @@ public partial class FileDialog if (ImGui.TableNextColumn()) { - ImGui.Text(file.Ext); + ImGui.TextUnformatted(file.Ext); } if (ImGui.TableNextColumn()) { if (file.Type == FileStructType.File) { - ImGui.Text(file.FormattedFileSize + " "); + ImGui.TextUnformatted(file.FormattedFileSize + " "); } else { - ImGui.Text(" "u8); + ImGui.TextUnformatted(" "); } } @@ -433,7 +450,7 @@ public partial class FileDialog { var sz = ImGui.CalcTextSize(file.FileModifiedDate); ImGui.SetNextItemWidth(sz.X + Scaled(5)); - ImGui.Text(file.FileModifiedDate + " "); + ImGui.TextUnformatted(file.FileModifiedDate + " "); } ImGui.PopStyleColor(); @@ -476,9 +493,9 @@ public partial class FileDialog { const ImGuiSelectableFlags flags = ImGuiSelectableFlags.AllowDoubleClick | ImGuiSelectableFlags.SpanAllColumns; - ImGui.PushFont(InterfaceManager.IconFont); + ImGui.PushFont(UiBuilder.IconFont); - ImGui.Text(icon.ToIconString()); + ImGui.TextUnformatted(icon.ToIconString()); ImGui.PopFont(); ImGui.SameLine(Scaled(25f)); @@ -657,7 +674,6 @@ public partial class FileDialog this.fileNameBuffer = $"{this.selectedFileNames.Count} files Selected"; } - this.SelectionChanged(this, this.GetFilePathName()); if (setLastSelection) { this.lastSelectedFileName = name; @@ -683,11 +699,11 @@ public partial class FileDialog if (this.IsDirectoryMode()) { - ImGui.Text("Directory Path :"u8); + ImGui.TextUnformatted("Directory Path :"); } else { - ImGui.Text("File Name :"u8); + ImGui.TextUnformatted("File Name :"); } ImGui.SameLine(); @@ -702,7 +718,7 @@ public partial class FileDialog ImGui.SetNextItemWidth(width); if (selectOnly) ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.5f); - ImGui.InputText("##FileName"u8, ref this.fileNameBuffer, 255, selectOnly ? ImGuiInputTextFlags.ReadOnly : ImGuiInputTextFlags.None); + ImGui.InputText("##FileName", ref this.fileNameBuffer, 255, selectOnly ? ImGuiInputTextFlags.ReadOnly : ImGuiInputTextFlags.None); if (selectOnly) ImGui.PopStyleVar(); if (this.filters.Count > 0) @@ -711,7 +727,7 @@ public partial class FileDialog var needToApplyNewFilter = false; ImGui.SetNextItemWidth(Scaled(150f)); - if (ImGui.BeginCombo("##Filters"u8, this.selectedFilter.Filter, ImGuiComboFlags.None)) + if (ImGui.BeginCombo("##Filters", this.selectedFilter.Filter, ImGuiComboFlags.None)) { var idx = 0; foreach (var filter in this.filters) @@ -743,7 +759,7 @@ public partial class FileDialog var disableOk = string.IsNullOrEmpty(this.fileNameBuffer) || (selectOnly && !this.IsItemSelected()); if (disableOk) ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.5f); - if (ImGui.Button("Ok"u8) && !disableOk) + if (ImGui.Button("Ok") && !disableOk) { this.isOk = true; res = true; @@ -753,7 +769,7 @@ public partial class FileDialog ImGui.SameLine(); - if (ImGui.Button("Cancel"u8)) + if (ImGui.Button("Cancel")) { this.isOk = false; res = true; @@ -806,8 +822,8 @@ public partial class FileDialog ImGui.OpenPopup(name); if (ImGui.BeginPopupModal(name, ref open, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove)) { - ImGui.Text("Would you like to Overwrite it ?"u8); - if (ImGui.Button("Confirm"u8)) + ImGui.TextUnformatted("Would you like to Overwrite it ?"); + if (ImGui.Button("Confirm")) { this.okResultToConfirm = false; this.isOk = true; @@ -816,7 +832,7 @@ public partial class FileDialog } ImGui.SameLine(); - if (ImGui.Button("Cancel"u8)) + if (ImGui.Button("Cancel")) { this.okResultToConfirm = false; this.isOk = false; diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs index b9ac634ab..1d31642d3 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialog.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.ImGuiFileDialog; @@ -30,7 +30,7 @@ public partial class FileDialog private string currentPath; private string fileNameBuffer = string.Empty; - private List<string> pathDecomposition = []; + private List<string> pathDecomposition = new(); private bool pathClicked = true; private bool pathInputActivated = false; private string pathInputBuffer = string.Empty; @@ -46,12 +46,12 @@ public partial class FileDialog private string searchBuffer = string.Empty; private string lastSelectedFileName = string.Empty; - private List<string> selectedFileNames = []; + private List<string> selectedFileNames = new(); private float footerHeight = 0; private string selectedSideBar = string.Empty; - private List<SideBarItem> quickAccess = []; + private List<SideBarItem> quickAccess = new(); /// <summary> /// Initializes a new instance of the <see cref="FileDialog"/> class. @@ -97,8 +97,6 @@ public partial class FileDialog this.SetupSideBar(); } - public event EventHandler<string>? SelectionChanged; - /// <summary> /// Shows the dialog. /// </summary> @@ -132,12 +130,12 @@ public partial class FileDialog { if (!this.flags.HasFlag(ImGuiFileDialogFlags.SelectOnly)) { - return [this.GetFilePathName()]; + return new List<string> { this.GetFilePathName() }; } if (this.IsDirectoryMode() && this.selectedFileNames.Count == 0) { - return [this.GetFilePathName()]; // current directory + return new List<string> { this.GetFilePathName() }; // current directory } var fullPaths = this.selectedFileNames.Where(x => !string.IsNullOrEmpty(x)).Select(x => Path.Combine(this.currentPath, x)); diff --git a/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs b/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs index 7332cd735..ae9c8ef38 100644 --- a/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs +++ b/Dalamud/Interface/ImGuiFileDialog/FileDialogManager.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.ImGuiFileDialog; @@ -9,33 +9,19 @@ namespace Dalamud.Interface.ImGuiFileDialog; /// </summary> public class FileDialogManager { - /// <summary> Gets or sets a function that returns the desired default sort order in the file dialog. </summary> - public Func<FileDialog.SortingField>? GetDefaultSortOrder { get; set; } - - /// <summary> Gets or sets an action to invoke when a file dialog changes its sort order. </summary> - public Action<FileDialog.SortingField>? SetDefaultSortOrder { get; set; } - #pragma warning disable SA1401 -#pragma warning disable SA1201 - /// <summary> Additional quick access items for the sidebar.</summary> - public readonly List<(string Name, string Path, FontAwesomeIcon Icon, int Position)> CustomSideBarItems = []; + /// <summary> Additional quick access items for the side bar.</summary> + public readonly List<(string Name, string Path, FontAwesomeIcon Icon, int Position)> CustomSideBarItems = new(); /// <summary> Additional flags with which to draw the window. </summary> public ImGuiWindowFlags AddedWindowFlags = ImGuiWindowFlags.None; #pragma warning restore SA1401 -#pragma warning restore SA1201 private FileDialog? dialog; private Action<bool, string>? callback; private Action<bool, List<string>>? multiCallback; private string savedPath = "."; - /// <summary> - /// Event fires when a new file is selected by the user - /// </summary> - /// <returns>Returns the path of the file as a string</returns> - public event EventHandler<string>? SelectionChanged; - /// <summary> /// Create a dialog which selects an already existing folder. /// </summary> @@ -181,8 +167,6 @@ public class FileDialogManager this.multiCallback = null; } - private void OnSelectionChange(object sender, string path) => this.SelectionChanged?.Invoke(sender, path); - private void SetDialog( string id, string title, @@ -205,43 +189,10 @@ public class FileDialogManager this.callback = callback as Action<bool, string>; } - if (this.dialog is not null) - { - this.dialog.SortOrderChanged -= this.OnSortOrderChange; - this.dialog.SelectionChanged -= this.OnSelectionChange; - } - this.dialog = new FileDialog(id, title, filters, path, defaultFileName, defaultExtension, selectionCountMax, isModal, flags); - if (this.GetDefaultSortOrder is not null) - { - try - { - var order = this.GetDefaultSortOrder(); - this.dialog.SortFields(order); - } - catch - { - // ignored. - } - } - - this.dialog.SortOrderChanged += this.OnSortOrderChange; - this.dialog.SelectionChanged += this.OnSelectionChange; this.dialog.WindowFlags |= this.AddedWindowFlags; foreach (var (name, location, icon, position) in this.CustomSideBarItems) this.dialog.SetQuickAccess(name, location, icon, position); this.dialog.Show(); } - - private void OnSortOrderChange(FileDialog.SortingField sortOrder) - { - try - { - this.SetDefaultSortOrder?.Invoke(sortOrder); - } - catch - { - // ignored. - } - } } diff --git a/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs b/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs index 2abdd3403..f03518ada 100644 --- a/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs +++ b/Dalamud/Interface/ImGuiFontChooserDialog/SingleFontChooserDialog.cs @@ -5,7 +5,6 @@ using System.Text; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.FontIdentifier; @@ -14,6 +13,8 @@ using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; using Dalamud.Utility; +using ImGuiNET; + using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -32,10 +33,10 @@ public sealed class SingleFontChooserDialog : IDisposable private const float MaxFontSizePt = 127; - private static readonly List<IFontId> EmptyIFontList = []; + private static readonly List<IFontId> EmptyIFontList = new(); private static readonly (string Name, float Value)[] FontSizeList = - [ + { ("9.6", 9.6f), ("10", 10f), ("12", 12f), @@ -52,7 +53,7 @@ public sealed class SingleFontChooserDialog : IDisposable ("46", 46), ("68", 68), ("90", 90), - ]; + }; private static int counterStatic; @@ -88,7 +89,7 @@ public sealed class SingleFontChooserDialog : IDisposable private bool popupSizeChanged; private Vector2 popupPosition = new(float.NaN); private Vector2 popupSize = new(float.NaN); - + /// <summary>Initializes a new instance of the <see cref="SingleFontChooserDialog"/> class.</summary> /// <param name="uiBuilder">The relevant instance of UiBuilder.</param> /// <param name="isGlobalScaled">Whether the fonts in the atlas is global scaled.</param> @@ -206,8 +207,8 @@ public sealed class SingleFontChooserDialog : IDisposable /// <summary>Gets or sets a value indicating whether this popup should be modal, blocking everything behind from /// being interacted.</summary> - /// <remarks>If <c>true</c>, then <see cref="ImGui.BeginPopupModal(ImU8String, ref bool, ImGuiWindowFlags)"/> will be - /// used. Otherwise, <see cref="ImGui.Begin(ImU8String, ref bool, ImGuiWindowFlags)"/> will be used.</remarks> + /// <remarks>If <c>true</c>, then <see cref="ImGui.BeginPopupModal(string, ref bool, ImGuiWindowFlags)"/> will be + /// used. Otherwise, <see cref="ImGui.Begin(string, ref bool, ImGuiWindowFlags)"/> will be used.</remarks> public bool IsModal { get; set; } = true; /// <summary>Gets or sets the window flags.</summary> @@ -273,7 +274,7 @@ public sealed class SingleFontChooserDialog : IDisposable return new Vector2(40, 30) * ImGui.GetTextLineHeight(); } - /// <inheritdoc/> + /// <inheritdoc/> public void Dispose() { this.fontHandle?.Dispose(); @@ -392,16 +393,16 @@ public sealed class SingleFontChooserDialog : IDisposable var baseOffset = ImGui.GetCursorPos() - windowPad; var actionSize = Vector2.Zero; - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("OK"u8)); - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Cancel"u8)); - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Refresh"u8)); - actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Reset"u8)); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("OK")); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Cancel")); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Refresh")); + actionSize = Vector2.Max(actionSize, ImGui.CalcTextSize("Reset")); actionSize += framePad * 2; var bodySize = ImGui.GetContentRegionAvail(); ImGui.SetCursorPos(baseOffset + windowPad); if (ImGui.BeginChild( - "##choicesBlock"u8, + "##choicesBlock", bodySize with { X = bodySize.X - windowPad.X - actionSize.X }, false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse)) @@ -413,7 +414,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.SetCursorPos(baseOffset + windowPad + new Vector2(bodySize.X - actionSize.X, 0)); - if (ImGui.BeginChild("##actionsBlock"u8, bodySize with { X = actionSize.X })) + if (ImGui.BeginChild("##actionsBlock", bodySize with { X = actionSize.X })) { this.DrawActionButtons(actionSize); } @@ -431,7 +432,7 @@ public sealed class SingleFontChooserDialog : IDisposable this.firstDrawAfterRefresh = false; } - private static float GetDistanceFromMonitor(Vector2 point, ImGuiPlatformMonitor monitor) + private static float GetDistanceFromMonitor(Vector2 point, ImGuiPlatformMonitorPtr monitor) { var lt = monitor.MainPos; var rb = monitor.MainPos + monitor.MainSize; @@ -461,25 +462,25 @@ public sealed class SingleFontChooserDialog : IDisposable var tableSize = ImGui.GetContentRegionAvail() - new Vector2(0, ImGui.GetStyle().WindowPadding.Y + previewHeight + advancedOptionsHeight); if (ImGui.BeginChild( - "##tableContainer"u8, + "##tableContainer", tableSize, false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse) - && ImGui.BeginTable("##table"u8, 3, ImGuiTableFlags.None)) + && ImGui.BeginTable("##table", 3, ImGuiTableFlags.None)) { ImGui.PushStyleColor(ImGuiCol.TableHeaderBg, Vector4.Zero); ImGui.PushStyleColor(ImGuiCol.HeaderHovered, Vector4.Zero); ImGui.PushStyleColor(ImGuiCol.HeaderActive, Vector4.Zero); ImGui.TableSetupColumn( - "Font:##familyColumn"u8, + "Font:##familyColumn", ImGuiTableColumnFlags.WidthStretch, 0.4f); ImGui.TableSetupColumn( - "Style:##fontColumn"u8, + "Style:##fontColumn", ImGuiTableColumnFlags.WidthStretch, 0.4f); ImGui.TableSetupColumn( - "Size:##sizeColumn"u8, + "Size:##sizeColumn", ImGuiTableColumnFlags.WidthStretch, 0.2f); ImGui.TableHeadersRow(); @@ -511,7 +512,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.EndChild(); - ImGui.Checkbox("Show advanced options"u8, ref this.useAdvancedOptions); + ImGui.Checkbox("Show advanced options", ref this.useAdvancedOptions); if (this.useAdvancedOptions) { if (this.DrawAdvancedOptions()) @@ -540,29 +541,40 @@ public sealed class SingleFontChooserDialog : IDisposable if (this.fontHandle is null) { ImGui.SetCursorPos(ImGui.GetCursorPos() + ImGui.GetStyle().FramePadding); - ImGui.Text("Select a font."u8); + ImGui.TextUnformatted("Select a font."); } else if (this.fontHandle.LoadException is { } loadException) { ImGui.SetCursorPos(ImGui.GetCursorPos() + ImGui.GetStyle().FramePadding); ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudRed); - ImGui.Text(loadException.Message); + ImGui.TextUnformatted(loadException.Message); ImGui.PopStyleColor(); } else if (!this.fontHandle.Available) { ImGui.SetCursorPos(ImGui.GetCursorPos() + ImGui.GetStyle().FramePadding); - ImGui.Text("Loading font..."u8); + ImGui.TextUnformatted("Loading font..."); } else { ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); using (this.fontHandle?.Push()) { - ImGui.InputTextMultiline( - "##fontPreviewText"u8, - this.fontPreviewText, - ImGui.GetContentRegionAvail()); + unsafe + { + fixed (byte* buf = this.fontPreviewText) + fixed (byte* label = "##fontPreviewText"u8) + { + ImGuiNative.igInputTextMultiline( + label, + buf, + (uint)this.fontPreviewText.Length, + ImGui.GetContentRegionAvail(), + ImGuiInputTextFlags.None, + null, + null); + } + } } } } @@ -572,14 +584,14 @@ public sealed class SingleFontChooserDialog : IDisposable if (this.fontFamilies?.IsCompleted is not true) { ImGui.SetScrollY(0); - ImGui.Text("Loading..."u8); + ImGui.TextUnformatted("Loading..."); return false; } if (!this.fontFamilies.IsCompletedSuccessfully) { ImGui.SetScrollY(0); - ImGui.Text("Error: " + this.fontFamilies.Exception); + ImGui.TextUnformatted("Error: " + this.fontFamilies.Exception); return false; } @@ -594,19 +606,19 @@ public sealed class SingleFontChooserDialog : IDisposable var changed = false; if (ImGui.InputText( - "##familySearch"u8, + "##familySearch", ref this.familySearch, 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory, - (ref ImGuiInputTextCallbackData data) => + data => { if (families.Count == 0) return 0; var baseIndex = this.selectedFamilyIndex; - if (data.SelectionStart == 0 && data.SelectionEnd == data.BufTextLen) + if (data->SelectionStart == 0 && data->SelectionEnd == data->BufTextLen) { - switch (data.EventKey) + switch (data->EventKey) { case ImGuiKey.DownArrow: this.selectedFamilyIndex = (this.selectedFamilyIndex + 1) % families.Count; @@ -622,13 +634,13 @@ public sealed class SingleFontChooserDialog : IDisposable if (changed) { ImGuiHelpers.SetTextFromCallback( - ref data, + data, this.ExtractName(families[this.selectedFamilyIndex])); } } else { - switch (data.EventKey) + switch (data->EventKey) { case ImGuiKey.DownArrow: this.selectedFamilyIndex = families.FindIndex( @@ -677,9 +689,9 @@ public sealed class SingleFontChooserDialog : IDisposable } } - if (ImGui.BeginChild("##familyList"u8, ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("##familyList", ImGui.GetContentRegionAvail())) { - var clipper = ImGui.ImGuiListClipper(); + var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); var lineHeight = ImGui.GetTextLineHeightWithSpacing(); if ((changed || this.firstDrawAfterRefresh) && this.selectedFamilyIndex != -1) @@ -696,7 +708,7 @@ public sealed class SingleFontChooserDialog : IDisposable { if (i < 0) { - ImGui.Text(" "u8); + ImGui.TextUnformatted(" "); continue; } @@ -736,13 +748,13 @@ public sealed class SingleFontChooserDialog : IDisposable { if (this.fontFamilies?.IsCompleted is not true) { - ImGui.Text("Loading..."u8); + ImGui.TextUnformatted("Loading..."); return changed; } if (!this.fontFamilies.IsCompletedSuccessfully) { - ImGui.Text("Error: " + this.fontFamilies.Exception); + ImGui.TextUnformatted("Error: " + this.fontFamilies.Exception); return changed; } @@ -762,19 +774,19 @@ public sealed class SingleFontChooserDialog : IDisposable } if (ImGui.InputText( - "##fontSearch"u8, + "##fontSearch", ref this.fontSearch, 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory, - (ref ImGuiInputTextCallbackData data) => + data => { if (fonts.Count == 0) return 0; var baseIndex = this.selectedFontIndex; - if (data.SelectionStart == 0 && data.SelectionEnd == data.BufTextLen) + if (data->SelectionStart == 0 && data->SelectionEnd == data->BufTextLen) { - switch (data.EventKey) + switch (data->EventKey) { case ImGuiKey.DownArrow: this.selectedFontIndex = (this.selectedFontIndex + 1) % fonts.Count; @@ -789,13 +801,13 @@ public sealed class SingleFontChooserDialog : IDisposable if (changed) { ImGuiHelpers.SetTextFromCallback( - ref data, + data, this.ExtractName(fonts[this.selectedFontIndex])); } } else { - switch (data.EventKey) + switch (data->EventKey) { case ImGuiKey.DownArrow: this.selectedFontIndex = fonts.FindIndex( @@ -844,9 +856,9 @@ public sealed class SingleFontChooserDialog : IDisposable } } - if (ImGui.BeginChild("##fontList"u8)) + if (ImGui.BeginChild("##fontList")) { - var clipper = ImGui.ImGuiListClipper(); + var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); var lineHeight = ImGui.GetTextLineHeightWithSpacing(); if ((changed || this.firstDrawAfterRefresh) && this.selectedFontIndex != -1) @@ -863,7 +875,7 @@ public sealed class SingleFontChooserDialog : IDisposable { if (i < 0) { - ImGui.Text(" "u8); + ImGui.TextUnformatted(" "); continue; } @@ -910,14 +922,14 @@ public sealed class SingleFontChooserDialog : IDisposable } if (ImGui.InputText( - "##fontSizeSearch"u8, + "##fontSizeSearch", ref this.fontSizeSearch, 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory | ImGuiInputTextFlags.CharsDecimal, - (ref ImGuiInputTextCallbackData data) => + data => { - switch (data.EventKey) + switch (data->EventKey) { case ImGuiKey.DownArrow: this.selectedFont = this.selectedFont with @@ -936,7 +948,7 @@ public sealed class SingleFontChooserDialog : IDisposable } if (changed) - ImGuiHelpers.SetTextFromCallback(ref data, $"{this.selectedFont.SizePt:0.##}"); + ImGuiHelpers.SetTextFromCallback(data, $"{this.selectedFont.SizePt:0.##}"); return 0; })) @@ -948,9 +960,9 @@ public sealed class SingleFontChooserDialog : IDisposable } } - if (ImGui.BeginChild("##fontSizeList"u8)) + if (ImGui.BeginChild("##fontSizeList")) { - var clipper = ImGui.ImGuiListClipper(); + var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); var lineHeight = ImGui.GetTextLineHeightWithSpacing(); if (changed && this.selectedFontIndex != -1) @@ -967,7 +979,7 @@ public sealed class SingleFontChooserDialog : IDisposable { if (i < 0) { - ImGui.Text(" "u8); + ImGui.TextUnformatted(" "); continue; } @@ -1011,36 +1023,36 @@ public sealed class SingleFontChooserDialog : IDisposable { var changed = false; - if (!ImGui.BeginTable("##advancedOptions"u8, 4)) + if (!ImGui.BeginTable("##advancedOptions", 4)) return false; - var labelWidth = ImGui.CalcTextSize("Letter Spacing:"u8).X; - labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Offset:"u8).X); - labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Line Height:"u8).X); + var labelWidth = ImGui.CalcTextSize("Letter Spacing:").X; + labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Offset:").X); + labelWidth = Math.Max(labelWidth, ImGui.CalcTextSize("Line Height:").X); labelWidth += ImGui.GetStyle().FramePadding.X; - var inputWidth = ImGui.CalcTextSize("000.000"u8).X + (ImGui.GetStyle().FramePadding.X * 2); + var inputWidth = ImGui.CalcTextSize("000.000").X + (ImGui.GetStyle().FramePadding.X * 2); ImGui.TableSetupColumn( - "##inputLabelColumn"u8, + "##inputLabelColumn", ImGuiTableColumnFlags.WidthFixed, labelWidth); ImGui.TableSetupColumn( - "##input1Column"u8, + "##input1Column", ImGuiTableColumnFlags.WidthFixed, inputWidth); ImGui.TableSetupColumn( - "##input2Column"u8, + "##input2Column", ImGuiTableColumnFlags.WidthFixed, inputWidth); ImGui.TableSetupColumn( - "##fillerColumn"u8, + "##fillerColumn", ImGuiTableColumnFlags.WidthStretch, 1f); ImGui.TableNextRow(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.Text("Offset:"u8); + ImGui.TextUnformatted("Offset:"); ImGui.TableNextColumn(); if (FloatInputText( @@ -1071,7 +1083,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.TableNextRow(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.Text("Letter Spacing:"u8); + ImGui.TextUnformatted("Letter Spacing:"); ImGui.TableNextColumn(); if (FloatInputText( @@ -1086,7 +1098,7 @@ public sealed class SingleFontChooserDialog : IDisposable ImGui.TableNextRow(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.Text("Line Height:"u8); + ImGui.TextUnformatted("Line Height:"); ImGui.TableNextColumn(); if (FloatInputText( @@ -1119,25 +1131,25 @@ public sealed class SingleFontChooserDialog : IDisposable 255, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.CallbackHistory | ImGuiInputTextFlags.CharsDecimal, - (ref ImGuiInputTextCallbackData data) => + data => { - switch (data.EventKey) + switch (data->EventKey) { case ImGuiKey.DownArrow: changed2 = true; value = Math.Min(max, (MathF.Round(value / step) * step) + step); - ImGuiHelpers.SetTextFromCallback(ref data, $"{value:0.##}"); + ImGuiHelpers.SetTextFromCallback(data, $"{value:0.##}"); break; case ImGuiKey.UpArrow: changed2 = true; value = Math.Max(min, (MathF.Round(value / step) * step) - step); - ImGuiHelpers.SetTextFromCallback(ref data, $"{value:0.##}"); + ImGuiHelpers.SetTextFromCallback(data, $"{value:0.##}"); break; } return 0; }); - + if (stylePushed) ImGui.PopStyleColor(); @@ -1160,15 +1172,15 @@ public sealed class SingleFontChooserDialog : IDisposable || this.FontFamilyExcludeFilter?.Invoke(this.selectedFont.FontId.Family) is true) { ImGui.BeginDisabled(); - ImGui.Button("OK"u8, buttonSize); + ImGui.Button("OK", buttonSize); ImGui.EndDisabled(); } - else if (ImGui.Button("OK"u8, buttonSize)) + else if (ImGui.Button("OK", buttonSize)) { this.tcs.SetResult(this.selectedFont); } - if (ImGui.Button("Cancel"u8, buttonSize)) + if (ImGui.Button("Cancel", buttonSize)) { this.Cancel(); } @@ -1179,10 +1191,10 @@ public sealed class SingleFontChooserDialog : IDisposable { isFirst = doRefresh = this.fontFamilies is null; ImGui.BeginDisabled(); - ImGui.Button("Refresh"u8, buttonSize); + ImGui.Button("Refresh", buttonSize); ImGui.EndDisabled(); } - else if (ImGui.Button("Refresh"u8, buttonSize)) + else if (ImGui.Button("Refresh", buttonSize)) { doRefresh = true; } @@ -1219,7 +1231,7 @@ public sealed class SingleFontChooserDialog : IDisposable if (this.useAdvancedOptions) { - if (ImGui.Button("Reset"u8, buttonSize)) + if (ImGui.Button("Reset", buttonSize)) { this.selectedFont = this.selectedFont with { @@ -1236,7 +1248,7 @@ public sealed class SingleFontChooserDialog : IDisposable } private void UpdateSelectedFamilyAndFontIndices( - List<IFontFamilyId> fonts, + IReadOnlyList<IFontFamilyId> fonts, string familyName, string fontName) { diff --git a/Dalamud/Interface/ImGuiNotification/IActiveNotification.cs b/Dalamud/Interface/ImGuiNotification/IActiveNotification.cs index d39fe6bee..332516315 100644 --- a/Dalamud/Interface/ImGuiNotification/IActiveNotification.cs +++ b/Dalamud/Interface/ImGuiNotification/IActiveNotification.cs @@ -1,6 +1,9 @@ using System.Threading; +using System.Threading.Tasks; using Dalamud.Interface.ImGuiNotification.EventArgs; +using Dalamud.Interface.Internal; +using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Interface.ImGuiNotification; @@ -49,6 +52,64 @@ public interface IActiveNotification : INotification /// <remarks>This does not override <see cref="INotification.HardExpiry"/>.</remarks> void ExtendBy(TimeSpan extension); + /// <summary>Sets the icon from <see cref="IDalamudTextureWrap"/>, overriding the icon.</summary> + /// <param name="textureWrap">The new texture wrap to use, or null to clear and revert back to the icon specified + /// from <see cref="INotification.Icon"/>.</param> + /// <remarks> + /// <para>The texture passed will be disposed when the notification is dismissed or a new different texture is set + /// via another call to this function or overwriting the property. You do not have to dispose it yourself.</para> + /// <para>If <see cref="DismissReason"/> is not <c>null</c>, then calling this function will simply dispose the + /// passed <paramref name="textureWrap"/> without actually updating the icon.</para> + /// </remarks> + void SetIconTexture(IDalamudTextureWrap? textureWrap); + + /// <summary>Sets the icon from <see cref="IDalamudTextureWrap"/>, overriding the icon, once the given task + /// completes.</summary> + /// <param name="textureWrapTask">The task that will result in a new texture wrap to use, or null to clear and + /// revert back to the icon specified from <see cref="INotification.Icon"/>.</param> + /// <remarks> + /// <para>The texture resulted from the passed <see cref="Task{TResult}"/> will be disposed when the notification + /// is dismissed or a new different texture is set via another call to this function over overwriting the property. + /// You do not have to dispose the resulted instance of <see cref="IDalamudTextureWrap"/> yourself.</para> + /// <para>If the task fails for any reason, the exception will be silently ignored and the icon specified from + /// <see cref="INotification.Icon"/> will be used instead.</para> + /// <para>If <see cref="DismissReason"/> is not <c>null</c>, then calling this function will simply dispose the + /// result of the passed <paramref name="textureWrapTask"/> without actually updating the icon.</para> + /// </remarks> + void SetIconTexture(Task<IDalamudTextureWrap?>? textureWrapTask); + + /// <summary>Sets the icon from <see cref="IDalamudTextureWrap"/>, overriding the icon.</summary> + /// <param name="textureWrap">The new texture wrap to use, or null to clear and revert back to the icon specified + /// from <see cref="INotification.Icon"/>.</param> + /// <param name="leaveOpen">Whether to keep the passed <paramref name="textureWrap"/> not disposed.</param> + /// <remarks> + /// <para>If <paramref name="leaveOpen"/> is <c>false</c>, the texture passed will be disposed when the + /// notification is dismissed or a new different texture is set via another call to this function. You do not have + /// to dispose it yourself.</para> + /// <para>If <see cref="DismissReason"/> is not <c>null</c> and <paramref name="leaveOpen"/> is <c>false</c>, then + /// calling this function will simply dispose the passed <paramref name="textureWrap"/> without actually updating + /// the icon.</para> + /// </remarks> + void SetIconTexture(IDalamudTextureWrap? textureWrap, bool leaveOpen); + + /// <summary>Sets the icon from <see cref="IDalamudTextureWrap"/>, overriding the icon, once the given task + /// completes.</summary> + /// <param name="textureWrapTask">The task that will result in a new texture wrap to use, or null to clear and + /// revert back to the icon specified from <see cref="INotification.Icon"/>.</param> + /// <param name="leaveOpen">Whether to keep the result from the passed <paramref name="textureWrapTask"/> not + /// disposed.</param> + /// <remarks> + /// <para>If <paramref name="leaveOpen"/> is <c>false</c>, the texture resulted from the passed + /// <see cref="Task{TResult}"/> will be disposed when the notification is dismissed or a new different texture is + /// set via another call to this function. You do not have to dispose the resulted instance of + /// <see cref="IDalamudTextureWrap"/> yourself.</para> + /// <para>If the task fails for any reason, the exception will be silently ignored and the icon specified from + /// <see cref="INotification.Icon"/> will be used instead.</para> + /// <para>If <see cref="DismissReason"/> is not <c>null</c>, then calling this function will simply dispose the + /// result of the passed <paramref name="textureWrapTask"/> without actually updating the icon.</para> + /// </remarks> + void SetIconTexture(Task<IDalamudTextureWrap?>? textureWrapTask, bool leaveOpen); + /// <summary>Generates a new value to use for <see cref="Id"/>.</summary> /// <returns>The new value.</returns> internal static long CreateNewId() => Interlocked.Increment(ref idCounter); diff --git a/Dalamud/Interface/ImGuiNotification/INotification.cs b/Dalamud/Interface/ImGuiNotification/INotification.cs index 0b15d2398..eab0fd131 100644 --- a/Dalamud/Interface/ImGuiNotification/INotification.cs +++ b/Dalamud/Interface/ImGuiNotification/INotification.cs @@ -1,4 +1,8 @@ -using Dalamud.Interface.Textures; +using System.Threading.Tasks; + +using Dalamud.Interface.Internal; +using Dalamud.Interface.Textures.TextureWraps; +using Dalamud.Plugin.Services; namespace Dalamud.Interface.ImGuiNotification; @@ -18,12 +22,35 @@ public interface INotification /// <summary>Gets or sets the type of the notification.</summary> NotificationType Type { get; set; } - /// <summary>Gets or sets the icon source, in case <see cref="IconTexture"/> is not set. + /// <summary>Gets or sets the icon source, in case <see cref="IconTextureTask"/> is not set or the task has faulted. /// </summary> INotificationIcon? Icon { get; set; } - /// <summary>Gets or sets a texture that will be used in place of <see cref="Icon"/> if set.</summary> - public ISharedImmediateTexture? IconTexture { get; set; } + /// <summary>Gets or sets a texture wrap that will be used in place of <see cref="Icon"/> if set.</summary> + /// <remarks> + /// <para>A texture wrap set via this property will <b>NOT</b> be disposed when the notification is dismissed. + /// Use <see cref="IActiveNotification.SetIconTexture(IDalamudTextureWrap?)"/> or + /// <see cref="IActiveNotification.SetIconTexture(Task{IDalamudTextureWrap?}?)"/> to use a texture, after calling + /// <see cref="INotificationManager.AddNotification"/>. Call either of those functions with <c>null</c> to revert + /// the effective icon back to this property.</para> + /// <para>This property and <see cref="IconTextureTask"/> are bound together. If the task is not <c>null</c> but + /// <see cref="Task.IsCompletedSuccessfully"/> is <c>false</c> (because the task is still in progress or faulted,) + /// the property will return <c>null</c>. Setting this property will set <see cref="IconTextureTask"/> to a new + /// completed <see cref="Task{TResult}"/> with the new value as its result.</para> + /// </remarks> + public IDalamudTextureWrap? IconTexture { get; set; } + + /// <summary>Gets or sets a task that results in a texture wrap that will be used in place of <see cref="Icon"/> if + /// available.</summary> + /// <remarks> + /// <para>A texture wrap set via this property will <b>NOT</b> be disposed when the notification is dismissed. + /// Use <see cref="IActiveNotification.SetIconTexture(IDalamudTextureWrap?)"/> or + /// <see cref="IActiveNotification.SetIconTexture(Task{IDalamudTextureWrap?}?)"/> to use a texture, after calling + /// <see cref="INotificationManager.AddNotification"/>. Call either of those functions with <c>null</c> to revert + /// the effective icon back to this property.</para> + /// <para>This property and <see cref="IconTexture"/> are bound together.</para> + /// </remarks> + Task<IDalamudTextureWrap?>? IconTextureTask { get; set; } /// <summary>Gets or sets the hard expiry.</summary> /// <remarks> diff --git a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs index d03234356..16d58bea5 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs @@ -1,11 +1,12 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ImGuiNotification.Internal; /// <summary>Represents an active notification.</summary> @@ -14,16 +15,14 @@ internal sealed partial class ActiveNotification /// <summary>Draws this notification.</summary> /// <param name="width">The maximum width of the notification window.</param> /// <param name="offsetY">The offset from the bottom.</param> - /// <param name="anchorPosition">Where notifications are anchored to on the screen.</param> - /// <param name="snapDirection">Direction of the screen which we are snapping to.</param> /// <returns>The height of the notification.</returns> - public float Draw(float width, float offsetY, Vector2 anchorPosition, NotificationSnapDirection snapDirection) + public float Draw(float width, float offsetY) { var opacity = Math.Clamp( (float)(this.hideEasing.IsRunning - ? (this.hideEasing.IsDone || ReducedMotions ? 0 : 1f - this.hideEasing.ValueClamped) - : (this.showEasing.IsDone || ReducedMotions ? 1 : this.showEasing.ValueClamped)), + ? (this.hideEasing.IsDone || ReducedMotions ? 0 : 1f - this.hideEasing.Value) + : (this.showEasing.IsDone || ReducedMotions ? 1 : this.showEasing.Value)), 0f, 1f); if (opacity <= 0) @@ -36,8 +35,8 @@ internal sealed partial class ActiveNotification (NotificationConstants.ScaledWindowPadding * 2); var viewport = ImGuiHelpers.MainViewport; + var viewportPos = viewport.WorkPos; var viewportSize = viewport.WorkSize; - var viewportPos = viewport.Pos; ImGui.PushStyleVar(ImGuiStyleVar.Alpha, opacity); ImGui.PushStyleVar(ImGuiStyleVar.WindowRounding, 0f); @@ -53,78 +52,13 @@ internal sealed partial class ActiveNotification NotificationConstants.BackgroundOpacity)); } - Vector2 topLeft; - Vector2 pivot; - if (snapDirection is NotificationSnapDirection.Top or NotificationSnapDirection.Bottom) - { - // Top or bottom - var xPos = (viewportSize.X - width) * anchorPosition.X; - xPos = Math.Max(NotificationConstants.ScaledViewportEdgeMargin, Math.Min(viewportSize.X - width - NotificationConstants.ScaledViewportEdgeMargin, xPos)); - - if (snapDirection == NotificationSnapDirection.Top) - { - // Top - var yPos = NotificationConstants.ScaledViewportEdgeMargin - offsetY; - topLeft = new Vector2(xPos, yPos); - pivot = new(0, 0); - } - else - { - // Bottom - var yPos = viewportSize.Y - offsetY - NotificationConstants.ScaledViewportEdgeMargin; - topLeft = new Vector2(xPos, yPos); - pivot = new(0, 1); - } - } - else - { - // Left or Right - var yPos = (viewportSize.Y * anchorPosition.Y) - offsetY; - yPos = Math.Max( - NotificationConstants.ScaledViewportEdgeMargin, - Math.Min(viewportSize.Y - offsetY - NotificationConstants.ScaledViewportEdgeMargin, yPos)); - - if (snapDirection == NotificationSnapDirection.Left) - { - // Left - var xPos = NotificationConstants.ScaledViewportEdgeMargin; - - if (anchorPosition.Y > 0.5f) - { - // Bottom - topLeft = new Vector2(xPos, yPos); - pivot = new(0, 1); - } - else - { - // Top - topLeft = new Vector2(xPos, yPos); - pivot = new(0, 0); - } - } - else - { - // Right - var xPos = viewportSize.X - width - NotificationConstants.ScaledViewportEdgeMargin; - - if (anchorPosition.Y > 0.5f) - { - topLeft = new Vector2(xPos, yPos); - pivot = new(0, 1); - } - else - { - topLeft = new Vector2(xPos, yPos); - pivot = new(0, 0); - } - } - } - ImGuiHelpers.ForceNextWindowMainViewport(); ImGui.SetNextWindowPos( - topLeft + viewportPos, + (viewportPos + viewportSize) - + new Vector2(NotificationConstants.ScaledViewportEdgeMargin) - + new Vector2(0, offsetY), ImGuiCond.Always, - pivot); + Vector2.One); ImGui.SetNextWindowSizeConstraints( new(width, actionWindowHeight), new( @@ -154,11 +88,7 @@ internal sealed partial class ActiveNotification if (!isTakingKeyboardInput && !isHovered && isFocused) { - unsafe - { - ImGui.SetWindowFocus((byte*)null); - } - + ImGui.SetWindowFocus(null); isFocused = false; } @@ -176,7 +106,7 @@ internal sealed partial class ActiveNotification } else if (this.expandoEasing.IsRunning) { - var easedValue = ReducedMotions ? 1f : (float)this.expandoEasing.ValueClamped; + var easedValue = ReducedMotions ? 1f : (float)this.expandoEasing.Value; if (this.underlyingNotification.Minimized) ImGui.PushStyleVar(ImGuiStyleVar.Alpha, opacity * (1f - easedValue)); else @@ -212,13 +142,13 @@ internal sealed partial class ActiveNotification ImGui.PopStyleColor(); ImGui.PopStyleVar(3); - return NotificationManager.ShouldScrollDownwards(anchorPosition) ? -windowSize.Y : windowSize.Y; + return windowSize.Y; } /// <summary>Calculates the effective expiry, taking ImGui window state into account.</summary> /// <param name="warrantsExtension">Notification will not dismiss while this paramter is <c>true</c>.</param> /// <returns>The calculated effective expiry.</returns> - /// <remarks>Expected to be called BETWEEN <see cref="ImGui.Begin(ImU8String, ImGuiWindowFlags)"/> and <see cref="ImGui.End()"/>.</remarks> + /// <remarks>Expected to be called BETWEEN <see cref="ImGui.Begin(string)"/> and <see cref="ImGui.End"/>.</remarks> private DateTime CalculateEffectiveExpiry(ref bool warrantsExtension) { DateTime expiry; @@ -365,8 +295,8 @@ internal sealed partial class ActiveNotification { relativeOpacity = this.underlyingNotification.Minimized - ? 1f - (float)this.expandoEasing.ValueClamped - : (float)this.expandoEasing.ValueClamped; + ? 1f - (float)this.expandoEasing.Value + : (float)this.expandoEasing.Value; } else { @@ -383,7 +313,7 @@ internal sealed partial class ActiveNotification ImGui.PushStyleVar(ImGuiStyleVar.Alpha, ImGui.GetStyle().Alpha * relativeOpacity); ImGui.SetCursorPos(new(NotificationConstants.ScaledWindowPadding)); ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.WhenTextColor); - ImGui.Text( + ImGui.TextUnformatted( ImGui.IsWindowHovered(ImGuiHoveredFlags.AllowWhenBlockedByActiveItem) ? this.CreatedAt.LocAbsolute() : ReducedMotions @@ -404,7 +334,7 @@ internal sealed partial class ActiveNotification var agoSize = ImGui.CalcTextSize(agoText); ImGui.SetCursorPos(new(width - ((height + agoSize.X) / 2f), NotificationConstants.ScaledWindowPadding)); ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.WhenTextColor); - ImGui.Text(agoText); + ImGui.TextUnformatted(agoText); ImGui.PopStyleColor(); this.DrawIcon( @@ -415,7 +345,7 @@ internal sealed partial class ActiveNotification windowPos + new Vector2(width - height, height), true); ImGui.SetCursorPos(new(height, NotificationConstants.ScaledWindowPadding)); - ImGui.Text(this.EffectiveMinimizedText); + ImGui.TextUnformatted(this.EffectiveMinimizedText); ImGui.PopClipRect(); ImGui.PopStyleVar(); @@ -474,7 +404,7 @@ internal sealed partial class ActiveNotification var maxCoord = minCoord + size; var iconColor = this.Type.ToColor(); - if (NotificationUtilities.DrawIconFrom(minCoord, maxCoord, this.IconTexture)) + if (NotificationUtilities.DrawIconFrom(minCoord, maxCoord, this.IconTextureTask)) return; if (this.Icon?.DrawIcon(minCoord, maxCoord, iconColor) is true) @@ -502,13 +432,13 @@ internal sealed partial class ActiveNotification if ((this.Title ?? this.Type.ToTitle()) is { } title) { ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.TitleTextColor); - ImGui.Text(title); + ImGui.TextUnformatted(title); ImGui.PopStyleColor(); } ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.BlameTextColor); ImGui.SetCursorPos(minCoord with { Y = ImGui.GetCursorPosY() }); - ImGui.Text(this.InitiatorString); + ImGui.TextUnformatted(this.InitiatorString); ImGui.PopStyleColor(); ImGui.PopTextWrapPos(); @@ -520,7 +450,7 @@ internal sealed partial class ActiveNotification ImGui.SetCursorPos(minCoord); ImGui.PushTextWrapPos(minCoord.X + width); ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.BodyTextColor); - ImGui.Text(this.Content); + ImGui.TextUnformatted(this.Content); ImGui.PopStyleColor(); ImGui.PopTextWrapPos(); } @@ -569,7 +499,7 @@ internal sealed partial class ActiveNotification if (fillStartCw == 0 && fillEndCw == 0) return; - + var radius = Math.Min(size.X, size.Y) / 3f; var ifrom = fillStartCw * MathF.PI * 2; var ito = fillEndCw * MathF.PI * 2; @@ -599,9 +529,9 @@ internal sealed partial class ActiveNotification verts[vertPtr++] = lastOff; unsafe { - var dlist = ImGui.GetWindowDrawList().Handle; + var dlist = ImGui.GetWindowDrawList().NativePtr; fixed (Vector2* pvert = verts) - dlist->AddConvexPolyFilled(pvert, vertPtr, color); + ImGuiNative.ImDrawList_AddConvexPolyFilled(dlist, pvert, vertPtr, color); } } @@ -613,7 +543,7 @@ internal sealed partial class ActiveNotification float barL, barR; if (this.DismissReason is not null) { - var v = this.hideEasing.IsDone || ReducedMotions ? 0f : 1f - (float)this.hideEasing.ValueClamped; + var v = this.hideEasing.IsDone || ReducedMotions ? 0f : 1f - (float)this.hideEasing.Value; var midpoint = (this.prevProgressL + this.prevProgressR) / 2f; var length = (this.prevProgressR - this.prevProgressL) / 2f; barL = midpoint - (length * v); diff --git a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.cs b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.cs index 77a4925f8..607c7c49d 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.cs @@ -1,9 +1,11 @@ using System.Runtime.Loader; +using System.Threading.Tasks; using Dalamud.Configuration.Internal; using Dalamud.Interface.Animation; using Dalamud.Interface.Animation.EasingFunctions; -using Dalamud.Interface.Textures; +using Dalamud.Interface.Internal; +using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; @@ -21,6 +23,9 @@ internal sealed partial class ActiveNotification : IActiveNotification private readonly Easing progressEasing; private readonly Easing expandoEasing; + /// <summary>Whether to call <see cref="IDisposable.Dispose"/> on <see cref="DisposeInternal"/>.</summary> + private bool hasIconTextureOwnership; + /// <summary>Gets the time of starting to count the timer for the expiration.</summary> private DateTime lastInterestTime; @@ -114,10 +119,31 @@ internal sealed partial class ActiveNotification : IActiveNotification } /// <inheritdoc/> - public ISharedImmediateTexture? IconTexture + public IDalamudTextureWrap? IconTexture { get => this.underlyingNotification.IconTexture; - set => this.underlyingNotification.IconTexture = value; + set => this.IconTextureTask = value is null ? null : Task.FromResult(value); + } + + /// <inheritdoc/> + public Task<IDalamudTextureWrap?>? IconTextureTask + { + get => this.underlyingNotification.IconTextureTask; + set + { + // Do nothing if the value did not change. + if (this.underlyingNotification.IconTextureTask == value) + return; + + if (this.hasIconTextureOwnership) + { + _ = this.underlyingNotification.IconTextureTask?.ToContentDisposedTask(true); + this.underlyingNotification.IconTextureTask = null; + this.hasIconTextureOwnership = false; + } + + this.underlyingNotification.IconTextureTask = value; + } } /// <inheritdoc/> @@ -200,7 +226,7 @@ internal sealed partial class ActiveNotification : IActiveNotification if (Math.Abs(underlyingProgress - this.progressBefore) < 0.000001f || this.progressEasing.IsDone || ReducedMotions) return underlyingProgress; - var state = ReducedMotions ? 1f : Math.Clamp((float)this.progressEasing.ValueClamped, 0f, 1f); + var state = ReducedMotions ? 1f : Math.Clamp((float)this.progressEasing.Value, 0f, 1f); return this.progressBefore + (state * (underlyingProgress - this.progressBefore)); } } @@ -239,6 +265,39 @@ internal sealed partial class ActiveNotification : IActiveNotification this.extendedExpiry = newExpiry; } + /// <inheritdoc/> + public void SetIconTexture(IDalamudTextureWrap? textureWrap) => + this.SetIconTexture(textureWrap, false); + + /// <inheritdoc/> + public void SetIconTexture(IDalamudTextureWrap? textureWrap, bool leaveOpen) => + this.SetIconTexture(textureWrap is null ? null : Task.FromResult(textureWrap), leaveOpen); + + /// <inheritdoc/> + public void SetIconTexture(Task<IDalamudTextureWrap?>? textureWrapTask) => + this.SetIconTexture(textureWrapTask, false); + + /// <inheritdoc/> + public void SetIconTexture(Task<IDalamudTextureWrap?>? textureWrapTask, bool leaveOpen) + { + // If we're requested to replace the texture with the same texture, do nothing. + if (this.underlyingNotification.IconTextureTask == textureWrapTask) + return; + + if (this.DismissReason is not null) + { + if (!leaveOpen) + textureWrapTask?.ToContentDisposedTask(true); + return; + } + + if (this.hasIconTextureOwnership) + _ = this.underlyingNotification.IconTextureTask?.ToContentDisposedTask(true); + + this.hasIconTextureOwnership = !leaveOpen; + this.underlyingNotification.IconTextureTask = textureWrapTask; + } + /// <summary>Removes non-Dalamud invocation targets from events.</summary> /// <remarks> /// This is done to prevent references of plugins being unloaded from outliving the plugin itself. @@ -258,8 +317,10 @@ internal sealed partial class ActiveNotification : IActiveNotification if (this.Icon is { } previousIcon && !IsOwnedByDalamud(previousIcon.GetType())) this.Icon = null; - if (this.IconTexture is { } previousTexture && !IsOwnedByDalamud(previousTexture.GetType())) - this.IconTexture = null; + // Clear the texture if we don't have the ownership. + // The texture probably was owned by the plugin being unloaded in such case. + if (!this.hasIconTextureOwnership) + this.IconTextureTask = null; this.isInitiatorUnloaded = true; this.UserDismissable = true; @@ -278,7 +339,7 @@ internal sealed partial class ActiveNotification : IActiveNotification if (@delegate is null) return null; - foreach (var il in Delegate.EnumerateInvocationList(@delegate)) + foreach (var il in @delegate.GetInvocationList()) { if (il.Target is { } target && !IsOwnedByDalamud(target.GetType())) @delegate = (T)Delegate.Remove(@delegate, il); @@ -339,6 +400,13 @@ internal sealed partial class ActiveNotification : IActiveNotification /// <summary>Clears the resources associated with this instance of <see cref="ActiveNotification"/>.</summary> internal void DisposeInternal() { + if (this.hasIconTextureOwnership) + { + _ = this.underlyingNotification.IconTextureTask?.ToContentDisposedTask(true); + this.underlyingNotification.IconTextureTask = null; + this.hasIconTextureOwnership = false; + } + this.Dismiss = null; this.Click = null; this.DrawActions = null; diff --git a/Dalamud/Interface/ImGuiNotification/Internal/NotificationConstants.cs b/Dalamud/Interface/ImGuiNotification/Internal/NotificationConstants.cs index b79855a6b..8b7ce7bfa 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/NotificationConstants.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/NotificationConstants.cs @@ -54,11 +54,6 @@ internal static class NotificationConstants /// </summary> public const float ProgressWaveLoopMaxColorTimeRatio = 0.7f; - /// <summary> - /// The ratio of the screen at which the notification window will snap to the top or bottom of the screen. - /// </summary> - public const float NotificationTopBottomSnapMargin = 0.08f; - /// <summary>Default duration of the notification.</summary> public static readonly TimeSpan DefaultDuration = TimeSpan.FromSeconds(7); diff --git a/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs b/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs index 1b6e7e59b..4157d1356 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/NotificationManager.cs @@ -1,9 +1,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Configuration.Internal; using Dalamud.Game.Gui; using Dalamud.Interface.GameFonts; using Dalamud.Interface.ManagedFontAtlas; @@ -14,6 +11,8 @@ using Dalamud.IoC.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; +using ImGuiNET; + namespace Dalamud.Interface.ImGuiNotification.Internal; /// <summary>Class handling notifications/toasts in ImGui.</summary> @@ -23,13 +22,8 @@ internal class NotificationManager : INotificationManager, IInternalDisposableSe [ServiceManager.ServiceDependency] private readonly GameGui gameGui = Service<GameGui>.Get(); - [ServiceManager.ServiceDependency] - private readonly DalamudConfiguration configuration = Service<DalamudConfiguration>.Get(); - - private readonly List<ActiveNotification> notifications = []; - private readonly ConcurrentBag<ActiveNotification> pendingNotifications = []; - - private NotificationPositionChooser? positionChooser; + private readonly List<ActiveNotification> notifications = new(); + private readonly ConcurrentBag<ActiveNotification> pendingNotifications = new(); [ServiceManager.ServiceConstructor] private NotificationManager(FontAtlasFactory fontAtlasFactory) @@ -54,48 +48,6 @@ internal class NotificationManager : INotificationManager, IInternalDisposableSe /// <summary>Gets the private atlas for use with notification windows.</summary> private IFontAtlas PrivateAtlas { get; } - /// <summary> - /// Calculate the width to be used to draw notifications. - /// </summary> - /// <returns>The width.</returns> - public static float CalculateNotificationWidth() - { - var viewportSize = ImGuiHelpers.MainViewport.WorkSize; - var width = ImGui.CalcTextSize(NotificationConstants.NotificationWidthMeasurementString).X; - width += NotificationConstants.ScaledWindowPadding * 3; - width += NotificationConstants.ScaledIconSize; - return Math.Min(width, viewportSize.X * NotificationConstants.MaxNotificationWindowWidthWrtMainViewportWidth); - } - - /// <summary> - /// Check if notifications should scroll downwards on the screen, based on the anchor position. - /// </summary> - /// <param name="anchorPosition">Where notifications are anchored to.</param> - /// <returns>A value indicating wether notifications should scroll downwards.</returns> - public static bool ShouldScrollDownwards(Vector2 anchorPosition) - { - return anchorPosition.Y < 0.5f; - } - - /// <summary> - /// Choose the snap position for a notification based on the anchor position. - /// </summary> - /// <param name="anchorPosition">Where notifications are anchored to.</param> - /// <returns>The snap position.</returns> - public static NotificationSnapDirection ChooseSnapDirection(Vector2 anchorPosition) - { - if (anchorPosition.Y <= NotificationConstants.NotificationTopBottomSnapMargin) - return NotificationSnapDirection.Top; - - if (anchorPosition.Y >= 1f - NotificationConstants.NotificationTopBottomSnapMargin) - return NotificationSnapDirection.Bottom; - - if (anchorPosition.X <= 0.5f) - return NotificationSnapDirection.Left; - - return NotificationSnapDirection.Right; - } - /// <inheritdoc/> public void DisposeService() { @@ -146,38 +98,25 @@ internal class NotificationManager : INotificationManager, IInternalDisposableSe /// <summary>Draw all currently queued notifications.</summary> public void Draw() { + var viewportSize = ImGuiHelpers.MainViewport.WorkSize; var height = 0f; var uiHidden = this.gameGui.GameUiHidden; while (this.pendingNotifications.TryTake(out var newNotification)) this.notifications.Add(newNotification); - var width = CalculateNotificationWidth(); + var width = ImGui.CalcTextSize(NotificationConstants.NotificationWidthMeasurementString).X; + width += NotificationConstants.ScaledWindowPadding * 3; + width += NotificationConstants.ScaledIconSize; + width = Math.Min(width, viewportSize.X * NotificationConstants.MaxNotificationWindowWidthWrtMainViewportWidth); this.notifications.RemoveAll(static x => x.UpdateOrDisposeInternal()); - - var scrollsDownwards = ShouldScrollDownwards(this.configuration.NotificationAnchorPosition); - var snapDirection = ChooseSnapDirection(this.configuration.NotificationAnchorPosition); - foreach (var tn in this.notifications) { if (uiHidden && tn.RespectUiHidden) continue; - - height += tn.Draw(width, height, this.configuration.NotificationAnchorPosition, snapDirection); - height += scrollsDownwards ? -NotificationConstants.ScaledWindowGap : NotificationConstants.ScaledWindowGap; + height += tn.Draw(width, height) + NotificationConstants.ScaledWindowGap; } - - this.positionChooser?.Draw(); - } - - /// <summary> - /// Starts the position chooser for notifications. Will block the UI until the user makes a selection. - /// </summary> - public void StartPositionChooser() - { - this.positionChooser = new NotificationPositionChooser(this.configuration); - this.positionChooser.SelectionMade += () => { this.positionChooser = null; }; } } diff --git a/Dalamud/Interface/ImGuiNotification/Internal/NotificationPositionChooser.cs b/Dalamud/Interface/ImGuiNotification/Internal/NotificationPositionChooser.cs deleted file mode 100644 index 3622e2e0d..000000000 --- a/Dalamud/Interface/ImGuiNotification/Internal/NotificationPositionChooser.cs +++ /dev/null @@ -1,226 +0,0 @@ -using System.Numerics; - -using Dalamud.Bindings.ImGui; -using Dalamud.Configuration.Internal; -using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Utility; - -namespace Dalamud.Interface.ImGuiNotification.Internal; - -/// <summary> -/// Class responsible for drawing UI that lets users choose the position of notifications. -/// </summary> -internal class NotificationPositionChooser -{ - private readonly DalamudConfiguration configuration; - private readonly Vector2 previousAnchorPosition; - - private Vector2 currentAnchorPosition; - - /// <summary> - /// Initializes a new instance of the <see cref="NotificationPositionChooser"/> class. - /// </summary> - /// <param name="configuration">The configuration we are reading or writing from.</param> - public NotificationPositionChooser(DalamudConfiguration configuration) - { - this.configuration = configuration; - this.previousAnchorPosition = configuration.NotificationAnchorPosition; - } - - /// <summary> - /// Gets or sets an action that is invoked when the user makes a selection. - /// </summary> - public event Action? SelectionMade; - - /// <summary> - /// Draw the chooser UI. - /// </summary> - public void Draw() - { - using var style1 = ImRaii.PushStyle(ImGuiStyleVar.WindowRounding, 0f); - using var style2 = ImRaii.PushStyle(ImGuiStyleVar.WindowBorderSize, 0f); - using var color = ImRaii.PushColor(ImGuiCol.WindowBg, new Vector4(0, 0, 0, 0)); - - var viewport = ImGuiHelpers.MainViewport; - var viewportSize = viewport.Size; - var viewportPos = viewport.Pos; - - ImGui.SetNextWindowFocus(); - ImGui.SetNextWindowPos(viewportPos); - ImGui.SetNextWindowSize(viewportSize); - ImGuiHelpers.ForceNextWindowMainViewport(); - - ImGui.SetNextWindowBgAlpha(0.6f); - - ImGui.Begin( - "###NotificationPositionChooser"u8, - ImGuiWindowFlags.NoDocking | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove | - ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNav); - - var adjustedMousePos = ImGui.GetMousePos() - viewportPos; - var mousePosUnit = adjustedMousePos / viewportSize; - - // Store the offset as a Vector2 - this.currentAnchorPosition = mousePosUnit; - - DrawPreview(this.previousAnchorPosition, 0.3f); - DrawPreview(this.currentAnchorPosition, 1f); - - if (ImGui.IsMouseClicked(ImGuiMouseButton.Right)) - { - this.SelectionMade.InvokeSafely(); - } - else if (ImGui.IsMouseClicked(ImGuiMouseButton.Left)) - { - this.configuration.NotificationAnchorPosition = this.currentAnchorPosition; - this.configuration.QueueSave(); - - this.SelectionMade.InvokeSafely(); - } - - // In the middle of the screen, draw some instructions - string[] instructions = ["Drag to move the notifications to where you would like them to appear.", - "Click to select the position.", - "Right-click to close without making changes."]; - - var dl = ImGui.GetWindowDrawList(); - for (var i = 0; i < instructions.Length; i++) - { - var instruction = instructions[i]; - var instructionSize = ImGui.CalcTextSize(instruction); - var instructionPos = new Vector2( - ImGuiHelpers.MainViewport.Size.X / 2 - instructionSize.X / 2, - ImGuiHelpers.MainViewport.Size.Y / 2 - instructionSize.Y / 2 + i * instructionSize.Y); - instructionPos += viewportPos; - dl.AddText(instructionPos, 0xFFFFFFFF, instruction); - } - - ImGui.End(); - } - - private static void DrawPreview(Vector2 anchorPosition, float borderAlpha) - { - var dl = ImGui.GetWindowDrawList(); - var width = NotificationManager.CalculateNotificationWidth(); - var height = 100f * ImGuiHelpers.GlobalScale; - var smallBoxHeight = height * 0.4f; - var edgeMargin = NotificationConstants.ScaledViewportEdgeMargin; - var spacing = 10f * ImGuiHelpers.GlobalScale; - - var viewport = ImGuiHelpers.MainViewport; - var viewportSize = viewport.Size; - var viewportPos = viewport.Pos; - var borderColor = ImGui.ColorConvertFloat4ToU32(new(1f, 1f, 1f, borderAlpha)); - var borderThickness = 4.0f * ImGuiHelpers.GlobalScale; - var borderRounding = 4.0f * ImGuiHelpers.GlobalScale; - var backgroundColor = new Vector4(0, 0, 0, 0.5f); // Semi-transparent black - - // Calculate positions based on the snap position - Vector2 topLeft, bottomRight, smallTopLeft, smallBottomRight; - - var snapPos = NotificationManager.ChooseSnapDirection(anchorPosition); - if (snapPos is NotificationSnapDirection.Top or NotificationSnapDirection.Bottom) - { - // Calculate X position - same logic for top and bottom - var xPos = (viewportSize.X - width) * anchorPosition.X; - xPos = Math.Max(edgeMargin, Math.Min(viewportSize.X - width - edgeMargin, xPos)); - - if (snapPos == NotificationSnapDirection.Top) - { - // For top position: big box at top, small box below it - var yPos = edgeMargin; - topLeft = new Vector2(xPos, yPos); - bottomRight = new Vector2(xPos + width, yPos + height); - - smallTopLeft = new Vector2(xPos, yPos + height + spacing); - smallBottomRight = new Vector2(xPos + width, yPos + height + spacing + smallBoxHeight); - } - else - { - // For bottom position: big box at bottom, small box above it - var yPos = viewportSize.Y - height - edgeMargin; - topLeft = new Vector2(xPos, yPos); - bottomRight = new Vector2(xPos + width, yPos + height); - - smallTopLeft = new Vector2(xPos, yPos - smallBoxHeight - spacing); - smallBottomRight = new Vector2(xPos + width, yPos - spacing); - } - } - else - { - // For left and right positions, boxes are still stacked vertically (one above the other) - // Only the horizontal position changes - - // Calculate Y position based on unit offset - used for both left and right positions - var yPos = (viewportSize.Y - height) * anchorPosition.Y; - yPos = Math.Max(edgeMargin, Math.Min(viewportSize.Y - height - edgeMargin, yPos)); - - if (snapPos == NotificationSnapDirection.Left) - { - // For left position: boxes are at the left edge of the screen - var xPos = edgeMargin; - - if (anchorPosition.Y > 0.5f) - { - // Small box on top - smallTopLeft = new Vector2(xPos, yPos - smallBoxHeight - spacing); - smallBottomRight = new Vector2(xPos + width, yPos - spacing); - - // Big box below - topLeft = new Vector2(xPos, yPos); - bottomRight = new Vector2(xPos + width, yPos + height); - } - else - { - // Big box on top - topLeft = new Vector2(xPos, yPos); - bottomRight = new Vector2(xPos + width, yPos + height); - - // Small box below - smallTopLeft = new Vector2(xPos, yPos + height + spacing); - smallBottomRight = new Vector2(xPos + width, yPos + height + spacing + smallBoxHeight); - } - } - else - { - // For right position: boxes are at the right edge of the screen - var xPos = viewportSize.X - width - edgeMargin; - - if (anchorPosition.Y > 0.5f) - { - // Small box on top - smallTopLeft = new Vector2(xPos, yPos - smallBoxHeight - spacing); - smallBottomRight = new Vector2(xPos + width, yPos - spacing); - - // Big box below - topLeft = new Vector2(xPos, yPos); - bottomRight = new Vector2(xPos + width, yPos + height); - } - else - { - // Big box on top - topLeft = new Vector2(xPos, yPos); - bottomRight = new Vector2(xPos + width, yPos + height); - - // Small box below - smallTopLeft = new Vector2(xPos, yPos + height + spacing); - smallBottomRight = new Vector2(xPos + width, yPos + height + spacing + smallBoxHeight); - } - } - } - - topLeft += viewportPos; - bottomRight += viewportPos; - smallTopLeft += viewportPos; - smallBottomRight += viewportPos; - - // Draw the big box - dl.AddRectFilled(topLeft, bottomRight, ImGui.ColorConvertFloat4ToU32(backgroundColor), borderRounding, ImDrawFlags.RoundCornersAll); - dl.AddRect(topLeft, bottomRight, borderColor, borderRounding, ImDrawFlags.RoundCornersAll, borderThickness); - - // Draw the small box - dl.AddRectFilled(smallTopLeft, smallBottomRight, ImGui.ColorConvertFloat4ToU32(backgroundColor), borderRounding, ImDrawFlags.RoundCornersAll); - dl.AddRect(smallTopLeft, smallBottomRight, borderColor, borderRounding, ImDrawFlags.RoundCornersAll, borderThickness); - } -} diff --git a/Dalamud/Interface/ImGuiNotification/Internal/NotificationSnapDirection.cs b/Dalamud/Interface/ImGuiNotification/Internal/NotificationSnapDirection.cs deleted file mode 100644 index 1666e7a8c..000000000 --- a/Dalamud/Interface/ImGuiNotification/Internal/NotificationSnapDirection.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Dalamud.Interface.ImGuiNotification.Internal; - -/// <summary> -/// Where notifications should snap to on the screen when they are shown. -/// </summary> -public enum NotificationSnapDirection -{ - /// <summary> - /// Snap to the top of the screen. - /// </summary> - Top, - - /// <summary> - /// Snap to the bottom of the screen. - /// </summary> - Bottom, - - /// <summary> - /// Snap to the left of the screen. - /// </summary> - Left, - - /// <summary> - /// Snap to the right of the screen. - /// </summary> - Right, -} diff --git a/Dalamud/Interface/ImGuiNotification/Notification.cs b/Dalamud/Interface/ImGuiNotification/Notification.cs index ef6bb3da8..927dd5ba9 100644 --- a/Dalamud/Interface/ImGuiNotification/Notification.cs +++ b/Dalamud/Interface/ImGuiNotification/Notification.cs @@ -1,7 +1,11 @@ +using System.Threading.Tasks; + using Dalamud.Interface.ImGuiNotification.Internal; -using Dalamud.Interface.Textures; +using Dalamud.Interface.Internal; +using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Interface.ImGuiNotification; + /// <summary>Represents a blueprint for a notification.</summary> public sealed record Notification : INotification { @@ -26,7 +30,14 @@ public sealed record Notification : INotification public INotificationIcon? Icon { get; set; } /// <inheritdoc/> - public ISharedImmediateTexture? IconTexture { get; set; } + public IDalamudTextureWrap? IconTexture + { + get => this.IconTextureTask?.IsCompletedSuccessfully is true ? this.IconTextureTask.Result : null; + set => this.IconTextureTask = value is null ? null : Task.FromResult(value); + } + + /// <inheritdoc/> + public Task<IDalamudTextureWrap?>? IconTextureTask { get; set; } /// <inheritdoc/> public DateTime HardExpiry { get; set; } = DateTime.MaxValue; diff --git a/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs b/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs index 5ef3cf4ac..2172663e8 100644 --- a/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs +++ b/Dalamud/Interface/ImGuiNotification/NotificationUtilities.cs @@ -1,17 +1,19 @@ using System.IO; using System.Numerics; using System.Runtime.CompilerServices; +using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; +using Dalamud.Interface.Internal; using Dalamud.Interface.Internal.Windows; using Dalamud.Interface.ManagedFontAtlas; -using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Plugin.Internal.Types; using Dalamud.Storage.Assets; +using ImGuiNET; + namespace Dalamud.Interface.ImGuiNotification; /// <summary>Utilities for implementing stuff under <see cref="ImGuiNotification"/>.</summary> @@ -53,7 +55,7 @@ public static class NotificationUtilities using (fontHandle.Push()) { var font = ImGui.GetFont(); - var glyphPtr = (ImGuiHelpers.ImFontGlyphReal*)font.FindGlyphNoFallback(c); + var glyphPtr = (ImGuiHelpers.ImFontGlyphReal*)font.FindGlyphNoFallback(c).NativePtr; if (glyphPtr is null) return false; @@ -76,19 +78,6 @@ public static class NotificationUtilities return true; } - /// <summary>Draws an icon from an instance of <see cref="ISharedImmediateTexture"/>.</summary> - /// <param name="minCoord">The coordinates of the top left of the icon area.</param> - /// <param name="maxCoord">The coordinates of the bottom right of the icon area.</param> - /// <param name="texture">The texture.</param> - /// <returns><c>true</c> if anything has been drawn.</returns> - internal static bool DrawIconFrom(Vector2 minCoord, Vector2 maxCoord, ISharedImmediateTexture? texture) - { - if (texture is null) - return false; - - return DrawIconFrom(minCoord, maxCoord, texture.GetWrapOrEmpty()); - } - /// <summary>Draws an icon from an instance of <see cref="IDalamudTextureWrap"/>.</summary> /// <param name="minCoord">The coordinates of the top left of the icon area.</param> /// <param name="maxCoord">The coordinates of the bottom right of the icon area.</param> @@ -100,7 +89,7 @@ public static class NotificationUtilities return false; try { - var handle = texture.Handle; + var handle = texture.ImGuiHandle; var size = texture.Size; if (size.X > maxCoord.X - minCoord.X) size *= (maxCoord.X - minCoord.X) / size.X; @@ -116,6 +105,16 @@ public static class NotificationUtilities } } + /// <summary>Draws an icon from an instance of <see cref="Task{TResult}"/> that results in an + /// <see cref="IDalamudTextureWrap"/>.</summary> + /// <param name="minCoord">The coordinates of the top left of the icon area.</param> + /// <param name="maxCoord">The coordinates of the bottom right of the icon area.</param> + /// <param name="textureTask">The task that results in a texture.</param> + /// <returns><c>true</c> if anything has been drawn.</returns> + /// <remarks>Exceptions from the task will be treated as if no texture is provided.</remarks> + internal static bool DrawIconFrom(Vector2 minCoord, Vector2 maxCoord, Task<IDalamudTextureWrap?>? textureTask) => + textureTask?.IsCompletedSuccessfully is true && DrawIconFrom(minCoord, maxCoord, textureTask.Result); + /// <summary>Draws an icon from an instance of <see cref="LocalPlugin"/>.</summary> /// <param name="minCoord">The coordinates of the top left of the icon area.</param> /// <param name="maxCoord">The coordinates of the bottom right of the icon area.</param> diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringColorStackSet.cs b/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringColorStackSet.cs index 85ab2e441..ddff55923 100644 --- a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringColorStackSet.cs +++ b/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringColorStackSet.cs @@ -15,6 +15,10 @@ namespace Dalamud.Interface.ImGuiSeStringRenderer.Internal; /// <summary>Color stacks to use while evaluating a SeString.</summary> internal sealed class SeStringColorStackSet { + /// <summary>Parsed <see cref="UIColor"/>, containing colors to use with <see cref="MacroCode.ColorType"/> and + /// <see cref="MacroCode.EdgeColorType"/>.</summary> + private readonly uint[,] colorTypes; + /// <summary>Foreground color stack while evaluating a SeString for rendering.</summary> /// <remarks>Touched only from the main thread.</remarks> private readonly List<uint> colorStack = []; @@ -35,38 +39,30 @@ internal sealed class SeStringColorStackSet foreach (var row in uiColor) maxId = (int)Math.Max(row.RowId, maxId); - this.ColorTypes = new uint[maxId + 1, 4]; + this.colorTypes = new uint[maxId + 1, 4]; foreach (var row in uiColor) { // Contains ABGR. - this.ColorTypes[row.RowId, 0] = row.Dark; - this.ColorTypes[row.RowId, 1] = row.Light; - this.ColorTypes[row.RowId, 2] = row.ClassicFF; - this.ColorTypes[row.RowId, 3] = row.ClearBlue; + this.colorTypes[row.RowId, 0] = row.UIForeground; + this.colorTypes[row.RowId, 1] = row.UIGlow; + this.colorTypes[row.RowId, 2] = row.Unknown0; + this.colorTypes[row.RowId, 3] = row.Unknown1; } if (BitConverter.IsLittleEndian) { // ImGui wants RGBA in LE. - fixed (uint* p = this.ColorTypes) + fixed (uint* p = this.colorTypes) { - foreach (ref var r in new Span<uint>(p, this.ColorTypes.GetLength(0) * this.ColorTypes.GetLength(1))) + foreach (ref var r in new Span<uint>(p, this.colorTypes.GetLength(0) * this.colorTypes.GetLength(1))) r = BinaryPrimitives.ReverseEndianness(r); } } } - /// <summary>Initializes a new instance of the <see cref="SeStringColorStackSet"/> class.</summary> - /// <param name="colorTypes">Color types.</param> - public SeStringColorStackSet(uint[,] colorTypes) => this.ColorTypes = colorTypes; - /// <summary>Gets a value indicating whether at least one color has been pushed to the edge color stack.</summary> public bool HasAdditionalEdgeColor { get; private set; } - /// <summary>Gets the parsed <see cref="UIColor"/> containing colors to use with <see cref="MacroCode.ColorType"/> - /// and <see cref="MacroCode.EdgeColorType"/>.</summary> - public uint[,] ColorTypes { get; } - /// <summary>Resets the colors in the stack.</summary> /// <param name="drawState">Draw state.</param> internal void Initialize(scoped ref SeStringDrawState drawState) @@ -195,9 +191,9 @@ internal sealed class SeStringColorStackSet } // Opacity component is ignored. - var color = themeIndex >= 0 && themeIndex < this.ColorTypes.GetLength(1) && - colorTypeIndex < this.ColorTypes.GetLength(0) - ? this.ColorTypes[colorTypeIndex, themeIndex] + var color = themeIndex >= 0 && themeIndex < this.colorTypes.GetLength(1) && + colorTypeIndex < this.colorTypes.GetLength(0) + ? this.colorTypes[colorTypeIndex, themeIndex] : 0u; rgbaStack.Add(color | 0xFF000000u); diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs b/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs index 5a19f9a50..4937e4af0 100644 --- a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs +++ b/Dalamud/Interface/ImGuiSeStringRenderer/Internal/SeStringRenderer.cs @@ -1,14 +1,13 @@ using System.Collections.Generic; using System.Numerics; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using BitFaster.Caching.Lru; -using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game; +using Dalamud.Game.Config; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Interface.ImGuiSeStringRenderer.Internal.TextProcessing; using Dalamud.Interface.Utility; @@ -17,6 +16,8 @@ using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Client.UI; +using ImGuiNET; + using Lumina.Excel.Sheets; using Lumina.Text; using Lumina.Text.Parse; @@ -29,7 +30,7 @@ namespace Dalamud.Interface.ImGuiSeStringRenderer.Internal; /// <summary>Draws SeString.</summary> [ServiceManager.EarlyLoadedService] -internal class SeStringRenderer : IServiceType +internal unsafe class SeStringRenderer : IInternalDisposableService { private const int ImGuiContextCurrentWindowOffset = 0x3FF0; private const int ImGuiWindowDcOffset = 0x118; @@ -43,6 +44,9 @@ internal class SeStringRenderer : IServiceType /// of this placeholder. On its own, usually displayed like <c>[OBJ]</c>.</summary> private const int ObjectReplacementCharacter = '\uFFFC'; + [ServiceManager.ServiceDependency] + private readonly GameConfig gameConfig = Service<GameConfig>.Get(); + /// <summary>Cache of compiled SeStrings from <see cref="CompileAndCache"/>.</summary> private readonly ConcurrentLru<string, ReadOnlySeString> cache = new(1024); @@ -51,19 +55,28 @@ internal class SeStringRenderer : IServiceType /// <summary>Parsed text fragments from a SeString.</summary> /// <remarks>Touched only from the main thread.</remarks> - private readonly List<TextFragment> fragmentsMainThread = []; + private readonly List<TextFragment> fragments = []; /// <summary>Color stacks to use while evaluating a SeString for rendering.</summary> /// <remarks>Touched only from the main thread.</remarks> - private readonly SeStringColorStackSet colorStackSetMainThread; + private readonly SeStringColorStackSet colorStackSet; + + /// <summary>Splits a draw list so that different layers of a single glyph can be drawn out of order.</summary> + private ImDrawListSplitter* splitter = ImGuiNative.ImDrawListSplitter_ImDrawListSplitter(); [ServiceManager.ServiceConstructor] private SeStringRenderer(DataManager dm, TargetSigScanner sigScanner) { - this.colorStackSetMainThread = new(dm.Excel.GetSheet<UIColor>()); + this.colorStackSet = new(dm.Excel.GetSheet<UIColor>()); this.gfd = dm.GetFile<GfdFile>("common/font/gfdata.gfd")!; } + /// <summary>Finalizes an instance of the <see cref="SeStringRenderer"/> class.</summary> + ~SeStringRenderer() => this.ReleaseUnmanagedResources(); + + /// <inheritdoc/> + void IInternalDisposableService.DisposeService() => this.ReleaseUnmanagedResources(); + /// <summary>Compiles and caches a SeString from a text macro representation.</summary> /// <param name="text">SeString text macro representation. /// Newline characters will be normalized to newline payloads.</param> @@ -75,44 +88,6 @@ internal class SeStringRenderer : IServiceType text.ReplaceLineEndings("<br>"), new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError })); - /// <summary>Creates a draw data that will draw the given SeString onto it.</summary> - /// <param name="sss">SeString to render.</param> - /// <param name="drawParams">Parameters for drawing.</param> - /// <returns>A new self-contained draw data.</returns> - public unsafe BufferBackedImDrawData CreateDrawData( - ReadOnlySeStringSpan sss, - scoped in SeStringDrawParams drawParams = default) - { - if (drawParams.TargetDrawList is not null) - { - throw new ArgumentException( - $"{nameof(SeStringDrawParams.TargetDrawList)} may not be specified.", - nameof(drawParams)); - } - - var dd = BufferBackedImDrawData.Create(); - - try - { - var size = this.Draw(sss, drawParams with { TargetDrawList = dd.ListPtr }).Size; - - var offset = drawParams.ScreenOffset ?? Vector2.Zero; - foreach (var vtx in new Span<ImDrawVert>(dd.ListPtr.VtxBuffer.Data, dd.ListPtr.VtxBuffer.Size)) - offset = Vector2.Min(offset, vtx.Pos); - - dd.Data.DisplayPos = offset; - dd.Data.DisplaySize = size - offset; - dd.Data.Valid = 1; - dd.UpdateDrawDataStatistics(); - return dd; - } - catch - { - dd.Dispose(); - throw; - } - } - /// <summary>Compiles and caches a SeString from a text macro representation, and then draws it.</summary> /// <param name="text">SeString text macro representation. /// Newline characters will be normalized to newline payloads.</param> @@ -146,43 +121,28 @@ internal class SeStringRenderer : IServiceType /// <param name="imGuiId">ImGui ID, if link functionality is desired.</param> /// <param name="buttonFlags">Button flags to use on link interaction.</param> /// <returns>Interaction result of the rendered text.</returns> - public unsafe SeStringDrawResult Draw( + public SeStringDrawResult Draw( ReadOnlySeStringSpan sss, scoped in SeStringDrawParams drawParams = default, ImGuiId imGuiId = default, ImGuiButtonFlags buttonFlags = ImGuiButtonFlags.MouseButtonDefault) { - // Interactivity is supported only from the main thread. - if (!imGuiId.IsEmpty()) - ThreadSafety.AssertMainThread(); + // Drawing is only valid if done from the main thread anyway, especially with interactivity. + ThreadSafety.AssertMainThread(); if (drawParams.TargetDrawList is not null && imGuiId) throw new ArgumentException("ImGuiId cannot be set if TargetDrawList is manually set.", nameof(imGuiId)); - using var cleanup = new DisposeSafety.ScopedFinalizer(); - - ImFont* font = null; - if (drawParams.Font.HasValue) - font = drawParams.Font.Value; - - if (ThreadSafety.IsMainThread && drawParams.TargetDrawList is null && font is null) - font = ImGui.GetFont(); - if (font is null) - throw new ArgumentException("Specified font is empty."); - // This also does argument validation for drawParams. Do it here. - // `using var` makes a struct read-only, but we do want to modify it. - using var stateStorage = new SeStringDrawState( - sss, - drawParams, - ThreadSafety.IsMainThread ? this.colorStackSetMainThread : new(this.colorStackSetMainThread.ColorTypes), - ThreadSafety.IsMainThread ? this.fragmentsMainThread : [], - font); - ref var state = ref Unsafe.AsRef(in stateStorage); + var state = new SeStringDrawState(sss, drawParams, this.colorStackSet, this.splitter); + + // Reset and initialize the state. + this.fragments.Clear(); + this.colorStackSet.Initialize(ref state); // Analyze the provided SeString and break it up to text fragments. this.CreateTextFragments(ref state); - var fragmentSpan = CollectionsMarshal.AsSpan(state.Fragments); + var fragmentSpan = CollectionsMarshal.AsSpan(this.fragments); // Calculate size. var size = Vector2.Zero; @@ -190,22 +150,21 @@ internal class SeStringRenderer : IServiceType size = Vector2.Max(size, fragment.Offset + new Vector2(fragment.VisibleWidth, state.LineHeight)); // If we're not drawing at all, stop further processing. - if (state.DrawList.Handle is null) + if (state.DrawList.NativePtr is null) return new() { Size = size }; state.SplitDrawList(); + // Handle cases where ImGui.AlignTextToFramePadding has been called. + var pCurrentWindow = *(nint*)(ImGui.GetCurrentContext() + ImGuiContextCurrentWindowOffset); + var pWindowDc = pCurrentWindow + ImGuiWindowDcOffset; + var currLineTextBaseOffset = *(float*)(pWindowDc + ImGuiWindowTempDataCurrLineTextBaseOffset); var itemSize = size; - if (drawParams.TargetDrawList is null) + if (currLineTextBaseOffset != 0f) { - // Handle cases where ImGui.AlignTextToFramePadding has been called. - var currLineTextBaseOffset = ImGui.GetCurrentContext().CurrentWindow.DC.CurrLineTextBaseOffset; - if (currLineTextBaseOffset != 0f) - { - itemSize.Y += 2 * currLineTextBaseOffset; - foreach (ref var f in fragmentSpan) - f.Offset += new Vector2(0, currLineTextBaseOffset); - } + itemSize.Y += 2 * currLineTextBaseOffset; + foreach (ref var f in fragmentSpan) + f.Offset += new Vector2(0, currLineTextBaseOffset); } // Draw all text fragments. @@ -244,7 +203,7 @@ internal class SeStringRenderer : IServiceType var cursorPosBackup = ImGui.GetCursorScreenPos(); ImGui.SetCursorScreenPos(state.ScreenOffset + f.Offset); - clicked = ImGui.InvisibleButton("##link"u8, sz, buttonFlags); + clicked = ImGui.InvisibleButton("##link", sz, buttonFlags); if (ImGui.IsItemHovered()) hoveredLinkOffset = f.Link; if (ImGui.IsItemActive()) @@ -259,7 +218,7 @@ internal class SeStringRenderer : IServiceType if (!invisibleButtonDrawn) { ImGui.SetCursorScreenPos(state.ScreenOffset); - clicked = ImGui.InvisibleButton("##text"u8, itemSize, buttonFlags); + clicked = ImGui.InvisibleButton("##text", itemSize, buttonFlags); } ImGui.PopID(); @@ -321,6 +280,15 @@ internal class SeStringRenderer : IServiceType return displayRune.Value != 0; } + private void ReleaseUnmanagedResources() + { + if (this.splitter is not null) + { + ImGuiNative.ImDrawListSplitter_destroy(this.splitter); + this.splitter = null; + } + } + /// <summary>Creates text fragment, taking line and word breaking into account.</summary> /// <param name="state">Draw state.</param> private void CreateTextFragments(ref SeStringDrawState state) @@ -331,7 +299,7 @@ internal class SeStringRenderer : IServiceType var link = -1; foreach (var (breakAt, mandatory) in new LineBreakEnumerator(state.Span, UtfEnumeratorFlags.Utf8SeString)) { - // Might have happened if custom entity was longer than the previous break unit. + // Might have happened if custom entity was longer than the previous break unit. if (prev > breakAt) continue; @@ -423,7 +391,7 @@ internal class SeStringRenderer : IServiceType var overflows = Math.Max(w, xy.X + fragment.VisibleWidth) > state.WrapWidth; // Test if the fragment does not fit into the current line and the current line is not empty. - if (xy.X != 0 && state.Fragments.Count > 0 && !state.Fragments[^1].BreakAfter && overflows) + if (xy.X != 0 && this.fragments.Count > 0 && !this.fragments[^1].BreakAfter && overflows) { // Introduce break if this is the first time testing the current break unit or the current fragment // is an entity. @@ -433,7 +401,7 @@ internal class SeStringRenderer : IServiceType xy.X = 0; xy.Y += state.LineHeight; w = 0; - CollectionsMarshal.AsSpan(state.Fragments)[^1].BreakAfter = true; + CollectionsMarshal.AsSpan(this.fragments)[^1].BreakAfter = true; fragment.Offset = xy; // Now that the fragment is given its own line, test if it overflows again. @@ -451,16 +419,16 @@ internal class SeStringRenderer : IServiceType fragment = this.CreateFragment(state, prev, curr, true, xy, link, entity, remainingWidth); } } - else if (state.Fragments.Count > 0 && xy.X != 0) + else if (this.fragments.Count > 0 && xy.X != 0) { // New fragment fits into the current line, and it has a previous fragment in the same line. // If the previous fragment ends with a soft hyphen, adjust its width so that the width of its // trailing soft hyphens are not considered. - if (state.Fragments[^1].EndsWithSoftHyphen) - xy.X += state.Fragments[^1].AdvanceWidthWithoutSoftHyphen - state.Fragments[^1].AdvanceWidth; + if (this.fragments[^1].EndsWithSoftHyphen) + xy.X += this.fragments[^1].AdvanceWidthWithoutSoftHyphen - this.fragments[^1].AdvanceWidth; // Adjust this fragment's offset from kerning distance. - xy.X += state.CalculateScaledDistance(state.Fragments[^1].LastRune, fragment.FirstRune); + xy.X += state.CalculateScaledDistance(this.fragments[^1].LastRune, fragment.FirstRune); fragment.Offset = xy; } @@ -471,7 +439,7 @@ internal class SeStringRenderer : IServiceType w = Math.Max(w, xy.X + fragment.VisibleWidth); xy.X += fragment.AdvanceWidth; prev = fragment.To; - state.Fragments.Add(fragment); + this.fragments.Add(fragment); if (fragment.BreakAfter) { @@ -523,7 +491,7 @@ internal class SeStringRenderer : IServiceType if (gfdTextureSrv != 0) { state.Draw( - new(gfdTextureSrv), + gfdTextureSrv, offset + new Vector2(x, MathF.Round((state.LineHeight - size.Y) / 2)), size, useHq ? gfdEntry.HqUv0 : gfdEntry.Uv0, @@ -560,7 +528,7 @@ internal class SeStringRenderer : IServiceType return; - static unsafe nint GetGfdTextureSrv() + static nint GetGfdTextureSrv() { var uim = UIModule.Instance(); if (uim is null) @@ -585,7 +553,7 @@ internal class SeStringRenderer : IServiceType /// <summary>Determines a bitmap icon to display for the given SeString payload.</summary> /// <param name="sss">Byte span that should include a SeString payload.</param> /// <returns>Icon to display, or <see cref="None"/> if it should not be displayed as an icon.</returns> - private unsafe BitmapFontIcon GetBitmapFontIconFor(ReadOnlySpan<byte> sss) + private BitmapFontIcon GetBitmapFontIconFor(ReadOnlySpan<byte> sss) { var e = new ReadOnlySeStringSpan(sss).GetEnumerator(); if (!e.MoveNext() || e.Current.MacroCode is not MacroCode.Icon and not MacroCode.Icon2) @@ -602,16 +570,70 @@ internal class SeStringRenderer : IServiceType // Apply gamepad key mapping to icons. case MacroCode.Icon2 when payload.TryGetExpression(out var icon) && icon.TryGetInt(out var iconId): - ref var iconMapping = ref RaptureAtkModule.Instance()->AtkFontManager.Icon2RemapTable; - for (var i = 0; i < 30; i++) + var configName = (BitmapFontIcon)iconId switch { - if (iconMapping[i].IconId == iconId) - { - return (BitmapFontIcon)iconMapping[i].RemappedIconId; - } - } + ControllerShoulderLeft => SystemConfigOption.PadButton_L1, + ControllerShoulderRight => SystemConfigOption.PadButton_R1, + ControllerTriggerLeft => SystemConfigOption.PadButton_L2, + ControllerTriggerRight => SystemConfigOption.PadButton_R2, + ControllerButton3 => SystemConfigOption.PadButton_Triangle, + ControllerButton1 => SystemConfigOption.PadButton_Cross, + ControllerButton0 => SystemConfigOption.PadButton_Circle, + ControllerButton2 => SystemConfigOption.PadButton_Square, + ControllerStart => SystemConfigOption.PadButton_Start, + ControllerBack => SystemConfigOption.PadButton_Select, + ControllerAnalogLeftStick => SystemConfigOption.PadButton_LS, + ControllerAnalogLeftStickIn => SystemConfigOption.PadButton_LS, + ControllerAnalogLeftStickUpDown => SystemConfigOption.PadButton_LS, + ControllerAnalogLeftStickLeftRight => SystemConfigOption.PadButton_LS, + ControllerAnalogRightStick => SystemConfigOption.PadButton_RS, + ControllerAnalogRightStickIn => SystemConfigOption.PadButton_RS, + ControllerAnalogRightStickUpDown => SystemConfigOption.PadButton_RS, + ControllerAnalogRightStickLeftRight => SystemConfigOption.PadButton_RS, + _ => (SystemConfigOption?)null, + }; - return (BitmapFontIcon)iconId; + if (configName is null || !this.gameConfig.TryGet(configName.Value, out PadButtonValue pb)) + return (BitmapFontIcon)iconId; + + return pb switch + { + PadButtonValue.Autorun_Support => ControllerShoulderLeft, + PadButtonValue.Hotbar_Set_Change => ControllerShoulderRight, + PadButtonValue.XHB_Left_Start => ControllerTriggerLeft, + PadButtonValue.XHB_Right_Start => ControllerTriggerRight, + PadButtonValue.Jump => ControllerButton3, + PadButtonValue.Accept => ControllerButton0, + PadButtonValue.Cancel => ControllerButton1, + PadButtonValue.Map_Sub => ControllerButton2, + PadButtonValue.MainCommand => ControllerStart, + PadButtonValue.HUD_Select => ControllerBack, + PadButtonValue.Move_Operation => (BitmapFontIcon)iconId switch + { + ControllerAnalogLeftStick => ControllerAnalogLeftStick, + ControllerAnalogLeftStickIn => ControllerAnalogLeftStickIn, + ControllerAnalogLeftStickUpDown => ControllerAnalogLeftStickUpDown, + ControllerAnalogLeftStickLeftRight => ControllerAnalogLeftStickLeftRight, + ControllerAnalogRightStick => ControllerAnalogLeftStick, + ControllerAnalogRightStickIn => ControllerAnalogLeftStickIn, + ControllerAnalogRightStickUpDown => ControllerAnalogLeftStickUpDown, + ControllerAnalogRightStickLeftRight => ControllerAnalogLeftStickLeftRight, + _ => (BitmapFontIcon)iconId, + }, + PadButtonValue.Camera_Operation => (BitmapFontIcon)iconId switch + { + ControllerAnalogLeftStick => ControllerAnalogRightStick, + ControllerAnalogLeftStickIn => ControllerAnalogRightStickIn, + ControllerAnalogLeftStickUpDown => ControllerAnalogRightStickUpDown, + ControllerAnalogLeftStickLeftRight => ControllerAnalogRightStickLeftRight, + ControllerAnalogRightStick => ControllerAnalogRightStick, + ControllerAnalogRightStickIn => ControllerAnalogRightStickIn, + ControllerAnalogRightStickUpDown => ControllerAnalogRightStickUpDown, + ControllerAnalogRightStickLeftRight => ControllerAnalogRightStickLeftRight, + _ => (BitmapFontIcon)iconId, + }, + _ => (BitmapFontIcon)iconId, + }; } return None; @@ -742,4 +764,38 @@ internal class SeStringRenderer : IServiceType firstDisplayRune ?? default, lastNonSoftHyphenRune); } + + /// <summary>Represents a text fragment in a SeString span.</summary> + /// <param name="From">Starting byte offset (inclusive) in a SeString.</param> + /// <param name="To">Ending byte offset (exclusive) in a SeString.</param> + /// <param name="Link">Byte offset of the link that decorates this text fragment, or <c>-1</c> if none.</param> + /// <param name="Offset">Offset in pixels w.r.t. <see cref="SeStringDrawParams.ScreenOffset"/>.</param> + /// <param name="Entity">Replacement entity, if any.</param> + /// <param name="VisibleWidth">Visible width of this text fragment. This is the width required to draw everything + /// without clipping.</param> + /// <param name="AdvanceWidth">Advance width of this text fragment. This is the width required to add to the cursor + /// to position the next fragment correctly.</param> + /// <param name="AdvanceWidthWithoutSoftHyphen">Same with <paramref name="AdvanceWidth"/>, but trimming all the + /// trailing soft hyphens.</param> + /// <param name="BreakAfter">Whether to insert a line break after this text fragment.</param> + /// <param name="EndsWithSoftHyphen">Whether this text fragment ends with one or more soft hyphens.</param> + /// <param name="FirstRune">First rune in this text fragment.</param> + /// <param name="LastRune">Last rune in this text fragment, for the purpose of calculating kerning distance with + /// the following text fragment in the same line, if any.</param> + private record struct TextFragment( + int From, + int To, + int Link, + Vector2 Offset, + SeStringReplacementEntity Entity, + float VisibleWidth, + float AdvanceWidth, + float AdvanceWidthWithoutSoftHyphen, + bool BreakAfter, + bool EndsWithSoftHyphen, + Rune FirstRune, + Rune LastRune) + { + public bool IsSoftHyphenVisible => this.EndsWithSoftHyphen && this.BreakAfter; + } } diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/TextFragment.cs b/Dalamud/Interface/ImGuiSeStringRenderer/Internal/TextFragment.cs deleted file mode 100644 index a64c32109..000000000 --- a/Dalamud/Interface/ImGuiSeStringRenderer/Internal/TextFragment.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Numerics; -using System.Text; - -namespace Dalamud.Interface.ImGuiSeStringRenderer.Internal; - -/// <summary>Represents a text fragment in a SeString span.</summary> -/// <param name="From">Starting byte offset (inclusive) in a SeString.</param> -/// <param name="To">Ending byte offset (exclusive) in a SeString.</param> -/// <param name="Link">Byte offset of the link that decorates this text fragment, or <c>-1</c> if none.</param> -/// <param name="Offset">Offset in pixels w.r.t. <see cref="SeStringDrawParams.ScreenOffset"/>.</param> -/// <param name="Entity">Replacement entity, if any.</param> -/// <param name="VisibleWidth">Visible width of this text fragment. This is the width required to draw everything -/// without clipping.</param> -/// <param name="AdvanceWidth">Advance width of this text fragment. This is the width required to add to the cursor -/// to position the next fragment correctly.</param> -/// <param name="AdvanceWidthWithoutSoftHyphen">Same with <paramref name="AdvanceWidth"/>, but trimming all the -/// trailing soft hyphens.</param> -/// <param name="BreakAfter">Whether to insert a line break after this text fragment.</param> -/// <param name="EndsWithSoftHyphen">Whether this text fragment ends with one or more soft hyphens.</param> -/// <param name="FirstRune">First rune in this text fragment.</param> -/// <param name="LastRune">Last rune in this text fragment, for the purpose of calculating kerning distance with -/// the following text fragment in the same line, if any.</param> -internal record struct TextFragment( - int From, - int To, - int Link, - Vector2 Offset, - SeStringReplacementEntity Entity, - float VisibleWidth, - float AdvanceWidth, - float AdvanceWidthWithoutSoftHyphen, - bool BreakAfter, - bool EndsWithSoftHyphen, - Rune FirstRune, - Rune LastRune) -{ - /// <summary>Gets a value indicating whether the fragment ends with a visible soft hyphen.</summary> - public bool IsSoftHyphenVisible => this.EndsWithSoftHyphen && this.BreakAfter; -} diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs index 09c3e9ed9..e03f60a32 100644 --- a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs +++ b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawParams.cs @@ -1,6 +1,6 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; +using ImGuiNET; using Lumina.Text.Payloads; @@ -12,11 +12,7 @@ public record struct SeStringDrawParams /// <summary>Gets or sets the target draw list.</summary> /// <value>Target draw list, <c>default(ImDrawListPtr)</c> to not draw, or <c>null</c> to use /// <see cref="ImGui.GetWindowDrawList"/> (the default).</value> - /// <remarks> - /// If this value is set, <see cref="ImGui.Dummy"/> will not be called, and ImGui ID will be ignored. - /// You <b>must</b> specify a valid draw list, a valid font via <see cref="Font"/> and <see cref="FontSize"/> if you set this value, - /// since the renderer will not be able to retrieve them from ImGui context. - /// Must be set when drawing off the main thread. + /// <remarks>If this value is set, <see cref="ImGui.Dummy"/> will not be called, and ImGui ID will be ignored. /// </remarks> public ImDrawListPtr? TargetDrawList { get; set; } @@ -25,20 +21,16 @@ public record struct SeStringDrawParams public SeStringReplacementEntity.GetEntityDelegate? GetEntity { get; set; } /// <summary>Gets or sets the screen offset of the left top corner.</summary> - /// <value>Screen offset to draw at, or <c>null</c> to use <see cref="ImGui.GetCursorScreenPos()"/>, if no <see cref="TargetDrawList"/> - /// is specified. Otherwise, you must specify it (for example, by passing <see cref="ImGui.GetCursorScreenPos()"/> when passing the window - /// draw list.</value> + /// <value>Screen offset to draw at, or <c>null</c> to use <see cref="ImGui.GetCursorScreenPos"/>.</value> public Vector2? ScreenOffset { get; set; } /// <summary>Gets or sets the font to use.</summary> /// <value>Font to use, or <c>null</c> to use <see cref="ImGui.GetFont"/> (the default).</value> - /// <remarks>Must be set when specifying a target draw-list or drawing off the main thread.</remarks> public ImFontPtr? Font { get; set; } /// <summary>Gets or sets the font size.</summary> /// <value>Font size in pixels, or <c>0</c> to use the current ImGui font size <see cref="ImGui.GetFontSize"/>. /// </value> - /// <remarks>Must be set when specifying a target draw-list or drawing off the main thread.</remarks> public float? FontSize { get; set; } /// <summary>Gets or sets the line height ratio.</summary> @@ -48,7 +40,7 @@ public record struct SeStringDrawParams /// <summary>Gets or sets the wrapping width.</summary> /// <value>Width in pixels, or <c>null</c> to wrap at the end of available content region from - /// <see cref="ImGui.GetContentRegionAvail()"/> (the default).</value> + /// <see cref="ImGui.GetContentRegionAvail"/> (the default).</value> public float? WrapWidth { get; set; } /// <summary>Gets or sets the thickness of underline under links.</summary> @@ -113,8 +105,8 @@ public record struct SeStringDrawParams /// <summary>Gets the effective font.</summary> internal readonly unsafe ImFont* EffectiveFont => - (this.Font ?? ImGui.GetFont()) is var f && f.Handle is not null - ? f.Handle + (this.Font ?? ImGui.GetFont()) is var f && f.NativePtr is not null + ? f.NativePtr : throw new ArgumentException("Specified font is empty."); /// <summary>Gets the effective line height in pixels.</summary> diff --git a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs index ee03643ad..5f95ac1b9 100644 --- a/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs +++ b/Dalamud/Interface/ImGuiSeStringRenderer/SeStringDrawState.cs @@ -1,17 +1,15 @@ -using System.Collections.Generic; using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; using Dalamud.Interface.Utility; -using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; + using Lumina.Text.Payloads; using Lumina.Text.ReadOnly; @@ -19,86 +17,51 @@ namespace Dalamud.Interface.ImGuiSeStringRenderer; /// <summary>Calculated values from <see cref="SeStringDrawParams"/> using ImGui styles.</summary> [StructLayout(LayoutKind.Sequential)] -public unsafe ref struct SeStringDrawState : IDisposable +public unsafe ref struct SeStringDrawState { private static readonly int ChannelCount = Enum.GetValues<SeStringDrawChannel>().Length; private readonly ImDrawList* drawList; - - private ImDrawListSplitter splitter; + private readonly SeStringColorStackSet colorStackSet; + private readonly ImDrawListSplitter* splitter; /// <summary>Initializes a new instance of the <see cref="SeStringDrawState"/> struct.</summary> /// <param name="span">Raw SeString byte span.</param> /// <param name="ssdp">Instance of <see cref="SeStringDrawParams"/> to initialize from.</param> /// <param name="colorStackSet">Instance of <see cref="SeStringColorStackSet"/> to use.</param> - /// <param name="fragments">Fragments.</param> - /// <param name="font">Font to use.</param> + /// <param name="splitter">Instance of ImGui Splitter to use.</param> internal SeStringDrawState( ReadOnlySpan<byte> span, scoped in SeStringDrawParams ssdp, SeStringColorStackSet colorStackSet, - List<TextFragment> fragments, - ImFont* font) + ImDrawListSplitter* splitter) { + this.colorStackSet = colorStackSet; + this.splitter = splitter; + this.drawList = ssdp.TargetDrawList ?? ImGui.GetWindowDrawList(); this.Span = span; - this.ColorStackSet = colorStackSet; - this.Fragments = fragments; - this.Font = font; - - if (ssdp.TargetDrawList is null) - { - if (!ThreadSafety.IsMainThread) - { - throw new ArgumentException( - $"{nameof(ssdp.TargetDrawList)} must be set to render outside the main thread."); - } - - this.drawList = ssdp.TargetDrawList ?? ImGui.GetWindowDrawList(); - this.ScreenOffset = ssdp.ScreenOffset ?? ImGui.GetCursorScreenPos(); - this.FontSize = ssdp.FontSize ?? ImGui.GetFontSize(); - this.WrapWidth = ssdp.WrapWidth ?? ImGui.GetContentRegionAvail().X; - this.Color = ssdp.Color ?? ImGui.GetColorU32(ImGuiCol.Text); - this.LinkHoverBackColor = ssdp.LinkHoverBackColor ?? ImGui.GetColorU32(ImGuiCol.ButtonHovered); - this.LinkActiveBackColor = ssdp.LinkActiveBackColor ?? ImGui.GetColorU32(ImGuiCol.ButtonActive); - this.ThemeIndex = ssdp.ThemeIndex ?? AtkStage.Instance()->AtkUIColorHolder->ActiveColorThemeType; - } - else - { - this.drawList = ssdp.TargetDrawList.Value; - this.ScreenOffset = ssdp.ScreenOffset ?? Vector2.Zero; - - this.ScreenOffset = ssdp.ScreenOffset ?? throw new ArgumentException( - $"{nameof(ssdp.ScreenOffset)} must be set when specifying a target draw list, as it cannot be fetched from the ImGui state. (GetCursorScreenPos?)"); - this.FontSize = ssdp.FontSize ?? throw new ArgumentException( - $"{nameof(ssdp.FontSize)} must be set when specifying a target draw list, as it cannot be fetched from the ImGui state."); - - // this.FontSize = ssdp.FontSize ?? throw new ArgumentException( - // $"{nameof(ssdp.FontSize)} must be set when specifying a target draw list, as it cannot be fetched from the ImGui state."); - this.WrapWidth = ssdp.WrapWidth ?? float.MaxValue; - this.Color = ssdp.Color ?? uint.MaxValue; - this.LinkHoverBackColor = 0; // Interactivity is unused outside the main thread. - this.LinkActiveBackColor = 0; // Interactivity is unused outside the main thread. - this.ThemeIndex = ssdp.ThemeIndex ?? 0; - } - - this.splitter = default; this.GetEntity = ssdp.GetEntity; + this.ScreenOffset = ssdp.ScreenOffset ?? ImGui.GetCursorScreenPos(); this.ScreenOffset = new(MathF.Round(this.ScreenOffset.X), MathF.Round(this.ScreenOffset.Y)); - this.FontSizeScale = this.FontSize / this.Font.FontSize; + this.Font = ssdp.EffectiveFont; + this.FontSize = ssdp.FontSize ?? ImGui.GetFontSize(); + this.FontSizeScale = this.FontSize / this.Font->FontSize; this.LineHeight = MathF.Round(ssdp.EffectiveLineHeight); + this.WrapWidth = ssdp.WrapWidth ?? ImGui.GetContentRegionAvail().X; this.LinkUnderlineThickness = ssdp.LinkUnderlineThickness ?? 0f; this.Opacity = ssdp.EffectiveOpacity; this.EdgeOpacity = (ssdp.EdgeStrength ?? 0.25f) * ssdp.EffectiveOpacity; + this.Color = ssdp.Color ?? ImGui.GetColorU32(ImGuiCol.Text); this.EdgeColor = ssdp.EdgeColor ?? 0xFF000000; this.ShadowColor = ssdp.ShadowColor ?? 0xFF000000; + this.LinkHoverBackColor = ssdp.LinkHoverBackColor ?? ImGui.GetColorU32(ImGuiCol.ButtonHovered); + this.LinkActiveBackColor = ssdp.LinkActiveBackColor ?? ImGui.GetColorU32(ImGuiCol.ButtonActive); this.ForceEdgeColor = ssdp.ForceEdgeColor; + this.ThemeIndex = ssdp.ThemeIndex ?? AtkStage.Instance()->AtkUIColorHolder->ActiveColorThemeType; this.Bold = ssdp.Bold; this.Italic = ssdp.Italic; this.Edge = ssdp.Edge; this.Shadow = ssdp.Shadow; - - this.ColorStackSet.Initialize(ref this); - fragments.Clear(); } /// <inheritdoc cref="SeStringDrawParams.TargetDrawList"/> @@ -114,7 +77,7 @@ public unsafe ref struct SeStringDrawState : IDisposable public Vector2 ScreenOffset { get; } /// <inheritdoc cref="SeStringDrawParams.Font"/> - public ImFontPtr Font { get; } + public ImFont* Font { get; } /// <inheritdoc cref="SeStringDrawParams.FontSize"/> public float FontSize { get; } @@ -175,7 +138,7 @@ public unsafe ref struct SeStringDrawState : IDisposable /// <summary>Gets a value indicating whether the edge should be drawn.</summary> public readonly bool ShouldDrawEdge => - (this.Edge || this.ColorStackSet.HasAdditionalEdgeColor) && this.EdgeColor >= 0x1000000; + (this.Edge || this.colorStackSet.HasAdditionalEdgeColor) && this.EdgeColor >= 0x1000000; /// <summary>Gets a value indicating whether the edge should be drawn.</summary> public readonly bool ShouldDrawShadow => this is { Shadow: true, ShadowColor: >= 0x1000000 }; @@ -183,20 +146,11 @@ public unsafe ref struct SeStringDrawState : IDisposable /// <summary>Gets a value indicating whether the edge should be drawn.</summary> public readonly bool ShouldDrawForeground => this is { Color: >= 0x1000000 }; - /// <summary>Gets the color stacks.</summary> - internal SeStringColorStackSet ColorStackSet { get; } - - /// <summary>Gets the text fragments.</summary> - internal List<TextFragment> Fragments { get; } - - /// <inheritdoc/> - public void Dispose() => this.splitter.ClearFreeMemory(); - /// <summary>Sets the current channel in the ImGui draw list splitter.</summary> /// <param name="channelIndex">Channel to switch to.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] - public void SetCurrentChannel(SeStringDrawChannel channelIndex) => - this.splitter.SetCurrentChannel(this.drawList, (int)channelIndex); + public readonly void SetCurrentChannel(SeStringDrawChannel channelIndex) => + ImGuiNative.ImDrawListSplitter_SetCurrentChannel(this.splitter, this.drawList, (int)channelIndex); /// <summary>Draws a single texture.</summary> /// <param name="igTextureId">ImGui texture ID to draw from.</param> @@ -206,7 +160,7 @@ public unsafe ref struct SeStringDrawState : IDisposable /// <param name="uv1">Right bottom corner of the glyph w.r.t. its glyph origin in the source texture.</param> /// <param name="color">Color of the glyph in RGBA.</param> public readonly void Draw( - ImTextureID igTextureId, + nint igTextureId, Vector2 offset, Vector2 size, Vector2 uv0, @@ -239,7 +193,7 @@ public unsafe ref struct SeStringDrawState : IDisposable /// top and bottom pixels to apply faux italicization by <see cref="Vector2.X"/> and <see cref="Vector2.Y"/> /// respectively.</param> public readonly void Draw( - ImTextureID igTextureId, + nint igTextureId, Vector2 offset, Vector2 xy0, Vector2 xy1, @@ -265,9 +219,9 @@ public unsafe ref struct SeStringDrawState : IDisposable /// <summary>Draws a single glyph using current styling configurations.</summary> /// <param name="g">Glyph to draw.</param> /// <param name="offset">Offset of the glyph in pixels w.r.t. <see cref="ScreenOffset"/>.</param> - internal void DrawGlyph(scoped in ImGuiHelpers.ImFontGlyphReal g, Vector2 offset) + internal readonly void DrawGlyph(scoped in ImGuiHelpers.ImFontGlyphReal g, Vector2 offset) { - var texId = this.Font.ContainerAtlas.Textures.Ref<ImFontAtlasTexture>(g.TextureIndex).TexID; + var texId = this.Font->ContainerAtlas->Textures.Ref<ImFontAtlasTexture>(g.TextureIndex).TexID; var xy0 = new Vector2( MathF.Round(g.X0 * this.FontSizeScale), MathF.Round(g.Y0 * this.FontSizeScale)); @@ -317,14 +271,14 @@ public unsafe ref struct SeStringDrawState : IDisposable /// <param name="offset">Offset of the glyph in pixels w.r.t. /// <see cref="SeStringDrawParams.ScreenOffset"/>.</param> /// <param name="advanceWidth">Advance width of the glyph.</param> - internal void DrawLinkUnderline(Vector2 offset, float advanceWidth) + internal readonly void DrawLinkUnderline(Vector2 offset, float advanceWidth) { if (this.LinkUnderlineThickness < 1f) return; offset += this.ScreenOffset; offset.Y += (this.LinkUnderlineThickness - 1) / 2f; - offset.Y += MathF.Round(((this.LineHeight - this.FontSize) / 2) + (this.Font.Ascent * this.FontSizeScale)); + offset.Y += MathF.Round(((this.LineHeight - this.FontSize) / 2) + (this.Font->Ascent * this.FontSizeScale)); this.SetCurrentChannel(SeStringDrawChannel.Foreground); this.DrawList.AddLine( @@ -351,9 +305,9 @@ public unsafe ref struct SeStringDrawState : IDisposable internal readonly ref ImGuiHelpers.ImFontGlyphReal FindGlyph(Rune rune) { var p = rune.Value is >= ushort.MinValue and < ushort.MaxValue - ? (ImFontGlyphPtr)this.Font.FindGlyph((ushort)rune.Value) - : this.Font.FallbackGlyph; - return ref *(ImGuiHelpers.ImFontGlyphReal*)p.Handle; + ? ImGuiNative.ImFont_FindGlyph(this.Font, (ushort)rune.Value) + : this.Font->FallbackGlyph; + return ref *(ImGuiHelpers.ImFontGlyphReal*)p; } /// <summary>Gets the glyph corresponding to the given codepoint.</summary> @@ -386,7 +340,8 @@ public unsafe ref struct SeStringDrawState : IDisposable return 0; return MathF.Round( - this.Font.GetDistanceAdjustmentForPair( + ImGuiNative.ImFont_GetDistanceAdjustmentForPair( + this.Font, (ushort)left.Value, (ushort)right.Value) * this.FontSizeScale); } @@ -399,15 +354,15 @@ public unsafe ref struct SeStringDrawState : IDisposable switch (payload.MacroCode) { case MacroCode.Color: - this.ColorStackSet.HandleColorPayload(ref this, payload); + this.colorStackSet.HandleColorPayload(ref this, payload); return true; case MacroCode.EdgeColor: - this.ColorStackSet.HandleEdgeColorPayload(ref this, payload); + this.colorStackSet.HandleEdgeColorPayload(ref this, payload); return true; case MacroCode.ShadowColor: - this.ColorStackSet.HandleShadowColorPayload(ref this, payload); + this.colorStackSet.HandleShadowColorPayload(ref this, payload); return true; case MacroCode.Bold when payload.TryGetExpression(out var e) && e.TryGetUInt(out var u): @@ -428,11 +383,11 @@ public unsafe ref struct SeStringDrawState : IDisposable return true; case MacroCode.ColorType: - this.ColorStackSet.HandleColorTypePayload(ref this, payload); + this.colorStackSet.HandleColorTypePayload(ref this, payload); return true; case MacroCode.EdgeColorType: - this.ColorStackSet.HandleEdgeColorTypePayload(ref this, payload); + this.colorStackSet.HandleEdgeColorTypePayload(ref this, payload); return true; default: @@ -442,9 +397,10 @@ public unsafe ref struct SeStringDrawState : IDisposable /// <summary>Splits the draw list.</summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal void SplitDrawList() => this.splitter.Split(this.drawList, ChannelCount); + internal readonly void SplitDrawList() => + ImGuiNative.ImDrawListSplitter_Split(this.splitter, this.drawList, ChannelCount); /// <summary>Merges the draw list.</summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal void MergeDrawList() => this.splitter.Merge(this.drawList); + internal readonly void MergeDrawList() => ImGuiNative.ImDrawListSplitter_Merge(this.splitter, this.drawList); } diff --git a/Dalamud/Interface/Internal/Asserts/AssertHandler.cs b/Dalamud/Interface/Internal/Asserts/AssertHandler.cs deleted file mode 100644 index fadf80406..000000000 --- a/Dalamud/Interface/Internal/Asserts/AssertHandler.cs +++ /dev/null @@ -1,306 +0,0 @@ -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Runtime.InteropServices; -using System.Threading; -using System.Windows.Forms; - -using Dalamud.Plugin.Internal; -using Dalamud.Utility; - -using Serilog; - -namespace Dalamud.Interface.Internal.Asserts; - -/// <summary> -/// Class responsible for registering and handling ImGui asserts. -/// </summary> -internal class AssertHandler : IDisposable -{ - private const int HideThreshold = 20; - private const int HidePrintEvery = 500; - - private readonly HashSet<string> ignoredAsserts = []; - private readonly Dictionary<string, uint> assertCounts = []; - - // Store callback to avoid it from being GC'd - private readonly AssertCallbackDelegate callback; - - private bool everShownAssertThisSession = false; - - /// <summary> - /// Initializes a new instance of the <see cref="AssertHandler"/> class. - /// </summary> - public unsafe AssertHandler() - { - this.callback = this.OnImGuiAssert; - } - - private unsafe delegate void AssertCallbackDelegate( - void* expr, - void* file, - int line); - - /// <summary> - /// Gets or sets a value indicating whether ImGui asserts should be shown to the user. - /// </summary> - public bool ShowAsserts { get; set; } - - /// <summary> - /// Gets or sets a value indicating whether we want to hide asserts that occur frequently (= every update) - /// and whether we want to log callstacks. - /// </summary> - public bool EnableVerboseLogging { get; set; } - - /// <summary> - /// Register the cimgui assert handler with the native library. - /// </summary> - public unsafe void Setup() - { - CustomNativeFunctions.igCustom_SetAssertCallback( - Marshal.GetFunctionPointerForDelegate(this.callback).ToPointer()); - } - - /// <summary> - /// Unregister the cimgui assert handler with the native library. - /// </summary> - public unsafe void Shutdown() - { - CustomNativeFunctions.igCustom_SetAssertCallback(null); - } - - /// <inheritdoc/> - public void Dispose() - { - this.Shutdown(); - } - - private static string? ExtractImguiFunction(StackTrace stackTrace) - { - var frame = stackTrace.GetFrames() - .FirstOrDefault(f => f.GetMethod()?.DeclaringType?.Namespace == "Dalamud.Bindings.ImGui"); - if (frame == null) - return null; - - var method = frame.GetMethod(); - if (method == null) - return null; - - return $"{method.Name}({string.Join(", ", method.GetParameters().Select(p => p.Name))})"; - } - - private static StackTrace GenerateStackTrace() - { - var trace = DiagnosticUtil.GetUsefulTrace(new StackTrace(true)); - var frames = trace.GetFrames().ToList(); - - // Remove everything that happens in the assert context. - var lastAssertIdx = frames.FindLastIndex(f => f.GetMethod()?.DeclaringType == typeof(AssertHandler)); - if (lastAssertIdx >= 0) - { - frames.RemoveRange(0, lastAssertIdx + 1); - } - - var firstInterfaceManagerIdx = frames.FindIndex(f => f.GetMethod()?.DeclaringType == typeof(InterfaceManager)); - if (firstInterfaceManagerIdx >= 0) - { - frames.RemoveRange(firstInterfaceManagerIdx, frames.Count - firstInterfaceManagerIdx); - } - - return new StackTrace(frames); - } - - private unsafe void OnImGuiAssert(void* pExpr, void* pFile, int line) - { - var expr = Marshal.PtrToStringAnsi(new IntPtr(pExpr)); - var file = Marshal.PtrToStringAnsi(new IntPtr(pFile)); - if (expr == null || file == null) - { - Log.Warning( - "ImGui assertion failed: {Expr} at {File}:{Line} (failed to parse)", - expr, - file, - line); - return; - } - - var key = $"{file}:{line}"; - if (this.ignoredAsserts.Contains(key)) - return; - - // Don't log unless we've ever shown an assert this session - if (!this.ShowAsserts && !this.everShownAssertThisSession) - return; - - Lazy<StackTrace> stackTrace = new(GenerateStackTrace); - - if (!this.EnableVerboseLogging) - { - if (this.assertCounts.TryGetValue(key, out var count)) - { - this.assertCounts[key] = count + 1; - - if (count <= HideThreshold || count % HidePrintEvery == 0) - { - Log.Warning( - "ImGui assertion failed: {Expr} at {File}:{Line} (repeated {Count} times)", - expr, - file, - line, - count); - } - } - else - { - this.assertCounts[key] = 1; - } - } - else - { - Log.Warning( - "ImGui assertion failed: {Expr} at {File}:{Line}\n{StackTrace:l}", - expr, - file, - line, - stackTrace.Value.ToString()); - } - - if (!this.ShowAsserts) - return; - - this.everShownAssertThisSession = true; - - string? GetRepoUrl() - { - // TODO: implot, imguizmo? - const string userName = "goatcorp"; - const string repoName = "gc-imgui"; - const string branch = "1.88-enhanced-abifix"; - - if (!file.Contains("imgui", StringComparison.OrdinalIgnoreCase)) - return null; - - var lastSlash = file.LastIndexOf('\\'); - var fileName = file[(lastSlash + 1)..]; - return $"https://github.com/{userName}/{repoName}/blob/{branch}/{fileName}#L{line}"; - } - - // grab the stack trace now that we've decided to show UI. - var responsiblePlugin = Service<PluginManager>.GetNullable()?.FindCallingPlugin(stackTrace.Value); - var responsibleMethodCall = ExtractImguiFunction(stackTrace.Value); - - var gitHubUrl = GetRepoUrl(); - var showOnGitHubButton = new TaskDialogButton - { - Text = "Open GitHub", - AllowCloseDialog = false, - Enabled = !gitHubUrl.IsNullOrEmpty(), - }; - showOnGitHubButton.Click += (_, _) => - { - if (!gitHubUrl.IsNullOrEmpty()) - Util.OpenLink(gitHubUrl); - }; - - var breakButton = new TaskDialogButton - { - Text = "Break", - AllowCloseDialog = true, - }; - - var disableButton = new TaskDialogButton - { - Text = "Disable for this session", - AllowCloseDialog = true, - }; - - var ignoreButton = TaskDialogButton.Ignore; - - TaskDialogButton? result = null; - - void DialogThreadStart() - { - // TODO(goat): This is probably not gonna work if we showed the loading dialog - // this session since it already loaded visual styles... - Application.EnableVisualStyles(); - - string text; - if (responsiblePlugin != null) - { - text = $"The plugin \"{responsiblePlugin.Name}\" appears to have caused an ImGui assertion failure. " + - $"Please report this problem to the plugin's developer.\n\n"; - } - else - { - text = "Some code in a plugin or Dalamud itself has caused an ImGui assertion failure. " + - "Please report this problem in the Dalamud discord.\n\n"; - } - - text += $"You may attempt to continue running the game, but Dalamud UI elements may not work " + - $"correctly, or the game may crash after resuming.\n\n"; - - if (responsibleMethodCall != null) - { - text += $"Assertion failed: {expr} when performing {responsibleMethodCall}\n{file}:{line}"; - } - else - { - text += $"Assertion failed: {expr}\nAt: {file}:{line}"; - } - - var page = new TaskDialogPage - { - Heading = "ImGui assertion failed", - Caption = "Dalamud", - Expander = new TaskDialogExpander - { - CollapsedButtonText = "Show stack trace", - ExpandedButtonText = "Hide stack trace", - Text = stackTrace.Value.ToString(), - }, - Text = text, - Icon = TaskDialogIcon.Warning, - Buttons = - [ - showOnGitHubButton, - breakButton, - disableButton, - ignoreButton, - ], - DefaultButton = showOnGitHubButton, - }; - - result = TaskDialog.ShowDialog(page); - } - - // Run in a separate thread because of STA and to not mess up other stuff - var thread = new Thread(DialogThreadStart) - { - Name = "Dalamud ImGui Assert Dialog", - }; - thread.SetApartmentState(ApartmentState.STA); - thread.Start(); - thread.Join(); - - if (result == breakButton) - { - Debugger.Break(); - } - else if (result == disableButton) - { - this.ShowAsserts = false; - } - else if (result == ignoreButton) - { - this.ignoredAsserts.Add(key); - } - } - - private static unsafe class CustomNativeFunctions - { - [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] -#pragma warning disable SA1300 - public static extern void igCustom_SetAssertCallback(void* cb); -#pragma warning restore SA1300 - } -} diff --git a/Dalamud/Interface/Internal/Badge/BadgeInfo.cs b/Dalamud/Interface/Internal/Badge/BadgeInfo.cs deleted file mode 100644 index 0787f0658..000000000 --- a/Dalamud/Interface/Internal/Badge/BadgeInfo.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System.Numerics; - -namespace Dalamud.Interface.Internal.Badge; - -/// <summary> -/// Represents information about a badge. -/// </summary> -/// <param name="Name">Name of the badge.</param> -/// <param name="Description">Description of the badge.</param> -/// <param name="IconIndex">Icon index.</param> -/// <param name="UnlockSha256">Sha256 hash of the unlock password.</param> -/// <param name="UnlockMethod">How the badge is unlocked.</param> -internal record BadgeInfo( - Func<string> Name, - Func<string> Description, - int IconIndex, - string UnlockSha256, - BadgeUnlockMethod UnlockMethod) -{ - private const float BadgeWidth = 256; - private const float BadgeHeight = 256; - private const float BadgesPerRow = 2; - - /// <summary> - /// Gets the UV coordinates for the badge icon in the atlas. - /// </summary> - /// <param name="atlasWidthPx">Width of the atlas.</param> - /// <param name="atlasHeightPx">Height of the atlas.</param> - /// <returns>UV coordinates.</returns> - public (Vector2 Uv0, Vector2 Uv1) GetIconUv(float atlasWidthPx, float atlasHeightPx) - { - // Calculate row and column from icon index - var col = this.IconIndex % (int)BadgesPerRow; - var row = this.IconIndex / (int)BadgesPerRow; - - // Calculate pixel positions - var x0 = col * BadgeWidth; - var y0 = row * BadgeHeight; - var x1 = x0 + BadgeWidth; - var y1 = y0 + BadgeHeight; - - // Convert to UV coordinates (0.0 to 1.0) - var uv0 = new Vector2(x0 / atlasWidthPx, y0 / atlasHeightPx); - var uv1 = new Vector2(x1 / atlasWidthPx, y1 / atlasHeightPx); - - return (uv0, uv1); - } -} diff --git a/Dalamud/Interface/Internal/Badge/BadgeManager.cs b/Dalamud/Interface/Internal/Badge/BadgeManager.cs deleted file mode 100644 index 9290d6cc8..000000000 --- a/Dalamud/Interface/Internal/Badge/BadgeManager.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System.Collections.Generic; -using System.Linq; - -using Dalamud.Configuration.Internal; - -namespace Dalamud.Interface.Internal.Badge; - -/// <summary> -/// Service responsible for managing user badges. -/// </summary> -[ServiceManager.EarlyLoadedService] -internal class BadgeManager : IServiceType -{ - private readonly DalamudConfiguration configuration; - - private readonly List<BadgeInfo> badges = - [ - new(() => "Test Badge", - () => "Awarded for testing badges.", - 0, - "937e8d5fbb48bd4949536cd65b8d35c426b80d2f830c5c308e2cdec422ae2244", - BadgeUnlockMethod.User), - - new(() => "Fundraiser #1 Donor", - () => "Awarded for participating in the first patch fundraiser.", - 1, - "56e752257bd0cbb2944f95cc7b3cb3d0db15091dd043f7a195ed37028d079322", - BadgeUnlockMethod.User) - ]; - - private readonly List<int> unlockedBadgeIndices = []; - - /// <summary> - /// Initializes a new instance of the <see cref="BadgeManager"/> class. - /// </summary> - /// <param name="configuration">Configuration to use.</param> - [ServiceManager.ServiceConstructor] - public BadgeManager(DalamudConfiguration configuration) - { - this.configuration = configuration; - - foreach (var usedBadge in this.configuration.UsedBadgePasswords) - { - this.TryUnlockBadge(usedBadge, BadgeUnlockMethod.Startup, out _); - } - } - - /// <summary> - /// Gets the badges the user has unlocked. - /// </summary> - public IEnumerable<BadgeInfo> UnlockedBadges - => this.badges.Where((_, index) => this.unlockedBadgeIndices.Contains(index)); - - /// <summary> - /// Unlock a badge with the given password and method. - /// </summary> - /// <param name="password">The password to unlock the badge with.</param> - /// <param name="method">How we are unlocking this badge.</param> - /// <param name="unlockedBadge">The badge that was unlocked, if the function returns true, null otherwise.</param> - /// <returns>The unlocked badge, if one was unlocked by this call.</returns> - public bool TryUnlockBadge(string password, BadgeUnlockMethod method, out BadgeInfo unlockedBadge) - { - var sha256 = System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(password)); - var hashString = Convert.ToHexString(sha256); - - foreach (var (idx, badge) in this.badges.Where(x => x.UnlockMethod == method || method == BadgeUnlockMethod.Startup).Index()) - { - if (!this.unlockedBadgeIndices.Contains(idx) && badge.UnlockSha256.Equals(hashString, StringComparison.OrdinalIgnoreCase)) - { - if (method != BadgeUnlockMethod.Startup) - { - this.configuration.UsedBadgePasswords.Add(password); - this.configuration.QueueSave(); - } - - this.unlockedBadgeIndices.Add(idx); - unlockedBadge = badge; - return true; - } - } - - unlockedBadge = null!; - return false; - } -} diff --git a/Dalamud/Interface/Internal/Badge/BadgeUnlockMethod.cs b/Dalamud/Interface/Internal/Badge/BadgeUnlockMethod.cs deleted file mode 100644 index 45828c097..000000000 --- a/Dalamud/Interface/Internal/Badge/BadgeUnlockMethod.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Interface.Internal.Badge; - -/// <summary> -/// Method by which a badge can be unlocked. -/// </summary> -internal enum BadgeUnlockMethod -{ - /// <summary> - /// Badge can be unlocked by the user by entering a password. - /// </summary> - User, - - /// <summary> - /// Badge can be unlocked from Dalamud internal features. - /// </summary> - Internal, - - /// <summary> - /// Badge is no longer obtainable and can only be unlocked from the configuration file. - /// </summary> - Startup, -} diff --git a/Dalamud/Interface/Internal/DalamudCommands.cs b/Dalamud/Interface/Internal/DalamudCommands.cs index 9812a4e6a..fb64ad979 100644 --- a/Dalamud/Interface/Internal/DalamudCommands.cs +++ b/Dalamud/Interface/Internal/DalamudCommands.cs @@ -1,9 +1,9 @@ +using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using CheapLoc; - using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.Command; @@ -11,6 +11,7 @@ using Dalamud.Game.Gui; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Plugin.Internal; using Dalamud.Utility; +using Serilog; namespace Dalamud.Interface.Internal; @@ -139,17 +140,18 @@ internal class DalamudCommands : IServiceType "Open Dalamud's startup timing profiler."), }); + commandManager.AddHandler("/imdebug", new CommandInfo(this.OnDebugImInfoCommand) + { + HelpMessage = "ImGui DEBUG", + ShowInHelp = false, + }); + commandManager.AddHandler("/xlcopylog", new CommandInfo(this.OnCopyLogCommand) { HelpMessage = Loc.Localize( "DalamudCopyLogHelp", "Copy the dalamud.log file to your clipboard."), }); - // Add the new command handler for toggling multi-monitor option - commandManager.AddHandler("/xltogglemultimonitor", new CommandInfo(this.OnToggleMultiMonitorCommand) - { - HelpMessage = Loc.Localize("DalamudToggleMultiMonitorHelp", "Toggle multi-monitor windows."), - }); } private void OnUnloadCommand(string command, string arguments) @@ -176,7 +178,7 @@ internal class DalamudCommands : IServiceType if (arguments.IsNullOrWhitespace()) { chatGui.Print(Loc.Localize("DalamudCmdHelpAvailable", "Available commands:")); - foreach (var cmd in commandManager.Commands.OrderBy(cInfo => cInfo.Key)) + foreach (var cmd in commandManager.Commands) { if (!cmd.Value.ShowInHelp) continue; @@ -207,7 +209,7 @@ internal class DalamudCommands : IServiceType var chatGui = Service<ChatGui>.Get(); var configuration = Service<DalamudConfiguration>.Get(); - configuration.BadWords ??= []; + configuration.BadWords ??= new List<string>(); if (configuration.BadWords.Count == 0) { @@ -226,7 +228,7 @@ internal class DalamudCommands : IServiceType var chatGui = Service<ChatGui>.Get(); var configuration = Service<DalamudConfiguration>.Get(); - configuration.BadWords ??= []; + configuration.BadWords ??= new List<string>(); configuration.BadWords.RemoveAll(x => x == arguments); @@ -264,7 +266,7 @@ internal class DalamudCommands : IServiceType else { // Revert to the original BGM by specifying an invalid one - gameGui.ResetBgm(); + gameGui.SetBgm(9999); } } @@ -298,18 +300,41 @@ internal class DalamudCommands : IServiceType Service<DalamudInterface>.Get().ToggleLogWindow(); } + private void OnDebugImInfoCommand(string command, string arguments) + { + var io = Service<InterfaceManager>.Get().LastImGuiIoPtr; + var info = $"WantCaptureKeyboard: {io.WantCaptureKeyboard}\n"; + info += $"WantCaptureMouse: {io.WantCaptureMouse}\n"; + info += $"WantSetMousePos: {io.WantSetMousePos}\n"; + info += $"WantTextInput: {io.WantTextInput}\n"; + info += $"WantSaveIniSettings: {io.WantSaveIniSettings}\n"; + info += $"BackendFlags: {(int)io.BackendFlags}\n"; + info += $"DeltaTime: {io.DeltaTime}\n"; + info += $"DisplaySize: {io.DisplaySize.X} {io.DisplaySize.Y}\n"; + info += $"Framerate: {io.Framerate}\n"; + info += $"MetricsActiveWindows: {io.MetricsActiveWindows}\n"; + info += $"MetricsRenderWindows: {io.MetricsRenderWindows}\n"; + info += $"MousePos: {io.MousePos.X} {io.MousePos.Y}\n"; + info += $"MouseClicked: {io.MouseClicked}\n"; + info += $"MouseDown: {io.MouseDown}\n"; + info += $"NavActive: {io.NavActive}\n"; + info += $"NavVisible: {io.NavVisible}\n"; + + Log.Information(info); + } + private void OnVersionInfoCommand(string command, string arguments) { var chatGui = Service<ChatGui>.Get(); chatGui.Print(new SeStringBuilder() .AddItalics("Dalamud:") - .AddText($" {Versioning.GetScmVersion()}") + .AddText($" {Util.GetScmVersion()}") .Build()); chatGui.Print(new SeStringBuilder() .AddItalics("FFXIVCS:") - .AddText($" {Versioning.GetGitHashClientStructs()}") + .AddText($" {Util.GetGitHashClientStructs()}") .Build()); } @@ -325,7 +350,7 @@ internal class DalamudCommands : IServiceType var configuration = Service<DalamudConfiguration>.Get(); var localization = Service<Localization>.Get(); - if (Localization.ApplicableLangCodes.Contains(arguments.ToLowerInvariant()) || arguments.Equals("en", StringComparison.InvariantCultureIgnoreCase)) + if (Localization.ApplicableLangCodes.Contains(arguments.ToLowerInvariant()) || arguments.ToLowerInvariant() == "en") { localization.SetupWithLangCode(arguments.ToLowerInvariant()); configuration.LanguageOverride = arguments.ToLowerInvariant(); @@ -391,19 +416,4 @@ internal class DalamudCommands : IServiceType : Loc.Localize("DalamudLogCopyFailure", "Could not copy log file to clipboard."); chatGui.Print(message); } - - private void OnToggleMultiMonitorCommand(string command, string arguments) - { - var configuration = Service<DalamudConfiguration>.Get(); - var chatGui = Service<ChatGui>.Get(); - - configuration.IsDisableViewport = !configuration.IsDisableViewport; - configuration.QueueSave(); - - var message = configuration.IsDisableViewport - ? Loc.Localize("DalamudMultiMonitorDisabled", "Multi-monitor windows disabled.") - : Loc.Localize("DalamudMultiMonitorEnabled", "Multi-monitor windows enabled."); - - chatGui.Print(message); - } } diff --git a/Dalamud/Interface/Internal/DalamudIme.cs b/Dalamud/Interface/Internal/DalamudIme.cs index e5ff83ff8..c061ec12d 100644 --- a/Dalamud/Interface/Internal/DalamudIme.cs +++ b/Dalamud/Interface/Internal/DalamudIme.cs @@ -2,22 +2,26 @@ using System.Collections.Generic; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Text.Unicode; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game.Text; using Dalamud.Hooking.WndProcHook; using Dalamud.Interface.Colors; using Dalamud.Interface.GameFonts; +using Dalamud.Interface.Internal.ManagedAsserts; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; +using ImGuiNET; + #if IMEDEBUG using Serilog; #endif @@ -34,6 +38,9 @@ namespace Dalamud.Interface.Internal; [ServiceManager.EarlyLoadedService] internal sealed unsafe class DalamudIme : IInternalDisposableService { + private const int CImGuiStbTextCreateUndoOffset = 0xB57A0; + private const int CImGuiStbTextUndoOffset = 0xB59C0; + private const int ImePageSize = 9; private static readonly Dictionary<int, string> WmNames = @@ -44,24 +51,29 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService .ToDictionary(x => x.Item1, x => x.Name); private static readonly UnicodeRange[] HanRange = - [ + { UnicodeRanges.CjkRadicalsSupplement, UnicodeRanges.CjkSymbolsandPunctuation, UnicodeRanges.CjkUnifiedIdeographsExtensionA, UnicodeRanges.CjkUnifiedIdeographs, UnicodeRanges.CjkCompatibilityIdeographs, - UnicodeRanges.CjkCompatibilityForms + UnicodeRanges.CjkCompatibilityForms, // No more; Extension B~ are outside BMP range - ]; + }; private static readonly UnicodeRange[] HangulRange = - [ + { UnicodeRanges.HangulJamo, UnicodeRanges.HangulSyllables, UnicodeRanges.HangulCompatibilityJamo, UnicodeRanges.HangulJamoExtendedA, - UnicodeRanges.HangulJamoExtendedB - ]; + UnicodeRanges.HangulJamoExtendedB, + }; + + private static readonly delegate* unmanaged<ImGuiInputTextState*, StbTextEditState*, int, int, int, void> + StbTextMakeUndoReplace; + + private static readonly delegate* unmanaged<ImGuiInputTextState*, StbTextEditState*, void> StbTextUndo; [ServiceManager.ServiceDependency] private readonly DalamudConfiguration dalamudConfiguration = Service<DalamudConfiguration>.Get(); @@ -74,7 +86,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService private readonly ImGuiSetPlatformImeDataDelegate setPlatformImeDataDelegate; /// <summary>The candidates.</summary> - private readonly List<(string String, bool Supported)> candidateStrings = []; + private readonly List<(string String, bool Supported)> candidateStrings = new(); /// <summary>The selected imm component.</summary> private string compositionString = string.Empty; @@ -107,6 +119,31 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService private bool updateInputLanguage = true; private bool updateImeStatusAgain; + [SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1003:Symbols should be spaced correctly", Justification = ".")] + static DalamudIme() + { + nint cimgui; + try + { + _ = ImGui.GetCurrentContext(); + + cimgui = Process.GetCurrentProcess().Modules.Cast<ProcessModule>() + .First(x => x.ModuleName == "cimgui.dll") + .BaseAddress; + } + catch + { + return; + } + + StbTextMakeUndoReplace = + (delegate* unmanaged<ImGuiInputTextState*, StbTextEditState*, int, int, int, void>) + (cimgui + CImGuiStbTextCreateUndoOffset); + StbTextUndo = + (delegate* unmanaged<ImGuiInputTextState*, StbTextEditState*, void>) + (cimgui + CImGuiStbTextUndoOffset); + } + [ServiceManager.ServiceConstructor] private DalamudIme(InterfaceManager.InterfaceManagerWithScene imws) { @@ -115,8 +152,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService this.interfaceManager = imws.Manager; this.setPlatformImeDataDelegate = this.ImGuiSetPlatformImeData; - var io = ImGui.GetIO(); - io.SetPlatformImeDataFn = Marshal.GetFunctionPointerForDelegate(this.setPlatformImeDataDelegate).ToPointer(); + ImGui.GetIO().SetPlatformImeDataFn = Marshal.GetFunctionPointerForDelegate(this.setPlatformImeDataDelegate); this.interfaceManager.Draw += this.Draw; this.wndProcHookManager.PreWndProc += this.WndProcHookManagerOnPreWndProc; } @@ -149,15 +185,18 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService return true; if (!ImGui.GetIO().ConfigInputTextCursorBlink) return true; - var textState = GetInputTextState(); - if (textState.ID == 0 || (textState.Flags & ImGuiInputTextFlags.ReadOnly) != 0) + var textState = TextState; + if (textState->Id == 0 || (textState->Flags & ImGuiInputTextFlags.ReadOnly) != 0) return true; - if (textState.CursorAnim <= 0) + if (textState->CursorAnim <= 0) return true; - return textState.CursorAnim % 1.2f <= 0.8f; + return textState->CursorAnim % 1.2f <= 0.8f; } } + private static ImGuiInputTextState* TextState => + (ImGuiInputTextState*)(ImGui.GetCurrentContext() + ImGuiContextOffsets.TextStateOffset); + /// <summary>Gets a value indicating whether to display partial conversion status.</summary> private bool ShowPartialConversion => this.partialConversionFrom != 0 || this.partialConversionTo != this.compositionString.Length; @@ -207,8 +246,6 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService } } - private static ImGuiInputTextStatePtr GetInputTextState() => new(&ImGui.GetCurrentContext().Handle->InputTextState); - private static (string String, bool Supported) ToUcs2(char* data, int nc = -1) { if (nc == -1) @@ -260,10 +297,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService private void ReleaseUnmanagedResources() { if (ImGuiHelpers.IsImGuiInitialized) - { - var io = ImGui.GetIO(); - io.SetPlatformImeDataFn = null; - } + ImGui.GetIO().SetPlatformImeDataFn = nint.Zero; } private void WndProcHookManagerOnPreWndProc(WndProcEventArgs args) @@ -307,8 +341,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService try { - var textState = GetInputTextState(); - var invalidTarget = textState.ID == 0 || (textState.Flags & ImGuiInputTextFlags.ReadOnly) != 0; + var invalidTarget = TextState->Id == 0 || (TextState->Flags & ImGuiInputTextFlags.ReadOnly) != 0; #if IMEDEBUG switch (args.Message) @@ -462,7 +495,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService if (!string.IsNullOrEmpty(ImmGetCompositionString(hImc, GCS.GCS_COMPSTR))) { ImmNotifyIME(hImc, NI.NI_COMPOSITIONSTR, CPS_COMPLETE, 0); - + // Disable further handling of mouse button down event, or something would lock up the cursor. args.SuppressWithValue(1); } @@ -537,20 +570,19 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService this.ReflectCharacterEncounters(newString); - var textState = GetInputTextState(); if (this.temporaryUndoSelection is not null) { - textState.Undo(); - textState.SetSelectionTuple(this.temporaryUndoSelection.Value); + TextState->Undo(); + TextState->SelectionTuple = this.temporaryUndoSelection.Value; this.temporaryUndoSelection = null; } - textState.SanitizeSelectionRange(); - if (textState.ReplaceSelectionAndPushUndo(newString)) - this.temporaryUndoSelection = textState.GetSelectionTuple(); + TextState->SanitizeSelectionRange(); + if (TextState->ReplaceSelectionAndPushUndo(newString)) + this.temporaryUndoSelection = TextState->SelectionTuple; // Put the cursor at the beginning, so that the candidate window appears aligned with the text. - textState.SetSelectionRange(textState.GetSelectionTuple().Start, newString.Length, 0); + TextState->SetSelectionRange(TextState->SelectionTuple.Start, newString.Length, 0); if (finalCommit) { @@ -595,10 +627,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService this.partialConversionFrom = this.partialConversionTo = 0; this.compositionCursorOffset = 0; this.temporaryUndoSelection = null; - - var textState = GetInputTextState(); - textState.Stb.SelectStart = textState.Stb.Cursor = textState.Stb.SelectEnd; - + TextState->Stb.SelectStart = TextState->Stb.Cursor = TextState->Stb.SelectEnd; this.candidateStrings.Clear(); this.immCandNative = default; if (invokeCancel) @@ -655,7 +684,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService return; var viewport = ime.associatedViewport; - if (viewport.Handle is null) + if (viewport.NativePtr is null) return; var drawCand = ime.candidateStrings.Count != 0; @@ -907,6 +936,183 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService } } + /// <summary> + /// Ported from imstb_textedit.h. + /// </summary> + [StructLayout(LayoutKind.Sequential, Size = 0xE2C)] + private struct StbTextEditState + { + /// <summary> + /// Position of the text cursor within the string. + /// </summary> + public int Cursor; + + /// <summary> + /// Selection start point. + /// </summary> + public int SelectStart; + + /// <summary> + /// selection start and end point in characters; if equal, no selection. + /// </summary> + /// <remarks> + /// Note that start may be less than or greater than end (e.g. when dragging the mouse, + /// start is where the initial click was, and you can drag in either direction.) + /// </remarks> + public int SelectEnd; + + /// <summary> + /// Each text field keeps its own insert mode state. + /// To keep an app-wide insert mode, copy this value in/out of the app state. + /// </summary> + public byte InsertMode; + + /// <summary> + /// Page size in number of row. + /// This value MUST be set to >0 for pageup or pagedown in multilines documents. + /// </summary> + public int RowCountPerPage; + + // Remainder is stb-private data. + } + + [StructLayout(LayoutKind.Sequential)] + private struct ImGuiInputTextState + { + public uint Id; + public int CurLenW; + public int CurLenA; + public ImVector<char> TextWRaw; + public ImVector<byte> TextARaw; + public ImVector<byte> InitialTextARaw; + public bool TextAIsValid; + public int BufCapacityA; + public float ScrollX; + public StbTextEditState Stb; + public float CursorAnim; + public bool CursorFollow; + public bool SelectedAllMouseLock; + public bool Edited; + public ImGuiInputTextFlags Flags; + + public ImVectorWrapper<char> TextW => new((ImVector*)&this.ThisPtr->TextWRaw); + + public (int Start, int End, int Cursor) SelectionTuple + { + get => (this.Stb.SelectStart, this.Stb.SelectEnd, this.Stb.Cursor); + set => (this.Stb.SelectStart, this.Stb.SelectEnd, this.Stb.Cursor) = value; + } + + private ImGuiInputTextState* ThisPtr => (ImGuiInputTextState*)Unsafe.AsPointer(ref this); + + public void SetSelectionRange(int offset, int length, int relativeCursorOffset) + { + this.Stb.SelectStart = offset; + this.Stb.SelectEnd = offset + length; + if (relativeCursorOffset >= 0) + this.Stb.Cursor = this.Stb.SelectStart + relativeCursorOffset; + else + this.Stb.Cursor = this.Stb.SelectEnd + 1 + relativeCursorOffset; + this.SanitizeSelectionRange(); + } + + public void SanitizeSelectionRange() + { + ref var s = ref this.Stb.SelectStart; + ref var e = ref this.Stb.SelectEnd; + ref var c = ref this.Stb.Cursor; + s = Math.Clamp(s, 0, this.CurLenW); + e = Math.Clamp(e, 0, this.CurLenW); + c = Math.Clamp(c, 0, this.CurLenW); + if (s == e) + s = e = c; + if (s > e) + (s, e) = (e, s); + } + + public void Undo() => StbTextUndo(this.ThisPtr, &this.ThisPtr->Stb); + + public bool MakeUndoReplace(int offset, int oldLength, int newLength) + { + if (oldLength == 0 && newLength == 0) + return false; + + StbTextMakeUndoReplace(this.ThisPtr, &this.ThisPtr->Stb, offset, oldLength, newLength); + return true; + } + + public bool ReplaceSelectionAndPushUndo(ReadOnlySpan<char> newText) + { + var off = this.Stb.SelectStart; + var len = this.Stb.SelectEnd - this.Stb.SelectStart; + return this.MakeUndoReplace(off, len, newText.Length) && this.ReplaceChars(off, len, newText); + } + + public bool ReplaceChars(int pos, int len, ReadOnlySpan<char> newText) + { + this.DeleteChars(pos, len); + return this.InsertChars(pos, newText); + } + + // See imgui_widgets.cpp: STB_TEXTEDIT_DELETECHARS + public void DeleteChars(int pos, int n) + { + if (n == 0) + return; + + var dst = this.TextW.Data + pos; + + // We maintain our buffer length in both UTF-8 and wchar formats + this.Edited = true; + this.CurLenA -= Encoding.UTF8.GetByteCount(dst, n); + this.CurLenW -= n; + + // Offset remaining text (FIXME-OPT: Use memmove) + var src = this.TextW.Data + pos + n; + int i; + for (i = 0; src[i] != 0; i++) + dst[i] = src[i]; + dst[i] = '\0'; + } + + // See imgui_widgets.cpp: STB_TEXTEDIT_INSERTCHARS + public bool InsertChars(int pos, ReadOnlySpan<char> newText) + { + if (newText.Length == 0) + return true; + + var isResizable = (this.Flags & ImGuiInputTextFlags.CallbackResize) != 0; + var textLen = this.CurLenW; + Debug.Assert(pos <= textLen, "pos <= text_len"); + + var newTextLenUtf8 = Encoding.UTF8.GetByteCount(newText); + if (!isResizable && newTextLenUtf8 + this.CurLenA + 1 > this.BufCapacityA) + return false; + + // Grow internal buffer if needed + if (newText.Length + textLen + 1 > this.TextW.Length) + { + if (!isResizable) + return false; + + Debug.Assert(textLen < this.TextW.Length, "text_len < this.TextW.Length"); + this.TextW.Resize(textLen + Math.Clamp(newText.Length * 4, 32, Math.Max(256, newText.Length)) + 1); + } + + var text = this.TextW.DataSpan; + if (pos != textLen) + text.Slice(pos, textLen - pos).CopyTo(text[(pos + newText.Length)..]); + newText.CopyTo(text[pos..]); + + this.Edited = true; + this.CurLenW += newText.Length; + this.CurLenA += newTextLenUtf8; + this.TextW[this.CurLenW] = '\0'; + + return true; + } + } + #if IMEDEBUG private static class ImeDebug { diff --git a/Dalamud/Interface/Internal/DalamudInterface.cs b/Dalamud/Interface/Internal/DalamudInterface.cs index 43f6d6ce7..a21cf2070 100644 --- a/Dalamud/Interface/Internal/DalamudInterface.cs +++ b/Dalamud/Interface/Internal/DalamudInterface.cs @@ -3,26 +3,22 @@ using System.Globalization; using System.Linq; using System.Numerics; using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using CheapLoc; - -using Dalamud.Bindings.ImGui; -using Dalamud.Bindings.ImPlot; using Dalamud.Configuration.Internal; using Dalamud.Console; +using Dalamud.Data; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Conditions; using Dalamud.Game.ClientState.Keys; using Dalamud.Game.Gui; +using Dalamud.Game.Internal; using Dalamud.Hooking; using Dalamud.Interface.Animation.EasingFunctions; using Dalamud.Interface.Colors; -using Dalamud.Interface.ImGuiNotification; -using Dalamud.Interface.ImGuiNotification.Internal; -using Dalamud.Interface.Internal.Badge; +using Dalamud.Interface.Internal.ManagedAsserts; using Dalamud.Interface.Internal.Windows; using Dalamud.Interface.Internal.Windows.Data; using Dalamud.Interface.Internal.Windows.PluginInstaller; @@ -31,37 +27,38 @@ using Dalamud.Interface.Internal.Windows.Settings; using Dalamud.Interface.Internal.Windows.StyleEditor; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Style; -using Dalamud.Interface.Textures; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal; -using Dalamud.Plugin.SelfTest.Internal; using Dalamud.Storage.Assets; using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.System.Framework; using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; +using ImPlotNET; +using PInvoke; using Serilog.Events; namespace Dalamud.Interface.Internal; /// <summary> -/// This plugin implements all the Dalamud interface separately, to allow for reloading of the interface and rapid prototyping. +/// This plugin implements all of the Dalamud interface separately, to allow for reloading of the interface and rapid prototyping. /// </summary> [ServiceManager.EarlyLoadedService] internal class DalamudInterface : IInternalDisposableService { private const float CreditsDarkeningMaxAlpha = 0.8f; - private static readonly ModuleLog Log = ModuleLog.Create<DalamudInterface>(); + private static readonly ModuleLog Log = new("DUI"); private readonly Dalamud dalamud; private readonly DalamudConfiguration configuration; private readonly InterfaceManager interfaceManager; + private readonly DataManager dataManager; private readonly ChangelogWindow changelogWindow; private readonly ColorDemoWindow colorDemoWindow; @@ -96,13 +93,14 @@ internal class DalamudInterface : IInternalDisposableService private bool isImPlotDrawDemoWindow = false; private bool isImGuiTestWindowsInMonospace = false; private bool isImGuiDrawMetricsWindow = false; - + [ServiceManager.ServiceConstructor] private DalamudInterface( Dalamud dalamud, DalamudConfiguration configuration, FontAtlasFactory fontAtlasFactory, InterfaceManager interfaceManager, + DataManager dataManager, PluginImageCache pluginImageCache, DalamudAssetManager dalamudAssetManager, Game.Framework framework, @@ -110,15 +108,15 @@ internal class DalamudInterface : IInternalDisposableService TitleScreenMenu titleScreenMenu, GameGui gameGui, ConsoleManager consoleManager, - AddonLifecycle addonLifecycle, - SelfTestRegistry selfTestRegistry) + AddonLifecycle addonLifecycle) { this.dalamud = dalamud; this.configuration = configuration; this.interfaceManager = interfaceManager; + this.dataManager = dataManager; this.WindowSystem = new WindowSystem("DalamudCore"); - + this.colorDemoWindow = new ColorDemoWindow() { IsOpen = false }; this.componentDemoWindow = new ComponentDemoWindow() { IsOpen = false }; this.dataWindow = new DataWindow() { IsOpen = false }; @@ -127,7 +125,7 @@ internal class DalamudInterface : IInternalDisposableService this.pluginStatWindow = new PluginStatWindow() { IsOpen = false }; this.pluginWindow = new PluginInstallerWindow(pluginImageCache, configuration) { IsOpen = false }; this.settingsWindow = new SettingsWindow() { IsOpen = false }; - this.selfTestWindow = new SelfTestWindow(selfTestRegistry) { IsOpen = false }; + this.selfTestWindow = new SelfTestWindow() { IsOpen = false }; this.styleEditorWindow = new StyleEditorWindow() { IsOpen = false }; this.titleScreenMenuWindow = new TitleScreenMenuWindow( clientState, @@ -165,7 +163,7 @@ internal class DalamudInterface : IInternalDisposableService this.WindowSystem.AddWindow(this.branchSwitcherWindow); this.WindowSystem.AddWindow(this.hitchSettingsWindow); - this.interfaceManager.ShowAsserts = configuration.ImGuiAssertsEnabledAtStartup ?? false; + ImGuiManagedAsserts.AssertsEnabled = configuration.AssertsEnabledAtStartup; this.isImGuiDrawDevMenu = this.isImGuiDrawDevMenu || configuration.DevBarOpenAtStartup; this.interfaceManager.Draw += this.OnDraw; @@ -175,31 +173,31 @@ internal class DalamudInterface : IInternalDisposableService { titleScreenMenu.AddEntryCore( Loc.Localize("TSMDalamudPlugins", "Plugin Installer"), - new ForwardingSharedImmediateTexture(dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall)), + dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall), this.OpenPluginInstaller); titleScreenMenu.AddEntryCore( Loc.Localize("TSMDalamudSettings", "Dalamud Settings"), - new ForwardingSharedImmediateTexture(dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall)), + dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall), this.OpenSettings); titleScreenMenu.AddEntryCore( "Toggle Dev Menu", - new ForwardingSharedImmediateTexture(dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall)), + dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall), () => Service<DalamudInterface>.GetNullable()?.ToggleDevMenu(), VirtualKey.SHIFT); - if (Versioning.GetActiveTrack() != "release") + if (!configuration.DalamudBetaKind.IsNullOrEmpty()) { titleScreenMenu.AddEntryCore( Loc.Localize("TSMDalamudDevMenu", "Developer Menu"), - new ForwardingSharedImmediateTexture(dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall)), + dalamudAssetManager.GetDalamudTextureWrap(DalamudAsset.LogoSmall), () => this.isImGuiDrawDevMenu = true); } }); this.creditsDarkeningAnimation.Point1 = Vector2.Zero; this.creditsDarkeningAnimation.Point2 = new Vector2(CreditsDarkeningMaxAlpha); - + // This is temporary, until we know the repercussions of vtable hooking mode consoleManager.AddCommand( "dalamud.interface.swapchain_mode", @@ -218,14 +216,14 @@ internal class DalamudInterface : IInternalDisposableService Log.Error("Unknown swapchain mode: {Mode}", mode); return false; } - + this.configuration.QueueSave(); return true; }); } - + private delegate nint CrashDebugDelegate(nint self); - + /// <summary> /// Gets the number of frames since Dalamud has loaded. /// </summary> @@ -311,14 +309,8 @@ internal class DalamudInterface : IInternalDisposableService /// <summary> /// Opens the <see cref="ConsoleWindow"/>. /// </summary> - /// <param name="textFilter">The filter to set, if not null.</param> - public void OpenLogWindow(string? textFilter = "") + public void OpenLogWindow() { - if (textFilter != null) - { - this.consoleWindow.TextFilter = textFilter; - } - this.consoleWindow.IsOpen = true; this.consoleWindow.BringToFront(); } @@ -331,7 +323,7 @@ internal class DalamudInterface : IInternalDisposableService this.pluginStatWindow.IsOpen = true; this.pluginStatWindow.BringToFront(); } - + /// <summary> /// Opens the <see cref="PluginInstallerWindow"/> on the plugin installed. /// </summary> @@ -396,7 +388,7 @@ internal class DalamudInterface : IInternalDisposableService this.profilerWindow.IsOpen = true; this.profilerWindow.BringToFront(); } - + /// <summary> /// Opens the <see cref="HitchSettingsWindow"/>. /// </summary> @@ -530,7 +522,7 @@ internal class DalamudInterface : IInternalDisposableService /// <summary> /// Toggle the screen darkening effect used for the credits. /// </summary> - /// <param name="status">Whether to turn the effect on.</param> + /// <param name="status">Whether or not to turn the effect on.</param> public void SetCreditsDarkeningAnimation(bool status) { this.isCreditsDarkening = status; @@ -539,32 +531,6 @@ internal class DalamudInterface : IInternalDisposableService this.creditsDarkeningAnimation.Restart(); } - /// <inheritdoc cref="DataWindow.GetWidget{T}"/> - public T GetDataWindowWidget<T>() where T : IDataWindowWidget => this.dataWindow.GetWidget<T>(); - - /// <summary>Sets the data window current widget.</summary> - /// <param name="widget">Widget to set current.</param> - public void SetDataWindowWidget(IDataWindowWidget widget) => this.dataWindow.CurrentWidget = widget; - - /// <summary> - /// Play an animation when a badge has been unlocked. - /// </summary> - /// <param name="badge">The badge that has been unlocked.</param> - public void StartBadgeUnlockAnimation(BadgeInfo badge) - { - var badgeTexture = Service<DalamudAssetManager>.Get().GetDalamudTextureWrap(DalamudAsset.BadgeAtlas); - var uvs = badge.GetIconUv(badgeTexture.Width, badgeTexture.Height); - - // TODO: Make it more fancy? - Service<NotificationManager>.Get().AddNotification( - new Notification - { - Title = "Badge unlocked!", - Content = $"You unlocked the badge '{badge.Name()}'", - Type = NotificationType.Success, - }); - } - private void OnDraw() { this.FrameCount++; @@ -586,7 +552,6 @@ internal class DalamudInterface : IInternalDisposableService { this.DrawHiddenDevMenuOpener(); this.DrawDevMenu(); - this.DrawTitleScreenBadges(); if (Service<GameGui>.Get().GameUiHidden) return; @@ -610,6 +575,13 @@ internal class DalamudInterface : IInternalDisposableService if (this.isCreditsDarkening) this.DrawCreditsDarkeningAnimation(); + + // Release focus of any ImGui window if we click into the game. + var io = ImGui.GetIO(); + if (!io.WantCaptureMouse && (User32.GetKeyState((int)User32.VirtualKey.VK_LBUTTON) & 0x8000) != 0) + { + ImGui.SetWindowFocus(null); + } } catch (Exception ex) { @@ -617,68 +589,6 @@ internal class DalamudInterface : IInternalDisposableService } } - private void DrawTitleScreenBadges() - { - if (!this.titleScreenMenuWindow.IsOpen) - return; - - var badgeManager = Service<BadgeManager>.Get(); - if (!this.configuration.ShowBadgesOnTitleScreen || !badgeManager.UnlockedBadges.Any()) - return; - - var vp = ImGui.GetMainViewport(); - ImGui.SetNextWindowPos(vp.Pos); - ImGui.SetNextWindowSize(vp.Size); - ImGuiHelpers.ForceNextWindowMainViewport(); - ImGui.SetNextWindowBgAlpha(0f); - - ImGui.Begin( - "###TitleScreenBadgeWindow"u8, - ImGuiWindowFlags.NoInputs | ImGuiWindowFlags.NoDocking | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove | - ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoBringToFrontOnFocus | - ImGuiWindowFlags.NoNav); - - var badgeAtlas = Service<DalamudAssetManager>.Get().GetDalamudTextureWrap(DalamudAsset.BadgeAtlas); - var badgeSize = ImGuiHelpers.GlobalScale * 80; - var spacing = ImGuiHelpers.GlobalScale * 10; - const float margin = 60f; - var startPos = vp.Pos + new Vector2(vp.Size.X - margin, margin); - - // Use the mouse position in screen space for hover detection because the usual ImGui hover checks - // don't work with this full-viewport overlay window setup. - var mouse = ImGui.GetMousePos(); - - foreach (var badge in badgeManager.UnlockedBadges) - { - var uvs = badge.GetIconUv(badgeAtlas.Width, badgeAtlas.Height); - - startPos.X -= badgeSize; - ImGui.SetCursorPos(startPos); - ImGui.Image(badgeAtlas.Handle, new Vector2(badgeSize), uvs.Uv0, uvs.Uv1); - - // Get the actual screen-space bounds of the image we just drew - var badgeMin = ImGui.GetItemRectMin(); - var badgeMax = ImGui.GetItemRectMax(); - - // add spacing to the left for the next badge - startPos.X -= spacing; - - // Manual hit test using mouse position - if (mouse.X >= badgeMin.X && mouse.X <= badgeMax.X && mouse.Y >= badgeMin.Y && mouse.Y <= badgeMax.Y) - { - ImGui.BeginTooltip(); - ImGui.PushTextWrapPos(300 * ImGuiHelpers.GlobalScale); - ImGui.TextWrapped(badge.Name()); - ImGui.Separator(); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, badge.Description()); - ImGui.PopTextWrapPos(); - ImGui.EndTooltip(); - } - } - - ImGui.End(); - } - private void DrawCreditsDarkeningAnimation() { using var style1 = ImRaii.PushStyle(ImGuiStyleVar.WindowRounding, 0f); @@ -693,7 +603,7 @@ internal class DalamudInterface : IInternalDisposableService ImGui.SetNextWindowBgAlpha(Math.Min(this.creditsDarkeningAnimation.EasedPoint.X, CreditsDarkeningMaxAlpha)); ImGui.Begin( - "###CreditsDarkenWindow"u8, + "###CreditsDarkenWindow", ImGuiWindowFlags.NoInputs | ImGuiWindowFlags.NoDocking | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoBringToFrontOnFocus | ImGuiWindowFlags.NoNav); @@ -722,14 +632,14 @@ internal class DalamudInterface : IInternalDisposableService ImGui.SetNextWindowPos(windowPos, ImGuiCond.Always); ImGui.SetNextWindowBgAlpha(1); - if (ImGui.Begin("DevMenu Opener"u8, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoSavedSettings)) + if (ImGui.Begin("DevMenu Opener", ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoSavedSettings)) { ImGui.SetNextItemWidth(40); - if (ImGui.Button("###devMenuOpener"u8, new Vector2(20, 20))) + if (ImGui.Button("###devMenuOpener", new Vector2(20, 20))) this.isImGuiDrawDevMenu = true; - } - ImGui.End(); + ImGui.End(); + } if (EnvironmentConfiguration.DalamudForceMinHook) { @@ -737,13 +647,13 @@ internal class DalamudInterface : IInternalDisposableService ImGui.SetNextWindowBgAlpha(1); if (ImGui.Begin( - "Disclaimer"u8, + "Disclaimer", ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoMouseInputs | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoSavedSettings)) { - ImGui.TextColoredWrapped(ImGuiColors.DalamudRed, "Is force MinHook!"u8); + ImGui.TextColored(ImGuiColors.DalamudRed, "Is force MinHook!"); } ImGui.End(); @@ -751,23 +661,19 @@ internal class DalamudInterface : IInternalDisposableService } } - private unsafe void DrawDevMenu() + private void DrawDevMenu() { if (this.isImGuiDrawDevMenu) { - using var barColor = ImRaii.PushColor(ImGuiCol.WindowBg, new Vector4(0.060f, 0.060f, 0.060f, 0.773f)); - barColor.Push(ImGuiCol.MenuBarBg, Vector4.Zero); - barColor.Push(ImGuiCol.Border, Vector4.Zero); - barColor.Push(ImGuiCol.BorderShadow, Vector4.Zero); if (ImGui.BeginMainMenuBar()) { var pluginManager = Service<PluginManager>.Get(); - if (ImGui.BeginMenu("Dalamud"u8)) + if (ImGui.BeginMenu("Dalamud")) { - ImGui.MenuItem("Draw dev menu"u8, (byte*)null, ref this.isImGuiDrawDevMenu); - - if (ImGui.MenuItem("Draw dev menu at startup"u8, (byte*)null, this.configuration.DevBarOpenAtStartup)) + ImGui.MenuItem("Draw dev menu", string.Empty, ref this.isImGuiDrawDevMenu); + var devBarAtStartup = this.configuration.DevBarOpenAtStartup; + if (ImGui.MenuItem("Draw dev menu at startup", string.Empty, ref devBarAtStartup)) { this.configuration.DevBarOpenAtStartup ^= true; this.configuration.QueueSave(); @@ -775,16 +681,16 @@ internal class DalamudInterface : IInternalDisposableService ImGui.Separator(); - if (ImGui.MenuItem("Open Log window"u8)) + if (ImGui.MenuItem("Open Log window")) { this.OpenLogWindow(); } - if (ImGui.BeginMenu("Set log level..."u8)) + if (ImGui.BeginMenu("Set log level...")) { - foreach (var logLevel in Enum.GetValues<LogEventLevel>()) + foreach (var logLevel in Enum.GetValues(typeof(LogEventLevel)).Cast<LogEventLevel>()) { - if (ImGui.MenuItem(logLevel + "##logLevelSwitch", (byte*)null, EntryPoint.LogLevelSwitch.MinimumLevel == logLevel)) + if (ImGui.MenuItem(logLevel + "##logLevelSwitch", string.Empty, EntryPoint.LogLevelSwitch.MinimumLevel == logLevel)) { EntryPoint.LogLevelSwitch.MinimumLevel = logLevel; this.configuration.LogLevel = logLevel; @@ -794,10 +700,11 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - - if (ImGui.MenuItem("Log Synchronously"u8, (byte*)null, this.configuration.LogSynchronously)) + + var logSynchronously = this.configuration.LogSynchronously; + if (ImGui.MenuItem("Log Synchronously", null, ref logSynchronously)) { - this.configuration.LogSynchronously ^= true; + this.configuration.LogSynchronously = logSynchronously; this.configuration.QueueSave(); EntryPoint.InitLogging( @@ -807,80 +714,93 @@ internal class DalamudInterface : IInternalDisposableService this.dalamud.StartInfo.LogName); } + var antiDebug = Service<AntiDebug>.Get(); + if (ImGui.MenuItem("Disable Debugging Protections", null, antiDebug.IsEnabled)) + { + var newEnabled = !antiDebug.IsEnabled; + if (newEnabled) + antiDebug.Enable(); + else + antiDebug.Disable(); + + this.configuration.IsAntiAntiDebugEnabled = newEnabled; + this.configuration.QueueSave(); + } + ImGui.Separator(); - if (ImGui.MenuItem("Open Data window"u8)) + if (ImGui.MenuItem("Open Data window")) { this.OpenDataWindow(); } - if (ImGui.MenuItem("Open Settings window"u8)) + if (ImGui.MenuItem("Open Settings window")) { this.OpenSettings(); } - if (ImGui.MenuItem("Open Changelog window"u8)) + if (ImGui.MenuItem("Open Changelog window")) { this.OpenChangelogWindow(); } - if (ImGui.MenuItem("Open Components Demo"u8)) + if (ImGui.MenuItem("Open Components Demo")) { this.OpenComponentDemoWindow(); } - if (ImGui.MenuItem("Open Colors Demo"u8)) + if (ImGui.MenuItem("Open Colors Demo")) { this.OpenColorsDemoWindow(); } - if (ImGui.MenuItem("Open Self-Test"u8)) + if (ImGui.MenuItem("Open Self-Test")) { this.OpenSelfTest(); } - if (ImGui.MenuItem("Open Style Editor"u8)) + if (ImGui.MenuItem("Open Style Editor")) { this.OpenStyleEditor(); } - if (ImGui.MenuItem("Open Profiler"u8)) + if (ImGui.MenuItem("Open Profiler")) { this.OpenProfiler(); } - if (ImGui.MenuItem("Open Hitch Settings"u8)) + if (ImGui.MenuItem("Open Hitch Settings")) { this.OpenHitchSettings(); } ImGui.Separator(); - if (ImGui.MenuItem("Unload Dalamud"u8)) + if (ImGui.MenuItem("Unload Dalamud")) { Service<Dalamud>.Get().Unload(); } - if (ImGui.MenuItem("Restart game"u8)) + if (ImGui.MenuItem("Restart game")) { Dalamud.RestartGame(); } - if (ImGui.MenuItem("Kill game"u8)) + if (ImGui.MenuItem("Kill game")) { Process.GetCurrentProcess().Kill(); } ImGui.Separator(); - - if (ImGui.BeginMenu("Crash game"u8)) + + if (ImGui.BeginMenu("Crash game")) { - if (ImGui.MenuItem("Access Violation"u8)) + if (ImGui.MenuItem("Access Violation")) { Marshal.ReadByte(IntPtr.Zero); - } - - if (ImGui.MenuItem("Set UiModule to NULL"u8)) + } + + if (ImGui.MenuItem("Set UiModule to NULL")) { unsafe { @@ -888,8 +808,8 @@ internal class DalamudInterface : IInternalDisposableService framework->UIModule = (UIModule*)0; } } - - if (ImGui.MenuItem("Set UiModule to invalid ptr"u8)) + + if (ImGui.MenuItem("Set UiModule to invalid ptr")) { unsafe { @@ -897,8 +817,8 @@ internal class DalamudInterface : IInternalDisposableService framework->UIModule = (UIModule*)0x12345678; } } - - if (ImGui.MenuItem("Deref nullptr in Hook"u8)) + + if (ImGui.MenuItem("Deref nullptr in Hook")) { unsafe { @@ -912,92 +832,62 @@ internal class DalamudInterface : IInternalDisposableService hook.Enable(); } } - - if (ImGui.MenuItem("Cause CLR fastfail"u8)) - { - static unsafe void CauseFastFail() - { - // ReSharper disable once NotAccessedVariable - var texture = Unsafe.AsRef<AtkTexture>((void*)0x12345678); - texture.TextureType = TextureType.Crest; - } - - Service<Game.Framework>.Get().RunOnTick(CauseFastFail); - } - - if (ImGui.MenuItem("Cause ImGui assert"u8)) - { - ImGui.PopStyleVar(); - ImGui.PopStyleVar(); - } - - if (ImGui.MenuItem("Raise external event through boot")) - { - ErrorHandling.CrashWithContext("Tést"); - } - + ImGui.EndMenu(); } - if (ImGui.MenuItem("Report crashes at shutdown"u8, (byte*)null, this.configuration.ReportShutdownCrashes)) + if (ImGui.MenuItem("Report crashes at shutdown", null, this.configuration.ReportShutdownCrashes)) { - this.configuration.ReportShutdownCrashes ^= true; + this.configuration.ReportShutdownCrashes = !this.configuration.ReportShutdownCrashes; this.configuration.QueueSave(); } ImGui.Separator(); - if (ImGui.MenuItem("Open Dalamud branch switcher"u8)) + if (ImGui.MenuItem("Open Dalamud branch switcher")) { this.OpenBranchSwitcher(); } - - ImGui.MenuItem(this.dalamud.StartInfo.GameVersion?.ToString() ?? "Unknown version", false, false); - ImGui.MenuItem($"D: {Versioning.GetScmVersion()} CS: {Versioning.GetGitHashClientStructs()}[{FFXIVClientStructs.ThisAssembly.Git.Commits}]", false, false); - ImGui.MenuItem($"CLR: {Environment.Version}", false, false); + + ImGui.MenuItem(this.dalamud.StartInfo.GameVersion?.ToString() ?? "Unknown version", false); + ImGui.MenuItem($"D: {Util.GetScmVersion()} CS: {Util.GetGitHashClientStructs()}[{FFXIVClientStructs.ThisAssembly.Git.Commits}]", false); + ImGui.MenuItem($"CLR: {Environment.Version}", false); ImGui.EndMenu(); } - if (ImGui.BeginMenu("GUI"u8)) + if (ImGui.BeginMenu("GUI")) { - ImGui.MenuItem("Use Monospace font for following windows"u8, (byte*)null, ref this.isImGuiTestWindowsInMonospace); - ImGui.MenuItem("Draw ImGui demo"u8, (byte*)null, ref this.isImGuiDrawDemoWindow); - ImGui.MenuItem("Draw ImPlot demo"u8, (byte*)null, ref this.isImPlotDrawDemoWindow); - ImGui.MenuItem("Draw metrics"u8, (byte*)null, ref this.isImGuiDrawMetricsWindow); + ImGui.MenuItem("Use Monospace font for following windows", string.Empty, ref this.isImGuiTestWindowsInMonospace); + ImGui.MenuItem("Draw ImGui demo", string.Empty, ref this.isImGuiDrawDemoWindow); + ImGui.MenuItem("Draw ImPlot demo", string.Empty, ref this.isImPlotDrawDemoWindow); + ImGui.MenuItem("Draw metrics", string.Empty, ref this.isImGuiDrawMetricsWindow); ImGui.Separator(); - if (ImGui.MenuItem("Enable assert popups"u8, (byte*)null, this.interfaceManager.ShowAsserts)) + var val = ImGuiManagedAsserts.AssertsEnabled; + if (ImGui.MenuItem("Enable Asserts", string.Empty, ref val)) { - this.interfaceManager.ShowAsserts ^= true; + ImGuiManagedAsserts.AssertsEnabled = val; } - if (ImGui.MenuItem("Enable verbose assert logging"u8, (byte*)null, this.interfaceManager.EnableVerboseAssertLogging)) + if (ImGui.MenuItem("Enable asserts at startup", null, this.configuration.AssertsEnabledAtStartup)) { - this.interfaceManager.EnableVerboseAssertLogging ^= true; - } - - var assertsEnabled = this.configuration.ImGuiAssertsEnabledAtStartup ?? false; - if (ImGui.MenuItem("Enable asserts at startup"u8, (byte*)null, assertsEnabled)) - { - this.configuration.ImGuiAssertsEnabledAtStartup = !assertsEnabled; + this.configuration.AssertsEnabledAtStartup = !this.configuration.AssertsEnabledAtStartup; this.configuration.QueueSave(); } - ImGui.Separator(); - - if (ImGui.MenuItem("Clear focus"u8)) + if (ImGui.MenuItem("Clear focus")) { - ImGui.SetWindowFocus((byte*)null); + ImGui.SetWindowFocus(null); } - if (ImGui.MenuItem("Clear stacks"u8)) + if (ImGui.MenuItem("Clear stacks")) { this.interfaceManager.ClearStacks(); } - if (ImGui.MenuItem("Dump style"u8)) + if (ImGui.MenuItem("Dump style")) { var info = string.Empty; var style = StyleModelV1.Get(); @@ -1030,14 +920,14 @@ internal class DalamudInterface : IInternalDisposableService Log.Information(info); } - if (ImGui.MenuItem("Show dev bar info"u8, (byte*)null, this.configuration.ShowDevBarInfo)) + if (ImGui.MenuItem("Show dev bar info", null, this.configuration.ShowDevBarInfo)) { - this.configuration.ShowDevBarInfo ^= true; + this.configuration.ShowDevBarInfo = !this.configuration.ShowDevBarInfo; } - + ImGui.Separator(); - if (ImGui.MenuItem("Show loading window"u8)) + if (ImGui.MenuItem("Show loading window")) { var dialog = new LoadingDialog(); dialog.Show(); @@ -1046,19 +936,19 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - if (ImGui.BeginMenu("Game"u8)) + if (ImGui.BeginMenu("Game")) { - if (ImGui.MenuItem("Use in-game default ExceptionHandler"u8)) + if (ImGui.MenuItem("Use in-game default ExceptionHandler")) { this.dalamud.UseDefaultExceptionHandler(); } - if (ImGui.MenuItem("Use in-game debug ExceptionHandler"u8)) + if (ImGui.MenuItem("Use in-game debug ExceptionHandler")) { this.dalamud.UseDebugExceptionHandler(); } - if (ImGui.MenuItem("Disable in-game ExceptionHandler"u8)) + if (ImGui.MenuItem("Disable in-game ExceptionHandler")) { this.dalamud.UseNoExceptionHandler(); } @@ -1066,26 +956,26 @@ internal class DalamudInterface : IInternalDisposableService ImGui.EndMenu(); } - if (ImGui.BeginMenu("Plugins"u8)) + if (ImGui.BeginMenu("Plugins")) { - if (ImGui.MenuItem("Open Plugin installer"u8)) + if (ImGui.MenuItem("Open Plugin installer")) { this.OpenPluginInstaller(); } - if (ImGui.MenuItem("Clear cached images/icons"u8)) + if (ImGui.MenuItem("Clear cached images/icons")) { this.pluginWindow?.ClearIconCache(); } ImGui.Separator(); - if (ImGui.MenuItem("Open Plugin Stats"u8)) + if (ImGui.MenuItem("Open Plugin Stats")) { this.OpenPluginStats(); } - if (ImGui.MenuItem("Print plugin info"u8)) + if (ImGui.MenuItem("Print plugin info")) { foreach (var plugin in pluginManager.InstalledPlugins) { @@ -1094,51 +984,46 @@ internal class DalamudInterface : IInternalDisposableService } } - if (ImGui.MenuItem("Scan dev plugins"u8)) + if (ImGui.MenuItem("Scan dev plugins")) { - _ = pluginManager.ScanDevPluginsAsync(); + pluginManager.ScanDevPlugins(); } ImGui.Separator(); - if (ImGui.MenuItem("Load all API levels"u8, (byte*)null, pluginManager.LoadAllApiLevels)) + if (ImGui.MenuItem("Load all API levels (ONLY FOR DEVELOPERS!!!)", null, pluginManager.LoadAllApiLevels)) { - pluginManager.LoadAllApiLevels ^= true; + pluginManager.LoadAllApiLevels = !pluginManager.LoadAllApiLevels; } - if (ImGui.MenuItem("Load blacklisted plugins"u8, (byte*)null, pluginManager.LoadBannedPlugins)) + if (ImGui.MenuItem("Load blacklisted plugins", null, pluginManager.LoadBannedPlugins)) { - pluginManager.LoadBannedPlugins ^= true; - } - - if (pluginManager.SafeMode && ImGui.MenuItem("Disable Safe Mode"u8)) - { - pluginManager.SafeMode = false; + pluginManager.LoadBannedPlugins = !pluginManager.LoadBannedPlugins; } ImGui.Separator(); - ImGui.MenuItem("API Level:" + PluginManager.DalamudApiLevel, false, false); - ImGui.MenuItem("Loaded plugins:" + pluginManager.InstalledPlugins.Count(), false, false); + ImGui.MenuItem("API Level:" + PluginManager.DalamudApiLevel, false); + ImGui.MenuItem("Loaded plugins:" + pluginManager.InstalledPlugins.Count(), false); ImGui.EndMenu(); } - if (ImGui.BeginMenu("Localization"u8)) + if (ImGui.BeginMenu("Localization")) { var localization = Service<Localization>.Get(); - if (ImGui.MenuItem("Export localizable"u8)) + if (ImGui.MenuItem("Export localizable")) { localization.ExportLocalizable(true); } - if (ImGui.BeginMenu("Load language..."u8)) + if (ImGui.BeginMenu("Load language...")) { - if (ImGui.MenuItem("From Fallbacks"u8)) + if (ImGui.MenuItem("From Fallbacks")) { localization.SetupWithFallbacks(); } - if (ImGui.MenuItem("From UICulture"u8)) + if (ImGui.MenuItem("From UICulture")) { localization.SetupWithUiCulture(); } @@ -1158,14 +1043,13 @@ internal class DalamudInterface : IInternalDisposableService } if (Service<GameGui>.Get().GameUiHidden) - ImGui.BeginMenu("UI is hidden..."u8, false); + ImGui.BeginMenu("UI is hidden...", false); if (this.configuration.ShowDevBarInfo) { ImGui.PushFont(InterfaceManager.MonoFont); - ImGui.BeginMenu($"{Versioning.GetActiveTrack() ?? "???"} on {Versioning.GetGitBranch() ?? "???"}", false); - ImGui.BeginMenu($"{Versioning.GetScmVersion()}", false); + ImGui.BeginMenu(Util.GetScmVersion(), false); ImGui.BeginMenu(this.FrameCount.ToString("000000"), false); ImGui.BeginMenu(ImGui.GetIO().Framerate.ToString("000"), false); ImGui.BeginMenu($"W:{Util.FormatBytes(GC.GetTotalMemory(false))}", false); diff --git a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs index 6e332e69c..d525af484 100644 --- a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs +++ b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.Buttons.cs @@ -1,10 +1,11 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; + namespace Dalamud.Interface.Internal.DesignSystem; /// <summary> @@ -44,7 +45,7 @@ internal static partial class DalamudComponents return Button(text); } } - + private static bool Button(string text) { using (ImRaii.PushStyle(ImGuiStyleVar.FramePadding, ButtonPadding)) diff --git a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs index 3a69d55ea..f0ce6bc82 100644 --- a/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs +++ b/Dalamud/Interface/Internal/DesignSystem/DalamudComponents.PluginPicker.cs @@ -1,15 +1,16 @@ -using System.Linq; +using System.Linq; using System.Numerics; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.DesignSystem; /// <summary> @@ -31,21 +32,19 @@ internal static partial class DalamudComponents var pm = Service<PluginManager>.GetNullable(); if (pm == null) return 0; - + var addPluginToProfilePopupId = ImGui.GetID(id); using var popup = ImRaii.Popup(id); if (popup.Success) { var width = ImGuiHelpers.GlobalScale * 300; - + ImGui.SetNextItemWidth(width); - ImGui.InputTextWithHint("###pluginPickerSearch"u8, Locs.SearchHint, ref pickerSearch, 255); + ImGui.InputTextWithHint("###pluginPickerSearch", Locs.SearchHint, ref pickerSearch, 255); var currentSearchString = pickerSearch; - - using var listBox = ImRaii.ListBox("###pluginPicker"u8, new Vector2(width, width - 80)); - if (listBox.Success) + if (ImGui.BeginListBox("###pluginPicker", new Vector2(width, width - 80))) { // TODO: Plugin searching should be abstracted... installer and this should use the same search var plugins = pm.InstalledPlugins.Where( @@ -54,15 +53,19 @@ internal static partial class DalamudComponents currentSearchString, StringComparison.InvariantCultureIgnoreCase))) .Where(pluginFiltered ?? (_ => true)); - + foreach (var plugin in plugins) { - using var disabled2 = ImRaii.Disabled(pluginDisabled(plugin)); + using var disabled2 = + ImRaii.Disabled(pluginDisabled(plugin)); + if (ImGui.Selectable($"{plugin.Manifest.Name}{(plugin is LocalDevPlugin ? "(dev plugin)" : string.Empty)}###selector{plugin.Manifest.InternalName}")) { onClicked(plugin); } } + + ImGui.EndListBox(); } } diff --git a/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs b/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs index 13623545c..9fa21a31b 100644 --- a/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs +++ b/Dalamud/Interface/Internal/ImGuiClipboardFunctionProvider.cs @@ -4,11 +4,12 @@ using System.Text; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.Toast; using Dalamud.Interface.Utility; using Dalamud.Logging.Internal; +using ImGuiNET; + using TerraFX.Interop.Windows; using static TerraFX.Interop.Windows.Windows; @@ -36,14 +37,14 @@ namespace Dalamud.Interface.Internal; [ServiceManager.EarlyLoadedService] internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposableService { - private static readonly ModuleLog Log = ModuleLog.Create<ImGuiClipboardFunctionProvider>(); - private readonly void* clipboardUserDataOriginal; - private readonly void* setTextOriginal; - private readonly void* getTextOriginal; + private static readonly ModuleLog Log = new(nameof(ImGuiClipboardFunctionProvider)); + private readonly nint clipboardUserDataOriginal; + private readonly nint setTextOriginal; + private readonly nint getTextOriginal; [ServiceManager.ServiceDependency] private readonly ToastGui toastGui = Service<ToastGui>.Get(); - + private ImVectorWrapper<byte> clipboardData; private GCHandle clipboardUserData; @@ -57,9 +58,9 @@ internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposabl this.clipboardUserDataOriginal = io.ClipboardUserData; this.setTextOriginal = io.SetClipboardTextFn; this.getTextOriginal = io.GetClipboardTextFn; - io.ClipboardUserData = GCHandle.ToIntPtr(this.clipboardUserData = GCHandle.Alloc(this)).ToPointer(); - io.SetClipboardTextFn = (delegate* unmanaged<nint, byte*, void>)&StaticSetClipboardTextImpl; - io.GetClipboardTextFn = (delegate* unmanaged<nint, byte*>)&StaticGetClipboardTextImpl; + io.ClipboardUserData = GCHandle.ToIntPtr(this.clipboardUserData = GCHandle.Alloc(this)); + io.SetClipboardTextFn = (nint)(delegate* unmanaged<nint, byte*, void>)&StaticSetClipboardTextImpl; + io.GetClipboardTextFn = (nint)(delegate* unmanaged<nint, byte*>)&StaticGetClipboardTextImpl; this.clipboardData = new(0); return; @@ -117,7 +118,7 @@ internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposabl var hMem = GlobalAlloc(GMEM.GMEM_MOVEABLE, (nuint)((str.Length + 1) * 2)); if (hMem == 0) throw new OutOfMemoryException(); - + var ptr = (char*)GlobalLock(hMem); if (ptr == null) { @@ -149,7 +150,7 @@ internal sealed unsafe class ImGuiClipboardFunctionProvider : IInternalDisposabl private byte* GetClipboardTextImpl() { this.clipboardData.Clear(); - + var formats = stackalloc uint[] { CF.CF_UNICODETEXT, CF.CF_TEXT }; if (GetPriorityClipboardFormat(formats, 2) < 1 || !this.OpenClipboardOrShowError()) { diff --git a/Dalamud/Interface/Internal/ImGuiDrawListFixProvider.cs b/Dalamud/Interface/Internal/ImGuiDrawListFixProvider.cs new file mode 100644 index 000000000..a682ed215 --- /dev/null +++ b/Dalamud/Interface/Internal/ImGuiDrawListFixProvider.cs @@ -0,0 +1,222 @@ +using System.Diagnostics; +using System.Linq; +using System.Numerics; + +using Dalamud.Hooking; + +using ImGuiNET; + +namespace Dalamud.Interface.Internal; + +/// <summary> +/// Fixes ImDrawList not correctly dealing with the current texture for that draw list not in tune with the global +/// state. Currently, ImDrawList::AddPolyLine and ImDrawList::AddRectFilled are affected. +/// +/// * The implementation for AddRectFilled is entirely replaced with the hook below. +/// * The implementation for AddPolyLine is wrapped with Push/PopTextureID. +/// +/// TODO: +/// * imgui_draw.cpp:1433 ImDrawList::AddRectFilled +/// The if block needs a PushTextureID(_Data->TexIdCommon)/PopTextureID() block, +/// if _Data->TexIdCommon != _CmdHeader.TextureId. +/// * imgui_draw.cpp:729 ImDrawList::AddPolyLine +/// The if block always needs to call PushTextureID if the abovementioned condition is not met. +/// Change push_texture_id to only have one condition. +/// </summary> +[ServiceManager.EarlyLoadedService] +internal sealed unsafe class ImGuiDrawListFixProvider : IInternalDisposableService +{ + private const int CImGuiImDrawListAddPolyLineOffset = 0x589B0; + private const int CImGuiImDrawListAddRectFilled = 0x59FD0; + private const int CImGuiImDrawListAddImageRounded = 0x58390; + private const int CImGuiImDrawListSharedDataTexIdCommonOffset = 0; + + private readonly Hook<ImDrawListAddPolyLine> hookImDrawListAddPolyline; + private readonly Hook<ImDrawListAddRectFilled> hookImDrawListAddRectFilled; + private readonly Hook<ImDrawListAddImageRounded> hookImDrawListAddImageRounded; + + [ServiceManager.ServiceConstructor] + private ImGuiDrawListFixProvider(InterfaceManager.InterfaceManagerWithScene imws) + { + // Force cimgui.dll to be loaded. + _ = ImGui.GetCurrentContext(); + var cimgui = Process.GetCurrentProcess().Modules.Cast<ProcessModule>() + .First(x => x.ModuleName == "cimgui.dll") + .BaseAddress; + + this.hookImDrawListAddPolyline = Hook<ImDrawListAddPolyLine>.FromAddress( + cimgui + CImGuiImDrawListAddPolyLineOffset, + this.ImDrawListAddPolylineDetour); + this.hookImDrawListAddRectFilled = Hook<ImDrawListAddRectFilled>.FromAddress( + cimgui + CImGuiImDrawListAddRectFilled, + this.ImDrawListAddRectFilledDetour); + this.hookImDrawListAddImageRounded = Hook<ImDrawListAddImageRounded>.FromAddress( + cimgui + CImGuiImDrawListAddImageRounded, + this.ImDrawListAddImageRoundedDetour); + this.hookImDrawListAddPolyline.Enable(); + this.hookImDrawListAddRectFilled.Enable(); + this.hookImDrawListAddImageRounded.Enable(); + } + + private delegate void ImDrawListAddPolyLine( + ImDrawListPtr drawListPtr, + ref Vector2 points, + int pointsCount, + uint color, + ImDrawFlags flags, + float thickness); + + private delegate void ImDrawListAddRectFilled( + ImDrawListPtr drawListPtr, + ref Vector2 min, + ref Vector2 max, + uint col, + float rounding, + ImDrawFlags flags); + + private delegate void ImDrawListAddImageRounded( + ImDrawListPtr drawListPtr, + nint userTextureId, ref Vector2 xy0, + ref Vector2 xy1, + ref Vector2 uv0, + ref Vector2 uv1, + uint col, + float rounding, + ImDrawFlags flags); + + /// <inheritdoc/> + void IInternalDisposableService.DisposeService() + { + this.hookImDrawListAddPolyline.Dispose(); + this.hookImDrawListAddRectFilled.Dispose(); + this.hookImDrawListAddImageRounded.Dispose(); + } + + private static ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) + { +#if !IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) + // ~0 --> ImDrawFlags_RoundCornersAll or 0 + if ((int)flags == ~0) + return ImDrawFlags.RoundCornersAll; + + // Legacy Support for hard coded 0x01 to 0x0F (matching 15 out of 16 old flags combinations) + // 0x01 --> ImDrawFlags_RoundCornersTopLeft (VALUE 0x01 OVERLAPS ImDrawFlags_Closed but ImDrawFlags_Closed is never valid in this path!) + // 0x02 --> ImDrawFlags_RoundCornersTopRight + // 0x03 --> ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight + // 0x04 --> ImDrawFlags_RoundCornersBotLeft + // 0x05 --> ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersBotLeft + // ... + // 0x0F --> ImDrawFlags_RoundCornersAll or 0 + // (See all values in ImDrawCornerFlags_) + if ((int)flags >= 0x01 && (int)flags <= 0x0F) + return (ImDrawFlags)((int)flags << 4); + + // We cannot support hard coded 0x00 with 'float rounding > 0.0f' --> replace with ImDrawFlags_RoundCornersNone or use 'float rounding = 0.0f' +#endif + + // If this triggers, please update your code replacing hardcoded values with new ImDrawFlags_RoundCorners* values. + // Note that ImDrawFlags_Closed (== 0x01) is an invalid flag for AddRect(), AddRectFilled(), PathRect() etc... + if (((int)flags & 0x0F) != 0) + throw new ArgumentException("Misuse of legacy hardcoded ImDrawCornerFlags values!"); + + if ((flags & ImDrawFlags.RoundCornersMask) == 0) + flags |= ImDrawFlags.RoundCornersAll; + + return flags; + } + + private void ImDrawListAddRectFilledDetour( + ImDrawListPtr drawListPtr, + ref Vector2 min, + ref Vector2 max, + uint col, + float rounding, + ImDrawFlags flags) + { + // Skip drawing if we're drawing something with alpha value of 0. + if ((col & 0xFF000000) == 0) + return; + + if (rounding < 0.5f || (flags & ImDrawFlags.RoundCornersMask) == ImDrawFlags.RoundCornersMask) + { + // Take the fast path of drawing two triangles if no rounded corners are required. + + var texIdCommon = *(nint*)(drawListPtr._Data + CImGuiImDrawListSharedDataTexIdCommonOffset); + var pushTextureId = texIdCommon != drawListPtr._CmdHeader.TextureId; + if (pushTextureId) + drawListPtr.PushTextureID(texIdCommon); + + drawListPtr.PrimReserve(6, 4); + drawListPtr.PrimRect(min, max, col); + + if (pushTextureId) + drawListPtr.PopTextureID(); + } + else + { + // Defer drawing rectangle with rounded corners to path drawing operations. + // Note that this may have a slightly different extent behaviors from the above if case. + // This is how it is in imgui_draw.cpp. + drawListPtr.PathRect(min, max, rounding, flags); + drawListPtr.PathFillConvex(col); + } + } + + private void ImDrawListAddPolylineDetour( + ImDrawListPtr drawListPtr, + ref Vector2 points, + int pointsCount, + uint color, + ImDrawFlags flags, + float thickness) + { + var texIdCommon = *(nint*)(drawListPtr._Data + CImGuiImDrawListSharedDataTexIdCommonOffset); + var pushTextureId = texIdCommon != drawListPtr._CmdHeader.TextureId; + if (pushTextureId) + drawListPtr.PushTextureID(texIdCommon); + + this.hookImDrawListAddPolyline.Original(drawListPtr, ref points, pointsCount, color, flags, thickness); + + if (pushTextureId) + drawListPtr.PopTextureID(); + } + + private void ImDrawListAddImageRoundedDetour(ImDrawListPtr drawListPtr, nint userTextureId, ref Vector2 xy0, ref Vector2 xy1, ref Vector2 uv0, ref Vector2 uv1, uint col, float rounding, ImDrawFlags flags) + { + // Skip drawing if we're drawing something with alpha value of 0. + if ((col & 0xFF000000) == 0) + return; + + // Handle non-rounded cases. + flags = FixRectCornerFlags(flags); + if (rounding < 0.5f || (flags & ImDrawFlags.RoundCornersMask) == ImDrawFlags.RoundCornersNone) + { + drawListPtr.AddImage(userTextureId, xy0, xy1, uv0, uv1, col); + return; + } + + // Temporary provide the requested image as the common texture ID, so that the underlying + // ImDrawList::AddConvexPolyFilled does not create a separate draw command and then revert back. + // ImDrawList::AddImageRounded will temporarily push the texture ID provided by the user if the latest draw + // command does not point to the texture we're trying to draw. Once pushed, ImDrawList::AddConvexPolyFilled + // will leave the list of draw commands alone, so that ImGui::ShadeVertsLinearUV can safely work on the latest + // draw command. + ref var texIdCommon = ref *(nint*)(drawListPtr._Data + CImGuiImDrawListSharedDataTexIdCommonOffset); + var texIdCommonPrev = texIdCommon; + texIdCommon = userTextureId; + + this.hookImDrawListAddImageRounded.Original( + drawListPtr, + texIdCommon, + ref xy0, + ref xy1, + ref uv0, + ref uv1, + col, + rounding, + flags); + + texIdCommon = texIdCommonPrev; + } +} diff --git a/Dalamud/Interface/Internal/ImGuiInputTextStatePtrExtensions.cs b/Dalamud/Interface/Internal/ImGuiInputTextStatePtrExtensions.cs deleted file mode 100644 index e27c20d06..000000000 --- a/Dalamud/Interface/Internal/ImGuiInputTextStatePtrExtensions.cs +++ /dev/null @@ -1,123 +0,0 @@ -using System.Diagnostics; -using System.Text; - -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Interface.Internal; - -#pragma warning disable SA1600 -internal static unsafe class ImGuiInputTextStatePtrExtensions -{ - public static (int Start, int End, int Cursor) GetSelectionTuple(this ImGuiInputTextStatePtr self) => - (self.Stb.SelectStart, self.Stb.SelectEnd, self.Stb.Cursor); - - public static void SetSelectionTuple(this ImGuiInputTextStatePtr self, (int Start, int End, int Cursor) value) => - (self.Stb.SelectStart, self.Stb.SelectEnd, self.Stb.Cursor) = value; - - public static void SetSelectionRange(this ImGuiInputTextStatePtr self, int offset, int length, int relativeCursorOffset) - { - self.Stb.SelectStart = offset; - self.Stb.SelectEnd = offset + length; - if (relativeCursorOffset >= 0) - self.Stb.Cursor = self.Stb.SelectStart + relativeCursorOffset; - else - self.Stb.Cursor = self.Stb.SelectEnd + 1 + relativeCursorOffset; - self.SanitizeSelectionRange(); - } - - public static void SanitizeSelectionRange(this ImGuiInputTextStatePtr self) - { - ref var s = ref self.Stb.SelectStart; - ref var e = ref self.Stb.SelectEnd; - ref var c = ref self.Stb.Cursor; - s = Math.Clamp(s, 0, self.CurLenW); - e = Math.Clamp(e, 0, self.CurLenW); - c = Math.Clamp(c, 0, self.CurLenW); - if (s == e) - s = e = c; - if (s > e) - (s, e) = (e, s); - } - - public static void Undo(this ImGuiInputTextStatePtr self) => ImGuiP.Custom_StbTextUndo(self); - - public static bool MakeUndoReplace(this ImGuiInputTextStatePtr self, int offset, int oldLength, int newLength) - { - if (oldLength == 0 && newLength == 0) - return false; - - ImGuiP.Custom_StbTextMakeUndoReplace(self, offset, oldLength, newLength); - return true; - } - - public static bool ReplaceSelectionAndPushUndo(this ImGuiInputTextStatePtr self, ReadOnlySpan<char> newText) - { - var off = self.Stb.SelectStart; - var len = self.Stb.SelectEnd - self.Stb.SelectStart; - return self.MakeUndoReplace(off, len, newText.Length) && self.ReplaceChars(off, len, newText); - } - - public static bool ReplaceChars(this ImGuiInputTextStatePtr self, int pos, int len, ReadOnlySpan<char> newText) - { - self.DeleteChars(pos, len); - return self.InsertChars(pos, newText); - } - - // See imgui_widgets.cpp: STB_TEXTEDIT_DELETECHARS - public static void DeleteChars(this ImGuiInputTextStatePtr self, int pos, int n) - { - if (n == 0) - return; - - var dst = (char*)self.TextW.Data + pos; - - // We maintain our buffer length in both UTF-8 and wchar formats - self.Edited = true; - self.CurLenA -= Encoding.UTF8.GetByteCount(dst, n); - self.CurLenW -= n; - - // Offset remaining text (FIXME-OPT: Use memmove) - var src = (char*)self.TextW.Data + pos + n; - int i; - for (i = 0; src[i] != 0; i++) - dst[i] = src[i]; - dst[i] = '\0'; - } - - // See imgui_widgets.cpp: STB_TEXTEDIT_INSERTCHARS - public static bool InsertChars(this ImGuiInputTextStatePtr self, int pos, ReadOnlySpan<char> newText) - { - if (newText.Length == 0) - return true; - - var isResizable = (self.Flags & ImGuiInputTextFlags.CallbackResize) != 0; - var textLen = self.CurLenW; - Debug.Assert(pos <= textLen, "pos <= text_len"); - - var newTextLenUtf8 = Encoding.UTF8.GetByteCount(newText); - if (!isResizable && newTextLenUtf8 + self.CurLenA + 1 > self.BufCapacityA) - return false; - - // Grow internal buffer if needed - if (newText.Length + textLen + 1 > self.TextW.Size) - { - if (!isResizable) - return false; - - Debug.Assert(textLen < self.TextW.Size, "text_len < self.TextW.Length"); - self.TextW.Resize(textLen + Math.Clamp(newText.Length * 4, 32, Math.Max(256, newText.Length)) + 1); - } - - var text = new Span<char>(self.TextW.Data, self.TextW.Size); - if (pos != textLen) - text[pos..textLen].CopyTo(text[(pos + newText.Length)..]); - newText.CopyTo(text[pos..]); - - self.Edited = true; - self.CurLenW += newText.Length; - self.CurLenA += newTextLenUtf8; - self.TextW[self.CurLenW] = '\0'; - - return true; - } -} diff --git a/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs b/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs index 05af78949..3ad25f97d 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.AsHook.cs @@ -119,13 +119,13 @@ internal unsafe partial class InterfaceManager this.ResizeBuffers?.InvokeSafely(); - this.backend?.OnPreResize(); + this.scene?.OnPreResize(); var ret = this.dxgiSwapChainResizeBuffersHook!.Original(swapChain, bufferCount, width, height, newFormat, swapChainFlags); if (ret == DXGI.DXGI_ERROR_INVALID_CALL) Log.Error("invalid call to resizeBuffers"); - this.backend?.OnPostResize((int)width, (int)height); + this.scene?.OnPostResize((int)width, (int)height); return ret; } diff --git a/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs b/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs index cd4b0a418..73c0a4d15 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.AsReShadeAddon.cs @@ -14,23 +14,23 @@ internal unsafe partial class InterfaceManager private void ReShadeAddonInterfaceOnDestroySwapChain(ref ReShadeAddonInterface.ApiObject swapChain) { var swapChainNative = swapChain.GetNative<IDXGISwapChain>(); - if (this.backend?.IsAttachedToPresentationTarget((nint)swapChainNative) is not true) + if (this.scene?.SwapChain.NativePointer != (nint)swapChainNative) return; - this.backend?.OnPreResize(); + this.scene?.OnPreResize(); } private void ReShadeAddonInterfaceOnInitSwapChain(ref ReShadeAddonInterface.ApiObject swapChain) { var swapChainNative = swapChain.GetNative<IDXGISwapChain>(); - if (this.backend?.IsAttachedToPresentationTarget((nint)swapChainNative) is not true) + if (this.scene?.SwapChain.NativePointer != (nint)swapChainNative) return; DXGI_SWAP_CHAIN_DESC desc; if (swapChainNative->GetDesc(&desc).FAILED) return; - this.backend?.OnPostResize((int)desc.BufferDesc.Width, (int)desc.BufferDesc.Height); + this.scene?.OnPostResize((int)desc.BufferDesc.Width, (int)desc.BufferDesc.Height); } private void ReShadeAddonInterfaceOnPresent( @@ -42,16 +42,16 @@ internal unsafe partial class InterfaceManager { var swapChainNative = swapChain.GetNative<IDXGISwapChain>(); - if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activebackend) - this.RenderDalamudDraw(activebackend); + if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activeScene) + this.RenderDalamudDraw(activeScene); } private void ReShadeAddonInterfaceOnReShadeOverlay(ref ReShadeAddonInterface.ApiObject runtime) { var swapChainNative = runtime.GetNative<IDXGISwapChain>(); - if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activebackend) - this.RenderDalamudDraw(activebackend); + if (this.RenderDalamudCheckAndInitialize(swapChainNative, 0) is { } activeScene) + this.RenderDalamudDraw(activeScene); } private int AsReShadeAddonDxgiSwapChainResizeBuffersDetour( diff --git a/Dalamud/Interface/Internal/InterfaceManager.cs b/Dalamud/Interface/Internal/InterfaceManager.cs index a1954524a..f532b0412 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.cs @@ -1,4 +1,5 @@ using System.Collections.Concurrent; +using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; @@ -9,7 +10,6 @@ using System.Threading.Tasks; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.ClientState.GamePad; @@ -17,37 +17,31 @@ using Dalamud.Game.ClientState.Keys; using Dalamud.Hooking; using Dalamud.Hooking.Internal; using Dalamud.Hooking.WndProcHook; -using Dalamud.Interface.ImGuiBackend; -using Dalamud.Interface.ImGuiBackend.Delegates; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; -using Dalamud.Interface.Internal.Asserts; using Dalamud.Interface.Internal.DesignSystem; +using Dalamud.Interface.Internal.ManagedAsserts; using Dalamud.Interface.Internal.ReShadeHandling; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Style; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; -using Dalamud.Interface.Windowing.Persistence; -using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; -using Dalamud.Memory; -using Dalamud.Plugin.Services; using Dalamud.Utility; using Dalamud.Utility.Timing; +using ImGuiNET; + +using ImGuiScene; + using JetBrains.Annotations; +using PInvoke; + using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -using static TerraFX.Interop.Windows.Windows; - -using CSFramework = FFXIVClientStructs.FFXIV.Client.System.Framework.Framework; - -using DWMWINDOWATTRIBUTE = Windows.Win32.Graphics.Dwm.DWMWINDOWATTRIBUTE; - // general dev notes, here because it's easiest /* @@ -66,7 +60,6 @@ namespace Dalamud.Interface.Internal; /// This class manages interaction with the ImGui interface. /// </summary> [ServiceManager.EarlyLoadedService] -[InherentDependency<WindowSystemPersistence>] // Used by window system windows to restore state from the configuration internal partial class InterfaceManager : IInternalDisposableService { /// <summary> @@ -79,10 +72,10 @@ internal partial class InterfaceManager : IInternalDisposableService /// </summary> public const float DefaultFontSizePx = (DefaultFontSizePt * 4.0f) / 3.0f; - private static readonly ModuleLog Log = ModuleLog.Create<InterfaceManager>(); - - private readonly ConcurrentBag<IDeferredDisposable> deferredDisposeTextures = []; - private readonly ConcurrentBag<IDisposable> deferredDisposeDisposables = []; + private static readonly ModuleLog Log = new("INTERFACE"); + + private readonly ConcurrentBag<IDeferredDisposable> deferredDisposeTextures = new(); + private readonly ConcurrentBag<IDisposable> deferredDisposeDisposables = new(); [ServiceManager.ServiceDependency] private readonly DalamudConfiguration dalamudConfiguration = Service<DalamudConfiguration>.Get(); @@ -101,9 +94,7 @@ internal partial class InterfaceManager : IInternalDisposableService private readonly ConcurrentQueue<Action> runBeforeImGuiRender = new(); private readonly ConcurrentQueue<Action> runAfterImGuiRender = new(); - private readonly AssertHandler assertHandler = new(); - - private IWin32Backend? backend; + private RawDX11Scene? scene; private Hook<SetCursorDelegate>? setCursorHook; private Hook<ReShadeDxgiSwapChainPresentDelegate>? reShadeDxgiSwapChainPresentHook; @@ -116,23 +107,22 @@ internal partial class InterfaceManager : IInternalDisposableService private ILockedImFont? defaultFontResourceLock; // can't access imgui IO before first present call - private HWND gameWindowHandle; - private bool lastWantCapture; + private bool lastWantCapture = false; private bool isOverrideGameCursor = true; + private IntPtr gameWindowHandle; [ServiceManager.ServiceConstructor] private InterfaceManager() { - this.framework.Update += this.FrameworkOnUpdate; } [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate nint SetCursorDelegate(nint hCursor); + private delegate IntPtr SetCursorDelegate(IntPtr hCursor); /// <summary> /// This event gets called each frame to facilitate ImGui drawing. /// </summary> - public event ImGuiBuildUiDelegate? Draw; + public event RawDX11Scene.BuildUIDelegate? Draw; /// <summary> /// This event gets called when ResizeBuffers is called. @@ -144,23 +134,6 @@ internal partial class InterfaceManager : IInternalDisposableService /// </summary> public event Action? AfterBuildFonts; - /// <summary> - /// Invoked when the default global scale used by ImGui has been changed through Dalamud. - /// </summary> - /// <remarks> Fonts will generally not have finished rebuilding when this is invoked, so if you need to access the font you should subscribe to <seealso cref="DefaultFontHandle"/>.ImFontChanged instead.</remarks> - public event Action? DefaultGlobalScaleChanged; - - /// <summary> - /// Invoked when the default font used by ImGui has been changed through Dalamud. - /// </summary> - /// <remarks> Fonts will generally not have finished rebuilding when this is invoked, so if you need to access the font you should subscribe to <seealso cref="DefaultFontHandle"/>.ImFontChanged instead.</remarks> - public event Action? DefaultFontChanged; - - /// <summary> - /// Invoked when either the currently chosen style in Dalamud or a style or color variable within the currently chosen style has been changed through Dalamud. - /// </summary> - public event Action? DefaultStyleChanged; - /// <summary> /// Gets the default ImGui font.<br /> /// <strong>Accessing this static property outside of the main thread is dangerous and not supported.</strong> @@ -217,29 +190,39 @@ internal partial class InterfaceManager : IInternalDisposableService /// <summary> /// Gets the DX11 scene. /// </summary> - public IImGuiBackend? Backend => this.backend; + public RawDX11Scene? Scene => this.scene; /// <summary> - /// Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor. + /// Gets the D3D11 device instance. + /// </summary> + public SharpDX.Direct3D11.Device? Device => this.scene?.Device; + + /// <summary> + /// Gets the address handle to the main process window. + /// </summary> + public IntPtr WindowHandlePtr => this.scene?.WindowHandlePtr ?? IntPtr.Zero; + + /// <summary> + /// Gets or sets a value indicating whether or not the game's cursor should be overridden with the ImGui cursor. /// </summary> public bool OverrideGameCursor { - get => this.backend?.UpdateCursor ?? this.isOverrideGameCursor; + get => this.scene?.UpdateCursor ?? this.isOverrideGameCursor; set { this.isOverrideGameCursor = value; - if (this.backend != null) - this.backend.UpdateCursor = value; + if (this.scene != null) + this.scene.UpdateCursor = value; } } /// <summary> /// Gets a value indicating whether the Dalamud interface ready to use. /// </summary> - public bool IsReady => this.backend != null; + public bool IsReady => this.scene != null; /// <summary> - /// Gets or sets a value indicating whether Draw events should be dispatched. + /// Gets or sets a value indicating whether or not Draw events should be dispatched. /// </summary> public bool IsDispatchingEvents { get; set; } = true; @@ -250,24 +233,20 @@ internal partial class InterfaceManager : IInternalDisposableService /// <summary> /// Gets a value indicating the native handle of the game main window. /// </summary> - public unsafe HWND GameWindowHandle + public IntPtr GameWindowHandle { get { if (this.gameWindowHandle == 0) { - var gwh = default(HWND); - fixed (char* pClass = "FFXIVGAME") + nint gwh = 0; + while ((gwh = NativeFunctions.FindWindowEx(0, gwh, "FFXIVGAME", 0)) != 0) { - while ((gwh = FindWindowExW(default, gwh, pClass, default)) != default) + _ = User32.GetWindowThreadProcessId(gwh, out var pid); + if (pid == Environment.ProcessId && User32.IsWindowVisible(gwh)) { - uint pid; - _ = GetWindowThreadProcessId(gwh, &pid); - if (pid == Environment.ProcessId && IsWindowVisible(gwh)) - { - this.gameWindowHandle = gwh; - break; - } + this.gameWindowHandle = gwh; + break; } } } @@ -288,27 +267,11 @@ internal partial class InterfaceManager : IInternalDisposableService /// </remarks> public long CumulativePresentCalls { get; private set; } - /// <inheritdoc cref="AssertHandler.ShowAsserts"/> - public bool ShowAsserts - { - get => this.assertHandler.ShowAsserts; - set => this.assertHandler.ShowAsserts = value; - } - - /// <inheritdoc cref="AssertHandler.EnableVerboseLogging"/> - public bool EnableVerboseAssertLogging - { - get => this.assertHandler.EnableVerboseLogging; - set => this.assertHandler.EnableVerboseLogging = value; - } - /// <summary> /// Dispose of managed and unmanaged resources. /// </summary> void IInternalDisposableService.DisposeService() { - this.assertHandler.Dispose(); - // Unload hooks from the framework thread if possible. // We're currently off the framework thread, as this function can only be called from // ServiceManager.UnloadAllServices, which is called from EntryPoint.RunThread. @@ -336,7 +299,7 @@ internal partial class InterfaceManager : IInternalDisposableService this.IconFontHandle = null; Interlocked.Exchange(ref this.dalamudAtlas, null)?.Dispose(); - Interlocked.Exchange(ref this.backend, null)?.Dispose(); + Interlocked.Exchange(ref this.scene, null)?.Dispose(); return; @@ -471,27 +434,27 @@ internal partial class InterfaceManager : IInternalDisposableService /// Get video memory information. /// </summary> /// <returns>The currently used video memory, or null if not available.</returns> - public unsafe (long Used, long Available)? GetD3dMemoryInfo() + public (long Used, long Available)? GetD3dMemoryInfo() { - if (this.backend?.DeviceHandle is 0 or null) + if (this.Device == null) return null; - using var device = default(ComPtr<IDXGIDevice>); - using var adapter = default(ComPtr<IDXGIAdapter>); - using var adapter4 = default(ComPtr<IDXGIAdapter4>); + try + { + var dxgiDev = this.Device.QueryInterfaceOrNull<SharpDX.DXGI.Device>(); + var dxgiAdapter = dxgiDev?.Adapter.QueryInterfaceOrNull<SharpDX.DXGI.Adapter4>(); + if (dxgiAdapter == null) + return null; - if (new ComPtr<IUnknown>((IUnknown*)this.backend.DeviceHandle).As(&device).FAILED) - return null; + var memInfo = dxgiAdapter.QueryVideoMemoryInfo(0, SharpDX.DXGI.MemorySegmentGroup.Local); + return (memInfo.CurrentUsage, memInfo.CurrentReservation); + } + catch + { + // ignored + } - if (device.Get()->GetAdapter(adapter.GetAddressOf()).FAILED) - return null; - - if (adapter.As(&adapter4).FAILED) - return null; - - var vmi = default(DXGI_QUERY_VIDEO_MEMORY_INFO); - adapter4.Get()->QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP.DXGI_MEMORY_SEGMENT_GROUP_LOCAL, &vmi); - return ((long)vmi.CurrentUsage, (long)vmi.CurrentReservation); + return null; } /// <summary> @@ -500,99 +463,43 @@ internal partial class InterfaceManager : IInternalDisposableService /// </summary> public void ClearStacks() { - ImGuiHelpers.ClearStacksOnContext(); - } - - /// <summary> - /// Applies immersive dark mode to the game window based on the current system theme setting. - /// </summary> - internal void SetImmersiveModeFromSystemTheme() - { - bool useDark = this.IsSystemInDarkMode(); - this.SetImmersiveMode(useDark); - } - - /// <summary> - /// Checks whether the system use dark mode. - /// </summary> - /// <returns>Returns true if dark mode is preferred.</returns> - internal bool IsSystemInDarkMode() - { - try - { - using var key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey( - @"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"); - var value = key?.GetValue("AppsUseLightTheme") as int?; - return value != 1; - } - catch - { - return false; - } + this.scene?.ClearStacksOnContext(); } /// <summary> /// Toggle Windows 11 immersive mode on the game window. /// </summary> /// <param name="enabled">Value.</param> - internal unsafe void SetImmersiveMode(bool enabled) + internal void SetImmersiveMode(bool enabled) { if (this.GameWindowHandle == 0) throw new InvalidOperationException("Game window is not yet ready."); - - var value = enabled ? 1u : 0u; - global::Windows.Win32.PInvoke.DwmSetWindowAttribute( - new(new IntPtr(this.GameWindowHandle.Value)), - DWMWINDOWATTRIBUTE.DWMWA_USE_IMMERSIVE_DARK_MODE, - &value, - sizeof(uint)).ThrowOnFailure(); + var value = enabled ? 1 : 0; + ((HRESULT)NativeFunctions.DwmSetWindowAttribute( + this.GameWindowHandle, + NativeFunctions.DWMWINDOWATTRIBUTE.DWMWA_USE_IMMERSIVE_DARK_MODE, + ref value, + sizeof(int))).ThrowOnError(); } - /// <summary> Safely invoke <seealso cref="DefaultGlobalScaleChanged"/>. </summary> - internal void InvokeGlobalScaleChanged() - => this.DefaultGlobalScaleChanged.InvokeSafely(); - - /// <summary> Safely invoke <seealso cref="DefaultFontChanged"/>. </summary> - internal void InvokeFontChanged() - => this.DefaultFontChanged.InvokeSafely(); - - /// <summary> Safely invoke <seealso cref="DefaultStyleChanged"/>. </summary> - internal void InvokeStyleChanged() - => this.DefaultStyleChanged.InvokeSafely(); - private static InterfaceManager WhenFontsReady() { var im = Service<InterfaceManager>.GetNullable(); if (im?.dalamudAtlas is not { } atlas) - throw new InvalidOperationException($"Tried to access fonts before {nameof(SetupHooks)} call."); + throw new InvalidOperationException($"Tried to access fonts before {nameof(ContinueConstruction)} call."); if (!atlas.HasBuiltAtlas) atlas.BuildTask.GetAwaiter().GetResult(); return im; } - private unsafe void FrameworkOnUpdate(IFramework framework1) - { - // We now delay hooking until Framework is set up and has fired its first update. - // Some graphics drivers seem to consider the game's shader cache as invalid if we hook too early. - // The game loads shader packages on the file thread and then compiles them. It will show the logo once it is done. - // This is a workaround, but it fixes an issue where the game would take a very long time to get to the title screen. - // NetworkModuleProxy is set up after lua scripts are loaded (EventFramework.LoadState >= 5), which can only happen - // after the shaders are compiled (if necessary) and loaded. AgentLobby.Update doesn't do much until this condition is met. - if (CSFramework.Instance()->GetNetworkModuleProxy() == null) - return; - - this.SetupHooks(Service<TargetSigScanner>.Get(), Service<FontAtlasFactory>.Get()); - this.framework.Update -= this.FrameworkOnUpdate; - } - /// <summary>Checks if the provided swap chain is the target that Dalamud should draw its interface onto, /// and initializes ImGui for drawing.</summary> /// <param name="swapChain">The swap chain to test and initialize ImGui with if conditions are met.</param> /// <param name="flags">Flags passed to <see cref="IDXGISwapChain.Present"/>.</param> - /// <returns>An initialized instance of <see cref="IDXGISwapChain"/>, or <c>null</c> if <paramref name="swapChain"/> + /// <returns>An initialized instance of <see cref="RawDX11Scene"/>, or <c>null</c> if <paramref name="swapChain"/> /// is not the main swap chain.</returns> - private unsafe IImGuiBackend? RenderDalamudCheckAndInitialize(IDXGISwapChain* swapChain, uint flags) + private unsafe RawDX11Scene? RenderDalamudCheckAndInitialize(IDXGISwapChain* swapChain, uint flags) { // Quoting ReShade dxgi_swapchain.cpp DXGISwapChain::on_present: // > Some D3D11 games test presentation for timing and composition purposes @@ -605,7 +512,7 @@ internal partial class InterfaceManager : IInternalDisposableService Debug.Assert(this.dalamudAtlas is not null, "dalamudAtlas should have been set already"); - var activeBackend = this.backend ?? this.InitBackend(swapChain); + var activeScene = this.scene ?? this.InitScene(swapChain); if (!this.dalamudAtlas!.HasBuiltAtlas) { @@ -619,12 +526,12 @@ internal partial class InterfaceManager : IInternalDisposableService return null; } - return activeBackend; + return activeScene; } /// <summary>Draws Dalamud to the given scene representing the ImGui context.</summary> - /// <param name="activeBackend">The scene to draw to.</param> - private void RenderDalamudDraw(IImGuiBackend activeBackend) + /// <param name="activeScene">The scene to draw to.</param> + private void RenderDalamudDraw(RawDX11Scene activeScene) { this.CumulativePresentCalls++; this.IsMainThreadInPresent = true; @@ -637,7 +544,7 @@ internal partial class InterfaceManager : IInternalDisposableService // Enable viewports if there are no issues. var viewportsEnable = this.dalamudConfiguration.IsDisableViewport || - activeBackend.IsMainViewportFullScreen() || + activeScene.SwapChain.IsFullScreen || ImGui.GetPlatformIO().Monitors.Size == 1; if (viewportsEnable) ImGui.GetIO().ConfigFlags &= ~ImGuiConfigFlags.ViewportsEnable; @@ -645,27 +552,42 @@ internal partial class InterfaceManager : IInternalDisposableService ImGui.GetIO().ConfigFlags |= ImGuiConfigFlags.ViewportsEnable; // Call drawing functions, which in turn will call Draw event. - activeBackend.Render(); + activeScene.Render(); this.PostImGuiRender(); this.IsMainThreadInPresent = false; } - private unsafe IImGuiBackend InitBackend(IDXGISwapChain* swapChain) + private unsafe RawDX11Scene InitScene(IDXGISwapChain* swapChain) { - IWin32Backend newBackend; + RawDX11Scene newScene; using (Timings.Start("IM Scene Init")) { try { - newBackend = new Dx11Win32Backend(swapChain); - this.assertHandler.Setup(); + newScene = new RawDX11Scene((nint)swapChain); } catch (DllNotFoundException ex) { Service<InterfaceManagerWithScene>.ProvideException(ex); Log.Error(ex, "Could not load ImGui dependencies."); + var res = User32.MessageBox( + IntPtr.Zero, + "Dalamud plugins require the Microsoft Visual C++ Redistributable to be installed.\nPlease install the runtime from the official Microsoft website or disable Dalamud.\n\nDo you want to download the redistributable now?", + "Dalamud Error", + User32.MessageBoxOptions.MB_YESNO | User32.MessageBoxOptions.MB_TOPMOST | User32.MessageBoxOptions.MB_ICONERROR); + + if (res == User32.MessageBoxResult.IDYES) + { + var psi = new ProcessStartInfo + { + FileName = "https://aka.ms/vs/16/release/vc_redist.x64.exe", + UseShellExecute = true, + }; + Process.Start(psi); + } + Environment.Exit(-1); // Doesn't reach here, but to make the compiler not complain @@ -675,8 +597,7 @@ internal partial class InterfaceManager : IInternalDisposableService var startInfo = Service<Dalamud>.Get().StartInfo; var configuration = Service<DalamudConfiguration>.Get(); - var iniFileInfo = new FileInfo( - Path.Combine(Path.GetDirectoryName(startInfo.ConfigurationPath)!, "dalamudUI.ini")); + var iniFileInfo = new FileInfo(Path.Combine(Path.GetDirectoryName(startInfo.ConfigurationPath)!, "dalamudUI.ini")); try { @@ -699,17 +620,16 @@ internal partial class InterfaceManager : IInternalDisposableService Log.Error(ex, "Could not delete dalamudUI.ini"); } - newBackend.UpdateCursor = this.isOverrideGameCursor; - newBackend.IniPath = iniFileInfo.FullName; - newBackend.BuildUi += this.Display; - newBackend.NewInputFrame += this.OnNewInputFrame; + newScene.UpdateCursor = this.isOverrideGameCursor; + newScene.ImGuiIniPath = iniFileInfo.FullName; + newScene.OnBuildUI += this.Display; + newScene.OnNewInputFrame += this.OnNewInputFrame; StyleModel.TransferOldModels(); - if (configuration.SavedStyles == null || - configuration.SavedStyles.All(x => x.Name != StyleModelV1.DalamudStandard.Name)) + if (configuration.SavedStyles == null || configuration.SavedStyles.All(x => x.Name != StyleModelV1.DalamudStandard.Name)) { - configuration.SavedStyles = [StyleModelV1.DalamudStandard, StyleModelV1.DalamudClassic]; + configuration.SavedStyles = new List<StyleModel> { StyleModelV1.DalamudStandard, StyleModelV1.DalamudClassic }; configuration.ChosenStyle = StyleModelV1.DalamudStandard.Name; } else if (configuration.SavedStyles.Count == 1) @@ -765,28 +685,16 @@ internal partial class InterfaceManager : IInternalDisposableService Log.Information("[IM] Scene & ImGui setup OK!"); } - this.backend = newBackend; + this.scene = newScene; Service<InterfaceManagerWithScene>.Provide(new(this)); this.wndProcHookManager.PreWndProc += this.WndProcHookManagerOnPreWndProc; - return newBackend; + return newScene; } - private void WndProcHookManagerOnPreWndProc(WndProcEventArgs args) + private unsafe void WndProcHookManagerOnPreWndProc(WndProcEventArgs args) { - if (args.Message == WM.WM_SETTINGCHANGE) - { - if (this.dalamudConfiguration.WindowIsImmersive) - { - if (MemoryHelper.EqualsZeroTerminatedWideString("ImmersiveColorSet", args.LParam) || - MemoryHelper.EqualsZeroTerminatedWideString("VisualStyleChanged", args.LParam)) - { - this.SetImmersiveModeFromSystemTheme(); - } - } - } - - var r = this.backend?.ProcessWndProcW(args.Hwnd, args.Message, args.WParam, args.LParam); + var r = this.scene?.ProcessWndProcW(args.Hwnd, (User32.WindowMessage)args.Message, args.WParam, args.LParam); if (r is not null) args.SuppressWithValue(r.Value); } @@ -818,7 +726,9 @@ internal partial class InterfaceManager : IInternalDisposableService } } - private unsafe void SetupHooks( + [ServiceManager.CallWhenServicesReady( + "InterfaceManager accepts event registration and stuff even when the game window is not ready.")] + private unsafe void ContinueConstruction( TargetSigScanner sigScanner, FontAtlasFactory fontAtlasFactory) { @@ -843,7 +753,7 @@ internal partial class InterfaceManager : IInternalDisposableService new() { SizePx = Service<FontAtlasFactory>.Get().DefaultFontSpec.SizePx, - GlyphRanges = [0x20, 0x20, 0x00], + GlyphRanges = new ushort[] { 0x20, 0x20, 0x00 }, }))); this.MonoFontHandle = (FontHandle)this.dalamudAtlas.NewDelegateFontHandle( e => e.OnPreBuild( @@ -876,31 +786,31 @@ internal partial class InterfaceManager : IInternalDisposableService () => { // Update the ImGui default font. - ImGui.GetIO().Handle->FontDefault = fontLocked.ImFont; + ImGui.GetIO().NativePtr->FontDefault = fontLocked.ImFont; // Update the reference to the resources of the default font. this.defaultFontResourceLock?.Dispose(); this.defaultFontResourceLock = fontLocked; // Broadcast to auto-rebuilding instances. - this.AfterBuildFonts.InvokeSafely(); + this.AfterBuildFonts?.Invoke(); }); }; } - + // This will wait for scene on its own. We just wait for this.dalamudAtlas.BuildTask in this.InitScene. _ = this.dalamudAtlas.BuildFontsAsync(); SwapChainHelper.BusyWaitForGameDeviceSwapChain(); var swapChainDesc = default(DXGI_SWAP_CHAIN_DESC); if (SwapChainHelper.GameDeviceSwapChain->GetDesc(&swapChainDesc).SUCCEEDED) - this.gameWindowHandle = swapChainDesc.OutputWindow; + this.gameWindowHandle = swapChainDesc.OutputWindow; try { // Requires that game window to be there, which will be the case once game swap chain is initialized. if (Service<DalamudConfiguration>.Get().WindowIsImmersive) - this.SetImmersiveModeFromSystemTheme(); + this.SetImmersiveMode(true); } catch (Exception ex) { @@ -1037,7 +947,7 @@ internal partial class InterfaceManager : IInternalDisposableService switch (this.dalamudConfiguration.SwapChainHookMode) { - case SwapChainHelper.HookMode.ByteCode: + case SwapChainHelper.HookMode.ByteCode: default: { Log.Information("Hooking using bytecode..."); @@ -1108,13 +1018,13 @@ internal partial class InterfaceManager : IInternalDisposableService this.dxgiSwapChainHook?.Enable(); } - private nint SetCursorDetour(nint hCursor) + private IntPtr SetCursorDetour(IntPtr hCursor) { - if (this.lastWantCapture && (!this.backend?.IsImGuiCursor(hCursor) ?? false) && this.OverrideGameCursor) - return default; + if (this.lastWantCapture && (!this.scene?.IsImGuiCursor(hCursor) ?? false) && this.OverrideGameCursor) + return IntPtr.Zero; return this.setCursorHook?.IsDisposed is not false - ? SetCursor((HCURSOR)hCursor) + ? User32.SetCursor(new(hCursor, false)).DangerousGetHandle() : this.setCursorHook.Original(hCursor); } @@ -1217,24 +1127,16 @@ internal partial class InterfaceManager : IInternalDisposableService WindowSystem.HasAnyWindowSystemFocus = false; WindowSystem.FocusedWindowSystemNamespace = string.Empty; - WindowSystem.ShouldInhibitAtkCloseEvents = false; + + var snap = ImGuiManagedAsserts.GetSnapshot(); if (this.IsDispatchingEvents) { - try - { - this.Draw?.Invoke(); - } - catch (Exception ex) - { - Log.Error(ex, "Error when invoking global Draw"); - - // We should always handle this in the callbacks. - Util.Fatal("An internal error occurred while drawing the Dalamud UI and the game must close.\nPlease report this error.", "Dalamud"); - } - + this.Draw?.Invoke(); Service<NotificationManager>.GetNullable()?.Draw(); } + + ImGuiManagedAsserts.ReportProblems("Dalamud Core", snap); } /// <summary> diff --git a/Dalamud/Interface/Internal/ManagedAsserts/ImGuiContextOffsets.cs b/Dalamud/Interface/Internal/ManagedAsserts/ImGuiContextOffsets.cs new file mode 100644 index 000000000..89e23ab78 --- /dev/null +++ b/Dalamud/Interface/Internal/ManagedAsserts/ImGuiContextOffsets.cs @@ -0,0 +1,23 @@ +namespace Dalamud.Interface.Internal.ManagedAsserts; + +/// <summary> +/// Offsets to various data in ImGui context. +/// </summary> +/// <remarks> +/// Last updated for ImGui 1.83. +/// </remarks> +[System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Document the unsage instead.")] +internal static class ImGuiContextOffsets +{ + public const int CurrentWindowStackOffset = 0x73A; + + public const int ColorStackOffset = 0x79C; + + public const int StyleVarStackOffset = 0x7A0; + + public const int FontStackOffset = 0x7A4; + + public const int BeginPopupStackOffset = 0x7B8; + + public const int TextStateOffset = 0x4588; +} diff --git a/Dalamud/Interface/Internal/ManagedAsserts/ImGuiManagedAsserts.cs b/Dalamud/Interface/Internal/ManagedAsserts/ImGuiManagedAsserts.cs new file mode 100644 index 000000000..ff42e93f3 --- /dev/null +++ b/Dalamud/Interface/Internal/ManagedAsserts/ImGuiManagedAsserts.cs @@ -0,0 +1,140 @@ +using System.Diagnostics; + +using ImGuiNET; + +using static Dalamud.NativeFunctions; + +namespace Dalamud.Interface.Internal.ManagedAsserts; + +/// <summary> +/// Report ImGui problems with a MessageBox dialog. +/// </summary> +internal static class ImGuiManagedAsserts +{ + /// <summary> + /// Gets or sets a value indicating whether asserts are enabled for ImGui. + /// </summary> + public static bool AssertsEnabled { get; set; } + + /// <summary> + /// Create a snapshot of the current ImGui context. + /// Should be called before rendering an ImGui frame. + /// </summary> + /// <returns>A snapshot of the current context.</returns> + public static unsafe ImGuiContextSnapshot GetSnapshot() + { + var contextPtr = ImGui.GetCurrentContext(); + + var styleVarStack = *((int*)contextPtr + ImGuiContextOffsets.StyleVarStackOffset); // ImVector.Size + var colorStack = *((int*)contextPtr + ImGuiContextOffsets.ColorStackOffset); // ImVector.Size + var fontStack = *((int*)contextPtr + ImGuiContextOffsets.FontStackOffset); // ImVector.Size + var popupStack = *((int*)contextPtr + ImGuiContextOffsets.BeginPopupStackOffset); // ImVector.Size + var windowStack = *((int*)contextPtr + ImGuiContextOffsets.CurrentWindowStackOffset); // ImVector.Size + + return new ImGuiContextSnapshot + { + StyleVarStackSize = styleVarStack, + ColorStackSize = colorStack, + FontStackSize = fontStack, + BeginPopupStackSize = popupStack, + WindowStackSize = windowStack, + }; + } + + /// <summary> + /// Compare a snapshot to the current post-draw state and report any errors in a MessageBox dialog. + /// </summary> + /// <param name="source">The source of any problems, something to blame.</param> + /// <param name="before">ImGui context snapshot.</param> + public static void ReportProblems(string source, ImGuiContextSnapshot before) + { + // TODO: Needs to be updated for ImGui 1.88 + return; + +#pragma warning disable CS0162 + if (!AssertsEnabled) + { + return; + } + + var cSnap = GetSnapshot(); + + if (before.StyleVarStackSize != cSnap.StyleVarStackSize) + { + ShowAssert(source, $"You forgot to pop a style var!\n\nBefore: {before.StyleVarStackSize}, after: {cSnap.StyleVarStackSize}"); + return; + } + + if (before.ColorStackSize != cSnap.ColorStackSize) + { + ShowAssert(source, $"You forgot to pop a color!\n\nBefore: {before.ColorStackSize}, after: {cSnap.ColorStackSize}"); + return; + } + + if (before.FontStackSize != cSnap.FontStackSize) + { + ShowAssert(source, $"You forgot to pop a font!\n\nBefore: {before.FontStackSize}, after: {cSnap.FontStackSize}"); + return; + } + + if (before.BeginPopupStackSize != cSnap.BeginPopupStackSize) + { + ShowAssert(source, $"You forgot to end a popup!\n\nBefore: {before.BeginPopupStackSize}, after: {cSnap.BeginPopupStackSize}"); + return; + } + + if (cSnap.WindowStackSize != 1) + { + if (cSnap.WindowStackSize > 1) + { + ShowAssert(source, $"Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?\n\ncSnap.WindowStackSize = {cSnap.WindowStackSize}"); + } + else + { + ShowAssert(source, $"Mismatched Begin/BeginChild vs End/EndChild calls: did you call End/EndChild too much?\n\ncSnap.WindowStackSize = {cSnap.WindowStackSize}"); + } + } +#pragma warning restore CS0162 + } + + private static void ShowAssert(string source, string message) + { + var caption = $"You fucked up"; + message = $"{message}\n\nSource: {source}\n\nAsserts are now disabled. You may re-enable them."; + var flags = MessageBoxType.Ok | MessageBoxType.IconError; + + _ = MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags); + AssertsEnabled = false; + } + + /// <summary> + /// A snapshot of various ImGui context properties. + /// </summary> + public class ImGuiContextSnapshot + { + /// <summary> + /// Gets the ImGui style var stack size. + /// </summary> + public int StyleVarStackSize { get; init; } + + /// <summary> + /// Gets the ImGui color stack size. + /// </summary> + public int ColorStackSize { get; init; } + + /// <summary> + /// Gets the ImGui font stack size. + /// </summary> + public int FontStackSize { get; init; } + + /// <summary> + /// Gets the ImGui begin popup stack size. + /// </summary> + public int BeginPopupStackSize { get; init; } + + /// <summary> + /// Gets the ImGui window stack size. + /// </summary> + public int WindowStackSize { get; init; } + } +} diff --git a/Dalamud/Interface/Internal/PluginCategoryManager.cs b/Dalamud/Interface/Internal/PluginCategoryManager.cs index 2b7f0f354..71c869ede 100644 --- a/Dalamud/Interface/Internal/PluginCategoryManager.cs +++ b/Dalamud/Interface/Internal/PluginCategoryManager.cs @@ -3,7 +3,6 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using CheapLoc; - using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; @@ -59,8 +58,8 @@ internal class PluginCategoryManager private CategoryKind currentCategoryKind = CategoryKind.All; private bool isContentDirty; - private Dictionary<PluginManifest, CategoryKind[]> mapPluginCategories = []; - private List<CategoryKind> highlightedCategoryKinds = []; + private Dictionary<PluginManifest, CategoryKind[]> mapPluginCategories = new(); + private List<CategoryKind> highlightedCategoryKinds = new(); /// <summary> /// Type of category group. @@ -295,7 +294,7 @@ internal class PluginCategoryManager } } - if (manifest.IsTestingExclusive || manifest.IsAvailableForTesting) + if (PluginManager.HasTestingVersion(manifest) || manifest.IsTestingExclusive) categoryList.Add(CategoryKind.AvailableForTesting); // always add, even if empty @@ -514,7 +513,8 @@ internal class PluginCategoryManager this.GroupKind = groupKind; this.nameFunc = nameFunc; - this.Categories = [.. categories]; + this.Categories = new(); + this.Categories.AddRange(categories); } /// <summary> diff --git a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.Exports.cs b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.Exports.cs index d7d3b56c3..d8d210076 100644 --- a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.Exports.cs +++ b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.Exports.cs @@ -63,11 +63,11 @@ internal sealed unsafe partial class ReShadeAddonInterface return; - static bool GetProcAddressInto(ProcessModule m, ReadOnlySpan<char> name, void* res) + bool GetProcAddressInto(ProcessModule m, ReadOnlySpan<char> name, void* res) { Span<byte> name8 = stackalloc byte[Encoding.UTF8.GetByteCount(name) + 1]; name8[Encoding.UTF8.GetBytes(name, name8)] = 0; - *(nint*)res = (nint)GetProcAddress((HMODULE)m.BaseAddress, (sbyte*)Unsafe.AsPointer(ref name8[0])); + *(nint*)res = GetProcAddress((HMODULE)m.BaseAddress, (sbyte*)Unsafe.AsPointer(ref name8[0])); return *(nint*)res != 0; } } @@ -174,7 +174,7 @@ internal sealed unsafe partial class ReShadeAddonInterface CERT.CERT_NAME_SIMPLE_DISPLAY_TYPE, CERT.CERT_NAME_ISSUER_FLAG, null, - (char*)Unsafe.AsPointer(ref issuerName[0]), + (ushort*)Unsafe.AsPointer(ref issuerName[0]), pcb); if (pcb == 0) throw new Win32Exception("CertGetNameStringW(2)"); diff --git a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs index 711de6eb2..f1210425d 100644 --- a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs +++ b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs @@ -94,7 +94,7 @@ internal static unsafe class ReShadeUnwrapper static bool HasProcExported(ProcessModule m, ReadOnlySpan<byte> name) { fixed (byte* p = name) - return GetProcAddress((HMODULE)m.BaseAddress, (sbyte*)p) != null; + return GetProcAddress((HMODULE)m.BaseAddress, (sbyte*)p) != 0; } } diff --git a/Dalamud/Interface/Internal/StaThreadService.cs b/Dalamud/Interface/Internal/StaThreadService.cs deleted file mode 100644 index 5e93bbf75..000000000 --- a/Dalamud/Interface/Internal/StaThreadService.cs +++ /dev/null @@ -1,282 +0,0 @@ -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Runtime.InteropServices; -using System.Threading; -using System.Threading.Tasks; - -using Dalamud.Utility; - -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; - -namespace Dalamud.Interface.Internal; - -/// <summary>Dedicated thread for OLE operations, and possibly more native thread-serialized operations.</summary> -[ServiceManager.EarlyLoadedService] -internal partial class StaThreadService : IInternalDisposableService -{ - private readonly CancellationTokenSource cancellationTokenSource = new(); - private readonly Thread thread; - private readonly ThreadBoundTaskScheduler taskScheduler; - private readonly TaskFactory taskFactory; - - private readonly TaskCompletionSource<HWND> messageReceiverHwndTask = - new(TaskCreationOptions.RunContinuationsAsynchronously); - - [ServiceManager.ServiceConstructor] - private StaThreadService() - { - try - { - this.thread = new(this.OleThreadBody); - this.thread.SetApartmentState(ApartmentState.STA); - - this.taskScheduler = new(this.thread); - this.taskScheduler.TaskQueued += this.TaskSchedulerOnTaskQueued; - this.taskFactory = new( - this.cancellationTokenSource.Token, - TaskCreationOptions.None, - TaskContinuationOptions.None, - this.taskScheduler); - - this.thread.Start(); - this.messageReceiverHwndTask.Task.Wait(); - } - catch (Exception e) - { - this.cancellationTokenSource.Cancel(); - this.messageReceiverHwndTask.SetException(e); - throw; - } - } - - /// <summary>Gets all the available clipboard formats.</summary> - public IReadOnlySet<uint> AvailableClipboardFormats { get; private set; } = ImmutableSortedSet<uint>.Empty; - - /// <summary>Places a pointer to a specific data object onto the clipboard. This makes the data object accessible - /// to the <see cref="OleGetClipboard(IDataObject**)"/> function.</summary> - /// <param name="pdo">Pointer to the <see cref="IDataObject"/> interface on the data object from which the data to - /// be placed on the clipboard can be obtained. This parameter can be NULL; in which case the clipboard is emptied. - /// </param> - /// <returns>This function returns <see cref="S.S_OK"/> on success.</returns> - [LibraryImport("ole32.dll")] - public static unsafe partial int OleSetClipboard(IDataObject* pdo); - - /// <inheritdoc cref="OleSetClipboard(IDataObject*)"/> - public static unsafe void OleSetClipboard(ComPtr<IDataObject> pdo) => - Marshal.ThrowExceptionForHR(OleSetClipboard(pdo.Get())); - - /// <summary>Retrieves a data object that you can use to access the contents of the clipboard.</summary> - /// <param name="pdo">Address of <see cref="IDataObject"/> pointer variable that receives the interface pointer to - /// the clipboard data object.</param> - /// <returns>This function returns <see cref="S.S_OK"/> on success.</returns> - [LibraryImport("ole32.dll")] - public static unsafe partial int OleGetClipboard(IDataObject** pdo); - - /// <inheritdoc cref="OleGetClipboard(IDataObject**)"/> - public static unsafe ComPtr<IDataObject> OleGetClipboard() - { - var pdo = default(ComPtr<IDataObject>); - Marshal.ThrowExceptionForHR(OleGetClipboard(pdo.GetAddressOf())); - return pdo; - } - - /// <summary>Calls the appropriate method or function to release the specified storage medium.</summary> - /// <param name="stgm">Address of <see cref="STGMEDIUM"/> to release.</param> - [LibraryImport("ole32.dll")] - public static unsafe partial void ReleaseStgMedium(STGMEDIUM* stgm); - - /// <inheritdoc cref="ReleaseStgMedium(STGMEDIUM*)"/> - public static unsafe void ReleaseStgMedium(ref STGMEDIUM stgm) - { - fixed (STGMEDIUM* pstgm = &stgm) - ReleaseStgMedium(pstgm); - } - - /// <inheritdoc/> - void IInternalDisposableService.DisposeService() - { - this.cancellationTokenSource.Cancel(); - if (this.messageReceiverHwndTask.Task.IsCompletedSuccessfully) - SendMessageW(this.messageReceiverHwndTask.Task.Result, WM.WM_CLOSE, 0, 0); - - this.thread.Join(); - } - - /// <summary>Runs a given delegate in the messaging thread.</summary> - /// <param name="action">Delegate to run.</param> - /// <param name="cancellationToken">Optional cancellation token.</param> - /// <returns>A <see cref="Task"/> representating the state of the operation.</returns> - public async Task Run(Action action, CancellationToken cancellationToken = default) - { - using var cts = CancellationTokenSource.CreateLinkedTokenSource( - this.cancellationTokenSource.Token, - cancellationToken); - await this.taskFactory.StartNew(action, cts.Token).ConfigureAwait(true); - } - - /// <summary>Runs a given delegate in the messaging thread.</summary> - /// <typeparam name="T">Type of the return value.</typeparam> - /// <param name="func">Delegate to run.</param> - /// <param name="cancellationToken">Optional cancellation token.</param> - /// <returns>A <see cref="Task{T}"/> representating the state of the operation.</returns> - public async Task<T> Run<T>(Func<T> func, CancellationToken cancellationToken = default) - { - using var cts = CancellationTokenSource.CreateLinkedTokenSource( - this.cancellationTokenSource.Token, - cancellationToken); - return await this.taskFactory.StartNew(func, cts.Token).ConfigureAwait(true); - } - - /// <summary>Runs a given delegate in the messaging thread.</summary> - /// <param name="func">Delegate to run.</param> - /// <param name="cancellationToken">Optional cancellation token.</param> - /// <returns>A <see cref="Task{T}"/> representating the state of the operation.</returns> - public async Task Run(Func<Task> func, CancellationToken cancellationToken = default) - { - using var cts = CancellationTokenSource.CreateLinkedTokenSource( - this.cancellationTokenSource.Token, - cancellationToken); - await await this.taskFactory.StartNew(func, cts.Token).ConfigureAwait(true); - } - - /// <summary>Runs a given delegate in the messaging thread.</summary> - /// <typeparam name="T">Type of the return value.</typeparam> - /// <param name="func">Delegate to run.</param> - /// <param name="cancellationToken">Optional cancellation token.</param> - /// <returns>A <see cref="Task{T}"/> representating the state of the operation.</returns> - public async Task<T> Run<T>(Func<Task<T>> func, CancellationToken cancellationToken = default) - { - using var cts = CancellationTokenSource.CreateLinkedTokenSource( - this.cancellationTokenSource.Token, - cancellationToken); - return await await this.taskFactory.StartNew(func, cts.Token).ConfigureAwait(true); - } - - [LibraryImport("ole32.dll")] - private static partial int OleInitialize(nint reserved); - - [LibraryImport("ole32.dll")] - private static partial void OleUninitialize(); - - [LibraryImport("ole32.dll")] - private static partial int OleFlushClipboard(); - - private void TaskSchedulerOnTaskQueued() => - PostMessageW(this.messageReceiverHwndTask.Task.Result, WM.WM_NULL, 0, 0); - - private void UpdateAvailableClipboardFormats(HWND hWnd) - { - if (!OpenClipboard(hWnd)) - { - this.AvailableClipboardFormats = ImmutableSortedSet<uint>.Empty; - return; - } - - var formats = new SortedSet<uint>(); - for (var cf = EnumClipboardFormats(0); cf != 0; cf = EnumClipboardFormats(cf)) - formats.Add(cf); - this.AvailableClipboardFormats = formats; - CloseClipboard(); - } - - private LRESULT MessageReceiverWndProc(HWND hWnd, uint uMsg, WPARAM wParam, LPARAM lParam) - { - this.taskScheduler.Run(); - - switch (uMsg) - { - case WM.WM_CLIPBOARDUPDATE: - this.UpdateAvailableClipboardFormats(hWnd); - break; - - case WM.WM_DESTROY: - PostQuitMessage(0); - return 0; - } - - return DefWindowProcW(hWnd, uMsg, wParam, lParam); - } - - private unsafe void OleThreadBody() - { - var hInstance = (HINSTANCE)Marshal.GetHINSTANCE(typeof(StaThreadService).Module); - ushort wndClassAtom = 0; - var gch = GCHandle.Alloc(this); - try - { - ((HRESULT)OleInitialize(0)).ThrowOnError(); - - fixed (char* name = typeof(StaThreadService).FullName!) - { - var wndClass = new WNDCLASSEXW - { - cbSize = (uint)sizeof(WNDCLASSEXW), - lpfnWndProc = &MessageReceiverWndProcStatic, - hInstance = hInstance, - hbrBackground = (HBRUSH)(COLOR.COLOR_BACKGROUND + 1), - lpszClassName = name, - }; - - wndClassAtom = RegisterClassExW(&wndClass); - if (wndClassAtom == 0) - Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error()); - - this.messageReceiverHwndTask.SetResult( - CreateWindowExW( - 0, - (char*)wndClassAtom, - name, - 0, - CW_USEDEFAULT, - CW_USEDEFAULT, - CW_USEDEFAULT, - CW_USEDEFAULT, - default, - default, - hInstance, - (void*)GCHandle.ToIntPtr(gch))); - - [UnmanagedCallersOnly] - static LRESULT MessageReceiverWndProcStatic(HWND hWnd, uint uMsg, WPARAM wParam, LPARAM lParam) - { - nint gchn; - if (uMsg == WM.WM_NCCREATE) - { - gchn = (nint)((CREATESTRUCTW*)lParam)->lpCreateParams; - SetWindowLongPtrW(hWnd, GWLP.GWLP_USERDATA, gchn); - } - else - { - gchn = GetWindowLongPtrW(hWnd, GWLP.GWLP_USERDATA); - } - - if (gchn == 0) - return DefWindowProcW(hWnd, uMsg, wParam, lParam); - - return ((StaThreadService)GCHandle.FromIntPtr(gchn).Target!) - .MessageReceiverWndProc(hWnd, uMsg, wParam, lParam); - } - } - - AddClipboardFormatListener(this.messageReceiverHwndTask.Task.Result); - this.UpdateAvailableClipboardFormats(this.messageReceiverHwndTask.Task.Result); - - for (MSG msg; GetMessageW(&msg, default, 0, 0);) - { - TranslateMessage(&msg); - DispatchMessageW(&msg); - } - } - catch (Exception e) - { - gch.Free(); - _ = OleFlushClipboard(); - OleUninitialize(); - if (wndClassAtom != 0) - UnregisterClassW((char*)wndClassAtom, hInstance); - this.messageReceiverHwndTask.TrySetException(e); - } - } -} diff --git a/Dalamud/Interface/Internal/UiDebug.cs b/Dalamud/Interface/Internal/UiDebug.cs new file mode 100644 index 000000000..2e8f4416b --- /dev/null +++ b/Dalamud/Interface/Internal/UiDebug.cs @@ -0,0 +1,679 @@ +using System.Numerics; + +using Dalamud.Game; +using Dalamud.Game.Gui; +using Dalamud.Interface.ImGuiSeStringRenderer.Internal; +using Dalamud.Interface.Textures.Internal; +using Dalamud.Interface.Utility; +using Dalamud.Utility; + +using FFXIVClientStructs.FFXIV.Client.System.String; +using FFXIVClientStructs.FFXIV.Client.UI.Misc; +using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; + +using Lumina.Text.ReadOnly; + +// Customised version of https://github.com/aers/FFXIVUIDebug + +namespace Dalamud.Interface.Internal; + +/// <summary> +/// This class displays a debug window to inspect native addons. +/// </summary> +internal unsafe class UiDebug +{ + private const int UnitListCount = 18; + + private readonly bool[] selectedInList = new bool[UnitListCount]; + private readonly string[] listNames = new string[UnitListCount] + { + "Depth Layer 1", + "Depth Layer 2", + "Depth Layer 3", + "Depth Layer 4", + "Depth Layer 5", + "Depth Layer 6", + "Depth Layer 7", + "Depth Layer 8", + "Depth Layer 9", + "Depth Layer 10", + "Depth Layer 11", + "Depth Layer 12", + "Depth Layer 13", + "Loaded Units", + "Focused Units", + "Units 16", + "Units 17", + "Units 18", + }; + + private bool doingSearch; + private string searchInput = string.Empty; + private AtkUnitBase* selectedUnitBase = null; + + /// <summary> + /// Initializes a new instance of the <see cref="UiDebug"/> class. + /// </summary> + public UiDebug() + { + } + + /// <summary> + /// Renders this window. + /// </summary> + public void Draw() + { + ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, new Vector2(3, 2)); + ImGui.BeginChild("st_uiDebug_unitBaseSelect", new Vector2(250, -1), true); + + ImGui.SetNextItemWidth(-1); + ImGui.InputTextWithHint("###atkUnitBaseSearch", "Search", ref this.searchInput, 0x20); + + this.DrawUnitBaseList(); + ImGui.EndChild(); + if (this.selectedUnitBase != null) + { + ImGui.SameLine(); + ImGui.BeginChild("st_uiDebug_selectedUnitBase", new Vector2(-1, -1), true); + this.DrawUnitBase(this.selectedUnitBase); + ImGui.EndChild(); + } + + ImGui.PopStyleVar(); + } + + private void DrawUnitBase(AtkUnitBase* atkUnitBase) + { + var isVisible = atkUnitBase->IsVisible; + var addonName = atkUnitBase->NameString; + var agent = Service<GameGui>.Get().FindAgentInterface(atkUnitBase); + + ImGui.Text($"{addonName}"); + ImGui.SameLine(); + ImGui.PushStyleColor(ImGuiCol.Text, isVisible ? 0xFF00FF00 : 0xFF0000FF); + ImGui.Text(isVisible ? "Visible" : "Not Visible"); + ImGui.PopStyleColor(); + + ImGui.SameLine(ImGui.GetWindowContentRegionMax().X - ImGui.GetWindowContentRegionMin().X - 25); + if (ImGui.SmallButton("V")) + { + atkUnitBase->IsVisible = !atkUnitBase->IsVisible; + } + + ImGui.Separator(); + ImGuiHelpers.ClickToCopyText($"Address: {(ulong)atkUnitBase:X}", $"{(ulong)atkUnitBase:X}"); + ImGuiHelpers.ClickToCopyText($"Agent: {(ulong)agent:X}", $"{(ulong)agent:X}"); + ImGui.Separator(); + + ImGui.Text($"Position: [ {atkUnitBase->X} , {atkUnitBase->Y} ]"); + ImGui.Text($"Scale: {atkUnitBase->Scale * 100}%%"); + ImGui.Text($"Widget Count {atkUnitBase->UldManager.ObjectCount}"); + + ImGui.Separator(); + + object addonObj = *atkUnitBase; + + Util.ShowStruct(addonObj, (ulong)atkUnitBase); + + ImGui.Dummy(new Vector2(25 * ImGui.GetIO().FontGlobalScale)); + ImGui.Separator(); + if (atkUnitBase->RootNode != null) + this.PrintNode(atkUnitBase->RootNode); + + if (atkUnitBase->UldManager.NodeListCount > 0) + { + ImGui.Dummy(new Vector2(25 * ImGui.GetIO().FontGlobalScale)); + ImGui.Separator(); + ImGui.PushStyleColor(ImGuiCol.Text, 0xFFFFAAAA); + if (ImGui.TreeNode($"Node List##{(ulong)atkUnitBase:X}")) + { + ImGui.PopStyleColor(); + + for (var j = 0; j < atkUnitBase->UldManager.NodeListCount; j++) + { + this.PrintNode(atkUnitBase->UldManager.NodeList[j], false, $"[{j}] "); + } + + ImGui.TreePop(); + } + else + { + ImGui.PopStyleColor(); + } + } + } + + private void PrintNode(AtkResNode* node, bool printSiblings = true, string treePrefix = "") + { + if (node == null) + return; + + if ((int)node->Type < 1000) + this.PrintSimpleNode(node, treePrefix); + else + this.PrintComponentNode(node, treePrefix); + + if (printSiblings) + { + var prevNode = node; + while ((prevNode = prevNode->PrevSiblingNode) != null) + this.PrintNode(prevNode, false, "prev "); + + var nextNode = node; + while ((nextNode = nextNode->NextSiblingNode) != null) + this.PrintNode(nextNode, false, "next "); + } + } + + private void PrintSimpleNode(AtkResNode* node, string treePrefix) + { + var popped = false; + var isVisible = node->NodeFlags.HasFlag(NodeFlags.Visible); + + if (isVisible) + ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0, 255, 0, 255)); + + if (ImGui.TreeNode($"{treePrefix}{node->Type} Node (ptr = {(long)node:X})###{(long)node}")) + { + if (ImGui.IsItemHovered()) + this.DrawOutline(node); + + if (isVisible) + { + ImGui.PopStyleColor(); + popped = true; + } + + ImGui.Text("Node: "); + ImGui.SameLine(); + ImGuiHelpers.ClickToCopyText($"{(ulong)node:X}"); + ImGui.SameLine(); + switch (node->Type) + { + case NodeType.Text: Util.ShowStruct(*(AtkTextNode*)node, (ulong)node); break; + case NodeType.Image: Util.ShowStruct(*(AtkImageNode*)node, (ulong)node); break; + case NodeType.Collision: Util.ShowStruct(*(AtkCollisionNode*)node, (ulong)node); break; + case NodeType.NineGrid: Util.ShowStruct(*(AtkNineGridNode*)node, (ulong)node); break; + case NodeType.ClippingMask: Util.ShowStruct(*(AtkClippingMaskNode*)node, (ulong)node); break; + case NodeType.Counter: Util.ShowStruct(*(AtkCounterNode*)node, (ulong)node); break; + default: Util.ShowStruct(*node, (ulong)node); break; + } + + this.PrintResNode(node); + + if (node->ChildNode != null) + this.PrintNode(node->ChildNode); + + switch (node->Type) + { + case NodeType.Text: + var textNode = (AtkTextNode*)node; + ImGui.Text("text: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textNode->NodeText); + + ImGui.InputText($"Replace Text##{(ulong)textNode:X}", new IntPtr(textNode->NodeText.StringPtr), (uint)textNode->NodeText.BufSize); + + ImGui.SameLine(); + if (ImGui.Button($"Encode##{(ulong)textNode:X}")) + { + using var tmp = new Utf8String(); + RaptureTextModule.Instance()->MacroEncoder.EncodeString(&tmp, textNode->NodeText.StringPtr); + textNode->NodeText.Copy(&tmp); + } + + ImGui.SameLine(); + if (ImGui.Button($"Decode##{(ulong)textNode:X}")) + textNode->NodeText.SetString(new ReadOnlySeStringSpan(textNode->NodeText.StringPtr).ToString()); + + ImGui.Text($"AlignmentType: {(AlignmentType)textNode->AlignmentFontType} FontSize: {textNode->FontSize}"); + int b = textNode->AlignmentFontType; + if (ImGui.InputInt($"###setAlignment{(ulong)textNode:X}", ref b, 1)) + { + while (b > byte.MaxValue) b -= byte.MaxValue; + while (b < byte.MinValue) b += byte.MaxValue; + textNode->AlignmentFontType = (byte)b; + textNode->AtkResNode.DrawFlags |= 0x1; + } + + ImGui.Text($"Color: #{textNode->TextColor.R:X2}{textNode->TextColor.G:X2}{textNode->TextColor.B:X2}{textNode->TextColor.A:X2}"); + ImGui.SameLine(); + ImGui.Text($"EdgeColor: #{textNode->EdgeColor.R:X2}{textNode->EdgeColor.G:X2}{textNode->EdgeColor.B:X2}{textNode->EdgeColor.A:X2}"); + ImGui.SameLine(); + ImGui.Text($"BGColor: #{textNode->BackgroundColor.R:X2}{textNode->BackgroundColor.G:X2}{textNode->BackgroundColor.B:X2}{textNode->BackgroundColor.A:X2}"); + + ImGui.Text($"TextFlags: {textNode->TextFlags}"); + ImGui.SameLine(); + ImGui.Text($"TextFlags2: {textNode->TextFlags2}"); + + break; + case NodeType.Counter: + var counterNode = (AtkCounterNode*)node; + ImGui.Text("text: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(counterNode->NodeText); + break; + case NodeType.Image: + var imageNode = (AtkImageNode*)node; + PrintTextureInfo(imageNode->PartsList, imageNode->PartId); + break; + case NodeType.NineGrid: + var ngNode = (AtkNineGridNode*)node; + PrintTextureInfo(ngNode->PartsList, ngNode->PartId); + break; + case NodeType.ClippingMask: + var cmNode = (AtkClippingMaskNode*)node; + PrintTextureInfo(cmNode->PartsList, cmNode->PartId); + break; + } + + ImGui.TreePop(); + } + else if (ImGui.IsItemHovered()) + { + this.DrawOutline(node); + } + + if (isVisible && !popped) + ImGui.PopStyleColor(); + + static void PrintTextureInfo(AtkUldPartsList* partsList, uint partId) + { + if (partsList != null) + { + if (partId > partsList->PartCount) + { + ImGui.Text("part id > part count?"); + } + else + { + var textureInfo = partsList->Parts[partId].UldAsset; + var texType = textureInfo->AtkTexture.TextureType; + ImGui.Text( + $"texture type: {texType} part_id={partId} part_id_count={partsList->PartCount}"); + if (texType == TextureType.Resource) + { + ImGui.Text( + $"texture path: {textureInfo->AtkTexture.Resource->TexFileResourceHandle->ResourceHandle.FileName}"); + var kernelTexture = textureInfo->AtkTexture.Resource->KernelTextureObject; + + if (ImGui.TreeNode($"Texture##{(ulong)kernelTexture->D3D11ShaderResourceView:X}")) + { + ImGui.Image( + new IntPtr(kernelTexture->D3D11ShaderResourceView), + new Vector2(kernelTexture->ActualWidth, kernelTexture->ActualHeight)); + ImGui.TreePop(); + } + } + else if (texType == TextureType.KernelTexture) + { + if (ImGui.TreeNode( + $"Texture##{(ulong)textureInfo->AtkTexture.KernelTexture->D3D11ShaderResourceView:X}")) + { + ImGui.Image( + new IntPtr(textureInfo->AtkTexture.KernelTexture->D3D11ShaderResourceView), + new Vector2( + textureInfo->AtkTexture.KernelTexture->ActualWidth, + textureInfo->AtkTexture.KernelTexture->ActualHeight)); + ImGui.TreePop(); + } + } + + if (ImGui.Button($"Replace with a random image##{(ulong)textureInfo:X}")) + { + var texm = Service<TextureManager>.Get(); + texm.Shared + .GetFromGame( + Random.Shared.Next(0, 1) == 0 + ? $"ui/loadingimage/-nowloading_base{Random.Shared.Next(1, 33)}.tex" + : $"ui/loadingimage/-nowloading_base{Random.Shared.Next(1, 33)}_hr1.tex") + .RentAsync() + .ContinueWith( + r => Service<Framework>.Get().RunOnFrameworkThread( + () => + { + if (!r.IsCompletedSuccessfully) + return; + + using (r.Result) + { + textureInfo->AtkTexture.ReleaseTexture(); + textureInfo->AtkTexture.KernelTexture = + texm.ConvertToKernelTexture(r.Result); + textureInfo->AtkTexture.TextureType = TextureType.KernelTexture; + } + })); + } + } + } + else + { + ImGui.Text("no texture loaded"); + } + } + } + + private void PrintComponentNode(AtkResNode* node, string treePrefix) + { + var compNode = (AtkComponentNode*)node; + + var popped = false; + var isVisible = node->NodeFlags.HasFlag(NodeFlags.Visible); + + var componentInfo = compNode->Component->UldManager; + + var childCount = componentInfo.NodeListCount; + + var objectInfo = (AtkUldComponentInfo*)componentInfo.Objects; + if (objectInfo == null) + { + return; + } + + if (isVisible) + ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0, 255, 0, 255)); + + if (ImGui.TreeNode($"{treePrefix}{objectInfo->ComponentType} Component Node (ptr = {(long)node:X}, component ptr = {(long)compNode->Component:X}) child count = {childCount} ###{(long)node}")) + { + if (ImGui.IsItemHovered()) + this.DrawOutline(node); + + if (isVisible) + { + ImGui.PopStyleColor(); + popped = true; + } + + ImGui.Text("Node: "); + ImGui.SameLine(); + ImGuiHelpers.ClickToCopyText($"{(ulong)node:X}"); + ImGui.SameLine(); + Util.ShowStruct(*compNode, (ulong)compNode); + ImGui.Text("Component: "); + ImGui.SameLine(); + ImGuiHelpers.ClickToCopyText($"{(ulong)compNode->Component:X}"); + ImGui.SameLine(); + + switch (objectInfo->ComponentType) + { + case ComponentType.Button: Util.ShowStruct(*(AtkComponentButton*)compNode->Component, (ulong)compNode->Component); break; + case ComponentType.Slider: Util.ShowStruct(*(AtkComponentSlider*)compNode->Component, (ulong)compNode->Component); break; + case ComponentType.Window: Util.ShowStruct(*(AtkComponentWindow*)compNode->Component, (ulong)compNode->Component); break; + case ComponentType.CheckBox: Util.ShowStruct(*(AtkComponentCheckBox*)compNode->Component, (ulong)compNode->Component); break; + case ComponentType.GaugeBar: Util.ShowStruct(*(AtkComponentGaugeBar*)compNode->Component, (ulong)compNode->Component); break; + case ComponentType.RadioButton: Util.ShowStruct(*(AtkComponentRadioButton*)compNode->Component, (ulong)compNode->Component); break; + case ComponentType.TextInput: Util.ShowStruct(*(AtkComponentTextInput*)compNode->Component, (ulong)compNode->Component); break; + case ComponentType.Icon: Util.ShowStruct(*(AtkComponentIcon*)compNode->Component, (ulong)compNode->Component); break; + default: Util.ShowStruct(*compNode->Component, (ulong)compNode->Component); break; + } + + this.PrintResNode(node); + this.PrintNode(componentInfo.RootNode); + + switch (objectInfo->ComponentType) + { + case ComponentType.TextInput: + var textInputComponent = (AtkComponentTextInput*)compNode->Component; + ImGui.Text("InputBase Text1: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textInputComponent->AtkComponentInputBase.UnkText1); + + ImGui.Text("InputBase Text2: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textInputComponent->AtkComponentInputBase.UnkText2); + + ImGui.Text("Text1: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textInputComponent->UnkText01); + + ImGui.Text("Text2: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textInputComponent->UnkText02); + + ImGui.Text("Text3: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textInputComponent->UnkText03); + + ImGui.Text("Text4: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textInputComponent->UnkText04); + + ImGui.Text("Text5: "); + ImGui.SameLine(); + Service<SeStringRenderer>.Get().Draw(textInputComponent->UnkText05); + break; + } + + ImGui.PushStyleColor(ImGuiCol.Text, 0xFFFFAAAA); + if (ImGui.TreeNode($"Node List##{(ulong)node:X}")) + { + ImGui.PopStyleColor(); + + for (var i = 0; i < compNode->Component->UldManager.NodeListCount; i++) + { + this.PrintNode(compNode->Component->UldManager.NodeList[i], false, $"[{i}] "); + } + + ImGui.TreePop(); + } + else + { + ImGui.PopStyleColor(); + } + + ImGui.TreePop(); + } + else if (ImGui.IsItemHovered()) + { + this.DrawOutline(node); + } + + if (isVisible && !popped) + ImGui.PopStyleColor(); + } + + private void PrintResNode(AtkResNode* node) + { + ImGui.Text($"NodeID: {node->NodeId}"); + ImGui.SameLine(); + if (ImGui.SmallButton($"T:Visible##{(ulong)node:X}")) + { + node->NodeFlags ^= NodeFlags.Visible; + } + + ImGui.SameLine(); + if (ImGui.SmallButton($"C:Ptr##{(ulong)node:X}")) + { + ImGui.SetClipboardText($"{(ulong)node:X}"); + } + + ImGui.Text( + $"X: {node->X} Y: {node->Y} " + + $"ScaleX: {node->ScaleX} ScaleY: {node->ScaleY} " + + $"Rotation: {node->Rotation} " + + $"Width: {node->Width} Height: {node->Height} " + + $"OriginX: {node->OriginX} OriginY: {node->OriginY}"); + ImGui.Text( + $"RGBA: 0x{node->Color.R:X2}{node->Color.G:X2}{node->Color.B:X2}{node->Color.A:X2} " + + $"AddRGB: {node->AddRed} {node->AddGreen} {node->AddBlue} " + + $"MultiplyRGB: {node->MultiplyRed} {node->MultiplyGreen} {node->MultiplyBlue}"); + } + + private bool DrawUnitListHeader(int index, ushort count, ulong ptr, bool highlight) + { + ImGui.PushStyleColor(ImGuiCol.Text, highlight ? 0xFFAAAA00 : 0xFFFFFFFF); + if (!string.IsNullOrEmpty(this.searchInput) && !this.doingSearch) + { + ImGui.SetNextItemOpen(true, ImGuiCond.Always); + } + else if (this.doingSearch && string.IsNullOrEmpty(this.searchInput)) + { + ImGui.SetNextItemOpen(false, ImGuiCond.Always); + } + + var treeNode = ImGui.TreeNode($"{this.listNames[index]}##unitList_{index}"); + ImGui.PopStyleColor(); + + ImGui.SameLine(); + ImGui.TextDisabled($"C:{count} {ptr:X}"); + return treeNode; + } + + private void DrawUnitBaseList() + { + var foundSelected = false; + var noResults = true; + var stage = AtkStage.Instance(); + + var unitManagers = &stage->RaptureAtkUnitManager->AtkUnitManager.DepthLayerOneList; + + var searchStr = this.searchInput; + var searching = !string.IsNullOrEmpty(searchStr); + + for (var i = 0; i < UnitListCount; i++) + { + var headerDrawn = false; + + var highlight = this.selectedUnitBase != null && this.selectedInList[i]; + this.selectedInList[i] = false; + var unitManager = &unitManagers[i]; + + var headerOpen = true; + + if (!searching) + { + headerOpen = this.DrawUnitListHeader(i, unitManager->Count, (ulong)unitManager, highlight); + headerDrawn = true; + noResults = false; + } + + for (var j = 0; j < unitManager->Count && headerOpen; j++) + { + AtkUnitBase* unitBase = unitManager->Entries[j]; + if (this.selectedUnitBase != null && unitBase == this.selectedUnitBase) + { + this.selectedInList[i] = true; + foundSelected = true; + } + + var name = unitBase->NameString; + if (searching) + { + if (name == null || !name.ToLowerInvariant().Contains(searchStr.ToLowerInvariant())) continue; + } + + noResults = false; + if (!headerDrawn) + { + headerOpen = this.DrawUnitListHeader(i, unitManager->Count, (ulong)unitManager, highlight); + headerDrawn = true; + } + + if (headerOpen) + { + var visible = unitBase->IsVisible; + ImGui.PushStyleColor(ImGuiCol.Text, visible ? 0xFF00FF00 : 0xFF999999); + + if (ImGui.Selectable($"{name}##list{i}-{(ulong)unitBase:X}_{j}", this.selectedUnitBase == unitBase)) + { + this.selectedUnitBase = unitBase; + foundSelected = true; + this.selectedInList[i] = true; + } + + ImGui.PopStyleColor(); + } + } + + if (headerDrawn && headerOpen) + { + ImGui.TreePop(); + } + + if (this.selectedInList[i] == false && this.selectedUnitBase != null) + { + for (var j = 0; j < unitManager->Count; j++) + { + AtkUnitBase* unitBase = unitManager->Entries[j]; + if (this.selectedUnitBase == null || unitBase != this.selectedUnitBase) continue; + this.selectedInList[i] = true; + foundSelected = true; + } + } + } + + if (noResults) + { + ImGui.TextDisabled("No Results"); + } + + if (!foundSelected) + { + this.selectedUnitBase = null; + } + + if (this.doingSearch && string.IsNullOrEmpty(this.searchInput)) + { + this.doingSearch = false; + } + else if (!this.doingSearch && !string.IsNullOrEmpty(this.searchInput)) + { + this.doingSearch = true; + } + } + + private Vector2 GetNodePosition(AtkResNode* node) + { + var pos = new Vector2(node->X, node->Y); + pos -= new Vector2(node->OriginX * (node->ScaleX - 1), node->OriginY * (node->ScaleY - 1)); + var par = node->ParentNode; + while (par != null) + { + pos *= new Vector2(par->ScaleX, par->ScaleY); + pos += new Vector2(par->X, par->Y); + pos -= new Vector2(par->OriginX * (par->ScaleX - 1), par->OriginY * (par->ScaleY - 1)); + par = par->ParentNode; + } + + return pos; + } + + private Vector2 GetNodeScale(AtkResNode* node) + { + if (node == null) return new Vector2(1, 1); + var scale = new Vector2(node->ScaleX, node->ScaleY); + while (node->ParentNode != null) + { + node = node->ParentNode; + scale *= new Vector2(node->ScaleX, node->ScaleY); + } + + return scale; + } + + private bool GetNodeVisible(AtkResNode* node) + { + if (node == null) return false; + while (node != null) + { + if (!node->NodeFlags.HasFlag(NodeFlags.Visible)) return false; + node = node->ParentNode; + } + + return true; + } + + private void DrawOutline(AtkResNode* node) + { + var position = this.GetNodePosition(node); + var scale = this.GetNodeScale(node); + var size = new Vector2(node->Width, node->Height) * scale; + + var nodeVisible = this.GetNodeVisible(node); + + position += ImGuiHelpers.MainViewport.Pos; + + ImGui.GetForegroundDrawList(ImGuiHelpers.MainViewport).AddRect(position, position + size, nodeVisible ? 0xFF00FF00 : 0xFF0000FF); + } +} diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.AtkValues.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.AtkValues.cs similarity index 77% rename from Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.AtkValues.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.AtkValues.cs index 646d4e3ad..c3930821b 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.AtkValues.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.AtkValues.cs @@ -1,15 +1,15 @@ -using System.Numerics; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Internal.UiDebug.Utility; +using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility.Raii; +using Dalamud.Memory; using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; + using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.ValueType; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <inheritdoc cref="AddonTree"/> public unsafe partial class AddonTree @@ -26,12 +26,13 @@ public unsafe partial class AddonTree using var tree = ImRaii.TreeNode($"Atk Values [{addon->AtkValuesCount}]###atkValues_{addon->NameString}"); if (tree.Success) { - using var tbl = ImRaii.Table("atkUnitBase_atkValueTable"u8, 3, ImGuiTableFlags.Borders | ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg); + using var tbl = ImRaii.Table("atkUnitBase_atkValueTable", 3, ImGuiTableFlags.Borders | ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg); + if (tbl.Success) { - ImGui.TableSetupColumn("Index"u8); - ImGui.TableSetupColumn("Type"u8); - ImGui.TableSetupColumn("Value"u8); + ImGui.TableSetupColumn("Index"); + ImGui.TableSetupColumn("Type"); + ImGui.TableSetupColumn("Value"); ImGui.TableHeadersRow(); try @@ -51,7 +52,7 @@ public unsafe partial class AddonTree ImGui.TableNextColumn(); if (atkValue->Type == 0) { - ImGui.TextDisabled("Not Set"u8); + ImGui.TextDisabled("Not Set"); } else { @@ -67,7 +68,7 @@ public unsafe partial class AddonTree case ValueType.Int: case ValueType.UInt: { - ImGui.Text($"{atkValue->Int}"); + ImGui.TextUnformatted($"{atkValue->Int}"); break; } @@ -75,13 +76,14 @@ public unsafe partial class AddonTree case ValueType.String8: case ValueType.String: { - if (atkValue->String.Value == null) + if (atkValue->String == null) { - ImGui.TextDisabled("null"u8); + ImGui.TextDisabled("null"); } else { - Util.ShowStruct(atkValue->String.ToString(), (ulong)atkValue); + var str = MemoryHelper.ReadSeStringNullTerminated(new nint(atkValue->String)); + Util.ShowStruct(str, (ulong)atkValue); } break; @@ -89,17 +91,17 @@ public unsafe partial class AddonTree case ValueType.Bool: { - ImGui.Text($"{atkValue->Byte != 0}"); + ImGui.TextUnformatted($"{atkValue->Byte != 0}"); break; } case ValueType.Pointer: - ImGui.Text($"{(nint)atkValue->Pointer}"); + ImGui.TextUnformatted($"{(nint)atkValue->Pointer}"); break; default: { - ImGui.TextDisabled("Unhandled Type"u8); + ImGui.TextDisabled("Unhandled Type"); ImGui.SameLine(); Util.ShowStruct(atkValue); break; @@ -111,7 +113,7 @@ public unsafe partial class AddonTree } catch (Exception ex) { - ImGui.TextColored(new Vector4(1, 0, 0, 1), $"{ex}"); + ImGui.TextColored(new(1, 0, 0, 1), $"{ex}"); } } } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.FieldNames.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.FieldNames.cs similarity index 95% rename from Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.FieldNames.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.FieldNames.cs index 3470b724b..0b1dcb66c 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.FieldNames.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.FieldNames.cs @@ -7,9 +7,9 @@ using FFXIVClientStructs.Attributes; using FFXIVClientStructs.FFXIV.Component.GUI; using static System.Reflection.BindingFlags; -using static Dalamud.Interface.Internal.UiDebug.UiDebug; +using static Dalamud.Interface.Internal.UiDebug2.UiDebug2; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <inheritdoc cref="AddonTree"/> public unsafe partial class AddonTree @@ -41,7 +41,7 @@ public unsafe partial class AddonTree { foreach (var t in from t in ClientStructsAssembly.GetTypes() where t.IsPublic - let xivAddonAttr = t.GetCustomAttribute<AddonAttribute>(false) + let xivAddonAttr = (AddonAttribute?)t.GetCustomAttribute(typeof(AddonAttribute), false) where xivAddonAttr != null where xivAddonAttr.AddonIdentifiers.Contains(this.AddonName) select t) @@ -83,7 +83,7 @@ public unsafe partial class AddonTree foreach (var field in baseType.GetFields(Static | Public | NonPublic | Instance)) { - if (field.GetCustomAttribute<FieldOffsetAttribute>() is FieldOffsetAttribute offset) + if (field.GetCustomAttribute(typeof(FieldOffsetAttribute)) is FieldOffsetAttribute offset) { try { diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.cs similarity index 90% rename from Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.cs index 954755708..9d6575a55 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/AddonTree.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/AddonTree.cs @@ -2,18 +2,18 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; using static Dalamud.Interface.FontAwesomeIcon; -using static Dalamud.Interface.Internal.UiDebug.ElementSelector; -using static Dalamud.Interface.Internal.UiDebug.UiDebug; -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.ElementSelector; +using static Dalamud.Interface.Internal.UiDebug2.UiDebug2; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A class representing an <see cref="AtkUnitBase"/>, allowing it to be browsed within an ImGui window. @@ -81,7 +81,7 @@ public unsafe partial class AddonTree : IDisposable { var ptr = GameGui.GetAddonByName(name); - if (!ptr.IsNull) + if ((AtkUnitBase*)ptr != null) { if (AddonTrees.TryGetValue(name, out var tree)) { @@ -118,11 +118,11 @@ public unsafe partial class AddonTree : IDisposable var isVisible = addon->IsVisible; - ImGui.Text($"{this.AddonName}"); + ImGui.TextUnformatted($"{this.AddonName}"); ImGui.SameLine(); ImGui.SameLine(); - ImGui.TextColored(isVisible ? new Vector4(0.1f, 1f, 0.1f, 1f) : new(0.6f, 0.6f, 0.6f, 1), isVisible ? "Visible"u8 : "Not Visible"u8); + ImGui.TextColored(isVisible ? new(0.1f, 1f, 0.1f, 1f) : new(0.6f, 0.6f, 0.6f, 1), isVisible ? "Visible" : "Not Visible"); ImGui.SameLine(ImGui.GetWindowWidth() - 100); @@ -133,7 +133,7 @@ public unsafe partial class AddonTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Visibility"u8); + ImGui.SetTooltip("Toggle Visibility"); } ImGui.SameLine(); @@ -144,7 +144,7 @@ public unsafe partial class AddonTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Popout Window"u8); + ImGui.SetTooltip("Toggle Popout Window"); } PaddedSeparator(1); @@ -152,7 +152,7 @@ public unsafe partial class AddonTree : IDisposable var uldManager = addon->UldManager; PrintFieldValuePair("Address", $"{(nint)addon:X}"); - PrintFieldValuePair("Agent", $"{(nint)GameGui.FindAgentInterface(addon):X}"); + PrintFieldValuePair("Agent", $"{GameGui.FindAgentInterface(addon):X}"); PrintFieldValuePairs( ("X", $"{addon->X}"), @@ -234,7 +234,7 @@ public unsafe partial class AddonTree : IDisposable /// <returns>true if the addon is found.</returns> private bool ValidateAddon(out AtkUnitBase* addon) { - addon = GameGui.GetAddonByName(this.AddonName).Struct; + addon = (AtkUnitBase*)GameGui.GetAddonByName(this.AddonName); if (addon == null || (nint)addon != this.InitialPtr) { this.Dispose(); diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/Events.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/Events.cs similarity index 60% rename from Dalamud/Interface/Internal/UiDebug/Browsing/Events.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/Events.cs index 6e56c75f8..c98cc933f 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/Events.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/Events.cs @@ -1,15 +1,15 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; -using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; -using static Dalamud.Bindings.ImGui.ImGuiTableFlags; +using static ImGuiNET.ImGuiTableColumnFlags; +using static ImGuiNET.ImGuiTableFlags; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// Class that prints the events table for a node, where applicable. @@ -29,18 +29,20 @@ public static class Events } using var tree = ImRaii.TreeNode($"Events##{(nint)node:X}eventTree"); + if (tree.Success) { using var tbl = ImRaii.Table($"##{(nint)node:X}eventTable", 7, Resizable | SizingFixedFit | Borders | RowBg); + if (tbl.Success) { - ImGui.TableSetupColumn("#"u8, WidthFixed); - ImGui.TableSetupColumn("Type"u8, WidthFixed); - ImGui.TableSetupColumn("Param"u8, WidthFixed); - ImGui.TableSetupColumn("Flags"u8, WidthFixed); - ImGui.TableSetupColumn("StateFlags1"u8, WidthFixed); - ImGui.TableSetupColumn("Target"u8, WidthFixed); - ImGui.TableSetupColumn("Listener"u8, WidthFixed); + ImGui.TableSetupColumn("#", WidthFixed); + ImGui.TableSetupColumn("Type", WidthFixed); + ImGui.TableSetupColumn("Param", WidthFixed); + ImGui.TableSetupColumn("Flags", WidthFixed); + ImGui.TableSetupColumn("StateFlags1", WidthFixed); + ImGui.TableSetupColumn("Target", WidthFixed); + ImGui.TableSetupColumn("Listener", WidthFixed); ImGui.TableHeadersRow(); @@ -48,26 +50,19 @@ public static class Events while (evt != null) { ImGui.TableNextColumn(); - ImGui.Text($"{i++}"); - + ImGui.TextUnformatted($"{i++}"); ImGui.TableNextColumn(); - ImGui.Text($"{evt->State.EventType}"); - + ImGui.TextUnformatted($"{evt->State.EventType}"); ImGui.TableNextColumn(); - ImGui.Text($"{evt->Param}"); - + ImGui.TextUnformatted($"{evt->Param}"); ImGui.TableNextColumn(); - ImGui.Text($"{evt->State.StateFlags}"); - + ImGui.TextUnformatted($"{evt->State.StateFlags}"); ImGui.TableNextColumn(); - ImGui.Text($"{evt->State.ReturnFlags}"); - + ImGui.TextUnformatted($"{evt->State.UnkFlags1}"); ImGui.TableNextColumn(); - ImGuiHelpers.ClickToCopyText($"{(nint)evt->Target:X}", default, new Vector4(0.6f, 0.6f, 0.6f, 1)); - + ImGuiHelpers.ClickToCopyText($"{(nint)evt->Target:X}", null, new Vector4(0.6f, 0.6f, 0.6f, 1)); ImGui.TableNextColumn(); - ImGuiHelpers.ClickToCopyText($"{(nint)evt->Listener:X}", default, new Vector4(0.6f, 0.6f, 0.6f, 1)); - + ImGuiHelpers.ClickToCopyText($"{(nint)evt->Listener:X}", null, new Vector4(0.6f, 0.6f, 0.6f, 1)); evt = evt->NextEvent; } } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.ClippingMask.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.ClippingMask.cs similarity index 95% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.ClippingMask.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.ClippingMask.cs index f9fb3b73d..cfba1a2bc 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.ClippingMask.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.ClippingMask.cs @@ -2,7 +2,7 @@ using FFXIVClientStructs.FFXIV.Component.GUI; using static Dalamud.Utility.Util; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkClippingMaskNode"/> that can be printed and browsed via ImGui. diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Collision.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Collision.cs similarity index 93% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Collision.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Collision.cs index d6370d33f..c447afac9 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Collision.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Collision.cs @@ -2,7 +2,7 @@ using FFXIVClientStructs.FFXIV.Component.GUI; using static Dalamud.Utility.Util; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkCollisionNode"/> that can be printed and browsed via ImGui. diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Component.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Component.cs similarity index 86% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Component.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Component.cs index fb4444be1..4a1989441 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Component.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Component.cs @@ -1,16 +1,13 @@ using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; - using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; -using Lumina.Text.ReadOnly; - -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; using static FFXIVClientStructs.FFXIV.Component.GUI.ComponentType; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkComponentNode"/> that can be printed and browsed via ImGui. @@ -61,13 +58,7 @@ internal unsafe class ComponentNodeTree : ResNodeTree /// <inheritdoc/> private protected override void PrintChildNodes() { - var prevNode = this.CompNode->Component->UldManager.RootNode; - while (prevNode != null) - { - GetOrCreate(prevNode, this.AddonTree).Print(null); - prevNode = prevNode->PrevSiblingNode; - } - + base.PrintChildNodes(); var count = this.UldManager->NodeListCount; PrintNodeListAsTree(this.UldManager->NodeList, count, $"Node List [{count}]:", this.AddonTree, new(0f, 0.5f, 0.8f, 1f)); } @@ -92,19 +83,25 @@ internal unsafe class ComponentNodeTree : ResNodeTree { case TextInput: var textInputComponent = (AtkComponentTextInput*)this.Component; - ImGui.Text($"InputBase Text1 (Lumina): {new ReadOnlySeStringSpan(textInputComponent->AtkComponentInputBase.EvaluatedString.AsSpan()).ToMacroString()}"); - ImGui.Text($"InputBase Text2 (Lumina): {new ReadOnlySeStringSpan(textInputComponent->AtkComponentInputBase.RawString.AsSpan()).ToMacroString()}"); - // TODO: Reenable when unknowns have been unprivated / named - // ImGui.Text($"Text1: {new ReadOnlySeStringSpan(textInputComponent->UnkText01.AsSpan()).ToMacroString()}"); - // ImGui.Text($"Text2: {new ReadOnlySeStringSpan(textInputComponent->UnkText02.AsSpan()).ToMacroString()}"); - ImGui.Text($"AvailableLines: {new ReadOnlySeStringSpan(textInputComponent->AvailableLines.AsSpan()).ToMacroString()}"); - ImGui.Text($"HighlightedAutoTranslateOptionColorPrefix: {new ReadOnlySeStringSpan(textInputComponent->HighlightedAutoTranslateOptionColorPrefix.AsSpan()).ToMacroString()}"); - ImGui.Text($"HighlightedAutoTranslateOptionColorSuffix: {new ReadOnlySeStringSpan(textInputComponent->HighlightedAutoTranslateOptionColorSuffix.AsSpan()).ToMacroString()}"); + ImGui.TextUnformatted( + $"InputBase Text1: {Marshal.PtrToStringAnsi(new(textInputComponent->AtkComponentInputBase.UnkText1.StringPtr))}"); + ImGui.TextUnformatted( + $"InputBase Text2: {Marshal.PtrToStringAnsi(new(textInputComponent->AtkComponentInputBase.UnkText2.StringPtr))}"); + ImGui.TextUnformatted( + $"Text1: {Marshal.PtrToStringAnsi(new(textInputComponent->UnkText01.StringPtr))}"); + ImGui.TextUnformatted( + $"Text2: {Marshal.PtrToStringAnsi(new(textInputComponent->UnkText02.StringPtr))}"); + ImGui.TextUnformatted( + $"Text3: {Marshal.PtrToStringAnsi(new(textInputComponent->UnkText03.StringPtr))}"); + ImGui.TextUnformatted( + $"Text4: {Marshal.PtrToStringAnsi(new(textInputComponent->UnkText04.StringPtr))}"); + ImGui.TextUnformatted( + $"Text5: {Marshal.PtrToStringAnsi(new(textInputComponent->UnkText05.StringPtr))}"); break; case List: case TreeList: var l = (AtkComponentList*)this.Component; - if (ImGui.SmallButton("Inc.Selected"u8)) + if (ImGui.SmallButton("Inc.Selected")) { l->SelectedItemIndex++; } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Counter.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Counter.cs similarity index 77% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Counter.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Counter.cs index 2ffcad5de..ff40db37a 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Counter.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Counter.cs @@ -1,11 +1,9 @@ using FFXIVClientStructs.FFXIV.Component.GUI; -using Lumina.Text.ReadOnly; - -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkCounterNode"/> that can be printed and browsed via ImGui. @@ -32,7 +30,7 @@ internal unsafe partial class CounterNodeTree : ResNodeTree { if (!isEditorOpen) { - PrintFieldValuePairs(("Text", new ReadOnlySeStringSpan(((AtkCounterNode*)this.Node)->NodeText.AsSpan()).ToMacroString())); + PrintFieldValuePairs(("Text", ((AtkCounterNode*)this.Node)->NodeText.ToString())); } } } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Editor.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Editor.cs similarity index 87% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Editor.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Editor.cs index d9dd1378c..1f5abd0bf 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Editor.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Editor.cs @@ -1,25 +1,23 @@ using System.Collections.Generic; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; -using Dalamud.Interface.Internal.UiDebug.Utility; +using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; -using Lumina.Text.ReadOnly; - -using static Dalamud.Bindings.ImGui.ImGuiColorEditFlags; -using static Dalamud.Bindings.ImGui.ImGuiInputTextFlags; -using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; -using static Dalamud.Bindings.ImGui.ImGuiTableFlags; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Interface.FontAwesomeIcon; -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Interface.Utility.ImGuiHelpers; +using static ImGuiNET.ImGuiColorEditFlags; +using static ImGuiNET.ImGuiInputTextFlags; +using static ImGuiNET.ImGuiTableColumnFlags; +using static ImGuiNET.ImGuiTableFlags; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <inheritdoc cref="ResNodeTree"/> internal unsafe partial class ResNodeTree @@ -30,10 +28,10 @@ internal unsafe partial class ResNodeTree private protected void DrawNodeEditorTable() { using var tbl = ImRaii.Table($"###Editor{(nint)this.Node}", 2, SizingStretchProp | NoHostExtendX); - if (!tbl.Success) - return; - - this.DrawEditorRows(); + if (tbl.Success) + { + this.DrawEditorRows(); + } } /// <summary> @@ -53,16 +51,16 @@ internal unsafe partial class ResNodeTree var hov = false; - ImGui.TableSetupColumn("Labels"u8, WidthFixed); - ImGui.TableSetupColumn("Editors"u8, WidthFixed); + ImGui.TableSetupColumn("Labels", WidthFixed); + ImGui.TableSetupColumn("Editors", WidthFixed); ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Position:"u8); + ImGui.Text("Position:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.DragFloat2($"##{(nint)this.Node:X}position", ref pos, 1, 0, 0, "%.0f")) + if (ImGui.DragFloat2($"##{(nint)this.Node:X}position", ref pos, 1, default, default, "%.0f")) { this.Node->X = pos.X; this.Node->Y = pos.Y; @@ -73,10 +71,10 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Size:"u8); + ImGui.Text("Size:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.DragFloat2($"##{(nint)this.Node:X}size", ref size, 1, 0, 0, "%.0f")) + if (ImGui.DragFloat2($"##{(nint)this.Node:X}size", ref size, 1, 0, default, "%.0f")) { this.Node->Width = (ushort)Math.Max(size.X, 0); this.Node->Height = (ushort)Math.Max(size.Y, 0); @@ -87,7 +85,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Scale:"u8); + ImGui.Text("Scale:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.DragFloat2($"##{(nint)this.Node:X}scale", ref scale, 0.05f)) @@ -101,10 +99,10 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Origin:"u8); + ImGui.Text("Origin:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.DragFloat2($"##{(nint)this.Node:X}origin", ref origin, 1, 0, 0, "%.0f")) + if (ImGui.DragFloat2($"##{(nint)this.Node:X}origin", ref origin, 1, default, default, "%.0f")) { this.Node->OriginX = origin.X; this.Node->OriginY = origin.Y; @@ -115,7 +113,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Rotation:"u8); + ImGui.Text("Rotation:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); while (angle > 180) @@ -123,7 +121,7 @@ internal unsafe partial class ResNodeTree angle -= 360; } - if (ImGui.DragFloat($"##{(nint)this.Node:X}rotation", ref angle, 0.05f, 0, 0, "%.2f°")) + if (ImGui.DragFloat($"##{(nint)this.Node:X}rotation", ref angle, 0.05f, default, default, "%.2f°")) { this.Node->Rotation = (float)(angle / (180 / Math.PI)); this.Node->DrawFlags |= 0xD; @@ -131,7 +129,7 @@ internal unsafe partial class ResNodeTree if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Rotation (deg)"u8); + ImGui.SetTooltip("Rotation (deg)"); hov = true; } @@ -146,7 +144,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("RGBA:"u8); + ImGui.Text("RGBA:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit4($"##{(nint)this.Node:X}RGBA", ref rgba, DisplayHex)) @@ -156,7 +154,7 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Multiply:"u8); + ImGui.Text("Multiply:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit3($"##{(nint)this.Node:X}multiplyRGB", ref mult, DisplayHex)) @@ -168,9 +166,10 @@ internal unsafe partial class ResNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Add:"u8); + ImGui.Text("Add:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(124); + if (ImGui.DragFloat3($"##{(nint)this.Node:X}addRGB", ref add, 1, -255, 255, "%.0f")) { this.Node->AddRed = (short)add.X; @@ -201,11 +200,11 @@ internal unsafe partial class CounterNodeTree { base.DrawEditorRows(); - var str = new ReadOnlySeStringSpan(this.CntNode->NodeText.AsSpan()).ToMacroString(); + var str = this.CntNode->NodeText.ToString(); ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Counter:"u8); + ImGui.Text("Counter:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); @@ -231,7 +230,7 @@ internal unsafe partial class ImageNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Part Id:"u8); + ImGui.Text("Part Id:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.InputInt($"##partId{(nint)this.Node:X}", ref partId, 1, 1)) @@ -264,10 +263,10 @@ internal unsafe partial class NineGridNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Ninegrid Offsets:"u8); + ImGui.Text("Ninegrid Offsets:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetLR", ref lr, 1f, 0f)) + if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetLR", ref lr, 1, 0)) { this.NgNode->LeftOffset = (short)Math.Max(0, lr.X); this.NgNode->RightOffset = (short)Math.Max(0, lr.Y); @@ -279,7 +278,7 @@ internal unsafe partial class NineGridNodeTree ImGui.TableNextColumn(); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetTB", ref tb, 1f, 0f)) + if (ImGui.DragFloat2($"##{(nint)this.Node:X}ngOffsetTB", ref tb, 1, 0)) { this.NgNode->TopOffset = (short)Math.Max(0, tb.X); this.NgNode->BottomOffset = (short)Math.Max(0, tb.Y); @@ -301,7 +300,7 @@ internal unsafe partial class TextNodeTree { base.DrawEditorRows(); - var text = new ReadOnlySeStringSpan(this.TxtNode->NodeText.AsSpan()).ToMacroString(); + var text = this.TxtNode->NodeText.ToString(); var fontIndex = FontList.IndexOf(this.TxtNode->FontType); int fontSize = this.TxtNode->FontSize; var alignment = this.TxtNode->AlignmentType; @@ -310,7 +309,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Text:"u8); + ImGui.Text("Text:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(Math.Max(ImGui.GetWindowContentRegionMax().X - ImGui.GetCursorPosX() - 50f, 150)); if (ImGui.InputText($"##{(nint)this.Node:X}textEdit", ref text, 512, EnterReturnsTrue)) @@ -320,17 +319,17 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Font:"u8); + ImGui.Text("Font:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); - if (ImGui.Combo($"##{(nint)this.Node:X}fontType", ref fontIndex, FontNames)) + if (ImGui.Combo($"##{(nint)this.Node:X}fontType", ref fontIndex, FontNames, FontList.Count)) { this.TxtNode->FontType = FontList[fontIndex]; } ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Font Size:"u8); + ImGui.Text("Font Size:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.InputInt($"##{(nint)this.Node:X}fontSize", ref fontSize, 1, 10)) @@ -340,7 +339,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Alignment:"u8); + ImGui.Text("Alignment:"); ImGui.TableNextColumn(); if (InputAlignment($"##{(nint)this.Node:X}alignment", ref alignment)) { @@ -349,7 +348,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Text Color:"u8); + ImGui.Text("Text Color:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit4($"##{(nint)this.Node:X}TextRGB", ref textColor, DisplayHex)) @@ -359,7 +358,7 @@ internal unsafe partial class TextNodeTree ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Edge Color:"u8); + ImGui.Text("Edge Color:"); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(150); if (ImGui.ColorEdit4($"##{(nint)this.Node:X}EdgeRGB", ref edgeColor, DisplayHex)) diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Image.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Image.cs similarity index 92% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Image.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Image.cs index 949197f50..8d93b3e76 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Image.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Image.cs @@ -1,21 +1,21 @@ using System.Numerics; using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Client.Graphics.Kernel; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; -using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; -using static Dalamud.Bindings.ImGui.ImGuiTableFlags; -using static Dalamud.Bindings.ImGui.ImGuiTreeNodeFlags; using static Dalamud.Interface.ColorHelpers; -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; using static FFXIVClientStructs.FFXIV.Component.GUI.TextureType; +using static ImGuiNET.ImGuiTableColumnFlags; +using static ImGuiNET.ImGuiTableFlags; +using static ImGuiNET.ImGuiTreeNodeFlags; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkImageNode"/> that can be printed and browsed via ImGui. @@ -64,6 +64,7 @@ internal unsafe partial class ImageNodeTree : ResNodeTree } using var tree = ImRaii.TreeNode($"Texture##texture{(nint)this.TexData.Texture->D3D11ShaderResourceView:X}", SpanFullWidth); + if (tree.Success) { PrintFieldValuePairs( @@ -76,13 +77,13 @@ internal unsafe partial class ImageNodeTree : ResNodeTree PrintFieldValuePairs(("Texture Path", this.TexData.Path)); } - if (ImGui.RadioButton("Full Image##textureDisplayStyle0"u8, TexDisplayStyle == 0)) + if (ImGui.RadioButton("Full Image##textureDisplayStyle0", TexDisplayStyle == 0)) { TexDisplayStyle = 0; } ImGui.SameLine(); - if (ImGui.RadioButton("Parts List##textureDisplayStyle1"u8, TexDisplayStyle == 1)) + if (ImGui.RadioButton("Parts List##textureDisplayStyle1", TexDisplayStyle == 1)) { TexDisplayStyle = 1; } @@ -152,7 +153,7 @@ internal unsafe partial class ImageNodeTree : ResNodeTree if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Click to copy as Vector2\nShift-click to copy as Vector4"u8); + ImGui.SetTooltip("Click to copy as Vector2\nShift-click to copy as Vector4"); } var suffix = asFloat ? "f" : string.Empty; @@ -191,9 +192,9 @@ internal unsafe partial class ImageNodeTree : ResNodeTree using var tbl = ImRaii.Table($"partsTable##{(nint)this.TexData.Texture->D3D11ShaderResourceView:X}", 3, Borders | RowBg | Reorderable); if (tbl.Success) { - ImGui.TableSetupColumn("Part ID"u8, WidthFixed); - ImGui.TableSetupColumn("Part Texture"u8, WidthFixed); - ImGui.TableSetupColumn("Coordinates"u8, WidthFixed); + ImGui.TableSetupColumn("Part ID", WidthFixed); + ImGui.TableSetupColumn("Part Texture", WidthFixed); + ImGui.TableSetupColumn("Coordinates", WidthFixed); ImGui.TableHeadersRow(); @@ -226,19 +227,19 @@ internal unsafe partial class ImageNodeTree : ResNodeTree ImGui.TableNextColumn(); - ImGui.TextColored(!hiRes ? new Vector4(1) : new(0.6f, 0.6f, 0.6f, 1), "Standard:\t"); + ImGui.TextColored(!hiRes ? new(1) : new(0.6f, 0.6f, 0.6f, 1), "Standard:\t"); ImGui.SameLine(); var cursX = ImGui.GetCursorPosX(); PrintPartCoords(u / 2f, v / 2f, width / 2f, height / 2f); - ImGui.TextColored(hiRes ? new Vector4(1) : new(0.6f, 0.6f, 0.6f, 1), "Hi-Res:\t"); + ImGui.TextColored(hiRes ? new(1) : new(0.6f, 0.6f, 0.6f, 1), "Hi-Res:\t"); ImGui.SameLine(); ImGui.SetCursorPosX(cursX); PrintPartCoords(u, v, width, height); - ImGui.Text("UV:\t"u8); + ImGui.Text("UV:\t"); ImGui.SameLine(); ImGui.SetCursorPosX(cursX); diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.NineGrid.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.NineGrid.cs similarity index 91% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.NineGrid.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.NineGrid.cs index 7d241ebdb..48825becb 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.NineGrid.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.NineGrid.cs @@ -1,7 +1,7 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Internal.UiDebug.Utility; +using Dalamud.Interface.Internal.UiDebug2.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Utility.Util; @@ -9,7 +9,7 @@ using static Dalamud.Utility.Util; using Vector2 = System.Numerics.Vector2; using Vector4 = System.Numerics.Vector4; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkNineGridNode"/> that can be printed and browsed via ImGui. @@ -60,10 +60,10 @@ internal unsafe partial class NineGridNodeTree : ImageNodeTree var ngCol = RgbaVector4ToUint(col with { W = 0.75f * col.W }); - var windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRect(partBegin, partEnd, RgbaVector4ToUint(col)); - windowDrawList.AddRect(ngBegin1, ngEnd1, ngCol); - windowDrawList.AddRect(ngBegin2, ngEnd2, ngCol); + ImGui.GetWindowDrawList() + .AddRect(partBegin, partEnd, RgbaVector4ToUint(col)); + ImGui.GetWindowDrawList().AddRect(ngBegin1, ngEnd1, ngCol); + ImGui.GetWindowDrawList().AddRect(ngBegin2, ngEnd2, ngCol); ImGui.SetCursorPos(cursorLocalPos + uv + new Vector2(0, -20)); ImGui.TextColored(col, $"[#{partId}]\t{part.U}, {part.V}\t{part.Width}x{part.Height}"); @@ -80,7 +80,7 @@ internal unsafe partial class NineGridNodeTree : ImageNodeTree { if (!isEditorOpen) { - ImGui.Text("NineGrid Offsets:\t"u8); + ImGui.Text("NineGrid Offsets:\t"); ImGui.SameLine(); this.Offsets.Print(); } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Res.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Res.cs similarity index 95% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Res.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Res.cs index 3ff64fd24..6c12d3b4c 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Res.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Res.cs @@ -2,25 +2,26 @@ using System.Linq; using System.Numerics; using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; -using Dalamud.Interface.Internal.UiDebug.Utility; +using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; -using static Dalamud.Bindings.ImGui.ImGuiCol; -using static Dalamud.Bindings.ImGui.ImGuiTreeNodeFlags; using static Dalamud.Interface.ColorHelpers; using static Dalamud.Interface.FontAwesomeIcon; -using static Dalamud.Interface.Internal.UiDebug.Browsing.Events; -using static Dalamud.Interface.Internal.UiDebug.ElementSelector; -using static Dalamud.Interface.Internal.UiDebug.UiDebug; -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.Browsing.Events; +using static Dalamud.Interface.Internal.UiDebug2.ElementSelector; +using static Dalamud.Interface.Internal.UiDebug2.UiDebug2; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; using static FFXIVClientStructs.FFXIV.Component.GUI.NodeFlags; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +using static ImGuiNET.ImGuiCol; +using static ImGuiNET.ImGuiTreeNodeFlags; + +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkResNode"/> that can be printed and browsed via ImGui. @@ -85,7 +86,7 @@ internal unsafe partial class ResNodeTree : IDisposable /// <returns>An existing or newly-created instance of <see cref="ResNodeTree"/>.</returns> internal static ResNodeTree GetOrCreate(AtkResNode* node, AddonTree addonTree) => addonTree.NodeTrees.TryGetValue((nint)node, out var nodeTree) ? nodeTree - : (int)node->Type >= 1000 + : (int)node->Type > 1000 ? new ComponentNodeTree(node, addonTree) : node->Type switch { @@ -138,6 +139,7 @@ internal unsafe partial class ResNodeTree : IDisposable PrintNodeList(nodeList, count, addonTree); var lineEnd = lineStart with { Y = ImGui.GetCursorScreenPos().Y - 7 }; + if (lineStart.Y < lineEnd.Y) { ImGui.GetWindowDrawList().AddLine(lineStart, lineEnd, RgbaVector4ToUint(color), 1); @@ -167,7 +169,7 @@ internal unsafe partial class ResNodeTree : IDisposable /// </summary> internal void WriteTreeHeading() { - ImGui.Text(this.GetHeaderText()); + ImGui.TextUnformatted(this.GetHeaderText()); this.PrintFieldLabels(); } @@ -383,7 +385,7 @@ internal unsafe partial class ResNodeTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Visibility"u8); + ImGui.SetTooltip("Toggle Visibility"); } ImGui.SameLine(); @@ -399,7 +401,7 @@ internal unsafe partial class ResNodeTree : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Toggle Popout Window"u8); + ImGui.SetTooltip("Toggle Popout Window"); } } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Text.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Text.cs similarity index 66% rename from Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Text.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Text.cs index 74e14b683..7c924f503 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/NodeTree.Text.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/NodeTree.Text.cs @@ -1,21 +1,21 @@ -using System.Numerics; using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; +using Dalamud.Game.Text.SeStringHandling; +using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Interface.ImGuiSeStringRenderer; +using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Component.GUI; - -using Lumina.Text.ReadOnly; +using ImGuiNET; using static Dalamud.Interface.ColorHelpers; -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A tree for an <see cref="AtkTextNode"/> that can be printed and browsed via ImGui. @@ -47,7 +47,7 @@ internal unsafe partial class TextNodeTree : ResNodeTree return; } - ImGui.TextColored(new Vector4(1), "Text:"u8); + ImGui.TextColored(new(1), "Text:"); ImGui.SameLine(); try @@ -60,11 +60,13 @@ internal unsafe partial class TextNodeTree : ResNodeTree EdgeStrength = 1f, }; +#pragma warning disable SeStringRenderer ImGuiHelpers.SeStringWrapped(this.NodeText.AsSpan(), style); +#pragma warning restore SeStringRenderer } catch { - ImGui.Text(new ReadOnlySeStringSpan(this.NodeText.AsSpan()).ToMacroString()); + ImGui.TextUnformatted(Marshal.PtrToStringAnsi(new(this.NodeText.StringPtr)) ?? string.Empty); } PrintFieldValuePairs( @@ -82,24 +84,36 @@ internal unsafe partial class TextNodeTree : ResNodeTree private void PrintPayloads() { using var tree = ImRaii.TreeNode($"Text Payloads##{(nint)this.Node:X}"); + if (tree.Success) { - var idx = 0; - foreach (var payload in new ReadOnlySeString(this.NodeText.AsSpan())) + var utf8String = this.NodeText; + var seStringBytes = new byte[utf8String.BufUsed]; + for (var i = 0L; i < utf8String.BufUsed; i++) { - ImGui.Text($"[{idx}]"); + seStringBytes[i] = utf8String.StringPtr[i]; + } + + var seString = SeString.Parse(seStringBytes); + for (var i = 0; i < seString.Payloads.Count; i++) + { + var payload = seString.Payloads[i]; + ImGui.TextUnformatted($"[{i}]"); ImGui.SameLine(); switch (payload.Type) { - case ReadOnlySePayloadType.Text: - PrintFieldValuePair("Raw Text", payload.ToString()); + case PayloadType.RawText when payload is TextPayload tp: + { + Gui.PrintFieldValuePair("Raw Text", tp.Text ?? string.Empty); break; - default: - ImGui.Text(payload.ToString()); - break; - } + } - idx++; + default: + { + ImGui.TextUnformatted(payload.ToString()); + break; + } + } } } } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/TimelineTree.KeyGroupColumn.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.KeyGroupColumn.cs similarity index 92% rename from Dalamud/Interface/Internal/UiDebug/Browsing/TimelineTree.KeyGroupColumn.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.KeyGroupColumn.cs index 910762d97..2ba416b4f 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/TimelineTree.KeyGroupColumn.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.KeyGroupColumn.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; +using ImGuiNET; -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <inheritdoc cref="TimelineTree"/> public readonly partial struct TimelineTree @@ -66,7 +66,7 @@ public readonly partial struct TimelineTree /// The default print function, if none is specified. /// </summary> /// <param name="value">The value to print.</param> - public static void PlainTextCell(T value) => ImGui.Text($"{value}"); + public static void PlainTextCell(T value) => ImGui.TextUnformatted($"{value}"); /// <summary> /// Adds a value to this column. @@ -83,7 +83,7 @@ public readonly partial struct TimelineTree } else { - ImGui.TextDisabled("..."u8); + ImGui.TextDisabled("..."); } } } diff --git a/Dalamud/Interface/Internal/UiDebug/Browsing/TimelineTree.cs b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.cs similarity index 71% rename from Dalamud/Interface/Internal/UiDebug/Browsing/TimelineTree.cs rename to Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.cs index a4d7151c0..57e5eff99 100644 --- a/Dalamud/Interface/Internal/UiDebug/Browsing/TimelineTree.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Browsing/TimelineTree.cs @@ -2,23 +2,23 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Client.Graphics; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; -using static Dalamud.Bindings.ImGui.ImGuiTableColumnFlags; -using static Dalamud.Bindings.ImGui.ImGuiTableFlags; -using static Dalamud.Bindings.ImGui.ImGuiTreeNodeFlags; using static Dalamud.Interface.ColorHelpers; -using static Dalamud.Interface.Internal.UiDebug.Utility.Gui; +using static Dalamud.Interface.Internal.UiDebug2.Utility.Gui; using static Dalamud.Utility.Util; using static FFXIVClientStructs.FFXIV.Component.GUI.NodeType; +using static ImGuiNET.ImGuiTableColumnFlags; +using static ImGuiNET.ImGuiTableFlags; +using static ImGuiNET.ImGuiTreeNodeFlags; // ReSharper disable SuggestBaseTypeForParameter -namespace Dalamud.Interface.Internal.UiDebug.Browsing; +namespace Dalamud.Interface.Internal.UiDebug2.Browsing; /// <summary> /// A struct allowing a node's animation timeline to be printed and browsed. @@ -52,12 +52,12 @@ public readonly unsafe partial struct TimelineTree return; } - var animationCount = this.Resource->AnimationCount; - var labelSetCount = this.Resource->LabelSetCount; + var count = this.Resource->AnimationCount; - if (animationCount > 0) + if (count > 0) { using var tree = ImRaii.TreeNode($"Timeline##{(nint)this.node:X}timeline", SpanFullWidth); + if (tree.Success) { PrintFieldValuePair("Timeline", $"{(nint)this.NodeTimeline:X}"); @@ -66,34 +66,22 @@ public readonly unsafe partial struct TimelineTree ShowStruct(this.NodeTimeline); - if (this.Resource->Animations is not null) + PrintFieldValuePairs( + ("Id", $"{this.NodeTimeline->Resource->Id}"), + ("Parent Time", $"{this.NodeTimeline->ParentFrameTime:F2} ({this.NodeTimeline->ParentFrameTime * 30:F0})"), + ("Frame Time", $"{this.NodeTimeline->FrameTime:F2} ({this.NodeTimeline->FrameTime * 30:F0})")); + + PrintFieldValuePairs(("Active Label Id", $"{this.NodeTimeline->ActiveLabelId}"), ("Duration", $"{this.NodeTimeline->LabelFrameIdxDuration}"), ("End Frame", $"{this.NodeTimeline->LabelEndFrameIdx}")); + ImGui.TextColored(new(0.6f, 0.6f, 0.6f, 1), "Animation List"); + + for (var a = 0; a < count; a++) { - PrintFieldValuePairs( - ("Id", $"{this.NodeTimeline->Resource->Id}"), - ("Parent Time", $"{this.NodeTimeline->ParentFrameTime:F2} ({this.NodeTimeline->ParentFrameTime * 30:F0})"), - ("Frame Time", $"{this.NodeTimeline->FrameTime:F2} ({this.NodeTimeline->FrameTime * 30:F0})")); - - PrintFieldValuePairs(("Active Label Id", $"{this.NodeTimeline->ActiveLabelId}"), ("Duration", $"{this.NodeTimeline->LabelFrameIdxDuration}"), ("End Frame", $"{this.NodeTimeline->LabelEndFrameIdx}")); - ImGui.TextColored(new Vector4(0.6f, 0.6f, 0.6f, 1), "Animation List"u8); - - for (var a = 0; a < animationCount; a++) - { - var animation = this.Resource->Animations[a]; - var isActive = this.ActiveAnimation != null && &animation == this.ActiveAnimation; - this.PrintAnimation(animation, a, isActive, (nint)(this.NodeTimeline->Resource->Animations + a)); - } + var animation = this.Resource->Animations[a]; + var isActive = this.ActiveAnimation != null && &animation == this.ActiveAnimation; + this.PrintAnimation(animation, a, isActive, (nint)(this.NodeTimeline->Resource->Animations + (a * sizeof(AtkTimelineAnimation)))); } } } - - if (labelSetCount > 0 && this.Resource->LabelSets is not null) - { - using var tree = ImRaii.TreeNode($"Timeline Label Sets##{(nint)this.node:X}LabelSets", SpanFullWidth); - if (tree.Success) - { - this.DrawLabelSets(); - } - } } private static void GetFrameColumn(Span<AtkTimelineKeyGroup> keyGroups, List<IKeyGroupColumn> columns, ushort endFrame) @@ -150,7 +138,7 @@ public readonly unsafe partial struct TimelineTree return; } - var rotColumn = new KeyGroupColumn<float>("Rotation", static r => ImGui.Text($"{r * (180d / Math.PI):F1}°")); + var rotColumn = new KeyGroupColumn<float>("Rotation", static r => ImGui.TextUnformatted($"{r * (180d / Math.PI):F1}°")); for (var f = 0; f < keyGroup.KeyFrameCount; f++) { @@ -323,6 +311,7 @@ public readonly unsafe partial struct TimelineTree using (ImRaii.PushColor(ImGuiCol.Text, new Vector4(1, 0.65F, 0.4F, 1), isActive)) { using var tree = ImRaii.TreeNode($"[#{a}] [Frames {animation.StartFrameIdx}-{animation.EndFrameIdx}] {(isActive ? " (Active)" : string.Empty)}###{(nint)this.node}animTree{a}"); + if (tree.Success) { PrintFieldValuePair("Animation", $"{address:X}"); @@ -332,6 +321,7 @@ public readonly unsafe partial struct TimelineTree if (columns.Count > 0) { using var tbl = ImRaii.Table($"##{(nint)this.node}animTable{a}", columns.Count, Borders | SizingFixedFit | RowBg | NoHostExtendX); + if (tbl.Success) { foreach (var c in columns) @@ -391,63 +381,4 @@ public readonly unsafe partial struct TimelineTree return columns; } - - private void DrawLabelSets() - { - PrintFieldValuePair("LabelSet", $"{(nint)this.NodeTimeline->Resource->LabelSets:X}"); - - ImGui.SameLine(); - - ShowStruct(this.NodeTimeline->Resource->LabelSets); - - PrintFieldValuePairs( - ("StartFrameIdx", $"{this.NodeTimeline->Resource->LabelSets->StartFrameIdx}"), - ("EndFrameIdx", $"{this.NodeTimeline->Resource->LabelSets->EndFrameIdx}")); - - using var labelSetTable = ImRaii.TreeNode("Entries"u8); - if (labelSetTable.Success) - { - var keyFrameGroup = this.Resource->LabelSets->LabelKeyGroup; - - using var table = ImRaii.Table($"##{(nint)this.node}labelSetKeyFrameTable", 7, Borders | SizingFixedFit | RowBg | NoHostExtendX); - if (table.Success) - { - ImGui.TableSetupColumn("Frame ID"u8, WidthFixed); - ImGui.TableSetupColumn("Speed Start"u8, WidthFixed); - ImGui.TableSetupColumn("Speed End"u8, WidthFixed); - ImGui.TableSetupColumn("Interpolation"u8, WidthFixed); - ImGui.TableSetupColumn("Label ID"u8, WidthFixed); - ImGui.TableSetupColumn("Jump Behavior"u8, WidthFixed); - ImGui.TableSetupColumn("Target Label ID"u8, WidthFixed); - - ImGui.TableHeadersRow(); - - for (var l = 0; l < keyFrameGroup.KeyFrameCount; l++) - { - var keyFrame = keyFrameGroup.KeyFrames[l]; - - ImGui.TableNextColumn(); - ImGui.Text($"{keyFrame.FrameIdx}"); - - ImGui.TableNextColumn(); - ImGui.Text($"{keyFrame.SpeedCoefficient1:F2}"); - - ImGui.TableNextColumn(); - ImGui.Text($"{keyFrame.SpeedCoefficient2:F2}"); - - ImGui.TableNextColumn(); - ImGui.Text($"{keyFrame.Interpolation}"); - - ImGui.TableNextColumn(); - ImGui.Text($"{keyFrame.Value.Label.LabelId}"); - - ImGui.TableNextColumn(); - ImGui.Text($"{keyFrame.Value.Label.JumpBehavior}"); - - ImGui.TableNextColumn(); - ImGui.Text($"{keyFrame.Value.Label.JumpLabelId}"); - } - } - } - } } diff --git a/Dalamud/Interface/Internal/UiDebug/ElementSelector.cs b/Dalamud/Interface/Internal/UiDebug2/ElementSelector.cs similarity index 79% rename from Dalamud/Interface/Internal/UiDebug/ElementSelector.cs rename to Dalamud/Interface/Internal/UiDebug2/ElementSelector.cs index 808ff25d7..65537e210 100644 --- a/Dalamud/Interface/Internal/UiDebug/ElementSelector.cs +++ b/Dalamud/Interface/Internal/UiDebug2/ElementSelector.cs @@ -3,29 +3,28 @@ using System.Globalization; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; -using Dalamud.Interface.Internal.UiDebug.Browsing; -using Dalamud.Interface.Internal.UiDebug.Utility; +using Dalamud.Interface.Internal.UiDebug2.Browsing; +using Dalamud.Interface.Internal.UiDebug2.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; using static System.Globalization.NumberFormatInfo; -using static Dalamud.Bindings.ImGui.ImGuiCol; -using static Dalamud.Bindings.ImGui.ImGuiWindowFlags; using static Dalamud.Interface.FontAwesomeIcon; -using static Dalamud.Interface.Internal.UiDebug.UiDebug; +using static Dalamud.Interface.Internal.UiDebug2.UiDebug2; using static Dalamud.Interface.UiBuilder; using static Dalamud.Interface.Utility.ImGuiHelpers; using static FFXIVClientStructs.FFXIV.Component.GUI.NodeFlags; - +using static ImGuiNET.ImGuiCol; +using static ImGuiNET.ImGuiWindowFlags; // ReSharper disable StructLacksIEquatable.Global #pragma warning disable CS0659 -namespace Dalamud.Interface.Internal.UiDebug; +namespace Dalamud.Interface.Internal.UiDebug2; /// <summary> /// A tool that enables the user to select UI elements within the inspector by mousing over them onscreen. @@ -34,7 +33,7 @@ internal unsafe class ElementSelector : IDisposable { private const int UnitListCount = 18; - private readonly UiDebug uiDebug; + private readonly UiDebug2 uiDebug2; private string addressSearchInput = string.Empty; @@ -43,10 +42,10 @@ internal unsafe class ElementSelector : IDisposable /// <summary> /// Initializes a new instance of the <see cref="ElementSelector"/> class. /// </summary> - /// <param name="uiDebug">The instance of <see cref="UiDebug"/> this Element Selector belongs to.</param> - internal ElementSelector(UiDebug uiDebug) + /// <param name="uiDebug2">The instance of <see cref="UiDebug2"/> this Element Selector belongs to.</param> + internal ElementSelector(UiDebug2 uiDebug2) { - this.uiDebug = uiDebug; + this.uiDebug2 = uiDebug2; } /// <summary> @@ -80,7 +79,7 @@ internal unsafe class ElementSelector : IDisposable /// </summary> internal void DrawInterface() { - using var ch = ImRaii.Child("###sidebar_elementSelector"u8, new(250, -1), true); + using var ch = ImRaii.Child("###sidebar_elementSelector", new(250, -1), true); if (ch.Success) { @@ -106,15 +105,15 @@ internal unsafe class ElementSelector : IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Element Selector"u8); + ImGui.SetTooltip("Element Selector"); } ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X - 32); ImGui.InputTextWithHint( - "###addressSearchInput"u8, - "Address Search"u8, + "###addressSearchInput", + "Address Search", ref this.addressSearchInput, 18, ImGuiInputTextFlags.AutoSelectAll); @@ -145,10 +144,10 @@ internal unsafe class ElementSelector : IDisposable return; } - ImGui.Text("ELEMENT SELECTOR"u8); - ImGui.TextDisabled("Use the mouse to hover and identify UI elements, then click to jump to them in the inspector"u8); - ImGui.TextDisabled("Use the scrollwheel to choose between overlapping elements"u8); - ImGui.TextDisabled("Press ESCAPE to cancel"u8); + ImGui.Text("ELEMENT SELECTOR"); + ImGui.TextDisabled("Use the mouse to hover and identify UI elements, then click to jump to them in the inspector"); + ImGui.TextDisabled("Use the scrollwheel to choose between overlapping elements"); + ImGui.TextDisabled("Press ESCAPE to cancel"); ImGui.Spacing(); var mousePos = ImGui.GetMousePos() - MainViewport.Pos; @@ -156,65 +155,69 @@ internal unsafe class ElementSelector : IDisposable using (ImRaii.PushColor(WindowBg, new Vector4(0.5f))) { - using var ch = ImRaii.Child("noClick"u8, new(800, 2000), false, NoInputs | NoBackground | NoScrollWithMouse); + using var ch = ImRaii.Child("noClick", new(800, 2000), false, NoInputs | NoBackground | NoScrollWithMouse); if (ch.Success) { using var gr = ImRaii.Group(); - Gui.PrintFieldValuePair("Mouse Position", $"{mousePos.X}, {mousePos.Y}"); - ImGui.Spacing(); - ImGui.Text("RESULTS:\n"u8); - - var i = 0; - foreach (var a in addonResults) + if (gr.Success) { - var name = a.Addon->NameString; - ImGui.Text($"[Addon] {name}"); + Gui.PrintFieldValuePair("Mouse Position", $"{mousePos.X}, {mousePos.Y}"); + ImGui.Spacing(); + ImGui.Text("RESULTS:\n"); - using var indent = ImRaii.PushIndent(15.0f); - foreach (var n in a.Nodes) + var i = 0; + foreach (var a in addonResults) { - var nSelected = i++ == this.index; - - PrintNodeHeaderOnly(n.Node, nSelected, a.Addon); - - if (nSelected && ImGui.IsMouseClicked(ImGuiMouseButton.Left)) + var name = a.Addon->NameString; + ImGui.TextUnformatted($"[Addon] {name}"); + ImGui.Indent(15); + foreach (var n in a.Nodes) { - this.Active = false; + var nSelected = i++ == this.index; - this.uiDebug.SelectedAddonName = a.Addon->NameString; + PrintNodeHeaderOnly(n.Node, nSelected, a.Addon); - var ptrList = new List<nint> { (nint)n.Node }; - - var nextNode = n.Node->ParentNode; - while (nextNode != null) + if (nSelected && ImGui.IsMouseClicked(ImGuiMouseButton.Left)) { - ptrList.Add((nint)nextNode); - nextNode = nextNode->ParentNode; + this.Active = false; + + this.uiDebug2.SelectedAddonName = a.Addon->NameString; + + var ptrList = new List<nint> { (nint)n.Node }; + + var nextNode = n.Node->ParentNode; + while (nextNode != null) + { + ptrList.Add((nint)nextNode); + nextNode = nextNode->ParentNode; + } + + SearchResults = [.. ptrList]; + Countdown = 100; + Scrolled = false; } - SearchResults = [.. ptrList]; - Countdown = 100; - Scrolled = false; + if (nSelected) + { + n.NodeBounds.DrawFilled(new(1, 1, 0.2f, 1)); + } } - if (nSelected) + ImGui.Indent(-15); + } + + if (i != 0) + { + this.index -= (int)ImGui.GetIO().MouseWheel; + while (this.index < 0) { - n.NodeBounds.DrawFilled(new(1, 1, 0.2f, 1)); + this.index += i; } - } - } - if (i != 0) - { - this.index -= (int)ImGui.GetIO().MouseWheel; - while (this.index < 0) - { - this.index += i; - } - - while (this.index >= i) - { - this.index -= i; + while (this.index >= i) + { + this.index -= i; + } } } } @@ -420,7 +423,7 @@ internal unsafe class ElementSelector : IDisposable var addon = unitManager->Entries[j].Value; if ((nint)addon == address || FindByAddress(addon, address)) { - this.uiDebug.SelectedAddonName = addon->NameString; + this.uiDebug2.SelectedAddonName = addon->NameString; return; } } diff --git a/Dalamud/Interface/Internal/UiDebug/Popout.Addon.cs b/Dalamud/Interface/Internal/UiDebug2/Popout.Addon.cs similarity index 86% rename from Dalamud/Interface/Internal/UiDebug/Popout.Addon.cs rename to Dalamud/Interface/Internal/UiDebug2/Popout.Addon.cs index cc80a27c4..76112945e 100644 --- a/Dalamud/Interface/Internal/UiDebug/Popout.Addon.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Popout.Addon.cs @@ -1,11 +1,11 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Internal.UiDebug.Browsing; +using Dalamud.Interface.Internal.UiDebug2.Browsing; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; +using ImGuiNET; -namespace Dalamud.Interface.Internal.UiDebug; +namespace Dalamud.Interface.Internal.UiDebug2; /// <summary> /// A popout window for an <see cref="AddonTree"/>. @@ -39,7 +39,7 @@ internal class AddonPopoutWindow : Window, IDisposable /// <inheritdoc/> public override void Draw() { - using var ch = ImRaii.Child($"{this.WindowName}child", Vector2.Zero, true); + using var ch = ImRaii.Child($"{this.WindowName}child", new(-1, -1), true); if (ch.Success) { this.addonTree.Draw(); diff --git a/Dalamud/Interface/Internal/UiDebug/Popout.Node.cs b/Dalamud/Interface/Internal/UiDebug2/Popout.Node.cs similarity index 87% rename from Dalamud/Interface/Internal/UiDebug/Popout.Node.cs rename to Dalamud/Interface/Internal/UiDebug2/Popout.Node.cs index 7d955f7f5..fe8bc87ea 100644 --- a/Dalamud/Interface/Internal/UiDebug/Popout.Node.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Popout.Node.cs @@ -1,15 +1,14 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Internal.UiDebug.Browsing; +using Dalamud.Interface.Internal.UiDebug2.Browsing; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; - using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; -using static Dalamud.Interface.Internal.UiDebug.UiDebug; +using static Dalamud.Interface.Internal.UiDebug2.UiDebug2; -namespace Dalamud.Interface.Internal.UiDebug; +namespace Dalamud.Interface.Internal.UiDebug2; /// <summary> /// A popout window for a <see cref="ResNodeTree"/>. @@ -39,7 +38,7 @@ internal unsafe class NodePopoutWindow : Window, IDisposable this.PositionCondition = ImGuiCond.Once; this.SizeCondition = ImGuiCond.Once; this.Size = new(700, 200); - this.SizeConstraints = new() { MinimumSize = new Vector2(100, 100) }; + this.SizeConstraints = new() { MinimumSize = new(100, 100) }; } private AddonTree AddonTree => this.resNodeTree.AddonTree; @@ -51,7 +50,7 @@ internal unsafe class NodePopoutWindow : Window, IDisposable { if (this.Node != null && this.AddonTree.ContainsNode(this.Node)) { - using var ch = ImRaii.Child($"{(nint)this.Node:X}popoutChild", Vector2.Zero, true); + using var ch = ImRaii.Child($"{(nint)this.Node:X}popoutChild", new(-1, -1), true); if (ch.Success) { ResNodeTree.GetOrCreate(this.Node, this.AddonTree).Print(null, this.firstDraw); diff --git a/Dalamud/Interface/Internal/UiDebug/UiDebug.Sidebar.cs b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.Sidebar.cs similarity index 89% rename from Dalamud/Interface/Internal/UiDebug/UiDebug.Sidebar.cs rename to Dalamud/Interface/Internal/UiDebug2/UiDebug2.Sidebar.cs index 0a24d4572..50967453d 100644 --- a/Dalamud/Interface/Internal/UiDebug/UiDebug.Sidebar.cs +++ b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.Sidebar.cs @@ -1,21 +1,20 @@ using System.Collections.Generic; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Components; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; using static System.StringComparison; - using static Dalamud.Interface.FontAwesomeIcon; -namespace Dalamud.Interface.Internal.UiDebug; +namespace Dalamud.Interface.Internal.UiDebug2; -/// <inheritdoc cref="UiDebug"/> -internal unsafe partial class UiDebug +/// <inheritdoc cref="UiDebug2"/> +internal unsafe partial class UiDebug2 { /// <summary> /// All unit lists to check for addons. @@ -50,7 +49,7 @@ internal unsafe partial class UiDebug /// Gets the base address for all unit lists. /// </summary> /// <returns>The address, if found.</returns> - internal static AtkUnitList* GetUnitListBaseAddr() => &RaptureAtkUnitManager.Instance()->DepthLayerOneList; + internal static AtkUnitList* GetUnitListBaseAddr() => &((UIModule*)GameGui.GetUIModule())->GetRaptureAtkModule()->RaptureAtkUnitManager.AtkUnitManager.DepthLayerOneList; private void DrawSidebar() { @@ -65,7 +64,7 @@ internal unsafe partial class UiDebug private void DrawNameSearch() { - using var ch = ImRaii.Child("###sidebar_nameSearch"u8, new(250, 40), true); + using var ch = ImRaii.Child("###sidebar_nameSearch", new(250, 40), true); if (ch.Success) { @@ -79,13 +78,13 @@ internal unsafe partial class UiDebug if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Filter by visibility"u8); + ImGui.SetTooltip("Filter by visibility"); } ImGui.SameLine(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputTextWithHint("###atkUnitBaseSearch"u8, "Filter by name"u8, ref atkUnitBaseSearch, 0x20)) + if (ImGui.InputTextWithHint("###atkUnitBaseSearch", "Filter by name", ref atkUnitBaseSearch, 0x20)) { this.addonNameSearch = atkUnitBaseSearch; } @@ -94,7 +93,7 @@ internal unsafe partial class UiDebug private void DrawAddonSelectionList() { - using var ch = ImRaii.Child("###sideBar_addonList"u8, new(250, -44), true, ImGuiWindowFlags.AlwaysVerticalScrollbar); + using var ch = ImRaii.Child("###sideBar_addonList", new(250, -44), true, ImGuiWindowFlags.AlwaysVerticalScrollbar); if (ch.Success) { var unitListBaseAddr = GetUnitListBaseAddr(); diff --git a/Dalamud/Interface/Internal/UiDebug/UiDebug.cs b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.cs similarity index 84% rename from Dalamud/Interface/Internal/UiDebug/UiDebug.cs rename to Dalamud/Interface/Internal/UiDebug2/UiDebug2.cs index bd7426466..74727f2a5 100644 --- a/Dalamud/Interface/Internal/UiDebug/UiDebug.cs +++ b/Dalamud/Interface/Internal/UiDebug2/UiDebug2.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; -using Dalamud.Interface.Internal.UiDebug.Browsing; +using Dalamud.Interface.Internal.UiDebug2.Browsing; using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Logging.Internal; @@ -10,9 +9,11 @@ using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Component.GUI; -using static Dalamud.Bindings.ImGui.ImGuiWindowFlags; +using ImGuiNET; -namespace Dalamud.Interface.Internal.UiDebug; +using static ImGuiNET.ImGuiWindowFlags; + +namespace Dalamud.Interface.Internal.UiDebug2; // Original version by aers https://github.com/aers/FFXIVUIDebug // Also incorporates features from Caraxi's fork https://github.com/Caraxi/SimpleTweaksPlugin/blob/main/Debugging/UIDebug.cs @@ -20,21 +21,21 @@ namespace Dalamud.Interface.Internal.UiDebug; /// <summary> /// A tool for browsing the contents and structure of UI elements. /// </summary> -internal partial class UiDebug : IDisposable +internal partial class UiDebug2 : IDisposable { - /// <inheritdoc cref="ModuleLog"/> - internal static readonly ModuleLog Log = ModuleLog.Create<UiDebug>(); - private readonly ElementSelector elementSelector; /// <summary> - /// Initializes a new instance of the <see cref="UiDebug"/> class. + /// Initializes a new instance of the <see cref="UiDebug2"/> class. /// </summary> - internal UiDebug() + internal UiDebug2() { this.elementSelector = new(this); } + /// <inheritdoc cref="ModuleLog"/> + internal static ModuleLog Log { get; set; } = new("UiDebug2"); + /// <inheritdoc cref="IGameGui"/> internal static IGameGui GameGui { get; set; } = Service<GameGui>.Get(); @@ -82,7 +83,7 @@ internal partial class UiDebug : IDisposable { ImGui.SameLine(); - using var ch = ImRaii.Child("###uiDebugMainPanel"u8, new(-1, -1), true, HorizontalScrollbar); + using var ch = ImRaii.Child("###uiDebugMainPanel", new(-1, -1), true, HorizontalScrollbar); if (ch.Success) { diff --git a/Dalamud/Interface/Internal/UiDebug/Utility/Gui.cs b/Dalamud/Interface/Internal/UiDebug2/Utility/Gui.cs similarity index 87% rename from Dalamud/Interface/Internal/UiDebug/Utility/Gui.cs rename to Dalamud/Interface/Internal/UiDebug2/Utility/Gui.cs index 2c02fd793..cc4f1b698 100644 --- a/Dalamud/Interface/Internal/UiDebug/Utility/Gui.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Utility/Gui.cs @@ -1,18 +1,18 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Client.Graphics; +using ImGuiNET; -using static Dalamud.Bindings.ImGui.ImGuiCol; using static Dalamud.Interface.ColorHelpers; +using static ImGuiNET.ImGuiCol; -namespace Dalamud.Interface.Internal.UiDebug.Utility; +namespace Dalamud.Interface.Internal.UiDebug2.Utility; /// <summary> -/// Miscellaneous ImGui tools used by <see cref="UiDebug"/>. +/// Miscellaneous ImGui tools used by <see cref="UiDebug2"/>. /// </summary> internal static class Gui { @@ -24,12 +24,12 @@ internal static class Gui /// <param name="copy">Whether to enable click-to-copy.</param> internal static void PrintFieldValuePair(string fieldName, string value, bool copy = true) { - ImGui.Text($"{fieldName}:"); + ImGui.TextUnformatted($"{fieldName}:"); ImGui.SameLine(); var grey60 = new Vector4(0.6f, 0.6f, 0.6f, 1); if (copy) { - ImGuiHelpers.ClickToCopyText(value, default, grey60); + ImGuiHelpers.ClickToCopyText(value, null, grey60); } else { @@ -105,8 +105,12 @@ internal static class Gui var index = (int)Math.Floor(prog * tooltips.Length); - using var tooltip = ImRaii.Tooltip(); - ImGui.Text(tooltips[index]); + using var tt = ImRaii.Tooltip(); + + if (tt.Success) + { + ImGui.TextUnformatted(tooltips[index]); + } return true; } @@ -120,14 +124,13 @@ internal static class Gui { if ((mask & 0b10) > 0) { - ImGuiHelpers.ScaledDummy(padding); + ImGui.Dummy(new(padding * ImGui.GetIO().FontGlobalScale)); } ImGui.Separator(); - if ((mask & 0b01) > 0) { - ImGuiHelpers.ScaledDummy(padding); + ImGui.Dummy(new(padding * ImGui.GetIO().FontGlobalScale)); } } } diff --git a/Dalamud/Interface/Internal/UiDebug/Utility/NodeBounds.cs b/Dalamud/Interface/Internal/UiDebug2/Utility/NodeBounds.cs similarity index 81% rename from Dalamud/Interface/Internal/UiDebug/Utility/NodeBounds.cs rename to Dalamud/Interface/Internal/UiDebug2/Utility/NodeBounds.cs index 414d49cf5..3d28cb836 100644 --- a/Dalamud/Interface/Internal/UiDebug/Utility/NodeBounds.cs +++ b/Dalamud/Interface/Internal/UiDebug2/Utility/NodeBounds.cs @@ -2,16 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; - using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; using static System.MathF; - using static Dalamud.Interface.ColorHelpers; -namespace Dalamud.Interface.Internal.UiDebug.Utility; +namespace Dalamud.Interface.Internal.UiDebug2.Utility; /// <summary> /// A struct representing the perimeter of an <see cref="AtkResNode"/>, accounting for all transformations. @@ -62,11 +60,10 @@ public unsafe struct NodeBounds return; } - var backgroundDrawList = ImGui.GetBackgroundDrawList(); if (this.Points.Count == 1) { - backgroundDrawList.AddCircle(this.Points[0], 10, RgbaVector4ToUint(col with { W = col.W / 2 }), 12, thickness); - backgroundDrawList.AddCircle(this.Points[0], thickness, RgbaVector4ToUint(col), 12, thickness + 1); + ImGui.GetBackgroundDrawList().AddCircle(this.Points[0], 10, RgbaVector4ToUint(col with { W = col.W / 2 }), 12, thickness); + ImGui.GetBackgroundDrawList().AddCircle(this.Points[0], thickness, RgbaVector4ToUint(col), 12, thickness + 1); } else { @@ -76,7 +73,8 @@ public unsafe struct NodeBounds path.Add(p); } - backgroundDrawList.AddPolyline(ref path[0], path.Length, RgbaVector4ToUint(col), ImDrawFlags.Closed, thickness); + ImGui.GetBackgroundDrawList() + .AddPolyline(ref path[0], path.Length, RgbaVector4ToUint(col), ImDrawFlags.Closed, thickness); path.Dispose(); } @@ -94,11 +92,11 @@ public unsafe struct NodeBounds return; } - var backgroundDrawList = ImGui.GetBackgroundDrawList(); if (this.Points.Count == 1) { - backgroundDrawList.AddCircleFilled(this.Points[0], 10, RgbaVector4ToUint(col with { W = col.W / 2 }), 12); - backgroundDrawList.AddCircle(this.Points[0], 10, RgbaVector4ToUint(col), 12, thickness); + ImGui.GetBackgroundDrawList() + .AddCircleFilled(this.Points[0], 10, RgbaVector4ToUint(col with { W = col.W / 2 }), 12); + ImGui.GetBackgroundDrawList().AddCircle(this.Points[0], 10, RgbaVector4ToUint(col), 12, thickness); } else { @@ -108,8 +106,10 @@ public unsafe struct NodeBounds path.Add(p); } - backgroundDrawList.AddConvexPolyFilled(ref path[0], path.Length, RgbaVector4ToUint(col with { W = col.W / 2 })); - backgroundDrawList.AddPolyline(ref path[0], path.Length, RgbaVector4ToUint(col), ImDrawFlags.Closed, thickness); + ImGui.GetBackgroundDrawList() + .AddConvexPolyFilled(ref path[0], path.Length, RgbaVector4ToUint(col with { W = col.W / 2 })); + ImGui.GetBackgroundDrawList() + .AddPolyline(ref path[0], path.Length, RgbaVector4ToUint(col), ImDrawFlags.Closed, thickness); path.Dispose(); } diff --git a/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs b/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs index 51a9c48a6..055cb9f49 100644 --- a/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs +++ b/Dalamud/Interface/Internal/Windows/BranchSwitcherWindow.cs @@ -5,17 +5,15 @@ using System.Linq; using System.Net.Http.Json; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; +using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Networking.Http; -using Dalamud.Utility; +using ImGuiNET; using Newtonsoft.Json; -using Serilog; - namespace Dalamud.Interface.Internal.Windows; /// <summary> @@ -47,12 +45,13 @@ public class BranchSwitcherWindow : Window this.branches = await client.GetFromJsonAsync<Dictionary<string, VersionEntry>>(BranchInfoUrl); Debug.Assert(this.branches != null, "this.branches != null"); - var trackName = Versioning.GetActiveTrack(); - this.selectedBranchIndex = this.branches.IndexOf(x => x.Value.Track == trackName); - if (this.selectedBranchIndex == -1) - { + var config = Service<DalamudConfiguration>.Get(); + this.selectedBranchIndex = this.branches!.Any(x => x.Key == config.DalamudBetaKind) ? + this.branches.TakeWhile(x => x.Key != config.DalamudBetaKind).Count() + : 0; + + if (this.branches.ElementAt(this.selectedBranchIndex).Value.Key != config.DalamudBetaKey) this.selectedBranchIndex = 0; - } }); base.OnOpen(); @@ -63,20 +62,20 @@ public class BranchSwitcherWindow : Window { if (this.branches == null) { - ImGui.TextColored(ImGuiColors.DalamudGrey, "Loading branches..."u8); + ImGui.TextColored(ImGuiColors.DalamudGrey, "Loading branches..."); return; } var si = Service<Dalamud>.Get().StartInfo; var itemsArray = this.branches.Select(x => x.Key).ToArray(); - ImGui.ListBox("Branch", ref this.selectedBranchIndex, itemsArray); + ImGui.ListBox("Branch", ref this.selectedBranchIndex, itemsArray, itemsArray.Length); var pickedBranch = this.branches.ElementAt(this.selectedBranchIndex); if (pickedBranch.Value.SupportedGameVer != si.GameVersion) { - ImGui.TextColored(ImGuiColors.DalamudRed, "Can't pick this branch. GameVer != SupportedGameVer."u8); + ImGui.TextColored(ImGuiColors.DalamudRed, "Can't pick this branch. GameVer != SupportedGameVer."); } else { @@ -85,27 +84,35 @@ public class BranchSwitcherWindow : Window ImGuiHelpers.ScaledDummy(5); - if (ImGui.Button("Pick & Restart"u8)) + void Pick() { - var newTrackName = pickedBranch.Key; - var newTrackKey = pickedBranch.Value.Key; - Log.Verbose("Switching to branch {Branch} with key {Key}", newTrackName, newTrackKey); + var config = Service<DalamudConfiguration>.Get(); + config.DalamudBetaKind = pickedBranch.Key; + config.DalamudBetaKey = pickedBranch.Value.Key; + config.QueueSave(); + } + + if (ImGui.Button("Pick")) + { + Pick(); + this.IsOpen = false; + } + + ImGui.SameLine(); + + if (ImGui.Button("Pick & Restart")) + { + Pick(); + + // If we exit immediately, we need to write out the new config now + Service<DalamudConfiguration>.Get().ForceSave(); var appData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); - var xlPath = Path.Combine(appData, "XIVLauncher", "current", "XIVLauncher.exe"); + var xlPath = Path.Combine(appData, "XIVLauncher", "XIVLauncher.exe"); if (File.Exists(xlPath)) { - var ps = new ProcessStartInfo - { - FileName = xlPath, - UseShellExecute = false, - }; - - ps.ArgumentList.Add($"--dalamud-beta-kind={newTrackName}"); - ps.ArgumentList.Add($"--dalamud-beta-key={(newTrackKey.IsNullOrEmpty() ? "invalid" : newTrackKey)}"); - - Process.Start(ps); + Process.Start(xlPath); Environment.Exit(0); } } diff --git a/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs b/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs index c67eebfec..d42dc3669 100644 --- a/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs @@ -4,7 +4,6 @@ using System.Numerics; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.Gui; @@ -26,6 +25,8 @@ using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.UI; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows; /// <summary> @@ -34,7 +35,7 @@ namespace Dalamud.Interface.Internal.Windows; internal sealed class ChangelogWindow : Window, IDisposable { private const string WarrantsChangelogForMajorMinor = "10.0."; - + private const string ChangeLog = @"• Updated Dalamud for compatibility with Patch 7.0 • Made a lot of behind-the-scenes changes to make Dalamud and plugins more stable and reliable @@ -42,7 +43,7 @@ internal sealed class ChangelogWindow : Window, IDisposable • Refreshed the Dalamud/plugin installer UI "; - private static readonly TimeSpan TitleScreenWaitTime = TimeSpan.FromSeconds(0.5f); + private static readonly TimeSpan TitleScreenWaitTime = TimeSpan.FromSeconds(0.5f); private readonly TitleScreenMenuWindow tsmWindow; @@ -53,41 +54,41 @@ internal sealed class ChangelogWindow : Window, IDisposable private readonly Lazy<IFontHandle> bannerFont; private readonly Lazy<IDalamudTextureWrap> apiBumpExplainerTexture; private readonly Lazy<IDalamudTextureWrap> logoTexture; - + private readonly InOutCubic windowFade = new(TimeSpan.FromSeconds(2.5f)) { Point1 = Vector2.Zero, Point2 = new Vector2(2f), }; - + private readonly InOutCubic bodyFade = new(TimeSpan.FromSeconds(0.8f)) { Point1 = Vector2.Zero, Point2 = Vector2.One, }; - + private readonly InOutCubic titleFade = new(TimeSpan.FromSeconds(0.5f)) { Point1 = Vector2.Zero, Point2 = Vector2.One, }; - + private readonly InOutCubic fadeOut = new(TimeSpan.FromSeconds(0.5f)) { Point1 = Vector2.One, Point2 = Vector2.Zero, }; - + private State state = State.WindowFadeIn; - + private bool needFadeRestart = false; - + private bool isFadingOutForStateChange = false; private State? stateAfterFadeOut; - + private AutoUpdateBehavior? chosenAutoUpdateBehavior; - - private Dictionary<string, int> currentFtueLevels = []; + + private Dictionary<string, int> currentFtueLevels = new(); private DateTime? isEligibleSince; private bool openedThroughEligibility; @@ -109,7 +110,7 @@ internal sealed class ChangelogWindow : Window, IDisposable : base("What's new in Dalamud?##ChangelogWindow", ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse, true) { this.gameGui = gameGui; - + this.tsmWindow = tsmWindow; this.Namespace = "DalamudChangelogWindow"; this.privateAtlas = this.scopedFinalizer.Add( @@ -124,7 +125,7 @@ internal sealed class ChangelogWindow : Window, IDisposable // If we are going to show a changelog, make sure we have the font ready, otherwise it will hitch if (WarrantsChangelog()) _ = this.bannerFont.Value; - + framework.Update += this.FrameworkOnUpdate; this.scopedFinalizer.Add(() => framework.Update -= this.FrameworkOnUpdate); } @@ -137,7 +138,7 @@ internal sealed class ChangelogWindow : Window, IDisposable AskAutoUpdate, Links, } - + /// <summary> /// Check if a changelog should be shown. /// </summary> @@ -149,7 +150,7 @@ internal sealed class ChangelogWindow : Window, IDisposable var pmWantsChangelog = pm?.InstalledPlugins.Any() ?? true; return (string.IsNullOrEmpty(configuration.LastChangelogMajorMinor) || (!WarrantsChangelogForMajorMinor.StartsWith(configuration.LastChangelogMajorMinor) && - Versioning.GetAssemblyVersion().StartsWith(WarrantsChangelogForMajorMinor))) && pmWantsChangelog; + Util.AssemblyVersion.StartsWith(WarrantsChangelogForMajorMinor))) && pmWantsChangelog; } /// <inheritdoc/> @@ -162,7 +163,7 @@ internal sealed class ChangelogWindow : Window, IDisposable this.isFadingOutForStateChange = false; this.stateAfterFadeOut = null; - + this.state = State.WindowFadeIn; this.windowFade.Reset(); this.bodyFade.Reset(); @@ -171,9 +172,9 @@ internal sealed class ChangelogWindow : Window, IDisposable this.needFadeRestart = true; this.chosenAutoUpdateBehavior = null; - + this.currentFtueLevels = Service<DalamudConfiguration>.Get().SeenFtueLevels; - + base.OnOpen(); } @@ -181,17 +182,17 @@ internal sealed class ChangelogWindow : Window, IDisposable public override void OnClose() { base.OnClose(); - + this.tsmWindow.AllowDrawing = true; Service<DalamudInterface>.Get().SetCreditsDarkeningAnimation(false); var configuration = Service<DalamudConfiguration>.Get(); - + if (this.chosenAutoUpdateBehavior.HasValue) { configuration.AutoUpdateBehavior = this.chosenAutoUpdateBehavior.Value; } - + configuration.SeenFtueLevels = this.currentFtueLevels; configuration.QueueSave(); } @@ -202,7 +203,7 @@ internal sealed class ChangelogWindow : Window, IDisposable ImGui.PushStyleVar(ImGuiStyleVar.WindowBorderSize, 0); ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, Vector2.Zero); ImGui.PushStyleVar(ImGuiStyleVar.WindowRounding, 10f); - + base.PreDraw(); if (this.needFadeRestart) @@ -211,15 +212,15 @@ internal sealed class ChangelogWindow : Window, IDisposable this.titleFade.Restart(); this.needFadeRestart = false; } - + this.windowFade.Update(); this.titleFade.Update(); this.fadeOut.Update(); ImGui.SetNextWindowBgAlpha(Math.Clamp(this.windowFade.EasedPoint.X, 0, 0.9f)); - + this.Size = new Vector2(900, 400); this.SizeCondition = ImGuiCond.Always; - + // Center the window on the main viewport var viewportPos = ImGuiHelpers.MainViewport.Pos; var viewportSize = ImGuiHelpers.MainViewport.Size; @@ -232,9 +233,9 @@ internal sealed class ChangelogWindow : Window, IDisposable public override void PostDraw() { ImGui.PopStyleVar(3); - + this.ResetMovieTimer(); - + base.PostDraw(); } @@ -247,37 +248,37 @@ internal sealed class ChangelogWindow : Window, IDisposable configuration.LastChangelogMajorMinor = WarrantsChangelogForMajorMinor; configuration.QueueSave(); } - + var windowSize = ImGui.GetWindowSize(); - + var dummySize = 10 * ImGuiHelpers.GlobalScale; ImGui.Dummy(new Vector2(dummySize)); ImGui.SameLine(); - + var logoContainerSize = new Vector2(windowSize.X * 0.2f - dummySize, windowSize.Y); - using (var child = ImRaii.Child("###logoContainer"u8, logoContainerSize, false)) + using (var child = ImRaii.Child("###logoContainer", logoContainerSize, false)) { if (!child) return; var logoSize = new Vector2(logoContainerSize.X); - + // Center the logo in the container ImGui.SetCursorPos(new Vector2(logoContainerSize.X / 2 - logoSize.X / 2, logoContainerSize.Y / 2 - logoSize.Y / 2)); - + using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, Math.Clamp(this.windowFade.EasedPoint.X - 0.5f, 0f, 1f))) - ImGui.Image(this.logoTexture.Value.Handle, logoSize); + ImGui.Image(this.logoTexture.Value.ImGuiHandle, logoSize); } - + ImGui.SameLine(); ImGui.Dummy(new Vector2(dummySize)); ImGui.SameLine(); - - using (var child = ImRaii.Child("###textContainer"u8, new Vector2((windowSize.X * 0.8f) - dummySize * 4, windowSize.Y), false)) + + using (var child = ImRaii.Child("###textContainer", new Vector2((windowSize.X * 0.8f) - dummySize * 4, windowSize.Y), false)) { if (!child) return; - + ImGuiHelpers.ScaledDummy(20); var titleFadeVal = this.isFadingOutForStateChange ? this.fadeOut.EasedPoint.X : this.titleFade.EasedPoint.X; @@ -291,21 +292,21 @@ internal sealed class ChangelogWindow : Window, IDisposable case State.ExplainerIntro: ImGuiHelpers.CenteredText("New And Improved"); break; - + case State.ExplainerApiBump: ImGuiHelpers.CenteredText("Plugin Updates"); break; - + case State.AskAutoUpdate: ImGuiHelpers.CenteredText("Auto-Updates"); break; - + case State.Links: ImGuiHelpers.CenteredText("Enjoy!"); break; } } - + ImGuiHelpers.ScaledDummy(8); if (this.state == State.WindowFadeIn && this.windowFade.EasedPoint.X > 1.5f) @@ -320,11 +321,11 @@ internal sealed class ChangelogWindow : Window, IDisposable this.bodyFade.Restart(); this.titleFade.Restart(); - + this.isFadingOutForStateChange = false; this.stateAfterFadeOut = null; } - + this.bodyFade.Update(); var bodyFadeVal = this.isFadingOutForStateChange ? this.fadeOut.EasedPoint.X : this.bodyFade.EasedPoint.X; using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, Math.Clamp(bodyFadeVal, 0, 1f))) @@ -333,10 +334,10 @@ internal sealed class ChangelogWindow : Window, IDisposable { this.isFadingOutForStateChange = true; this.stateAfterFadeOut = nextState; - + this.fadeOut.Restart(); } - + bool DrawNextButton(State nextState) { // Draw big, centered next button at the bottom of the window @@ -345,7 +346,7 @@ internal sealed class ChangelogWindow : Window, IDisposable var buttonWidth = ImGui.CalcTextSize(buttonText).X + 40 * ImGuiHelpers.GlobalScale; ImGui.SetCursorPosY(windowSize.Y - buttonHeight - (20 * ImGuiHelpers.GlobalScale)); ImGuiHelpers.CenterCursorFor((int)buttonWidth); - + if (ImGui.Button(buttonText, new Vector2(buttonWidth, buttonHeight)) && !this.isFadingOutForStateChange) { GoToNextState(nextState); @@ -354,37 +355,37 @@ internal sealed class ChangelogWindow : Window, IDisposable return false; } - + switch (this.state) { case State.WindowFadeIn: case State.ExplainerIntro: - ImGui.TextWrapped($"Welcome to Dalamud v{Versioning.GetScmVersion()}!"); + ImGui.TextWrapped($"Welcome to Dalamud v{Util.GetScmVersion()}!"); ImGuiHelpers.ScaledDummy(5); ImGui.TextWrapped(ChangeLog); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped("This changelog is a quick overview of the most important changes in this version."u8); - ImGui.TextWrapped("Please click next to see a quick guide to updating your plugins."u8); - + ImGui.TextWrapped("This changelog is a quick overview of the most important changes in this version."); + ImGui.TextWrapped("Please click next to see a quick guide to updating your plugins."); + DrawNextButton(State.ExplainerApiBump); break; - + case State.ExplainerApiBump: - ImGui.TextWrapped("Take care! Due to changes in this patch, all of your plugins need to be updated and were disabled automatically."u8); - ImGui.TextWrapped("This is normal and required for major game updates."u8); + ImGui.TextWrapped("Take care! Due to changes in this patch, all of your plugins need to be updated and were disabled automatically."); + ImGui.TextWrapped("This is normal and required for major game updates."); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped("To update your plugins, open the plugin installer and click 'update plugins'. Updated plugins should update and then re-enable themselves."u8); + ImGui.TextWrapped("To update your plugins, open the plugin installer and click 'update plugins'. Updated plugins should update and then re-enable themselves."); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped("Please keep in mind that not all of your plugins may already be updated for the new version."u8); - ImGui.TextWrapped("If some plugins are displayed with a red cross in the 'Installed Plugins' tab, they may not yet be available."u8); - + ImGui.TextWrapped("Please keep in mind that not all of your plugins may already be updated for the new version."); + ImGui.TextWrapped("If some plugins are displayed with a red cross in the 'Installed Plugins' tab, they may not yet be available."); + ImGuiHelpers.ScaledDummy(15); ImGuiHelpers.CenterCursorFor(this.apiBumpExplainerTexture.Value.Width); ImGui.Image( - this.apiBumpExplainerTexture.Value.Handle, + this.apiBumpExplainerTexture.Value.ImGuiHandle, this.apiBumpExplainerTexture.Value.Size); - + if (!this.currentFtueLevels.TryGetValue(FtueLevels.AutoUpdate.Name, out var autoUpdateLevel) || autoUpdateLevel < FtueLevels.AutoUpdate.AutoUpdateInitial) { if (DrawNextButton(State.AskAutoUpdate)) @@ -396,23 +397,23 @@ internal sealed class ChangelogWindow : Window, IDisposable { DrawNextButton(State.Links); } - + break; - + case State.AskAutoUpdate: - ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", "Dalamud can update your plugins automatically, making sure that you always " + "have the newest features and bug fixes. You can choose when and how auto-updates are run here.")); ImGuiHelpers.ScaledDummy(2); - - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", + + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", "You can always update your plugins manually by clicking the update button in the plugin list. " + "You can also opt into updates for specific plugins by right-clicking them and selecting \"Always auto-update\".")); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", "Dalamud will only notify you about updates while you are idle.")); - + ImGuiHelpers.ScaledDummy(15); - + bool DrawCenteredButton(string text, float height) { var buttonHeight = height * ImGuiHelpers.GlobalScale; @@ -426,97 +427,97 @@ internal sealed class ChangelogWindow : Window, IDisposable using (ImRaii.PushColor(ImGuiCol.Button, ImGuiColors.DPSRed)) { if (DrawCenteredButton("Enable auto-updates", 30)) - { + { this.chosenAutoUpdateBehavior = AutoUpdateBehavior.UpdateMainRepo; GoToNextState(State.Links); } } - + ImGuiHelpers.ScaledDummy(2); - + using (ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 1)) using (var buttonColor = ImRaii.PushColor(ImGuiCol.Button, Vector4.Zero)) { buttonColor.Push(ImGuiCol.Border, ImGuiColors.DalamudGrey3); if (DrawCenteredButton("Disable auto-updates", 25)) - { + { this.chosenAutoUpdateBehavior = AutoUpdateBehavior.OnlyNotify; GoToNextState(State.Links); } } - + break; - + case State.Links: - ImGui.TextWrapped("If you note any issues or need help, please check the FAQ, and reach out on our Discord if you need help."u8); - ImGui.TextWrapped("Enjoy your time with the game and Dalamud!"u8); - + ImGui.TextWrapped("If you note any issues or need help, please check the FAQ, and reach out on our Discord if you need help."); + ImGui.TextWrapped("Enjoy your time with the game and Dalamud!"); + ImGuiHelpers.ScaledDummy(45); - + bool CenteredIconButton(FontAwesomeIcon icon, string text) { var buttonWidth = ImGuiComponents.GetIconButtonWithTextWidth(icon, text); ImGuiHelpers.CenterCursorFor((int)buttonWidth); return ImGuiComponents.IconButtonWithText(icon, text); } - + if (CenteredIconButton(FontAwesomeIcon.Download, "Open Plugin Installer")) { Service<DalamudInterface>.Get().OpenPluginInstaller(); this.IsOpen = false; Dismiss(); } - + ImGuiHelpers.ScaledDummy(5); - + ImGuiHelpers.CenterCursorFor( (int)(ImGuiComponents.GetIconButtonWithTextWidth(FontAwesomeIcon.Globe, "See the FAQ") + ImGuiComponents.GetIconButtonWithTextWidth(FontAwesomeIcon.LaughBeam, "Join our Discord server") + - (5 * ImGuiHelpers.GlobalScale) + + (5 * ImGuiHelpers.GlobalScale) + (ImGui.GetStyle().ItemSpacing.X * 4))); if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Globe, "See the FAQ")) { Util.OpenLink("https://goatcorp.github.io/faq/"); } - + ImGui.SameLine(); ImGuiHelpers.ScaledDummy(5); ImGui.SameLine(); - + if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.LaughBeam, "Join our Discord server")) { Util.OpenLink("https://discord.gg/3NMcUV5"); } - + ImGuiHelpers.ScaledDummy(5); - + if (CenteredIconButton(FontAwesomeIcon.Heart, "Support what we care about")) { Util.OpenLink("https://goatcorp.github.io/faq/support"); } - + var buttonHeight = 30 * ImGuiHelpers.GlobalScale; var buttonText = "Close"; var buttonWidth = ImGui.CalcTextSize(buttonText).X + 40 * ImGuiHelpers.GlobalScale; ImGui.SetCursorPosY(windowSize.Y - buttonHeight - (20 * ImGuiHelpers.GlobalScale)); ImGuiHelpers.CenterCursorFor((int)buttonWidth); - + if (ImGui.Button(buttonText, new Vector2(buttonWidth, buttonHeight))) { this.IsOpen = false; Dismiss(); } - + break; } } - + // Draw close button in the top right corner ImGui.PushStyleVar(ImGuiStyleVar.FrameRounding, 100f); var btnAlpha = Math.Clamp(this.windowFade.EasedPoint.X - 0.5f, 0f, 1f); ImGui.PushStyleColor(ImGuiCol.Button, ImGuiColors.DPSRed.WithAlpha(btnAlpha).Desaturate(0.3f)); ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudWhite.WithAlpha(btnAlpha)); - + var childSize = ImGui.GetWindowSize(); var closeButtonSize = 15 * ImGuiHelpers.GlobalScale; ImGui.SetCursorPos(new Vector2(childSize.X - closeButtonSize - (10 * ImGuiHelpers.GlobalScale), 10 * ImGuiHelpers.GlobalScale)); @@ -531,7 +532,7 @@ internal sealed class ChangelogWindow : Window, IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("I don't care about this"u8); + ImGui.SetTooltip("I don't care about this"); } } } @@ -543,7 +544,7 @@ internal sealed class ChangelogWindow : Window, IDisposable { this.scopedFinalizer.Dispose(); } - + private void FrameworkOnUpdate(IFramework unused) { if (!WarrantsChangelog()) @@ -554,7 +555,7 @@ internal sealed class ChangelogWindow : Window, IDisposable if (this.openedThroughEligibility) return; - + var isEligible = this.gameGui.GetAddonByName("_TitleMenu", 1) != IntPtr.Zero; var charaSelect = this.gameGui.GetAddonByName("CharaSelect", 1); @@ -571,14 +572,14 @@ internal sealed class ChangelogWindow : Window, IDisposable { this.isEligibleSince = null; } - + if (this.isEligibleSince != null && DateTime.Now - this.isEligibleSince > TitleScreenWaitTime) { this.IsOpen = true; this.openedThroughEligibility = true; } } - + private unsafe void ResetMovieTimer() { var uiModule = UIModule.Instance(); diff --git a/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs b/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs index 564e8ca5e..3d2b585ac 100644 --- a/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ColorDemoWindow.cs @@ -3,9 +3,9 @@ using System.Linq; using System.Numerics; using System.Reflection; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Windowing; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; @@ -52,7 +52,7 @@ internal sealed class ColorDemoWindow : Window /// <inheritdoc/> public override void Draw() { - ImGui.Text("This is a collection of UI colors you can use in your plugin."u8); + ImGui.Text("This is a collection of UI colors you can use in your plugin."); ImGui.Separator(); diff --git a/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs b/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs index 61435f723..0b704990b 100644 --- a/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ComponentDemoWindow.cs @@ -1,13 +1,13 @@ using System.Collections.Generic; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Animation; using Dalamud.Interface.Animation.EasingFunctions; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; @@ -19,14 +19,14 @@ internal sealed class ComponentDemoWindow : Window private static readonly TimeSpan DefaultEasingTime = new(0, 0, 0, 1700); private readonly List<(string Name, Action Demo)> componentDemos; - private readonly IReadOnlyList<Easing> easings = - [ + private readonly IReadOnlyList<Easing> easings = new Easing[] + { new InSine(DefaultEasingTime), new OutSine(DefaultEasingTime), new InOutSine(DefaultEasingTime), new InCubic(DefaultEasingTime), new OutCubic(DefaultEasingTime), new InOutCubic(DefaultEasingTime), new InQuint(DefaultEasingTime), new OutQuint(DefaultEasingTime), new InOutQuint(DefaultEasingTime), new InCirc(DefaultEasingTime), new OutCirc(DefaultEasingTime), new InOutCirc(DefaultEasingTime), new InElastic(DefaultEasingTime), new OutElastic(DefaultEasingTime), new InOutElastic(DefaultEasingTime), - ]; + }; private int animationTimeMs = (int)DefaultEasingTime.TotalMilliseconds; private Vector4 defaultColor = ImGuiColors.DalamudOrange; @@ -42,14 +42,14 @@ internal sealed class ComponentDemoWindow : Window this.RespectCloseHotkey = false; - this.componentDemos = - [ + this.componentDemos = new() + { ("Test", ImGuiComponents.Test), ("HelpMarker", HelpMarkerDemo), ("IconButton", IconButtonDemo), ("TextWithLabel", TextWithLabelDemo), ("ColorPickerWithPalette", this.ColorPickerWithPaletteDemo), - ]; + }; } /// <inheritdoc/> @@ -73,7 +73,7 @@ internal sealed class ComponentDemoWindow : Window /// <inheritdoc/> public override void Draw() { - ImGui.Text("This is a collection of UI components you can use in your plugin."u8); + ImGui.Text("This is a collection of UI components you can use in your plugin."); for (var i = 0; i < this.componentDemos.Count; i++) { @@ -85,7 +85,7 @@ internal sealed class ComponentDemoWindow : Window } } - if (ImGui.CollapsingHeader("Easing animations"u8)) + if (ImGui.CollapsingHeader("Easing animations")) { this.EasingsDemo(); } @@ -93,22 +93,22 @@ internal sealed class ComponentDemoWindow : Window private static void HelpMarkerDemo() { - ImGui.Text("Hover over the icon to learn more."u8); + ImGui.Text("Hover over the icon to learn more."); ImGuiComponents.HelpMarker("help me!"); } private static void IconButtonDemo() { - ImGui.Text("Click on the icon to use as a button."u8); + ImGui.Text("Click on the icon to use as a button."); ImGui.SameLine(); if (ImGuiComponents.IconButton(1, FontAwesomeIcon.Carrot)) { - ImGui.OpenPopup("IconButtonDemoPopup"u8); + ImGui.OpenPopup("IconButtonDemoPopup"); } - if (ImGui.BeginPopup("IconButtonDemoPopup"u8)) + if (ImGui.BeginPopup("IconButtonDemoPopup")) { - ImGui.Text("You clicked!"u8); + ImGui.Text("You clicked!"); ImGui.EndPopup(); } } @@ -120,7 +120,7 @@ internal sealed class ComponentDemoWindow : Window private void EasingsDemo() { - ImGui.SliderInt("Speed in MS"u8, ref this.animationTimeMs, 200, 5000); + ImGui.SliderInt("Speed in MS", ref this.animationTimeMs, 200, 5000); foreach (var easing in this.easings) { @@ -147,14 +147,14 @@ internal sealed class ComponentDemoWindow : Window ImGui.Bullet(); ImGui.SetCursorPos(cursor + new Vector2(0, 10)); - ImGui.Text($"{easing.GetType().Name} ({easing.ValueClamped})"); + ImGui.Text($"{easing.GetType().Name} ({easing.Value})"); ImGuiHelpers.ScaledDummy(5); } } private void ColorPickerWithPaletteDemo() { - ImGui.Text("Click on the color button to use the picker."u8); + ImGui.Text("Click on the color button to use the picker."); ImGui.SameLine(); this.defaultColor = ImGuiComponents.ColorPickerWithPalette(1, "ColorPickerWithPalette Demo", this.defaultColor); } diff --git a/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs b/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs index 36b0883bb..f7ce5d145 100644 --- a/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ConsoleWindow.cs @@ -3,10 +3,10 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Numerics; +using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game; @@ -22,6 +22,8 @@ using Dalamud.Plugin.Internal; using Dalamud.Plugin.Services; using Dalamud.Utility; +using ImGuiNET; + using Serilog; using Serilog.Events; @@ -39,9 +41,9 @@ internal class ConsoleWindow : Window, IDisposable // Fields below should be touched only from the main thread. private readonly RollingList<LogEntry> logText; private readonly RollingList<LogEntry> filteredLogEntries; - - private readonly List<PluginFilterEntry> pluginFilters = []; - + + private readonly List<PluginFilterEntry> pluginFilters = new(); + private readonly DalamudConfiguration configuration; private int newRolledLines; @@ -85,14 +87,14 @@ internal class ConsoleWindow : Window, IDisposable : base("Dalamud Console", ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse) { this.configuration = configuration; - + this.autoScroll = configuration.LogAutoScroll; this.autoOpen = configuration.LogOpenAtStartup; Service<Framework>.GetAsync().ContinueWith(r => r.Result.Update += this.FrameworkOnUpdate); - + var cm = Service<ConsoleManager>.Get(); - cm.AddCommand("clear", "Clear the console log", () => + cm.AddCommand("clear", "Clear the console log", () => { this.QueueClear(); return true; @@ -112,25 +114,15 @@ internal class ConsoleWindow : Window, IDisposable this.configuration.DalamudConfigurationSaved += this.OnDalamudConfigurationSaved; - this.clipperPtr = ImGui.ImGuiListClipper(); + unsafe + { + this.clipperPtr = new(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + } } /// <summary>Gets the queue where log entries that are not processed yet are stored.</summary> public static ConcurrentQueue<(string Line, LogEvent LogEvent)> NewLogEntries { get; } = new(); - /// <summary> - /// Gets or sets the current text filter. - /// </summary> - public string TextFilter - { - get => this.textFilter; - set - { - this.textFilter = value; - this.RecompileLogFilter(); - } - } - /// <inheritdoc/> public override void OnOpen() { @@ -161,7 +153,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TextColored( ImGuiColors.DalamudRed, $"Regex Filter Error: {this.exceptionLogFilter.GetType().Name}"); - ImGui.Text(this.exceptionLogFilter.Message); + ImGui.TextUnformatted(this.exceptionLogFilter.Message); } if (this.exceptionLogHighlight is not null) @@ -169,14 +161,14 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TextColored( ImGuiColors.DalamudRed, $"Regex Highlight Error: {this.exceptionLogHighlight.GetType().Name}"); - ImGui.Text(this.exceptionLogHighlight.Message); + ImGui.TextUnformatted(this.exceptionLogHighlight.Message); } - var sendButtonSize = ImGui.CalcTextSize("Send"u8) + + var sendButtonSize = ImGui.CalcTextSize("Send") + ((new Vector2(16, 0) + (ImGui.GetStyle().FramePadding * 2)) * ImGuiHelpers.GlobalScale); var scrollingHeight = ImGui.GetContentRegionAvail().Y - sendButtonSize.Y; ImGui.BeginChild( - "scrolling"u8, + "scrolling", new Vector2(0, scrollingHeight), false, ImGuiWindowFlags.AlwaysHorizontalScrollbar | ImGuiWindowFlags.AlwaysVerticalScrollbar); @@ -189,9 +181,9 @@ internal class ConsoleWindow : Window, IDisposable var childDrawList = ImGui.GetWindowDrawList(); var childSize = ImGui.GetWindowSize(); - var timestampWidth = ImGui.CalcTextSize("00:00:00.000"u8).X; - var levelWidth = ImGui.CalcTextSize("AAA"u8).X; - var separatorWidth = ImGui.CalcTextSize(" | "u8).X; + var timestampWidth = ImGui.CalcTextSize("00:00:00.000").X; + var levelWidth = ImGui.CalcTextSize("AAA").X; + var separatorWidth = ImGui.CalcTextSize(" | ").X; var cursorLogLevel = timestampWidth + separatorWidth; var cursorLogLine = cursorLogLevel + levelWidth + separatorWidth; @@ -225,7 +217,7 @@ internal class ConsoleWindow : Window, IDisposable } ImGui.Selectable( - "###console_null"u8, + "###console_null", true, ImGuiSelectableFlags.AllowItemOverlap | ImGuiSelectableFlags.SpanAllColumns); @@ -238,11 +230,11 @@ internal class ConsoleWindow : Window, IDisposable if (!line.IsMultiline) { - ImGui.Text(line.TimestampString); + ImGui.TextUnformatted(line.TimestampString); ImGui.SameLine(); ImGui.SetCursorPosX(cursorLogLevel); - ImGui.Text(GetTextForLogEventLevel(line.Level)); + ImGui.TextUnformatted(GetTextForLogEventLevel(line.Level)); ImGui.SameLine(); } @@ -258,7 +250,7 @@ internal class ConsoleWindow : Window, IDisposable } else { - ImGui.Text(line.Line); + ImGui.TextUnformatted(line.Line); } var currentLinePosY = ImGui.GetCursorPosY(); @@ -321,7 +313,7 @@ internal class ConsoleWindow : Window, IDisposable unsafe { if (ImGui.InputText( - "##command_box"u8, + "##command_box", ref this.commandText, 255, ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.CallbackCompletion | @@ -341,7 +333,7 @@ internal class ConsoleWindow : Window, IDisposable if (hadColor) ImGui.PopStyleColor(); - if (ImGui.Button("Send"u8, sendButtonSize)) + if (ImGui.Button("Send", sendButtonSize)) { this.ProcessCommand(); } @@ -473,7 +465,7 @@ internal class ConsoleWindow : Window, IDisposable private void DrawOptionsToolbar() { ImGui.PushItemWidth(150.0f * ImGuiHelpers.GlobalScale); - if (ImGui.BeginCombo("##log_level"u8, $"{EntryPoint.LogLevelSwitch.MinimumLevel}+")) + if (ImGui.BeginCombo("##log_level", $"{EntryPoint.LogLevelSwitch.MinimumLevel}+")) { foreach (var value in Enum.GetValues<LogEventLevel>()) { @@ -491,7 +483,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.SameLine(); - var settingsPopup = ImGui.BeginPopup("##console_settings"u8); + var settingsPopup = ImGui.BeginPopup("##console_settings"); if (settingsPopup) { this.DrawSettingsPopup(); @@ -506,7 +498,7 @@ internal class ConsoleWindow : Window, IDisposable this.settingsPopupWasOpen = settingsPopup; if (this.DrawToggleButtonWithTooltip("show_settings", "Show settings", FontAwesomeIcon.List, ref settingsPopup)) - ImGui.OpenPopup("##console_settings"u8); + ImGui.OpenPopup("##console_settings"); ImGui.SameLine(); @@ -537,7 +529,7 @@ internal class ConsoleWindow : Window, IDisposable this.QueueClear(); } - if (ImGui.IsItemHovered()) ImGui.SetTooltip("Clear Log"u8); + if (ImGui.IsItemHovered()) ImGui.SetTooltip("Clear Log"); ImGui.SameLine(); @@ -573,7 +565,7 @@ internal class ConsoleWindow : Window, IDisposable this.killGameArmed = true; } - if (ImGui.IsItemHovered()) ImGui.SetTooltip("Kill game"u8); + if (ImGui.IsItemHovered()) ImGui.SetTooltip("Kill game"); ImGui.SameLine(); @@ -586,7 +578,7 @@ internal class ConsoleWindow : Window, IDisposable inputWidth = ImGui.GetWindowWidth() - (ImGui.GetStyle().WindowPadding.X * 2); if (!breakInputLines) - inputWidth = (inputWidth - ImGui.GetStyle().ItemSpacing.X) / 2; + inputWidth = (inputWidth - ImGui.GetStyle().ItemSpacing.X) / 2; } else { @@ -595,8 +587,8 @@ internal class ConsoleWindow : Window, IDisposable ImGui.PushItemWidth(inputWidth); if (ImGui.InputTextWithHint( - "##textHighlight"u8, - "regex highlight"u8, + "##textHighlight", + "regex highlight", ref this.textHighlight, 2048, ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.AutoSelectAll) @@ -623,53 +615,48 @@ internal class ConsoleWindow : Window, IDisposable ImGui.PushItemWidth(inputWidth); if (ImGui.InputTextWithHint( - "##textFilter"u8, - "regex global filter"u8, + "##textFilter", + "regex global filter", ref this.textFilter, 2048, ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.AutoSelectAll) || ImGui.IsItemDeactivatedAfterEdit()) { - this.RecompileLogFilter(); - } - } + this.compiledLogFilter = null; + this.exceptionLogFilter = null; + try + { + this.compiledLogFilter = new(this.textFilter, RegexOptions.IgnoreCase); - private void RecompileLogFilter() - { - this.compiledLogFilter = null; - this.exceptionLogFilter = null; - try - { - this.compiledLogFilter = new(this.textFilter, RegexOptions.IgnoreCase); + this.QueueRefilter(); + } + catch (Exception e) + { + this.exceptionLogFilter = e; + } - this.QueueRefilter(); + foreach (var log in this.logText) + log.HighlightMatches = null; } - catch (Exception e) - { - this.exceptionLogFilter = e; - } - - foreach (var log in this.logText) - log.HighlightMatches = null; } private void DrawSettingsPopup() { - if (ImGui.Checkbox("Open at startup"u8, ref this.autoOpen)) + if (ImGui.Checkbox("Open at startup", ref this.autoOpen)) { this.configuration.LogOpenAtStartup = this.autoOpen; this.configuration.QueueSave(); } - if (ImGui.Checkbox("Auto-scroll"u8, ref this.autoScroll)) + if (ImGui.Checkbox("Auto-scroll", ref this.autoScroll)) { this.configuration.LogAutoScroll = this.autoScroll; this.configuration.QueueSave(); } - ImGui.Text("Logs buffer"u8); - ImGui.SliderInt("lines"u8, ref this.logLinesLimit, LogLinesMinimum, LogLinesMaximum); - if (ImGui.Button("Apply"u8)) + ImGui.TextUnformatted("Logs buffer"); + ImGui.SliderInt("lines", ref this.logLinesLimit, LogLinesMinimum, LogLinesMaximum); + if (ImGui.Button("Apply")) { this.logLinesLimit = Math.Max(LogLinesMinimum, this.logLinesLimit); @@ -686,15 +673,15 @@ internal class ConsoleWindow : Window, IDisposable PluginFilterEntry? removalEntry = null; using var table = ImRaii.Table( - "plugin_filter_entries"u8, + "plugin_filter_entries", 4, ImGuiTableFlags.Resizable | ImGuiTableFlags.BordersInnerV); if (!table) return; - ImGui.TableSetupColumn("##remove_button"u8, ImGuiTableColumnFlags.WidthFixed, 25.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##source_name"u8, ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##log_level"u8, ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##filter_text"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("##remove_button", ImGuiTableColumnFlags.WidthFixed, 25.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##source_name", ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##log_level", ImGuiTableColumnFlags.WidthFixed, 150.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##filter_text", ImGuiTableColumnFlags.WidthStretch); ImGui.TableNextColumn(); if (ImGuiComponents.IconButton("add_entry", FontAwesomeIcon.Plus)) @@ -715,7 +702,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TableNextColumn(); ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.BeginCombo("##Sources"u8, this.selectedSource, ImGuiComboFlags.HeightLarge)) + if (ImGui.BeginCombo("##Sources", this.selectedSource, ImGuiComboFlags.HeightLarge)) { var sourceNames = Service<PluginManager>.Get().InstalledPlugins .Select(p => p.Manifest.InternalName) @@ -729,12 +716,12 @@ internal class ConsoleWindow : Window, IDisposable .ToList(); ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); - ImGui.InputTextWithHint("##PluginSearchFilter"u8, "Filter Plugin List"u8, ref this.pluginFilter, 2048); + ImGui.InputTextWithHint("##PluginSearchFilter", "Filter Plugin List", ref this.pluginFilter, 2048); ImGui.Separator(); - if (sourceNames.Count == 0) + if (!sourceNames.Any()) { - ImGui.TextColored(ImGuiColors.DalamudRed, "No Results"u8); + ImGui.TextColored(ImGuiColors.DalamudRed, "No Results"); } foreach (var selectable in sourceNames) @@ -766,7 +753,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.TableNextColumn(); ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.BeginCombo("##levels"u8, $"{entry.Level}+")) + if (ImGui.BeginCombo("##levels", $"{entry.Level}+")) { foreach (var value in Enum.GetValues<LogEventLevel>()) { @@ -784,7 +771,7 @@ internal class ConsoleWindow : Window, IDisposable ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); var entryFilter = entry.Filter; if (ImGui.InputTextWithHint( - "##filter"u8, + "##filter", $"{entry.Source} regex filter", ref entryFilter, 2048, @@ -812,15 +799,15 @@ internal class ConsoleWindow : Window, IDisposable { if (string.IsNullOrEmpty(this.commandText)) return; - + this.historyPos = -1; - + if (this.commandText != this.configuration.LogCommandHistory.LastOrDefault()) this.configuration.LogCommandHistory.Add(this.commandText); - + if (this.configuration.LogCommandHistory.Count > HistorySize) this.configuration.LogCommandHistory.RemoveAt(0); - + this.configuration.QueueSave(); this.lastCmdSuccess = Service<ConsoleManager>.Get().ProcessCommand(this.commandText); @@ -835,28 +822,32 @@ internal class ConsoleWindow : Window, IDisposable } } - private int CommandInputCallback(ref ImGuiInputTextCallbackData data) + private unsafe int CommandInputCallback(ImGuiInputTextCallbackData* data) { - switch (data.EventFlag) + var ptr = new ImGuiInputTextCallbackDataPtr(data); + + switch (data->EventFlag) { case ImGuiInputTextFlags.CallbackEdit: this.completionZipText = null; this.completionTabIdx = 0; break; - + case ImGuiInputTextFlags.CallbackCompletion: - var text = Encoding.UTF8.GetString(data.BufTextSpan); + var textBytes = new byte[data->BufTextLen]; + Marshal.Copy((IntPtr)data->Buf, textBytes, 0, data->BufTextLen); + var text = Encoding.UTF8.GetString(textBytes); var words = text.Split(); // We can't do any completion for parameters at the moment since it just calls into CommandHandler if (words.Length > 1) return 0; - + var wordToComplete = words[0]; if (wordToComplete.IsNullOrWhitespace()) return 0; - + if (this.completionZipText is not null) wordToComplete = this.completionZipText; @@ -887,11 +878,11 @@ internal class ConsoleWindow : Window, IDisposable toComplete = candidates.ElementAt(this.completionTabIdx); this.completionTabIdx = (this.completionTabIdx + 1) % candidates.Count(); } - + if (toComplete != null) { - data.DeleteChars(0, data.BufTextLen); - data.InsertChars(0, toComplete); + ptr.DeleteChars(0, ptr.BufTextLen); + ptr.InsertChars(0, toComplete); } } @@ -900,14 +891,14 @@ internal class ConsoleWindow : Window, IDisposable case ImGuiInputTextFlags.CallbackHistory: var prevPos = this.historyPos; - if (data.EventKey == ImGuiKey.UpArrow) + if (ptr.EventKey == ImGuiKey.UpArrow) { if (this.historyPos == -1) this.historyPos = this.configuration.LogCommandHistory.Count - 1; else if (this.historyPos > 0) this.historyPos--; } - else if (data.EventKey == ImGuiKey.DownArrow) + else if (data->EventKey == ImGuiKey.DownArrow) { if (this.historyPos != -1) { @@ -922,8 +913,8 @@ internal class ConsoleWindow : Window, IDisposable { var historyStr = this.historyPos >= 0 ? this.configuration.LogCommandHistory[this.historyPos] : string.Empty; - data.DeleteChars(0, data.BufTextLen); - data.InsertChars(0, historyStr); + ptr.DeleteChars(0, ptr.BufTextLen); + ptr.InsertChars(0, historyStr); } break; @@ -1112,7 +1103,7 @@ internal class ConsoleWindow : Window, IDisposable charOffsets[charOffsetsIndex++] = line.Length; var screenPos = ImGui.GetCursorScreenPos(); - var drawList = ImGui.GetWindowDrawList().Handle; + var drawList = ImGui.GetWindowDrawList().NativePtr; var font = ImGui.GetFont(); var size = ImGui.GetFontSize(); var scale = size / font.FontSize; diff --git a/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs b/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs index 64de5e87d..7678b395e 100644 --- a/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs +++ b/Dalamud/Interface/Internal/Windows/Data/DataWindow.cs @@ -1,7 +1,6 @@ using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; using Dalamud.Interface.Components; using Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -9,6 +8,7 @@ using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Utility; +using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Data; @@ -19,8 +19,9 @@ namespace Dalamud.Interface.Internal.Windows.Data; internal class DataWindow : Window, IDisposable { private readonly IDataWindowWidget[] modules = - [ + { new AddonInspectorWidget(), + new AddonInspectorWidget2(), new AddonLifecycleWidget(), new AddonWidget(), new AddressesWidget(), @@ -44,16 +45,13 @@ internal class DataWindow : Window, IDisposable new ImGuiWidget(), new InventoryWidget(), new KeyStateWidget(), - new LogMessageMonitorWidget(), new MarketBoardWidget(), new NetworkMonitorWidget(), - new NounProcessorWidget(), new ObjectTableWidget(), new PartyListWidget(), new PluginIpcWidget(), new SeFontTestWidget(), new ServicesWidget(), - new SeStringCreatorWidget(), new SeStringRendererTestWidget(), new StartInfoWidget(), new TargetWidget(), @@ -62,15 +60,13 @@ internal class DataWindow : Window, IDisposable new ToastWidget(), new UiColorWidget(), new UldWidget(), - new VfsWidget(), - ]; + }; private readonly IOrderedEnumerable<IDataWindowWidget> orderedModules; private bool isExcept; private bool selectionCollapsed; - - private bool isLoaded; + private IDataWindowWidget currentWidget; /// <summary> /// Initializes a new instance of the <see cref="DataWindow"/> class. @@ -83,11 +79,10 @@ internal class DataWindow : Window, IDisposable this.RespectCloseHotkey = false; this.orderedModules = this.modules.OrderBy(module => module.DisplayName); - this.CurrentWidget = this.orderedModules.First(); - } + this.currentWidget = this.orderedModules.First(); - /// <summary>Gets or sets the current widget.</summary> - public IDataWindowWidget CurrentWidget { get; set; } + this.Load(); + } /// <inheritdoc/> public void Dispose() => this.modules.OfType<IDisposable>().AggregateToDisposable().Dispose(); @@ -95,7 +90,6 @@ internal class DataWindow : Window, IDisposable /// <inheritdoc/> public override void OnOpen() { - this.Load(); } /// <inheritdoc/> @@ -103,20 +97,6 @@ internal class DataWindow : Window, IDisposable { } - /// <summary>Gets the data window widget of the specified type.</summary> - /// <typeparam name="T">Type of the data window widget to find.</typeparam> - /// <returns>Found widget.</returns> - public T GetWidget<T>() where T : IDataWindowWidget - { - foreach (var m in this.modules) - { - if (m is T w) - return w; - } - - throw new ArgumentException($"No widget of type {typeof(T).FullName} found."); - } - /// <summary> /// Set the DataKind dropdown menu. /// </summary> @@ -128,7 +108,7 @@ internal class DataWindow : Window, IDisposable if (this.modules.FirstOrDefault(module => module.IsWidgetCommand(dataKind)) is { } targetModule) { - this.CurrentWidget = targetModule; + this.currentWidget = targetModule; } else { @@ -148,10 +128,10 @@ internal class DataWindow : Window, IDisposable return; } - if (ImGui.BeginTable("XlData_Table"u8, 2, ImGuiTableFlags.BordersInnerV | ImGuiTableFlags.Resizable)) + if (ImGui.BeginTable("XlData_Table", 2, ImGuiTableFlags.BordersInnerV | ImGuiTableFlags.Resizable)) { - ImGui.TableSetupColumn("##SelectionColumn"u8, ImGuiTableColumnFlags.WidthFixed, 200.0f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("##ContentsColumn"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("##SelectionColumn", ImGuiTableColumnFlags.WidthFixed, 200.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##ContentsColumn", ImGuiTableColumnFlags.WidthStretch); ImGui.TableNextColumn(); this.DrawSelection(); @@ -165,15 +145,15 @@ internal class DataWindow : Window, IDisposable private void DrawSelection() { - if (ImGui.BeginChild("XlData_SelectionPane"u8, ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("XlData_SelectionPane", ImGui.GetContentRegionAvail())) { - if (ImGui.BeginListBox("WidgetSelectionListbox"u8, ImGui.GetContentRegionAvail())) + if (ImGui.BeginListBox("WidgetSelectionListbox", ImGui.GetContentRegionAvail())) { foreach (var widget in this.orderedModules) { - if (ImGui.Selectable(widget.DisplayName, this.CurrentWidget == widget)) + if (ImGui.Selectable(widget.DisplayName, this.currentWidget == widget)) { - this.CurrentWidget = widget; + this.currentWidget = widget; } } @@ -186,7 +166,7 @@ internal class DataWindow : Window, IDisposable private void DrawContents() { - if (ImGui.BeginChild("XlData_ContentsPane"u8, ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("XlData_ContentsPane", ImGui.GetContentRegionAvail())) { if (ImGuiComponents.IconButton("collapse-expand", this.selectionCollapsed ? FontAwesomeIcon.ArrowRight : FontAwesomeIcon.ArrowLeft)) { @@ -202,13 +182,12 @@ internal class DataWindow : Window, IDisposable if (ImGuiComponents.IconButton("forceReload", FontAwesomeIcon.Sync)) { - this.isLoaded = false; this.Load(); } if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Force Reload"u8); + ImGui.SetTooltip("Force Reload"); } ImGui.SameLine(); @@ -217,20 +196,20 @@ internal class DataWindow : Window, IDisposable ImGuiHelpers.ScaledDummy(10.0f); - if (ImGui.BeginChild("XlData_WidgetContents"u8, ImGui.GetContentRegionAvail())) + if (ImGui.BeginChild("XlData_WidgetContents", ImGui.GetContentRegionAvail())) { if (copy) ImGui.LogToClipboard(); try { - if (this.CurrentWidget is { Ready: true }) + if (this.currentWidget is { Ready: true }) { - this.CurrentWidget.Draw(); + this.currentWidget.Draw(); } else { - ImGui.Text("Data not ready."u8); + ImGui.TextUnformatted("Data not ready."); } this.isExcept = false; @@ -244,7 +223,7 @@ internal class DataWindow : Window, IDisposable this.isExcept = true; - ImGui.Text(ex.ToString()); + ImGui.TextUnformatted(ex.ToString()); } } @@ -256,11 +235,6 @@ internal class DataWindow : Window, IDisposable private void Load() { - if (this.isLoaded) - return; - - this.isLoaded = true; - foreach (var widget in this.modules) { widget.Load(); diff --git a/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs b/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs index d286c4428..24adb8bc5 100644 --- a/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs +++ b/Dalamud/Interface/Internal/Windows/Data/DataWindowWidgetExtensions.cs @@ -1,9 +1,10 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data; /// <summary>Useful functions for implementing data window widgets.</summary> @@ -25,11 +26,11 @@ internal static class DataWindowWidgetExtensions var xoff = ImGui.GetColumnWidth() - width; offset.X += xoff; ImGui.SetCursorPosX(ImGui.GetCursorPosX() + xoff); - ImGui.Text(s); + ImGui.TextUnformatted(s); } else { - ImGui.Text(s); + ImGui.TextUnformatted(s); } if (ImGui.IsItemHovered()) @@ -40,7 +41,7 @@ internal static class DataWindowWidgetExtensions ImGui.SetNextWindowSizeConstraints(Vector2.One, new(wrx, float.MaxValue)); ImGui.BeginTooltip(); ImGui.PushTextWrapPos(wrx); - ImGui.TextWrapped(s); + ImGui.TextWrapped(s.Replace("%", "%%")); ImGui.PopTextWrapPos(); ImGui.EndTooltip(); } diff --git a/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs index 2031c66c2..5cede00cf 100644 --- a/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/GameInventoryTestWidget.cs @@ -1,13 +1,15 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game.Inventory; using Dalamud.Game.Inventory.InventoryEventArgTypes; using Dalamud.Interface.Colors; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Logging.Internal; +using ImGuiNET; + using Serilog.Events; namespace Dalamud.Interface.Internal.Windows.Data; @@ -17,14 +19,14 @@ namespace Dalamud.Interface.Internal.Windows.Data; /// </summary> internal class GameInventoryTestWidget : IDataWindowWidget { - private static readonly ModuleLog Log = ModuleLog.Create<GameInventoryTestWidget>(); + private static readonly ModuleLog Log = new(nameof(GameInventoryTestWidget)); private GameInventoryPluginScoped? scoped; private bool standardEnabled; private bool rawEnabled; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["gameinventorytest"]; + public string[]? CommandShortcuts { get; init; } = { "gameinventorytest" }; /// <inheritdoc/> public string DisplayName { get; init; } = "GameInventory Test"; @@ -40,22 +42,22 @@ internal class GameInventoryTestWidget : IDataWindowWidget { if (Service<DalamudConfiguration>.Get().LogLevel > LogEventLevel.Information) { - ImGui.TextColoredWrapped( + ImGuiHelpers.SafeTextColoredWrapped( ImGuiColors.DalamudRed, - "Enable LogLevel=Information display to see the logs."u8); + "Enable LogLevel=Information display to see the logs."); } - + using var table = ImRaii.Table(this.DisplayName, 3, ImGuiTableFlags.SizingFixedFit); if (!table.Success) return; ImGui.TableNextColumn(); - ImGui.Text("Standard Logging"u8); + ImGui.TextUnformatted("Standard Logging"); ImGui.TableNextColumn(); using (ImRaii.Disabled(this.standardEnabled)) { - if (ImGui.Button("Enable##standard-enable"u8) && !this.standardEnabled) + if (ImGui.Button("Enable##standard-enable") && !this.standardEnabled) { this.scoped ??= new(); this.scoped.InventoryChanged += ScopedOnInventoryChanged; @@ -66,7 +68,7 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextColumn(); using (ImRaii.Disabled(!this.standardEnabled)) { - if (ImGui.Button("Disable##standard-disable"u8) && this.scoped is not null && this.standardEnabled) + if (ImGui.Button("Disable##standard-disable") && this.scoped is not null && this.standardEnabled) { this.scoped.InventoryChanged -= ScopedOnInventoryChanged; this.standardEnabled = false; @@ -81,12 +83,12 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Raw Logging"u8); + ImGui.TextUnformatted("Raw Logging"); ImGui.TableNextColumn(); using (ImRaii.Disabled(this.rawEnabled)) { - if (ImGui.Button("Enable##raw-enable"u8) && !this.rawEnabled) + if (ImGui.Button("Enable##raw-enable") && !this.rawEnabled) { this.scoped ??= new(); this.scoped.InventoryChangedRaw += ScopedOnInventoryChangedRaw; @@ -97,7 +99,7 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextColumn(); using (ImRaii.Disabled(!this.rawEnabled)) { - if (ImGui.Button("Disable##raw-disable"u8) && this.scoped is not null && this.rawEnabled) + if (ImGui.Button("Disable##raw-disable") && this.scoped is not null && this.rawEnabled) { this.scoped.InventoryChangedRaw -= ScopedOnInventoryChangedRaw; this.rawEnabled = false; @@ -112,12 +114,12 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("All"u8); + ImGui.TextUnformatted("All"); ImGui.TableNextColumn(); using (ImRaii.Disabled(this.standardEnabled && this.rawEnabled)) { - if (ImGui.Button("Enable##all-enable"u8)) + if (ImGui.Button("Enable##all-enable")) { this.scoped ??= new(); if (!this.standardEnabled) @@ -131,7 +133,7 @@ internal class GameInventoryTestWidget : IDataWindowWidget ImGui.TableNextColumn(); using (ImRaii.Disabled(this.scoped is null)) { - if (ImGui.Button("Disable##all-disable"u8)) + if (ImGui.Button("Disable##all-disable")) { ((IInternalDisposableService)this.scoped)?.DisposeService(); this.scoped = null; diff --git a/Dalamud/Interface/Internal/Windows/Data/WidgetUtil.cs b/Dalamud/Interface/Internal/Windows/Data/WidgetUtil.cs deleted file mode 100644 index 58cc672e8..000000000 --- a/Dalamud/Interface/Internal/Windows/Data/WidgetUtil.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Interface.Internal.Windows.Data; - -/// <summary> -/// Common utilities used in Widgets. -/// </summary> -internal class WidgetUtil -{ - /// <summary> - /// Draws text that can be copied on click. - /// </summary> - /// <param name="text">The text shown and to be copied.</param> - /// <param name="tooltipText">The text in the tooltip.</param> - internal static void DrawCopyableText(string text, string tooltipText = "Copy") - { - ImGui.TextWrapped(text); - - if (ImGui.IsItemHovered()) - { - ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); - ImGui.BeginTooltip(); - ImGui.Text(tooltipText); - ImGui.EndTooltip(); - } - - if (ImGui.IsItemClicked()) - { - ImGui.SetClipboardText(text); - } - } -} diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonInspectorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonInspectorWidget.cs index 95a5616b1..e11404dec 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonInspectorWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonInspectorWidget.cs @@ -5,10 +5,10 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class AddonInspectorWidget : IDataWindowWidget { - private UiDebug.UiDebug? addonInspector; - + private UiDebug? addonInspector; + /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["ai", "addoninspector"]; + public string[]? CommandShortcuts { get; init; } = { "ai", "addoninspector" }; /// <inheritdoc/> public string DisplayName { get; init; } = "Addon Inspector"; @@ -19,7 +19,7 @@ internal class AddonInspectorWidget : IDataWindowWidget /// <inheritdoc/> public void Load() { - this.addonInspector = new UiDebug.UiDebug(); + this.addonInspector = new UiDebug(); if (this.addonInspector is not null) { diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonInspectorWidget2.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonInspectorWidget2.cs new file mode 100644 index 000000000..6cd6ecb0b --- /dev/null +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonInspectorWidget2.cs @@ -0,0 +1,35 @@ +namespace Dalamud.Interface.Internal.Windows.Data.Widgets; + +/// <summary> +/// Widget for displaying addon inspector. +/// </summary> +internal class AddonInspectorWidget2 : IDataWindowWidget +{ + private UiDebug2.UiDebug2? addonInspector2; + + /// <inheritdoc/> + public string[]? CommandShortcuts { get; init; } = ["ai2", "addoninspector2"]; + + /// <inheritdoc/> + public string DisplayName { get; init; } = "Addon Inspector v2 (Testing)"; + + /// <inheritdoc/> + public bool Ready { get; set; } + + /// <inheritdoc/> + public void Load() + { + this.addonInspector2 = new UiDebug2.UiDebug2(); + + if (this.addonInspector2 is not null) + { + this.Ready = true; + } + } + + /// <inheritdoc/> + public void Draw() + { + this.addonInspector2?.Draw(); + } +} diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs index 0316cc84e..53066765e 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonLifecycleWidget.cs @@ -1,9 +1,11 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; +using System.Linq; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Addon.Lifecycle; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Utility; +using Dalamud.Interface.Colors; +using Dalamud.Interface.Utility; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -17,11 +19,11 @@ public class AddonLifecycleWidget : IDataWindowWidget /// <inheritdoc/> public string DisplayName { get; init; } = "Addon Lifecycle"; - + /// <inheritdoc/> - [MemberNotNullWhen(true, nameof(AddonLifecycle))] + [MemberNotNullWhen(true, "AddonLifecycle")] public bool Ready { get; set; } - + private AddonLifecycle? AddonLifecycle { get; set; } /// <inheritdoc/> @@ -36,48 +38,105 @@ public class AddonLifecycleWidget : IDataWindowWidget this.Ready = true; }); } - + /// <inheritdoc/> public void Draw() { if (!this.Ready) { - ImGui.Text("AddonLifecycle Reference is null, reload module."u8); + ImGui.Text("AddonLifecycle Reference is null, reload module."); return; } - foreach (var (eventType, addonListeners) in this.AddonLifecycle.EventListeners) + if (ImGui.CollapsingHeader("Listeners")) { - using var eventId = ImRaii.PushId(eventType.ToString()); + ImGui.Indent(); + this.DrawEventListeners(); + ImGui.Unindent(); + } + if (ImGui.CollapsingHeader("ReceiveEvent Hooks")) + { + ImGui.Indent(); + this.DrawReceiveEventHooks(); + ImGui.Unindent(); + } + } + + private void DrawEventListeners() + { + if (!this.Ready) return; + + foreach (var eventType in Enum.GetValues<AddonEvent>()) + { if (ImGui.CollapsingHeader(eventType.ToString())) { - using var eventIndent = ImRaii.PushIndent(); + ImGui.Indent(); + var listeners = this.AddonLifecycle.EventListeners.Where(listener => listener.EventType == eventType).ToList(); - if (addonListeners.Count == 0) + if (listeners.Count == 0) { - ImGui.Text("No Addons Registered for Event"u8); + ImGui.Text("No Listeners Registered for Event"); } - - foreach (var (addonName, listeners) in addonListeners) + + if (ImGui.BeginTable("AddonLifecycleListenersTable", 2)) { - using var addonId = ImRaii.PushId(addonName); + ImGui.TableSetupColumn("##AddonName", ImGuiTableColumnFlags.WidthFixed, 100.0f * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("##MethodInvoke", ImGuiTableColumnFlags.WidthStretch); - if (ImGui.CollapsingHeader(addonName.IsNullOrEmpty() ? "GLOBAL" : addonName)) + foreach (var listener in listeners) { - using var addonIndent = ImRaii.PushIndent(); + ImGui.TableNextColumn(); + ImGui.Text(listener.AddonName is "" ? "GLOBAL" : listener.AddonName); - if (listeners.Count == 0) - { - ImGui.Text("No Listeners Registered for Event"u8); - } - - foreach (var listener in listeners) - { - ImGui.Text($"{listener.FunctionDelegate.Method.DeclaringType?.FullName ?? "Unknown Declaring Type"}::{listener.FunctionDelegate.Method.Name}"); - } + ImGui.TableNextColumn(); + ImGui.Text($"{listener.FunctionDelegate.Method.DeclaringType?.FullName ?? "Unknown Declaring Type"}::{listener.FunctionDelegate.Method.Name}"); } + + ImGui.EndTable(); } + + ImGui.Unindent(); + } + } + } + + private void DrawReceiveEventHooks() + { + if (!this.Ready) return; + + var listeners = this.AddonLifecycle.ReceiveEventListeners; + + if (listeners.Count == 0) + { + ImGui.Text("No ReceiveEvent Hooks are Registered"); + } + + foreach (var receiveEventListener in this.AddonLifecycle.ReceiveEventListeners) + { + if (ImGui.CollapsingHeader(string.Join(", ", receiveEventListener.AddonNames))) + { + ImGui.Columns(2); + + ImGui.Text("Hook Address"); + ImGui.NextColumn(); + ImGui.Text(receiveEventListener.FunctionAddress.ToString("X")); + + ImGui.NextColumn(); + ImGui.Text("Hook Status"); + ImGui.NextColumn(); + if (receiveEventListener.Hook is null) + { + ImGui.Text("Hook is null"); + } + else + { + var color = receiveEventListener.Hook.IsEnabled ? ImGuiColors.HealerGreen : ImGuiColors.DalamudRed; + var text = receiveEventListener.Hook.IsEnabled ? "Enabled" : "Disabled"; + ImGui.TextColored(color, text); + } + + ImGui.Columns(1); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs index 85ccd471d..18bcd9334 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddonWidget.cs @@ -1,21 +1,21 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Gui; -using Dalamud.Game.NativeWrapper; +using Dalamud.Game.Gui; +using Dalamud.Memory; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> /// Widget for displaying Addon Data. /// </summary> -internal class AddonWidget : IDataWindowWidget +internal unsafe class AddonWidget : IDataWindowWidget { private string inputAddonName = string.Empty; private int inputAddonIndex; - private AgentInterfacePtr agentInterfacePtr; + private nint findAgentInterfacePtr; /// <inheritdoc/> - public string DisplayName { get; init; } = "Addon"; + public string DisplayName { get; init; } = "Addon"; /// <inheritdoc/> public string[]? CommandShortcuts { get; init; } @@ -34,33 +34,36 @@ internal class AddonWidget : IDataWindowWidget { var gameGui = Service<GameGui>.Get(); - ImGui.InputText("Addon Name"u8, ref this.inputAddonName, 256); - ImGui.InputInt("Addon Index"u8, ref this.inputAddonIndex); + ImGui.InputText("Addon Name", ref this.inputAddonName, 256); + ImGui.InputInt("Addon Index", ref this.inputAddonIndex); if (this.inputAddonName.IsNullOrEmpty()) return; - var addon = gameGui.GetAddonByName(this.inputAddonName, this.inputAddonIndex); - if (addon.IsNull) + var address = gameGui.GetAddonByName(this.inputAddonName, this.inputAddonIndex); + + if (address == nint.Zero) { - ImGui.Text("Null"u8); + ImGui.Text("Null"); return; } - ImGui.Text($"{addon.Name} - {Util.DescribeAddress(addon)}\n v:{addon.IsVisible} x:{addon.X} y:{addon.Y} s:{addon.Scale}, w:{addon.Width}, h:{addon.Height}"); + var addon = (FFXIVClientStructs.FFXIV.Component.GUI.AtkUnitBase*)address; + var name = addon->NameString; + ImGui.TextUnformatted($"{name} - {Util.DescribeAddress(address)}\n v:{addon->IsVisible} x:{addon->X} y:{addon->Y} s:{addon->Scale}, w:{addon->RootNode->Width}, h:{addon->RootNode->Height}"); - if (ImGui.Button("Find Agent"u8)) + if (ImGui.Button("Find Agent")) { - this.agentInterfacePtr = gameGui.FindAgentInterface(addon); + this.findAgentInterfacePtr = gameGui.FindAgentInterface(address); } - if (!this.agentInterfacePtr.IsNull) + if (this.findAgentInterfacePtr != nint.Zero) { - ImGui.Text($"Agent: {Util.DescribeAddress(this.agentInterfacePtr)}"); + ImGui.TextUnformatted($"Agent: {Util.DescribeAddress(this.findAgentInterfacePtr)}"); ImGui.SameLine(); - if (ImGui.Button("C"u8)) - ImGui.SetClipboardText(this.agentInterfacePtr.Address.ToString("X")); + if (ImGui.Button("C")) + ImGui.SetClipboardText(this.findAgentInterfacePtr.ToInt64().ToString("X")); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs index 6a4f2c9ab..c7ed526e1 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AddressesWidget.cs @@ -1,10 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Game; -using Dalamud.Interface.Utility.Raii; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -16,10 +16,10 @@ internal class AddressesWidget : IDataWindowWidget private nint sigResult = nint.Zero; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["address"]; + public string[]? CommandShortcuts { get; init; } = { "address" }; /// <inheritdoc/> - public string DisplayName { get; init; } = "Addresses"; + public string DisplayName { get; init; } = "Addresses"; /// <inheritdoc/> public bool Ready { get; set; } @@ -29,12 +29,12 @@ internal class AddressesWidget : IDataWindowWidget { this.Ready = true; } - + /// <inheritdoc/> public void Draw() { - ImGui.InputText(".text sig"u8, ref this.inputSig, 400); - if (ImGui.Button("Resolve"u8)) + ImGui.InputText(".text sig", ref this.inputSig, 400); + if (ImGui.Button("Resolve")) { try { @@ -47,24 +47,22 @@ internal class AddressesWidget : IDataWindowWidget } } - ImGui.AlignTextToFramePadding(); - ImGui.Text($"Result: {this.sigResult:X}"); + ImGui.Text($"Result: {this.sigResult.ToInt64():X}"); ImGui.SameLine(); - if (ImGui.Button($"C##{this.sigResult:X}")) - ImGui.SetClipboardText($"{this.sigResult:X}"); + if (ImGui.Button($"C##{this.sigResult.ToInt64():X}")) + ImGui.SetClipboardText(this.sigResult.ToInt64().ToString("X")); foreach (var debugScannedValue in BaseAddressResolver.DebugScannedValues) { - ImGui.Text($"{debugScannedValue.Key}"); + ImGui.TextUnformatted($"{debugScannedValue.Key}"); foreach (var valueTuple in debugScannedValue.Value) { - using var indent = ImRaii.PushIndent(10.0f); - ImGui.AlignTextToFramePadding(); - ImGui.Text($"{valueTuple.ClassName} - {Util.DescribeAddress(valueTuple.Address)}"); + ImGui.TextUnformatted( + $" {valueTuple.ClassName} - {Util.DescribeAddress(valueTuple.Address)}"); ImGui.SameLine(); - if (ImGui.Button($"C##{valueTuple.Address:X}")) - ImGui.SetClipboardText($"{valueTuple.Address:X}"); + if (ImGui.Button($"C##{valueTuple.Address.ToInt64():X}")) + ImGui.SetClipboardText(valueTuple.Address.ToInt64().ToString("X")); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs index 68ba93b36..9a3b231e5 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AetherytesWidget.cs @@ -1,6 +1,6 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Aetherytes; -using Dalamud.Interface.Utility.Raii; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -9,16 +9,14 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class AetherytesWidget : IDataWindowWidget { - private const ImGuiTableFlags TableFlags = ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders; - /// <inheritdoc/> public bool Ready { get; set; } /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["aetherytes"]; - + public string[]? CommandShortcuts { get; init; } = { "aetherytes" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Aetherytes"; + public string DisplayName { get; init; } = "Aetherytes"; /// <inheritdoc/> public void Load() @@ -29,22 +27,21 @@ internal class AetherytesWidget : IDataWindowWidget /// <inheritdoc/> public void Draw() { - using var table = ImRaii.Table("##aetheryteTable"u8, 11, TableFlags); - if (!table.Success) + if (!ImGui.BeginTable("##aetheryteTable", 11, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders)) return; ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Idx"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("ID"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Zone"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Ward"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Plot"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Sub"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Gil"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Fav"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Shared"u8, ImGuiTableColumnFlags.WidthFixed); - ImGui.TableSetupColumn("Apartment"u8, ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Idx", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("ID", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Zone", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Ward", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Plot", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Sub", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Gil", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Fav", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Shared", ImGuiTableColumnFlags.WidthFixed); + ImGui.TableSetupColumn("Apartment", ImGuiTableColumnFlags.WidthFixed); ImGui.TableHeadersRow(); var tpList = Service<AetheryteList>.Get(); @@ -56,37 +53,39 @@ internal class AetherytesWidget : IDataWindowWidget continue; ImGui.TableNextColumn(); // Idx - ImGui.Text($"{i}"); + ImGui.TextUnformatted($"{i}"); ImGui.TableNextColumn(); // Name - ImGui.Text($"{info.AetheryteData.ValueNullable?.PlaceName.ValueNullable?.Name}"); + ImGui.TextUnformatted($"{info.AetheryteData.ValueNullable?.PlaceName.ValueNullable?.Name}"); ImGui.TableNextColumn(); // ID - ImGui.Text($"{info.AetheryteId}"); + ImGui.TextUnformatted($"{info.AetheryteId}"); ImGui.TableNextColumn(); // Zone - ImGui.Text($"{info.TerritoryId}"); + ImGui.TextUnformatted($"{info.TerritoryId}"); ImGui.TableNextColumn(); // Ward - ImGui.Text($"{info.Ward}"); + ImGui.TextUnformatted($"{info.Ward}"); ImGui.TableNextColumn(); // Plot - ImGui.Text($"{info.Plot}"); + ImGui.TextUnformatted($"{info.Plot}"); ImGui.TableNextColumn(); // Sub - ImGui.Text($"{info.SubIndex}"); + ImGui.TextUnformatted($"{info.SubIndex}"); ImGui.TableNextColumn(); // Gil - ImGui.Text($"{info.GilCost}"); + ImGui.TextUnformatted($"{info.GilCost}"); ImGui.TableNextColumn(); // Favourite - ImGui.Text($"{info.IsFavourite}"); + ImGui.TextUnformatted($"{info.IsFavourite}"); ImGui.TableNextColumn(); // Shared - ImGui.Text($"{info.IsSharedHouse}"); + ImGui.TextUnformatted($"{info.IsSharedHouse}"); ImGui.TableNextColumn(); // Apartment - ImGui.Text($"{info.IsApartment}"); + ImGui.TextUnformatted($"{info.IsApartment}"); } + + ImGui.EndTable(); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs index 6f9bbdb1b..c134e02c3 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/AtkArrayDataBrowserWidget.cs @@ -1,16 +1,19 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using FFXIVClientStructs.FFXIV.Client.UI; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; + using Lumina.Text.ReadOnly; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; +#pragma warning disable SeStringRenderer + /// <summary> /// Widget for displaying AtkArrayData. /// </summary> @@ -25,17 +28,17 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget private int selectedExtendArray; private string searchTerm = string.Empty; - private bool hideUnsetStringArrayEntries; - private bool hideUnsetExtendArrayEntries; - private bool showTextAddress; - private bool showMacroString; + private bool hideUnsetStringArrayEntries = false; + private bool hideUnsetExtendArrayEntries = false; + private bool showTextAddress = false; + private bool showMacroString = false; /// <inheritdoc/> public bool Ready { get; set; } /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["atkarray"]; - + public string[]? CommandShortcuts { get; init; } = { "atkarray" }; + /// <inheritdoc/> public string DisplayName { get; init; } = "Atk Array Data"; @@ -48,7 +51,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget /// <inheritdoc/> public void Draw() { - using var tabs = ImRaii.TabBar("AtkArrayDataTabs"u8); + using var tabs = ImRaii.TabBar("AtkArrayDataTabs"); if (!tabs) return; this.DrawNumberArrayTab(); @@ -56,14 +59,32 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget this.DrawExtendArrayTab(); } + private static void DrawCopyableText(string text, string tooltipText) + { + ImGuiHelpers.SafeTextWrapped(text); + + if (ImGui.IsItemHovered()) + { + ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); + ImGui.BeginTooltip(); + ImGui.TextUnformatted(tooltipText); + ImGui.EndTooltip(); + } + + if (ImGui.IsItemClicked()) + { + ImGui.SetClipboardText(text); + } + } + private void DrawArrayList(Type? arrayType, int arrayCount, short* arrayKeys, AtkArrayData** arrays, ref int selectedIndex) { - using var table = ImRaii.Table("ArkArrayTable"u8, 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.Borders, new Vector2(300, -1)); + using var table = ImRaii.Table("ArkArrayTable", 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.Borders, new Vector2(300, -1)); if (!table) return; - ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 30); - ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Size"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 30); + ImGui.TableSetupColumn("Type", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Size", ImGuiTableColumnFlags.WidthFixed, 40); ImGui.TableSetupScrollFreeze(3, 1); ImGui.TableHeadersRow(); @@ -83,10 +104,11 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget var stringArrayData = (StringArrayData*)arrays[arrayIndex]; for (var rowIndex = 0; rowIndex < arrays[arrayIndex]->Size; rowIndex++) { - if (!stringArrayData->StringArray[rowIndex].HasValue) + var isNull = (nint)stringArrayData->StringArray[rowIndex] == 0; + if (isNull) continue; - if (new ReadOnlySeStringSpan(stringArrayData->StringArray[rowIndex].Value).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) + if (new ReadOnlySeStringSpan(stringArrayData->StringArray[rowIndex]).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) rowsFound++; } @@ -104,7 +126,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.TableNextColumn(); // Type if (arrayType != null && Enum.IsDefined(arrayType, arrayIndex)) { - ImGui.Text(Enum.GetName(arrayType, arrayIndex)); + ImGui.TextUnformatted(Enum.GetName(arrayType, arrayIndex)); } else if (inUse && arrays[arrayIndex]->SubscribedAddonsCount > 0) { @@ -116,53 +138,56 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget continue; using (ImRaii.PushColor(ImGuiCol.Text, 0xFF00FFFF)) - ImGui.Text(raptureAtkUnitManager->GetAddonById(arrays[arrayIndex]->SubscribedAddons[j])->NameString); + ImGui.TextUnformatted(raptureAtkUnitManager->GetAddonById(arrays[arrayIndex]->SubscribedAddons[j])->NameString); break; } } ImGui.TableNextColumn(); // Size if (inUse) - ImGui.Text((rowsFound > 0 ? rowsFound : arrays[arrayIndex]->Size).ToString()); + ImGui.TextUnformatted((rowsFound > 0 ? rowsFound : arrays[arrayIndex]->Size).ToString()); } } private void DrawArrayHeader(Type? arrayType, string type, int index, AtkArrayData* array) { - ImGui.Text($"{type} Array #{index}"); + ImGui.TextUnformatted($"{type} Array #{index}"); if (arrayType != null && Enum.IsDefined(arrayType, index)) { ImGui.SameLine(0, 0); - ImGui.Text($" ({Enum.GetName(arrayType, index)})"); + ImGui.TextUnformatted($" ({Enum.GetName(arrayType, index)})"); } ImGui.SameLine(); - ImGui.Text("–"u8); + ImGui.TextUnformatted("–"); ImGui.SameLine(); - ImGui.Text("Address: "u8); + ImGui.TextUnformatted("Address: "); ImGui.SameLine(0, 0); - WidgetUtil.DrawCopyableText($"0x{(nint)array:X}", "Copy address"); + DrawCopyableText($"0x{(nint)array:X}", "Copy address"); if (array->SubscribedAddonsCount > 0) { ImGui.SameLine(); - ImGui.Text("–"u8); + ImGui.TextUnformatted("–"); ImGui.SameLine(); using (ImRaii.PushColor(ImGuiCol.Text, 0xFF00FFFF)) - ImGui.Text($"{array->SubscribedAddonsCount} Subscribed Addon" + (array->SubscribedAddonsCount > 1 ? 's' : string.Empty)); + ImGui.TextUnformatted($"{array->SubscribedAddonsCount} Subscribed Addon" + (array->SubscribedAddonsCount > 1 ? 's' : string.Empty)); if (ImGui.IsItemHovered()) { using var tooltip = ImRaii.Tooltip(); - - var raptureAtkUnitManager = RaptureAtkUnitManager.Instance(); - for (var j = 0; j < array->SubscribedAddonsCount; j++) + if (tooltip) { - if (array->SubscribedAddons[j] == 0) - continue; + var raptureAtkUnitManager = RaptureAtkUnitManager.Instance(); - ImGui.Text(raptureAtkUnitManager->GetAddonById(array->SubscribedAddons[j])->NameString); + for (var j = 0; j < array->SubscribedAddonsCount; j++) + { + if (array->SubscribedAddons[j] == 0) + continue; + + ImGui.TextUnformatted(raptureAtkUnitManager->GetAddonById(array->SubscribedAddons[j])->NameString); + } } } } @@ -172,7 +197,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget { var atkArrayDataHolder = RaptureAtkModule.Instance()->AtkArrayDataHolder; - using var tab = ImRaii.TabItem("Number Arrays"u8); + using var tab = ImRaii.TabItem("Number Arrays"); if (!tab) return; this.DrawArrayList( @@ -187,22 +212,22 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - using var child = ImRaii.Child("AtkArrayContent"u8, new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); + using var child = ImRaii.Child("AtkArrayContent", new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); if (!child) return; var array = atkArrayDataHolder.NumberArrays[this.selectedNumberArray]; this.DrawArrayHeader(this.numberType, "Number", this.selectedNumberArray, (AtkArrayData*)array); - using var table = ImRaii.Table("NumberArrayDataTable"u8, 7, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); + using var table = ImRaii.Table("NumberArrayDataTable", 7, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); if (!table) return; - ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Entry Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Integer"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Short"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Byte"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Float"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Hex"u8, ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Entry Address", ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Integer", ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Short", ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Byte", ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Float", ImGuiTableColumnFlags.WidthFixed, 100); + ImGui.TableSetupColumn("Hex", ImGuiTableColumnFlags.WidthFixed, 100); ImGui.TableSetupScrollFreeze(7, 1); ImGui.TableHeadersRow(); @@ -210,43 +235,43 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget { ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.Text($"#{i}"); + ImGui.TextUnformatted($"#{i}"); var ptr = &array->IntArray[i]; ImGui.TableNextColumn(); // Address - WidgetUtil.DrawCopyableText($"0x{(nint)ptr:X}", "Copy entry address"); + DrawCopyableText($"0x{(nint)ptr:X}", "Copy entry address"); ImGui.TableNextColumn(); // Integer - WidgetUtil.DrawCopyableText((*ptr).ToString(), "Copy value"); + DrawCopyableText((*ptr).ToString(), "Copy value"); ImGui.TableNextColumn(); // Short - WidgetUtil.DrawCopyableText((*(short*)ptr).ToString(), "Copy as short"); + DrawCopyableText((*(short*)ptr).ToString(), "Copy as short"); ImGui.TableNextColumn(); // Byte - WidgetUtil.DrawCopyableText((*(byte*)ptr).ToString(), "Copy as byte"); + DrawCopyableText((*(byte*)ptr).ToString(), "Copy as byte"); ImGui.TableNextColumn(); // Float - WidgetUtil.DrawCopyableText((*(float*)ptr).ToString(), "Copy as float"); + DrawCopyableText((*(float*)ptr).ToString(), "Copy as float"); ImGui.TableNextColumn(); // Hex - WidgetUtil.DrawCopyableText($"0x{array->IntArray[i]:X2}", "Copy Hex"); + DrawCopyableText($"0x{array->IntArray[i]:X2}", "Copy Hex"); } } private void DrawStringArrayTab() { - using var tab = ImRaii.TabItem("String Arrays"u8); + using var tab = ImRaii.TabItem("String Arrays"); if (!tab) return; var atkArrayDataHolder = RaptureAtkModule.Instance()->AtkArrayDataHolder; - using (var sidebarChild = ImRaii.Child("StringArraySidebar"u8, new Vector2(300, -1), false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings)) + using (var sidebarchild = ImRaii.Child("StringArraySidebar", new Vector2(300, -1), false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings)) { - if (sidebarChild) + if (sidebarchild) { ImGui.SetNextItemWidth(-1); - ImGui.InputTextWithHint("##TextSearch"u8, "Search..."u8, ref this.searchTerm, 256, ImGuiInputTextFlags.AutoSelectAll); + ImGui.InputTextWithHint("##TextSearch", "Search...", ref this.searchTerm, 256, ImGuiInputTextFlags.AutoSelectAll); this.DrawArrayList( this.stringType, @@ -262,24 +287,24 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - using var child = ImRaii.Child("AtkArrayContent"u8, new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); + using var child = ImRaii.Child("AtkArrayContent", new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); if (!child) return; var array = atkArrayDataHolder.StringArrays[this.selectedStringArray]; this.DrawArrayHeader(this.stringType, "String", this.selectedStringArray, (AtkArrayData*)array); - ImGui.Checkbox("Hide unset entries##HideUnsetStringArrayEntriesCheckbox"u8, ref this.hideUnsetStringArrayEntries); + ImGui.Checkbox("Hide unset entries##HideUnsetStringArrayEntriesCheckbox", ref this.hideUnsetStringArrayEntries); ImGui.SameLine(); - ImGui.Checkbox("Show text address##WordWrapCheckbox"u8, ref this.showTextAddress); + ImGui.Checkbox("Show text address##WordWrapCheckbox", ref this.showTextAddress); ImGui.SameLine(); - ImGui.Checkbox("Show macro string##RenderStringsCheckbox"u8, ref this.showMacroString); + ImGui.Checkbox("Show macro string##RenderStringsCheckbox", ref this.showMacroString); - using var table = ImRaii.Table("StringArrayDataTable"u8, 4, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); + using var table = ImRaii.Table("StringArrayDataTable", 4, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); if (!table) return; - ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn(this.showTextAddress ? "Text Address"u8 : "Entry Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Managed"u8, ImGuiTableColumnFlags.WidthFixed, 60); - ImGui.TableSetupColumn("Text"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn(this.showTextAddress ? "Text Address" : "Entry Address", ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Managed", ImGuiTableColumnFlags.WidthFixed, 60); + ImGui.TableSetupColumn("Text", ImGuiTableColumnFlags.WidthStretch); ImGui.TableSetupScrollFreeze(4, 1); ImGui.TableHeadersRow(); @@ -287,7 +312,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget for (var i = 0; i < array->Size; i++) { - var isNull = !array->StringArray[i].HasValue; + var isNull = (nint)array->StringArray[i] == 0; if (isNull && this.hideUnsetStringArrayEntries) continue; @@ -296,7 +321,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget if (isNull) continue; - if (!new ReadOnlySeStringSpan(array->StringArray[i].Value).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) + if (!new ReadOnlySeStringSpan(array->StringArray[i]).ExtractText().Contains(this.searchTerm, StringComparison.InvariantCultureIgnoreCase)) continue; } @@ -304,23 +329,23 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.Text($"#{i}"); + ImGui.TextUnformatted($"#{i}"); ImGui.TableNextColumn(); // Address if (this.showTextAddress) { if (!isNull) - WidgetUtil.DrawCopyableText($"0x{(nint)array->StringArray[i].Value:X}", "Copy text address"); + DrawCopyableText($"0x{(nint)array->StringArray[i]:X}", "Copy text address"); } else { - WidgetUtil.DrawCopyableText($"0x{(nint)(&array->StringArray[i]):X}", "Copy entry address"); + DrawCopyableText($"0x{(nint)(&array->StringArray[i]):X}", "Copy entry address"); } ImGui.TableNextColumn(); // Managed if (!isNull) { - ImGui.Text((array->StringArray[i].HasValue && array->ManagedStringArray[i].Value == array->StringArray[i]).ToString()); + ImGui.TextUnformatted(((nint)array->StringArray[i] != 0 && array->ManagedStringArray[i] == array->StringArray[i]).ToString()); } ImGui.TableNextColumn(); // Text @@ -328,11 +353,11 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget { if (this.showMacroString) { - WidgetUtil.DrawCopyableText(new ReadOnlySeStringSpan(array->StringArray[i].Value).ToString(), "Copy text"); + DrawCopyableText(new ReadOnlySeStringSpan(array->StringArray[i]).ToString(), "Copy text"); } else { - ImGuiHelpers.SeStringWrapped(new ReadOnlySeStringSpan(array->StringArray[i].Value)); + ImGuiHelpers.SeStringWrapped(new ReadOnlySeStringSpan(array->StringArray[i])); } } } @@ -340,7 +365,7 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget private void DrawExtendArrayTab() { - using var tab = ImRaii.TabItem("Extend Arrays"u8); + using var tab = ImRaii.TabItem("Extend Arrays"); if (!tab) return; var atkArrayDataHolder = RaptureAtkModule.Instance()->AtkArrayDataHolder; @@ -357,18 +382,18 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - using var child = ImRaii.Child("AtkArrayContent"u8, new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); + using var child = ImRaii.Child("AtkArrayContent", new Vector2(-1), true, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoSavedSettings); var array = atkArrayDataHolder.ExtendArrays[this.selectedExtendArray]; this.DrawArrayHeader(null, "Extend", this.selectedExtendArray, (AtkArrayData*)array); - ImGui.Checkbox("Hide unset entries##HideUnsetExtendArrayEntriesCheckbox"u8, ref this.hideUnsetExtendArrayEntries); + ImGui.Checkbox("Hide unset entries##HideUnsetExtendArrayEntriesCheckbox", ref this.hideUnsetExtendArrayEntries); - using var table = ImRaii.Table("ExtendArrayDataTable"u8, 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); + using var table = ImRaii.Table("ExtendArrayDataTable", 3, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); if (!table) return; - ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Entry Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Pointer"u8, ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Entry Address", ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("Pointer", ImGuiTableColumnFlags.WidthStretch); ImGui.TableSetupScrollFreeze(3, 1); ImGui.TableHeadersRow(); @@ -382,14 +407,14 @@ internal unsafe class AtkArrayDataBrowserWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.Text($"#{i}"); + ImGui.TextUnformatted($"#{i}"); ImGui.TableNextColumn(); // Address - WidgetUtil.DrawCopyableText($"0x{(nint)(&array->DataArray[i]):X}", "Copy entry address"); + DrawCopyableText($"0x{(nint)(&array->DataArray[i]):X}", "Copy entry address"); ImGui.TableNextColumn(); // Pointer if (!isNull) - WidgetUtil.DrawCopyableText($"0x{(nint)array->DataArray[i]:X}", "Copy address"); + DrawCopyableText($"0x{(nint)array->DataArray[i]:X}", "Copy address"); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs index bbef5fee3..961d3c3c0 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/BuddyListWidget.cs @@ -1,6 +1,6 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Buddy; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -15,10 +15,10 @@ internal class BuddyListWidget : IDataWindowWidget public bool Ready { get; set; } /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["buddy", "buddylist"]; - + public string[]? CommandShortcuts { get; init; } = { "buddy", "buddylist" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Buddy List"; + public string DisplayName { get; init; } = "Buddy List"; /// <inheritdoc/> public void Load() @@ -31,69 +31,22 @@ internal class BuddyListWidget : IDataWindowWidget { var buddyList = Service<BuddyList>.Get(); - ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); - - var companionBuddy = buddyList.CompanionBuddy; - if (companionBuddy == null) + ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); { - ImGui.Text("[Companion] null"u8); - } - else - { - ImGui.Text($"[Companion] {companionBuddy.Address:X} - {companionBuddy.EntityId} - {companionBuddy.DataID}"); - if (this.resolveGameData) + var member = buddyList.CompanionBuddy; + if (member == null) { - var gameObject = companionBuddy.GameObject; - if (gameObject == null) - { - ImGui.Text("GameObject was null"u8); - } - else - { - Util.PrintGameObject(gameObject, "-", this.resolveGameData); - } + ImGui.Text("[Companion] null"); } - } - - var petBuddy = buddyList.PetBuddy; - if (petBuddy == null) - { - ImGui.Text("[Pet] null"u8); - } - else - { - ImGui.Text($"[Pet] {petBuddy.Address:X} - {petBuddy.EntityId} - {petBuddy.DataID}"); - if (this.resolveGameData) + else { - var gameObject = petBuddy.GameObject; - if (gameObject == null) - { - ImGui.Text("GameObject was null"u8); - } - else - { - Util.PrintGameObject(gameObject, "-", this.resolveGameData); - } - } - } - - var count = buddyList.Length; - if (count == 0) - { - ImGui.Text("[BattleBuddy] None present"u8); - } - else - { - for (var i = 0; i < count; i++) - { - var member = buddyList[i]; - ImGui.Text($"[BattleBuddy] [{i}] {member?.Address ?? 0:X} - {member?.EntityId ?? 0} - {member?.DataID ?? 0}"); + ImGui.Text($"[Companion] {member.Address.ToInt64():X} - {member.ObjectId} - {member.DataID}"); if (this.resolveGameData) { - var gameObject = member?.GameObject; + var gameObject = member.GameObject; if (gameObject == null) { - ImGui.Text("GameObject was null"u8); + ImGui.Text("GameObject was null"); } else { @@ -102,5 +55,57 @@ internal class BuddyListWidget : IDataWindowWidget } } } + + { + var member = buddyList.PetBuddy; + if (member == null) + { + ImGui.Text("[Pet] null"); + } + else + { + ImGui.Text($"[Pet] {member.Address.ToInt64():X} - {member.ObjectId} - {member.DataID}"); + if (this.resolveGameData) + { + var gameObject = member.GameObject; + if (gameObject == null) + { + ImGui.Text("GameObject was null"); + } + else + { + Util.PrintGameObject(gameObject, "-", this.resolveGameData); + } + } + } + } + + { + var count = buddyList.Length; + if (count == 0) + { + ImGui.Text("[BattleBuddy] None present"); + } + else + { + for (var i = 0; i < count; i++) + { + var member = buddyList[i]; + ImGui.Text($"[BattleBuddy] [{i}] {member?.Address.ToInt64():X} - {member?.ObjectId} - {member?.DataID}"); + if (this.resolveGameData) + { + var gameObject = member?.GameObject; + if (gameObject == null) + { + ImGui.Text("GameObject was null"); + } + else + { + Util.PrintGameObject(gameObject, "-", this.resolveGameData); + } + } + } + } + } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs index e1b06aaf3..07695c02a 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/CommandWidget.cs @@ -1,9 +1,10 @@ -using System.Linq; +using System.Linq; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Command; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -11,15 +12,11 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class CommandWidget : IDataWindowWidget { - private const ImGuiTableFlags TableFlags = ImGuiTableFlags.ScrollY | ImGuiTableFlags.Borders | - ImGuiTableFlags.SizingStretchProp | ImGuiTableFlags.Sortable | - ImGuiTableFlags.SortTristate; - /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["command"]; - + public string[]? CommandShortcuts { get; init; } = { "command" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Command"; + public string DisplayName { get; init; } = "Command"; /// <inheritdoc/> public bool Ready { get; set; } @@ -35,17 +32,19 @@ internal class CommandWidget : IDataWindowWidget { var commandManager = Service<CommandManager>.Get(); - using var table = ImRaii.Table("CommandList"u8, 4, TableFlags); + var tableFlags = ImGuiTableFlags.ScrollY | ImGuiTableFlags.Borders | ImGuiTableFlags.SizingStretchProp | + ImGuiTableFlags.Sortable | ImGuiTableFlags.SortTristate; + using var table = ImRaii.Table("CommandList", 4, tableFlags); if (table) { ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Command"u8); - ImGui.TableSetupColumn("Plugin"u8); - ImGui.TableSetupColumn("HelpMessage"u8, ImGuiTableColumnFlags.NoSort); - ImGui.TableSetupColumn("In Help?"u8, ImGuiTableColumnFlags.NoSort); + ImGui.TableSetupColumn("Command"); + ImGui.TableSetupColumn("Plugin"); + ImGui.TableSetupColumn("HelpMessage", ImGuiTableColumnFlags.NoSort); + ImGui.TableSetupColumn("In Help?", ImGuiTableColumnFlags.NoSort); ImGui.TableHeadersRow(); - + var sortSpecs = ImGui.TableGetSortSpecs(); var commands = commandManager.Commands.ToArray(); @@ -66,16 +65,16 @@ internal class CommandWidget : IDataWindowWidget foreach (var command in commands) { ImGui.TableNextRow(); - + ImGui.TableSetColumnIndex(0); ImGui.Text(command.Key); - + ImGui.TableNextColumn(); ImGui.Text(commandManager.GetHandlerAssemblyName(command.Key, command.Value)); - + ImGui.TableNextColumn(); ImGui.TextWrapped(command.Value.HelpMessage); - + ImGui.TableNextColumn(); ImGui.Text(command.Value.ShowInHelp ? "Yes" : "No"); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs index e3a737a25..355a73a71 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ConditionWidget.cs @@ -1,7 +1,8 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.ClientState.Conditions; +using Dalamud.Game.ClientState.Conditions; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -13,10 +14,10 @@ internal class ConditionWidget : IDataWindowWidget public bool Ready { get; set; } /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["condition"]; - + public string[]? CommandShortcuts { get; init; } = { "condition" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Condition"; + public string DisplayName { get; init; } = "Condition"; /// <inheritdoc/> public void Load() @@ -33,7 +34,7 @@ internal class ConditionWidget : IDataWindowWidget ImGui.Text($"ptr: {Util.DescribeAddress(condition.Address)}"); #endif - ImGui.Text("Current Conditions:"u8); + ImGui.Text("Current Conditions:"); ImGui.Separator(); var didAny = false; @@ -51,6 +52,6 @@ internal class ConditionWidget : IDataWindowWidget } if (!didAny) - ImGui.Text("None. Talk to a shop NPC or visit a market board to find out more!"u8); + ImGui.Text("None. Talk to a shop NPC or visit a market board to find out more!"); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ConfigurationWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ConfigurationWidget.cs index df5aeab56..f66b50fca 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ConfigurationWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ConfigurationWidget.cs @@ -1,4 +1,4 @@ -using Dalamud.Configuration.Internal; +using Dalamud.Configuration.Internal; using Dalamud.Utility; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -9,10 +9,10 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class ConfigurationWidget : IDataWindowWidget { /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["config", "configuration"]; - + public string[]? CommandShortcuts { get; init; } = { "config", "configuration" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Configuration"; + public string DisplayName { get; init; } = "Configuration"; /// <inheritdoc/> public bool Ready { get; set; } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs index ebb5b6581..b1bd0f05c 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/DataShareWidget.cs @@ -1,16 +1,18 @@ -using System.Collections.Generic; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using System.Reflection; using System.Text; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Ipc.Internal; +using ImGuiNET; + using Newtonsoft.Json; using Formatting = Newtonsoft.Json.Formatting; @@ -20,17 +22,21 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> /// Widget for displaying plugin data share modules. /// </summary> +[SuppressMessage( + "StyleCop.CSharp.LayoutRules", + "SA1519:Braces should not be omitted from multi-line child statement", + Justification = "Multiple fixed blocks")] internal class DataShareWidget : IDataWindowWidget { - private const ImGuiTabItemFlags NoCloseButton = (ImGuiTabItemFlags)ImGuiTabItemFlagsPrivate.NoCloseButton; + private const ImGuiTabItemFlags NoCloseButton = (ImGuiTabItemFlags)(1 << 20); - private readonly List<(string Name, byte[]? Data)> dataView = []; + private readonly List<(string Name, byte[]? Data)> dataView = new(); private int nextTab = -1; private IReadOnlyDictionary<string, CallGateChannel>? gates; private List<CallGateChannel>? gatesSorted; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["datashare"]; + public string[]? CommandShortcuts { get; init; } = { "datashare" }; /// <inheritdoc/> public string DisplayName { get; init; } = "Data Share & Call Gate"; @@ -45,41 +51,46 @@ internal class DataShareWidget : IDataWindowWidget } /// <inheritdoc/> - public void Draw() + public unsafe void Draw() { - using var tabbar = ImRaii.TabBar("##tabbar"u8); + using var tabbar = ImRaii.TabBar("##tabbar"); if (!tabbar.Success) return; var d = true; - using (var tabItem = ImRaii.TabItem("Data Share##tabbar-datashare"u8, ref d, NoCloseButton | (this.nextTab == 0 ? ImGuiTabItemFlags.SetSelected : 0))) + using (var tabitem = ImRaii.TabItem( + "Data Share##tabbar-datashare", + ref d, + NoCloseButton | (this.nextTab == 0 ? ImGuiTabItemFlags.SetSelected : 0))) { - if (tabItem.Success) + if (tabitem.Success) this.DrawDataShare(); } - using (var tabItem = ImRaii.TabItem("Call Gate##tabbar-callgate"u8, ref d, NoCloseButton | (this.nextTab == 1 ? ImGuiTabItemFlags.SetSelected : 0))) + using (var tabitem = ImRaii.TabItem( + "Call Gate##tabbar-callgate", + ref d, + NoCloseButton | (this.nextTab == 1 ? ImGuiTabItemFlags.SetSelected : 0))) { - if (tabItem.Success) + if (tabitem.Success) this.DrawCallGate(); } for (var i = 0; i < this.dataView.Count; i++) { using var idpush = ImRaii.PushId($"##tabbar-data-{i}"); - var (name, data) = this.dataView[i]; d = true; - - using var tabitem = ImRaii.TabItem(name, ref d, this.nextTab == 2 + i ? ImGuiTabItemFlags.SetSelected : 0); - + using var tabitem = ImRaii.TabItem( + name, + ref d, + this.nextTab == 2 + i ? ImGuiTabItemFlags.SetSelected : 0); if (!d) this.dataView.RemoveAt(i--); - if (!tabitem.Success) continue; - if (ImGui.Button("Refresh"u8)) + if (ImGui.Button("Refresh")) data = null; if (data is null) @@ -87,7 +98,7 @@ internal class DataShareWidget : IDataWindowWidget try { var dataShare = Service<DataShare>.Get(); - var data2 = dataShare.GetData<object>(name, new DataCachePluginId("DataShareWidget", Guid.Empty)); + var data2 = dataShare.GetData<object>(name); try { data = Encoding.UTF8.GetBytes( @@ -98,7 +109,7 @@ internal class DataShareWidget : IDataWindowWidget } finally { - dataShare.RelinquishData(name, new DataCachePluginId("DataShareWidget", Guid.Empty)); + dataShare.RelinquishData(name); } } catch (Exception e) @@ -110,10 +121,24 @@ internal class DataShareWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Copy"u8)) - ImGui.SetClipboardText(data); + if (ImGui.Button("Copy")) + { + fixed (byte* pData = data) + ImGuiNative.igSetClipboardText(pData); + } - ImGui.InputTextMultiline("text"u8, data, ImGui.GetContentRegionAvail(), ImGuiInputTextFlags.ReadOnly); + fixed (byte* pLabel = "text"u8) + fixed (byte* pData = data) + { + ImGuiNative.igInputTextMultiline( + pLabel, + pData, + (uint)data.Length, + ImGui.GetContentRegionAvail(), + ImGuiInputTextFlags.ReadOnly, + null, + null); + } } this.nextTab = -1; @@ -123,15 +148,13 @@ internal class DataShareWidget : IDataWindowWidget { if (mi is null) return "-"; - + var sb = new StringBuilder(); sb.Append(ReprType(mi.DeclaringType)) .Append("::") .Append(mi.Name); - if (!withParams) return sb.ToString(); - sb.Append('('); var parfirst = true; foreach (var par in mi.GetParameters()) @@ -140,7 +163,6 @@ internal class DataShareWidget : IDataWindowWidget sb.Append(", "); else parfirst = false; - sb.AppendLine() .Append('\t') .Append(ReprType(par.ParameterType)) @@ -150,11 +172,9 @@ internal class DataShareWidget : IDataWindowWidget if (!parfirst) sb.AppendLine(); - sb.Append(')'); if (mi.ReturnType != typeof(void)) sb.Append(" -> ").Append(ReprType(mi.ReturnType)); - return sb.ToString(); static string WithoutGeneric(string s) @@ -163,7 +183,8 @@ internal class DataShareWidget : IDataWindowWidget return i != -1 ? s[..i] : s; } - static string ReprType(Type? t) => t switch + static string ReprType(Type? t) => + t switch { null => "null", _ when t == typeof(string) => "string", @@ -205,19 +226,18 @@ internal class DataShareWidget : IDataWindowWidget var offset = ImGui.GetCursorScreenPos() + new Vector2(0, framepad ? ImGui.GetStyle().FramePadding.Y : 0); if (framepad) ImGui.AlignTextToFramePadding(); - - ImGui.Text(s); + ImGui.TextUnformatted(s); if (ImGui.IsItemHovered()) { ImGui.SetNextWindowPos(offset - ImGui.GetStyle().WindowPadding); var vp = ImGui.GetWindowViewport(); var wrx = (vp.WorkPos.X + vp.WorkSize.X) - offset.X; - ImGui.SetNextWindowSizeConstraints(Vector2.One, new(wrx, float.MaxValue)); using (ImRaii.Tooltip()) { - using var pushedWrap = ImRaii.TextWrapPos(wrx); - ImGui.TextWrapped(tooltip?.Invoke() ?? s); + ImGui.PushTextWrapPos(wrx); + ImGui.TextWrapped((tooltip?.Invoke() ?? s).Replace("%", "%%")); + ImGui.PopTextWrapPos(); } } @@ -234,18 +254,15 @@ internal class DataShareWidget : IDataWindowWidget private void DrawCallGate() { var callGate = Service<CallGate>.Get(); - if (ImGui.Button("Purge empty call gates"u8)) + if (ImGui.Button("Purge empty call gates")) callGate.PurgeEmptyGates(); - using var table = ImRaii.Table("##callgate-table"u8, 5); - if (!table.Success) - return; - - ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.DefaultSort); - ImGui.TableSetupColumn("Action"u8); - ImGui.TableSetupColumn("Func"u8); - ImGui.TableSetupColumn("#"u8, ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Subscriber"u8); + using var table = ImRaii.Table("##callgate-table", 5); + ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.DefaultSort); + ImGui.TableSetupColumn("Action"); + ImGui.TableSetupColumn("Func"); + ImGui.TableSetupColumn("#", ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("Subscriber"); ImGui.TableHeadersRow(); var gates2 = callGate.Gates; @@ -262,8 +279,12 @@ internal class DataShareWidget : IDataWindowWidget { ImGui.TableNextRow(); this.DrawTextCell(item.Name); - this.DrawTextCell(ReprMethod(item.Action?.Method, false), () => ReprMethod(item.Action?.Method, true)); - this.DrawTextCell(ReprMethod(item.Func?.Method, false), () => ReprMethod(item.Func?.Method, true)); + this.DrawTextCell( + ReprMethod(item.Action?.Method, false), + () => ReprMethod(item.Action?.Method, true)); + this.DrawTextCell( + ReprMethod(item.Func?.Method, false), + () => ReprMethod(item.Func?.Method, true)); if (subs.Count == 0) { this.DrawTextCell("0"); @@ -278,43 +299,47 @@ internal class DataShareWidget : IDataWindowWidget private void DrawDataShare() { - using var table = ImRaii.Table("###DataShareTable"u8, 5, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg); - if (!table.Success) + if (!ImGui.BeginTable("###DataShareTable", 5, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg)) return; - ImGui.TableSetupColumn("Shared Tag"u8); - ImGui.TableSetupColumn("Show"u8); - ImGui.TableSetupColumn("Creator"u8); - ImGui.TableSetupColumn("#"u8, ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Consumers"u8); - ImGui.TableHeadersRow(); - - foreach (var share in Service<DataShare>.Get().GetAllShares()) + try { - ImGui.TableNextRow(); - this.DrawTextCell(share.Tag, null, true); - - ImGui.TableNextColumn(); - if (ImGui.Button($"Show##datasharetable-show-{share.Tag}")) + ImGui.TableSetupColumn("Shared Tag"); + ImGui.TableSetupColumn("Show"); + ImGui.TableSetupColumn("Creator Assembly"); + ImGui.TableSetupColumn("#", ImGuiTableColumnFlags.WidthFixed, 30 * ImGuiHelpers.GlobalScale); + ImGui.TableSetupColumn("Consumers"); + ImGui.TableHeadersRow(); + foreach (var share in Service<DataShare>.Get().GetAllShares()) { - var index = 0; - for (; index < this.dataView.Count; index++) + ImGui.TableNextRow(); + this.DrawTextCell(share.Tag, null, true); + + ImGui.TableNextColumn(); + if (ImGui.Button($"Show##datasharetable-show-{share.Tag}")) { - if (this.dataView[index].Name == share.Tag) - break; + var index = 0; + for (; index < this.dataView.Count; index++) + { + if (this.dataView[index].Name == share.Tag) + break; + } + + if (index == this.dataView.Count) + this.dataView.Add((share.Tag, null)); + else + this.dataView[index] = (share.Tag, null); + this.nextTab = 2 + index; } - if (index == this.dataView.Count) - this.dataView.Add((share.Tag, null)); - else - this.dataView[index] = (share.Tag, null); - - this.nextTab = 2 + index; + this.DrawTextCell(share.CreatorAssembly, null, true); + this.DrawTextCell(share.Users.Length.ToString(), null, true); + this.DrawTextCell(string.Join(", ", share.Users), null, true); } - - this.DrawTextCell(share.CreatorPluginId.InternalName, () => share.CreatorPluginId.EffectiveWorkingId.ToString(), true); - this.DrawTextCell(share.UserPluginIds.Length.ToString(), null, true); - this.DrawTextCell(string.Join(", ", share.UserPluginIds.Select(c => c.InternalName)), () => string.Join("\n", share.UserPluginIds.Select(c => $"{c.InternalName} ({c.EffectiveWorkingId.ToString()}")), true); + } + finally + { + ImGui.EndTable(); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs index 838f11632..8b7a692d4 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/DtrBarWidget.cs @@ -1,11 +1,12 @@ -using System.Linq; +using System.Linq; using System.Threading; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.Gui.Dtr; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -21,7 +22,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable private CancellationTokenSource? loadTestThreadCt; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["dtr", "dtrbar"]; + public string[]? CommandShortcuts { get; init; } = { "dtr", "dtrbar" }; /// <inheritdoc/> public string DisplayName { get; init; } = "DTR Bar"; @@ -44,7 +45,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable { if (this.loadTestThread?.IsAlive is not true) { - if (ImGui.Button("Do multithreaded add/remove operation"u8)) + if (ImGui.Button("Do multithreaded add/remove operation")) { var ct = this.loadTestThreadCt = new(); var dbar = Service<DtrBar>.Get(); @@ -135,7 +136,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable } else { - if (ImGui.Button("Stop multithreaded add/remove operation"u8)) + if (ImGui.Button("Stop multithreaded add/remove operation")) this.ClearState(); } @@ -149,7 +150,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable this.DrawDtrTestEntry(ref this.dtrTest3, "DTR Test #3"); ImGui.Separator(); - ImGui.Text("IDtrBar.Entries:"u8); + ImGui.Text("IDtrBar.Entries:"); foreach (var e in Service<DtrBar>.Get().Entries) ImGui.Text(e.Title); @@ -157,7 +158,7 @@ internal class DtrBarWidget : IDataWindowWidget, IDisposable if (configuration.DtrOrder != null) { ImGui.Separator(); - ImGui.Text("DtrOrder:"u8); + ImGui.Text("DtrOrder:"); foreach (var order in configuration.DtrOrder) ImGui.Text(order); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs index b2f4bf70f..1a43f2b2d 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/FateTableWidget.cs @@ -1,8 +1,10 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Fates; using Dalamud.Interface.Textures.Internal; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -10,14 +12,11 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class FateTableWidget : IDataWindowWidget { - private const ImGuiTableFlags TableFlags = ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | - ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings; - /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["fate", "fatetable"]; - + public string[]? CommandShortcuts { get; init; } = { "fate", "fatetable" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Fate Table"; + public string DisplayName { get; init; } = "Fate Table"; /// <inheritdoc/> public bool Ready { get; set; } @@ -36,26 +35,26 @@ internal class FateTableWidget : IDataWindowWidget if (fateTable.Length == 0) { - ImGui.Text("No fates or data not ready."u8); + ImGui.TextUnformatted("No fates or data not ready."); return; } - using var table = ImRaii.Table("FateTable"u8, 13, TableFlags); + using var table = ImRaii.Table("FateTable", 13, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); if (!table) return; - ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Address"u8, ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("FateId"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("State"u8, ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("Level"u8, ImGuiTableColumnFlags.WidthFixed, 50); - ImGui.TableSetupColumn("Icon"u8, ImGuiTableColumnFlags.WidthFixed, 30); - ImGui.TableSetupColumn("MapIcon"u8, ImGuiTableColumnFlags.WidthFixed, 30); - ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Progress"u8, ImGuiTableColumnFlags.WidthFixed, 55); - ImGui.TableSetupColumn("Duration"u8, ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("Bonus"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Position"u8, ImGuiTableColumnFlags.WidthFixed, 240); - ImGui.TableSetupColumn("Radius"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Index", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Address", ImGuiTableColumnFlags.WidthFixed, 120); + ImGui.TableSetupColumn("FateId", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("State", ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("Level", ImGuiTableColumnFlags.WidthFixed, 50); + ImGui.TableSetupColumn("Icon", ImGuiTableColumnFlags.WidthFixed, 30); + ImGui.TableSetupColumn("MapIcon", ImGuiTableColumnFlags.WidthFixed, 30); + ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Progress", ImGuiTableColumnFlags.WidthFixed, 55); + ImGui.TableSetupColumn("Duration", ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("Bonus", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Position", ImGuiTableColumnFlags.WidthFixed, 240); + ImGui.TableSetupColumn("Radius", ImGuiTableColumnFlags.WidthFixed, 40); ImGui.TableSetupScrollFreeze(7, 1); ImGui.TableHeadersRow(); @@ -67,26 +66,26 @@ internal class FateTableWidget : IDataWindowWidget ImGui.TableNextRow(); ImGui.TableNextColumn(); // Index - ImGui.Text($"#{i}"); + ImGui.TextUnformatted($"#{i}"); ImGui.TableNextColumn(); // Address - WidgetUtil.DrawCopyableText($"0x{fate.Address:X}", "Click to copy Address"); + DrawCopyableText($"0x{fate.Address:X}", "Click to copy Address"); ImGui.TableNextColumn(); // FateId - WidgetUtil.DrawCopyableText(fate.FateId.ToString(), "Click to copy FateId (RowId of Fate sheet)"); + DrawCopyableText(fate.FateId.ToString(), "Click to copy FateId (RowId of Fate sheet)"); ImGui.TableNextColumn(); // State - ImGui.Text(fate.State.ToString()); + ImGui.TextUnformatted(fate.State.ToString()); ImGui.TableNextColumn(); // Level if (fate.Level == fate.MaxLevel) { - ImGui.Text($"{fate.Level}"); + ImGui.TextUnformatted($"{fate.Level}"); } else { - ImGui.Text($"{fate.Level}-{fate.MaxLevel}"); + ImGui.TextUnformatted($"{fate.Level}-{fate.MaxLevel}"); } ImGui.TableNextColumn(); // Icon @@ -95,16 +94,16 @@ internal class FateTableWidget : IDataWindowWidget { if (textureManager.Shared.GetFromGameIcon(fate.IconId).TryGetWrap(out var texture, out _)) { - ImGui.Image(texture.Handle, new(ImGui.GetTextLineHeight())); + ImGui.Image(texture.ImGuiHandle, new(ImGui.GetTextLineHeight())); if (ImGui.IsItemHovered()) { ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); - - using var tooltip = ImRaii.Tooltip(); - ImGui.Text("Click to copy IconId"u8); - ImGui.Text($"ID: {fate.IconId} – Size: {texture.Width}x{texture.Height}"); - ImGui.Image(texture.Handle, new(texture.Width, texture.Height)); + ImGui.BeginTooltip(); + ImGui.TextUnformatted("Click to copy IconId"); + ImGui.TextUnformatted($"ID: {fate.IconId} – Size: {texture.Width}x{texture.Height}"); + ImGui.Image(texture.ImGuiHandle, new(texture.Width, texture.Height)); + ImGui.EndTooltip(); } if (ImGui.IsItemClicked()) @@ -120,16 +119,16 @@ internal class FateTableWidget : IDataWindowWidget { if (textureManager.Shared.GetFromGameIcon(fate.MapIconId).TryGetWrap(out var texture, out _)) { - ImGui.Image(texture.Handle, new(ImGui.GetTextLineHeight())); + ImGui.Image(texture.ImGuiHandle, new(ImGui.GetTextLineHeight())); if (ImGui.IsItemHovered()) { ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); - - using var tooltip = ImRaii.Tooltip(); - ImGui.Text("Click to copy MapIconId"u8); - ImGui.Text($"ID: {fate.MapIconId} – Size: {texture.Width}x{texture.Height}"); - ImGui.Image(texture.Handle, new(texture.Width, texture.Height)); + ImGui.BeginTooltip(); + ImGui.TextUnformatted("Click to copy MapIconId"); + ImGui.TextUnformatted($"ID: {fate.MapIconId} – Size: {texture.Width}x{texture.Height}"); + ImGui.Image(texture.ImGuiHandle, new(texture.Width, texture.Height)); + ImGui.EndTooltip(); } if (ImGui.IsItemClicked()) @@ -141,26 +140,44 @@ internal class FateTableWidget : IDataWindowWidget ImGui.TableNextColumn(); // Name - WidgetUtil.DrawCopyableText(fate.Name.ToString(), "Click to copy Name"); + DrawCopyableText(fate.Name.ToString(), "Click to copy Name"); ImGui.TableNextColumn(); // Progress - ImGui.Text($"{fate.Progress}%"); + ImGui.TextUnformatted($"{fate.Progress}%"); ImGui.TableNextColumn(); // TimeRemaining if (fate.State == FateState.Running) { - ImGui.Text($"{TimeSpan.FromSeconds(fate.TimeRemaining):mm\\:ss} / {TimeSpan.FromSeconds(fate.Duration):mm\\:ss}"); + ImGui.TextUnformatted($"{TimeSpan.FromSeconds(fate.TimeRemaining):mm\\:ss} / {TimeSpan.FromSeconds(fate.Duration):mm\\:ss}"); } ImGui.TableNextColumn(); // HasExpBonus - ImGui.Text(fate.HasBonus.ToString()); + ImGui.TextUnformatted(fate.HasBonus.ToString()); ImGui.TableNextColumn(); // Position - WidgetUtil.DrawCopyableText(fate.Position.ToString(), "Click to copy Position"); + DrawCopyableText(fate.Position.ToString(), "Click to copy Position"); ImGui.TableNextColumn(); // Radius - WidgetUtil.DrawCopyableText(fate.Radius.ToString(), "Click to copy Radius"); + DrawCopyableText(fate.Radius.ToString(), "Click to copy Radius"); + } + } + + private static void DrawCopyableText(string text, string tooltipText) + { + ImGuiHelpers.SafeTextWrapped(text); + + if (ImGui.IsItemHovered()) + { + ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); + ImGui.BeginTooltip(); + ImGui.TextUnformatted(tooltipText); + ImGui.EndTooltip(); + } + + if (ImGui.IsItemClicked()) + { + ImGui.SetClipboardText(text); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs index 00e424551..40275645f 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/FlyTextWidget.cs @@ -1,9 +1,8 @@ -using System.Linq; -using System.Numerics; +using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.FlyText; -using Dalamud.Interface.Utility.Raii; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -21,12 +20,12 @@ internal class FlyTextWidget : IDataWindowWidget private int flyIcon; private int flyDmgIcon; private Vector4 flyColor = new(1, 0, 0, 1); - + /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["flytext"]; - + public string[]? CommandShortcuts { get; init; } = { "flytext" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Fly Text"; + public string DisplayName { get; init; } = "Fly Text"; /// <inheritdoc/> public bool Ready { get; set; } @@ -40,33 +39,31 @@ internal class FlyTextWidget : IDataWindowWidget /// <inheritdoc/> public void Draw() { - using (var combo = ImRaii.Combo("Kind"u8, $"{this.flyKind} ({(int)this.flyKind})")) + if (ImGui.BeginCombo("Kind", this.flyKind.ToString())) { - if (combo.Success) + var names = Enum.GetNames(typeof(FlyTextKind)); + for (var i = 0; i < names.Length; i++) { - foreach (var value in Enum.GetValues<FlyTextKind>().Distinct()) - { - if (ImGui.Selectable($"{value} ({(int)value})")) - { - this.flyKind = value; - } - } + if (ImGui.Selectable($"{names[i]} ({i})")) + this.flyKind = (FlyTextKind)i; } + + ImGui.EndCombo(); } - ImGui.InputText("Text1"u8, ref this.flyText1, 200); - ImGui.InputText("Text2"u8, ref this.flyText2, 200); + ImGui.InputText("Text1", ref this.flyText1, 200); + ImGui.InputText("Text2", ref this.flyText2, 200); - ImGui.InputInt("Val1"u8, ref this.flyVal1); - ImGui.InputInt("Val2"u8, ref this.flyVal2); + ImGui.InputInt("Val1", ref this.flyVal1); + ImGui.InputInt("Val2", ref this.flyVal2); - ImGui.InputInt("Icon ID"u8, ref this.flyIcon); - ImGui.InputInt("Damage Icon ID"u8, ref this.flyDmgIcon); + ImGui.InputInt("Icon ID", ref this.flyIcon); + ImGui.InputInt("Damage Icon ID", ref this.flyDmgIcon); ImGui.ColorEdit4("Color", ref this.flyColor); - ImGui.InputInt("Actor Index"u8, ref this.flyActor); + ImGui.InputInt("Actor Index", ref this.flyActor); var sendColor = ImGui.ColorConvertFloat4ToU32(this.flyColor); - if (ImGui.Button("Send"u8)) + if (ImGui.Button("Send")) { Service<FlyTextGui>.Get().AddFlyText( this.flyKind, diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs index c19fed848..a6d76f44f 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/FontAwesomeTestWidget.cs @@ -1,17 +1,9 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Components; -using Dalamud.Interface.ImGuiSeStringRenderer; -using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Internal; -using Dalamud.Interface.Utility.Raii; - -using Lumina.Text.ReadOnly; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -20,21 +12,19 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class FontAwesomeTestWidget : IDataWindowWidget { - private static readonly string[] First = ["(Show All)", "(Undefined)"]; - private List<FontAwesomeIcon>? icons; private List<string>? iconNames; private string[]? iconCategories; private int selectedIconCategory; private string iconSearchInput = string.Empty; private bool iconSearchChanged = true; - private bool useFixedWidth; - + private bool useFixedWidth = false; + /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["fa", "fatest", "fontawesome"]; - + public string[]? CommandShortcuts { get; init; } = { "fa", "fatest", "fontawesome" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Font Awesome Test"; + public string DisplayName { get; init; } = "Font Awesome Test"; /// <inheritdoc/> public bool Ready { get; set; } @@ -48,9 +38,11 @@ internal class FontAwesomeTestWidget : IDataWindowWidget /// <inheritdoc/> public void Draw() { - using var pushedStyle = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, Vector2.Zero); + ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, Vector2.Zero); - this.iconCategories ??= First.Concat(FontAwesomeHelpers.GetCategories().Skip(1)).ToArray(); + this.iconCategories ??= new[] { "(Show All)", "(Undefined)" } + .Concat(FontAwesomeHelpers.GetCategories().Skip(1)) + .ToArray(); if (this.iconSearchChanged) { @@ -77,7 +69,7 @@ internal class FontAwesomeTestWidget : IDataWindowWidget ImGui.SetNextItemWidth(160f); var categoryIndex = this.selectedIconCategory; - if (ImGui.Combo("####FontAwesomeCategorySearch", ref categoryIndex, this.iconCategories)) + if (ImGui.Combo("####FontAwesomeCategorySearch", ref categoryIndex, this.iconCategories, this.iconCategories.Length)) { this.selectedIconCategory = categoryIndex; this.iconSearchChanged = true; @@ -85,42 +77,26 @@ internal class FontAwesomeTestWidget : IDataWindowWidget ImGui.SameLine(170f); ImGui.SetNextItemWidth(180f); - if (ImGui.InputTextWithHint($"###FontAwesomeInputSearch", "search icons"u8, ref this.iconSearchInput, 50)) + if (ImGui.InputTextWithHint($"###FontAwesomeInputSearch", "search icons", ref this.iconSearchInput, 50)) { this.iconSearchChanged = true; } - - ImGui.Checkbox("Use fixed width font"u8, ref this.useFixedWidth); + + ImGui.Checkbox("Use fixed width font", ref this.useFixedWidth); ImGuiHelpers.ScaledDummy(10f); for (var i = 0; i < this.icons?.Count; i++) { - if (this.icons[i] == FontAwesomeIcon.None) - continue; - - ImGui.AlignTextToFramePadding(); ImGui.Text($"0x{(int)this.icons[i].ToIconChar():X}"); ImGuiHelpers.ScaledRelativeSameLine(50f); ImGui.Text($"{this.iconNames?[i]}"); ImGuiHelpers.ScaledRelativeSameLine(280f); - - using var pushedFont = ImRaii.PushFont(this.useFixedWidth ? InterfaceManager.IconFontFixedWidth : InterfaceManager.IconFont); + ImGui.PushFont(this.useFixedWidth ? InterfaceManager.IconFontFixedWidth : InterfaceManager.IconFont); ImGui.Text(this.icons[i].ToIconString()); - ImGuiHelpers.ScaledRelativeSameLine(320f); - if (this.useFixedWidth - ? ImGui.Button($"{(char)this.icons[i]}##FontAwesomeIconButton{i}") - : ImGuiComponents.IconButton($"##FontAwesomeIconButton{i}", this.icons[i])) - { - _ = Service<DevTextureSaveMenu>.Get().ShowTextureSaveMenuAsync( - this.DisplayName, - this.icons[i].ToString(), - Task.FromResult( - Service<TextureManager>.Get().CreateTextureFromSeString( - ReadOnlySeString.FromText(this.icons[i].ToIconString()), - new SeStringDrawParams { Font = ImGui.GetFont(), FontSize = ImGui.GetFontSize(), ScreenOffset = Vector2.Zero }))); - } - + ImGui.PopFont(); ImGuiHelpers.ScaledDummy(2f); } + + ImGui.PopStyleVar(); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs index 0c0289bd0..469ef3dc3 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamePrebakedFontsTestWidget.cs @@ -1,11 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; @@ -13,9 +12,10 @@ using Dalamud.Interface.ImGuiFontChooserDialog; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; using Dalamud.Utility; +using ImGuiNET; + using Serilog; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -26,11 +26,11 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable { private static readonly string[] FontScaleModes = - [ + { nameof(FontScaleMode.Default), nameof(FontScaleMode.SkipHandling), nameof(FontScaleMode.UndoGlobalScale), - ]; + }; private ImVectorWrapper<byte> testStringBuffer; private IFontAtlas? privateAtlas; @@ -62,29 +62,61 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable public unsafe void Draw() { ImGui.AlignTextToFramePadding(); - if (ImGui.Combo("Global Scale per Font"u8, ref this.fontScaleMode, FontScaleModes)) - this.ClearAtlas(); - - if (ImGui.Checkbox("Global Scale for Atlas"u8, ref this.atlasScaleMode)) + if (ImGui.Combo("Global Scale per Font", ref this.fontScaleMode, FontScaleModes, FontScaleModes.Length)) this.ClearAtlas(); + fixed (byte* labelPtr = "Global Scale for Atlas"u8) + { + var v = (byte)(this.atlasScaleMode ? 1 : 0); + if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) + { + this.atlasScaleMode = v != 0; + this.ClearAtlas(); + } + } ImGui.SameLine(); - ImGui.Checkbox("Word Wrap"u8, ref this.useWordWrap); + fixed (byte* labelPtr = "Word Wrap"u8) + { + var v = (byte)(this.useWordWrap ? 1 : 0); + if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) + this.useWordWrap = v != 0; + } + + ImGui.SameLine(); + fixed (byte* labelPtr = "Italic"u8) + { + var v = (byte)(this.useItalic ? 1 : 0); + if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) + { + this.useItalic = v != 0; + this.ClearAtlas(); + } + } + + ImGui.SameLine(); + fixed (byte* labelPtr = "Bold"u8) + { + var v = (byte)(this.useBold ? 1 : 0); + if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) + { + this.useBold = v != 0; + this.ClearAtlas(); + } + } + + ImGui.SameLine(); + fixed (byte* labelPtr = "Minimum Range"u8) + { + var v = (byte)(this.useMinimumBuild ? 1 : 0); + if (ImGuiNative.igCheckbox(labelPtr, &v) != 0) + { + this.useMinimumBuild = v != 0; + this.ClearAtlas(); + } + } ImGui.SameLine(); - if (ImGui.Checkbox("Italic"u8, ref this.useItalic)) - this.ClearAtlas(); - - ImGui.SameLine(); - if (ImGui.Checkbox("Bold"u8, ref this.useBold)) - this.ClearAtlas(); - - ImGui.SameLine(); - if (ImGui.Checkbox("Minimum Range"u8, ref this.useMinimumBuild)) - this.ClearAtlas(); - - ImGui.SameLine(); - if (ImGui.Button("Reset Text"u8) || this.testStringBuffer.IsDisposed) + if (ImGui.Button("Reset Text") || this.testStringBuffer.IsDisposed) { this.testStringBuffer.Dispose(); this.testStringBuffer = ImVectorWrapper.CreateFromSpan( @@ -93,10 +125,10 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable } ImGui.SameLine(); - if (ImGui.Button("Test Lock"u8)) + if (ImGui.Button("Test Lock")) Task.Run(this.TestLock); - if (ImGui.Button("Choose Editor Font"u8)) + if (ImGui.Button("Choose Editor Font")) { if (this.chooserDialog is null) { @@ -151,10 +183,10 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable if (this.chooserDialog is not null) { ImGui.SameLine(); - ImGui.Text($"{this.chooserDialog.PopupPosition}, {this.chooserDialog.PopupSize}"); + ImGui.TextUnformatted($"{this.chooserDialog.PopupPosition}, {this.chooserDialog.PopupSize}"); ImGui.SameLine(); - if (ImGui.Button("Random Location"u8)) + if (ImGui.Button("Random Location")) { var monitors = ImGui.GetPlatformIO().Monitors; var monitor = monitors[Random.Shared.Next() % monitors.Size]; @@ -179,13 +211,17 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable fixed (byte* labelPtr = "Test Input"u8) { if (!this.atlasScaleMode) - ImGui.SetWindowFontScale(1 / ImGuiHelpers.GlobalScale); + ImGuiNative.igSetWindowFontScale(1 / ImGuiHelpers.GlobalScale); using (this.fontDialogHandle.Push()) { - if (ImGui.InputTextMultiline( + if (ImGuiNative.igInputTextMultiline( labelPtr, - this.testStringBuffer.StorageSpan, - new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3))) + this.testStringBuffer.Data, + (uint)this.testStringBuffer.Capacity, + new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3), + 0, + null, + null) != 0) { var len = this.testStringBuffer.StorageSpan.IndexOf((byte)0); if (len + 4 >= this.testStringBuffer.Capacity) @@ -202,7 +238,7 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable } if (!this.atlasScaleMode) - ImGui.SetWindowFontScale(1); + ImGuiNative.igSetWindowFontScale(1); } this.fontHandles ??= @@ -238,7 +274,7 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable }) .ToArray()); - var offsetX = ImGui.CalcTextSize("99.9pt"u8).X + (ImGui.GetStyle().FramePadding.X * 2); + var offsetX = ImGui.CalcTextSize("99.9pt").X + (ImGui.GetStyle().FramePadding.X * 2); var counter = 0; foreach (var (family, items) in this.fontHandles) { @@ -247,41 +283,45 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable foreach (var (gfs, handle) in items) { - ImGui.Text($"{gfs.SizePt}pt"); + ImGui.TextUnformatted($"{gfs.SizePt}pt"); ImGui.SameLine(offsetX); - - using var pushedWrap = ImRaii.TextWrapPos(this.useWordWrap ? 0f : -1f); + ImGuiNative.igPushTextWrapPos(this.useWordWrap ? 0f : -1f); try { if (handle.Value.LoadException is { } exc) { - ImGui.Text(exc.ToString()); + ImGui.TextUnformatted(exc.ToString()); } else if (!handle.Value.Available) { - ImGui.Text("Loading..."u8[..(8 + ((Environment.TickCount / 200) % 3))]); + fixed (byte* labelPtr = "Loading..."u8) + ImGuiNative.igTextUnformatted(labelPtr, labelPtr + 8 + ((Environment.TickCount / 200) % 3)); } else { if (!this.atlasScaleMode) - ImGui.SetWindowFontScale(1 / ImGuiHelpers.GlobalScale); - + ImGuiNative.igSetWindowFontScale(1 / ImGuiHelpers.GlobalScale); if (counter++ % 2 == 0) { using var pushPop = handle.Value.Push(); - ImGui.Text(this.testStringBuffer.DataSpan); + ImGuiNative.igTextUnformatted( + this.testStringBuffer.Data, + this.testStringBuffer.Data + this.testStringBuffer.Length); } else { handle.Value.Push(); - ImGui.Text(this.testStringBuffer.DataSpan); + ImGuiNative.igTextUnformatted( + this.testStringBuffer.Data, + this.testStringBuffer.Data + this.testStringBuffer.Length); handle.Value.Pop(); } } } finally { - ImGui.SetWindowFontScale(1); + ImGuiNative.igSetWindowFontScale(1); + ImGuiNative.igPopTextWrapPos(); } } } @@ -340,9 +380,12 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable return; - static void TestSingle(ImFontPtr fontPtr, IFontHandle handle) + unsafe void TestSingle(ImFontPtr fontPtr, IFontHandle handle) { - var dim = ImGui.CalcTextSizeA(fontPtr, fontPtr.FontSize, float.MaxValue, 0f, "Test string"u8, out _); + var dim = default(Vector2); + var test = "Test string"u8; + fixed (byte* pTest = test) + ImGuiNative.ImFont_CalcTextSizeA(&dim, fontPtr, fontPtr.FontSize, float.MaxValue, 0, pTest, null, null); Log.Information($"{nameof(GamePrebakedFontsTestWidget)}: {handle} => {dim}"); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs index 12aa4c4ae..5121d82e6 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/GamepadWidget.cs @@ -1,7 +1,8 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.ClientState.GamePad; +using Dalamud.Game.ClientState.GamePad; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -10,10 +11,10 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class GamepadWidget : IDataWindowWidget { /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["gamepad", "controller"]; - + public string[]? CommandShortcuts { get; init; } = { "gamepad", "controller" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Gamepad"; + public string DisplayName { get; init; } = "Gamepad"; /// <inheritdoc/> public bool Ready { get; set; } @@ -39,14 +40,26 @@ internal class GamepadWidget : IDataWindowWidget ImGui.SetClipboardText($"{Util.DescribeAddress(gamepadState.GamepadInputAddress)}"); #endif - this.DrawHelper("Buttons Raw", (uint)gamepadState.ButtonsRaw, gamepadState.Raw); - this.DrawHelper("Buttons Pressed", (uint)gamepadState.ButtonsPressed, gamepadState.Pressed); - this.DrawHelper("Buttons Repeat", (uint)gamepadState.ButtonsRepeat, gamepadState.Repeat); - this.DrawHelper("Buttons Released", (uint)gamepadState.ButtonsReleased, gamepadState.Released); + this.DrawHelper( + "Buttons Raw", + gamepadState.ButtonsRaw, + gamepadState.Raw); + this.DrawHelper( + "Buttons Pressed", + gamepadState.ButtonsPressed, + gamepadState.Pressed); + this.DrawHelper( + "Buttons Repeat", + gamepadState.ButtonsRepeat, + gamepadState.Repeat); + this.DrawHelper( + "Buttons Released", + gamepadState.ButtonsReleased, + gamepadState.Released); ImGui.Text($"LeftStick {gamepadState.LeftStick}"); ImGui.Text($"RightStick {gamepadState.RightStick}"); } - + private void DrawHelper(string text, uint mask, Func<GamepadButtons, float> resolve) { ImGui.Text($"{text} {mask:X4}"); diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs index 8badcfaf8..f30585406 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/GaugeWidget.cs @@ -1,8 +1,8 @@ -using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.JobGauge; using Dalamud.Game.ClientState.JobGauge.Types; -using Dalamud.Game.ClientState.Objects; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -12,10 +12,10 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class GaugeWidget : IDataWindowWidget { /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["gauge", "jobgauge", "job"]; - + public string[]? CommandShortcuts { get; init; } = { "gauge", "jobgauge", "job" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Job Gauge"; + public string DisplayName { get; init; } = "Job Gauge"; /// <inheritdoc/> public bool Ready { get; set; } @@ -29,17 +29,18 @@ internal class GaugeWidget : IDataWindowWidget /// <inheritdoc/> public void Draw() { - var objectTable = Service<ObjectTable>.Get(); + var clientState = Service<ClientState>.Get(); var jobGauges = Service<JobGauges>.Get(); - var player = objectTable.LocalPlayer; + var player = clientState.LocalPlayer; if (player == null) { - ImGui.Text("Player is not present"u8); + ImGui.Text("Player is not present"); return; } - JobGaugeBase? gauge = player.ClassJob.RowId switch + var jobID = player.ClassJob.RowId; + JobGaugeBase? gauge = jobID switch { 19 => jobGauges.Get<PLDGauge>(), 20 => jobGauges.Get<MNKGauge>(), @@ -67,7 +68,7 @@ internal class GaugeWidget : IDataWindowWidget if (gauge == null) { - ImGui.Text("No supported gauge exists for this job."u8); + ImGui.Text("No supported gauge exists for this job."); return; } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs index e19281b40..b24587d6c 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/HookWidget.cs @@ -1,64 +1,32 @@ -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Threading; -using System.Threading.Tasks; +using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; -using Dalamud.Game; using Dalamud.Hooking; -using Dalamud.Interface.Utility.Raii; -using FFXIVClientStructs.FFXIV.Component.GUI; - +using ImGuiNET; +using PInvoke; using Serilog; -using Windows.Win32.Foundation; -using Windows.Win32.UI.WindowsAndMessaging; - namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> /// Widget for displaying hook information. /// </summary> -internal unsafe class HookWidget : IDataWindowWidget +internal class HookWidget : IDataWindowWidget { - private readonly List<IDalamudHook> hookStressTestList = []; - private Hook<MessageBoxWDelegate>? messageBoxMinHook; private bool hookUseMinHook; - - private int hookStressTestCount; - private int hookStressTestMax = 1000; - private int hookStressTestWait = 100; - private int hookStressTestMaxDegreeOfParallelism = 10; - private StressTestHookTarget hookStressTestHookTarget = StressTestHookTarget.Random; - private bool hookStressTestRunning; - - private MessageBoxWDelegate? messageBoxWOriginal; - private AddonFinalizeDelegate? addonFinalizeOriginal; - - private nint address; - + private delegate int MessageBoxWDelegate( IntPtr hWnd, [MarshalAs(UnmanagedType.LPWStr)] string text, [MarshalAs(UnmanagedType.LPWStr)] string caption, - MESSAGEBOX_STYLE type); - - private delegate void AddonFinalizeDelegate(AtkUnitManager* unitManager, AtkUnitBase** atkUnitBase); - - private enum StressTestHookTarget - { - MessageBoxW, - AddonFinalize, - Random, - } + NativeFunctions.MessageBoxType type); + + /// <inheritdoc/> + public string DisplayName { get; init; } = "Hook"; /// <inheritdoc/> - public string DisplayName { get; init; } = "Hook"; - - /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["hook"]; - + public string[]? CommandShortcuts { get; init; } = { "hook" }; + /// <inheritdoc/> public bool Ready { get; set; } @@ -66,9 +34,6 @@ internal unsafe class HookWidget : IDataWindowWidget public void Load() { this.Ready = true; - - var sigScanner = Service<TargetSigScanner>.Get(); - this.address = sigScanner.ScanText("E8 ?? ?? ?? ?? 48 83 EF 01 75 D5"); } /// <inheritdoc/> @@ -76,171 +41,49 @@ internal unsafe class HookWidget : IDataWindowWidget { try { - ImGui.Checkbox("Use MinHook (only for regular hooks, AsmHook is Reloaded-only)"u8, ref this.hookUseMinHook); + ImGui.Checkbox("Use MinHook", ref this.hookUseMinHook); - ImGui.Separator(); - - if (ImGui.Button("Create"u8)) + if (ImGui.Button("Create")) this.messageBoxMinHook = Hook<MessageBoxWDelegate>.FromSymbol("User32", "MessageBoxW", this.MessageBoxWDetour, this.hookUseMinHook); - if (ImGui.Button("Enable"u8)) + if (ImGui.Button("Enable")) this.messageBoxMinHook?.Enable(); - if (ImGui.Button("Disable"u8)) + if (ImGui.Button("Disable")) this.messageBoxMinHook?.Disable(); - if (ImGui.Button("Call Original"u8)) - this.messageBoxMinHook?.Original(IntPtr.Zero, "Hello from .Original", "Hook Test", MESSAGEBOX_STYLE.MB_OK); + if (ImGui.Button("Call Original")) + this.messageBoxMinHook?.Original(IntPtr.Zero, "Hello from .Original", "Hook Test", NativeFunctions.MessageBoxType.Ok); - if (ImGui.Button("Dispose"u8)) + if (ImGui.Button("Dispose")) { this.messageBoxMinHook?.Dispose(); this.messageBoxMinHook = null; } - if (ImGui.Button("Test"u8)) - _ = global::Windows.Win32.PInvoke.MessageBox(HWND.Null, "Hi", "Hello", MESSAGEBOX_STYLE.MB_OK); + if (ImGui.Button("Test")) + _ = NativeFunctions.MessageBoxW(IntPtr.Zero, "Hi", "Hello", NativeFunctions.MessageBoxType.Ok); if (this.messageBoxMinHook != null) ImGui.Text("Enabled: " + this.messageBoxMinHook?.IsEnabled); - - ImGui.Separator(); - - using (ImRaii.Disabled(this.hookStressTestRunning)) - { - ImGui.Text("Stress Test"u8); - - if (ImGui.InputInt("Max"u8, ref this.hookStressTestMax)) - this.hookStressTestCount = 0; - - ImGui.InputInt("Wait (ms)"u8, ref this.hookStressTestWait); - ImGui.InputInt("Max Degree of Parallelism"u8, ref this.hookStressTestMaxDegreeOfParallelism); - - using (var combo = ImRaii.Combo("Target"u8, HookTargetToString(this.hookStressTestHookTarget))) - { - if (combo.Success) - { - foreach (var target in Enum.GetValues<StressTestHookTarget>()) - { - if (ImGui.Selectable(HookTargetToString(target), this.hookStressTestHookTarget == target)) - this.hookStressTestHookTarget = target; - } - } - } - - if (ImGui.Button("Stress Test"u8)) - { - Task.Run(() => - { - this.hookStressTestRunning = true; - this.hookStressTestCount = 0; - Parallel.For( - 0, - this.hookStressTestMax, - new ParallelOptions - { - MaxDegreeOfParallelism = this.hookStressTestMaxDegreeOfParallelism, - }, - _ => - { - this.hookStressTestList.Add(this.HookTarget(this.hookStressTestHookTarget)); - this.hookStressTestCount++; - Thread.Sleep(this.hookStressTestWait); - }); - }).ContinueWith(t => - { - if (t.IsFaulted) - { - Log.Error(t.Exception, "Stress test failed"); - } - else - { - Log.Information("Stress test completed"); - } - - this.hookStressTestRunning = false; - this.hookStressTestList.ForEach(hook => - { - hook.Dispose(); - }); - this.hookStressTestList.Clear(); - }); - } - } - - ImGui.Text("Status: " + (this.hookStressTestRunning ? "Running" : "Idle")); - ImGui.ProgressBar(this.hookStressTestCount / (float)this.hookStressTestMax, new System.Numerics.Vector2(0, 0), $"{this.hookStressTestCount}/{this.hookStressTestMax}"); } catch (Exception ex) { - Log.Error(ex, "Hook error caught"); + Log.Error(ex, "MinHook error caught"); } } - - private static string HookTargetToString(StressTestHookTarget target) - { - return target switch - { - StressTestHookTarget.MessageBoxW => "MessageBoxW (Hook)", - StressTestHookTarget.AddonFinalize => "AddonFinalize (Hook)", - _ => target.ToString(), - }; - } - - private int MessageBoxWDetour(IntPtr hwnd, string text, string caption, MESSAGEBOX_STYLE type) + + private int MessageBoxWDetour(IntPtr hwnd, string text, string caption, NativeFunctions.MessageBoxType type) { Log.Information("[DATAHOOK] {Hwnd} {Text} {Caption} {Type}", hwnd, text, caption, type); - var result = this.messageBoxWOriginal!(hwnd, "Cause Access Violation?", caption, MESSAGEBOX_STYLE.MB_YESNO); + var result = this.messageBoxMinHook!.Original(hwnd, "Cause Access Violation?", caption, NativeFunctions.MessageBoxType.YesNo); - if (result == (int)MESSAGEBOX_RESULT.IDYES) + if (result == (int)User32.MessageBoxResult.IDYES) { Marshal.ReadByte(IntPtr.Zero); } return result; } - - private void OnAddonFinalize(AtkUnitManager* unitManager, AtkUnitBase** atkUnitBase) - { - Log.Information("OnAddonFinalize"); - this.addonFinalizeOriginal!(unitManager, atkUnitBase); - } - - private IDalamudHook HookMessageBoxW() - { - var hook = Hook<MessageBoxWDelegate>.FromSymbol( - "User32", - "MessageBoxW", - this.MessageBoxWDetour, - this.hookUseMinHook); - - this.messageBoxWOriginal = hook.Original; - hook.Enable(); - return hook; - } - - private IDalamudHook HookAddonFinalize() - { - var hook = Hook<AddonFinalizeDelegate>.FromAddress(this.address, this.OnAddonFinalize); - - this.addonFinalizeOriginal = hook.Original; - hook.Enable(); - return hook; - } - - private IDalamudHook HookTarget(StressTestHookTarget target) - { - if (target == StressTestHookTarget.Random) - { - target = (StressTestHookTarget)Random.Shared.Next(0, 2); - } - - return target switch - { - StressTestHookTarget.MessageBoxW => this.HookMessageBoxW(), - StressTestHookTarget.AddonFinalize => this.HookAddonFinalize(), - _ => throw new ArgumentOutOfRangeException(nameof(target), target, null), - }; - } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs index 670b83f67..ff34574b5 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/IconBrowserWidget.cs @@ -1,14 +1,14 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Numerics; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Internal; -using Dalamud.Interface.Utility.Raii; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -18,7 +18,7 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; public class IconBrowserWidget : IDataWindowWidget { private const int MaxIconId = 250_000; - + private Vector2 iconSize = new(64.0f, 64.0f); private Vector2 editIconSize = new(64.0f, 64.0f); @@ -34,7 +34,7 @@ public class IconBrowserWidget : IDataWindowWidget private Vector2 lastWindowSize = Vector2.Zero; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["icon", "icons"]; + public string[]? CommandShortcuts { get; init; } = { "icon", "icons" }; /// <inheritdoc/> public string DisplayName { get; init; } = "Icon Browser"; @@ -63,7 +63,6 @@ public class IconBrowserWidget : IDataWindowWidget // continue; if (!texm.TryGetIconPath(new((uint)iconId), out var path)) continue; - result.Add((iconId, path)); } @@ -74,27 +73,27 @@ public class IconBrowserWidget : IDataWindowWidget if (!this.iconIdsTask.IsCompleted) { - ImGui.Text("Loading..."u8); + ImGui.TextUnformatted("Loading..."); } else if (!this.iconIdsTask.IsCompletedSuccessfully) { - ImGui.Text(this.iconIdsTask.Exception?.ToString() ?? "Unknown error"); + ImGui.TextUnformatted(this.iconIdsTask.Exception?.ToString() ?? "Unknown error"); } else { this.RecalculateIndexRange(); - using (var child = ImRaii.Child("ScrollableSection"u8, ImGui.GetContentRegionAvail(), false, ImGuiWindowFlags.NoMove)) + if (ImGui.BeginChild("ScrollableSection", ImGui.GetContentRegionAvail(), false, ImGuiWindowFlags.NoMove)) { - if (child.Success) - { - var itemsPerRow = (int)MathF.Floor(ImGui.GetContentRegionMax().X / (this.iconSize.X + ImGui.GetStyle().ItemSpacing.X)); - var itemHeight = this.iconSize.Y + ImGui.GetStyle().ItemSpacing.Y; + var itemsPerRow = (int)MathF.Floor( + ImGui.GetContentRegionMax().X / (this.iconSize.X + ImGui.GetStyle().ItemSpacing.X)); + var itemHeight = this.iconSize.Y + ImGui.GetStyle().ItemSpacing.Y; - ImGuiClip.ClippedDraw(this.valueRange!, this.DrawIcon, itemsPerRow, itemHeight); - } + ImGuiClip.ClippedDraw(this.valueRange!, this.DrawIcon, itemsPerRow, itemHeight); } + ImGui.EndChild(); + this.ProcessMouseDragging(); } } @@ -120,23 +119,24 @@ public class IconBrowserWidget : IDataWindowWidget { ImGui.Columns(2); - ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputInt("##StartRange"u8, ref this.startRange)) + ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); + if (ImGui.InputInt("##StartRange", ref this.startRange, 0, 0)) { this.startRange = Math.Clamp(this.startRange, 0, MaxIconId); this.valueRange = null; } + ImGui.NextColumn(); - ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputInt("##StopRange"u8, ref this.stopRange)) + ImGui.PushItemWidth(ImGui.GetContentRegionAvail().X); + if (ImGui.InputInt("##StopRange", ref this.stopRange, 0, 0)) { this.stopRange = Math.Clamp(this.stopRange, 0, MaxIconId); this.valueRange = null; } ImGui.NextColumn(); - ImGui.Checkbox("Show Image in Tooltip"u8, ref this.showTooltipImage); + ImGui.Checkbox("Show Image in Tooltip", ref this.showTooltipImage); ImGui.NextColumn(); ImGui.InputFloat2("Icon Size", ref this.editIconSize); @@ -153,28 +153,28 @@ public class IconBrowserWidget : IDataWindowWidget var texm = Service<TextureManager>.Get(); var cursor = ImGui.GetCursorScreenPos(); - var white = ImGui.GetColorU32(ImGuiColors.DalamudWhite); - var red = ImGui.GetColorU32(ImGuiColors.DalamudRed); - var drawList = ImGui.GetWindowDrawList(); - if (texm.Shared.GetFromGameIcon(iconId).TryGetWrap(out var texture, out var exc)) { - ImGui.Image(texture.Handle, this.iconSize); + ImGui.Image(texture.ImGuiHandle, this.iconSize); // If we have the option to show a tooltip image, draw the image, but make sure it's not too big. if (ImGui.IsItemHovered() && this.showTooltipImage) { - using var tooltip = ImRaii.Tooltip(); + ImGui.BeginTooltip(); var scale = GetImageScaleFactor(texture); var textSize = ImGui.CalcTextSize(iconId.ToString()); - ImGui.SetCursorPosX((texture.Size.X * scale / 2.0f - (textSize.X / 2.0f)) + (ImGui.GetStyle().FramePadding.X * 2.0f)); + ImGui.SetCursorPosX( + texture.Size.X * scale / 2.0f - textSize.X / 2.0f + ImGui.GetStyle().FramePadding.X * 2.0f); ImGui.Text(iconId.ToString()); - ImGui.Image(texture.Handle, texture.Size * scale); + ImGui.Image(texture.ImGuiHandle, texture.Size * scale); + ImGui.EndTooltip(); } - else if (ImGui.IsItemHovered()) // else, just draw the iconId. + + // else, just draw the iconId. + else if (ImGui.IsItemHovered()) { ImGui.SetTooltip(iconId.ToString()); } @@ -187,7 +187,10 @@ public class IconBrowserWidget : IDataWindowWidget Task.FromResult(texture.CreateWrapSharingLowLevelResource())); } - drawList.AddRect(cursor, cursor + this.iconSize, white); + ImGui.GetWindowDrawList().AddRect( + cursor, + cursor + this.iconSize, + ImGui.GetColorU32(ImGuiColors.DalamudWhite)); } else if (exc is not null) { @@ -196,13 +199,19 @@ public class IconBrowserWidget : IDataWindowWidget { var iconText = FontAwesomeIcon.Ban.ToIconString(); var textSize = ImGui.CalcTextSize(iconText); - drawList.AddText(cursor + ((this.iconSize - textSize) / 2), red, iconText); + ImGui.GetWindowDrawList().AddText( + cursor + ((this.iconSize - textSize) / 2), + ImGui.GetColorU32(ImGuiColors.DalamudRed), + iconText); } - + if (ImGui.IsItemHovered()) - ImGui.SetTooltip($"{iconId}\n{exc}"); + ImGui.SetTooltip($"{iconId}\n{exc}".Replace("%", "%%")); - drawList.AddRect(cursor, cursor + this.iconSize, red); + ImGui.GetWindowDrawList().AddRect( + cursor, + cursor + this.iconSize, + ImGui.GetColorU32(ImGuiColors.DalamudRed)); } else { @@ -211,12 +220,18 @@ public class IconBrowserWidget : IDataWindowWidget ImGui.Dummy(this.iconSize); var textSize = ImGui.CalcTextSize(text); - drawList.AddText(cursor + ((this.iconSize - textSize) / 2), color, text); - + ImGui.GetWindowDrawList().AddText( + cursor + ((this.iconSize - textSize) / 2), + color, + text); + if (ImGui.IsItemHovered()) ImGui.SetTooltip(iconId.ToString()); - drawList.AddRect(cursor, cursor + this.iconSize, color); + ImGui.GetWindowDrawList().AddRect( + cursor, + cursor + this.iconSize, + color); } } @@ -256,7 +271,7 @@ public class IconBrowserWidget : IDataWindowWidget if (this.valueRange is not null) return; - this.valueRange = []; + this.valueRange = new(); foreach (var (id, _) in this.iconIdsTask!.Result) { if (this.startRange <= id && id < this.stopRange) diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs index 2581f902d..1476ce2e6 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ImGuiWidget.cs @@ -1,16 +1,17 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; -using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Windowing; using Dalamud.Storage.Assets; +using Dalamud.Utility; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -19,11 +20,11 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class ImGuiWidget : IDataWindowWidget { - private readonly HashSet<IActiveNotification> notifications = []; + private readonly HashSet<IActiveNotification> notifications = new(); private NotificationTemplate notificationTemplate; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["imgui"]; + public string[]? CommandShortcuts { get; init; } = { "imgui" }; /// <inheritdoc/> public string DisplayName { get; init; } = "ImGui"; @@ -49,67 +50,106 @@ internal class ImGuiWidget : IDataWindowWidget ImGui.Text("Monitor count: " + ImGui.GetPlatformIO().Monitors.Size); ImGui.Text("OverrideGameCursor: " + interfaceManager.OverrideGameCursor); - ImGui.Button("THIS IS A BUTTON###hoverTestButton"u8); + ImGui.Button("THIS IS A BUTTON###hoverTestButton"); interfaceManager.OverrideGameCursor = !ImGui.IsItemHovered(); ImGui.Separator(); - ImGui.Text($"WindowSystem.TimeSinceLastAnyFocus: {WindowSystem.TimeSinceLastAnyFocus.TotalMilliseconds:0}ms"); + ImGui.TextUnformatted( + $"WindowSystem.TimeSinceLastAnyFocus: {WindowSystem.TimeSinceLastAnyFocus.TotalMilliseconds:0}ms"); ImGui.Separator(); - ImGui.Checkbox("##manualContent"u8, ref this.notificationTemplate.ManualContent); + ImGui.Checkbox("##manualContent", ref this.notificationTemplate.ManualContent); ImGui.SameLine(); - ImGui.InputText("Content##content"u8, ref this.notificationTemplate.Content, 255); + ImGui.InputText("Content##content", ref this.notificationTemplate.Content, 255); - ImGui.Checkbox("##manualTitle"u8, ref this.notificationTemplate.ManualTitle); + ImGui.Checkbox("##manualTitle", ref this.notificationTemplate.ManualTitle); ImGui.SameLine(); - ImGui.InputText("Title##title"u8, ref this.notificationTemplate.Title, 255); + ImGui.InputText("Title##title", ref this.notificationTemplate.Title, 255); - ImGui.Checkbox("##manualMinimizedText"u8, ref this.notificationTemplate.ManualMinimizedText); + ImGui.Checkbox("##manualMinimizedText", ref this.notificationTemplate.ManualMinimizedText); ImGui.SameLine(); - ImGui.InputText("MinimizedText##minimizedText"u8, ref this.notificationTemplate.MinimizedText, 255); + ImGui.InputText("MinimizedText##minimizedText", ref this.notificationTemplate.MinimizedText, 255); - ImGui.Checkbox("##manualType"u8, ref this.notificationTemplate.ManualType); + ImGui.Checkbox("##manualType", ref this.notificationTemplate.ManualType); ImGui.SameLine(); - ImGui.Combo("Type##type", ref this.notificationTemplate.TypeInt, NotificationTemplate.TypeTitles); + ImGui.Combo( + "Type##type", + ref this.notificationTemplate.TypeInt, + NotificationTemplate.TypeTitles, + NotificationTemplate.TypeTitles.Length); - ImGui.Combo("Icon##iconCombo", ref this.notificationTemplate.IconInt, NotificationTemplate.IconTitles); + ImGui.Combo( + "Icon##iconCombo", + ref this.notificationTemplate.IconInt, + NotificationTemplate.IconTitles, + NotificationTemplate.IconTitles.Length); switch (this.notificationTemplate.IconInt) { case 1 or 2: - ImGui.InputText("Icon Text##iconText"u8, ref this.notificationTemplate.IconText, 255); + ImGui.InputText( + "Icon Text##iconText", + ref this.notificationTemplate.IconText, + 255); break; case 5 or 6: - ImGui.Combo("Asset##iconAssetCombo", ref this.notificationTemplate.IconAssetInt, NotificationTemplate.AssetSources); + ImGui.Combo( + "Asset##iconAssetCombo", + ref this.notificationTemplate.IconAssetInt, + NotificationTemplate.AssetSources, + NotificationTemplate.AssetSources.Length); break; case 3 or 7: - ImGui.InputText("Game Path##iconText"u8, ref this.notificationTemplate.IconText, 255); + ImGui.InputText( + "Game Path##iconText", + ref this.notificationTemplate.IconText, + 255); break; case 4 or 8: - ImGui.InputText("File Path##iconText"u8, ref this.notificationTemplate.IconText, 255); + ImGui.InputText( + "File Path##iconText", + ref this.notificationTemplate.IconText, + 255); break; } - ImGui.Combo("Initial Duration", ref this.notificationTemplate.InitialDurationInt, NotificationTemplate.InitialDurationTitles); + ImGui.Combo( + "Initial Duration", + ref this.notificationTemplate.InitialDurationInt, + NotificationTemplate.InitialDurationTitles, + NotificationTemplate.InitialDurationTitles.Length); - ImGui.Combo("Extension Duration", ref this.notificationTemplate.HoverExtendDurationInt, NotificationTemplate.HoverExtendDurationTitles); + ImGui.Combo( + "Extension Duration", + ref this.notificationTemplate.HoverExtendDurationInt, + NotificationTemplate.HoverExtendDurationTitles, + NotificationTemplate.HoverExtendDurationTitles.Length); - ImGui.Combo("Progress", ref this.notificationTemplate.ProgressMode, NotificationTemplate.ProgressModeTitles); + ImGui.Combo( + "Progress", + ref this.notificationTemplate.ProgressMode, + NotificationTemplate.ProgressModeTitles, + NotificationTemplate.ProgressModeTitles.Length); - ImGui.Checkbox("Respect UI Hidden"u8, ref this.notificationTemplate.RespectUiHidden); + ImGui.Checkbox("Respect UI Hidden", ref this.notificationTemplate.RespectUiHidden); - ImGui.Checkbox("Minimized"u8, ref this.notificationTemplate.Minimized); + ImGui.Checkbox("Minimized", ref this.notificationTemplate.Minimized); - ImGui.Checkbox("Show Indeterminate If No Expiry"u8, ref this.notificationTemplate.ShowIndeterminateIfNoExpiry); + ImGui.Checkbox("Show Indeterminate If No Expiry", ref this.notificationTemplate.ShowIndeterminateIfNoExpiry); - ImGui.Checkbox("User Dismissable"u8, ref this.notificationTemplate.UserDismissable); + ImGui.Checkbox("User Dismissable", ref this.notificationTemplate.UserDismissable); - ImGui.Checkbox("Action Bar (always on if not user dismissable for the example)"u8, ref this.notificationTemplate.ActionBar); + ImGui.Checkbox( + "Action Bar (always on if not user dismissable for the example)", + ref this.notificationTemplate.ActionBar); - if (ImGui.Button("Add notification"u8)) + ImGui.Checkbox("Leave Textures Open", ref this.notificationTemplate.LeaveTexturesOpen); + + if (ImGui.Button("Add notification")) { - var text = "Bla bla bla bla bla bla bla bla bla bla bla.\nBla bla bla bla bla bla bla bla bla bla bla bla bla bla."; + var text = + "Bla bla bla bla bla bla bla bla bla bla bla.\nBla bla bla bla bla bla bla bla bla bla bla bla bla bla."; NewRandom(out var title, out var type, out var progress); if (this.notificationTemplate.ManualTitle) @@ -172,34 +212,35 @@ internal class ImGuiWidget : IDataWindowWidget switch (this.notificationTemplate.IconInt) { case 5: - var textureWrap = DisposeLoggingTextureWrap.Wrap( - dam.GetDalamudTextureWrap( - Enum.Parse<DalamudAsset>( - NotificationTemplate.AssetSources[this.notificationTemplate.IconAssetInt]))); - - if (textureWrap != null) - { - n.IconTexture = new ForwardingSharedImmediateTexture(textureWrap); - } - + n.SetIconTexture( + DisposeLoggingTextureWrap.Wrap( + dam.GetDalamudTextureWrap( + Enum.Parse<DalamudAsset>( + NotificationTemplate.AssetSources[this.notificationTemplate.IconAssetInt]))), + this.notificationTemplate.LeaveTexturesOpen); + break; + case 6: + n.SetIconTexture( + dam.GetDalamudTextureWrapAsync( + Enum.Parse<DalamudAsset>( + NotificationTemplate.AssetSources[this.notificationTemplate.IconAssetInt])) + .ContinueWith( + r => r.IsCompletedSuccessfully + ? Task.FromResult<IDalamudTextureWrap>(DisposeLoggingTextureWrap.Wrap(r.Result)) + : r).Unwrap(), + this.notificationTemplate.LeaveTexturesOpen); break; case 7: - var textureWrap2 = DisposeLoggingTextureWrap.Wrap( - tm.Shared.GetFromGame(this.notificationTemplate.IconText).GetWrapOrDefault()); - if (textureWrap2 != null) - { - n.IconTexture = new ForwardingSharedImmediateTexture(textureWrap2); - } - + n.SetIconTexture( + DisposeLoggingTextureWrap.Wrap( + tm.Shared.GetFromGame(this.notificationTemplate.IconText).GetWrapOrDefault()), + this.notificationTemplate.LeaveTexturesOpen); break; case 8: - var textureWrap3 = DisposeLoggingTextureWrap.Wrap( - tm.Shared.GetFromFile(this.notificationTemplate.IconText).GetWrapOrDefault()); - if (textureWrap3 != null) - { - n.IconTexture = new ForwardingSharedImmediateTexture(textureWrap3); - } - + n.SetIconTexture( + DisposeLoggingTextureWrap.Wrap( + tm.Shared.GetFromFile(this.notificationTemplate.IconText).GetWrapOrDefault()), + this.notificationTemplate.LeaveTexturesOpen); break; } @@ -241,10 +282,10 @@ internal class ImGuiWidget : IDataWindowWidget n.DrawActions += an => { ImGui.AlignTextToFramePadding(); - ImGui.Text($"{nclick}"); + ImGui.TextUnformatted($"{nclick}"); ImGui.SameLine(); - if (ImGui.Button("Update"u8)) + if (ImGui.Button("Update")) { NewRandom(out title, out type, out progress); an.Notification.Title = title; @@ -253,24 +294,24 @@ internal class ImGuiWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Dismiss"u8)) + if (ImGui.Button("Dismiss")) an.Notification.DismissNow(); ImGui.SameLine(); ImGui.SetNextItemWidth(an.MaxCoord.X - ImGui.GetCursorPosX()); - ImGui.InputText("##input"u8, ref testString, 255); + ImGui.InputText("##input", ref testString, 255); }; } } - + ImGui.SameLine(); - if (ImGui.Button("Replace images using setter"u8)) + if (ImGui.Button("Replace images using setter")) { foreach (var n in this.notifications) { var i = (uint)Random.Shared.NextInt64(0, 200000); - - n.IconTexture = Service<TextureManager>.Get().Shared.GetFromGameIcon(new(i, false, false)); + n.IconTexture = DisposeLoggingTextureWrap.Wrap( + Service<TextureManager>.Get().Shared.GetFromGameIcon(new(i)).GetWrapOrDefault()); } } } @@ -309,7 +350,7 @@ internal class ImGuiWidget : IDataWindowWidget private struct NotificationTemplate { public static readonly string[] IconTitles = - [ + { "None (use Type)", "SeIconChar", "FontAwesomeIcon", @@ -319,7 +360,7 @@ internal class ImGuiWidget : IDataWindowWidget "TextureWrap from DalamudAssets(Async)", "TextureWrap from GamePath", "TextureWrap from FilePath", - ]; + }; public static readonly string[] AssetSources = Enum.GetValues<DalamudAsset>() @@ -328,46 +369,46 @@ internal class ImGuiWidget : IDataWindowWidget .ToArray(); public static readonly string[] ProgressModeTitles = - [ + { "Default", "Random", "Increasing", "Increasing & Auto Dismiss", "Indeterminate", - ]; + }; public static readonly string[] TypeTitles = - [ + { nameof(NotificationType.None), nameof(NotificationType.Success), nameof(NotificationType.Warning), nameof(NotificationType.Error), nameof(NotificationType.Info), - ]; + }; public static readonly string[] InitialDurationTitles = - [ + { "Infinite", "1 seconds", "3 seconds (default)", "10 seconds", - ]; + }; public static readonly string[] HoverExtendDurationTitles = - [ + { "Disable", "1 seconds", "3 seconds (default)", "10 seconds", - ]; + }; public static readonly TimeSpan[] Durations = - [ + { TimeSpan.Zero, TimeSpan.FromSeconds(1), NotificationConstants.DefaultDuration, TimeSpan.FromSeconds(10), - ]; + }; public bool ManualContent; public string Content; @@ -387,6 +428,7 @@ internal class ImGuiWidget : IDataWindowWidget public bool Minimized; public bool UserDismissable; public bool ActionBar; + public bool LeaveTexturesOpen; public int ProgressMode; public void Reset() @@ -408,6 +450,7 @@ internal class ImGuiWidget : IDataWindowWidget this.Minimized = true; this.UserDismissable = true; this.ActionBar = true; + this.LeaveTexturesOpen = true; this.ProgressMode = 0; this.RespectUiHidden = true; } @@ -419,7 +462,7 @@ internal class ImGuiWidget : IDataWindowWidget public DisposeLoggingTextureWrap(IDalamudTextureWrap inner) => this.inner = inner; - public ImTextureID Handle => this.inner.Handle; + public nint ImGuiHandle => this.inner.ImGuiHandle; public int Width => this.inner.Width; diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs index 818e3fabc..ac576da77 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/InventoryWidget.cs @@ -2,34 +2,32 @@ using System.Buffers.Binary; using System.Numerics; using System.Text; -using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game.Inventory; +using Dalamud.Game.Text; using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.Game; +using ImGuiNET; + using Lumina.Excel.Sheets; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; +#pragma warning disable SeStringRenderer + /// <summary> /// Widget for displaying inventory data. /// </summary> internal class InventoryWidget : IDataWindowWidget { - private const ImGuiTableFlags TableFlags = ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | - ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings; - - private const ImGuiTableFlags InnerTableFlags = ImGuiTableFlags.BordersInner | ImGuiTableFlags.NoSavedSettings; - private DataManager dataManager; private TextureManager textureManager; - private GameInventoryType? selectedInventoryType = GameInventoryType.Inventory1; + private InventoryType? selectedInventoryType = InventoryType.Inventory1; /// <inheritdoc/> public string[]? CommandShortcuts { get; init; } = ["inv", "inventory"]; @@ -59,7 +57,7 @@ internal class InventoryWidget : IDataWindowWidget ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - this.DrawInventoryType(this.selectedInventoryType.Value); + this.DrawInventoryType((InventoryType)this.selectedInventoryType); } private static string StripSoftHypen(string input) @@ -69,17 +67,17 @@ internal class InventoryWidget : IDataWindowWidget private unsafe void DrawInventoryTypeList() { - using var table = ImRaii.Table("InventoryTypeTable"u8, 2, TableFlags, new Vector2(300, -1)); + using var table = ImRaii.Table("InventoryTypeTable", 2, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings, new Vector2(300, -1)); if (!table) return; - ImGui.TableSetupColumn("Type"u8); - ImGui.TableSetupColumn("Size"u8, ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("Type"); + ImGui.TableSetupColumn("Size", ImGuiTableColumnFlags.WidthFixed, 40); ImGui.TableSetupScrollFreeze(2, 1); ImGui.TableHeadersRow(); - foreach (var inventoryType in Enum.GetValues<GameInventoryType>()) + foreach (var inventoryType in Enum.GetValues<InventoryType>()) { - var items = GameInventoryItem.GetReadOnlySpanOfInventory(inventoryType); + var items = GameInventoryItem.GetReadOnlySpanOfInventory((GameInventoryType)inventoryType); using var itemDisabled = ImRaii.Disabled(items.IsEmpty); @@ -94,40 +92,39 @@ internal class InventoryWidget : IDataWindowWidget { if (contextMenu) { - if (ImGui.MenuItem("Copy Name"u8)) + if (ImGui.MenuItem("Copy Name")) { ImGui.SetClipboardText(inventoryType.ToString()); } - if (ImGui.MenuItem("Copy Address"u8)) + if (ImGui.MenuItem("Copy Address")) { - var container = InventoryManager.Instance()->GetInventoryContainer((InventoryType)inventoryType); + var container = InventoryManager.Instance()->GetInventoryContainer(inventoryType); ImGui.SetClipboardText($"0x{(nint)container:X}"); } } } ImGui.TableNextColumn(); // Size - ImGui.Text(items.Length.ToString()); + ImGui.TextUnformatted(items.Length.ToString()); } } - private void DrawInventoryType(GameInventoryType inventoryType) + private unsafe void DrawInventoryType(InventoryType inventoryType) { - var items = GameInventoryItem.GetReadOnlySpanOfInventory(inventoryType); + var items = GameInventoryItem.GetReadOnlySpanOfInventory((GameInventoryType)inventoryType); if (items.IsEmpty) { - ImGui.Text($"{inventoryType} is empty."); + ImGui.TextUnformatted($"{inventoryType} is empty."); return; } - using var itemTable = ImRaii.Table("InventoryItemTable"u8, 4, TableFlags); + using var itemTable = ImRaii.Table("InventoryItemTable", 4, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); if (!itemTable) return; - - ImGui.TableSetupColumn("Slot"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("ItemId"u8, ImGuiTableColumnFlags.WidthFixed, 70); - ImGui.TableSetupColumn("Quantity"u8, ImGuiTableColumnFlags.WidthFixed, 70); - ImGui.TableSetupColumn("Item"u8); + ImGui.TableSetupColumn("Slot", ImGuiTableColumnFlags.WidthFixed, 40); + ImGui.TableSetupColumn("ItemId", ImGuiTableColumnFlags.WidthFixed, 70); + ImGui.TableSetupColumn("Quantity", ImGuiTableColumnFlags.WidthFixed, 70); + ImGui.TableSetupColumn("Item"); ImGui.TableSetupScrollFreeze(0, 1); ImGui.TableHeadersRow(); @@ -135,11 +132,11 @@ internal class InventoryWidget : IDataWindowWidget { var item = items[slotIndex]; - using var disabledItem = ImRaii.Disabled(item.ItemId == 0); + using var disableditem = ImRaii.Disabled(item.ItemId == 0); ImGui.TableNextRow(); ImGui.TableNextColumn(); // Slot - ImGui.Text(slotIndex.ToString()); + ImGui.TextUnformatted(slotIndex.ToString()); ImGui.TableNextColumn(); // ItemId ImGuiHelpers.ClickToCopyText(item.ItemId.ToString()); @@ -150,21 +147,24 @@ internal class InventoryWidget : IDataWindowWidget ImGui.TableNextColumn(); // Item if (item.ItemId != 0 && item.Quantity != 0) { - var itemName = ItemUtil.GetItemName(item.ItemId).ExtractText(); + var itemName = this.GetItemName(item.ItemId); var iconId = this.GetItemIconId(item.ItemId); + if (item.IsHq) + itemName += " " + SeIconChar.HighQuality.ToIconString(); + if (this.textureManager.Shared.TryGetFromGameIcon(new GameIconLookup(iconId, item.IsHq), out var tex) && tex.TryGetWrap(out var texture, out _)) { - ImGui.Image(texture.Handle, new Vector2(ImGui.GetTextLineHeight())); + ImGui.Image(texture.ImGuiHandle, new Vector2(ImGui.GetTextLineHeight())); if (ImGui.IsItemHovered()) { ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); - - using var tooltip = ImRaii.Tooltip(); - ImGui.Text("Click to copy IconId"u8); - ImGui.Text($"ID: {iconId} – Size: {texture.Width}x{texture.Height}"); - ImGui.Image(texture.Handle, new(texture.Width, texture.Height)); + ImGui.BeginTooltip(); + ImGui.TextUnformatted("Click to copy IconId"); + ImGui.TextUnformatted($"ID: {iconId} – Size: {texture.Width}x{texture.Height}"); + ImGui.Image(texture.ImGuiHandle, new(texture.Width, texture.Height)); + ImGui.EndTooltip(); } if (ImGui.IsItemClicked()) @@ -175,13 +175,13 @@ internal class InventoryWidget : IDataWindowWidget using var itemNameColor = ImRaii.PushColor(ImGuiCol.Text, this.GetItemRarityColor(item.ItemId)); using var node = ImRaii.TreeNode($"{itemName}###{inventoryType}_{slotIndex}", ImGuiTreeNodeFlags.SpanAvailWidth); - itemNameColor.Pop(); + itemNameColor.Dispose(); using (var contextMenu = ImRaii.ContextPopupItem($"{inventoryType}_{slotIndex}_ContextMenu")) { if (contextMenu) { - if (ImGui.MenuItem("Copy Name"u8)) + if (ImGui.MenuItem("Copy Name")) { ImGui.SetClipboardText(itemName); } @@ -190,18 +190,18 @@ internal class InventoryWidget : IDataWindowWidget if (!node) continue; - using var itemInfoTable = ImRaii.Table($"{inventoryType}_{slotIndex}_Table", 2, InnerTableFlags); + using var itemInfoTable = ImRaii.Table($"{inventoryType}_{slotIndex}_Table", 2, ImGuiTableFlags.BordersInner | ImGuiTableFlags.NoSavedSettings); if (!itemInfoTable) continue; - ImGui.TableSetupColumn("Name"u8, ImGuiTableColumnFlags.WidthFixed, 150); - ImGui.TableSetupColumn("Value"u8); + ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.WidthFixed, 150); + ImGui.TableSetupColumn("Value"); // ImGui.TableHeadersRow(); static void AddKeyValueRow(string fieldName, string value) { ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text(fieldName); + ImGui.TextUnformatted(fieldName); ImGui.TableNextColumn(); ImGuiHelpers.ClickToCopyText(value); } @@ -219,9 +219,9 @@ internal class InventoryWidget : IDataWindowWidget AddKeyValueRow("Quantity", item.Quantity.ToString()); AddKeyValueRow("GlamourId", item.GlamourId.ToString()); - if (!ItemUtil.IsEventItem(item.ItemId)) + if (!this.IsEventItem(item.ItemId)) { - AddKeyValueRow(item.IsCollectable ? "Collectability" : "Spiritbond", item.SpiritbondOrCollectability.ToString()); + AddKeyValueRow(item.IsCollectable ? "Collectability" : "Spiritbond", item.Spiritbond.ToString()); if (item.CrafterContentId != 0) AddKeyValueRow("CrafterContentId", item.CrafterContentId.ToString()); @@ -263,41 +263,40 @@ internal class InventoryWidget : IDataWindowWidget AddKeyValueRow("Flags", flagsBuilder.ToString()); - if (ItemUtil.IsNormalItem(item.ItemId) && this.dataManager.Excel.GetSheet<Item>().TryGetRow(item.ItemId, out var itemRow)) + if (this.IsNormalItem(item.ItemId) && this.dataManager.Excel.GetSheet<Item>().TryGetRow(item.ItemId, out var itemRow)) { - if (itemRow.DyeCount > 0 && item.Stains.Length > 0) + if (itemRow.DyeCount > 0) { ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Stains"u8); + ImGui.TextUnformatted("Stains"); ImGui.TableNextColumn(); - using var stainTable = ImRaii.Table($"{inventoryType}_{slotIndex}_StainTable", 2, InnerTableFlags); + using var stainTable = ImRaii.Table($"{inventoryType}_{slotIndex}_StainTable", 2, ImGuiTableFlags.BordersInner | ImGuiTableFlags.NoSavedSettings); if (!stainTable) continue; - ImGui.TableSetupColumn("Stain Id"u8, ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("Name"u8); + ImGui.TableSetupColumn("Stain Id", ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("Name"); ImGui.TableHeadersRow(); for (var i = 0; i < itemRow.DyeCount; i++) { - var stainId = item.Stains[i]; - AddValueValueRow(stainId.ToString(), this.GetStainName(stainId)); + AddValueValueRow(item.Stains[i].ToString(), this.GetStainName(item.Stains[i])); } } - if (itemRow.MateriaSlotCount > 0 && item.Materia.Length > 0) + if (itemRow.MateriaSlotCount > 0) { ImGui.TableNextRow(); ImGui.TableNextColumn(); - ImGui.Text("Materia"u8); + ImGui.TextUnformatted("Materia"); ImGui.TableNextColumn(); - using var materiaTable = ImRaii.Table($"{inventoryType}_{slotIndex}_MateriaTable", 2, InnerTableFlags); + using var materiaTable = ImRaii.Table($"{inventoryType}_{slotIndex}_MateriaTable", 2, ImGuiTableFlags.BordersInner | ImGuiTableFlags.NoSavedSettings); if (!materiaTable) continue; - ImGui.TableSetupColumn("Materia Id"u8, ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupColumn("MateriaGrade Id"u8); + ImGui.TableSetupColumn("Materia Id", ImGuiTableColumnFlags.WidthFixed, 80); + ImGui.TableSetupColumn("MateriaGrade Id"); ImGui.TableHeadersRow(); for (var i = 0; i < Math.Min(itemRow.MateriaSlotCount, item.Materia.Length); i++) @@ -310,6 +309,45 @@ internal class InventoryWidget : IDataWindowWidget } } + private bool IsEventItem(uint itemId) => itemId is > 2_000_000; + + private bool IsHighQuality(uint itemId) => itemId is > 1_000_000 and < 2_000_000; + + private bool IsCollectible(uint itemId) => itemId is > 500_000 and < 1_000_000; + + private bool IsNormalItem(uint itemId) => itemId is < 500_000; + + private uint GetBaseItemId(uint itemId) + { + if (this.IsEventItem(itemId)) return itemId; // uses EventItem sheet + if (this.IsHighQuality(itemId)) return itemId - 1_000_000; + if (this.IsCollectible(itemId)) return itemId - 500_000; + return itemId; + } + + private string GetItemName(uint itemId) + { + // EventItem + if (this.IsEventItem(itemId)) + { + return this.dataManager.Excel.GetSheet<EventItem>().TryGetRow(itemId, out var eventItemRow) + ? StripSoftHypen(eventItemRow.Name.ExtractText()) + : $"EventItem#{itemId}"; + } + + // HighQuality + if (this.IsHighQuality(itemId)) + itemId -= 1_000_000; + + // Collectible + if (this.IsCollectible(itemId)) + itemId -= 500_000; + + return this.dataManager.Excel.GetSheet<Item>().TryGetRow(itemId, out var itemRow) + ? StripSoftHypen(itemRow.Name.ExtractText()) + : $"Item#{itemId}"; + } + private string GetStainName(uint stainId) { return this.dataManager.Excel.GetSheet<Stain>().TryGetRow(stainId, out var stainRow) @@ -317,30 +355,51 @@ internal class InventoryWidget : IDataWindowWidget : $"Stain#{stainId}"; } + private uint GetItemRarityColorType(Item item, bool isEdgeColor = false) + { + return (isEdgeColor ? 548u : 547u) + item.Rarity * 2u; + } + + private uint GetItemRarityColorType(uint itemId, bool isEdgeColor = false) + { + // EventItem + if (this.IsEventItem(itemId)) + return this.GetItemRarityColorType(1, isEdgeColor); + + if (!this.dataManager.Excel.GetSheet<Item>().TryGetRow(this.GetBaseItemId(itemId), out var item)) + return this.GetItemRarityColorType(1, isEdgeColor); + + return this.GetItemRarityColorType(item, isEdgeColor); + } + private uint GetItemRarityColor(uint itemId, bool isEdgeColor = false) { - var normalized = ItemUtil.GetBaseId(itemId); - - if (normalized.Kind == ItemKind.EventItem) + if (this.IsEventItem(itemId)) return isEdgeColor ? 0xFF000000 : 0xFFFFFFFF; - if (!this.dataManager.Excel.GetSheet<Item>().TryGetRow(normalized.ItemId, out var item)) + if (!this.dataManager.Excel.GetSheet<Item>().TryGetRow(this.GetBaseItemId(itemId), out var item)) return isEdgeColor ? 0xFF000000 : 0xFFFFFFFF; - var rowId = ItemUtil.GetItemRarityColorType(item.RowId, isEdgeColor); + var rowId = this.GetItemRarityColorType(item, isEdgeColor); return this.dataManager.Excel.GetSheet<UIColor>().TryGetRow(rowId, out var color) - ? BinaryPrimitives.ReverseEndianness(color.Dark) | 0xFF000000 + ? BinaryPrimitives.ReverseEndianness(color.UIForeground) | 0xFF000000 : 0xFFFFFFFF; } private uint GetItemIconId(uint itemId) { - var normalized = ItemUtil.GetBaseId(itemId); - // EventItem - if (normalized.Kind == ItemKind.EventItem) + if (this.IsEventItem(itemId)) return this.dataManager.Excel.GetSheet<EventItem>().TryGetRow(itemId, out var eventItem) ? eventItem.Icon : 0u; - return this.dataManager.Excel.GetSheet<Item>().TryGetRow(normalized.ItemId, out var item) ? item.Icon : 0u; + // HighQuality + if (this.IsHighQuality(itemId)) + itemId -= 1_000_000; + + // Collectible + if (this.IsCollectible(itemId)) + itemId -= 500_000; + + return this.dataManager.Excel.GetSheet<Item>().TryGetRow(itemId, out var item) ? item.Icon : 0u; } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs index d3b021f7a..ce56052b1 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/KeyStateWidget.cs @@ -1,7 +1,7 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.ClientState.Keys; +using Dalamud.Game.ClientState.Keys; using Dalamud.Interface.Colors; -using Dalamud.Interface.Utility.Raii; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -11,10 +11,10 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class KeyStateWidget : IDataWindowWidget { /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["keystate"]; - + public string[]? CommandShortcuts { get; init; } = { "keystate" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "KeyState"; + public string DisplayName { get; init; } = "KeyState"; /// <inheritdoc/> public bool Ready { get; set; } @@ -30,7 +30,6 @@ internal class KeyStateWidget : IDataWindowWidget { var keyState = Service<KeyState>.Get(); - // TODO: Use table instead of columns ImGui.Columns(4); var i = 0; @@ -39,10 +38,11 @@ internal class KeyStateWidget : IDataWindowWidget var code = (int)vkCode; var value = keyState[code]; - using (ImRaii.PushColor(ImGuiCol.Text, value ? ImGuiColors.HealerGreen : ImGuiColors.DPSRed)) - { - ImGui.Text($"{vkCode} ({code})"); - } + ImGui.PushStyleColor(ImGuiCol.Text, value ? ImGuiColors.HealerGreen : ImGuiColors.DPSRed); + + ImGui.Text($"{vkCode} ({code})"); + + ImGui.PopStyleColor(); i++; if (i % 24 == 0) diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/LogMessageMonitorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/LogMessageMonitorWidget.cs deleted file mode 100644 index fde46f0c7..000000000 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/LogMessageMonitorWidget.cs +++ /dev/null @@ -1,156 +0,0 @@ -using System.Buffers; -using System.Collections.Concurrent; -using System.Linq; -using System.Text.Json; -using System.Text.RegularExpressions; - -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Chat; -using Dalamud.Game.Gui; -using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; - -using Lumina.Text.ReadOnly; - -using ImGuiTable = Dalamud.Interface.Utility.ImGuiTable; - -namespace Dalamud.Interface.Internal.Windows.Data.Widgets; - -/// <summary> -/// Widget to display the LogMessages. -/// </summary> -internal class LogMessageMonitorWidget : IDataWindowWidget -{ - private readonly ConcurrentQueue<LogMessageData> messages = new(); - - private bool trackMessages; - private int trackedMessages; - private Regex? filterRegex; - private string filterString = string.Empty; - - /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["logmessage"]; - - /// <inheritdoc/> - public string DisplayName { get; init; } = "LogMessage Monitor"; - - /// <inheritdoc/> - public bool Ready { get; set; } - - /// <inheritdoc/> - public void Load() - { - this.trackMessages = false; - this.trackedMessages = 20; - this.filterRegex = null; - this.filterString = string.Empty; - this.messages.Clear(); - this.Ready = true; - } - - /// <inheritdoc/> - public void Draw() - { - var network = Service<ChatGui>.Get(); - if (ImGui.Checkbox("Track LogMessages"u8, ref this.trackMessages)) - { - if (this.trackMessages) - { - network.LogMessage += this.OnLogMessage; - } - else - { - network.LogMessage -= this.OnLogMessage; - } - } - - ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X / 2); - if (ImGui.DragInt("Stored Number of Messages"u8, ref this.trackedMessages, 0.1f, 1, 512)) - { - this.trackedMessages = Math.Clamp(this.trackedMessages, 1, 512); - } - - if (ImGui.Button("Clear Stored Messages"u8)) - { - this.messages.Clear(); - } - - this.DrawFilterInput(); - - ImGuiTable.DrawTable(string.Empty, this.messages.Where(m => this.filterRegex == null || this.filterRegex.IsMatch(m.Formatted.ExtractText())), this.DrawNetworkPacket, ImGuiTableFlags.RowBg | ImGuiTableFlags.SizingStretchProp, "LogMessageId", "Source", "Target", "Parameters", "Formatted"); - } - - private void DrawNetworkPacket(LogMessageData data) - { - ImGui.TableNextColumn(); - ImGui.Text(data.LogMessageId.ToString()); - - ImGui.TableNextColumn(); - ImGuiHelpers.SeStringWrapped(data.Source); - - ImGui.TableNextColumn(); - ImGuiHelpers.SeStringWrapped(data.Target); - - ImGui.TableNextColumn(); - ImGui.Text(data.Parameters); - - ImGui.TableNextColumn(); - ImGuiHelpers.SeStringWrapped(data.Formatted); - } - - private void DrawFilterInput() - { - var invalidRegEx = this.filterString.Length > 0 && this.filterRegex == null; - using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 2 * ImGuiHelpers.GlobalScale, invalidRegEx); - using var color = ImRaii.PushColor(ImGuiCol.Border, 0xFF0000FF, invalidRegEx); - ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (!ImGui.InputTextWithHint("##Filter"u8, "Regex Filter..."u8, ref this.filterString, 1024)) - { - return; - } - - if (this.filterString.Length == 0) - { - this.filterRegex = null; - } - else - { - try - { - this.filterRegex = new Regex(this.filterString, RegexOptions.Compiled | RegexOptions.ExplicitCapture); - } - catch - { - this.filterRegex = null; - } - } - } - - private void OnLogMessage(ILogMessage message) - { - var buffer = new ArrayBufferWriter<byte>(); - var writer = new Utf8JsonWriter(buffer); - - writer.WriteStartArray(); - for (var i = 0; i < message.ParameterCount; i++) - { - if (message.TryGetStringParameter(i, out var str)) - writer.WriteStringValue(str.ExtractText()); - else if (message.TryGetIntParameter(i, out var num)) - writer.WriteNumberValue(num); - else - writer.WriteNullValue(); - } - - writer.WriteEndArray(); - writer.Flush(); - - this.messages.Enqueue(new LogMessageData(message.LogMessageId, message.SourceEntity?.Name ?? default, message.TargetEntity?.Name ?? default, buffer.WrittenMemory, message.FormatLogMessageForDebugging())); - while (this.messages.Count > this.trackedMessages) - { - this.messages.TryDequeue(out _); - } - } - - private readonly record struct LogMessageData(uint LogMessageId, ReadOnlySeString Source, ReadOnlySeString Target, ReadOnlyMemory<byte> Parameters, ReadOnlySeString Formatted); -} diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs index a74c5f3d3..b209e2d9e 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/MarketBoardWidget.cs @@ -1,12 +1,11 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.Globalization; -using Dalamud.Bindings.ImGui; using Dalamud.Game.MarketBoard; using Dalamud.Game.Network.Structures; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; - -using ImGuiTable = Dalamud.Interface.Utility.ImGuiTable; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -15,8 +14,6 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class MarketBoardWidget : IDataWindowWidget { - private const ImGuiTableFlags TableFlags = ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg; - private readonly ConcurrentQueue<(IMarketBoardHistory MarketBoardHistory, IMarketBoardHistoryListing Listing)> marketBoardHistoryQueue = new(); private readonly ConcurrentQueue<(IMarketBoardCurrentOfferings MarketBoardCurrentOfferings, IMarketBoardItemListing Listing)> marketBoardCurrentOfferingsQueue = new(); private readonly ConcurrentQueue<IMarketBoardPurchase> marketBoardPurchasesQueue = new(); @@ -45,7 +42,7 @@ internal class MarketBoardWidget : IDataWindowWidget } /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["marketboard"]; + public string[]? CommandShortcuts { get; init; } = { "marketboard" }; /// <inheritdoc/> public string DisplayName { get; init; } = "Market Board"; @@ -70,7 +67,7 @@ internal class MarketBoardWidget : IDataWindowWidget public void Draw() { var marketBoard = Service<MarketBoard>.Get(); - if (ImGui.Checkbox("Track MarketBoard Events"u8, ref this.trackMarketBoard)) + if (ImGui.Checkbox("Track MarketBoard Events", ref this.trackMarketBoard)) { if (this.trackMarketBoard) { @@ -91,57 +88,59 @@ internal class MarketBoardWidget : IDataWindowWidget } ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X / 2); - if (ImGui.DragInt("Stored Number of Events"u8, ref this.trackedEvents, 0.1f, 1, 512)) + if (ImGui.DragInt("Stored Number of Events", ref this.trackedEvents, 0.1f, 1, 512)) { this.trackedEvents = Math.Clamp(this.trackedEvents, 1, 512); } - if (ImGui.Button("Clear Stored Events"u8)) + if (ImGui.Button("Clear Stored Events")) { this.marketBoardHistoryQueue.Clear(); } - using var tabBar = ImRaii.TabBar("marketTabs"u8); - if (!tabBar.Success) - return; - - using (var tabItem = ImRaii.TabItem("History"u8)) + using (var tabBar = ImRaii.TabBar("marketTabs")) { - if (tabItem) + if (tabBar) { - ImGuiTable.DrawTable("history-table", this.marketBoardHistoryQueue, this.DrawMarketBoardHistory, TableFlags, "Item ID", "Quantity", "Is HQ?", "Sale Price", "Buyer Name", "Purchase Time"); - } - } + using (var tabItem = ImRaii.TabItem("History")) + { + if (tabItem) + { + ImGuiTable.DrawTable(string.Empty, this.marketBoardHistoryQueue, this.DrawMarketBoardHistory, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Quantity", "Is HQ?", "Sale Price", "Buyer Name", "Purchase Time"); + } + } - using (var tabItem = ImRaii.TabItem("Offerings"u8)) - { - if (tabItem) - { - ImGuiTable.DrawTable("offerings-table", this.marketBoardCurrentOfferingsQueue, this.DrawMarketBoardCurrentOfferings, TableFlags, "Item ID", "Quantity", "Is HQ?", "Price Per Unit", "Retainer Name"); - } - } + using (var tabItem = ImRaii.TabItem("Offerings")) + { + if (tabItem) + { + ImGuiTable.DrawTable(string.Empty, this.marketBoardCurrentOfferingsQueue, this.DrawMarketBoardCurrentOfferings, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Quantity", "Is HQ?", "Price Per Unit", "Retainer Name"); + } + } - using (var tabItem = ImRaii.TabItem("Purchases"u8)) - { - if (tabItem) - { - ImGuiTable.DrawTable("purchases-table", this.marketBoardPurchasesQueue, this.DrawMarketBoardPurchases, TableFlags, "Item ID", "Quantity"); - } - } + using (var tabItem = ImRaii.TabItem("Purchases")) + { + if (tabItem) + { + ImGuiTable.DrawTable(string.Empty, this.marketBoardPurchasesQueue, this.DrawMarketBoardPurchases, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Quantity"); + } + } - using (var tabItem = ImRaii.TabItem("Purchase Requests"u8)) - { - if (tabItem) - { - ImGuiTable.DrawTable("requests-table", this.marketBoardPurchaseRequestsQueue, this.DrawMarketBoardPurchaseRequests, TableFlags, "Item ID", "Is HQ?", "Quantity", "Price Per Unit", "Total Tax", "City ID", "Listing ID", "Retainer ID"); - } - } + using (var tabItem = ImRaii.TabItem("Purchase Requests")) + { + if (tabItem) + { + ImGuiTable.DrawTable(string.Empty, this.marketBoardPurchaseRequestsQueue, this.DrawMarketBoardPurchaseRequests, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Item ID", "Is HQ?", "Quantity", "Price Per Unit", "Total Tax", "City ID", "Listing ID", "Retainer ID"); + } + } - using (var tabItem = ImRaii.TabItem("Taxes"u8)) - { - if (tabItem) - { - ImGuiTable.DrawTable("taxes-table", this.marketTaxRatesQueue, this.DrawMarketTaxRates, TableFlags, "Uldah", "Limsa Lominsa", "Gridania", "Ishgard", "Kugane", "Crystarium", "Sharlayan", "Tuliyollal", "Valid Until"); + using (var tabItem = ImRaii.TabItem("Taxes")) + { + if (tabItem) + { + ImGuiTable.DrawTable(string.Empty, this.marketTaxRatesQueue, this.DrawMarketTaxRates, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Uldah", "Limsa Lominsa", "Gridania", "Ishgard", "Kugane", "Crystarium", "Sharlayan", "Tuliyollal", "Valid Until"); + } + } } } } @@ -205,105 +204,105 @@ internal class MarketBoardWidget : IDataWindowWidget private void DrawMarketBoardHistory((IMarketBoardHistory History, IMarketBoardHistoryListing Listing) data) { ImGui.TableNextColumn(); - ImGui.Text(data.History.ItemId.ToString()); + ImGui.TextUnformatted(data.History.ItemId.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.Quantity.ToString()); + ImGui.TextUnformatted(data.Listing.Quantity.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.IsHq.ToString()); + ImGui.TextUnformatted(data.Listing.IsHq.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.SalePrice.ToString()); + ImGui.TextUnformatted(data.Listing.SalePrice.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.BuyerName); + ImGui.TextUnformatted(data.Listing.BuyerName); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.PurchaseTime.ToString(CultureInfo.InvariantCulture)); + ImGui.TextUnformatted(data.Listing.PurchaseTime.ToString(CultureInfo.InvariantCulture)); } private void DrawMarketBoardCurrentOfferings((IMarketBoardCurrentOfferings MarketBoardCurrentOfferings, IMarketBoardItemListing Listing) data) { ImGui.TableNextColumn(); - ImGui.Text(data.Listing.ItemId.ToString()); + ImGui.TextUnformatted(data.Listing.ItemId.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.ItemQuantity.ToString()); + ImGui.TextUnformatted(data.Listing.ItemQuantity.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.IsHq.ToString()); + ImGui.TextUnformatted(data.Listing.IsHq.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.PricePerUnit.ToString()); + ImGui.TextUnformatted(data.Listing.PricePerUnit.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.Listing.RetainerName); + ImGui.TextUnformatted(data.Listing.RetainerName); } private void DrawMarketBoardPurchases(IMarketBoardPurchase data) { ImGui.TableNextColumn(); - ImGui.Text(data.CatalogId.ToString()); + ImGui.TextUnformatted(data.CatalogId.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.ItemQuantity.ToString()); + ImGui.TextUnformatted(data.ItemQuantity.ToString()); } private void DrawMarketBoardPurchaseRequests(IMarketBoardPurchaseHandler data) { ImGui.TableNextColumn(); - ImGui.Text(data.CatalogId.ToString()); + ImGui.TextUnformatted(data.CatalogId.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.IsHq.ToString()); + ImGui.TextUnformatted(data.IsHq.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.ItemQuantity.ToString()); + ImGui.TextUnformatted(data.ItemQuantity.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.PricePerUnit.ToString()); + ImGui.TextUnformatted(data.PricePerUnit.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.TotalTax.ToString()); + ImGui.TextUnformatted(data.TotalTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.RetainerCityId.ToString()); + ImGui.TextUnformatted(data.RetainerCityId.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.ListingId.ToString()); + ImGui.TextUnformatted(data.ListingId.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.RetainerId.ToString()); + ImGui.TextUnformatted(data.RetainerId.ToString()); } private void DrawMarketTaxRates(IMarketTaxRates data) { ImGui.TableNextColumn(); - ImGui.Text(data.UldahTax.ToString()); + ImGui.TextUnformatted(data.UldahTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.LimsaLominsaTax.ToString()); + ImGui.TextUnformatted(data.LimsaLominsaTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.GridaniaTax.ToString()); + ImGui.TextUnformatted(data.GridaniaTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.IshgardTax.ToString()); + ImGui.TextUnformatted(data.IshgardTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.KuganeTax.ToString()); + ImGui.TextUnformatted(data.KuganeTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.CrystariumTax.ToString()); + ImGui.TextUnformatted(data.CrystariumTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.SharlayanTax.ToString()); + ImGui.TextUnformatted(data.SharlayanTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.TuliyollalTax.ToString()); + ImGui.TextUnformatted(data.TuliyollalTax.ToString()); ImGui.TableNextColumn(); - ImGui.Text(data.ValidUntil.ToString(CultureInfo.InvariantCulture)); + ImGui.TextUnformatted(data.ValidUntil.ToString(CultureInfo.InvariantCulture)); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs index 73916761b..69a440713 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/NetworkMonitorWidget.cs @@ -1,310 +1,217 @@ using System.Collections.Concurrent; -using System.Threading; +using System.Collections.Generic; +using System.Linq; +using System.Text.RegularExpressions; -using Dalamud.Bindings.ImGui; -using Dalamud.Hooking; -using Dalamud.Interface.Components; +using Dalamud.Game.Network; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; +using Dalamud.Memory; -using FFXIVClientStructs.FFXIV.Application.Network; -using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Game.Object; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using FFXIVClientStructs.FFXIV.Client.Network; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> /// Widget to display the current packets. /// </summary> -internal unsafe class NetworkMonitorWidget : IDataWindowWidget +internal class NetworkMonitorWidget : IDataWindowWidget { private readonly ConcurrentQueue<NetworkPacketData> packets = new(); - private Hook<PacketDispatcher.Delegates.OnReceivePacket>? hookZoneDown; - private Hook<ZoneClient.Delegates.SendPacket>? hookZoneUp; - - private bool trackZoneUp; - private bool trackZoneDown; - private int trackedPackets = 20; - private ulong nextPacketIndex; + private bool trackNetwork; + private int trackedPackets; + private Regex? trackedOpCodes; private string filterString = string.Empty; - private bool filterRecording = true; - private bool autoScroll = true; - private bool autoScrollPending; + private Regex? untrackedOpCodes; + private string negativeFilterString = string.Empty; /// <summary> Finalizes an instance of the <see cref="NetworkMonitorWidget"/> class. </summary> ~NetworkMonitorWidget() { - this.hookZoneDown?.Dispose(); - this.hookZoneUp?.Dispose(); - } - - private enum NetworkMessageDirection - { - ZoneDown, - ZoneUp, + if (this.trackNetwork) + { + this.trackNetwork = false; + var network = Service<GameNetwork>.GetNullable(); + if (network != null) + { + network.NetworkMessage -= this.OnNetworkMessage; + } + } } /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["network", "netmon", "networkmonitor"]; - + public string[]? CommandShortcuts { get; init; } = { "network", "netmon", "networkmonitor" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Network Monitor"; + public string DisplayName { get; init; } = "Network Monitor"; /// <inheritdoc/> public bool Ready { get; set; } /// <inheritdoc/> - public void Load() => this.Ready = true; - + public void Load() + { + this.trackNetwork = false; + this.trackedPackets = 20; + this.trackedOpCodes = null; + this.filterString = string.Empty; + this.packets.Clear(); + this.Ready = true; + } + /// <inheritdoc/> public void Draw() { - this.hookZoneDown ??= Hook<PacketDispatcher.Delegates.OnReceivePacket>.FromAddress( - (nint)PacketDispatcher.StaticVirtualTablePointer->OnReceivePacket, - this.OnReceivePacketDetour); - - this.hookZoneUp ??= Hook<ZoneClient.Delegates.SendPacket>.FromAddress( - (nint)ZoneClient.MemberFunctionPointers.SendPacket, - this.SendPacketDetour); - - if (ImGui.Checkbox("Track ZoneUp"u8, ref this.trackZoneUp)) + var network = Service<GameNetwork>.Get(); + if (ImGui.Checkbox("Track Network Packets", ref this.trackNetwork)) { - if (this.trackZoneUp) + if (this.trackNetwork) { - if (!this.trackZoneDown) - this.nextPacketIndex = 0; - - this.hookZoneUp?.Enable(); + network.NetworkMessage += this.OnNetworkMessage; } else { - this.hookZoneUp?.Disable(); + network.NetworkMessage -= this.OnNetworkMessage; } } - if (ImGui.Checkbox("Track ZoneDown"u8, ref this.trackZoneDown)) - { - if (this.trackZoneDown) - { - if (!this.trackZoneUp) - this.nextPacketIndex = 0; - - this.hookZoneDown?.Enable(); - } - else - { - this.hookZoneDown?.Disable(); - } - } - - ImGui.SetNextItemWidth(-1); - if (ImGui.DragInt("Stored Number of Packets"u8, ref this.trackedPackets, 0.1f, 1, 512)) + ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X / 2); + if (ImGui.DragInt("Stored Number of Packets", ref this.trackedPackets, 0.1f, 1, 512)) { this.trackedPackets = Math.Clamp(this.trackedPackets, 1, 512); } - if (ImGui.Button("Clear Stored Packets"u8)) + if (ImGui.Button("Clear Stored Packets")) { this.packets.Clear(); - this.nextPacketIndex = 0; } - ImGui.SameLine(); - ImGui.Checkbox("Auto-Scroll"u8, ref this.autoScroll); + this.DrawFilterInput(); + this.DrawNegativeFilterInput(); - ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X - (ImGui.GetStyle().ItemInnerSpacing.X + ImGui.GetFrameHeight()) * 2); - ImGui.InputTextWithHint("##Filter"u8, "Filter OpCodes..."u8, ref this.filterString, 1024, ImGuiInputTextFlags.AutoSelectAll); - ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - ImGui.Checkbox("##FilterRecording"u8, ref this.filterRecording); - if (ImGui.IsItemHovered()) - ImGui.SetTooltip("When enabled, packets are filtered before being recorded.\nWhen disabled, all packets are recorded and filtering only affects packets displayed in the table."u8); - ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - ImGuiComponents.HelpMarker("Enter OpCodes in a comma-separated list.\nRanges are supported. Exclude OpCodes with exclamation mark.\nExample: -400,!50-100,650,700-980,!941"); + ImGuiTable.DrawTable(string.Empty, this.packets, this.DrawNetworkPacket, ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg, "Direction", "OpCode", "Hex", "Target", "Source", "Data"); + } - using var table = ImRaii.Table("NetworkMonitorTableV2"u8, 6, ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.NoSavedSettings); - if (!table) return; + private void DrawNetworkPacket(NetworkPacketData data) + { + ImGui.TableNextColumn(); + ImGui.TextUnformatted(data.Direction.ToString()); - ImGui.TableSetupColumn("Index"u8, ImGuiTableColumnFlags.WidthFixed, 50); - ImGui.TableSetupColumn("Time"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Direction"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("OpCode"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("OpCode (Hex)"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Target EntityId"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableHeadersRow(); + ImGui.TableNextColumn(); + ImGui.TextUnformatted(data.OpCode.ToString()); - var autoScrollDisabled = false; + ImGui.TableNextColumn(); + ImGui.TextUnformatted($"0x{data.OpCode:X4}"); - foreach (var packet in this.packets) + ImGui.TableNextColumn(); + ImGui.TextUnformatted(data.TargetActorId > 0 ? $"0x{data.TargetActorId:X}" : string.Empty); + + ImGui.TableNextColumn(); + ImGui.TextUnformatted(data.SourceActorId > 0 ? $"0x{data.SourceActorId:X}" : string.Empty); + + ImGui.TableNextColumn(); + if (data.Data.Count > 0) { - if (!this.filterRecording && !this.IsFiltered(packet.OpCode)) - continue; - - ImGui.TableNextColumn(); - ImGui.Text(packet.Index.ToString()); - - ImGui.TableNextColumn(); - ImGui.Text(packet.Time.ToLongTimeString()); - - ImGui.TableNextColumn(); - ImGui.Text(packet.Direction.ToString()); - - ImGui.TableNextColumn(); - using (ImRaii.PushId(packet.Index.ToString())) - { - if (ImGui.SmallButton("X")) - { - if (!string.IsNullOrEmpty(this.filterString)) - this.filterString += ","; - - this.filterString += $"!{packet.OpCode}"; - } - } - - if (ImGui.IsItemHovered()) - ImGui.SetTooltip("Filter OpCode"u8); - - autoScrollDisabled |= ImGui.IsItemHovered(); - - ImGui.SameLine(); - WidgetUtil.DrawCopyableText(packet.OpCode.ToString()); - autoScrollDisabled |= ImGui.IsItemHovered(); - - ImGui.TableNextColumn(); - WidgetUtil.DrawCopyableText($"0x{packet.OpCode:X3}"); - autoScrollDisabled |= ImGui.IsItemHovered(); - - ImGui.TableNextColumn(); - if (packet.TargetEntityId > 0) - { - WidgetUtil.DrawCopyableText($"{packet.TargetEntityId:X}"); - - var name = !string.IsNullOrEmpty(packet.TargetName) - ? packet.TargetName - : GetTargetName(packet.TargetEntityId); - - if (!string.IsNullOrEmpty(name)) - { - ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - ImGui.Text($"({name})"); - } - } + ImGui.TextUnformatted(string.Join(" ", data.Data.Select(b => b.ToString("X2")))); } - - if (this.autoScroll && this.autoScrollPending && !autoScrollDisabled) + else { - ImGui.SetScrollHereY(); - this.autoScrollPending = false; + ImGui.Dummy(ImGui.GetContentRegionAvail() with { Y = 0 }); } } - private static string GetTargetName(uint targetId) + private void DrawFilterInput() { - if (targetId == PlayerState.Instance()->EntityId) - return "Local Player"; - - var cachedName = NameCache.Instance()->GetNameByEntityId(targetId); - if (cachedName.HasValue) - return cachedName.ToString(); - - var obj = GameObjectManager.Instance()->Objects.GetObjectByEntityId(targetId); - if (obj != null) - return obj->NameString; - - return string.Empty; - } - - private void OnReceivePacketDetour(PacketDispatcher* thisPtr, uint targetId, nint packet) - { - var opCode = *(ushort*)(packet + 2); - var targetName = GetTargetName(targetId); - this.RecordPacket(new NetworkPacketData(Interlocked.Increment(ref this.nextPacketIndex), DateTime.Now, opCode, NetworkMessageDirection.ZoneDown, targetId, targetName)); - this.hookZoneDown.OriginalDisposeSafe(thisPtr, targetId, packet); - } - - private bool SendPacketDetour(ZoneClient* thisPtr, nint packet, uint a3, uint a4, bool a5) - { - var opCode = *(ushort*)packet; - this.RecordPacket(new NetworkPacketData(Interlocked.Increment(ref this.nextPacketIndex), DateTime.Now, opCode, NetworkMessageDirection.ZoneUp, 0, string.Empty)); - return this.hookZoneUp.OriginalDisposeSafe(thisPtr, packet, a3, a4, a5); - } - - private void RecordPacket(NetworkPacketData packet) - { - if (this.filterRecording && !this.IsFiltered(packet.OpCode)) + var invalidRegEx = this.filterString.Length > 0 && this.trackedOpCodes == null; + using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 2 * ImGuiHelpers.GlobalScale, invalidRegEx); + using var color = ImRaii.PushColor(ImGuiCol.Border, 0xFF0000FF, invalidRegEx); + ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); + if (!ImGui.InputTextWithHint("##Filter", "Regex Filter OpCodes...", ref this.filterString, 1024)) + { return; - - this.packets.Enqueue(packet); - - while (this.packets.Count > this.trackedPackets) - { - this.packets.TryDequeue(out _); } - this.autoScrollPending = true; - } - - private bool IsFiltered(ushort opcode) - { - var filterString = this.filterString.Replace(" ", string.Empty); - - if (filterString.Length == 0) - return true; - - try + if (this.filterString.Length == 0) { - var offset = 0; - var included = false; - var hasInclude = false; - - while (filterString.Length - offset > 0) + this.trackedOpCodes = null; + } + else + { + try { - var remaining = filterString[offset..]; - - // find the end of the current entry - var entryEnd = remaining.IndexOf(','); - if (entryEnd == -1) - entryEnd = remaining.Length; - - var entry = filterString[offset..(offset + entryEnd)]; - var dash = entry.IndexOf('-'); - var isExcluded = entry.StartsWith('!'); - var startOffset = isExcluded ? 1 : 0; - - var entryMatch = dash == -1 - ? ushort.Parse(entry[startOffset..]) == opcode - : ((dash - startOffset == 0 || opcode >= ushort.Parse(entry[startOffset..dash])) - && (entry[(dash + 1)..].Length == 0 || opcode <= ushort.Parse(entry[(dash + 1)..]))); - - if (isExcluded) - { - if (entryMatch) - return false; - } - else - { - hasInclude = true; - included |= entryMatch; - } - - if (entryEnd == filterString.Length) - break; - - offset += entryEnd + 1; + this.trackedOpCodes = new Regex(this.filterString, RegexOptions.Compiled | RegexOptions.ExplicitCapture); + } + catch + { + this.trackedOpCodes = null; } - - return !hasInclude || included; - } - catch (Exception ex) - { - Serilog.Log.Error(ex, "Invalid filter string"); - return false; } } + private void DrawNegativeFilterInput() + { + var invalidRegEx = this.negativeFilterString.Length > 0 && this.untrackedOpCodes == null; + using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 2 * ImGuiHelpers.GlobalScale, invalidRegEx); + using var color = ImRaii.PushColor(ImGuiCol.Border, 0xFF0000FF, invalidRegEx); + ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); + if (!ImGui.InputTextWithHint("##NegativeFilter", "Regex Filter Against OpCodes...", ref this.negativeFilterString, 1024)) + { + return; + } + + if (this.negativeFilterString.Length == 0) + { + this.untrackedOpCodes = null; + } + else + { + try + { + this.untrackedOpCodes = new Regex(this.negativeFilterString, RegexOptions.Compiled | RegexOptions.ExplicitCapture); + } + catch + { + this.untrackedOpCodes = null; + } + } + } + + private void OnNetworkMessage(nint dataPtr, ushort opCode, uint sourceActorId, uint targetActorId, NetworkMessageDirection direction) + { + if ((this.trackedOpCodes == null || this.trackedOpCodes.IsMatch(this.OpCodeToString(opCode))) + && (this.untrackedOpCodes == null || !this.untrackedOpCodes.IsMatch(this.OpCodeToString(opCode)))) + { + this.packets.Enqueue(new NetworkPacketData(this, opCode, direction, sourceActorId, targetActorId, dataPtr)); + while (this.packets.Count > this.trackedPackets) + { + this.packets.TryDequeue(out _); + } + } + } + + private int GetSizeFromOpCode(ushort opCode) + => 0; + + /// <remarks> Add known packet-name -> packet struct size associations here to copy the byte data for such packets. </remarks>> + private int GetSizeFromName(string name) + => name switch + { + _ => 0, + }; + + /// <remarks> The filter should find opCodes by number (decimal and hex) and name, if existing. </remarks> + private string OpCodeToString(ushort opCode) + => $"{opCode}\0{opCode:X}"; + #pragma warning disable SA1313 - private readonly record struct NetworkPacketData(ulong Index, DateTime Time, ushort OpCode, NetworkMessageDirection Direction, uint TargetEntityId, string TargetName); + private readonly record struct NetworkPacketData(ushort OpCode, NetworkMessageDirection Direction, uint SourceActorId, uint TargetActorId) #pragma warning restore SA1313 + { + public readonly IReadOnlyList<byte> Data = Array.Empty<byte>(); + + public NetworkPacketData(NetworkMonitorWidget widget, ushort opCode, NetworkMessageDirection direction, uint sourceActorId, uint targetActorId, nint dataPtr) + : this(opCode, direction, sourceActorId, targetActorId) + => this.Data = MemoryHelper.Read<byte>(dataPtr, widget.GetSizeFromOpCode(opCode), false); + } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/NounProcessorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/NounProcessorWidget.cs deleted file mode 100644 index 968254ceb..000000000 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/NounProcessorWidget.cs +++ /dev/null @@ -1,206 +0,0 @@ -using System.Linq; -using System.Text; - -using Dalamud.Bindings.ImGui; -using Dalamud.Data; -using Dalamud.Game; -using Dalamud.Game.ClientState; -using Dalamud.Game.Text.Noun; -using Dalamud.Game.Text.Noun.Enums; -using Dalamud.Interface.Utility.Raii; - -using Lumina.Data; -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace Dalamud.Interface.Internal.Windows.Data.Widgets; - -/// <summary> -/// Widget for the NounProcessor service. -/// </summary> -internal class NounProcessorWidget : IDataWindowWidget -{ - /// <summary>A list of German grammatical cases.</summary> - internal static readonly string[] GermanCases = [string.Empty, "Nominative", "Genitive", "Dative", "Accusative"]; - - private static readonly Type[] NounSheets = [ - typeof(Aetheryte), - typeof(BNpcName), - typeof(BeastTribe), - typeof(DeepDungeonEquipment), - typeof(DeepDungeonItem), - typeof(DeepDungeonMagicStone), - typeof(DeepDungeonDemiclone), - typeof(ENpcResident), - typeof(EObjName), - typeof(EurekaAetherItem), - typeof(EventItem), - typeof(GCRankGridaniaFemaleText), - typeof(GCRankGridaniaMaleText), - typeof(GCRankLimsaFemaleText), - typeof(GCRankLimsaMaleText), - typeof(GCRankUldahFemaleText), - typeof(GCRankUldahMaleText), - typeof(GatheringPointName), - typeof(Glasses), - typeof(GlassesStyle), - typeof(HousingPreset), - typeof(Item), - typeof(MJIName), - typeof(Mount), - typeof(Ornament), - typeof(TripleTriadCard), - ]; - - private ClientLanguage[] languages = []; - private string[] languageNames = []; - - private int selectedSheetNameIndex; - private int selectedLanguageIndex; - private int rowId = 1; - private int amount = 1; - - /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["noun"]; - - /// <inheritdoc/> - public string DisplayName { get; init; } = "Noun Processor"; - - /// <inheritdoc/> - public bool Ready { get; set; } - - /// <inheritdoc/> - public void Load() - { - this.languages = Enum.GetValues<ClientLanguage>(); - this.languageNames = Enum.GetNames<ClientLanguage>(); - this.selectedLanguageIndex = (int)Service<ClientState>.Get().ClientLanguage; - - this.Ready = true; - } - - /// <inheritdoc/> - public void Draw() - { - var nounProcessor = Service<NounProcessor>.Get(); - var dataManager = Service<DataManager>.Get(); - - var sheetType = NounSheets.ElementAt(this.selectedSheetNameIndex); - var language = this.languages[this.selectedLanguageIndex]; - - ImGui.SetNextItemWidth(300); - if (ImGui.Combo("###SelectedSheetName", ref this.selectedSheetNameIndex, NounSheets.Select(t => t.Name).ToArray())) - { - this.rowId = 1; - } - - ImGui.SameLine(); - - ImGui.SetNextItemWidth(120); - if (ImGui.Combo("###SelectedLanguage", ref this.selectedLanguageIndex, this.languageNames)) - { - language = this.languages[this.selectedLanguageIndex]; - this.rowId = 1; - } - - ImGui.SetNextItemWidth(120); - var sheet = dataManager.Excel.GetSheet<RawRow>(Language.English, sheetType.Name); - var minRowId = (int)sheet.FirstOrDefault().RowId; - var maxRowId = (int)sheet.LastOrDefault().RowId; - if (ImGui.InputInt("RowId###RowId", ref this.rowId, 1, 10, flags: ImGuiInputTextFlags.AutoSelectAll)) - { - if (this.rowId < minRowId) - this.rowId = minRowId; - - if (this.rowId >= maxRowId) - this.rowId = maxRowId; - } - - ImGui.SameLine(); - ImGui.Text($"(Range: {minRowId} - {maxRowId})"); - - ImGui.SetNextItemWidth(120); - if (ImGui.InputInt("Amount###Amount", ref this.amount, 1, 10, flags: ImGuiInputTextFlags.AutoSelectAll)) - { - if (this.amount <= 0) - this.amount = 1; - } - - var articleTypeEnumType = language switch - { - ClientLanguage.Japanese => typeof(JapaneseArticleType), - ClientLanguage.German => typeof(GermanArticleType), - ClientLanguage.French => typeof(FrenchArticleType), - _ => typeof(EnglishArticleType), - }; - - var numCases = language == ClientLanguage.German ? 4 : 1; - -#if DEBUG - if (ImGui.Button("Copy as self-test entry"u8)) - { - var sb = new StringBuilder(); - - foreach (var articleType in Enum.GetValues(articleTypeEnumType)) - { - for (var grammaticalCase = 0; grammaticalCase < numCases; grammaticalCase++) - { - var nounParams = new NounParams() - { - SheetName = sheetType.Name, - RowId = (uint)this.rowId, - Language = language, - Quantity = this.amount, - ArticleType = (int)articleType, - GrammaticalCase = grammaticalCase, - }; - var output = nounProcessor.ProcessNoun(nounParams).ExtractText().Replace("\"", "\\\""); - var caseParam = language == ClientLanguage.German ? $"(int)GermanCases.{GermanCases[grammaticalCase + 1]}" : "1"; - sb.AppendLine($"new(nameof(LSheets.{sheetType.Name}), {this.rowId}, ClientLanguage.{language}, {this.amount}, (int){articleTypeEnumType.Name}.{Enum.GetName(articleTypeEnumType, articleType)}, {caseParam}, \"{output}\"),"); - } - } - - ImGui.SetClipboardText(sb.ToString()); - } -#endif - - using var table = ImRaii.Table("TextDecoderTable"u8, 1 + numCases, ImGuiTableFlags.ScrollY | ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); - if (!table) return; - - ImGui.TableSetupColumn("ArticleType"u8, ImGuiTableColumnFlags.WidthFixed, 150); - for (var i = 0; i < numCases; i++) - ImGui.TableSetupColumn(language == ClientLanguage.German ? GermanCases[i] : "Text"); - ImGui.TableSetupScrollFreeze(6, 1); - ImGui.TableHeadersRow(); - - foreach (var articleType in Enum.GetValues(articleTypeEnumType)) - { - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - ImGui.TableHeader(articleType.ToString()); - - for (var currentCase = 0; currentCase < numCases; currentCase++) - { - ImGui.TableNextColumn(); - - try - { - var nounParams = new NounParams() - { - SheetName = sheetType.Name, - RowId = (uint)this.rowId, - Language = language, - Quantity = this.amount, - ArticleType = (int)articleType, - GrammaticalCase = currentCase, - }; - ImGui.Text(nounProcessor.ProcessNoun(nounParams).ExtractText()); - } - catch (Exception ex) - { - ImGui.Text(ex.ToString()); - } - } - } - } -} diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs index 6a6c0f8be..761dc49a8 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ObjectTableWidget.cs @@ -1,11 +1,10 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.Gui; -using Dalamud.Game.Player; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -14,106 +13,108 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class ObjectTableWidget : IDataWindowWidget { - private const ImGuiWindowFlags CharacterWindowFlags = ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.AlwaysAutoResize | - ImGuiWindowFlags.NoSavedSettings | ImGuiWindowFlags.NoMove | - ImGuiWindowFlags.NoMouseInputs | ImGuiWindowFlags.NoDocking | - ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNav; - private bool resolveGameData; private bool drawCharacters; private float maxCharaDrawDistance = 20.0f; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["ot", "objecttable"]; - + public string[]? CommandShortcuts { get; init; } = { "ot", "objecttable" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Object Table"; + public string DisplayName { get; init; } = "Object Table"; /// <inheritdoc/> public bool Ready { get; set; } - + /// <inheritdoc/> public void Load() { this.Ready = true; } - + /// <inheritdoc/> public void Draw() { - ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); - + ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); + var chatGui = Service<ChatGui>.Get(); var clientState = Service<ClientState>.Get(); - var playerState = Service<PlayerState>.Get(); var gameGui = Service<GameGui>.Get(); var objectTable = Service<ObjectTable>.Get(); var stateString = string.Empty; - if (objectTable.LocalPlayer == null) + if (clientState.LocalPlayer == null) { - ImGui.Text("LocalPlayer null."u8); - return; + ImGui.TextUnformatted("LocalPlayer null."); } - - if (clientState.IsPvPExcludingDen) + else if (clientState.IsPvPExcludingDen) { - ImGui.Text("Cannot access object table while in PvP."u8); - return; + ImGui.TextUnformatted("Cannot access object table while in PvP."); } - - stateString += $"ObjectTableLen: {objectTable.Length}\n"; - stateString += $"LocalPlayerName: {playerState.CharacterName}\n"; - stateString += $"CurrentWorldName: {(this.resolveGameData ? playerState.CurrentWorld.ValueNullable?.Name : playerState.CurrentWorld.RowId.ToString())}\n"; - stateString += $"HomeWorldName: {(this.resolveGameData ? playerState.HomeWorld.ValueNullable?.Name : playerState.HomeWorld.RowId.ToString())}\n"; - stateString += $"LocalCID: {playerState.ContentId:X}\n"; - stateString += $"LastLinkedItem: {chatGui.LastLinkedItemId}\n"; - stateString += $"TerritoryType: {clientState.TerritoryType}\n\n"; - - ImGui.Text(stateString); - - ImGui.Checkbox("Draw characters on screen"u8, ref this.drawCharacters); - ImGui.SliderFloat("Draw Distance"u8, ref this.maxCharaDrawDistance, 2f, 40f); - - for (var i = 0; i < objectTable.Length; i++) + else { - var obj = objectTable[i]; + stateString += $"ObjectTableLen: {objectTable.Length}\n"; + stateString += $"LocalPlayerName: {clientState.LocalPlayer.Name}\n"; + stateString += $"CurrentWorldName: {(this.resolveGameData ? clientState.LocalPlayer.CurrentWorld.ValueNullable?.Name : clientState.LocalPlayer.CurrentWorld.RowId.ToString())}\n"; + stateString += $"HomeWorldName: {(this.resolveGameData ? clientState.LocalPlayer.HomeWorld.ValueNullable?.Name : clientState.LocalPlayer.HomeWorld.RowId.ToString())}\n"; + stateString += $"LocalCID: {clientState.LocalContentId:X}\n"; + stateString += $"LastLinkedItem: {chatGui.LastLinkedItemId}\n"; + stateString += $"TerritoryType: {clientState.TerritoryType}\n\n"; - if (obj == null) - continue; + ImGui.TextUnformatted(stateString); - Util.PrintGameObject(obj, i.ToString(), this.resolveGameData); + ImGui.Checkbox("Draw characters on screen", ref this.drawCharacters); + ImGui.SliderFloat("Draw Distance", ref this.maxCharaDrawDistance, 2f, 40f); - if (this.drawCharacters && gameGui.WorldToScreen(obj.Position, out var screenCoords)) + for (var i = 0; i < objectTable.Length; i++) { - // So, while WorldToScreen will return false if the point is off of game client screen, to - // to avoid performance issues, we have to manually determine if creating a window would - // produce a new viewport, and skip rendering it if so - var objectText = $"{obj.Address:X}:{obj.GameObjectId:X}[{i}] - {obj.ObjectKind} - {obj.Name}"; + var obj = objectTable[i]; - var screenPos = ImGui.GetMainViewport().Pos; - var screenSize = ImGui.GetMainViewport().Size; - - var windowSize = ImGui.CalcTextSize(objectText); - - // Add some extra safety padding - windowSize.X += ImGui.GetStyle().WindowPadding.X + 10; - windowSize.Y += ImGui.GetStyle().WindowPadding.Y + 10; - - if (screenCoords.X + windowSize.X > screenPos.X + screenSize.X || - screenCoords.Y + windowSize.Y > screenPos.Y + screenSize.Y) + if (obj == null) continue; - if (obj.YalmDistanceX > this.maxCharaDrawDistance) - continue; + Util.PrintGameObject(obj, i.ToString(), this.resolveGameData); - ImGui.SetNextWindowPos(new Vector2(screenCoords.X, screenCoords.Y)); - ImGui.SetNextWindowBgAlpha(Math.Max(1f - (obj.YalmDistanceX / this.maxCharaDrawDistance), 0.2f)); + if (this.drawCharacters && gameGui.WorldToScreen(obj.Position, out var screenCoords)) + { + // So, while WorldToScreen will return false if the point is off of game client screen, to + // to avoid performance issues, we have to manually determine if creating a window would + // produce a new viewport, and skip rendering it if so + var objectText = $"{obj.Address.ToInt64():X}:{obj.GameObjectId:X}[{i}] - {obj.ObjectKind} - {obj.Name}"; - if (ImGui.Begin($"Actor{i}##ActorWindow{i}", CharacterWindowFlags)) - ImGui.Text(objectText); - ImGui.End(); + var screenPos = ImGui.GetMainViewport().Pos; + var screenSize = ImGui.GetMainViewport().Size; + + var windowSize = ImGui.CalcTextSize(objectText); + + // Add some extra safety padding + windowSize.X += ImGui.GetStyle().WindowPadding.X + 10; + windowSize.Y += ImGui.GetStyle().WindowPadding.Y + 10; + + if (screenCoords.X + windowSize.X > screenPos.X + screenSize.X || + screenCoords.Y + windowSize.Y > screenPos.Y + screenSize.Y) + continue; + + if (obj.YalmDistanceX > this.maxCharaDrawDistance) + continue; + + ImGui.SetNextWindowPos(new Vector2(screenCoords.X, screenCoords.Y)); + + ImGui.SetNextWindowBgAlpha(Math.Max(1f - (obj.YalmDistanceX / this.maxCharaDrawDistance), 0.2f)); + if (ImGui.Begin( + $"Actor{i}##ActorWindow{i}", + ImGuiWindowFlags.NoDecoration | + ImGuiWindowFlags.AlwaysAutoResize | + ImGuiWindowFlags.NoSavedSettings | + ImGuiWindowFlags.NoMove | + ImGuiWindowFlags.NoMouseInputs | + ImGuiWindowFlags.NoDocking | + ImGuiWindowFlags.NoFocusOnAppearing | + ImGuiWindowFlags.NoNav)) + ImGui.Text(objectText); + ImGui.End(); + } } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs index 597078f21..6e4cbcb16 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/PartyListWidget.cs @@ -1,6 +1,6 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.ClientState.Party; +using Dalamud.Game.ClientState.Party; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -12,10 +12,10 @@ internal class PartyListWidget : IDataWindowWidget private bool resolveGameData; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["partylist", "party"]; - + public string[]? CommandShortcuts { get; init; } = { "partylist", "party" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Party List"; + public string DisplayName { get; init; } = "Party List"; /// <inheritdoc/> public bool Ready { get; set; } @@ -31,11 +31,11 @@ internal class PartyListWidget : IDataWindowWidget { var partyList = Service<PartyList>.Get(); - ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); + ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); - ImGui.Text($"GroupManager: {partyList.GroupManagerAddress:X}"); - ImGui.Text($"GroupList: {partyList.GroupListAddress:X}"); - ImGui.Text($"AllianceList: {partyList.AllianceListAddress:X}"); + ImGui.Text($"GroupManager: {partyList.GroupManagerAddress.ToInt64():X}"); + ImGui.Text($"GroupList: {partyList.GroupListAddress.ToInt64():X}"); + ImGui.Text($"AllianceList: {partyList.AllianceListAddress.ToInt64():X}"); ImGui.Text($"{partyList.Length} Members"); @@ -48,13 +48,13 @@ internal class PartyListWidget : IDataWindowWidget continue; } - ImGui.Text($"[{i}] {member.Address:X} - {member.Name} - {member.GameObject?.GameObjectId ?? 0}"); + ImGui.Text($"[{i}] {member.Address.ToInt64():X} - {member.Name} - {member.GameObject?.GameObjectId}"); if (this.resolveGameData) { var actor = member.GameObject; if (actor == null) { - ImGui.Text("Actor was null"u8); + ImGui.Text("Actor was null"); } else { diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs index 72a02b219..d67dfc103 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/PluginIpcWidget.cs @@ -1,10 +1,10 @@ -using Dalamud.Bindings.ImGui; +using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Ipc.Internal; using Dalamud.Utility; - +using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -17,18 +17,18 @@ internal class PluginIpcWidget : IDataWindowWidget // IPC private ICallGateProvider<string, string>? ipcPub; private ICallGateSubscriber<string, string>? ipcSub; - + // IPC private ICallGateProvider<ICharacter?, string>? ipcPubGo; private ICallGateSubscriber<ICharacter?, string>? ipcSubGo; - + private string callGateResponse = string.Empty; - + /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["ipc"]; - + public string[]? CommandShortcuts { get; init; } = { "ipc" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Plugin IPC"; + public string DisplayName { get; init; } = "Plugin IPC"; /// <inheritdoc/> public bool Ready { get; set; } @@ -48,20 +48,12 @@ internal class PluginIpcWidget : IDataWindowWidget this.ipcPub.RegisterAction(msg => { - Log.Information( - "Data action was called: {Msg}\n" + - " Context: {Context}", - msg, - this.ipcPub.GetContext()); + Log.Information("Data action was called: {Msg}", msg); }); this.ipcPub.RegisterFunc(msg => { - Log.Information( - "Data func was called: {Msg}\n" + - " Context: {Context}", - msg, - this.ipcPub.GetContext()); + Log.Information("Data func was called: {Msg}", msg); return Guid.NewGuid().ToString(); }); } @@ -69,8 +61,14 @@ internal class PluginIpcWidget : IDataWindowWidget if (this.ipcSub == null) { this.ipcSub = new CallGatePubSub<string, string>("dataDemo1"); - this.ipcSub.Subscribe(_ => { Log.Information("PONG1"); }); - this.ipcSub.Subscribe(_ => { Log.Information("PONG2"); }); + this.ipcSub.Subscribe(_ => + { + Log.Information("PONG1"); + }); + this.ipcSub.Subscribe(_ => + { + Log.Information("PONG2"); + }); this.ipcSub.Subscribe(_ => throw new Exception("PONG3")); } @@ -80,21 +78,12 @@ internal class PluginIpcWidget : IDataWindowWidget this.ipcPubGo.RegisterAction(go => { - Log.Information( - "Data action was called: {Name}" + - "\n Context: {Context}", - go?.Name, - this.ipcPubGo.GetContext()); + Log.Information("Data action was called: {Name}", go?.Name); }); this.ipcPubGo.RegisterFunc(go => { - Log.Information( - "Data func was called: {Name}\n" + - " Context: {Context}", - go?.Name, - this.ipcPubGo.GetContext()); - + Log.Information("Data func was called: {Name}", go?.Name); return "test"; }); } @@ -105,31 +94,31 @@ internal class PluginIpcWidget : IDataWindowWidget this.ipcSubGo.Subscribe(go => { Log.Information("GO: {Name}", go.Name); }); } - if (ImGui.Button("PING"u8)) + if (ImGui.Button("PING")) { this.ipcPub.SendMessage("PING"); } - if (ImGui.Button("Action"u8)) + if (ImGui.Button("Action")) { this.ipcSub.InvokeAction("button1"); } - if (ImGui.Button("Func"u8)) + if (ImGui.Button("Func")) { this.callGateResponse = this.ipcSub.InvokeFunc("button2"); } - - if (ImGui.Button("Action GO"u8)) + + if (ImGui.Button("Action GO")) { - this.ipcSubGo.InvokeAction(Service<ObjectTable>.Get().LocalPlayer); + this.ipcSubGo.InvokeAction(Service<ClientState>.Get().LocalPlayer); } - - if (ImGui.Button("Func GO"u8)) + + if (ImGui.Button("Func GO")) { - this.callGateResponse = this.ipcSubGo.InvokeFunc(Service<ObjectTable>.Get().LocalPlayer); + this.callGateResponse = this.ipcSubGo.InvokeFunc(Service<ClientState>.Get().LocalPlayer); } - + if (!this.callGateResponse.IsNullOrEmpty()) ImGui.Text($"Response: {this.callGateResponse}"); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs index 87c0afe58..69282a8e8 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeFontTestWidget.cs @@ -1,7 +1,7 @@ -using System.Linq; +using Dalamud.Game.Text; +using ImGuiNET; -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Text; +using System.Linq; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -11,10 +11,10 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class SeFontTestWidget : IDataWindowWidget { /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["sefont", "sefonttest"]; - + public string[]? CommandShortcuts { get; init; } = { "sefont", "sefonttest" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "SeFont Test"; + public string DisplayName { get; init; } = "SeFont Test"; /// <inheritdoc/> public bool Ready { get; set; } @@ -36,6 +36,6 @@ internal class SeFontTestWidget : IDataWindowWidget for (var i = min; i <= max; i++) specialChars += $"0x{(int)i:X} - {(SeIconChar)i} - {i}\n"; - ImGui.Text(specialChars); + ImGui.TextUnformatted(specialChars); } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringCreatorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringCreatorWidget.cs deleted file mode 100644 index a11bc3719..000000000 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringCreatorWidget.cs +++ /dev/null @@ -1,1300 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using System.Text; -using System.Threading.Tasks; - -using Dalamud.Bindings.ImGui; -using Dalamud.Data; -using Dalamud.Game; -using Dalamud.Game.ClientState; -using Dalamud.Game.Text.Evaluator; -using Dalamud.Game.Text.Noun.Enums; -using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Utility; - -using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Client.UI.Misc; -using FFXIVClientStructs.FFXIV.Component.Text; - -using Lumina.Data; -using Lumina.Data.Files.Excel; -using Lumina.Data.Structs.Excel; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using Lumina.Text.Expressions; -using Lumina.Text.Payloads; -using Lumina.Text.ReadOnly; - -namespace Dalamud.Interface.Internal.Windows.Data.Widgets; - -/// <summary> -/// Widget to create SeStrings. -/// </summary> -internal class SeStringCreatorWidget : IDataWindowWidget -{ - private const LinkMacroPayloadType DalamudLinkType = (LinkMacroPayloadType)Payload.EmbeddedInfoType.DalamudLink - 1; - - private const ImGuiTableFlags TableFlags = ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | - ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings; - - private static readonly string[] TextEntryTypeOptions = ["String", "Macro", "Fixed"]; - - private readonly Dictionary<MacroCode, string[]> expressionNames = new() - { - { MacroCode.SetResetTime, ["Hour", "WeekDay"] }, - { MacroCode.SetTime, ["Time"] }, - { MacroCode.If, ["Condition", "StatementTrue", "StatementFalse"] }, - { MacroCode.Switch, ["Condition"] }, - { MacroCode.PcName, ["EntityId"] }, - { MacroCode.IfPcGender, ["EntityId", "CaseMale", "CaseFemale"] }, - { MacroCode.IfPcName, ["EntityId", "CaseTrue", "CaseFalse"] }, - // { MacroCode.Josa, [] }, - // { MacroCode.Josaro, [] }, - { MacroCode.IfSelf, ["EntityId", "CaseTrue", "CaseFalse"] }, - // { MacroCode.NewLine, [] }, - { MacroCode.Wait, ["Seconds"] }, - { MacroCode.Icon, ["IconId"] }, - { MacroCode.Color, ["Color"] }, - { MacroCode.EdgeColor, ["Color"] }, - { MacroCode.ShadowColor, ["Color"] }, - // { MacroCode.SoftHyphen, [] }, - // { MacroCode.Key, [] }, - // { MacroCode.Scale, [] }, - { MacroCode.Bold, ["Enabled"] }, - { MacroCode.Italic, ["Enabled"] }, - // { MacroCode.Edge, [] }, - // { MacroCode.Shadow, [] }, - // { MacroCode.NonBreakingSpace, [] }, - { MacroCode.Icon2, ["IconId"] }, - // { MacroCode.Hyphen, [] }, - { MacroCode.Num, ["Value"] }, - { MacroCode.Hex, ["Value"] }, - { MacroCode.Kilo, ["Value", "Separator"] }, - { MacroCode.Byte, ["Value"] }, - { MacroCode.Sec, ["Time"] }, - { MacroCode.Time, ["Value"] }, - { MacroCode.Float, ["Value", "Radix", "Separator"] }, - { MacroCode.Link, ["Type"] }, - { MacroCode.Sheet, ["SheetName", "RowId", "ColumnIndex", "ColumnParam"] }, - { MacroCode.String, ["String"] }, - { MacroCode.Caps, ["String"] }, - { MacroCode.Head, ["String"] }, - { MacroCode.Split, ["String", "Separator"] }, - { MacroCode.HeadAll, ["String"] }, - // { MacroCode.Fixed, [] }, - { MacroCode.Lower, ["String"] }, - { MacroCode.JaNoun, ["SheetName", "ArticleType", "RowId", "Amount", "Case", "UnkInt5"] }, - { MacroCode.EnNoun, ["SheetName", "ArticleType", "RowId", "Amount", "Case", "UnkInt5"] }, - { MacroCode.DeNoun, ["SheetName", "ArticleType", "RowId", "Amount", "Case", "UnkInt5"] }, - { MacroCode.FrNoun, ["SheetName", "ArticleType", "RowId", "Amount", "Case", "UnkInt5"] }, - { MacroCode.ChNoun, ["SheetName", "ArticleType", "RowId", "Amount", "Case", "UnkInt5"] }, - { MacroCode.LowerHead, ["String"] }, - { MacroCode.SheetSub, ["SheetName", "RowId", "SubrowId", "ColumnIndex", "SecondarySheetName", "SecondarySheetColumnIndex"] }, - { MacroCode.ColorType, ["ColorType"] }, - { MacroCode.EdgeColorType, ["ColorType"] }, - { MacroCode.Ruby, ["StandardText", "RubyText"] }, - { MacroCode.Digit, ["Value", "TargetLength"] }, - { MacroCode.Ordinal, ["Value"] }, - { MacroCode.Sound, ["IsJingle", "SoundId"] }, - { MacroCode.LevelPos, ["LevelId"] }, - }; - - private readonly Dictionary<LinkMacroPayloadType, string[]> linkExpressionNames = new() - { - { LinkMacroPayloadType.Character, ["Flags", "WorldId"] }, - { LinkMacroPayloadType.Item, ["ItemId", "Rarity"] }, - { LinkMacroPayloadType.MapPosition, ["TerritoryType/MapId", "RawX", "RawY"] }, - { LinkMacroPayloadType.Quest, ["RowId"] }, - { LinkMacroPayloadType.Achievement, ["RowId"] }, - { LinkMacroPayloadType.HowTo, ["RowId"] }, - // PartyFinderNotification - { LinkMacroPayloadType.Status, ["StatusId"] }, - { LinkMacroPayloadType.PartyFinder, ["ListingId", string.Empty, "WorldId"] }, - { LinkMacroPayloadType.AkatsukiNote, ["RowId"] }, - { LinkMacroPayloadType.Description, ["RowId"] }, - { LinkMacroPayloadType.WKSPioneeringTrail, ["RowId", "SubrowId"] }, - { LinkMacroPayloadType.MKDLore, ["RowId"] }, - { DalamudLinkType, ["CommandId", "Extra1", "Extra2", "ExtraString"] }, - }; - - private readonly Dictionary<uint, string[]> fixedExpressionNames = new() - { - { 1, ["Type0", "Type1", "WorldId"] }, - { 2, ["Type0", "Type1", "ClassJobId", "Level"] }, - { 3, ["Type0", "Type1", "TerritoryTypeId", "Instance & MapId", "RawX", "RawY", "RawZ", "PlaceNameIdOverride"] }, - { 4, ["Type0", "Type1", "ItemId", "Rarity", string.Empty, string.Empty, "Item Name"] }, - { 5, ["Type0", "Type1", "Sound Effect Id"] }, - { 6, ["Type0", "Type1", "ObjStrId"] }, - { 7, ["Type0", "Type1", "Text"] }, - { 8, ["Type0", "Type1", "Seconds"] }, - { 9, ["Type0", "Type1", string.Empty] }, - { 10, ["Type0", "Type1", "StatusId", "HasOverride", "NameOverride", "DescriptionOverride"] }, - { 11, ["Type0", "Type1", "ListingId", string.Empty, "WorldId", "CrossWorldFlag"] }, - { 12, ["Type0", "Type1", "QuestId", string.Empty, string.Empty, string.Empty, "QuestName"] }, - }; - - private readonly List<TextEntry> entries = [ - new TextEntry(TextEntryType.String, "Welcome to "), - new TextEntry(TextEntryType.Macro, "<colortype(17)>"), - new TextEntry(TextEntryType.Macro, "<edgecolortype(19)>"), - new TextEntry(TextEntryType.String, "Dalamud"), - new TextEntry(TextEntryType.Macro, "<edgecolor(stackcolor)>"), - new TextEntry(TextEntryType.Macro, "<color(stackcolor)>"), - new TextEntry(TextEntryType.Macro, " <string(lstr1)>"), - ]; - - private SeStringParameter[]? localParameters = [Versioning.GetScmVersion()]; - private ReadOnlySeString input; - private ClientLanguage? language; - private Task? validImportSheetNamesTask; - private int importSelectedSheetName; - private int importRowId; - private string[]? validImportSheetNames; - private float inputsWidth; - private float lastContentWidth; - - private enum TextEntryType - { - String, - Macro, - Fixed, - } - - /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = []; - - /// <inheritdoc/> - public string DisplayName { get; init; } = "SeString Creator"; - - /// <inheritdoc/> - public bool Ready { get; set; } - - /// <inheritdoc/> - public void Load() - { - this.language = Service<ClientState>.Get().ClientLanguage; - this.UpdateInputString(false); - this.Ready = true; - } - - /// <inheritdoc/> - public void Draw() - { - var contentWidth = ImGui.GetContentRegionAvail().X; - - // split panels in the middle by default - if (this.inputsWidth == 0) - { - this.inputsWidth = contentWidth / 2f; - } - - // resize panels relative to the window size - if (contentWidth != this.lastContentWidth) - { - var originalWidth = this.lastContentWidth != 0 ? this.lastContentWidth : contentWidth; - this.inputsWidth = (this.inputsWidth / originalWidth) * contentWidth; - this.lastContentWidth = contentWidth; - } - - using var tabBar = ImRaii.TabBar("SeStringCreatorWidgetTabBar"u8); - if (!tabBar) return; - - this.DrawCreatorTab(contentWidth); - this.DrawGlobalParametersTab(); - } - - private void DrawCreatorTab(float contentWidth) - { - using var tab = ImRaii.TabItem("Creator"u8); - if (!tab) return; - - this.DrawControls(); - ImGui.Spacing(); - this.DrawInputs(); - - this.localParameters ??= this.GetLocalParameters(this.input.AsSpan(), []); - - var evaluated = Service<SeStringEvaluator>.Get().Evaluate( - this.input.AsSpan(), - this.localParameters, - this.language); - - ImGui.SameLine(0, 0); - - ImGui.Button("###InputPanelResizer"u8, new Vector2(4, -1)); - if (ImGui.IsItemActive()) - { - this.inputsWidth += ImGui.GetIO().MouseDelta.X; - } - - if (ImGui.IsItemHovered()) - { - ImGui.SetMouseCursor(ImGuiMouseCursor.ResizeEw); - - if (ImGui.IsMouseDoubleClicked(ImGuiMouseButton.Left)) - { - this.inputsWidth = contentWidth / 2f; - } - } - - ImGui.SameLine(); - - using var child = ImRaii.Child("Preview"u8, new Vector2(ImGui.GetContentRegionAvail().X, -1)); - if (!child) return; - - if (this.localParameters!.Length != 0) - { - ImGui.Spacing(); - this.DrawParameters(); - } - - this.DrawPreview(evaluated); - - ImGui.Spacing(); - this.DrawPayloads(evaluated); - } - - private unsafe void DrawGlobalParametersTab() - { - using var tab = ImRaii.TabItem("Global Parameters"u8); - if (!tab) return; - - using var table = ImRaii.Table("GlobalParametersTable"u8, 5, TableFlags); - if (!table) return; - - ImGui.TableSetupColumn("Id"u8, ImGuiTableColumnFlags.WidthFixed, 40); - ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("ValuePtr"u8, ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Value"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Description"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupScrollFreeze(5, 1); - ImGui.TableHeadersRow(); - - var deque = RaptureTextModule.Instance()->GlobalParameters; - for (var i = 0u; i < deque.MySize; i++) - { - var item = deque[i]; - - ImGui.TableNextRow(); - ImGui.TableNextColumn(); // Id - ImGui.Text(i.ToString()); - - ImGui.TableNextColumn(); // Type - ImGui.Text(item.Type.ToString()); - - ImGui.TableNextColumn(); // ValuePtr - WidgetUtil.DrawCopyableText($"0x{(nint)item.ValuePtr:X}"); - - ImGui.TableNextColumn(); // Value - switch (item.Type) - { - case TextParameterType.Integer: - WidgetUtil.DrawCopyableText($"0x{item.IntValue:X}"); - ImGui.SameLine(); - WidgetUtil.DrawCopyableText(item.IntValue.ToString()); - break; - - case TextParameterType.ReferencedUtf8String: - if (item.ReferencedUtf8StringValue != null) - WidgetUtil.DrawCopyableText(new ReadOnlySeStringSpan(item.ReferencedUtf8StringValue->Utf8String).ToString()); - else - ImGui.Text("null"u8); - - break; - - case TextParameterType.String: - if (item.StringValue.Value != null) - WidgetUtil.DrawCopyableText(item.StringValue.ToString()); - else - ImGui.Text("null"u8); - break; - } - - ImGui.TableNextColumn(); - ImGui.Text(i switch - { - 0 => "Player Name", - 1 => "Temp Entity 1: Name", - 2 => "Temp Entity 2: Name", - 3 => "Player Sex", - 4 => "Temp Entity 1: Sex", - 5 => "Temp Entity 2: Sex", - 6 => "Temp Entity 1: ObjStrId", - 7 => "Temp Entity 2: ObjStrId", - 10 => "Eorzea Time Hours", - 11 => "Eorzea Time Minutes", - 12 => "ColorSay", - 13 => "ColorShout", - 14 => "ColorTell", - 15 => "ColorParty", - 16 => "ColorAlliance", - 17 => "ColorLS1", - 18 => "ColorLS2", - 19 => "ColorLS3", - 20 => "ColorLS4", - 21 => "ColorLS5", - 22 => "ColorLS6", - 23 => "ColorLS7", - 24 => "ColorLS8", - 25 => "ColorFCompany", - 26 => "ColorPvPGroup", - 27 => "ColorPvPGroupAnnounce", - 28 => "ColorBeginner", - 29 => "ColorEmoteUser", - 30 => "ColorEmote", - 31 => "ColorYell", - 32 => "ColorFCAnnounce", - 33 => "ColorBeginnerAnnounce", - 34 => "ColorCWLS", - 35 => "ColorAttackSuccess", - 36 => "ColorAttackFailure", - 37 => "ColorAction", - 38 => "ColorItem", - 39 => "ColorCureGive", - 40 => "ColorBuffGive", - 41 => "ColorDebuffGive", - 42 => "ColorEcho", - 43 => "ColorSysMsg", - 51 => "Player Grand Company Rank (Maelstrom)", - 52 => "Player Grand Company Rank (Twin Adders)", - 53 => "Player Grand Company Rank (Immortal Flames)", - 54 => "Companion Name", - 55 => "Content Name", - 56 => "ColorSysBattle", - 57 => "ColorSysGathering", - 58 => "ColorSysErr", - 59 => "ColorNpcSay", - 60 => "ColorItemNotice", - 61 => "ColorGrowup", - 62 => "ColorLoot", - 63 => "ColorCraft", - 64 => "ColorGathering", - 65 => "Temp Entity 1: Name starts with Vowel", - 66 => "Temp Entity 2: Name starts with Vowel", - 67 => "Player ClassJobId", - 68 => "Player Level", - 69 => "Player StartTown", - 70 => "Player Race", - 71 => "Player Synced Level", - 73 => "Quest#66047: Has met Alphinaud and Alisaie", - 74 => "PlayStation Generation", - 75 => "Is Legacy Player", - 77 => "Client/Platform?", - 78 => "Player BirthMonth", - 79 => "PadMode", - 82 => "Datacenter Region", - 83 => "ColorCWLS2", - 84 => "ColorCWLS3", - 85 => "ColorCWLS4", - 86 => "ColorCWLS5", - 87 => "ColorCWLS6", - 88 => "ColorCWLS7", - 89 => "ColorCWLS8", - 91 => "Player Grand Company", - 92 => "TerritoryType Id", - 93 => "Is Soft Keyboard Enabled", - 94 => "LogSetRoleColor 1: LogColorRoleTank", - 95 => "LogSetRoleColor 2: LogColorRoleTank", - 96 => "LogSetRoleColor 1: LogColorRoleHealer", - 97 => "LogSetRoleColor 2: LogColorRoleHealer", - 98 => "LogSetRoleColor 1: LogColorRoleDPS", - 99 => "LogSetRoleColor 2: LogColorRoleDPS", - 100 => "LogSetRoleColor 1: LogColorOtherClass", - 101 => "LogSetRoleColor 2: LogColorOtherClass", - 102 => "Has Login Security Token", - 103 => "Is subscribed to PlayStation Plus", - 104 => "PadMouseMode", - 106 => "Preferred World Bonus Max Level", - 107 => "Occult Crescent Support Job Level", - 108 => "Deep Dungeon Id", - _ => string.Empty, - }); - } - } - - private unsafe void DrawControls() - { - if (ImGui.Button("Add entry"u8)) - { - this.entries.Add(new(TextEntryType.String, string.Empty)); - } - - ImGui.SameLine(); - - if (ImGui.Button("Add from Sheet"u8)) - { - ImGui.OpenPopup("AddFromSheetPopup"u8); - } - - this.DrawAddFromSheetPopup(); - - ImGui.SameLine(); - - if (ImGui.Button("Print"u8)) - { - var output = Utf8String.CreateEmpty(); - var temp = Utf8String.CreateEmpty(); - var temp2 = Utf8String.CreateEmpty(); - - foreach (var entry in this.entries) - { - switch (entry.Type) - { - case TextEntryType.String: - output->ConcatCStr(entry.Message); - break; - - case TextEntryType.Macro: - temp->Clear(); - RaptureTextModule.Instance()->MacroEncoder.EncodeString(temp, entry.Message); - output->Append(temp); - break; - - case TextEntryType.Fixed: - temp->SetString(entry.Message); - temp2->Clear(); - - RaptureTextModule.Instance()->TextModule.ProcessMacroCode(temp2, temp->StringPtr); - var out1 = PronounModule.Instance()->ProcessString(temp2, true); - var out2 = PronounModule.Instance()->ProcessString(out1, false); - - output->Append(out2); - break; - } - } - - RaptureLogModule.Instance()->PrintString(output->StringPtr); - temp2->Dtor(true); - temp->Dtor(true); - output->Dtor(true); - } - - ImGui.SameLine(); - - if (ImGui.Button("Print Evaluated"u8)) - { - using var rssb = new RentedSeStringBuilder(); - - foreach (var entry in this.entries) - { - switch (entry.Type) - { - case TextEntryType.String: - rssb.Builder.Append(entry.Message); - break; - - case TextEntryType.Macro: - case TextEntryType.Fixed: - rssb.Builder.AppendMacroString(entry.Message); - break; - } - } - - var evaluated = Service<SeStringEvaluator>.Get().Evaluate( - rssb.Builder.ToReadOnlySeString(), - this.localParameters, - this.language); - - RaptureLogModule.Instance()->PrintString(evaluated); - } - - if (this.entries.Count != 0) - { - ImGui.SameLine(); - - if (ImGui.Button("Copy MacroString"u8)) - { - using var rssb = new RentedSeStringBuilder(); - - foreach (var entry in this.entries) - { - switch (entry.Type) - { - case TextEntryType.String: - rssb.Builder.Append(entry.Message); - break; - - case TextEntryType.Macro: - case TextEntryType.Fixed: - rssb.Builder.AppendMacroString(entry.Message); - break; - } - } - - ImGui.SetClipboardText(rssb.Builder.ToReadOnlySeString().ToMacroString()); - } - - ImGui.SameLine(); - - if (ImGui.Button("Clear entries"u8)) - { - this.entries.Clear(); - this.UpdateInputString(); - } - } - - var raptureTextModule = RaptureTextModule.Instance(); - if (!raptureTextModule->MacroEncoder.EncoderError.IsEmpty) - { - ImGui.SameLine(); - ImGui.Text(raptureTextModule->MacroEncoder.EncoderError.ToString()); // TODO: EncoderError doesn't clear - } - - ImGui.SameLine(); - ImGui.SetNextItemWidth(90 * ImGuiHelpers.GlobalScale); - using var dropdown = ImRaii.Combo("##Language"u8, this.language.ToString() ?? "Language..."); - if (dropdown) - { - var values = Enum.GetValues<ClientLanguage>().OrderBy(lang => lang.ToString()); - foreach (var value in values) - { - if (ImGui.Selectable(Enum.GetName(value), value == this.language)) - { - this.language = value; - this.UpdateInputString(); - } - } - } - } - - private void DrawAddFromSheetPopup() - { - using var popup = ImRaii.Popup("AddFromSheetPopup"u8); - if (!popup) return; - - var dataManager = Service<DataManager>.Get(); - - this.validImportSheetNamesTask ??= Task.Run(() => - { - this.validImportSheetNames = dataManager.Excel.SheetNames.Where(sheetName => - { - try - { - var headerFile = dataManager.GameData.GetFile<ExcelHeaderFile>($"exd/{sheetName}.exh"); - if (headerFile == null || headerFile.Header.Variant != ExcelVariant.Default) - return false; - - var sheet = dataManager.Excel.GetSheet<RawRow>(Language.English, sheetName); - return sheet.Columns.Any(col => col.Type == ExcelColumnDataType.String); - } - catch - { - return false; - } - }).OrderBy(sheetName => sheetName, StringComparer.InvariantCulture).ToArray(); - }); - - if (this.validImportSheetNames == null) - { - ImGui.Text("Loading sheets..."u8); - return; - } - - var sheetChanged = ImGui.Combo("Sheet Name", ref this.importSelectedSheetName, this.validImportSheetNames); - - try - { - var sheet = dataManager.Excel.GetSheet<RawRow>(this.language?.ToLumina() ?? Language.English, this.validImportSheetNames[this.importSelectedSheetName]); - var minRowId = (int)sheet.FirstOrDefault().RowId; - var maxRowId = (int)sheet.LastOrDefault().RowId; - - var rowIdChanged = ImGui.InputInt("RowId"u8, ref this.importRowId, 1, 10); - - ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - ImGui.Text($"(Range: {minRowId} - {maxRowId})"); - - if (sheetChanged || rowIdChanged) - { - if (sheetChanged || this.importRowId < minRowId) - this.importRowId = minRowId; - - if (this.importRowId > maxRowId) - this.importRowId = maxRowId; - } - - if (!sheet.TryGetRow((uint)this.importRowId, out var row)) - { - ImGui.TextColored(new Vector4(1, 0, 0, 1), "Row not found"u8); - return; - } - - ImGui.Text("Select string to add:"u8); - - using var table = ImRaii.Table("StringSelectionTable"u8, 2, ImGuiTableFlags.Borders | ImGuiTableFlags.NoSavedSettings); - if (!table) return; - - ImGui.TableSetupColumn("Column"u8, ImGuiTableColumnFlags.WidthFixed, 50); - ImGui.TableSetupColumn("Value"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableHeadersRow(); - - for (var i = 0; i < sheet.Columns.Count; i++) - { - var column = sheet.Columns[i]; - if (column.Type != ExcelColumnDataType.String) - continue; - - var value = row.ReadStringColumn(i); - if (value.IsEmpty) - continue; - - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - ImGui.Text(i.ToString()); - - ImGui.TableNextColumn(); - if (ImGui.Selectable($"{value.ToMacroString().Truncate(100)}###Column{i}")) - { - foreach (var payload in value) - { - switch (payload.Type) - { - case ReadOnlySePayloadType.Text: - this.entries.Add(new(TextEntryType.String, Encoding.UTF8.GetString(payload.Body.Span))); - break; - - case ReadOnlySePayloadType.Macro: - this.entries.Add(new(TextEntryType.Macro, payload.ToString())); - break; - } - } - - this.UpdateInputString(); - ImGui.CloseCurrentPopup(); - } - } - } - catch (Exception e) - { - ImGui.Text(e.Message); - } - } - - private void DrawInputs() - { - using var child = ImRaii.Child("Inputs"u8, new Vector2(this.inputsWidth, -1)); - if (!child) return; - - using var table = ImRaii.Table("StringMakerTable"u8, 3, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY | ImGuiTableFlags.NoSavedSettings); - if (!table) return; - - ImGui.TableSetupColumn("Type"u8, ImGuiTableColumnFlags.WidthFixed, 100); - ImGui.TableSetupColumn("Text"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Actions"u8, ImGuiTableColumnFlags.WidthFixed, 80); - ImGui.TableSetupScrollFreeze(3, 1); - ImGui.TableHeadersRow(); - - var arrowUpButtonSize = this.GetIconButtonSize(FontAwesomeIcon.ArrowUp); - var arrowDownButtonSize = this.GetIconButtonSize(FontAwesomeIcon.ArrowDown); - - var entryToRemove = -1; - var entryToMoveUp = -1; - var entryToMoveDown = -1; - var updateString = false; - - for (var i = 0; i < this.entries.Count; i++) - { - var key = $"##Entry{i}"; - var entry = this.entries[i]; - - ImGui.TableNextRow(); - - ImGui.TableNextColumn(); // Type - var type = (int)entry.Type; - ImGui.SetNextItemWidth(-1); - if (ImGui.Combo($"##Type{i}", ref type, TextEntryTypeOptions)) - { - entry.Type = (TextEntryType)type; - updateString |= true; - } - - ImGui.TableNextColumn(); // Text - var message = entry.Message; - ImGui.SetNextItemWidth(-1); - if (ImGui.InputText($"##{i}_Message", ref message, 2048)) - { - entry.Message = message; - updateString |= true; - } - - ImGui.TableNextColumn(); // Actions - - if (i > 0) - { - if (this.IconButton(key + "_Up", FontAwesomeIcon.ArrowUp, "Move up")) - { - entryToMoveUp = i; - } - } - else - { - ImGui.Dummy(arrowUpButtonSize); - } - - ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - - if (i < this.entries.Count - 1) - { - if (this.IconButton(key + "_Down", FontAwesomeIcon.ArrowDown, "Move down")) - { - entryToMoveDown = i; - } - } - else - { - ImGui.Dummy(arrowDownButtonSize); - } - - ImGui.SameLine(0, ImGui.GetStyle().ItemInnerSpacing.X); - - if (ImGui.IsKeyDown(ImGuiKey.LeftShift) || ImGui.IsKeyDown(ImGuiKey.RightShift)) - { - if (this.IconButton(key + "_Delete", FontAwesomeIcon.Trash, "Delete")) - { - entryToRemove = i; - } - } - else - { - this.IconButton( - key + "_Delete", - FontAwesomeIcon.Trash, - "Delete with shift", - disabled: true); - } - } - - table.Dispose(); - - if (entryToMoveUp != -1) - { - var removedItem = this.entries[entryToMoveUp]; - this.entries.RemoveAt(entryToMoveUp); - this.entries.Insert(entryToMoveUp - 1, removedItem); - updateString |= true; - } - - if (entryToMoveDown != -1) - { - var removedItem = this.entries[entryToMoveDown]; - this.entries.RemoveAt(entryToMoveDown); - this.entries.Insert(entryToMoveDown + 1, removedItem); - updateString |= true; - } - - if (entryToRemove != -1) - { - this.entries.RemoveAt(entryToRemove); - updateString |= true; - } - - if (updateString) - { - this.UpdateInputString(); - } - } - - private void UpdateInputString(bool resetLocalParameters = true) - { - using var rssb = new RentedSeStringBuilder(); - - foreach (var entry in this.entries) - { - switch (entry.Type) - { - case TextEntryType.String: - rssb.Builder.Append(entry.Message); - break; - - case TextEntryType.Macro: - case TextEntryType.Fixed: - rssb.Builder.AppendMacroString(entry.Message); - break; - } - } - - this.input = rssb.Builder.ToReadOnlySeString(); - - if (resetLocalParameters) - this.localParameters = null; - } - - private void DrawPreview(ReadOnlySeString str) - { - using var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00); - using var node = ImRaii.TreeNode("Preview"u8, ImGuiTreeNodeFlags.DefaultOpen); - nodeColor.Pop(); - if (!node) return; - - ImGui.Dummy(new Vector2(0, ImGui.GetTextLineHeight())); - ImGui.SameLine(0, 0); - ImGuiHelpers.SeStringWrapped(str); - } - - private void DrawParameters() - { - using var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00); - using var node = ImRaii.TreeNode("Parameters"u8, ImGuiTreeNodeFlags.DefaultOpen); - nodeColor.Pop(); - if (!node) return; - - for (var i = 0; i < this.localParameters!.Length; i++) - { - if (this.localParameters[i].IsString) - { - var str = this.localParameters[i].StringValue.ExtractText(); - if (ImGui.InputText($"lstr({i + 1})", ref str, 255)) - { - this.localParameters[i] = new(str); - } - } - else - { - var num = (int)this.localParameters[i].UIntValue; - if (ImGui.InputInt($"lnum({i + 1})", ref num)) - { - this.localParameters[i] = new((uint)num); - } - } - } - } - - private void DrawPayloads(ReadOnlySeString evaluated) - { - using (var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00)) - using (var node = ImRaii.TreeNode("Payloads"u8, ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth)) - { - nodeColor.Pop(); - if (node) this.DrawSeString("payloads", this.input.AsSpan(), treeNodeFlags: ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth); - } - - if (this.input.Equals(evaluated)) - return; - - using (var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FF00)) - using (var node = ImRaii.TreeNode("Payloads (Evaluated)"u8, ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth)) - { - nodeColor.Pop(); - if (node) this.DrawSeString("payloads-evaluated", evaluated.AsSpan(), treeNodeFlags: ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth); - } - } - - private void DrawSeString(string id, ReadOnlySeStringSpan rosss, bool asTreeNode = false, bool renderSeString = false, int depth = 0, ImGuiTreeNodeFlags treeNodeFlags = ImGuiTreeNodeFlags.None) - { - using var seStringId = ImRaii.PushId(id); - - if (rosss.PayloadCount == 0) - { - ImGui.Dummy(Vector2.Zero); - return; - } - - using var node = asTreeNode ? this.SeStringTreeNode(id, rosss) : null; - if (asTreeNode && !node!) return; - - if (!asTreeNode && renderSeString) - { - ImGuiHelpers.SeStringWrapped(rosss, new() - { - ForceEdgeColor = true, - }); - } - - var payloadIdx = -1; - foreach (var payload in rosss) - { - payloadIdx++; - using var payloadId = ImRaii.PushId(payloadIdx); - - var preview = payload.Type.ToString(); - if (payload.Type == ReadOnlySePayloadType.Macro) - preview += $": {payload.MacroCode}"; - - using var nodeColor = ImRaii.PushColor(ImGuiCol.Text, 0xFF00FFFF); - using var payloadNode = ImRaii.TreeNode($"[{payloadIdx}] {preview}", ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.SpanAvailWidth); - nodeColor.Pop(); - if (!payloadNode) continue; - - using var table = ImRaii.Table($"##Payload{payloadIdx}Table", 2); - if (!table) return; - - ImGui.TableSetupColumn("Label"u8, ImGuiTableColumnFlags.WidthFixed, 120); - ImGui.TableSetupColumn("Tree"u8, ImGuiTableColumnFlags.WidthStretch); - - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - ImGui.Text(payload.Type == ReadOnlySePayloadType.Text ? "Text" : "ToString()"); - ImGui.TableNextColumn(); - var text = payload.ToString(); - WidgetUtil.DrawCopyableText($"\"{text}\"", text); - - if (payload.Type != ReadOnlySePayloadType.Macro) - continue; - - if (payload.ExpressionCount > 0) - { - var exprIdx = 0; - uint? subType = null; - uint? fixedType = null; - - if (payload.MacroCode == MacroCode.Link && payload.TryGetExpression(out var linkExpr1) && linkExpr1.TryGetUInt(out var linkExpr1Val)) - { - subType = linkExpr1Val; - } - else if (payload.MacroCode == MacroCode.Fixed && payload.TryGetExpression(out var fixedTypeExpr, out var linkExpr2) && fixedTypeExpr.TryGetUInt(out var fixedTypeVal) && linkExpr2.TryGetUInt(out var linkExpr2Val)) - { - subType = linkExpr2Val; - fixedType = fixedTypeVal; - } - - foreach (var expr in payload) - { - using var exprId = ImRaii.PushId(exprIdx); - - this.DrawExpression(payload.MacroCode, subType, fixedType, exprIdx++, expr); - } - } - } - } - - private unsafe void DrawExpression(MacroCode macroCode, uint? subType, uint? fixedType, int exprIdx, ReadOnlySeExpressionSpan expr) - { - ImGui.TableNextRow(); - - ImGui.TableNextColumn(); - var expressionName = this.GetExpressionName(macroCode, subType, exprIdx, expr); - ImGui.Text($"[{exprIdx}] " + (string.IsNullOrEmpty(expressionName) ? $"Expr {exprIdx}" : expressionName)); - - ImGui.TableNextColumn(); - - if (expr.Body.IsEmpty) - { - ImGui.Text("(?)"u8); - return; - } - - if (expr.TryGetUInt(out var u32)) - { - if (macroCode is MacroCode.Icon or MacroCode.Icon2 && exprIdx == 0) - { - var iconId = u32; - - if (macroCode == MacroCode.Icon2) - { - var iconMapping = RaptureAtkModule.Instance()->AtkFontManager.Icon2RemapTable; - for (var i = 0; i < 30; i++) - { - if (iconMapping[i].IconId == iconId) - { - iconId = iconMapping[i].RemappedIconId; - break; - } - } - } - - using var rssb = new RentedSeStringBuilder(); - rssb.Builder.AppendIcon(iconId); - ImGuiHelpers.SeStringWrapped(rssb.Builder.ToArray()); - - ImGui.SameLine(); - } - - WidgetUtil.DrawCopyableText(u32.ToString()); - ImGui.SameLine(); - WidgetUtil.DrawCopyableText($"0x{u32:X}"); - - if (macroCode == MacroCode.Link && exprIdx == 0) - { - var name = subType != null && (LinkMacroPayloadType)subType == DalamudLinkType - ? "Dalamud" - : Enum.GetName((LinkMacroPayloadType)u32); - - if (!string.IsNullOrEmpty(name)) - { - ImGui.SameLine(); - ImGui.Text(name); - } - } - - if (macroCode is MacroCode.JaNoun or MacroCode.EnNoun or MacroCode.DeNoun or MacroCode.FrNoun && exprIdx == 1) - { - var macroLanguage = macroCode switch - { - MacroCode.JaNoun => ClientLanguage.Japanese, - MacroCode.DeNoun => ClientLanguage.German, - MacroCode.FrNoun => ClientLanguage.French, - _ => ClientLanguage.English, - }; - var articleTypeEnumType = macroLanguage switch - { - ClientLanguage.Japanese => typeof(JapaneseArticleType), - ClientLanguage.German => typeof(GermanArticleType), - ClientLanguage.French => typeof(FrenchArticleType), - _ => typeof(EnglishArticleType), - }; - ImGui.SameLine(); - ImGui.Text(Enum.GetName(articleTypeEnumType, u32)); - } - - if (macroCode is MacroCode.DeNoun && exprIdx == 4 && u32 is >= 0 and <= 4) - { - ImGui.SameLine(); - ImGui.Text(NounProcessorWidget.GermanCases[u32]); - } - - if (macroCode is MacroCode.Fixed && subType != null && fixedType != null && fixedType is 100 or 200 && subType == 5 && exprIdx == 2) - { - ImGui.SameLine(); - if (ImGui.SmallButton("Play"u8)) - { - UIGlobals.PlayChatSoundEffect(u32 + 1); - } - } - - if (macroCode is MacroCode.Link && subType != null && exprIdx == 1) - { - var dataManager = Service<DataManager>.Get(); - - switch ((LinkMacroPayloadType)subType) - { - case LinkMacroPayloadType.Item when dataManager.GetExcelSheet<Item>(this.language).TryGetRow(u32, out var itemRow): - ImGui.SameLine(); - ImGui.Text(itemRow.Name.ExtractText()); - break; - - case LinkMacroPayloadType.Quest when dataManager.GetExcelSheet<Quest>(this.language).TryGetRow(u32, out var questRow): - ImGui.SameLine(); - ImGui.Text(questRow.Name.ExtractText()); - break; - - case LinkMacroPayloadType.Achievement when dataManager.GetExcelSheet<Achievement>(this.language).TryGetRow(u32, out var achievementRow): - ImGui.SameLine(); - ImGui.Text(achievementRow.Name.ExtractText()); - break; - - case LinkMacroPayloadType.HowTo when dataManager.GetExcelSheet<HowTo>(this.language).TryGetRow(u32, out var howToRow): - ImGui.SameLine(); - ImGui.Text(howToRow.Name.ExtractText()); - break; - - case LinkMacroPayloadType.Status when dataManager.GetExcelSheet<Status>(this.language).TryGetRow(u32, out var statusRow): - ImGui.SameLine(); - ImGui.Text(statusRow.Name.ExtractText()); - break; - - case LinkMacroPayloadType.AkatsukiNote when - dataManager.GetSubrowExcelSheet<AkatsukiNote>(this.language).TryGetSubrow(u32, 0, out var akatsukiNoteRow) && - akatsukiNoteRow.ListName.ValueNullable is { } akatsukiNoteStringRow: - ImGui.SameLine(); - ImGui.Text(akatsukiNoteStringRow.Text.ExtractText()); - break; - } - } - - return; - } - - if (expr.TryGetString(out var s)) - { - this.DrawSeString("Preview", s, treeNodeFlags: ImGuiTreeNodeFlags.DefaultOpen); - return; - } - - if (expr.TryGetPlaceholderExpression(out var exprType)) - { - if (((ExpressionType)exprType).GetNativeName() is { } nativeName) - { - ImGui.Text(nativeName); - return; - } - - ImGui.Text($"?x{exprType:X02}"); - return; - } - - if (expr.TryGetParameterExpression(out exprType, out var e1)) - { - if (((ExpressionType)exprType).GetNativeName() is { } nativeName) - { - ImGui.Text($"{nativeName}({e1.ToString()})"); - return; - } - - throw new InvalidOperationException("All native names must be defined for unary expressions."); - } - - if (expr.TryGetBinaryExpression(out exprType, out e1, out var e2)) - { - if (((ExpressionType)exprType).GetNativeName() is { } nativeName) - { - ImGui.Text($"{e1.ToString()} {nativeName} {e2.ToString()}"); - return; - } - - throw new InvalidOperationException("All native names must be defined for binary expressions."); - } - - var sb = new StringBuilder(); - sb.EnsureCapacity(1 + 3 * expr.Body.Length); - sb.Append($"({expr.Body[0]:X02}"); - for (var i = 1; i < expr.Body.Length; i++) - sb.Append($" {expr.Body[i]:X02}"); - sb.Append(')'); - ImGui.Text(sb.ToString()); - } - - private string GetExpressionName(MacroCode macroCode, uint? subType, int idx, ReadOnlySeExpressionSpan expr) - { - if (this.expressionNames.TryGetValue(macroCode, out var names) && idx < names.Length) - return names[idx]; - - if (macroCode == MacroCode.Switch) - return $"Case {idx - 1}"; - - if (macroCode == MacroCode.Link && subType != null && this.linkExpressionNames.TryGetValue((LinkMacroPayloadType)subType, out var linkNames) && idx - 1 < linkNames.Length) - return linkNames[idx - 1]; - - if (macroCode == MacroCode.Fixed && subType != null && this.fixedExpressionNames.TryGetValue((uint)subType, out var fixedNames) && idx < fixedNames.Length) - return fixedNames[idx]; - - if (macroCode == MacroCode.Link && idx == 4) - return "Copy String"; - - return string.Empty; - } - - private SeStringParameter[] GetLocalParameters(ReadOnlySeStringSpan rosss, Dictionary<uint, SeStringParameter>? parameters) - { - parameters ??= []; - - void ProcessString(ReadOnlySeStringSpan rosss) - { - foreach (var payload in rosss) - { - foreach (var expression in payload) - { - ProcessExpression(expression); - } - } - } - - void ProcessExpression(ReadOnlySeExpressionSpan expression) - { - if (expression.TryGetString(out var exprString)) - { - ProcessString(exprString); - return; - } - - if (expression.TryGetBinaryExpression(out var expressionType, out var operand1, out var operand2)) - { - ProcessExpression(operand1); - ProcessExpression(operand2); - return; - } - - if (expression.TryGetParameterExpression(out expressionType, out var operand)) - { - if (!operand.TryGetUInt(out var index)) - return; - - if (parameters.ContainsKey(index)) - return; - - if (expressionType == (int)ExpressionType.LocalNumber) - { - parameters[index] = new SeStringParameter(0); - } - else if (expressionType == (int)ExpressionType.LocalString) - { - parameters[index] = new SeStringParameter(string.Empty); - } - } - } - - ProcessString(rosss); - - if (parameters.Count > 0) - { - var last = parameters.OrderBy(x => x.Key).Last(); - - if (parameters.Count != last.Key) - { - // fill missing local parameter slots, so we can go off the array index in SeStringContext - - for (var i = 1u; i <= last.Key; i++) - { - if (!parameters.ContainsKey(i)) - parameters[i] = new SeStringParameter(0); - } - } - } - - return parameters.OrderBy(x => x.Key).Select(x => x.Value).ToArray(); - } - - private ImRaii.IEndObject SeStringTreeNode(string id, ReadOnlySeStringSpan previewText, uint color = 0xFF00FFFF, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None) - { - using var titleColor = ImRaii.PushColor(ImGuiCol.Text, color); - var node = ImRaii.TreeNode("##" + id, flags); - ImGui.SameLine(); - ImGuiHelpers.SeStringWrapped(previewText, new() - { - ForceEdgeColor = true, - WrapWidth = 9999, - }); - return node; - } - - private bool IconButton(string key, FontAwesomeIcon icon, string tooltip, Vector2 size = default, bool disabled = false, bool active = false) - { - using var iconFont = ImRaii.PushFont(UiBuilder.IconFont); - if (!key.StartsWith("##")) key = "##" + key; - - var disposables = new List<IDisposable>(); - - if (disabled) - { - disposables.Add(ImRaii.PushColor(ImGuiCol.Text, ImGui.GetStyle().Colors[(int)ImGuiCol.TextDisabled])); - disposables.Add(ImRaii.PushColor(ImGuiCol.ButtonActive, ImGui.GetStyle().Colors[(int)ImGuiCol.Button])); - disposables.Add(ImRaii.PushColor(ImGuiCol.ButtonHovered, ImGui.GetStyle().Colors[(int)ImGuiCol.Button])); - } - else if (active) - { - disposables.Add(ImRaii.PushColor(ImGuiCol.Button, ImGui.GetStyle().Colors[(int)ImGuiCol.ButtonActive])); - } - - var pressed = ImGui.Button(icon.ToIconString() + key, size); - - foreach (var disposable in disposables) - disposable.Dispose(); - - iconFont?.Dispose(); - - if (ImGui.IsItemHovered()) - { - ImGui.BeginTooltip(); - ImGui.Text(tooltip); - ImGui.EndTooltip(); - } - - return pressed; - } - - private Vector2 GetIconButtonSize(FontAwesomeIcon icon) - { - using var iconFont = ImRaii.PushFont(UiBuilder.IconFont); - return ImGui.CalcTextSize(icon.ToIconString()) + ImGui.GetStyle().FramePadding * 2; - } - - private class TextEntry(TextEntryType type, string text) - { - public string Message { get; set; } = text; - - public TextEntryType Type { get; set; } = type; - } -} diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs index 0e4e5792d..e026a6d2f 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs @@ -1,8 +1,6 @@ using System.Numerics; using System.Text; -using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game.Gui; using Dalamud.Game.Text.SeStringHandling.Payloads; @@ -10,29 +8,32 @@ using Dalamud.Interface.ImGuiSeStringRenderer; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Internal; -using Dalamud.Interface.Utility.Raii; using Dalamud.Storage.Assets; using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; + +using Lumina.Excel; using Lumina.Excel.Sheets; using Lumina.Text; -using Lumina.Text.Parse; using Lumina.Text.Payloads; using Lumina.Text.ReadOnly; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; +#pragma warning disable SeStringRenderer + /// <summary> /// Widget for displaying Addon Data. /// </summary> internal unsafe class SeStringRendererTestWidget : IDataWindowWidget { - private static readonly string[] ThemeNames = ["Dark", "Light", "Classic FF", "Clear Blue", "Clear White", "Clear Green"]; + private static readonly string[] ThemeNames = ["Dark", "Light", "Classic FF", "Clear Blue"]; private ImVectorWrapper<byte> testStringBuffer; private string testString = string.Empty; + private ExcelSheet<Addon> addons = null!; private ReadOnlySeString? logkind; private SeStringDrawParams style; private bool interactable; @@ -52,6 +53,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget public void Load() { this.style = new() { GetEntity = this.GetEntity }; + this.addons = Service<DataManager>.Get().GetExcelSheet<Addon>(); this.logkind = null; this.testString = string.Empty; this.interactable = this.useEntity = true; @@ -62,95 +64,93 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget /// <inheritdoc/> public void Draw() { - var t2 = ImGui.ColorConvertU32ToFloat4(this.style.Color ??= ImGui.GetColorU32(ImGuiCol.Text)); + var t2 = ImGui.ColorConvertU32ToFloat4(this.style.Color ?? ImGui.GetColorU32(ImGuiCol.Text)); if (ImGui.ColorEdit4("Color", ref t2)) this.style.Color = ImGui.ColorConvertFloat4ToU32(t2); - t2 = ImGui.ColorConvertU32ToFloat4(this.style.EdgeColor ??= 0xFF000000u); + t2 = ImGui.ColorConvertU32ToFloat4(this.style.EdgeColor ?? 0xFF000000u); if (ImGui.ColorEdit4("Edge Color", ref t2)) this.style.EdgeColor = ImGui.ColorConvertFloat4ToU32(t2); ImGui.SameLine(); var t = this.style.ForceEdgeColor; - if (ImGui.Checkbox("Forced"u8, ref t)) + if (ImGui.Checkbox("Forced", ref t)) this.style.ForceEdgeColor = t; - t2 = ImGui.ColorConvertU32ToFloat4(this.style.ShadowColor ??= 0xFF000000u); - if (ImGui.ColorEdit4("Shadow Color"u8, ref t2)) + t2 = ImGui.ColorConvertU32ToFloat4(this.style.ShadowColor ?? 0xFF000000u); + if (ImGui.ColorEdit4("Shadow Color", ref t2)) this.style.ShadowColor = ImGui.ColorConvertFloat4ToU32(t2); - t2 = ImGui.ColorConvertU32ToFloat4(this.style.LinkHoverBackColor ??= ImGui.GetColorU32(ImGuiCol.ButtonHovered)); - if (ImGui.ColorEdit4("Link Hover Color"u8, ref t2)) + t2 = ImGui.ColorConvertU32ToFloat4(this.style.LinkHoverBackColor ?? ImGui.GetColorU32(ImGuiCol.ButtonHovered)); + if (ImGui.ColorEdit4("Link Hover Color", ref t2)) this.style.LinkHoverBackColor = ImGui.ColorConvertFloat4ToU32(t2); - t2 = ImGui.ColorConvertU32ToFloat4(this.style.LinkActiveBackColor ??= ImGui.GetColorU32(ImGuiCol.ButtonActive)); - if (ImGui.ColorEdit4("Link Active Color"u8, ref t2)) + t2 = ImGui.ColorConvertU32ToFloat4(this.style.LinkActiveBackColor ?? ImGui.GetColorU32(ImGuiCol.ButtonActive)); + if (ImGui.ColorEdit4("Link Active Color", ref t2)) this.style.LinkActiveBackColor = ImGui.ColorConvertFloat4ToU32(t2); - var t3 = this.style.LineHeight ??= 1f; - if (ImGui.DragFloat("Line Height"u8, ref t3, 0.01f, 0.4f, 3f, "%.02f")) + var t3 = this.style.LineHeight ?? 1f; + if (ImGui.DragFloat("Line Height", ref t3, 0.01f, 0.4f, 3f, "%.02f")) this.style.LineHeight = t3; - t3 = this.style.Opacity ??= 1f; - if (ImGui.DragFloat("Opacity"u8, ref t3, 0.005f, 0f, 1f, "%.02f")) + t3 = this.style.Opacity ?? ImGui.GetStyle().Alpha; + if (ImGui.DragFloat("Opacity", ref t3, 0.005f, 0f, 1f, "%.02f")) this.style.Opacity = t3; - t3 = this.style.EdgeStrength ??= 0.25f; - if (ImGui.DragFloat("Edge Strength"u8, ref t3, 0.005f, 0f, 1f, "%.02f")) + t3 = this.style.EdgeStrength ?? 0.25f; + if (ImGui.DragFloat("Edge Strength", ref t3, 0.005f, 0f, 1f, "%.02f")) this.style.EdgeStrength = t3; t = this.style.Edge; - if (ImGui.Checkbox("Edge"u8, ref t)) + if (ImGui.Checkbox("Edge", ref t)) this.style.Edge = t; ImGui.SameLine(); t = this.style.Bold; - if (ImGui.Checkbox("Bold"u8, ref t)) + if (ImGui.Checkbox("Bold", ref t)) this.style.Bold = t; ImGui.SameLine(); t = this.style.Italic; - if (ImGui.Checkbox("Italic"u8, ref t)) + if (ImGui.Checkbox("Italic", ref t)) this.style.Italic = t; ImGui.SameLine(); t = this.style.Shadow; - if (ImGui.Checkbox("Shadow"u8, ref t)) + if (ImGui.Checkbox("Shadow", ref t)) this.style.Shadow = t; ImGui.SameLine(); var t4 = this.style.ThemeIndex ?? AtkStage.Instance()->AtkUIColorHolder->ActiveColorThemeType; - using (ImRaii.ItemWidth(ImGui.CalcTextSize("WWWWWWWWWWWWWW"u8).X)) - { - if (ImGui.Combo("##theme", ref t4, ThemeNames)) - this.style.ThemeIndex = t4; - } + ImGui.PushItemWidth(ImGui.CalcTextSize("WWWWWWWWWWWWWW").X); + if (ImGui.Combo("##theme", ref t4, ThemeNames, ThemeNames.Length)) + this.style.ThemeIndex = t4; ImGui.SameLine(); t = this.style.LinkUnderlineThickness > 0f; - if (ImGui.Checkbox("Link Underline"u8, ref t)) + if (ImGui.Checkbox("Link Underline", ref t)) this.style.LinkUnderlineThickness = t ? 1f : 0f; ImGui.SameLine(); t = this.style.WrapWidth is null; - if (ImGui.Checkbox("Word Wrap"u8, ref t)) + if (ImGui.Checkbox("Word Wrap", ref t)) this.style.WrapWidth = t ? null : float.PositiveInfinity; t = this.interactable; - if (ImGui.Checkbox("Interactable"u8, ref t)) + if (ImGui.Checkbox("Interactable", ref t)) this.interactable = t; ImGui.SameLine(); t = this.useEntity; - if (ImGui.Checkbox("Use Entity Replacements"u8, ref t)) + if (ImGui.Checkbox("Use Entity Replacements", ref t)) this.useEntity = t; ImGui.SameLine(); t = this.alignToFramePadding; - if (ImGui.Checkbox("Align to Frame Padding"u8, ref t)) + if (ImGui.Checkbox("Align to Frame Padding", ref t)) this.alignToFramePadding = t; - if (ImGui.CollapsingHeader("LogKind Preview"u8)) + if (ImGui.CollapsingHeader("LogKind Preview")) { if (this.logkind is null) { @@ -182,67 +182,52 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget ImGuiHelpers.SeStringWrapped(this.logkind.Value.Data.Span, this.style); } - if (ImGui.CollapsingHeader("Draw into drawlist")) + if (ImGui.CollapsingHeader("Addon Table")) { - ImGuiHelpers.ScaledDummy(100); - ImGui.SetCursorScreenPos(ImGui.GetItemRectMin() + ImGui.GetStyle().FramePadding); - var clipMin = ImGui.GetItemRectMin() + ImGui.GetStyle().FramePadding; - var clipMax = ImGui.GetItemRectMax() - ImGui.GetStyle().FramePadding; - clipMin.Y = MathF.Max(clipMin.Y, ImGui.GetWindowPos().Y); - clipMax.Y = MathF.Min(clipMax.Y, ImGui.GetWindowPos().Y + ImGui.GetWindowHeight()); - - var dl = ImGui.GetWindowDrawList(); - dl.PushClipRect(clipMin, clipMax); - ImGuiHelpers.CompileSeStringWrapped( - "<icon(1)>Test test<icon(1)>", - new SeStringDrawParams { Color = 0xFFFFFFFF, WrapWidth = float.MaxValue, TargetDrawList = dl }); - dl.PopClipRect(); - } - - if (ImGui.CollapsingHeader("Addon Table"u8)) - { - using var table = ImRaii.Table("Addon Sheet"u8, 3); - if (table.Success) + if (ImGui.BeginTable("Addon Sheet", 3)) { ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Row ID"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("0000000"u8).X); - ImGui.TableSetupColumn("Text"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Misc"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("AAAAAAAAAAAAAAAAA"u8).X); + ImGui.TableSetupColumn("Row ID", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("0000000").X); + ImGui.TableSetupColumn("Text", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn( + "Misc", + ImGuiTableColumnFlags.WidthFixed, + ImGui.CalcTextSize("AAAAAAAAAAAAAAAAA").X); ImGui.TableHeadersRow(); - var addon = Service<DataManager>.GetNullable()?.GetExcelSheet<Addon>() ?? - throw new InvalidOperationException("Addon sheet not loaded."); - - var clipper = ImGui.ImGuiListClipper(); - clipper.Begin(addon.Count); + var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + clipper.Begin(this.addons.Count); while (clipper.Step()) { for (var i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) { - var row = addon.GetRowAt(i); + var row = this.addons.GetRowAt(i); ImGui.TableNextRow(); - using var pushedId = ImRaii.PushId(i); + ImGui.PushID(i); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.Text($"{row.RowId}"); + ImGui.TextUnformatted($"{row.RowId}"); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); ImGuiHelpers.SeStringWrapped(row.Text, this.style); ImGui.TableNextColumn(); - if (ImGui.Button("Print to Chat"u8)) - Service<ChatGui>.Get().Print(row.Text); + if (ImGui.Button("Print to Chat")) + Service<ChatGui>.Get().Print(row.Text.ToDalamudString()); + + ImGui.PopID(); } } clipper.Destroy(); + ImGui.EndTable(); } } - if (ImGui.Button("Reset Text"u8) || this.testStringBuffer.IsDisposed) + if (ImGui.Button("Reset Text") || this.testStringBuffer.IsDisposed) { this.testStringBuffer.Dispose(); this.testStringBuffer = ImVectorWrapper.CreateFromSpan( @@ -253,30 +238,11 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Print to Chat Log"u8)) + if (ImGui.Button("Print to Chat Log")) { - Service<ChatGui>.Get().Print(Service<SeStringRenderer>.Get().CompileAndCache(this.testString)); - } - - ImGui.SameLine(); - - if (ImGui.Button("Copy as Image")) - { - _ = Service<DevTextureSaveMenu>.Get().ShowTextureSaveMenuAsync( - this.DisplayName, - $"From {nameof(SeStringRendererTestWidget)}", - Task.FromResult( - Service<TextureManager>.Get().CreateTextureFromSeString( - ReadOnlySeString.FromMacroString( - this.testString, - new(ExceptionMode: MacroStringParseExceptionMode.EmbedError)), - this.style with - { - Font = ImGui.GetFont(), - FontSize = ImGui.GetFontSize(), - WrapWidth = ImGui.GetContentRegionAvail().X, - ThemeIndex = AtkStage.Instance()->AtkUIColorHolder->ActiveColorThemeType, - }))); + Service<ChatGui>.Get().Print( + Game.Text.SeStringHandling.SeString.Parse( + Service<SeStringRenderer>.Get().CompileAndCache(this.testString).Data.Span)); } ImGuiHelpers.ScaledDummy(3); @@ -302,19 +268,22 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget fixed (byte* labelPtr = "Test Input"u8) { - if (ImGui.InputTextMultiline( + if (ImGuiNative.igInputTextMultiline( labelPtr, - this.testStringBuffer.StorageSpan, - new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3))) + this.testStringBuffer.Data, + (uint)this.testStringBuffer.Capacity, + new(ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight() * 3), + 0, + null, + null) != 0) { var len = this.testStringBuffer.StorageSpan.IndexOf((byte)0); if (len + 4 >= this.testStringBuffer.Capacity) this.testStringBuffer.EnsureCapacityExponential(len + 4); - if (len < this.testStringBuffer.Capacity) { this.testStringBuffer.LengthUnsafe = len; - this.testStringBuffer.StorageSpan[len] = 0; + this.testStringBuffer.StorageSpan[len] = default; } this.testString = string.Empty; @@ -339,7 +308,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget ImGui.Separator(); if (this.alignToFramePadding) ImGui.AlignTextToFramePadding(); - ImGui.Text($"Hovered[{offset}]: {new ReadOnlySeStringSpan(envelope).ToString()}; {payload}"); + ImGui.TextUnformatted($"Hovered[{offset}]: {new ReadOnlySeStringSpan(envelope).ToString()}; {payload}"); if (clicked && payload is DalamudLinkPayload { Plugin: "test" } dlp) Util.OpenLink(dlp.ExtraString); } @@ -426,7 +395,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget .GetFromGame(Encoding.UTF8.GetString(state.Span[(byteOffset + 4)..(byteOffset + off)])) .GetWrapOrEmpty(); state.Draw( - tex.Handle, + tex.ImGuiHandle, offset + new Vector2(0, (state.LineHeight - state.FontSize) / 2), tex.Size * (state.FontSize / tex.Size.Y), Vector2.Zero, @@ -444,7 +413,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget .GetFromGameIcon(parsed) .GetWrapOrEmpty(); state.Draw( - tex.Handle, + tex.ImGuiHandle, offset + new Vector2(0, (state.LineHeight - state.FontSize) / 2), tex.Size * (state.FontSize / tex.Size.Y), Vector2.Zero, @@ -453,7 +422,7 @@ internal unsafe class SeStringRendererTestWidget : IDataWindowWidget static void DrawAsset(scoped in SeStringDrawState state, Vector2 offset, DalamudAsset asset) => state.Draw( - Service<DalamudAssetManager>.Get().GetDalamudTextureWrap(asset).Handle, + Service<DalamudAssetManager>.Get().GetDalamudTextureWrap(asset).ImGuiHandle, offset + new Vector2(0, (state.LineHeight - state.FontSize) / 2), new(state.FontSize, state.FontSize), Vector2.Zero, diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs index a4351248b..d1e6bc58a 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ServicesWidget.cs @@ -1,14 +1,15 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Reflection; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.IoC.Internal; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -16,18 +17,18 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class ServicesWidget : IDataWindowWidget { - private readonly Dictionary<ServiceDependencyNode, Vector4> nodeRects = []; - private readonly HashSet<Type> selectedNodes = []; - private readonly HashSet<Type> tempRelatedNodes = []; + private readonly Dictionary<ServiceDependencyNode, Vector4> nodeRects = new(); + private readonly HashSet<Type> selectedNodes = new(); + private readonly HashSet<Type> tempRelatedNodes = new(); private bool includeUnloadDependencies; private List<List<ServiceDependencyNode>>? dependencyNodes; /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["services"]; - + public string[]? CommandShortcuts { get; init; } = { "services" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Service Container"; + public string DisplayName { get; init; } = "Service Container"; /// <inheritdoc/> public bool Ready { get; set; } @@ -43,33 +44,34 @@ internal class ServicesWidget : IDataWindowWidget { var container = Service<ServiceContainer>.Get(); - if (ImGui.CollapsingHeader("Dependencies"u8)) + if (ImGui.CollapsingHeader("Dependencies")) { - if (ImGui.Button("Clear selection"u8)) + if (ImGui.Button("Clear selection")) this.selectedNodes.Clear(); - + ImGui.SameLine(); switch (this.includeUnloadDependencies) { - case true when ImGui.Button("Show load-time dependencies"u8): + case true when ImGui.Button("Show load-time dependencies"): this.includeUnloadDependencies = false; this.dependencyNodes = null; break; - case false when ImGui.Button("Show unload-time dependencies"u8): + case false when ImGui.Button("Show unload-time dependencies"): this.includeUnloadDependencies = true; this.dependencyNodes = null; break; } this.dependencyNodes ??= ServiceDependencyNode.CreateTreeByLevel(this.includeUnloadDependencies); - var cellPad = ImGui.CalcTextSize("WW"u8); - var margin = ImGui.CalcTextSize("W\nW\nW"u8); + var cellPad = ImGui.CalcTextSize("WW"); + var margin = ImGui.CalcTextSize("W\nW\nW"); var rowHeight = cellPad.Y * 3; var width = ImGui.GetContentRegionAvail().X; - var childSize = new Vector2(width, (this.dependencyNodes.Count * (rowHeight + margin.Y)) + cellPad.Y); - - using var child = ImRaii.Child("dependency-graph"u8, childSize, false, ImGuiWindowFlags.HorizontalScrollbar); - if (child.Success) + if (ImGui.BeginChild( + "dependency-graph", + new(width, (this.dependencyNodes.Count * (rowHeight + margin.Y)) + cellPad.Y), + false, + ImGuiWindowFlags.HorizontalScrollbar)) { const uint rectBaseBorderColor = 0xFFFFFFFF; const uint rectHoverFillColor = 0xFF404040; @@ -88,12 +90,12 @@ internal class ServicesWidget : IDataWindowWidget var dl = ImGui.GetWindowDrawList(); var mouse = ImGui.GetMousePos(); var maxRowWidth = 0f; - + // 1. Layout for (var level = 0; level < this.dependencyNodes.Count; level++) { var levelNodes = this.dependencyNodes[level]; - + var rowWidth = 0f; foreach (var node in levelNodes) rowWidth += node.DisplayedNameSize.X + cellPad.X + margin.X; @@ -117,8 +119,10 @@ internal class ServicesWidget : IDataWindowWidget hoveredNode = node; if (ImGui.IsMouseClicked(ImGuiMouseButton.Left)) { - if (!this.selectedNodes.Add(node.Type)) + if (this.selectedNodes.Contains(node.Type)) this.selectedNodes.Remove(node.Type); + else + this.selectedNodes.Add(node.Type); } } @@ -135,7 +139,7 @@ internal class ServicesWidget : IDataWindowWidget { var rect = this.nodeRects[node]; var point1 = new Vector2((rect.X + rect.Z) / 2, rect.Y); - + foreach (var parent in node.InvalidParents) { rect = this.nodeRects[parent]; @@ -145,7 +149,7 @@ internal class ServicesWidget : IDataWindowWidget dl.AddLine(point1, point2, lineInvalidColor, 2f * ImGuiHelpers.GlobalScale); } - + foreach (var parent in node.Parents) { rect = this.nodeRects[parent]; @@ -166,7 +170,7 @@ internal class ServicesWidget : IDataWindowWidget } } } - + // 3. Draw boxes foreach (var levelNodes in this.dependencyNodes) { @@ -192,11 +196,13 @@ internal class ServicesWidget : IDataWindowWidget ImGui.SetTooltip(node.BlockingReason); ImGui.SetCursorPos((new Vector2(rc.X, rc.Y) - pos) + ((cellSize - textSize) / 2)); - using var pushedStyle = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, Vector2.Zero); - ImGui.Text(node.DisplayedName); + ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, Vector2.Zero); + ImGui.TextUnformatted(node.DisplayedName); ImGui.SameLine(); - using var pushedColor = ImRaii.PushColor(ImGuiCol.Text, node.TypeSuffixColor); - ImGui.Text(node.TypeSuffix); + ImGui.PushStyleColor(ImGuiCol.Text, node.TypeSuffixColor); + ImGui.TextUnformatted(node.TypeSuffix); + ImGui.PopStyleVar(); + ImGui.PopStyleColor(); } } @@ -225,46 +231,34 @@ internal class ServicesWidget : IDataWindowWidget } } } - + ImGui.SetCursorPos(default); ImGui.Dummy(new(maxRowWidth, this.dependencyNodes.Count * rowHeight)); + ImGui.EndChild(); } } - if (ImGui.CollapsingHeader("Singleton Services"u8)) + if (ImGui.CollapsingHeader("Plugin-facing Services")) { foreach (var instance in container.Instances) { + var hasInterface = container.InterfaceToTypeMap.Values.Any(x => x == instance.Key); var isPublic = instance.Key.IsPublic; ImGui.BulletText($"{instance.Key.FullName} ({instance.Key.GetServiceKind()})"); + using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed, !hasInterface)) + { + ImGui.Text( + hasInterface + ? $"\t => Provided via interface: {container.InterfaceToTypeMap.First(x => x.Value == instance.Key).Key.FullName}" + : "\t => NO INTERFACE!!!"); + } + if (isPublic) { using var color = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed); - ImGui.Text("\t => PUBLIC!!!"u8); - } - - switch (instance.Value.Visibility) - { - case ObjectInstanceVisibility.Internal: - ImGui.Text("\t => Internally resolved"u8); - break; - - case ObjectInstanceVisibility.ExposedToPlugins: - var hasInterface = container.InterfaceToTypeMap.Values.Any(x => x == instance.Key); - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed, !hasInterface)) - { - ImGui.Text("\t => Exposed to plugins!"u8); - ImGui.Text( - hasInterface - ? $"\t => Provided via interface: {container.InterfaceToTypeMap.First(x => x.Value == instance.Key).Key.FullName}" - : "\t => NO INTERFACE!!!"); - } - - break; - default: - throw new ArgumentOutOfRangeException(); + ImGui.Text("\t => PUBLIC!!!"); } ImGuiHelpers.ScaledDummy(2); @@ -274,9 +268,9 @@ internal class ServicesWidget : IDataWindowWidget private class ServiceDependencyNode { - private readonly List<ServiceDependencyNode> parents = []; - private readonly List<ServiceDependencyNode> children = []; - private readonly List<ServiceDependencyNode> invalidParents = []; + private readonly List<ServiceDependencyNode> parents = new(); + private readonly List<ServiceDependencyNode> children = new(); + private readonly List<ServiceDependencyNode> invalidParents = new(); private ServiceDependencyNode(Type t) { @@ -307,7 +301,7 @@ internal class ServicesWidget : IDataWindowWidget public string DisplayedName { get; } public string TypeSuffix { get; } - + public uint TypeSuffixColor { get; } public Vector2 DisplayedNameSize => @@ -325,7 +319,7 @@ internal class ServicesWidget : IDataWindowWidget public IEnumerable<ServiceDependencyNode> Relatives => this.parents.Concat(this.children).Concat(this.invalidParents); - + public int Level { get; private set; } public static List<ServiceDependencyNode> CreateTree(bool includeUnloadDependencies) @@ -364,7 +358,7 @@ internal class ServicesWidget : IDataWindowWidget foreach (var n in CreateTree(includeUnloadDependencies)) { while (res.Count <= n.Level) - res.Add([]); + res.Add(new()); res[n.Level].Add(n); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs index c0c38da24..4dee316c5 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/StartInfoWidget.cs @@ -1,5 +1,4 @@ -using Dalamud.Bindings.ImGui; - +using ImGuiNET; using Newtonsoft.Json; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -10,10 +9,10 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class StartInfoWidget : IDataWindowWidget { /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["startinfo"]; - + public string[]? CommandShortcuts { get; init; } = { "startinfo" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Start Info"; + public string DisplayName { get; init; } = "Start Info"; /// <inheritdoc/> public bool Ready { get; set; } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs index 2e52d7586..68e00799d 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/TargetWidget.cs @@ -1,8 +1,8 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.ClientState; +using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Objects; using Dalamud.Interface.Utility; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -12,12 +12,12 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class TargetWidget : IDataWindowWidget { private bool resolveGameData; - + /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["target"]; - + public string[]? CommandShortcuts { get; init; } = { "target" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Target"; + public string DisplayName { get; init; } = "Target"; /// <inheritdoc/> public bool Ready { get; set; } @@ -31,16 +31,16 @@ internal class TargetWidget : IDataWindowWidget /// <inheritdoc/> public void Draw() { - ImGui.Checkbox("Resolve GameData"u8, ref this.resolveGameData); - - var objectTable = Service<ObjectTable>.Get(); + ImGui.Checkbox("Resolve GameData", ref this.resolveGameData); + + var clientState = Service<ClientState>.Get(); var targetMgr = Service<TargetManager>.Get(); if (targetMgr.Target != null) { Util.PrintGameObject(targetMgr.Target, "CurrentTarget", this.resolveGameData); - ImGui.Text("Target"u8); + ImGui.Text("Target"); Util.ShowGameObjectStruct(targetMgr.Target); var tot = targetMgr.Target.TargetObject; @@ -49,7 +49,7 @@ internal class TargetWidget : IDataWindowWidget ImGuiHelpers.ScaledDummy(10); ImGui.Separator(); - ImGui.Text("ToT"u8); + ImGui.Text("ToT"); Util.ShowGameObjectStruct(tot); } @@ -67,32 +67,32 @@ internal class TargetWidget : IDataWindowWidget if (targetMgr.SoftTarget != null) Util.PrintGameObject(targetMgr.SoftTarget, "SoftTarget", this.resolveGameData); - + if (targetMgr.GPoseTarget != null) Util.PrintGameObject(targetMgr.GPoseTarget, "GPoseTarget", this.resolveGameData); - + if (targetMgr.MouseOverNameplateTarget != null) Util.PrintGameObject(targetMgr.MouseOverNameplateTarget, "MouseOverNameplateTarget", this.resolveGameData); - if (ImGui.Button("Clear CT"u8)) + if (ImGui.Button("Clear CT")) targetMgr.Target = null; - if (ImGui.Button("Clear FT"u8)) + if (ImGui.Button("Clear FT")) targetMgr.FocusTarget = null; - var localPlayer = objectTable.LocalPlayer; + var localPlayer = clientState.LocalPlayer; if (localPlayer != null) { - if (ImGui.Button("Set CT"u8)) + if (ImGui.Button("Set CT")) targetMgr.Target = localPlayer; - if (ImGui.Button("Set FT"u8)) + if (ImGui.Button("Set FT")) targetMgr.FocusTarget = localPlayer; } else { - ImGui.Text("LocalPlayer is null."u8); + ImGui.Text("LocalPlayer is null."); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs index 7f9606c4f..f4086fe5a 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/TaskSchedulerWidget.cs @@ -1,13 +1,13 @@ -// ReSharper disable MethodSupportsCancellation // Using alternative method of cancelling tasks by throwing exceptions. +// ReSharper disable MethodSupportsCancellation // Using alternative method of cancelling tasks by throwing exceptions. using System.IO; using System.Linq; using System.Net.Http; using System.Reflection; +using System.Text; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -17,6 +17,7 @@ using Dalamud.Interface.Utility.Raii; using Dalamud.Logging.Internal; using Dalamud.Utility; +using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -27,18 +28,18 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; internal class TaskSchedulerWidget : IDataWindowWidget { private readonly FileDialogManager fileDialogManager = new(); - private string url = "https://geo.mirror.pkgbuild.com/iso/2024.01.01/archlinux-2024.01.01-x86_64.iso"; - private string localPath = string.Empty; + private readonly byte[] urlBytes = new byte[2048]; + private readonly byte[] localPathBytes = new byte[2048]; private Task? downloadTask = null; private (long Downloaded, long Total, float Percentage) downloadState; private CancellationTokenSource taskSchedulerCancelSource = new(); - + /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["tasksched", "taskscheduler"]; - + public string[]? CommandShortcuts { get; init; } = { "tasksched", "taskscheduler" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Task Scheduler"; + public string DisplayName { get; init; } = "Task Scheduler"; /// <inheritdoc/> public bool Ready { get; set; } @@ -47,6 +48,9 @@ internal class TaskSchedulerWidget : IDataWindowWidget public void Load() { this.Ready = true; + Encoding.UTF8.GetBytes( + "https://geo.mirror.pkgbuild.com/iso/2024.01.01/archlinux-2024.01.01-x86_64.iso", + this.urlBytes); } /// <inheritdoc/> @@ -54,7 +58,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget { var framework = Service<Framework>.Get(); - if (ImGui.Button("Clear list"u8)) + if (ImGui.Button("Clear list")) { TaskTracker.Clear(); } @@ -63,23 +67,23 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGuiHelpers.ScaledDummy(10); ImGui.SameLine(); - if (ImGui.Button("Cancel using CancellationTokenSource"u8)) + if (ImGui.Button("Cancel using CancellationTokenSource")) { this.taskSchedulerCancelSource.Cancel(); this.taskSchedulerCancelSource = new(); } - ImGui.Text("Run in any thread: "u8); + ImGui.Text("Run in any thread: "); ImGui.SameLine(); - if (ImGui.Button("Short Task.Run"u8)) + if (ImGui.Button("Short Task.Run")) { Task.Run(() => { Thread.Sleep(500); }); } ImGui.SameLine(); - if (ImGui.Button("Task in task(Delay)"u8)) + if (ImGui.Button("Task in task(Delay)")) { var token = this.taskSchedulerCancelSource.Token; Task.Run(async () => await this.TestTaskInTaskDelay(token), token); @@ -87,14 +91,14 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Task in task(Sleep)"u8)) + if (ImGui.Button("Task in task(Sleep)")) { Task.Run(async () => await this.TestTaskInTaskSleep()); } ImGui.SameLine(); - if (ImGui.Button("Faulting task"u8)) + if (ImGui.Button("Faulting task")) { Task.Run(() => { @@ -104,43 +108,43 @@ internal class TaskSchedulerWidget : IDataWindowWidget }); } - ImGui.Text("Run in Framework.Update: "u8); + ImGui.Text("Run in Framework.Update: "); ImGui.SameLine(); - if (ImGui.Button("ASAP"u8)) + if (ImGui.Button("ASAP")) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - ASAP"), cancellationToken: this.taskSchedulerCancelSource.Token); } ImGui.SameLine(); - if (ImGui.Button("In 1s"u8)) + if (ImGui.Button("In 1s")) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 1s"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(1)); } ImGui.SameLine(); - if (ImGui.Button("In 60f"u8)) + if (ImGui.Button("In 60f")) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 60f"), cancellationToken: this.taskSchedulerCancelSource.Token, delayTicks: 60); } ImGui.SameLine(); - if (ImGui.Button("In 1s+120f"u8)) + if (ImGui.Button("In 1s+120f")) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 1s+120f"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(1), delayTicks: 120); } ImGui.SameLine(); - if (ImGui.Button("In 2s+60f"u8)) + if (ImGui.Button("In 2s+60f")) { _ = framework.RunOnTick(() => Log.Information("Framework.Update - In 2s+60f"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(2), delayTicks: 60); } - if (ImGui.Button("Every 60f"u8)) + if (ImGui.Button("Every 60f")) { _ = framework.RunOnTick( async () => @@ -158,7 +162,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Every 1s"u8)) + if (ImGui.Button("Every 1s")) { _ = framework.RunOnTick( async () => @@ -176,7 +180,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Every 60f (Await)"u8)) + if (ImGui.Button("Every 60f (Await)")) { _ = framework.Run( async () => @@ -194,7 +198,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Every 1s (Await)"u8)) + if (ImGui.Button("Every 1s (Await)")) { _ = framework.Run( async () => @@ -212,7 +216,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("As long as it's in Framework Thread"u8)) + if (ImGui.Button("As long as it's in Framework Thread")) { Task.Run(async () => await framework.RunOnFrameworkThread(() => { Log.Information("Task dispatched from non-framework.update thread"); })); framework.RunOnFrameworkThread(() => { Log.Information("Task dispatched from framework.update thread"); }).Wait(); @@ -220,14 +224,14 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Error in 1s"u8)) + if (ImGui.Button("Error in 1s")) { _ = framework.RunOnTick(() => throw new Exception("Test Exception"), cancellationToken: this.taskSchedulerCancelSource.Token, delay: TimeSpan.FromSeconds(1)); } ImGui.SameLine(); - if (ImGui.Button("Freeze 1s"u8)) + if (ImGui.Button("Freeze 1s")) { _ = framework.RunOnFrameworkThread(() => Helper().Wait()); static async Task Helper() => await Task.Delay(1000); @@ -235,21 +239,21 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGui.SameLine(); - if (ImGui.Button("Freeze Completely"u8)) + if (ImGui.Button("Freeze Completely")) { _ = framework.Run(() => Helper().Wait()); static async Task Helper() => await Task.Delay(1000); } - if (ImGui.CollapsingHeader("Download"u8)) + if (ImGui.CollapsingHeader("Download")) { - ImGui.InputText("URL"u8, ref this.url); - ImGui.InputText("Local Path"u8, ref this.localPath); + ImGui.InputText("URL", this.urlBytes, (uint)this.urlBytes.Length); + ImGui.InputText("Local Path", this.localPathBytes, (uint)this.localPathBytes.Length); ImGui.SameLine(); - + if (ImGuiComponents.IconButton("##localpathpicker", FontAwesomeIcon.File)) { - var defaultFileName = this.url.Split('\0', 2)[0].Split('/').Last(); + var defaultFileName = Encoding.UTF8.GetString(this.urlBytes).Split('\0', 2)[0].Split('/').Last(); this.fileDialogManager.SaveFileDialog( "Choose a local path", "*", @@ -259,22 +263,26 @@ internal class TaskSchedulerWidget : IDataWindowWidget { if (accept) { - this.localPath = newPath; + this.localPathBytes.AsSpan().Clear(); + Encoding.UTF8.GetBytes(newPath, this.localPathBytes.AsSpan()); } }); } - ImGui.Text($"{this.downloadState.Downloaded:##,###}/{this.downloadState.Total:##,###} ({this.downloadState.Percentage:0.00}%)"); + ImGui.TextUnformatted($"{this.downloadState.Downloaded:##,###}/{this.downloadState.Total:##,###} ({this.downloadState.Percentage:0.00}%)"); - using var disabled = ImRaii.Disabled(this.downloadTask?.IsCompleted is false || this.localPath[0] == 0); + using var disabled = + ImRaii.Disabled(this.downloadTask?.IsCompleted is false || this.localPathBytes[0] == 0); ImGui.AlignTextToFramePadding(); - ImGui.Text("Download"u8); + ImGui.TextUnformatted("Download"); ImGui.SameLine(); - var downloadUsingGlobalScheduler = ImGui.Button("using default scheduler"u8); + var downloadUsingGlobalScheduler = ImGui.Button("using default scheduler"); ImGui.SameLine(); - var downloadUsingFramework = ImGui.Button("using Framework.Update"u8); + var downloadUsingFramework = ImGui.Button("using Framework.Update"); if (downloadUsingGlobalScheduler || downloadUsingFramework) { + var url = Encoding.UTF8.GetString(this.urlBytes).Split('\0', 2)[0]; + var localPath = Encoding.UTF8.GetString(this.localPathBytes).Split('\0', 2)[0]; var ct = this.taskSchedulerCancelSource.Token; this.downloadState = default; var factory = downloadUsingGlobalScheduler @@ -286,9 +294,9 @@ internal class TaskSchedulerWidget : IDataWindowWidget { try { - await using var to = File.Create(this.localPath); + await using var to = File.Create(localPath); using var client = new HttpClient(); - using var conn = await client.GetAsync(this.url, HttpCompletionOption.ResponseHeadersRead, ct); + using var conn = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, ct); this.downloadState.Total = conn.Content.Headers.ContentLength ?? -1L; await using var from = conn.Content.ReadAsStream(ct); var buffer = new byte[8192]; @@ -312,10 +320,10 @@ internal class TaskSchedulerWidget : IDataWindowWidget } catch (Exception e) { - Log.Error(e, "Failed to download {from} to {to}.", this.url, this.localPath); + Log.Error(e, "Failed to download {from} to {to}.", url, localPath); try { - File.Delete(this.localPath); + File.Delete(localPath); } catch { @@ -327,35 +335,35 @@ internal class TaskSchedulerWidget : IDataWindowWidget } } - if (ImGui.Button("Drown in tasks"u8)) + if (ImGui.Button("Drown in tasks")) { var token = this.taskSchedulerCancelSource.Token; Task.Run( - () => + () => { for (var i = 0; i < 100; i++) { token.ThrowIfCancellationRequested(); Task.Run( - () => + () => { for (var j = 0; j < 100; j++) { token.ThrowIfCancellationRequested(); Task.Run( - () => + () => { for (var k = 0; k < 100; k++) { token.ThrowIfCancellationRequested(); Task.Run( - () => + () => { for (var l = 0; l < 100; l++) { token.ThrowIfCancellationRequested(); Task.Run( - async () => + async () => { for (var m = 0; m < 100; m++) { @@ -372,7 +380,7 @@ internal class TaskSchedulerWidget : IDataWindowWidget } }); } - + ImGui.SameLine(); ImGuiHelpers.ScaledDummy(20); @@ -387,29 +395,38 @@ internal class TaskSchedulerWidget : IDataWindowWidget if (task.Task == null) subTime = task.FinishTime; - using var pushedColor = task.Status switch + switch (task.Status) { - TaskStatus.Created or TaskStatus.WaitingForActivation or TaskStatus.WaitingToRun - => ImRaii.PushColor(ImGuiCol.Header, ImGuiColors.DalamudGrey), - TaskStatus.Running or TaskStatus.WaitingForChildrenToComplete - => ImRaii.PushColor(ImGuiCol.Header, ImGuiColors.ParsedBlue), - TaskStatus.RanToCompletion - => ImRaii.PushColor(ImGuiCol.Header, ImGuiColors.ParsedGreen), - TaskStatus.Canceled or TaskStatus.Faulted - => ImRaii.PushColor(ImGuiCol.Header, ImGuiColors.DalamudRed), - - _ => throw new ArgumentOutOfRangeException(), - }; + case TaskStatus.Created: + case TaskStatus.WaitingForActivation: + case TaskStatus.WaitingToRun: + ImGui.PushStyleColor(ImGuiCol.Header, ImGuiColors.DalamudGrey); + break; + case TaskStatus.Running: + case TaskStatus.WaitingForChildrenToComplete: + ImGui.PushStyleColor(ImGuiCol.Header, ImGuiColors.ParsedBlue); + break; + case TaskStatus.RanToCompletion: + ImGui.PushStyleColor(ImGuiCol.Header, ImGuiColors.ParsedGreen); + break; + case TaskStatus.Canceled: + case TaskStatus.Faulted: + ImGui.PushStyleColor(ImGuiCol.Header, ImGuiColors.DalamudRed); + break; + default: + throw new ArgumentOutOfRangeException(); + } if (ImGui.CollapsingHeader($"#{task.Id} - {task.Status} {(subTime - task.StartTime).TotalMilliseconds}ms###task{i}")) { task.IsBeingViewed = true; - if (ImGui.Button("CANCEL (May not work)"u8)) + if (ImGui.Button("CANCEL (May not work)")) { try { - var cancelFunc = typeof(Task).GetMethod("InternalCancel", BindingFlags.NonPublic | BindingFlags.Instance); + var cancelFunc = + typeof(Task).GetMethod("InternalCancel", BindingFlags.NonPublic | BindingFlags.Instance); cancelFunc?.Invoke(task, null); } catch (Exception ex) @@ -420,24 +437,26 @@ internal class TaskSchedulerWidget : IDataWindowWidget ImGuiHelpers.ScaledDummy(10); - ImGui.Text(task.StackTrace?.ToString() ?? "Null StackTrace"); + ImGui.TextUnformatted(task.StackTrace?.ToString()); if (task.Exception != null) { ImGuiHelpers.ScaledDummy(15); - ImGui.TextColored(ImGuiColors.DalamudRed, "EXCEPTION:"u8); - ImGui.Text(task.Exception.ToString()); + ImGui.TextColored(ImGuiColors.DalamudRed, "EXCEPTION:"); + ImGui.TextUnformatted(task.Exception.ToString()); } } else { task.IsBeingViewed = false; } + + ImGui.PopStyleColor(1); } this.fileDialogManager.Draw(); } - + private async Task TestTaskInTaskDelay(CancellationToken token) { await Task.Delay(5000, token); diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs index 866640996..07b2d01ff 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/TexWidget.cs @@ -6,7 +6,6 @@ using System.Reflection; using System.Runtime.Loader; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Components; using Dalamud.Interface.Textures; @@ -14,11 +13,12 @@ using Dalamud.Interface.Textures.Internal.SharedImmediateTextures; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Internal; -using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Services; using Dalamud.Storage.Assets; using Dalamud.Utility; +using ImGuiNET; + using TerraFX.Interop.DirectX; using TextureManager = Dalamud.Interface.Textures.Internal.TextureManager; @@ -30,10 +30,6 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class TexWidget : IDataWindowWidget { - private const ImGuiTableFlags TableFlags = ImGuiTableFlags.Sortable | ImGuiTableFlags.SortTristate | ImGuiTableFlags.SortMulti | - ImGuiTableFlags.Reorderable | ImGuiTableFlags.Resizable | ImGuiTableFlags.NoBordersInBodyUntilResize | - ImGuiTableFlags.NoSavedSettings; - // TODO: move tracking implementation to PluginStats where applicable, // and show stats over there instead of TexWidget. private static readonly Dictionary< @@ -49,12 +45,12 @@ internal class TexWidget : IDataWindowWidget [DrawBlameTableColumnUserId.NativeAddress] = static x => x.ResourceAddress, }; - private readonly List<TextureEntry> addedTextures = []; + private readonly List<TextureEntry> addedTextures = new(); private string allLoadedTexturesTableName = "##table"; private string iconId = "18"; private bool hiRes = true; - private bool hq; + private bool hq = false; private string inputTexPath = string.Empty; private string inputFilePath = string.Empty; private Assembly[]? inputManifestResourceAssemblyCandidates; @@ -77,7 +73,7 @@ internal class TexWidget : IDataWindowWidget private enum DrawBlameTableColumnUserId { - NativeAddress = 1, + NativeAddress, Actions, Name, Width, @@ -89,7 +85,7 @@ internal class TexWidget : IDataWindowWidget } /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["tex", "texture"]; + public string[]? CommandShortcuts { get; init; } = { "tex", "texture" }; /// <inheritdoc/> public string DisplayName { get; init; } = "Tex"; @@ -133,114 +129,117 @@ internal class TexWidget : IDataWindowWidget this.textureManager = Service<TextureManager>.Get(); var conf = Service<DalamudConfiguration>.Get(); - if (ImGui.Button("GC"u8)) + if (ImGui.Button("GC")) GC.Collect(); var useTexturePluginTracking = conf.UseTexturePluginTracking; - if (ImGui.Checkbox("Enable Texture Tracking"u8, ref useTexturePluginTracking)) + if (ImGui.Checkbox("Enable Texture Tracking", ref useTexturePluginTracking)) { conf.UseTexturePluginTracking = useTexturePluginTracking; conf.QueueSave(); } - lock (this.textureManager.BlameTracker) + var allBlames = this.textureManager.BlameTracker; + lock (allBlames) { - using var pushedId = ImRaii.PushId("blames"u8); - var allBlames = this.textureManager.BlameTracker; + ImGui.PushID("blames"); var sizeSum = allBlames.Sum(static x => Math.Max(0, x.RawSpecs.EstimatedBytes)); - if (ImGui.CollapsingHeader($"All Loaded Textures: {allBlames.Count:n0} ({Util.FormatBytes(sizeSum)})###header")) + if (ImGui.CollapsingHeader( + $"All Loaded Textures: {allBlames.Count:n0} ({Util.FormatBytes(sizeSum)})###header")) this.DrawBlame(allBlames); + ImGui.PopID(); } - using (ImRaii.PushId("loadedGameTextures"u8)) - { - if (ImGui.CollapsingHeader($"Loaded Game Textures: {this.textureManager.Shared.ForDebugGamePathTextures.Count:n0}###header")) - this.DrawLoadedTextures(this.textureManager.Shared.ForDebugGamePathTextures); - } + ImGui.PushID("loadedGameTextures"); + if (ImGui.CollapsingHeader( + $"Loaded Game Textures: {this.textureManager.Shared.ForDebugGamePathTextures.Count:n0}###header")) + this.DrawLoadedTextures(this.textureManager.Shared.ForDebugGamePathTextures); + ImGui.PopID(); - using (ImRaii.PushId("loadedFileTextures"u8)) - { - if (ImGui.CollapsingHeader($"Loaded File Textures: {this.textureManager.Shared.ForDebugFileSystemTextures.Count:n0}###header")) - this.DrawLoadedTextures(this.textureManager.Shared.ForDebugFileSystemTextures); - } + ImGui.PushID("loadedFileTextures"); + if (ImGui.CollapsingHeader( + $"Loaded File Textures: {this.textureManager.Shared.ForDebugFileSystemTextures.Count:n0}###header")) + this.DrawLoadedTextures(this.textureManager.Shared.ForDebugFileSystemTextures); + ImGui.PopID(); - using (ImRaii.PushId("loadedManifestResourceTextures"u8)) - { - if (ImGui.CollapsingHeader($"Loaded Manifest Resource Textures: {this.textureManager.Shared.ForDebugManifestResourceTextures.Count:n0}###header")) - this.DrawLoadedTextures(this.textureManager.Shared.ForDebugManifestResourceTextures); - } + ImGui.PushID("loadedManifestResourceTextures"); + if (ImGui.CollapsingHeader( + $"Loaded Manifest Resource Textures: {this.textureManager.Shared.ForDebugManifestResourceTextures.Count:n0}###header")) + this.DrawLoadedTextures(this.textureManager.Shared.ForDebugManifestResourceTextures); + ImGui.PopID(); lock (this.textureManager.Shared.ForDebugInvalidatedTextures) { - using var pushedId = ImRaii.PushId("invalidatedTextures"u8); - if (ImGui.CollapsingHeader($"Invalidated: {this.textureManager.Shared.ForDebugInvalidatedTextures.Count:n0}###header")) + ImGui.PushID("invalidatedTextures"); + if (ImGui.CollapsingHeader( + $"Invalidated: {this.textureManager.Shared.ForDebugInvalidatedTextures.Count:n0}###header")) + { this.DrawLoadedTextures(this.textureManager.Shared.ForDebugInvalidatedTextures); + } + + ImGui.PopID(); } - var textHeightSpacing = new Vector2(ImGui.GetTextLineHeightWithSpacing()); - ImGui.Dummy(textHeightSpacing); - - if (!this.textureManager.HasClipboardImage()) - { - ImGuiComponents.DisabledButton("Paste from Clipboard"); - } - else if (ImGui.Button("Paste from Clipboard"u8)) - { - this.addedTextures.Add(new(Api10: this.textureManager.CreateFromClipboardAsync())); - } + ImGui.Dummy(new(ImGui.GetTextLineHeightWithSpacing())); if (ImGui.CollapsingHeader(nameof(ITextureProvider.GetFromGameIcon))) { - using var pushedId = ImRaii.PushId(nameof(this.DrawGetFromGameIcon)); + ImGui.PushID(nameof(this.DrawGetFromGameIcon)); this.DrawGetFromGameIcon(); + ImGui.PopID(); } if (ImGui.CollapsingHeader(nameof(ITextureProvider.GetFromGame))) { - using var pushedId = ImRaii.PushId(nameof(this.DrawGetFromGame)); + ImGui.PushID(nameof(this.DrawGetFromGame)); this.DrawGetFromGame(); + ImGui.PopID(); } if (ImGui.CollapsingHeader(nameof(ITextureProvider.GetFromFile))) { - using var pushedId = ImRaii.PushId(nameof(this.DrawGetFromFile)); + ImGui.PushID(nameof(this.DrawGetFromFile)); this.DrawGetFromFile(); + ImGui.PopID(); } if (ImGui.CollapsingHeader(nameof(ITextureProvider.GetFromManifestResource))) { - using var pushedId = ImRaii.PushId(nameof(this.DrawGetFromManifestResource)); + ImGui.PushID(nameof(this.DrawGetFromManifestResource)); this.DrawGetFromManifestResource(); + ImGui.PopID(); } if (ImGui.CollapsingHeader(nameof(ITextureProvider.CreateFromImGuiViewportAsync))) { - using var pushedId = ImRaii.PushId(nameof(this.DrawCreateFromImGuiViewportAsync)); + ImGui.PushID(nameof(this.DrawCreateFromImGuiViewportAsync)); this.DrawCreateFromImGuiViewportAsync(); + ImGui.PopID(); } - if (ImGui.CollapsingHeader("UV"u8)) + if (ImGui.CollapsingHeader("UV")) { - using var pushedId = ImRaii.PushId(nameof(this.DrawUvInput)); + ImGui.PushID(nameof(this.DrawUvInput)); this.DrawUvInput(); + ImGui.PopID(); } - if (ImGui.CollapsingHeader($"CropCopy##{nameof(this.DrawExistingTextureModificationArgs)}")) + if (ImGui.CollapsingHeader($"CropCopy##{this.DrawExistingTextureModificationArgs}")) { - using var pushedId = ImRaii.PushId(nameof(this.DrawExistingTextureModificationArgs)); + ImGui.PushID(nameof(this.DrawExistingTextureModificationArgs)); this.DrawExistingTextureModificationArgs(); + ImGui.PopID(); } - ImGui.Dummy(textHeightSpacing); + ImGui.Dummy(new(ImGui.GetTextLineHeightWithSpacing())); Action? runLater = null; foreach (var t in this.addedTextures) { - using var pushedId = ImRaii.PushId(t.Id); - + ImGui.PushID(t.Id); if (ImGui.CollapsingHeader($"Tex #{t.Id} {t}###header", ImGuiTreeNodeFlags.DefaultOpen)) { - if (ImGui.Button("X"u8)) + if (ImGui.Button("X")) { runLater = () => { @@ -250,7 +249,7 @@ internal class TexWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Save"u8)) + if (ImGui.Button("Save")) { _ = Service<DevTextureSaveMenu>.Get().ShowTextureSaveMenuAsync( this.DisplayName, @@ -259,11 +258,11 @@ internal class TexWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Copy Reference"u8)) + if (ImGui.Button("Copy Reference")) runLater = () => this.addedTextures.Add(t.CreateFromSharedLowLevelResource(this.textureManager)); ImGui.SameLine(); - if (ImGui.Button("CropCopy"u8)) + if (ImGui.Button("CropCopy")) { runLater = () => { @@ -289,7 +288,7 @@ internal class TexWidget : IDataWindowWidget { if (t.GetTexture(this.textureManager) is { } source) { - var psrv = (ID3D11ShaderResourceView*)source.Handle.Handle; + var psrv = (ID3D11ShaderResourceView*)source.ImGuiHandle; var rcsrv = psrv->AddRef() - 1; psrv->Release(); @@ -299,13 +298,13 @@ internal class TexWidget : IDataWindowWidget pres->Release(); pres->Release(); - ImGui.Text($"RC: Resource({rcres})/View({rcsrv})"); - ImGui.Text($"{source.Width} x {source.Height} | {source}"); + ImGui.TextUnformatted($"RC: Resource({rcres})/View({rcsrv})"); + ImGui.TextUnformatted(source.ToString()); } else { - ImGui.Text("RC: -"); - ImGui.Text(string.Empty); + ImGui.TextUnformatted("RC: -"); + ImGui.TextUnformatted(" "); } } @@ -317,101 +316,101 @@ internal class TexWidget : IDataWindowWidget if (this.inputTexScale != Vector2.Zero) scale *= this.inputTexScale; - ImGui.Image(tex.Handle, scale, this.inputTexUv0, this.inputTexUv1, this.inputTintCol); + ImGui.Image(tex.ImGuiHandle, scale, this.inputTexUv0, this.inputTexUv1, this.inputTintCol); } else { - ImGui.Text(t.DescribeError() ?? "Loading"); + ImGui.TextUnformatted(t.DescribeError() ?? "Loading"); } } catch (Exception e) { - ImGui.Text(e.ToString()); + ImGui.TextUnformatted(e.ToString()); } } + + ImGui.PopID(); } runLater?.Invoke(); } - /// <summary>Adds a texture wrap for debug display purposes.</summary> - /// <param name="textureTask">Task returning a texture.</param> - public void AddTexture(Task<IDalamudTextureWrap> textureTask) => this.addedTextures.Add(new(Api10: textureTask)); - private unsafe void DrawBlame(List<TextureManager.IBlameableDalamudTextureWrap> allBlames) { var im = Service<InterfaceManager>.Get(); - var shouldSortAgain = ImGui.Button("Sort again"u8); + var shouldSortAgain = ImGui.Button("Sort again"); ImGui.SameLine(); - if (ImGui.Button("Reset Columns"u8)) + if (ImGui.Button("Reset Columns")) this.allLoadedTexturesTableName = "##table" + Environment.TickCount64; - using var table = ImRaii.Table(this.allLoadedTexturesTableName, (int)DrawBlameTableColumnUserId.ColumnCount, TableFlags); - if (!table.Success) + if (!ImGui.BeginTable( + this.allLoadedTexturesTableName, + (int)DrawBlameTableColumnUserId.ColumnCount, + ImGuiTableFlags.Sortable | ImGuiTableFlags.SortTristate | ImGuiTableFlags.SortMulti | + ImGuiTableFlags.Reorderable | ImGuiTableFlags.Resizable | ImGuiTableFlags.NoBordersInBodyUntilResize | + ImGuiTableFlags.NoSavedSettings)) return; const int numIcons = 1; float iconWidths; using (im.IconFontHandle?.Push()) - { iconWidths = ImGui.CalcTextSize(FontAwesomeIcon.Save.ToIconString()).X; - } ImGui.TableSetupScrollFreeze(0, 1); ImGui.TableSetupColumn( - "Address"u8, + "Address", ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("0x7F0000000000"u8).X, + ImGui.CalcTextSize("0x7F0000000000").X, (uint)DrawBlameTableColumnUserId.NativeAddress); ImGui.TableSetupColumn( - "Actions"u8, + "Actions", ImGuiTableColumnFlags.WidthFixed | ImGuiTableColumnFlags.NoSort, iconWidths + (ImGui.GetStyle().FramePadding.X * 2 * numIcons) + (ImGui.GetStyle().ItemSpacing.X * 1 * numIcons), (uint)DrawBlameTableColumnUserId.Actions); ImGui.TableSetupColumn( - "Name"u8, + "Name", ImGuiTableColumnFlags.WidthStretch, 0f, (uint)DrawBlameTableColumnUserId.Name); ImGui.TableSetupColumn( - "Width"u8, + "Width", ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("000000"u8).X, + ImGui.CalcTextSize("000000").X, (uint)DrawBlameTableColumnUserId.Width); ImGui.TableSetupColumn( - "Height"u8, + "Height", ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("000000"u8).X, + ImGui.CalcTextSize("000000").X, (uint)DrawBlameTableColumnUserId.Height); ImGui.TableSetupColumn( - "Format"u8, + "Format", ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("R32G32B32A32_TYPELESS"u8).X, + ImGui.CalcTextSize("R32G32B32A32_TYPELESS").X, (uint)DrawBlameTableColumnUserId.Format); ImGui.TableSetupColumn( - "Size"u8, + "Size", ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("123.45 MB"u8).X, + ImGui.CalcTextSize("123.45 MB").X, (uint)DrawBlameTableColumnUserId.Size); ImGui.TableSetupColumn( - "Plugins"u8, + "Plugins", ImGuiTableColumnFlags.WidthFixed, - ImGui.CalcTextSize("Aaaaaaaaaa Aaaaaaaaaa Aaaaaaaaaa"u8).X, + ImGui.CalcTextSize("Aaaaaaaaaa Aaaaaaaaaa Aaaaaaaaaa").X, (uint)DrawBlameTableColumnUserId.Plugins); ImGui.TableHeadersRow(); var sortSpecs = ImGui.TableGetSortSpecs(); - if (sortSpecs.Handle is not null && (sortSpecs.SpecsDirty || shouldSortAgain)) + if (sortSpecs.NativePtr is not null && (sortSpecs.SpecsDirty || shouldSortAgain)) { allBlames.Sort( static (a, b) => { var sortSpecs = ImGui.TableGetSortSpecs(); - var specs = new Span<ImGuiTableColumnSortSpecs>(sortSpecs.Handle->Specs, sortSpecs.SpecsCount); + var specs = new Span<ImGuiTableColumnSortSpecs>(sortSpecs.NativePtr->Specs, sortSpecs.SpecsCount); Span<bool> sorted = stackalloc bool[(int)DrawBlameTableColumnUserId.ColumnCount]; foreach (ref var spec in specs) { @@ -443,7 +442,7 @@ internal class TexWidget : IDataWindowWidget sortSpecs.SpecsDirty = false; } - var clipper = ImGui.ImGuiListClipper(); + var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); clipper.Begin(allBlames.Count); while (clipper.Step()) @@ -452,8 +451,7 @@ internal class TexWidget : IDataWindowWidget { var wrap = allBlames[i]; ImGui.TableNextRow(); - - using var pushedId = ImRaii.PushId(i); + ImGui.PushID(i); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); @@ -464,14 +462,15 @@ internal class TexWidget : IDataWindowWidget { _ = Service<DevTextureSaveMenu>.Get().ShowTextureSaveMenuAsync( this.DisplayName, - $"{wrap.Handle.Handle:X16}", + $"{wrap.ImGuiHandle:X16}", Task.FromResult(wrap.CreateWrapSharingLowLevelResource())); } if (ImGui.IsItemHovered()) { - using var tooltip = ImRaii.Tooltip(); - ImGui.Image(wrap.Handle, wrap.Size); + ImGui.BeginTooltip(); + ImGui.Image(wrap.ImGuiHandle, wrap.Size); + ImGui.EndTooltip(); } ImGui.TableNextColumn(); @@ -493,19 +492,21 @@ internal class TexWidget : IDataWindowWidget ImGui.TableNextColumn(); lock (wrap.OwnerPlugins) this.TextColumnCopiable(string.Join(", ", wrap.OwnerPlugins.Select(static x => x.Name)), false, true); + + ImGui.PopID(); } } clipper.Destroy(); + ImGui.EndTable(); ImGuiHelpers.ScaledDummy(10); } - private void DrawLoadedTextures(ICollection<SharedImmediateTexture> textures) + private unsafe void DrawLoadedTextures(ICollection<SharedImmediateTexture> textures) { var im = Service<InterfaceManager>.Get(); - using var table = ImRaii.Table("##table"u8, 6); - if (!table.Success) + if (!ImGui.BeginTable("##table", 6)) return; const int numIcons = 4; @@ -518,19 +519,19 @@ internal class TexWidget : IDataWindowWidget } ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("ID"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000"u8).X); - ImGui.TableSetupColumn("Source"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("RefCount"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("RefCount__"u8).X); - ImGui.TableSetupColumn("SelfRef"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("00.000___"u8).X); + ImGui.TableSetupColumn("ID", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000").X); + ImGui.TableSetupColumn("Source", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("RefCount", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("RefCount__").X); + ImGui.TableSetupColumn("SelfRef", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("00.000___").X); ImGui.TableSetupColumn( - "Actions"u8, + "Actions", ImGuiTableColumnFlags.WidthFixed, iconWidths + (ImGui.GetStyle().FramePadding.X * 2 * numIcons) + (ImGui.GetStyle().ItemSpacing.X * 1 * numIcons)); ImGui.TableHeadersRow(); - var clipper = ImGui.ImGuiListClipper(); + var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); clipper.Begin(textures.Count); using (var enu = textures.GetEnumerator()) @@ -558,12 +559,12 @@ internal class TexWidget : IDataWindowWidget // Should not happen ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.Text("?"u8); + ImGui.TextUnformatted("?"); continue; } var remain = texture.SelfReferenceExpiresInForDebug; - using var pushedId = ImRaii.PushId(row); + ImGui.PushID(row); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); @@ -590,26 +591,28 @@ internal class TexWidget : IDataWindowWidget if (ImGui.IsItemHovered() && texture.GetWrapOrDefault(null) is { } immediate) { - using var tooltip = ImRaii.Tooltip(); - ImGui.Image(immediate.Handle, immediate.Size); + ImGui.BeginTooltip(); + ImGui.Image(immediate.ImGuiHandle, immediate.Size); + ImGui.EndTooltip(); } ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.Sync)) - this.textureManager.InvalidatePaths([texture.SourcePathForDebug]); - + this.textureManager.InvalidatePaths(new[] { texture.SourcePathForDebug }); if (ImGui.IsItemHovered()) ImGui.SetTooltip($"Call {nameof(ITextureSubstitutionProvider.InvalidatePaths)}."); ImGui.SameLine(); - using (ImRaii.Disabled(remain <= 0)) - { - if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash)) - texture.ReleaseSelfReference(true); + if (remain <= 0) + ImGui.BeginDisabled(); + if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash)) + texture.ReleaseSelfReference(true); + if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) + ImGui.SetTooltip("Release self-reference immediately."); + if (remain <= 0) + ImGui.EndDisabled(); - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - ImGui.SetTooltip("Release self-reference immediately."u8); - } + ImGui.PopID(); } if (!valid) @@ -618,18 +621,19 @@ internal class TexWidget : IDataWindowWidget } clipper.Destroy(); + ImGui.EndTable(); ImGuiHelpers.ScaledDummy(10); } private void DrawGetFromGameIcon() { - ImGui.InputText("Icon ID"u8, ref this.iconId, 32); - ImGui.Checkbox("HQ Item"u8, ref this.hq); - ImGui.Checkbox("Hi-Res"u8, ref this.hiRes); + ImGui.InputText("Icon ID", ref this.iconId, 32); + ImGui.Checkbox("HQ Item", ref this.hq); + ImGui.Checkbox("Hi-Res", ref this.hiRes); ImGui.SameLine(); - if (ImGui.Button("Load Icon (Async)"u8)) + if (ImGui.Button("Load Icon (Async)")) { this.addedTextures.Add( new( @@ -640,7 +644,7 @@ internal class TexWidget : IDataWindowWidget } ImGui.SameLine(); - if (ImGui.Button("Load Icon (Immediate)"u8)) + if (ImGui.Button("Load Icon (Immediate)")) this.addedTextures.Add(new(Api10ImmGameIcon: new(uint.Parse(this.iconId), this.hq, this.hiRes))); ImGuiHelpers.ScaledDummy(10); @@ -648,14 +652,14 @@ internal class TexWidget : IDataWindowWidget private void DrawGetFromGame() { - ImGui.InputText("Tex Path"u8, ref this.inputTexPath, 255); + ImGui.InputText("Tex Path", ref this.inputTexPath, 255); ImGui.SameLine(); - if (ImGui.Button("Load Tex (Async)"u8)) + if (ImGui.Button("Load Tex (Async)")) this.addedTextures.Add(new(Api10: this.textureManager.Shared.GetFromGame(this.inputTexPath).RentAsync())); ImGui.SameLine(); - if (ImGui.Button("Load Tex (Immediate)"u8)) + if (ImGui.Button("Load Tex (Immediate)")) this.addedTextures.Add(new(Api10ImmGamePath: this.inputTexPath)); ImGuiHelpers.ScaledDummy(10); @@ -663,14 +667,14 @@ internal class TexWidget : IDataWindowWidget private void DrawGetFromFile() { - ImGui.InputText("File Path"u8, ref this.inputFilePath, 255); + ImGui.InputText("File Path", ref this.inputFilePath, 255); ImGui.SameLine(); - if (ImGui.Button("Load File (Async)"u8)) + if (ImGui.Button("Load File (Async)")) this.addedTextures.Add(new(Api10: this.textureManager.Shared.GetFromFile(this.inputFilePath).RentAsync())); ImGui.SameLine(); - if (ImGui.Button("Load File (Immediate)"u8)) + if (ImGui.Button("Load File (Immediate)")) this.addedTextures.Add(new(Api10ImmFile: this.inputFilePath)); ImGuiHelpers.ScaledDummy(10); @@ -698,7 +702,8 @@ internal class TexWidget : IDataWindowWidget if (ImGui.Combo( "Assembly", ref this.inputManifestResourceAssemblyIndex, - this.inputManifestResourceAssemblyCandidateNames)) + this.inputManifestResourceAssemblyCandidateNames, + this.inputManifestResourceAssemblyCandidateNames.Length)) { this.inputManifestResourceNameIndex = 0; this.inputManifestResourceNameCandidates = null; @@ -715,7 +720,8 @@ internal class TexWidget : IDataWindowWidget ImGui.Combo( "Name", ref this.inputManifestResourceNameIndex, - this.inputManifestResourceNameCandidates); + this.inputManifestResourceNameCandidates, + this.inputManifestResourceNameCandidates.Length); var name = this.inputManifestResourceNameIndex >= 0 @@ -723,7 +729,7 @@ internal class TexWidget : IDataWindowWidget ? this.inputManifestResourceNameCandidates[this.inputManifestResourceNameIndex] : null; - if (ImGui.Button("Refresh Assemblies"u8)) + if (ImGui.Button("Refresh Assemblies")) { this.inputManifestResourceAssemblyIndex = 0; this.inputManifestResourceAssemblyCandidates = null; @@ -735,11 +741,14 @@ internal class TexWidget : IDataWindowWidget if (assembly is not null && name is not null) { ImGui.SameLine(); - if (ImGui.Button("Load File (Async)"u8)) - this.addedTextures.Add(new(Api10: this.textureManager.Shared.GetFromManifestResource(assembly, name).RentAsync())); + if (ImGui.Button("Load File (Async)")) + { + this.addedTextures.Add( + new(Api10: this.textureManager.Shared.GetFromManifestResource(assembly, name).RentAsync())); + } ImGui.SameLine(); - if (ImGui.Button("Load File (Immediate)"u8)) + if (ImGui.Button("Load File (Immediate)")) this.addedTextures.Add(new(Api10ImmManifestResource: (assembly, name))); } @@ -749,20 +758,21 @@ internal class TexWidget : IDataWindowWidget private void DrawCreateFromImGuiViewportAsync() { var viewports = ImGui.GetPlatformIO().Viewports; - using (var combo = ImRaii.Combo(nameof(this.viewportTextureArgs.ViewportId), $"{this.viewportIndexInt}. {viewports[this.viewportIndexInt].ID:X08}")) + if (ImGui.BeginCombo( + nameof(this.viewportTextureArgs.ViewportId), + $"{this.viewportIndexInt}. {viewports[this.viewportIndexInt].ID:X08}")) { - if (combo.Success) + for (var i = 0; i < viewports.Size; i++) { - for (var i = 0; i < viewports.Size; i++) + var sel = this.viewportIndexInt == i; + if (ImGui.Selectable($"#{i}: {viewports[i].ID:X08}", ref sel)) { - var sel = this.viewportIndexInt == i; - if (ImGui.Selectable($"#{i}: {viewports[i].ID:X08}", ref sel)) - { - this.viewportIndexInt = i; - ImGui.SetItemDefaultFocus(); - } + this.viewportIndexInt = i; + ImGui.SetItemDefaultFocus(); } } + + ImGui.EndCombo(); } var b = this.viewportTextureArgs.KeepTransparency; @@ -785,7 +795,7 @@ internal class TexWidget : IDataWindowWidget if (ImGui.InputFloat2(nameof(this.viewportTextureArgs.Uv1), ref vec2)) this.viewportTextureArgs.Uv1 = vec2; - if (ImGui.Button("Create"u8) && this.viewportIndexInt >= 0 && this.viewportIndexInt < viewports.Size) + if (ImGui.Button("Create") && this.viewportIndexInt >= 0 && this.viewportIndexInt < viewports.Size) { this.addedTextures.Add( new() @@ -824,12 +834,18 @@ internal class TexWidget : IDataWindowWidget } this.supportedRenderTargetFormatNames ??= this.supportedRenderTargetFormats.Select(Enum.GetName).ToArray(); - ImGui.Combo(nameof(this.textureModificationArgs.DxgiFormat), ref this.renderTargetChoiceInt, this.supportedRenderTargetFormatNames); + ImGui.Combo( + nameof(this.textureModificationArgs.DxgiFormat), + ref this.renderTargetChoiceInt, + this.supportedRenderTargetFormatNames, + this.supportedRenderTargetFormatNames.Length); Span<int> wh = stackalloc int[2]; wh[0] = this.textureModificationArgs.NewWidth; wh[1] = this.textureModificationArgs.NewHeight; - if (ImGui.InputInt($"{nameof(this.textureModificationArgs.NewWidth)}/{nameof(this.textureModificationArgs.NewHeight)}", wh)) + if (ImGui.InputInt2( + $"{nameof(this.textureModificationArgs.NewWidth)}/{nameof(this.textureModificationArgs.NewHeight)}", + ref wh[0])) { this.textureModificationArgs.NewWidth = wh[0]; this.textureModificationArgs.NewHeight = wh[1]; diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs index 6be0a3a85..e101fbd0b 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/ToastWidget.cs @@ -1,9 +1,10 @@ -using System.Numerics; +using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.Toast; using Dalamud.Interface.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// <summary> @@ -18,12 +19,12 @@ internal class ToastWidget : IDataWindowWidget private bool questToastSound; private int questToastIconId; private bool questToastCheckmark; - + /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["toast"]; - + public string[]? CommandShortcuts { get; init; } = { "toast" }; + /// <inheritdoc/> - public string DisplayName { get; init; } = "Toast"; + public string DisplayName { get; init; } = "Toast"; /// <inheritdoc/> public bool Ready { get; set; } @@ -39,18 +40,18 @@ internal class ToastWidget : IDataWindowWidget { var toastGui = Service<ToastGui>.Get(); - ImGui.InputText("Toast text"u8, ref this.inputTextToast, 200); + ImGui.InputText("Toast text", ref this.inputTextToast, 200); - ImGui.Combo("Toast Position", ref this.toastPosition, ["Bottom", "Top",], 2); - ImGui.Combo("Toast Speed", ref this.toastSpeed, ["Slow", "Fast",], 2); - ImGui.Combo("Quest Toast Position", ref this.questToastPosition, ["Centre", "Right", "Left"], 3); - ImGui.Checkbox("Quest Checkmark"u8, ref this.questToastCheckmark); - ImGui.Checkbox("Quest Play Sound"u8, ref this.questToastSound); - ImGui.InputInt("Quest Icon ID"u8, ref this.questToastIconId); + ImGui.Combo("Toast Position", ref this.toastPosition, new[] { "Bottom", "Top", }, 2); + ImGui.Combo("Toast Speed", ref this.toastSpeed, new[] { "Slow", "Fast", }, 2); + ImGui.Combo("Quest Toast Position", ref this.questToastPosition, new[] { "Centre", "Right", "Left" }, 3); + ImGui.Checkbox("Quest Checkmark", ref this.questToastCheckmark); + ImGui.Checkbox("Quest Play Sound", ref this.questToastSound); + ImGui.InputInt("Quest Icon ID", ref this.questToastIconId); ImGuiHelpers.ScaledDummy(new Vector2(10, 10)); - if (ImGui.Button("Show toast"u8)) + if (ImGui.Button("Show toast")) { toastGui.ShowNormal(this.inputTextToast, new ToastOptions { @@ -59,7 +60,7 @@ internal class ToastWidget : IDataWindowWidget }); } - if (ImGui.Button("Show Quest toast"u8)) + if (ImGui.Button("Show Quest toast")) { toastGui.ShowQuest(this.inputTextToast, new QuestToastOptions { @@ -70,7 +71,7 @@ internal class ToastWidget : IDataWindowWidget }); } - if (ImGui.Button("Show Error toast"u8)) + if (ImGui.Button("Show Error toast")) { toastGui.ShowError(this.inputTextToast); } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs index bc6e5376c..6b57f7a6a 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/UIColorWidget.cs @@ -1,14 +1,18 @@ using System.Buffers.Binary; +using System.Linq; using System.Numerics; using System.Text; -using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; -using Dalamud.Interface.Utility.Raii; +using Dalamud.Interface.Utility; +using Dalamud.Storage.Assets; +using ImGuiNET; + +using Lumina.Excel; using Lumina.Excel.Sheets; namespace Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -18,6 +22,8 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class UiColorWidget : IDataWindowWidget { + private ExcelSheet<UIColor> colors; + /// <inheritdoc/> public string[]? CommandShortcuts { get; init; } = ["uicolor"]; @@ -31,14 +37,12 @@ internal class UiColorWidget : IDataWindowWidget public void Load() { this.Ready = true; + this.colors = Service<DataManager>.Get().GetExcelSheet<UIColor>(); } /// <inheritdoc/> - public void Draw() + public unsafe void Draw() { - var colors = Service<DataManager>.GetNullable()?.GetExcelSheet<UIColor>() - ?? throw new InvalidOperationException("UIColor sheet not loaded."); - Service<SeStringRenderer>.Get().CompileAndDrawWrapped( "· Color notation is #" + "<edgecolor(0xFFEEEE)><color(0xFF0000)>RR<color(stackcolor)><edgecolor(stackcolor)>" + @@ -46,41 +50,37 @@ internal class UiColorWidget : IDataWindowWidget "<edgecolor(0xEEEEFF)><color(0x0000FF)>BB<color(stackcolor)><edgecolor(stackcolor)>.<br>" + "· Click on a color to copy the color code.<br>" + "· Hover on a color to preview the text with edge, when the next color has been used together."); - - using var table = ImRaii.Table("UIColor"u8, 7); - if (!table.Success) + if (!ImGui.BeginTable("UIColor", 5)) return; ImGui.TableSetupScrollFreeze(0, 1); - var rowidw = ImGui.CalcTextSize("9999999"u8).X; - var colorw = ImGui.CalcTextSize("#999999"u8).X; - colorw = Math.Max(colorw, ImGui.CalcTextSize("#AAAAAA"u8).X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#BBBBBB"u8).X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#CCCCCC"u8).X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#DDDDDD"u8).X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#EEEEEE"u8).X); - colorw = Math.Max(colorw, ImGui.CalcTextSize("#FFFFFF"u8).X); + var rowidw = ImGui.CalcTextSize("9999999").X; + var colorw = ImGui.CalcTextSize("#999999").X; + colorw = Math.Max(colorw, ImGui.CalcTextSize("#AAAAAA").X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#BBBBBB").X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#CCCCCC").X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#DDDDDD").X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#EEEEEE").X); + colorw = Math.Max(colorw, ImGui.CalcTextSize("#FFFFFF").X); colorw += ImGui.GetFrameHeight() + ImGui.GetStyle().FramePadding.X; - ImGui.TableSetupColumn("Row ID"u8, ImGuiTableColumnFlags.WidthFixed, rowidw); - ImGui.TableSetupColumn("Dark"u8, ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Light"u8, ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Classic FF"u8, ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Clear Blue"u8, ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Clear White"u8, ImGuiTableColumnFlags.WidthFixed, colorw); - ImGui.TableSetupColumn("Clear Green"u8, ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Row ID", ImGuiTableColumnFlags.WidthFixed, rowidw); + ImGui.TableSetupColumn("Dark", ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Light", ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Classic FF", ImGuiTableColumnFlags.WidthFixed, colorw); + ImGui.TableSetupColumn("Clear Blue", ImGuiTableColumnFlags.WidthFixed, colorw); ImGui.TableHeadersRow(); - var clipper = ImGui.ImGuiListClipper(); - clipper.Begin(colors.Count, ImGui.GetFrameHeightWithSpacing()); + var clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + clipper.Begin(this.colors.Count, ImGui.GetFrameHeightWithSpacing()); while (clipper.Step()) { for (var i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) { - var row = colors.GetRowAt(i); + var row = this.colors.GetRowAt(i); UIColor? adjacentRow = null; - if (i + 1 < colors.Count) + if (i + 1 < this.colors.Count) { - var adjRow = colors.GetRowAt(i + 1); + var adjRow = this.colors.GetRowAt(i + 1); if (adjRow.RowId == row.RowId + 1) { adjacentRow = adjRow; @@ -93,65 +93,49 @@ internal class UiColorWidget : IDataWindowWidget ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - ImGui.Text($"{id}"); + ImGui.TextUnformatted($"{id}"); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - using (ImRaii.PushId($"row{id}_dark")) - { - if (this.DrawColorColumn(row.Dark) && adjacentRow.HasValue) - DrawEdgePreview(id, row.Dark, adjacentRow.Value.Dark); - } + ImGui.PushID($"row{id}_col1"); + if (this.DrawColorColumn(row.UIForeground) && + adjacentRow.HasValue) + DrawEdgePreview(id, row.UIForeground, adjacentRow.Value.UIForeground); + ImGui.PopID(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - using (ImRaii.PushId($"row{id}_light")) - { - if (this.DrawColorColumn(row.Light) && adjacentRow.HasValue) - DrawEdgePreview(id, row.Light, adjacentRow.Value.Light); - } + ImGui.PushID($"row{id}_col2"); + if (this.DrawColorColumn(row.UIGlow) && + adjacentRow.HasValue) + DrawEdgePreview(id, row.UIGlow, adjacentRow.Value.UIGlow); + ImGui.PopID(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - using (ImRaii.PushId($"row{id}_classic")) - { - if (this.DrawColorColumn(row.ClassicFF) && adjacentRow.HasValue) - DrawEdgePreview(id, row.ClassicFF, adjacentRow.Value.ClassicFF); - } + ImGui.PushID($"row{id}_col3"); + if (this.DrawColorColumn(row.Unknown0) && + adjacentRow.HasValue) + DrawEdgePreview(id, row.Unknown0, adjacentRow.Value.Unknown0); + ImGui.PopID(); ImGui.TableNextColumn(); ImGui.AlignTextToFramePadding(); - using (ImRaii.PushId($"row{id}_blue")) - { - if (this.DrawColorColumn(row.ClearBlue) && adjacentRow.HasValue) - DrawEdgePreview(id, row.ClearBlue, adjacentRow.Value.ClearBlue); - } - - ImGui.TableNextColumn(); - ImGui.AlignTextToFramePadding(); - using (ImRaii.PushId($"row{id}_white")) - { - if (this.DrawColorColumn(row.ClearWhite) && adjacentRow.HasValue) - DrawEdgePreview(id, row.ClearWhite, adjacentRow.Value.ClearWhite); - } - - ImGui.TableNextColumn(); - ImGui.AlignTextToFramePadding(); - using (ImRaii.PushId($"row{id}_green")) - { - if (this.DrawColorColumn(row.ClearGreen) && adjacentRow.HasValue) - DrawEdgePreview(id, row.ClearGreen, adjacentRow.Value.ClearGreen); - } + ImGui.PushID($"row{id}_col4"); + if (this.DrawColorColumn(row.Unknown1) && + adjacentRow.HasValue) + DrawEdgePreview(id, row.Unknown1, adjacentRow.Value.Unknown1); + ImGui.PopID(); } } clipper.Destroy(); + ImGui.EndTable(); } private static void DrawEdgePreview(uint id, uint sheetColor, uint sheetColor2) { - using var tooltip = ImRaii.Tooltip(); - + ImGui.BeginTooltip(); Span<byte> buf = stackalloc byte[256]; var ptr = 0; ptr += Encoding.UTF8.GetBytes("<colortype(", buf[ptr..]); @@ -188,6 +172,7 @@ internal class UiColorWidget : IDataWindowWidget EdgeColor = BinaryPrimitives.ReverseEndianness(sheetColor) | 0xFF000000u, WrapWidth = float.PositiveInfinity, }); + ImGui.EndTooltip(); } private bool DrawColorColumn(uint sheetColor) @@ -207,7 +192,7 @@ internal class UiColorWidget : IDataWindowWidget ImGui.GetColorU32(ImGuiCol.Text), rgbtext); - if (ImGui.InvisibleButton("##copy"u8, size)) + if (ImGui.InvisibleButton("##copy", size)) { ImGui.SetClipboardText(rgbtext); Service<NotificationManager>.Get().AddNotification( diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs index f94ea0729..ec39e38f1 100644 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs +++ b/Dalamud/Interface/Internal/Windows/Data/Widgets/UldWidget.cs @@ -5,16 +5,16 @@ using System.Numerics; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; using Dalamud.Memory; +using ImGuiNET; + using Lumina.Data.Files; using Lumina.Data.Parsing.Uld; @@ -27,10 +27,9 @@ namespace Dalamud.Interface.Internal.Windows.Data.Widgets; /// </summary> internal class UldWidget : IDataWindowWidget { - private const string UldBaseBath = "ui/uld/"; - // ULD styles can be hardcoded for now as they don't add new ones regularly. Can later try and find where to load these from in the game EXE. - private static readonly string[] ThemeDisplayNames = ["Dark", "Light", "Classic FF", "Clear Blue", "Clear White", "Clear Green"]; + private static readonly string[] ThemeDisplayNames = ["Dark", "Light", "Classic FF", "Clear Blue"]; + private static readonly string[] ThemeBasePaths = ["ui/uld/", "ui/uld/light/", "ui/uld/third/", "ui/uld/fourth/"]; // 48 8D 15 ?? ?? ?? ?? is the part of the signatures that contain the string location offset // 48 = 64 bit register prefix @@ -49,7 +48,6 @@ internal class UldWidget : IDataWindowWidget ("48 8D 15 ?? ?? ?? ?? 45 33 C0 E9 ?? ?? ?? ??", 3) ]; - private DataManager dataManager; private CancellationTokenSource? cts; private Task<string[]>? uldNamesTask; @@ -72,8 +70,6 @@ internal class UldWidget : IDataWindowWidget /// <inheritdoc/> public void Load() { - this.dataManager ??= Service<DataManager>.Get(); - this.cts?.Cancel(); ClearTask(ref this.uldNamesTask); this.uldNamesTask = null; @@ -96,18 +92,18 @@ internal class UldWidget : IDataWindowWidget uldNames = t.Result; break; case { Exception: { } loadException }: - ImGui.TextColoredWrapped(ImGuiColors.DalamudRed, loadException.ToString()); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudRed, loadException.ToString()); return; case { IsCanceled: true }: ClearTask(ref this.uldNamesTask); goto default; default: - ImGui.Text("Loading..."u8); + ImGui.TextUnformatted("Loading..."); return; } var selectedUldPrev = this.selectedUld; - ImGui.Combo("##selectUld", ref this.selectedUld, uldNames); + ImGui.Combo("##selectUld", ref this.selectedUld, uldNames, uldNames.Length); ImGui.SameLine(); if (ImGuiComponents.IconButton("selectUldLeft", FontAwesomeIcon.AngleLeft)) this.selectedUld = ((this.selectedUld + uldNames.Length) - 1) % uldNames.Length; @@ -115,7 +111,7 @@ internal class UldWidget : IDataWindowWidget if (ImGuiComponents.IconButton("selectUldRight", FontAwesomeIcon.AngleRight)) this.selectedUld = (this.selectedUld + 1) % uldNames.Length; ImGui.SameLine(); - ImGui.Text("Select ULD File"u8); + ImGui.TextUnformatted("Select ULD File"); if (selectedUldPrev != this.selectedUld) { // reset selected parts when changing ULD @@ -123,7 +119,7 @@ internal class UldWidget : IDataWindowWidget ClearTask(ref this.selectedUldFileTask); } - ImGui.Combo("##selectTheme", ref this.selectedTheme, ThemeDisplayNames); + ImGui.Combo("##selectTheme", ref this.selectedTheme, ThemeDisplayNames, ThemeDisplayNames.Length); ImGui.SameLine(); if (ImGuiComponents.IconButton("selectThemeLeft", FontAwesomeIcon.AngleLeft)) this.selectedTheme = ((this.selectedTheme + ThemeDisplayNames.Length) - 1) % ThemeDisplayNames.Length; @@ -131,7 +127,7 @@ internal class UldWidget : IDataWindowWidget if (ImGuiComponents.IconButton("selectThemeRight", FontAwesomeIcon.AngleRight)) this.selectedTheme = (this.selectedTheme + 1) % ThemeDisplayNames.Length; ImGui.SameLine(); - ImGui.Text("Select Theme"u8); + ImGui.TextUnformatted("Select Theme"); var dataManager = Service<DataManager>.Get(); var textureManager = Service<TextureManager>.Get(); @@ -144,7 +140,7 @@ internal class UldWidget : IDataWindowWidget uld = this.selectedUldFileTask.Result; break; case { Exception: { } loadException }: - ImGui.TextColoredWrapped( + ImGuiHelpers.SafeTextColoredWrapped( ImGuiColors.DalamudRed, $"Failed to load ULD file.\n{loadException}"); return; @@ -152,68 +148,66 @@ internal class UldWidget : IDataWindowWidget this.selectedUldFileTask = null; goto default; default: - ImGui.Text("Loading..."u8); + ImGui.TextUnformatted("Loading..."); return; } - if (ImGui.CollapsingHeader("Texture Entries"u8)) + if (ImGui.CollapsingHeader("Texture Entries")) { if (ForceNullable(uld.AssetData) is null) { - ImGui.TextColoredWrapped( + ImGuiHelpers.SafeTextColoredWrapped( ImGuiColors.DalamudRed, $"Error: {nameof(UldFile.AssetData)} is not populated."); } - else + else if (ImGui.BeginTable("##uldTextureEntries", 3, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders)) { - using var table = ImRaii.Table("##uldTextureEntries"u8, 3, ImGuiTableFlags.RowBg | ImGuiTableFlags.Borders); - if (table.Success) - { - ImGui.TableSetupColumn("Id"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000"u8).X); - ImGui.TableSetupColumn("Path"u8, ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Actions"u8, ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("Preview___"u8).X); - ImGui.TableHeadersRow(); + ImGui.TableSetupColumn("Id", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("000000").X); + ImGui.TableSetupColumn("Path", ImGuiTableColumnFlags.WidthStretch); + ImGui.TableSetupColumn("Actions", ImGuiTableColumnFlags.WidthFixed, ImGui.CalcTextSize("Preview___").X); + ImGui.TableHeadersRow(); - foreach (var textureEntry in uld.AssetData) - this.DrawTextureEntry(textureEntry, textureManager); - } + foreach (var textureEntry in uld.AssetData) + this.DrawTextureEntry(textureEntry, textureManager); + + ImGui.EndTable(); } } - if (ImGui.CollapsingHeader("Timeline##TimelineCollapsingHeader"u8)) + if (ImGui.CollapsingHeader("Timeline##TimelineCollapsingHeader")) { if (ForceNullable(uld.Timelines) is null) { - ImGui.TextColoredWrapped( + ImGuiHelpers.SafeTextColoredWrapped( ImGuiColors.DalamudRed, $"Error: {nameof(UldFile.Timelines)} is not populated."); } else if (uld.Timelines.Length == 0) { - ImGui.Text("No entry exists."u8); + ImGui.TextUnformatted("No entry exists."); } else { - ImGui.SliderInt("Timeline##TimelineSlider"u8, ref this.selectedTimeline, 0, uld.Timelines.Length - 1); + ImGui.SliderInt("Timeline##TimelineSlider", ref this.selectedTimeline, 0, uld.Timelines.Length - 1); this.DrawTimelines(uld.Timelines[this.selectedTimeline]); } } - if (ImGui.CollapsingHeader("Parts##PartsCollapsingHeader"u8)) + if (ImGui.CollapsingHeader("Parts##PartsCollapsingHeader")) { if (ForceNullable(uld.Parts) is null) { - ImGui.TextColoredWrapped( + ImGuiHelpers.SafeTextColoredWrapped( ImGuiColors.DalamudRed, $"Error: {nameof(UldFile.Parts)} is not populated."); } else if (uld.Parts.Length == 0) { - ImGui.Text("No entry exists."u8); + ImGui.TextUnformatted("No entry exists."); } else { - ImGui.SliderInt("Parts##PartsSlider"u8, ref this.selectedParts, 0, uld.Parts.Length - 1); + ImGui.SliderInt("Parts##PartsSlider", ref this.selectedParts, 0, uld.Parts.Length - 1); this.DrawParts(uld.Parts[this.selectedParts], uld.AssetData, textureManager); } } @@ -271,13 +265,13 @@ internal class UldWidget : IDataWindowWidget } private string ToThemedPath(string path) => - UldBaseBath + (this.selectedTheme > 0 ? $"img{this.selectedTheme:D2}/" : string.Empty) + path[UldBaseBath.Length..]; + ThemeBasePaths[this.selectedTheme] + path[ThemeBasePaths[0].Length..]; private void DrawTextureEntry(UldRoot.TextureEntry textureEntry, TextureManager textureManager) { var path = GetStringNullTerminated(textureEntry.Path); ImGui.TableNextColumn(); - ImGui.Text(textureEntry.Id.ToString()); + ImGui.TextUnformatted(textureEntry.Id.ToString()); ImGui.TableNextColumn(); this.TextColumnCopiable(path, false, false); @@ -286,47 +280,47 @@ internal class UldWidget : IDataWindowWidget if (string.IsNullOrWhiteSpace(path)) return; - ImGui.Text("Preview"u8); + ImGui.TextUnformatted("Preview"); if (ImGui.IsItemHovered()) { - using var tooltip = ImRaii.Tooltip(); + ImGui.BeginTooltip(); var texturePath = GetStringNullTerminated(textureEntry.Path); - ImGui.Text($"Base path at {texturePath}:"); + ImGui.TextUnformatted($"Base path at {texturePath}:"); if (textureManager.Shared.GetFromGame(texturePath).TryGetWrap(out var wrap, out var e)) - ImGui.Image(wrap.Handle, wrap.Size); + ImGui.Image(wrap.ImGuiHandle, wrap.Size); else if (e is not null) - ImGui.Text(e.ToString()); + ImGui.TextUnformatted(e.ToString()); - if (this.selectedTheme != 0 && (textureEntry.ThemeSupportBitmask & (1 << (this.selectedTheme - 1))) != 0) + if (this.selectedTheme != 0) { var texturePathThemed = this.ToThemedPath(texturePath); - if (this.dataManager.FileExists(texturePathThemed)) - { - ImGui.Text($"Themed path at {texturePathThemed}:"); - if (textureManager.Shared.GetFromGame(texturePathThemed).TryGetWrap(out wrap, out e)) - ImGui.Image(wrap.Handle, wrap.Size); - else if (e is not null) - ImGui.Text(e.ToString()); - } + ImGui.TextUnformatted($"Themed path at {texturePathThemed}:"); + if (textureManager.Shared.GetFromGame(texturePathThemed).TryGetWrap(out wrap, out e)) + ImGui.Image(wrap.ImGuiHandle, wrap.Size); + else if (e is not null) + ImGui.TextUnformatted(e.ToString()); } + + ImGui.EndTooltip(); } } private void DrawTimelines(UldRoot.Timeline timeline) { - ImGui.SliderInt("FrameData"u8, ref this.selectedFrameData, 0, timeline.FrameData.Length - 1); + ImGui.SliderInt("FrameData", ref this.selectedFrameData, 0, timeline.FrameData.Length - 1); var frameData = timeline.FrameData[this.selectedFrameData]; - ImGui.Text($"FrameInfo: {frameData.StartFrame} -> {frameData.EndFrame}"); - - using var indent = ImRaii.PushIndent(); + ImGui.TextUnformatted($"FrameInfo: {frameData.StartFrame} -> {frameData.EndFrame}"); + ImGui.Indent(); foreach (var frameDataKeyGroup in frameData.KeyGroups) { - ImGui.Text($"{frameDataKeyGroup.Usage:G} {frameDataKeyGroup.Type:G}"); + ImGui.TextUnformatted($"{frameDataKeyGroup.Usage:G} {frameDataKeyGroup.Type:G}"); foreach (var keyframe in frameDataKeyGroup.Frames) this.DrawTimelineKeyGroupFrame(keyframe); } + + ImGui.Unindent(); } private void DrawTimelineKeyGroupFrame(IKeyframe frame) @@ -334,146 +328,160 @@ internal class UldWidget : IDataWindowWidget switch (frame) { case BaseKeyframeData baseKeyframeData: - ImGui.Text($"Time: {baseKeyframeData.Time} | Interpolation: {baseKeyframeData.Interpolation} | Acceleration: {baseKeyframeData.Acceleration} | Deceleration: {baseKeyframeData.Deceleration}"); + ImGui.TextUnformatted( + $"Time: {baseKeyframeData.Time} | Interpolation: {baseKeyframeData.Interpolation} | Acceleration: {baseKeyframeData.Acceleration} | Deceleration: {baseKeyframeData.Deceleration}"); break; case Float1Keyframe float1Keyframe: this.DrawTimelineKeyGroupFrame(float1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {float1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {float1Keyframe.Value}"); break; case Float2Keyframe float2Keyframe: this.DrawTimelineKeyGroupFrame(float2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {float2Keyframe.Value[0]} | Value2: {float2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {float2Keyframe.Value[0]} | Value2: {float2Keyframe.Value[1]}"); break; case Float3Keyframe float3Keyframe: this.DrawTimelineKeyGroupFrame(float3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {float3Keyframe.Value[0]} | Value2: {float3Keyframe.Value[1]} | Value3: {float3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {float3Keyframe.Value[0]} | Value2: {float3Keyframe.Value[1]} | Value3: {float3Keyframe.Value[2]}"); break; case SByte1Keyframe sbyte1Keyframe: this.DrawTimelineKeyGroupFrame(sbyte1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {sbyte1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {sbyte1Keyframe.Value}"); break; case SByte2Keyframe sbyte2Keyframe: this.DrawTimelineKeyGroupFrame(sbyte2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {sbyte2Keyframe.Value[0]} | Value2: {sbyte2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {sbyte2Keyframe.Value[0]} | Value2: {sbyte2Keyframe.Value[1]}"); break; case SByte3Keyframe sbyte3Keyframe: this.DrawTimelineKeyGroupFrame(sbyte3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {sbyte3Keyframe.Value[0]} | Value2: {sbyte3Keyframe.Value[1]} | Value3: {sbyte3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {sbyte3Keyframe.Value[0]} | Value2: {sbyte3Keyframe.Value[1]} | Value3: {sbyte3Keyframe.Value[2]}"); break; case Byte1Keyframe byte1Keyframe: this.DrawTimelineKeyGroupFrame(byte1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {byte1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {byte1Keyframe.Value}"); break; case Byte2Keyframe byte2Keyframe: this.DrawTimelineKeyGroupFrame(byte2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {byte2Keyframe.Value[0]} | Value2: {byte2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {byte2Keyframe.Value[0]} | Value2: {byte2Keyframe.Value[1]}"); break; case Byte3Keyframe byte3Keyframe: this.DrawTimelineKeyGroupFrame(byte3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {byte3Keyframe.Value[0]} | Value2: {byte3Keyframe.Value[1]} | Value3: {byte3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {byte3Keyframe.Value[0]} | Value2: {byte3Keyframe.Value[1]} | Value3: {byte3Keyframe.Value[2]}"); break; case Short1Keyframe short1Keyframe: this.DrawTimelineKeyGroupFrame(short1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {short1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {short1Keyframe.Value}"); break; case Short2Keyframe short2Keyframe: this.DrawTimelineKeyGroupFrame(short2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {short2Keyframe.Value[0]} | Value2: {short2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {short2Keyframe.Value[0]} | Value2: {short2Keyframe.Value[1]}"); break; case Short3Keyframe short3Keyframe: this.DrawTimelineKeyGroupFrame(short3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {short3Keyframe.Value[0]} | Value2: {short3Keyframe.Value[1]} | Value3: {short3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {short3Keyframe.Value[0]} | Value2: {short3Keyframe.Value[1]} | Value3: {short3Keyframe.Value[2]}"); break; case UShort1Keyframe ushort1Keyframe: this.DrawTimelineKeyGroupFrame(ushort1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {ushort1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {ushort1Keyframe.Value}"); break; case UShort2Keyframe ushort2Keyframe: this.DrawTimelineKeyGroupFrame(ushort2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {ushort2Keyframe.Value[0]} | Value2: {ushort2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {ushort2Keyframe.Value[0]} | Value2: {ushort2Keyframe.Value[1]}"); break; case UShort3Keyframe ushort3Keyframe: this.DrawTimelineKeyGroupFrame(ushort3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {ushort3Keyframe.Value[0]} | Value2: {ushort3Keyframe.Value[1]} | Value3: {ushort3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {ushort3Keyframe.Value[0]} | Value2: {ushort3Keyframe.Value[1]} | Value3: {ushort3Keyframe.Value[2]}"); break; case Int1Keyframe int1Keyframe: this.DrawTimelineKeyGroupFrame(int1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {int1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {int1Keyframe.Value}"); break; case Int2Keyframe int2Keyframe: this.DrawTimelineKeyGroupFrame(int2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {int2Keyframe.Value[0]} | Value2: {int2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {int2Keyframe.Value[0]} | Value2: {int2Keyframe.Value[1]}"); break; case Int3Keyframe int3Keyframe: this.DrawTimelineKeyGroupFrame(int3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {int3Keyframe.Value[0]} | Value2: {int3Keyframe.Value[1]} | Value3: {int3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {int3Keyframe.Value[0]} | Value2: {int3Keyframe.Value[1]} | Value3: {int3Keyframe.Value[2]}"); break; case UInt1Keyframe uint1Keyframe: this.DrawTimelineKeyGroupFrame(uint1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {uint1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {uint1Keyframe.Value}"); break; case UInt2Keyframe uint2Keyframe: this.DrawTimelineKeyGroupFrame(uint2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {uint2Keyframe.Value[0]} | Value2: {uint2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {uint2Keyframe.Value[0]} | Value2: {uint2Keyframe.Value[1]}"); break; case UInt3Keyframe uint3Keyframe: this.DrawTimelineKeyGroupFrame(uint3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {uint3Keyframe.Value[0]} | Value2: {uint3Keyframe.Value[1]} | Value3: {uint3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {uint3Keyframe.Value[0]} | Value2: {uint3Keyframe.Value[1]} | Value3: {uint3Keyframe.Value[2]}"); break; case Bool1Keyframe bool1Keyframe: this.DrawTimelineKeyGroupFrame(bool1Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value: {bool1Keyframe.Value}"); + ImGui.TextUnformatted($" | Value: {bool1Keyframe.Value}"); break; case Bool2Keyframe bool2Keyframe: this.DrawTimelineKeyGroupFrame(bool2Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {bool2Keyframe.Value[0]} | Value2: {bool2Keyframe.Value[1]}"); + ImGui.TextUnformatted($" | Value1: {bool2Keyframe.Value[0]} | Value2: {bool2Keyframe.Value[1]}"); break; case Bool3Keyframe bool3Keyframe: this.DrawTimelineKeyGroupFrame(bool3Keyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Value1: {bool3Keyframe.Value[0]} | Value2: {bool3Keyframe.Value[1]} | Value3: {bool3Keyframe.Value[2]}"); + ImGui.TextUnformatted( + $" | Value1: {bool3Keyframe.Value[0]} | Value2: {bool3Keyframe.Value[1]} | Value3: {bool3Keyframe.Value[2]}"); break; case ColorKeyframe colorKeyframe: this.DrawTimelineKeyGroupFrame(colorKeyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | Add: {colorKeyframe.AddRed} {colorKeyframe.AddGreen} {colorKeyframe.AddBlue} | Multiply: {colorKeyframe.MultiplyRed} {colorKeyframe.MultiplyGreen} {colorKeyframe.MultiplyBlue}"); + ImGui.TextUnformatted( + $" | Add: {colorKeyframe.AddRed} {colorKeyframe.AddGreen} {colorKeyframe.AddBlue} | Multiply: {colorKeyframe.MultiplyRed} {colorKeyframe.MultiplyGreen} {colorKeyframe.MultiplyBlue}"); break; case LabelKeyframe labelKeyframe: this.DrawTimelineKeyGroupFrame(labelKeyframe.Keyframe); ImGui.SameLine(0, 0); - ImGui.Text($" | LabelCommand: {labelKeyframe.LabelCommand} | JumpId: {labelKeyframe.JumpId} | LabelId: {labelKeyframe.LabelId}"); + ImGui.TextUnformatted( + $" | LabelCommand: {labelKeyframe.LabelCommand} | JumpId: {labelKeyframe.JumpId} | LabelId: {labelKeyframe.LabelId}"); break; } } - private void DrawParts(UldRoot.PartsData partsData, UldRoot.TextureEntry[] textureEntries, TextureManager textureManager) + private void DrawParts( + UldRoot.PartsData partsData, + UldRoot.TextureEntry[] textureEntries, + TextureManager textureManager) { for (var index = 0; index < partsData.Parts.Length; index++) { - ImGui.Text($"Index: {index}"); + ImGui.TextUnformatted($"Index: {index}"); var partsDataPart = partsData.Parts[index]; ImGui.SameLine(); @@ -488,14 +496,14 @@ internal class UldWidget : IDataWindowWidget if (path is null) { - ImGui.Text($"Could not find texture for id {partsDataPart.TextureId}"); + ImGui.TextUnformatted($"Could not find texture for id {partsDataPart.TextureId}"); continue; } var texturePath = GetStringNullTerminated(path); if (string.IsNullOrWhiteSpace(texturePath)) { - ImGui.Text("Texture path is empty."u8); + ImGui.TextUnformatted("Texture path is empty."); continue; } @@ -512,7 +520,7 @@ internal class UldWidget : IDataWindowWidget // neither the supposedly original path nor themed path had a file we could load. if (e is not null && e2 is not null) { - ImGui.Text($"{texturePathThemed}: {e}\n{texturePath}: {e2}"); + ImGui.TextUnformatted($"{texturePathThemed}: {e}\n{texturePath}: {e2}"); continue; } } @@ -527,7 +535,7 @@ internal class UldWidget : IDataWindowWidget { var uv0 = new Vector2(partsDataPart.U, partsDataPart.V); var uv1 = uv0 + partSize; - ImGui.Image(wrap.Handle, partSize * ImGuiHelpers.GlobalScale, uv0 / wrap.Size, uv1 / wrap.Size); + ImGui.Image(wrap.ImGuiHandle, partSize * ImGuiHelpers.GlobalScale, uv0 / wrap.Size, uv1 / wrap.Size); } if (ImGui.IsItemClicked()) @@ -535,9 +543,10 @@ internal class UldWidget : IDataWindowWidget if (ImGui.IsItemHovered()) { - using var tooltip = ImRaii.Tooltip(); - ImGui.Text("Click to copy:"u8); - ImGui.Text(texturePath); + ImGui.BeginTooltip(); + ImGui.TextUnformatted("Click to copy:"); + ImGui.TextUnformatted(texturePath); + ImGui.EndTooltip(); } } } diff --git a/Dalamud/Interface/Internal/Windows/Data/Widgets/VfsWidget.cs b/Dalamud/Interface/Internal/Windows/Data/Widgets/VfsWidget.cs deleted file mode 100644 index d01bd7d78..000000000 --- a/Dalamud/Interface/Internal/Windows/Data/Widgets/VfsWidget.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System.Diagnostics; -using System.IO; - -using Dalamud.Bindings.ImGui; -using Dalamud.Configuration.Internal; -using Dalamud.Storage; - -using Serilog; - -namespace Dalamud.Interface.Internal.Windows.Data.Widgets; - -/// <summary> -/// Widget for displaying configuration info. -/// </summary> -internal class VfsWidget : IDataWindowWidget -{ - private int numBytes = 1024; - private int reps = 1; - - /// <inheritdoc/> - public string[]? CommandShortcuts { get; init; } = ["vfs"]; - - /// <inheritdoc/> - public string DisplayName { get; init; } = "VFS Performance"; - - /// <inheritdoc/> - public bool Ready { get; set; } - - /// <inheritdoc/> - public void Load() - { - this.Ready = true; - } - - /// <inheritdoc/> - public void Draw() - { - var service = Service<ReliableFileStorage>.Get(); - var dalamud = Service<Dalamud>.Get(); - - ImGui.InputInt("Num bytes"u8, ref this.numBytes); - ImGui.InputInt("Reps"u8, ref this.reps); - - var path = Path.Combine(dalamud.StartInfo.WorkingDirectory!, "test.bin"); - - if (ImGui.Button("Write"u8)) - { - Log.Information("=== WRITING ==="); - var data = new byte[this.numBytes]; - var stopwatch = new Stopwatch(); - var acc = 0L; - - for (var i = 0; i < this.reps; i++) - { - stopwatch.Restart(); - service.WriteAllBytesAsync(path, data).GetAwaiter().GetResult(); - stopwatch.Stop(); - acc += stopwatch.ElapsedMilliseconds; - Log.Information("Turn {Turn} took {Ms}ms", i, stopwatch.ElapsedMilliseconds); - } - - Log.Information("Took {Ms}ms in total", acc); - } - - if (ImGui.Button("Read"u8)) - { - Log.Information("=== READING ==="); - var stopwatch = new Stopwatch(); - var acc = 0L; - - for (var i = 0; i < this.reps; i++) - { - stopwatch.Restart(); - service.ReadAllBytesAsync(path).GetAwaiter().GetResult(); - stopwatch.Stop(); - acc += stopwatch.ElapsedMilliseconds; - Log.Information("Turn {Turn} took {Ms}ms", i, stopwatch.ElapsedMilliseconds); - } - - Log.Information("Took {Ms}ms in total", acc); - } - - if (ImGui.Button("Test Config"u8)) - { - var config = Service<DalamudConfiguration>.Get(); - - Log.Information("=== READING ==="); - var stopwatch = new Stopwatch(); - var acc = 0L; - - for (var i = 0; i < this.reps; i++) - { - stopwatch.Restart(); - config.ForceSave(); - stopwatch.Stop(); - acc += stopwatch.ElapsedMilliseconds; - Log.Information("Turn {Turn} took {Ms}ms", i, stopwatch.ElapsedMilliseconds); - } - - Log.Information("Took {Ms}ms in total", acc); - } - } -} diff --git a/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs b/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs index edad04951..ff5af1556 100644 --- a/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs +++ b/Dalamud/Interface/Internal/Windows/GamepadModeNotifierWindow.cs @@ -1,10 +1,9 @@ using System.Numerics; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; diff --git a/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs b/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs index fdb4faa13..1f633934f 100644 --- a/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs +++ b/Dalamud/Interface/Internal/Windows/HitchSettingsWindow.cs @@ -1,7 +1,8 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Windowing; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows; /// <summary> @@ -21,35 +22,35 @@ public class HitchSettingsWindow : Window this.ShowCloseButton = true; this.RespectCloseHotkey = true; } - + /// <inheritdoc/> public override void Draw() { var config = Service<DalamudConfiguration>.Get(); var uiBuilderHitch = (float)config.UiBuilderHitch; - if (ImGui.SliderFloat("UiBuilderHitch"u8, ref uiBuilderHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("UiBuilderHitch", ref uiBuilderHitch, MinHitch, MaxHitch)) { config.UiBuilderHitch = uiBuilderHitch; config.QueueSave(); } var frameworkUpdateHitch = (float)config.FrameworkUpdateHitch; - if (ImGui.SliderFloat("FrameworkUpdateHitch"u8, ref frameworkUpdateHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("FrameworkUpdateHitch", ref frameworkUpdateHitch, MinHitch, MaxHitch)) { config.FrameworkUpdateHitch = frameworkUpdateHitch; config.QueueSave(); } - + var gameNetworkUpHitch = (float)config.GameNetworkUpHitch; - if (ImGui.SliderFloat("GameNetworkUpHitch"u8, ref gameNetworkUpHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("GameNetworkUpHitch", ref gameNetworkUpHitch, MinHitch, MaxHitch)) { config.GameNetworkUpHitch = gameNetworkUpHitch; config.QueueSave(); } - + var gameNetworkDownHitch = (float)config.GameNetworkDownHitch; - if (ImGui.SliderFloat("GameNetworkDownHitch"u8, ref gameNetworkDownHitch, MinHitch, MaxHitch)) + if (ImGui.SliderFloat("GameNetworkDownHitch", ref gameNetworkDownHitch, MinHitch, MaxHitch)) { config.GameNetworkDownHitch = gameNetworkDownHitch; config.QueueSave(); diff --git a/Dalamud/Interface/Internal/Windows/PluginImageCache.cs b/Dalamud/Interface/Internal/Windows/PluginImageCache.cs index fb77cf1cf..e95d2e1b8 100644 --- a/Dalamud/Interface/Internal/Windows/PluginImageCache.cs +++ b/Dalamud/Interface/Internal/Windows/PluginImageCache.cs @@ -6,6 +6,7 @@ using System.Net; using System.Threading; using System.Threading.Tasks; +using Dalamud.Game; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Networking.Http; @@ -14,7 +15,6 @@ using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Internal.Types.Manifest; using Dalamud.Storage.Assets; using Dalamud.Utility; - using Serilog; namespace Dalamud.Interface.Internal.Windows; @@ -51,8 +51,8 @@ internal class PluginImageCache : IInternalDisposableService [ServiceManager.ServiceDependency] private readonly HappyHttpClient happyHttpClient = Service<HappyHttpClient>.Get(); - private readonly BlockingCollection<Tuple<ulong, Func<Task>>> downloadQueue = []; - private readonly BlockingCollection<Func<Task>> loadQueue = []; + private readonly BlockingCollection<Tuple<ulong, Func<Task>>> downloadQueue = new(); + private readonly BlockingCollection<Func<Task>> loadQueue = new(); private readonly CancellationTokenSource cancelToken = new(); private readonly Task downloadTask; private readonly Task loadTask; @@ -144,7 +144,7 @@ internal class PluginImageCache : IInternalDisposableService this.downloadQueue.CompleteAdding(); this.loadQueue.CompleteAdding(); - if (!Task.WaitAll([this.loadTask, this.downloadTask], 4000)) + if (!Task.WaitAll(new[] { this.loadTask, this.downloadTask }, 4000)) { Log.Error("Plugin Image download/load thread has not cancelled in time"); } @@ -357,7 +357,7 @@ internal class PluginImageCache : IInternalDisposableService try { token.ThrowIfCancellationRequested(); - if (pendingFuncs.Count == 0) + if (!pendingFuncs.Any()) { if (!this.downloadQueue.TryTake(out var taskTuple, -1, token)) return; @@ -373,7 +373,7 @@ internal class PluginImageCache : IInternalDisposableService pendingFuncs = pendingFuncs.OrderBy(x => x.Item1).ToList(); var item1 = pendingFuncs.Last().Item1; - while (pendingFuncs.Count != 0 && pendingFuncs.Last().Item1 == item1) + while (pendingFuncs.Any() && pendingFuncs.Last().Item1 == item1) { token.ThrowIfCancellationRequested(); while (runningTasks.Count >= concurrency) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/DalamudChangelogManager.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/DalamudChangelogManager.cs index bbc92efb5..f6171e192 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/DalamudChangelogManager.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/DalamudChangelogManager.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Net.Http.Json; using System.Threading.Tasks; @@ -6,7 +6,6 @@ using System.Threading.Tasks; using Dalamud.Networking.Http; using Dalamud.Plugin.Internal; using Dalamud.Utility; - using Serilog; namespace Dalamud.Interface.Internal.Windows.PluginInstaller; diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginChangelogEntry.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginChangelogEntry.cs index 3f964b4b8..879034fd4 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginChangelogEntry.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginChangelogEntry.cs @@ -1,7 +1,5 @@ -using CheapLoc; - +using CheapLoc; using Dalamud.Plugin.Internal.Types; - using Serilog; namespace Dalamud.Interface.Internal.Windows.PluginInstaller; diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs index d132f0d8d..61f4bd1fc 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs @@ -11,7 +11,6 @@ using System.Threading.Tasks; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game.Command; @@ -35,6 +34,8 @@ using Dalamud.Plugin.Internal.Types.Manifest; using Dalamud.Support; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.PluginInstaller; /// <summary> @@ -42,7 +43,7 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller; /// </summary> internal class PluginInstallerWindow : Window, IDisposable { - private static readonly ModuleLog Log = ModuleLog.Create<PluginInstallerWindow>(); + private static readonly ModuleLog Log = new("PLUGINW"); private readonly Vector4 changelogBgColor = new(0.114f, 0.584f, 0.192f, 0.678f); private readonly Vector4 changelogTextColor = new(0.812f, 1.000f, 0.816f, 1.000f); @@ -50,7 +51,7 @@ internal class PluginInstallerWindow : Window, IDisposable private readonly PluginImageCache imageCache; private readonly PluginCategoryManager categoryManager = new(); - private readonly List<int> openPluginCollapsibles = []; + private readonly List<int> openPluginCollapsibles = new(); private readonly DateTime timeLoaded; @@ -114,12 +115,12 @@ internal class PluginInstallerWindow : Window, IDisposable private List<PluginUpdateStatus>? updatedPlugins; [SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1201:Elements should appear in the correct order", Justification = "Makes sense like this")] - private List<RemotePluginManifest> pluginListAvailable = []; - private List<LocalPlugin> pluginListInstalled = []; - private List<AvailablePluginUpdate> pluginListUpdatable = []; + private List<RemotePluginManifest> pluginListAvailable = new(); + private List<LocalPlugin> pluginListInstalled = new(); + private List<AvailablePluginUpdate> pluginListUpdatable = new(); private bool hasDevPlugins = false; private bool hasHiddenPlugins = false; - + private string searchText = string.Empty; private bool isSearchTextPrefilled = false; @@ -136,7 +137,7 @@ internal class PluginInstallerWindow : Window, IDisposable private LoadingIndicatorKind loadingIndicatorKind = LoadingIndicatorKind.Unknown; private string verifiedCheckmarkHoveredPlugin = string.Empty; - + private string? staleDalamudNewVersion = null; /// <summary> @@ -214,20 +215,18 @@ internal class PluginInstallerWindow : Window, IDisposable ProfileOrNot, SearchScore, } - - [Flags] + + [Flags] private enum PluginHeaderFlags { None = 0, IsThirdParty = 1 << 0, HasTrouble = 1 << 1, UpdateAvailable = 1 << 2, - MainRepoCrossUpdate = 1 << 3, - IsNew = 1 << 4, - IsInstallableOutdated = 1 << 5, - IsOrphan = 1 << 6, - IsTesting = 1 << 7, - IsIncompatible = 1 << 8, + IsNew = 1 << 3, + IsInstallableOutdated = 1 << 4, + IsOrphan = 1 << 5, + IsTesting = 1 << 6, } private enum InstalledPluginListFilter @@ -237,7 +236,7 @@ internal class PluginInstallerWindow : Window, IDisposable Updateable, Dev, } - + private bool AnyOperationInProgress => this.installStatus == OperationStatus.InProgress || this.updateStatus == OperationStatus.InProgress || this.enableDisableStatus == OperationStatus.InProgress; @@ -283,15 +282,10 @@ internal class PluginInstallerWindow : Window, IDisposable var pluginManager = Service<PluginManager>.Get(); _ = pluginManager.ReloadPluginMastersAsync(); - _ = pluginManager.ScanDevPluginsAsync(); - - if (!this.isSearchTextPrefilled) - { - this.searchText = string.Empty; - this.sortKind = PluginSortKind.Alphabetical; - this.filterText = Locs.SortBy_Alphabetical; - } + if (!this.isSearchTextPrefilled) this.searchText = string.Empty; + this.sortKind = PluginSortKind.Alphabetical; + this.filterText = Locs.SortBy_Alphabetical; this.adaptiveSort = true; if (this.updateStatus == OperationStatus.Complete || this.updateStatus == OperationStatus.Idle) @@ -303,18 +297,19 @@ internal class PluginInstallerWindow : Window, IDisposable this.profileManagerWidget.Reset(); - if (this.staleDalamudNewVersion == null && !Versioning.GetActiveTrack().IsNullOrEmpty()) + var config = Service<DalamudConfiguration>.Get(); + if (this.staleDalamudNewVersion == null && !config.DalamudBetaKind.IsNullOrEmpty()) { Service<DalamudReleases>.Get().GetVersionForCurrentTrack().ContinueWith(t => { if (!t.IsCompletedSuccessfully) return; - + var versionInfo = t.Result; - if (versionInfo.AssemblyVersion != Versioning.GetScmVersion()) - { + if (versionInfo.AssemblyVersion != Util.GetScmVersion() && + versionInfo.Track != "release" && + string.Equals(versionInfo.Key, config.DalamudBetaKey, StringComparison.OrdinalIgnoreCase)) this.staleDalamudNewVersion = versionInfo.AssemblyVersion; - } }); } } @@ -366,20 +361,11 @@ internal class PluginInstallerWindow : Window, IDisposable { this.isSearchTextPrefilled = false; this.searchText = string.Empty; - if (this.sortKind == PluginSortKind.SearchScore) - { - this.sortKind = PluginSortKind.Alphabetical; - this.filterText = Locs.SortBy_Alphabetical; - this.ResortPlugins(); - } } else { this.isSearchTextPrefilled = true; this.searchText = text; - this.sortKind = PluginSortKind.SearchScore; - this.filterText = Locs.SortBy_SearchScore; - this.ResortPlugins(); } } @@ -427,7 +413,7 @@ internal class PluginInstallerWindow : Window, IDisposable { if (!task.IsFaulted && !task.IsCanceled) return true; - + var newErrorMessage = state as string; if (task.Exception != null) @@ -452,7 +438,7 @@ internal class PluginInstallerWindow : Window, IDisposable } } } - + if (task.IsCanceled) Log.Error("A task was cancelled"); @@ -460,48 +446,18 @@ internal class PluginInstallerWindow : Window, IDisposable return false; } - + private static void EnsureHaveTestingOptIn(IPluginManifest manifest) { var configuration = Service<DalamudConfiguration>.Get(); - + if (configuration.PluginTestingOptIns.Any(x => x.InternalName == manifest.InternalName)) return; - + configuration.PluginTestingOptIns.Add(new PluginTestingOptIn(manifest.InternalName)); configuration.QueueSave(); } - private static void DrawProgressBar<T>(IEnumerable<T> items, Func<T, bool> pendingFunc, Func<T, bool> totalFunc, Action<T> renderPending) - { - var windowSize = ImGui.GetWindowSize(); - - var numLoaded = 0; - var total = 0; - - var itemsArray = items as T[] ?? items.ToArray(); - var allPending = itemsArray.Where(pendingFunc) - .ToArray(); - var allLoadedOrLoading = itemsArray.Count(totalFunc); - - // Cap number of items we show to avoid clutter - const int maxShown = 3; - foreach (var repo in allPending.Take(maxShown)) - { - renderPending(repo); - } - - ImGuiHelpers.ScaledDummy(10); - - numLoaded += allLoadedOrLoading - allPending.Length; - total += allLoadedOrLoading; - if (numLoaded != total) - { - ImGui.SetCursorPosX(windowSize.X / 3); - ImGui.ProgressBar(numLoaded / (float)total, new Vector2(windowSize.X / 3, 50), $"{numLoaded}/{total}"); - } - } - private void SetOpenPage(PluginInstallerOpenKind kind) { switch (kind) @@ -530,17 +486,11 @@ internal class PluginInstallerWindow : Window, IDisposable // Plugins category this.categoryManager.CurrentCategoryKind = PluginCategoryManager.CategoryKind.All; break; - case PluginInstallerOpenKind.DalamudChangelogs: - // Changelog group - this.categoryManager.CurrentGroupKind = PluginCategoryManager.GroupKind.Changelog; - // Dalamud category - this.categoryManager.CurrentCategoryKind = PluginCategoryManager.CategoryKind.DalamudChangelogs; - break; default: throw new ArgumentOutOfRangeException(nameof(kind), kind, null); } } - + private void DrawProgressOverlay() { var pluginManager = Service<PluginManager>.Get(); @@ -566,14 +516,14 @@ internal class PluginInstallerWindow : Window, IDisposable var windowSize = ImGui.GetWindowSize(); var titleHeight = ImGui.GetFontSize() + (ImGui.GetStyle().FramePadding.Y * 2); - using var loadingChild = ImRaii.Child("###installerLoadingFrame"u8, new Vector2(-1, -1), false); + using var loadingChild = ImRaii.Child("###installerLoadingFrame", new Vector2(-1, -1), false); if (loadingChild) { ImGui.GetWindowDrawList().PushClipRectFullScreen(); ImGui.GetWindowDrawList().AddRectFilled( ImGui.GetWindowPos() + new Vector2(0, titleHeight), ImGui.GetWindowPos() + windowSize, - ImGui.ColorConvertFloat4ToU32(new(0f, 0f, 0f, 0.8f * ImGui.GetStyle().Alpha)), + 0xCC000000, ImGui.GetStyle().WindowRounding, ImDrawFlags.RoundCornersBottom); ImGui.PopClipRect(); @@ -605,29 +555,40 @@ internal class PluginInstallerWindow : Window, IDisposable if (pluginManager.PluginsReady && !pluginManager.ReposReady) { ImGuiHelpers.CenteredText("Loading repositories..."); - ImGuiHelpers.ScaledDummy(10); - - DrawProgressBar(pluginManager.Repos, x => x.State != PluginRepositoryState.Success && - x.State != PluginRepositoryState.Fail && - x.IsEnabled, - x => x.IsEnabled, - x => ImGuiHelpers.CenteredText($"Loading {x.PluginMasterUrl}")); } else if (!pluginManager.PluginsReady && pluginManager.ReposReady) { ImGuiHelpers.CenteredText("Loading installed plugins..."); - ImGuiHelpers.ScaledDummy(10); - - DrawProgressBar(pluginManager.InstalledPlugins, x => x.State == PluginState.Loading, - x => x.State is PluginState.Loaded or - PluginState.LoadError or - PluginState.Loading, - x => ImGuiHelpers.CenteredText($"Loading {x.Name}")); } else { ImGuiHelpers.CenteredText("Loading repositories and plugins..."); } + + var currentProgress = 0; + var total = 0; + + var pendingRepos = pluginManager.Repos.ToArray() + .Where(x => (x.State != PluginRepositoryState.Success && + x.State != PluginRepositoryState.Fail) && + x.IsEnabled) + .ToArray(); + var allRepoCount = + pluginManager.Repos.Count(x => x.State != PluginRepositoryState.Fail && x.IsEnabled); + + foreach (var repo in pendingRepos) + { + ImGuiHelpers.CenteredText($"{repo.PluginMasterUrl}: {repo.State}"); + } + + currentProgress += allRepoCount - pendingRepos.Length; + total += allRepoCount; + + if (currentProgress != total) + { + ImGui.SetCursorPosX(windowSize.X / 3); + ImGui.ProgressBar(currentProgress / (float)total, new Vector2(windowSize.X / 3, 50)); + } } break; @@ -638,27 +599,11 @@ internal class PluginInstallerWindow : Window, IDisposable throw new ArgumentOutOfRangeException(); } - if (DateTime.Now - this.timeLoaded > TimeSpan.FromSeconds(30) && !pluginManager.PluginsReady) + if (DateTime.Now - this.timeLoaded > TimeSpan.FromSeconds(90) && !pluginManager.PluginsReady) { - ImGuiHelpers.ScaledDummy(10); ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudRed); ImGuiHelpers.CenteredText("One of your plugins may be blocking the installer."); - ImGuiHelpers.CenteredText("You can try restarting in safe mode, and deleting the plugin."); ImGui.PopStyleColor(); - - ImGuiHelpers.BeginHorizontalButtonGroup() - .Add( - "Restart in Safe Mode", - () => - { - var config = Service<DalamudConfiguration>.Get(); - config.PluginSafeMode = true; - config.ForceSave(); - Dalamud.RestartGame(); - }) - .SetCentered(true) - .WithHeight(30) - .Draw(); } } } @@ -713,7 +658,7 @@ internal class PluginInstallerWindow : Window, IDisposable var prevSearchText = this.searchText; ImGui.SetNextItemWidth(searchInputWidth); searchTextChanged |= ImGui.InputTextWithHint( - "###XlPluginInstaller_Search"u8, + "###XlPluginInstaller_Search", Locs.Header_SearchPlaceholder, ref this.searchText, 100, @@ -788,7 +733,7 @@ internal class PluginInstallerWindow : Window, IDisposable } } } - + private void DrawFooter() { var configuration = Service<DalamudConfiguration>.Get(); @@ -809,14 +754,13 @@ internal class PluginInstallerWindow : Window, IDisposable Service<DalamudInterface>.Get().OpenSettings(); } - // If any dev plugin locations exist, allow a shortcut for the /xldev menu item - var hasDevPluginLocations = configuration.DevPluginLoadLocations.Count > 0; - if (hasDevPluginLocations) + // If any dev plugins are installed, allow a shortcut for the /xldev menu item + if (this.hasDevPlugins) { ImGui.SameLine(); if (ImGui.Button(Locs.FooterButton_ScanDevPlugins)) { - _ = pluginManager.ScanDevPluginsAsync(); + pluginManager.ScanDevPlugins(); } } @@ -858,7 +802,7 @@ internal class PluginInstallerWindow : Window, IDisposable { this.updateStatus = OperationStatus.InProgress; this.loadingIndicatorKind = LoadingIndicatorKind.UpdatingAll; - + var toUpdate = this.pluginListUpdatable .Where(x => x.InstalledPlugin.IsWantedByAnyProfile) .ToList(); @@ -1050,7 +994,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Text(Locs.DeletePluginConfigWarningModal_ExplainTesting()); ImGui.PopStyleColor(); } - + ImGui.Text(Locs.DeletePluginConfigWarningModal_Body(this.deletePluginConfigWarningModalPluginName)); ImGui.Spacing(); @@ -1092,11 +1036,11 @@ internal class PluginInstallerWindow : Window, IDisposable if (ImGui.BeginPopupModal(modalTitle, ref this.feedbackModalDrawing, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoScrollbar)) { - ImGui.Text(Locs.FeedbackModal_Text(this.feedbackPlugin.Name)); + ImGui.TextUnformatted(Locs.FeedbackModal_Text(this.feedbackPlugin.Name)); if (this.feedbackPlugin?.FeedbackMessage != null) { - ImGui.TextWrapped(this.feedbackPlugin.FeedbackMessage); + ImGuiHelpers.SafeTextWrapped(this.feedbackPlugin.FeedbackMessage); } if (this.pluginListUpdatable.Any( @@ -1107,7 +1051,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Spacing(); - ImGui.InputTextMultiline("###FeedbackContent"u8, ref this.feedbackModalBody, 1000, new Vector2(400, 200)); + ImGui.InputTextMultiline("###FeedbackContent", ref this.feedbackModalBody, 1000, new Vector2(400, 200)); ImGui.Spacing(); @@ -1269,7 +1213,7 @@ internal class PluginInstallerWindow : Window, IDisposable var sortedChangelogs = changelogs?.Where(x => this.searchText.IsNullOrWhitespace() || new FuzzyMatcher(this.searchText.ToLowerInvariant(), MatchMode.FuzzyParts).Matches(x.Title.ToLowerInvariant()) > 0) .OrderByDescending(x => x.Date).ToList(); - if (sortedChangelogs == null || sortedChangelogs.Count == 0) + if (sortedChangelogs == null || !sortedChangelogs.Any()) { ImGui.TextColored( ImGuiColors.DalamudGrey2, @@ -1308,6 +1252,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (filteredAvailableManifests.Count == 0) { + ImGui.TextColored(ImGuiColors.DalamudGrey2, Locs.TabBody_SearchNoMatching); return proxies; } @@ -1319,7 +1264,7 @@ internal class PluginInstallerWindow : Window, IDisposable plugin.Manifest.RepoUrl == availableManifest.RepoUrl && !plugin.IsDev); - // We "consumed" this plugin from the pile and remove it. + // We "consumed" this plugin from the pile and remove it. if (plugin != null) { installedPlugins.Remove(plugin); @@ -1351,7 +1296,7 @@ internal class PluginInstallerWindow : Window, IDisposable return isHidden; return !isHidden; } - + // Filter out plugins that are not hidden proxies = proxies.Where(IsProxyHidden).ToList(); @@ -1359,23 +1304,6 @@ internal class PluginInstallerWindow : Window, IDisposable } #pragma warning restore SA1201 -#pragma warning disable SA1204 - private static void DrawMutedBodyText(string text, float paddingBefore, float paddingAfter) -#pragma warning restore SA1204 - { - ImGuiHelpers.ScaledDummy(paddingBefore); - - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) - { - foreach (var line in text.Split('\n')) - { - ImGuiHelpers.CenteredText(line); - } - } - - ImGuiHelpers.ScaledDummy(paddingAfter); - } - private void DrawAvailablePluginList() { var i = 0; @@ -1400,32 +1328,14 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PopID(); } - + // Reset the category to "All" if we're on the "Hidden" category and there are no hidden plugins (we removed the last one) if (i == 0 && this.categoryManager.CurrentCategoryKind == PluginCategoryManager.CategoryKind.Hidden) { this.categoryManager.CurrentCategoryKind = PluginCategoryManager.CategoryKind.All; } - - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) - { - var hasSearch = !this.searchText.IsNullOrEmpty(); - - if (i == 0 && !hasSearch) - { - DrawMutedBodyText(Locs.TabBody_NoPluginsAvailable, 60, 20); - } - else if (i == 0 && hasSearch) - { - DrawMutedBodyText(Locs.TabBody_SearchNoMatching, 60, 20); - } - else if (hasSearch) - { - DrawMutedBodyText(Locs.TabBody_NoMoreResultsFor(this.searchText), 20, 20); - } - } } - + private void DrawInstalledPluginList(InstalledPluginListFilter filter) { var pluginList = this.pluginListInstalled; @@ -1433,7 +1343,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (pluginList.Count == 0) { - DrawMutedBodyText(Locs.TabBody_SearchNoInstalled, 60, 20); + ImGui.TextColored(ImGuiColors.DalamudGrey, Locs.TabBody_SearchNoInstalled); return; } @@ -1443,7 +1353,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (filteredList.Count == 0) { - DrawMutedBodyText(Locs.TabBody_SearchNoMatching, 60, 20); + ImGui.TextColored(ImGuiColors.DalamudGrey2, Locs.TabBody_SearchNoMatching); return; } @@ -1453,7 +1363,7 @@ internal class PluginInstallerWindow : Window, IDisposable { if (filter == InstalledPluginListFilter.Testing && !manager.HasTestingOptIn(plugin.Manifest)) continue; - + // Find applicable update and manifest, if we have them AvailablePluginUpdate? update = null; RemotePluginManifest? remoteManifest = null; @@ -1473,11 +1383,11 @@ internal class PluginInstallerWindow : Window, IDisposable { continue; } - + this.DrawInstalledPlugin(plugin, i++, remoteManifest, update); drewAny = true; } - + if (!drewAny) { var text = filter switch @@ -1488,7 +1398,7 @@ internal class PluginInstallerWindow : Window, IDisposable InstalledPluginListFilter.Dev => Locs.TabBody_NoPluginsDev, _ => throw new ArgumentException(null, nameof(filter)), }; - + ImGuiHelpers.ScaledDummy(60); using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) @@ -1499,11 +1409,6 @@ internal class PluginInstallerWindow : Window, IDisposable } } } - else if (!this.searchText.IsNullOrEmpty()) - { - DrawMutedBodyText(Locs.TabBody_NoMoreResultsFor(this.searchText), 20, 20); - ImGuiHelpers.ScaledDummy(20); - } } private void DrawPluginCategories() @@ -1513,14 +1418,14 @@ internal class PluginInstallerWindow : Window, IDisposable var useContentWidth = ImGui.GetContentRegionAvail().X; - using var installerMainChild = ImRaii.Child("InstallerCategories"u8, new Vector2(useContentWidth, useContentHeight * ImGuiHelpers.GlobalScale)); + using var installerMainChild = ImRaii.Child("InstallerCategories", new Vector2(useContentWidth, useContentHeight * ImGuiHelpers.GlobalScale)); if (installerMainChild) { using var style = ImRaii.PushStyle(ImGuiStyleVar.CellPadding, ImGuiHelpers.ScaledVector2(5, 0)); try { - using (var categoriesChild = ImRaii.Child("InstallerCategoriesSelector"u8, new Vector2(useMenuWidth * ImGuiHelpers.GlobalScale, -1), false)) + using (var categoriesChild = ImRaii.Child("InstallerCategoriesSelector", new Vector2(useMenuWidth * ImGuiHelpers.GlobalScale, -1), false)) { if (categoriesChild) { @@ -1531,7 +1436,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SameLine(); using var scrollingChild = - ImRaii.Child("ScrollingPlugins"u8, new Vector2(-1, -1), false, ImGuiWindowFlags.NoBackground); + ImRaii.Child("ScrollingPlugins", new Vector2(-1, -1), false, ImGuiWindowFlags.NoBackground); if (scrollingChild) { try @@ -1578,9 +1483,6 @@ internal class PluginInstallerWindow : Window, IDisposable if (!isCurrent) { this.categoryManager.CurrentGroupKind = groupInfo.GroupKind; - - // Reset search text when switching groups - this.searchText = string.Empty; } ImGui.Indent(); @@ -1588,7 +1490,7 @@ internal class PluginInstallerWindow : Window, IDisposable foreach (var categoryKind in groupInfo.Categories) { var categoryInfo = this.categoryManager.CategoryList.First(x => x.CategoryKind == categoryKind); - + switch (categoryInfo.Condition) { case PluginCategoryManager.CategoryInfo.AppearCondition.None: @@ -1647,7 +1549,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PopFont(); ImGui.PopStyleColor(); } - + void DrawLinesCentered(string text) { var lines = text.Split('\n'); @@ -1656,7 +1558,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGuiHelpers.CenteredText(line); } } - + var pm = Service<PluginManager>.Get(); if (pm.SafeMode) { @@ -1671,7 +1573,7 @@ internal class PluginInstallerWindow : Window, IDisposable DrawWarningIcon(); DrawLinesCentered("A new version of Dalamud is available.\n" + "Please restart the game to ensure compatibility with updated plugins.\n" + - $"old: {Versioning.GetScmVersion()} new: {this.staleDalamudNewVersion}"); + $"old: {Util.GetScmVersion()} new: {this.staleDalamudNewVersion}"); ImGuiHelpers.ScaledDummy(10); } @@ -1706,7 +1608,7 @@ internal class PluginInstallerWindow : Window, IDisposable break; default: - ImGui.Text("You found a mysterious category. Please keep it to yourself."u8); + ImGui.TextUnformatted("You found a mysterious category. Please keep it to yourself."); break; } @@ -1721,7 +1623,7 @@ internal class PluginInstallerWindow : Window, IDisposable case PluginCategoryManager.CategoryKind.IsTesting: this.DrawInstalledPluginList(InstalledPluginListFilter.Testing); break; - + case PluginCategoryManager.CategoryKind.UpdateablePlugins: this.DrawInstalledPluginList(InstalledPluginListFilter.Updateable); break; @@ -1729,9 +1631,9 @@ internal class PluginInstallerWindow : Window, IDisposable case PluginCategoryManager.CategoryKind.PluginProfiles: this.profileManagerWidget.Draw(); break; - + default: - ImGui.Text("You found a secret category. Please feel a sense of pride and accomplishment."u8); + ImGui.TextUnformatted("You found a secret category. Please feel a sense of pride and accomplishment."); break; } @@ -1750,9 +1652,9 @@ internal class PluginInstallerWindow : Window, IDisposable case PluginCategoryManager.CategoryKind.PluginChangelogs: this.DrawChangelogList(false, true); break; - + default: - ImGui.Text("You found a quiet category. Please don't wake it up."u8); + ImGui.TextUnformatted("You found a quiet category. Please don't wake it up."); break; } @@ -1792,19 +1694,19 @@ internal class PluginInstallerWindow : Window, IDisposable var iconSize = ImGuiHelpers.ScaledVector2(64, 64); var cursorBeforeImage = ImGui.GetCursorPos(); - ImGui.Image(iconTex.Handle, iconSize); + ImGui.Image(iconTex.ImGuiHandle, iconSize); ImGui.SameLine(); if (this.testerError) { ImGui.SetCursorPos(cursorBeforeImage); - ImGui.Image(this.imageCache.TroubleIcon.Handle, iconSize); + ImGui.Image(this.imageCache.TroubleIcon.ImGuiHandle, iconSize); ImGui.SameLine(); } else if (this.testerUpdateAvailable) { ImGui.SetCursorPos(cursorBeforeImage); - ImGui.Image(this.imageCache.UpdateIcon.Handle, iconSize); + ImGui.Image(this.imageCache.UpdateIcon.ImGuiHandle, iconSize); ImGui.SameLine(); } @@ -1813,7 +1715,7 @@ internal class PluginInstallerWindow : Window, IDisposable var cursor = ImGui.GetCursorPos(); // Name - ImGui.Text("My Cool Plugin"u8); + ImGui.Text("My Cool Plugin"); // Download count var downloadCountText = Locs.PluginBody_AuthorWithDownloadCount("Plugin Enjoyer", 69420); @@ -1825,7 +1727,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SetCursorPos(cursor); // Description - ImGui.TextWrapped("This plugin does very many great things."u8); + ImGui.TextWrapped("This plugin does very many great things."); startCursor.Y += sectionSize; ImGui.SetCursorPos(startCursor); @@ -1835,7 +1737,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Indent(); // Description - ImGui.TextWrapped("This is a description.\nIt has multiple lines.\nTruly descriptive."u8); + ImGui.TextWrapped("This is a description.\nIt has multiple lines.\nTruly descriptive."); ImGuiHelpers.ScaledDummy(5); @@ -1869,7 +1771,7 @@ internal class PluginInstallerWindow : Window, IDisposable var width = ImGui.GetWindowWidth(); if (ImGui.BeginChild( - "pluginTestingImageScrolling"u8, + "pluginTestingImageScrolling", new Vector2(width - (70 * ImGuiHelpers.GlobalScale), (PluginImageCache.PluginImageHeight / thumbFactor) + scrollBarSize), false, ImGuiWindowFlags.HorizontalScrollbar | @@ -1887,13 +1789,13 @@ internal class PluginInstallerWindow : Window, IDisposable if (!imageTask.IsCompleted) { - ImGui.Text("Loading..."u8); + ImGui.TextUnformatted("Loading..."); continue; } if (imageTask.Exception is not null) { - ImGui.Text(imageTask.Exception.ToString()); + ImGui.TextUnformatted(imageTask.Exception.ToString()); continue; } @@ -1905,7 +1807,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (ImGui.BeginPopup(popupId)) { - if (ImGui.ImageButton(image.Handle, new Vector2(image.Width, image.Height))) + if (ImGui.ImageButton(image.ImGuiHandle, new Vector2(image.Width, image.Height))) ImGui.CloseCurrentPopup(); ImGui.EndPopup(); @@ -1929,7 +1831,7 @@ internal class PluginInstallerWindow : Window, IDisposable } var size = ImGuiHelpers.ScaledVector2(xAct / thumbFactor, yAct / thumbFactor); - if (ImGui.ImageButton(image.Handle, size)) + if (ImGui.ImageButton(image.ImGuiHandle, size)) ImGui.OpenPopup(popupId); ImGui.PopStyleVar(); @@ -1961,7 +1863,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (!imageTask.IsCompleted) { - ImGui.Text("Loading..."u8); + ImGui.Text("Loading..."); return; } @@ -1969,45 +1871,45 @@ internal class PluginInstallerWindow : Window, IDisposable if (imageTask.Exception is { } exc) { - ImGui.Text(exc.ToString()); + ImGui.TextUnformatted(exc.ToString()); } else { var image = imageTask.Result; if (image.Width > maxWidth || image.Height > maxHeight) { - ImGui.Text( + ImGui.TextUnformatted( $"Image is larger than the maximum allowed resolution ({image.Width}x{image.Height} > {maxWidth}x{maxHeight})"); } if (requireSquare && image.Width != image.Height) - ImGui.Text($"Image must be square! Current size: {image.Width}x{image.Height}"); + ImGui.TextUnformatted($"Image must be square! Current size: {image.Width}x{image.Height}"); } ImGui.PopStyleColor(); } - ImGui.InputText("Icon Path"u8, ref this.testerIconPath, 1000); + ImGui.InputText("Icon Path", ref this.testerIconPath, 1000); if (this.testerIcon != null) CheckImageSize(this.testerIcon, PluginImageCache.PluginIconWidth, PluginImageCache.PluginIconHeight, true); - ImGui.InputText("Image 1 Path"u8, ref this.testerImagePaths[0], 1000); + ImGui.InputText("Image 1 Path", ref this.testerImagePaths[0], 1000); if (this.testerImages?.Length > 0) CheckImageSize(this.testerImages[0], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 2 Path"u8, ref this.testerImagePaths[1], 1000); + ImGui.InputText("Image 2 Path", ref this.testerImagePaths[1], 1000); if (this.testerImages?.Length > 1) CheckImageSize(this.testerImages[1], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 3 Path"u8, ref this.testerImagePaths[2], 1000); + ImGui.InputText("Image 3 Path", ref this.testerImagePaths[2], 1000); if (this.testerImages?.Length > 2) CheckImageSize(this.testerImages[2], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 4 Path"u8, ref this.testerImagePaths[3], 1000); + ImGui.InputText("Image 4 Path", ref this.testerImagePaths[3], 1000); if (this.testerImages?.Length > 3) CheckImageSize(this.testerImages[3], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); - ImGui.InputText("Image 5 Path"u8, ref this.testerImagePaths[4], 1000); + ImGui.InputText("Image 5 Path", ref this.testerImagePaths[4], 1000); if (this.testerImages?.Length > 4) CheckImageSize(this.testerImages[4], PluginImageCache.PluginImageWidth, PluginImageCache.PluginImageHeight, false); var tm = Service<TextureManager>.Get(); - if (ImGui.Button("Load"u8)) + if (ImGui.Button("Load")) { try { @@ -2039,8 +1941,8 @@ internal class PluginInstallerWindow : Window, IDisposable } } - ImGui.Checkbox("Failed"u8, ref this.testerError); - ImGui.Checkbox("Has Update"u8, ref this.testerUpdateAvailable); + ImGui.Checkbox("Failed", ref this.testerError); + ImGui.Checkbox("Has Update", ref this.testerUpdateAvailable); } private bool DrawPluginListLoading() @@ -2076,18 +1978,10 @@ internal class PluginInstallerWindow : Window, IDisposable var isOpen = this.openPluginCollapsibles.Contains(index); var sectionSize = ImGuiHelpers.GlobalScale * 66; - + var tapeCursor = ImGui.GetCursorPos(); + ImGui.Separator(); - - var childId = $"plugin_child_{label}_{plugin?.EffectiveWorkingPluginId}_{manifest.InternalName}"; - const ImGuiWindowFlags childFlags = ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse; - - using var pluginChild = ImRaii.Child(childId, new Vector2(ImGui.GetContentRegionAvail().X, sectionSize), false, childFlags); - if (!pluginChild) - { - return isOpen; - } - + var startCursor = ImGui.GetCursorPos(); if (flags.HasFlag(PluginHeaderFlags.IsTesting)) @@ -2098,9 +1992,9 @@ internal class PluginInstallerWindow : Window, IDisposable var windowPos = ImGui.GetWindowPos(); var scroll = new Vector2(ImGui.GetScrollX(), ImGui.GetScrollY()); - + var adjustedPosition = windowPos + position - scroll; - + var yellow = ImGui.ColorConvertFloat4ToU32(new Vector4(1.0f, 0.9f, 0.0f, 0.10f)); var numStripes = (int)(size.X / stripeWidth) + (int)(size.Y / skewAmount) + 1; // +1 to cover partial stripe @@ -2110,20 +2004,20 @@ internal class PluginInstallerWindow : Window, IDisposable var x1 = x0 + stripeWidth; var y0 = adjustedPosition.Y; var y1 = y0 + size.Y; - + var p0 = new Vector2(x0, y0); var p1 = new Vector2(x1, y0); var p2 = new Vector2(x1 - skewAmount, y1); var p3 = new Vector2(x0 - skewAmount, y1); - + if (i % 2 != 0) continue; - + wdl.AddQuadFilled(p0, p1, p2, p3, yellow); } } - - DrawCautionTape(startCursor + new Vector2(0, 1), new Vector2(ImGui.GetWindowWidth(), sectionSize + ImGui.GetStyle().ItemSpacing.Y), ImGuiHelpers.GlobalScale * 40, 20); + + DrawCautionTape(tapeCursor + new Vector2(0, 1), new Vector2(ImGui.GetWindowWidth(), sectionSize + ImGui.GetStyle().ItemSpacing.Y), ImGuiHelpers.GlobalScale * 40, 20); } ImGui.PushStyleColor(ImGuiCol.Button, isOpen ? new Vector4(0.5f, 0.5f, 0.5f, 0.1f) : Vector4.Zero); @@ -2131,8 +2025,8 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PushStyleColor(ImGuiCol.ButtonHovered, new Vector4(0.5f, 0.5f, 0.5f, 0.2f)); ImGui.PushStyleColor(ImGuiCol.ButtonActive, new Vector4(0.5f, 0.5f, 0.5f, 0.35f)); ImGui.PushStyleVar(ImGuiStyleVar.FrameRounding, 0); - - ImGui.SetCursorPos(startCursor); + + ImGui.SetCursorPos(tapeCursor); if (ImGui.Button($"###plugin{index}CollapsibleBtn", new Vector2(ImGui.GetContentRegionAvail().X, sectionSize + ImGui.GetStyle().ItemSpacing.Y))) { @@ -2188,7 +2082,7 @@ internal class PluginInstallerWindow : Window, IDisposable } ImGui.PushStyleVar(ImGuiStyleVar.Alpha, iconAlpha); - ImGui.Image(iconTex.Handle, iconSize); + ImGui.Image(iconTex.ImGuiHandle, iconSize); ImGui.PopStyleVar(); ImGui.SameLine(); @@ -2199,13 +2093,13 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PushStyleVar(ImGuiStyleVar.Alpha, overlayAlpha); if (flags.HasFlag(PluginHeaderFlags.UpdateAvailable)) - ImGui.Image(this.imageCache.UpdateIcon.Handle, iconSize); - else if ((flags.HasFlag(PluginHeaderFlags.HasTrouble) && !pluginDisabled) || flags.HasFlag(PluginHeaderFlags.IsOrphan) || flags.HasFlag(PluginHeaderFlags.IsIncompatible)) - ImGui.Image(this.imageCache.TroubleIcon.Handle, iconSize); + ImGui.Image(this.imageCache.UpdateIcon.ImGuiHandle, iconSize); + else if ((flags.HasFlag(PluginHeaderFlags.HasTrouble) && !pluginDisabled) || flags.HasFlag(PluginHeaderFlags.IsOrphan)) + ImGui.Image(this.imageCache.TroubleIcon.ImGuiHandle, iconSize); else if (flags.HasFlag(PluginHeaderFlags.IsInstallableOutdated)) - ImGui.Image(this.imageCache.OutdatedInstallableIcon.Handle, iconSize); + ImGui.Image(this.imageCache.OutdatedInstallableIcon.ImGuiHandle, iconSize); else if (pluginDisabled) - ImGui.Image(this.imageCache.DisabledIcon.Handle, iconSize); + ImGui.Image(this.imageCache.DisabledIcon.ImGuiHandle, iconSize); /* NOTE: Replaced by the checkmarks for now, let's see if that is fine else if (isLoaded && isThirdParty) ImGui.Image(this.imageCache.ThirdInstalledIcon.ImGuiHandle, iconSize); @@ -2213,7 +2107,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Image(this.imageCache.ThirdIcon.ImGuiHandle, iconSize); */ else if (isLoaded) - ImGui.Image(this.imageCache.InstalledIcon.Handle, iconSize); + ImGui.Image(this.imageCache.InstalledIcon.ImGuiHandle, iconSize); else ImGui.Dummy(iconSize); ImGui.PopStyleVar(); @@ -2226,12 +2120,12 @@ internal class PluginInstallerWindow : Window, IDisposable var cursor = ImGui.GetCursorPos(); // Name - ImGui.Text(label); + ImGui.TextUnformatted(label); // Verified Checkmark or dev plugin wrench { ImGui.SameLine(); - ImGui.Text(" "u8); + ImGui.Text(" "); ImGui.SameLine(); var verifiedOutlineColor = KnownColor.White.Vector() with { W = 0.75f }; @@ -2276,14 +2170,9 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SetCursorPos(cursor); // Outdated warning - if (flags.HasFlag(PluginHeaderFlags.IsIncompatible)) + if (plugin is { IsOutdated: true, IsBanned: false } || flags.HasFlag(PluginHeaderFlags.IsInstallableOutdated)) { - using var color = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed); - ImGui.TextWrapped(Locs.PluginBody_Incompatible); - } - else if (plugin is { IsOutdated: true, IsBanned: false } || flags.HasFlag(PluginHeaderFlags.IsInstallableOutdated)) - { - using var color = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed); + ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudRed); var bodyText = Locs.PluginBody_Outdated + " "; if (flags.HasFlag(PluginHeaderFlags.UpdateAvailable)) @@ -2292,6 +2181,7 @@ internal class PluginInstallerWindow : Window, IDisposable bodyText += Locs.PluginBody_Outdated_WaitForUpdate; ImGui.TextWrapped(bodyText); + ImGui.PopStyleColor(); } else if (plugin is { IsBanned: true }) { @@ -2304,11 +2194,11 @@ internal class PluginInstallerWindow : Window, IDisposable bodyText += " "; if (flags.HasFlag(PluginHeaderFlags.UpdateAvailable)) - bodyText += "\n" + Locs.PluginBody_Outdated_CanNowUpdate; + bodyText += Locs.PluginBody_Outdated_CanNowUpdate; else bodyText += Locs.PluginBody_Outdated_WaitForUpdate; - ImGui.TextWrapped(bodyText); + ImGuiHelpers.SafeTextWrapped(bodyText); ImGui.PopStyleColor(); } @@ -2327,12 +2217,7 @@ internal class PluginInstallerWindow : Window, IDisposable else if (plugin is { IsDecommissioned: true, IsThirdParty: true }) { ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudRed); - - ImGui.TextWrapped( - flags.HasFlag(PluginHeaderFlags.MainRepoCrossUpdate) - ? Locs.PluginBody_NoServiceThirdCrossUpdate - : Locs.PluginBody_NoServiceThird); - + ImGui.TextWrapped(Locs.PluginBody_NoServiceThird); ImGui.PopStyleColor(); } else if (plugin != null && !plugin.CheckPolicy()) @@ -2356,14 +2241,14 @@ internal class PluginInstallerWindow : Window, IDisposable { if (!string.IsNullOrWhiteSpace(manifest.Punchline)) { - ImGui.TextWrapped(manifest.Punchline); + ImGuiHelpers.SafeTextWrapped(manifest.Punchline); } else if (!string.IsNullOrWhiteSpace(manifest.Description)) { const int punchlineLen = 200; - var firstLine = manifest.Description.Split(['\r', '\n'])[0]; + var firstLine = manifest.Description.Split(new[] { '\r', '\n' })[0]; - ImGui.TextWrapped(firstLine.Length < punchlineLen + ImGuiHelpers.SafeTextWrapped(firstLine.Length < punchlineLen ? firstLine : firstLine[..punchlineLen]); } @@ -2401,7 +2286,7 @@ internal class PluginInstallerWindow : Window, IDisposable icon = this.imageCache.CorePluginIcon; } - ImGui.Image(icon.Handle, iconSize); + ImGui.Image(icon.ImGuiHandle, iconSize); } else { @@ -2414,7 +2299,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SameLine(); var cursor = ImGui.GetCursorPos(); - ImGui.Text(log.Title); + ImGui.TextUnformatted(log.Title); ImGui.SameLine(); ImGui.TextColored(ImGuiColors.DalamudGrey3, $" v{log.Version}"); @@ -2437,7 +2322,7 @@ internal class PluginInstallerWindow : Window, IDisposable cursor.Y += ImGui.GetTextLineHeightWithSpacing(); ImGui.SetCursorPos(cursor); - ImGui.TextWrapped(log.Text); + ImGuiHelpers.SafeTextWrapped(log.Text); var endCursor = ImGui.GetCursorPos(); @@ -2454,21 +2339,12 @@ internal class PluginInstallerWindow : Window, IDisposable var configuration = Service<DalamudConfiguration>.Get(); var pluginManager = Service<PluginManager>.Get(); - var canUseTesting = pluginManager.CanUseTesting(manifest); var useTesting = pluginManager.UseTesting(manifest); var wasSeen = this.WasPluginSeen(manifest.InternalName); - var effectiveApiLevel = useTesting ? manifest.TestingDalamudApiLevel.Value : manifest.DalamudApiLevel; + var effectiveApiLevel = useTesting && manifest.TestingDalamudApiLevel != null ? manifest.TestingDalamudApiLevel.Value : manifest.DalamudApiLevel; var isOutdated = effectiveApiLevel < PluginManager.DalamudApiLevel; - var isIncompatible = manifest.MinimumDalamudVersion != null && - manifest.MinimumDalamudVersion > Versioning.GetAssemblyVersionParsed(); - - var enableInstallButton = this.updateStatus != OperationStatus.InProgress && - this.installStatus != OperationStatus.InProgress && - !isOutdated && - !isIncompatible; - // Check for valid versions if ((useTesting && manifest.TestingAssemblyVersion == null) || manifest.AssemblyVersion == null) { @@ -2488,20 +2364,15 @@ internal class PluginInstallerWindow : Window, IDisposable { label += Locs.PluginTitleMod_TestingExclusive; } - else if (canUseTesting) + else if (configuration.DoPluginTest && PluginManager.HasTestingVersion(manifest)) { label += Locs.PluginTitleMod_TestingAvailable; } - - if (isIncompatible) - { - label += Locs.PluginTitleMod_Incompatible; - } - + var isThirdParty = manifest.SourceRepo.IsThirdParty; ImGui.PushID($"available{index}{manifest.InternalName}"); - + var flags = PluginHeaderFlags.None; if (isThirdParty) flags |= PluginHeaderFlags.IsThirdParty; @@ -2511,9 +2382,7 @@ internal class PluginInstallerWindow : Window, IDisposable flags |= PluginHeaderFlags.IsInstallableOutdated; if (useTesting || manifest.IsTestingExclusive) flags |= PluginHeaderFlags.IsTesting; - if (isIncompatible) - flags |= PluginHeaderFlags.IsIncompatible; - + if (this.DrawPluginCollapsingHeader(label, null, manifest, flags, () => this.DrawAvailablePluginContextMenu(manifest), index)) { if (!wasSeen) @@ -2535,11 +2404,14 @@ internal class PluginInstallerWindow : Window, IDisposable // Description if (!string.IsNullOrWhiteSpace(manifest.Description)) { - ImGui.TextWrapped(manifest.Description); + ImGuiHelpers.SafeTextWrapped(manifest.Description); } ImGuiHelpers.ScaledDummy(5); + // Controls + var disabled = this.updateStatus == OperationStatus.InProgress || this.installStatus == OperationStatus.InProgress || isOutdated; + var versionString = useTesting ? $"{manifest.TestingAssemblyVersion}" : $"{manifest.AssemblyVersion}"; @@ -2548,7 +2420,7 @@ internal class PluginInstallerWindow : Window, IDisposable { ImGuiComponents.DisabledButton(Locs.PluginButton_SafeMode); } - else if (!enableInstallButton) + else if (disabled) { ImGuiComponents.DisabledButton(Locs.PluginButton_InstallVersion(versionString)); } @@ -2572,7 +2444,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGuiHelpers.ScaledDummy(3); } - if (!manifest.SourceRepo.IsThirdParty && manifest.AcceptsFeedback && !isOutdated) + if (!manifest.SourceRepo.IsThirdParty && manifest.AcceptsFeedback) { ImGui.SameLine(); this.DrawSendFeedbackButton(manifest, false, true); @@ -2594,9 +2466,10 @@ internal class PluginInstallerWindow : Window, IDisposable var configuration = Service<DalamudConfiguration>.Get(); var pluginManager = Service<PluginManager>.Get(); - var hasTestingVersionAvailable = configuration.DoPluginTest && manifest.IsAvailableForTesting; + var hasTestingVersionAvailable = configuration.DoPluginTest && + PluginManager.HasTestingVersion(manifest); - if (ImGui.BeginPopupContextItem("ItemContextMenu"u8)) + if (ImGui.BeginPopupContextItem("ItemContextMenu")) { if (hasTestingVersionAvailable) { @@ -2605,7 +2478,7 @@ internal class PluginInstallerWindow : Window, IDisposable EnsureHaveTestingOptIn(manifest); this.StartInstall(manifest, true); } - + ImGui.Separator(); } @@ -2689,7 +2562,8 @@ internal class PluginInstallerWindow : Window, IDisposable label += Locs.PluginTitleMod_TestingVersion; } - var hasTestingAvailable = this.pluginListAvailable.Any(x => x.InternalName == plugin.InternalName && x.IsAvailableForTesting); + var hasTestingAvailable = this.pluginListAvailable.Any(x => x.InternalName == plugin.InternalName && + x.IsAvailableForTesting); if (hasTestingAvailable && configuration.DoPluginTest && testingOptIn == null) { label += Locs.PluginTitleMod_TestingAvailable; @@ -2728,10 +2602,7 @@ internal class PluginInstallerWindow : Window, IDisposable availablePluginUpdate = null; // Update available - var isMainRepoCrossUpdate = availablePluginUpdate != null && - availablePluginUpdate.UpdateManifest.RepoUrl != plugin.Manifest.RepoUrl && - availablePluginUpdate.UpdateManifest.RepoUrl == PluginRepository.MainRepoUrl; - if (availablePluginUpdate != null) + if (availablePluginUpdate != default) { label += Locs.PluginTitleMod_HasUpdate; } @@ -2741,7 +2612,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (this.updatedPlugins != null && !plugin.IsDev) { var update = this.updatedPlugins.FirstOrDefault(update => update.InternalName == plugin.Manifest.InternalName); - if (update != null) + if (update != default) { if (update.Status == PluginUpdateStatus.StatusKind.Success) { @@ -2769,8 +2640,8 @@ internal class PluginInstallerWindow : Window, IDisposable trouble = true; } - // Orphaned, if we don't have a cross-repo update - if (plugin.IsOrphaned && !isMainRepoCrossUpdate) + // Orphaned + if (plugin.IsOrphaned) { label += Locs.PluginTitleMod_OrphanedError; trouble = true; @@ -2791,7 +2662,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PushID($"installed{index}{plugin.Manifest.InternalName}"); - var applicableChangelog = plugin.IsTesting ? remoteManifest?.TestingChangelog : remoteManifest?.Changelog; + var applicableChangelog = plugin.IsTesting ? remoteManifest?.Changelog : remoteManifest?.TestingChangelog; var hasChangelog = !applicableChangelog.IsNullOrWhitespace(); var didDrawApplicableChangelogInsideCollapsible = false; @@ -2799,15 +2670,15 @@ internal class PluginInstallerWindow : Window, IDisposable string? availableChangelog = null; var didDrawAvailableChangelogInsideCollapsible = false; - if (availablePluginUpdate != null) + if (availablePluginUpdate != default) { availablePluginUpdateVersion = availablePluginUpdate.UseTesting ? availablePluginUpdate.UpdateManifest.TestingAssemblyVersion : availablePluginUpdate.UpdateManifest.AssemblyVersion; - + availableChangelog = - availablePluginUpdate.UseTesting ? + availablePluginUpdate.UseTesting ? availablePluginUpdate.UpdateManifest.TestingChangelog : availablePluginUpdate.UpdateManifest.Changelog; } @@ -2817,10 +2688,8 @@ internal class PluginInstallerWindow : Window, IDisposable flags |= PluginHeaderFlags.IsThirdParty; if (trouble) flags |= PluginHeaderFlags.HasTrouble; - if (availablePluginUpdate != null) + if (availablePluginUpdate != default) flags |= PluginHeaderFlags.UpdateAvailable; - if (isMainRepoCrossUpdate) - flags |= PluginHeaderFlags.MainRepoCrossUpdate; if (plugin.IsOrphaned) flags |= PluginHeaderFlags.IsOrphan; if (plugin.IsTesting) @@ -2836,7 +2705,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Indent(); // Name - ImGui.Text(manifest.Name); + ImGui.TextUnformatted(manifest.Name); // Download count var downloadText = plugin.IsDev @@ -2855,8 +2724,8 @@ internal class PluginInstallerWindow : Window, IDisposable var canFeedback = !isThirdParty && !plugin.IsDev && !plugin.IsOrphaned && - (plugin.Manifest.DalamudApiLevel == PluginManager.DalamudApiLevel || - (plugin.Manifest.TestingDalamudApiLevel == PluginManager.DalamudApiLevel && hasTestingAvailable)) && + (plugin.Manifest.DalamudApiLevel == PluginManager.DalamudApiLevel + || plugin.Manifest.TestingDalamudApiLevel == PluginManager.DalamudApiLevel) && acceptsFeedback && availablePluginUpdate == default; @@ -2875,7 +2744,7 @@ internal class PluginInstallerWindow : Window, IDisposable // Description if (!string.IsNullOrWhiteSpace(manifest.Description)) { - ImGui.TextWrapped(manifest.Description); + ImGuiHelpers.SafeTextWrapped(manifest.Description); } // Working Plugin ID @@ -2893,16 +2762,15 @@ internal class PluginInstallerWindow : Window, IDisposable var commands = commandManager.Commands .Where(cInfo => cInfo.Value is { ShowInHelp: true } && - commandManager.GetHandlerAssemblyName(cInfo.Key, cInfo.Value) == plugin.Manifest.InternalName); + commandManager.GetHandlerAssemblyName(cInfo.Key, cInfo.Value) == plugin.Manifest.InternalName) + .ToArray(); if (commands.Any()) { ImGui.Dummy(ImGuiHelpers.ScaledVector2(10f, 10f)); - foreach (var command in commands - .OrderBy(cInfo => cInfo.Value.DisplayOrder) - .ThenBy(cInfo => cInfo.Key)) + foreach (var command in commands) { - ImGui.TextWrapped($"{command.Key} → {command.Value.HelpMessage}"); + ImGuiHelpers.SafeTextWrapped($"{command.Key} → {command.Value.HelpMessage}"); } ImGuiHelpers.ScaledDummy(3); @@ -2967,7 +2835,7 @@ internal class PluginInstallerWindow : Window, IDisposable { this.DrawInstalledPluginChangelog(applicableChangelog); } - + if (this.categoryManager.CurrentCategoryKind == PluginCategoryManager.CategoryKind.UpdateablePlugins && !availableChangelog.IsNullOrWhitespace() && !didDrawAvailableChangelogInsideCollapsible) @@ -2987,11 +2855,11 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, new Vector2(7, 5)); - if (ImGui.BeginChild("##changelog"u8, new Vector2(-1, 100), true, ImGuiWindowFlags.NoNavFocus | ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.AlwaysAutoResize)) + if (ImGui.BeginChild("##changelog", new Vector2(-1, 100), true, ImGuiWindowFlags.NoNavFocus | ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.AlwaysAutoResize)) { - ImGui.Text("Changelog:"u8); + ImGui.Text("Changelog:"); ImGuiHelpers.ScaledDummy(2); - ImGui.TextWrapped(changelog!); + ImGuiHelpers.SafeTextWrapped(changelog!); } ImGui.EndChild(); @@ -3000,12 +2868,12 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.PopStyleColor(2); } - private unsafe void DrawInstalledPluginContextMenu(LocalPlugin plugin, PluginTestingOptIn? optIn) + private void DrawInstalledPluginContextMenu(LocalPlugin plugin, PluginTestingOptIn? optIn) { var pluginManager = Service<PluginManager>.Get(); var configuration = Service<DalamudConfiguration>.Get(); - if (ImGui.BeginPopupContextItem("InstalledItemContextMenu"u8)) + if (ImGui.BeginPopupContextItem("InstalledItemContextMenu")) { if (configuration.DoPluginTest) { @@ -3013,7 +2881,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (repoManifest?.IsTestingExclusive == true) ImGui.BeginDisabled(); - if (ImGui.MenuItem(Locs.PluginContext_TestingOptIn, optIn != null)) + if (ImGui.MenuItem(Locs.PluginContext_TestingOptIn, string.Empty, optIn != null)) { if (optIn != null) { @@ -3128,7 +2996,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SameLine(); - ImGui.Text(profile.Name); + ImGui.TextUnformatted(profile.Name); didAny = true; } @@ -3174,13 +3042,11 @@ internal class PluginInstallerWindow : Window, IDisposable { ImGuiComponents.DisabledToggleButton(toggleId, this.loadingIndicatorKind == LoadingIndicatorKind.EnablingSingle); } - else if (disabled || inMultipleProfiles || inSingleNonDefaultProfileWhichIsDisabled || pluginManager.SafeMode) + else if (disabled || inMultipleProfiles || inSingleNonDefaultProfileWhichIsDisabled) { ImGuiComponents.DisabledToggleButton(toggleId, isLoadedAndUnloadable); - if (pluginManager.SafeMode && ImGui.IsItemHovered()) - ImGui.SetTooltip(Locs.PluginButtonToolTip_SafeMode); - else if (inMultipleProfiles && ImGui.IsItemHovered()) + if (inMultipleProfiles && ImGui.IsItemHovered()) ImGui.SetTooltip(Locs.PluginButtonToolTip_NeedsToBeInSingleProfile); else if (inSingleNonDefaultProfileWhichIsDisabled && ImGui.IsItemHovered()) ImGui.SetTooltip(Locs.PluginButtonToolTip_SingleProfileDisabled(profilesThatWantThisPlugin.First().Name)); @@ -3431,7 +3297,7 @@ internal class PluginInstallerWindow : Window, IDisposable { if (!devPlugin.IsLoaded) { - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, "You have to load this plugin to see validation issues."u8); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, "You have to load this plugin to see validation issues."); } else { @@ -3442,7 +3308,7 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.Text(FontAwesomeIcon.Check.ToIconString()); ImGui.PopFont(); ImGui.SameLine(); - ImGui.TextColoredWrapped(ImGuiColors.HealerGreen, "No validation issues found in this plugin!"u8); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.HealerGreen, "No validation issues found in this plugin!"); } else { @@ -3475,7 +3341,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (ImGui.IsItemHovered()) { - ImGui.SetTooltip("Dismiss this issue"u8); + ImGui.SetTooltip("Dismiss this issue"); } } @@ -3513,7 +3379,7 @@ internal class PluginInstallerWindow : Window, IDisposable using (ImRaii.PushColor(ImGuiCol.Text, thisProblemIsDismissed ? ImGuiColors.DalamudGrey : ImGuiColors.DalamudWhite)) { - ImGui.TextWrapped(problem.GetLocalizedDescription()); + ImGuiHelpers.SafeTextWrapped(problem.GetLocalizedDescription()); } } } @@ -3574,24 +3440,6 @@ internal class PluginInstallerWindow : Window, IDisposable { ImGui.SetTooltip(Locs.PluginButtonToolTip_AutomaticReloading); } - - // Error Notifications - ImGui.PushStyleColor(ImGuiCol.Button, plugin.NotifyForErrors ? greenColor : redColor); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, plugin.NotifyForErrors ? greenColor : redColor); - - ImGui.SameLine(); - if (ImGuiComponents.IconButton(FontAwesomeIcon.Bolt)) - { - plugin.NotifyForErrors ^= true; - configuration.QueueSave(); - } - - ImGui.PopStyleColor(2); - - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip(Locs.PluginButtonToolTip_NotifyForErrors); - } } } @@ -3735,7 +3583,7 @@ internal class PluginInstallerWindow : Window, IDisposable var popupId = $"plugin{index}image{i}"; if (ImGui.BeginPopup(popupId)) { - if (ImGui.ImageButton(image.Handle, new Vector2(image.Width, image.Height))) + if (ImGui.ImageButton(image.ImGuiHandle, new Vector2(image.Width, image.Height))) ImGui.CloseCurrentPopup(); ImGui.EndPopup(); @@ -3759,7 +3607,7 @@ internal class PluginInstallerWindow : Window, IDisposable } var size = ImGuiHelpers.ScaledVector2(xAct / thumbFactor, yAct / thumbFactor); - if (ImGui.ImageButton(image.Handle, size)) + if (ImGui.ImageButton(image.ImGuiHandle, size)) ImGui.OpenPopup(popupId); ImGui.PopStyleVar(); @@ -3783,7 +3631,16 @@ internal class PluginInstallerWindow : Window, IDisposable private bool IsManifestFiltered(IPluginManifest manifest) { - if (string.IsNullOrWhiteSpace(this.searchText)) + var hasSearchString = !string.IsNullOrWhiteSpace(this.searchText); + var oldApi = (manifest.TestingDalamudApiLevel == null + || manifest.TestingDalamudApiLevel < PluginManager.DalamudApiLevel) + && manifest.DalamudApiLevel < PluginManager.DalamudApiLevel; + var installed = this.IsManifestInstalled(manifest).IsInstalled; + + if (oldApi && !hasSearchString && !installed) + return true; + + if (!hasSearchString) return false; return this.GetManifestSearchScore(manifest) < 1; @@ -3804,7 +3661,7 @@ internal class PluginInstallerWindow : Window, IDisposable if (!manifest.Punchline.IsNullOrEmpty()) scores.Add(matcher.Matches(manifest.Punchline.ToLowerInvariant()) * 100); if (manifest.Tags != null) - scores.Add(matcher.MatchesAny(manifest.Tags.Select(tag => tag.ToLowerInvariant()).ToArray()) * 100); + scores.Add(matcher.MatchesAny(manifest.Tags.ToArray()) * 100); return scores.Max(); } @@ -3832,7 +3689,7 @@ internal class PluginInstallerWindow : Window, IDisposable this.pluginListUpdatable = pluginManager.UpdatablePlugins.ToList(); this.ResortPlugins(); } - + this.hasHiddenPlugins = this.pluginListAvailable.Any(x => configuration.HiddenPluginInternalName.Contains(x.InternalName)); this.UpdateCategoriesOnPluginsChange(); @@ -3974,7 +3831,7 @@ internal class PluginInstallerWindow : Window, IDisposable { var positionOffset = ImGuiHelpers.ScaledVector2(0.0f, 1.0f); var cursorStart = ImGui.GetCursorPos() + positionOffset; - ImGui.PushFont(InterfaceManager.IconFont); + ImGui.PushFont(UiBuilder.IconFont); ImGui.PushStyleColor(ImGuiCol.Text, outline); foreach (var x in Enumerable.Range(-1, 3)) @@ -4086,18 +3943,16 @@ internal class PluginInstallerWindow : Window, IDisposable public static string TabBody_DownloadFailed => Loc.Localize("InstallerDownloadFailed", "Download failed."); public static string TabBody_SafeMode => Loc.Localize("InstallerSafeMode", "Dalamud is running in Plugin Safe Mode, restart to activate plugins."); - + public static string TabBody_NoPluginsTesting => Loc.Localize("InstallerNoPluginsTesting", "You aren't testing any plugins at the moment!\nYou can opt in to testing versions in the plugin context menu."); - + public static string TabBody_NoPluginsInstalled => string.Format(Loc.Localize("InstallerNoPluginsInstalled", "You don't have any plugins installed yet!\nYou can install them from the \"{0}\" tab."), PluginCategoryManager.Locs.Category_All); - - public static string TabBody_NoPluginsAvailable => Loc.Localize("InstallerNoPluginsAvailable", "No plugins are available at the moment."); - + public static string TabBody_NoPluginsUpdateable => Loc.Localize("InstallerNoPluginsUpdate", "No plugins have updates available at the moment."); - + public static string TabBody_NoPluginsDev => Loc.Localize("InstallerNoPluginsDev", "You don't have any dev plugins. Add them from the settings."); - + #endregion #region Search text @@ -4108,8 +3963,6 @@ internal class PluginInstallerWindow : Window, IDisposable public static string TabBody_SearchNoInstalled => Loc.Localize("InstallerNoInstalled", "No plugins are currently installed. You can install them from the \"All Plugins\" tab."); - public static string TabBody_NoMoreResultsFor(string query) => Loc.Localize("InstallerNoMoreResultsForQuery", "No more search results for \"{0}\".").Format(query); - public static string TabBody_ChangelogNone => Loc.Localize("InstallerNoChangelog", "None of your installed plugins have a changelog."); public static string TabBody_ChangelogError => Loc.Localize("InstallerChangelogError", "Could not download changelogs."); @@ -4136,8 +3989,6 @@ internal class PluginInstallerWindow : Window, IDisposable public static string PluginTitleMod_TestingAvailable => Loc.Localize("InstallerTestingAvailable", " (has testing version)"); - public static string PluginTitleMod_Incompatible => Loc.Localize("InstallerTitleModIncompatible", " (incompatible)"); - public static string PluginTitleMod_DevPlugin => Loc.Localize("InstallerDevPlugin", " (dev plugin)"); public static string PluginTitleMod_UpdateFailed => Loc.Localize("InstallerUpdateFailed", " (update failed)"); @@ -4163,11 +4014,11 @@ internal class PluginInstallerWindow : Window, IDisposable public static string PluginContext_TestingOptIn => Loc.Localize("InstallerTestingOptIn", "Receive plugin testing versions"); public static string PluginContext_InstallTestingVersion => Loc.Localize("InstallerInstallTestingVersion", "Install testing version"); - + public static string PluginContext_MarkAllSeen => Loc.Localize("InstallerMarkAllSeen", "Mark all as seen"); public static string PluginContext_HidePlugin => Loc.Localize("InstallerHidePlugin", "Hide from installer"); - + public static string PluginContext_UnhidePlugin => Loc.Localize("InstallerUnhidePlugin", "Unhide from installer"); public static string PluginContext_DeletePluginConfig => Loc.Localize("InstallerDeletePluginConfig", "Reset plugin data"); @@ -4194,8 +4045,6 @@ internal class PluginInstallerWindow : Window, IDisposable public static string PluginBody_Outdated => Loc.Localize("InstallerOutdatedPluginBody ", "This plugin is outdated and incompatible."); - public static string PluginBody_Incompatible => Loc.Localize("InstallerIncompatiblePluginBody ", "This plugin is incompatible with your version of Dalamud. Please attempt to restart your game."); - public static string PluginBody_Outdated_WaitForUpdate => Loc.Localize("InstallerOutdatedWaitForUpdate", "Please wait for it to be updated by its author."); public static string PluginBody_Outdated_CanNowUpdate => Loc.Localize("InstallerOutdatedCanNowUpdate", "An update is available for installation."); @@ -4206,8 +4055,6 @@ internal class PluginInstallerWindow : Window, IDisposable public static string PluginBody_NoServiceThird => Loc.Localize("InstallerNoServiceThirdPluginBody", "This plugin is no longer being serviced by its source repo. You may have to look for an updated version in another repo."); - public static string PluginBody_NoServiceThirdCrossUpdate => Loc.Localize("InstallerNoServiceThirdCrossUpdatePluginBody", "This plugin is no longer being serviced by its source repo. An update is available and will update it to a version from the official repository."); - public static string PluginBody_LoadFailed => Loc.Localize("InstallerLoadFailedPluginBody ", "This plugin failed to load. Please contact the author for more information."); public static string PluginBody_Banned => Loc.Localize("InstallerBannedPluginBody ", "This plugin was automatically disabled due to incompatibilities and is not available."); @@ -4253,8 +4100,6 @@ internal class PluginInstallerWindow : Window, IDisposable public static string PluginButtonToolTip_AutomaticReloading => Loc.Localize("InstallerAutomaticReloading", "Automatic reloading"); - public static string PluginButtonToolTip_NotifyForErrors => Loc.Localize("InstallerNotifyForErrors", "Show Dalamud notifications when this plugin is creating errors"); - public static string PluginButtonToolTip_DeletePlugin => Loc.Localize("InstallerDeletePlugin ", "Delete plugin"); public static string PluginButtonToolTip_DeletePluginRestricted => Loc.Localize("InstallerDeletePluginRestricted", "Cannot delete right now - please restart the game."); @@ -4275,8 +4120,6 @@ internal class PluginInstallerWindow : Window, IDisposable public static string PluginButtonToolTip_NeedsToBeInSingleProfile => Loc.Localize("InstallerUnloadNeedsToBeInSingleProfile", "This plugin is in more than one collection. If you want to enable or disable it, please do so by enabling or disabling the collections it is in.\nIf you want to manage it here, make sure it is only in a single collection."); - public static string PluginButtonToolTip_SafeMode => Loc.Localize("InstallerButtonSafeModeTooltip", "Cannot enable plugins in safe mode."); - public static string PluginButtonToolTip_SingleProfileDisabled(string name) => Loc.Localize("InstallerSingleProfileDisabled", "The collection '{0}' which contains this plugin is disabled.\nPlease enable it in the collections manager to toggle the plugin individually.").Format(name); #endregion diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs index c01d7f390..95315dbd3 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs @@ -1,10 +1,8 @@ -using System.Linq; +using System.Linq; using System.Numerics; using System.Threading.Tasks; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -16,7 +14,7 @@ using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Profiles; using Dalamud.Utility; - +using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.PluginInstaller; @@ -58,11 +56,11 @@ internal class ProfileManagerWidget this.DrawChoice(); return; } - + var tutorialTitle = Locs.TutorialTitle + "###collectionsTutorWindow"; var tutorialId = ImGui.GetID(tutorialTitle); this.DrawTutorial(tutorialTitle); - + switch (this.mode) { case Mode.Overview: @@ -110,37 +108,37 @@ internal class ProfileManagerWidget { if (popup) { - using var scrolling = ImRaii.Child("###scrolling"u8, new Vector2(-1, -1)); + using var scrolling = ImRaii.Child("###scrolling", new Vector2(-1, -1)); if (scrolling) { - ImGui.TextWrapped(Locs.TutorialParagraphOne); + ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphOne); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped(Locs.TutorialParagraphTwo); + ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphTwo); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped(Locs.TutorialParagraphThree); + ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphThree); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped(Locs.TutorialParagraphFour); + ImGuiHelpers.SafeTextWrapped(Locs.TutorialParagraphFour); ImGuiHelpers.ScaledDummy(5); - ImGui.TextWrapped(Locs.TutorialCommands); - + ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommands); + ImGui.Bullet(); ImGui.SameLine(); - ImGui.TextWrapped(Locs.TutorialCommandsEnable); - + ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsEnable); + ImGui.Bullet(); ImGui.SameLine(); - ImGui.TextWrapped(Locs.TutorialCommandsDisable); - + ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsDisable); + ImGui.Bullet(); ImGui.SameLine(); - ImGui.TextWrapped(Locs.TutorialCommandsToggle); + ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsToggle); - ImGui.TextWrapped(Locs.TutorialCommandsEnd); + ImGuiHelpers.SafeTextWrapped(Locs.TutorialCommandsEnd); ImGuiHelpers.ScaledDummy(5); - + var buttonWidth = 120f; ImGui.SetCursorPosX((ImGui.GetWindowWidth() - buttonWidth) / 2); - if (ImGui.Button("OK"u8, new Vector2(buttonWidth, 40))) + if (ImGui.Button("OK", new Vector2(buttonWidth, 40))) { ImGui.CloseCurrentPopup(); } @@ -188,14 +186,14 @@ internal class ProfileManagerWidget if (ImGui.IsItemHovered()) ImGui.SetTooltip(Locs.ImportProfileHint); - + ImGui.SameLine(); ImGuiHelpers.ScaledDummy(5); ImGui.SameLine(); - + if (ImGuiComponents.IconButton(FontAwesomeIcon.Question)) ImGui.OpenPopup(tutorialId); - + if (ImGui.IsItemHovered()) ImGui.SetTooltip(Locs.TutorialHint); @@ -204,7 +202,7 @@ internal class ProfileManagerWidget var windowSize = ImGui.GetWindowSize(); - using var profileChooserChild = ImRaii.Child("###profileChooserScrolling"u8); + using var profileChooserChild = ImRaii.Child("###profileChooserScrolling"); if (profileChooserChild) { Guid? toCloneGuid = null; @@ -226,9 +224,6 @@ internal class ProfileManagerWidget ImGuiHelpers.ScaledDummy(3); ImGui.SameLine(); - // Center text in frame height - var textHeight = ImGui.CalcTextSize(profile.Name); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (ImGui.GetFrameHeight() / 2) - (textHeight.Y / 2)); ImGui.Text(profile.Name); ImGui.SameLine(); @@ -268,17 +263,6 @@ internal class ProfileManagerWidget didAny = true; ImGuiHelpers.ScaledDummy(2); - - // Separator if not the last item - if (profile != profman.Profiles.Last()) - { - // Very light grey - ImGui.PushStyleColor(ImGuiCol.Border, ImGuiColors.DalamudGrey.WithAlpha(0.2f)); - ImGui.Separator(); - ImGui.PopStyleColor(); - - ImGuiHelpers.ScaledDummy(2); - } } if (toCloneGuid != null) @@ -380,7 +364,7 @@ internal class ProfileManagerWidget ImGui.SameLine(); ImGui.SetNextItemWidth(windowSize.X / 3); - if (ImGui.InputText("###profileNameInput"u8, ref this.profileNameEdit, 255)) + if (ImGui.InputText("###profileNameInput", ref this.profileNameEdit, 255)) { profile.Name = this.profileNameEdit; } @@ -402,19 +386,10 @@ internal class ProfileManagerWidget ImGuiHelpers.ScaledDummy(5); - ImGui.Text(Locs.StartupBehavior); - if (ImGui.BeginCombo("##startupBehaviorPicker"u8, Locs.PolicyToLocalisedName(profile.StartupPolicy))) + var enableAtBoot = profile.AlwaysEnableAtBoot; + if (ImGui.Checkbox(Locs.AlwaysEnableAtBoot, ref enableAtBoot)) { - foreach (var policy in Enum.GetValues<ProfileModelV1.ProfileStartupPolicy>()) - { - var name = Locs.PolicyToLocalisedName(policy); - if (ImGui.Selectable(name, profile.StartupPolicy == policy)) - { - profile.StartupPolicy = policy; - } - } - - ImGui.EndCombo(); + profile.AlwaysEnableAtBoot = enableAtBoot; } ImGuiHelpers.ScaledDummy(5); @@ -422,7 +397,7 @@ internal class ProfileManagerWidget ImGui.Separator(); var wantPluginAddPopup = false; - using var pluginListChild = ImRaii.Child("###profileEditorPluginList"u8); + using var pluginListChild = ImRaii.Child("###profileEditorPluginList"); if (pluginListChild) { var pluginLineHeight = 32 * ImGuiHelpers.GlobalScale; @@ -441,16 +416,16 @@ internal class ProfileManagerWidget pic.TryGetIcon(pmPlugin, pmPlugin.Manifest, pmPlugin.IsThirdParty, out var icon, out _); icon ??= pic.DefaultIcon; - ImGui.Image(icon.Handle, new Vector2(pluginLineHeight)); + ImGui.Image(icon.ImGuiHandle, new Vector2(pluginLineHeight)); if (pmPlugin.IsDev) { ImGui.SetCursorPos(cursorBeforeIcon); ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.7f); - ImGui.Image(pic.DevPluginIcon.Handle, new Vector2(pluginLineHeight)); + ImGui.Image(pic.DevPluginIcon.ImGuiHandle, new Vector2(pluginLineHeight)); ImGui.PopStyleVar(); } - + ImGui.SameLine(); var text = $"{pmPlugin.Name}{(pmPlugin.IsDev ? " (dev plugin" : string.Empty)}"; @@ -458,13 +433,13 @@ internal class ProfileManagerWidget var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.Text(text); + ImGui.TextUnformatted(text); ImGui.SetCursorPos(before); } else { - ImGui.Image(pic.DefaultIcon.Handle, new Vector2(pluginLineHeight)); + ImGui.Image(pic.DefaultIcon.ImGuiHandle, new Vector2(pluginLineHeight)); ImGui.SameLine(); var text = Locs.NotInstalled(profileEntry.InternalName); @@ -472,13 +447,13 @@ internal class ProfileManagerWidget var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.Text(text); - + ImGui.TextUnformatted(text); + var firstAvailableInstalled = pm.InstalledPlugins.FirstOrDefault(x => x.InternalName == profileEntry.InternalName); var installable = pm.AvailablePlugins.FirstOrDefault( x => x.InternalName == profileEntry.InternalName && !x.SourceRepo.IsThirdParty); - + if (firstAvailableInstalled != null) { ImGui.Text($"Match to plugin '{firstAvailableInstalled.Name}'?"); @@ -513,7 +488,7 @@ internal class ProfileManagerWidget if (ImGui.IsItemHovered()) ImGui.SetTooltip(Locs.InstallPlugin); } - + ImGui.SetCursorPos(before); } @@ -539,15 +514,6 @@ internal class ProfileManagerWidget if (ImGui.IsItemHovered()) ImGui.SetTooltip(Locs.RemovePlugin); - - // Separator if not the last item - if (profileEntry != profile.Plugins.Last()) - { - // Very light grey - ImGui.PushStyleColor(ImGuiCol.Border, ImGuiColors.DalamudGrey.WithAlpha(0.2f)); - ImGui.Separator(); - ImGui.PopStyleColor(); - } } if (wantRemovePluginGuid != null) @@ -574,7 +540,7 @@ internal class ProfileManagerWidget ImGuiHelpers.ScaledDummy(5); ImGui.SameLine(); - ImGui.Text(addPluginsText); + ImGui.TextUnformatted(addPluginsText); ImGuiHelpers.ScaledDummy(10); } @@ -588,9 +554,6 @@ internal class ProfileManagerWidget private static class Locs { - public static string StartupBehavior => - Loc.Localize("ProfileManagerStartupBehavior", "Startup behavior"); - public static string TooltipEnableDisable => Loc.Localize("ProfileManagerEnableDisableHint", "Enable/Disable this collection"); @@ -604,6 +567,9 @@ internal class ProfileManagerWidget public static string NoPluginsInProfile => Loc.Localize("ProfileManagerNoPluginsInProfile", "Collection has no plugins!"); + public static string AlwaysEnableAtBoot => + Loc.Localize("ProfileManagerAlwaysEnableAtBoot", "Always enable when game starts"); + public static string DeleteProfileHint => Loc.Localize("ProfileManagerDeleteProfile", "Delete this collection"); public static string CopyToClipboardHint => @@ -642,13 +608,13 @@ internal class ProfileManagerWidget public static string TutorialTitle => Loc.Localize("ProfileManagerTutorial", "About Collections"); - + public static string TutorialParagraphOne => Loc.Localize("ProfileManagerTutorialParagraphOne", "Collections are shareable lists of plugins that can be enabled or disabled in the plugin installer or via chat commands.\nWhen a plugin is part of a collection, it will be enabled if the collection is enabled. If a plugin is part of multiple collections, it will be enabled if one or more collections it is a part of are enabled."); - + public static string TutorialParagraphTwo => Loc.Localize("ProfileManagerTutorialParagraphTwo", "You can add plugins to collections by clicking the plus button when editing a collection on this screen, or by using the button with the toolbox icon on the \"Installed Plugins\" screen."); - + public static string TutorialParagraphThree => Loc.Localize("ProfileManagerTutorialParagraphThree", "If a collection's \"Start on boot\" checkbox is ticked, the collection and the plugins within will be enabled every time the game starts up, even if it has been manually disabled in a prior session."); @@ -657,46 +623,29 @@ internal class ProfileManagerWidget public static string TutorialCommands => Loc.Localize("ProfileManagerTutorialCommands", "You can use the following commands in chat or in macros to manage active collections:"); - + public static string TutorialCommandsEnable => - Loc.Localize("ProfileManagerTutorialCommandsEnable", "{0} \"Collection Name\" - Enable a collection").Format(PluginManagementCommandHandler.CommandEnableProfile); + Loc.Localize("ProfileManagerTutorialCommandsEnable", "{0} \"Collection Name\" - Enable a collection").Format(ProfileCommandHandler.CommandEnable); public static string TutorialCommandsDisable => - Loc.Localize("ProfileManagerTutorialCommandsDisable", "{0} \"Collection Name\" - Disable a collection").Format(PluginManagementCommandHandler.CommandDisableProfile); - + Loc.Localize("ProfileManagerTutorialCommandsDisable", "{0} \"Collection Name\" - Disable a collection").Format(ProfileCommandHandler.CommandDisable); + public static string TutorialCommandsToggle => - Loc.Localize("ProfileManagerTutorialCommandsToggle", "{0} \"Collection Name\" - Toggle a collection's state").Format(PluginManagementCommandHandler.CommandToggleProfile); - + Loc.Localize("ProfileManagerTutorialCommandsToggle", "{0} \"Collection Name\" - Toggle a collection's state").Format(ProfileCommandHandler.CommandToggle); + public static string TutorialCommandsEnd => Loc.Localize("ProfileManagerTutorialCommandsEnd", "If you run multiple of these commands, they will be executed in order."); public static string Choice1 => Loc.Localize("ProfileManagerChoice1", "Plugin collections are a new feature that allow you to group plugins into collections which can be toggled and shared."); - + public static string Choice2 => Loc.Localize("ProfileManagerChoice2", "They are experimental and may still contain bugs. Do you want to enable them now?"); - + public static string ChoiceConfirmation => Loc.Localize("ProfileManagerChoiceConfirmation", "Yes, enable Plugin Collections"); public static string NotInstalled(string name) => Loc.Localize("ProfileManagerNotInstalled", "{0} (Not Installed)").Format(name); - - public static string PolicyToLocalisedName(ProfileModelV1.ProfileStartupPolicy policy) - { - return policy switch - { - ProfileModelV1.ProfileStartupPolicy.RememberState => Loc.Localize( - "ProfileManagerRememberState", - "Remember state"), - ProfileModelV1.ProfileStartupPolicy.AlwaysEnable => Loc.Localize( - "ProfileManagerAlwaysEnableAtBoot", - "Always enable at boot"), - ProfileModelV1.ProfileStartupPolicy.AlwaysDisable => Loc.Localize( - "ProfileManagerAlwaysDisableAtBoot", - "Always disable at boot"), - _ => throw new ArgumentOutOfRangeException(nameof(policy), policy, null), - }; - } } } diff --git a/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs b/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs index 8b702123c..314f023da 100644 --- a/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginStatWindow.cs @@ -1,19 +1,18 @@ +using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Reflection; -using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Hooking.Internal; using Dalamud.Interface.Components; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; -using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; - +using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows; @@ -45,314 +44,325 @@ internal class PluginStatWindow : Window { var pluginManager = Service<PluginManager>.Get(); - using var tabBar = ImRaii.TabBar("Stat Tabs"u8); - if (!tabBar) + if (!ImGui.BeginTabBar("Stat Tabs")) return; - using (var tabItem = ImRaii.TabItem("Draw times"u8)) + if (ImGui.BeginTabItem("Draw times")) { - if (tabItem) + var doStats = UiBuilder.DoStats; + + if (ImGui.Checkbox("Enable Draw Time Tracking", ref doStats)) { - var doStats = UiBuilder.DoStats; - - if (ImGui.Checkbox("Enable Draw Time Tracking"u8, ref doStats)) - { - UiBuilder.DoStats = doStats; - } - - if (doStats) - { - ImGui.SameLine(); - if (ImGui.Button("Reset"u8)) - { - foreach (var plugin in pluginManager.InstalledPlugins) - { - if (plugin.DalamudInterface != null) - { - plugin.DalamudInterface.LocalUiBuilder.LastDrawTime = -1; - plugin.DalamudInterface.LocalUiBuilder.MaxDrawTime = -1; - plugin.DalamudInterface.LocalUiBuilder.DrawTimeHistory.Clear(); - } - } - } - - var loadedPlugins = pluginManager.InstalledPlugins.Where(plugin => plugin.State == PluginState.Loaded); - var totalLast = loadedPlugins.Sum(plugin => plugin.DalamudInterface?.LocalUiBuilder.LastDrawTime ?? 0); - var totalAverage = loadedPlugins.Sum(plugin => plugin.DalamudInterface?.LocalUiBuilder.DrawTimeHistory.DefaultIfEmpty().Average() ?? 0); - - ImGuiComponents.TextWithLabel("Total Last", $"{totalLast / 10000f:F4}ms", "All last draw times added together"); - ImGui.SameLine(); - ImGuiComponents.TextWithLabel("Total Average", $"{totalAverage / 10000f:F4}ms", "All average draw times added together"); - ImGui.SameLine(); - ImGuiComponents.TextWithLabel("Collective Average", $"{(loadedPlugins.Any() ? totalAverage / loadedPlugins.Count() / 10000f : 0):F4}ms", "Average of all average draw times"); - - ImGui.InputTextWithHint( - "###PluginStatWindow_DrawSearch"u8, - "Search"u8, - ref this.drawSearchText, - 500); - - using var table = ImRaii.Table( - "##PluginStatsDrawTimes"u8, - 4, - ImGuiTableFlags.RowBg - | ImGuiTableFlags.SizingStretchProp - | ImGuiTableFlags.Sortable - | ImGuiTableFlags.Resizable - | ImGuiTableFlags.ScrollY - | ImGuiTableFlags.Reorderable - | ImGuiTableFlags.Hideable); - - if (table) - { - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Plugin"u8); - ImGui.TableSetupColumn("Last"u8, ImGuiTableColumnFlags.NoSort); // Changes too fast to sort - ImGui.TableSetupColumn("Longest"u8); - ImGui.TableSetupColumn("Average"u8); - ImGui.TableHeadersRow(); - - var sortSpecs = ImGui.TableGetSortSpecs(); - loadedPlugins = sortSpecs.Specs.ColumnIndex switch - { - 0 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending - ? loadedPlugins.OrderBy(plugin => plugin.Name) - : loadedPlugins.OrderByDescending(plugin => plugin.Name), - 2 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending - ? loadedPlugins.OrderBy(plugin => plugin.DalamudInterface?.LocalUiBuilder.MaxDrawTime ?? 0) - : loadedPlugins.OrderByDescending(plugin => plugin.DalamudInterface?.LocalUiBuilder.MaxDrawTime ?? 0), - 3 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending - ? loadedPlugins.OrderBy(plugin => plugin.DalamudInterface?.LocalUiBuilder.DrawTimeHistory.DefaultIfEmpty().Average() ?? 0) - : loadedPlugins.OrderByDescending(plugin => plugin.DalamudInterface?.LocalUiBuilder.DrawTimeHistory.DefaultIfEmpty().Average() ?? 0), - _ => loadedPlugins, - }; - - foreach (var plugin in loadedPlugins) - { - if (!this.drawSearchText.IsNullOrEmpty() - && !plugin.Manifest.Name.Contains(this.drawSearchText, StringComparison.OrdinalIgnoreCase)) - { - continue; - } - - ImGui.TableNextRow(); - - ImGui.TableNextColumn(); - ImGui.Text(plugin.Manifest.Name); - - if (plugin.DalamudInterface != null) - { - ImGui.TableNextColumn(); - ImGui.Text($"{plugin.DalamudInterface.LocalUiBuilder.LastDrawTime / 10000f:F4}ms"); - - ImGui.TableNextColumn(); - ImGui.Text($"{plugin.DalamudInterface.LocalUiBuilder.MaxDrawTime / 10000f:F4}ms"); - - ImGui.TableNextColumn(); - ImGui.Text(plugin.DalamudInterface.LocalUiBuilder.DrawTimeHistory.Count > 0 - ? $"{plugin.DalamudInterface.LocalUiBuilder.DrawTimeHistory.Average() / 10000f:F4}ms" - : "-"); - } - } - } - } + UiBuilder.DoStats = doStats; } - } - using (var tabItem = ImRaii.TabItem("Framework times"u8)) - { - if (tabItem) + if (doStats) { - var doStats = Framework.StatsEnabled; - - if (ImGui.Checkbox("Enable Framework Update Tracking"u8, ref doStats)) + ImGui.SameLine(); + if (ImGui.Button("Reset")) { - Framework.StatsEnabled = doStats; - } - - if (doStats) - { - ImGui.SameLine(); - if (ImGui.Button("Reset"u8)) + foreach (var plugin in pluginManager.InstalledPlugins) { - Framework.StatsHistory.Clear(); - } - - var statsHistory = Framework.StatsHistory.ToArray(); - var totalLast = statsHistory.Sum(stats => stats.Value.LastOrDefault()); - var totalAverage = statsHistory.Sum(stats => stats.Value.DefaultIfEmpty().Average()); - - ImGuiComponents.TextWithLabel("Total Last", $"{totalLast:F4}ms", "All last update times added together"); - ImGui.SameLine(); - ImGuiComponents.TextWithLabel("Total Average", $"{totalAverage:F4}ms", "All average update times added together"); - ImGui.SameLine(); - ImGuiComponents.TextWithLabel("Collective Average", $"{(statsHistory.Length != 0 ? totalAverage / statsHistory.Length : 0):F4}ms", "Average of all average update times"); - - ImGui.InputTextWithHint( - "###PluginStatWindow_FrameworkSearch"u8, - "Search"u8, - ref this.frameworkSearchText, - 500); - - using var table = ImRaii.Table( - "##PluginStatsFrameworkTimes"u8, - 4, - ImGuiTableFlags.RowBg - | ImGuiTableFlags.SizingStretchProp - | ImGuiTableFlags.Sortable - | ImGuiTableFlags.Resizable - | ImGuiTableFlags.ScrollY - | ImGuiTableFlags.Reorderable - | ImGuiTableFlags.Hideable); - if (table) - { - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Method"u8, ImGuiTableColumnFlags.None, 250); - ImGui.TableSetupColumn("Last"u8, ImGuiTableColumnFlags.NoSort, 50); // Changes too fast to sort - ImGui.TableSetupColumn("Longest"u8, ImGuiTableColumnFlags.None, 50); - ImGui.TableSetupColumn("Average"u8, ImGuiTableColumnFlags.None, 50); - ImGui.TableHeadersRow(); - - var sortSpecs = ImGui.TableGetSortSpecs(); - statsHistory = sortSpecs.Specs.ColumnIndex switch + if (plugin.DalamudInterface != null) { - 0 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending - ? statsHistory.OrderBy(handler => handler.Key).ToArray() - : statsHistory.OrderByDescending(handler => handler.Key).ToArray(), - 2 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending - ? statsHistory.OrderBy(handler => handler.Value.DefaultIfEmpty().Max()).ToArray() - : statsHistory.OrderByDescending(handler => handler.Value.DefaultIfEmpty().Max()).ToArray(), - 3 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending - ? statsHistory.OrderBy(handler => handler.Value.DefaultIfEmpty().Average()).ToArray() - : statsHistory.OrderByDescending(handler => handler.Value.DefaultIfEmpty().Average()).ToArray(), - _ => statsHistory, - }; - - foreach (var handlerHistory in statsHistory) - { - if (handlerHistory.Value.Count == 0) - { - continue; - } - - if (!this.frameworkSearchText.IsNullOrEmpty() - && handlerHistory.Key != null - && !handlerHistory.Key.Contains(this.frameworkSearchText, StringComparison.OrdinalIgnoreCase)) - { - continue; - } - - ImGui.TableNextRow(); - - ImGui.TableNextColumn(); - ImGui.Text($"{handlerHistory.Key}"); - - ImGui.TableNextColumn(); - ImGui.Text($"{handlerHistory.Value.Last():F4}ms"); - - ImGui.TableNextColumn(); - ImGui.Text($"{handlerHistory.Value.Max():F4}ms"); - - ImGui.TableNextColumn(); - ImGui.Text($"{handlerHistory.Value.Average():F4}ms"); + plugin.DalamudInterface.LocalUiBuilder.LastDrawTime = -1; + plugin.DalamudInterface.LocalUiBuilder.MaxDrawTime = -1; + plugin.DalamudInterface.LocalUiBuilder.DrawTimeHistory.Clear(); } } } - } - } - using (var tabItem = ImRaii.TabItem("Hooks"u8)) - { - if (tabItem) - { - ImGui.Checkbox("Show Dalamud Hooks"u8, ref this.showDalamudHooks); + var loadedPlugins = pluginManager.InstalledPlugins.Where(plugin => plugin.State == PluginState.Loaded); + var totalLast = loadedPlugins.Sum(plugin => plugin.DalamudInterface?.LocalUiBuilder.LastDrawTime ?? 0); + var totalAverage = loadedPlugins.Sum(plugin => plugin.DalamudInterface?.LocalUiBuilder.DrawTimeHistory.DefaultIfEmpty().Average() ?? 0); + + ImGuiComponents.TextWithLabel("Total Last", $"{totalLast / 10000f:F4}ms", "All last draw times added together"); + ImGui.SameLine(); + ImGuiComponents.TextWithLabel("Total Average", $"{totalAverage / 10000f:F4}ms", "All average draw times added together"); + ImGui.SameLine(); + ImGuiComponents.TextWithLabel("Collective Average", $"{(loadedPlugins.Any() ? totalAverage / loadedPlugins.Count() / 10000f : 0):F4}ms", "Average of all average draw times"); ImGui.InputTextWithHint( - "###PluginStatWindow_HookSearch"u8, - "Search"u8, - ref this.hookSearchText, + "###PluginStatWindow_DrawSearch", + "Search", + ref this.drawSearchText, 500); - using var table = ImRaii.Table( - "##PluginStatsHooks"u8, + if (ImGui.BeginTable( + "##PluginStatsDrawTimes", + 4, + ImGuiTableFlags.RowBg + | ImGuiTableFlags.SizingStretchProp + | ImGuiTableFlags.Sortable + | ImGuiTableFlags.Resizable + | ImGuiTableFlags.ScrollY + | ImGuiTableFlags.Reorderable + | ImGuiTableFlags.Hideable)) + { + ImGui.TableSetupScrollFreeze(0, 1); + ImGui.TableSetupColumn("Plugin"); + ImGui.TableSetupColumn("Last", ImGuiTableColumnFlags.NoSort); // Changes too fast to sort + ImGui.TableSetupColumn("Longest"); + ImGui.TableSetupColumn("Average"); + ImGui.TableHeadersRow(); + + var sortSpecs = ImGui.TableGetSortSpecs(); + loadedPlugins = sortSpecs.Specs.ColumnIndex switch + { + 0 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending + ? loadedPlugins.OrderBy(plugin => plugin.Name) + : loadedPlugins.OrderByDescending(plugin => plugin.Name), + 2 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending + ? loadedPlugins.OrderBy(plugin => plugin.DalamudInterface?.LocalUiBuilder.MaxDrawTime ?? 0) + : loadedPlugins.OrderByDescending(plugin => plugin.DalamudInterface?.LocalUiBuilder.MaxDrawTime ?? 0), + 3 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending + ? loadedPlugins.OrderBy(plugin => plugin.DalamudInterface?.LocalUiBuilder.DrawTimeHistory.DefaultIfEmpty().Average() ?? 0) + : loadedPlugins.OrderByDescending(plugin => plugin.DalamudInterface?.LocalUiBuilder.DrawTimeHistory.DefaultIfEmpty().Average() ?? 0), + _ => loadedPlugins, + }; + + foreach (var plugin in loadedPlugins) + { + if (!this.drawSearchText.IsNullOrEmpty() + && !plugin.Manifest.Name.Contains(this.drawSearchText, StringComparison.OrdinalIgnoreCase)) + { + continue; + } + + ImGui.TableNextRow(); + + ImGui.TableNextColumn(); + ImGui.Text(plugin.Manifest.Name); + + if (plugin.DalamudInterface != null) + { + ImGui.TableNextColumn(); + ImGui.Text($"{plugin.DalamudInterface.LocalUiBuilder.LastDrawTime / 10000f:F4}ms"); + + ImGui.TableNextColumn(); + ImGui.Text($"{plugin.DalamudInterface.LocalUiBuilder.MaxDrawTime / 10000f:F4}ms"); + + ImGui.TableNextColumn(); + ImGui.Text(plugin.DalamudInterface.LocalUiBuilder.DrawTimeHistory.Count > 0 + ? $"{plugin.DalamudInterface.LocalUiBuilder.DrawTimeHistory.Average() / 10000f:F4}ms" + : "-"); + } + } + + ImGui.EndTable(); + } + } + + ImGui.EndTabItem(); + } + + if (ImGui.BeginTabItem("Framework times")) + { + var doStats = Framework.StatsEnabled; + + if (ImGui.Checkbox("Enable Framework Update Tracking", ref doStats)) + { + Framework.StatsEnabled = doStats; + } + + if (doStats) + { + ImGui.SameLine(); + if (ImGui.Button("Reset")) + { + Framework.StatsHistory.Clear(); + } + + var statsHistory = Framework.StatsHistory.ToArray(); + var totalLast = statsHistory.Sum(stats => stats.Value.LastOrDefault()); + var totalAverage = statsHistory.Sum(stats => stats.Value.DefaultIfEmpty().Average()); + + ImGuiComponents.TextWithLabel("Total Last", $"{totalLast:F4}ms", "All last update times added together"); + ImGui.SameLine(); + ImGuiComponents.TextWithLabel("Total Average", $"{totalAverage:F4}ms", "All average update times added together"); + ImGui.SameLine(); + ImGuiComponents.TextWithLabel("Collective Average", $"{(statsHistory.Any() ? totalAverage / statsHistory.Length : 0):F4}ms", "Average of all average update times"); + + ImGui.InputTextWithHint( + "###PluginStatWindow_FrameworkSearch", + "Search", + ref this.frameworkSearchText, + 500); + + if (ImGui.BeginTable( + "##PluginStatsFrameworkTimes", + 4, + ImGuiTableFlags.RowBg + | ImGuiTableFlags.SizingStretchProp + | ImGuiTableFlags.Sortable + | ImGuiTableFlags.Resizable + | ImGuiTableFlags.ScrollY + | ImGuiTableFlags.Reorderable + | ImGuiTableFlags.Hideable)) + { + ImGui.TableSetupScrollFreeze(0, 1); + ImGui.TableSetupColumn("Method", ImGuiTableColumnFlags.None, 250); + ImGui.TableSetupColumn("Last", ImGuiTableColumnFlags.NoSort, 50); // Changes too fast to sort + ImGui.TableSetupColumn("Longest", ImGuiTableColumnFlags.None, 50); + ImGui.TableSetupColumn("Average", ImGuiTableColumnFlags.None, 50); + ImGui.TableHeadersRow(); + + var sortSpecs = ImGui.TableGetSortSpecs(); + statsHistory = sortSpecs.Specs.ColumnIndex switch + { + 0 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending + ? statsHistory.OrderBy(handler => handler.Key).ToArray() + : statsHistory.OrderByDescending(handler => handler.Key).ToArray(), + 2 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending + ? statsHistory.OrderBy(handler => handler.Value.DefaultIfEmpty().Max()).ToArray() + : statsHistory.OrderByDescending(handler => handler.Value.DefaultIfEmpty().Max()).ToArray(), + 3 => sortSpecs.Specs.SortDirection == ImGuiSortDirection.Ascending + ? statsHistory.OrderBy(handler => handler.Value.DefaultIfEmpty().Average()).ToArray() + : statsHistory.OrderByDescending(handler => handler.Value.DefaultIfEmpty().Average()).ToArray(), + _ => statsHistory, + }; + + foreach (var handlerHistory in statsHistory) + { + if (!handlerHistory.Value.Any()) + { + continue; + } + + if (!this.frameworkSearchText.IsNullOrEmpty() + && handlerHistory.Key != null + && !handlerHistory.Key.Contains(this.frameworkSearchText, StringComparison.OrdinalIgnoreCase)) + { + continue; + } + + ImGui.TableNextRow(); + + ImGui.TableNextColumn(); + ImGui.Text($"{handlerHistory.Key}"); + + ImGui.TableNextColumn(); + ImGui.Text($"{handlerHistory.Value.Last():F4}ms"); + + ImGui.TableNextColumn(); + ImGui.Text($"{handlerHistory.Value.Max():F4}ms"); + + ImGui.TableNextColumn(); + ImGui.Text($"{handlerHistory.Value.Average():F4}ms"); + } + + ImGui.EndTable(); + } + } + + ImGui.EndTabItem(); + } + + var toRemove = new List<Guid>(); + + if (ImGui.BeginTabItem("Hooks")) + { + ImGui.Checkbox("Show Dalamud Hooks", ref this.showDalamudHooks); + + ImGui.InputTextWithHint( + "###PluginStatWindow_HookSearch", + "Search", + ref this.hookSearchText, + 500); + + if (ImGui.BeginTable( + "##PluginStatsHooks", 4, ImGuiTableFlags.RowBg | ImGuiTableFlags.SizingStretchProp | ImGuiTableFlags.Resizable | ImGuiTableFlags.ScrollY | ImGuiTableFlags.Reorderable - | ImGuiTableFlags.Hideable); - if (table) + | ImGuiTableFlags.Hideable)) + { + ImGui.TableSetupScrollFreeze(0, 1); + ImGui.TableSetupColumn("Detour Method", ImGuiTableColumnFlags.None, 250); + ImGui.TableSetupColumn("Address", ImGuiTableColumnFlags.None, 100); + ImGui.TableSetupColumn("Status", ImGuiTableColumnFlags.None, 40); + ImGui.TableSetupColumn("Backend", ImGuiTableColumnFlags.None, 40); + ImGui.TableHeadersRow(); + + foreach (var (guid, trackedHook) in HookManager.TrackedHooks) { - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableSetupColumn("Detour Method"u8, ImGuiTableColumnFlags.None, 250); - ImGui.TableSetupColumn("Address"u8, ImGuiTableColumnFlags.None, 100); - ImGui.TableSetupColumn("Status"u8, ImGuiTableColumnFlags.None, 40); - ImGui.TableSetupColumn("Backend"u8, ImGuiTableColumnFlags.None, 40); - ImGui.TableHeadersRow(); - - foreach (var (guid, trackedHook) in HookManager.TrackedHooks) + try { - try + if (trackedHook.Hook.IsDisposed) + toRemove.Add(guid); + + if (!this.showDalamudHooks && trackedHook.Assembly == Assembly.GetExecutingAssembly()) + continue; + + if (!this.hookSearchText.IsNullOrEmpty()) { - if (!this.showDalamudHooks && trackedHook.Assembly == Assembly.GetExecutingAssembly()) + if ((trackedHook.Delegate.Target == null || !trackedHook.Delegate.Target.ToString().Contains(this.hookSearchText, StringComparison.OrdinalIgnoreCase)) + && !trackedHook.Delegate.Method.Name.Contains(this.hookSearchText, StringComparison.OrdinalIgnoreCase)) continue; - - if (!this.hookSearchText.IsNullOrEmpty()) - { - if ((trackedHook.Delegate.Target == null || !trackedHook.Delegate.Target.ToString().Contains(this.hookSearchText, StringComparison.OrdinalIgnoreCase)) - && !trackedHook.Delegate.Method.Name.Contains(this.hookSearchText, StringComparison.OrdinalIgnoreCase)) - continue; - } - - ImGui.TableNextRow(); - - ImGui.TableNextColumn(); - - ImGui.Text($"{trackedHook.Delegate.Target} :: {trackedHook.Delegate.Method.Name}"); - ImGui.TextDisabled(trackedHook.Assembly.FullName); - ImGui.TableNextColumn(); - if (!trackedHook.Hook.IsDisposed) - { - if (ImGui.Selectable($"{trackedHook.Hook.Address.ToInt64():X}")) - { - ImGui.SetClipboardText($"{trackedHook.Hook.Address.ToInt64():X}"); - Service<NotificationManager>.Get().AddNotification($"{trackedHook.Hook.Address.ToInt64():X}", "Copied to clipboard", NotificationType.Success); - } - - var processMemoryOffset = trackedHook.InProcessMemory; - if (processMemoryOffset.HasValue) - { - if (ImGui.Selectable($"ffxiv_dx11.exe+{processMemoryOffset:X}")) - { - ImGui.SetClipboardText($"ffxiv_dx11.exe+{processMemoryOffset:X}"); - Service<NotificationManager>.Get().AddNotification($"ffxiv_dx11.exe+{processMemoryOffset:X}", "Copied to clipboard", NotificationType.Success); - } - } - } - - ImGui.TableNextColumn(); - - if (trackedHook.Hook.IsDisposed) - { - ImGui.Text("Disposed"u8); - } - else - { - ImGui.Text(trackedHook.Hook.IsEnabled ? "Enabled" : "Disabled"); - } - - ImGui.TableNextColumn(); - - ImGui.Text(trackedHook.Hook.BackendName); } - catch (Exception ex) + + ImGui.TableNextRow(); + + ImGui.TableNextColumn(); + + ImGui.Text($"{trackedHook.Delegate.Target} :: {trackedHook.Delegate.Method.Name}"); + ImGui.TextDisabled(trackedHook.Assembly.FullName); + ImGui.TableNextColumn(); + if (!trackedHook.Hook.IsDisposed) { - Log.Error(ex, "Error drawing hooks in plugin stats"); + if (ImGui.Selectable($"{trackedHook.Hook.Address.ToInt64():X}")) + { + ImGui.SetClipboardText($"{trackedHook.Hook.Address.ToInt64():X}"); + Service<NotificationManager>.Get().AddNotification($"{trackedHook.Hook.Address.ToInt64():X}", "Copied to clipboard", NotificationType.Success); + } + + var processMemoryOffset = trackedHook.InProcessMemory; + if (processMemoryOffset.HasValue) + { + if (ImGui.Selectable($"ffxiv_dx11.exe+{processMemoryOffset:X}")) + { + ImGui.SetClipboardText($"ffxiv_dx11.exe+{processMemoryOffset:X}"); + Service<NotificationManager>.Get().AddNotification($"ffxiv_dx11.exe+{processMemoryOffset:X}", "Copied to clipboard", NotificationType.Success); + } + } } + + ImGui.TableNextColumn(); + + if (trackedHook.Hook.IsDisposed) + { + ImGui.Text("Disposed"); + } + else + { + ImGui.Text(trackedHook.Hook.IsEnabled ? "Enabled" : "Disabled"); + } + + ImGui.TableNextColumn(); + + ImGui.Text(trackedHook.Hook.BackendName); + } + catch (Exception ex) + { + Log.Error(ex, "Error drawing hooks in plugin stats"); } } + + ImGui.EndTable(); } } + + if (ImGui.IsWindowAppearing()) + { + foreach (var guid in toRemove) + { + HookManager.TrackedHooks.TryRemove(guid, out _); + } + } + + ImGui.EndTabBar(); } } diff --git a/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs b/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs index 8ff407cd7..28dcdb117 100644 --- a/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ProfilerWindow.cs @@ -3,12 +3,12 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Utility.Numerics; using Dalamud.Utility.Timing; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; @@ -19,7 +19,7 @@ public class ProfilerWindow : Window { private double min; private double max; - private List<List<Tuple<double, double>>> occupied = []; + private List<List<Tuple<double, double>>> occupied = new(); /// <summary> /// Initializes a new instance of the <see cref="ProfilerWindow"/> class. @@ -43,11 +43,11 @@ public class ProfilerWindow : Window var actualMin = Timings.AllTimings.Keys.Min(x => x.StartTime); var actualMax = Timings.AllTimings.Keys.Max(x => x.EndTime); - ImGui.Text("Timings"u8); + ImGui.Text("Timings"); var childHeight = Math.Max(300, 20 * (2.5f + this.occupied.Count)); - if (ImGui.BeginChild("Timings"u8, new Vector2(0, childHeight), true)) + if (ImGui.BeginChild("Timings", new Vector2(0, childHeight), true)) { var pos = ImGui.GetCursorScreenPos(); @@ -109,7 +109,7 @@ public class ProfilerWindow : Window } if (depth == this.occupied.Count) - this.occupied.Add([]); + this.occupied.Add(new()); this.occupied[depth].Add(Tuple.Create(timingHandle.StartTime, timingHandle.EndTime)); parentDepthDict[timingHandle.Id] = depth; @@ -178,21 +178,21 @@ public class ProfilerWindow : Window if (rectInfo.Hover) { ImGui.BeginTooltip(); - ImGui.Text(rectInfo.Timing.Name); - ImGui.Text(rectInfo.Timing.MemberName); - ImGui.Text($"{rectInfo.Timing.FileName}:{rectInfo.Timing.LineNumber}"); - ImGui.Text($"Duration: {rectInfo.Timing.Duration}ms"); + ImGui.TextUnformatted(rectInfo.Timing.Name); + ImGui.TextUnformatted(rectInfo.Timing.MemberName); + ImGui.TextUnformatted($"{rectInfo.Timing.FileName}:{rectInfo.Timing.LineNumber}"); + ImGui.TextUnformatted($"Duration: {rectInfo.Timing.Duration}ms"); if (rectInfo.Timing.Parent != null) - ImGui.Text($"Parent: {rectInfo.Timing.Parent.Name}"); + ImGui.TextUnformatted($"Parent: {rectInfo.Timing.Parent.Name}"); ImGui.EndTooltip(); } } - var eventTextDepth = maxRectDept + 2; + uint eventTextDepth = maxRectDept + 2; var eventsXPos = new List<float>(); const float eventsXPosFudge = 5f; - + foreach (var timingEvent in Timings.Events) { var startX = (timingEvent.StartTime - this.min) / (this.max - this.min) * width; @@ -217,7 +217,7 @@ public class ProfilerWindow : Window { textPos.X = pos.X + (uint)startX - textSize.X - padding; } - + var numClashes = eventsXPos.Count(x => Math.Abs(x - textPos.X) < textSize.X + eventsXPosFudge); if (numClashes > 0) { @@ -228,7 +228,7 @@ public class ProfilerWindow : Window textPos, ImGui.GetColorU32(ImGuiColors.DalamudWhite), timingEvent.Name); - + eventsXPos.Add(textPos.X); } } @@ -236,20 +236,20 @@ public class ProfilerWindow : Window ImGui.EndChild(); var sliderMin = (float)this.min / 1000f; - if (ImGui.SliderFloat("Start"u8, ref sliderMin, (float)actualMin / 1000f, (float)this.max / 1000f, "%.2fs")) + if (ImGui.SliderFloat("Start", ref sliderMin, (float)actualMin / 1000f, (float)this.max / 1000f, "%.2fs")) { this.min = sliderMin * 1000f; } var sliderMax = (float)this.max / 1000f; - if (ImGui.SliderFloat("End"u8, ref sliderMax, (float)this.min / 1000f, (float)actualMax / 1000f, "%.2fs")) + if (ImGui.SliderFloat("End", ref sliderMax, (float)this.min / 1000f, (float)actualMax / 1000f, "%.2fs")) { this.max = sliderMax * 1000f; } var sizeShown = (float)(this.max - this.min) / 1000f; var sizeActual = (float)(actualMax - actualMin) / 1000f; - if (ImGui.SliderFloat("Size"u8, ref sizeShown, sizeActual / 10f, sizeActual, "%.2fs")) + if (ImGui.SliderFloat("Size", ref sizeShown, sizeActual / 10f, sizeActual, "%.2fs")) { this.max = this.min + (sizeShown * 1000f); } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ActorTableSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ActorTableAgingStep.cs similarity index 77% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/ActorTableSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ActorTableAgingStep.cs index 013333935..242e93a49 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ActorTableSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ActorTableAgingStep.cs @@ -1,14 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Objects; -using Dalamud.Plugin.SelfTest; using Dalamud.Utility; +using ImGuiNET; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the Actor Table. /// </summary> -internal class ActorTableSelfTestStep : ISelfTestStep +internal class ActorTableAgingStep : IAgingStep { private int index = 0; @@ -20,7 +19,7 @@ internal class ActorTableSelfTestStep : ISelfTestStep { var objectTable = Service<ObjectTable>.Get(); - ImGui.Text("Checking actor table..."u8); + ImGui.Text("Checking actor table..."); if (this.index == objectTable.Length - 1) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AddonLifecycleSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AddonLifecycleAgingStep.cs similarity index 86% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/AddonLifecycleSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AddonLifecycleAgingStep.cs index e2c1a40df..28edab88a 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AddonLifecycleSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AddonLifecycleAgingStep.cs @@ -1,39 +1,39 @@ -using System.Collections.Generic; +using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup AddonLifecycle Service. /// </summary> -internal class AddonLifecycleSelfTestStep : ISelfTestStep +internal class AddonLifecycleAgingStep : IAgingStep { private readonly List<AddonLifecycleEventListener> listeners; - + private AddonLifecycle? service; private TestStep currentStep = TestStep.CharacterRefresh; private bool listenersRegistered; /// <summary> - /// Initializes a new instance of the <see cref="AddonLifecycleSelfTestStep"/> class. + /// Initializes a new instance of the <see cref="AddonLifecycleAgingStep"/> class. /// </summary> - public AddonLifecycleSelfTestStep() + public AddonLifecycleAgingStep() { - this.listeners = - [ + this.listeners = new List<AddonLifecycleEventListener> + { new(AddonEvent.PostSetup, "Character", this.PostSetup), new(AddonEvent.PostUpdate, "Character", this.PostUpdate), new(AddonEvent.PostDraw, "Character", this.PostDraw), new(AddonEvent.PostRefresh, "Character", this.PostRefresh), new(AddonEvent.PostRequestedUpdate, "Character", this.PostRequestedUpdate), new(AddonEvent.PreFinalize, "Character", this.PreFinalize), - ]; + }; } - + private enum TestStep { CharacterRefresh, @@ -44,10 +44,10 @@ internal class AddonLifecycleSelfTestStep : ISelfTestStep CharacterFinalize, Complete, } - + /// <inheritdoc/> public string Name => "Test AddonLifecycle"; - + /// <inheritdoc/> public SelfTestStepResult RunStep() { @@ -60,26 +60,26 @@ internal class AddonLifecycleSelfTestStep : ISelfTestStep { this.service.RegisterListener(listener); } - + this.listenersRegistered = true; } switch (this.currentStep) { case TestStep.CharacterRefresh: - ImGui.Text("Open Character Window."u8); + ImGui.Text("Open Character Window."); break; case TestStep.CharacterSetup: - ImGui.Text("Open Character Window."u8); + ImGui.Text("Open Character Window."); break; case TestStep.CharacterRequestedUpdate: - ImGui.Text("Change tabs, or un-equip/equip gear."u8); + ImGui.Text("Change tabs, or un-equip/equip gear."); break; case TestStep.CharacterFinalize: - ImGui.Text("Close Character Window."u8); + ImGui.Text("Close Character Window."); break; case TestStep.CharacterUpdate: @@ -89,7 +89,7 @@ internal class AddonLifecycleSelfTestStep : ISelfTestStep // Nothing to report to tester. break; } - + return this.currentStep is TestStep.Complete ? SelfTestStepResult.Pass : SelfTestStepResult.Waiting; } @@ -101,32 +101,32 @@ internal class AddonLifecycleSelfTestStep : ISelfTestStep this.service?.UnregisterListener(listener); } } - + private void PostSetup(AddonEvent eventType, AddonArgs addonInfo) - { + { if (this.currentStep is TestStep.CharacterSetup) this.currentStep++; } - + private void PostUpdate(AddonEvent eventType, AddonArgs addonInfo) { if (this.currentStep is TestStep.CharacterUpdate) this.currentStep++; } - + private void PostDraw(AddonEvent eventType, AddonArgs addonInfo) { if (this.currentStep is TestStep.CharacterDraw) this.currentStep++; } - + private void PostRefresh(AddonEvent eventType, AddonArgs addonInfo) { if (this.currentStep is TestStep.CharacterRefresh) this.currentStep++; } - + private void PostRequestedUpdate(AddonEvent eventType, AddonArgs addonInfo) { if (this.currentStep is TestStep.CharacterRequestedUpdate) this.currentStep++; } - + private void PreFinalize(AddonEvent eventType, AddonArgs addonInfo) { if (this.currentStep is TestStep.CharacterFinalize) this.currentStep++; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AetheryteListSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AetheryteListAgingStep.cs similarity index 79% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/AetheryteListSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AetheryteListAgingStep.cs index 644c23e88..6a4519eab 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/AetheryteListSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AetheryteListAgingStep.cs @@ -1,14 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Aetherytes; -using Dalamud.Plugin.SelfTest; using Dalamud.Utility; +using ImGuiNET; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the Aetheryte List. /// </summary> -internal class AetheryteListSelfTestStep : ISelfTestStep +internal class AetheryteListAgingStep : IAgingStep { private int index = 0; @@ -20,7 +19,7 @@ internal class AetheryteListSelfTestStep : ISelfTestStep { var list = Service<AetheryteList>.Get(); - ImGui.Text("Checking aetheryte list..."u8); + ImGui.Text("Checking aetheryte list..."); if (this.index == list.Length - 1) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ChatAgingStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ChatAgingStep.cs new file mode 100644 index 000000000..2fdd8c060 --- /dev/null +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ChatAgingStep.cs @@ -0,0 +1,73 @@ +using Dalamud.Game.Gui; +using Dalamud.Game.Text; +using Dalamud.Game.Text.SeStringHandling; + +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; + +/// <summary> +/// Test setup for Chat. +/// </summary> +internal class ChatAgingStep : IAgingStep +{ + private int step = 0; + private bool subscribed = false; + private bool hasPassed = false; + + /// <inheritdoc/> + public string Name => "Test Chat"; + + /// <inheritdoc/> + public SelfTestStepResult RunStep() + { + var chatGui = Service<ChatGui>.Get(); + + switch (this.step) + { + case 0: + chatGui.Print("Testing!"); + this.step++; + + break; + + case 1: + ImGui.Text("Type \"/e DALAMUD\" in chat..."); + + if (!this.subscribed) + { + this.subscribed = true; + chatGui.ChatMessage += this.ChatOnOnChatMessage; + } + + if (this.hasPassed) + { + chatGui.ChatMessage -= this.ChatOnOnChatMessage; + this.subscribed = false; + return SelfTestStepResult.Pass; + } + + break; + } + + return SelfTestStepResult.Waiting; + } + + /// <inheritdoc/> + public void CleanUp() + { + var chatGui = Service<ChatGui>.Get(); + + chatGui.ChatMessage -= this.ChatOnOnChatMessage; + this.subscribed = false; + } + + private void ChatOnOnChatMessage( + XivChatType type, int timestamp, ref SeString sender, ref SeString message, ref bool ishandled) + { + if (type == XivChatType.Echo && message.TextValue == "DALAMUD") + { + this.hasPassed = true; + } + } +} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ConditionSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ConditionAgingStep.cs similarity index 75% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/ConditionSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ConditionAgingStep.cs index 1c9b589d0..8ce2111c9 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ConditionSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ConditionAgingStep.cs @@ -1,15 +1,14 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Plugin.SelfTest; +using ImGuiNET; using Serilog; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for Condition. /// </summary> -internal class ConditionSelfTestStep : ISelfTestStep +internal class ConditionAgingStep : IAgingStep { /// <inheritdoc/> public string Name => "Test Condition"; @@ -25,7 +24,7 @@ internal class ConditionSelfTestStep : ISelfTestStep return SelfTestStepResult.Fail; } - ImGui.Text("Please jump..."u8); + ImGui.Text("Please jump..."); return condition[ConditionFlag.Jumping] ? SelfTestStepResult.Pass : SelfTestStepResult.Waiting; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ContextMenuSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ContextMenuAgingStep.cs similarity index 92% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/ContextMenuSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ContextMenuAgingStep.cs index b61c62589..f08eccd96 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ContextMenuSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ContextMenuAgingStep.cs @@ -2,25 +2,22 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using Dalamud.Bindings.ImGui; using Dalamud.Data; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.Gui.ContextMenu; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Plugin.SelfTest; - +using ImGuiNET; using Lumina.Excel; using Lumina.Excel.Sheets; - using Serilog; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Tests for context menu. /// </summary> -internal class ContextMenuSelfTestStep : ISelfTestStep +internal class ContextMenuAgingStep : IAgingStep { private SubStep currentSubStep; @@ -64,19 +61,19 @@ internal class ContextMenuSelfTestStep : ISelfTestStep { ImGui.Text($"Is the data in the submenu correct?"); - if (ImGui.Button("Yes"u8)) + if (ImGui.Button("Yes")) this.currentSubStep++; ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) return SelfTestStepResult.Fail; } else { ImGui.Text("Right-click an item and select \"Self Test\"."); - if (ImGui.Button("Skip"u8)) + if (ImGui.Button("Skip")) this.currentSubStep++; } @@ -87,19 +84,19 @@ internal class ContextMenuSelfTestStep : ISelfTestStep { ImGui.Text($"Did you click \"{character.Name}\" ({character.ClassJob.Value.Abbreviation.ExtractText()})?"); - if (ImGui.Button("Yes"u8)) + if (ImGui.Button("Yes")) this.currentSubStep++; ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) return SelfTestStepResult.Fail; } else { - ImGui.Text("Right-click a character."u8); + ImGui.Text("Right-click a character."); - if (ImGui.Button("Skip"u8)) + if (ImGui.Button("Skip")) this.currentSubStep++; } @@ -113,7 +110,7 @@ internal class ContextMenuSelfTestStep : ISelfTestStep return SelfTestStepResult.Waiting; } - + /// <inheritdoc/> public void CleanUp() { @@ -148,7 +145,7 @@ internal class ContextMenuSelfTestStep : ISelfTestStep var targetItem = (a.Target as MenuTargetInventory)!.TargetItem; if (targetItem is { } item) { - name = (this.itemSheet.GetRowOrDefault(item.BaseItemId)?.Name.ExtractText() ?? $"Unknown ({item.BaseItemId})") + (item.IsHq ? $" {SeIconChar.HighQuality.ToIconString()}" : string.Empty); + name = (this.itemSheet.GetRowOrDefault(item.ItemId)?.Name.ExtractText() ?? $"Unknown ({item.ItemId})") + (item.IsHq ? $" {SeIconChar.HighQuality.ToIconString()}" : string.Empty); count = item.Quantity; } else @@ -247,7 +244,7 @@ internal class ContextMenuSelfTestStep : ISelfTestStep b.AppendLine($"Container: {item.ContainerType}"); b.AppendLine($"Slot: {item.InventorySlot}"); b.AppendLine($"Quantity: {item.Quantity}"); - b.AppendLine($"{(item.IsCollectable ? "Collectability" : "Spiritbond")}: {item.SpiritbondOrCollectability}"); + b.AppendLine($"{(item.IsCollectable ? "Collectability" : "Spiritbond")}: {item.Spiritbond}"); b.AppendLine($"Condition: {item.Condition / 300f:0.00}% ({item.Condition})"); b.AppendLine($"Is HQ: {item.IsHq}"); b.AppendLine($"Is Company Crest Applied: {item.IsCompanyCrestApplied}"); @@ -286,6 +283,11 @@ internal class ContextMenuSelfTestStep : ISelfTestStep } } + if (item.Stains[0] != 0) + b.AppendLine($"{this.stainSheet.GetRowOrDefault(item.Stains[0])?.Name.ExtractText() ?? "Unknown"} ({item.Stains[0]})"); + else + b.AppendLine("None"); + b.Append("Glamoured Item: "); if (item.GlamourId != 0) b.AppendLine($"{this.itemSheet.GetRowOrDefault(item.GlamourId)?.Name.ExtractText() ?? "Unknown"} ({item.GlamourId})"); diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DutyStateSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/DutyStateAgingStep.cs similarity index 80% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/DutyStateSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/DutyStateAgingStep.cs index bf3ffa5c9..19e218ecb 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DutyStateSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/DutyStateAgingStep.cs @@ -1,13 +1,13 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.DutyState; -using Dalamud.Plugin.SelfTest; +using Dalamud.Game.DutyState; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the DutyState service class. /// </summary> -internal class DutyStateSelfTestStep : ISelfTestStep +internal class DutyStateAgingStep : IAgingStep { private bool subscribed = false; private bool hasPassed = false; @@ -20,7 +20,7 @@ internal class DutyStateSelfTestStep : ISelfTestStep { var dutyState = Service<DutyState>.Get(); - ImGui.Text("Enter a duty now..."u8); + ImGui.Text("Enter a duty now..."); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/EnterTerritorySelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/EnterTerritoryAgingStep.cs similarity index 84% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/EnterTerritorySelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/EnterTerritoryAgingStep.cs index 4cce1e377..a61af7f94 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/EnterTerritorySelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/EnterTerritoryAgingStep.cs @@ -1,13 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for Territory Change. /// </summary> -internal class EnterTerritorySelfTestStep : ISelfTestStep +internal class EnterTerritoryAgingStep : IAgingStep { private readonly ushort territory; private readonly string terriName; @@ -15,11 +15,11 @@ internal class EnterTerritorySelfTestStep : ISelfTestStep private bool hasPassed = false; /// <summary> - /// Initializes a new instance of the <see cref="EnterTerritorySelfTestStep"/> class. + /// Initializes a new instance of the <see cref="EnterTerritoryAgingStep"/> class. /// </summary> /// <param name="terri">The territory to check for.</param> /// <param name="name">Name to show.</param> - public EnterTerritorySelfTestStep(ushort terri, string name) + public EnterTerritoryAgingStep(ushort terri, string name) { this.terriName = name; this.territory = terri; @@ -33,7 +33,7 @@ internal class EnterTerritorySelfTestStep : ISelfTestStep { var clientState = Service<ClientState>.Get(); - ImGui.Text(this.Name); + ImGui.TextUnformatted(this.Name); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FateTableSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/FateTableAgingStep.cs similarity index 80% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/FateTableSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/FateTableAgingStep.cs index a413f4932..eef986302 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FateTableSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/FateTableAgingStep.cs @@ -1,14 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Fates; -using Dalamud.Plugin.SelfTest; using Dalamud.Utility; +using ImGuiNET; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the Fate Table. /// </summary> -internal class FateTableSelfTestStep : ISelfTestStep +internal class FateTableAgingStep : IAgingStep { private byte index = 0; @@ -20,11 +19,11 @@ internal class FateTableSelfTestStep : ISelfTestStep { var fateTable = Service<FateTable>.Get(); - ImGui.Text("Checking fate table..."u8); + ImGui.Text("Checking fate table..."); if (fateTable.Length == 0) { - ImGui.Text("Go to a zone that has FATEs currently up."u8); + ImGui.Text("Go to a zone that has FATEs currently up."); return SelfTestStepResult.Waiting; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GameConfigSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/GameConfigAgingStep.cs similarity index 89% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/GameConfigSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/GameConfigAgingStep.cs index fa29068c5..97c163590 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GameConfigSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/GameConfigAgingStep.cs @@ -1,13 +1,13 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Config; -using Dalamud.Plugin.SelfTest; +using Dalamud.Game.Config; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test of GameConfig. /// </summary> -internal class GameConfigSelfTestStep : ISelfTestStep +internal class GameConfigAgingStep : IAgingStep { private bool started; private bool isStartedLegacy; @@ -44,7 +44,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Standard"u8); + ImGui.Text("Switch Movement Type to Standard"); } return SelfTestStepResult.Waiting; @@ -58,7 +58,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Legacy"u8); + ImGui.Text("Switch Movement Type to Legacy"); } return SelfTestStepResult.Waiting; @@ -74,7 +74,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Legacy"u8); + ImGui.Text("Switch Movement Type to Legacy"); } return SelfTestStepResult.Waiting; @@ -88,7 +88,7 @@ internal class GameConfigSelfTestStep : ISelfTestStep } else { - ImGui.Text("Switch Movement Type to Standard"u8); + ImGui.Text("Switch Movement Type to Standard"); } return SelfTestStepResult.Waiting; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/GamepadStateAgingStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/GamepadStateAgingStep.cs new file mode 100644 index 000000000..ccee570c7 --- /dev/null +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/GamepadStateAgingStep.cs @@ -0,0 +1,37 @@ +using Dalamud.Game.ClientState.GamePad; + +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; + +/// <summary> +/// Test setup for the Gamepad State. +/// </summary> +internal class GamepadStateAgingStep : IAgingStep +{ + /// <inheritdoc/> + public string Name => "Test GamePadState"; + + /// <inheritdoc/> + public SelfTestStepResult RunStep() + { + var gamepadState = Service<GamepadState>.Get(); + + ImGui.Text("Hold down North, East, L1"); + + if (gamepadState.Raw(GamepadButtons.North) == 1 + && gamepadState.Raw(GamepadButtons.East) == 1 + && gamepadState.Raw(GamepadButtons.L1) == 1) + { + return SelfTestStepResult.Pass; + } + + return SelfTestStepResult.Waiting; + } + + /// <inheritdoc/> + public void CleanUp() + { + // ignored + } +} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HandledExceptionSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/HandledExceptionAgingStep.cs similarity index 79% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/HandledExceptionSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/HandledExceptionAgingStep.cs index c9f7df8a5..5d2173ad5 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HandledExceptionSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/HandledExceptionAgingStep.cs @@ -1,13 +1,11 @@ using System.Runtime.InteropServices; -using Dalamud.Plugin.SelfTest; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test dedicated to handling of Access Violations. /// </summary> -internal class HandledExceptionSelfTestStep : ISelfTestStep +internal class HandledExceptionAgingStep : IAgingStep { /// <inheritdoc/> public string Name => "Test Handled Exception"; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HoverSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/HoverAgingStep.cs similarity index 83% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/HoverSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/HoverAgingStep.cs index e33f16e7f..8f509b8e7 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/HoverSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/HoverAgingStep.cs @@ -1,13 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the Hover events. /// </summary> -internal class HoverSelfTestStep : ISelfTestStep +internal class HoverAgingStep : IAgingStep { private bool clearedItem = false; private bool clearedAction = false; @@ -22,7 +22,7 @@ internal class HoverSelfTestStep : ISelfTestStep if (!this.clearedItem) { - ImGui.Text("Hover WHM soul crystal..."u8); + ImGui.Text("Hover WHM soul crystal..."); if (gameGui.HoveredItem == 4547) { diff --git a/Dalamud/Plugin/SelfTest/ISelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/IAgingStep.cs similarity index 85% rename from Dalamud/Plugin/SelfTest/ISelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/IAgingStep.cs index 2b0de7bf3..680961344 100644 --- a/Dalamud/Plugin/SelfTest/ISelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/IAgingStep.cs @@ -1,9 +1,9 @@ -namespace Dalamud.Plugin.SelfTest; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Interface for test implementations. /// </summary> -public interface ISelfTestStep +internal interface IAgingStep { /// <summary> /// Gets the name of the test. diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ItemPayloadSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ItemPayloadAgingStep.cs similarity index 86% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/ItemPayloadSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ItemPayloadAgingStep.cs index c441796a2..1ccb5934f 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ItemPayloadSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ItemPayloadAgingStep.cs @@ -1,15 +1,15 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Gui; +using Dalamud.Game.Gui; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Plugin.SelfTest; -using Dalamud.Utility; +using Dalamud.Game.Text.SeStringHandling.Payloads; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for item payloads. /// </summary> -internal class ItemPayloadSelfTestStep : ISelfTestStep +internal class ItemPayloadAgingStep : IAgingStep { private SubStep currentSubStep; @@ -53,37 +53,37 @@ internal class ItemPayloadSelfTestStep : ISelfTestStep this.currentSubStep++; break; case SubStep.HoverNormalItem: - ImGui.Text("Hover the item."u8); + ImGui.Text("Hover the item."); if (gameGui.HoveredItem != normalItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; break; case SubStep.PrintHqItem: - toPrint = SeString.CreateItemLink(hqItemId, ItemKind.Hq); + toPrint = SeString.CreateItemLink(hqItemId, ItemPayload.ItemKind.Hq); this.currentSubStep++; break; case SubStep.HoverHqItem: - ImGui.Text("Hover the item."u8); + ImGui.Text("Hover the item."); if (gameGui.HoveredItem != 1_000_000 + hqItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; break; case SubStep.PrintCollectable: - toPrint = SeString.CreateItemLink(collectableItemId, ItemKind.Collectible); + toPrint = SeString.CreateItemLink(collectableItemId, ItemPayload.ItemKind.Collectible); this.currentSubStep++; break; case SubStep.HoverCollectable: - ImGui.Text("Hover the item."u8); + ImGui.Text("Hover the item."); if (gameGui.HoveredItem != 500_000 + collectableItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; break; case SubStep.PrintEventItem: - toPrint = SeString.CreateItemLink(eventItemId, ItemKind.EventItem); + toPrint = SeString.CreateItemLink(eventItemId, ItemPayload.ItemKind.EventItem); this.currentSubStep++; break; case SubStep.HoverEventItem: - ImGui.Text("Hover the item."u8); + ImGui.Text("Hover the item."); if (gameGui.HoveredItem != eventItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; @@ -93,7 +93,7 @@ internal class ItemPayloadSelfTestStep : ISelfTestStep this.currentSubStep++; break; case SubStep.HoverNormalWithText: - ImGui.Text("Hover the item."u8); + ImGui.Text("Hover the item."); if (gameGui.HoveredItem != normalItemId) return SelfTestStepResult.Waiting; this.currentSubStep++; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/KeyStateSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/KeyStateAgingStep.cs similarity index 75% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/KeyStateSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/KeyStateAgingStep.cs index 2e936884e..522943e87 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/KeyStateSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/KeyStateAgingStep.cs @@ -1,13 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Keys; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the Key State. /// </summary> -internal class KeyStateSelfTestStep : ISelfTestStep +internal class KeyStateAgingStep : IAgingStep { /// <inheritdoc/> public string Name => "Test KeyState"; @@ -17,7 +17,7 @@ internal class KeyStateSelfTestStep : ISelfTestStep { var keyState = Service<KeyState>.Get(); - ImGui.Text("Hold down D,A,L,M,U"u8); + ImGui.Text("Hold down D,A,L,M,U"); if (keyState[VirtualKey.D] && keyState[VirtualKey.A] diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LoginEventSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LoginEventAgingStep.cs similarity index 83% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/LoginEventSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LoginEventAgingStep.cs index 97df6bf94..d755e95ef 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LoginEventSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LoginEventAgingStep.cs @@ -1,13 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the login events. /// </summary> -internal class LoginEventSelfTestStep : ISelfTestStep +internal class LoginEventAgingStep : IAgingStep { private bool subscribed = false; private bool hasPassed = false; @@ -20,7 +20,7 @@ internal class LoginEventSelfTestStep : ISelfTestStep { var clientState = Service<ClientState>.Get(); - ImGui.Text("Log in now..."u8); + ImGui.Text("Log in now..."); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LogoutEventSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LogoutEventAgingStep.cs similarity index 83% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/LogoutEventSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LogoutEventAgingStep.cs index bc337cf3e..723182111 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LogoutEventSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LogoutEventAgingStep.cs @@ -1,13 +1,13 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for the login events. /// </summary> -internal class LogoutEventSelfTestStep : ISelfTestStep +internal class LogoutEventAgingStep : IAgingStep { private bool subscribed = false; private bool hasPassed = false; @@ -20,7 +20,7 @@ internal class LogoutEventSelfTestStep : ISelfTestStep { var clientState = Service<ClientState>.Get(); - ImGui.Text("Log out now..."u8); + ImGui.Text("Log out now..."); if (!this.subscribed) { diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LuminaSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LuminaAgingStep.cs similarity index 76% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/LuminaSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LuminaAgingStep.cs index dd8a16689..0f411b8f1 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/LuminaSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/LuminaAgingStep.cs @@ -1,17 +1,15 @@ using Dalamud.Data; -using Dalamud.Plugin.SelfTest; using Dalamud.Utility; - using Lumina.Excel; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for Lumina. /// </summary> /// <typeparam name="T">ExcelRow to run test on.</typeparam> -/// <param name="isLargeSheet">Whether the sheet is large. If it is large, the self test will iterate through the full sheet in one frame and benchmark the time taken.</param> -internal class LuminaSelfTestStep<T>(bool isLargeSheet) : ISelfTestStep +/// <param name="isLargeSheet">Whether or not the sheet is large. If it is large, the self test will iterate through the full sheet in one frame and benchmark the time taken.</param> +internal class LuminaAgingStep<T>(bool isLargeSheet) : IAgingStep where T : struct, IExcelRow<T> { private int step = 0; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/MarketBoardSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/MarketBoardAgingStep.cs similarity index 85% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/MarketBoardSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/MarketBoardAgingStep.cs index ff6b64383..513141fa9 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/MarketBoardSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/MarketBoardAgingStep.cs @@ -1,17 +1,16 @@ -using System.Globalization; +using System.Globalization; using System.Linq; -using Dalamud.Bindings.ImGui; using Dalamud.Game.MarketBoard; using Dalamud.Game.Network.Structures; -using Dalamud.Plugin.SelfTest; +using ImGuiNET; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Tests the various market board events. /// </summary> -internal class MarketBoardSelfTestStep : ISelfTestStep +internal class MarketBoardAgingStep : IAgingStep { private SubStep currentSubStep; private bool eventsSubscribed; @@ -51,24 +50,24 @@ internal class MarketBoardSelfTestStep : ISelfTestStep if (this.historyListing == null) { - ImGui.Text("Goto a Market Board. Open any item that has historical sale listings."u8); + ImGui.Text("Goto a Market Board. Open any item that has historical sale listings."); } else { - ImGui.Text("Does one of the historical sales match this information?"u8); + ImGui.Text("Does one of the historical sales match this information?"); ImGui.Separator(); ImGui.Text($"Quantity: {this.historyListing.Quantity.ToString()}"); ImGui.Text($"Buyer: {this.historyListing.BuyerName}"); ImGui.Text($"Sale Price: {this.historyListing.SalePrice.ToString()}"); - ImGui.Text($"Purchase Time: {this.historyListing.PurchaseTime.ToLocalTime().ToString(CultureInfo.InvariantCulture)}"); + ImGui.Text($"Purchase Time: {this.historyListing.PurchaseTime.ToString(CultureInfo.InvariantCulture)}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip"u8)) + if (ImGui.Button("Looks Correct / Skip")) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) { return SelfTestStepResult.Fail; } @@ -79,24 +78,24 @@ internal class MarketBoardSelfTestStep : ISelfTestStep if (this.itemListing == null) { - ImGui.Text("Goto a Market Board. Open any item that has sale listings."u8); + ImGui.Text("Goto a Market Board. Open any item that has sale listings."); } else { - ImGui.Text("Does one of the sales match this information?"u8); + ImGui.Text("Does one of the sales match this information?"); ImGui.Separator(); ImGui.Text($"Quantity: {this.itemListing.ItemQuantity.ToString()}"); ImGui.Text($"Price Per Unit: {this.itemListing.PricePerUnit}"); ImGui.Text($"Retainer Name: {this.itemListing.RetainerName}"); ImGui.Text($"Is HQ?: {(this.itemListing.IsHq ? "Yes" : "No")}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip"u8)) + if (ImGui.Button("Looks Correct / Skip")) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) { return SelfTestStepResult.Fail; } @@ -106,23 +105,23 @@ internal class MarketBoardSelfTestStep : ISelfTestStep case SubStep.PurchaseRequests: if (this.marketBoardPurchaseRequest == null) { - ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."u8); + ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."); } else { - ImGui.TextWrapped("Does this information match the purchase you made? This is testing the request to the server."u8); + ImGui.Text("Does this information match the purchase you made? This is testing the request to the server."); ImGui.Separator(); ImGui.Text($"Quantity: {this.marketBoardPurchaseRequest.ItemQuantity.ToString()}"); ImGui.Text($"Item ID: {this.marketBoardPurchaseRequest.CatalogId}"); ImGui.Text($"Price Per Unit: {this.marketBoardPurchaseRequest.PricePerUnit}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip"u8)) + if (ImGui.Button("Looks Correct / Skip")) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) { return SelfTestStepResult.Fail; } @@ -132,22 +131,22 @@ internal class MarketBoardSelfTestStep : ISelfTestStep case SubStep.Purchases: if (this.marketBoardPurchase == null) { - ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."u8); + ImGui.Text("Goto a Market Board. Purchase any item, the cheapest you can find."); } else { - ImGui.TextWrapped("Does this information match the purchase you made? This is testing the response from the server."u8); + ImGui.Text("Does this information match the purchase you made? This is testing the response from the server."); ImGui.Separator(); ImGui.Text($"Quantity: {this.marketBoardPurchase.ItemQuantity.ToString()}"); ImGui.Text($"Item ID: {this.marketBoardPurchase.CatalogId}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip"u8)) + if (ImGui.Button("Looks Correct / Skip")) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) { return SelfTestStepResult.Fail; } @@ -157,11 +156,11 @@ internal class MarketBoardSelfTestStep : ISelfTestStep case SubStep.Taxes: if (this.marketTaxRate == null) { - ImGui.TextWrapped("Goto a Retainer Vocate and talk to then. Click the 'View market tax rates' menu item."u8); + ImGui.Text("Goto a Retainer Vocate and talk to then. Click the 'View market tax rates' menu item."); } else { - ImGui.Text("Does this market tax rate information look correct?"u8); + ImGui.Text("Does this market tax rate information look correct?"); ImGui.Separator(); ImGui.Text($"Uldah: {this.marketTaxRate.UldahTax.ToString()}"); ImGui.Text($"Gridania: {this.marketTaxRate.GridaniaTax.ToString()}"); @@ -172,13 +171,13 @@ internal class MarketBoardSelfTestStep : ISelfTestStep ImGui.Text($"Sharlayan: {this.marketTaxRate.SharlayanTax.ToString()}"); ImGui.Text($"Tuliyollal: {this.marketTaxRate.TuliyollalTax.ToString()}"); ImGui.Separator(); - if (ImGui.Button("Looks Correct / Skip"u8)) + if (ImGui.Button("Looks Correct / Skip")) { this.currentSubStep++; } ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) { return SelfTestStepResult.Fail; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NamePlateSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/NamePlateAgingStep.cs similarity index 88% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/NamePlateSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/NamePlateAgingStep.cs index 7136c8801..5a03a6dc2 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NamePlateSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/NamePlateAgingStep.cs @@ -1,17 +1,17 @@ -using System.Collections.Generic; +using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.NamePlate; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Game.Text.SeStringHandling.Payloads; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Tests for nameplates. /// </summary> -internal class NamePlateSelfTestStep : ISelfTestStep +internal class NamePlateAgingStep : IAgingStep { private SubStep currentSubStep; private Dictionary<ulong, int>? updateCount; @@ -36,19 +36,19 @@ internal class NamePlateSelfTestStep : ISelfTestStep namePlateGui.OnNamePlateUpdate += this.OnNamePlateUpdate; namePlateGui.OnDataUpdate += this.OnDataUpdate; namePlateGui.RequestRedraw(); - this.updateCount = []; + this.updateCount = new Dictionary<ulong, int>(); this.currentSubStep++; break; case SubStep.Confirm: - ImGui.Text("Click to redraw all visible nameplates"u8); - if (ImGui.Button("Request redraw"u8)) + ImGui.Text("Click to redraw all visible nameplates"); + if (ImGui.Button("Request redraw")) namePlateGui.RequestRedraw(); - ImGui.Text("Can you see marker icons above nameplates, and does\n" + + ImGui.TextUnformatted("Can you see marker icons above nameplates, and does\n" + "the update count increase when using request redraw?"); - if (ImGui.Button("Yes"u8)) + if (ImGui.Button("Yes")) { this.CleanUp(); return SelfTestStepResult.Pass; @@ -56,7 +56,7 @@ internal class NamePlateSelfTestStep : ISelfTestStep ImGui.SameLine(); - if (ImGui.Button("No"u8)) + if (ImGui.Button("No")) { this.CleanUp(); return SelfTestStepResult.Fail; diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/PartyFinderSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/PartyFinderAgingStep.cs similarity index 85% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/PartyFinderSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/PartyFinderAgingStep.cs index 052f65a21..d6f38092b 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/PartyFinderSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/PartyFinderAgingStep.cs @@ -1,14 +1,14 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui.PartyFinder; using Dalamud.Game.Gui.PartyFinder.Types; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for Party Finder events. /// </summary> -internal class PartyFinderSelfTestStep : ISelfTestStep +internal class PartyFinderAgingStep : IAgingStep { private bool subscribed = false; private bool hasPassed = false; @@ -34,7 +34,7 @@ internal class PartyFinderSelfTestStep : ISelfTestStep return SelfTestStepResult.Pass; } - ImGui.Text("Open Party Finder"u8); + ImGui.Text("Open Party Finder"); return SelfTestStepResult.Waiting; } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/TargetSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/TargetAgingStep.cs similarity index 80% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/TargetSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/TargetAgingStep.cs index 4e5e287a4..f8767ad53 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/TargetSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/TargetAgingStep.cs @@ -1,15 +1,15 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Plugin.SelfTest; -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test setup for targets. /// </summary> -internal class TargetSelfTestStep : ISelfTestStep +internal class TargetAgingStep : IAgingStep { private int step = 0; @@ -32,7 +32,7 @@ internal class TargetSelfTestStep : ISelfTestStep break; case 1: - ImGui.Text("Target a player..."u8); + ImGui.Text("Target a player..."); var cTarget = targetManager.Target; if (cTarget is PlayerCharacter) @@ -43,7 +43,7 @@ internal class TargetSelfTestStep : ISelfTestStep break; case 2: - ImGui.Text("Focus-Target a Battle NPC..."u8); + ImGui.Text("Focus-Target a Battle NPC..."); var fTarget = targetManager.FocusTarget; if (fTarget is BattleNpc) @@ -54,7 +54,7 @@ internal class TargetSelfTestStep : ISelfTestStep break; case 3: - ImGui.Text("Soft-Target an EventObj..."u8); + ImGui.Text("Soft-Target an EventObj..."); var sTarget = targetManager.SoftTarget; if (sTarget is EventObj) diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ToastAgingStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ToastAgingStep.cs new file mode 100644 index 000000000..f02eafc99 --- /dev/null +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/ToastAgingStep.cs @@ -0,0 +1,29 @@ +using Dalamud.Game.Gui.Toast; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; + +/// <summary> +/// Test setup for toasts. +/// </summary> +internal class ToastAgingStep : IAgingStep +{ + /// <inheritdoc/> + public string Name => "Test Toasts"; + + /// <inheritdoc/> + public SelfTestStepResult RunStep() + { + var toastGui = Service<ToastGui>.Get(); + + toastGui.ShowNormal("Normal Toast"); + toastGui.ShowError("Error Toast"); + + return SelfTestStepResult.Pass; + } + + /// <inheritdoc/> + public void CleanUp() + { + // ignored + } +} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/WaitFramesSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/WaitFramesAgingStep.cs similarity index 70% rename from Dalamud/Interface/Internal/Windows/SelfTest/Steps/WaitFramesSelfTestStep.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/WaitFramesAgingStep.cs index b0cc4f454..54aeee145 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/WaitFramesSelfTestStep.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/WaitFramesAgingStep.cs @@ -1,20 +1,18 @@ -using Dalamud.Plugin.SelfTest; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; /// <summary> /// Test that waits N frames. /// </summary> -internal class WaitFramesSelfTestStep : ISelfTestStep +internal class WaitFramesAgingStep : IAgingStep { private readonly int frames; private int cFrames; /// <summary> - /// Initializes a new instance of the <see cref="WaitFramesSelfTestStep"/> class. + /// Initializes a new instance of the <see cref="WaitFramesAgingStep"/> class. /// </summary> /// <param name="frames">Amount of frames to wait.</param> - public WaitFramesSelfTestStep(int frames) + public WaitFramesAgingStep(int frames) { this.frames = frames; this.cFrames = frames; diff --git a/Dalamud/Plugin/SelfTest/SelfTestStepResult.cs b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestStepResult.cs similarity index 81% rename from Dalamud/Plugin/SelfTest/SelfTestStepResult.cs rename to Dalamud/Interface/Internal/Windows/SelfTest/SelfTestStepResult.cs index 0eaf77381..5abc8e2ed 100644 --- a/Dalamud/Plugin/SelfTest/SelfTestStepResult.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestStepResult.cs @@ -1,9 +1,9 @@ -namespace Dalamud.Plugin.SelfTest; +namespace Dalamud.Interface.Internal.Windows.SelfTest; /// <summary> /// Enum declaring result states of tests. /// </summary> -public enum SelfTestStepResult +internal enum SelfTestStepResult { /// <summary> /// Test was not ran. diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs index 0335cafc5..3b3670228 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs @@ -1,19 +1,15 @@ using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; +using Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Logging.Internal; - -using Dalamud.Plugin.SelfTest; -using Dalamud.Plugin.SelfTest.Internal; -using Dalamud.Utility; +using ImGuiNET; +using Lumina.Excel.Sheets; namespace Dalamud.Interface.Internal.Windows.SelfTest; @@ -22,25 +18,54 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest; /// </summary> internal class SelfTestWindow : Window { - private static readonly ModuleLog Log = ModuleLog.Create<SelfTestWindow>(); + private static readonly ModuleLog Log = new("AGING"); - private readonly SelfTestRegistry selfTestRegistry; + private readonly List<IAgingStep> steps = + new() + { + new LoginEventAgingStep(), + new WaitFramesAgingStep(1000), + new EnterTerritoryAgingStep(148, "Central Shroud"), + new ItemPayloadAgingStep(), + new ContextMenuAgingStep(), + new NamePlateAgingStep(), + new ActorTableAgingStep(), + new FateTableAgingStep(), + new AetheryteListAgingStep(), + new ConditionAgingStep(), + new ToastAgingStep(), + new TargetAgingStep(), + new KeyStateAgingStep(), + new GamepadStateAgingStep(), + new ChatAgingStep(), + new HoverAgingStep(), + new LuminaAgingStep<Item>(true), + new LuminaAgingStep<Level>(true), + new LuminaAgingStep<Lumina.Excel.Sheets.Action>(true), + new LuminaAgingStep<Quest>(true), + new LuminaAgingStep<TerritoryType>(false), + new AddonLifecycleAgingStep(), + new PartyFinderAgingStep(), + new HandledExceptionAgingStep(), + new DutyStateAgingStep(), + new GameConfigAgingStep(), + new MarketBoardAgingStep(), + new LogoutEventAgingStep(), + }; - private List<SelfTestWithResults> visibleSteps = []; + private readonly List<(SelfTestStepResult Result, TimeSpan? Duration)> stepResults = new(); private bool selfTestRunning = false; - private SelfTestGroup? currentTestGroup = null; - private SelfTestWithResults? currentStep = null; - private SelfTestWithResults? scrollToStep = null; + private int currentStep = 0; + + private DateTimeOffset lastTestStart; /// <summary> /// Initializes a new instance of the <see cref="SelfTestWindow"/> class. /// </summary> - /// <param name="selfTestRegistry">An instance of <see cref="SelfTestRegistry"/>.</param> - public SelfTestWindow(SelfTestRegistry selfTestRegistry) + public SelfTestWindow() : base("Dalamud Self-Test", ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse) { - this.selfTestRegistry = selfTestRegistry; this.Size = new Vector2(800, 800); this.SizeCondition = ImGuiCond.FirstUseEver; @@ -50,55 +75,6 @@ internal class SelfTestWindow : Window /// <inheritdoc/> public override void Draw() { - // Initialize to first group if not set (first time drawing) - if (this.currentTestGroup == null) - { - this.currentTestGroup = this.selfTestRegistry.SelfTestGroups.FirstOrDefault(); // Should always be "Dalamud" - if (this.currentTestGroup != null) - { - this.SelectTestGroup(this.currentTestGroup); - } - } - - // Update visible steps based on current group - if (this.currentTestGroup != null) - { - this.visibleSteps = this.selfTestRegistry.SelfTests - .Where(test => test.Group == this.currentTestGroup.Name).ToList(); - - // Stop tests if no steps available or if current step is no longer valid - if (this.visibleSteps.Count == 0 || (this.currentStep != null && !this.visibleSteps.Contains(this.currentStep))) - { - this.StopTests(); - } - } - - using (var dropdown = ImRaii.Combo("###SelfTestGroupCombo"u8, this.currentTestGroup?.Name ?? string.Empty)) - { - if (dropdown) - { - foreach (var testGroup in this.selfTestRegistry.SelfTestGroups) - { - if (ImGui.Selectable(testGroup.Name)) - { - this.SelectTestGroup(testGroup); - } - - if (!testGroup.Loaded) - { - ImGui.SameLine(); - this.DrawUnloadedIcon(); - } - } - } - } - - if (this.currentTestGroup?.Loaded == false) - { - ImGui.SameLine(); - this.DrawUnloadedIcon(); - } - if (this.selfTestRunning) { if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) @@ -110,10 +86,12 @@ internal class SelfTestWindow : Window if (ImGuiComponents.IconButton(FontAwesomeIcon.StepForward)) { - this.currentStep.Reset(); - this.MoveToNextTest(); - this.scrollToStep = this.currentStep; - if (this.currentStep == null) + this.stepResults.Add((SelfTestStepResult.NotRan, null)); + this.steps[this.currentStep].CleanUp(); + this.currentStep++; + this.lastTestStart = DateTimeOffset.Now; + + if (this.currentStep >= this.steps.Count) { this.StopTests(); } @@ -121,52 +99,39 @@ internal class SelfTestWindow : Window } else { - var canRunTests = this.currentTestGroup?.Loaded == true && this.visibleSteps.Count > 0; - - using var disabled = ImRaii.Disabled(!canRunTests); if (ImGuiComponents.IconButton(FontAwesomeIcon.Play)) { this.selfTestRunning = true; - this.currentStep = this.visibleSteps.FirstOrDefault(); - this.scrollToStep = this.currentStep; - foreach (var test in this.visibleSteps) - { - test.Reset(); - } + this.currentStep = 0; + this.stepResults.Clear(); + this.lastTestStart = DateTimeOffset.Now; } } ImGui.SameLine(); - var stepNumber = this.currentStep != null ? this.visibleSteps.IndexOf(this.currentStep) : 0; - ImGui.Text($"Step: {stepNumber} / {this.visibleSteps.Count}"); + ImGui.TextUnformatted($"Step: {this.currentStep} / {this.steps.Count}"); - ImGui.Spacing(); - - if (this.currentTestGroup?.Loaded == false) - { - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, $"Plugin '{this.currentTestGroup.Name}' is unloaded. No tests available."); - ImGui.Spacing(); - } + ImGuiHelpers.ScaledDummy(10); this.DrawResultTable(); - ImGui.Spacing(); + ImGuiHelpers.ScaledDummy(10); - if (this.currentStep == null) + if (this.currentStep >= this.steps.Count) { if (this.selfTestRunning) { this.StopTests(); } - if (this.visibleSteps.Any(test => test.Result == SelfTestStepResult.Fail)) + if (this.stepResults.Any(x => x.Result == SelfTestStepResult.Fail)) { - ImGui.TextColoredWrapped(ImGuiColors.DalamudRed, "One or more checks failed!"u8); + ImGui.TextColored(ImGuiColors.DalamudRed, "One or more checks failed!"); } - else if (this.visibleSteps.All(test => test.Result == SelfTestStepResult.Pass)) + else { - ImGui.TextColoredWrapped(ImGuiColors.HealerGreen, "All checks passed!"u8); + ImGui.TextColored(ImGuiColors.HealerGreen, "All checks passed!"); } return; @@ -177,118 +142,123 @@ internal class SelfTestWindow : Window return; } - using var resultChild = ImRaii.Child("SelfTestResultChild"u8, ImGui.GetContentRegionAvail()); - if (!resultChild) return; + ImGui.Separator(); - ImGui.Text($"Current: {this.currentStep.Name}"); + var step = this.steps[this.currentStep]; + ImGui.TextUnformatted($"Current: {step.Name}"); ImGuiHelpers.ScaledDummy(10); - this.currentStep.DrawAndStep(); - if (this.currentStep.Result != SelfTestStepResult.Waiting) + SelfTestStepResult result; + try { - this.MoveToNextTest(); + result = step.RunStep(); + } + catch (Exception ex) + { + Log.Error(ex, $"Step failed: {step.Name}"); + result = SelfTestStepResult.Fail; + } + + ImGui.Separator(); + + if (result != SelfTestStepResult.Waiting) + { + var duration = DateTimeOffset.Now - this.lastTestStart; + this.currentStep++; + this.stepResults.Add((result, duration)); + + this.lastTestStart = DateTimeOffset.Now; } } private void DrawResultTable() { - var tableSize = ImGui.GetContentRegionAvail(); - - if (this.selfTestRunning) - tableSize -= new Vector2(0, 200); - - tableSize.Y = Math.Min(tableSize.Y, ImGui.GetWindowViewport().Size.Y * 0.5f); - - using var table = ImRaii.Table("agingResultTable"u8, 5, ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY, tableSize); - if (!table) - return; - - ImGui.TableSetupColumn("###index"u8, ImGuiTableColumnFlags.WidthFixed, 12f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Name"u8); - ImGui.TableSetupColumn("Result"u8, ImGuiTableColumnFlags.WidthFixed, 40f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn("Duration"u8, ImGuiTableColumnFlags.WidthFixed, 90f * ImGuiHelpers.GlobalScale); - ImGui.TableSetupColumn(string.Empty, ImGuiTableColumnFlags.WidthFixed, 30f * ImGuiHelpers.GlobalScale); - - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableHeadersRow(); - - foreach (var (step, index) in this.visibleSteps.WithIndex()) + if (ImGui.BeginTable("agingResultTable", 4, ImGuiTableFlags.Borders)) { - ImGui.TableNextRow(); + ImGui.TableSetupColumn("###index", ImGuiTableColumnFlags.WidthFixed, 12f); + ImGui.TableSetupColumn("Name"); + ImGui.TableSetupColumn("Result", ImGuiTableColumnFlags.WidthFixed, 40f); + ImGui.TableSetupColumn("Duration", ImGuiTableColumnFlags.WidthFixed, 90f); - if (this.selfTestRunning && this.currentStep == step) + ImGui.TableHeadersRow(); + + for (var i = 0; i < this.steps.Count; i++) { - ImGui.TableSetBgColor(ImGuiTableBgTarget.RowBg0, ImGui.GetColorU32(ImGuiCol.TableRowBgAlt)); + var step = this.steps[i]; + ImGui.TableNextRow(); + + ImGui.TableSetColumnIndex(0); + ImGui.Text(i.ToString()); + + ImGui.TableSetColumnIndex(1); + ImGui.Text(step.Name); + + ImGui.TableSetColumnIndex(2); + ImGui.PushFont(Interface.Internal.InterfaceManager.MonoFont); + if (this.stepResults.Count > i) + { + var result = this.stepResults[i]; + + switch (result.Result) + { + case SelfTestStepResult.Pass: + ImGui.TextColored(ImGuiColors.HealerGreen, "PASS"); + break; + case SelfTestStepResult.Fail: + ImGui.TextColored(ImGuiColors.DalamudRed, "FAIL"); + break; + default: + ImGui.TextColored(ImGuiColors.DalamudGrey, "NR"); + break; + } + } + else + { + if (this.selfTestRunning && this.currentStep == i) + { + ImGui.TextColored(ImGuiColors.DalamudGrey, "WAIT"); + } + else + { + ImGui.TextColored(ImGuiColors.DalamudGrey, "NR"); + } + } + + ImGui.PopFont(); + + ImGui.TableSetColumnIndex(3); + if (this.stepResults.Count > i) + { + var (_, duration) = this.stepResults[i]; + + if (duration.HasValue) + { + ImGui.TextUnformatted(duration.Value.ToString("g")); + } + } + else + { + if (this.selfTestRunning && this.currentStep == i) + { + ImGui.TextUnformatted((DateTimeOffset.Now - this.lastTestStart).ToString("g")); + } + } } - ImGui.TableSetColumnIndex(0); - ImGui.AlignTextToFramePadding(); - ImGui.Text(index.ToString()); - - if (this.selfTestRunning && this.scrollToStep == step) - { - ImGui.SetScrollHereY(); - this.scrollToStep = null; - } - - ImGui.TableSetColumnIndex(1); - ImGui.AlignTextToFramePadding(); - ImGui.Text(step.Name); - - ImGui.TableSetColumnIndex(2); - ImGui.AlignTextToFramePadding(); - switch (step.Result) - { - case SelfTestStepResult.Pass: - ImGui.TextColored(ImGuiColors.HealerGreen, "PASS"u8); - break; - case SelfTestStepResult.Fail: - ImGui.TextColored(ImGuiColors.DalamudRed, "FAIL"u8); - break; - case SelfTestStepResult.Waiting: - ImGui.TextColored(ImGuiColors.DalamudGrey, "WAIT"u8); - break; - default: - ImGui.TextColored(ImGuiColors.DalamudGrey, "NR"u8); - break; - } - - ImGui.TableSetColumnIndex(3); - if (step.Duration.HasValue) - { - ImGui.AlignTextToFramePadding(); - ImGui.Text(this.FormatTimeSpan(step.Duration.Value)); - } - - ImGui.TableSetColumnIndex(4); - using var id = ImRaii.PushId($"selfTest{index}"); - if (ImGuiComponents.IconButton(FontAwesomeIcon.FastForward)) - { - this.StopTests(); - this.currentStep = step; - this.currentStep.Reset(); - this.selfTestRunning = true; - } - - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Jump to this test"u8); - } + ImGui.EndTable(); } } private void StopTests() { this.selfTestRunning = false; - this.currentStep = null; - this.scrollToStep = null; - foreach (var agingStep in this.visibleSteps) + foreach (var agingStep in this.steps) { try { - agingStep.Finish(); + agingStep.CleanUp(); } catch (Exception ex) { @@ -296,51 +266,4 @@ internal class SelfTestWindow : Window } } } - - /// <summary> - /// Makes <paramref name="testGroup"/> the active test group. - /// </summary> - /// <param name="testGroup">The test group to make active.</param> - private void SelectTestGroup(SelfTestGroup testGroup) - { - this.currentTestGroup = testGroup; - this.StopTests(); - } - - /// <summary> - /// Move `currentTest` to the next test. If there are no tests left, set `currentTest` to null. - /// </summary> - private void MoveToNextTest() - { - if (this.currentStep == null) - { - this.currentStep = this.visibleSteps.FirstOrDefault(); - return; - } - - var currentIndex = this.visibleSteps.IndexOf(this.currentStep); - this.currentStep = this.visibleSteps.ElementAtOrDefault(currentIndex + 1); - } - - /// <summary> - /// Draws the unloaded plugin icon with tooltip. - /// </summary> - private void DrawUnloadedIcon() - { - ImGui.PushFont(UiBuilder.IconFont); - ImGui.TextColored(ImGuiColors.DalamudGrey, FontAwesomeIcon.Unlink.ToIconString()); - ImGui.PopFont(); - - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Plugin is unloaded"); - } - } - - private string FormatTimeSpan(TimeSpan ts) - { - var str = ts.ToString("g", CultureInfo.InvariantCulture); - var commaPos = str.LastIndexOf('.'); - return commaPos > -1 && commaPos + 5 < str.Length ? str[..(commaPos + 5)] : str; - } } diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ChatSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ChatSelfTestStep.cs deleted file mode 100644 index 851957b4b..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ChatSelfTestStep.cs +++ /dev/null @@ -1,125 +0,0 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Chat; -using Dalamud.Game.Gui; -using Dalamud.Game.Text; -using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Plugin.SelfTest; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for Chat. -/// </summary> -internal class ChatSelfTestStep : ISelfTestStep -{ - private int step = 0; - private bool subscribedChatMessage = false; - private bool subscribedLogMessage = false; - private bool hasSeenEchoMessage = false; - private bool hasSeenActionMessage = false; - private string actionName = string.Empty; - private string actionUser = string.Empty; - - /// <inheritdoc/> - public string Name => "Test Chat"; - - /// <inheritdoc/> - public SelfTestStepResult RunStep() - { - var chatGui = Service<ChatGui>.Get(); - - switch (this.step) - { - case 0: - chatGui.Print("Testing!"); - this.step++; - - break; - - case 1: - ImGui.Text("Type \"/e DALAMUD\" in chat..."); - - if (!this.subscribedChatMessage) - { - this.subscribedChatMessage = true; - chatGui.ChatMessage += this.ChatOnOnChatMessage; - } - - if (this.hasSeenEchoMessage) - { - chatGui.ChatMessage -= this.ChatOnOnChatMessage; - this.subscribedChatMessage = false; - this.step++; - } - - break; - - case 2: - ImGui.Text("Use any action (for example Sprint) or be near a player using an action."); - - if (!this.subscribedLogMessage) - { - this.subscribedLogMessage = true; - chatGui.LogMessage += this.ChatOnLogMessage; - } - - if (this.hasSeenActionMessage) - { - ImGui.Text($"{this.actionUser} used {this.actionName}."); - ImGui.Text("Is this correct?"); - - if (ImGui.Button("Yes")) - { - chatGui.LogMessage -= this.ChatOnLogMessage; - this.subscribedLogMessage = false; - this.step++; - } - - ImGui.SameLine(); - if (ImGui.Button("No")) - { - chatGui.LogMessage -= this.ChatOnLogMessage; - this.subscribedLogMessage = false; - return SelfTestStepResult.Fail; - } - } - - break; - - default: - return SelfTestStepResult.Pass; - } - - return SelfTestStepResult.Waiting; - } - - /// <inheritdoc/> - public void CleanUp() - { - var chatGui = Service<ChatGui>.Get(); - - chatGui.ChatMessage -= this.ChatOnOnChatMessage; - chatGui.LogMessage -= this.ChatOnLogMessage; - this.subscribedChatMessage = false; - this.subscribedLogMessage = false; - } - - private void ChatOnOnChatMessage( - XivChatType type, int timestamp, ref SeString sender, ref SeString message, ref bool ishandled) - { - if (type == XivChatType.Echo && message.TextValue == "DALAMUD") - { - this.hasSeenEchoMessage = true; - } - } - - private void ChatOnLogMessage(ILogMessage message) - { - if (message.LogMessageId == 533 && message.TryGetStringParameter(0, out var value)) - { - this.hasSeenActionMessage = true; - this.actionUser = message.SourceEntity?.Name.ExtractText() ?? "<incorrect>"; - this.actionName = value.ExtractText(); - } - } -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/CompletionSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/CompletionSelfTestStep.cs deleted file mode 100644 index 1f33e5dd2..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/CompletionSelfTestStep.cs +++ /dev/null @@ -1,91 +0,0 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Command; -using Dalamud.Plugin.SelfTest; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for Chat. -/// </summary> -internal class CompletionSelfTestStep : ISelfTestStep -{ - private int step = 0; - private bool registered; - private bool commandRun; - - /// <inheritdoc/> - public string Name => "Test Completion"; - - /// <inheritdoc/> - public SelfTestStepResult RunStep() - { - var cmdManager = Service<CommandManager>.Get(); - switch (this.step) - { - case 0: - this.step++; - - break; - - case 1: - ImGui.Text("[Chat Log]"u8); - ImGui.TextWrapped("Use the category menus to navigate to [Dalamud], then complete a command from the list. Did it work?"u8); - if (ImGui.Button("Yes"u8)) - this.step++; - ImGui.SameLine(); - - if (ImGui.Button("No"u8)) - return SelfTestStepResult.Fail; - break; - case 2: - ImGui.Text("[Chat Log]"u8); - ImGui.Text("Type /xl into the chat log and tab-complete a dalamud command. Did it work?"u8); - - if (ImGui.Button("Yes"u8)) - this.step++; - ImGui.SameLine(); - - if (ImGui.Button("No"u8)) - return SelfTestStepResult.Fail; - - break; - - case 3: - ImGui.Text("[Chat Log]"u8); - if (!this.registered) - { - cmdManager.AddHandler("/xlselftestcompletion", new CommandInfo((_, _) => this.commandRun = true)); - this.registered = true; - } - - ImGui.Text("Tab-complete /xlselftestcompletion in the chat log and send the command"u8); - - if (this.commandRun) - this.step++; - - break; - - case 4: - ImGui.Text("[Other text inputs]"u8); - ImGui.Text("Open the party finder recruitment criteria dialog and try to tab-complete /xldev in the text box."u8); - ImGui.Text("Did the command appear in the text box? (It should not have)"u8); - if (ImGui.Button("Yes"u8)) - return SelfTestStepResult.Fail; - ImGui.SameLine(); - - if (ImGui.Button("No"u8)) - this.step++; - break; - case 5: - return SelfTestStepResult.Pass; - } - - return SelfTestStepResult.Waiting; - } - - /// <inheritdoc/> - public void CleanUp() - { - Service<CommandManager>.Get().RemoveHandler("/completionselftest"); - } -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DalamudSelfTest.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DalamudSelfTest.cs deleted file mode 100644 index d36aec742..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/DalamudSelfTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Dalamud.Plugin.SelfTest.Internal; -using Lumina.Excel.Sheets; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Class handling Dalamud self-test registration. -/// </summary> -[ServiceManager.EarlyLoadedService] -internal class DalamudSelfTest : IServiceType -{ - [ServiceManager.ServiceConstructor] - private DalamudSelfTest(SelfTestRegistry registry) - { - registry.RegisterDalamudSelfTestSteps([ - new LoginEventSelfTestStep(), - new WaitFramesSelfTestStep(1000), - new FrameworkTaskSchedulerSelfTestStep(), - new EnterTerritorySelfTestStep(148, "Central Shroud"), - new ItemPayloadSelfTestStep(), - new ContextMenuSelfTestStep(), - new NamePlateSelfTestStep(), - new ActorTableSelfTestStep(), - new FateTableSelfTestStep(), - new AetheryteListSelfTestStep(), - new ConditionSelfTestStep(), - new ToastSelfTestStep(), - new TargetSelfTestStep(), - new KeyStateSelfTestStep(), - new GamepadStateSelfTestStep(), - new ChatSelfTestStep(), - new HoverSelfTestStep(), - new LuminaSelfTestStep<Item>(true), - new LuminaSelfTestStep<Level>(true), - new LuminaSelfTestStep<Lumina.Excel.Sheets.Action>(true), - new LuminaSelfTestStep<Quest>(true), - new LuminaSelfTestStep<TerritoryType>(false), - new AddonLifecycleSelfTestStep(), - new PartyFinderSelfTestStep(), - new HandledExceptionSelfTestStep(), - new DutyStateSelfTestStep(), - new GameConfigSelfTestStep(), - new MarketBoardSelfTestStep(), - new SheetRedirectResolverSelfTestStep(), - new NounProcessorSelfTestStep(), - new SeStringEvaluatorSelfTestStep(), - new CompletionSelfTestStep(), - new LogoutEventSelfTestStep() - ]); - } -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FrameworkTaskSchedulerSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FrameworkTaskSchedulerSelfTestStep.cs deleted file mode 100644 index c5f3ab76b..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/FrameworkTaskSchedulerSelfTestStep.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System.Threading.Tasks; - -using Dalamud.Game; -using Dalamud.Plugin.SelfTest; -using Dalamud.Utility; - -using Log = Serilog.Log; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for Framework task scheduling. -/// </summary> -internal class FrameworkTaskSchedulerSelfTestStep : ISelfTestStep -{ - private bool passed = false; - private Task? task; - - /// <inheritdoc/> - public string Name => "Test Framework Task Scheduler"; - - /// <inheritdoc/> - public SelfTestStepResult RunStep() - { - var framework = Service<Framework>.Get(); - - this.task ??= Task.Run(async () => - { - ThreadSafety.AssertNotMainThread(); - - await framework.Run(async () => - { - ThreadSafety.AssertMainThread(); - - await Task.Delay(100).ConfigureAwait(true); - ThreadSafety.AssertMainThread(); - - await Task.Delay(100).ConfigureAwait(false); - ThreadSafety.AssertNotMainThread(); - }).ConfigureAwait(true); - - ThreadSafety.AssertNotMainThread(); - - await framework.RunOnTick(async () => - { - ThreadSafety.AssertMainThread(); - - await Task.Delay(100).ConfigureAwait(true); - ThreadSafety.AssertNotMainThread(); - - await Task.Delay(100).ConfigureAwait(false); - ThreadSafety.AssertNotMainThread(); - }).ConfigureAwait(true); - - ThreadSafety.AssertNotMainThread(); - - await framework.RunOnTick(() => - { - ThreadSafety.AssertMainThread(); - }); - - ThreadSafety.AssertMainThread(); - - this.passed = true; - }).ContinueWith( - t => - { - if (t.IsFaulted) - { - Log.Error(t.Exception, "Framework Task scheduler test failed"); - } - }); - - if (this.task is { IsFaulted: true } or { IsCanceled: true }) - { - return SelfTestStepResult.Fail; - } - - return this.passed ? SelfTestStepResult.Pass : SelfTestStepResult.Waiting; - } - - /// <inheritdoc/> - public void CleanUp() - { - this.passed = false; - this.task = null; - } -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GamepadStateSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GamepadStateSelfTestStep.cs deleted file mode 100644 index e2ee676df..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/GamepadStateSelfTestStep.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System.Linq; - -using Dalamud.Game.ClientState.GamePad; -using Dalamud.Interface.Utility; -using Dalamud.Plugin.SelfTest; -using Dalamud.Utility; - -using Lumina.Text.Payloads; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for the Gamepad State. -/// </summary> -internal class GamepadStateSelfTestStep : ISelfTestStep -{ - /// <inheritdoc/> - public string Name => "Test GamePadState"; - - /// <inheritdoc/> - public SelfTestStepResult RunStep() - { - var gamepadState = Service<GamepadState>.Get(); - - var buttons = new (GamepadButtons Button, uint IconId)[] - { - (GamepadButtons.North, 11), - (GamepadButtons.East, 8), - (GamepadButtons.L1, 12), - }; - - using var rssb = new RentedSeStringBuilder(); - - rssb.Builder.Append("Hold down "); - - for (var i = 0; i < buttons.Length; i++) - { - var (button, iconId) = buttons[i]; - - rssb.Builder - .BeginMacro(MacroCode.Icon) - .AppendUIntExpression(iconId) - .EndMacro() - .PushColorRgba(gamepadState.Raw(button) == 1 ? 0x0000FF00u : 0x000000FF) - .Append(button.ToString()) - .PopColor() - .Append(i < buttons.Length - 1 ? ", " : "."); - } - - ImGuiHelpers.SeStringWrapped(rssb.Builder.ToReadOnlySeString()); - - if (buttons.All(tuple => gamepadState.Raw(tuple.Button) == 1)) - { - return SelfTestStepResult.Pass; - } - - return SelfTestStepResult.Waiting; - } - - /// <inheritdoc/> - public void CleanUp() - { - // ignored - } -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NounProcessorSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NounProcessorSelfTestStep.cs deleted file mode 100644 index ccccc691c..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/NounProcessorSelfTestStep.cs +++ /dev/null @@ -1,280 +0,0 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game; -using Dalamud.Game.Text.Noun; -using Dalamud.Game.Text.Noun.Enums; -using Dalamud.Plugin.SelfTest; - -using LSheets = Lumina.Excel.Sheets; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for NounProcessor. -/// </summary> -internal class NounProcessorSelfTestStep : ISelfTestStep -{ - private NounTestEntry[] tests = - [ - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.Japanese, 1, (int)JapaneseArticleType.NearListener, 1, "その蜂蜜酒の運び人"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.Japanese, 1, (int)JapaneseArticleType.Distant, 1, "蜂蜜酒の運び人"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.Japanese, 2, (int)JapaneseArticleType.NearListener, 1, "それらの蜂蜜酒の運び人"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.Japanese, 2, (int)JapaneseArticleType.Distant, 1, "あれらの蜂蜜酒の運び人"), - - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "a mead-porting Midlander"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the mead-porting Midlander"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.English, 2, (int)EnglishArticleType.Indefinite, 1, "mead-porting Midlanders"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.English, 2, (int)EnglishArticleType.Definite, 1, "mead-porting Midlanders"), - - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Nominative, "ein Met schleppender Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Genitive, "eines Met schleppenden Wiesländers"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Dative, "einem Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Accusative, "einen Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Nominative, "der Met schleppender Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Genitive, "des Met schleppenden Wiesländers"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Dative, "dem Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Accusative, "den Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Nominative, "dein Met schleppende Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Genitive, "deines Met schleppenden Wiesländers"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Dative, "deinem Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Accusative, "deinen Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Nominative, "kein Met schleppender Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Genitive, "keines Met schleppenden Wiesländers"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Dative, "keinem Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Accusative, "keinen Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Nominative, "Met schleppender Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Genitive, "Met schleppenden Wiesländers"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Dative, "Met schleppendem Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Accusative, "Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Nominative, "dieser Met schleppende Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Genitive, "dieses Met schleppenden Wiesländers"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Dative, "diesem Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Accusative, "diesen Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Nominative, "2 Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Genitive, "2 Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Dative, "2 Met schleppenden Wiesländern"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Accusative, "2 Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Nominative, "die Met schleppende Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Genitive, "der Met schleppender Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Dative, "den Met schleppenden Wiesländern"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Accusative, "die Met schleppende Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Nominative, "deine Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Genitive, "deiner Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Dative, "deinen Met schleppenden Wiesländern"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Accusative, "deine Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Nominative, "keine Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Genitive, "keiner Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Dative, "keinen Met schleppenden Wiesländern"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Accusative, "keine Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Nominative, "Met schleppende Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Genitive, "Met schleppender Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Dative, "Met schleppenden Wiesländern"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Accusative, "Met schleppende Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Nominative, "diese Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Genitive, "dieser Met schleppenden Wiesländer"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Dative, "diesen Met schleppenden Wiesländern"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Accusative, "diese Met schleppenden Wiesländer"), - - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 1, (int)FrenchArticleType.Indefinite, 1, "un livreur d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 1, (int)FrenchArticleType.Definite, 1, "le livreur d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveFirstPerson, 1, "mon livreur d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveSecondPerson, 1, "ton livreur d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveThirdPerson, 1, "son livreur d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 2, (int)FrenchArticleType.Indefinite, 1, "des livreurs d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 2, (int)FrenchArticleType.Definite, 1, "les livreurs d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 2, (int)FrenchArticleType.PossessiveFirstPerson, 1, "mes livreurs d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 2, (int)FrenchArticleType.PossessiveSecondPerson, 1, "tes livreurs d'hydromel"), - new(nameof(LSheets.BNpcName), 1330, ClientLanguage.French, 2, (int)FrenchArticleType.PossessiveThirdPerson, 1, "ses livreurs d'hydromel"), - - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.Japanese, 1, (int)JapaneseArticleType.NearListener, 1, "その酔いどれのネル"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.Japanese, 1, (int)JapaneseArticleType.Distant, 1, "酔いどれのネル"), - - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "Nell Half-full"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "Nell Half-full"), - - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Nominative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Genitive, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Dative, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Accusative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Nominative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Genitive, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Dative, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Accusative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Nominative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Genitive, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Dative, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Accusative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Nominative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Genitive, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Dative, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Accusative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Nominative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Genitive, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Dative, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Accusative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Nominative, "Nell die Beschwipste"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Genitive, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Dative, "Nell der Beschwipsten"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Accusative, "Nell die Beschwipste"), - - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.French, 1, (int)FrenchArticleType.Indefinite, 1, "Nell la Boit-sans-soif"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.French, 1, (int)FrenchArticleType.Definite, 1, "Nell la Boit-sans-soif"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveFirstPerson, 1, "ma Nell la Boit-sans-soif"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveSecondPerson, 1, "ta Nell la Boit-sans-soif"), - new(nameof(LSheets.ENpcResident), 1031947, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveThirdPerson, 1, "sa Nell la Boit-sans-soif"), - - new(nameof(LSheets.Item), 44348, ClientLanguage.Japanese, 1, (int)JapaneseArticleType.NearListener, 1, "その希少トームストーン:幻想"), - new(nameof(LSheets.Item), 44348, ClientLanguage.Japanese, 1, (int)JapaneseArticleType.Distant, 1, "希少トームストーン:幻想"), - new(nameof(LSheets.Item), 44348, ClientLanguage.Japanese, 2, (int)JapaneseArticleType.NearListener, 1, "それらの希少トームストーン:幻想"), - new(nameof(LSheets.Item), 44348, ClientLanguage.Japanese, 2, (int)JapaneseArticleType.Distant, 1, "あれらの希少トームストーン:幻想"), - - new(nameof(LSheets.Item), 44348, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "an irregular tomestone of phantasmagoria"), - new(nameof(LSheets.Item), 44348, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the irregular tomestone of phantasmagoria"), - new(nameof(LSheets.Item), 44348, ClientLanguage.English, 2, (int)EnglishArticleType.Indefinite, 1, "irregular tomestones of phantasmagoria"), - new(nameof(LSheets.Item), 44348, ClientLanguage.English, 2, (int)EnglishArticleType.Definite, 1, "irregular tomestones of phantasmagoria"), - - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Nominative, "ein ungewöhnlicher Allagischer Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Genitive, "eines ungewöhnlichen Allagischen Steins der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Dative, "einem ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Indefinite, (int)GermanCases.Accusative, "einen ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Nominative, "der ungewöhnlicher Allagischer Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Genitive, "des ungewöhnlichen Allagischen Steins der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Dative, "dem ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Definite, (int)GermanCases.Accusative, "den ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Nominative, "dein ungewöhnliche Allagische Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Genitive, "deines ungewöhnlichen Allagischen Steins der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Dative, "deinem ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Possessive, (int)GermanCases.Accusative, "deinen ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Nominative, "kein ungewöhnlicher Allagischer Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Genitive, "keines ungewöhnlichen Allagischen Steins der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Dative, "keinem ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Negative, (int)GermanCases.Accusative, "keinen ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Nominative, "ungewöhnlicher Allagischer Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Genitive, "ungewöhnlichen Allagischen Steins der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Dative, "ungewöhnlichem Allagischem Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Accusative, "ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Nominative, "dieser ungewöhnliche Allagische Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Genitive, "dieses ungewöhnlichen Allagischen Steins der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Dative, "diesem ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 1, (int)GermanArticleType.Demonstrative, (int)GermanCases.Accusative, "diesen ungewöhnlichen Allagischen Stein der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Nominative, "2 ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Genitive, "2 ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Dative, "2 ungewöhnlichen Allagischen Steinen der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Indefinite, (int)GermanCases.Accusative, "2 ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Nominative, "die ungewöhnliche Allagische Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Genitive, "der ungewöhnlicher Allagischer Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Dative, "den ungewöhnlichen Allagischen Steinen der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Definite, (int)GermanCases.Accusative, "die ungewöhnliche Allagische Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Nominative, "deine ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Genitive, "deiner ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Dative, "deinen ungewöhnlichen Allagischen Steinen der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Possessive, (int)GermanCases.Accusative, "deine ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Nominative, "keine ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Genitive, "keiner ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Dative, "keinen ungewöhnlichen Allagischen Steinen der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Negative, (int)GermanCases.Accusative, "keine ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Nominative, "ungewöhnliche Allagische Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Genitive, "ungewöhnlicher Allagischer Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Dative, "ungewöhnlichen Allagischen Steinen der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.ZeroArticle, (int)GermanCases.Accusative, "ungewöhnliche Allagische Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Nominative, "diese ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Genitive, "dieser ungewöhnlichen Allagischen Steine der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Dative, "diesen ungewöhnlichen Allagischen Steinen der Phantasmagorie"), - new(nameof(LSheets.Item), 44348, ClientLanguage.German, 2, (int)GermanArticleType.Demonstrative, (int)GermanCases.Accusative, "diese ungewöhnlichen Allagischen Steine der Phantasmagorie"), - - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 1, (int)FrenchArticleType.Indefinite, 1, "un mémoquartz inhabituel fantasmagorique"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 1, (int)FrenchArticleType.Definite, 1, "le mémoquartz inhabituel fantasmagorique"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveFirstPerson, 1, "mon mémoquartz inhabituel fantasmagorique"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveSecondPerson, 1, "ton mémoquartz inhabituel fantasmagorique"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 1, (int)FrenchArticleType.PossessiveThirdPerson, 1, "son mémoquartz inhabituel fantasmagorique"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 2, (int)FrenchArticleType.Indefinite, 1, "des mémoquartz inhabituels fantasmagoriques"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 2, (int)FrenchArticleType.Definite, 1, "les mémoquartz inhabituels fantasmagoriques"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 2, (int)FrenchArticleType.PossessiveFirstPerson, 1, "mes mémoquartz inhabituels fantasmagoriques"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 2, (int)FrenchArticleType.PossessiveSecondPerson, 1, "tes mémoquartz inhabituels fantasmagoriques"), - new(nameof(LSheets.Item), 44348, ClientLanguage.French, 2, (int)FrenchArticleType.PossessiveThirdPerson, 1, "ses mémoquartz inhabituels fantasmagoriques"), - - // ColumnOffset tests - - new(nameof(LSheets.BeastTribe), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "a Amalj'aa"), - new(nameof(LSheets.BeastTribe), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the Amalj'aa"), - - new(nameof(LSheets.DeepDungeonEquipment), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "an aetherpool arm"), - new(nameof(LSheets.DeepDungeonEquipment), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the aetherpool arm"), - - new(nameof(LSheets.DeepDungeonItem), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "a pomander of safety"), - new(nameof(LSheets.DeepDungeonItem), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the pomander of safety"), - - new(nameof(LSheets.DeepDungeonMagicStone), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "a splinter of Inferno magicite"), - new(nameof(LSheets.DeepDungeonMagicStone), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the splinter of Inferno magicite"), - - new(nameof(LSheets.DeepDungeonDemiclone), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "an Unei demiclone"), - new(nameof(LSheets.DeepDungeonDemiclone), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the Unei demiclone"), - - new(nameof(LSheets.Glasses), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "a pair of oval spectacles"), - new(nameof(LSheets.Glasses), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the pair of oval spectacles"), - - new(nameof(LSheets.GlassesStyle), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Indefinite, 1, "a shaded spectacles"), - new(nameof(LSheets.GlassesStyle), 1, ClientLanguage.English, 1, (int)EnglishArticleType.Definite, 1, "the shaded spectacles"), - ]; - - private enum GermanCases - { - Nominative, - Genitive, - Dative, - Accusative, - } - - /// <inheritdoc/> - public string Name => "Test NounProcessor"; - - /// <inheritdoc/> - public unsafe SelfTestStepResult RunStep() - { - var nounProcessor = Service<NounProcessor>.Get(); - - for (var i = 0; i < this.tests.Length; i++) - { - var e = this.tests[i]; - - var nounParams = new NounParams() - { - SheetName = e.SheetName, - RowId = e.RowId, - Language = e.Language, - Quantity = e.Quantity, - ArticleType = e.ArticleType, - GrammaticalCase = e.GrammaticalCase, - }; - var output = nounProcessor.ProcessNoun(nounParams); - - if (e.ExpectedResult != output) - { - ImGui.Text($"Mismatch detected (Test #{i}):"); - ImGui.Text($"Got: {output}"); - ImGui.Text($"Expected: {e.ExpectedResult}"); - - if (ImGui.Button("Continue"u8)) - return SelfTestStepResult.Fail; - - return SelfTestStepResult.Waiting; - } - } - - return SelfTestStepResult.Pass; - } - - /// <inheritdoc/> - public void CleanUp() - { - // ignored - } - - private record struct NounTestEntry( - string SheetName, - uint RowId, - ClientLanguage Language, - int Quantity, - int ArticleType, - int GrammaticalCase, - string ExpectedResult); -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SeStringEvaluatorSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SeStringEvaluatorSelfTestStep.cs deleted file mode 100644 index 56a350229..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SeStringEvaluatorSelfTestStep.cs +++ /dev/null @@ -1,143 +0,0 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Configuration.Internal; -using Dalamud.Game.ClientState; -using Dalamud.Game.ClientState.Objects; -using Dalamud.Game.Text.Evaluator; -using Dalamud.Game.Text.SeStringHandling.Payloads; -using Dalamud.Plugin.SelfTest; -using Lumina.Text.ReadOnly; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for SeStringEvaluator. -/// </summary> -internal class SeStringEvaluatorSelfTestStep : ISelfTestStep -{ - private int step = 0; - - /// <inheritdoc/> - public string Name => "Test SeStringEvaluator"; - - /// <inheritdoc/> - public SelfTestStepResult RunStep() - { - var seStringEvaluator = Service<SeStringEvaluator>.Get(); - - switch (this.step) - { - case 0: - ImGui.Text("Is this the current time, and is it ticking?"u8); - - // This checks that EvaluateFromAddon fetches the correct Addon row, - // that MacroDecoder.GetMacroTime()->SetTime() has been called - // and that local and global parameters have been read correctly. - - ImGui.Text(seStringEvaluator.EvaluateFromAddon(31, [(uint)DateTimeOffset.UtcNow.ToUnixTimeSeconds()]).ExtractText()); - - if (ImGui.Button("Yes"u8)) - this.step++; - - ImGui.SameLine(); - - if (ImGui.Button("No"u8)) - return SelfTestStepResult.Fail; - - break; - - case 1: - ImGui.Text("Checking pcname macro using the local player name..."u8); - - // This makes sure that NameCache.Instance()->TryGetCharacterInfoByEntityId() has been called, - // that it returned the local players name by using its EntityId, - // and that it didn't include the world name by checking the HomeWorldId against AgentLobby.Instance()->LobbyData.HomeWorldId. - - var objectTable = Service<ObjectTable>.Get(); - var localPlayer = objectTable.LocalPlayer; - if (localPlayer is null) - { - ImGui.Text("You need to be logged in for this step."u8); - - if (ImGui.Button("Skip"u8)) - return SelfTestStepResult.NotRan; - - return SelfTestStepResult.Waiting; - } - - var evaluatedPlayerName = seStringEvaluator.Evaluate(ReadOnlySeString.FromMacroString("<pcname(lnum1)>"), [localPlayer.EntityId]).ExtractText(); - var localPlayerName = localPlayer.Name.TextValue; - - if (evaluatedPlayerName != localPlayerName) - { - ImGui.Text("The player name doesn't match:"u8); - ImGui.Text($"Evaluated Player Name (got): {evaluatedPlayerName}"); - ImGui.Text($"Local Player Name (expected): {localPlayerName}"); - - if (ImGui.Button("Continue"u8)) - return SelfTestStepResult.Fail; - - return SelfTestStepResult.Waiting; - } - - this.step++; - break; - - case 2: - ImGui.Text("Checking AutoTranslatePayload.Text results..."u8); - - var config = Service<DalamudConfiguration>.Get(); - var originalLanguageOverride = config.LanguageOverride; - - Span<(string Language, uint Group, uint Key, string ExpectedText)> tests = [ - ("en", 49u, 209u, " albino karakul "), // Mount - ("en", 62u, 116u, " /echo "), // TextCommand - testing Command - ("en", 62u, 143u, " /dutyfinder "), // TextCommand - testing Alias over Command - ("en", 65u, 67u, " Minion of Light "), // Companion - testing noun handling for the german language (special case) - ("en", 71u, 7u, " Phantom Geomancer "), // MKDSupportJob - - ("de", 49u, 209u, " Albino-Karakul "), // Mount - ("de", 62u, 115u, " /freiegesellschaft "), // TextCommand - testing Alias over Command - ("de", 62u, 116u, " /echo "), // TextCommand - testing Command - ("de", 65u, 67u, " Begleiter des Lichts "), // Companion - testing noun handling for the german language (special case) - ("de", 71u, 7u, " Phantom-Geomant "), // MKDSupportJob - ]; - - try - { - foreach (var (language, group, key, expectedText) in tests) - { - config.LanguageOverride = language; - - var payload = new AutoTranslatePayload(group, key); - - if (payload.Text != expectedText) - { - ImGui.Text($"Test failed for Group {group}, Key {key}"); - ImGui.Text($"Expected: {expectedText}"); - ImGui.Text($"Got: {payload.Text}"); - - if (ImGui.Button("Continue"u8)) - return SelfTestStepResult.Fail; - - return SelfTestStepResult.Waiting; - } - } - } - finally - { - config.LanguageOverride = originalLanguageOverride; - } - - return SelfTestStepResult.Pass; - } - - return SelfTestStepResult.Waiting; - } - - /// <inheritdoc/> - public void CleanUp() - { - // ignored - this.step = 0; - } -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SheetRedirectResolverSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SheetRedirectResolverSelfTestStep.cs deleted file mode 100644 index c99ec91de..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/SheetRedirectResolverSelfTestStep.cs +++ /dev/null @@ -1,134 +0,0 @@ -using System.Runtime.InteropServices; - -using Dalamud.Bindings.ImGui; -using Dalamud.Game; -using Dalamud.Game.Text.Evaluator.Internal; -using Dalamud.Plugin.SelfTest; - -using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI.Misc; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for SheetRedirectResolver. -/// </summary> -internal class SheetRedirectResolverSelfTestStep : ISelfTestStep -{ - private RedirectEntry[] redirects = - [ - new("Item", 10, SheetRedirectFlags.Item), - new("ItemHQ", 10, SheetRedirectFlags.Item | SheetRedirectFlags.HighQuality), - new("ItemMP", 10, SheetRedirectFlags.Item | SheetRedirectFlags.Collectible), - new("Item", 35588, SheetRedirectFlags.Item), - new("Item", 1035588, SheetRedirectFlags.Item | SheetRedirectFlags.HighQuality), - new("Item", 2000217, SheetRedirectFlags.Item | SheetRedirectFlags.EventItem), - new("ActStr", 10, SheetRedirectFlags.Action), // Trait - new("ActStr", 1000010, SheetRedirectFlags.Action | SheetRedirectFlags.ActionSheet), // Action - new("ActStr", 2000010, SheetRedirectFlags.Action), // Item - new("ActStr", 3000010, SheetRedirectFlags.Action), // EventItem - new("ActStr", 4000010, SheetRedirectFlags.Action), // EventAction - new("ActStr", 5000010, SheetRedirectFlags.Action), // GeneralAction - new("ActStr", 6000010, SheetRedirectFlags.Action), // BuddyAction - new("ActStr", 7000010, SheetRedirectFlags.Action), // MainCommand - new("ActStr", 8000010, SheetRedirectFlags.Action), // Companion - new("ActStr", 9000010, SheetRedirectFlags.Action), // CraftAction - new("ActStr", 10000010, SheetRedirectFlags.Action | SheetRedirectFlags.ActionSheet), // Action - new("ActStr", 11000010, SheetRedirectFlags.Action), // PetAction - new("ActStr", 12000010, SheetRedirectFlags.Action), // CompanyAction - new("ActStr", 13000010, SheetRedirectFlags.Action), // Mount - // new("ActStr", 14000010, RedirectFlags.Action), - // new("ActStr", 15000010, RedirectFlags.Action), - // new("ActStr", 16000010, RedirectFlags.Action), - // new("ActStr", 17000010, RedirectFlags.Action), - // new("ActStr", 18000010, RedirectFlags.Action), - new("ActStr", 19000010, SheetRedirectFlags.Action), // BgcArmyAction - new("ActStr", 20000010, SheetRedirectFlags.Action), // Ornament - new("ObjStr", 10), // BNpcName - new("ObjStr", 1000010), // ENpcResident - new("ObjStr", 2000010), // Treasure - new("ObjStr", 3000010), // Aetheryte - new("ObjStr", 4000010), // GatheringPointName - new("ObjStr", 5000010), // EObjName - new("ObjStr", 6000010), // Mount - new("ObjStr", 7000010), // Companion - // new("ObjStr", 8000010), - // new("ObjStr", 9000010), - new("ObjStr", 10000010), // Item - new("EObj", 2003479), // EObj => EObjName - new("Treasure", 1473), // Treasure (without name, falls back to rowId 0) - new("Treasure", 1474), // Treasure (with name) - new("WeatherPlaceName", 0), - new("WeatherPlaceName", 28), - new("WeatherPlaceName", 40), - new("WeatherPlaceName", 52), - new("WeatherPlaceName", 2300), - new("InstanceContent", 1), - new("PartyContent", 2), - new("PublicContent", 1), - new("AkatsukiNote", 1), - ]; - - private unsafe delegate SheetRedirectFlags ResolveSheetRedirect(RaptureTextModule* thisPtr, Utf8String* sheetName, uint* rowId, uint* flags); - - /// <inheritdoc/> - public string Name => "Test SheetRedirectResolver"; - - /// <inheritdoc/> - public unsafe SelfTestStepResult RunStep() - { - // Client::UI::Misc::RaptureTextModule_ResolveSheetRedirect - if (!Service<TargetSigScanner>.Get().TryScanText("E8 ?? ?? ?? ?? 44 8B E8 A8 10", out var addr)) - return SelfTestStepResult.Fail; - - var sheetRedirectResolver = Service<SheetRedirectResolver>.Get(); - var resolveSheetRedirect = Marshal.GetDelegateForFunctionPointer<ResolveSheetRedirect>(addr); - var utf8SheetName = Utf8String.CreateEmpty(); - - try - { - for (var i = 0; i < this.redirects.Length; i++) - { - var redirect = this.redirects[i]; - - utf8SheetName->SetString(redirect.SheetName); - - var rowId1 = redirect.RowId; - uint colIndex1 = ushort.MaxValue; - var flags1 = resolveSheetRedirect(RaptureTextModule.Instance(), utf8SheetName, &rowId1, &colIndex1); - - var sheetName2 = redirect.SheetName; - var rowId2 = redirect.RowId; - uint colIndex2 = ushort.MaxValue; - var flags2 = sheetRedirectResolver.Resolve(ref sheetName2, ref rowId2, ref colIndex2); - - if (utf8SheetName->ToString() != sheetName2 || rowId1 != rowId2 || colIndex1 != colIndex2 || flags1 != flags2) - { - ImGui.Text($"Mismatch detected (Test #{i}):"); - ImGui.Text($"Input: {redirect.SheetName}#{redirect.RowId}"); - ImGui.Text($"Game: {utf8SheetName->ToString()}#{rowId1}-{colIndex1} ({flags1})"); - ImGui.Text($"Evaluated: {sheetName2}#{rowId2}-{colIndex2} ({flags2})"); - - if (ImGui.Button("Continue"u8)) - return SelfTestStepResult.Fail; - - return SelfTestStepResult.Waiting; - } - } - - return SelfTestStepResult.Pass; - } - finally - { - utf8SheetName->Dtor(true); - } - } - - /// <inheritdoc/> - public void CleanUp() - { - // ignored - } - - private record struct RedirectEntry(string SheetName, uint RowId, SheetRedirectFlags Flags = SheetRedirectFlags.None); -} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ToastSelfTestStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ToastSelfTestStep.cs deleted file mode 100644 index 793473ecc..000000000 --- a/Dalamud/Interface/Internal/Windows/SelfTest/Steps/ToastSelfTestStep.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Dalamud.Bindings.ImGui; -using Dalamud.Game.Gui.Toast; -using Dalamud.Plugin.SelfTest; - -namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps; - -/// <summary> -/// Test setup for toasts. -/// </summary> -internal class ToastSelfTestStep : ISelfTestStep -{ - private bool sentToasts = false; - - /// <inheritdoc/> - public string Name => "Test Toasts"; - - /// <inheritdoc/> - public SelfTestStepResult RunStep() - { - if (!this.sentToasts) - { - var toastGui = Service<ToastGui>.Get(); - toastGui.ShowNormal("Normal Toast"); - toastGui.ShowError("Error Toast"); - toastGui.ShowQuest("Quest Toast"); - this.sentToasts = true; - } - - ImGui.Text("Did you see a normal toast, a quest toast and an error toast?"u8); - - if (ImGui.Button("Yes"u8)) - { - return SelfTestStepResult.Pass; - } - - ImGui.SameLine(); - if (ImGui.Button("No"u8)) - { - return SelfTestStepResult.Fail; - } - - return SelfTestStepResult.Waiting; - } - - /// <inheritdoc/> - public void CleanUp() - { - this.sentToasts = false; - } -} diff --git a/Dalamud/Interface/Internal/Windows/Settings/SettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/SettingsEntry.cs index 3f53be07a..46013b72c 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/SettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/SettingsEntry.cs @@ -1,24 +1,22 @@ -using Dalamud.Utility.Internal; - -namespace Dalamud.Interface.Internal.Windows.Settings; +namespace Dalamud.Interface.Internal.Windows.Settings; /// <summary> /// Basic, drawable settings entry. /// </summary> -internal abstract class SettingsEntry +public abstract class SettingsEntry { /// <summary> /// Gets or sets the public, searchable name of this settings entry. /// </summary> - public LazyLoc Name { get; protected set; } + public string? Name { get; protected set; } /// <summary> - /// Gets or sets a value indicating whether this entry is valid. + /// Gets or sets a value indicating whether or not this entry is valid. /// </summary> public virtual bool IsValid { get; protected set; } = true; /// <summary> - /// Gets or sets a value indicating whether this entry is visible. + /// Gets or sets a value indicating whether or not this entry is visible. /// </summary> public virtual bool IsVisible { get; protected set; } = true; @@ -56,7 +54,7 @@ internal abstract class SettingsEntry { // ignored } - + /// <summary> /// Function to be called when the tab is closed. /// </summary> diff --git a/Dalamud/Interface/Internal/Windows/Settings/SettingsTab.cs b/Dalamud/Interface/Internal/Windows/Settings/SettingsTab.cs index e43e3c83a..bd4a702f5 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/SettingsTab.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/SettingsTab.cs @@ -1,20 +1,20 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using Dalamud.Interface.Utility; namespace Dalamud.Interface.Internal.Windows.Settings; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal abstract class SettingsTab : IDisposable +public abstract class SettingsTab : IDisposable { public abstract SettingsEntry[] Entries { get; } public abstract string Title { get; } - public abstract SettingsOpenKind Kind { get; } - public bool IsOpen { get; set; } = false; + public virtual bool IsVisible { get; } = true; + public virtual void OnOpen() { foreach (var settingsEntry in this.Entries) diff --git a/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs b/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs index aa8d1dc3a..c678dff10 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/SettingsWindow.cs @@ -3,7 +3,6 @@ using System.Numerics; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Internal.Windows.Settings.Tabs; @@ -13,24 +12,27 @@ using Dalamud.Interface.Utility.Raii; using Dalamud.Interface.Windowing; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Settings; /// <summary> /// The window that allows for general configuration of Dalamud itself. /// </summary> -internal sealed class SettingsWindow : Window +internal class SettingsWindow : Window { private readonly SettingsTab[] tabs; + private string searchInput = string.Empty; private bool isSearchInputPrefilled = false; - private SettingsTab? setActiveTab; + private SettingsTab setActiveTab = null!; /// <summary> /// Initializes a new instance of the <see cref="SettingsWindow"/> class. /// </summary> public SettingsWindow() - : base(Title, ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoScrollbar) + : base(Loc.Localize("DalamudSettingsHeader", "Dalamud Settings") + "###XlSettings2", ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoScrollbar) { this.Size = new Vector2(740, 550); this.SizeConstraints = new WindowSizeConstraints() @@ -40,23 +42,18 @@ internal sealed class SettingsWindow : Window }; this.SizeCondition = ImGuiCond.FirstUseEver; - + this.tabs = [ new SettingsTabGeneral(), new SettingsTabLook(), new SettingsTabAutoUpdates(), new SettingsTabDtr(), - new SettingsTabBadge(), new SettingsTabExperimental(), new SettingsTabAbout() ]; } - private static string Title => Loc.Localize("DalamudSettingsHeader", "Dalamud Settings") + "###XlSettings2"; - - private SettingsTab? CurrentlyOpenTab => this.tabs.FirstOrDefault(tab => tab.IsOpen); - /// <summary> /// Open the settings window to the tab specified by <paramref name="kind"/>. /// </summary> @@ -64,7 +61,7 @@ internal sealed class SettingsWindow : Window public void OpenTo(SettingsOpenKind kind) { this.IsOpen = true; - this.setActiveTab = this.tabs.Single(tab => tab.Kind == kind); + this.SetOpenTab(kind); } /// <summary> @@ -88,19 +85,12 @@ internal sealed class SettingsWindow : Window /// <inheritdoc/> public override void OnOpen() { - var localization = Service<Localization>.Get(); - foreach (var settingsTab in this.tabs) { settingsTab.Load(); } - if (!this.isSearchInputPrefilled) - { - this.searchInput = string.Empty; - } - - localization.LocalizationChanged += this.OnLocalizationChanged; + if (!this.isSearchInputPrefilled) this.searchInput = string.Empty; base.OnOpen(); } @@ -111,32 +101,20 @@ internal sealed class SettingsWindow : Window var configuration = Service<DalamudConfiguration>.Get(); var interfaceManager = Service<InterfaceManager>.Get(); var fontAtlasFactory = Service<FontAtlasFactory>.Get(); - var localization = Service<Localization>.Get(); - var scaleChanged = !Equals(ImGui.GetIO().FontGlobalScale, configuration.GlobalUiScale); var rebuildFont = !Equals(fontAtlasFactory.DefaultFontSpec, configuration.DefaultFontSpec); - rebuildFont |= scaleChanged; + rebuildFont |= !Equals(ImGui.GetIO().FontGlobalScale, configuration.GlobalUiScale); ImGui.GetIO().FontGlobalScale = configuration.GlobalUiScale; - if (scaleChanged) - { - interfaceManager.InvokeGlobalScaleChanged(); - } - fontAtlasFactory.DefaultFontSpecOverride = null; if (rebuildFont) - { interfaceManager.RebuildFonts(); - interfaceManager.InvokeFontChanged(); - } foreach (var settingsTab in this.tabs) { if (settingsTab.IsOpen) - { settingsTab.OnClose(); - } settingsTab.IsOpen = false; } @@ -146,34 +124,103 @@ internal sealed class SettingsWindow : Window this.isSearchInputPrefilled = false; this.searchInput = string.Empty; } - - localization.LocalizationChanged -= this.OnLocalizationChanged; } /// <inheritdoc/> public override void Draw() { - ImGui.SetNextItemWidth(-1); - using (ImRaii.Disabled(this.CurrentlyOpenTab is SettingsTabAbout)) - ImGui.InputTextWithHint("###searchInput"u8, Loc.Localize("DalamudSettingsSearchPlaceholder", "Search for settings..."), ref this.searchInput, 100, ImGuiInputTextFlags.AutoSelectAll); - ImGui.Spacing(); - var windowSize = ImGui.GetWindowSize(); - using (var tabBar = ImRaii.TabBar("###settingsTabs"u8)) + if (ImGui.BeginTabBar("###settingsTabs")) { - if (tabBar) + if (string.IsNullOrEmpty(this.searchInput)) { - if (string.IsNullOrEmpty(this.searchInput)) - this.DrawTabs(); - else - this.DrawSearchResults(); + foreach (var settingsTab in this.tabs.Where(x => x.IsVisible)) + { + var flags = ImGuiTabItemFlags.NoCloseWithMiddleMouseButton; + if (this.setActiveTab == settingsTab) + { + flags |= ImGuiTabItemFlags.SetSelected; + this.setActiveTab = null; + } + + using var tab = ImRaii.TabItem(settingsTab.Title, flags); + if (tab) + { + if (!settingsTab.IsOpen) + { + settingsTab.IsOpen = true; + settingsTab.OnOpen(); + } + + // Don't add padding for the about tab(credits) + { + using var padding = ImRaii.PushStyle( + ImGuiStyleVar.WindowPadding, + new Vector2(2, 2), + settingsTab is not SettingsTabAbout); + using var borderColor = ImRaii.PushColor( + ImGuiCol.Border, + ImGui.GetColorU32(ImGuiCol.ChildBg)); + using var tabChild = ImRaii.Child( + $"###settings_scrolling_{settingsTab.Title}", + new Vector2(-1, -1), + true); + if (tabChild) + settingsTab.Draw(); + } + + settingsTab.PostDraw(); + } + else if (settingsTab.IsOpen) + { + settingsTab.IsOpen = false; + settingsTab.OnClose(); + } + } } + else + { + if (ImGui.BeginTabItem("Search Results")) + { + var any = false; + + foreach (var settingsTab in this.tabs.Where(x => x.IsVisible)) + { + var eligible = settingsTab.Entries.Where(x => !x.Name.IsNullOrEmpty() && x.Name.ToLowerInvariant().Contains(this.searchInput.ToLowerInvariant())).ToArray(); + + if (!eligible.Any()) + continue; + + any = true; + + ImGui.TextColored(ImGuiColors.DalamudGrey, settingsTab.Title); + ImGui.Dummy(new Vector2(5)); + + foreach (var settingsTabEntry in eligible) + { + settingsTabEntry.Draw(); + ImGuiHelpers.ScaledDummy(3); + } + + ImGui.Separator(); + + ImGui.Dummy(new Vector2(10)); + } + + if (!any) + ImGui.TextColored(ImGuiColors.DalamudGrey, "No results found..."); + + ImGui.EndTabItem(); + } + } + + ImGui.EndTabBar(); } ImGui.SetCursorPos(windowSize - ImGuiHelpers.ScaledVector2(70)); - using (var buttonChild = ImRaii.Child("###settingsFinishButton"u8)) + using (var buttonChild = ImRaii.Child("###settingsFinishButton")) { if (buttonChild) { @@ -200,88 +247,10 @@ internal sealed class SettingsWindow : Window } } } - } - private void DrawTabs() - { - foreach (var settingsTab in this.tabs) - { - var flags = ImGuiTabItemFlags.NoCloseWithMiddleMouseButton; - - if (this.setActiveTab == settingsTab) - { - flags |= ImGuiTabItemFlags.SetSelected; - this.setActiveTab = null; - } - - using var tab = ImRaii.TabItem(settingsTab.Title, flags); - if (tab) - { - if (!settingsTab.IsOpen) - { - settingsTab.IsOpen = true; - settingsTab.OnOpen(); - } - - // Don't add padding for the About tab (credits) - { - using var padding = ImRaii.PushStyle( - ImGuiStyleVar.WindowPadding, - new Vector2(2, 2), - settingsTab is not SettingsTabAbout); - using var borderColor = ImRaii.PushColor( - ImGuiCol.Border, - ImGui.GetColorU32(ImGuiCol.ChildBg)); - using var tabChild = ImRaii.Child( - $"###settings_scrolling_{settingsTab.Title}", - new Vector2(-1, -1), - true); - if (tabChild) - settingsTab.Draw(); - } - - settingsTab.PostDraw(); - } - else if (settingsTab.IsOpen) - { - settingsTab.IsOpen = false; - settingsTab.OnClose(); - } - } - } - - private void DrawSearchResults() - { - using var tab = ImRaii.TabItem(Loc.Localize("DalamudSettingsSearchResults", "Search Results")); - if (!tab) return; - - var any = false; - - foreach (var settingsTab in this.tabs) - { - var eligible = settingsTab.Entries.Where(x => !x.Name.Key.IsNullOrEmpty() && x.Name.ToString().Contains(this.searchInput, StringComparison.InvariantCultureIgnoreCase)); - - if (!eligible.Any()) - continue; - - any |= true; - - ImGui.TextColored(ImGuiColors.DalamudGrey, settingsTab.Title); - ImGui.Dummy(new Vector2(5)); - - foreach (var settingsTabEntry in eligible) - { - settingsTabEntry.Draw(); - ImGuiHelpers.ScaledDummy(3); - } - - ImGui.Separator(); - - ImGui.Dummy(new Vector2(10)); - } - - if (!any) - ImGui.TextColored(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsNoSearchResultsFound", "No results found...")); + ImGui.SetCursorPos(new Vector2(windowSize.X - 250, ImGui.GetTextLineHeightWithSpacing() + (ImGui.GetStyle().FramePadding.Y * 2))); + ImGui.SetNextItemWidth(240); + ImGui.InputTextWithHint("###searchInput", "Search for settings...", ref this.searchInput, 100); } private void Save() @@ -323,9 +292,17 @@ internal sealed class SettingsWindow : Window Service<InterfaceManager>.Get().RebuildFonts(); } - private void OnLocalizationChanged(string langCode) + private void SetOpenTab(SettingsOpenKind kind) { - this.WindowName = Title; - this.setActiveTab = this.CurrentlyOpenTab; + this.setActiveTab = kind switch + { + SettingsOpenKind.General => this.tabs[0], + SettingsOpenKind.LookAndFeel => this.tabs[1], + SettingsOpenKind.AutoUpdates => this.tabs[2], + SettingsOpenKind.ServerInfoBar => this.tabs[3], + SettingsOpenKind.Experimental => this.tabs[4], + SettingsOpenKind.About => this.tabs[5], + _ => throw new ArgumentOutOfRangeException(nameof(kind), kind, null), + }; } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs index 1d5eebb85..6a231eeaf 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAbout.cs @@ -1,11 +1,9 @@ -using System.Diagnostics; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Game.Gui; using Dalamud.Interface.GameFonts; using Dalamud.Interface.ManagedFontAtlas; @@ -16,13 +14,13 @@ using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; using Dalamud.Storage.Assets; using Dalamud.Utility; - using FFXIVClientStructs.FFXIV.Client.Game.UI; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class SettingsTabAbout : SettingsTab +public class SettingsTabAbout : SettingsTab { private const float CreditFps = 60.0f; private const string ThankYouText = "Thank you!"; @@ -196,7 +194,6 @@ Contribute at: https://github.com/goatcorp/Dalamud private readonly IFontAtlas privateAtlas; private string creditsText; - private bool isBgmSet; private bool resetNow = false; private IDalamudTextureWrap? logoTexture; @@ -211,12 +208,10 @@ Contribute at: https://github.com/goatcorp/Dalamud .CreateFontAtlas(nameof(SettingsTabAbout), FontAtlasAutoRebuildMode.Async); } + public override SettingsEntry[] Entries { get; } = { }; + public override string Title => Loc.Localize("DalamudAbout", "About"); - public override SettingsOpenKind Kind => SettingsOpenKind.About; - - public override SettingsEntry[] Entries { get; } = []; - /// <inheritdoc/> public override unsafe void OnOpen() { @@ -225,15 +220,12 @@ Contribute at: https://github.com/goatcorp/Dalamud .Select(plugin => $"{plugin.Manifest.Name} by {plugin.Manifest.Author}\n") .Aggregate(string.Empty, (current, next) => $"{current}{next}"); - this.creditsText = string.Format(CreditsTextTempl, typeof(Dalamud).Assembly.GetName().Version, pluginCredits, Versioning.GetGitHashClientStructs()); + this.creditsText = string.Format(CreditsTextTempl, typeof(Dalamud).Assembly.GetName().Version, pluginCredits, Util.GetGitHashClientStructs()); - var gameGui = Service<GameGui>.Get(); - var playerState = PlayerState.Instance(); - - if (!gameGui.IsInLobby() && playerState != null) + var gg = Service<GameGui>.Get(); + if (!gg.IsOnTitleScreen() && UIState.Instance() != null) { - gameGui.SetBgm((ushort)(playerState->MaxExpansion > 3 ? 833 : 132)); - this.isBgmSet = true; + gg.SetBgm((ushort)(UIState.Instance()->PlayerState.MaxExpansion > 3 ? 833 : 132)); } this.creditsThrottler.Restart(); @@ -250,15 +242,9 @@ Contribute at: https://github.com/goatcorp/Dalamud { this.creditsThrottler.Reset(); - if (this.isBgmSet) - { - var gameGui = Service<GameGui>.Get(); - - if (!gameGui.IsInLobby()) - gameGui.ResetBgm(); - - this.isBgmSet = false; - } + var gg = Service<GameGui>.Get(); + if (!gg.IsOnTitleScreen()) + gg.SetBgm(9999); Service<DalamudInterface>.Get().SetCreditsDarkeningAnimation(false); } @@ -267,7 +253,7 @@ Contribute at: https://github.com/goatcorp/Dalamud { var windowSize = ImGui.GetWindowSize(); - using var child = ImRaii.Child("scrolling"u8, new Vector2(-1, -10 * ImGuiHelpers.GlobalScale), false, ImGuiWindowFlags.NoScrollbar); + using var child = ImRaii.Child("scrolling", new Vector2(-1, -10 * ImGuiHelpers.GlobalScale), false, ImGuiWindowFlags.NoScrollbar); if (!child) return; @@ -285,19 +271,19 @@ Contribute at: https://github.com/goatcorp/Dalamud const float imageSize = 190f; ImGui.SameLine((ImGui.GetWindowWidth() / 2) - (imageSize / 2)); this.logoTexture ??= Service<DalamudAssetManager>.Get().GetDalamudTextureWrap(DalamudAsset.Logo); - ImGui.Image(this.logoTexture.Handle, ImGuiHelpers.ScaledVector2(imageSize)); + ImGui.Image(this.logoTexture.ImGuiHandle, ImGuiHelpers.ScaledVector2(imageSize)); ImGuiHelpers.ScaledDummy(0, 20f); var windowX = ImGui.GetWindowSize().X; - foreach (var creditsLine in this.creditsText.Split(["\r\n", "\r", "\n"], StringSplitOptions.None)) + foreach (var creditsLine in this.creditsText.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None)) { var lineLenX = ImGui.CalcTextSize(creditsLine).X; ImGui.Dummy(new Vector2((windowX / 2) - (lineLenX / 2), 0f)); ImGui.SameLine(); - ImGui.Text(creditsLine); + ImGui.TextUnformatted(creditsLine); } ImGuiHelpers.ScaledDummy(0, 40f); @@ -309,7 +295,7 @@ Contribute at: https://github.com/goatcorp/Dalamud ImGui.Dummy(new Vector2((windowX / 2) - (thankYouLenX / 2), 0f)); ImGui.SameLine(); - ImGui.Text(ThankYouText); + ImGui.TextUnformatted(ThankYouText); } ImGuiHelpers.ScaledDummy(0, windowSize.Y + 50f); diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs index b03a0f51c..77c79c96d 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabAutoUpdate.cs @@ -1,11 +1,9 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -16,40 +14,38 @@ using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.AutoUpdate; using Dalamud.Plugin.Internal.Types; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class SettingsTabAutoUpdates : SettingsTab +public class SettingsTabAutoUpdates : SettingsTab { private AutoUpdateBehavior behavior; - private bool updateDisabledPlugins; private bool checkPeriodically; - private bool chatNotification; private string pickerSearch = string.Empty; private List<AutoUpdatePreference> autoUpdatePreferences = []; - - public override SettingsEntry[] Entries { get; } = []; + + public override SettingsEntry[] Entries { get; } = Array.Empty<SettingsEntry>(); public override string Title => Loc.Localize("DalamudSettingsAutoUpdates", "Auto-Updates"); - public override SettingsOpenKind Kind => SettingsOpenKind.AutoUpdates; - public override void Draw() { - ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateHint", "Dalamud can update your plugins automatically, making sure that you always " + "have the newest features and bug fixes. You can choose when and how auto-updates are run here.")); ImGuiHelpers.ScaledDummy(2); - - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", + + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer1", "You can always update your plugins manually by clicking the update button in the plugin list. " + "You can also opt into updates for specific plugins by right-clicking them and selecting \"Always auto-update\".")); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdateDisclaimer2", "Dalamud will only notify you about updates while you are idle.")); - + ImGuiHelpers.ScaledDummy(8); - - ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateBehavior", + + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateBehavior", "When the game starts...")); var behaviorInt = (int)this.behavior; ImGui.RadioButton(Loc.Localize("DalamudSettingsAutoUpdateNone", "Do not check for updates automatically"), ref behaviorInt, (int)AutoUpdateBehavior.None); @@ -64,50 +60,48 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab "DalamudSettingsAutoUpdateAllWarning", "Warning: This will update all plugins, including those not from the main repository.\n" + "These updates are not reviewed by the Dalamud team and may contain malicious code."); - ImGui.TextColoredWrapped(ImGuiColors.DalamudOrange, warning); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudOrange, warning); } - + ImGuiHelpers.ScaledDummy(8); - - ImGui.Checkbox(Loc.Localize("DalamudSettingsAutoUpdateDisabledPlugins", "Auto-Update plugins that are currently disabled"), ref this.updateDisabledPlugins); - ImGui.Checkbox(Loc.Localize("DalamudSettingsAutoUpdateChatMessage", "Show notification about updates available in chat"), ref this.chatNotification); + ImGui.Checkbox(Loc.Localize("DalamudSettingsAutoUpdatePeriodically", "Periodically check for new updates while playing"), ref this.checkPeriodically); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdatePeriodicallyHint", + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsAutoUpdatePeriodicallyHint", "Plugins won't update automatically after startup, you will only receive a notification while you are not actively playing.")); - + ImGuiHelpers.ScaledDummy(5); ImGui.Separator(); ImGuiHelpers.ScaledDummy(5); - - ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOptedIn", + + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOptedIn", "Per-plugin overrides")); - - ImGui.TextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOverrideHint", + + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudWhite, Loc.Localize("DalamudSettingsAutoUpdateOverrideHint", "Here, you can choose to receive or not to receive updates for specific plugins. " + "This will override the settings above for the selected plugins.")); if (this.autoUpdatePreferences.Count == 0) { ImGuiHelpers.ScaledDummy(20); - + using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) { ImGuiHelpers.CenteredText(Loc.Localize("DalamudSettingsAutoUpdateOptedInHint2", "You don't have auto-update rules for any plugins.")); } - + ImGuiHelpers.ScaledDummy(2); } else { ImGuiHelpers.ScaledDummy(5); - + var pic = Service<PluginImageCache>.Get(); var windowSize = ImGui.GetWindowSize(); var pluginLineHeight = 32 * ImGuiHelpers.GlobalScale; Guid? wantRemovePluginGuid = null; - + foreach (var preference in this.autoUpdatePreferences) { var pmPlugin = Service<PluginManager>.Get().InstalledPlugins @@ -121,17 +115,16 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab pic.TryGetIcon(pmPlugin, pmPlugin.Manifest, pmPlugin.IsThirdParty, out var icon, out _); icon ??= pic.DefaultIcon; - ImGui.Image(icon.Handle, new Vector2(pluginLineHeight)); + ImGui.Image(icon.ImGuiHandle, new Vector2(pluginLineHeight)); if (pmPlugin.IsDev) { ImGui.SetCursorPos(cursorBeforeIcon); - using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, 0.7f)) - { - ImGui.Image(pic.DevPluginIcon.Handle, new Vector2(pluginLineHeight)); - } + ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 0.7f); + ImGui.Image(pic.DevPluginIcon.ImGuiHandle, new Vector2(pluginLineHeight)); + ImGui.PopStyleVar(); } - + ImGui.SameLine(); var text = $"{pmPlugin.Name}{(pmPlugin.IsDev ? " (dev plugin" : string.Empty)}"; @@ -139,13 +132,13 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.Text(text); + ImGui.TextUnformatted(text); ImGui.SetCursorPos(before); } else { - ImGui.Image(pic.DefaultIcon.Handle, new Vector2(pluginLineHeight)); + ImGui.Image(pic.DefaultIcon.ImGuiHandle, new Vector2(pluginLineHeight)); ImGui.SameLine(); var text = Loc.Localize("DalamudSettingsAutoUpdateOptInUnknownPlugin", "Unknown plugin"); @@ -153,8 +146,8 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab var before = ImGui.GetCursorPos(); ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (pluginLineHeight / 2) - (textHeight.Y / 2)); - ImGui.Text(text); - + ImGui.TextUnformatted(text); + ImGui.SetCursorPos(before); } @@ -173,18 +166,19 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab } ImGui.SetNextItemWidth(ImGuiHelpers.GlobalScale * 250); - using (var combo = ImRaii.Combo($"###autoUpdateBehavior{preference.WorkingPluginId}", OptKindToString(preference.Kind))) + if (ImGui.BeginCombo( + $"###autoUpdateBehavior{preference.WorkingPluginId}", + OptKindToString(preference.Kind))) { - if (combo.Success) + foreach (var kind in Enum.GetValues<AutoUpdatePreference.OptKind>()) { - foreach (var kind in Enum.GetValues<AutoUpdatePreference.OptKind>()) + if (ImGui.Selectable(OptKindToString(kind))) { - if (ImGui.Selectable(OptKindToString(kind))) - { - preference.Kind = kind; - } + preference.Kind = kind; } } + + ImGui.EndCombo(); } ImGui.SameLine(); @@ -199,7 +193,7 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab if (ImGui.IsItemHovered()) ImGui.SetTooltip(Loc.Localize("DalamudSettingsAutoUpdateOptInRemove", "Remove this override")); } - + if (wantRemovePluginGuid != null) { this.autoUpdatePreferences.RemoveAll(x => x.WorkingPluginId == wantRemovePluginGuid); @@ -211,19 +205,19 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab var id = plugin.EffectiveWorkingPluginId; if (id == Guid.Empty) throw new InvalidOperationException("Plugin ID is empty."); - + this.autoUpdatePreferences.Add(new AutoUpdatePreference(id)); } - + bool IsPluginDisabled(LocalPlugin plugin) => this.autoUpdatePreferences.Any(x => x.WorkingPluginId == plugin.EffectiveWorkingPluginId); - + bool IsPluginFiltered(LocalPlugin plugin) => !plugin.IsDev; - + var pickerId = DalamudComponents.DrawPluginPicker( "###autoUpdatePicker", ref this.pickerSearch, OnPluginPicked, IsPluginDisabled, IsPluginFiltered); - + const FontAwesomeIcon addButtonIcon = FontAwesomeIcon.Plus; var addButtonText = Loc.Localize("DalamudSettingsAutoUpdateOptInAdd", "Add new override"); ImGuiHelpers.CenterCursorFor(ImGuiComponents.GetIconButtonWithTextWidth(addButtonIcon, addButtonText)); @@ -241,24 +235,20 @@ internal sealed class SettingsTabAutoUpdates : SettingsTab var configuration = Service<DalamudConfiguration>.Get(); this.behavior = configuration.AutoUpdateBehavior ?? AutoUpdateBehavior.None; - this.updateDisabledPlugins = configuration.UpdateDisabledPlugins; - this.chatNotification = configuration.SendUpdateNotificationToChat; this.checkPeriodically = configuration.CheckPeriodicallyForUpdates; this.autoUpdatePreferences = configuration.PluginAutoUpdatePreferences; - + base.Load(); } public override void Save() { var configuration = Service<DalamudConfiguration>.Get(); - + configuration.AutoUpdateBehavior = this.behavior; - configuration.UpdateDisabledPlugins = this.updateDisabledPlugins; - configuration.SendUpdateNotificationToChat = this.chatNotification; configuration.CheckPeriodicallyForUpdates = this.checkPeriodically; configuration.PluginAutoUpdatePreferences = this.autoUpdatePreferences; - + base.Save(); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabBadge.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabBadge.cs deleted file mode 100644 index e39c1952c..000000000 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabBadge.cs +++ /dev/null @@ -1,128 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Linq; - -using CheapLoc; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Colors; -using Dalamud.Interface.Internal.Badge; -using Dalamud.Interface.Internal.Windows.Settings.Widgets; -using Dalamud.Interface.Utility; -using Dalamud.Storage.Assets; -using Dalamud.Utility.Internal; - -namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; - -[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class SettingsTabBadge : SettingsTab -{ - private string badgePassword = string.Empty; - private bool badgeWasError = false; - - public override string Title => Loc.Localize("DalamudSettingsBadge", "Badges"); - - public override SettingsOpenKind Kind => SettingsOpenKind.Badge; - - public override SettingsEntry[] Entries { get; } = - [ - new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsShowBadgesOnTitleScreen", "Show Badges on Title Screen"), - LazyLoc.Localize("DalamudSettingsShowBadgesOnTitleScreenHint", "If enabled, your unlocked badges will also be shown on the title screen."), - c => c.ShowBadgesOnTitleScreen, - (v, c) => c.ShowBadgesOnTitleScreen = v), - ]; - - public override void Draw() - { - var badgeManager = Service<BadgeManager>.Get(); - var dalamudInterface = Service<DalamudInterface>.Get(); - - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingBadgesHint", "On this tab, you can unlock small badges that show on your title screen.\nBadge codes are usually given out during community events or contests.")); - - ImGuiHelpers.ScaledDummy(5); - - ImGui.Text(Loc.Localize("DalamudSettingsBadgesUnlock", "Unlock a badge")); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsBadgesUnlockHint", "If you have received a code for a badge, enter it here to unlock the badge.")); - ImGui.InputTextWithHint( - "##BadgePassword", - Loc.Localize("DalamudSettingsBadgesUnlockHintInput", "Enter badge code here"), - ref this.badgePassword, - 100); - ImGui.SameLine(); - if (ImGui.Button(Loc.Localize("DalamudSettingsBadgesUnlockButton", "Unlock Badge"))) - { - if (badgeManager.TryUnlockBadge(this.badgePassword.Trim(), BadgeUnlockMethod.User, out var unlockedBadge)) - { - dalamudInterface.StartBadgeUnlockAnimation(unlockedBadge); - this.badgeWasError = false; - } - else - { - this.badgeWasError = true; - } - } - - if (this.badgeWasError) - { - ImGuiHelpers.ScaledDummy(5); - ImGui.TextColored(ImGuiColors.DalamudRed, Loc.Localize("DalamudSettingsBadgesUnlockError", "Failed to unlock badge. The code may be invalid or you may have already unlocked this badge.")); - } - - ImGuiHelpers.ScaledDummy(5); - - base.Draw(); - - ImGui.Separator(); - - ImGuiHelpers.ScaledDummy(5); - - var haveBadges = badgeManager.UnlockedBadges.ToArray(); - - if (haveBadges.Length == 0) - { - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsBadgesDidNone", "You did not unlock any badges yet.")); - } - - var badgeTexture = Service<DalamudAssetManager>.Get().GetDalamudTextureWrap(DalamudAsset.BadgeAtlas); - foreach (var badge in haveBadges) - { - var uvs = badge.GetIconUv(badgeTexture.Width, badgeTexture.Height); - var sectionSize = ImGuiHelpers.GlobalScale * 66; - - var startCursor = ImGui.GetCursorPos(); - - ImGui.SetCursorPos(startCursor); - - var iconSize = ImGuiHelpers.ScaledVector2(64, 64); - var cursorBeforeImage = ImGui.GetCursorPos(); - var rectOffset = ImGui.GetWindowContentRegionMin() + ImGui.GetWindowPos(); - - if (ImGui.IsRectVisible(rectOffset + cursorBeforeImage, rectOffset + cursorBeforeImage + iconSize)) - { - ImGui.Image(badgeTexture.Handle, iconSize, uvs.Uv0, uvs.Uv1); - ImGui.SameLine(); - ImGui.SetCursorPos(cursorBeforeImage); - } - - ImGui.SameLine(); - - ImGuiHelpers.ScaledDummy(5); - ImGui.SameLine(); - - var cursor = ImGui.GetCursorPos(); - - // Name - ImGui.Text(badge.Name()); - - cursor.Y += ImGui.GetTextLineHeightWithSpacing(); - ImGui.SetCursorPos(cursor); - - // Description - ImGui.TextWrapped(badge.Description()); - - startCursor.Y += sectionSize; - ImGui.SetCursorPos(startCursor); - - ImGuiHelpers.ScaledDummy(5); - } - } -} diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs index 18382b1f8..d1040b5b2 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabDtr.cs @@ -1,36 +1,34 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game.Gui.Dtr; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; using Dalamud.Interface.Utility; +using ImGuiNET; + namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class SettingsTabDtr : SettingsTab +public class SettingsTabDtr : SettingsTab { private List<string>? dtrOrder; private List<string>? dtrIgnore; private int dtrSpacing; private bool dtrSwapDirection; + public override SettingsEntry[] Entries { get; } = Array.Empty<SettingsEntry>(); + public override string Title => Loc.Localize("DalamudSettingsServerInfoBar", "Server Info Bar"); - public override SettingsOpenKind Kind => SettingsOpenKind.ServerInfoBar; - - public override SettingsEntry[] Entries { get; } = []; - public override void Draw() { - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarHint", "Plugins can put additional information into your server information bar(where world & time can be seen).\nYou can reorder and disable these here.")); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarHint", "Plugins can put additional information into your server information bar(where world & time can be seen).\nYou can reorder and disable these here.")); ImGuiHelpers.ScaledDummy(10); @@ -44,7 +42,7 @@ internal sealed class SettingsTabDtr : SettingsTab if (order.Count == 0) { - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDidNone", "You have no plugins that use this feature.")); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDidNone", "You have no plugins that use this feature.")); } var isOrderChange = false; @@ -104,7 +102,7 @@ internal sealed class SettingsTabDtr : SettingsTab ImGui.SameLine(); // if (isRequired) { - // ImGui.Text($"Search in {name}"); + // ImGui.TextUnformatted($"Search in {name}"); // } else { var isShown = ignore.All(x => x != title); @@ -128,8 +126,8 @@ internal sealed class SettingsTabDtr : SettingsTab ImGui.GetIO().MousePos = moveMouseTo[moveMouseToIndex]; } - configuration.DtrOrder = [.. order, .. orderLeft]; - configuration.DtrIgnore = [.. ignore, .. ignoreLeft]; + configuration.DtrOrder = order.Concat(orderLeft).ToList(); + configuration.DtrIgnore = ignore.Concat(ignoreLeft).ToList(); if (isOrderChange) dtrBar.ApplySort(); @@ -137,12 +135,12 @@ internal sealed class SettingsTabDtr : SettingsTab ImGuiHelpers.ScaledDummy(10); ImGui.Text(Loc.Localize("DalamudSettingServerInfoBarSpacing", "Server Info Bar spacing")); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarSpacingHint", "Configure the amount of space between entries in the server info bar here.")); - ImGui.SliderInt("Spacing"u8, ref this.dtrSpacing, 0, 40); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarSpacingHint", "Configure the amount of space between entries in the server info bar here.")); + ImGui.SliderInt("Spacing", ref this.dtrSpacing, 0, 40); ImGui.Text(Loc.Localize("DalamudSettingServerInfoBarDirection", "Server Info Bar direction")); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDirectionHint", "If checked, the Server Info Bar elements will expand to the right instead of the left.")); - ImGui.Checkbox("Swap Direction"u8, ref this.dtrSwapDirection); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingServerInfoBarDirectionHint", "If checked, the Server Info Bar elements will expand to the right instead of the left.")); + ImGui.Checkbox("Swap Direction", ref this.dtrSwapDirection); base.Draw(); } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs index 4ba5bed94..aef674ac4 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabExperimental.cs @@ -1,16 +1,15 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Internal.ReShadeHandling; +using Dalamud.Interface.Internal.Windows.PluginInstaller; using Dalamud.Interface.Internal.Windows.Settings.Widgets; using Dalamud.Interface.Utility; using Dalamud.Plugin.Internal; using Dalamud.Utility; -using Dalamud.Utility.Internal; namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; @@ -18,28 +17,45 @@ namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; "StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class SettingsTabExperimental : SettingsTab +public class SettingsTabExperimental : SettingsTab { - public override string Title => Loc.Localize("DalamudSettingsExperimental", "Experimental"); - - public override SettingsOpenKind Kind => SettingsOpenKind.Experimental; - public override SettingsEntry[] Entries { get; } = [ new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsPluginTest", "Get plugin testing builds"), - LazyLoc.Localize("DalamudSettingsPluginTestHint", "Receive testing prereleases for selected plugins.\nTo opt-in to testing builds for a plugin, you have to right click it in the \"Installed Plugins\" tab of the plugin installer and select \"Receive plugin testing versions\"."), + Loc.Localize("DalamudSettingsPluginTest", "Get plugin testing builds"), + string.Format( + Loc.Localize( + "DalamudSettingsPluginTestHint", + "Receive testing prereleases for selected plugins.\nTo opt-in to testing builds for a plugin, you have to right click it in the \"{0}\" tab of the plugin installer and select \"{1}\"."), + PluginCategoryManager.Locs.Group_Installed, + PluginInstallerWindow.Locs.PluginContext_TestingOptIn), c => c.DoPluginTest, (v, c) => c.DoPluginTest = v), new HintSettingsEntry( - LazyLoc.Localize("DalamudSettingsPluginTestWarning", "Testing plugins may contain bugs or crash your game. Please only enable this if you are aware of the risks."), + Loc.Localize( + "DalamudSettingsPluginTestWarning", + "Testing plugins may contain bugs or crash your game. Please only enable this if you are aware of the risks."), ImGuiColors.DalamudRed), new GapSettingsEntry(5), + new SettingsEntry<bool>( + Loc.Localize( + "DalamudSettingEnablePluginUIAdditionalOptions", + "Add a button to the title bar of plugin windows to open additional options"), + Loc.Localize( + "DalamudSettingEnablePluginUIAdditionalOptionsHint", + "This will allow you to pin certain plugin windows, make them clickthrough or adjust their opacity.\nThis may not be supported by all of your plugins. Contact the plugin author if you want them to support this feature."), + c => c.EnablePluginUiAdditionalOptions, + (v, c) => c.EnablePluginUiAdditionalOptions = v), + + new GapSettingsEntry(5), + new ButtonSettingsEntry( - LazyLoc.Localize("DalamudSettingsClearHidden", "Clear hidden plugins"), - LazyLoc.Localize("DalamudSettingsClearHiddenHint", "Restore plugins you have previously hidden from the plugin installer."), + Loc.Localize("DalamudSettingsClearHidden", "Clear hidden plugins"), + Loc.Localize( + "DalamudSettingsClearHiddenHint", + "Restore plugins you have previously hidden from the plugin installer."), () => { Service<DalamudConfiguration>.Get().HiddenPluginInternalName.Clear(); @@ -50,20 +66,6 @@ internal sealed class SettingsTabExperimental : SettingsTab new DevPluginsSettingsEntry(), - new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingEnableImGuiAsserts", "Enable ImGui asserts"), - LazyLoc.Localize("DalamudSettingEnableImGuiAssertsHint", - "If this setting is enabled, a window containing further details will be shown when an internal assertion in ImGui fails.\nWe recommend enabling this when developing plugins. " + - "This setting does not persist and will reset when the game restarts.\nUse the setting below to enable it at startup."), - c => Service<InterfaceManager>.Get().ShowAsserts, - (v, _) => Service<InterfaceManager>.Get().ShowAsserts = v), - - new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingEnableImGuiAssertsAtStartup", "Always enable ImGui asserts at startup"), - LazyLoc.Localize("DalamudSettingEnableImGuiAssertsAtStartupHint", "This will enable ImGui asserts every time the game starts."), - c => c.ImGuiAssertsEnabledAtStartup ?? false, - (v, c) => c.ImGuiAssertsEnabledAtStartup = v), - new GapSettingsEntry(5, true), new ThirdRepoSettingsEntry(), @@ -71,8 +73,10 @@ internal sealed class SettingsTabExperimental : SettingsTab new GapSettingsEntry(5, true), new EnumSettingsEntry<ReShadeHandlingMode>( - LazyLoc.Localize("DalamudSettingsReShadeHandlingMode", "ReShade handling mode"), - LazyLoc.Localize("DalamudSettingsReShadeHandlingModeHint", "You may try different options to work around problems you may encounter.\nRestart is required for changes to take effect."), + Loc.Localize("DalamudSettingsReShadeHandlingMode", "ReShade handling mode"), + Loc.Localize( + "DalamudSettingsReShadeHandlingModeHint", + "You may try different options to work around problems you may encounter.\nRestart is required for changes to take effect."), c => c.ReShadeHandlingMode, (v, c) => c.ReShadeHandlingMode = v, fallbackValue: ReShadeHandlingMode.Default, @@ -132,11 +136,13 @@ internal sealed class SettingsTabExperimental : SettingsTab */ ]; + public override string Title => Loc.Localize("DalamudSettingsExperimental", "Experimental"); + public override void Draw() { base.Draw(); - ImGui.TextColoredWrapped( + ImGuiHelpers.SafeTextColoredWrapped( ImGuiColors.DalamudGrey, "Total memory used by Dalamud & Plugins: " + Util.FormatBytes(GC.GetTotalMemory(false))); ImGuiHelpers.ScaledDummy(15); diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabGeneral.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabGeneral.cs index 0daa52630..5e3648ac6 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabGeneral.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabGeneral.cs @@ -1,29 +1,23 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using CheapLoc; - using Dalamud.Game.Text; using Dalamud.Interface.Internal.Windows.Settings.Widgets; -using Dalamud.Utility.Internal; namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class SettingsTabGeneral : SettingsTab +public class SettingsTabGeneral : SettingsTab { - public override string Title => Loc.Localize("DalamudSettingsGeneral", "General"); - - public override SettingsOpenKind Kind => SettingsOpenKind.General; - public override SettingsEntry[] Entries { get; } = - [ + { new LanguageChooserSettingsEntry(), new GapSettingsEntry(5), new EnumSettingsEntry<XivChatType>( - LazyLoc.Localize("DalamudSettingsChannel", "Dalamud Chat Channel"), - LazyLoc.Localize("DalamudSettingsChannelHint", "Select the chat channel that is to be used for general Dalamud messages."), + Loc.Localize("DalamudSettingsChannel", "Dalamud Chat Channel"), + Loc.Localize("DalamudSettingsChannelHint", "Select the chat channel that is to be used for general Dalamud messages."), c => c.GeneralChatType, (v, c) => c.GeneralChatType = v, warning: v => @@ -39,47 +33,49 @@ internal sealed class SettingsTabGeneral : SettingsTab new GapSettingsEntry(5), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsWaitForPluginsOnStartup", "Wait for plugins before game loads"), - LazyLoc.Localize("DalamudSettingsWaitForPluginsOnStartupHint", "Do not let the game load, until plugins are loaded."), + Loc.Localize("DalamudSettingsWaitForPluginsOnStartup", "Wait for plugins before game loads"), + Loc.Localize("DalamudSettingsWaitForPluginsOnStartupHint", "Do not let the game load, until plugins are loaded."), c => c.IsResumeGameAfterPluginLoad, (v, c) => c.IsResumeGameAfterPluginLoad = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsFlash", "Flash FFXIV window on duty pop"), - LazyLoc.Localize("DalamudSettingsFlashHint", "Flash the FFXIV window in your task bar when a duty is ready."), + Loc.Localize("DalamudSettingsFlash", "Flash FFXIV window on duty pop"), + Loc.Localize("DalamudSettingsFlashHint", "Flash the FFXIV window in your task bar when a duty is ready."), c => c.DutyFinderTaskbarFlash, (v, c) => c.DutyFinderTaskbarFlash = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsDutyFinderMessage", "Chatlog message on duty pop"), - LazyLoc.Localize("DalamudSettingsDutyFinderMessageHint", "Send a message in FFXIV chat when a duty is ready."), + Loc.Localize("DalamudSettingsDutyFinderMessage", "Chatlog message on duty pop"), + Loc.Localize("DalamudSettingsDutyFinderMessageHint", "Send a message in FFXIV chat when a duty is ready."), c => c.DutyFinderChatMessage, (v, c) => c.DutyFinderChatMessage = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsPrintDalamudWelcomeMsg", "Display Dalamud's welcome message"), - LazyLoc.Localize("DalamudSettingsPrintDalamudWelcomeMsgHint", "Display Dalamud's welcome message in FFXIV chat when logging in with a character."), + Loc.Localize("DalamudSettingsPrintDalamudWelcomeMsg", "Display Dalamud's welcome message"), + Loc.Localize("DalamudSettingsPrintDalamudWelcomeMsgHint", "Display Dalamud's welcome message in FFXIV chat when logging in with a character."), c => c.PrintDalamudWelcomeMsg, (v, c) => c.PrintDalamudWelcomeMsg = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsPrintPluginsWelcomeMsg", "Display loaded plugins in the welcome message"), - LazyLoc.Localize("DalamudSettingsPrintPluginsWelcomeMsgHint", "Display loaded plugins in FFXIV chat when logging in with a character."), + Loc.Localize("DalamudSettingsPrintPluginsWelcomeMsg", "Display loaded plugins in the welcome message"), + Loc.Localize("DalamudSettingsPrintPluginsWelcomeMsgHint", "Display loaded plugins in FFXIV chat when logging in with a character."), c => c.PrintPluginsWelcomeMsg, (v, c) => c.PrintPluginsWelcomeMsg = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsSystemMenu", "Dalamud buttons in system menu"), - LazyLoc.Localize("DalamudSettingsSystemMenuMsgHint", "Add buttons for Dalamud plugins and settings to the system menu."), + Loc.Localize("DalamudSettingsSystemMenu", "Dalamud buttons in system menu"), + Loc.Localize("DalamudSettingsSystemMenuMsgHint", "Add buttons for Dalamud plugins and settings to the system menu."), c => c.DoButtonsSystemMenu, (v, c) => c.DoButtonsSystemMenu = v), new GapSettingsEntry(5), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingDoMbCollect", "Anonymously upload market board data"), - LazyLoc.Localize("DalamudSettingDoMbCollectHint", "Anonymously provide data about in-game economics to Universalis when browsing the market board. This data can't be tied to you in any way and everyone benefits!"), + Loc.Localize("DalamudSettingDoMbCollect", "Anonymously upload market board data"), + Loc.Localize("DalamudSettingDoMbCollectHint", "Anonymously provide data about in-game economics to Universalis when browsing the market board. This data can't be tied to you in any way and everyone benefits!"), c => c.IsMbCollect, (v, c) => c.IsMbCollect = v), - ]; + }; + + public override string Title => Loc.Localize("DalamudSettingsGeneral", "General"); } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs index d8bf31bfd..61ab00936 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Tabs/SettingsTabLook.cs @@ -1,79 +1,61 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using System.Text; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; +using Dalamud.Game.Text; using Dalamud.Interface.Colors; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; using Dalamud.Interface.ImGuiFontChooserDialog; -using Dalamud.Interface.ImGuiNotification.Internal; +using Dalamud.Interface.Internal.Windows.PluginInstaller; using Dalamud.Interface.Internal.Windows.Settings.Widgets; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility; using Dalamud.Utility; -using Dalamud.Utility.Internal; - +using ImGuiNET; using Serilog; namespace Dalamud.Interface.Internal.Windows.Settings.Tabs; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class SettingsTabLook : SettingsTab +public class SettingsTabLook : SettingsTab { - private static readonly (string, float)[] GlobalUiScalePresets = - [ + private static readonly (string, float)[] GlobalUiScalePresets = + { ("80%##DalamudSettingsGlobalUiScaleReset96", 0.8f), ("100%##DalamudSettingsGlobalUiScaleReset12", 1f), ("117%##DalamudSettingsGlobalUiScaleReset14", 14 / 12f), ("150%##DalamudSettingsGlobalUiScaleReset18", 1.5f), ("200%##DalamudSettingsGlobalUiScaleReset24", 2f), ("300%##DalamudSettingsGlobalUiScaleReset36", 3f), - ]; + }; private float globalUiScale; private IFontSpec defaultFontSpec = null!; - public override string Title => Loc.Localize("DalamudSettingsVisual", "Look & Feel"); - - public override SettingsOpenKind Kind => SettingsOpenKind.LookAndFeel; - public override SettingsEntry[] Entries { get; } = - [ + { new GapSettingsEntry(5, true), new ButtonSettingsEntry( - LazyLoc.Localize("DalamudSettingsOpenStyleEditor", "Open Style Editor"), - LazyLoc.Localize("DalamudSettingsStyleEditorHint", "Modify the look & feel of Dalamud windows."), + Loc.Localize("DalamudSettingsOpenStyleEditor", "Open Style Editor"), + Loc.Localize("DalamudSettingsStyleEditorHint", "Modify the look & feel of Dalamud windows."), () => Service<DalamudInterface>.Get().OpenStyleEditor()), - new ButtonSettingsEntry( - LazyLoc.Localize("DalamudSettingsOpenNotificationEditor", "Modify Notification Position"), - LazyLoc.Localize("DalamudSettingsNotificationEditorHint", "Choose where Dalamud notifications appear on the screen."), - () => Service<NotificationManager>.Get().StartPositionChooser()), - new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingsUseDarkMode", "Use Windows immersive/dark mode"), - LazyLoc.Localize("DalamudSettingsUseDarkModeHint", "This will cause the FFXIV window title bar to follow your preferred Windows color settings, and switch to dark mode if enabled."), + Loc.Localize("DalamudSettingsUseDarkMode", "Use Windows immersive/dark mode"), + Loc.Localize("DalamudSettingsUseDarkModeHint", "This will cause the FFXIV window title bar to follow your preferred Windows color settings, and switch to dark mode if enabled."), c => c.WindowIsImmersive, (v, c) => c.WindowIsImmersive = v, b => { try { - if (b) - { - Service<InterfaceManager>.GetNullable()?.SetImmersiveModeFromSystemTheme(); - } - else - { - Service<InterfaceManager>.GetNullable()?.SetImmersiveMode(false); - } + Service<InterfaceManager>.GetNullable()?.SetImmersiveMode(b); } catch (Exception ex) { @@ -84,93 +66,87 @@ internal sealed class SettingsTabLook : SettingsTab new GapSettingsEntry(5, true), - new HintSettingsEntry(LazyLoc.Localize("DalamudSettingToggleUiHideOptOutNote", "Plugins may independently opt out of the settings below.")), + new HintSettingsEntry(Loc.Localize("DalamudSettingToggleUiHideOptOutNote", "Plugins may independently opt out of the settings below.")), new GapSettingsEntry(3), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleUiHide", "Hide plugin UI when the game UI is toggled off"), - LazyLoc.Localize("DalamudSettingToggleUiHideHint", "Hide any open windows by plugins when toggling the game overlay."), + Loc.Localize("DalamudSettingToggleUiHide", "Hide plugin UI when the game UI is toggled off"), + Loc.Localize("DalamudSettingToggleUiHideHint", "Hide any open windows by plugins when toggling the game overlay."), c => c.ToggleUiHide, (v, c) => c.ToggleUiHide = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleUiHideDuringCutscenes", "Hide plugin UI during cutscenes"), - LazyLoc.Localize("DalamudSettingToggleUiHideDuringCutscenesHint", "Hide any open windows by plugins during cutscenes."), + Loc.Localize("DalamudSettingToggleUiHideDuringCutscenes", "Hide plugin UI during cutscenes"), + Loc.Localize("DalamudSettingToggleUiHideDuringCutscenesHint", "Hide any open windows by plugins during cutscenes."), c => c.ToggleUiHideDuringCutscenes, (v, c) => c.ToggleUiHideDuringCutscenes = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleUiHideDuringGpose", "Hide plugin UI while gpose is active"), - LazyLoc.Localize("DalamudSettingToggleUiHideDuringGposeHint", "Hide any open windows by plugins while gpose is active."), + Loc.Localize("DalamudSettingToggleUiHideDuringGpose", "Hide plugin UI while gpose is active"), + Loc.Localize("DalamudSettingToggleUiHideDuringGposeHint", "Hide any open windows by plugins while gpose is active."), c => c.ToggleUiHideDuringGpose, (v, c) => c.ToggleUiHideDuringGpose = v), new GapSettingsEntry(5, true), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleFocusManagement", "Use escape to close Dalamud windows"), - LazyLoc.Localize("DalamudSettingToggleFocusManagementHint", "This will cause Dalamud windows to behave like in-game windows when pressing escape.\nThey will close one after another until all are closed. May not work for all plugins."), + Loc.Localize("DalamudSettingToggleFocusManagement", "Use escape to close Dalamud windows"), + Loc.Localize("DalamudSettingToggleFocusManagementHint", "This will cause Dalamud windows to behave like in-game windows when pressing escape.\nThey will close one after another until all are closed. May not work for all plugins."), c => c.IsFocusManagementEnabled, (v, c) => c.IsFocusManagementEnabled = v), // This is applied every frame in InterfaceManager::CheckViewportState() new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleViewports", "Enable multi-monitor windows"), - LazyLoc.Localize("DalamudSettingToggleViewportsHint", "This will allow you move plugin windows onto other monitors.\nWill only work in Borderless Window or Windowed mode."), + Loc.Localize("DalamudSettingToggleViewports", "Enable multi-monitor windows"), + Loc.Localize("DalamudSettingToggleViewportsHint", "This will allow you move plugin windows onto other monitors.\nWill only work in Borderless Window or Windowed mode."), c => !c.IsDisableViewport, (v, c) => c.IsDisableViewport = !v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleDocking", "Enable window docking"), - LazyLoc.Localize("DalamudSettingToggleDockingHint", "This will allow you to fuse and tab plugin windows."), + Loc.Localize("DalamudSettingToggleDocking", "Enable window docking"), + Loc.Localize("DalamudSettingToggleDockingHint", "This will allow you to fuse and tab plugin windows."), c => c.IsDocking, (v, c) => c.IsDocking = v), - + new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingEnablePluginUIAdditionalOptions", "Add a button to the title bar of plugin windows to open additional options"), - LazyLoc.Localize("DalamudSettingEnablePluginUIAdditionalOptionsHint", "This will allow you to pin certain plugin windows, make them clickthrough or adjust their opacity.\nThis may not be supported by all of your plugins. Contact the plugin author if you want them to support this feature."), - c => c.EnablePluginUiAdditionalOptions, - (v, c) => c.EnablePluginUiAdditionalOptions = v), - - new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingEnablePluginUISoundEffects", "Enable sound effects for plugin windows"), - LazyLoc.Localize("DalamudSettingEnablePluginUISoundEffectsHint", "This will allow you to enable or disable sound effects generated by plugin user interfaces.\nThis is affected by your in-game `System Sounds` volume settings."), + Loc.Localize("DalamudSettingEnablePluginUISoundEffects", "Enable sound effects for plugin windows"), + Loc.Localize("DalamudSettingEnablePluginUISoundEffectsHint", "This will allow you to enable or disable sound effects generated by plugin user interfaces.\nThis is affected by your in-game `System Sounds` volume settings."), c => c.EnablePluginUISoundEffects, (v, c) => c.EnablePluginUISoundEffects = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleGamepadNavigation", "Control plugins via gamepad"), - LazyLoc.Localize("DalamudSettingToggleGamepadNavigationHint", "This will allow you to toggle between game and plugin navigation via L1+L3.\nToggle the PluginInstaller window via R3 if ImGui navigation is enabled."), + Loc.Localize("DalamudSettingToggleGamepadNavigation", "Control plugins via gamepad"), + Loc.Localize("DalamudSettingToggleGamepadNavigationHint", "This will allow you to toggle between game and plugin navigation via L1+L3.\nToggle the PluginInstaller window via R3 if ImGui navigation is enabled."), c => c.IsGamepadNavigationEnabled, (v, c) => c.IsGamepadNavigationEnabled = v), new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingToggleTsm", "Show title screen menu"), - LazyLoc.Localize("DalamudSettingToggleTsmHint", "This will allow you to access certain Dalamud and Plugin functionality from the title screen.\nDisabling this will also hide the Dalamud version text on the title screen."), + Loc.Localize("DalamudSettingToggleTsm", "Show title screen menu"), + Loc.Localize("DalamudSettingToggleTsmHint", "This will allow you to access certain Dalamud and Plugin functionality from the title screen.\nDisabling this will also hide the Dalamud version text on the title screen."), c => c.ShowTsm, (v, c) => c.ShowTsm = v), - + new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingInstallerOpenDefault", "Open the Plugin Installer to the \"Installed Plugins\" tab by default"), - LazyLoc.Localize("DalamudSettingInstallerOpenDefaultHint", "This will allow you to open the Plugin Installer to the \"Installed Plugins\" tab by default, instead of the \"Available Plugins\" tab."), + Loc.Localize("DalamudSettingInstallerOpenDefault", "Open the Plugin Installer to the \"Installed Plugins\" tab by default"), + Loc.Localize("DalamudSettingInstallerOpenDefaultHint", "This will allow you to open the Plugin Installer to the \"Installed Plugins\" tab by default, instead of the \"Available Plugins\" tab."), c => c.PluginInstallerOpen == PluginInstallerOpenKind.InstalledPlugins, (v, c) => c.PluginInstallerOpen = v ? PluginInstallerOpenKind.InstalledPlugins : PluginInstallerOpenKind.AllPlugins), - + new SettingsEntry<bool>( - LazyLoc.Localize("DalamudSettingReducedMotion", "Reduce motions"), - LazyLoc.Localize("DalamudSettingReducedMotionHint", "This will suppress certain animations from Dalamud, such as the notification popup."), + Loc.Localize("DalamudSettingReducedMotion", "Reduce motions"), + Loc.Localize("DalamudSettingReducedMotionHint", "This will suppress certain animations from Dalamud, such as the notification popup."), c => c.ReduceMotions ?? false, (v, c) => c.ReduceMotions = v), - + new SettingsEntry<float>( - LazyLoc.Localize("DalamudSettingImeStateIndicatorOpacity", "IME State Indicator Opacity (CJK only)"), - LazyLoc.Localize("DalamudSettingImeStateIndicatorOpacityHint", "When any of CJK IMEs is in use, the state of IME will be shown with the opacity specified here."), + Loc.Localize("DalamudSettingImeStateIndicatorOpacity", "IME State Indicator Opacity (CJK only)"), + Loc.Localize("DalamudSettingImeStateIndicatorOpacityHint", "When any of CJK IMEs is in use, the state of IME will be shown with the opacity specified here."), c => c.ImeStateIndicatorOpacity, (v, c) => c.ImeStateIndicatorOpacity = v) { CustomDraw = static e => { - ImGui.TextWrapped(e.Name!); + ImGuiHelpers.SafeTextWrapped(e.Name!); var v = e.Value * 100f; if (ImGui.SliderFloat($"###{e}", ref v, 0f, 100f, "%.1f%%")) @@ -178,11 +154,13 @@ internal sealed class SettingsTabLook : SettingsTab ImGui.SameLine(); ImGui.PushStyleVar(ImGuiStyleVar.Alpha, v / 100); - ImGui.Text("\uE020\uE021\uE022\uE023\uE024\uE025\uE026\uE027"u8); + ImGui.TextUnformatted("\uE020\uE021\uE022\uE023\uE024\uE025\uE026\uE027"); ImGui.PopStyleVar(1); }, - } - ]; + }, + }; + + public override string Title => Loc.Localize("DalamudSettingsVisual", "Look & Feel"); public override void Draw() { @@ -194,7 +172,7 @@ internal sealed class SettingsTabLook : SettingsTab var buttonSize = GlobalUiScalePresets - .Select(x => ImGui.CalcTextSize(x.Item1, true)) + .Select(x => ImGui.CalcTextSize(x.Item1, 0, x.Item1.IndexOf('#'))) .Aggregate(Vector2.Zero, Vector2.Max) + (ImGui.GetStyle().FramePadding * 2); foreach (var (buttonLabel, scale) in GlobalUiScalePresets) @@ -204,7 +182,6 @@ internal sealed class SettingsTabLook : SettingsTab { ImGui.GetIO().FontGlobalScale = this.globalUiScale = scale; interfaceManager.RebuildFonts(); - Service<InterfaceManager>.Get().InvokeGlobalScaleChanged(); } } @@ -217,21 +194,19 @@ internal sealed class SettingsTabLook : SettingsTab var len = Encoding.UTF8.GetByteCount(buildingFonts); var p = stackalloc byte[len]; Encoding.UTF8.GetBytes(buildingFonts, new(p, len)); - ImGui.Text( - new ReadOnlySpan<byte>(p, len)[..(len + (Environment.TickCount / 200 % 3) - 2)]); + ImGuiNative.igTextUnformatted(p, (p + len + ((Environment.TickCount / 200) % 3)) - 2); } } var globalUiScaleInPct = 100f * this.globalUiScale; - if (ImGui.DragFloat("##DalamudSettingsGlobalUiScaleDrag"u8, ref globalUiScaleInPct, 1f, 80f, 300f, "%.0f%%", ImGuiSliderFlags.AlwaysClamp)) + if (ImGui.DragFloat("##DalamudSettingsGlobalUiScaleDrag", ref globalUiScaleInPct, 1f, 80f, 300f, "%.0f%%", ImGuiSliderFlags.AlwaysClamp)) { this.globalUiScale = globalUiScaleInPct / 100f; ImGui.GetIO().FontGlobalScale = this.globalUiScale; interfaceManager.RebuildFonts(); - Service<InterfaceManager>.Get().InvokeGlobalScaleChanged(); } - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsGlobalUiScaleHint", "Scale text in all XIVLauncher UI elements - this is useful for 4K displays.")); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsGlobalUiScaleHint", "Scale text in all XIVLauncher UI elements - this is useful for 4K displays.")); if (fontBuildTask.IsFaulted || fontBuildTask.IsCanceled) { @@ -239,10 +214,10 @@ internal sealed class SettingsTabLook : SettingsTab ImGuiColors.DalamudRed, Loc.Localize("DalamudSettingsFontBuildFaulted", "Failed to load fonts as requested.")); if (fontBuildTask.Exception is not null - && ImGui.CollapsingHeader("##DalamudSetingsFontBuildFaultReason"u8)) + && ImGui.CollapsingHeader("##DalamudSetingsFontBuildFaultReason")) { foreach (var e in fontBuildTask.Exception.InnerExceptions) - ImGui.Text(e.ToString()); + ImGui.TextUnformatted(e.ToString()); } } @@ -269,7 +244,6 @@ internal sealed class SettingsTabLook : SettingsTab faf.DefaultFontSpecOverride = this.defaultFontSpec = r.Result; interfaceManager.RebuildFonts(); - Service<InterfaceManager>.Get().InvokeFontChanged(); })); } @@ -284,7 +258,6 @@ internal sealed class SettingsTabLook : SettingsTab this.defaultFontSpec = new SingleFontSpec { FontId = new GameFontAndFamilyId(GameFontFamily.Axis) }; interfaceManager.RebuildFonts(); - Service<InterfaceManager>.Get().InvokeFontChanged(); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs index 7d72464ac..6bce2a451 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ButtonSettingsEntry.cs @@ -1,18 +1,18 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; -using Dalamud.Utility.Internal; +using Dalamud.Interface.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class ButtonSettingsEntry : SettingsEntry +public class ButtonSettingsEntry : SettingsEntry { - private readonly LazyLoc description; + private readonly string description; private readonly Action runs; - public ButtonSettingsEntry(LazyLoc name, LazyLoc description, Action runs) + public ButtonSettingsEntry(string name, string description, Action runs) { this.description = description; this.runs = runs; @@ -36,6 +36,6 @@ internal sealed class ButtonSettingsEntry : SettingsEntry this.runs.Invoke(); } - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, this.description); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, this.description); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs index dd17a946a..fe4462ce2 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/DevPluginsSettingsEntry.cs @@ -6,8 +6,6 @@ using System.Numerics; using System.Threading.Tasks; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; @@ -16,14 +14,15 @@ using Dalamud.Interface.ImGuiFileDialog; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; -using Dalamud.Utility.Internal; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class DevPluginsSettingsEntry : SettingsEntry +public class DevPluginsSettingsEntry : SettingsEntry { - private List<DevPluginLocationSettings> devPluginLocations = []; + private List<DevPluginLocationSettings> devPluginLocations = new(); private bool devPluginLocationsChanged; private string devPluginTempLocation = string.Empty; private string devPluginLocationAddError = string.Empty; @@ -31,49 +30,47 @@ internal sealed class DevPluginsSettingsEntry : SettingsEntry public DevPluginsSettingsEntry() { - this.Name = LazyLoc.Localize("DalamudSettingsDevPluginLocation", "Dev Plugin Locations"); + this.Name = Loc.Localize("DalamudSettingsDevPluginLocation", "Dev Plugin Locations"); } public override void OnClose() { this.devPluginLocations = - [.. Service<DalamudConfiguration>.Get().DevPluginLoadLocations.Select(x => x.Clone())]; + Service<DalamudConfiguration>.Get().DevPluginLoadLocations.Select(x => x.Clone()).ToList(); } public override void Load() { this.devPluginLocations = - [.. Service<DalamudConfiguration>.Get().DevPluginLoadLocations.Select(x => x.Clone())]; + Service<DalamudConfiguration>.Get().DevPluginLoadLocations.Select(x => x.Clone()).ToList(); this.devPluginLocationsChanged = false; } public override void Save() { - Service<DalamudConfiguration>.Get().DevPluginLoadLocations = [.. this.devPluginLocations.Select(x => x.Clone())]; + Service<DalamudConfiguration>.Get().DevPluginLoadLocations = this.devPluginLocations.Select(x => x.Clone()).ToList(); if (this.devPluginLocationsChanged) { - _ = Service<PluginManager>.Get().ScanDevPluginsAsync(); + Service<PluginManager>.Get().ScanDevPlugins(); this.devPluginLocationsChanged = false; } } public override void Draw() { - using var id = ImRaii.PushId("devPluginLocation"u8); - - ImGui.Text(this.Name); - + using var id = ImRaii.PushId("devPluginLocation"); + ImGui.TextUnformatted(this.Name); if (this.devPluginLocationsChanged) { using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.HealerGreen)) { ImGui.SameLine(); - ImGui.Text(Loc.Localize("DalamudSettingsChanged", "(Changed)")); + ImGui.TextUnformatted(Loc.Localize("DalamudSettingsChanged", "(Changed)")); } } - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThis must be a path to the plugin DLL.")); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThis must be a path to the plugin DLL.")); var locationSelect = Loc.Localize("DalamudDevPluginLocationSelect", "Select Dev Plugin DLL"); if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Folder, locationSelect)) @@ -101,13 +98,13 @@ internal sealed class DevPluginsSettingsEntry : SettingsEntry ImGui.Separator(); - ImGui.Text("#"u8); + ImGui.TextUnformatted("#"); ImGui.NextColumn(); - ImGui.Text("Path"u8); + ImGui.TextUnformatted("Path"); ImGui.NextColumn(); - ImGui.Text("Enabled"u8); + ImGui.TextUnformatted("Enabled"); ImGui.NextColumn(); - ImGui.Text(string.Empty); + ImGui.TextUnformatted(string.Empty); ImGui.NextColumn(); ImGui.Separator(); @@ -122,7 +119,7 @@ internal sealed class DevPluginsSettingsEntry : SettingsEntry id.Push(devPluginLocationSetting.Path); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(locNumber.ToString()).X / 2)); - ImGui.Text(locNumber.ToString()); + ImGui.TextUnformatted(locNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); @@ -154,7 +151,7 @@ internal sealed class DevPluginsSettingsEntry : SettingsEntry ImGui.NextColumn(); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 7 - (12 * ImGuiHelpers.GlobalScale)); - ImGui.Checkbox("##devPluginLocationCheck"u8, ref isEnabled); + ImGui.Checkbox("##devPluginLocationCheck", ref isEnabled); ImGui.NextColumn(); if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash)) @@ -179,10 +176,10 @@ internal sealed class DevPluginsSettingsEntry : SettingsEntry } ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(locNumber.ToString()).X / 2)); - ImGui.Text(locNumber.ToString()); + ImGui.TextUnformatted(locNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); - ImGui.InputText("##devPluginLocationInput"u8, ref this.devPluginTempLocation, 300); + ImGui.InputText("##devPluginLocationInput", ref this.devPluginTempLocation, 300); ImGui.NextColumn(); // Enabled button ImGui.NextColumn(); @@ -195,21 +192,12 @@ internal sealed class DevPluginsSettingsEntry : SettingsEntry if (!string.IsNullOrEmpty(this.devPluginLocationAddError)) { - ImGui.TextColoredWrapped(new Vector4(1, 0, 0, 1), this.devPluginLocationAddError); + ImGuiHelpers.SafeTextColoredWrapped(new Vector4(1, 0, 0, 1), this.devPluginLocationAddError); } } - public override void PostDraw() - { - this.fileDialogManager.Draw(); - } - - private static bool ValidDevPluginPath(string path) - => Path.IsPathRooted(path) && Path.GetExtension(path) == ".dll"; - private void AddDevPlugin() { - this.devPluginTempLocation = this.devPluginTempLocation.Trim('"'); if (this.devPluginLocations.Any( r => string.Equals(r.Path, this.devPluginTempLocation, StringComparison.InvariantCultureIgnoreCase))) { @@ -222,21 +210,25 @@ internal sealed class DevPluginsSettingsEntry : SettingsEntry "DalamudDevPluginInvalid", "The entered value is not a valid path to a potential Dev Plugin.\nDid you mean to enter it as a custom plugin repository in the fields below instead?"); Task.Delay(5000).ContinueWith(t => this.devPluginLocationAddError = string.Empty); - return; } else { this.devPluginLocations.Add( new DevPluginLocationSettings { - Path = this.devPluginTempLocation, + Path = this.devPluginTempLocation.Replace("\"", string.Empty), IsEnabled = true, }); this.devPluginLocationsChanged = true; this.devPluginTempLocation = string.Empty; } - - // Enable ImGui asserts if a dev plugin is added, if no choice was made prior - Service<DalamudConfiguration>.Get().ImGuiAssertsEnabledAtStartup ??= true; } + + public override void PostDraw() + { + this.fileDialogManager.Draw(); + } + + private static bool ValidDevPluginPath(string path) + => Path.IsPathRooted(path) && Path.GetExtension(path) == ".dll"; } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs index 096e408b8..f40654542 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/EnumSettingsEntry{T}.cs @@ -1,13 +1,14 @@ -using System.Diagnostics; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; + using Dalamud.Interface.Colors; using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using Dalamud.Utility.Internal; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; @@ -24,8 +25,8 @@ internal sealed class EnumSettingsEntry<T> : SettingsEntry private T valueBacking; public EnumSettingsEntry( - LazyLoc name, - LazyLoc description, + string name, + string description, LoadSettingDelegate load, SaveSettingDelegate save, Action<T>? change = null, @@ -62,7 +63,7 @@ internal sealed class EnumSettingsEntry<T> : SettingsEntry } } - public LazyLoc Description { get; } + public string Description { get; } public Action<EnumSettingsEntry<T>>? CustomDraw { get; init; } @@ -80,10 +81,7 @@ internal sealed class EnumSettingsEntry<T> : SettingsEntry public override void Draw() { - var name = this.Name.ToString(); - var description = this.Description.ToString(); - - Debug.Assert(!string.IsNullOrWhiteSpace(name), "Name is empty"); + Debug.Assert(this.Name != null, "this.Name != null"); if (this.CustomDraw is not null) { @@ -91,7 +89,7 @@ internal sealed class EnumSettingsEntry<T> : SettingsEntry } else { - ImGui.TextWrapped(name); + ImGuiHelpers.SafeTextWrapped(this.Name); var idx = this.valueBacking; var values = Enum.GetValues<T>(); @@ -121,14 +119,13 @@ internal sealed class EnumSettingsEntry<T> : SettingsEntry using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) { var desc = this.FriendlyEnumDescriptionGetter(this.valueBacking); - if (!string.IsNullOrWhiteSpace(desc)) { - ImGui.TextWrapped(desc); + ImGuiHelpers.SafeTextWrapped(desc); ImGuiHelpers.ScaledDummy(2); } - ImGui.TextWrapped(description); + ImGuiHelpers.SafeTextWrapped(this.Description); } if (this.CheckValidity != null) diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs index c220ea684..1db3c4756 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/GapSettingsEntry.cs @@ -1,12 +1,12 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class GapSettingsEntry : SettingsEntry +public sealed class GapSettingsEntry : SettingsEntry { private readonly float size; private readonly bool hr; diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs index 7159effdf..3edd3ae1d 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/HintSettingsEntry.cs @@ -1,19 +1,18 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; -using Dalamud.Utility.Internal; +using Dalamud.Interface.Utility; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class HintSettingsEntry : SettingsEntry +public class HintSettingsEntry : SettingsEntry { - private readonly LazyLoc text; + private readonly string text; private readonly Vector4 color; - public HintSettingsEntry(LazyLoc text, Vector4? color = null) + public HintSettingsEntry(string text, Vector4? color = null) { this.text = text; this.color = color ?? ImGuiColors.DalamudGrey; @@ -31,6 +30,6 @@ internal sealed class HintSettingsEntry : SettingsEntry public override void Draw() { - ImGui.TextColoredWrapped(this.color, this.text); + ImGuiHelpers.SafeTextColoredWrapped(this.color, this.text); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs index 9459413df..cb79000d2 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/LanguageChooserSettingsEntry.cs @@ -3,16 +3,16 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; -using Dalamud.Utility.Internal; +using Dalamud.Interface.Utility; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal sealed class LanguageChooserSettingsEntry : SettingsEntry +public sealed class LanguageChooserSettingsEntry : SettingsEntry { private readonly string[] languages; private readonly string[] locLanguages; @@ -21,9 +21,9 @@ internal sealed class LanguageChooserSettingsEntry : SettingsEntry public LanguageChooserSettingsEntry() { - this.languages = [.. Localization.ApplicableLangCodes.Prepend("en")]; + this.languages = Localization.ApplicableLangCodes.Prepend("en").ToArray(); - this.Name = LazyLoc.Localize("DalamudSettingsLanguage", "Language"); + this.Name = Loc.Localize("DalamudSettingsLanguage", "Language"); this.IsValid = true; this.IsVisible = true; @@ -47,7 +47,7 @@ internal sealed class LanguageChooserSettingsEntry : SettingsEntry } } - this.locLanguages = [.. locLanguagesList]; + this.locLanguages = locLanguagesList.ToArray(); } catch (Exception) { @@ -71,7 +71,7 @@ internal sealed class LanguageChooserSettingsEntry : SettingsEntry public override void Draw() { ImGui.Text(this.Name); - ImGui.Combo("##XlLangCombo", ref this.langIndex, this.locLanguages); - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsLanguageHint", "Select the language Dalamud will be displayed in.")); + ImGui.Combo("##XlLangCombo", ref this.langIndex, this.locLanguages, this.locLanguages.Length); + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsLanguageHint", "Select the language Dalamud will be displayed in.")); } } diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs index e901550da..cffe0a5da 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/SettingsEntry{T}.cs @@ -1,12 +1,14 @@ -using System.Diagnostics; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; + using Dalamud.Interface.Colors; +using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; -using Dalamud.Utility.Internal; + +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; @@ -20,8 +22,8 @@ internal sealed class SettingsEntry<T> : SettingsEntry private object? valueBacking; public SettingsEntry( - LazyLoc name, - LazyLoc description, + string name, + string description, LoadSettingDelegate load, SaveSettingDelegate save, Action<T?>? change = null, @@ -55,7 +57,7 @@ internal sealed class SettingsEntry<T> : SettingsEntry } } - public LazyLoc Description { get; } + public string Description { get; } public Action<SettingsEntry<T>>? CustomDraw { get; init; } @@ -69,10 +71,7 @@ internal sealed class SettingsEntry<T> : SettingsEntry public override void Draw() { - var name = this.Name.ToString(); - var description = this.Description.ToString(); - - Debug.Assert(!string.IsNullOrWhiteSpace(name), "Name is empty"); + Debug.Assert(this.Name != null, "this.Name != null"); var type = typeof(T); @@ -82,7 +81,7 @@ internal sealed class SettingsEntry<T> : SettingsEntry } else if (type == typeof(DirectoryInfo)) { - ImGui.TextWrapped(name); + ImGuiHelpers.SafeTextWrapped(this.Name); var value = this.Value as DirectoryInfo; var nativeBuffer = value?.FullName ?? string.Empty; @@ -94,7 +93,7 @@ internal sealed class SettingsEntry<T> : SettingsEntry } else if (type == typeof(string)) { - ImGui.TextWrapped(name); + ImGuiHelpers.SafeTextWrapped(this.Name); var nativeBuffer = this.Value as string ?? string.Empty; @@ -107,19 +106,16 @@ internal sealed class SettingsEntry<T> : SettingsEntry { var nativeValue = this.Value as bool? ?? false; - if (ImGui.Checkbox($"{name}###{this.Id.ToString()}", ref nativeValue)) + if (ImGui.Checkbox($"{this.Name}###{this.Id.ToString()}", ref nativeValue)) { this.valueBacking = nativeValue; this.change?.Invoke(this.Value); } } - if (!string.IsNullOrWhiteSpace(description)) + using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) - { - ImGui.TextWrapped(this.Description); - } + ImGuiHelpers.SafeTextWrapped(this.Description); } if (this.CheckValidity != null) diff --git a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs index daa91420f..1d6aab1bd 100644 --- a/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs +++ b/Dalamud/Interface/Internal/Windows/Settings/Widgets/ThirdRepoSettingsEntry.cs @@ -5,8 +5,6 @@ using System.Numerics; using System.Threading.Tasks; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; @@ -15,13 +13,14 @@ using Dalamud.Interface.Utility; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Internal; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Internal.Windows.Settings.Widgets; [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")] -internal class ThirdRepoSettingsEntry : SettingsEntry +public class ThirdRepoSettingsEntry : SettingsEntry { - private List<ThirdPartyRepoSettings> thirdRepoList = []; + private List<ThirdPartyRepoSettings> thirdRepoList = new(); private bool thirdRepoListChanged; private string thirdRepoTempUrl = string.Empty; private string thirdRepoAddError = string.Empty; @@ -31,24 +30,24 @@ internal class ThirdRepoSettingsEntry : SettingsEntry { this.timeSinceOpened = DateTime.Now; } - + public override void OnClose() { this.thirdRepoList = - [.. Service<DalamudConfiguration>.Get().ThirdRepoList.Select(x => x.Clone())]; + Service<DalamudConfiguration>.Get().ThirdRepoList.Select(x => x.Clone()).ToList(); } public override void Load() { this.thirdRepoList = - [.. Service<DalamudConfiguration>.Get().ThirdRepoList.Select(x => x.Clone())]; + Service<DalamudConfiguration>.Get().ThirdRepoList.Select(x => x.Clone()).ToList(); this.thirdRepoListChanged = false; } public override void Save() { Service<DalamudConfiguration>.Get().ThirdRepoList = - [.. this.thirdRepoList.Select(x => x.Clone())]; + this.thirdRepoList.Select(x => x.Clone()).ToList(); if (this.thirdRepoListChanged) { @@ -60,48 +59,48 @@ internal class ThirdRepoSettingsEntry : SettingsEntry public override void Draw() { var config = Service<DalamudConfiguration>.Get(); - - using var id = ImRaii.PushId("thirdRepo"u8); - ImGui.Text(Loc.Localize("DalamudSettingsCustomRepo", "Custom Plugin Repositories")); + + using var id = ImRaii.PushId("thirdRepo"); + ImGui.TextUnformatted(Loc.Localize("DalamudSettingsCustomRepo", "Custom Plugin Repositories")); if (this.thirdRepoListChanged) { using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.HealerGreen)) { ImGui.SameLine(); - ImGui.Text(Loc.Localize("DalamudSettingsChanged", "(Changed)")); + ImGui.TextUnformatted(Loc.Localize("DalamudSettingsChanged", "(Changed)")); } } - - ImGui.TextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingCustomRepoHint", "Add custom plugin repositories.")); - + + ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingCustomRepoHint", "Add custom plugin repositories.")); + ImGuiHelpers.ScaledDummy(2); config.ThirdRepoSpeedbumpDismissed ??= config.ThirdRepoList.Any(x => x.IsEnabled); var disclaimerDismissed = config.ThirdRepoSpeedbumpDismissed.Value; - + ImGui.PushFont(InterfaceManager.IconFont); ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudOrange); - ImGui.TextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); + ImGuiHelpers.SafeTextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); ImGui.PopFont(); ImGui.SameLine(); ImGuiHelpers.ScaledDummy(2); ImGui.SameLine(); - ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarningReadThis", "READ THIS FIRST!")); + ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarningReadThis", "READ THIS FIRST!")); ImGui.SameLine(); ImGuiHelpers.ScaledDummy(2); ImGui.SameLine(); ImGui.PushFont(InterfaceManager.IconFont); - ImGui.TextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); + ImGuiHelpers.SafeTextWrapped(FontAwesomeIcon.ExclamationTriangle.ToIconString()); ImGui.PopFont(); - ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning", "We cannot take any responsibility for custom plugins and repositories.")); - ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning5", "If someone told you to copy/paste something here, it's very possible that you are being scammed or taken advantage of.")); - ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning2", "Plugins have full control over your PC, like any other program, and may cause harm or crashes.")); - ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning4", "They can delete your character, steal your FC or Discord account, and burn down your house.")); - ImGui.TextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning3", "Please make absolutely sure that you only install plugins from developers you trust.")); + ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning", "We cannot take any responsibility for custom plugins and repositories.")); + ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning5", "If someone told you to copy/paste something here, it's very possible that you are being scammed or taken advantage of.")); + ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning2", "Plugins have full control over your PC, like any other program, and may cause harm or crashes.")); + ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning4", "They can delete your character, steal your FC or Discord account, and burn down your house.")); + ImGuiHelpers.SafeTextWrapped(Loc.Localize("DalamudSettingCustomRepoWarning3", "Please make absolutely sure that you only install plugins from developers you trust.")); ImGui.PopStyleColor(); - + if (!disclaimerDismissed) { const int speedbumpTime = 15; @@ -122,7 +121,7 @@ internal class ThirdRepoSettingsEntry : SettingsEntry } } } - + ImGuiHelpers.ScaledDummy(2); using var disabled = ImRaii.Disabled(!disclaimerDismissed); @@ -137,20 +136,20 @@ internal class ThirdRepoSettingsEntry : SettingsEntry ImGui.Separator(); - ImGui.Text("#"u8); + ImGui.TextUnformatted("#"); ImGui.NextColumn(); - ImGui.Text("URL"u8); + ImGui.TextUnformatted("URL"); ImGui.NextColumn(); - ImGui.Text("Enabled"u8); + ImGui.TextUnformatted("Enabled"); ImGui.NextColumn(); - ImGui.Text(string.Empty); + ImGui.TextUnformatted(string.Empty); ImGui.NextColumn(); ImGui.Separator(); - ImGui.Text("0"u8); + ImGui.TextUnformatted("0"); ImGui.NextColumn(); - ImGui.Text("XIVLauncher"u8); + ImGui.TextUnformatted("XIVLauncher"); ImGui.NextColumn(); ImGui.NextColumn(); ImGui.NextColumn(); @@ -166,7 +165,7 @@ internal class ThirdRepoSettingsEntry : SettingsEntry id.Push(thirdRepoSetting.Url); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(repoNumber.ToString()).X / 2)); - ImGui.Text(repoNumber.ToString()); + ImGui.TextUnformatted(repoNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); @@ -198,7 +197,7 @@ internal class ThirdRepoSettingsEntry : SettingsEntry ImGui.NextColumn(); ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 7 - (12 * ImGuiHelpers.GlobalScale)); - if (ImGui.Checkbox("##thirdRepoCheck"u8, ref isEnabled)) + if (ImGui.Checkbox("##thirdRepoCheck", ref isEnabled)) { this.thirdRepoListChanged = true; } @@ -227,10 +226,10 @@ internal class ThirdRepoSettingsEntry : SettingsEntry } ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (ImGui.GetColumnWidth() / 2) - 8 - (ImGui.CalcTextSize(repoNumber.ToString()).X / 2)); - ImGui.Text(repoNumber.ToString()); + ImGui.TextUnformatted(repoNumber.ToString()); ImGui.NextColumn(); ImGui.SetNextItemWidth(-1); - ImGui.InputText("##thirdRepoUrlInput"u8, ref this.thirdRepoTempUrl, 300); + ImGui.InputText("##thirdRepoUrlInput", ref this.thirdRepoTempUrl, 300); ImGui.NextColumn(); // Enabled button ImGui.NextColumn(); @@ -263,7 +262,7 @@ internal class ThirdRepoSettingsEntry : SettingsEntry if (!string.IsNullOrEmpty(this.thirdRepoAddError)) { - ImGui.TextColoredWrapped(new Vector4(1, 0, 0, 1), this.thirdRepoAddError); + ImGuiHelpers.SafeTextColoredWrapped(new Vector4(1, 0, 0, 1), this.thirdRepoAddError); } } diff --git a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs index 4add874ba..ceb009139 100644 --- a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs +++ b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleEditorWindow.cs @@ -1,10 +1,9 @@ +using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Reflection; using CheapLoc; - -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; @@ -12,6 +11,7 @@ using Dalamud.Interface.Style; using Dalamud.Interface.Utility; using Dalamud.Interface.Windowing; using Dalamud.Utility; +using ImGuiNET; using Serilog; @@ -27,7 +27,6 @@ public class StyleEditorWindow : Window private int currentSel = 0; private string initialStyle = string.Empty; private bool didSave = false; - private bool anyChanges = false; private string renameText = string.Empty; private bool renameModalDrawing = false; @@ -51,7 +50,7 @@ public class StyleEditorWindow : Window this.didSave = false; var config = Service<DalamudConfiguration>.Get(); - config.SavedStyles ??= []; + config.SavedStyles ??= new List<StyleModel>(); this.currentSel = config.SavedStyles.FindIndex(x => x.Name == config.ChosenStyle); this.initialStyle = config.ChosenStyle; @@ -67,10 +66,6 @@ public class StyleEditorWindow : Window var config = Service<DalamudConfiguration>.Get(); var newStyle = config.SavedStyles.FirstOrDefault(x => x.Name == this.initialStyle); newStyle?.Apply(); - if (this.anyChanges) - { - Service<InterfaceManager>.Get().InvokeStyleChanged(); - } } base.OnClose(); @@ -90,11 +85,10 @@ public class StyleEditorWindow : Window var styleAry = config.SavedStyles.Select(x => x.Name).ToArray(); ImGui.Text(Loc.Localize("StyleEditorChooseStyle", "Choose Style:")); - if (ImGui.Combo("###styleChooserCombo", ref this.currentSel, styleAry)) + if (ImGui.Combo("###styleChooserCombo", ref this.currentSel, styleAry, styleAry.Length)) { var newStyle = config.SavedStyles[this.currentSel]; newStyle.Apply(); - this.Change(); appliedThisFrame = true; } @@ -109,7 +103,6 @@ public class StyleEditorWindow : Window this.currentSel = config.SavedStyles.Count - 1; newStyle.Apply(); - this.Change(); appliedThisFrame = true; config.QueueSave(); @@ -119,13 +112,12 @@ public class StyleEditorWindow : Window if (isBuiltinStyle) ImGui.BeginDisabled(); - + if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash) && this.currentSel != 0) { this.currentSel--; var newStyle = config.SavedStyles[this.currentSel]; newStyle.Apply(); - this.Change(); appliedThisFrame = true; config.SavedStyles.RemoveAt(this.currentSel + 1); @@ -165,7 +157,7 @@ public class StyleEditorWindow : Window if (ImGui.IsItemHovered()) ImGui.SetTooltip(Loc.Localize("StyleEditorCopy", "Copy style to clipboard for sharing")); - + if (isBuiltinStyle) ImGui.EndDisabled(); @@ -190,7 +182,6 @@ public class StyleEditorWindow : Window config.SavedStyles.Add(newStyle); newStyle.Apply(); - this.Change(); appliedThisFrame = true; this.currentSel = config.SavedStyles.Count - 1; @@ -218,56 +209,52 @@ public class StyleEditorWindow : Window { ImGui.Text(Loc.Localize("StyleEditorApplying", "Applying style...")); } - else if (ImGui.BeginTabBar("StyleEditorTabs"u8)) + else if (ImGui.BeginTabBar("StyleEditorTabs")) { var style = ImGui.GetStyle(); - var changes = false; + if (ImGui.BeginTabItem(Loc.Localize("StyleEditorVariables", "Variables"))) { if (ImGui.BeginChild($"ScrollingVars", ImGuiHelpers.ScaledVector2(0, -32), true, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoBackground)) { ImGui.SetCursorPosY(ImGui.GetCursorPosY() - 5); - changes |= ImGui.SliderFloat2("WindowPadding", ref style.WindowPadding, 0.0f, 20.0f, "%.0f"); - changes |= ImGui.SliderFloat2("FramePadding", ref style.FramePadding, 0.0f, 20.0f, "%.0f"); - changes |= ImGui.SliderFloat2("CellPadding", ref style.CellPadding, 0.0f, 20.0f, "%.0f"); - changes |= ImGui.SliderFloat2("ItemSpacing", ref style.ItemSpacing, 0.0f, 20.0f, "%.0f"); - changes |= ImGui.SliderFloat2("ItemInnerSpacing", ref style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); - changes |= ImGui.SliderFloat2("TouchExtraPadding", ref style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); - changes |= ImGui.SliderFloat("IndentSpacing"u8, ref style.IndentSpacing, 0.0f, 30.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("ScrollbarSize"u8, ref style.ScrollbarSize, 1.0f, 20.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("GrabMinSize"u8, ref style.GrabMinSize, 1.0f, 20.0f, "%.0f"u8); - ImGui.Text("Borders"u8); - changes |= ImGui.SliderFloat("WindowBorderSize"u8, ref style.WindowBorderSize, 0.0f, 1.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("ChildBorderSize"u8, ref style.ChildBorderSize, 0.0f, 1.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("PopupBorderSize"u8, ref style.PopupBorderSize, 0.0f, 1.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("FrameBorderSize"u8, ref style.FrameBorderSize, 0.0f, 1.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("TabBorderSize"u8, ref style.TabBorderSize, 0.0f, 1.0f, "%.0f"u8); - ImGui.Text("Rounding"u8); - changes |= ImGui.SliderFloat("WindowRounding"u8, ref style.WindowRounding, 0.0f, 12.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("ChildRounding"u8, ref style.ChildRounding, 0.0f, 12.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("FrameRounding"u8, ref style.FrameRounding, 0.0f, 12.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("PopupRounding"u8, ref style.PopupRounding, 0.0f, 12.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("ScrollbarRounding"u8, ref style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("GrabRounding"u8, ref style.GrabRounding, 0.0f, 12.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("LogSliderDeadzone"u8, ref style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"u8); - changes |= ImGui.SliderFloat("TabRounding"u8, ref style.TabRounding, 0.0f, 12.0f, "%.0f"u8); - ImGui.Text("Alignment"u8); - changes |= ImGui.SliderFloat2("WindowTitleAlign", ref style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); + ImGui.SliderFloat2("WindowPadding", ref style.WindowPadding, 0.0f, 20.0f, "%.0f"); + ImGui.SliderFloat2("FramePadding", ref style.FramePadding, 0.0f, 20.0f, "%.0f"); + ImGui.SliderFloat2("CellPadding", ref style.CellPadding, 0.0f, 20.0f, "%.0f"); + ImGui.SliderFloat2("ItemSpacing", ref style.ItemSpacing, 0.0f, 20.0f, "%.0f"); + ImGui.SliderFloat2("ItemInnerSpacing", ref style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); + ImGui.SliderFloat2("TouchExtraPadding", ref style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); + ImGui.SliderFloat("IndentSpacing", ref style.IndentSpacing, 0.0f, 30.0f, "%.0f"); + ImGui.SliderFloat("ScrollbarSize", ref style.ScrollbarSize, 1.0f, 20.0f, "%.0f"); + ImGui.SliderFloat("GrabMinSize", ref style.GrabMinSize, 1.0f, 20.0f, "%.0f"); + ImGui.Text("Borders"); + ImGui.SliderFloat("WindowBorderSize", ref style.WindowBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui.SliderFloat("ChildBorderSize", ref style.ChildBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui.SliderFloat("PopupBorderSize", ref style.PopupBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui.SliderFloat("FrameBorderSize", ref style.FrameBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui.SliderFloat("TabBorderSize", ref style.TabBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui.Text("Rounding"); + ImGui.SliderFloat("WindowRounding", ref style.WindowRounding, 0.0f, 12.0f, "%.0f"); + ImGui.SliderFloat("ChildRounding", ref style.ChildRounding, 0.0f, 12.0f, "%.0f"); + ImGui.SliderFloat("FrameRounding", ref style.FrameRounding, 0.0f, 12.0f, "%.0f"); + ImGui.SliderFloat("PopupRounding", ref style.PopupRounding, 0.0f, 12.0f, "%.0f"); + ImGui.SliderFloat("ScrollbarRounding", ref style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"); + ImGui.SliderFloat("GrabRounding", ref style.GrabRounding, 0.0f, 12.0f, "%.0f"); + ImGui.SliderFloat("LogSliderDeadzone", ref style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"); + ImGui.SliderFloat("TabRounding", ref style.TabRounding, 0.0f, 12.0f, "%.0f"); + ImGui.Text("Alignment"); + ImGui.SliderFloat2("WindowTitleAlign", ref style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); var windowMenuButtonPosition = (int)style.WindowMenuButtonPosition + 1; - if (ImGui.Combo("WindowMenuButtonPosition"u8, ref windowMenuButtonPosition, ["None", "Left", "Right"])) - { + if (ImGui.Combo("WindowMenuButtonPosition", ref windowMenuButtonPosition, "None\0Left\0Right\0")) style.WindowMenuButtonPosition = (ImGuiDir)(windowMenuButtonPosition - 1); - changes = true; - } - - changes |= ImGui.SliderFloat2("ButtonTextAlign", ref style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui.SliderFloat2("ButtonTextAlign", ref style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); ImGui.SameLine(); ImGuiComponents.HelpMarker("Alignment applies when a button is larger than its text content."); - changes |= ImGui.SliderFloat2("SelectableTextAlign", ref style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui.SliderFloat2("SelectableTextAlign", ref style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); ImGui.SameLine(); ImGuiComponents.HelpMarker("Alignment applies when a selectable is larger than its text content."); - changes |= ImGui.SliderFloat2("DisplaySafeAreaPadding", ref style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); + ImGui.SliderFloat2("DisplaySafeAreaPadding", ref style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); ImGui.SameLine(); ImGuiComponents.HelpMarker( "Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured)."); @@ -280,17 +267,17 @@ public class StyleEditorWindow : Window if (ImGui.BeginTabItem(Loc.Localize("StyleEditorColors", "Colors"))) { - if (ImGui.BeginChild("ScrollingColors"u8, ImGuiHelpers.ScaledVector2(0, -30), true, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoBackground)) + if (ImGui.BeginChild("ScrollingColors", ImGuiHelpers.ScaledVector2(0, -30), true, ImGuiWindowFlags.HorizontalScrollbar | ImGuiWindowFlags.NoBackground)) { ImGui.SetCursorPosY(ImGui.GetCursorPosY() - 5); - if (ImGui.RadioButton("Opaque"u8, this.alphaFlags == ImGuiColorEditFlags.None)) + if (ImGui.RadioButton("Opaque", this.alphaFlags == ImGuiColorEditFlags.None)) this.alphaFlags = ImGuiColorEditFlags.None; ImGui.SameLine(); - if (ImGui.RadioButton("Alpha"u8, this.alphaFlags == ImGuiColorEditFlags.AlphaPreview)) + if (ImGui.RadioButton("Alpha", this.alphaFlags == ImGuiColorEditFlags.AlphaPreview)) this.alphaFlags = ImGuiColorEditFlags.AlphaPreview; ImGui.SameLine(); - if (ImGui.RadioButton("Both"u8, this.alphaFlags == ImGuiColorEditFlags.AlphaPreviewHalf)) + if (ImGui.RadioButton("Both", this.alphaFlags == ImGuiColorEditFlags.AlphaPreviewHalf)) this.alphaFlags = ImGuiColorEditFlags.AlphaPreviewHalf; ImGui.SameLine(); @@ -301,15 +288,15 @@ public class StyleEditorWindow : Window foreach (var imGuiCol in Enum.GetValues<ImGuiCol>()) { - if (imGuiCol == ImGuiCol.Count) + if (imGuiCol == ImGuiCol.COUNT) continue; ImGui.PushID(imGuiCol.ToString()); - changes |= ImGui.ColorEdit4("##color", ref style.Colors[(int)imGuiCol], ImGuiColorEditFlags.AlphaBar | this.alphaFlags); + ImGui.ColorEdit4("##color", ref style.Colors[(int)imGuiCol], ImGuiColorEditFlags.AlphaBar | this.alphaFlags); ImGui.SameLine(0.0f, style.ItemInnerSpacing.X); - ImGui.Text(imGuiCol.ToString()); + ImGui.TextUnformatted(imGuiCol.ToString()); ImGui.PopID(); } @@ -333,11 +320,10 @@ public class StyleEditorWindow : Window { property.SetValue(workStyle.BuiltInColors, color); workStyle.BuiltInColors?.Apply(); - changes = true; } ImGui.SameLine(0.0f, style.ItemInnerSpacing.X); - ImGui.Text(property.Name); + ImGui.TextUnformatted(property.Name); ImGui.PopID(); } @@ -348,11 +334,6 @@ public class StyleEditorWindow : Window ImGui.EndTabItem(); } - if (changes) - { - this.Change(); - } - ImGui.EndTabBar(); } @@ -384,12 +365,12 @@ public class StyleEditorWindow : Window ImGui.Text(Loc.Localize("StyleEditorEnterName", "Please enter the new name for this style.")); ImGui.Spacing(); - ImGui.InputText("###renameModalInput"u8, ref this.renameText, 255); + ImGui.InputText("###renameModalInput", ref this.renameText, 255); const float buttonWidth = 120f; ImGui.SetCursorPosX((ImGui.GetWindowWidth() - buttonWidth) / 2); - if (ImGui.Button("OK"u8, new Vector2(buttonWidth, 40))) + if (ImGui.Button("OK", new Vector2(buttonWidth, 40))) { config.SavedStyles[this.currentSel].Name = this.renameText; config.QueueSave(); @@ -415,10 +396,4 @@ public class StyleEditorWindow : Window config.QueueSave(); } - - private void Change() - { - this.anyChanges = true; - Service<InterfaceManager>.Get().InvokeStyleChanged(); - } } diff --git a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs index 9d4f7ab04..88f291954 100644 --- a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs +++ b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game; @@ -25,9 +24,11 @@ using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Component.GUI; +using ImGuiNET; + using Lumina.Text.ReadOnly; -using Serilog; +using LSeStringBuilder = Lumina.Text.SeStringBuilder; namespace Dalamud.Interface.Internal.Windows; @@ -49,11 +50,11 @@ internal class TitleScreenMenuWindow : Window, IDisposable private readonly Lazy<IFontHandle> myFontHandle; private readonly Lazy<IDalamudTextureWrap> shadeTexture; private readonly AddonLifecycleEventListener versionStringListener; - - private readonly Dictionary<Guid, InOutCubic> shadeEasings = []; - private readonly Dictionary<Guid, InOutQuint> moveEasings = []; - private readonly Dictionary<Guid, InOutCubic> logoEasings = []; - + + private readonly Dictionary<Guid, InOutCubic> shadeEasings = new(); + private readonly Dictionary<Guid, InOutQuint> moveEasings = new(); + private readonly Dictionary<Guid, InOutCubic> logoEasings = new(); + private readonly IConsoleVariable<bool> showTsm; private InOutCubic? fadeOutEasing; @@ -61,7 +62,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable private State state = State.Hide; private int lastLoadedPluginCount = -1; - + /// <summary> /// Initializes a new instance of the <see cref="TitleScreenMenuWindow"/> class. /// </summary> @@ -87,11 +88,10 @@ internal class TitleScreenMenuWindow : Window, IDisposable : base( "TitleScreenMenuOverlay", ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoScrollbar | - ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNavFocus | - ImGuiWindowFlags.NoDocking) + ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNavFocus) { this.showTsm = consoleManager.AddVariable("dalamud.show_tsm", "Show the Title Screen Menu", true); - + this.clientState = clientState; this.configuration = configuration; this.gameGui = gameGui; @@ -124,7 +124,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable framework.Update += this.FrameworkOnUpdate; this.scopedFinalizer.Add(() => framework.Update -= this.FrameworkOnUpdate); - + this.versionStringListener = new AddonLifecycleEventListener(AddonEvent.PreDraw, "_TitleRevision", this.OnVersionStringDraw); addonLifecycle.RegisterListener(this.versionStringListener); this.scopedFinalizer.Add(() => addonLifecycle.UnregisterListener(this.versionStringListener)); @@ -136,7 +136,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable Show, FadeOut, } - + /// <summary> /// Gets or sets a value indicating whether drawing is allowed. /// </summary> @@ -150,10 +150,6 @@ internal class TitleScreenMenuWindow : Window, IDisposable { ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, new Vector2(0, 0)); ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, new Vector2(0, 0)); - - if (this.state == State.Show) - ImGui.SetNextWindowFocus(); - base.PreDraw(); } @@ -169,7 +165,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable { if (!this.AllowDrawing || !this.showTsm.Value) return; - + var scale = ImGui.GetIO().FontGlobalScale; var entries = this.titleScreenMenu.PluginEntries; @@ -178,7 +174,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable ImGuiHoveredFlags.AllowWhenBlockedByActiveItem); Service<InterfaceManager>.Get().OverrideGameCursor = !hovered; - + switch (this.state) { case State.Show: @@ -189,23 +185,6 @@ internal class TitleScreenMenuWindow : Window, IDisposable if (!entry.IsShowConditionSatisfied()) continue; - if (entry.Texture.TryGetWrap(out var textureWrap, out var exception)) - { - if (textureWrap.Width != 64 && textureWrap.Height != 64) - { - Log.Error("Texture provided for ITitleScreenMenuEntry must be 64x64. Entry will be removed."); - this.titleScreenMenu.RemoveEntry(entry); - continue; - } - } - - if (exception != null) - { - Log.Error(exception, "An exception occurred while attempting to get the texture wrap for a ITitleScreenMenuEntry. Entry will be removed."); - this.titleScreenMenu.RemoveEntry(entry); - continue; - } - if (!this.moveEasings.TryGetValue(entry.Id, out var moveEasing)) { moveEasing = new InOutQuint(TimeSpan.FromMilliseconds(400)); @@ -225,7 +204,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable moveEasing.Update(); var finalPos = (i + 1) * this.shadeTexture.Value.Height * scale; - var pos = moveEasing.ValueClamped * finalPos; + var pos = moveEasing.Value * finalPos; // FIXME(goat): Sometimes, easings can overshoot and bring things out of alignment. if (moveEasing.IsDone) @@ -272,7 +251,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable this.fadeOutEasing.Update(); - using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, (float)this.fadeOutEasing.ValueClamped)) + using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, (float)this.fadeOutEasing.Value)) { var i = 0; foreach (var entry in entries) @@ -280,23 +259,6 @@ internal class TitleScreenMenuWindow : Window, IDisposable if (!entry.IsShowConditionSatisfied()) continue; - if (entry.Texture.TryGetWrap(out var textureWrap, out var exception)) - { - if (textureWrap.Width != 64 && textureWrap.Height != 64) - { - Log.Error($"Texture provided for ITitleScreenMenuEntry {entry.Name} must be 64x64. Entry will be removed."); - this.titleScreenMenu.RemoveEntry(entry); - continue; - } - } - - if (exception != null) - { - Log.Error(exception, $"An exception occurred while attempting to get the texture wrap for ITitleScreenMenuEntry {entry.Name}. Entry will be removed."); - this.titleScreenMenu.RemoveEntry(entry); - continue; - } - var finalPos = (i + 1) * this.shadeTexture.Value.Height * scale; this.DrawEntry(entry, i != 0, true, i == 0, false, false); @@ -355,10 +317,10 @@ internal class TitleScreenMenuWindow : Window, IDisposable var initialCursor = ImGui.GetCursorPos(); - using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, (float)shadeEasing.ValueClamped)) + using (ImRaii.PushStyle(ImGuiStyleVar.Alpha, (float)shadeEasing.Value)) { var texture = this.shadeTexture.Value; - ImGui.Image(texture.Handle, new Vector2(texture.Width, texture.Height) * scale); + ImGui.Image(texture.ImGuiHandle, new Vector2(texture.Width, texture.Height) * scale); } var isHover = ImGui.IsItemHovered(); @@ -405,16 +367,14 @@ internal class TitleScreenMenuWindow : Window, IDisposable if (overrideAlpha) { - ImGui.PushStyleVar(ImGuiStyleVar.Alpha, isFirst ? 1f : (float)logoEasing.ValueClamped); + ImGui.PushStyleVar(ImGuiStyleVar.Alpha, isFirst ? 1f : (float)logoEasing.Value); } else if (isFirst) { ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 1f); } - // Wrap should always be valid at this point due to us checking the validity of the image each frame - var dalamudTextureWrap = entry.Texture.GetWrapOrEmpty(); - ImGui.Image(dalamudTextureWrap.Handle, new Vector2(TitleScreenMenu.TextureSize * scale)); + ImGui.Image(entry.Texture.ImGuiHandle, new Vector2(TitleScreenMenu.TextureSize * scale)); if (overrideAlpha || isFirst) { ImGui.PopStyleVar(); @@ -428,30 +388,32 @@ internal class TitleScreenMenuWindow : Window, IDisposable var textHeight = ImGui.GetTextLineHeightWithSpacing(); var cursor = ImGui.GetCursorPos(); - cursor.Y += (dalamudTextureWrap.Height * scale / 2) - (textHeight / 2); + cursor.Y += (entry.Texture.Height * scale / 2) - (textHeight / 2); if (overrideAlpha) { - ImGui.PushStyleVar(ImGuiStyleVar.Alpha, showText ? (float)logoEasing.ValueClamped : 0f); + ImGui.PushStyleVar(ImGuiStyleVar.Alpha, showText ? (float)logoEasing.Value : 0f); } // Drop shadow - ImGui.SetCursorPos(cursor); - ImGuiHelpers.SeStringWrapped( - ReadOnlySeString.FromText(entry.Name), - new() + using (ImRaii.PushColor(ImGuiCol.Text, 0xFF000000)) + { + for (int i = 0, to = (int)Math.Ceiling(1 * scale); i < to; i++) { - FontSize = TargetFontSizePx * ImGui.GetIO().FontGlobalScale, - Edge = true, - Shadow = true, - }); + ImGui.SetCursorPos(new Vector2(cursor.X, cursor.Y + i)); + ImGui.Text(entry.Name); + } + } + + ImGui.SetCursorPos(cursor); + ImGui.Text(entry.Name); if (overrideAlpha) { ImGui.PopStyleVar(); } - initialCursor.Y += dalamudTextureWrap.Height * scale; + initialCursor.Y += entry.Texture.Height * scale; ImGui.SetCursorPos(initialCursor); return isHover; @@ -473,16 +435,16 @@ internal class TitleScreenMenuWindow : Window, IDisposable private unsafe void OnVersionStringDraw(AddonEvent ev, AddonArgs args) { - if (ev is not (AddonEvent.PostDraw or AddonEvent.PreDraw)) return; + if (args is not AddonDrawArgs drawArgs) return; - var addon = args.Addon.Struct; + var addon = (AtkUnitBase*)drawArgs.Addon; var textNode = addon->GetTextNodeById(3); - + // look and feel init. should be harmless to set. - textNode->TextFlags |= TextFlags.MultiLine; + textNode->TextFlags |= (byte)TextFlags.MultiLine; textNode->AlignmentType = AlignmentType.TopLeft; - var containsDalamudVersionString = textNode->OriginalTextPointer.Value == textNode->NodeText.StringPtr.Value; + var containsDalamudVersionString = textNode->OriginalTextPointer == textNode->NodeText.StringPtr; if (!this.configuration.ShowTsm || !this.showTsm.Value) { if (containsDalamudVersionString) @@ -499,23 +461,20 @@ internal class TitleScreenMenuWindow : Window, IDisposable return; this.lastLoadedPluginCount = count; - using var rssb = new RentedSeStringBuilder(); - - rssb.Builder - .Append(new ReadOnlySeStringSpan(addon->AtkValues[1].String.Value)) - .Append("\n\n") - .PushEdgeColorType(701) - .PushColorType(539) + var lssb = LSeStringBuilder.SharedPool.Get(); + lssb.Append(new ReadOnlySeStringSpan(addon->AtkValues[1].String)).Append("\n\n"); + lssb.PushEdgeColorType(701).PushColorType(539) .Append(SeIconChar.BoxedLetterD.ToIconChar()) - .PopColorType() - .PopEdgeColorType() - .Append($" Dalamud: {Versioning.GetScmVersion()}") - .Append($" - {count} {(count != 1 ? "plugins" : "plugin")} loaded"); + .PopColorType().PopEdgeColorType(); + lssb.Append($" Dalamud: {Util.GetScmVersion()}"); + + lssb.Append($" - {count} {(count != 1 ? "plugins" : "plugin")} loaded"); if (pm?.SafeMode is true) - rssb.Builder.PushColorType(17).Append(" [SAFE MODE]").PopColorType(); + lssb.PushColorType(17).Append(" [SAFE MODE]").PopColorType(); - textNode->SetText(rssb.Builder.GetViewAsSpan()); + textNode->SetText(lssb.GetViewAsSpan()); + LSeStringBuilder.SharedPool.Return(lssb); } private void TitleScreenMenuEntryListChange() => this.privateAtlas.BuildFontsAsync(); diff --git a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs index 0449bbe09..dcfcc32e3 100644 --- a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs +++ b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildStep.cs @@ -1,4 +1,4 @@ -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.ManagedFontAtlas; diff --git a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs index b2b2c2ab1..3b8bfd965 100644 --- a/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs +++ b/Dalamud/Interface/ManagedFontAtlas/FontAtlasBuildToolkitUtilities.cs @@ -2,7 +2,9 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text.Unicode; -using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Utility; + +using ImGuiNET; namespace Dalamud.Interface.ManagedFontAtlas; @@ -40,7 +42,7 @@ public static class FontAtlasBuildToolkitUtilities default(FluentGlyphRangeBuilder).With(range); /// <summary> - /// Compiles given <see cref="char"/>s into an array of <see cref="ushort"/> containing ImGui glyph ranges. + /// Compiles given <see cref="char"/>s into an array of <see cref="ushort"/> containing ImGui glyph ranges. /// </summary> /// <param name="enumerable">The chars.</param> /// <param name="addFallbackCodepoints">Add fallback codepoints to the range.</param> @@ -54,7 +56,7 @@ public static class FontAtlasBuildToolkitUtilities enumerable.BeginGlyphRange().Build(addFallbackCodepoints, addEllipsisCodepoints); /// <summary> - /// Compiles given <see cref="char"/>s into an array of <see cref="ushort"/> containing ImGui glyph ranges. + /// Compiles given <see cref="char"/>s into an array of <see cref="ushort"/> containing ImGui glyph ranges. /// </summary> /// <param name="span">The chars.</param> /// <param name="addFallbackCodepoints">Add fallback codepoints to the range.</param> @@ -68,7 +70,7 @@ public static class FontAtlasBuildToolkitUtilities span.BeginGlyphRange().Build(addFallbackCodepoints, addEllipsisCodepoints); /// <summary> - /// Compiles given string into an array of <see cref="ushort"/> containing ImGui glyph ranges. + /// Compiles given string into an array of <see cref="ushort"/> containing ImGui glyph ranges. /// </summary> /// <param name="string">The string.</param> /// <param name="addFallbackCodepoints">Add fallback codepoints to the range.</param> @@ -91,11 +93,10 @@ public static class FontAtlasBuildToolkitUtilities /// <returns>The relevant config pointer, or empty config pointer if not found.</returns> public static unsafe ImFontConfigPtr FindConfigPtr(this IFontAtlasBuildToolkit toolkit, ImFontPtr fontPtr) { - for (var i = 0; i < toolkit.NewImAtlas.ConfigData.Size; i++) + foreach (ref var c in toolkit.NewImAtlas.ConfigDataWrapped().DataSpan) { - var c = toolkit.NewImAtlas.ConfigData[i]; - if (c.DstFont == fontPtr.Handle) - return new((ImFontConfig*)Unsafe.AsPointer(ref c)); + if (c.DstFont == fontPtr.NativePtr) + return new((nint)Unsafe.AsPointer(ref c)); } return default; diff --git a/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs b/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs index 47751e12d..b30d5c26c 100644 --- a/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs +++ b/Dalamud/Interface/ManagedFontAtlas/FontScaleMode.cs @@ -1,6 +1,7 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas; /// <summary> @@ -14,14 +15,14 @@ public enum FontScaleMode /// Note that bitmap fonts and game fonts will always look blurry if they're not in their original sizes. /// </summary> Default, - + /// <summary> /// Do nothing with the font. Dalamud will load the font with the size that is exactly as specified. /// On drawing, the font will look blurry due to stretching. /// Intended for use with custom scale handling. /// </summary> SkipHandling, - + /// <summary> /// Stretch the glyphs of the loaded font by the inverse of the global scale. /// On drawing, the font will always render exactly as the requested size without blurring, as long as diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs index 1ef0d8a20..d622fbbb2 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlas.cs @@ -1,9 +1,10 @@ using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.GameFonts; using Dalamud.Interface.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas; /// <summary> @@ -38,7 +39,7 @@ public interface IFontAtlas : IDisposable string Name { get; } /// <summary> - /// Gets a value how the atlas should be rebuilt when the relevant Dalamud Configuration changes. + /// Gets a value how the atlas should be rebuilt when the relevant Dalamud Configuration changes. /// </summary> FontAtlasAutoRebuildMode AutoRebuildMode { get; } @@ -129,7 +130,7 @@ public interface IFontAtlas : IDisposable /// <b>On use</b>: /// <code> /// using (this.fontHandle.Push()) - /// ImGui.Text("Example"u8); + /// ImGui.TextUnformatted("Example"); /// </code> /// </example> public IFontHandle NewDelegateFontHandle(FontAtlasBuildStepDelegate buildStepDelegate); @@ -152,7 +153,7 @@ public interface IFontAtlas : IDisposable void BuildFontsImmediately(); /// <summary> - /// Rebuilds fonts asynchronously, on any thread. + /// Rebuilds fonts asynchronously, on any thread. /// </summary> /// <returns>The task.</returns> /// <exception cref="InvalidOperationException">If <see cref="AutoRebuildMode"/> is <see cref="FontAtlasAutoRebuildMode.OnNewFrame"/>.</exception> diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs index 6dbd45c01..ae996a39c 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkit.cs @@ -1,8 +1,9 @@ using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas; /// <summary> diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs index 32a096909..c09285fce 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPostBuild.cs @@ -1,6 +1,8 @@ -using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas; /// <summary> diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs index 80757d831..babe17fdd 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontAtlasBuildToolkitPreBuild.cs @@ -2,10 +2,12 @@ using System.IO; using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; using Dalamud.Interface.Utility; +using Dalamud.Utility; + +using ImGuiNET; using TerraFX.Interop.DirectX; @@ -70,12 +72,12 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// Adds a font from memory region allocated using <see cref="ImGuiHelpers.AllocateMemory"/>.<br /> /// <b>It WILL crash if you try to use a memory pointer allocated in some other way.</b><br /> /// <b> - /// Do NOT call <see cref="ImGui.MemFree"/> on the <paramref name="dataPointer"/> once this function has + /// Do NOT call <see cref="ImGuiNative.igMemFree"/> on the <paramref name="dataPointer"/> once this function has /// been called, unless <paramref name="freeOnException"/> is set and the function has thrown an error. /// </b> /// </summary> /// <param name="dataPointer">Memory address for the data allocated using <see cref="ImGuiHelpers.AllocateMemory"/>.</param> - /// <param name="dataSize">The size of the font file.</param> + /// <param name="dataSize">The size of the font file..</param> /// <param name="fontConfig">The font config.</param> /// <param name="freeOnException">Free <paramref name="dataPointer"/> if an exception happens.</param> /// <param name="debugTag">A debug tag.</param> @@ -97,12 +99,12 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// Adds a font from memory region allocated using <see cref="ImGuiHelpers.AllocateMemory"/>.<br /> /// <b>It WILL crash if you try to use a memory pointer allocated in some other way.</b><br /> /// <b> - /// Do NOT call <see cref="ImGui.MemFree"/> on the <paramref name="dataPointer"/> once this function has + /// Do NOT call <see cref="ImGuiNative.igMemFree"/> on the <paramref name="dataPointer"/> once this function has /// been called, unless <paramref name="freeOnException"/> is set and the function has thrown an error. /// </b> /// </summary> /// <param name="dataPointer">Memory address for the data allocated using <see cref="ImGuiHelpers.AllocateMemory"/>.</param> - /// <param name="dataSize">The size of the font file.</param> + /// <param name="dataSize">The size of the font file..</param> /// <param name="fontConfig">The font config.</param> /// <param name="freeOnException">Free <paramref name="dataPointer"/> if an exception happens.</param> /// <param name="debugTag">A debug tag.</param> @@ -155,7 +157,7 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// used as the font size. Specify -1 to use the default font size. /// </param> /// <param name="glyphRanges">The glyph ranges. Use <see cref="FontAtlasBuildToolkitUtilities"/>.ToGlyphRange to build.</param> - /// <returns>A font returned from <see cref="ImFontAtlasPtr.AddFont(ImFontConfig*)"/>.</returns> + /// <returns>A font returned from <see cref="ImFontAtlasPtr.AddFont"/>.</returns> ImFontPtr AddDalamudDefaultFont(float sizePx, ushort[]? glyphRanges = null); /// <summary> @@ -209,7 +211,7 @@ public interface IFontAtlasBuildToolkitPreBuild : IFontAtlasBuildToolkit /// </param> /// <param name="style">The font style, in range from <c>0</c> to <c>2</c>. <c>0</c> is normal.</param> /// <remarks> - /// <para>May do nothing at all if <paramref name="cultureInfo"/> is unsupported by Dalamud font handler.</para> + /// <para>May do nothing at all if <paramref name="cultureInfo"/> is unsupported by Dalamud font handler.</para> /// <para>See /// <a href="https://learn.microsoft.com/en-us/windows/apps/design/globalizing/loc-international-fonts">Microsoft /// Learn</a> for the fonts.</para> diff --git a/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs index be2f5a742..803f6b82c 100644 --- a/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/IFontHandle.cs @@ -1,7 +1,6 @@ -using System.Threading; -using System.Threading.Tasks; +using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.ManagedFontAtlas; @@ -34,22 +33,10 @@ public interface IFontHandle : IDisposable /// </summary> /// <remarks> /// Use <see cref="Push"/> directly if you want to keep the current ImGui font if the font is not ready.<br /> - /// Alternatively, use <see cref="WaitAsync()"/> to wait for this property to become <c>true</c>. + /// Alternatively, use <see cref="WaitAsync"/> to wait for this property to become <c>true</c>. /// </remarks> bool Available { get; } - /// <summary> - /// Attempts to lock the fully constructed instance of <see cref="ImFontPtr"/> corresponding to the this - /// <see cref="IFontHandle"/>, for use in any thread.<br /> - /// Modification of the font will exhibit undefined behavior if some other thread also uses the font. - /// </summary> - /// <param name="errorMessage">The error message, if any.</param> - /// <returns> - /// An instance of <see cref="ILockedImFont"/> that <b>must</b> be disposed after use on success; - /// <c>null</c> with <paramref name="errorMessage"/> populated on failure. - /// </returns> - ILockedImFont? TryLock(out string? errorMessage); - /// <summary> /// Locks the fully constructed instance of <see cref="ImFontPtr"/> corresponding to the this /// <see cref="IFontHandle"/>, for use in any thread.<br /> @@ -69,9 +56,9 @@ public interface IFontHandle : IDisposable /// You may not access the font once you dispose this object. /// </summary> /// <returns>A disposable object that will pop the font on dispose.</returns> - /// <exception cref="InvalidOperationException">If called outside the main thread.</exception> + /// <exception cref="InvalidOperationException">If called outside of the main thread.</exception> /// <remarks> - /// <para>This function uses <see cref="ImGui.PushFont(ImFontPtr)"/>, and may do extra things. + /// <para>This function uses <see cref="ImGui.PushFont"/>, and may do extra things. /// Use <see cref="IDisposable.Dispose"/> or <see cref="Pop"/> to undo this operation. /// Do not use <see cref="ImGui.PopFont"/>.</para> /// </remarks> @@ -79,18 +66,18 @@ public interface IFontHandle : IDisposable /// <b>Push a font with `using` clause.</b> /// <code> /// using (fontHandle.Push()) - /// ImGui.Text("Test"u8); + /// ImGui.TextUnformatted("Test"); /// </code> /// <b>Push a font with a matching call to <see cref="Pop"/>.</b> /// <code> /// fontHandle.Push(); - /// ImGui.Text("Test 2"u8); + /// ImGui.TextUnformatted("Test 2"); /// fontHandle.Pop(); /// </code> /// <b>Push a font between two choices.</b> /// <code> /// using ((someCondition ? myFontHandle : dalamudPluginInterface.UiBuilder.MonoFontHandle).Push()) - /// ImGui.Text("Test 3"u8); + /// ImGui.TextUnformatted("Test 3"); /// </code> /// </example> IDisposable Push(); @@ -105,11 +92,4 @@ public interface IFontHandle : IDisposable /// </summary> /// <returns>A task containing this <see cref="IFontHandle"/>.</returns> Task<IFontHandle> WaitAsync(); - - /// <summary> - /// Waits for <see cref="Available"/> to become <c>true</c>. - /// </summary> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>A task containing this <see cref="IFontHandle"/>.</returns> - Task<IFontHandle> WaitAsync(CancellationToken cancellationToken); } diff --git a/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs b/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs index b59f15485..a4cc3afa7 100644 --- a/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs +++ b/Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs @@ -1,4 +1,4 @@ -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.ManagedFontAtlas; diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs index 0e2f503b4..52939385b 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/DelegateFontHandle.cs @@ -1,12 +1,12 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Threading; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; using Dalamud.Logging.Internal; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// <summary> @@ -35,8 +35,8 @@ internal sealed class DelegateFontHandle : FontHandle /// </summary> internal sealed class HandleManager : IFontHandleManager { - private readonly HashSet<DelegateFontHandle> handles = []; - private readonly Lock syncRoot = new(); + private readonly HashSet<DelegateFontHandle> handles = new(); + private readonly object syncRoot = new(); /// <summary> /// Initializes a new instance of the <see cref="HandleManager"/> class. @@ -66,7 +66,7 @@ internal sealed class DelegateFontHandle : FontHandle var key = new DelegateFontHandle(this, buildStepDelegate); lock (this.syncRoot) this.handles.Add(key); - this.RebuildRecommend.InvokeSafely(); + this.RebuildRecommend?.Invoke(); return key; } @@ -96,8 +96,8 @@ internal sealed class DelegateFontHandle : FontHandle private static readonly ModuleLog Log = new($"{nameof(DelegateFontHandle)}.{nameof(HandleSubstance)}"); // Owned by this class, but ImFontPtr values still do not belong to this. - private readonly Dictionary<DelegateFontHandle, ImFontPtr> fonts = []; - private readonly Dictionary<DelegateFontHandle, Exception?> buildExceptions = []; + private readonly Dictionary<DelegateFontHandle, ImFontPtr> fonts = new(); + private readonly Dictionary<DelegateFontHandle, Exception?> buildExceptions = new(); /// <summary> /// Initializes a new instance of the <see cref="HandleSubstance"/> class. @@ -159,7 +159,7 @@ internal sealed class DelegateFontHandle : FontHandle { toolkitPreBuild.Font = default; k.CallOnBuildStepChange(toolkitPreBuild); - if (toolkitPreBuild.Font.IsNull) + if (toolkitPreBuild.Font.IsNull()) { if (fontCountPrevious == fontsVector.Length) { @@ -177,7 +177,7 @@ internal sealed class DelegateFontHandle : FontHandle { for (var i = fontCountPrevious; !found && i < fontsVector.Length; i++) { - if (fontsVector[i].Handle == toolkitPreBuild.Font.Handle) + if (fontsVector[i].NativePtr == toolkitPreBuild.Font.NativePtr) found = true; } } @@ -223,7 +223,7 @@ internal sealed class DelegateFontHandle : FontHandle { unsafe { - if (fontsVector[i].Handle == fontsVector[j].Handle) + if (fontsVector[i].NativePtr == fontsVector[j].NativePtr) throw new InvalidOperationException("An already added font has been added again."); } } @@ -247,7 +247,7 @@ internal sealed class DelegateFontHandle : FontHandle { var distinct = fontsVector - .DistinctBy(x => (nint)x.Handle) // Remove duplicates + .DistinctBy(x => (nint)x.NativePtr) // Remove duplicates .Where(x => x.ValidateUnsafe() is null) // Remove invalid entries without freeing them .ToArray(); @@ -259,7 +259,7 @@ internal sealed class DelegateFontHandle : FontHandle } } - /// <inheritdoc/> + /// <inheritdoc/> public void OnPreBuildCleanup(IFontAtlasBuildToolkitPreBuild toolkitPreBuild) { // irrelevant diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs index 97dc29804..955b10892 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.BuildToolkit.cs @@ -5,7 +5,6 @@ using System.IO; using System.Linq; using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; @@ -16,6 +15,10 @@ using Dalamud.Interface.Utility; using Dalamud.Storage.Assets; using Dalamud.Utility; +using ImGuiNET; + +using SharpDX.DXGI; + using TerraFX.Interop.DirectX; namespace Dalamud.Interface.ManagedFontAtlas.Internals; @@ -25,7 +28,8 @@ namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// </summary> internal sealed partial class FontAtlasFactory { - private static readonly Dictionary<ulong, List<(char Left, char Right, float Distance)>> PairAdjustmentsCache = []; + private static readonly Dictionary<ulong, List<(char Left, char Right, float Distance)>> PairAdjustmentsCache = + new(); /// <summary> /// Implementations for <see cref="IFontAtlasBuildToolkitPreBuild"/> and @@ -43,7 +47,7 @@ internal sealed partial class FontAtlasFactory private readonly GamePrebakedFontHandle.HandleSubstance gameFontHandleSubstance; private readonly FontAtlasFactory factory; private readonly FontAtlasBuiltData data; - private readonly List<Action> registeredPostBuildActions = []; + private readonly List<Action> registeredPostBuildActions = new(); /// <summary> /// Initializes a new instance of the <see cref="BuildToolkit"/> class. @@ -85,7 +89,7 @@ internal sealed partial class FontAtlasFactory /// <summary> /// Gets the font scale modes. /// </summary> - private Dictionary<ImFontPtr, FontScaleMode> FontScaleModes { get; } = []; + private Dictionary<ImFontPtr, FontScaleMode> FontScaleModes { get; } = new(); /// <inheritdoc/> public void Dispose() => this.disposeAfterBuild.Dispose(); @@ -115,7 +119,7 @@ internal sealed partial class FontAtlasFactory foreach (var s in this.data.Substances) { var f = s.GetFontPtr(fontHandle); - if (!f.IsNull) + if (!f.IsNull()) return f; } @@ -151,7 +155,7 @@ internal sealed partial class FontAtlasFactory Log.Verbose( "[{name}] 0x{atlas:X}: {funcname}(0x{dataPointer:X}, 0x{dataSize:X}, ...) from {tag}", this.data.Owner?.Name ?? "(error)", - (nint)this.NewImAtlas.Handle, + (nint)this.NewImAtlas.NativePtr, nameof(this.AddFontFromImGuiHeapAllocatedMemory), (nint)dataPointer, dataSize, @@ -165,19 +169,19 @@ internal sealed partial class FontAtlasFactory var raw = fontConfig.Raw with { FontData = dataPointer, - FontDataOwnedByAtlas = true, + FontDataOwnedByAtlas = 1, FontDataSize = dataSize, }; if (fontConfig.GlyphRanges is not { Length: > 0 } ranges) - ranges = [1, 0xFFFE, 0]; + ranges = new ushort[] { 1, 0xFFFE, 0 }; raw.GlyphRanges = (ushort*)this.DisposeAfterBuild( GCHandle.Alloc(ranges, GCHandleType.Pinned)).AddrOfPinnedObject(); TrueTypeUtils.CheckImGuiCompatibleOrThrow(raw); - font = this.NewImAtlas.AddFont(raw); + font = this.NewImAtlas.AddFont(&raw); var dataHash = default(HashCode); dataHash.AddBytes(new(dataPointer, dataSize)); @@ -188,7 +192,7 @@ internal sealed partial class FontAtlasFactory { if (!PairAdjustmentsCache.TryGetValue(hashIdent, out pairAdjustments)) { - PairAdjustmentsCache.Add(hashIdent, pairAdjustments = []); + PairAdjustmentsCache.Add(hashIdent, pairAdjustments = new()); try { pairAdjustments.AddRange(TrueTypeUtils.ExtractHorizontalPairAdjustments(raw).ToArray()); @@ -214,11 +218,11 @@ internal sealed partial class FontAtlasFactory } catch { - if (!font.IsNull) + if (!font.IsNull()) { // Note that for both RemoveAt calls, corresponding destructors will be called. - var configIndex = this.data.ConfigData.FindIndex(x => x.DstFont == font.Handle); + var configIndex = this.data.ConfigData.FindIndex(x => x.DstFont == font.NativePtr); if (configIndex >= 0) this.data.ConfigData.RemoveAt(configIndex); @@ -229,7 +233,7 @@ internal sealed partial class FontAtlasFactory // ImFontConfig has no destructor, and does not free the data. if (freeOnException) - ImGui.MemFree(dataPointer); + ImGuiNative.igMemFree(dataPointer); throw; } @@ -261,21 +265,21 @@ internal sealed partial class FontAtlasFactory stream = ms; } - var length = checked((uint)stream.Length); + var length = checked((int)(uint)stream.Length); var memory = ImGuiHelpers.AllocateMemory(length); try { - stream.ReadExactly(new(memory, checked((int)length))); + stream.ReadExactly(new(memory, length)); return this.AddFontFromImGuiHeapAllocatedMemory( memory, - checked((int)length), + length, fontConfig, false, $"{nameof(this.AddFontFromStream)}({debugTag})"); } catch { - ImGui.MemFree(memory); + ImGuiNative.igMemFree(memory); throw; } } @@ -287,7 +291,7 @@ internal sealed partial class FontAtlasFactory string debugTag) { var length = span.Length; - var memory = ImGuiHelpers.AllocateMemory(checked((uint)length)); + var memory = ImGuiHelpers.AllocateMemory(length); try { span.CopyTo(new(memory, length)); @@ -300,7 +304,7 @@ internal sealed partial class FontAtlasFactory } catch { - ImGui.MemFree(memory); + ImGuiNative.igMemFree(memory); throw; } } @@ -330,14 +334,14 @@ internal sealed partial class FontAtlasFactory } } - if (font.IsNull) + if (font.IsNull()) { // fall back to AXIS fonts font = this.AddGameGlyphs(new(GameFontFamily.Axis, sizePx), glyphRanges, default); } this.AttachExtraGlyphsForDalamudLanguage(new() { SizePx = sizePx, MergeFont = font }); - if (this.Font.IsNull) + if (this.Font.IsNull()) this.Font = font; return font; } @@ -382,7 +386,7 @@ internal sealed partial class FontAtlasFactory DalamudAsset.FontAwesomeFreeSolid, fontConfig with { - GlyphRanges = [FontAwesomeIconMin, FontAwesomeIconMax, 0], + GlyphRanges = new ushort[] { FontAwesomeIconMin, FontAwesomeIconMax, 0 }, }); /// <inheritdoc/> @@ -391,12 +395,12 @@ internal sealed partial class FontAtlasFactory DalamudAsset.LodestoneGameSymbol, fontConfig with { - GlyphRanges = - [ + GlyphRanges = new ushort[] + { GamePrebakedFontHandle.SeIconCharMin, GamePrebakedFontHandle.SeIconCharMax, 0, - ], + }, }); /// <inheritdoc/> @@ -412,9 +416,9 @@ internal sealed partial class FontAtlasFactory int style = (int)DWRITE_FONT_STYLE.DWRITE_FONT_STYLE_NORMAL) { var targetFont = fontConfig.MergeFont; - if (targetFont.IsNull) + if (targetFont.IsNull()) targetFont = this.Font; - if (targetFont.IsNull) + if (targetFont.IsNull()) return; // https://learn.microsoft.com/en-us/windows/apps/design/globalizing/loc-international-fonts @@ -555,9 +559,9 @@ internal sealed partial class FontAtlasFactory public void AttachExtraGlyphsForDalamudLanguage(in SafeFontConfig fontConfig) { var targetFont = fontConfig.MergeFont; - if (targetFont.IsNull) + if (targetFont.IsNull()) targetFont = this.Font; - if (targetFont.IsNull) + if (targetFont.IsNull()) return; var dalamudConfiguration = Service<DalamudConfiguration>.Get(); @@ -629,7 +633,7 @@ internal sealed partial class FontAtlasFactory { this.AddDalamudAssetFont( DalamudAsset.NotoSansJpMedium, - new() { GlyphRanges = [' ', ' ', '\0'], SizePx = 1 }); + new() { GlyphRanges = new ushort[] { ' ', ' ', '\0' }, SizePx = 1 }); } if (!this.NewImAtlas.Build()) @@ -649,7 +653,7 @@ internal sealed partial class FontAtlasFactory foreach (var c in FallbackCodepoints) { var g = font.FindGlyphNoFallback(c); - if (g == null) + if (g.NativePtr == null) continue; font.UpdateFallbackChar(c); @@ -659,7 +663,7 @@ internal sealed partial class FontAtlasFactory foreach (var c in EllipsisCodepoints) { var g = font.FindGlyphNoFallback(c); - if (g == null) + if (g.NativePtr == null) continue; font.EllipsisChar = c; @@ -695,8 +699,8 @@ internal sealed partial class FontAtlasFactory { ref var texture = ref textureSpan[i]; var name = - $"{nameof(FontAtlasBuiltData)}[{this.data.Owner?.Name ?? "-"}][0x{(long)this.data.Atlas.Handle:X}][{i}]"; - if (!texture.TexID.IsNull) + $"{nameof(FontAtlasBuiltData)}[{this.data.Owner?.Name ?? "-"}][0x{(long)this.data.Atlas.NativePtr:X}][{i}]"; + if (texture.TexID != 0) { // Nothing to do } @@ -708,7 +712,7 @@ internal sealed partial class FontAtlasFactory name); this.factory.TextureManager.Blame(wrap, this.data.Owner?.OwnerPlugin); this.data.AddExistingTexture(wrap); - texture.TexID = wrap.Handle; + texture.TexID = wrap.ImGuiHandle; } else if (texture.TexPixelsAlpha8 is not null) { @@ -748,13 +752,13 @@ internal sealed partial class FontAtlasFactory new( width, height, - (int)(use4 ? DXGI_FORMAT.DXGI_FORMAT_B4G4R4A4_UNORM : DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM), + (int)(use4 ? Format.B4G4R4A4_UNorm : Format.B8G8R8A8_UNorm), width * bpp), buf, name); this.factory.TextureManager.Blame(wrap, this.data.Owner?.OwnerPlugin); this.data.AddExistingTexture(wrap); - texture.TexID = wrap.Handle; + texture.TexID = wrap.ImGuiHandle; continue; } else @@ -765,9 +769,9 @@ internal sealed partial class FontAtlasFactory } if (texture.TexPixelsRGBA32 is not null) - ImGui.MemFree(texture.TexPixelsRGBA32); + ImGuiNative.igMemFree(texture.TexPixelsRGBA32); if (texture.TexPixelsAlpha8 is not null) - ImGui.MemFree(texture.TexPixelsAlpha8); + ImGuiNative.igMemFree(texture.TexPixelsAlpha8); texture.TexPixelsRGBA32 = null; texture.TexPixelsAlpha8 = null; } @@ -791,8 +795,8 @@ internal sealed partial class FontAtlasFactory var targetFound = false; foreach (var f in this.Fonts) { - sourceFound |= f.Handle == source.Handle; - targetFound |= f.Handle == target.Handle; + sourceFound |= f.NativePtr == source.NativePtr; + targetFound |= f.NativePtr == target.NativePtr; } if (sourceFound && targetFound) @@ -813,8 +817,8 @@ internal sealed partial class FontAtlasFactory public unsafe void BuildLookupTable(ImFontPtr font) { // Need to clear previous Fallback pointers before BuildLookupTable, or it may crash - font.Handle->FallbackGlyph = null; - font.Handle->FallbackHotData = null; + font.NativePtr->FallbackGlyph = null; + font.NativePtr->FallbackHotData = null; font.BuildLookupTable(); // Need to fix our custom ImGui, so that imgui_widgets.cpp:3656 stops thinking @@ -822,7 +826,7 @@ internal sealed partial class FontAtlasFactory // Otherwise, having a fallback character in ImGui.InputText gets strange. var indexedHotData = font.IndexedHotDataWrapped(); var indexLookup = font.IndexLookupWrapped(); - ref var fallbackHotData = ref *(ImGuiHelpers.ImFontGlyphHotDataReal*)font.Handle->FallbackHotData; + ref var fallbackHotData = ref *(ImGuiHelpers.ImFontGlyphHotDataReal*)font.NativePtr->FallbackHotData; for (var codepoint = 0; codepoint < indexedHotData.Length; codepoint++) { if (indexLookup[codepoint] == ushort.MaxValue) diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs index 323d4173d..61ac00faf 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.Implementation.cs @@ -1,4 +1,4 @@ -// #define VeryVerboseLog +// #define VeryVerboseLog using System.Collections.Generic; using System.Diagnostics; @@ -8,14 +8,16 @@ using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.GameFonts; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; +using ImGuiNET; + using JetBrains.Annotations; namespace Dalamud.Interface.ManagedFontAtlas.Internals; @@ -41,9 +43,9 @@ internal sealed partial class FontAtlasFactory /// <summary> /// If set, disables concurrent font build operation. /// </summary> - private static readonly Lock? NoConcurrentBuildOperationLock = null; // new(); + private static readonly object? NoConcurrentBuildOperationLock = null; // new(); - private static readonly ModuleLog Log = ModuleLog.Create<FontAtlasFactory>(); + private static readonly ModuleLog Log = new(nameof(FontAtlasFactory)); private static readonly Task<FontAtlasBuiltData> EmptyTask = Task.FromResult(default(FontAtlasBuiltData)); @@ -66,18 +68,18 @@ internal sealed partial class FontAtlasFactory try { - var substancesList = this.substances = []; + var substancesList = this.substances = new(); this.Garbage.Add(() => substancesList.Clear()); - var wrapsCopy = this.wraps = []; + var wrapsCopy = this.wraps = new(); this.Garbage.Add(() => wrapsCopy.Clear()); - var atlasPtr = ImGui.ImFontAtlas(); + var atlasPtr = ImGuiNative.ImFontAtlas_ImFontAtlas(); this.Atlas = atlasPtr; - if (this.Atlas.Handle is null) + if (this.Atlas.NativePtr is null) throw new OutOfMemoryException($"Failed to allocate a new {nameof(ImFontAtlas)}."); - this.Garbage.Add(() => this.Atlas.Destroy()); + this.Garbage.Add(() => ImGuiNative.ImFontAtlas_destroy(atlasPtr)); this.IsBuildInProgress = true; Interlocked.Increment(ref numActiveInstances); @@ -115,16 +117,18 @@ internal sealed partial class FontAtlasFactory public void AddExistingTexture(IDalamudTextureWrap wrap) { - ObjectDisposedException.ThrowIf(this.wraps == null, this); + if (this.wraps is null) + throw new ObjectDisposedException(nameof(FontAtlasBuiltData)); this.wraps.Add(this.Garbage.Add(wrap)); } public int AddNewTexture(IDalamudTextureWrap wrap, bool disposeOnError) { - ObjectDisposedException.ThrowIf(this.wraps == null, this); + if (this.wraps is null) + throw new ObjectDisposedException(nameof(FontAtlasBuiltData)); - var handle = wrap.Handle; + var handle = wrap.ImGuiHandle; var index = this.ImTextures.IndexOf(x => x.TexID == handle); if (index == -1) { @@ -185,7 +189,7 @@ internal sealed partial class FontAtlasFactory case IRefCountable.RefCountResult.FinalRelease: #if VeryVerboseLog - Log.Verbose("[{name}] 0x{ptr:X}: Disposing", this.Owner?.Name ?? "<?>", (nint)this.Atlas.Handle); + Log.Verbose("[{name}] 0x{ptr:X}: Disposing", this.Owner?.Name ?? "<?>", (nint)this.Atlas.NativePtr); #endif if (this.IsBuildInProgress) @@ -196,7 +200,7 @@ internal sealed partial class FontAtlasFactory "[{name}] 0x{ptr:X}: Trying to dispose while build is in progress; disposing later.\n" + "Stack:\n{trace}", this.Owner?.Name ?? "<?>", - (nint)this.Atlas.Handle, + (nint)this.Atlas.NativePtr, new StackTrace()); } @@ -252,7 +256,7 @@ internal sealed partial class FontAtlasFactory private readonly GamePrebakedFontHandle.HandleManager gameFontHandleManager; private readonly IFontHandleManager[] fontHandleManagers; - private readonly Lock syncRoot = new(); + private readonly object syncRoot = new(); private Task<FontAtlasBuiltData?> buildTask = EmptyTask; private FontAtlasBuiltData? builtData; @@ -290,13 +294,13 @@ internal sealed partial class FontAtlasFactory this.factory.InterfaceManager.AfterBuildFonts += this.OnRebuildRecommend; this.disposables.Add(() => this.factory.InterfaceManager.AfterBuildFonts -= this.OnRebuildRecommend); - this.fontHandleManagers = - [ + this.fontHandleManagers = new IFontHandleManager[] + { this.delegateFontHandleManager = this.disposables.Add( new DelegateFontHandle.HandleManager(atlasName)), this.gameFontHandleManager = this.disposables.Add( new GamePrebakedFontHandle.HandleManager(atlasName, factory)), - ]; + }; foreach (var fhm in this.fontHandleManagers) fhm.RebuildRecommend += this.OnRebuildRecommend; } @@ -306,7 +310,7 @@ internal sealed partial class FontAtlasFactory throw; } - this.factory.BackendTask.ContinueWith( + this.factory.SceneTask.ContinueWith( r => { lock (this.syncRoot) @@ -314,8 +318,8 @@ internal sealed partial class FontAtlasFactory if (this.disposed) return; - r.Result.NewRenderFrame += this.ImGuiSceneOnNewRenderFrame; - this.disposables.Add(() => r.Result.NewRenderFrame -= this.ImGuiSceneOnNewRenderFrame); + r.Result.OnNewRenderFrame += this.ImGuiSceneOnNewRenderFrame; + this.disposables.Add(() => r.Result.OnNewRenderFrame -= this.ImGuiSceneOnNewRenderFrame); } if (this.AutoRebuildMode == FontAtlasAutoRebuildMode.OnNewFrame) @@ -368,7 +372,7 @@ internal sealed partial class FontAtlasFactory public Task BuildTask => this.buildTask; /// <inheritdoc/> - public bool HasBuiltAtlas => !(this.builtData?.Atlas.IsNull ?? true); + public bool HasBuiltAtlas => !(this.builtData?.Atlas.IsNull() ?? true); /// <inheritdoc/> public bool IsGlobalScaled { get; } @@ -382,7 +386,7 @@ internal sealed partial class FontAtlasFactory if (this.disposed) return; - this.BeforeDispose.InvokeSafely(this); + this.BeforeDispose?.InvokeSafely(this); try { @@ -396,11 +400,25 @@ internal sealed partial class FontAtlasFactory this.disposables.Dispose(); } - this.AfterDispose.InvokeSafely(this, null); + try + { + this.AfterDispose?.Invoke(this, null); + } + catch + { + // ignore + } } catch (Exception e) { - this.AfterDispose.InvokeSafely(this, e); + try + { + this.AfterDispose?.Invoke(this, e); + } + catch + { + // ignore + } } GC.SuppressFinalize(this); @@ -551,7 +569,7 @@ internal sealed partial class FontAtlasFactory } var res = await this.RebuildFontsPrivate(true, scale); - if (res.Atlas.IsNull) + if (res.Atlas.IsNull()) return res; this.PromoteBuiltData(rebuildIndex, res, nameof(this.BuildFontsAsync)); @@ -646,10 +664,10 @@ internal sealed partial class FontAtlasFactory { res = new(this, scale); foreach (var fhm in this.fontHandleManagers) - res.InitialAddSubstance(fhm.NewSubstance(res)); + res.InitialAddSubstance(fhm.NewSubstance(res)); unsafe { - atlasPtr = (nint)res.Atlas.Handle; + atlasPtr = (nint)res.Atlas.NativePtr; } Log.Verbose( @@ -681,10 +699,10 @@ internal sealed partial class FontAtlasFactory res = new(this, scale); foreach (var fhm in this.fontHandleManagers) - res.InitialAddSubstance(fhm.NewSubstance(res)); + res.InitialAddSubstance(fhm.NewSubstance(res)); unsafe { - atlasPtr = (nint)res.Atlas.Handle; + atlasPtr = (nint)res.Atlas.NativePtr; } toolkit = res.CreateToolkit(this.factory, isAsync); @@ -717,7 +735,7 @@ internal sealed partial class FontAtlasFactory foreach (var font in toolkit.Fonts) toolkit.BuildLookupTable(font); - if (this.factory.BackendTask is { IsCompleted: false } backendTask) + if (this.factory.SceneTask is { IsCompleted: false } sceneTask) { Log.Verbose( "[{name}:{functionname}] 0x{ptr:X}: await SceneTask (at {sw}ms)", @@ -725,7 +743,7 @@ internal sealed partial class FontAtlasFactory nameof(this.RebuildFontsPrivateReal), atlasPtr, sw.ElapsedMilliseconds); - await backendTask.ConfigureAwait(!isAsync); + await sceneTask.ConfigureAwait(!isAsync); } #if VeryVerboseLog @@ -810,7 +828,7 @@ internal sealed partial class FontAtlasFactory this.factory.Framework.RunOnFrameworkThread( () => { - this.RebuildRecommend.InvokeSafely(); + this.RebuildRecommend?.InvokeSafely(); switch (this.AutoRebuildMode) { diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs index 55c2acdbc..c084d88e2 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontAtlasFactory.cs @@ -1,17 +1,15 @@ -using System.Buffers; +using System.Buffers; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Data; using Dalamud.Game; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.GameFonts; -using Dalamud.Interface.ImGuiBackend; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; @@ -19,6 +17,10 @@ using Dalamud.Plugin.Internal.Types; using Dalamud.Storage.Assets; using Dalamud.Utility; +using ImGuiNET; + +using ImGuiScene; + using Lumina.Data.Files; using TerraFX.Interop.DirectX; @@ -50,9 +52,9 @@ internal sealed partial class FontAtlasFactory this.Framework = framework; this.InterfaceManager = interfaceManager; this.dalamudAssetManager = dalamudAssetManager; - this.BackendTask = Service<InterfaceManager.InterfaceManagerWithScene> + this.SceneTask = Service<InterfaceManager.InterfaceManagerWithScene> .GetAsync() - .ContinueWith(r => r.Result.Manager.Backend); + .ContinueWith(r => r.Result.Manager.Scene); var gffasInfo = Enum.GetValues<GameFontFamilyAndSize>() .Select( @@ -118,11 +120,19 @@ internal sealed partial class FontAtlasFactory public IFontSpec DefaultFontSpec => this.DefaultFontSpecOverride ?? Service<DalamudConfiguration>.Get().DefaultFontSpec - ?? new SingleFontSpec() - { - FontId = new GameFontAndFamilyId(GameFontFamily.Axis), - SizePx = InterfaceManager.DefaultFontSizePx, - }; +#pragma warning disable CS0618 // Type or member is obsolete + ?? (Service<DalamudConfiguration>.Get().UseAxisFontsFromGame +#pragma warning restore CS0618 // Type or member is obsolete + ? new() + { + FontId = new GameFontAndFamilyId(GameFontFamily.Axis), + SizePx = InterfaceManager.DefaultFontSizePx, + } + : new SingleFontSpec + { + FontId = new DalamudAssetFontAndFamilyId(DalamudAsset.NotoSansJpMedium), + SizePx = InterfaceManager.DefaultFontSizePx + 1, + }); /// <summary> /// Gets the service instance of <see cref="Framework"/>. @@ -131,7 +141,7 @@ internal sealed partial class FontAtlasFactory /// <summary> /// Gets the service instance of <see cref="InterfaceManager"/>.<br /> - /// <see cref="Internal.InterfaceManager.Backend"/> may not yet be available. + /// <see cref="Internal.InterfaceManager.Scene"/> may not yet be available. /// </summary> public InterfaceManager InterfaceManager { get; } @@ -141,9 +151,9 @@ internal sealed partial class FontAtlasFactory public TextureManager TextureManager => Service<TextureManager>.Get(); /// <summary> - /// Gets the async task for <see cref="IImGuiBackend"/> inside <see cref="InterfaceManager"/>. + /// Gets the async task for <see cref="RawDX11Scene"/> inside <see cref="InterfaceManager"/>. /// </summary> - public Task<IImGuiBackend> BackendTask { get; } + public Task<RawDX11Scene> SceneTask { get; } /// <summary> /// Gets the default glyph ranges (glyph ranges of <see cref="GameFontFamilyAndSize.Axis12"/>). diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs index ce67b0eec..b84a857da 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/FontHandle.cs @@ -4,13 +4,14 @@ using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; +using ImGuiNET; + using Serilog; namespace Dalamud.Interface.ManagedFontAtlas.Internals; @@ -21,7 +22,7 @@ namespace Dalamud.Interface.ManagedFontAtlas.Internals; internal abstract class FontHandle : IFontHandle { private const int NonMainThreadFontAccessWarningCheckInterval = 10000; - private static readonly ConditionalWeakTable<LocalPlugin, object> NonMainThreadFontAccessWarning = []; + private static readonly ConditionalWeakTable<LocalPlugin, object> NonMainThreadFontAccessWarning = new(); private static long nextNonMainThreadFontAccessWarningCheck; private readonly List<IDisposable> pushedFonts = new(8); @@ -78,16 +79,13 @@ internal abstract class FontHandle : IFontHandle /// <param name="font">The font, locked during the call of <see cref="ImFontChanged"/>.</param> public void InvokeImFontChanged(ILockedImFont font) { - foreach (var d in Delegate.EnumerateInvocationList(this.ImFontChanged)) + try { - try - { - d(this, font); - } - catch (Exception e) - { - Log.Error(e, $"{nameof(this.InvokeImFontChanged)}: error calling {d.Method.Name}"); - } + this.ImFontChanged?.Invoke(this, font); + } + catch (Exception e) + { + Log.Error(e, $"{nameof(this.InvokeImFontChanged)}: error"); } } @@ -183,7 +181,7 @@ internal abstract class FontHandle : IFontHandle } var fontPtr = substance.GetFontPtr(this); - if (fontPtr.IsNull) + if (fontPtr.IsNull()) { // The font for the requested handle is unavailable. Release the reference and try again. substance.DataRoot.Release(); @@ -239,17 +237,12 @@ internal abstract class FontHandle : IFontHandle } /// <inheritdoc/> - public Task<IFontHandle> WaitAsync() => this.WaitAsync(CancellationToken.None); - - /// <inheritdoc/> - public Task<IFontHandle> WaitAsync(CancellationToken cancellationToken) + public Task<IFontHandle> WaitAsync() { if (this.Available) return Task.FromResult<IFontHandle>(this); var tcs = new TaskCompletionSource<IFontHandle>(TaskCreationOptions.RunContinuationsAsynchronously); - cancellationToken.Register(() => tcs.TrySetCanceled()); - this.ImFontChanged += OnImFontChanged; this.Disposed += OnDisposed; if (this.Available) diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs index 81c7d4d89..636bee2e2 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/GamePrebakedFontHandle.cs @@ -1,18 +1,19 @@ -using System.Buffers; +using System.Buffers; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reactive.Disposables; -using System.Threading; -using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; using Dalamud.Interface.GameFonts; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; using Dalamud.Utility; +using ImGuiNET; + using Lumina.Data.Files; using Vector4 = System.Numerics.Vector4; @@ -102,9 +103,9 @@ internal class GamePrebakedFontHandle : FontHandle /// </summary> internal sealed class HandleManager : IFontHandleManager { - private readonly Dictionary<GameFontStyle, int> gameFontsRc = []; - private readonly HashSet<GamePrebakedFontHandle> handles = []; - private readonly Lock syncRoot = new(); + private readonly Dictionary<GameFontStyle, int> gameFontsRc = new(); + private readonly HashSet<GamePrebakedFontHandle> handles = new(); + private readonly object syncRoot = new(); /// <summary> /// Initializes a new instance of the <see cref="HandleManager"/> class. @@ -150,7 +151,7 @@ internal class GamePrebakedFontHandle : FontHandle } if (suggestRebuild) - this.RebuildRecommend.InvokeSafely(); + this.RebuildRecommend?.Invoke(); return handle; } @@ -189,11 +190,11 @@ internal class GamePrebakedFontHandle : FontHandle private readonly HashSet<GameFontStyle> gameFontStyles; // Owned by this class, but ImFontPtr values still do not belong to this. - private readonly Dictionary<GameFontStyle, FontDrawPlan> fonts = []; - private readonly Dictionary<GameFontStyle, Exception?> buildExceptions = []; - private readonly List<(ImFontPtr Font, GameFontStyle Style, ushort[]? Ranges)> attachments = []; + private readonly Dictionary<GameFontStyle, FontDrawPlan> fonts = new(); + private readonly Dictionary<GameFontStyle, Exception?> buildExceptions = new(); + private readonly List<(ImFontPtr Font, GameFontStyle Style, ushort[]? Ranges)> attachments = new(); - private readonly HashSet<ImFontPtr> templatedFonts = []; + private readonly HashSet<ImFontPtr> templatedFonts = new(); /// <summary> /// Initializes a new instance of the <see cref="HandleSubstance"/> class. @@ -251,7 +252,7 @@ internal class GamePrebakedFontHandle : FontHandle GameFontStyle style, ushort[]? glyphRanges = null) { - if (font.IsNull) + if (font.IsNull()) font = this.CreateTemplateFont(toolkitPreBuild, style.SizePx); this.attachments.Add((font, style, glyphRanges)); return font; @@ -380,10 +381,7 @@ internal class GamePrebakedFontHandle : FontHandle var pixels8Array = new byte*[toolkitPostBuild.NewImAtlas.Textures.Size]; var widths = new int[toolkitPostBuild.NewImAtlas.Textures.Size]; for (var i = 0; i < pixels8Array.Length; i++) - { - var width = 0; - toolkitPostBuild.NewImAtlas.GetTexDataAsAlpha8(i, ref pixels8Array[i], ref widths[i], ref width); - } + toolkitPostBuild.NewImAtlas.GetTexDataAsAlpha8(i, out pixels8Array[i], out widths[i], out _); foreach (var (style, plan) in this.fonts) { @@ -416,7 +414,7 @@ internal class GamePrebakedFontHandle : FontHandle DalamudAsset.NotoSansJpMedium, new() { - GlyphRanges = [' ', ' ', '\0'], + GlyphRanges = new ushort[] { ' ', ' ', '\0' }, SizePx = sizePx, }); this.templatedFonts.Add(font); @@ -431,7 +429,7 @@ internal class GamePrebakedFontHandle : FontHandle var fas = style.Scale(atlasScale).FamilyAndSize; using var handle = this.handleManager.GameFontTextureProvider.CreateFdtFileView(fas, out var fdt); ref var fdtFontHeader = ref fdt.FontHeader; - var fontPtr = font.Handle; + var fontPtr = font.NativePtr; var scale = style.SizePt / fdtFontHeader.Size; fontPtr->Ascent = fdtFontHeader.Ascent * scale; @@ -450,8 +448,8 @@ internal class GamePrebakedFontHandle : FontHandle public readonly GameFontStyle BaseStyle; public readonly GameFontFamilyAndSizeAttribute BaseAttr; public readonly int TexCount; - public readonly Dictionary<ImFontPtr, BitArray> Ranges = []; - public readonly List<(int RectId, int FdtGlyphIndex)> Rects = []; + public readonly Dictionary<ImFontPtr, BitArray> Ranges = new(); + public readonly List<(int RectId, int FdtGlyphIndex)> Rects = new(); public readonly ushort[] RectLookup = new ushort[0x10000]; public readonly FdtFileView Fdt; public readonly ImFontPtr FullRangeFont; @@ -515,7 +513,7 @@ internal class GamePrebakedFontHandle : FontHandle var ranges = this.Ranges[this.FullRangeFont]; foreach (var (font, extraRange) in this.Ranges) { - if (font.Handle != this.FullRangeFont.Handle) + if (font.NativePtr != this.FullRangeFont.NativePtr) ranges.Or(extraRange); } @@ -564,7 +562,7 @@ internal class GamePrebakedFontHandle : FontHandle public unsafe void PostProcessFullRangeFont(float atlasScale) { var round = 1 / atlasScale; - var pfrf = this.FullRangeFont.Handle; + var pfrf = this.FullRangeFont.NativePtr; ref var frf = ref *pfrf; frf.FontSize = MathF.Round(frf.FontSize / round) * round; @@ -591,18 +589,19 @@ internal class GamePrebakedFontHandle : FontHandle continue; if (!fullRange[leftInt] || !fullRange[rightInt]) continue; - pfrf->AddKerningPair( + ImGuiNative.ImFont_AddKerningPair( + pfrf, (ushort)leftInt, (ushort)rightInt, MathF.Round((k.RightOffset * scale) / round) * round); } pfrf->FallbackGlyph = null; - pfrf->BuildLookupTable(); + ImGuiNative.ImFont_BuildLookupTable(pfrf); foreach (var fallbackCharCandidate in FontAtlasFactory.FallbackCodepoints) { - var glyph = pfrf->FindGlyphNoFallback(fallbackCharCandidate); + var glyph = ImGuiNative.ImFont_FindGlyphNoFallback(pfrf, fallbackCharCandidate); if ((nint)glyph == IntPtr.Zero) continue; frf.FallbackChar = fallbackCharCandidate; @@ -620,7 +619,7 @@ internal class GamePrebakedFontHandle : FontHandle foreach (var (font, rangeBits) in this.Ranges) { - if (font.Handle == this.FullRangeFont.Handle) + if (font.NativePtr == this.FullRangeFont.NativePtr) continue; var fontScaleMode = toolkitPostBuild.GetFontScaleMode(font); @@ -642,7 +641,7 @@ internal class GamePrebakedFontHandle : FontHandle glyphIndex = (ushort)glyphs.Length; glyphs.Add(default); } - + ref var g = ref glyphs[glyphIndex]; g = sourceGlyph; if (fontScaleMode == FontScaleMode.SkipHandling) @@ -682,16 +681,16 @@ internal class GamePrebakedFontHandle : FontHandle } } - font.Handle->FallbackGlyph = null; + font.NativePtr->FallbackGlyph = null; font.BuildLookupTable(); foreach (var fallbackCharCandidate in FontAtlasFactory.FallbackCodepoints) { - var glyph = font.FindGlyphNoFallback(fallbackCharCandidate); - if (glyph == null) + var glyph = font.FindGlyphNoFallback(fallbackCharCandidate).NativePtr; + if ((nint)glyph == IntPtr.Zero) continue; - ref var frf = ref *font.Handle; + ref var frf = ref *font.NativePtr; frf.FallbackChar = fallbackCharCandidate; frf.FallbackGlyph = glyph; frf.FallbackHotData = @@ -805,9 +804,10 @@ internal class GamePrebakedFontHandle : FontHandle else { ref var rc = ref *(ImGuiHelpers.ImFontAtlasCustomRectReal*)toolkitPostBuild.NewImAtlas - .GetCustomRectByIndex(rectId); + .GetCustomRectByIndex(rectId) + .NativePtr; var widthAdjustment = this.BaseStyle.CalculateBaseWidthAdjustment(fdtFontHeader, fdtGlyph); - + // Glyph is scaled at this point; undo that. ref var glyph = ref glyphs[lookups[rc.GlyphId]]; glyph.X0 = this.BaseAttr.HorizontalOffset; @@ -822,7 +822,7 @@ internal class GamePrebakedFontHandle : FontHandle this.gftp.GetTexFile(this.BaseAttr.TexPathFormat, fdtGlyph.TextureFileIndex); var sourceBuffer = texFiles[fdtGlyph.TextureFileIndex].ImageData; var sourceBufferDelta = fdtGlyph.TextureChannelByteIndex; - + for (var y = 0; y < fdtGlyph.BoundingHeight; y++) { var sourcePixelIndex = @@ -830,11 +830,11 @@ internal class GamePrebakedFontHandle : FontHandle sourcePixelIndex *= 4; sourcePixelIndex += sourceBufferDelta; var blend1 = horzBlend[fdtGlyph.CurrentOffsetY + y]; - + var targetOffset = ((rc.Y + y) * width) + rc.X; for (var x = 0; x < rc.Width; x++) pixels8[targetOffset + x] = 0; - + targetOffset += horzShift[fdtGlyph.CurrentOffsetY + y]; if (blend1 == 0) { diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs index 75d06bd7e..ef4150e33 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/IFontHandleSubstance.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// <summary> @@ -44,7 +45,7 @@ internal interface IFontHandleSubstance : IDisposable /// </summary> /// <param name="toolkitPreBuild">The toolkit.</param> void OnPreBuild(IFontAtlasBuildToolkitPreBuild toolkitPreBuild); - + /// <summary> /// Called between <see cref="OnPreBuild"/> and <see cref="ImFontAtlasPtr.Build"/> calls.<br /> /// Any further modification to <see cref="IFontAtlasBuildToolkit.Fonts"/> will result in undefined behavior. diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs index 9eb90fe16..bd50502c8 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/LockedImFont.cs @@ -1,6 +1,7 @@ -using Dalamud.Bindings.ImGui; using Dalamud.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// <summary> @@ -34,7 +35,8 @@ internal class LockedImFont : ILockedImFont /// <inheritdoc/> public ILockedImFont NewRef() { - ObjectDisposedException.ThrowIf(this.owner == null, this); + if (this.owner is null) + throw new ObjectDisposedException(nameof(LockedImFont)); var newRef = new LockedImFont(this.ImFont, this.owner); this.owner.AddRef(); diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs index ed40ce28b..0c96025ac 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/SimplePushedFont.cs @@ -1,7 +1,9 @@ using System.Collections.Generic; using System.Diagnostics; -using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Utility; + +using ImGuiNET; using Microsoft.Extensions.ObjectPool; @@ -30,10 +32,10 @@ internal sealed class SimplePushedFont : IDisposable public static SimplePushedFont Rent(List<IDisposable> stack, ImFontPtr fontPtr) { var rented = Pool.Get(); - Debug.Assert(rented.font.IsNull, "Rented object must not have its font set"); + Debug.Assert(rented.font.IsNull(), "Rented object must not have its font set"); rented.stack = stack; - if (!fontPtr.IsNull && fontPtr.IsLoaded()) + if (fontPtr.IsNotNullAndLoaded()) { rented.font = fontPtr; ImGui.PushFont(fontPtr); @@ -52,9 +54,9 @@ internal sealed class SimplePushedFont : IDisposable this.stack.RemoveAt(this.stack.Count - 1); - if (!this.font.IsNull) + if (!this.font.IsNull()) { - if (ImGui.GetFont().Handle == this.font.Handle) + if (ImGui.GetFont().NativePtr == this.font.NativePtr) { ImGui.PopFont(); } diff --git a/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs b/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs index 3c566e756..1d437d56d 100644 --- a/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs +++ b/Dalamud/Interface/ManagedFontAtlas/Internals/TrueType.cs @@ -2,9 +2,10 @@ using System.Buffers.Binary; using System.Collections.Generic; using System.Linq; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility; +using ImGuiNET; + namespace Dalamud.Interface.ManagedFontAtlas.Internals; /// <summary> @@ -17,7 +18,7 @@ internal static partial class TrueTypeUtils /// and throws an appropriate exception if it is the case. /// </summary> /// <param name="fontConfig">The font config.</param> - public static unsafe void CheckImGuiCompatibleOrThrow(in ImFontConfigPtr fontConfig) + public static unsafe void CheckImGuiCompatibleOrThrow(in ImFontConfig fontConfig) { var ranges = fontConfig.GlyphRanges; var sfnt = AsSfntFile(fontConfig); @@ -34,7 +35,7 @@ internal static partial class TrueTypeUtils /// <param name="fontConfig">The font config.</param> /// <returns>The enumerable of pair adjustments. Distance values need to be multiplied by font size in pixels.</returns> public static IEnumerable<(char Left, char Right, float Distance)> ExtractHorizontalPairAdjustments( - ImFontConfigPtr fontConfig) + ImFontConfig fontConfig) { float multiplier; Dictionary<ushort, char[]> glyphToCodepoints; @@ -106,7 +107,7 @@ internal static partial class TrueTypeUtils } } - private static unsafe SfntFile AsSfntFile(in ImFontConfigPtr fontConfig) + private static unsafe SfntFile AsSfntFile(in ImFontConfig fontConfig) { var memory = new PointerSpan<byte>((byte*)fontConfig.FontData, fontConfig.FontDataSize); if (memory.Length < 4) diff --git a/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs b/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs index 484c3540b..caa686856 100644 --- a/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs +++ b/Dalamud/Interface/ManagedFontAtlas/SafeFontConfig.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using System.Text; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.ManagedFontAtlas; @@ -14,14 +14,13 @@ public struct SafeFontConfig /// <summary> /// The raw config. /// </summary> - public ImFontConfigPtr Raw; + public ImFontConfig Raw; /// <summary> /// Initializes a new instance of the <see cref="SafeFontConfig"/> struct. /// </summary> - public unsafe SafeFontConfig() + public SafeFontConfig() { - this.Raw.Handle = ImGui.ImFontConfig(); this.OversampleH = 1; this.OversampleV = 1; this.PixelSnapH = true; @@ -29,7 +28,7 @@ public struct SafeFontConfig this.RasterizerMultiply = 1f; this.RasterizerGamma = 1.7f; this.EllipsisChar = unchecked((char)-1); - this.Raw.FontDataOwnedByAtlas = true; + this.Raw.FontDataOwnedByAtlas = 1; } /// <summary> @@ -40,9 +39,9 @@ public struct SafeFontConfig public unsafe SafeFontConfig(ImFontConfigPtr config) : this() { - if (config.Handle is not null) + if (config.NativePtr is not null) { - this.Raw = config.Handle; + this.Raw = *config.NativePtr; this.Raw.GlyphRanges = null; } } @@ -108,8 +107,8 @@ public struct SafeFontConfig /// </summary> public bool PixelSnapH { - get => this.Raw.PixelSnapH; - set => this.Raw.PixelSnapH = value; + get => this.Raw.PixelSnapH != 0; + set => this.Raw.PixelSnapH = value ? (byte)1 : (byte)0; } /// <summary> @@ -238,11 +237,11 @@ public struct SafeFontConfig /// </summary> public unsafe ImFontPtr MergeFont { - get => this.Raw.DstFont.Handle != null ? this.Raw.DstFont : default; + get => this.Raw.DstFont is not null ? this.Raw.DstFont : default; set { - this.Raw.MergeMode = value.Handle != null; - this.Raw.DstFont = value.Handle == null ? ImFontPtr.Null : value.Handle; + this.Raw.MergeMode = value.NativePtr is null ? (byte)0 : (byte)1; + this.Raw.DstFont = value.NativePtr is null ? default : value.NativePtr; } } diff --git a/Dalamud/Interface/Style/DalamudColors.cs b/Dalamud/Interface/Style/DalamudColors.cs index e4a8c5b9b..aa3339c19 100644 --- a/Dalamud/Interface/Style/DalamudColors.cs +++ b/Dalamud/Interface/Style/DalamudColors.cs @@ -1,7 +1,6 @@ -using System.Numerics; +using System.Numerics; using Dalamud.Interface.Colors; - using Newtonsoft.Json; namespace Dalamud.Interface.Style; diff --git a/Dalamud/Interface/Style/StyleModel.cs b/Dalamud/Interface/Style/StyleModel.cs index 4c64e3a21..643fe463d 100644 --- a/Dalamud/Interface/Style/StyleModel.cs +++ b/Dalamud/Interface/Style/StyleModel.cs @@ -1,14 +1,12 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Interface.Colors; using Dalamud.Utility; - +using ImGuiNET; using Newtonsoft.Json; - using Serilog; namespace Dalamud.Interface.Style; @@ -70,7 +68,7 @@ public abstract class StyleModel /// <exception cref="ArgumentException">Thrown in case the version of the model is not known.</exception> public static StyleModel? Deserialize(string model) { - var json = Util.DecompressString(Convert.FromBase64String(model[3..])); + var json = Util.DecompressString(Convert.FromBase64String(model.Substring(3))); if (model.StartsWith(StyleModelV1.SerializedPrefix)) return JsonConvert.DeserializeObject<StyleModelV1>(json); @@ -88,7 +86,8 @@ public abstract class StyleModel if (configuration.SavedStylesOld == null) return; - configuration.SavedStyles = [.. configuration.SavedStylesOld]; + configuration.SavedStyles = new List<StyleModel>(); + configuration.SavedStyles.AddRange(configuration.SavedStylesOld); Log.Information("Transferred {NumStyles} styles", configuration.SavedStyles.Count); @@ -103,11 +102,16 @@ public abstract class StyleModel /// <exception cref="ArgumentOutOfRangeException">Thrown when the version of the style model is unknown.</exception> public string Serialize() { - var prefix = this switch + string prefix; + switch (this) { - StyleModelV1 => StyleModelV1.SerializedPrefix, - _ => throw new ArgumentOutOfRangeException(), - }; + case StyleModelV1: + prefix = StyleModelV1.SerializedPrefix; + break; + default: + throw new ArgumentOutOfRangeException(); + } + return prefix + Convert.ToBase64String(Util.CompressString(JsonConvert.SerializeObject(this))); } diff --git a/Dalamud/Interface/Style/StyleModelV1.cs b/Dalamud/Interface/Style/StyleModelV1.cs index 4af2512fd..43341126e 100644 --- a/Dalamud/Interface/Style/StyleModelV1.cs +++ b/Dalamud/Interface/Style/StyleModelV1.cs @@ -1,9 +1,8 @@ using System.Collections.Generic; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Colors; - +using ImGuiNET; using Newtonsoft.Json; namespace Dalamud.Interface.Style; @@ -18,7 +17,7 @@ public class StyleModelV1 : StyleModel /// </summary> private StyleModelV1() { - this.Colors = []; + this.Colors = new Dictionary<string, Vector4>(); this.Name = "Unknown"; } @@ -102,8 +101,8 @@ public class StyleModelV1 : StyleModel { "DockingEmptyBg", new Vector4(0.2f, 0.2f, 0.2f, 1) }, { "PlotLines", new Vector4(0.61f, 0.61f, 0.61f, 1) }, { "PlotLinesHovered", new Vector4(1, 0.43f, 0.35f, 1) }, - { "PlotHistogram", new Vector4(0.578199f, 0.16989735f, 0.16989735f, 0.78431374f) }, - { "PlotHistogramHovered", new Vector4(0.7819905f, 0.12230185f, 0.12230185f, 0.78431374f) }, + { "PlotHistogram", new Vector4(0.9f, 0.7f, 0, 1) }, + { "PlotHistogramHovered", new Vector4(1, 0.6f, 0, 1) }, { "TableHeaderBg", new Vector4(0.19f, 0.19f, 0.2f, 1) }, { "TableBorderStrong", new Vector4(0.31f, 0.31f, 0.35f, 1) }, { "TableBorderLight", new Vector4(0.23f, 0.23f, 0.25f, 1) }, @@ -221,8 +220,8 @@ public class StyleModelV1 : StyleModel { "DockingEmptyBg", new Vector4(0.2f, 0.2f, 0.2f, 1f) }, { "PlotLines", new Vector4(0.61f, 0.61f, 0.61f, 1f) }, { "PlotLinesHovered", new Vector4(1f, 0.43f, 0.35f, 1f) }, - { "PlotHistogram", new Vector4(0.578199f, 0.16989735f, 0.16989735f, 0.78431374f) }, - { "PlotHistogramHovered", new Vector4(0.7819905f, 0.12230185f, 0.12230185f, 0.78431374f) }, + { "PlotHistogram", new Vector4(0.9f, 0.7f, 0f, 1f) }, + { "PlotHistogramHovered", new Vector4(1f, 0.6f, 0f, 1f) }, { "TableHeaderBg", new Vector4(0.19f, 0.19f, 0.2f, 1f) }, { "TableBorderStrong", new Vector4(0.31f, 0.31f, 0.35f, 1f) }, { "TableBorderLight", new Vector4(0.23f, 0.23f, 0.25f, 1f) }, @@ -397,11 +396,11 @@ public class StyleModelV1 : StyleModel model.SelectableTextAlign = style.SelectableTextAlign; model.DisplaySafeAreaPadding = style.DisplaySafeAreaPadding; - model.Colors = []; + model.Colors = new Dictionary<string, Vector4>(); foreach (var imGuiCol in Enum.GetValues<ImGuiCol>()) { - if (imGuiCol == ImGuiCol.Count) + if (imGuiCol == ImGuiCol.COUNT) { continue; } @@ -473,7 +472,7 @@ public class StyleModelV1 : StyleModel foreach (var imGuiCol in Enum.GetValues<ImGuiCol>()) { - if (imGuiCol == ImGuiCol.Count) + if (imGuiCol == ImGuiCol.COUNT) { continue; } @@ -513,7 +512,7 @@ public class StyleModelV1 : StyleModel foreach (var imGuiCol in Enum.GetValues<ImGuiCol>()) { - if (imGuiCol == ImGuiCol.Count) + if (imGuiCol == ImGuiCol.COUNT) { continue; } diff --git a/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs b/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs index e786d373c..7f8f02c7e 100644 --- a/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs +++ b/Dalamud/Interface/Textures/DalamudTextureWrapExtensions.cs @@ -1,3 +1,4 @@ +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Interface.Textures; @@ -16,6 +17,6 @@ public static class DalamudTextureWrapExtensions return false; if (a is null) return false; - return a.Handle == b.Handle; + return a.ImGuiHandle == b.ImGuiHandle; } } diff --git a/Dalamud/Interface/Textures/ForwardingSharedImmediateTexture.cs b/Dalamud/Interface/Textures/ForwardingSharedImmediateTexture.cs deleted file mode 100644 index 45dc69bbd..000000000 --- a/Dalamud/Interface/Textures/ForwardingSharedImmediateTexture.cs +++ /dev/null @@ -1,49 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; - -using Dalamud.Interface.Textures.TextureWraps; - -namespace Dalamud.Interface.Textures; - -/// <summary> -/// Wraps a dalamud texture allowing interoperability with certain services. Only use this if you need to provide a texture that has been created or rented as a ISharedImmediateTexture. -/// </summary> -public class ForwardingSharedImmediateTexture : ISharedImmediateTexture -{ - private readonly IDalamudTextureWrap textureWrap; - - /// <summary> - /// Initializes a new instance of the <see cref="ForwardingSharedImmediateTexture"/> class. - /// </summary> - /// <param name="textureWrap">A textureWrap that has been created or provided by RentAsync.</param> - public ForwardingSharedImmediateTexture(IDalamudTextureWrap textureWrap) - { - this.textureWrap = textureWrap; - } - - /// <inheritdoc/> - public IDalamudTextureWrap GetWrapOrEmpty() - { - return this.textureWrap; - } - - /// <inheritdoc/> - public IDalamudTextureWrap? GetWrapOrDefault(IDalamudTextureWrap? defaultWrap = null) - { - return this.textureWrap; - } - - /// <inheritdoc/> - public bool TryGetWrap(out IDalamudTextureWrap? texture, out Exception? exception) - { - texture = this.textureWrap; - exception = null; - return true; - } - - /// <inheritdoc/> - public Task<IDalamudTextureWrap> RentAsync(CancellationToken cancellationToken = default) - { - return Task.FromResult(this.textureWrap); - } -} diff --git a/Dalamud/Interface/Textures/ISharedImmediateTexture.cs b/Dalamud/Interface/Textures/ISharedImmediateTexture.cs index 7f3b54c97..0ceb92171 100644 --- a/Dalamud/Interface/Textures/ISharedImmediateTexture.cs +++ b/Dalamud/Interface/Textures/ISharedImmediateTexture.cs @@ -2,6 +2,7 @@ using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Utility; @@ -10,6 +11,7 @@ namespace Dalamud.Interface.Textures; /// <summary>A texture with a backing instance of <see cref="IDalamudTextureWrap"/> that is shared across multiple /// requesters.</summary> /// <remarks> +/// <para>Calling <see cref="IDisposable.Dispose"/> on this interface is a no-op.</para> /// <para><see cref="GetWrapOrEmpty"/> and <see cref="TryGetWrap"/> may stop returning the intended texture at any point. /// Use <see cref="RentAsync"/> to lock the texture for use in any thread for any duration.</para> /// </remarks> diff --git a/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs b/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs index 248fbbc67..c48d8c73e 100644 --- a/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs +++ b/Dalamud/Interface/Textures/ImGuiViewportTextureArgs.cs @@ -1,9 +1,13 @@ using System.Numerics; using System.Text; -using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; +using ImGuiNET; + +using TerraFX.Interop.DirectX; + namespace Dalamud.Interface.Textures; /// <summary>Describes how to take a texture of an existing ImGui viewport.</summary> diff --git a/Dalamud/Interface/Textures/Internal/BitmapCodecInfo.cs b/Dalamud/Interface/Textures/Internal/BitmapCodecInfo.cs index 7f5ed4fda..3d5456500 100644 --- a/Dalamud/Interface/Textures/Internal/BitmapCodecInfo.cs +++ b/Dalamud/Interface/Textures/Internal/BitmapCodecInfo.cs @@ -44,12 +44,12 @@ internal sealed class BitmapCodecInfo : IBitmapCodecInfo private static unsafe string ReadStringUsing( IWICBitmapCodecInfo* codecInfo, - delegate* unmanaged[MemberFunction]<IWICBitmapCodecInfo*, uint, char*, uint*, int> readFuncPtr) + delegate* unmanaged<IWICBitmapCodecInfo*, uint, ushort*, uint*, int> readFuncPtr) { var cch = 0u; _ = readFuncPtr(codecInfo, 0, null, &cch); var buf = stackalloc char[(int)cch + 1]; - Marshal.ThrowExceptionForHR(readFuncPtr(codecInfo, cch + 1, buf, &cch)); - return new string(buf, 0, (int)cch).Trim('\0'); + Marshal.ThrowExceptionForHR(readFuncPtr(codecInfo, cch + 1, (ushort*)buf, &cch)); + return new(buf, 0, (int)cch); } } diff --git a/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/GamePathSharedImmediateTexture.cs b/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/GamePathSharedImmediateTexture.cs index a320d921e..185ae07b9 100644 --- a/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/GamePathSharedImmediateTexture.cs +++ b/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/GamePathSharedImmediateTexture.cs @@ -70,7 +70,7 @@ internal sealed class GamePathSharedImmediateTexture : SharedImmediateTexture } cancellationToken.ThrowIfCancellationRequested(); - var wrap = tm.NoThrottleCreateFromTexFile(file.Header, file.TextureBuffer); + var wrap = tm.NoThrottleCreateFromTexFile(file); tm.BlameSetName(wrap, this.ToString()); return wrap; } diff --git a/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/ManifestResourceSharedImmediateTexture.cs b/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/ManifestResourceSharedImmediateTexture.cs index 511f6e110..c95a9b0ad 100644 --- a/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/ManifestResourceSharedImmediateTexture.cs +++ b/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/ManifestResourceSharedImmediateTexture.cs @@ -3,6 +3,7 @@ using System.Reflection; using System.Threading; using System.Threading.Tasks; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Interface.Textures.Internal.SharedImmediateTextures; @@ -35,7 +36,10 @@ internal sealed class ManifestResourceSharedImmediateTexture : SharedImmediateTe /// <inheritdoc/> protected override async Task<IDalamudTextureWrap> CreateTextureAsync(CancellationToken cancellationToken) { - await using var stream = this.assembly.GetManifestResourceStream(this.name) ?? throw new FileNotFoundException("The resource file could not be found."); + await using var stream = this.assembly.GetManifestResourceStream(this.name); + if (stream is null) + throw new FileNotFoundException("The resource file could not be found."); + var tm = await Service<TextureManager>.GetAsync(); var ms = new MemoryStream(stream.CanSeek ? checked((int)stream.Length) : 0); await stream.CopyToAsync(ms, cancellationToken); diff --git a/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/SharedImmediateTexture.cs b/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/SharedImmediateTexture.cs index 931a1a73b..5f9925ed3 100644 --- a/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/SharedImmediateTexture.cs +++ b/Dalamud/Interface/Textures/Internal/SharedImmediateTextures/SharedImmediateTexture.cs @@ -23,8 +23,8 @@ internal abstract class SharedImmediateTexture private static long instanceCounter; - private readonly Lock reviveLock = new(); - private readonly List<LocalPlugin> ownerPlugins = []; + private readonly object reviveLock = new(); + private readonly List<LocalPlugin> ownerPlugins = new(); private bool resourceReleased; private int refCount; @@ -476,8 +476,8 @@ internal abstract class SharedImmediateTexture { var ownerCopy = this.owner; var wrapCopy = this.innerWrap; - - ObjectDisposedException.ThrowIf(ownerCopy is null || wrapCopy is null, this); + if (ownerCopy is null || wrapCopy is null) + throw new ObjectDisposedException(nameof(RefCountableWrappingTextureWrap)); ownerCopy.AddRef(); return new RefCountableWrappingTextureWrap(wrapCopy, ownerCopy); diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs b/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs index ed1824e5c..ffdc17d58 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.BlameTracker.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; @@ -43,7 +43,7 @@ internal sealed partial class TextureManager /// <summary>Gets the list containing all the loaded textures from plugins.</summary> /// <remarks>Returned value must be used inside a lock.</remarks> - public List<IBlameableDalamudTextureWrap> BlameTracker { get; } = []; + public List<IBlameableDalamudTextureWrap> BlameTracker { get; } = new(); /// <summary>Gets the blame for a texture wrap.</summary> /// <param name="textureWrap">The texture wrap.</param> @@ -65,7 +65,7 @@ internal sealed partial class TextureManager try { - if (textureWrap.Handle.IsNull) + if (textureWrap.ImGuiHandle == nint.Zero) return textureWrap; } catch (ObjectDisposedException) @@ -102,7 +102,7 @@ internal sealed partial class TextureManager try { - if (textureWrap.Handle.IsNull) + if (textureWrap.ImGuiHandle == nint.Zero) return textureWrap; } catch (ObjectDisposedException) @@ -218,14 +218,14 @@ internal sealed partial class TextureManager return; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int QueryInterfaceStatic(IUnknown* pThis, Guid* riid, void** ppvObject) => ToManagedObject(pThis)?.QueryInterface(riid, ppvObject) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static uint AddRefStatic(IUnknown* pThis) => (uint)(ToManagedObject(pThis)?.AddRef() ?? 0); - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static uint ReleaseStatic(IUnknown* pThis) => (uint)(ToManagedObject(pThis)?.Release() ?? 0); } @@ -233,7 +233,7 @@ internal sealed partial class TextureManager public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in MyGuid)); /// <inheritdoc/> - public List<LocalPlugin> OwnerPlugins { get; } = []; + public List<LocalPlugin> OwnerPlugins { get; } = new(); /// <inheritdoc/> public nint ResourceAddress => (nint)this.tex2D; @@ -252,16 +252,16 @@ internal sealed partial class TextureManager 0); /// <inheritdoc/> - public ImTextureID Handle + public IntPtr ImGuiHandle { get { if (this.refCount == 0) - return Service<DalamudAssetManager>.Get().Empty4X4.Handle; + return Service<DalamudAssetManager>.Get().Empty4X4.ImGuiHandle; this.srvDebugPreviewExpiryTick = Environment.TickCount64 + 1000; if (!this.srvDebugPreview.IsEmpty()) - return new ImTextureID(this.srvDebugPreview.Get()); + return (nint)this.srvDebugPreview.Get(); var srvDesc = new D3D11_SHADER_RESOURCE_VIEW_DESC( this.tex2D, D3D_SRV_DIMENSION.D3D11_SRV_DIMENSION_TEXTURE2D); @@ -272,10 +272,10 @@ internal sealed partial class TextureManager using var srv = default(ComPtr<ID3D11ShaderResourceView>); if (device.Get()->CreateShaderResourceView((ID3D11Resource*)this.tex2D, &srvDesc, srv.GetAddressOf()) .FAILED) - return Service<DalamudAssetManager>.Get().Empty4X4.Handle; + return Service<DalamudAssetManager>.Get().Empty4X4.ImGuiHandle; srv.Swap(ref this.srvDebugPreview); - return new ImTextureID(this.srvDebugPreview.Get()); + return (nint)this.srvDebugPreview.Get(); } } diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.Clipboard.cs b/Dalamud/Interface/Textures/Internal/TextureManager.Clipboard.cs deleted file mode 100644 index 75f7ab975..000000000 --- a/Dalamud/Interface/Textures/Internal/TextureManager.Clipboard.cs +++ /dev/null @@ -1,498 +0,0 @@ -using System.Collections.Generic; -using System.IO; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading; -using System.Threading.Tasks; - -using Dalamud.Interface.Internal; -using Dalamud.Interface.Textures.TextureWraps; -using Dalamud.Memory; -using Dalamud.Utility; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; - -namespace Dalamud.Interface.Textures.Internal; - -/// <summary>Service responsible for loading and disposing ImGui texture wraps.</summary> -internal sealed partial class TextureManager -{ - /// <inheritdoc/> - public async Task CopyToClipboardAsync( - IDalamudTextureWrap wrap, - string? preferredFileNameWithoutExtension = null, - bool leaveWrapOpen = false, - CancellationToken cancellationToken = default) - { - ObjectDisposedException.ThrowIf(this.disposeCts.IsCancellationRequested, this); - - using var wrapAux = new WrapAux(wrap, leaveWrapOpen); - bool hasAlphaChannel; - switch (wrapAux.Desc.Format) - { - case DXGI_FORMAT.DXGI_FORMAT_B8G8R8X8_UNORM: - case DXGI_FORMAT.DXGI_FORMAT_B8G8R8X8_UNORM_SRGB: - hasAlphaChannel = false; - break; - case DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM: - case DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM_SRGB: - case DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM: - case DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB: - hasAlphaChannel = true; - break; - default: - await this.CopyToClipboardAsync( - await this.CreateFromExistingTextureAsync( - wrap, - new() { Format = DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM }, - cancellationToken: cancellationToken), - preferredFileNameWithoutExtension, - false, - cancellationToken); - return; - } - - // https://stackoverflow.com/questions/15689541/win32-clipboard-and-alpha-channel-images - // https://learn.microsoft.com/en-us/windows/win32/shell/clipboard - using var pdo = default(ComPtr<IDataObject>); - unsafe - { - fixed (Guid* piid = &IID.IID_IDataObject) - SHCreateDataObject(null, 1, null, null, piid, (void**)pdo.GetAddressOf()).ThrowOnError(); - } - - var ms = new MemoryStream(); - { - ms.SetLength(ms.Position = 0); - await this.SaveToStreamAsync( - wrap, - GUID.GUID_ContainerFormatPng, - ms, - new Dictionary<string, object> { ["InterlaceOption"] = true }, - true, - true, - cancellationToken); - - unsafe - { - using var ims = default(ComPtr<IStream>); - fixed (byte* p = ms.GetBuffer()) - ims.Attach(SHCreateMemStream(p, (uint)ms.Length)); - if (ims.IsEmpty()) - throw new OutOfMemoryException(); - - AddToDataObject( - pdo, - ClipboardFormats.Png, - new() - { - tymed = (uint)TYMED.TYMED_ISTREAM, - pstm = ims.Get(), - }); - AddToDataObject( - pdo, - ClipboardFormats.FileContents, - new() - { - tymed = (uint)TYMED.TYMED_ISTREAM, - pstm = ims.Get(), - }); - ims.Get()->AddRef(); - ims.Detach(); - } - - if (preferredFileNameWithoutExtension is not null) - { - unsafe - { - preferredFileNameWithoutExtension += ".png"; - if (preferredFileNameWithoutExtension.Length >= 260) - preferredFileNameWithoutExtension = preferredFileNameWithoutExtension[..^4] + ".png"; - var namea = (CodePagesEncodingProvider.Instance.GetEncoding(0) ?? Encoding.UTF8) - .GetBytes(preferredFileNameWithoutExtension); - if (namea.Length > 260) - { - namea.AsSpan()[^4..].CopyTo(namea.AsSpan(256, 4)); - Array.Resize(ref namea, 260); - } - - var fgda = new FILEGROUPDESCRIPTORA - { - cItems = 1, - fgd = new() - { - e0 = new() - { - dwFlags = unchecked((uint)FD_FLAGS.FD_FILESIZE | (uint)FD_FLAGS.FD_UNICODE), - nFileSizeHigh = (uint)(ms.Length >> 32), - nFileSizeLow = (uint)ms.Length, - }, - }, - }; - namea.AsSpan().CopyTo(new(Unsafe.AsPointer(ref fgda.fgd.e0.cFileName[0]), 260)); - - AddToDataObject( - pdo, - ClipboardFormats.FileDescriptorA, - new() - { - tymed = (uint)TYMED.TYMED_HGLOBAL, - hGlobal = CreateHGlobalFromMemory<FILEGROUPDESCRIPTORA>(new(ref fgda)), - }); - - var fgdw = new FILEGROUPDESCRIPTORW - { - cItems = 1, - fgd = new() - { - e0 = new() - { - dwFlags = unchecked((uint)FD_FLAGS.FD_FILESIZE | (uint)FD_FLAGS.FD_UNICODE), - nFileSizeHigh = (uint)(ms.Length >> 32), - nFileSizeLow = (uint)ms.Length, - }, - }, - }; - preferredFileNameWithoutExtension.AsSpan().CopyTo(new(Unsafe.AsPointer(ref fgdw.fgd.e0.cFileName[0]), 260)); - - AddToDataObject( - pdo, - ClipboardFormats.FileDescriptorW, - new() - { - tymed = (uint)TYMED.TYMED_HGLOBAL, - hGlobal = CreateHGlobalFromMemory<FILEGROUPDESCRIPTORW>(new(ref fgdw)), - }); - } - } - } - - { - ms.SetLength(ms.Position = 0); - await this.SaveToStreamAsync( - wrap, - GUID.GUID_ContainerFormatBmp, - ms, - new Dictionary<string, object> { ["EnableV5Header32bppBGRA"] = false }, - true, - true, - cancellationToken); - AddToDataObject( - pdo, - CF.CF_DIB, - new() - { - tymed = (uint)TYMED.TYMED_HGLOBAL, - hGlobal = CreateHGlobalFromMemory<byte>( - ms.GetBuffer().AsSpan(0, (int)ms.Length)[Unsafe.SizeOf<BITMAPFILEHEADER>()..]), - }); - } - - if (hasAlphaChannel) - { - ms.SetLength(ms.Position = 0); - await this.SaveToStreamAsync( - wrap, - GUID.GUID_ContainerFormatBmp, - ms, - new Dictionary<string, object> { ["EnableV5Header32bppBGRA"] = true }, - true, - true, - cancellationToken); - AddToDataObject( - pdo, - CF.CF_DIBV5, - new() - { - tymed = (uint)TYMED.TYMED_HGLOBAL, - hGlobal = CreateHGlobalFromMemory<byte>( - ms.GetBuffer().AsSpan(0, (int)ms.Length)[Unsafe.SizeOf<BITMAPFILEHEADER>()..]), - }); - } - - var omts = await Service<StaThreadService>.GetAsync(); - await omts.Run(() => StaThreadService.OleSetClipboard(pdo), cancellationToken); - - return; - - static unsafe void AddToDataObject(ComPtr<IDataObject> pdo, uint clipboardFormat, STGMEDIUM stg) - { - var fec = new FORMATETC - { - cfFormat = (ushort)clipboardFormat, - ptd = null, - dwAspect = (uint)DVASPECT.DVASPECT_CONTENT, - lindex = 0, - tymed = stg.tymed, - }; - pdo.Get()->SetData(&fec, &stg, true).ThrowOnError(); - } - - static unsafe HGLOBAL CreateHGlobalFromMemory<T>(ReadOnlySpan<T> data) where T : unmanaged - { - var h = GlobalAlloc(GMEM.GMEM_MOVEABLE, (nuint)(data.Length * sizeof(T))); - if (h == 0) - throw new OutOfMemoryException("Failed to allocate."); - - var p = GlobalLock(h); - data.CopyTo(new(p, data.Length)); - GlobalUnlock(h); - return h; - } - } - - /// <inheritdoc/> - public bool HasClipboardImage() - { - var acf = Service<StaThreadService>.Get().AvailableClipboardFormats; - return acf.Contains(CF.CF_DIBV5) - || acf.Contains(CF.CF_DIB) - || acf.Contains(ClipboardFormats.Png) - || acf.Contains(ClipboardFormats.FileContents); - } - - /// <inheritdoc/> - public async Task<IDalamudTextureWrap> CreateFromClipboardAsync( - string? debugName = null, - CancellationToken cancellationToken = default) - { - var omts = await Service<StaThreadService>.GetAsync(); - var (stgm, clipboardFormat) = await omts.Run(GetSupportedClipboardData, cancellationToken); - - try - { - return this.BlameSetName( - await this.DynamicPriorityTextureLoader.LoadAsync( - null, - ct => - clipboardFormat is CF.CF_DIB or CF.CF_DIBV5 - ? CreateTextureFromStorageMediumDib(this, stgm, ct) - : CreateTextureFromStorageMedium(this, stgm, ct), - cancellationToken), - debugName ?? $"{nameof(this.CreateFromClipboardAsync)}({(TYMED)stgm.tymed})"); - } - finally - { - StaThreadService.ReleaseStgMedium(ref stgm); - } - - // Converts a CF_DIB/V5 format to a full BMP format, for WIC consumption. - static unsafe Task<IDalamudTextureWrap> CreateTextureFromStorageMediumDib( - TextureManager textureManager, - scoped in STGMEDIUM stgm, - CancellationToken ct) - { - var ms = new MemoryStream(); - switch ((TYMED)stgm.tymed) - { - case TYMED.TYMED_HGLOBAL when stgm.hGlobal != default: - { - var pMem = GlobalLock(stgm.hGlobal); - if (pMem is null) - Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error()); - try - { - var size = (int)GlobalSize(stgm.hGlobal); - ms.SetLength(sizeof(BITMAPFILEHEADER) + size); - new ReadOnlySpan<byte>(pMem, size).CopyTo(ms.GetBuffer().AsSpan(sizeof(BITMAPFILEHEADER))); - } - finally - { - GlobalUnlock(stgm.hGlobal); - } - - break; - } - - case TYMED.TYMED_ISTREAM when stgm.pstm is not null: - { - STATSTG stat; - if (stgm.pstm->Stat(&stat, (uint)STATFLAG.STATFLAG_NONAME).SUCCEEDED && stat.cbSize.QuadPart > 0) - ms.SetLength(sizeof(BITMAPFILEHEADER) + (int)stat.cbSize.QuadPart); - else - ms.SetLength(8192); - - var offset = (uint)sizeof(BITMAPFILEHEADER); - for (var read = 1u; read != 0;) - { - if (offset == ms.Length) - ms.SetLength(ms.Length * 2); - fixed (byte* pMem = ms.GetBuffer().AsSpan((int)offset)) - { - stgm.pstm->Read(pMem, (uint)(ms.Length - offset), &read).ThrowOnError(); - offset += read; - } - } - - ms.SetLength(offset); - break; - } - - default: - return Task.FromException<IDalamudTextureWrap>(new NotSupportedException()); - } - - ref var bfh = ref Unsafe.As<byte, BITMAPFILEHEADER>(ref ms.GetBuffer()[0]); - bfh.bfType = 0x4D42; - bfh.bfSize = (uint)ms.Length; - - ref var bih = ref Unsafe.As<byte, BITMAPINFOHEADER>(ref ms.GetBuffer()[sizeof(BITMAPFILEHEADER)]); - bfh.bfOffBits = (uint)(sizeof(BITMAPFILEHEADER) + bih.biSize); - - if (bih.biSize >= sizeof(BITMAPINFOHEADER)) - { - if (bih.biBitCount > 8) - { - if (bih.biCompression == BI.BI_BITFIELDS) - bfh.bfOffBits += (uint)(3 * sizeof(RGBQUAD)); - else if (bih.biCompression == 6 /* BI_ALPHABITFIELDS */) - bfh.bfOffBits += (uint)(4 * sizeof(RGBQUAD)); - } - } - - if (bih.biClrUsed > 0) - bfh.bfOffBits += (uint)(bih.biClrUsed * sizeof(RGBQUAD)); - else if (bih.biBitCount <= 8) - bfh.bfOffBits += (uint)(sizeof(RGBQUAD) << bih.biBitCount); - - using var pinned = ms.GetBuffer().AsMemory().Pin(); - using var strm = textureManager.Wic.CreateIStreamViewOfMemory(pinned, (int)ms.Length); - return Task.FromResult(textureManager.Wic.NoThrottleCreateFromWicStream(strm, ct)); - } - - // Interprets a data as an image file using WIC. - static unsafe Task<IDalamudTextureWrap> CreateTextureFromStorageMedium( - TextureManager textureManager, - scoped in STGMEDIUM stgm, - CancellationToken ct) - { - switch ((TYMED)stgm.tymed) - { - case TYMED.TYMED_HGLOBAL when stgm.hGlobal != default: - { - var pMem = GlobalLock(stgm.hGlobal); - if (pMem is null) - Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error()); - try - { - var size = (int)GlobalSize(stgm.hGlobal); - using var strm = textureManager.Wic.CreateIStreamViewOfMemory(pMem, size); - return Task.FromResult(textureManager.Wic.NoThrottleCreateFromWicStream(strm, ct)); - } - finally - { - GlobalUnlock(stgm.hGlobal); - } - } - - case TYMED.TYMED_FILE when stgm.lpszFileName is not null: - { - var fileName = MemoryHelper.ReadString((nint)stgm.lpszFileName, Encoding.Unicode, short.MaxValue); - return textureManager.NoThrottleCreateFromFileAsync(fileName, ct); - } - - case TYMED.TYMED_ISTREAM when stgm.pstm is not null: - { - using var strm = new ComPtr<IStream>(stgm.pstm); - return Task.FromResult(textureManager.Wic.NoThrottleCreateFromWicStream(strm, ct)); - } - - default: - return Task.FromException<IDalamudTextureWrap>(new NotSupportedException()); - } - } - - static unsafe bool TryGetClipboardDataAs( - ComPtr<IDataObject> pdo, - uint clipboardFormat, - uint tymed, - out STGMEDIUM stgm) - { - var fec = new FORMATETC - { - cfFormat = (ushort)clipboardFormat, - ptd = null, - dwAspect = (uint)DVASPECT.DVASPECT_CONTENT, - lindex = -1, - tymed = tymed, - }; - fixed (STGMEDIUM* pstgm = &stgm) - return pdo.Get()->GetData(&fec, pstgm).SUCCEEDED; - } - - // Takes a data from clipboard for use with WIC. - static unsafe (STGMEDIUM Stgm, uint ClipboardFormat) GetSupportedClipboardData() - { - using var pdo = StaThreadService.OleGetClipboard(); - const uint tymeds = (uint)TYMED.TYMED_HGLOBAL | - (uint)TYMED.TYMED_FILE | - (uint)TYMED.TYMED_ISTREAM; - const uint sharedRead = STGM.STGM_READ | STGM.STGM_SHARE_DENY_WRITE; - - // Try taking data from clipboard as-is. - if (TryGetClipboardDataAs(pdo, CF.CF_DIBV5, tymeds, out var stgm)) - return (stgm, CF.CF_DIBV5); - if (TryGetClipboardDataAs(pdo, ClipboardFormats.FileContents, tymeds, out stgm)) - return (stgm, ClipboardFormats.FileContents); - if (TryGetClipboardDataAs(pdo, ClipboardFormats.Png, tymeds, out stgm)) - return (stgm, ClipboardFormats.Png); - if (TryGetClipboardDataAs(pdo, CF.CF_DIB, tymeds, out stgm)) - return (stgm, CF.CF_DIB); - - // Try reading file from the path stored in clipboard. - if (TryGetClipboardDataAs(pdo, ClipboardFormats.FileNameW, (uint)TYMED.TYMED_HGLOBAL, out stgm)) - { - var pPath = GlobalLock(stgm.hGlobal); - try - { - IStream* pfs; - SHCreateStreamOnFileW((char*)pPath, sharedRead, &pfs).ThrowOnError(); - - var stgm2 = new STGMEDIUM - { - tymed = (uint)TYMED.TYMED_ISTREAM, - pstm = pfs, - pUnkForRelease = (IUnknown*)pfs, - }; - return (stgm2, ClipboardFormats.FileContents); - } - finally - { - if (pPath is not null) - GlobalUnlock(stgm.hGlobal); - StaThreadService.ReleaseStgMedium(ref stgm); - } - } - - if (TryGetClipboardDataAs(pdo, ClipboardFormats.FileNameA, (uint)TYMED.TYMED_HGLOBAL, out stgm)) - { - var pPath = GlobalLock(stgm.hGlobal); - try - { - IStream* pfs; - SHCreateStreamOnFileA((sbyte*)pPath, sharedRead, &pfs).ThrowOnError(); - - var stgm2 = new STGMEDIUM - { - tymed = (uint)TYMED.TYMED_ISTREAM, - pstm = pfs, - pUnkForRelease = (IUnknown*)pfs, - }; - return (stgm2, ClipboardFormats.FileContents); - } - finally - { - if (pPath is not null) - GlobalUnlock(stgm.hGlobal); - StaThreadService.ReleaseStgMedium(ref stgm); - } - } - - throw new InvalidOperationException("No compatible clipboard format found."); - } - } -} diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs b/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs index e803a1d13..7fb79311a 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.Drawer.cs @@ -2,10 +2,11 @@ using System.Buffers; using System.Diagnostics.CodeAnalysis; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Storage.Assets; using Dalamud.Utility; +using ImGuiNET; + using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -59,7 +60,7 @@ internal sealed partial class TextureManager /// <param name="device">The device.</param> public void Setup(ID3D11Device* device) { - var assembly = typeof(SimpleDrawerImpl).Assembly; + var assembly = typeof(ImGuiScene.ImGui_Impl_DX11).Assembly; // Create the vertex shader if (this.vertexShader.IsEmpty() || this.inputLayout.IsEmpty()) @@ -213,10 +214,10 @@ internal sealed partial class TextureManager { var data = stackalloc ImDrawVert[] { - new() { Col = uint.MaxValue, Pos = new(-1, 1), Uv = new(0, 0) }, - new() { Col = uint.MaxValue, Pos = new(-1, -1), Uv = new(0, 1) }, - new() { Col = uint.MaxValue, Pos = new(1, 1), Uv = new(1, 0) }, - new() { Col = uint.MaxValue, Pos = new(1, -1), Uv = new(1, 1) }, + new() { col = uint.MaxValue, pos = new(-1, 1), uv = new(0, 0) }, + new() { col = uint.MaxValue, pos = new(-1, -1), uv = new(0, 1) }, + new() { col = uint.MaxValue, pos = new(1, 1), uv = new(1, 0) }, + new() { col = uint.MaxValue, pos = new(1, -1), uv = new(1, 1) }, }; var desc = new D3D11_BUFFER_DESC( (uint)(sizeof(ImDrawVert) * 4), @@ -294,10 +295,10 @@ internal sealed partial class TextureManager return; _ = new Span<ImDrawVert>(mapped.pData, 4) { - [0] = new() { Col = uint.MaxValue, Pos = new(-1, 1), Uv = uv0 }, - [1] = new() { Col = uint.MaxValue, Pos = new(-1, -1), Uv = new(uv0.X, uv1.Y) }, - [2] = new() { Col = uint.MaxValue, Pos = new(1, 1), Uv = new(uv1.X, uv0.Y) }, - [3] = new() { Col = uint.MaxValue, Pos = new(1, -1), Uv = uv1 }, + [0] = new() { col = uint.MaxValue, pos = new(-1, 1), uv = uv0 }, + [1] = new() { col = uint.MaxValue, pos = new(-1, -1), uv = new(uv0.X, uv1.Y) }, + [2] = new() { col = uint.MaxValue, pos = new(1, 1), uv = new(uv1.X, uv0.Y) }, + [3] = new() { col = uint.MaxValue, pos = new(1, -1), uv = uv1 }, }; ctx->Unmap((ID3D11Resource*)buffer, 0u); } @@ -381,7 +382,7 @@ internal sealed partial class TextureManager ctx->PSSetShader(this.pixelShader, null, 0); var simp = this.sampler.Get(); ctx->PSSetSamplers(0, 1, &simp); - var ppn = (ID3D11ShaderResourceView*)Service<DalamudAssetManager>.Get().White4X4.Handle.Handle; + var ppn = (ID3D11ShaderResourceView*)Service<DalamudAssetManager>.Get().White4X4.ImGuiHandle; ctx->PSSetShaderResources(0, 1, &ppn); ctx->GSSetShader(null, null, 0); diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs b/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs index 07068db5b..2ce96e59d 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.FromExistingTexture.cs @@ -9,7 +9,7 @@ using Dalamud.Plugin.Services; using Dalamud.Utility; using Dalamud.Utility.TerraFxCom; -using FFXIVClientStructs.FFXIV.Client.Graphics.Kernel; +using Lumina.Data.Files; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -24,30 +24,32 @@ internal sealed partial class TextureManager (nint)this.ConvertToKernelTexture(wrap, leaveWrapOpen); /// <inheritdoc cref="ITextureProvider.ConvertToKernelTexture"/> - public unsafe Texture* ConvertToKernelTexture(IDalamudTextureWrap wrap, bool leaveWrapOpen = false) + public unsafe FFXIVClientStructs.FFXIV.Client.Graphics.Kernel.Texture* ConvertToKernelTexture( + IDalamudTextureWrap wrap, + bool leaveWrapOpen = false) { using var wrapAux = new WrapAux(wrap, leaveWrapOpen); - var flags = TextureFlags.TextureType2D; + var flags = TexFile.Attribute.TextureType2D; if (wrapAux.Desc.Usage == D3D11_USAGE.D3D11_USAGE_IMMUTABLE) - flags |= TextureFlags.Immutable; + flags |= TexFile.Attribute.Immutable; if (wrapAux.Desc.Usage == D3D11_USAGE.D3D11_USAGE_DYNAMIC) - flags |= TextureFlags.ReadWrite; + flags |= TexFile.Attribute.ReadWrite; if ((wrapAux.Desc.CPUAccessFlags & (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_READ) != 0) - flags |= TextureFlags.CpuRead; + flags |= TexFile.Attribute.CpuRead; if ((wrapAux.Desc.BindFlags & (uint)D3D11_BIND_FLAG.D3D11_BIND_RENDER_TARGET) != 0) - flags |= TextureFlags.TextureRenderTarget; + flags |= TexFile.Attribute.TextureRenderTarget; if ((wrapAux.Desc.BindFlags & (uint)D3D11_BIND_FLAG.D3D11_BIND_DEPTH_STENCIL) != 0) - flags |= TextureFlags.TextureDepthStencil; + flags |= TexFile.Attribute.TextureDepthStencil; if (wrapAux.Desc.ArraySize != 1) throw new NotSupportedException("TextureArray2D is currently not supported."); - var gtex = Texture.CreateTexture2D( + var gtex = FFXIVClientStructs.FFXIV.Client.Graphics.Kernel.Texture.CreateTexture2D( (int)wrapAux.Desc.Width, (int)wrapAux.Desc.Height, (byte)wrapAux.Desc.MipLevels, - 0, // instructs the game to skip preprocessing it seems - flags, + (uint)TexFile.TextureFormat.Null, // instructs the game to skip preprocessing it seems + (uint)flags, 0); // Kernel::Texture owns these resources. We're passing the ownership to them. @@ -55,27 +57,28 @@ internal sealed partial class TextureManager wrapAux.SrvPtr->AddRef(); // Not sure this is needed - gtex->TextureFormat = wrapAux.Desc.Format switch + var ltf = wrapAux.Desc.Format switch { - DXGI_FORMAT.DXGI_FORMAT_R32G32B32A32_FLOAT => TextureFormat.R32G32B32A32_FLOAT, - DXGI_FORMAT.DXGI_FORMAT_R16G16B16A16_FLOAT => TextureFormat.R16G16B16A16_FLOAT, - DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT => TextureFormat.R32G32_FLOAT, - DXGI_FORMAT.DXGI_FORMAT_R16G16_FLOAT => TextureFormat.R16G16_FLOAT, - DXGI_FORMAT.DXGI_FORMAT_R32_FLOAT => TextureFormat.R32_FLOAT, - DXGI_FORMAT.DXGI_FORMAT_R24G8_TYPELESS => TextureFormat.D24_UNORM_S8_UINT, - DXGI_FORMAT.DXGI_FORMAT_R16_TYPELESS => TextureFormat.D16_UNORM, - DXGI_FORMAT.DXGI_FORMAT_A8_UNORM => TextureFormat.A8_UNORM, - DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM => TextureFormat.BC1_UNORM, - DXGI_FORMAT.DXGI_FORMAT_BC2_UNORM => TextureFormat.BC2_UNORM, - DXGI_FORMAT.DXGI_FORMAT_BC3_UNORM => TextureFormat.BC3_UNORM, - DXGI_FORMAT.DXGI_FORMAT_BC5_UNORM => TextureFormat.BC5_UNORM, - DXGI_FORMAT.DXGI_FORMAT_B4G4R4A4_UNORM => TextureFormat.B4G4R4A4_UNORM, - DXGI_FORMAT.DXGI_FORMAT_B5G5R5A1_UNORM => TextureFormat.B5G5R5A1_UNORM, - DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM => TextureFormat.B8G8R8A8_UNORM, - DXGI_FORMAT.DXGI_FORMAT_B8G8R8X8_UNORM => TextureFormat.B8G8R8X8_UNORM, - DXGI_FORMAT.DXGI_FORMAT_BC7_UNORM => TextureFormat.BC7_UNORM, - _ => 0, + DXGI_FORMAT.DXGI_FORMAT_R32G32B32A32_FLOAT => TexFile.TextureFormat.R32G32B32A32F, + DXGI_FORMAT.DXGI_FORMAT_R16G16B16A16_FLOAT => TexFile.TextureFormat.R16G16B16A16F, + DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT => TexFile.TextureFormat.R32G32F, + DXGI_FORMAT.DXGI_FORMAT_R16G16_FLOAT => TexFile.TextureFormat.R16G16F, + DXGI_FORMAT.DXGI_FORMAT_R32_FLOAT => TexFile.TextureFormat.R32F, + DXGI_FORMAT.DXGI_FORMAT_R24G8_TYPELESS => TexFile.TextureFormat.D24S8, + DXGI_FORMAT.DXGI_FORMAT_R16_TYPELESS => TexFile.TextureFormat.D16, + DXGI_FORMAT.DXGI_FORMAT_A8_UNORM => TexFile.TextureFormat.A8, + DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM => TexFile.TextureFormat.BC1, + DXGI_FORMAT.DXGI_FORMAT_BC2_UNORM => TexFile.TextureFormat.BC2, + DXGI_FORMAT.DXGI_FORMAT_BC3_UNORM => TexFile.TextureFormat.BC3, + DXGI_FORMAT.DXGI_FORMAT_BC5_UNORM => TexFile.TextureFormat.BC5, + DXGI_FORMAT.DXGI_FORMAT_B4G4R4A4_UNORM => TexFile.TextureFormat.B4G4R4A4, + DXGI_FORMAT.DXGI_FORMAT_B5G5R5A1_UNORM => TexFile.TextureFormat.B5G5R5A1, + DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM => TexFile.TextureFormat.B8G8R8A8, + DXGI_FORMAT.DXGI_FORMAT_B8G8R8X8_UNORM => TexFile.TextureFormat.B8G8R8X8, + DXGI_FORMAT.DXGI_FORMAT_BC7_UNORM => TexFile.TextureFormat.BC7, + _ => TexFile.TextureFormat.Null, }; + gtex->TextureFormat = (FFXIVClientStructs.FFXIV.Client.Graphics.Kernel.TextureFormat)ltf; gtex->D3D11Texture2D = wrapAux.TexPtr; gtex->D3D11ShaderResourceView = wrapAux.SrvPtr; @@ -320,7 +323,7 @@ internal sealed partial class TextureManager { this.wrapToClose = leaveWrapOpen ? null : wrap; - using var unk = new ComPtr<IUnknown>((IUnknown*)wrap.Handle.Handle); + using var unk = new ComPtr<IUnknown>((IUnknown*)wrap.ImGuiHandle); using var srvTemp = default(ComPtr<ID3D11ShaderResourceView>); unk.As(&srvTemp).ThrowOnError(); diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.FromSeString.cs b/Dalamud/Interface/Textures/Internal/TextureManager.FromSeString.cs deleted file mode 100644 index 3e90ae3ea..000000000 --- a/Dalamud/Interface/Textures/Internal/TextureManager.FromSeString.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Dalamud.Interface.ImGuiSeStringRenderer; -using Dalamud.Interface.ImGuiSeStringRenderer.Internal; -using Dalamud.Interface.Textures.TextureWraps; -using Dalamud.Utility; - -namespace Dalamud.Interface.Textures.Internal; - -/// <summary>Service responsible for loading and disposing ImGui texture wraps.</summary> -internal sealed partial class TextureManager -{ - [ServiceManager.ServiceDependency] - private readonly SeStringRenderer seStringRenderer = Service<SeStringRenderer>.Get(); - - /// <inheritdoc/> - public IDalamudTextureWrap CreateTextureFromSeString( - ReadOnlySpan<byte> text, - scoped in SeStringDrawParams drawParams = default, - string? debugName = null) - { - ThreadSafety.AssertMainThread(); - using var dd = this.seStringRenderer.CreateDrawData(text, drawParams); - var texture = this.CreateDrawListTexture(debugName ?? nameof(this.CreateTextureFromSeString)); - try - { - texture.Size = dd.Data.DisplaySize; - texture.Draw(dd.DataPtr); - return texture; - } - catch - { - texture.Dispose(); - throw; - } - } -} diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.GamePath.cs b/Dalamud/Interface/Textures/Internal/TextureManager.GamePath.cs index fe0f390eb..0796ad6cc 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.GamePath.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.GamePath.cs @@ -113,8 +113,8 @@ internal sealed partial class TextureManager var format = highResolution ? HighResolutionIconFileFormat : IconFileFormat; type ??= string.Empty; - if (type.Length > 0 && !type.EndsWith('/')) - type += '/'; + if (type.Length > 0 && !type.EndsWith("/")) + type += "/"; return string.Format(format, iconId / 1000, type, iconId); } diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.SharedTextures.cs b/Dalamud/Interface/Textures/Internal/TextureManager.SharedTextures.cs index 85cf3a1ca..d7e185b68 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.SharedTextures.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.SharedTextures.cs @@ -5,6 +5,7 @@ using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Threading; +using System.Threading.Tasks; using BitFaster.Caching.Lru; @@ -64,7 +65,7 @@ internal sealed partial class TextureManager private readonly ConcurrentDictionary<string, SharedImmediateTexture> gameDict = new(); private readonly ConcurrentDictionary<string, SharedImmediateTexture> fileDict = new(); private readonly ConcurrentDictionary<(Assembly, string), SharedImmediateTexture> manifestResourceDict = new(); - private readonly HashSet<SharedImmediateTexture> invalidatedTextures = []; + private readonly HashSet<SharedImmediateTexture> invalidatedTextures = new(); private readonly Thread sharedTextureReleaseThread; diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.Wic.cs b/Dalamud/Interface/Textures/Internal/TextureManager.Wic.cs index e7357a625..245a2a9ac 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.Wic.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.Wic.cs @@ -6,6 +6,7 @@ using System.IO; using System.Threading; using System.Threading.Tasks; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal.SharedImmediateTextures; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Plugin.Services; @@ -90,7 +91,7 @@ internal sealed partial class TextureManager throw new NullReferenceException($"{nameof(path)} cannot be null."); using var wrapAux = new WrapAux(wrap, true); - var pathTemp = Util.GetReplaceableFileName(path); + var pathTemp = Util.GetTempFileNameForFileReplacement(path); var trashfire = new List<Exception>(); try { @@ -172,7 +173,7 @@ internal sealed partial class TextureManager ReadOnlyMemory<byte> bytes, CancellationToken cancellationToken = default) { - ObjectDisposedException.ThrowIf(this.disposeCts.IsCancellationRequested, this); + ObjectDisposedException.ThrowIf(this.disposing, this); cancellationToken.ThrowIfCancellationRequested(); try @@ -203,7 +204,7 @@ internal sealed partial class TextureManager string path, CancellationToken cancellationToken = default) { - ObjectDisposedException.ThrowIf(this.disposeCts.IsCancellationRequested, this); + ObjectDisposedException.ThrowIf(this.disposing, this); cancellationToken.ThrowIfCancellationRequested(); try @@ -358,18 +359,11 @@ internal sealed partial class TextureManager /// <param name="handle">An instance of <see cref="MemoryHandle"/>.</param> /// <param name="length">The number of bytes in the memory.</param> /// <returns>The new instance of <see cref="IStream"/>.</returns> - public unsafe ComPtr<IStream> CreateIStreamViewOfMemory(MemoryHandle handle, int length) => - this.CreateIStreamViewOfMemory((byte*)handle.Pointer, length); - - /// <summary>Creates a new instance of <see cref="IStream"/> from a fixed memory allocation.</summary> - /// <param name="address">Address of the data.</param> - /// <param name="length">The number of bytes in the memory.</param> - /// <returns>The new instance of <see cref="IStream"/>.</returns> - public unsafe ComPtr<IStream> CreateIStreamViewOfMemory(void* address, int length) + public unsafe ComPtr<IStream> CreateIStreamViewOfMemory(MemoryHandle handle, int length) { using var wicStream = default(ComPtr<IWICStream>); this.wicFactory.Get()->CreateStream(wicStream.GetAddressOf()).ThrowOnError(); - wicStream.Get()->InitializeFromMemory((byte*)address, checked((uint)length)).ThrowOnError(); + wicStream.Get()->InitializeFromMemory((byte*)handle.Pointer, checked((uint)length)).ThrowOnError(); var res = default(ComPtr<IStream>); wicStream.As(ref res).ThrowOnError(); diff --git a/Dalamud/Interface/Textures/Internal/TextureManager.cs b/Dalamud/Interface/Textures/Internal/TextureManager.cs index 22a257395..c9ee5d20e 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManager.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManager.cs @@ -11,15 +11,12 @@ using Dalamud.Interface.Textures.Internal.SharedImmediateTextures; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Textures.TextureWraps.Internal; using Dalamud.Logging.Internal; -using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; -using Dalamud.Storage.Assets; using Dalamud.Utility; using Dalamud.Utility.TerraFxCom; using Lumina.Data; using Lumina.Data.Files; -using Lumina.Data.Parsing.Tex.Buffers; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -34,7 +31,7 @@ internal sealed partial class TextureManager ITextureSubstitutionProvider, ITextureReadbackProvider { - private static readonly ModuleLog Log = ModuleLog.Create<TextureManager>(); + private static readonly ModuleLog Log = new(nameof(TextureManager)); [ServiceManager.ServiceDependency] private readonly Dalamud dalamud = Service<Dalamud>.Get(); @@ -51,18 +48,17 @@ internal sealed partial class TextureManager [ServiceManager.ServiceDependency] private readonly InterfaceManager interfaceManager = Service<InterfaceManager>.Get(); - private readonly CancellationTokenSource disposeCts = new(); - private DynamicPriorityQueueLoader? dynamicPriorityTextureLoader; private SharedTextureManager? sharedTextureManager; private WicManager? wicManager; + private bool disposing; private ComPtr<ID3D11Device> device; [ServiceManager.ServiceConstructor] private unsafe TextureManager(InterfaceManager.InterfaceManagerWithScene withScene) { using var failsafe = new DisposeSafety.ScopedFinalizer(); - failsafe.Add(this.device = new((ID3D11Device*)withScene.Manager.Backend!.DeviceHandle)); + failsafe.Add(this.device = new((ID3D11Device*)withScene.Manager.Device!.NativePointer)); failsafe.Add(this.dynamicPriorityTextureLoader = new(Math.Max(1, Environment.ProcessorCount - 1))); failsafe.Add(this.sharedTextureManager = new(this)); failsafe.Add(this.wicManager = new(this)); @@ -108,10 +104,10 @@ internal sealed partial class TextureManager /// <inheritdoc/> void IInternalDisposableService.DisposeService() { - if (this.disposeCts.IsCancellationRequested) + if (this.disposing) return; - this.disposeCts.Cancel(); + this.disposing = true; Interlocked.Exchange(ref this.dynamicPriorityTextureLoader, null)?.Dispose(); Interlocked.Exchange(ref this.simpleDrawer, null)?.Dispose(); @@ -219,7 +215,7 @@ internal sealed partial class TextureManager null, _ => Task.FromResult( this.BlameSetName( - this.NoThrottleCreateFromTexFile(file.Header, file.TextureBuffer), + this.NoThrottleCreateFromTexFile(file), debugName ?? $"{nameof(this.CreateFromTexFile)}({ForceNullable(file.FilePath)?.Path})")), cancellationToken); @@ -249,7 +245,7 @@ internal sealed partial class TextureManager usage = D3D11_USAGE.D3D11_USAGE_DYNAMIC; else usage = D3D11_USAGE.D3D11_USAGE_DEFAULT; - + using var texture = this.device.CreateTexture2D( new() { @@ -273,21 +269,6 @@ internal sealed partial class TextureManager return wrap; } - /// <inheritdoc/> - public IDrawListTextureWrap CreateDrawListTexture(string? debugName = null) => this.CreateDrawListTexture(null, debugName); - - /// <summary><inheritdoc cref="CreateDrawListTexture(string?)" path="/summary"/></summary> - /// <param name="plugin">Plugin that created the draw list.</param> - /// <param name="debugName"><inheritdoc cref="CreateDrawListTexture(string?)" path="/param[name=debugName]"/></param> - /// <returns><inheritdoc cref="CreateDrawListTexture(string?)" path="/returns"/></returns> - public IDrawListTextureWrap CreateDrawListTexture(LocalPlugin? plugin, string? debugName = null) => - new DrawListTextureWrap( - new(this.device), - this, - Service<DalamudAssetManager>.Get().Empty4X4, - plugin, - debugName ?? $"{nameof(this.CreateDrawListTexture)}"); - /// <inheritdoc/> bool ITextureProvider.IsDxgiFormatSupported(int dxgiFormat) => this.IsDxgiFormatSupported((DXGI_FORMAT)dxgiFormat); @@ -345,14 +326,14 @@ internal sealed partial class TextureManager /// <summary>Creates a texture from the given <see cref="TexFile"/>. Skips the load throttler; intended to be used /// from implementation of <see cref="SharedImmediateTexture"/>s.</summary> - /// <param name="header">Header of a <c>.tex</c> file.</param> - /// <param name="buffer">Texture buffer.</param> + /// <param name="file">The data.</param> /// <returns>The loaded texture.</returns> - internal IDalamudTextureWrap NoThrottleCreateFromTexFile(TexFile.TexHeader header, TextureBuffer buffer) + internal IDalamudTextureWrap NoThrottleCreateFromTexFile(TexFile file) { - ObjectDisposedException.ThrowIf(this.disposeCts.IsCancellationRequested, this); + ObjectDisposedException.ThrowIf(this.disposing, this); - var (dxgiFormat, conversion) = TexFile.GetDxgiFormatFromTextureFormat(header.Format, false); + var buffer = file.TextureBuffer; + var (dxgiFormat, conversion) = TexFile.GetDxgiFormatFromTextureFormat(file.Header.Format, false); if (conversion != TexFile.DxgiFormatConversion.NoConversion || !this.IsDxgiFormatSupported((DXGI_FORMAT)dxgiFormat)) { @@ -361,31 +342,34 @@ internal sealed partial class TextureManager } var wrap = this.NoThrottleCreateFromRaw(new(buffer.Width, buffer.Height, dxgiFormat), buffer.RawData); - this.BlameSetName(wrap, $"{nameof(this.NoThrottleCreateFromTexFile)}({header.Width} x {header.Height})"); + this.BlameSetName(wrap, $"{nameof(this.NoThrottleCreateFromTexFile)}({ForceNullable(file.FilePath).Path})"); return wrap; + + static T? ForceNullable<T>(T s) => s; } /// <summary>Creates a texture from the given <paramref name="fileBytes"/>, trying to interpret it as a /// <see cref="TexFile"/>.</summary> /// <param name="fileBytes">The file bytes.</param> /// <returns>The loaded texture.</returns> - internal unsafe IDalamudTextureWrap NoThrottleCreateFromTexFile(ReadOnlySpan<byte> fileBytes) + internal IDalamudTextureWrap NoThrottleCreateFromTexFile(ReadOnlySpan<byte> fileBytes) { - ObjectDisposedException.ThrowIf(this.disposeCts.IsCancellationRequested, this); + ObjectDisposedException.ThrowIf(this.disposing, this); if (!TexFileExtensions.IsPossiblyTexFile2D(fileBytes)) throw new InvalidDataException("The file is not a TexFile."); - TexFile.TexHeader header; - TextureBuffer buffer; - fixed (byte* p = fileBytes) - { - var lbr = new LuminaBinaryReader(new UnmanagedMemoryStream(p, fileBytes.Length)); - header = lbr.ReadStructure<TexFile.TexHeader>(); - buffer = TextureBuffer.FromStream(header, lbr); - } + var bytesArray = fileBytes.ToArray(); + var tf = new TexFile(); + typeof(TexFile).GetProperty(nameof(tf.Data))!.GetSetMethod(true)!.Invoke( + tf, + new object?[] { bytesArray }); + typeof(TexFile).GetProperty(nameof(tf.Reader))!.GetSetMethod(true)!.Invoke( + tf, + new object?[] { new LuminaBinaryReader(bytesArray) }); + // Note: FileInfo and FilePath are not used from TexFile; skip it. - var wrap = this.NoThrottleCreateFromTexFile(header, buffer); + var wrap = this.NoThrottleCreateFromTexFile(tf); this.BlameSetName(wrap, $"{nameof(this.NoThrottleCreateFromTexFile)}({fileBytes.Length:n0})"); return wrap; } diff --git a/Dalamud/Interface/Textures/Internal/TextureManagerPluginScoped.cs b/Dalamud/Interface/Textures/Internal/TextureManagerPluginScoped.cs index ac6de7dd7..c62ad61b4 100644 --- a/Dalamud/Interface/Textures/Internal/TextureManagerPluginScoped.cs +++ b/Dalamud/Interface/Textures/Internal/TextureManagerPluginScoped.cs @@ -6,7 +6,6 @@ using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; -using Dalamud.Interface.ImGuiSeStringRenderer; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.IoC; @@ -29,7 +28,6 @@ namespace Dalamud.Interface.Textures.Internal; [ResolveVia<ITextureProvider>] [ResolveVia<ITextureSubstitutionProvider>] [ResolveVia<ITextureReadbackProvider>] -[InherentDependency<TextureManager>] #pragma warning restore SA1015 internal sealed class TextureManagerPluginScoped : IInternalDisposableService, @@ -153,10 +151,6 @@ internal sealed class TextureManagerPluginScoped return textureWrap; } - /// <inheritdoc/> - public IDrawListTextureWrap CreateDrawListTexture(string? debugName = null) => - this.ManagerOrThrow.CreateDrawListTexture(this.plugin, debugName); - /// <inheritdoc/> public async Task<IDalamudTextureWrap> CreateFromExistingTextureAsync( IDalamudTextureWrap wrap, @@ -273,29 +267,6 @@ internal sealed class TextureManagerPluginScoped return textureWrap; } - /// <inheritdoc/> - public async Task<IDalamudTextureWrap> CreateFromClipboardAsync( - string? debugName = null, - CancellationToken cancellationToken = default) - { - var manager = await this.ManagerTask; - var textureWrap = await manager.CreateFromClipboardAsync(debugName, cancellationToken); - manager.Blame(textureWrap, this.plugin); - return textureWrap; - } - - /// <inheritdoc/> - public IDalamudTextureWrap CreateTextureFromSeString( - ReadOnlySpan<byte> text, - scoped in SeStringDrawParams drawParams = default, - string? debugName = null) - { - var manager = this.ManagerOrThrow; - var textureWrap = manager.CreateTextureFromSeString(text, drawParams, debugName); - manager.Blame(textureWrap, this.plugin); - return textureWrap; - } - /// <inheritdoc/> public IEnumerable<IBitmapCodecInfo> GetSupportedImageDecoderInfos() => this.ManagerOrThrow.Wic.GetSupportedDecoderInfos(); @@ -308,9 +279,6 @@ internal sealed class TextureManagerPluginScoped return shared; } - /// <inheritdoc/> - public bool HasClipboardImage() => this.ManagerOrThrow.HasClipboardImage(); - /// <inheritdoc/> public bool TryGetFromGameIcon(in GameIconLookup lookup, [NotNullWhen(true)] out ISharedImmediateTexture? texture) { @@ -324,7 +292,7 @@ internal sealed class TextureManagerPluginScoped texture = null; return false; } - + /// <inheritdoc/> public ISharedImmediateTexture GetFromGame(string path) { @@ -340,7 +308,7 @@ internal sealed class TextureManagerPluginScoped shared.AddOwnerPlugin(this.plugin); return shared; } - + /// <inheritdoc/> public ISharedImmediateTexture GetFromFile(FileInfo file) { @@ -443,17 +411,6 @@ internal sealed class TextureManagerPluginScoped cancellationToken); } - /// <inheritdoc/> - public async Task CopyToClipboardAsync( - IDalamudTextureWrap wrap, - string? preferredFileNameWithoutExtension = null, - bool leaveWrapOpen = false, - CancellationToken cancellationToken = default) - { - var manager = await this.ManagerTask; - await manager.CopyToClipboardAsync(wrap, preferredFileNameWithoutExtension, leaveWrapOpen, cancellationToken); - } - private void ResultOnInterceptTexDataLoad(string path, ref string? replacementPath) => this.InterceptTexDataLoad?.Invoke(path, ref replacementPath); } diff --git a/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs index 2cb1deac5..7d6ff8580 100644 --- a/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/ForwardingTextureWrap.cs @@ -2,7 +2,7 @@ using System.Diagnostics.CodeAnalysis; using System.Numerics; using System.Runtime.CompilerServices; -using Dalamud.Bindings.ImGui; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps.Internal; using TerraFX.Interop.Windows; @@ -13,10 +13,10 @@ namespace Dalamud.Interface.Textures.TextureWraps; public abstract class ForwardingTextureWrap : IDalamudTextureWrap { /// <inheritdoc/> - public ImTextureID Handle + public IntPtr ImGuiHandle { [MethodImpl(MethodImplOptions.AggressiveInlining)] - get => this.GetWrap().Handle; + get => this.GetWrap().ImGuiHandle; } /// <inheritdoc/> @@ -55,7 +55,7 @@ public abstract class ForwardingTextureWrap : IDalamudTextureWrap public virtual unsafe IDalamudTextureWrap CreateWrapSharingLowLevelResource() { // Dalamud specific: IDalamudTextureWrap always points to an ID3D11ShaderResourceView. - var handle = (IUnknown*)this.Handle.Handle; + var handle = (IUnknown*)this.ImGuiHandle; return new UnknownTextureWrap(handle, this.Width, this.Height, true); } diff --git a/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs index b30adced7..88f2dd718 100644 --- a/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/IDalamudTextureWrap.cs @@ -1,6 +1,5 @@ using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Textures.TextureWraps.Internal; using TerraFX.Interop.Windows; @@ -16,7 +15,7 @@ namespace Dalamud.Interface.Textures.TextureWraps; public interface IDalamudTextureWrap : IDisposable { /// <summary>Gets a texture handle suitable for direct use with ImGui functions.</summary> - ImTextureID Handle { get; } + IntPtr ImGuiHandle { get; } /// <summary>Gets the width of the texture.</summary> int Width { get; } @@ -33,7 +32,7 @@ public interface IDalamudTextureWrap : IDisposable /// <returns>The new reference to this texture wrap.</returns> /// <remarks> /// On calling this function, a new instance of <see cref="IDalamudTextureWrap"/> will be returned, but with - /// the same <see cref="Handle"/>. The new instance must be <see cref="IDisposable.Dispose"/>d, as the backing + /// the same <see cref="ImGuiHandle"/>. The new instance must be <see cref="IDisposable.Dispose"/>d, as the backing /// resource will stay alive until all the references are released. The old instance may be disposed as needed, /// once this function returns; the new instance will stay alive regardless of whether the old instance has been /// disposed.<br /> @@ -41,12 +40,12 @@ public interface IDalamudTextureWrap : IDisposable /// across plugin boundaries for use for an indeterminate duration, the receiver should call this function to /// obtain a new reference to the texture received, so that it gets its own "copy" of the texture and the caller /// may dispose the texture anytime without any care for the receiver.<br /> - /// The default implementation will treat <see cref="Handle"/> as an <see cref="IUnknown"/>. + /// The default implementation will treat <see cref="ImGuiHandle"/> as an <see cref="IUnknown"/>. /// </remarks> unsafe IDalamudTextureWrap CreateWrapSharingLowLevelResource() { // Dalamud specific: IDalamudTextureWrap always points to an ID3D11ShaderResourceView. - var handle = (IUnknown*)this.Handle.Handle; + var handle = (IUnknown*)this.ImGuiHandle; return new UnknownTextureWrap(handle, this.Width, this.Height, true); } } diff --git a/Dalamud/Interface/Textures/TextureWraps/IDrawListTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/IDrawListTextureWrap.cs deleted file mode 100644 index 55a0ca027..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/IDrawListTextureWrap.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System.Numerics; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Textures.TextureWraps.Internal; - -namespace Dalamud.Interface.Textures.TextureWraps; - -/// <summary>A texture wrap that can be drawn using ImGui draw data.</summary> -public interface IDrawListTextureWrap : IDalamudTextureWrap -{ - /// <summary>Gets or sets the width of the texture.</summary> - /// <remarks>If <see cref="Height"/> is to be set together, set use <see cref="Size"/> instead.</remarks> - new int Width { get; set; } - - /// <summary>Gets or sets the width of the texture.</summary> - /// <remarks>If <see cref="Width"/> is to be set together, set use <see cref="Size"/> instead.</remarks> - new int Height { get; set; } - - /// <summary>Gets or sets the size of the texture.</summary> - /// <remarks>Components will be rounded up.</remarks> - new Vector2 Size { get; set; } - - /// <inheritdoc/> - int IDalamudTextureWrap.Width => this.Width; - - /// <inheritdoc/> - int IDalamudTextureWrap.Height => this.Height; - - /// <inheritdoc/> - Vector2 IDalamudTextureWrap.Size => this.Size; - - /// <summary>Gets or sets the color to use when clearing this texture.</summary> - /// <value>Color in RGBA. Defaults to <see cref="Vector4.Zero"/>, which is full transparency.</value> - Vector4 ClearColor { get; set; } - - /// <summary>Draws a draw list to this texture.</summary> - /// <param name="drawListPtr">Draw list to draw from.</param> - /// <param name="displayPos">Left-top coordinates of the draw commands in the draw list.</param> - /// <param name="scale">Scale to apply to all draw commands in the draw list.</param> - /// <remarks>This function can be called only from the main thread.</remarks> - void Draw(ImDrawListPtr drawListPtr, Vector2 displayPos, Vector2 scale); - - /// <inheritdoc cref="DrawListTextureWrap.Draw(ImDrawDataPtr)"/> - void Draw(scoped in ImDrawData drawData); - - /// <summary>Draws from a draw data to this texture.</summary> - /// <param name="drawData">Draw data to draw.</param> - /// <remarks><ul> - /// <li>Texture size will be kept as specified in <see cref="Size"/>. <see cref="ImDrawData.DisplaySize"/> will be - /// used only as shader parameters.</li> - /// <li>This function can be called only from the main thread.</li> - /// </ul></remarks> - void Draw(ImDrawDataPtr drawData); - - /// <summary>Resizes this texture and draws an ImGui window.</summary> - /// <param name="windowName">Name and ID of the window to draw. Use the value that goes into - /// <see cref="ImGui.Begin(ImU8String, ImGuiWindowFlags)"/>.</param> - /// <param name="scale">Scale to apply to all draw commands in the draw list.</param> - void ResizeAndDrawWindow(ReadOnlySpan<char> windowName, Vector2 scale); -} diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap.cs deleted file mode 100644 index 13878abe2..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap.cs +++ /dev/null @@ -1,302 +0,0 @@ -using System.Numerics; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Internal; -using Dalamud.Interface.Textures.Internal; -using Dalamud.Plugin.Internal.Types; -using Dalamud.Plugin.Services; -using Dalamud.Utility; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.Textures.TextureWraps.Internal; - -/// <inheritdoc cref="IDrawListTextureWrap"/> -internal sealed unsafe partial class DrawListTextureWrap : IDrawListTextureWrap, IDeferredDisposable -{ - private readonly TextureManager textureManager; - private readonly IDalamudTextureWrap emptyTexture; - private readonly LocalPlugin? plugin; - private readonly string debugName; - - private ComPtr<ID3D11Device> device; - private ComPtr<ID3D11DeviceContext> deviceContext; - private ComPtr<ID3D11Texture2D> tex; - private ComPtr<ID3D11ShaderResourceView> srv; - private ComPtr<ID3D11RenderTargetView> rtv; - - private ComPtr<ID3D11Texture2D> texPremultiplied; - private ComPtr<ID3D11ShaderResourceView> srvPremultiplied; - private ComPtr<ID3D11RenderTargetView> rtvPremultiplied; - - private int width; - private int height; - private DXGI_FORMAT format = DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM; - - /// <summary>Initializes a new instance of the <see cref="DrawListTextureWrap"/> class.</summary> - /// <param name="device">Pointer to a D3D11 device. Ownership is taken.</param> - /// <param name="textureManager">Instance of the <see cref="ITextureProvider"/> class.</param> - /// <param name="emptyTexture">Texture to use, if <see cref="Width"/> or <see cref="Height"/> is <c>0</c>.</param> - /// <param name="plugin">Plugin that holds responsible for this texture.</param> - /// <param name="debugName">Name for debug display purposes.</param> - public DrawListTextureWrap( - ComPtr<ID3D11Device> device, - TextureManager textureManager, - IDalamudTextureWrap emptyTexture, - LocalPlugin? plugin, - string debugName) - { - this.textureManager = textureManager; - this.emptyTexture = emptyTexture; - this.plugin = plugin; - this.debugName = debugName; - - if (device.IsEmpty()) - throw new ArgumentNullException(nameof(device)); - - this.device.Swap(ref device); - fixed (ID3D11DeviceContext** pdc = &this.deviceContext.GetPinnableReference()) - this.device.Get()->GetImmediateContext(pdc); - - this.emptyTexture = emptyTexture; - this.srv = new((ID3D11ShaderResourceView*)emptyTexture.Handle.Handle); - } - - /// <summary>Finalizes an instance of the <see cref="DrawListTextureWrap"/> class.</summary> - ~DrawListTextureWrap() => this.RealDispose(); - - /// <inheritdoc/> - public ImTextureID Handle => new(this.srv.Get()); - - /// <inheritdoc cref="IDrawListTextureWrap.Width"/> - public int Width - { - get => this.width; - set - { - ArgumentOutOfRangeException.ThrowIfNegative(value, nameof(value)); - this.Resize(value, this.height, this.format); - } - } - - /// <inheritdoc cref="IDrawListTextureWrap.Height"/> - public int Height - { - get => this.height; - set - { - ArgumentOutOfRangeException.ThrowIfNegative(value, nameof(value)); - this.Resize(this.width, value, this.format).ThrowOnError(); - } - } - - /// <inheritdoc cref="IDrawListTextureWrap.Size"/> - public Vector2 Size - { - get => new(this.width, this.height); - set - { - if (value.X is <= 0 or float.NaN) - throw new ArgumentOutOfRangeException(nameof(value), value, "X component is invalid."); - if (value.Y is <= 0 or float.NaN) - throw new ArgumentOutOfRangeException(nameof(value), value, "Y component is invalid."); - this.Resize((int)MathF.Ceiling(value.X), (int)MathF.Ceiling(value.Y), this.format).ThrowOnError(); - } - } - - /// <inheritdoc/> - public Vector4 ClearColor { get; set; } - - /// <summary>Gets or sets the <see cref="DXGI_FORMAT"/>.</summary> - public int DxgiFormat - { - get => (int)this.format; - set - { - if (!this.textureManager.IsDxgiFormatSupportedForCreateFromExistingTextureAsync((DXGI_FORMAT)value)) - { - throw new ArgumentException( - "Specified format is not a supported rendering target format.", - nameof(value)); - } - - this.Resize(this.width, this.Height, (DXGI_FORMAT)value).ThrowOnError(); - } - } - - /// <inheritdoc/> - public void Dispose() - { - if (Service<InterfaceManager>.GetNullable() is { } im) - im.EnqueueDeferredDispose(this); - else - this.RealDispose(); - } - - /// <inheritdoc/> - public void RealDispose() - { - this.srv.Reset(); - this.tex.Reset(); - this.rtv.Reset(); - this.srvPremultiplied.Reset(); - this.texPremultiplied.Reset(); - this.rtvPremultiplied.Reset(); - this.device.Reset(); - this.deviceContext.Reset(); - -#pragma warning disable CA1816 - GC.SuppressFinalize(this); -#pragma warning restore CA1816 - } - - /// <inheritdoc/> - public void Draw(ImDrawListPtr drawListPtr, Vector2 displayPos, Vector2 scale) => - this.Draw( - new ImDrawData - { - Valid = 1, - CmdListsCount = 1, - TotalIdxCount = drawListPtr.IdxBuffer.Size, - TotalVtxCount = drawListPtr.VtxBuffer.Size, - CmdLists = (ImDrawList**)(&drawListPtr), - DisplayPos = displayPos, - DisplaySize = this.Size, - FramebufferScale = scale, - }); - - /// <inheritdoc/> - public void Draw(scoped in ImDrawData drawData) - { - fixed (ImDrawData* pDrawData = &drawData) - this.Draw(new(pDrawData)); - } - - /// <inheritdoc/> - public void Draw(ImDrawDataPtr drawData) - { - ThreadSafety.AssertMainThread(); - - // Do nothing if the render target is empty. - if (this.rtv.IsEmpty()) - return; - - // Clear the texture first, as the texture exists. - var clearColor = this.ClearColor; - this.deviceContext.Get()->ClearRenderTargetView(this.rtvPremultiplied.Get(), (float*)&clearColor); - - // If there is nothing to draw, then stop. - if (!drawData.Valid - || drawData.CmdListsCount < 1 - || drawData.TotalIdxCount < 1 - || drawData.TotalVtxCount < 1 - || drawData.CmdLists.IsNull - || drawData.DisplaySize.X <= 0 - || drawData.DisplaySize.Y <= 0 - || drawData.FramebufferScale.X == 0 - || drawData.FramebufferScale.Y == 0) - return; - - using (new DeviceContextStateBackup(this.device.Get()->GetFeatureLevel(), this.deviceContext)) - { - Service<Renderer>.Get().RenderDrawData(this.rtvPremultiplied.Get(), drawData); - Service<Renderer>.Get().MakeStraight(this.srvPremultiplied.Get(), this.rtv.Get()); - } - } - - /// <summary>Resizes the texture.</summary> - /// <param name="newWidth">New texture width.</param> - /// <param name="newHeight">New texture height.</param> - /// <param name="newFormat">New format.</param> - /// <returns><see cref="S.S_OK"/> if the texture has been resized, <see cref="S.S_FALSE"/> if the texture has not - /// been resized, or a value with <see cref="HRESULT.FAILED"/> that evaluates to <see langword="true"/>.</returns> - private HRESULT Resize(int newWidth, int newHeight, DXGI_FORMAT newFormat) - { - if (newWidth < 0 || newHeight < 0) - return E.E_INVALIDARG; - - if (newWidth == 0 || newHeight == 0) - { - this.tex.Reset(); - this.srv.Reset(); - this.rtv.Reset(); - this.texPremultiplied.Reset(); - this.srvPremultiplied.Reset(); - this.rtvPremultiplied.Reset(); - this.width = newWidth; - this.Height = newHeight; - this.srv = new((ID3D11ShaderResourceView*)this.emptyTexture.Handle.Handle); - return S.S_FALSE; - } - - if (this.width == newWidth && this.height == newHeight) - return S.S_FALSE; - - // These new resources will take replace the existing resources, only once all allocations are completed. - using var tmptex = default(ComPtr<ID3D11Texture2D>); - using var tmpsrv = default(ComPtr<ID3D11ShaderResourceView>); - using var tmprtv = default(ComPtr<ID3D11RenderTargetView>); - using var tmptexPremultiplied = default(ComPtr<ID3D11Texture2D>); - using var tmpsrvPremultiplied = default(ComPtr<ID3D11ShaderResourceView>); - using var tmprtvPremultiplied = default(ComPtr<ID3D11RenderTargetView>); - - var tmpTexDesc = new D3D11_TEXTURE2D_DESC - { - Width = (uint)newWidth, - Height = (uint)newHeight, - MipLevels = 1, - ArraySize = 1, - Format = newFormat, - SampleDesc = new(1, 0), - Usage = D3D11_USAGE.D3D11_USAGE_DEFAULT, - BindFlags = (uint)(D3D11_BIND_FLAG.D3D11_BIND_SHADER_RESOURCE | - D3D11_BIND_FLAG.D3D11_BIND_RENDER_TARGET), - CPUAccessFlags = 0u, - MiscFlags = 0u, - }; - var hr = this.device.Get()->CreateTexture2D(&tmpTexDesc, null, tmptex.GetAddressOf()); - if (hr.FAILED) - return hr; - - var tmpres = (ID3D11Resource*)tmptex.Get(); - var srvDesc = new D3D11_SHADER_RESOURCE_VIEW_DESC(tmptex, D3D_SRV_DIMENSION.D3D11_SRV_DIMENSION_TEXTURE2D); - hr = this.device.Get()->CreateShaderResourceView(tmpres, &srvDesc, tmpsrv.GetAddressOf()); - if (hr.FAILED) - return hr; - - var rtvDesc = new D3D11_RENDER_TARGET_VIEW_DESC(tmptex, D3D11_RTV_DIMENSION.D3D11_RTV_DIMENSION_TEXTURE2D); - hr = this.device.Get()->CreateRenderTargetView(tmpres, &rtvDesc, tmprtv.GetAddressOf()); - if (hr.FAILED) - return hr; - - hr = this.device.Get()->CreateTexture2D(&tmpTexDesc, null, tmptexPremultiplied.GetAddressOf()); - if (hr.FAILED) - return hr; - - tmpres = (ID3D11Resource*)tmptexPremultiplied.Get(); - srvDesc = new(tmptexPremultiplied, D3D_SRV_DIMENSION.D3D11_SRV_DIMENSION_TEXTURE2D); - hr = this.device.Get()->CreateShaderResourceView(tmpres, &srvDesc, tmpsrvPremultiplied.GetAddressOf()); - if (hr.FAILED) - return hr; - - rtvDesc = new(tmptexPremultiplied, D3D11_RTV_DIMENSION.D3D11_RTV_DIMENSION_TEXTURE2D); - hr = this.device.Get()->CreateRenderTargetView(tmpres, &rtvDesc, tmprtvPremultiplied.GetAddressOf()); - if (hr.FAILED) - return hr; - - tmptex.Swap(ref this.tex); - tmpsrv.Swap(ref this.srv); - tmprtv.Swap(ref this.rtv); - tmptexPremultiplied.Swap(ref this.texPremultiplied); - tmpsrvPremultiplied.Swap(ref this.srvPremultiplied); - tmprtvPremultiplied.Swap(ref this.rtvPremultiplied); - this.width = newWidth; - this.height = newHeight; - this.format = newFormat; - - this.textureManager.BlameSetName(this, this.debugName); - this.textureManager.Blame(this, this.plugin); - return S.S_OK; - } -} diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/DeviceContextStateBackup.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/DeviceContextStateBackup.cs deleted file mode 100644 index b8f82828b..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/DeviceContextStateBackup.cs +++ /dev/null @@ -1,667 +0,0 @@ -using System.Runtime.InteropServices; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.Textures.TextureWraps.Internal; - -/// <inheritdoc cref="IDrawListTextureWrap"/> -internal sealed unsafe partial class DrawListTextureWrap -{ - /// <summary>Captures states of a <see cref="ID3D11DeviceContext"/>.</summary> - // TODO: Use the one in https://github.com/goatcorp/Dalamud/pull/1923 once the PR goes in - internal struct DeviceContextStateBackup : IDisposable - { - private InputAssemblerState inputAssemblerState; - private RasterizerState rasterizerState; - private OutputMergerState outputMergerState; - private VertexShaderState vertexShaderState; - private HullShaderState hullShaderState; - private DomainShaderState domainShaderState; - private GeometryShaderState geometryShaderState; - private PixelShaderState pixelShaderState; - private ComputeShaderState computeShaderState; - - /// <summary> - /// Initializes a new instance of the <see cref="DeviceContextStateBackup"/> struct, - /// by capturing all states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - /// <param name="featureLevel">The feature level.</param> - /// <param name="ctx">The device context.</param> - public DeviceContextStateBackup(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) - { - this.inputAssemblerState = InputAssemblerState.From(ctx); - this.rasterizerState = RasterizerState.From(ctx); - this.outputMergerState = OutputMergerState.From(featureLevel, ctx); - this.vertexShaderState = VertexShaderState.From(ctx); - this.hullShaderState = HullShaderState.From(ctx); - this.domainShaderState = DomainShaderState.From(ctx); - this.geometryShaderState = GeometryShaderState.From(ctx); - this.pixelShaderState = PixelShaderState.From(ctx); - this.computeShaderState = ComputeShaderState.From(featureLevel, ctx); - } - - /// <inheritdoc/> - public void Dispose() - { - this.inputAssemblerState.Dispose(); - this.rasterizerState.Dispose(); - this.outputMergerState.Dispose(); - this.vertexShaderState.Dispose(); - this.hullShaderState.Dispose(); - this.domainShaderState.Dispose(); - this.geometryShaderState.Dispose(); - this.pixelShaderState.Dispose(); - this.computeShaderState.Dispose(); - } - - /// <summary> - /// Captures Input Assembler states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct InputAssemblerState : IDisposable - { - private const int BufferCount = D3D11.D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11InputLayout> layout; - private ComPtr<ID3D11Buffer> indexBuffer; - private DXGI_FORMAT indexFormat; - private uint indexOffset; - private D3D_PRIMITIVE_TOPOLOGY topology; - private fixed ulong buffers[BufferCount]; - private fixed uint strides[BufferCount]; - private fixed uint offsets[BufferCount]; - - /// <summary> - /// Creates a new instance of <see cref="InputAssemblerState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static InputAssemblerState From(ID3D11DeviceContext* ctx) - { - var state = default(InputAssemblerState); - state.context.Attach(ctx); - ctx->AddRef(); - ctx->IAGetInputLayout(state.layout.GetAddressOf()); - ctx->IAGetPrimitiveTopology(&state.topology); - ctx->IAGetIndexBuffer(state.indexBuffer.GetAddressOf(), &state.indexFormat, &state.indexOffset); - ctx->IAGetVertexBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers, state.strides, state.offsets); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (InputAssemblerState* pThis = &this) - { - ctx->IASetInputLayout(pThis->layout); - ctx->IASetPrimitiveTopology(pThis->topology); - ctx->IASetIndexBuffer(pThis->indexBuffer, pThis->indexFormat, pThis->indexOffset); - ctx->IASetVertexBuffers( - 0, - BufferCount, - (ID3D11Buffer**)pThis->buffers, - pThis->strides, - pThis->offsets); - - pThis->context.Dispose(); - pThis->layout.Dispose(); - pThis->indexBuffer.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - } - } - } - - /// <summary> - /// Captures Rasterizer states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct RasterizerState : IDisposable - { - private const int Count = D3D11.D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11RasterizerState> state; - private fixed byte viewports[24 * Count]; - private fixed ulong scissorRects[16 * Count]; - - /// <summary> - /// Creates a new instance of <see cref="RasterizerState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static RasterizerState From(ID3D11DeviceContext* ctx) - { - var state = default(RasterizerState); - state.context.Attach(ctx); - ctx->AddRef(); - ctx->RSGetState(state.state.GetAddressOf()); - uint n = Count; - ctx->RSGetViewports(&n, (D3D11_VIEWPORT*)state.viewports); - n = Count; - ctx->RSGetScissorRects(&n, (RECT*)state.scissorRects); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (RasterizerState* pThis = &this) - { - ctx->RSSetState(pThis->state); - ctx->RSSetViewports(Count, (D3D11_VIEWPORT*)pThis->viewports); - ctx->RSSetScissorRects(Count, (RECT*)pThis->scissorRects); - - pThis->context.Dispose(); - pThis->state.Dispose(); - } - } - } - - /// <summary> - /// Captures Output Merger states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct OutputMergerState : IDisposable - { - private const int RtvCount = D3D11.D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; - private const int UavCountMax = D3D11.D3D11_1_UAV_SLOT_COUNT; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11BlendState> blendState; - private fixed float blendFactor[4]; - private uint sampleMask; - private uint stencilRef; - private ComPtr<ID3D11DepthStencilState> depthStencilState; - private fixed ulong rtvs[RtvCount]; // ID3D11RenderTargetView*[RtvCount] - private ComPtr<ID3D11DepthStencilView> dsv; - private fixed ulong uavs[UavCountMax]; // ID3D11UnorderedAccessView*[UavCount] - private int uavCount; - - /// <summary> - /// Creates a new instance of <see cref="OutputMergerState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="featureLevel">The feature level.</param> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static OutputMergerState From(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) - { - var state = default(OutputMergerState); - state.uavCount = featureLevel >= D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_11_1 - ? D3D11.D3D11_1_UAV_SLOT_COUNT - : D3D11.D3D11_PS_CS_UAV_REGISTER_COUNT; - state.context.Attach(ctx); - ctx->AddRef(); - ctx->OMGetBlendState(state.blendState.GetAddressOf(), state.blendFactor, &state.sampleMask); - ctx->OMGetDepthStencilState(state.depthStencilState.GetAddressOf(), &state.stencilRef); - ctx->OMGetRenderTargetsAndUnorderedAccessViews( - RtvCount, - (ID3D11RenderTargetView**)state.rtvs, - state.dsv.GetAddressOf(), - 0, - (uint)state.uavCount, - (ID3D11UnorderedAccessView**)state.uavs); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (OutputMergerState* pThis = &this) - { - ctx->OMSetBlendState(pThis->blendState, pThis->blendFactor, pThis->sampleMask); - ctx->OMSetDepthStencilState(pThis->depthStencilState, pThis->stencilRef); - var rtvc = (uint)RtvCount; - while (rtvc > 0 && pThis->rtvs[rtvc - 1] == 0) - rtvc--; - - var uavlb = rtvc; - while (uavlb < this.uavCount && pThis->uavs[uavlb] == 0) - uavlb++; - - var uavc = (uint)this.uavCount; - while (uavc > uavlb && pThis->uavs[uavc - 1] == 0) - uavlb--; - uavc -= uavlb; - - ctx->OMSetRenderTargetsAndUnorderedAccessViews( - rtvc, - (ID3D11RenderTargetView**)pThis->rtvs, - pThis->dsv, - uavc == 0 ? 0 : uavlb, - uavc, - uavc == 0 ? null : (ID3D11UnorderedAccessView**)pThis->uavs, - null); - - this.context.Reset(); - this.blendState.Reset(); - this.depthStencilState.Reset(); - this.dsv.Reset(); - foreach (ref var b in new Span<ComPtr<ID3D11RenderTargetView>>(pThis->rtvs, RtvCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11UnorderedAccessView>>(pThis->uavs, this.uavCount)) - b.Dispose(); - } - } - } - - /// <summary> - /// Captures Vertex Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct VertexShaderState : IDisposable - { - private const int BufferCount = D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11VertexShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="VertexShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static VertexShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(VertexShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->VSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->VSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->VSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->VSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (VertexShaderState* pThis = &this) - { - ctx->VSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->VSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->VSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->VSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Hull Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct HullShaderState : IDisposable - { - private const int BufferCount = D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11HullShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="HullShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static HullShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(HullShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->HSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->HSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->HSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->HSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (HullShaderState* pThis = &this) - { - ctx->HSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->HSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->HSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->HSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Domain Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct DomainShaderState : IDisposable - { - private const int BufferCount = D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11DomainShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="DomainShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static DomainShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(DomainShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->DSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->DSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->DSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->DSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (DomainShaderState* pThis = &this) - { - ctx->DSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->DSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->DSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->DSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Geometry Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct GeometryShaderState : IDisposable - { - private const int BufferCount = D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11GeometryShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="GeometryShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static GeometryShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(GeometryShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->GSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->GSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->GSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->GSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (GeometryShaderState* pThis = &this) - { - ctx->GSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->GSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->GSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->GSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Pixel Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct PixelShaderState : IDisposable - { - private const int BufferCount = D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int ClassInstanceCount = 256; // According to msdn - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11PixelShader> shader; - private fixed ulong insts[ClassInstanceCount]; - private fixed ulong buffers[BufferCount]; - private fixed ulong samplers[SamplerCount]; - private fixed ulong resources[ResourceCount]; - private uint instCount; - - /// <summary> - /// Creates a new instance of <see cref="PixelShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static PixelShaderState From(ID3D11DeviceContext* ctx) - { - var state = default(PixelShaderState); - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = ClassInstanceCount; - ctx->PSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->PSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->PSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->PSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (PixelShaderState* pThis = &this) - { - ctx->PSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->PSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->PSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->PSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - - /// <summary> - /// Captures Compute Shader states of a <see cref="ID3D11DeviceContext"/>. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public struct ComputeShaderState : IDisposable - { - private const int BufferCount = D3D11.D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT; - private const int SamplerCount = D3D11.D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT; - private const int ResourceCount = D3D11.D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT; - private const int InstanceCount = 256; // According to msdn - private const int UavCountMax = D3D11.D3D11_1_UAV_SLOT_COUNT; - - private ComPtr<ID3D11DeviceContext> context; - private ComPtr<ID3D11ComputeShader> shader; - private fixed ulong insts[InstanceCount]; // ID3D11ClassInstance*[BufferCount] - private fixed ulong buffers[BufferCount]; // ID3D11Buffer*[BufferCount] - private fixed ulong samplers[SamplerCount]; // ID3D11SamplerState*[SamplerCount] - private fixed ulong resources[ResourceCount]; // ID3D11ShaderResourceView*[ResourceCount] - private fixed ulong uavs[UavCountMax]; // ID3D11UnorderedAccessView*[UavCountMax] - private uint instCount; - private int uavCount; - - /// <summary> - /// Creates a new instance of <see cref="ComputeShaderState"/> from <paramref name="ctx"/>. - /// </summary> - /// <param name="featureLevel">The feature level.</param> - /// <param name="ctx">The device context.</param> - /// <returns>The captured state.</returns> - public static ComputeShaderState From(D3D_FEATURE_LEVEL featureLevel, ID3D11DeviceContext* ctx) - { - var state = default(ComputeShaderState); - state.uavCount = featureLevel >= D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_11_1 - ? D3D11.D3D11_1_UAV_SLOT_COUNT - : D3D11.D3D11_PS_CS_UAV_REGISTER_COUNT; - state.context.Attach(ctx); - ctx->AddRef(); - state.instCount = InstanceCount; - ctx->CSGetShader(state.shader.GetAddressOf(), (ID3D11ClassInstance**)state.insts, &state.instCount); - ctx->CSGetConstantBuffers(0, BufferCount, (ID3D11Buffer**)state.buffers); - ctx->CSGetSamplers(0, SamplerCount, (ID3D11SamplerState**)state.samplers); - ctx->CSGetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)state.resources); - ctx->CSGetUnorderedAccessViews(0, (uint)state.uavCount, (ID3D11UnorderedAccessView**)state.uavs); - return state; - } - - /// <inheritdoc/> - public void Dispose() - { - var ctx = this.context.Get(); - if (ctx is null) - return; - - fixed (ComputeShaderState* pThis = &this) - { - ctx->CSSetShader(pThis->shader, (ID3D11ClassInstance**)pThis->insts, pThis->instCount); - ctx->CSSetConstantBuffers(0, BufferCount, (ID3D11Buffer**)pThis->buffers); - ctx->CSSetSamplers(0, SamplerCount, (ID3D11SamplerState**)pThis->samplers); - ctx->CSSetShaderResources(0, ResourceCount, (ID3D11ShaderResourceView**)pThis->resources); - ctx->CSSetUnorderedAccessViews( - 0, - (uint)this.uavCount, - (ID3D11UnorderedAccessView**)pThis->uavs, - null); - - foreach (ref var b in new Span<ComPtr<ID3D11Buffer>>(pThis->buffers, BufferCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11SamplerState>>(pThis->samplers, SamplerCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ShaderResourceView>>(pThis->resources, ResourceCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11ClassInstance>>(pThis->insts, (int)pThis->instCount)) - b.Dispose(); - foreach (ref var b in new Span<ComPtr<ID3D11UnorderedAccessView>>(pThis->uavs, this.uavCount)) - b.Dispose(); - pThis->context.Dispose(); - pThis->shader.Dispose(); - } - } - } - } -} diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.Common.hlsl b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.Common.hlsl deleted file mode 100644 index 17b53ba6c..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.Common.hlsl +++ /dev/null @@ -1,4 +0,0 @@ -cbuffer TransformationBuffer : register(b0) { - float4x4 g_view; - float4 g_colorMultiplier; -} diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.hlsl b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.hlsl deleted file mode 100644 index b1cdf2fd0..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.hlsl +++ /dev/null @@ -1,39 +0,0 @@ -#include "Renderer.Common.hlsl" - -struct ImDrawVert { - float2 position : POSITION; - float2 uv : TEXCOORD0; - float4 color : COLOR0; -}; - -struct VsData { - float4 position : SV_POSITION; - float2 uv : TEXCOORD0; - float4 color : COLOR0; -}; - -struct PsData { - float4 color : COLOR0; -}; - -Texture2D s_texture : register(t0); -SamplerState s_sampler : register(s0); - -VsData vs_main(const ImDrawVert idv) { - VsData result; - result.position = mul(g_view, float4(idv.position, 0, 1)); - result.uv = idv.uv; - result.color = idv.color; - return result; -} - -float4 ps_main(const VsData vd) : SV_TARGET { - return s_texture.Sample(s_sampler, vd.uv) * vd.color; -} - -/* - -fxc /Zi /T vs_5_0 /E vs_main /Fo Renderer.DrawToPremul.vs.bin Renderer.DrawToPremul.hlsl -fxc /Zi /T ps_5_0 /E ps_main /Fo Renderer.DrawToPremul.ps.bin Renderer.DrawToPremul.hlsl - -*/ diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.ps.bin b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.ps.bin deleted file mode 100644 index 80c297ce6..000000000 Binary files a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.ps.bin and /dev/null differ diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.vs.bin b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.vs.bin deleted file mode 100644 index 8549c1d65..000000000 Binary files a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.DrawToPremul.vs.bin and /dev/null differ diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.hlsl b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.hlsl deleted file mode 100644 index bce235d7f..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.hlsl +++ /dev/null @@ -1,19 +0,0 @@ -Texture2D s_texture : register(t0); - -float4 vs_main(const float2 position : POSITION) : SV_POSITION { - return float4(position, 0, 1); -} - -float4 ps_main(const float4 position : SV_POSITION) : SV_TARGET { - const float4 src = s_texture[position.xy]; - return src.a > 0 - ? float4(src.rgb / src.a, src.a) - : float4(0, 0, 0, 0); -} - -/* - -fxc /Zi /T vs_5_0 /E vs_main /Fo Renderer.MakeStraight.vs.bin Renderer.MakeStraight.hlsl -fxc /Zi /T ps_5_0 /E ps_main /Fo Renderer.MakeStraight.ps.bin Renderer.MakeStraight.hlsl - -*/ diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.ps.bin b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.ps.bin deleted file mode 100644 index 2892c7361..000000000 Binary files a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.ps.bin and /dev/null differ diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.vs.bin b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.vs.bin deleted file mode 100644 index 1bbe7e592..000000000 Binary files a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.MakeStraight.vs.bin and /dev/null differ diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.cs deleted file mode 100644 index 06b580de3..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/Renderer.cs +++ /dev/null @@ -1,595 +0,0 @@ -using System.Buffers; -using System.Diagnostics.CodeAnalysis; -using System.Numerics; -using System.Reflection; -using System.Runtime.InteropServices; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Internal; -using Dalamud.Interface.Utility; -using Dalamud.Utility; - -using TerraFX.Interop.DirectX; -using TerraFX.Interop.Windows; - -namespace Dalamud.Interface.Textures.TextureWraps.Internal; - -/// <inheritdoc cref="IDrawListTextureWrap"/> -internal sealed unsafe partial class DrawListTextureWrap -{ - /// <summary>The renderer.</summary> - [ServiceManager.EarlyLoadedService] - internal sealed class Renderer : IInternalDisposableService - { - private ComPtr<ID3D11Device> device; - private ComPtr<ID3D11DeviceContext> deviceContext; - - private ComPtr<ID3D11VertexShader> drawToPremulVertexShader; - private ComPtr<ID3D11PixelShader> drawToPremulPixelShader; - private ComPtr<ID3D11InputLayout> drawToPremulInputLayout; - private ComPtr<ID3D11Buffer> drawToPremulVertexBuffer; - private ComPtr<ID3D11Buffer> drawToPremulVertexConstantBuffer; - private ComPtr<ID3D11Buffer> drawToPremulIndexBuffer; - - private ComPtr<ID3D11VertexShader> makeStraightVertexShader; - private ComPtr<ID3D11PixelShader> makeStraightPixelShader; - private ComPtr<ID3D11InputLayout> makeStraightInputLayout; - private ComPtr<ID3D11Buffer> makeStraightVertexBuffer; - private ComPtr<ID3D11Buffer> makeStraightIndexBuffer; - - private ComPtr<ID3D11SamplerState> samplerState; - private ComPtr<ID3D11BlendState> blendState; - private ComPtr<ID3D11RasterizerState> rasterizerState; - private ComPtr<ID3D11DepthStencilState> depthStencilState; - private int vertexBufferSize; - private int indexBufferSize; - - [ServiceManager.ServiceConstructor] - private Renderer(InterfaceManager.InterfaceManagerWithScene iwms) - { - try - { - this.device = new((ID3D11Device*)iwms.Manager.Backend!.DeviceHandle); - fixed (ID3D11DeviceContext** p = &this.deviceContext.GetPinnableReference()) - this.device.Get()->GetImmediateContext(p); - this.deviceContext.Get()->AddRef(); - - this.Setup(); - } - catch - { - this.ReleaseUnmanagedResources(); - throw; - } - } - - /// <summary>Finalizes an instance of the <see cref="Renderer"/> class.</summary> - ~Renderer() => this.ReleaseUnmanagedResources(); - - /// <inheritdoc/> - public void DisposeService() => this.ReleaseUnmanagedResources(); - - /// <summary>Renders draw data.</summary> - /// <param name="prtv">The render target.</param> - /// <param name="drawData">Pointer to the draw data.</param> - public void RenderDrawData(ID3D11RenderTargetView* prtv, ImDrawDataPtr drawData) - { - ThreadSafety.AssertMainThread(); - - if (drawData.DisplaySize.X <= 0 || drawData.DisplaySize.Y <= 0 - || !drawData.Valid || drawData.CmdListsCount < 1) - return; - var cmdLists = new Span<ImDrawListPtr>(drawData.CmdLists, drawData.CmdListsCount); - - // Create and grow vertex/index buffers if needed - if (this.vertexBufferSize < drawData.TotalVtxCount) - this.drawToPremulVertexBuffer.Dispose(); - if (this.drawToPremulVertexBuffer.Get() is null) - { - this.vertexBufferSize = drawData.TotalVtxCount + 5000; - var desc = new D3D11_BUFFER_DESC( - (uint)(sizeof(ImDrawVert) * this.vertexBufferSize), - (uint)D3D11_BIND_FLAG.D3D11_BIND_VERTEX_BUFFER, - D3D11_USAGE.D3D11_USAGE_DYNAMIC, - (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); - var buffer = default(ID3D11Buffer*); - this.device.Get()->CreateBuffer(&desc, null, &buffer).ThrowOnError(); - this.drawToPremulVertexBuffer.Attach(buffer); - } - - if (this.indexBufferSize < drawData.TotalIdxCount) - this.drawToPremulIndexBuffer.Dispose(); - if (this.drawToPremulIndexBuffer.Get() is null) - { - this.indexBufferSize = drawData.TotalIdxCount + 5000; - var desc = new D3D11_BUFFER_DESC( - (uint)(sizeof(ushort) * this.indexBufferSize), - (uint)D3D11_BIND_FLAG.D3D11_BIND_INDEX_BUFFER, - D3D11_USAGE.D3D11_USAGE_DYNAMIC, - (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); - var buffer = default(ID3D11Buffer*); - this.device.Get()->CreateBuffer(&desc, null, &buffer).ThrowOnError(); - this.drawToPremulIndexBuffer.Attach(buffer); - } - - // Upload vertex/index data into a single contiguous GPU buffer - try - { - var vertexData = default(D3D11_MAPPED_SUBRESOURCE); - var indexData = default(D3D11_MAPPED_SUBRESOURCE); - this.deviceContext.Get()->Map( - (ID3D11Resource*)this.drawToPremulVertexBuffer.Get(), - 0, - D3D11_MAP.D3D11_MAP_WRITE_DISCARD, - 0, - &vertexData).ThrowOnError(); - this.deviceContext.Get()->Map( - (ID3D11Resource*)this.drawToPremulIndexBuffer.Get(), - 0, - D3D11_MAP.D3D11_MAP_WRITE_DISCARD, - 0, - &indexData).ThrowOnError(); - - var targetVertices = new Span<ImDrawVert>(vertexData.pData, this.vertexBufferSize); - var targetIndices = new Span<ushort>(indexData.pData, this.indexBufferSize); - foreach (ref var cmdList in cmdLists) - { - var vertices = new ImVectorWrapper<ImDrawVert>(cmdList.VtxBuffer.ToUntyped()); - var indices = new ImVectorWrapper<ushort>(cmdList.IdxBuffer.ToUntyped()); - - vertices.DataSpan.CopyTo(targetVertices); - indices.DataSpan.CopyTo(targetIndices); - - targetVertices = targetVertices[vertices.Length..]; - targetIndices = targetIndices[indices.Length..]; - } - } - finally - { - this.deviceContext.Get()->Unmap((ID3D11Resource*)this.drawToPremulVertexBuffer.Get(), 0); - this.deviceContext.Get()->Unmap((ID3D11Resource*)this.drawToPremulIndexBuffer.Get(), 0); - } - - // Setup orthographic projection matrix into our constant buffer. - // Our visible imgui space lies from DisplayPos (LT) to DisplayPos+DisplaySize (RB). - // DisplayPos is (0,0) for single viewport apps. - try - { - var data = default(D3D11_MAPPED_SUBRESOURCE); - this.deviceContext.Get()->Map( - (ID3D11Resource*)this.drawToPremulVertexConstantBuffer.Get(), - 0, - D3D11_MAP.D3D11_MAP_WRITE_DISCARD, - 0, - &data).ThrowOnError(); - ref var xform = ref *(TransformationBuffer*)data.pData; - xform.View = - Matrix4x4.CreateOrthographicOffCenter( - drawData.DisplayPos.X, - drawData.DisplayPos.X + drawData.DisplaySize.X, - drawData.DisplayPos.Y + drawData.DisplaySize.Y, - drawData.DisplayPos.Y, - 1f, - 0f); - } - finally - { - this.deviceContext.Get()->Unmap((ID3D11Resource*)this.drawToPremulVertexConstantBuffer.Get(), 0); - } - - // Set up render state - { - this.deviceContext.Get()->IASetInputLayout(this.drawToPremulInputLayout); - var buffer = this.drawToPremulVertexBuffer.Get(); - var stride = (uint)sizeof(ImDrawVert); - var offset = 0u; - this.deviceContext.Get()->IASetVertexBuffers(0, 1, &buffer, &stride, &offset); - this.deviceContext.Get()->IASetIndexBuffer( - this.drawToPremulIndexBuffer, - DXGI_FORMAT.DXGI_FORMAT_R16_UINT, - 0); - this.deviceContext.Get()->IASetPrimitiveTopology( - D3D_PRIMITIVE_TOPOLOGY.D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); - - var viewport = new D3D11_VIEWPORT( - 0, - 0, - drawData.DisplaySize.X * drawData.FramebufferScale.X, - drawData.DisplaySize.Y * drawData.FramebufferScale.Y); - this.deviceContext.Get()->RSSetState(this.rasterizerState); - this.deviceContext.Get()->RSSetViewports(1, &viewport); - - var blendColor = default(Vector4); - this.deviceContext.Get()->OMSetBlendState(this.blendState, (float*)&blendColor, 0xffffffff); - this.deviceContext.Get()->OMSetDepthStencilState(this.depthStencilState, 0); - this.deviceContext.Get()->OMSetRenderTargets(1, &prtv, null); - - this.deviceContext.Get()->VSSetShader(this.drawToPremulVertexShader.Get(), null, 0); - buffer = this.drawToPremulVertexConstantBuffer.Get(); - this.deviceContext.Get()->VSSetConstantBuffers(0, 1, &buffer); - - // PS handled later - - this.deviceContext.Get()->GSSetShader(null, null, 0); - this.deviceContext.Get()->HSSetShader(null, null, 0); - this.deviceContext.Get()->DSSetShader(null, null, 0); - this.deviceContext.Get()->CSSetShader(null, null, 0); - } - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - var vertexOffset = 0; - var indexOffset = 0; - var clipOff = new Vector4(drawData.DisplayPos, drawData.DisplayPos.X, drawData.DisplayPos.Y); - var frameBufferScaleV4 = - new Vector4(drawData.FramebufferScale, drawData.FramebufferScale.X, drawData.FramebufferScale.Y); - foreach (ref var cmdList in cmdLists) - { - var cmds = new ImVectorWrapper<ImDrawCmd>(cmdList.CmdBuffer.ToUntyped()); - foreach (ref var cmd in cmds.DataSpan) - { - var clipV4 = (cmd.ClipRect - clipOff) * frameBufferScaleV4; - var clipRect = new RECT((int)clipV4.X, (int)clipV4.Y, (int)clipV4.Z, (int)clipV4.W); - - // Skip the draw if nothing would be visible - if (clipRect.left >= clipRect.right || clipRect.top >= clipRect.bottom || cmd.ElemCount == 0) - continue; - - this.deviceContext.Get()->RSSetScissorRects(1, &clipRect); - - if (cmd.UserCallback == null) - { - // Bind texture and draw - var samplerp = this.samplerState.Get(); - var srvp = (ID3D11ShaderResourceView*)cmd.TextureId.Handle; - this.deviceContext.Get()->PSSetShader(this.drawToPremulPixelShader, null, 0); - this.deviceContext.Get()->PSSetSamplers(0, 1, &samplerp); - this.deviceContext.Get()->PSSetShaderResources(0, 1, &srvp); - this.deviceContext.Get()->DrawIndexed( - cmd.ElemCount, - (uint)(cmd.IdxOffset + indexOffset), - (int)(cmd.VtxOffset + vertexOffset)); - } - } - - indexOffset += cmdList.IdxBuffer.Size; - vertexOffset += cmdList.VtxBuffer.Size; - } - } - - /// <summary>Renders draw data.</summary> - /// <param name="psrv">The pointer to a Texture2D SRV to read premultiplied data from.</param> - /// <param name="prtv">The pointer to a Texture2D RTV to write straightened data.</param> - public void MakeStraight(ID3D11ShaderResourceView* psrv, ID3D11RenderTargetView* prtv) - { - ThreadSafety.AssertMainThread(); - - D3D11_TEXTURE2D_DESC texDesc; - using (var texRes = default(ComPtr<ID3D11Resource>)) - { - prtv->GetResource(texRes.GetAddressOf()); - - using var tex = default(ComPtr<ID3D11Texture2D>); - texRes.As(&tex).ThrowOnError(); - tex.Get()->GetDesc(&texDesc); - } - - this.deviceContext.Get()->IASetInputLayout(this.makeStraightInputLayout); - var buffer = this.makeStraightVertexBuffer.Get(); - var stride = (uint)sizeof(Vector2); - var offset = 0u; - this.deviceContext.Get()->IASetVertexBuffers(0, 1, &buffer, &stride, &offset); - this.deviceContext.Get()->IASetIndexBuffer( - this.makeStraightIndexBuffer, - DXGI_FORMAT.DXGI_FORMAT_R16_UINT, - 0); - this.deviceContext.Get()->IASetPrimitiveTopology( - D3D_PRIMITIVE_TOPOLOGY.D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); - - var scissorRect = new RECT(0, 0, (int)texDesc.Width, (int)texDesc.Height); - this.deviceContext.Get()->RSSetScissorRects(1, &scissorRect); - this.deviceContext.Get()->RSSetState(this.rasterizerState); - var viewport = new D3D11_VIEWPORT(0, 0, texDesc.Width, texDesc.Height); - this.deviceContext.Get()->RSSetViewports(1, &viewport); - - this.deviceContext.Get()->OMSetBlendState(null, null, 0xffffffff); - this.deviceContext.Get()->OMSetDepthStencilState(this.depthStencilState, 0); - this.deviceContext.Get()->OMSetRenderTargets(1, &prtv, null); - - this.deviceContext.Get()->VSSetShader(this.makeStraightVertexShader.Get(), null, 0); - this.deviceContext.Get()->PSSetShader(this.makeStraightPixelShader.Get(), null, 0); - this.deviceContext.Get()->GSSetShader(null, null, 0); - this.deviceContext.Get()->HSSetShader(null, null, 0); - this.deviceContext.Get()->DSSetShader(null, null, 0); - this.deviceContext.Get()->CSSetShader(null, null, 0); - - this.deviceContext.Get()->PSSetShaderResources(0, 1, &psrv); - this.deviceContext.Get()->DrawIndexed(6, 0, 0); - } - - [SuppressMessage( - "StyleCop.CSharp.LayoutRules", - "SA1519:Braces should not be omitted from multi-line child statement", - Justification = "Multiple fixed")] - private void Setup() - { - var assembly = Assembly.GetExecutingAssembly(); - var rendererName = typeof(Renderer).FullName!.Replace('+', '.'); - - if (this.drawToPremulVertexShader.IsEmpty() || this.drawToPremulInputLayout.IsEmpty()) - { - using var stream = assembly.GetManifestResourceStream($"{rendererName}.DrawToPremul.vs.bin")!; - var array = ArrayPool<byte>.Shared.Rent((int)stream.Length); - stream.ReadExactly(array, 0, (int)stream.Length); - - using var tempShader = default(ComPtr<ID3D11VertexShader>); - using var tempInputLayout = default(ComPtr<ID3D11InputLayout>); - - fixed (byte* pArray = array) - fixed (void* pszPosition = "POSITION"u8) - fixed (void* pszTexCoord = "TEXCOORD"u8) - fixed (void* pszColor = "COLOR"u8) - { - this.device.Get()->CreateVertexShader( - pArray, - (nuint)stream.Length, - null, - tempShader.GetAddressOf()).ThrowOnError(); - - var ied = stackalloc D3D11_INPUT_ELEMENT_DESC[] - { - new() - { - SemanticName = (sbyte*)pszPosition, - Format = DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT, - AlignedByteOffset = uint.MaxValue, - }, - new() - { - SemanticName = (sbyte*)pszTexCoord, - Format = DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT, - AlignedByteOffset = uint.MaxValue, - }, - new() - { - SemanticName = (sbyte*)pszColor, - Format = DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM, - AlignedByteOffset = uint.MaxValue, - }, - }; - this.device.Get()->CreateInputLayout( - ied, - 3, - pArray, - (nuint)stream.Length, - tempInputLayout.GetAddressOf()) - .ThrowOnError(); - } - - ArrayPool<byte>.Shared.Return(array); - - tempShader.Swap(ref this.drawToPremulVertexShader); - tempInputLayout.Swap(ref this.drawToPremulInputLayout); - } - - if (this.drawToPremulPixelShader.IsEmpty()) - { - using var stream = assembly.GetManifestResourceStream($"{rendererName}.DrawToPremul.ps.bin")!; - var array = ArrayPool<byte>.Shared.Rent((int)stream.Length); - stream.ReadExactly(array, 0, (int)stream.Length); - - using var tmp = default(ComPtr<ID3D11PixelShader>); - fixed (byte* pArray = array) - { - this.device.Get()->CreatePixelShader(pArray, (nuint)stream.Length, null, tmp.GetAddressOf()) - .ThrowOnError(); - } - - ArrayPool<byte>.Shared.Return(array); - - tmp.Swap(ref this.drawToPremulPixelShader); - } - - if (this.makeStraightVertexShader.IsEmpty() || this.makeStraightInputLayout.IsEmpty()) - { - using var stream = assembly.GetManifestResourceStream($"{rendererName}.MakeStraight.vs.bin")!; - var array = ArrayPool<byte>.Shared.Rent((int)stream.Length); - stream.ReadExactly(array, 0, (int)stream.Length); - - using var tempShader = default(ComPtr<ID3D11VertexShader>); - using var tempInputLayout = default(ComPtr<ID3D11InputLayout>); - - fixed (byte* pArray = array) - fixed (void* pszPosition = "POSITION"u8) - { - this.device.Get()->CreateVertexShader( - pArray, - (nuint)stream.Length, - null, - tempShader.GetAddressOf()).ThrowOnError(); - - var ied = stackalloc D3D11_INPUT_ELEMENT_DESC[] - { - new() - { - SemanticName = (sbyte*)pszPosition, - Format = DXGI_FORMAT.DXGI_FORMAT_R32G32_FLOAT, - AlignedByteOffset = uint.MaxValue, - }, - }; - this.device.Get()->CreateInputLayout( - ied, - 1, - pArray, - (nuint)stream.Length, - tempInputLayout.GetAddressOf()) - .ThrowOnError(); - } - - ArrayPool<byte>.Shared.Return(array); - - tempShader.Swap(ref this.makeStraightVertexShader); - tempInputLayout.Swap(ref this.makeStraightInputLayout); - } - - if (this.makeStraightPixelShader.IsEmpty()) - { - using var stream = assembly.GetManifestResourceStream($"{rendererName}.MakeStraight.ps.bin")!; - var array = ArrayPool<byte>.Shared.Rent((int)stream.Length); - stream.ReadExactly(array, 0, (int)stream.Length); - - using var tmp = default(ComPtr<ID3D11PixelShader>); - fixed (byte* pArray = array) - { - this.device.Get()->CreatePixelShader(pArray, (nuint)stream.Length, null, tmp.GetAddressOf()) - .ThrowOnError(); - } - - ArrayPool<byte>.Shared.Return(array); - - tmp.Swap(ref this.makeStraightPixelShader); - } - - if (this.makeStraightVertexBuffer.IsEmpty()) - { - using var tmp = default(ComPtr<ID3D11Buffer>); - var desc = new D3D11_BUFFER_DESC( - (uint)(sizeof(Vector2) * 4), - (uint)D3D11_BIND_FLAG.D3D11_BIND_VERTEX_BUFFER, - D3D11_USAGE.D3D11_USAGE_IMMUTABLE); - var data = stackalloc Vector2[] { new(-1, 1), new(-1, -1), new(1, 1), new(1, -1) }; - var subr = new D3D11_SUBRESOURCE_DATA { pSysMem = data }; - this.device.Get()->CreateBuffer(&desc, &subr, tmp.GetAddressOf()).ThrowOnError(); - tmp.Swap(ref this.makeStraightVertexBuffer); - } - - if (this.makeStraightIndexBuffer.IsEmpty()) - { - using var tmp = default(ComPtr<ID3D11Buffer>); - var desc = new D3D11_BUFFER_DESC( - sizeof(ushort) * 6, - (uint)D3D11_BIND_FLAG.D3D11_BIND_INDEX_BUFFER, - D3D11_USAGE.D3D11_USAGE_IMMUTABLE); - var data = stackalloc ushort[] { 0, 1, 2, 1, 2, 3 }; - var subr = new D3D11_SUBRESOURCE_DATA { pSysMem = data }; - this.device.Get()->CreateBuffer(&desc, &subr, tmp.GetAddressOf()).ThrowOnError(); - tmp.Swap(ref this.makeStraightIndexBuffer); - } - - if (this.drawToPremulVertexConstantBuffer.IsEmpty()) - { - using var tmp = default(ComPtr<ID3D11Buffer>); - var bufferDesc = new D3D11_BUFFER_DESC( - (uint)sizeof(TransformationBuffer), - (uint)D3D11_BIND_FLAG.D3D11_BIND_CONSTANT_BUFFER, - D3D11_USAGE.D3D11_USAGE_DYNAMIC, - (uint)D3D11_CPU_ACCESS_FLAG.D3D11_CPU_ACCESS_WRITE); - this.device.Get()->CreateBuffer(&bufferDesc, null, tmp.GetAddressOf()).ThrowOnError(); - - tmp.Swap(ref this.drawToPremulVertexConstantBuffer); - } - - if (this.samplerState.IsEmpty()) - { - using var tmp = default(ComPtr<ID3D11SamplerState>); - var samplerDesc = new D3D11_SAMPLER_DESC - { - Filter = D3D11_FILTER.D3D11_FILTER_MIN_MAG_MIP_LINEAR, - AddressU = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, - AddressV = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, - AddressW = D3D11_TEXTURE_ADDRESS_MODE.D3D11_TEXTURE_ADDRESS_WRAP, - MipLODBias = 0, - MaxAnisotropy = 0, - ComparisonFunc = D3D11_COMPARISON_FUNC.D3D11_COMPARISON_ALWAYS, - MinLOD = 0, - MaxLOD = 0, - }; - this.device.Get()->CreateSamplerState(&samplerDesc, tmp.GetAddressOf()).ThrowOnError(); - - tmp.Swap(ref this.samplerState); - } - - // Create the blending setup - if (this.blendState.IsEmpty()) - { - using var tmp = default(ComPtr<ID3D11BlendState>); - var blendStateDesc = new D3D11_BLEND_DESC - { - RenderTarget = - { - e0 = - { - BlendEnable = true, - SrcBlend = D3D11_BLEND.D3D11_BLEND_SRC_ALPHA, - DestBlend = D3D11_BLEND.D3D11_BLEND_INV_SRC_ALPHA, - BlendOp = D3D11_BLEND_OP.D3D11_BLEND_OP_ADD, - SrcBlendAlpha = D3D11_BLEND.D3D11_BLEND_INV_DEST_ALPHA, - DestBlendAlpha = D3D11_BLEND.D3D11_BLEND_ONE, - BlendOpAlpha = D3D11_BLEND_OP.D3D11_BLEND_OP_ADD, - RenderTargetWriteMask = (byte)D3D11_COLOR_WRITE_ENABLE.D3D11_COLOR_WRITE_ENABLE_ALL, - }, - }, - }; - this.device.Get()->CreateBlendState(&blendStateDesc, tmp.GetAddressOf()).ThrowOnError(); - - tmp.Swap(ref this.blendState); - } - - // Create the rasterizer state - if (this.rasterizerState.IsEmpty()) - { - using var tmp = default(ComPtr<ID3D11RasterizerState>); - var rasterizerDesc = new D3D11_RASTERIZER_DESC - { - FillMode = D3D11_FILL_MODE.D3D11_FILL_SOLID, - CullMode = D3D11_CULL_MODE.D3D11_CULL_NONE, - ScissorEnable = true, - DepthClipEnable = true, - }; - this.device.Get()->CreateRasterizerState(&rasterizerDesc, tmp.GetAddressOf()).ThrowOnError(); - - tmp.Swap(ref this.rasterizerState); - } - - // Create the depth-stencil State - if (this.depthStencilState.IsEmpty()) - { - using var tmp = default(ComPtr<ID3D11DepthStencilState>); - var dsDesc = new D3D11_DEPTH_STENCIL_DESC - { - DepthEnable = false, - StencilEnable = false, - }; - this.device.Get()->CreateDepthStencilState(&dsDesc, tmp.GetAddressOf()).ThrowOnError(); - - tmp.Swap(ref this.depthStencilState); - } - } - - private void ReleaseUnmanagedResources() - { - this.device.Reset(); - this.deviceContext.Reset(); - this.drawToPremulVertexShader.Reset(); - this.drawToPremulPixelShader.Reset(); - this.drawToPremulInputLayout.Reset(); - this.makeStraightVertexShader.Reset(); - this.makeStraightPixelShader.Reset(); - this.makeStraightInputLayout.Reset(); - this.samplerState.Reset(); - this.drawToPremulVertexConstantBuffer.Reset(); - this.blendState.Reset(); - this.rasterizerState.Reset(); - this.depthStencilState.Reset(); - this.drawToPremulVertexBuffer.Reset(); - this.drawToPremulIndexBuffer.Reset(); - } - - [StructLayout(LayoutKind.Sequential)] - private struct TransformationBuffer - { - public Matrix4x4 View; - public Vector4 ColorMultiplier; - } - } -} diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/WindowPrinter.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/WindowPrinter.cs deleted file mode 100644 index 18eaab37c..000000000 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/DrawListTextureWrap/WindowPrinter.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System.Numerics; - -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Interface.Textures.TextureWraps.Internal; - -/// <inheritdoc cref="IDrawListTextureWrap"/> -internal sealed unsafe partial class DrawListTextureWrap -{ - /// <inheritdoc/> - public void ResizeAndDrawWindow(ReadOnlySpan<char> windowName, Vector2 scale) - { - var window = ImGuiP.FindWindowByName(windowName); - if (window.IsNull) - throw new ArgumentException("Window not found", nameof(windowName)); - - this.Size = window.Size; - - var numDrawList = CountDrawList(window); - var drawLists = stackalloc ImDrawList*[numDrawList]; - var drawData = new ImDrawData - { - Valid = 1, - CmdListsCount = numDrawList, - TotalIdxCount = 0, - TotalVtxCount = 0, - CmdLists = drawLists, - DisplayPos = window.Pos, - DisplaySize = window.Size, - FramebufferScale = scale, - }; - AddWindowToDrawData(window, ref drawLists); - for (var i = 0; i < numDrawList; i++) - { - drawData.TotalVtxCount += drawData.CmdLists[i]->VtxBuffer.Size; - drawData.TotalIdxCount += drawData.CmdLists[i]->IdxBuffer.Size; - } - - this.Draw(drawData); - - return; - - static bool IsWindowActiveAndVisible(ImGuiWindowPtr window) => window is { Active: true, Hidden: false }; - - static void AddWindowToDrawData(ImGuiWindowPtr window, ref ImDrawList** wptr) - { - switch (window.DrawList.CmdBuffer.Size) - { - case 0: - case 1 when window.DrawList.CmdBuffer[0].ElemCount == 0 && - window.DrawList.CmdBuffer[0].UserCallback == null: - break; - default: - *wptr++ = window.DrawList; - break; - } - - for (var i = 0; i < window.DC.ChildWindows.Size; i++) - { - var child = window.DC.ChildWindows[i]; - if (IsWindowActiveAndVisible(child)) // Clipped children may have been marked not active - AddWindowToDrawData(child, ref wptr); - } - } - - static int CountDrawList(ImGuiWindowPtr window) - { - var res = window.DrawList.CmdBuffer.Size switch - { - 0 => 0, - 1 when window.DrawList.CmdBuffer[0].ElemCount == 0 && - window.DrawList.CmdBuffer[0].UserCallback == null => 0, - _ => 1, - }; - for (var i = 0; i < window.DC.ChildWindows.Size; i++) - res += CountDrawList(window.DC.ChildWindows[i]); - return res; - } - } -} diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs index f0a9a474f..ec23d7d03 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/UnknownTextureWrap.cs @@ -1,6 +1,5 @@ using System.Threading; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; using Dalamud.Utility; @@ -16,7 +15,7 @@ internal sealed unsafe class UnknownTextureWrap : IDalamudTextureWrap, IDeferred /// <summary>Initializes a new instance of the <see cref="UnknownTextureWrap"/> class.</summary> /// <param name="unknown">The pointer to <see cref="IUnknown"/> that is suitable for use with - /// <see cref="IDalamudTextureWrap.Handle"/>.</param> + /// <see cref="IDalamudTextureWrap.ImGuiHandle"/>.</param> /// <param name="width">The width of the texture.</param> /// <param name="height">The height of the texture.</param> /// <param name="callAddRef">If <c>true</c>, call <see cref="IUnknown.AddRef"/>.</param> @@ -34,10 +33,10 @@ internal sealed unsafe class UnknownTextureWrap : IDalamudTextureWrap, IDeferred ~UnknownTextureWrap() => this.Dispose(false); /// <inheritdoc/> - public ImTextureID Handle => + public nint ImGuiHandle => this.imGuiHandle == nint.Zero ? throw new ObjectDisposedException(nameof(UnknownTextureWrap)) - : new ImTextureID(this.imGuiHandle); + : this.imGuiHandle; /// <inheritdoc/> public int Width { get; } diff --git a/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs b/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs index d4407d76a..6e21bc0e8 100644 --- a/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs +++ b/Dalamud/Interface/Textures/TextureWraps/Internal/ViewportTextureWrap.cs @@ -2,7 +2,6 @@ using System.Diagnostics; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Game; using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.Internal; @@ -10,6 +9,8 @@ using Dalamud.Plugin.Internal.Types; using Dalamud.Storage.Assets; using Dalamud.Utility; +using ImGuiNET; + using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -52,12 +53,12 @@ internal sealed class ViewportTextureWrap : IDalamudTextureWrap, IDeferredDispos ~ViewportTextureWrap() => this.Dispose(false); /// <inheritdoc/> - public unsafe ImTextureID Handle + public unsafe nint ImGuiHandle { get { var t = (nint)this.srv.Get(); - return t == nint.Zero ? Service<DalamudAssetManager>.Get().Empty4X4.Handle : new ImTextureID(this.srv.Get()); + return t == nint.Zero ? Service<DalamudAssetManager>.Get().Empty4X4.ImGuiHandle : t; } } diff --git a/Dalamud/Interface/TitleScreenMenu/TitleScreenMenu.cs b/Dalamud/Interface/TitleScreenMenu/TitleScreenMenu.cs index cf849a1ef..6f98b9757 100644 --- a/Dalamud/Interface/TitleScreenMenu/TitleScreenMenu.cs +++ b/Dalamud/Interface/TitleScreenMenu/TitleScreenMenu.cs @@ -1,9 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Dalamud.Game.ClientState.Keys; -using Dalamud.Interface.Textures; +using Dalamud.Interface.Internal; +using Dalamud.Interface.Textures.TextureWraps; using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Plugin.Services; @@ -22,7 +23,7 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu /// </summary> internal const uint TextureSize = 64; - private readonly List<TitleScreenMenuEntry> entries = []; + private readonly List<TitleScreenMenuEntry> entries = new(); private TitleScreenMenuEntry[]? entriesView; [ServiceManager.ServiceConstructor] @@ -42,7 +43,7 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu { lock (this.entries) { - if (this.entries.Count == 0) + if (!this.entries.Any()) return Array.Empty<TitleScreenMenuEntry>(); return this.entriesView ??= this.entries.OrderByDescending(x => x.IsInternal).ToArray(); @@ -59,14 +60,14 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu { lock (this.entries) { - if (this.entries.Count == 0) + if (!this.entries.Any()) return Array.Empty<TitleScreenMenuEntry>(); return this.entriesView ??= this.entries.OrderByDescending(x => x.IsInternal).ToArray(); } } } - + /// <summary> /// Adds a new entry to the title screen menu. /// </summary> @@ -75,13 +76,18 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu /// <param name="onTriggered">The action to execute when the option is selected.</param> /// <returns>A <see cref="TitleScreenMenu"/> object that can be used to manage the entry.</returns> /// <exception cref="ArgumentException">Thrown when the texture provided does not match the required resolution(64x64).</exception> - public ITitleScreenMenuEntry AddPluginEntry(string text, ISharedImmediateTexture texture, Action onTriggered) + public ITitleScreenMenuEntry AddPluginEntry(string text, IDalamudTextureWrap texture, Action onTriggered) { + if (texture.Height != TextureSize || texture.Width != TextureSize) + { + throw new ArgumentException("Texture must be 64x64"); + } + TitleScreenMenuEntry entry; lock (this.entries) { var entriesOfAssembly = this.entries.Where(x => x.CallingAssembly == Assembly.GetCallingAssembly()).ToList(); - var priority = entriesOfAssembly.Count != 0 + var priority = entriesOfAssembly.Any() ? unchecked(entriesOfAssembly.Select(x => x.Priority).Max() + 1) : 0; entry = new(Assembly.GetCallingAssembly(), priority, text, texture, onTriggered); @@ -97,13 +103,13 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu } /// <inheritdoc/> - public IReadOnlyTitleScreenMenuEntry AddEntry(string text, ISharedImmediateTexture texture, Action onTriggered) + public IReadOnlyTitleScreenMenuEntry AddEntry(string text, IDalamudTextureWrap texture, Action onTriggered) { return this.AddPluginEntry(text, texture, onTriggered); } /// <inheritdoc/> - public IReadOnlyTitleScreenMenuEntry AddEntry(ulong priority, string text, ISharedImmediateTexture texture, Action onTriggered) + public IReadOnlyTitleScreenMenuEntry AddEntry(ulong priority, string text, IDalamudTextureWrap texture, Action onTriggered) { return this.AddPluginEntry(priority, text, texture, onTriggered); } @@ -117,8 +123,13 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu /// <param name="onTriggered">The action to execute when the option is selected.</param> /// <returns>A <see cref="TitleScreenMenu"/> object that can be used to manage the entry.</returns> /// <exception cref="ArgumentException">Thrown when the texture provided does not match the required resolution(64x64).</exception> - public ITitleScreenMenuEntry AddPluginEntry(ulong priority, string text, ISharedImmediateTexture texture, Action onTriggered) + public ITitleScreenMenuEntry AddPluginEntry(ulong priority, string text, IDalamudTextureWrap texture, Action onTriggered) { + if (texture.Height != TextureSize || texture.Width != TextureSize) + { + throw new ArgumentException("Texture must be 64x64"); + } + TitleScreenMenuEntry entry; lock (this.entries) { @@ -155,8 +166,13 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu /// <param name="onTriggered">The action to execute when the option is selected.</param> /// <returns>A <see cref="TitleScreenMenu"/> object that can be used to manage the entry.</returns> /// <exception cref="ArgumentException">Thrown when the texture provided does not match the required resolution(64x64).</exception> - internal TitleScreenMenuEntry AddEntryCore(ulong priority, string text, ISharedImmediateTexture texture, Action onTriggered) + internal TitleScreenMenuEntry AddEntryCore(ulong priority, string text, IDalamudTextureWrap texture, Action onTriggered) { + if (texture.Height != TextureSize || texture.Width != TextureSize) + { + throw new ArgumentException("Texture must be 64x64"); + } + TitleScreenMenuEntry entry; lock (this.entries) { @@ -183,15 +199,20 @@ internal class TitleScreenMenu : IServiceType, ITitleScreenMenu /// <exception cref="ArgumentException">Thrown when the texture provided does not match the required resolution(64x64).</exception> internal TitleScreenMenuEntry AddEntryCore( string text, - ISharedImmediateTexture texture, + IDalamudTextureWrap texture, Action onTriggered, params VirtualKey[] showConditionKeys) { + if (texture.Height != TextureSize || texture.Width != TextureSize) + { + throw new ArgumentException("Texture must be 64x64"); + } + TitleScreenMenuEntry entry; lock (this.entries) { var entriesOfAssembly = this.entries.Where(x => x.CallingAssembly == null).ToList(); - var priority = entriesOfAssembly.Count != 0 + var priority = entriesOfAssembly.Any() ? unchecked(entriesOfAssembly.Select(x => x.Priority).Max() + 1) : 0; entry = new(null, priority, text, texture, onTriggered, showConditionKeys) @@ -219,8 +240,8 @@ internal class TitleScreenMenuPluginScoped : IInternalDisposableService, ITitleS { [ServiceManager.ServiceDependency] private readonly TitleScreenMenu titleScreenMenuService = Service<TitleScreenMenu>.Get(); - - private readonly List<IReadOnlyTitleScreenMenuEntry> pluginEntries = []; + + private readonly List<IReadOnlyTitleScreenMenuEntry> pluginEntries = new(); /// <inheritdoc/> public IReadOnlyList<IReadOnlyTitleScreenMenuEntry>? Entries => this.titleScreenMenuService.Entries; @@ -233,25 +254,25 @@ internal class TitleScreenMenuPluginScoped : IInternalDisposableService, ITitleS this.titleScreenMenuService.RemoveEntry(entry); } } - + /// <inheritdoc/> - public IReadOnlyTitleScreenMenuEntry AddEntry(string text, ISharedImmediateTexture texture, Action onTriggered) + public IReadOnlyTitleScreenMenuEntry AddEntry(string text, IDalamudTextureWrap texture, Action onTriggered) { var entry = this.titleScreenMenuService.AddPluginEntry(text, texture, onTriggered); this.pluginEntries.Add(entry); return entry; } - + /// <inheritdoc/> - public IReadOnlyTitleScreenMenuEntry AddEntry(ulong priority, string text, ISharedImmediateTexture texture, Action onTriggered) + public IReadOnlyTitleScreenMenuEntry AddEntry(ulong priority, string text, IDalamudTextureWrap texture, Action onTriggered) { var entry = this.titleScreenMenuService.AddPluginEntry(priority, text, texture, onTriggered); this.pluginEntries.Add(entry); return entry; } - + /// <inheritdoc/> public void RemoveEntry(IReadOnlyTitleScreenMenuEntry entry) { diff --git a/Dalamud/Interface/TitleScreenMenu/TitleScreenMenuEntry.cs b/Dalamud/Interface/TitleScreenMenu/TitleScreenMenuEntry.cs index 1596db447..2acb275ad 100644 --- a/Dalamud/Interface/TitleScreenMenu/TitleScreenMenuEntry.cs +++ b/Dalamud/Interface/TitleScreenMenu/TitleScreenMenuEntry.cs @@ -4,7 +4,8 @@ using System.Linq; using System.Reflection; using Dalamud.Game.ClientState.Keys; -using Dalamud.Interface.Textures; +using Dalamud.Interface.Internal; +using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Interface; @@ -14,7 +15,7 @@ namespace Dalamud.Interface; public interface ITitleScreenMenuEntry : IReadOnlyTitleScreenMenuEntry, IComparable<TitleScreenMenuEntry> { /// <summary> - /// Gets or sets a value indicating whether this entry is internal. + /// Gets or sets a value indicating whether or not this entry is internal. /// </summary> bool IsInternal { get; set; } @@ -63,7 +64,7 @@ public interface IReadOnlyTitleScreenMenuEntry /// <summary> /// Gets the texture of this entry. /// </summary> - ISharedImmediateTexture Texture { get; } + IDalamudTextureWrap Texture { get; } } /// <summary> @@ -86,7 +87,7 @@ public class TitleScreenMenuEntry : ITitleScreenMenuEntry Assembly? callingAssembly, ulong priority, string text, - ISharedImmediateTexture texture, + IDalamudTextureWrap texture, Action onTriggered, IEnumerable<VirtualKey>? showConditionKeys = null) { @@ -105,8 +106,8 @@ public class TitleScreenMenuEntry : ITitleScreenMenuEntry public string Name { get; set; } /// <inheritdoc/> - public ISharedImmediateTexture Texture { get; set; } - + public IDalamudTextureWrap Texture { get; set; } + /// <inheritdoc/> public bool IsInternal { get; set; } diff --git a/Dalamud/Interface/UiBuilder.cs b/Dalamud/Interface/UiBuilder.cs index d2b4b655e..1413f3347 100644 --- a/Dalamud/Interface/UiBuilder.cs +++ b/Dalamud/Interface/UiBuilder.cs @@ -1,9 +1,7 @@ using System.Collections.Generic; using System.Diagnostics; -using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Game; using Dalamud.Game.ClientState; @@ -11,13 +9,18 @@ using Dalamud.Game.ClientState.Conditions; using Dalamud.Game.Gui; using Dalamud.Interface.FontIdentifier; using Dalamud.Interface.Internal; +using Dalamud.Interface.Internal.ManagedAsserts; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Plugin.Internal.Types; using Dalamud.Utility; +using ImGuiNET; + using Serilog; +using SharpDX.Direct3D11; + namespace Dalamud.Interface; /// <summary> @@ -59,15 +62,6 @@ public interface IUiBuilder /// </summary> event Action? HideUi; - /// <inheritdoc cref="InterfaceManager.DefaultGlobalScaleChanged"/> - event Action? DefaultGlobalScaleChanged; - - /// <inheritdoc cref="InterfaceManager.DefaultFontChanged"/> - event Action? DefaultFontChanged; - - /// <inheritdoc cref="InterfaceManager.DefaultStyleChanged"/> - event Action? DefaultStyleChanged; - /// <summary> /// Gets the handle to the default Dalamud font - supporting all game languages and icons. /// </summary> @@ -124,45 +118,14 @@ public interface IUiBuilder IFontSpec DefaultFontSpec { get; } /// <summary> - /// Gets the default Dalamud font size in points. + /// Gets the game's active Direct3D device. /// </summary> - public float FontDefaultSizePt { get; } + Device Device { get; } /// <summary> - /// Gets the default Dalamud font size in pixels. + /// Gets the game's main window handle. /// </summary> - public float FontDefaultSizePx { get; } - - /// <summary> - /// Gets the default Dalamud font - supporting all game languages and icons.<br /> - /// <strong>Accessing this static property outside of <see cref="Draw"/> is dangerous and not supported.</strong> - /// </summary> - public ImFontPtr FontDefault { get; } - - /// <summary> - /// Gets the default Dalamud icon font based on FontAwesome 5 Free solid.<br /> - /// <strong>Accessing this static property outside of <see cref="Draw"/> is dangerous and not supported.</strong> - /// </summary> - public ImFontPtr FontIcon { get; } - - /// <summary> - /// Gets the default Dalamud monospaced font based on Inconsolata Regular.<br /> - /// <strong>Accessing this static property outside of <see cref="Draw"/> is dangerous and not supported.</strong> - /// </summary> - public ImFontPtr FontMono { get; } - - /// <summary>Gets the game's active Direct3D device.</summary> - /// <value>Pointer to the instance of IUnknown that the game is using and should be containing an ID3D11Device, - /// or 0 if it is not available yet.</value> - /// <remarks>Use - /// <a href="https://learn.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-queryinterface(q)"> - /// QueryInterface</a> with IID of <c>IID_ID3D11Device</c> if you want to ensure that the interface type contained - /// within is indeed an instance of ID3D11Device.</remarks> - nint DeviceHandle { get; } - - /// <summary>Gets the game's main window handle.</summary> - /// <value>HWND of the main game window, or 0 if it is not available yet.</value> - nint WindowHandlePtr { get; } + IntPtr WindowHandlePtr { get; } /// <summary> /// Gets or sets a value indicating whether this plugin should hide its UI automatically when the game's UI is hidden. @@ -185,7 +148,7 @@ public interface IUiBuilder bool DisableGposeUiHide { get; set; } /// <summary> - /// Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor. + /// Gets or sets a value indicating whether or not the game's cursor should be overridden with the ImGui cursor. /// </summary> bool OverrideGameCursor { get; set; } @@ -195,7 +158,7 @@ public interface IUiBuilder ulong FrameCount { get; } /// <summary> - /// Gets a value indicating whether a cutscene is playing. + /// Gets a value indicating whether or not a cutscene is playing. /// </summary> bool CutsceneActive { get; } @@ -215,17 +178,11 @@ public interface IUiBuilder IFontAtlas FontAtlas { get; } /// <summary> - /// Gets a value indicating whether to use "reduced motion". This usually means that you should use less + /// Gets a value indicating whether or not to use "reduced motion". This usually means that you should use less /// intrusive animations, or disable them entirely. /// </summary> bool ShouldUseReducedMotion { get; } - /// <summary> - /// Gets a value indicating whether the user has enabled the "Enable sound effects for plugin windows" setting.<br /> - /// This setting is effected by the in-game "System Sounds" option and volume. - /// </summary> - bool PluginUISoundEffectsEnabled { get; } - /// <summary> /// Loads an ULD file that can load textures containing multiple icons in a single texture. /// </summary> @@ -323,15 +280,6 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.interfaceManager.ResizeBuffers += this.OnResizeBuffers; this.scopedFinalizer.Add(() => this.interfaceManager.ResizeBuffers -= this.OnResizeBuffers); - this.interfaceManager.DefaultStyleChanged += this.OnDefaultStyleChanged; - this.scopedFinalizer.Add(() => this.interfaceManager.DefaultStyleChanged -= this.OnDefaultStyleChanged); - - this.interfaceManager.DefaultGlobalScaleChanged += this.OnDefaultGlobalScaleChanged; - this.scopedFinalizer.Add(() => this.interfaceManager.DefaultGlobalScaleChanged -= this.OnDefaultGlobalScaleChanged); - - this.interfaceManager.DefaultFontChanged += this.OnDefaultFontChanged; - this.scopedFinalizer.Add(() => this.interfaceManager.DefaultFontChanged -= this.OnDefaultFontChanged); - this.FontAtlas = this.scopedFinalizer .Add( @@ -364,15 +312,6 @@ public sealed class UiBuilder : IDisposable, IUiBuilder /// <inheritdoc/> public event Action? HideUi; - /// <inheritdoc/> - public event Action? DefaultGlobalScaleChanged; - - /// <inheritdoc/> - public event Action? DefaultFontChanged; - - /// <inheritdoc/> - public event Action? DefaultStyleChanged; - /// <summary> /// Gets the default Dalamud font size in points. /// </summary> @@ -406,21 +345,6 @@ public sealed class UiBuilder : IDisposable, IUiBuilder /// </summary> public IFontSpec DefaultFontSpec => Service<FontAtlasFactory>.Get().DefaultFontSpec; - /// <inheritdoc/> - public float FontDefaultSizePt => Service<FontAtlasFactory>.Get().DefaultFontSpec.SizePt; - - /// <inheritdoc/> - public float FontDefaultSizePx => Service<FontAtlasFactory>.Get().DefaultFontSpec.SizePx; - - /// <inheritdoc/> - public ImFontPtr FontDefault => InterfaceManager.DefaultFont; - - /// <inheritdoc/> - public ImFontPtr FontIcon => InterfaceManager.IconFont; - - /// <inheritdoc/> - public ImFontPtr FontMono => InterfaceManager.MonoFont; - /// <summary> /// Gets the handle to the default Dalamud font - supporting all game languages and icons. /// </summary> @@ -491,11 +415,15 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.InterfaceManagerWithScene?.MonoFontHandle ?? throw new InvalidOperationException("Scene is not yet ready."))); - /// <inheritdoc/> - public nint DeviceHandle => this.InterfaceManagerWithScene?.Backend?.DeviceHandle ?? 0; + /// <summary> + /// Gets the game's active Direct3D device. + /// </summary> + public Device Device => this.InterfaceManagerWithScene!.Device!; - /// <inheritdoc/> - public nint WindowHandlePtr => this.InterfaceManagerWithScene is { } imws ? imws.GameWindowHandle : 0; + /// <summary> + /// Gets the game's main window handle. + /// </summary> + public IntPtr WindowHandlePtr => this.InterfaceManagerWithScene!.WindowHandlePtr; /// <summary> /// Gets or sets a value indicating whether this plugin should hide its UI automatically when the game's UI is hidden. @@ -518,7 +446,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder public bool DisableGposeUiHide { get; set; } = false; /// <summary> - /// Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor. + /// Gets or sets a value indicating whether or not the game's cursor should be overridden with the ImGui cursor. /// </summary> public bool OverrideGameCursor { @@ -532,7 +460,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder public ulong FrameCount { get; private set; } = 0; /// <summary> - /// Gets a value indicating whether a cutscene is playing. + /// Gets a value indicating whether or not a cutscene is playing. /// </summary> public bool CutsceneActive { @@ -562,14 +490,11 @@ public sealed class UiBuilder : IDisposable, IUiBuilder public IFontAtlas FontAtlas { get; } /// <summary> - /// Gets a value indicating whether to use "reduced motion". This usually means that you should use less + /// Gets a value indicating whether or not to use "reduced motion". This usually means that you should use less /// intrusive animations, or disable them entirely. /// </summary> public bool ShouldUseReducedMotion => Service<DalamudConfiguration>.Get().ReduceMotions ?? false; - /// <inheritdoc /> - public bool PluginUISoundEffectsEnabled => Service<DalamudConfiguration>.Get().EnablePluginUISoundEffects; - /// <summary> /// Gets or sets a value indicating whether statistics about UI draw time should be collected. /// </summary> @@ -602,7 +527,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder /// <summary> /// Gets or sets a history of the last draw times, used to calculate an average. /// </summary> - internal List<long> DrawTimeHistory { get; set; } = []; + internal List<long> DrawTimeHistory { get; set; } = new List<long>(); private InterfaceManager? InterfaceManagerWithScene => Service<InterfaceManager.InterfaceManagerWithScene>.GetNullable()?.Manager; @@ -686,14 +611,13 @@ public sealed class UiBuilder : IDisposable, IUiBuilder FontAtlasAutoRebuildMode autoRebuildMode, bool isGlobalScaled = true, string? debugName = null) => - this.scopedFinalizer.Add( - Service<FontAtlasFactory> - .Get() - .CreateFontAtlas( - this.namespaceName + ":" + (debugName ?? "custom"), - autoRebuildMode, - isGlobalScaled, - this.plugin)); + this.scopedFinalizer.Add(Service<FontAtlasFactory> + .Get() + .CreateFontAtlas( + this.namespaceName + ":" + (debugName ?? "custom"), + autoRebuildMode, + isGlobalScaled, + this.plugin)); /// <summary> /// Unregister the UiBuilder. Do not call this in plugin code. @@ -776,22 +700,21 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.stopwatch.Restart(); } - if (this.hasErrorWindow) + if (this.hasErrorWindow && ImGui.Begin($"{this.namespaceName} Error", ref this.hasErrorWindow, ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize)) { - if (ImGui.Begin($"{this.namespaceName} Error", ref this.hasErrorWindow, ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize)) - { - ImGui.Text($"The plugin {this.namespaceName} ran into an error.\nContact the plugin developer for support.\n\nPlease try restarting your game."); - ImGui.Spacing(); + ImGui.Text($"The plugin {this.namespaceName} ran into an error.\nContact the plugin developer for support.\n\nPlease try restarting your game."); + ImGui.Spacing(); - if (ImGui.Button("OK"u8)) - { - this.hasErrorWindow = false; - } + if (ImGui.Button("OK")) + { + this.hasErrorWindow = false; } ImGui.End(); } + var snapshot = this.Draw is null ? null : ImGuiManagedAsserts.GetSnapshot(); + try { this.Draw?.InvokeSafely(); @@ -805,6 +728,10 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.hasErrorWindow = true; } + // Only if Draw was successful + if (this.Draw is not null && snapshot is not null) + ImGuiManagedAsserts.ReportProblems(this.namespaceName, snapshot); + this.FrameCount++; if (DoStats) @@ -826,15 +753,6 @@ public sealed class UiBuilder : IDisposable, IUiBuilder this.ResizeBuffers?.InvokeSafely(); } - private void OnDefaultStyleChanged() - => this.DefaultStyleChanged.InvokeSafely(); - - private void OnDefaultGlobalScaleChanged() - => this.DefaultGlobalScaleChanged.InvokeSafely(); - - private void OnDefaultFontChanged() - => this.DefaultFontChanged.InvokeSafely(); - private class FontHandleWrapper : IFontHandle { private IFontHandle? wrapped; @@ -864,15 +782,6 @@ public sealed class UiBuilder : IDisposable, IUiBuilder // Note: do not dispose w; we do not own it } - public ILockedImFont? TryLock(out string? errorMessage) - { - if (this.wrapped is { } w) - return w.TryLock(out errorMessage); - - errorMessage = nameof(ObjectDisposedException); - return null; - } - public ILockedImFont Lock() => this.wrapped?.Lock() ?? throw new ObjectDisposedException(nameof(FontHandleWrapper)); @@ -881,13 +790,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder public void Pop() => this.WrappedNotDisposed.Pop(); public Task<IFontHandle> WaitAsync() => - this.wrapped?.WaitAsync().ContinueWith(_ => (IFontHandle)this) - ?? Task.FromException<IFontHandle>(new ObjectDisposedException(nameof(FontHandleWrapper))); - - public Task<IFontHandle> WaitAsync(CancellationToken cancellationToken) => - this.wrapped?.WaitAsync(cancellationToken) - .ContinueWith(_ => (IFontHandle)this, cancellationToken) - ?? Task.FromException<IFontHandle>(new ObjectDisposedException(nameof(FontHandleWrapper))); + this.WrappedNotDisposed.WaitAsync().ContinueWith(_ => (IFontHandle)this); public override string ToString() => $"{nameof(FontHandleWrapper)}({this.wrapped?.ToString() ?? "disposed"})"; diff --git a/Dalamud/Interface/UldWrapper.cs b/Dalamud/Interface/UldWrapper.cs index 48c6a114d..85a2d8344 100644 --- a/Dalamud/Interface/UldWrapper.cs +++ b/Dalamud/Interface/UldWrapper.cs @@ -7,7 +7,6 @@ using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Utility; - using Lumina.Data.Files; using Lumina.Data.Parsing.Uld; @@ -18,7 +17,7 @@ public class UldWrapper : IDisposable { private readonly DataManager data; private readonly TextureManager textureManager; - private readonly Dictionary<string, (uint Id, int Width, int Height, bool HD, byte[] RgbaData)> textures = []; + private readonly Dictionary<string, (uint Id, int Width, int Height, bool HD, byte[] RgbaData)> textures = new(); /// <summary> Initializes a new instance of the <see cref="UldWrapper"/> class, wrapping an ULD file. </summary> /// <param name="uiBuilder">The UiBuilder used to load textures.</param> diff --git a/Dalamud/Interface/Utility/BufferBackedImDrawData.cs b/Dalamud/Interface/Utility/BufferBackedImDrawData.cs deleted file mode 100644 index e6128992a..000000000 --- a/Dalamud/Interface/Utility/BufferBackedImDrawData.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Interface.Utility; - -/// <summary>Wrapper aroundx <see cref="ImDrawData"/> containing one <see cref="ImDrawList"/>.</summary> -public unsafe struct BufferBackedImDrawData : IDisposable -{ - private nint buffer; - - /// <summary>Initializes a new instance of the <see cref="BufferBackedImDrawData"/> struct.</summary> - /// <param name="buffer">Address of buffer to use.</param> - private BufferBackedImDrawData(nint buffer) => this.buffer = buffer; - - /// <summary>Gets the <see cref="ImDrawData"/> stored in this buffer.</summary> - public readonly ref ImDrawData Data => ref ((DataStruct*)this.buffer)->Data; - - /// <summary>Gets the <see cref="ImDrawDataPtr"/> stored in this buffer.</summary> - public readonly ImDrawDataPtr DataPtr => new((ImDrawData*)Unsafe.AsPointer(ref this.Data)); - - /// <summary>Gets the <see cref="ImDrawList"/> stored in this buffer.</summary> - public readonly ref ImDrawList List => ref ((DataStruct*)this.buffer)->List; - - /// <summary>Gets the <see cref="ImDrawListPtr"/> stored in this buffer.</summary> - public readonly ImDrawListPtr ListPtr => new((ImDrawList*)Unsafe.AsPointer(ref this.List)); - - /// <summary>Creates a new instance of <see cref="BufferBackedImDrawData"/>.</summary> - /// <returns>A new instance of <see cref="BufferBackedImDrawData"/>.</returns> - public static BufferBackedImDrawData Create() - { - if (ImGui.GetCurrentContext().IsNull || ImGui.GetIO().FontDefault.Handle is null) - throw new("ImGui is not ready"); - - var res = new BufferBackedImDrawData(Marshal.AllocHGlobal(sizeof(DataStruct))); - var ds = (DataStruct*)res.buffer; - *ds = default; - - var atlas = ImGui.GetIO().Fonts; - ds->SharedData = *ImGui.GetDrawListSharedData().Handle; - ds->SharedData.TexIdCommon = atlas.Textures[atlas.TextureIndexCommon].TexID; - ds->SharedData.TexUvWhitePixel = atlas.TexUvWhitePixel; - ds->SharedData.TexUvLines = (Vector4*)Unsafe.AsPointer(ref atlas.TexUvLines[0]); - ds->SharedData.Font = ImGui.GetIO().FontDefault; - ds->SharedData.FontSize = ds->SharedData.Font->FontSize; - ds->SharedData.ClipRectFullscreen = new( - float.NegativeInfinity, - float.NegativeInfinity, - float.PositiveInfinity, - float.PositiveInfinity); - - ds->List.Data = &ds->SharedData; - ds->ListPtr = &ds->List; - ds->Data.CmdLists = &ds->ListPtr; - ds->Data.CmdListsCount = 1; - ds->Data.FramebufferScale = Vector2.One; - - res.ListPtr._ResetForNewFrame(); - res.ListPtr.PushClipRectFullScreen(); - res.ListPtr.PushTextureID(new(atlas.TextureIndexCommon)); - return res; - } - - /// <summary>Updates the statistics information stored in <see cref="DataPtr"/> from <see cref="ListPtr"/>.</summary> - public readonly void UpdateDrawDataStatistics() - { - this.Data.TotalIdxCount = this.List.IdxBuffer.Size; - this.Data.TotalVtxCount = this.List.VtxBuffer.Size; - } - - /// <inheritdoc/> - public void Dispose() - { - if (this.buffer != 0) - { - this.ListPtr._ClearFreeMemory(); - Marshal.FreeHGlobal(this.buffer); - this.buffer = 0; - } - } - - [StructLayout(LayoutKind.Sequential)] - private struct DataStruct - { - public ImDrawData Data; - public ImDrawList* ListPtr; - public ImDrawList List; - public ImDrawListSharedData SharedData; - } -} diff --git a/Dalamud/Interface/Utility/ImGuiClip.cs b/Dalamud/Interface/Utility/ImGuiClip.cs index 2d3f07b0c..c9321fe4c 100644 --- a/Dalamud/Interface/Utility/ImGuiClip.cs +++ b/Dalamud/Interface/Utility/ImGuiClip.cs @@ -2,8 +2,8 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; namespace Dalamud.Interface.Utility; @@ -34,7 +34,11 @@ public static class ImGuiClip // Uses ImGuiListClipper and thus handles start- and end-dummies itself. public static void ClippedDraw<T>(IReadOnlyList<T> data, Action<T> draw, float lineHeight) { - var clipper = ImGui.ImGuiListClipper(); + ImGuiListClipperPtr clipper; + unsafe + { + clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + } clipper.Begin(data.Count, lineHeight); while (clipper.Step()) @@ -65,10 +69,14 @@ public static class ImGuiClip /// <typeparam name="T">The type of data to draw.</typeparam> public static void ClippedDraw<T>(IReadOnlyList<T> data, Action<T> draw, int itemsPerLine, float lineHeight) { - var clipper = ImGui.ImGuiListClipper(); - + ImGuiListClipperPtr clipper; + unsafe + { + clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + } + var maxRows = (int)MathF.Ceiling((float)data.Count / itemsPerLine); - + clipper.Begin(maxRows, lineHeight); while (clipper.Step()) { @@ -83,7 +91,7 @@ public static class ImGuiClip var itemsForRow = data .Skip(actualRow * itemsPerLine) .Take(itemsPerLine); - + var currentIndex = 0; foreach (var item in itemsForRow) { @@ -91,7 +99,7 @@ public static class ImGuiClip { ImGui.SameLine(); } - + draw(item); } } @@ -105,7 +113,11 @@ public static class ImGuiClip // Uses ImGuiListClipper and thus handles start- and end-dummies itself, but acts on type and index. public static void ClippedDraw<T>(IReadOnlyList<T> data, Action<T, int> draw, float lineHeight) { - var clipper = ImGui.ImGuiListClipper(); + ImGuiListClipperPtr clipper; + unsafe + { + clipper = new ImGuiListClipperPtr(ImGuiNative.ImGuiListClipper_ImGuiListClipper()); + } clipper.Begin(data.Count, lineHeight); while (clipper.Step()) diff --git a/Dalamud/Interface/Utility/ImGuiExtensions.cs b/Dalamud/Interface/Utility/ImGuiExtensions.cs index 9ded58e7a..21a0d3747 100644 --- a/Dalamud/Interface/Utility/ImGuiExtensions.cs +++ b/Dalamud/Interface/Utility/ImGuiExtensions.cs @@ -1,6 +1,7 @@ using System.Numerics; +using System.Text; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility; @@ -19,7 +20,7 @@ public static class ImGuiExtensions /// <param name="textSizeIfKnown">Size of the text, if known.</param> /// <param name="align">Alignment.</param> /// <param name="clipRect">Clip rect to use.</param> - public static unsafe void AddTextClippedEx(this ImDrawListPtr drawListPtr, Vector2 posMin, Vector2 posMax, string text, Vector2? textSizeIfKnown, Vector2 align, Vector4? clipRect) + public static void AddTextClippedEx(this ImDrawListPtr drawListPtr, Vector2 posMin, Vector2 posMax, string text, Vector2? textSizeIfKnown, Vector2 align, Vector4? clipRect) { var pos = posMin; var textSize = textSizeIfKnown ?? ImGui.CalcTextSize(text, false, 0); @@ -44,18 +45,43 @@ public static class ImGuiExtensions if (needClipping) { var fineClipRect = new Vector4(clipMin.X, clipMin.Y, clipMax.X, clipMax.Y); - drawListPtr.AddText( - ImGui.GetFont(), - ImGui.GetFontSize(), - pos, - ImGui.GetColorU32(ImGuiCol.Text), - text, - 0, - fineClipRect); + drawListPtr.AddText(ImGui.GetFont(), ImGui.GetFontSize(), pos, ImGui.GetColorU32(ImGuiCol.Text), text, ref fineClipRect); } else { drawListPtr.AddText(ImGui.GetFont(), ImGui.GetFontSize(), pos, ImGui.GetColorU32(ImGuiCol.Text), text); } } + + /// <summary> + /// Add text to a draw list. + /// </summary> + /// <param name="drawListPtr">Pointer to the draw list.</param> + /// <param name="font">Font to use.</param> + /// <param name="fontSize">Font size.</param> + /// <param name="pos">Position to draw at.</param> + /// <param name="col">Color to use.</param> + /// <param name="textBegin">Text to draw.</param> + /// <param name="cpuFineClipRect">Clip rect to use.</param> + // TODO: This should go into ImDrawList.Manual.cs in ImGui.NET... + public static unsafe void AddText(this ImDrawListPtr drawListPtr, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + var nativeFont = font.NativePtr; + var textBeginByteCount = Encoding.UTF8.GetByteCount(textBegin); + var nativeTextBegin = stackalloc byte[textBeginByteCount + 1]; + + fixed (char* textBeginPtr = textBegin) + { + var nativeTextBeginOffset = Encoding.UTF8.GetBytes(textBeginPtr, textBegin.Length, nativeTextBegin, textBeginByteCount); + nativeTextBegin[nativeTextBeginOffset] = 0; + } + + byte* nativeTextEnd = null; + var wrapWidth = 0.0f; + + fixed (Vector4* nativeCpuFineClipRect = &cpuFineClipRect) + { + ImGuiNative.ImDrawList_AddText_FontPtr(drawListPtr.NativePtr, nativeFont, fontSize, pos, col, nativeTextBegin, nativeTextEnd, wrapWidth, nativeCpuFineClipRect); + } + } } diff --git a/Dalamud/Interface/Utility/ImGuiHelpers.cs b/Dalamud/Interface/Utility/ImGuiHelpers.cs index ee2840d3d..8dedae5cd 100644 --- a/Dalamud/Interface/Utility/ImGuiHelpers.cs +++ b/Dalamud/Interface/Utility/ImGuiHelpers.cs @@ -3,28 +3,28 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; using System.Reactive.Disposables; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using System.Text; using System.Text.Unicode; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; +using Dalamud.Game.ClientState.Keys; using Dalamud.Game.Text.SeStringHandling.Payloads; -using Dalamud.Interface.ImGuiBackend.InputHandler; using Dalamud.Interface.ImGuiSeStringRenderer; using Dalamud.Interface.ImGuiSeStringRenderer.Internal; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Utility.Raii; -using VirtualKey = Dalamud.Game.ClientState.Keys.VirtualKey; +using ImGuiNET; +using ImGuiScene; namespace Dalamud.Interface.Utility; /// <summary> /// Class containing various helper methods for use with ImGui inside Dalamud. /// </summary> -public static partial class ImGuiHelpers +public static class ImGuiHelpers { /// <summary> /// Gets the main viewport. @@ -41,7 +41,7 @@ public static partial class ImGuiHelpers /// This does not necessarily mean you can call drawing functions. /// </summary> public static unsafe bool IsImGuiInitialized => - ImGui.GetCurrentContext().Handle is not null && ImGui.GetIO().Handle is not null; + ImGui.GetCurrentContext() != nint.Zero && ImGui.GetIO().NativePtr is not null; /// <summary> /// Gets the global Dalamud scale; even available before drawing is ready.<br /> @@ -111,7 +111,7 @@ public static partial class ImGuiHelpers /// </summary> /// <param name="size">The size of the indent.</param> public static void ScaledIndent(float size) => ImGui.Indent(size * GlobalScale); - + /// <summary> /// Use a relative ImGui.SameLine() from your current cursor position, scaled by the Dalamud global scale. /// </summary> @@ -135,7 +135,7 @@ public static partial class ImGuiHelpers /// <param name="name">The name/ID of the window.</param> /// <param name="position">The position of the window.</param> /// <param name="condition">When to set the position.</param> - public static void SetWindowPosRelativeMainViewport(ImU8String name, Vector2 position, ImGuiCond condition = ImGuiCond.None) + public static void SetWindowPosRelativeMainViewport(string name, Vector2 position, ImGuiCond condition = ImGuiCond.None) => ImGui.SetWindowPos(name, position + MainViewport.Pos, condition); /// <summary> @@ -143,13 +143,12 @@ public static partial class ImGuiHelpers /// </summary> /// <param name="swatchCount">The total number of swatches to use.</param> /// <returns>Default color palette.</returns> - public static unsafe List<Vector4> DefaultColorPalette(int swatchCount = 32) + public static List<Vector4> DefaultColorPalette(int swatchCount = 32) { var colorPalette = new List<Vector4>(); for (var i = 0; i < swatchCount; i++) { - float r = 0f, g = 0f, b = 0f; - ImGui.ColorConvertHSVtoRGB(i / 31.0f, 0.7f, 0.8f, ref r, ref g, ref b); + ImGui.ColorConvertHSVtoRGB(i / 31.0f, 0.7f, 0.8f, out var r, out var g, out var b); colorPalette.Add(new Vector4(r, g, b, 1.0f)); } @@ -161,8 +160,7 @@ public static partial class ImGuiHelpers /// </summary> /// <param name="text">Text in the button.</param> /// <returns><see cref="Vector2"/> with the size of the button.</returns> - public static Vector2 GetButtonSize(ImU8String text) - => ImGui.CalcTextSize(text) + (ImGui.GetStyle().FramePadding * 2); + public static Vector2 GetButtonSize(string text) => ImGui.CalcTextSize(text) + (ImGui.GetStyle().FramePadding * 2); /// <summary> /// Print out text that can be copied when clicked. @@ -170,8 +168,10 @@ public static partial class ImGuiHelpers /// <param name="text">The text to show.</param> /// <param name="textCopy">The text to copy when clicked.</param> /// <param name="color">The color of the text.</param> - public static void ClickToCopyText(ImU8String text, ImU8String textCopy = default, Vector4? color = null) + public static void ClickToCopyText(string text, string? textCopy = null, Vector4? color = null) { + textCopy ??= text; + using (var col = new ImRaii.Color()) { if (color.HasValue) @@ -179,7 +179,7 @@ public static partial class ImGuiHelpers col.Push(ImGuiCol.Text, color.Value); } - ImGui.Text(text.Span); + ImGui.TextUnformatted($"{text}"); } if (ImGui.IsItemHovered()) @@ -190,21 +190,18 @@ public static partial class ImGuiHelpers { using (ImRaii.PushFont(UiBuilder.IconFont)) { - ImGui.Text(FontAwesomeIcon.Copy.ToIconString()); + ImGui.TextUnformatted(FontAwesomeIcon.Copy.ToIconString()); } ImGui.SameLine(); - ImGui.Text(textCopy.IsNull ? text.Span : textCopy.Span); + ImGui.TextUnformatted(textCopy); } } if (ImGui.IsItemClicked()) { - ImGui.SetClipboardText(textCopy.IsNull ? text.Span : textCopy.Span); + ImGui.SetClipboardText(textCopy); } - - text.Recycle(); - textCopy.Recycle(); } /// <summary>Draws a SeString.</summary> @@ -213,6 +210,9 @@ public static partial class ImGuiHelpers /// <param name="imGuiId">ImGui ID, if link functionality is desired.</param> /// <param name="buttonFlags">Button flags to use on link interaction.</param> /// <returns>Interaction result of the rendered text.</returns> + /// <remarks>This function is experimental. Report any issues to GitHub issues or to Discord #dalamud-dev channel. + /// The function definition is stable; only in the next API version a function may be removed.</remarks> + [Experimental("SeStringRenderer")] public static SeStringDrawResult SeStringWrapped( ReadOnlySpan<byte> sss, scoped in SeStringDrawParams style = default, @@ -227,6 +227,9 @@ public static partial class ImGuiHelpers /// <param name="imGuiId">ImGui ID, if link functionality is desired.</param> /// <param name="buttonFlags">Button flags to use on link interaction.</param> /// <returns>Interaction result of the rendered text.</returns> + /// <remarks>This function is experimental. Report any issues to GitHub issues or to Discord #dalamud-dev channel. + /// The function definition is stable; only in the next API version a function may be removed.</remarks> + [Experimental("SeStringRenderer")] public static SeStringDrawResult CompileSeStringWrapped( string text, scoped in SeStringDrawParams style = default, @@ -238,20 +241,18 @@ public static partial class ImGuiHelpers /// Write unformatted text wrapped. /// </summary> /// <param name="text">The text to write.</param> - [Obsolete("Use ImGui.TextWrapped. It's safe now.", true)] - public static void SafeTextWrapped(ImU8String text) => ImGui.TextWrapped(text); + public static void SafeTextWrapped(string text) => ImGui.TextWrapped(text.Replace("%", "%%")); /// <summary> - /// Write colored, unformatted text wrapped. + /// Write unformatted text wrapped. /// </summary> /// <param name="color">The color of the text.</param> /// <param name="text">The text to write.</param> - [Obsolete("Use ImGui.TextColoredWrapped. It's safe.", true)] - public static void SafeTextColoredWrapped(Vector4 color, ImU8String text) + public static void SafeTextColoredWrapped(Vector4 color, string text) { using (ImRaii.PushColor(ImGuiCol.Text, color)) { - ImGui.TextWrapped(text); + ImGui.TextWrapped(text.Replace("%", "%%")); } } @@ -265,7 +266,7 @@ public static partial class ImGuiHelpers { Func<float, float> rounder = round > 0 ? x => MathF.Round(x / round) * round : x => x; - var font = fontPtr.Handle; + var font = fontPtr.NativePtr; font->FontSize = rounder(font->FontSize * scale); font->Ascent = rounder(font->Ascent * scale); font->Descent = font->FontSize - font->Ascent; @@ -291,7 +292,7 @@ public static partial class ImGuiHelpers foreach (ref var kp in new Span<ImFontKerningPair>((void*)font->KerningPairs.Data, font->KerningPairs.Size)) kp.AdvanceXAdjustment = rounder(kp.AdvanceXAdjustment * scale); - + foreach (ref var fkp in new Span<float>((void*)font->FrequentKerningPairs.Data, font->FrequentKerningPairs.Size)) fkp = rounder(fkp * scale); } @@ -358,7 +359,7 @@ public static partial class ImGuiHelpers if (glyph->Codepoint < rangeLow || glyph->Codepoint > rangeHigh) continue; - var prevGlyphPtr = (ImFontGlyphReal*)target.FindGlyphNoFallback((ushort)glyph->Codepoint); + var prevGlyphPtr = (ImFontGlyphReal*)target.FindGlyphNoFallback((ushort)glyph->Codepoint).NativePtr; if ((IntPtr)prevGlyphPtr == IntPtr.Zero) { addedCodepoints.Add(glyph->Codepoint); @@ -400,9 +401,9 @@ public static partial class ImGuiHelpers var kernPairs = source.KerningPairs; for (int j = 0, k = kernPairs.Size; j < k; j++) { - if (!addedCodepoints.Contains((int)kernPairs[j].Left)) + if (!addedCodepoints.Contains(kernPairs[j].Left)) continue; - if (!addedCodepoints.Contains((int)kernPairs[j].Right)) + if (!addedCodepoints.Contains(kernPairs[j].Right)) continue; target.AddKerningPair(kernPairs[j].Left, kernPairs[j].Right, kernPairs[j].AdvanceXAdjustment); changed = true; @@ -417,7 +418,7 @@ public static partial class ImGuiHelpers // On our secondary calls of BuildLookupTable, FallbackGlyph is set to some value that is not null, // making ImGui attempt to treat whatever was there as a ' '. // This may cause random glyphs to be sized randomly, if not an access violation exception. - target.Handle->FallbackGlyph = null; + target.NativePtr->FallbackGlyph = null; target.BuildLookupTable(); } @@ -430,7 +431,7 @@ public static partial class ImGuiHelpers /// <returns>The ImGuiKey that corresponds to this VirtualKey, or <c>ImGuiKey.None</c> otherwise.</returns> public static ImGuiKey VirtualKeyToImGuiKey(VirtualKey key) { - return Win32InputHandler.VirtualKeyToImGuiKey((int)key); + return ImGui_Input_Impl_Direct.VirtualKeyToImGuiKey((int)key); } /// <summary> @@ -440,25 +441,24 @@ public static partial class ImGuiHelpers /// <returns>The VirtualKey that corresponds to this ImGuiKey, or <c>VirtualKey.NO_KEY</c> otherwise.</returns> public static VirtualKey ImGuiKeyToVirtualKey(ImGuiKey key) { - return (VirtualKey)Win32InputHandler.ImGuiKeyToVirtualKey(key); + return (VirtualKey)ImGui_Input_Impl_Direct.ImGuiKeyToVirtualKey(key); } /// <summary> /// Show centered text. /// </summary> /// <param name="text">Text to show.</param> - public static void CenteredText(ImU8String text) + public static void CenteredText(string text) { - CenterCursorForText(text.Span); - ImGui.Text(text); + CenterCursorForText(text); + ImGui.TextUnformatted(text); } /// <summary> /// Center the ImGui cursor for a certain text. /// </summary> /// <param name="text">The text to center for.</param> - public static void CenterCursorForText(ImU8String text) - => CenterCursorFor(ImGui.CalcTextSize(text).X); + public static void CenterCursorForText(string text) => CenterCursorFor(ImGui.CalcTextSize(text).X); /// <summary> /// Center the ImGui cursor for an item with a certain width. @@ -468,30 +468,37 @@ public static partial class ImGuiHelpers ImGui.SetCursorPosX((int)((ImGui.GetWindowWidth() - itemWidth) / 2)); /// <summary> - /// Starts a new horizontal button group. - /// </summary> - /// <returns>The group.</returns> - public static HorizontalButtonGroup BeginHorizontalButtonGroup() => new(); - - /// <summary> - /// Allocates memory on the heap using <see cref="ImGui.MemAlloc(nuint)"/><br /> - /// Memory must be freed using <see cref="ImGui.MemFree"/>. + /// Allocates memory on the heap using <see cref="ImGuiNative.igMemAlloc"/><br /> + /// Memory must be freed using <see cref="ImGuiNative.igMemFree"/>. /// <br /> /// Note that null is a valid return value when <paramref name="length"/> is 0. /// </summary> /// <param name="length">The length of allocated memory.</param> /// <returns>The allocated memory.</returns> - /// <exception cref="OutOfMemoryException">If <see cref="ImGui.MemAlloc(nuint)"/> returns null.</exception> - public static unsafe void* AllocateMemory(nuint length) + /// <exception cref="OutOfMemoryException">If <see cref="ImGuiNative.igMemAlloc"/> returns null.</exception> + public static unsafe void* AllocateMemory(int length) { - var memory = ImGui.MemAlloc(length); - if (memory is null) + // TODO: igMemAlloc takes size_t, which is nint; ImGui.NET apparently interpreted that as uint. + // fix that in ImGui.NET. + switch (length) { - throw new OutOfMemoryException( - $"Failed to allocate {length} bytes using {nameof(ImGui.MemAlloc)}"); - } + case 0: + return null; + case < 0: + throw new ArgumentOutOfRangeException( + nameof(length), + length, + $"{nameof(length)} cannot be a negative number."); + default: + var memory = ImGuiNative.igMemAlloc((uint)length); + if (memory is null) + { + throw new OutOfMemoryException( + $"Failed to allocate {length} bytes using {nameof(ImGuiNative.igMemAlloc)}"); + } - return memory; + return memory; + } } /// <summary> @@ -501,12 +508,12 @@ public static partial class ImGuiHelpers /// <returns>Disposable you can call.</returns> public static unsafe IDisposable NewFontGlyphRangeBuilderPtrScoped(out ImFontGlyphRangesBuilderPtr builder) { - builder = new(ImGui.ImFontGlyphRangesBuilder()); - var ptr = builder.Handle; + builder = new(ImGuiNative.ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder()); + var ptr = builder.NativePtr; return Disposable.Create(() => { if (ptr != null) - new ImFontGlyphRangesBuilderPtr(ptr).Destroy(); + ImGuiNative.ImFontGlyphRangesBuilder_destroy(ptr); ptr = null; }); } @@ -531,11 +538,10 @@ public static partial class ImGuiHelpers builder.AddChar('.'); } - ImVector<ushort> outRanges = default; - builder.BuildRanges(&outRanges); - return new ReadOnlySpan<ushort>((void*)outRanges.Data, outRanges.Size).ToArray(); + builder.BuildRanges(out var vec); + return new ReadOnlySpan<ushort>((void*)vec.Data, vec.Size).ToArray(); } - + /// <inheritdoc cref="CreateImGuiRangesFrom(IEnumerable{UnicodeRange})"/> public static ushort[] CreateImGuiRangesFrom(params UnicodeRange[] ranges) => CreateImGuiRangesFrom((IEnumerable<UnicodeRange>)ranges); @@ -560,11 +566,25 @@ public static partial class ImGuiHelpers .ToArray(); /// <summary> - /// Determines whether <paramref name="ptr"/> is not empty and loaded. + /// Determines whether <paramref name="ptr"/> is empty. /// </summary> /// <param name="ptr">The pointer.</param> - /// <returns>Whether it is not null and loaded.</returns> - public static unsafe bool IsNotNullAndLoaded(this ImFontPtr ptr) => !ptr.IsNull && ptr.IsLoaded(); + /// <returns>Whether it is empty.</returns> + public static unsafe bool IsNull(this ImFontPtr ptr) => ptr.NativePtr == null; + + /// <summary> + /// Determines whether <paramref name="ptr"/> is empty. + /// </summary> + /// <param name="ptr">The pointer.</param> + /// <returns>Whether it is empty.</returns> + public static unsafe bool IsNotNullAndLoaded(this ImFontPtr ptr) => ptr.NativePtr != null && ptr.IsLoaded(); + + /// <summary> + /// Determines whether <paramref name="ptr"/> is empty. + /// </summary> + /// <param name="ptr">The pointer.</param> + /// <returns>Whether it is empty.</returns> + public static unsafe bool IsNull(this ImFontAtlasPtr ptr) => ptr.NativePtr == null; /// <summary> /// If <paramref name="self"/> is default, then returns <paramref name="other"/>. @@ -573,27 +593,18 @@ public static partial class ImGuiHelpers /// <param name="other">The other.</param> /// <returns><paramref name="self"/> if it is not default; otherwise, <paramref name="other"/>.</returns> public static unsafe ImFontPtr OrElse(this ImFontPtr self, ImFontPtr other) => - self.IsNull ? other : self; - - /// <summary>Creates a draw data that will draw the given SeString onto it.</summary> - /// <param name="sss">SeString to render.</param> - /// <param name="style">Initial rendering style.</param> - /// <returns>A new self-contained draw data.</returns> - internal static BufferBackedImDrawData CreateDrawData( - ReadOnlySpan<byte> sss, - scoped in SeStringDrawParams style = default) => - Service<SeStringRenderer>.Get().CreateDrawData(sss, style); + self.NativePtr is null ? other : self; /// <summary> /// Mark 4K page as used, after adding a codepoint to a font. /// </summary> /// <param name="font">The font.</param> /// <param name="codepoint">The codepoint.</param> - internal static void Mark4KPageUsedAfterGlyphAdd(this ImFontPtr font, ushort codepoint) + internal static unsafe void Mark4KPageUsedAfterGlyphAdd(this ImFontPtr font, ushort codepoint) { // Mark 4K page as used var pageIndex = unchecked((ushort)(codepoint / 4096)); - font.Used4kPagesMap[pageIndex >> 3] |= unchecked((byte)(1 << (pageIndex & 7))); + font.NativePtr->Used4kPagesMap[pageIndex >> 3] |= unchecked((byte)(1 << (pageIndex & 7))); } /// <summary> @@ -601,15 +612,19 @@ public static partial class ImGuiHelpers /// </summary> /// <param name="data">The callback data.</param> /// <param name="s">The new text.</param> - internal static void SetTextFromCallback(ref ImGuiInputTextCallbackData data, ImU8String s) + internal static unsafe void SetTextFromCallback(ImGuiInputTextCallbackData* data, string s) { - if (data.BufTextLen != 0) - data.DeleteChars(0, data.BufTextLen); + if (data->BufTextLen != 0) + ImGuiNative.ImGuiInputTextCallbackData_DeleteChars(data, 0, data->BufTextLen); - data.InsertChars(0, s); - data.SelectAll(); + var len = Encoding.UTF8.GetByteCount(s); + var buf = len < 1024 ? stackalloc byte[len] : new byte[len]; + Encoding.UTF8.GetBytes(s, buf); + fixed (byte* pBuf = buf) + ImGuiNative.ImGuiInputTextCallbackData_InsertChars(data, 0, pBuf, pBuf + len); + ImGuiNative.ImGuiInputTextCallbackData_SelectAll(data); } - + /// <summary> /// Finds the corresponding ImGui viewport ID for the given window handle. /// </summary> @@ -620,22 +635,16 @@ public static partial class ImGuiHelpers if (!IsImGuiInitialized) return -1; - var viewports = new ImVectorWrapper<ImGuiViewportPtr>((ImVector*)Unsafe.AsPointer(ref ImGui.GetPlatformIO().Handle->Viewports)); + var viewports = new ImVectorWrapper<ImGuiViewportPtr>(&ImGui.GetPlatformIO().NativePtr->Viewports); for (var i = 0; i < viewports.LengthUnsafe; i++) { - if (viewports.DataUnsafe[i].PlatformHandle == hwnd.ToPointer()) + if (viewports.DataUnsafe[i].PlatformHandle == hwnd) return i; } return -1; } - /// <summary> - /// Clears the stack in the current ImGui context. - /// </summary> - [LibraryImport("cimgui", EntryPoint = "igCustom_ClearStacks")] - internal static partial void ClearStacksOnContext(); - /// <summary> /// Attempts to validate that <paramref name="fontPtr"/> is valid. /// </summary> @@ -645,21 +654,21 @@ public static partial class ImGuiHelpers { try { - var font = fontPtr.Handle; + var font = fontPtr.NativePtr; if (font is null) throw new NullReferenceException("The font is null."); _ = Marshal.ReadIntPtr((nint)font); - if (font->IndexedHotData.Data != null) - _ = *font->IndexedHotData.Front; - if (font->FrequentKerningPairs.Data != null) - _ = font->FrequentKerningPairs.Data; - if (font->IndexLookup.Data != null) - _ = *font->IndexLookup.Data; - if (font->Glyphs.Data != null) - _ = *font->Glyphs.Data; - if (font->KerningPairs.Data != null) - _ = *font->KerningPairs.Data; + if (font->IndexedHotData.Data != 0) + _ = Marshal.ReadIntPtr(font->IndexedHotData.Data); + if (font->FrequentKerningPairs.Data != 0) + _ = Marshal.ReadIntPtr(font->FrequentKerningPairs.Data); + if (font->IndexLookup.Data != 0) + _ = Marshal.ReadIntPtr(font->IndexLookup.Data); + if (font->Glyphs.Data != 0) + _ = Marshal.ReadIntPtr(font->Glyphs.Data); + if (font->KerningPairs.Data != 0) + _ = Marshal.ReadIntPtr(font->KerningPairs.Data); if (font->ConfigDataCount == 0 && font->ConfigData is not null) throw new InvalidOperationException("ConfigDataCount == 0 but ConfigData is not null?"); if (font->ConfigDataCount != 0 && font->ConfigData is null) @@ -667,11 +676,11 @@ public static partial class ImGuiHelpers if (font->ConfigData is not null) _ = Marshal.ReadIntPtr((nint)font->ConfigData); if (font->FallbackGlyph is not null - && ((nint)font->FallbackGlyph < (nint)font->Glyphs.Data || (nint)font->FallbackGlyph >= (nint)font->Glyphs.Data)) + && ((nint)font->FallbackGlyph < font->Glyphs.Data || (nint)font->FallbackGlyph >= font->Glyphs.Data)) throw new InvalidOperationException("FallbackGlyph is not in range of Glyphs.Data"); if (font->FallbackHotData is not null - && ((nint)font->FallbackHotData < (nint)font->IndexedHotData.Data - || (nint)font->FallbackHotData >= (nint)font->IndexedHotData.Data)) + && ((nint)font->FallbackHotData < font->IndexedHotData.Data + || (nint)font->FallbackHotData >= font->IndexedHotData.Data)) throw new InvalidOperationException("FallbackGlyph is not in range of Glyphs.Data"); if (font->ContainerAtlas is not null) _ = Marshal.ReadIntPtr((nint)font->ContainerAtlas); @@ -692,7 +701,7 @@ public static partial class ImGuiHelpers internal static unsafe void UpdateFallbackChar(this ImFontPtr font, char c) { font.FallbackChar = c; - font.Handle->FallbackHotData = + font.NativePtr->FallbackHotData = (ImFontGlyphHotData*)((ImFontGlyphHotDataReal*)font.IndexedHotData.Data + font.FallbackChar); } @@ -888,162 +897,4 @@ public static partial class ImGuiHelpers set => this.TextureIndexAndGlyphId = (this.TextureIndexAndGlyphId & ~GlyphIdMask) | ((uint)value << GlyphIdShift); } } - - /// <summary> - /// Class helper for creating a horizontal button group. - /// </summary> - public class HorizontalButtonGroup - { - private readonly List<ButtonDef> buttons = []; - - /// <summary> - /// Gets or sets a value indicating whether the buttons should be centered horizontally. - /// </summary> - public bool IsCentered { get; set; } = false; - - /// <summary> - /// Gets or sets the height of the buttons. If null, the default frame height is used. - /// </summary> - public float? Height { get; set; } - - /// <summary> - /// Gets or sets the extra margin to add to the inside of each button, before and after the text. - /// If null, the default margin is used. - /// </summary> - public float? ExtraMargin { get; set; } - - /// <summary> - /// Gets or sets the padding between buttons. If null, the default item spacing is used. - /// </summary> - public float? PaddingBetweenButtons { get; set; } - - /// <summary> - /// Add a button to the group. - /// </summary> - /// <param name="text">The text of the button.</param> - /// <param name="action">The action to perform when the button is pressed.</param> - /// <returns>The group.</returns> - public HorizontalButtonGroup Add(string text, Action action) - { - this.buttons.Add(new ButtonDef(text, action)); - return this; - } - - /// <summary> - /// Sets whether the buttons should be centered horizontally. - /// </summary> - /// <param name="centered">The value.</param> - /// <returns>The group.</returns> - public HorizontalButtonGroup SetCentered(bool centered) - { - this.IsCentered = centered; - return this; - } - - /// <summary> - /// Sets the height of the buttons. - /// </summary> - /// <param name="height">The height.</param> - /// <returns>The group.</returns> - public HorizontalButtonGroup WithHeight(float height) - { - this.Height = height; - return this; - } - - /// <summary> - /// Sets the extra margin to add to the inside of each button, before and after the text. - /// </summary> - /// <param name="extraMargin">The margin.</param> - /// <returns>The group.</returns> - public HorizontalButtonGroup WithExtraMargin(float extraMargin) - { - this.ExtraMargin = extraMargin; - return this; - } - - /// <summary> - /// Sets the padding between buttons. - /// </summary> - /// <param name="padding">The padding.</param> - /// <returns>The group.</returns> - public HorizontalButtonGroup WithPaddingBetweenButtons(float padding) - { - this.PaddingBetweenButtons = padding; - return this; - } - - /// <summary> - /// Draw the button group at the current location. - /// </summary> - public void Draw() - { - var buttonHeight = this.Height * GlobalScale ?? ImGui.GetFrameHeight(); - var buttonCount = this.buttons.Count; - - if (buttonCount == 0) - return; - - var buttonWidths = new float[buttonCount]; - var totalContentWidth = 0f; - var extraMargin = this.ExtraMargin ?? 0f; - - for (var i = 0; i < buttonCount; i++) - { - var buttonText = this.buttons[i].Text; - buttonWidths[i] = ImGui.CalcTextSize(buttonText).X + (2 * extraMargin) + (2 * ImGui.GetStyle().FramePadding.X); - totalContentWidth += buttonWidths[i]; - } - - var buttonPadding = this.PaddingBetweenButtons ?? ImGui.GetStyle().ItemSpacing.X; - if (buttonCount > 1) - totalContentWidth += buttonPadding * (buttonCount - 1); - - var startX = ImGui.GetCursorPosX(); - if (this.IsCentered) - { - var availWidth = ImGui.GetContentRegionAvail().X; - startX += (availWidth - totalContentWidth) * 0.5f; - ImGui.SetCursorPosX(startX); - } - - var originalSpacing = ImGui.GetStyle().ItemSpacing; - if (this.PaddingBetweenButtons.HasValue) - { - var spacing = originalSpacing; - spacing.X = this.PaddingBetweenButtons.Value; - ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, spacing); - } - - for (var i = 0; i < buttonCount; i++) - { - var buttonDef = this.buttons[i]; - - if (this.ExtraMargin.HasValue) - ImGui.PushStyleVar(ImGuiStyleVar.FramePadding, new Vector2(ImGui.GetStyle().FramePadding.X + extraMargin, ImGui.GetStyle().FramePadding.Y)); - - if (this.Height.HasValue) - { - if (ImGui.Button(buttonDef.Text, new Vector2(buttonWidths[i], buttonHeight))) - buttonDef.Action?.Invoke(); - } - else - { - if (ImGui.Button(buttonDef.Text, new Vector2(buttonWidths[i], -1))) - buttonDef.Action?.Invoke(); - } - - if (this.ExtraMargin.HasValue) - ImGui.PopStyleVar(); - - if (i < buttonCount - 1) - ImGui.SameLine(); - } - - if (this.PaddingBetweenButtons.HasValue) - ImGui.PopStyleVar(); - } - - private record ButtonDef(string Text, Action Action); - } } diff --git a/Dalamud/Interface/Utility/ImGuiId.cs b/Dalamud/Interface/Utility/ImGuiId.cs index 12f1cd0a2..0231f3749 100644 --- a/Dalamud/Interface/Utility/ImGuiId.cs +++ b/Dalamud/Interface/Utility/ImGuiId.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility; @@ -158,13 +158,15 @@ public readonly ref struct ImGuiId switch (this.IdType) { case Type.Numeric: - ImGui.PushID((void*)this.Numeric); + ImGuiNative.igPushID_Ptr((void*)this.Numeric); return true; case Type.U16: - ImGui.PushID(this.U16); + fixed (void* p = this.U16) + ImGuiNative.igPushID_StrStr((byte*)p, (byte*)p + (this.U16.Length * 2)); return true; case Type.U8: - ImGui.PushID(this.U8); + fixed (void* p = this.U8) + ImGuiNative.igPushID_StrStr((byte*)p, (byte*)p + this.U8.Length); return true; case Type.None: default: diff --git a/Dalamud/Interface/Utility/ImGuiTable.cs b/Dalamud/Interface/Utility/ImGuiTable.cs index 98df9652e..c74bc0a2f 100644 --- a/Dalamud/Interface/Utility/ImGuiTable.cs +++ b/Dalamud/Interface/Utility/ImGuiTable.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; namespace Dalamud.Interface.Utility; diff --git a/Dalamud/Interface/Utility/ImVectorWrapper.cs b/Dalamud/Interface/Utility/ImVectorWrapper.cs index dee0f5994..f350a6436 100644 --- a/Dalamud/Interface/Utility/ImVectorWrapper.cs +++ b/Dalamud/Interface/Utility/ImVectorWrapper.cs @@ -3,9 +3,8 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Numerics; -using System.Runtime.CompilerServices; -using Dalamud.Bindings.ImGui; +using ImGuiNET; using JetBrains.Annotations; @@ -25,7 +24,7 @@ public unsafe struct ImVectorWrapper<T> : IList<T>, IList, IReadOnlyList<T>, IDi /// Initializes a new instance of the <see cref="ImVectorWrapper{T}"/> struct.<br /> /// If <paramref name="ownership"/> is set to true, you must call <see cref="Dispose"/> after use, /// and the underlying memory for <see cref="ImVector"/> must have been allocated using - /// <see cref="ImGui.MemAlloc(nuint)"/>. Otherwise, it will crash. + /// <see cref="ImGuiNative.igMemAlloc"/>. Otherwise, it will crash. /// </summary> /// <param name="vector">The underlying vector.</param> /// <param name="destroyer">The destroyer function to call on item removal.</param> @@ -59,7 +58,7 @@ public unsafe struct ImVectorWrapper<T> : IList<T>, IList, IReadOnlyList<T>, IDi $"{nameof(initialCapacity)} cannot be a negative number."); } - this.vector = (ImVector*)ImGui.MemAlloc((uint)sizeof(ImVector)); + this.vector = (ImVector*)ImGuiNative.igMemAlloc((uint)sizeof(ImVector)); if (this.vector is null) throw new OutOfMemoryException(); *this.vector = default; @@ -72,7 +71,7 @@ public unsafe struct ImVectorWrapper<T> : IList<T>, IList, IReadOnlyList<T>, IDi } catch { - ImGui.MemFree(this.vector); + ImGuiNative.igMemFree(this.vector); this.vector = null; this.HasOwnership = false; this.destroyer = null; @@ -201,8 +200,8 @@ public unsafe struct ImVectorWrapper<T> : IList<T>, IList, IReadOnlyList<T>, IDi { this.Clear(); this.SetCapacity(0); - Debug.Assert(this.vector->Data == null, "SetCapacity(0) did not free the data"); - ImGui.MemFree(this.vector); + Debug.Assert(this.vector->Data == 0, "SetCapacity(0) did not free the data"); + ImGuiNative.igMemFree(this.vector); } this.vector = null; @@ -493,7 +492,7 @@ public unsafe struct ImVectorWrapper<T> : IList<T>, IList, IReadOnlyList<T>, IDi { if (capacity == 0 && this.DataUnsafe is not null) { - ImGui.MemFree(this.DataUnsafe); + ImGuiNative.igMemFree(this.DataUnsafe); this.DataUnsafe = null; } @@ -505,7 +504,7 @@ public unsafe struct ImVectorWrapper<T> : IList<T>, IList, IReadOnlyList<T>, IDi var newAlloc = (T*)(capacity == 0 ? null - : ImGui.MemAlloc(checked((uint)(capacity * sizeof(T))))); + : ImGuiNative.igMemAlloc(checked((uint)(capacity * sizeof(T))))); if (newAlloc is null && capacity > 0) throw new OutOfMemoryException(); @@ -516,7 +515,7 @@ public unsafe struct ImVectorWrapper<T> : IList<T>, IList, IReadOnlyList<T>, IDi oldSpan[..this.LengthUnsafe].CopyTo(newSpan); if (oldAlloc != null) - ImGui.MemFree(oldAlloc); + ImGuiNative.igMemFree(oldAlloc); this.DataUnsafe = newAlloc; this.CapacityUnsafe = capacity; @@ -686,9 +685,9 @@ public static class ImVectorWrapper /// <param name="obj">The owner object.</param> /// <returns>The wrapped vector.</returns> public static unsafe ImVectorWrapper<ImFontConfig> ConfigDataWrapped(this ImFontAtlasPtr obj) => - obj.Handle is null + obj.NativePtr is null ? throw new NullReferenceException() - : new((ImVector*)Unsafe.AsPointer(ref obj.ConfigData), x => x->Destroy()); + : new(&obj.NativePtr->ConfigData, ImGuiNative.ImFontConfig_destroy); /// <summary> /// Wraps <see cref="ImFontAtlas.Fonts"/> into a <see cref="ImVectorWrapper{T}"/>.<br /> @@ -697,9 +696,9 @@ public static class ImVectorWrapper /// <param name="obj">The owner object.</param> /// <returns>The wrapped vector.</returns> public static unsafe ImVectorWrapper<ImFontPtr> FontsWrapped(this ImFontAtlasPtr obj) => - obj.Handle is null + obj.NativePtr is null ? throw new NullReferenceException() - : new((ImVector*)Unsafe.AsPointer(ref obj.Fonts), x => x->Destroy()); + : new(&obj.NativePtr->Fonts, x => ImGuiNative.ImFont_destroy(x->NativePtr)); /// <summary> /// Wraps <see cref="ImFontAtlas.Textures"/> into a <see cref="ImVectorWrapper{T}"/>.<br /> @@ -708,9 +707,9 @@ public static class ImVectorWrapper /// <param name="obj">The owner object.</param> /// <returns>The wrapped vector.</returns> public static unsafe ImVectorWrapper<ImFontAtlasTexture> TexturesWrapped(this ImFontAtlasPtr obj) => - obj.Handle is null + obj.NativePtr is null ? throw new NullReferenceException() - : new((ImVector*)Unsafe.AsPointer(ref obj.Textures)); + : new(&obj.NativePtr->Textures); /// <summary> /// Wraps <see cref="ImFont.Glyphs"/> into a <see cref="ImVectorWrapper{T}"/>.<br /> @@ -719,9 +718,9 @@ public static class ImVectorWrapper /// <param name="obj">The owner object.</param> /// <returns>The wrapped vector.</returns> public static unsafe ImVectorWrapper<ImGuiHelpers.ImFontGlyphReal> GlyphsWrapped(this ImFontPtr obj) => - obj.Handle is null + obj.NativePtr is null ? throw new NullReferenceException() - : new((ImVector*)Unsafe.AsPointer(ref obj.Glyphs)); + : new(&obj.NativePtr->Glyphs); /// <summary> /// Wraps <see cref="ImFont.IndexedHotData"/> into a <see cref="ImVectorWrapper{T}"/>.<br /> @@ -730,9 +729,9 @@ public static class ImVectorWrapper /// <param name="obj">The owner object.</param> /// <returns>The wrapped vector.</returns> public static unsafe ImVectorWrapper<ImGuiHelpers.ImFontGlyphHotDataReal> IndexedHotDataWrapped(this ImFontPtr obj) - => obj.Handle is null + => obj.NativePtr is null ? throw new NullReferenceException() - : new((ImVector*)Unsafe.AsPointer(ref obj.IndexedHotData)); + : new(&obj.NativePtr->IndexedHotData); /// <summary> /// Wraps <see cref="ImFont.IndexLookup"/> into a <see cref="ImVectorWrapper{T}"/>.<br /> @@ -741,7 +740,7 @@ public static class ImVectorWrapper /// <param name="obj">The owner object.</param> /// <returns>The wrapped vector.</returns> public static unsafe ImVectorWrapper<ushort> IndexLookupWrapped(this ImFontPtr obj) => - obj.Handle is null + obj.NativePtr is null ? throw new NullReferenceException() - : new((ImVector*)Unsafe.AsPointer(ref obj.IndexLookup)); + : new(&obj.NativePtr->IndexLookup); } diff --git a/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs b/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs index 7fcf795aa..a6584f9aa 100644 --- a/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs +++ b/Dalamud/Interface/Utility/Internal/DevTextureSaveMenu.cs @@ -2,19 +2,17 @@ using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; -using System.Text; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; -using Dalamud.Game; using Dalamud.Interface.ImGuiFileDialog; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.Internal; using Dalamud.Interface.Internal; -using Dalamud.Interface.Internal.Windows.Data.Widgets; using Dalamud.Interface.Textures.Internal; using Dalamud.Interface.Textures.TextureWraps; +using ImGuiNET; + using Serilog; using TerraFX.Interop.Windows; @@ -37,14 +35,6 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService this.interfaceManager.Draw += this.InterfaceManagerOnDraw; } - private enum ContextMenuActionType - { - None, - SaveAsFile, - CopyToClipboard, - SendToTexWidget, - } - /// <inheritdoc/> void IInternalDisposableService.DisposeService() => this.interfaceManager.Draw -= this.InterfaceManagerOnDraw; @@ -58,36 +48,21 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService string name, Task<IDalamudTextureWrap> texture) { - name = new StringBuilder(name) - .Replace('<', '_') - .Replace('>', '_') - .Replace(':', '_') - .Replace('"', '_') - .Replace('/', '_') - .Replace('\\', '_') - .Replace('|', '_') - .Replace('?', '_') - .Replace('*', '_') - .ToString(); - - var isCopy = false; try { var initiatorScreenOffset = ImGui.GetMousePos(); using var textureWrap = await texture; var textureManager = await Service<TextureManager>.GetAsync(); - var popupName = $"{nameof(this.ShowTextureSaveMenuAsync)}_{textureWrap.Handle.Handle:X}"; + var popupName = $"{nameof(this.ShowTextureSaveMenuAsync)}_{textureWrap.ImGuiHandle:X}"; - ContextMenuActionType action; - BitmapCodecInfo? encoder; + BitmapCodecInfo encoder; { var first = true; var encoders = textureManager.Wic.GetSupportedEncoderInfos().ToList(); - var tcs = new TaskCompletionSource<(ContextMenuActionType Action, BitmapCodecInfo? Codec)>( - TaskCreationOptions.RunContinuationsAsynchronously); + var tcs = new TaskCompletionSource<BitmapCodecInfo>(TaskCreationOptions.RunContinuationsAsynchronously); Service<InterfaceManager>.Get().Draw += DrawChoices; - (action, encoder) = await tcs.Task; + encoder = await tcs.Task; [SuppressMessage("ReSharper", "AccessToDisposedClosure", Justification = "This shall not escape")] void DrawChoices() @@ -110,28 +85,19 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService return; } - if (ImGui.Selectable("Copy"u8)) - tcs.TrySetResult((ContextMenuActionType.CopyToClipboard, null)); - if (ImGui.Selectable("Send to TexWidget"u8)) - tcs.TrySetResult((ContextMenuActionType.SendToTexWidget, null)); - - ImGui.Separator(); - foreach (var encoder2 in encoders) { if (ImGui.Selectable(encoder2.Name)) - tcs.TrySetResult((ContextMenuActionType.SaveAsFile, encoder2)); + tcs.TrySetResult(encoder2); } - ImGui.Separator(); - const float previewImageWidth = 320; var size = textureWrap.Size; if (size.X > previewImageWidth) size *= previewImageWidth / size.X; if (size.Y > previewImageWidth) size *= previewImageWidth / size.Y; - ImGui.Image(textureWrap.Handle, size); + ImGui.Image(textureWrap.ImGuiHandle, size); if (tcs.Task.IsCompleted) ImGui.CloseCurrentPopup(); @@ -140,69 +106,45 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService } } - switch (action) + string path; { - case ContextMenuActionType.CopyToClipboard: - isCopy = true; - await textureManager.CopyToClipboardAsync(textureWrap, name, true); - break; - - case ContextMenuActionType.SendToTexWidget: - { - var framework = await Service<Framework>.GetAsync(); - var dalamudInterface = await Service<DalamudInterface>.GetAsync(); - await framework.RunOnFrameworkThread( - () => - { - var texWidget = dalamudInterface.GetDataWindowWidget<TexWidget>(); - dalamudInterface.SetDataWindowWidget(texWidget); - texWidget.AddTexture(Task.FromResult(textureWrap.CreateWrapSharingLowLevelResource())); - }); - break; - } - - case ContextMenuActionType.SaveAsFile when encoder is not null: - { - var props = new Dictionary<string, object>(); - if (encoder.ContainerGuid == GUID.GUID_ContainerFormatTiff) - props["CompressionQuality"] = 1.0f; - else if (encoder.ContainerGuid == GUID.GUID_ContainerFormatJpeg || - encoder.ContainerGuid == GUID.GUID_ContainerFormatHeif || - encoder.ContainerGuid == GUID.GUID_ContainerFormatWmp) - props["ImageQuality"] = 1.0f; - - var tcs = new TaskCompletionSource<string>(TaskCreationOptions.RunContinuationsAsynchronously); - this.fileDialogManager.SaveFileDialog( - "Save texture...", - $"{encoder.Name.Replace(',', '.')}{{{string.Join(',', encoder.Extensions)}}}", - name + encoder.Extensions.First(), - encoder.Extensions.First(), - (ok, path2) => - { - if (!ok) - tcs.SetCanceled(); - else - tcs.SetResult(path2); - }); - var path = await tcs.Task.ConfigureAwait(false); - - await textureManager.SaveToFileAsync(textureWrap, encoder.ContainerGuid, path, props: props); - - var notif = Service<NotificationManager>.Get().AddNotification( - new() - { - Content = $"File saved to: {path}", - Title = initiatorName, - Type = NotificationType.Success, - }); - notif.Click += n => + var tcs = new TaskCompletionSource<string>(TaskCreationOptions.RunContinuationsAsynchronously); + this.fileDialogManager.SaveFileDialog( + "Save texture...", + $"{encoder.Name.Replace(',', '.')}{{{string.Join(',', encoder.Extensions)}}}", + name + encoder.Extensions.First(), + encoder.Extensions.First(), + (ok, path2) => { - Process.Start(new ProcessStartInfo(path) { UseShellExecute = true }); - n.Notification.DismissNow(); - }; - break; - } + if (!ok) + tcs.SetCanceled(); + else + tcs.SetResult(path2); + }); + path = await tcs.Task.ConfigureAwait(false); } + + var props = new Dictionary<string, object>(); + if (encoder.ContainerGuid == GUID.GUID_ContainerFormatTiff) + props["CompressionQuality"] = 1.0f; + else if (encoder.ContainerGuid == GUID.GUID_ContainerFormatJpeg || + encoder.ContainerGuid == GUID.GUID_ContainerFormatHeif || + encoder.ContainerGuid == GUID.GUID_ContainerFormatWmp) + props["ImageQuality"] = 1.0f; + await textureManager.SaveToFileAsync(textureWrap, encoder.ContainerGuid, path, props: props); + + var notif = Service<NotificationManager>.Get().AddNotification( + new() + { + Content = $"File saved to: {path}", + Title = initiatorName, + Type = NotificationType.Success, + }); + notif.Click += n => + { + Process.Start(new ProcessStartInfo(path) { UseShellExecute = true }); + n.Notification.DismissNow(); + }; } catch (Exception e) { @@ -213,9 +155,7 @@ internal sealed class DevTextureSaveMenu : IInternalDisposableService e, $"{nameof(DalamudInterface)}.{nameof(this.ShowTextureSaveMenuAsync)}({initiatorName}, {name})"); Service<NotificationManager>.Get().AddNotification( - isCopy - ? $"Failed to copy file: {e}" - : $"Failed to save file: {e}", + $"Failed to save file: {e}", initiatorName, NotificationType.Error); } diff --git a/Dalamud/Interface/Utility/Raii/Color.cs b/Dalamud/Interface/Utility/Raii/Color.cs index 9682b929e..3cf93b65c 100644 --- a/Dalamud/Interface/Utility/Raii/Color.cs +++ b/Dalamud/Interface/Utility/Raii/Color.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility.Raii; @@ -28,7 +28,7 @@ public static partial class ImRaii public sealed class Color : IDisposable { - internal static readonly List<(ImGuiCol, uint)> Stack = []; + internal static readonly List<(ImGuiCol, uint)> Stack = new(); private int count; public Color Push(ImGuiCol idx, uint color, bool condition = true) diff --git a/Dalamud/Interface/Utility/Raii/EndObjects.cs b/Dalamud/Interface/Utility/Raii/EndObjects.cs index 80ae495e2..261c071c3 100644 --- a/Dalamud/Interface/Utility/Raii/EndObjects.cs +++ b/Dalamud/Interface/Utility/Raii/EndObjects.cs @@ -1,6 +1,7 @@ using System.Numerics; +using System.Text; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility.Raii; @@ -10,16 +11,16 @@ public static partial class ImRaii { private static int disabledCount = 0; - public static IEndObject Child(ImU8String strId) + public static IEndObject Child(string strId) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId)); - public static IEndObject Child(ImU8String strId, Vector2 size) + public static IEndObject Child(string strId, Vector2 size) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId, size)); - public static IEndObject Child(ImU8String strId, Vector2 size, bool border) + public static IEndObject Child(string strId, Vector2 size, bool border) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId, size, border)); - public static IEndObject Child(ImU8String strId, Vector2 size, bool border, ImGuiWindowFlags flags) + public static IEndObject Child(string strId, Vector2 size, bool border, ImGuiWindowFlags flags) => new EndUnconditionally(ImGui.EndChild, ImGui.BeginChild(strId, size, border, flags)); public static IEndObject DragDropTarget() @@ -31,51 +32,39 @@ public static partial class ImRaii public static IEndObject DragDropSource(ImGuiDragDropFlags flags) => new EndConditionally(ImGui.EndDragDropSource, ImGui.BeginDragDropSource(flags)); - public static IEndObject Popup(ImU8String id) + public static IEndObject Popup(string id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopup(id)); - public static IEndObject Popup(ImU8String id, ImGuiWindowFlags flags) + public static IEndObject Popup(string id, ImGuiWindowFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopup(id, flags)); - public static IEndObject PopupModal(ImU8String id) + public static IEndObject PopupModal(string id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id)); - public static IEndObject PopupModal(ImU8String id, ImGuiWindowFlags flags) - => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, flags)); - - public static IEndObject PopupModal(ImU8String id, ref bool open) + public static IEndObject PopupModal(string id, ref bool open) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, ref open)); - public static IEndObject PopupModal(ImU8String id, ref bool open, ImGuiWindowFlags flags) + public static IEndObject PopupModal(string id, ref bool open, ImGuiWindowFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, ref open, flags)); - public static IEndObject ContextPopup(ImU8String id) + public static IEndObject ContextPopup(string id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextWindow(id)); - public static IEndObject ContextPopup(ImU8String id, ImGuiPopupFlags flags) + public static IEndObject ContextPopup(string id, ImGuiPopupFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextWindow(id, flags)); - public static IEndObject ContextPopupItem(ImU8String id) + public static IEndObject ContextPopupItem(string id) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextItem(id)); - public static IEndObject ContextPopupItem(ImU8String id, ImGuiPopupFlags flags) + public static IEndObject ContextPopupItem(string id, ImGuiPopupFlags flags) => new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextItem(id, flags)); - public static IEndObject Combo(ImU8String label, ImU8String previewValue) + public static IEndObject Combo(string label, string previewValue) => new EndConditionally(ImGui.EndCombo, ImGui.BeginCombo(label, previewValue)); - public static IEndObject Combo(ImU8String label, ImU8String previewValue, ImGuiComboFlags flags) + public static IEndObject Combo(string label, string previewValue, ImGuiComboFlags flags) => new EndConditionally(ImGui.EndCombo, ImGui.BeginCombo(label, previewValue, flags)); - public static IEndObject Menu(ImU8String label) - => new EndConditionally(ImGui.EndMenu, ImGui.BeginMenu(label)); - - public static IEndObject MenuBar() - => new EndConditionally(ImGui.EndMenuBar, ImGui.BeginMenuBar()); - - public static IEndObject MainMenuBar() - => new EndConditionally(ImGui.EndMainMenuBar, ImGui.BeginMainMenuBar()); - public static IEndObject Group() { ImGui.BeginGroup(); @@ -112,49 +101,75 @@ public static partial class ImRaii return new EndUnconditionally(ImGui.PopTextWrapPos, true); } - public static IEndObject ListBox(ImU8String label) + public static IEndObject ListBox(string label) => new EndConditionally(ImGui.EndListBox, ImGui.BeginListBox(label)); - public static IEndObject ListBox(ImU8String label, Vector2 size) + public static IEndObject ListBox(string label, Vector2 size) => new EndConditionally(ImGui.EndListBox, ImGui.BeginListBox(label, size)); - public static IEndObject Table(ImU8String table, int numColumns) + public static IEndObject Table(string table, int numColumns) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns)); - public static IEndObject Table(ImU8String table, int numColumns, ImGuiTableFlags flags) + public static IEndObject Table(string table, int numColumns, ImGuiTableFlags flags) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns, flags)); - public static IEndObject Table(ImU8String table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize) + public static IEndObject Table(string table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns, flags, outerSize)); - public static IEndObject Table(ImU8String table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) + public static IEndObject Table(string table, int numColumns, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) => new EndConditionally(ImGui.EndTable, ImGui.BeginTable(table, numColumns, flags, outerSize, innerWidth)); - public static IEndObject TabBar(ImU8String label) + public static IEndObject TabBar(string label) => new EndConditionally(ImGui.EndTabBar, ImGui.BeginTabBar(label)); - public static IEndObject TabBar(ImU8String label, ImGuiTabBarFlags flags) + public static IEndObject TabBar(string label, ImGuiTabBarFlags flags) => new EndConditionally(ImGui.EndTabBar, ImGui.BeginTabBar(label, flags)); - public static IEndObject TabItem(ImU8String label) + public static IEndObject TabItem(string label) => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label)); public static unsafe IEndObject TabItem(byte* label, ImGuiTabItemFlags flags) - => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, flags)); + => new EndConditionally(ImGuiNative.igEndTabItem, ImGuiNative.igBeginTabItem(label, null, flags) != 0); - public static unsafe IEndObject TabItem(ImU8String label, ImGuiTabItemFlags flags) - => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, flags)); + public static unsafe IEndObject TabItem(string label, ImGuiTabItemFlags flags) + { + ArgumentNullException.ThrowIfNull(label); - public static IEndObject TabItem(ImU8String label, ref bool open) + // One-off for now, we should make this into a generic solution if we need it more often + const int labelMaxAlloc = 2048; + + var labelByteCount = Encoding.UTF8.GetByteCount(label); + + if (labelByteCount > labelMaxAlloc) + { + throw new ArgumentOutOfRangeException(nameof(label), $"Label is too long. (Longer than {labelMaxAlloc} bytes)"); + } + + var nativeLabelStackBytes = stackalloc byte[labelByteCount + 1]; + + int nativeLabelOffset; + fixed (char* utf16Ptr = label) + { + nativeLabelOffset = Encoding.UTF8.GetBytes(utf16Ptr, label.Length, nativeLabelStackBytes, labelByteCount); + } + + nativeLabelStackBytes[nativeLabelOffset] = 0; + + var ret = ImGuiNative.igBeginTabItem(nativeLabelStackBytes, null, flags); + + return new EndConditionally(ImGuiNative.igEndTabItem, ret != 0); + } + + public static IEndObject TabItem(string label, ref bool open) => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, ref open)); - public static IEndObject TabItem(ImU8String label, ref bool open, ImGuiTabItemFlags flags) + public static IEndObject TabItem(string label, ref bool open, ImGuiTabItemFlags flags) => new EndConditionally(ImGui.EndTabItem, ImGui.BeginTabItem(label, ref open, flags)); - public static IEndObject TreeNode(ImU8String label) + public static IEndObject TreeNode(string label) => new EndConditionally(ImGui.TreePop, ImGui.TreeNodeEx(label)); - public static IEndObject TreeNode(ImU8String label, ImGuiTreeNodeFlags flags) + public static IEndObject TreeNode(string label, ImGuiTreeNodeFlags flags) => new EndConditionally(flags.HasFlag(ImGuiTreeNodeFlags.NoTreePushOnOpen) ? Nop : ImGui.TreePop, ImGui.TreeNodeEx(label, flags)); public static IEndObject Disabled() @@ -193,8 +208,8 @@ public static partial class ImRaii return new EndUnconditionally(Restore, true); } - private static EndUnconditionally DisabledEnd() - => new(() => + private static IEndObject DisabledEnd() + => new EndUnconditionally(() => { --disabledCount; ImGui.EndDisabled(); @@ -245,7 +260,7 @@ public static partial class ImRaii // Use end-function regardless of success. // Used by Child, Group and Tooltip. - public struct EndUnconditionally : IEndObject + private struct EndUnconditionally : IEndObject { private Action EndAction { get; } @@ -271,7 +286,7 @@ public static partial class ImRaii } // Use end-function only on success. - public struct EndConditionally : IEndObject + private struct EndConditionally : IEndObject { public EndConditionally(Action endAction, bool success) { diff --git a/Dalamud/Interface/Utility/Raii/Font.cs b/Dalamud/Interface/Utility/Raii/Font.cs index 1b5e8cc58..2d11bb071 100644 --- a/Dalamud/Interface/Utility/Raii/Font.cs +++ b/Dalamud/Interface/Utility/Raii/Font.cs @@ -1,4 +1,4 @@ -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility.Raii; diff --git a/Dalamud/Interface/Utility/Raii/Id.cs b/Dalamud/Interface/Utility/Raii/Id.cs index 7fab495ae..51c6438c4 100644 --- a/Dalamud/Interface/Utility/Raii/Id.cs +++ b/Dalamud/Interface/Utility/Raii/Id.cs @@ -1,4 +1,4 @@ -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility.Raii; @@ -6,7 +6,7 @@ namespace Dalamud.Interface.Utility.Raii; // If condition is false, no id is pushed. public static partial class ImRaii { - public static Id PushId(ImU8String id, bool enabled = true) + public static Id PushId(string id, bool enabled = true) => enabled ? new Id().Push(id) : new Id(); public static Id PushId(int id, bool enabled = true) @@ -19,7 +19,7 @@ public static partial class ImRaii { private int count; - public Id Push(ImU8String id, bool condition = true) + public Id Push(string id, bool condition = true) { if (condition) { @@ -41,11 +41,11 @@ public static partial class ImRaii return this; } - public unsafe Id Push(IntPtr id, bool condition = true) + public Id Push(IntPtr id, bool condition = true) { if (condition) { - ImGui.PushID(id.ToPointer()); + ImGui.PushID(id); ++this.count; } diff --git a/Dalamud/Interface/Utility/Raii/Indent.cs b/Dalamud/Interface/Utility/Raii/Indent.cs index 5057cebf1..3c8f0f1da 100644 --- a/Dalamud/Interface/Utility/Raii/Indent.cs +++ b/Dalamud/Interface/Utility/Raii/Indent.cs @@ -1,4 +1,4 @@ -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility.Raii; diff --git a/Dalamud/Interface/Utility/Raii/Plot.cs b/Dalamud/Interface/Utility/Raii/Plot.cs index e88919e48..fdf8ddf5a 100644 --- a/Dalamud/Interface/Utility/Raii/Plot.cs +++ b/Dalamud/Interface/Utility/Raii/Plot.cs @@ -2,8 +2,9 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Bindings.ImPlot; +using ImGuiNET; + +using ImPlotNET; namespace Dalamud.Interface.Utility.Raii; @@ -12,44 +13,26 @@ public static partial class ImRaii { #region EndObjects - public static IEndObject Plot(string titleId, Vector2 size, ImPlotFlags flags) - => new EndConditionally(ImPlot.EndPlot, ImPlot.BeginPlot(titleId, size, flags)); + public static IEndObject Plot(string title_id, Vector2 size, ImPlotFlags flags) + => new EndConditionally(ImPlot.EndPlot, ImPlot.BeginPlot(title_id, size, flags)); - public static IEndObject Plot(ReadOnlySpan<byte> titleId, Vector2 size, ImPlotFlags flags) - => new EndConditionally(ImPlot.EndPlot, ImPlot.BeginPlot(titleId, size, flags)); + public static IEndObject AlignedPlots(string group_id, bool vertical = true) + => new EndConditionally(ImPlot.EndAlignedPlots, ImPlot.BeginAlignedPlots(group_id, vertical)); - public static IEndObject AlignedPlots(string groupId, bool vertical = true) - => new EndConditionally(ImPlot.EndAlignedPlots, ImPlot.BeginAlignedPlots(groupId, vertical)); + public static IEndObject LegendPopup(string label_id, ImGuiMouseButton mouse_button = ImGuiMouseButton.Right) + => new EndConditionally(ImPlot.EndLegendPopup, ImPlot.BeginLegendPopup(label_id, mouse_button)); - public static IEndObject AlignedPlots(ReadOnlySpan<byte> groupId, bool vertical = true) - => new EndConditionally(ImPlot.EndAlignedPlots, ImPlot.BeginAlignedPlots(groupId, vertical)); + public static IEndObject Subplots(string title_id, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags = ImPlotSubplotFlags.None) + => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(title_id, rows, cols, size, flags)); - public static IEndObject LegendPopup(string labelId, ImGuiMouseButton mouseButton = ImGuiMouseButton.Right) - => new EndConditionally(ImPlot.EndLegendPopup, ImPlot.BeginLegendPopup(labelId, mouseButton)); - - public static IEndObject LegendPopup(ReadOnlySpan<byte> labelId, ImGuiMouseButton mouseButton = ImGuiMouseButton.Right) - => new EndConditionally(ImPlot.EndLegendPopup, ImPlot.BeginLegendPopup(labelId, mouseButton)); - - public static IEndObject Subplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags = ImPlotSubplotFlags.None) - => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags)); - - public static IEndObject Subplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags = ImPlotSubplotFlags.None) - => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags)); - - public static IEndObject Subplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) - => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags, ref rowRatios, ref colRatios)); - - public static IEndObject Subplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) - => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(titleId, rows, cols, size, flags, ref rowRatios, ref colRatios)); + public static IEndObject Subplots(string title_id, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float row_ratios, ref float col_ratios) + => new EndConditionally(ImPlot.EndSubplots, ImPlot.BeginSubplots(title_id, rows, cols, size, flags, ref row_ratios, ref col_ratios)); public static IEndObject DragDropSourceAxis(ImAxis axis, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceAxis(axis, flags)); - - public static IEndObject DragDropSourceItem(string labelId, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) - => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceItem(labelId, flags)); - - public static IEndObject DragDropSourceItem(ReadOnlySpan<byte> labelId, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) - => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceItem(labelId, flags)); + + public static IEndObject DragDropSourceItem(string label_id, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) + => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourceItem(label_id, flags)); public static IEndObject DragDropSourcePlot(ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) => new EndConditionally(ImPlot.EndDragDropSource, ImPlot.BeginDragDropSourcePlot(flags)); @@ -96,7 +79,7 @@ public static partial class ImRaii public sealed class PlotStyle : IDisposable { - internal static readonly List<(ImPlotStyleVar, Vector2)> Stack = []; + internal static readonly List<(ImPlotStyleVar, Vector2)> Stack = new(); private int count; @@ -111,9 +94,9 @@ public static partial class ImRaii ImPlotStyleVar.FillAlpha => type != typeof(float), ImPlotStyleVar.ErrorBarSize => type != typeof(float), ImPlotStyleVar.ErrorBarWeight => type != typeof(float), - // ImPlotStyleVar.DigitalBitHeight => type != typeof(float), - // ImPlotStyleVar.DigitalBitGap => type != typeof(float), - // ImPlotStyleVar.PlotBorderSize => type != typeof(float), + ImPlotStyleVar.DigitalBitHeight => type != typeof(float), + ImPlotStyleVar.DigitalBitGap => type != typeof(float), + ImPlotStyleVar.PlotBorderSize => type != typeof(float), ImPlotStyleVar.MinorAlpha => type != typeof(float), ImPlotStyleVar.MajorTickLen => type != typeof(Vector2), ImPlotStyleVar.MinorTickLen => type != typeof(Vector2), @@ -121,7 +104,7 @@ public static partial class ImRaii ImPlotStyleVar.MinorTickSize => type != typeof(Vector2), ImPlotStyleVar.MajorGridSize => type != typeof(Vector2), ImPlotStyleVar.MinorGridSize => type != typeof(Vector2), - // ImPlotStyleVar.PlotPadding => type != typeof(Vector2), + ImPlotStyleVar.PlotPadding => type != typeof(Vector2), ImPlotStyleVar.LabelPadding => type != typeof(Vector2), ImPlotStyleVar.LegendPadding => type != typeof(Vector2), ImPlotStyleVar.LegendInnerPadding => type != typeof(Vector2), @@ -129,8 +112,8 @@ public static partial class ImRaii ImPlotStyleVar.MousePosPadding => type != typeof(Vector2), ImPlotStyleVar.AnnotationPadding => type != typeof(Vector2), ImPlotStyleVar.FitPadding => type != typeof(Vector2), - // ImPlotStyleVar.PlotDefaultSize => type != typeof(Vector2), - // ImPlotStyleVar.PlotMinSize => type != typeof(Vector2), + ImPlotStyleVar.PlotDefaultSize => type != typeof(Vector2), + ImPlotStyleVar.PlotMinSize => type != typeof(Vector2), _ => throw new ArgumentOutOfRangeException(nameof(idx), idx, null), }; @@ -150,9 +133,9 @@ public static partial class ImRaii ImPlotStyleVar.FillAlpha => new Vector2(style.FillAlpha, float.NaN), ImPlotStyleVar.ErrorBarSize => new Vector2(style.ErrorBarSize, float.NaN), ImPlotStyleVar.ErrorBarWeight => new Vector2(style.ErrorBarWeight, float.NaN), - // ImPlotStyleVar.DigitalBitHeight => new Vector2(style.DigitalBitHeight, float.NaN), - // ImPlotStyleVar.DigitalBitGap => new Vector2(style.DigitalBitGap, float.NaN), - // ImPlotStyleVar.PlotBorderSize => new Vector2(style.PlotBorderSize, float.NaN), + ImPlotStyleVar.DigitalBitHeight => new Vector2(style.DigitalBitHeight, float.NaN), + ImPlotStyleVar.DigitalBitGap => new Vector2(style.DigitalBitGap, float.NaN), + ImPlotStyleVar.PlotBorderSize => new Vector2(style.PlotBorderSize, float.NaN), ImPlotStyleVar.MinorAlpha => new Vector2(style.MinorAlpha, float.NaN), ImPlotStyleVar.MajorTickLen => style.MajorTickLen, ImPlotStyleVar.MinorTickLen => style.MinorTickLen, @@ -160,7 +143,7 @@ public static partial class ImRaii ImPlotStyleVar.MinorTickSize => style.MinorTickSize, ImPlotStyleVar.MajorGridSize => style.MajorGridSize, ImPlotStyleVar.MinorGridSize => style.MinorGridSize, - // ImPlotStyleVar.PlotPadding => style.PlotPadding, + ImPlotStyleVar.PlotPadding => style.PlotPadding, ImPlotStyleVar.LabelPadding => style.LabelPadding, ImPlotStyleVar.LegendPadding => style.LegendPadding, ImPlotStyleVar.LegendInnerPadding => style.LegendInnerPadding, @@ -168,8 +151,8 @@ public static partial class ImRaii ImPlotStyleVar.MousePosPadding => style.MousePosPadding, ImPlotStyleVar.AnnotationPadding => style.AnnotationPadding, ImPlotStyleVar.FitPadding => style.FitPadding, - // ImPlotStyleVar.PlotDefaultSize => style.PlotDefaultSize, - // ImPlotStyleVar.PlotMinSize => style.PlotMinSize, + ImPlotStyleVar.PlotDefaultSize => style.PlotDefaultSize, + ImPlotStyleVar.PlotMinSize => style.PlotMinSize, _ => throw new ArgumentOutOfRangeException(nameof(idx), idx, null), }; } @@ -249,7 +232,7 @@ public static partial class ImRaii public sealed class PlotColor : IDisposable { - internal static readonly List<(ImPlotCol, uint)> Stack = []; + internal static readonly List<(ImPlotCol, uint)> Stack = new(); private int count; // Reimplementation of https://github.com/ocornut/imgui/blob/868facff9ded2d61425c67deeba354eb24275bd1/imgui.cpp#L3035 diff --git a/Dalamud/Interface/Utility/Raii/Style.cs b/Dalamud/Interface/Utility/Raii/Style.cs index e178b68d3..6a8db074b 100644 --- a/Dalamud/Interface/Utility/Raii/Style.cs +++ b/Dalamud/Interface/Utility/Raii/Style.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility.Raii; @@ -35,7 +35,7 @@ public static partial class ImRaii public sealed class Style : IDisposable { - internal static readonly List<(ImGuiStyleVar, Vector2)> Stack = []; + internal static readonly List<(ImGuiStyleVar, Vector2)> Stack = new(); private int count; diff --git a/Dalamud/Interface/Utility/Table/Column.cs b/Dalamud/Interface/Utility/Table/Column.cs index 468d49adc..412ba87dc 100644 --- a/Dalamud/Interface/Utility/Table/Column.cs +++ b/Dalamud/Interface/Utility/Table/Column.cs @@ -1,4 +1,4 @@ -using Dalamud.Bindings.ImGui; +using ImGuiNET; namespace Dalamud.Interface.Utility.Table; @@ -16,7 +16,7 @@ public class Column<TItem> public virtual bool DrawFilter() { ImGui.AlignTextToFramePadding(); - ImGui.Text(this.Label); + ImGui.TextUnformatted(this.Label); return false; } diff --git a/Dalamud/Interface/Utility/Table/ColumnFlags.cs b/Dalamud/Interface/Utility/Table/ColumnFlags.cs index e471920a1..24670adfc 100644 --- a/Dalamud/Interface/Utility/Table/ColumnFlags.cs +++ b/Dalamud/Interface/Utility/Table/ColumnFlags.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; namespace Dalamud.Interface.Utility.Table; @@ -38,7 +38,7 @@ public class ColumnFlags<T, TItem> : Column<TItem> where T : struct, Enum } if (!all && ImGui.IsItemHovered()) - ImGui.SetTooltip("Right-click to clear filters."u8); + ImGui.SetTooltip("Right-click to clear filters."); if (!combo) return false; @@ -46,7 +46,7 @@ public class ColumnFlags<T, TItem> : Column<TItem> where T : struct, Enum color.Pop(); var ret = false; - if (ImGui.Checkbox("Enable All"u8, ref all)) + if (ImGui.Checkbox("Enable All", ref all)) { this.SetValue(this.AllFlags, all); ret = true; diff --git a/Dalamud/Interface/Utility/Table/ColumnSelect.cs b/Dalamud/Interface/Utility/Table/ColumnSelect.cs index fd796be60..fb463700c 100644 --- a/Dalamud/Interface/Utility/Table/ColumnSelect.cs +++ b/Dalamud/Interface/Utility/Table/ColumnSelect.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; namespace Dalamud.Interface.Utility.Table; diff --git a/Dalamud/Interface/Utility/Table/ColumnString.cs b/Dalamud/Interface/Utility/Table/ColumnString.cs index 106f811f7..3f9d2df91 100644 --- a/Dalamud/Interface/Utility/Table/ColumnString.cs +++ b/Dalamud/Interface/Utility/Table/ColumnString.cs @@ -1,7 +1,7 @@ using System.Text.RegularExpressions; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; +using ImGuiNET; namespace Dalamud.Interface.Utility.Table; @@ -52,6 +52,6 @@ public class ColumnString<TItem> : Column<TItem> public override void DrawColumn(TItem item, int idx) { - ImGui.Text(this.ToName(item)); + ImGui.TextUnformatted(this.ToName(item)); } } diff --git a/Dalamud/Interface/Utility/Table/Table.cs b/Dalamud/Interface/Utility/Table/Table.cs index 44f98d531..86653e834 100644 --- a/Dalamud/Interface/Utility/Table/Table.cs +++ b/Dalamud/Interface/Utility/Table/Table.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Interface.Utility.Raii; using Dalamud.Utility; +using ImGuiNET; namespace Dalamud.Interface.Utility.Table; @@ -143,7 +143,7 @@ public class Table<T> private void DrawTableInternal() { - using var table = ImRaii.Table("Table"u8, this.Headers.Length, this.Flags, + using var table = ImRaii.Table("Table", this.Headers.Length, this.Flags, ImGui.GetContentRegionAvail() - this.ExtraHeight * Vector2.UnitY * ImGuiHelpers.GlobalScale); if (!table) return; diff --git a/Dalamud/Interface/Windowing/Persistence/PresetModel.cs b/Dalamud/Interface/Windowing/Persistence/PresetModel.cs deleted file mode 100644 index 1c6a93c16..000000000 --- a/Dalamud/Interface/Windowing/Persistence/PresetModel.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System.Collections.Generic; - -using Newtonsoft.Json; - -namespace Dalamud.Interface.Windowing.Persistence; - -/// <summary> -/// Class representing a Window System preset. -/// </summary> -internal class PresetModel -{ - /// <summary> - /// Gets or sets the ID of this preset. - /// </summary> - [JsonProperty("id")] - public Guid Id { get; set; } - - /// <summary> - /// Gets or sets the name of this preset. - /// </summary> - [JsonProperty("n")] - public string Name { get; set; } = "New Preset"; - - /// <summary> - /// Gets or sets a dictionary containing the windows in the preset, mapping their ID to the preset. - /// </summary> - [JsonProperty("w")] - public Dictionary<uint, PresetWindow> Windows { get; set; } = []; - - /// <summary> - /// Class representing a window in a preset. - /// </summary> - internal class PresetWindow - { - /// <summary> - /// Gets or sets a value indicating whether the window is pinned. - /// </summary> - [JsonProperty("p")] - public bool IsPinned { get; set; } - - /// <summary> - /// Gets or sets a value indicating whether the window is clickthrough. - /// </summary> - [JsonProperty("ct")] - public bool IsClickThrough { get; set; } - - /// <summary> - /// Gets or sets the window's opacity override. - /// </summary> - [JsonProperty("a")] - public float? Alpha { get; set; } - - /// <summary> - /// Gets a value indicating whether this preset is in the default state. - /// </summary> - [JsonIgnore] - public bool IsDefault => - !this.IsPinned && - !this.IsClickThrough && - !this.Alpha.HasValue; - } -} diff --git a/Dalamud/Interface/Windowing/Persistence/WindowSystemPersistence.cs b/Dalamud/Interface/Windowing/Persistence/WindowSystemPersistence.cs deleted file mode 100644 index a64928003..000000000 --- a/Dalamud/Interface/Windowing/Persistence/WindowSystemPersistence.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Dalamud.Configuration.Internal; - -namespace Dalamud.Interface.Windowing.Persistence; - -/// <summary> -/// Class handling persistence for window system windows. -/// </summary> -[ServiceManager.EarlyLoadedService] -internal class WindowSystemPersistence : IServiceType -{ - [ServiceManager.ServiceDependency] - private readonly DalamudConfiguration config = Service<DalamudConfiguration>.Get(); - - /// <summary> - /// Initializes a new instance of the <see cref="WindowSystemPersistence"/> class. - /// </summary> - [ServiceManager.ServiceConstructor] - public WindowSystemPersistence() - { - } - - /// <summary> - /// Gets the active window system preset. - /// </summary> - public PresetModel ActivePreset => this.config.DefaultUiPreset; - - /// <summary> - /// Get or add a window to the active preset. - /// </summary> - /// <param name="id">The ID of the window.</param> - /// <returns>The preset window instance, or null if the preset does not contain this window.</returns> - public PresetModel.PresetWindow? GetWindow(uint id) - { - return this.ActivePreset.Windows.TryGetValue(id, out var window) ? window : null; - } - - /// <summary> - /// Persist the state of a window to the active preset. - /// </summary> - /// <param name="id">The ID of the window.</param> - /// <param name="window">The preset window instance.</param> - public void SaveWindow(uint id, PresetModel.PresetWindow window) - { - // If the window is in the default state, don't save it to avoid saving every possible window - // if the user has not customized anything. - if (window.IsDefault) - { - this.ActivePreset.Windows.Remove(id); - } - else - { - this.ActivePreset.Windows[id] = window; - } - - this.config.QueueSave(); - } -} diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index dab3506c0..589217a73 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -1,30 +1,20 @@ using System.Collections.Generic; -using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Numerics; -using System.Threading.Tasks; +using System.Runtime.InteropServices; using CheapLoc; - -using Dalamud.Bindings.ImGui; +using Dalamud.Configuration.Internal; using Dalamud.Game.ClientState.Keys; using Dalamud.Interface.Colors; -using Dalamud.Interface.Components; using Dalamud.Interface.Internal; -using Dalamud.Interface.Internal.Windows.StyleEditor; -using Dalamud.Interface.Textures.Internal; -using Dalamud.Interface.Textures.TextureWraps; using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Internal; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing.Persistence; using Dalamud.Logging.Internal; using FFXIVClientStructs.FFXIV.Client.UI; - -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; +using ImGuiNET; +using PInvoke; namespace Dalamud.Interface.Windowing; @@ -33,16 +23,10 @@ namespace Dalamud.Interface.Windowing; /// </summary> public abstract class Window { - private const float FadeInOutTime = 0.072f; - private const string AdditionsPopupName = "WindowSystemContextActions"; - - private static readonly ModuleLog Log = ModuleLog.Create<WindowSystem>(); + private static readonly ModuleLog Log = new("WindowSystem"); private static bool wasEscPressedLastFrame = false; - - private readonly TitleBarButton additionsButton; - private readonly List<TitleBarButton> allButtons = []; - + private bool internalLastIsOpen = false; private bool internalIsOpen = false; private bool internalIsPinned = false; @@ -51,92 +35,20 @@ public abstract class Window private float? internalAlpha = null; private bool nextFrameBringToFront = false; - private bool hasInitializedFromPreset = false; - private PresetModel.PresetWindow? presetWindow; - private bool presetDirty = false; - - private bool pushedFadeInAlpha = false; - private float fadeInTimer = 0f; - private float fadeOutTimer = 0f; - private IDrawListTextureWrap? fadeOutTexture = null; - private Vector2 fadeOutSize = Vector2.Zero; - private Vector2 fadeOutOrigin = Vector2.Zero; - - private bool hasError = false; - private Exception? lastError; - /// <summary> /// Initializes a new instance of the <see cref="Window"/> class. /// </summary> /// <param name="name">The name/ID of this window. /// If you have multiple windows with the same name, you will need to - /// append a unique ID to it by specifying it after "###" behind the window title. + /// append an unique ID to it by specifying it after "###" behind the window title. /// </param> /// <param name="flags">The <see cref="ImGuiWindowFlags"/> of this window.</param> - /// <param name="forceMainWindow">Whether this window should be limited to the main game window.</param> + /// <param name="forceMainWindow">Whether or not this window should be limited to the main game window.</param> protected Window(string name, ImGuiWindowFlags flags = ImGuiWindowFlags.None, bool forceMainWindow = false) { this.WindowName = name; this.Flags = flags; this.ForceMainWindow = forceMainWindow; - - this.additionsButton = new() - { - Icon = FontAwesomeIcon.Bars, - IconOffset = new Vector2(2.5f, 1), - Click = _ => - { - this.internalIsClickthrough = false; - this.presetDirty = true; - ImGui.OpenPopup(AdditionsPopupName); - }, - Priority = int.MinValue, - AvailableClickthrough = true, - }; - } - - /// <summary> - /// Initializes a new instance of the <see cref="Window"/> class. - /// </summary> - /// <param name="name">The name/ID of this window. - /// If you have multiple windows with the same name, you will need to - /// append a unique ID to it by specifying it after "###" behind the window title. - /// </param> - protected Window(string name) - : this(name, ImGuiWindowFlags.None) - { - } - - /// <summary> - /// Flags to control window behavior. - /// </summary> - [Flags] - internal enum WindowDrawFlags - { - /// <summary> - /// Nothing. - /// </summary> - None = 0, - - /// <summary> - /// Enable window opening/closing sound effects. - /// </summary> - UseSoundEffects = 1 << 0, - - /// <summary> - /// Hook into the game's focus management. - /// </summary> - UseFocusManagement = 1 << 1, - - /// <summary> - /// Enable the built-in "additional options" menu on the title bar. - /// </summary> - UseAdditionalOptions = 1 << 2, - - /// <summary> - /// Do not draw non-critical animations. - /// </summary> - IsReducedMotion = 1 << 3, } /// <summary> @@ -175,13 +87,7 @@ public abstract class Window /// Gets or sets a value representing the sound effect id to be played when the window is closed. /// </summary> public uint OnCloseSfxId { get; set; } = 24u; - - /// <summary> - /// Gets or sets a value indicating whether this window should not fade in and out, regardless of the users' - /// preference. - /// </summary> - public bool DisableFadeInFadeOut { get; set; } = false; - + /// <summary> /// Gets or sets the position of this window. /// </summary> @@ -208,7 +114,7 @@ public abstract class Window public WindowSizeConstraints? SizeConstraints { get; set; } /// <summary> - /// Gets or sets a value indicating whether this window is collapsed. + /// Gets or sets a value indicating whether or not this window is collapsed. /// </summary> public bool? Collapsed { get; set; } @@ -223,7 +129,7 @@ public abstract class Window public ImGuiWindowFlags Flags { get; set; } /// <summary> - /// Gets or sets a value indicating whether this ImGui window will be forced to stay inside the main game window. + /// Gets or sets a value indicating whether or not this ImGui window will be forced to stay inside the main game window. /// </summary> public bool ForceMainWindow { get; set; } @@ -233,48 +139,38 @@ public abstract class Window public float? BgAlpha { get; set; } /// <summary> - /// Gets or sets a value indicating whether this ImGui window should display a close button in the title bar. + /// Gets or sets a value indicating whether or not this ImGui window should display a close button in the title bar. /// </summary> public bool ShowCloseButton { get; set; } = true; /// <summary> - /// Gets or sets a value indicating whether this window should offer to be pinned via the window's titlebar context menu. + /// Gets or sets a value indicating whether or not this window should offer to be pinned via the window's titlebar context menu. /// </summary> public bool AllowPinning { get; set; } = true; /// <summary> - /// Gets or sets a value indicating whether this window should offer to be made click-through via the window's titlebar context menu. + /// Gets or sets a value indicating whether or not this window should offer to be made click-through via the window's titlebar context menu. /// </summary> public bool AllowClickthrough { get; set; } = true; - /// <summary> - /// Gets a value indicating whether this window is pinned. - /// </summary> - public bool IsPinned => this.internalIsPinned; - - /// <summary> - /// Gets a value indicating whether this window is click-through. - /// </summary> - public bool IsClickthrough => this.internalIsClickthrough; - /// <summary> /// Gets or sets a list of available title bar buttons. - /// + /// /// If <see cref="AllowPinning"/> or <see cref="AllowClickthrough"/> are set to true, and this features is not /// disabled globally by the user, an internal title bar button to manage these is added when drawing, but it will /// not appear in this collection. If you wish to remove this button, set both of these values to false. /// </summary> - public List<TitleBarButton> TitleBarButtons { get; set; } = []; + public List<TitleBarButton> TitleBarButtons { get; set; } = new(); /// <summary> - /// Gets or sets a value indicating whether this window will stay open. + /// Gets or sets a value indicating whether or not this window will stay open. /// </summary> public bool IsOpen { get => this.internalIsOpen; set => this.internalIsOpen = value; } - + private bool CanShowCloseButton => this.ShowCloseButton && !this.internalIsClickthrough; /// <summary> @@ -365,30 +261,22 @@ public abstract class Window { } - /// <summary> - /// Code to be executed when the window is safe to be disposed or removed from the window system. - /// Doing so in <see cref="OnClose"/> may result in animations not playing correctly. - /// </summary> - public virtual void OnSafeToRemove() - { - } - /// <summary> /// Code to be executed every frame, even when the window is collapsed. /// </summary> public virtual void Update() { } - + /// <summary> /// Draw the window via ImGui. /// </summary> - /// <param name="internalDrawFlags">Flags controlling window behavior.</param> - /// <param name="persistence">Handler for window persistence data.</param> - internal void DrawInternal(WindowDrawFlags internalDrawFlags, WindowSystemPersistence? persistence) + /// <param name="configuration">Configuration instance used to check if certain window management features should be enabled.</param> + internal void DrawInternal(DalamudConfiguration? configuration) { this.PreOpenCheck(); - var doFades = !internalDrawFlags.HasFlag(WindowDrawFlags.IsReducedMotion) && !this.DisableFadeInFadeOut; + + var doSoundEffects = configuration?.EnablePluginUISoundEffects ?? false; if (!this.IsOpen) { @@ -398,34 +286,13 @@ public abstract class Window this.OnClose(); this.IsFocused = false; - - if (internalDrawFlags.HasFlag(WindowDrawFlags.UseSoundEffects) && !this.DisableWindowSounds) - UIGlobals.PlaySoundEffect(this.OnCloseSfxId); + + if (doSoundEffects && !this.DisableWindowSounds) UIGlobals.PlaySoundEffect(this.OnCloseSfxId); } - if (this.fadeOutTexture != null) - { - this.fadeOutTimer -= ImGui.GetIO().DeltaTime; - if (this.fadeOutTimer <= 0f) - { - this.fadeOutTexture.Dispose(); - this.fadeOutTexture = null; - this.OnSafeToRemove(); - } - else - { - this.DrawFakeFadeOutWindow(); - } - } - - this.fadeInTimer = doFades ? 0f : FadeInOutTime; return; } - this.fadeInTimer += ImGui.GetIO().DeltaTime; - if (this.fadeInTimer > FadeInOutTime) - this.fadeInTimer = FadeInOutTime; - this.Update(); if (!this.DrawConditions()) return; @@ -434,35 +301,23 @@ public abstract class Window if (hasNamespace) ImGui.PushID(this.Namespace); - - this.PreHandlePreset(persistence); - + if (this.internalLastIsOpen != this.internalIsOpen && this.internalIsOpen) { this.internalLastIsOpen = this.internalIsOpen; this.OnOpen(); - if (internalDrawFlags.HasFlag(WindowDrawFlags.UseSoundEffects) && !this.DisableWindowSounds) - UIGlobals.PlaySoundEffect(this.OnOpenSfxId); + if (doSoundEffects && !this.DisableWindowSounds) UIGlobals.PlaySoundEffect(this.OnOpenSfxId); } - var isErrorStylePushed = false; - if (!this.hasError) - { - this.PreDraw(); - this.ApplyConditionals(); - } - else - { - Style.StyleModelV1.DalamudStandard.Push(); - isErrorStylePushed = true; - } + this.PreDraw(); + this.ApplyConditionals(); if (this.ForceMainWindow) ImGuiHelpers.ForceNextWindowMainViewport(); var wasFocused = this.IsFocused; - if (wasFocused && this is not StyleEditorWindow) + if (wasFocused) { var style = ImGui.GetStyle(); var focusedHeaderColor = style.Colors[(int)ImGuiCol.TitleBgActive]; @@ -478,72 +333,41 @@ public abstract class Window var flags = this.Flags; if (this.internalIsPinned || this.internalIsClickthrough) - { flags |= ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize; - } if (this.internalIsClickthrough) - { flags |= ImGuiWindowFlags.NoInputs | ImGuiWindowFlags.NoNav | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoScrollWithMouse | ImGuiWindowFlags.NoMouseInputs; - } - - // If we have an error, reset all flags to default, and unlock window size. - if (this.hasError) - { - flags = ImGuiWindowFlags.None; - ImGui.SetNextWindowCollapsed(false, ImGuiCond.Once); - ImGui.SetNextWindowSizeConstraints(Vector2.Zero, Vector2.PositiveInfinity); - } if (this.CanShowCloseButton ? ImGui.Begin(this.WindowName, ref this.internalIsOpen, flags) : ImGui.Begin(this.WindowName, flags)) { - var context = ImGui.GetCurrentContext(); - if (!context.IsNull) + // Draw the actual window contents + try { - ImGuiP.GetCurrentWindow().InheritNoInputs = this.internalIsClickthrough; + this.Draw(); } - - if (ImGui.GetWindowViewport().ID != ImGui.GetMainViewport().ID) + catch (Exception ex) { - if ((flags & ImGuiWindowFlags.NoInputs) == ImGuiWindowFlags.NoInputs) - ImGui.GetWindowViewport().Flags |= ImGuiViewportFlags.NoInputs; - else - ImGui.GetWindowViewport().Flags &= ~ImGuiViewportFlags.NoInputs; - } - - if (this.hasError) - { - this.DrawErrorMessage(); - } - else - { - // Draw the actual window contents - try - { - this.Draw(); - } - catch (Exception ex) - { - Log.Error(ex, "Error during Draw(): {WindowName}", this.WindowName); - - this.hasError = true; - this.lastError = ex; - } + Log.Error(ex, "Error during Draw(): {WindowName}", this.WindowName); } } + const string additionsPopupName = "WindowSystemContextActions"; var flagsApplicableForTitleBarIcons = !flags.HasFlag(ImGuiWindowFlags.NoDecoration) && !flags.HasFlag(ImGuiWindowFlags.NoTitleBar); var showAdditions = (this.AllowPinning || this.AllowClickthrough) && - internalDrawFlags.HasFlag(WindowDrawFlags.UseAdditionalOptions) && + (configuration?.EnablePluginUiAdditionalOptions ?? true) && flagsApplicableForTitleBarIcons; - var printWindow = false; if (showAdditions) { ImGui.PushStyleVar(ImGuiStyleVar.Alpha, 1f); - if (ImGui.BeginPopup(AdditionsPopupName, ImGuiWindowFlags.NoMove)) + if (ImGui.BeginPopup(additionsPopupName, ImGuiWindowFlags.NoMove)) { + var isAvailable = ImGuiHelpers.CheckIsWindowOnMainViewport(); + + if (!isAvailable) + ImGui.BeginDisabled(); + if (this.internalIsClickthrough) ImGui.BeginDisabled(); @@ -551,80 +375,90 @@ public abstract class Window { var showAsPinned = this.internalIsPinned || this.internalIsClickthrough; if (ImGui.Checkbox(Loc.Localize("WindowSystemContextActionPin", "Pin Window"), ref showAsPinned)) - { this.internalIsPinned = showAsPinned; - this.presetDirty = true; - } - - ImGuiComponents.HelpMarker( - Loc.Localize("WindowSystemContextActionPinHint", "Pinned windows will not move or resize when you click and drag them, nor will they close when escape is pressed.")); } if (this.internalIsClickthrough) ImGui.EndDisabled(); if (this.AllowClickthrough) - { - if (ImGui.Checkbox( - Loc.Localize("WindowSystemContextActionClickthrough", "Make clickthrough"), - ref this.internalIsClickthrough)) - { - this.presetDirty = true; - } - - ImGuiComponents.HelpMarker( - Loc.Localize("WindowSystemContextActionClickthroughHint", "Clickthrough windows will not receive mouse input, move or resize. They are completely inert.")); - } + ImGui.Checkbox(Loc.Localize("WindowSystemContextActionClickthrough", "Make clickthrough"), ref this.internalIsClickthrough); var alpha = (this.internalAlpha ?? ImGui.GetStyle().Alpha) * 100f; if (ImGui.SliderFloat(Loc.Localize("WindowSystemContextActionAlpha", "Opacity"), ref alpha, 20f, 100f)) { - this.internalAlpha = Math.Clamp(alpha / 100f, 0.2f, 1f); - this.presetDirty = true; + this.internalAlpha = alpha / 100f; } ImGui.SameLine(); if (ImGui.Button(Loc.Localize("WindowSystemContextActionReset", "Reset"))) { this.internalAlpha = null; - this.presetDirty = true; } - ImGui.TextColored( - ImGuiColors.DalamudGrey, - Loc.Localize( - "WindowSystemContextActionClickthroughDisclaimer", - "Open this menu again by clicking the three dashes to disable clickthrough.")); - - if (ImGui.Button(Loc.Localize("WindowSystemContextActionPrintWindow", "Print window"))) - printWindow = true; + if (isAvailable) + { + ImGui.TextColored(ImGuiColors.DalamudGrey, + Loc.Localize("WindowSystemContextActionClickthroughDisclaimer", + "Open this menu again to disable clickthrough.")); + ImGui.TextColored(ImGuiColors.DalamudGrey, + Loc.Localize("WindowSystemContextActionDisclaimer", + "These options may not work for all plugins at the moment.")); + } + else + { + ImGui.TextColored(ImGuiColors.DalamudGrey, + Loc.Localize("WindowSystemContextActionViewportDisclaimer", + "These features are only available if this window is inside the game window.")); + } + if (!isAvailable) + ImGui.EndDisabled(); + ImGui.EndPopup(); } ImGui.PopStyleVar(); } - if (flagsApplicableForTitleBarIcons) + var titleBarRect = Vector4.Zero; + unsafe { - this.allButtons.Clear(); - this.allButtons.EnsureCapacity(this.TitleBarButtons.Count + 1); - this.allButtons.AddRange(this.TitleBarButtons); - if (showAdditions) - this.allButtons.Add(this.additionsButton); - this.allButtons.Sort(static (a, b) => b.Priority - a.Priority); - this.DrawTitleBarButtons(); + var window = ImGuiNativeAdditions.igGetCurrentWindow(); + ImGuiNativeAdditions.ImGuiWindow_TitleBarRect(&titleBarRect, window); + + var additionsButton = new TitleBarButton + { + Icon = FontAwesomeIcon.Bars, + IconOffset = new Vector2(2.5f, 1), + Click = _ => + { + this.internalIsClickthrough = false; + ImGui.OpenPopup(additionsPopupName); + }, + Priority = int.MinValue, + AvailableClickthrough = true, + }; + + if (flagsApplicableForTitleBarIcons) + { + this.DrawTitleBarButtons(window, flags, titleBarRect, + showAdditions + ? this.TitleBarButtons.Append(additionsButton) + : this.TitleBarButtons); + } } - if (wasFocused && this is not StyleEditorWindow) + if (wasFocused) { ImGui.PopStyleColor(); } this.IsFocused = ImGui.IsWindowFocused(ImGuiFocusedFlags.RootAndChildWindows); - if (internalDrawFlags.HasFlag(WindowDrawFlags.UseFocusManagement) && !this.internalIsPinned) + var isAllowed = configuration?.IsFocusManagementEnabled ?? false; + if (isAllowed) { var escapeDown = Service<KeyState>.Get()[VirtualKey.ESCAPE]; if (escapeDown && this.IsFocused && !wasEscPressedLastFrame && this.RespectCloseHotkey) @@ -638,59 +472,15 @@ public abstract class Window } } - this.fadeOutSize = ImGui.GetWindowSize(); - this.fadeOutOrigin = ImGui.GetWindowPos(); - var isCollapsed = ImGui.IsWindowCollapsed(); - var isDocked = ImGui.IsWindowDocked(); - ImGui.End(); - if (this.pushedFadeInAlpha) - { - ImGui.PopStyleVar(); - this.pushedFadeInAlpha = false; - } - - // TODO: No fade-out if the window is collapsed. We could do this if we knew the "FullSize" of the window - // from the internal ImGuiWindow, but I don't want to mess with that here for now. We can do this a lot - // easier with the new bindings. - // TODO: No fade-out if docking is enabled and the window is docked, since this makes them "unsnap". - // Ideally we should get rid of this "fake window" thing and just insert a new drawlist at the correct spot. - if (!this.internalIsOpen && this.fadeOutTexture == null && doFades && !isCollapsed && !isDocked) - { - this.fadeOutTexture = Service<TextureManager>.Get().CreateDrawListTexture( - "WindowFadeOutTexture"); - this.fadeOutTexture.ResizeAndDrawWindow(this.WindowName, Vector2.One); - this.fadeOutTimer = FadeInOutTime; - } - - if (printWindow) - { - var tex = Service<TextureManager>.Get().CreateDrawListTexture( - Loc.Localize("WindowSystemContextActionPrintWindow", "Print window")); - tex.ResizeAndDrawWindow(this.WindowName, Vector2.One); - _ = Service<DevTextureSaveMenu>.Get().ShowTextureSaveMenuAsync( - this.WindowName, - this.WindowName, - Task.FromResult<IDalamudTextureWrap>(tex)); - } - - if (isErrorStylePushed) - { - Style.StyleModelV1.DalamudStandard.Pop(); - } - else - { - this.PostDraw(); - } - - this.PostHandlePreset(persistence); + this.PostDraw(); if (hasNamespace) ImGui.PopID(); } - private unsafe void ApplyConditionals() + private void ApplyConditionals() { if (this.Position.HasValue) { @@ -717,85 +507,33 @@ public abstract class Window ImGui.SetNextWindowSizeConstraints(this.SizeConstraints.Value.MinimumSize * ImGuiHelpers.GlobalScale, this.SizeConstraints.Value.MaximumSize * ImGuiHelpers.GlobalScale); } - var maxBgAlpha = this.internalAlpha ?? this.BgAlpha; - var fadeInAlpha = this.fadeInTimer / FadeInOutTime; - if (fadeInAlpha < 1f) + if (this.BgAlpha.HasValue) { - maxBgAlpha = maxBgAlpha.HasValue ? - Math.Clamp(maxBgAlpha.Value * fadeInAlpha, 0f, 1f) : - (*ImGui.GetStyleColorVec4(ImGuiCol.WindowBg)).W * fadeInAlpha; - ImGui.PushStyleVar(ImGuiStyleVar.Alpha, ImGui.GetStyle().Alpha * fadeInAlpha); - this.pushedFadeInAlpha = true; + ImGui.SetNextWindowBgAlpha(this.BgAlpha.Value); } - - if (maxBgAlpha.HasValue) + + // Manually set alpha takes precedence, if devs don't want that, they should turn it off + if (this.internalAlpha.HasValue) { - ImGui.SetNextWindowBgAlpha(maxBgAlpha.Value); + ImGui.SetNextWindowBgAlpha(this.internalAlpha.Value); } } - private void PreHandlePreset(WindowSystemPersistence? persistence) + private unsafe void DrawTitleBarButtons(void* window, ImGuiWindowFlags flags, Vector4 titleBarRect, IEnumerable<TitleBarButton> buttons) { - if (persistence == null || this.hasInitializedFromPreset) - return; - - var id = ImGui.GetID(this.WindowName); - this.presetWindow = persistence.GetWindow(id); - - this.hasInitializedFromPreset = true; - - // Fresh preset - don't apply anything - if (this.presetWindow == null) - { - this.presetWindow = new PresetModel.PresetWindow(); - this.presetDirty = true; - return; - } - - this.internalIsPinned = this.presetWindow.IsPinned; - this.internalIsClickthrough = this.presetWindow.IsClickThrough; - this.internalAlpha = this.presetWindow.Alpha; - } - - private void PostHandlePreset(WindowSystemPersistence? persistence) - { - if (persistence == null) - return; - - Debug.Assert(this.presetWindow != null, "this.presetWindow != null"); - - if (this.presetDirty) - { - this.presetWindow.IsPinned = this.internalIsPinned; - this.presetWindow.IsClickThrough = this.internalIsClickthrough; - this.presetWindow.Alpha = this.internalAlpha; - - var id = ImGui.GetID(this.WindowName); - persistence.SaveWindow(id, this.presetWindow!); - this.presetDirty = false; - - Log.Verbose("Saved preset for {WindowName}", this.WindowName); - } - } - - private unsafe void DrawTitleBarButtons() - { - var window = ImGuiP.GetCurrentWindow(); - var flags = window.Flags; - var titleBarRect = window.TitleBarRect(); ImGui.PushClipRect(ImGui.GetWindowPos(), ImGui.GetWindowPos() + ImGui.GetWindowSize(), false); - + var style = ImGui.GetStyle(); var fontSize = ImGui.GetFontSize(); var drawList = ImGui.GetWindowDrawList(); - + var padR = 0f; var buttonSize = ImGui.GetFontSize(); var numNativeButtons = 0; if (this.CanShowCloseButton) numNativeButtons++; - + if (!flags.HasFlag(ImGuiWindowFlags.NoCollapse) && style.WindowMenuButtonPosition == ImGuiDir.Right) numNativeButtons++; @@ -805,40 +543,45 @@ public abstract class Window // Pad to the left, to get out of the way of the native buttons padR += numNativeButtons * (buttonSize + style.ItemInnerSpacing.X); - - Vector2 GetCenter(ImRect rect) => new((rect.Min.X + rect.Max.X) * 0.5f, (rect.Min.Y + rect.Max.Y) * 0.5f); + + Vector2 GetCenter(Vector4 rect) => new((rect.X + rect.Z) * 0.5f, (rect.Y + rect.W) * 0.5f); var numButtons = 0; bool DrawButton(TitleBarButton button, Vector2 pos) { var id = ImGui.GetID($"###CustomTbButton{numButtons}"); numButtons++; - + + var min = pos; var max = pos + new Vector2(fontSize, fontSize); - ImRect bb = new(pos, max); - var isClipped = !ImGuiP.ItemAdd(bb, id, null, 0); - bool hovered, held, pressed; + Vector4 bb = new(min.X, min.Y, max.X, max.Y); + var isClipped = !ImGuiNativeAdditions.igItemAdd(bb, id, null, 0); + bool hovered, held; + var pressed = false; if (this.internalIsClickthrough) { + hovered = false; + held = false; + // ButtonBehavior does not function if the window is clickthrough, so we have to do it ourselves - var pad = ImGui.GetStyle().TouchExtraPadding; - var rect = new ImRect(pos - pad, max + pad); - hovered = rect.Contains(ImGui.GetMousePos()); - - // Temporarily enable inputs - // This will be reset on next frame, and then enabled again if it is still being hovered - if (hovered && ImGui.GetWindowViewport().ID != ImGui.GetMainViewport().ID) - ImGui.GetWindowViewport().Flags &= ~ImGuiViewportFlags.NoInputs; - - // We can't use ImGui native functions here, because they don't work with clickthrough - pressed = held = hovered && (GetKeyState(VK.VK_LBUTTON) & 0x8000) != 0; + if (ImGui.IsMouseHoveringRect(min, max)) + { + hovered = true; + + // We can't use ImGui native functions here, because they don't work with clickthrough + if ((User32.GetKeyState((int)VirtualKey.LBUTTON) & 0x8000) != 0) + { + held = true; + pressed = true; + } + } } else { - pressed = ImGuiP.ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags.None); + pressed = ImGuiNativeAdditions.igButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags.None); } - + if (isClipped) return pressed; @@ -847,117 +590,42 @@ public abstract class Window var textCol = ImGui.GetColorU32(ImGuiCol.Text); if (hovered || held) drawList.AddCircleFilled(GetCenter(bb) + new Vector2(0.0f, -0.5f), (fontSize * 0.5f) + 1.0f, bgCol); - + var offset = button.IconOffset * ImGuiHelpers.GlobalScale; - drawList.AddText(InterfaceManager.IconFont, (float)(fontSize * 0.8), new Vector2(bb.Min.X + offset.X, bb.Min.Y + offset.Y), textCol, button.Icon.ToIconString()); - + drawList.AddText(InterfaceManager.IconFont, (float)(fontSize * 0.8), new Vector2(bb.X + offset.X, bb.Y + offset.Y), textCol, button.Icon.ToIconString()); + if (hovered) button.ShowTooltip?.Invoke(); // Switch to moving the window after mouse is moved beyond the initial drag threshold if (ImGui.IsItemActive() && ImGui.IsMouseDragging(ImGuiMouseButton.Left) && !this.internalIsClickthrough) - ImGuiP.StartMouseMovingWindow(window); + ImGuiNativeAdditions.igStartMouseMovingWindow(window); return pressed; } - foreach (var button in this.allButtons) + foreach (var button in buttons.OrderBy(x => x.Priority)) { if (this.internalIsClickthrough && !button.AvailableClickthrough) - continue; - - Vector2 position = new(titleBarRect.Max.X - padR - buttonSize, titleBarRect.Min.Y + style.FramePadding.Y); + return; + + Vector2 position = new(titleBarRect.Z - padR - buttonSize, titleBarRect.Y + style.FramePadding.Y); padR += buttonSize + style.ItemInnerSpacing.X; - + if (DrawButton(button, position)) button.Click?.Invoke(ImGuiMouseButton.Left); } - + ImGui.PopClipRect(); } - private void DrawFakeFadeOutWindow() - { - // Draw a fake window to fade out, so that the fade out texture stays in the right place in the - // focus order - ImGui.SetNextWindowPos(this.fadeOutOrigin); - ImGui.SetNextWindowSize(this.fadeOutSize); - - using var style = ImRaii.PushStyle(ImGuiStyleVar.WindowPadding, Vector2.Zero); - style.Push(ImGuiStyleVar.WindowBorderSize, 0); - style.Push(ImGuiStyleVar.FrameBorderSize, 0); - - const ImGuiWindowFlags flags = ImGuiWindowFlags.NoInputs | ImGuiWindowFlags.NoNav | - ImGuiWindowFlags.NoScrollWithMouse | ImGuiWindowFlags.NoMouseInputs | - ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoBackground; - if (ImGui.Begin(this.WindowName, flags)) - { - var dl = ImGui.GetWindowDrawList(); - dl.AddImage( - this.fadeOutTexture!.Handle, - this.fadeOutOrigin, - this.fadeOutOrigin + this.fadeOutSize, - Vector2.Zero, - Vector2.One, - ImGui.ColorConvertFloat4ToU32(new(1f, 1f, 1f, Math.Clamp(this.fadeOutTimer / FadeInOutTime, 0f, 1f)))); - } - - ImGui.End(); - } - - private void DrawErrorMessage() - { - // TODO: Once window systems are services, offer to reload the plugin - ImGui.TextColoredWrapped(ImGuiColors.DalamudRed, Loc.Localize("WindowSystemErrorOccurred", "An error occurred while rendering this window. Please contact the developer for details.")); - - ImGuiHelpers.ScaledDummy(5); - - if (ImGui.Button(Loc.Localize("WindowSystemErrorRecoverButton", "Attempt to retry"))) - { - this.hasError = false; - this.lastError = null; - } - - ImGui.SameLine(); - - if (ImGui.Button(Loc.Localize("WindowSystemErrorClose", "Close Window"))) - { - this.IsOpen = false; - this.hasError = false; - this.lastError = null; - } - - ImGuiHelpers.ScaledDummy(10); - - if (this.lastError != null) - { - using var child = ImRaii.Child("##ErrorDetails", new Vector2(0, 200 * ImGuiHelpers.GlobalScale), true); - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey)) - { - ImGui.TextWrapped(Loc.Localize("WindowSystemErrorDetails", "Error Details:")); - ImGui.Separator(); - ImGui.TextWrapped(this.lastError.ToString()); - } - - var childWindowSize = ImGui.GetWindowSize(); - var copyText = Loc.Localize("WindowSystemErrorCopy", "Copy"); - var buttonWidth = ImGuiComponents.GetIconButtonWithTextWidth(FontAwesomeIcon.Copy, copyText); - ImGui.SetCursorPos(new Vector2(childWindowSize.X - buttonWidth - ImGui.GetStyle().FramePadding.X, - ImGui.GetStyle().FramePadding.Y)); - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Copy, copyText)) - { - ImGui.SetClipboardText(this.lastError.ToString()); - } - } - } - /// <summary> /// Structure detailing the size constraints of a window. /// </summary> public struct WindowSizeConstraints { private Vector2 internalMaxSize = new(float.MaxValue); - + /// <summary> /// Initializes a new instance of the <see cref="WindowSizeConstraints"/> struct. /// </summary> @@ -969,7 +637,7 @@ public abstract class Window /// Gets or sets the minimum size of the window. /// </summary> public Vector2 MinimumSize { get; set; } = new(0); - + /// <summary> /// Gets or sets the maximum size of the window. /// </summary> @@ -978,12 +646,12 @@ public abstract class Window get => this.GetSafeMaxSize(); set => this.internalMaxSize = value; } - + private Vector2 GetSafeMaxSize() { var currentMin = this.MinimumSize; - if (this.internalMaxSize.X < currentMin.X || this.internalMaxSize.Y < currentMin.Y) + if (this.internalMaxSize.X < currentMin.X || this.internalMaxSize.Y < currentMin.Y) return new Vector2(float.MaxValue); return this.internalMaxSize; @@ -999,34 +667,53 @@ public abstract class Window /// Gets or sets the icon of the button. /// </summary> public FontAwesomeIcon Icon { get; set; } - + /// <summary> /// Gets or sets a vector by which the position of the icon within the button shall be offset. /// Automatically scaled by the global font scale for you. /// </summary> public Vector2 IconOffset { get; set; } - + /// <summary> /// Gets or sets an action that is called when a tooltip shall be drawn. /// May be null if no tooltip shall be drawn. /// </summary> public Action? ShowTooltip { get; set; } - + /// <summary> /// Gets or sets an action that is called when the button is clicked. /// </summary> - public Action<ImGuiMouseButton>? Click { get; set; } - + public Action<ImGuiMouseButton> Click { get; set; } + /// <summary> /// Gets or sets the priority the button shall be shown in. /// Lower = closer to ImGui default buttons. /// </summary> public int Priority { get; set; } - + /// <summary> - /// Gets or sets a value indicating whether the button shall be clickable + /// Gets or sets a value indicating whether or not the button shall be clickable /// when the respective window is set to clickthrough. /// </summary> public bool AvailableClickthrough { get; set; } } + + [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:Element should begin with upper-case letter", Justification = "imports")] + private static unsafe class ImGuiNativeAdditions + { + [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] + public static extern bool igItemAdd(Vector4 bb, uint id, Vector4* navBb, uint flags); + + [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] + public static extern bool igButtonBehavior(Vector4 bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags); + + [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] + public static extern void* igGetCurrentWindow(); + + [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] + public static extern void igStartMouseMovingWindow(void* window); + + [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)] + public static extern void ImGuiWindow_TitleBarRect(Vector4* pOut, void* window); + } } diff --git a/Dalamud/Interface/Windowing/WindowSystem.cs b/Dalamud/Interface/Windowing/WindowSystem.cs index 319640336..dc4d6aca1 100644 --- a/Dalamud/Interface/Windowing/WindowSystem.cs +++ b/Dalamud/Interface/Windowing/WindowSystem.cs @@ -1,10 +1,10 @@ using System.Collections.Generic; using System.Linq; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; -using Dalamud.Interface.Windowing.Persistence; +using Dalamud.Interface.Internal.ManagedAsserts; +using ImGuiNET; using Serilog; namespace Dalamud.Interface.Windowing; @@ -16,7 +16,7 @@ public class WindowSystem { private static DateTimeOffset lastAnyFocus; - private readonly List<Window> windows = []; + private readonly List<Window> windows = new(); private string lastFocusedWindowName = string.Empty; @@ -61,12 +61,6 @@ public class WindowSystem /// </summary> public string? Namespace { get; set; } - /// <summary> - /// Gets or sets a value indicating whether ATK close events should be inhibited while any window has focus. - /// Does not respect windows that are pinned or clickthrough. - /// </summary> - internal static bool ShouldInhibitAtkCloseEvents { get; set; } - /// <summary> /// Add a window to this <see cref="WindowSystem"/>. /// The window system doesn't own your window, it just renders it @@ -110,34 +104,23 @@ public class WindowSystem if (hasNamespace) ImGui.PushID(this.Namespace); - // These must be nullable, people are using stock WindowSystems and Windows without Dalamud for tests var config = Service<DalamudConfiguration>.GetNullable(); - var persistence = Service<WindowSystemPersistence>.GetNullable(); - - var flags = Window.WindowDrawFlags.None; - - if (config?.EnablePluginUISoundEffects ?? false) - flags |= Window.WindowDrawFlags.UseSoundEffects; - - if (config?.EnablePluginUiAdditionalOptions ?? false) - flags |= Window.WindowDrawFlags.UseAdditionalOptions; - - if (config?.IsFocusManagementEnabled ?? false) - flags |= Window.WindowDrawFlags.UseFocusManagement; - - if (config?.ReduceMotions ?? false) - flags |= Window.WindowDrawFlags.IsReducedMotion; // Shallow clone the list of windows so that we can edit it without modifying it while the loop is iterating foreach (var window in this.windows.ToArray()) { #if DEBUG - // Log.Verbose($"[WS{(hasNamespace ? "/" + this.Namespace : string.Empty)}] Drawing {window.WindowName}"); + // Log.Verbose($"[WS{(hasNamespace ? "/" + this.Namespace : string.Empty)}] Drawing {window.WindowName}"); #endif - window.DrawInternal(flags, persistence); + var snapshot = ImGuiManagedAsserts.GetSnapshot(); + + window.DrawInternal(config); + + var source = ($"{this.Namespace}::" ?? string.Empty) + window.WindowName; + ImGuiManagedAsserts.ReportProblems(source, snapshot); } - var focusedWindow = this.windows.FirstOrDefault(window => window.IsFocused); + var focusedWindow = this.windows.FirstOrDefault(window => window.IsFocused && window.RespectCloseHotkey); this.HasAnyFocus = focusedWindow != default; if (this.HasAnyFocus) @@ -162,11 +145,6 @@ public class WindowSystem } } - ShouldInhibitAtkCloseEvents |= this.windows.Any(w => w.IsFocused && - w.RespectCloseHotkey && - !w.IsPinned && - !w.IsClickthrough); - if (hasNamespace) ImGui.PopID(); } diff --git a/Dalamud/IoC/Internal/ObjectInstance.cs b/Dalamud/IoC/Internal/ObjectInstance.cs index af97b7124..3fd626a05 100644 --- a/Dalamud/IoC/Internal/ObjectInstance.cs +++ b/Dalamud/IoC/Internal/ObjectInstance.cs @@ -1,3 +1,4 @@ +using System.Reflection; using System.Threading.Tasks; namespace Dalamud.IoC.Internal; @@ -12,11 +13,9 @@ internal class ObjectInstance /// </summary> /// <param name="instanceTask">Weak reference to the underlying instance.</param> /// <param name="type">Type of the underlying instance.</param> - /// <param name="visibility">The visibility of this instance.</param> - public ObjectInstance(Task<WeakReference> instanceTask, Type type, ObjectInstanceVisibility visibility) + public ObjectInstance(Task<WeakReference> instanceTask, Type type) { this.InstanceTask = instanceTask; - this.Visibility = visibility; } /// <summary> @@ -24,9 +23,4 @@ internal class ObjectInstance /// </summary> /// <returns>The underlying instance.</returns> public Task<WeakReference> InstanceTask { get; } - - /// <summary> - /// Gets or sets the visibility of the object instance. - /// </summary> - public ObjectInstanceVisibility Visibility { get; set; } } diff --git a/Dalamud/IoC/Internal/ObjectInstanceVisibility.cs b/Dalamud/IoC/Internal/ObjectInstanceVisibility.cs deleted file mode 100644 index 7ab564603..000000000 --- a/Dalamud/IoC/Internal/ObjectInstanceVisibility.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Dalamud.IoC.Internal; - -/// <summary> -/// Enum that declares the visibility of an object instance in the service container. -/// </summary> -internal enum ObjectInstanceVisibility -{ - /// <summary> - /// The object instance is only visible to other internal services. - /// </summary> - Internal, - - /// <summary> - /// The object instance is visible to all services and plugins. - /// </summary> - ExposedToPlugins, -} diff --git a/Dalamud/IoC/Internal/ServiceContainer.cs b/Dalamud/IoC/Internal/ServiceContainer.cs index 0dacacc54..a8eacb02d 100644 --- a/Dalamud/IoC/Internal/ServiceContainer.cs +++ b/Dalamud/IoC/Internal/ServiceContainer.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.ComponentModel.Design; using System.Diagnostics; using System.Linq; using System.Reflection; @@ -13,35 +12,30 @@ namespace Dalamud.IoC.Internal; /// <summary> /// A simple singleton-only IOC container that provides (optional) version-based dependency resolution. -/// +/// /// This is only used to resolve dependencies for plugins. /// Dalamud services are constructed via Service{T}.ConstructObject at the moment. /// </summary> [ServiceManager.ProvidedService] -internal class ServiceContainer : IServiceType +internal class ServiceContainer : IServiceProvider, IServiceType { - private static readonly ModuleLog Log = ModuleLog.Create<ServiceContainer>(); + private static readonly ModuleLog Log = new("SERVICECONTAINER"); - private readonly Dictionary<Type, ObjectInstance> instances = []; - private readonly Dictionary<Type, Type> interfaceToTypeMap = []; + private readonly Dictionary<Type, ObjectInstance> instances = new(); + private readonly Dictionary<Type, Type> interfaceToTypeMap = new(); /// <summary> /// Initializes a new instance of the <see cref="ServiceContainer"/> class. /// </summary> public ServiceContainer() { - // Register the service container itself as a singleton. - // For all other services, this is done through the static constructor of Service{T}. - this.instances.Add( - typeof(IServiceContainer), - new(new Task<WeakReference>(() => new WeakReference(this), TaskCreationOptions.RunContinuationsAsynchronously), typeof(ServiceContainer), ObjectInstanceVisibility.Internal)); } - + /// <summary> /// Gets a dictionary of all registered instances. /// </summary> public IReadOnlyDictionary<Type, ObjectInstance> Instances => this.instances; - + /// <summary> /// Gets a dictionary mapping interfaces to their implementations. /// </summary> @@ -51,13 +45,15 @@ internal class ServiceContainer : IServiceType /// Register a singleton object of any type into the current IOC container. /// </summary> /// <param name="instance">The existing instance to register in the container.</param> - /// <param name="visibility">The visibility of this singleton.</param> /// <typeparam name="T">The type to register.</typeparam> - public void RegisterSingleton<T>(Task<T> instance, ObjectInstanceVisibility visibility) + public void RegisterSingleton<T>(Task<T> instance) { - ArgumentNullException.ThrowIfNull(instance); + if (instance == null) + { + throw new ArgumentNullException(nameof(instance)); + } - this.instances[typeof(T)] = new(instance.ContinueWith(x => new WeakReference(x.Result)), typeof(T), visibility); + this.instances[typeof(T)] = new(instance.ContinueWith(x => new WeakReference(x.Result)), typeof(T)); } /// <summary> @@ -73,7 +69,7 @@ internal class ServiceContainer : IServiceType foreach (var resolvableType in resolveViaTypes) { Log.Verbose("=> {InterfaceName} provides for {TName}", resolvableType.FullName ?? "???", type.FullName ?? "???"); - + Debug.Assert(!this.interfaceToTypeMap.ContainsKey(resolvableType), "A service already implements this interface, this is not allowed"); Debug.Assert(type.IsAssignableTo(resolvableType), "Service does not inherit from indicated ResolveVia type"); @@ -85,11 +81,10 @@ internal class ServiceContainer : IServiceType /// Create an object. /// </summary> /// <param name="objectType">The type of object to create.</param> - /// <param name="allowedVisibility">Defines which services are allowed to be directly resolved into this type.</param> /// <param name="scopedObjects">Scoped objects to be included in the constructor.</param> /// <param name="scope">The scope to be used to create scoped services.</param> /// <returns>The created object.</returns> - public async Task<object> CreateAsync(Type objectType, ObjectInstanceVisibility allowedVisibility, object[] scopedObjects, IServiceScope? scope = null) + public async Task<object> CreateAsync(Type objectType, object[] scopedObjects, IServiceScope? scope = null) { var errorStep = "constructor lookup"; @@ -112,15 +107,27 @@ internal class ServiceContainer : IServiceType errorStep = "property injection"; await this.InjectProperties(instance, scopedObjects, scope); - // Invoke ctor from a separate thread (LongRunning will spawn a new one) - // so that it does not count towards thread pool active threads cap. - // Plugin ctor can block to wait for Tasks, as we currently do not support asynchronous plugin init. errorStep = "ctor invocation"; - await Task.Factory.StartNew( - () => ctor.Invoke(instance, resolvedParams), - CancellationToken.None, - TaskCreationOptions.LongRunning, - TaskScheduler.Default).ConfigureAwait(false); + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + var thr = new Thread( + () => + { + try + { + ctor.Invoke(instance, resolvedParams); + } + catch (Exception e) + { + tcs.SetException(e); + return; + } + + tcs.SetResult(); + }); + + thr.Start(); + await tcs.Task.ConfigureAwait(false); + thr.Join(); return instance; } @@ -160,25 +167,14 @@ internal class ServiceContainer : IServiceType /// <returns>An implementation of a service scope.</returns> public IServiceScope GetScope() => new ServiceScopeImpl(this); - /// <summary> - /// Resolves and returns an instance of the specified service type, using either singleton or scoped lifetime as - /// appropriate. - /// </summary> - /// <param name="serviceType">The type of the service to resolve. This must be a concrete or interface type registered with the service - /// manager.</param> - /// <param name="scope">The scope within which to create scoped services. Required if the requested service type is registered as - /// scoped; otherwise, can be null.</param> - /// <param name="scopedObjects">An array of objects available for scoped resolution. Used to locate or create scoped service instances when - /// applicable.</param> - /// <returns>An instance of the requested service type. Returns a singleton instance if available, a scoped instance if - /// required, or an object from the provided scoped objects if it matches the service type.</returns> - /// <exception cref="InvalidOperationException">Thrown if a scoped service is requested but no scope is provided, or if the requested service type cannot be - /// resolved from the scoped objects.</exception> - public async Task<object> GetService(Type serviceType, ServiceScopeImpl? scope, object[] scopedObjects) + /// <inheritdoc/> + object? IServiceProvider.GetService(Type serviceType) => this.GetSingletonService(serviceType); + + private async Task<object> GetService(Type serviceType, ServiceScopeImpl? scope, object[] scopedObjects) { if (this.interfaceToTypeMap.TryGetValue(serviceType, out var implementingType)) serviceType = implementingType; - + if (serviceType.GetCustomAttribute<ServiceManager.ScopedServiceAttribute>() != null) { if (scope == null) @@ -215,7 +211,7 @@ internal class ServiceContainer : IServiceType private ConstructorInfo? FindApplicableCtor(Type type, object[] scopedObjects) { // get a list of all the available types: scoped and singleton - var allValidServiceTypes = scopedObjects + var types = scopedObjects .Select(o => o.GetType()) .Union(this.instances.Keys) .ToArray(); @@ -228,7 +224,7 @@ internal class ServiceContainer : IServiceType var ctors = type.GetConstructors(ctorFlags); foreach (var ctor in ctors) { - if (this.ValidateCtor(ctor, allValidServiceTypes)) + if (this.ValidateCtor(ctor, types)) { return ctor; } @@ -237,30 +233,28 @@ internal class ServiceContainer : IServiceType return null; } - private bool ValidateCtor(ConstructorInfo ctor, Type[] validTypes) + private bool ValidateCtor(ConstructorInfo ctor, Type[] types) { bool IsTypeValid(Type type) { - var contains = validTypes.Any(x => x.IsAssignableTo(type)); + var contains = types.Any(x => x.IsAssignableTo(type)); // Scoped services are created on-demand return contains || type.GetCustomAttribute<ServiceManager.ScopedServiceAttribute>() != null; } - + var parameters = ctor.GetParameters(); foreach (var parameter in parameters) { var valid = IsTypeValid(parameter.ParameterType); - + // If this service is provided by an interface if (!valid && this.interfaceToTypeMap.TryGetValue(parameter.ParameterType, out var implementationType)) valid = IsTypeValid(implementationType); if (!valid) { - Log.Error("Ctor from {DeclaringType}: Failed to validate {TypeName}, unable to find any services that satisfy the type", - ctor.DeclaringType?.FullName ?? ctor.DeclaringType?.Name ?? "null", - parameter.ParameterType.FullName!); + Log.Error("Failed to validate {TypeName}, unable to find any services that satisfy the type", parameter.ParameterType.FullName!); return false; } } diff --git a/Dalamud/IoC/Internal/ServiceScope.cs b/Dalamud/IoC/Internal/ServiceScope.cs index c0c4e0b08..5ce8bc7d0 100644 --- a/Dalamud/IoC/Internal/ServiceScope.cs +++ b/Dalamud/IoC/Internal/ServiceScope.cs @@ -1,4 +1,4 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading; @@ -12,7 +12,7 @@ namespace Dalamud.IoC.Internal; /// <summary> /// Container enabling the creation of scoped services. /// </summary> -internal interface IServiceScope : IServiceProvider, IAsyncDisposable +internal interface IServiceScope : IAsyncDisposable { /// <summary> /// Register objects that may be injected to scoped services, @@ -25,10 +25,9 @@ internal interface IServiceScope : IServiceProvider, IAsyncDisposable /// Create an object. /// </summary> /// <param name="objectType">The type of object to create.</param> - /// <param name="allowedVisibility">Defines which services are allowed to be directly resolved into this type.</param> /// <param name="scopedObjects">Scoped objects to be included in the constructor.</param> /// <returns>The created object.</returns> - Task<object> CreateAsync(Type objectType, ObjectInstanceVisibility allowedVisibility, params object[] scopedObjects); + Task<object> CreateAsync(Type objectType, params object[] scopedObjects); /// <summary> /// Inject <see cref="PluginInterfaceAttribute" /> interfaces into public or static properties on the provided object. @@ -57,12 +56,6 @@ internal class ServiceScopeImpl : IServiceScope /// <param name="container">The container this scope will use to create services.</param> public ServiceScopeImpl(ServiceContainer container) => this.container = container; - /// <inheritdoc/> - public object? GetService(Type serviceType) - { - return this.container.GetService(serviceType, this, []).ConfigureAwait(false).GetAwaiter().GetResult(); - } - /// <inheritdoc/> public void RegisterPrivateScopes(params object[] scopes) { @@ -79,13 +72,13 @@ internal class ServiceScopeImpl : IServiceScope } /// <inheritdoc /> - public Task<object> CreateAsync(Type objectType, ObjectInstanceVisibility allowedVisibility, params object[] scopedObjects) + public Task<object> CreateAsync(Type objectType, params object[] scopedObjects) { this.disposeLock.EnterReadLock(); try { ObjectDisposedException.ThrowIf(this.disposed, this); - return this.container.CreateAsync(objectType, allowedVisibility, scopedObjects, this); + return this.container.CreateAsync(objectType, scopedObjects, this); } finally { @@ -124,9 +117,7 @@ internal class ServiceScopeImpl : IServiceScope objectType, static (objectType, p) => p.Scope.container.CreateAsync( objectType, - ObjectInstanceVisibility.Internal, // We are allowed to resolve internal services here since this is a private scoped object. - p.Objects.Concat(p.Scope.privateScopedObjects).ToArray(), - p.Scope), + p.Objects.Concat(p.Scope.privateScopedObjects).ToArray()), (Scope: this, Objects: scopedObjects)); } finally diff --git a/Dalamud/Localization.cs b/Dalamud/Localization.cs index 8c7368c3f..84e8437b3 100644 --- a/Dalamud/Localization.cs +++ b/Dalamud/Localization.cs @@ -18,7 +18,7 @@ public class Localization : IServiceType /// <summary> /// Array of language codes which have a valid translation in Dalamud. /// </summary> - public static readonly string[] ApplicableLangCodes = ["de", "ja", "fr", "it", "es", "ko", "no", "ru", "zh", "tw"]; + public static readonly string[] ApplicableLangCodes = { "de", "ja", "fr", "it", "es", "ko", "no", "ru", "zh", "tw" }; private const string FallbackLangCode = "en"; @@ -112,25 +112,13 @@ public class Localization : IServiceType } /// <summary> - /// Set up the UI language with "fallbacks" (original English text). + /// Set up the UI language with "fallbacks"(original English text). /// </summary> public void SetupWithFallbacks() { this.DalamudLanguageCultureInfo = CultureInfo.InvariantCulture; - + this.LocalizationChanged?.Invoke(FallbackLangCode); Loc.SetupWithFallbacks(this.assembly); - - foreach (var d in Delegate.EnumerateInvocationList(this.LocalizationChanged)) - { - try - { - d(FallbackLangCode); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", d.Method); - } - } } /// <summary> @@ -146,6 +134,7 @@ public class Localization : IServiceType } this.DalamudLanguageCultureInfo = GetCultureInfoFromLangCode(langCode); + this.LocalizationChanged?.Invoke(langCode); try { @@ -156,18 +145,6 @@ public class Localization : IServiceType Log.Error(ex, "Could not load loc {0}. Setting up fallbacks.", langCode); this.SetupWithFallbacks(); } - - foreach (var d in Delegate.EnumerateInvocationList(this.LocalizationChanged)) - { - try - { - d(langCode); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", d.Method); - } - } } /// <summary> diff --git a/Dalamud/Logging/Internal/ModuleLog.cs b/Dalamud/Logging/Internal/ModuleLog.cs index 00173b09d..bcbb6e2b1 100644 --- a/Dalamud/Logging/Internal/ModuleLog.cs +++ b/Dalamud/Logging/Internal/ModuleLog.cs @@ -1,6 +1,5 @@ using Serilog; using Serilog.Core; -using Serilog.Core.Enrichers; using Serilog.Events; namespace Dalamud.Logging.Internal; @@ -12,7 +11,7 @@ public class ModuleLog { private readonly string moduleName; private readonly ILogger moduleLogger; - + // FIXME (v9): Deprecate this class in favor of using contextualized ILoggers with proper formatting. // We can keep this class around as a Serilog helper, but ModuleLog should no longer be a returned // type, instead returning a (prepared) ILogger appropriately. @@ -28,21 +27,6 @@ public class ModuleLog this.moduleLogger = Log.ForContext("Dalamud.ModuleName", this.moduleName); } - /// <summary> - /// Initializes a new instance of the <see cref="ModuleLog"/> class. - /// This class will properly attach SourceContext and other attributes per Serilog standards. - /// </summary> - /// <param name="type">The type of the class this logger is for.</param> - public ModuleLog(Type type) - { - this.moduleName = type.Name; - this.moduleLogger = Log.ForContext( - [ - new PropertyEnricher(Constants.SourceContextPropertyName, type.FullName), - new PropertyEnricher("Dalamud.ModuleName", this.moduleName) - ]); - } - /// <summary> /// Log a templated verbose message to the in-game debug log. /// </summary> @@ -176,11 +160,4 @@ public class ModuleLog messageTemplate: $"[{this.moduleName}] {messageTemplate}", values); } - - /// <summary> - /// Helper method to create a new <see cref="ModuleLog"/> instance based on a type. - /// </summary> - /// <typeparam name="T">The class to create this ModuleLog for.</typeparam> - /// <returns>Returns a ModuleLog with name set.</returns> - internal static ModuleLog Create<T>() => new(typeof(T)); } diff --git a/Dalamud/Logging/Internal/TaskTracker.cs b/Dalamud/Logging/Internal/TaskTracker.cs index c6bd895a0..b45ed82d6 100644 --- a/Dalamud/Logging/Internal/TaskTracker.cs +++ b/Dalamud/Logging/Internal/TaskTracker.cs @@ -15,8 +15,8 @@ namespace Dalamud.Logging.Internal; [ServiceManager.EarlyLoadedService] internal class TaskTracker : IInternalDisposableService { - private static readonly ModuleLog Log = ModuleLog.Create<TaskTracker>(); - private static readonly List<TaskInfo> TrackedTasksInternal = []; + private static readonly ModuleLog Log = new("TT"); + private static readonly List<TaskInfo> TrackedTasksInternal = new(); private static readonly ConcurrentQueue<TaskInfo> NewlyCreatedTasks = new(); private static bool clearRequested = false; @@ -200,22 +200,22 @@ internal class TaskTracker : IInternalDisposableService public StackTrace? StackTrace { get; set; } /// <summary> - /// Gets or sets a value indicating whether the task was completed. + /// Gets or sets a value indicating whether or not the task was completed. /// </summary> public bool IsCompleted { get; set; } /// <summary> - /// Gets or sets a value indicating whether the task faulted. + /// Gets or sets a value indicating whether or not the task faulted. /// </summary> public bool IsFaulted { get; set; } /// <summary> - /// Gets or sets a value indicating whether the task was canceled. + /// Gets or sets a value indicating whether or not the task was canceled. /// </summary> public bool IsCanceled { get; set; } /// <summary> - /// Gets or sets a value indicating whether the task was completed successfully. + /// Gets or sets a value indicating whether or not the task was completed successfully. /// </summary> public bool IsCompletedSuccessfully { get; set; } diff --git a/Dalamud/Logging/ScopedPluginLogService.cs b/Dalamud/Logging/ScopedPluginLogService.cs index 5b0ca15e5..7305aa87b 100644 --- a/Dalamud/Logging/ScopedPluginLogService.cs +++ b/Dalamud/Logging/ScopedPluginLogService.cs @@ -1,6 +1,5 @@ using Dalamud.IoC; using Dalamud.IoC.Internal; -using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; @@ -21,7 +20,6 @@ namespace Dalamud.Logging; internal class ScopedPluginLogService : IServiceType, IPluginLog { private readonly LocalPlugin localPlugin; - private readonly PluginErrorHandler errorHandler; private readonly LoggingLevelSwitch levelSwitch; @@ -29,12 +27,10 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog /// Initializes a new instance of the <see cref="ScopedPluginLogService"/> class. /// </summary> /// <param name="localPlugin">The plugin that owns this service.</param> - /// <param name="errorHandler">Error notifier service.</param> - internal ScopedPluginLogService(LocalPlugin localPlugin, PluginErrorHandler errorHandler) + internal ScopedPluginLogService(LocalPlugin localPlugin) { this.localPlugin = localPlugin; - this.errorHandler = errorHandler; - + this.levelSwitch = new LoggingLevelSwitch(this.GetDefaultLevel()); var loggerConfiguration = new LoggerConfiguration() @@ -44,7 +40,7 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog this.Logger = loggerConfiguration.CreateLogger(); } - + /// <inheritdoc /> public ILogger Logger { get; } @@ -54,7 +50,7 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog get => this.levelSwitch.MinimumLevel; set => this.levelSwitch.MinimumLevel = value; } - + /// <inheritdoc /> public void Fatal(string messageTemplate, params object[] values) => this.Write(LogEventLevel.Fatal, null, messageTemplate, values); @@ -86,11 +82,11 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog /// <inheritdoc /> public void Information(Exception? exception, string messageTemplate, params object[] values) => this.Write(LogEventLevel.Information, exception, messageTemplate, values); - + /// <inheritdoc/> public void Info(string messageTemplate, params object[] values) => this.Information(messageTemplate, values); - + /// <inheritdoc/> public void Info(Exception? exception, string messageTemplate, params object[] values) => this.Information(exception, messageTemplate, values); @@ -110,13 +106,10 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog /// <inheritdoc /> public void Verbose(Exception? exception, string messageTemplate, params object[] values) => this.Write(LogEventLevel.Verbose, exception, messageTemplate, values); - + /// <inheritdoc /> public void Write(LogEventLevel level, Exception? exception, string messageTemplate, params object[] values) { - if (level == LogEventLevel.Error) - this.errorHandler.NotifyError(); - this.Logger.Write( level, exception: exception, @@ -131,7 +124,7 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog private LogEventLevel GetDefaultLevel() { // TODO: Add some way to save log levels to a config. Or let plugins handle it? - + return this.localPlugin.IsDev ? LogEventLevel.Verbose : LogEventLevel.Debug; } } diff --git a/Dalamud/Memory/MemoryHelper.cs b/Dalamud/Memory/MemoryHelper.cs index 5f7f69f2f..212feb128 100644 --- a/Dalamud/Memory/MemoryHelper.cs +++ b/Dalamud/Memory/MemoryHelper.cs @@ -10,13 +10,12 @@ using Dalamud.Utility; using FFXIVClientStructs.FFXIV.Client.System.Memory; using FFXIVClientStructs.FFXIV.Client.System.String; -using Lumina.Text.Payloads; -using Lumina.Text.ReadOnly; - using Microsoft.Extensions.ObjectPool; -using Windows.Win32.Foundation; -using Windows.Win32.System.Memory; +using static Dalamud.NativeFunctions; + +using LPayloadType = Lumina.Text.Payloads.PayloadType; +using LSeString = Lumina.Text.SeString; // Heavily inspired from Reloaded (https://github.com/Reloaded-Project/Reloaded.Memory) @@ -30,8 +29,6 @@ public static unsafe class MemoryHelper private static readonly ObjectPool<StringBuilder> StringBuilderPool = ObjectPool.Create(new StringBuilderPooledObjectPolicy()); - private static readonly HANDLE ThisProcessPseudoHandle = new(unchecked((nint)0xFFFFFFFF)); - #region Cast /// <summary>Casts the given memory address as the reference to the live object.</summary> @@ -268,31 +265,6 @@ public static unsafe class MemoryHelper } } - /// <summary> - /// Compares a UTF-16 character span with a null-terminated UTF-16 string at <paramref name="memoryAddress"/>. - /// </summary> - /// <param name="charSpan">UTF-16 character span (e.g., from a string literal).</param> - /// <param name="memoryAddress">Address of null-terminated UTF-16 (wide) string, as used by Windows APIs.</param> - /// <returns><see langword="true"/> if equal; otherwise, <see langword="false"/>.</returns> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static unsafe bool EqualsZeroTerminatedWideString( - scoped ReadOnlySpan<char> charSpan, - nint memoryAddress) - { - if (memoryAddress == 0) - return charSpan.Length == 0; - - char* p = (char*)memoryAddress; - - foreach (char c in charSpan) - { - if (*p++ != c) - return false; - } - - return *p == '\0'; - } - /// <summary> /// Read a UTF-8 encoded string from a specified memory address. /// </summary> @@ -442,7 +414,7 @@ public static unsafe class MemoryHelper containsNonRepresentedPayload = false; while (*pin != 0 && maxLength > 0) { - if (*pin != ReadOnlySeString.Stx) + if (*pin != LSeString.StartByte) { var len = *pin switch { @@ -467,7 +439,7 @@ public static unsafe class MemoryHelper --maxLength; // Payload type - var payloadType = (MacroCode)(*pin++); + var payloadType = (LPayloadType)(*pin++); // Payload length if (!ReadIntExpression(ref pin, ref maxLength, out var expressionLength)) @@ -478,19 +450,19 @@ public static unsafe class MemoryHelper maxLength -= unchecked((int)expressionLength); // End byte - if (*pin++ != ReadOnlySeString.Etx) + if (*pin++ != LSeString.EndByte) break; --maxLength; switch (payloadType) { - case MacroCode.NewLine: + case LPayloadType.NewLine: sb.AppendLine(); break; - case MacroCode.Hyphen: + case LPayloadType.Hyphen: sb.Append('–'); break; - case MacroCode.SoftHyphen: + case LPayloadType.SoftHyphen: sb.Append('\u00AD'); break; default: @@ -771,16 +743,16 @@ public static unsafe class MemoryHelper [MethodImpl(MethodImplOptions.AggressiveInlining)] public static nint Allocate(int length) { - var address = Windows.Win32.PInvoke.VirtualAlloc( - null, + var address = VirtualAlloc( + nint.Zero, (nuint)length, - VIRTUAL_ALLOCATION_TYPE.MEM_COMMIT | VIRTUAL_ALLOCATION_TYPE.MEM_RESERVE, - PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE); + AllocationType.Commit | AllocationType.Reserve, + MemoryProtection.ExecuteReadWrite); - if (address == null) + if (address == nint.Zero) throw new MemoryAllocationException($"Unable to allocate {length} bytes."); - return new IntPtr(address); + return address; } /// <summary> @@ -801,7 +773,7 @@ public static unsafe class MemoryHelper [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Free(nint memoryAddress) { - return Windows.Win32.PInvoke.VirtualFree(memoryAddress.ToPointer(), nuint.Zero, VIRTUAL_FREE_TYPE.MEM_RELEASE); + return VirtualFree(memoryAddress, nuint.Zero, AllocationType.Release); } /// <summary> @@ -813,11 +785,7 @@ public static unsafe class MemoryHelper /// <returns>The old page permissions.</returns> public static MemoryProtection ChangePermission(nint memoryAddress, int length, MemoryProtection newPermissions) { - var result = Windows.Win32.PInvoke.VirtualProtect( - memoryAddress.ToPointer(), - (nuint)length, - (PAGE_PROTECTION_FLAGS)newPermissions, - out var oldPermissions); + var result = VirtualProtect(memoryAddress, (nuint)length, newPermissions, out var oldPermissions); if (!result) throw new MemoryPermissionException($"Unable to change permissions at {Util.DescribeAddress(memoryAddress)} of length {length} and permission {newPermissions} (result={result})"); @@ -826,7 +794,7 @@ public static unsafe class MemoryHelper if (last > 0) throw new MemoryPermissionException($"Unable to change permissions at {Util.DescribeAddress(memoryAddress)} of length {length} and permission {newPermissions} (error={last})"); - return (MemoryProtection)oldPermissions; + return oldPermissions; } /// <summary> @@ -892,22 +860,14 @@ public static unsafe class MemoryHelper unchecked { var length = value.Length; - fixed (byte* pVal = value) - { - var result = Windows.Win32.PInvoke.ReadProcessMemory( - ThisProcessPseudoHandle, - memoryAddress.ToPointer(), - pVal, - (nuint)length, - null); + var result = NativeFunctions.ReadProcessMemory((nint)0xFFFFFFFF, memoryAddress, value, length, out _); - if (!result) - throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); + if (!result) + throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); - var last = Marshal.GetLastWin32Error(); - if (last > 0) - throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); - } + var last = Marshal.GetLastWin32Error(); + if (last > 0) + throw new MemoryReadException($"Unable to read memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); } } @@ -922,22 +882,14 @@ public static unsafe class MemoryHelper unchecked { var length = data.Length; - fixed (byte* pData = data) - { - var result = Windows.Win32.PInvoke.WriteProcessMemory( - ThisProcessPseudoHandle, - memoryAddress.ToPointer(), - pData, - (nuint)length, - null); + var result = NativeFunctions.WriteProcessMemory((nint)0xFFFFFFFF, memoryAddress, data, length, out _); - if (!result) - throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); + if (!result) + throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (result={result})"); - var last = Marshal.GetLastWin32Error(); - if (last > 0) - throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); - } + var last = Marshal.GetLastWin32Error(); + if (last > 0) + throw new MemoryWriteException($"Unable to write memory at {Util.DescribeAddress(memoryAddress)} of length {length} (error={last})"); } } diff --git a/Dalamud/NativeFunctions.cs b/Dalamud/NativeFunctions.cs new file mode 100644 index 000000000..32ab99372 --- /dev/null +++ b/Dalamud/NativeFunctions.cs @@ -0,0 +1,2113 @@ +using System.Diagnostics.CodeAnalysis; +using System.Net.Sockets; +using System.Runtime.InteropServices; +using System.Text; + +namespace Dalamud; + +/// <summary> +/// Native user32 functions. +/// </summary> +internal static partial class NativeFunctions +{ + /// <summary> + /// FLASHW_* from winuser. + /// </summary> + public enum FlashWindow : uint + { + /// <summary> + /// Stop flashing. The system restores the window to its original state. + /// </summary> + Stop = 0, + + /// <summary> + /// Flash the window caption. + /// </summary> + Caption = 1, + + /// <summary> + /// Flash the taskbar button. + /// </summary> + Tray = 2, + + /// <summary> + /// Flash both the window caption and taskbar button. + /// This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags. + /// </summary> + All = 3, + + /// <summary> + /// Flash continuously, until the FLASHW_STOP flag is set. + /// </summary> + Timer = 4, + + /// <summary> + /// Flash continuously until the window comes to the foreground. + /// </summary> + TimerNoFG = 12, + } + + /// <summary> + /// IDC_* from winuser. + /// </summary> + public enum CursorType + { + /// <summary> + /// Standard arrow and small hourglass. + /// </summary> + AppStarting = 32650, + + /// <summary> + /// Standard arrow. + /// </summary> + Arrow = 32512, + + /// <summary> + /// Crosshair. + /// </summary> + Cross = 32515, + + /// <summary> + /// Hand. + /// </summary> + Hand = 32649, + + /// <summary> + /// Arrow and question mark. + /// </summary> + Help = 32651, + + /// <summary> + /// I-beam. + /// </summary> + IBeam = 32513, + + /// <summary> + /// Obsolete for applications marked version 4.0 or later. + /// </summary> + Icon = 32641, + + /// <summary> + /// Slashed circle. + /// </summary> + No = 32648, + + /// <summary> + /// Obsolete for applications marked version 4.0 or later.Use IDC_SIZEALL. + /// </summary> + Size = 32640, + + /// <summary> + /// Four-pointed arrow pointing north, south, east, and west. + /// </summary> + SizeAll = 32646, + + /// <summary> + /// Double-pointed arrow pointing northeast and southwest. + /// </summary> + SizeNeSw = 32643, + + /// <summary> + /// Double-pointed arrow pointing north and south. + /// </summary> + SizeNS = 32645, + + /// <summary> + /// Double-pointed arrow pointing northwest and southeast. + /// </summary> + SizeNwSe = 32642, + + /// <summary> + /// Double-pointed arrow pointing west and east. + /// </summary> + SizeWE = 32644, + + /// <summary> + /// Vertical arrow. + /// </summary> + UpArrow = 32516, + + /// <summary> + /// Hourglass. + /// </summary> + Wait = 32514, + } + + /// <summary> + /// MB_* from winuser. + /// </summary> + [Flags] + public enum MessageBoxType : uint + { + /// <summary> + /// The default value for any of the various subtypes. + /// </summary> + DefaultValue = 0x0, + + // To indicate the buttons displayed in the message box, specify one of the following values. + + /// <summary> + /// The message box contains three push buttons: Abort, Retry, and Ignore. + /// </summary> + AbortRetryIgnore = 0x2, + + /// <summary> + /// The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead + /// of MB_ABORTRETRYIGNORE. + /// </summary> + CancelTryContinue = 0x6, + + /// <summary> + /// Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends + /// a WM_HELP message to the owner. + /// </summary> + Help = 0x4000, + + /// <summary> + /// The message box contains one push button: OK. This is the default. + /// </summary> + Ok = DefaultValue, + + /// <summary> + /// The message box contains two push buttons: OK and Cancel. + /// </summary> + OkCancel = 0x1, + + /// <summary> + /// The message box contains two push buttons: Retry and Cancel. + /// </summary> + RetryCancel = 0x5, + + /// <summary> + /// The message box contains two push buttons: Yes and No. + /// </summary> + YesNo = 0x4, + + /// <summary> + /// The message box contains three push buttons: Yes, No, and Cancel. + /// </summary> + YesNoCancel = 0x3, + + // To display an icon in the message box, specify one of the following values. + + /// <summary> + /// An exclamation-point icon appears in the message box. + /// </summary> + IconExclamation = 0x30, + + /// <summary> + /// An exclamation-point icon appears in the message box. + /// </summary> + IconWarning = IconExclamation, + + /// <summary> + /// An icon consisting of a lowercase letter i in a circle appears in the message box. + /// </summary> + IconInformation = 0x40, + + /// <summary> + /// An icon consisting of a lowercase letter i in a circle appears in the message box. + /// </summary> + IconAsterisk = IconInformation, + + /// <summary> + /// A question-mark icon appears in the message box. + /// The question-mark message icon is no longer recommended because it does not clearly represent a specific type + /// of message and because the phrasing of a message as a question could apply to any message type. In addition, + /// users can confuse the message symbol question mark with Help information. Therefore, do not use this question + /// mark message symbol in your message boxes. The system continues to support its inclusion only for backward + /// compatibility. + /// </summary> + IconQuestion = 0x20, + + /// <summary> + /// A stop-sign icon appears in the message box. + /// </summary> + IconStop = 0x10, + + /// <summary> + /// A stop-sign icon appears in the message box. + /// </summary> + IconError = IconStop, + + /// <summary> + /// A stop-sign icon appears in the message box. + /// </summary> + IconHand = IconStop, + + // To indicate the default button, specify one of the following values. + + /// <summary> + /// The first button is the default button. + /// MB_DEFBUTTON1 is the default unless MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 is specified. + /// </summary> + DefButton1 = DefaultValue, + + /// <summary> + /// The second button is the default button. + /// </summary> + DefButton2 = 0x100, + + /// <summary> + /// The third button is the default button. + /// </summary> + DefButton3 = 0x200, + + /// <summary> + /// The fourth button is the default button. + /// </summary> + DefButton4 = 0x300, + + // To indicate the modality of the dialog box, specify one of the following values. + + /// <summary> + /// The user must respond to the message box before continuing work in the window identified by the hWnd parameter. + /// However, the user can move to the windows of other threads and work in those windows. Depending on the hierarchy + /// of windows in the application, the user may be able to move to other windows within the thread. All child windows + /// of the parent of the message box are automatically disabled, but pop-up windows are not. MB_APPLMODAL is the + /// default if neither MB_SYSTEMMODAL nor MB_TASKMODAL is specified. + /// </summary> + ApplModal = DefaultValue, + + /// <summary> + /// Same as MB_APPLMODAL except that the message box has the WS_EX_TOPMOST style. + /// Use system-modal message boxes to notify the user of serious, potentially damaging errors that require immediate + /// attention (for example, running out of memory). This flag has no effect on the user's ability to interact with + /// windows other than those associated with hWnd. + /// </summary> + SystemModal = 0x1000, + + /// <summary> + /// Same as MB_APPLMODAL except that all the top-level windows belonging to the current thread are disabled if the + /// hWnd parameter is NULL. Use this flag when the calling application or library does not have a window handle + /// available but still needs to prevent input to other windows in the calling thread without suspending other threads. + /// </summary> + TaskModal = 0x2000, + + // To specify other options, use one or more of the following values. + + /// <summary> + /// Same as desktop of the interactive window station. For more information, see Window Stations. If the current + /// input desktop is not the default desktop, MessageBox does not return until the user switches to the default + /// desktop. + /// </summary> + DefaultDesktopOnly = 0x20000, + + /// <summary> + /// The text is right-justified. + /// </summary> + Right = 0x80000, + + /// <summary> + /// Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems. + /// </summary> + RtlReading = 0x100000, + + /// <summary> + /// The message box becomes the foreground window. Internally, the system calls the SetForegroundWindow function + /// for the message box. + /// </summary> + SetForeground = 0x10000, + + /// <summary> + /// The message box is created with the WS_EX_TOPMOST window style. + /// </summary> + Topmost = 0x40000, + + /// <summary> + /// The caller is a service notifying the user of an event. The function displays a message box on the current active + /// desktop, even if there is no user logged on to the computer. + /// </summary> + ServiceNotification = 0x200000, + } + + /// <summary> + /// GWL_* from winuser. + /// </summary> + public enum WindowLongType + { + /// <summary> + /// Sets a new extended window style. + /// </summary> + ExStyle = -20, + + /// <summary> + /// Sets a new application instance handle. + /// </summary> + HInstance = -6, + + /// <summary> + /// Sets a new identifier of the child window.The window cannot be a top-level window. + /// </summary> + Id = -12, + + /// <summary> + /// Sets a new window style. + /// </summary> + Style = -16, + + /// <summary> + /// Sets the user data associated with the window. This data is intended for use by the application that created the window. Its value is initially zero. + /// </summary> + UserData = -21, + + /// <summary> + /// Sets a new address for the window procedure. + /// </summary> + WndProc = -4, + + // The following values are also available when the hWnd parameter identifies a dialog box. + + // /// <summary> + // /// Sets the new pointer to the dialog box procedure. + // /// </summary> + // DWLP_DLGPROC = DWLP_MSGRESULT + sizeof(LRESULT), + + /// <summary> + /// Sets the return value of a message processed in the dialog box procedure. + /// </summary> + MsgResult = 0, + + // /// <summary> + // /// Sets new extra information that is private to the application, such as handles or pointers. + // /// </summary> + // DWLP_USER = DWLP_DLGPROC + sizeof(DLGPROC), + } + + /// <summary> + /// WM_* from winuser. + /// These are spread throughout multiple files, find the documentation manually if you need it. + /// https://gist.github.com/amgine/2395987. + /// </summary> + [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1602:Enumeration items should be documented", Justification = "No documentation available.")] + public enum WindowsMessage + { + WM_NULL = 0x0000, + WM_CREATE = 0x0001, + WM_DESTROY = 0x0002, + WM_MOVE = 0x0003, + WM_SIZE = 0x0005, + WM_ACTIVATE = 0x0006, + WM_SETFOCUS = 0x0007, + WM_KILLFOCUS = 0x0008, + WM_ENABLE = 0x000A, + WM_SETREDRAW = 0x000B, + WM_SETTEXT = 0x000C, + WM_GETTEXT = 0x000D, + WM_GETTEXTLENGTH = 0x000E, + WM_PAINT = 0x000F, + WM_CLOSE = 0x0010, + WM_QUERYENDSESSION = 0x0011, + WM_QUERYOPEN = 0x0013, + WM_ENDSESSION = 0x0016, + WM_QUIT = 0x0012, + WM_ERASEBKGND = 0x0014, + WM_SYSCOLORCHANGE = 0x0015, + WM_SHOWWINDOW = 0x0018, + WM_WININICHANGE = 0x001A, + WM_SETTINGCHANGE = WM_WININICHANGE, + WM_DEVMODECHANGE = 0x001B, + WM_ACTIVATEAPP = 0x001C, + WM_FONTCHANGE = 0x001D, + WM_TIMECHANGE = 0x001E, + WM_CANCELMODE = 0x001F, + WM_SETCURSOR = 0x0020, + WM_MOUSEACTIVATE = 0x0021, + WM_CHILDACTIVATE = 0x0022, + WM_QUEUESYNC = 0x0023, + WM_GETMINMAXINFO = 0x0024, + WM_PAINTICON = 0x0026, + WM_ICONERASEBKGND = 0x0027, + WM_NEXTDLGCTL = 0x0028, + WM_SPOOLERSTATUS = 0x002A, + WM_DRAWITEM = 0x002B, + WM_MEASUREITEM = 0x002C, + WM_DELETEITEM = 0x002D, + WM_VKEYTOITEM = 0x002E, + WM_CHARTOITEM = 0x002F, + WM_SETFONT = 0x0030, + WM_GETFONT = 0x0031, + WM_SETHOTKEY = 0x0032, + WM_GETHOTKEY = 0x0033, + WM_QUERYDRAGICON = 0x0037, + WM_COMPAREITEM = 0x0039, + WM_GETOBJECT = 0x003D, + WM_COMPACTING = 0x0041, + WM_COMMNOTIFY = 0x0044, + WM_WINDOWPOSCHANGING = 0x0046, + WM_WINDOWPOSCHANGED = 0x0047, + WM_POWER = 0x0048, + WM_COPYDATA = 0x004A, + WM_CANCELJOURNAL = 0x004B, + WM_NOTIFY = 0x004E, + WM_INPUTLANGCHANGEREQUEST = 0x0050, + WM_INPUTLANGCHANGE = 0x0051, + WM_TCARD = 0x0052, + WM_HELP = 0x0053, + WM_USERCHANGED = 0x0054, + WM_NOTIFYFORMAT = 0x0055, + WM_CONTEXTMENU = 0x007B, + WM_STYLECHANGING = 0x007C, + WM_STYLECHANGED = 0x007D, + WM_DISPLAYCHANGE = 0x007E, + WM_GETICON = 0x007F, + WM_SETICON = 0x0080, + WM_NCCREATE = 0x0081, + WM_NCDESTROY = 0x0082, + WM_NCCALCSIZE = 0x0083, + WM_NCHITTEST = 0x0084, + WM_NCPAINT = 0x0085, + WM_NCACTIVATE = 0x0086, + WM_GETDLGCODE = 0x0087, + WM_SYNCPAINT = 0x0088, + + WM_NCMOUSEMOVE = 0x00A0, + WM_NCLBUTTONDOWN = 0x00A1, + WM_NCLBUTTONUP = 0x00A2, + WM_NCLBUTTONDBLCLK = 0x00A3, + WM_NCRBUTTONDOWN = 0x00A4, + WM_NCRBUTTONUP = 0x00A5, + WM_NCRBUTTONDBLCLK = 0x00A6, + WM_NCMBUTTONDOWN = 0x00A7, + WM_NCMBUTTONUP = 0x00A8, + WM_NCMBUTTONDBLCLK = 0x00A9, + WM_NCXBUTTONDOWN = 0x00AB, + WM_NCXBUTTONUP = 0x00AC, + WM_NCXBUTTONDBLCLK = 0x00AD, + + WM_INPUT_DEVICE_CHANGE = 0x00FE, + WM_INPUT = 0x00FF, + + WM_KEYFIRST = 0x0100, + WM_KEYDOWN = WM_KEYFIRST, + WM_KEYUP = 0x0101, + WM_CHAR = 0x0102, + WM_DEADCHAR = 0x0103, + WM_SYSKEYDOWN = 0x0104, + WM_SYSKEYUP = 0x0105, + WM_SYSCHAR = 0x0106, + WM_SYSDEADCHAR = 0x0107, + WM_UNICHAR = 0x0109, + WM_KEYLAST = WM_UNICHAR, + + WM_IME_STARTCOMPOSITION = 0x010D, + WM_IME_ENDCOMPOSITION = 0x010E, + WM_IME_COMPOSITION = 0x010F, + WM_IME_KEYLAST = WM_IME_COMPOSITION, + + WM_INITDIALOG = 0x0110, + WM_COMMAND = 0x0111, + WM_SYSCOMMAND = 0x0112, + WM_TIMER = 0x0113, + WM_HSCROLL = 0x0114, + WM_VSCROLL = 0x0115, + WM_INITMENU = 0x0116, + WM_INITMENUPOPUP = 0x0117, + WM_MENUSELECT = 0x011F, + WM_MENUCHAR = 0x0120, + WM_ENTERIDLE = 0x0121, + WM_MENURBUTTONUP = 0x0122, + WM_MENUDRAG = 0x0123, + WM_MENUGETOBJECT = 0x0124, + WM_UNINITMENUPOPUP = 0x0125, + WM_MENUCOMMAND = 0x0126, + + WM_CHANGEUISTATE = 0x0127, + WM_UPDATEUISTATE = 0x0128, + WM_QUERYUISTATE = 0x0129, + + WM_CTLCOLORMSGBOX = 0x0132, + WM_CTLCOLOREDIT = 0x0133, + WM_CTLCOLORLISTBOX = 0x0134, + WM_CTLCOLORBTN = 0x0135, + WM_CTLCOLORDLG = 0x0136, + WM_CTLCOLORSCROLLBAR = 0x0137, + WM_CTLCOLORSTATIC = 0x0138, + MN_GETHMENU = 0x01E1, + + WM_MOUSEFIRST = 0x0200, + WM_MOUSEMOVE = WM_MOUSEFIRST, + WM_LBUTTONDOWN = 0x0201, + WM_LBUTTONUP = 0x0202, + WM_LBUTTONDBLCLK = 0x0203, + WM_RBUTTONDOWN = 0x0204, + WM_RBUTTONUP = 0x0205, + WM_RBUTTONDBLCLK = 0x0206, + WM_MBUTTONDOWN = 0x0207, + WM_MBUTTONUP = 0x0208, + WM_MBUTTONDBLCLK = 0x0209, + WM_MOUSEWHEEL = 0x020A, + WM_XBUTTONDOWN = 0x020B, + WM_XBUTTONUP = 0x020C, + WM_XBUTTONDBLCLK = 0x020D, + WM_MOUSEHWHEEL = 0x020E, + + WM_PARENTNOTIFY = 0x0210, + WM_ENTERMENULOOP = 0x0211, + WM_EXITMENULOOP = 0x0212, + + WM_NEXTMENU = 0x0213, + WM_SIZING = 0x0214, + WM_CAPTURECHANGED = 0x0215, + WM_MOVING = 0x0216, + + WM_POWERBROADCAST = 0x0218, + + WM_DEVICECHANGE = 0x0219, + + WM_MDICREATE = 0x0220, + WM_MDIDESTROY = 0x0221, + WM_MDIACTIVATE = 0x0222, + WM_MDIRESTORE = 0x0223, + WM_MDINEXT = 0x0224, + WM_MDIMAXIMIZE = 0x0225, + WM_MDITILE = 0x0226, + WM_MDICASCADE = 0x0227, + WM_MDIICONARRANGE = 0x0228, + WM_MDIGETACTIVE = 0x0229, + + WM_MDISETMENU = 0x0230, + WM_ENTERSIZEMOVE = 0x0231, + WM_EXITSIZEMOVE = 0x0232, + WM_DROPFILES = 0x0233, + WM_MDIREFRESHMENU = 0x0234, + + WM_IME_SETCONTEXT = 0x0281, + WM_IME_NOTIFY = 0x0282, + WM_IME_CONTROL = 0x0283, + WM_IME_COMPOSITIONFULL = 0x0284, + WM_IME_SELECT = 0x0285, + WM_IME_CHAR = 0x0286, + WM_IME_REQUEST = 0x0288, + WM_IME_KEYDOWN = 0x0290, + WM_IME_KEYUP = 0x0291, + + WM_MOUSEHOVER = 0x02A1, + WM_MOUSELEAVE = 0x02A3, + WM_NCMOUSEHOVER = 0x02A0, + WM_NCMOUSELEAVE = 0x02A2, + + WM_WTSSESSION_CHANGE = 0x02B1, + + WM_TABLET_FIRST = 0x02c0, + WM_TABLET_LAST = 0x02df, + + WM_CUT = 0x0300, + WM_COPY = 0x0301, + WM_PASTE = 0x0302, + WM_CLEAR = 0x0303, + WM_UNDO = 0x0304, + WM_RENDERFORMAT = 0x0305, + WM_RENDERALLFORMATS = 0x0306, + WM_DESTROYCLIPBOARD = 0x0307, + WM_DRAWCLIPBOARD = 0x0308, + WM_PAINTCLIPBOARD = 0x0309, + WM_VSCROLLCLIPBOARD = 0x030A, + WM_SIZECLIPBOARD = 0x030B, + WM_ASKCBFORMATNAME = 0x030C, + WM_CHANGECBCHAIN = 0x030D, + WM_HSCROLLCLIPBOARD = 0x030E, + WM_QUERYNEWPALETTE = 0x030F, + WM_PALETTEISCHANGING = 0x0310, + WM_PALETTECHANGED = 0x0311, + WM_HOTKEY = 0x0312, + + WM_PRINT = 0x0317, + WM_PRINTCLIENT = 0x0318, + + WM_APPCOMMAND = 0x0319, + + WM_THEMECHANGED = 0x031A, + + WM_CLIPBOARDUPDATE = 0x031D, + + WM_DWMCOMPOSITIONCHANGED = 0x031E, + WM_DWMNCRENDERINGCHANGED = 0x031F, + WM_DWMCOLORIZATIONCOLORCHANGED = 0x0320, + WM_DWMWINDOWMAXIMIZEDCHANGE = 0x0321, + + WM_GETTITLEBARINFOEX = 0x033F, + + WM_HANDHELDFIRST = 0x0358, + WM_HANDHELDLAST = 0x035F, + + WM_AFXFIRST = 0x0360, + WM_AFXLAST = 0x037F, + + WM_PENWINFIRST = 0x0380, + WM_PENWINLAST = 0x038F, + + WM_APP = 0x8000, + + WM_USER = 0x0400, + + WM_REFLECT = WM_USER + 0x1C00, + } + + /// <summary> + /// Returns true if the current application has focus, false otherwise. + /// </summary> + /// <returns> + /// If the current application is focused. + /// </returns> + public static bool ApplicationIsActivated() + { + var activatedHandle = GetForegroundWindow(); + if (activatedHandle == IntPtr.Zero) + return false; // No window is currently activated + + _ = GetWindowThreadProcessId(activatedHandle, out var activeProcId); + if (Marshal.GetLastWin32Error() != 0) + return false; + + return activeProcId == Environment.ProcessId; + } + + /// <summary> + /// Passes message information to the specified window procedure. + /// </summary> + /// <param name="lpPrevWndFunc"> + /// The previous window procedure. If this value is obtained by calling the GetWindowLong function with the nIndex parameter set to + /// GWL_WNDPROC or DWL_DLGPROC, it is actually either the address of a window or dialog box procedure, or a special internal value + /// meaningful only to CallWindowProc. + /// </param> + /// <param name="hWnd"> + /// A handle to the window procedure to receive the message. + /// </param> + /// <param name="msg"> + /// The message. + /// </param> + /// <param name="wParam"> + /// Additional message-specific information. The contents of this parameter depend on the value of the Msg parameter. + /// </param> + /// <param name="lParam"> + /// More additional message-specific information. The contents of this parameter depend on the value of the Msg parameter. + /// </param> + /// <returns> + /// Use the CallWindowProc function for window subclassing. Usually, all windows with the same class share one window procedure. A + /// subclass is a window or set of windows with the same class whose messages are intercepted and processed by another window procedure + /// (or procedures) before being passed to the window procedure of the class. + /// The SetWindowLong function creates the subclass by changing the window procedure associated with a particular window, causing the + /// system to call the new window procedure instead of the previous one.An application must pass any messages not processed by the new + /// window procedure to the previous window procedure by calling CallWindowProc.This allows the application to create a chain of window + /// procedures. + /// </returns> + [DllImport("user32.dll")] + public static extern long CallWindowProcW(IntPtr lpPrevWndFunc, IntPtr hWnd, uint msg, ulong wParam, long lParam); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-flashwindowex. + /// Flashes the specified window. It does not change the active state of the window. + /// </summary> + /// <param name="pwfi"> + /// A pointer to a FLASHWINFO structure. + /// </param> + /// <returns> + /// The return value specifies the window's state before the call to the FlashWindowEx function. If the window caption + /// was drawn as active before the call, the return value is nonzero. Otherwise, the return value is zero. + /// </returns> + [DllImport("user32.dll")] + [return: MarshalAs(UnmanagedType.Bool)] + public static extern bool FlashWindowEx(ref FlashWindowInfo pwfi); + + /// <summary> + /// Retrieves a handle to the foreground window (the window with which the user is currently working). The system assigns + /// a slightly higher priority to the thread that creates the foreground window than it does to other threads. + /// </summary> + /// <returns> + /// The return value is a handle to the foreground window. The foreground window can be NULL in certain circumstances, + /// such as when a window is losing activation. + /// </returns> + [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] + public static extern IntPtr GetForegroundWindow(); + + /// <summary> + /// Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the + /// process that created the window. + /// </summary> + /// <param name="handle"> + /// A handle to the window. + /// </param> + /// <param name="processId"> + /// A pointer to a variable that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId + /// copies the identifier of the process to the variable; otherwise, it does not. + /// </param> + /// <returns> + /// The return value is the identifier of the thread that created the window. + /// </returns> + [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] + public static extern int GetWindowThreadProcessId(IntPtr handle, out int processId); + + /// <summary> + /// Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, + /// such as status or error information. The message box returns an integer value that indicates which button the user + /// clicked. + /// </summary> + /// <param name="hWnd"> + /// A handle to the owner window of the message box to be created. If this parameter is NULL, the message box has no + /// owner window. + /// </param> + /// <param name="text"> + /// The message to be displayed. If the string consists of more than one line, you can separate the lines using a carriage + /// return and/or linefeed character between each line. + /// </param> + /// <param name="caption"> + /// The dialog box title. If this parameter is NULL, the default title is Error.</param> + /// <param name="type"> + /// The contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups + /// of flags. + /// </param> + /// <returns> + /// If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or + /// the Cancel button is selected. If the message box has no Cancel button, pressing ESC will no effect - unless an + /// MB_OK button is present. If an MB_OK button is displayed and the user presses ESC, the return value will be IDOK. + /// If the function fails, the return value is zero.To get extended error information, call GetLastError. If the function + /// succeeds, the return value is one of the ID* enum values. + /// </returns> + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] + public static extern int MessageBoxW(IntPtr hWnd, string text, string caption, MessageBoxType type); + + /// <summary> + /// Changes an attribute of the specified window. The function also sets a value at the specified offset in the extra window memory. + /// </summary> + /// <param name="hWnd"> + /// A handle to the window and, indirectly, the class to which the window belongs. The SetWindowLongPtr function fails if the + /// process that owns the window specified by the hWnd parameter is at a higher process privilege in the UIPI hierarchy than the + /// process the calling thread resides in. + /// </param> + /// <param name="nIndex"> + /// The zero-based offset to the value to be set. Valid values are in the range zero through the number of bytes of extra window + /// memory, minus the size of a LONG_PTR. To set any other value, specify one of the values. + /// </param> + /// <param name="dwNewLong"> + /// The replacement value. + /// </param> + /// <returns> + /// If the function succeeds, the return value is the previous value of the specified offset. If the function fails, the return + /// value is zero.To get extended error information, call GetLastError. If the previous value is zero and the function succeeds, + /// the return value is zero, but the function does not clear the last error information. To determine success or failure, clear + /// the last error information by calling SetLastError with 0, then call SetWindowLongPtr.Function failure will be indicated by + /// a return value of zero and a GetLastError result that is nonzero. + /// </returns> + [DllImport("user32.dll", SetLastError = true)] + public static extern IntPtr SetWindowLongPtrW(IntPtr hWnd, WindowLongType nIndex, IntPtr dwNewLong); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-flashwinfo. + /// Contains the flash status for a window and the number of times the system should flash the window. + /// </summary> + [StructLayout(LayoutKind.Sequential)] + public struct FlashWindowInfo + { + /// <summary> + /// The size of the structure, in bytes. + /// </summary> + public uint Size; + + /// <summary> + /// A handle to the window to be flashed. The window can be either opened or minimized. + /// </summary> + public IntPtr Hwnd; + + /// <summary> + /// The flash status. This parameter can be one or more of the FlashWindow enum values. + /// </summary> + public FlashWindow Flags; + + /// <summary> + /// The number of times to flash the window. + /// </summary> + public uint Count; + + /// <summary> + /// The rate at which the window is to be flashed, in milliseconds. If dwTimeout is zero, the function uses the + /// default cursor blink rate. + /// </summary> + public uint Timeout; + } + + /// <summary> + /// Parameters for use with SystemParametersInfo. + /// </summary> + public enum AccessibilityParameter + { +#pragma warning disable SA1602 + SPI_GETCLIENTAREAANIMATION = 0x1042, +#pragma warning restore SA1602 + } + + /// <summary> + /// Retrieves or sets the value of one of the system-wide parameters. This function can also update the user profile while setting a parameter. + /// </summary> + /// <param name="uiAction">The system-wide parameter to be retrieved or set.</param> + /// <param name="uiParam">A parameter whose usage and format depends on the system parameter being queried or set.</param> + /// <param name="pvParam">A parameter whose usage and format depends on the system parameter being queried or set. If not otherwise indicated, you must specify zero for this parameter.</param> + /// <param name="fWinIni">If a system parameter is being set, specifies whether the user profile is to be updated, and if so, whether the WM_SETTINGCHANGE message is to be broadcast to all top-level windows to notify them of the change.</param> + /// <returns>If the function succeeds, the return value is a nonzero value.</returns> + [DllImport("user32.dll", SetLastError = true)] + public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, ref int pvParam, uint fWinIni); +} + +/// <summary> +/// Native imm32 functions. +/// </summary> +internal static partial class NativeFunctions +{ + /// <summary> + /// GCS_* from imm32. + /// These values are used with ImmGetCompositionString and WM_IME_COMPOSITION. + /// </summary> + [Flags] + public enum IMEComposition + { + /// <summary> + /// Retrieve or update the attribute of the composition string. + /// </summary> + CompAttr = 0x0010, + + /// <summary> + /// Retrieve or update clause information of the composition string. + /// </summary> + CompClause = 0x0020, + + /// <summary> + /// Retrieve or update the attributes of the reading string of the current composition. + /// </summary> + CompReadAttr = 0x0002, + + /// <summary> + /// Retrieve or update the clause information of the reading string of the composition string. + /// </summary> + CompReadClause = 0x0004, + + /// <summary> + /// Retrieve or update the reading string of the current composition. + /// </summary> + CompReadStr = 0x0001, + + /// <summary> + /// Retrieve or update the current composition string. + /// </summary> + CompStr = 0x0008, + + /// <summary> + /// Retrieve or update the cursor position in composition string. + /// </summary> + CursorPos = 0x0080, + + /// <summary> + /// Retrieve or update the starting position of any changes in composition string. + /// </summary> + DeltaStart = 0x0100, + + /// <summary> + /// Retrieve or update clause information of the result string. + /// </summary> + ResultClause = 0x1000, + + /// <summary> + /// Retrieve or update clause information of the reading string. + /// </summary> + ResultReadClause = 0x0400, + + /// <summary> + /// Retrieve or update the reading string. + /// </summary> + ResultReadStr = 0x0200, + + /// <summary> + /// Retrieve or update the string of the composition result. + /// </summary> + ResultStr = 0x0800, + } + + /// <summary> + /// IMN_* from imm32. + /// Input Method Manager Commands, this enum is not exhaustive. + /// </summary> + public enum IMECommand + { + /// <summary> + /// Notifies the application when an IME is about to change the content of the candidate window. + /// </summary> + ChangeCandidate = 0x0003, + + /// <summary> + /// Notifies an application when an IME is about to close the candidates window. + /// </summary> + CloseCandidate = 0x0004, + + /// <summary> + /// Notifies an application when an IME is about to open the candidate window. + /// </summary> + OpenCandidate = 0x0005, + + /// <summary> + /// Notifies an application when the conversion mode of the input context is updated. + /// </summary> + SetConversionMode = 0x0006, + } + + /// <summary> + /// Returns the input context associated with the specified window. + /// </summary> + /// <param name="hWnd">Unnamed parameter 1.</param> + /// <returns> + /// Returns the handle to the input context. + /// </returns> + [DllImport("imm32.dll")] + public static extern IntPtr ImmGetContext(IntPtr hWnd); + + /// <summary> + /// Retrieves information about the composition string. + /// </summary> + /// <param name="hImc"> + /// Unnamed parameter 1. + /// </param> + /// <param name="arg2"> + /// Unnamed parameter 2. + /// </param> + /// <param name="lpBuf"> + /// Pointer to a buffer in which the function retrieves the composition string information. + /// </param> + /// <param name="dwBufLen"> + /// Size, in bytes, of the output buffer, even if the output is a Unicode string. The application sets this parameter to 0 + /// if the function is to return the size of the required output buffer. + /// </param> + /// <returns> + /// Returns the number of bytes copied to the output buffer. If dwBufLen is set to 0, the function returns the buffer size, + /// in bytes, required to receive all requested information, excluding the terminating null character. The return value is + /// always the size, in bytes, even if the requested data is a Unicode string. + /// This function returns one of the following negative error codes if it does not succeed: + /// - IMM_ERROR_NODATA.Composition data is not ready in the input context. + /// - IMM_ERROR_GENERAL.General error detected by IME. + /// </returns> + [DllImport("imm32.dll")] + public static extern long ImmGetCompositionStringW(IntPtr hImc, IMEComposition arg2, IntPtr lpBuf, uint dwBufLen); + + /// <summary> + /// Retrieves a candidate list. + /// </summary> + /// <param name="hImc"> + /// Unnamed parameter 1. + /// </param> + /// <param name="deIndex"> + /// Zero-based index of the candidate list. + /// </param> + /// <param name="lpCandList"> + /// Pointer to a CANDIDATELIST structure in which the function retrieves the candidate list. + /// </param> + /// <param name="dwBufLen"> + /// Size, in bytes, of the buffer to receive the candidate list. The application can specify 0 for this parameter if the + /// function is to return the required size of the output buffer only. + /// </param> + /// <returns> + /// Returns the number of bytes copied to the candidate list buffer if successful. If the application has supplied 0 for + /// the dwBufLen parameter, the function returns the size required for the candidate list buffer. The function returns 0 + /// if it does not succeed. + /// </returns> + [DllImport("imm32.dll")] + public static extern long ImmGetCandidateListW(IntPtr hImc, uint deIndex, IntPtr lpCandList, uint dwBufLen); + + /// <summary> + /// Sets the position of the composition window. + /// </summary> + /// <param name="hImc"> + /// Unnamed parameter 1. + /// </param> + /// <param name="frm"> + /// Pointer to a COMPOSITIONFORM structure that contains the new position and other related information about + /// the composition window. + /// </param> + /// <returns> + /// Returns a nonzero value if successful, or 0 otherwise. + /// </returns> + [DllImport("imm32.dll", CharSet = CharSet.Auto)] + public static extern bool ImmSetCompositionWindow(IntPtr hImc, ref CompositionForm frm); + + /// <summary> + /// Releases the input context and unlocks the memory associated in the input context. An application must call this + /// function for each call to the ImmGetContext function. + /// </summary> + /// <param name="hwnd"> + /// Unnamed parameter 1. + /// </param> + /// <param name="hImc"> + /// Unnamed parameter 2. + /// </param> + /// <returns> + /// Returns a nonzero value if successful, or 0 otherwise. + /// </returns> + [DllImport("imm32.dll", CharSet = CharSet.Auto)] + public static extern bool ImmReleaseContext(IntPtr hwnd, IntPtr hImc); + + /// <summary> + /// Contains information about a candidate list. + /// </summary> + public struct CandidateList + { + /// <summary> + /// Size, in bytes, of the structure, the offset array, and all candidate strings. + /// </summary> + public int Size; + + /// <summary> + /// Candidate style values. This member can have one or more of the IME_CAND_* values. + /// </summary> + public int Style; + + /// <summary> + /// Number of candidate strings. + /// </summary> + public int Count; + + /// <summary> + /// Index of the selected candidate string. + /// </summary> + public int Selection; + + /// <summary> + /// Index of the first candidate string in the candidate window. This varies as the user presses the PAGE UP and PAGE DOWN keys. + /// </summary> + public int PageStart; + + /// <summary> + /// Number of candidate strings to be shown in one page in the candidate window. The user can move to the next page by pressing IME-defined keys, such as the PAGE UP or PAGE DOWN key. If this number is 0, an application can define a proper value by itself. + /// </summary> + public int PageSize; + + // /// <summary> + // /// Offset to the start of the first candidate string, relative to the start of this structure. The offsets + // /// for subsequent strings immediately follow this member, forming an array of 32-bit offsets. + // /// </summary> + // public IntPtr Offset; // manually handle + } + + /// <summary> + /// Contains style and position information for a composition window. + /// </summary> + [StructLayout(LayoutKind.Sequential)] + public struct CompositionForm + { + /// <summary> + /// Position style. This member can be one of the CFS_* values. + /// </summary> + public int Style; + + /// <summary> + /// A POINT structure containing the coordinates of the upper left corner of the composition window. + /// </summary> + public Point CurrentPos; + + /// <summary> + /// A RECT structure containing the coordinates of the upper left and lower right corners of the composition window. + /// </summary> + public Rect Area; + } + + /// <summary> + /// Contains coordinates for a point. + /// </summary> + [StructLayout(LayoutKind.Sequential)] + public struct Point + { + /// <summary> + /// The X position. + /// </summary> + public int X; + + /// <summary> + /// The Y position. + /// </summary> + public int Y; + } + + /// <summary> + /// Contains dimensions for a rectangle. + /// </summary> + [StructLayout(LayoutKind.Sequential)] + public struct Rect + { + /// <summary> + /// The left position. + /// </summary> + public int Left; + + /// <summary> + /// The top position. + /// </summary> + public int Top; + + /// <summary> + /// The right position. + /// </summary> + public int Right; + + /// <summary> + /// The bottom position. + /// </summary> + public int Bottom; + } +} + +/// <summary> +/// Native kernel32 functions. +/// </summary> +[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1629:Documentation text should end with a period", Justification = "Stupid rule")] +internal static partial class NativeFunctions +{ + /// <summary> + /// MEM_* from memoryapi. + /// </summary> + [Flags] + public enum AllocationType + { + /// <summary> + /// To coalesce two adjacent placeholders, specify MEM_RELEASE | MEM_COALESCE_PLACEHOLDERS. When you coalesce + /// placeholders, lpAddress and dwSize must exactly match those of the placeholder. + /// </summary> + CoalescePlaceholders = 0x1, + + /// <summary> + /// Frees an allocation back to a placeholder (after you've replaced a placeholder with a private allocation using + /// VirtualAlloc2 or Virtual2AllocFromApp). To split a placeholder into two placeholders, specify + /// MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER. + /// </summary> + PreservePlaceholder = 0x2, + + /// <summary> + /// Allocates memory charges (from the overall size of memory and the paging files on disk) for the specified reserved + /// memory pages. The function also guarantees that when the caller later initially accesses the memory, the contents + /// will be zero. Actual physical pages are not allocated unless/until the virtual addresses are actually accessed. + /// To reserve and commit pages in one step, call VirtualAllocEx with MEM_COMMIT | MEM_RESERVE. Attempting to commit + /// a specific address range by specifying MEM_COMMIT without MEM_RESERVE and a non-NULL lpAddress fails unless the + /// entire range has already been reserved. The resulting error code is ERROR_INVALID_ADDRESS. An attempt to commit + /// a page that is already committed does not cause the function to fail. This means that you can commit pages without + /// first determining the current commitment state of each page. If lpAddress specifies an address within an enclave, + /// flAllocationType must be MEM_COMMIT. + /// </summary> + Commit = 0x1000, + + /// <summary> + /// Reserves a range of the process's virtual address space without allocating any actual physical storage in memory + /// or in the paging file on disk. You commit reserved pages by calling VirtualAllocEx again with MEM_COMMIT. To + /// reserve and commit pages in one step, call VirtualAllocEx with MEM_COMMIT | MEM_RESERVE. Other memory allocation + /// functions, such as malloc and LocalAlloc, cannot use reserved memory until it has been released. + /// </summary> + Reserve = 0x2000, + + /// <summary> + /// Decommits the specified region of committed pages. After the operation, the pages are in the reserved state. + /// The function does not fail if you attempt to decommit an uncommitted page. This means that you can decommit + /// a range of pages without first determining the current commitment state. The MEM_DECOMMIT value is not supported + /// when the lpAddress parameter provides the base address for an enclave. + /// </summary> + Decommit = 0x4000, + + /// <summary> + /// Releases the specified region of pages, or placeholder (for a placeholder, the address space is released and + /// available for other allocations). After this operation, the pages are in the free state. If you specify this + /// value, dwSize must be 0 (zero), and lpAddress must point to the base address returned by the VirtualAlloc function + /// when the region is reserved. The function fails if either of these conditions is not met. If any pages in the + /// region are committed currently, the function first decommits, and then releases them. The function does not + /// fail if you attempt to release pages that are in different states, some reserved and some committed. This means + /// that you can release a range of pages without first determining the current commitment state. + /// </summary> + Release = 0x8000, + + /// <summary> + /// Indicates that data in the memory range specified by lpAddress and dwSize is no longer of interest. The pages + /// should not be read from or written to the paging file. However, the memory block will be used again later, so + /// it should not be decommitted. This value cannot be used with any other value. Using this value does not guarantee + /// that the range operated on with MEM_RESET will contain zeros. If you want the range to contain zeros, decommit + /// the memory and then recommit it. When you use MEM_RESET, the VirtualAllocEx function ignores the value of fProtect. + /// However, you must still set fProtect to a valid protection value, such as PAGE_NOACCESS. VirtualAllocEx returns + /// an error if you use MEM_RESET and the range of memory is mapped to a file. A shared view is only acceptable + /// if it is mapped to a paging file. + /// </summary> + Reset = 0x80000, + + /// <summary> + /// MEM_RESET_UNDO should only be called on an address range to which MEM_RESET was successfully applied earlier. + /// It indicates that the data in the specified memory range specified by lpAddress and dwSize is of interest to + /// the caller and attempts to reverse the effects of MEM_RESET. If the function succeeds, that means all data in + /// the specified address range is intact. If the function fails, at least some of the data in the address range + /// has been replaced with zeroes. This value cannot be used with any other value. If MEM_RESET_UNDO is called on + /// an address range which was not MEM_RESET earlier, the behavior is undefined. When you specify MEM_RESET, the + /// VirtualAllocEx function ignores the value of flProtect. However, you must still set flProtect to a valid + /// protection value, such as PAGE_NOACCESS. + /// </summary> + ResetUndo = 0x1000000, + + /// <summary> + /// Reserves an address range that can be used to map Address Windowing Extensions (AWE) pages. This value must + /// be used with MEM_RESERVE and no other values. + /// </summary> + Physical = 0x400000, + + /// <summary> + /// Allocates memory at the highest possible address. This can be slower than regular allocations, especially when + /// there are many allocations. + /// </summary> + TopDown = 0x100000, + + /// <summary> + /// Causes the system to track pages that are written to in the allocated region. If you specify this value, you + /// must also specify MEM_RESERVE. To retrieve the addresses of the pages that have been written to since the region + /// was allocated or the write-tracking state was reset, call the GetWriteWatch function. To reset the write-tracking + /// state, call GetWriteWatch or ResetWriteWatch. The write-tracking feature remains enabled for the memory region + /// until the region is freed. + /// </summary> + WriteWatch = 0x200000, + + /// <summary> + /// Allocates memory using large page support. The size and alignment must be a multiple of the large-page minimum. + /// To obtain this value, use the GetLargePageMinimum function. If you specify this value, you must also specify + /// MEM_RESERVE and MEM_COMMIT. + /// </summary> + LargePages = 0x20000000, + } + + /// <summary> + /// SEM_* from errhandlingapi. + /// </summary> + [Flags] + public enum ErrorModes : uint + { + /// <summary> + /// Use the system default, which is to display all error dialog boxes. + /// </summary> + SystemDefault = 0x0, + + /// <summary> + /// The system does not display the critical-error-handler message box. Instead, the system sends the error to the + /// calling process. Best practice is that all applications call the process-wide SetErrorMode function with a parameter + /// of SEM_FAILCRITICALERRORS at startup. This is to prevent error mode dialogs from hanging the application. + /// </summary> + FailCriticalErrors = 0x0001, + + /// <summary> + /// The system automatically fixes memory alignment faults and makes them invisible to the application. It does + /// this for the calling process and any descendant processes. This feature is only supported by certain processor + /// architectures. For more information, see the Remarks section. After this value is set for a process, subsequent + /// attempts to clear the value are ignored. + /// </summary> + NoAlignmentFaultExcept = 0x0004, + + /// <summary> + /// The system does not display the Windows Error Reporting dialog. + /// </summary> + NoGpFaultErrorBox = 0x0002, + + /// <summary> + /// The OpenFile function does not display a message box when it fails to find a file. Instead, the error is returned + /// to the caller. This error mode overrides the OF_PROMPT flag. + /// </summary> + NoOpenFileErrorBox = 0x8000, + } + + /// <summary> + /// PAGE_* from memoryapi. + /// </summary> + [Flags] + public enum MemoryProtection + { + /// <summary> + /// Enables execute access to the committed region of pages. An attempt to write to the committed region results + /// in an access violation. This flag is not supported by the CreateFileMapping function. + /// </summary> + Execute = 0x10, + + /// <summary> + /// Enables execute or read-only access to the committed region of pages. An attempt to write to the committed region + /// results in an access violation. + /// </summary> + ExecuteRead = 0x20, + + /// <summary> + /// Enables execute, read-only, or read/write access to the committed region of pages. + /// </summary> + ExecuteReadWrite = 0x40, + + /// <summary> + /// Enables execute, read-only, or copy-on-write access to a mapped view of a file mapping object. An attempt to + /// write to a committed copy-on-write page results in a private copy of the page being made for the process. The + /// private page is marked as PAGE_EXECUTE_READWRITE, and the change is written to the new page. This flag is not + /// supported by the VirtualAlloc or VirtualAllocEx functions. + /// </summary> + ExecuteWriteCopy = 0x80, + + /// <summary> + /// Disables all access to the committed region of pages. An attempt to read from, write to, or execute the committed + /// region results in an access violation. This flag is not supported by the CreateFileMapping function. + /// </summary> + NoAccess = 0x01, + + /// <summary> + /// Enables read-only access to the committed region of pages. An attempt to write to the committed region results + /// in an access violation. If Data Execution Prevention is enabled, an attempt to execute code in the committed + /// region results in an access violation. + /// </summary> + ReadOnly = 0x02, + + /// <summary> + /// Enables read-only or read/write access to the committed region of pages. If Data Execution Prevention is enabled, + /// attempting to execute code in the committed region results in an access violation. + /// </summary> + ReadWrite = 0x04, + + /// <summary> + /// Enables read-only or copy-on-write access to a mapped view of a file mapping object. An attempt to write to + /// a committed copy-on-write page results in a private copy of the page being made for the process. The private + /// page is marked as PAGE_READWRITE, and the change is written to the new page. If Data Execution Prevention is + /// enabled, attempting to execute code in the committed region results in an access violation. This flag is not + /// supported by the VirtualAlloc or VirtualAllocEx functions. + /// </summary> + WriteCopy = 0x08, + + /// <summary> + /// Sets all locations in the pages as invalid targets for CFG. Used along with any execute page protection like + /// PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE and PAGE_EXECUTE_WRITECOPY. Any indirect call to locations + /// in those pages will fail CFG checks and the process will be terminated. The default behavior for executable + /// pages allocated is to be marked valid call targets for CFG. This flag is not supported by the VirtualProtect + /// or CreateFileMapping functions. + /// </summary> + TargetsInvalid = 0x40000000, + + /// <summary> + /// Pages in the region will not have their CFG information updated while the protection changes for VirtualProtect. + /// For example, if the pages in the region was allocated using PAGE_TARGETS_INVALID, then the invalid information + /// will be maintained while the page protection changes. This flag is only valid when the protection changes to + /// an executable type like PAGE_EXECUTE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE and PAGE_EXECUTE_WRITECOPY. + /// The default behavior for VirtualProtect protection change to executable is to mark all locations as valid call + /// targets for CFG. + /// </summary> + TargetsNoUpdate = TargetsInvalid, + + /// <summary> + /// Pages in the region become guard pages. Any attempt to access a guard page causes the system to raise a + /// STATUS_GUARD_PAGE_VIOLATION exception and turn off the guard page status. Guard pages thus act as a one-time + /// access alarm. For more information, see Creating Guard Pages. When an access attempt leads the system to turn + /// off guard page status, the underlying page protection takes over. If a guard page exception occurs during a + /// system service, the service typically returns a failure status indicator. This value cannot be used with + /// PAGE_NOACCESS. This flag is not supported by the CreateFileMapping function. + /// </summary> + Guard = 0x100, + + /// <summary> + /// Sets all pages to be non-cachable. Applications should not use this attribute except when explicitly required + /// for a device. Using the interlocked functions with memory that is mapped with SEC_NOCACHE can result in an + /// EXCEPTION_ILLEGAL_INSTRUCTION exception. The PAGE_NOCACHE flag cannot be used with the PAGE_GUARD, PAGE_NOACCESS, + /// or PAGE_WRITECOMBINE flags. The PAGE_NOCACHE flag can be used only when allocating private memory with the + /// VirtualAlloc, VirtualAllocEx, or VirtualAllocExNuma functions. To enable non-cached memory access for shared + /// memory, specify the SEC_NOCACHE flag when calling the CreateFileMapping function. + /// </summary> + NoCache = 0x200, + + /// <summary> + /// Sets all pages to be write-combined. Applications should not use this attribute except when explicitly required + /// for a device. Using the interlocked functions with memory that is mapped as write-combined can result in an + /// EXCEPTION_ILLEGAL_INSTRUCTION exception. The PAGE_WRITECOMBINE flag cannot be specified with the PAGE_NOACCESS, + /// PAGE_GUARD, and PAGE_NOCACHE flags. The PAGE_WRITECOMBINE flag can be used only when allocating private memory + /// with the VirtualAlloc, VirtualAllocEx, or VirtualAllocExNuma functions. To enable write-combined memory access + /// for shared memory, specify the SEC_WRITECOMBINE flag when calling the CreateFileMapping function. + /// </summary> + WriteCombine = 0x400, + } + + /// <summary> + /// HEAP_* from heapapi. + /// </summary> + [Flags] + public enum HeapOptions + { + /// <summary> + /// Serialized access is not used when the heap functions access this heap. This option applies to all + /// subsequent heap function calls. Alternatively, you can specify this option on individual heap function + /// calls. The low-fragmentation heap (LFH) cannot be enabled for a heap created with this option. A heap + /// created with this option cannot be locked. + /// </summary> + NoSerialize = 0x00000001, + + /// <summary> + /// The system raises an exception to indicate failure (for example, an out-of-memory condition) for calls to + /// HeapAlloc and HeapReAlloc instead of returning NULL. + /// </summary> + GenerateExceptions = 0x00000004, + + /// <summary> + /// The allocated memory will be initialized to zero. Otherwise, the memory is not initialized to zero. + /// </summary> + ZeroMemory = 0x00000008, + + /// <summary> + /// All memory blocks that are allocated from this heap allow code execution, if the hardware enforces data + /// execution prevention. Use this flag heap in applications that run code from the heap. If + /// HEAP_CREATE_ENABLE_EXECUTE is not specified and an application attempts to run code from a protected page, + /// the application receives an exception with the status code STATUS_ACCESS_VIOLATION. + /// </summary> + CreateEnableExecute = 0x00040000, + } + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-setevent + /// Sets the specified event object to the signaled state. + /// </summary> + /// <param name="hEvent">A handle to the event object. The CreateEvent or OpenEvent function returns this handle.</param> + /// <returns> + /// If the function succeeds, the return value is nonzero. + /// If the function fails, the return value is zero. To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32.dll")] + public static extern bool SetEvent(IntPtr hEvent); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-freelibrary. + /// Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count. When the reference + /// count reaches zero, the module is unloaded from the address space of the calling process and the handle is no longer + /// valid. + /// </summary> + /// <param name="hModule"> + /// A handle to the loaded library module. The LoadLibrary, LoadLibraryEx, GetModuleHandle, or GetModuleHandleEx function + /// returns this handle. + /// </param> + /// <returns> + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended + /// error information, call the GetLastError function. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + public static extern bool FreeLibrary(IntPtr hModule); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamew. + /// Retrieves the fully qualified path for the file that contains the specified module. The module must have been loaded + /// by the current process. To locate the file for a module that was loaded by another process, use the GetModuleFileNameEx + /// function. + /// </summary> + /// <param name="hModule"> + /// A handle to the loaded module whose path is being requested. If this parameter is NULL, GetModuleFileName retrieves + /// the path of the executable file of the current process. The GetModuleFileName function does not retrieve the path + /// for modules that were loaded using the LOAD_LIBRARY_AS_DATAFILE flag. For more information, see LoadLibraryEx. + /// </param> + /// <param name="lpFilename"> + /// A pointer to a buffer that receives the fully qualified path of the module. If the length of the path is less than + /// the size that the nSize parameter specifies, the function succeeds and the path is returned as a null-terminated + /// string. If the length of the path exceeds the size that the nSize parameter specifies, the function succeeds and + /// the string is truncated to nSize characters including the terminating null character. + /// </param> + /// <param name="nSize"> + /// The size of the lpFilename buffer, in TCHARs. + /// </param> + /// <returns> + /// If the function succeeds, the return value is the length of the string that is copied to the buffer, in characters, + /// not including the terminating null character. If the buffer is too small to hold the module name, the string is + /// truncated to nSize characters including the terminating null character, the function returns nSize, and the function + /// sets the last error to ERROR_INSUFFICIENT_BUFFER. If nSize is zero, the return value is zero and the last error + /// code is ERROR_SUCCESS. If the function fails, the return value is 0 (zero). To get extended error information, call + /// GetLastError. + /// </returns> + [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] + [PreserveSig] + public static extern uint GetModuleFileNameW( + [In] IntPtr hModule, + [Out] StringBuilder lpFilename, + [In][MarshalAs(UnmanagedType.U4)] int nSize); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulehandlew. + /// Retrieves a module handle for the specified module. The module must have been loaded by the calling process. To + /// avoid the race conditions described in the Remarks section, use the GetModuleHandleEx function. + /// </summary> + /// <param name="lpModuleName"> + /// The name of the loaded module (either a .dll or .exe file). If the file name extension is omitted, the default + /// library extension .dll is appended. The file name string can include a trailing point character (.) to indicate + /// that the module name has no extension. The string does not have to specify a path. When specifying a path, be sure + /// to use backslashes (\), not forward slashes (/). The name is compared (case independently) to the names of modules + /// currently mapped into the address space of the calling process. If this parameter is NULL, GetModuleHandle returns + /// a handle to the file used to create the calling process (.exe file). The GetModuleHandle function does not retrieve + /// handles for modules that were loaded using the LOAD_LIBRARY_AS_DATAFILE flag.For more information, see LoadLibraryEx. + /// </param> + /// <returns> + /// If the function succeeds, the return value is a handle to the specified module. If the function fails, the return + /// value is NULL.To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32.dll", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] + public static extern IntPtr GetModuleHandleW(string lpModuleName); + + /// <summary> + /// Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL). + /// </summary> + /// <param name="hModule"> + /// A handle to the DLL module that contains the function or variable. The LoadLibrary, LoadLibraryEx, LoadPackagedLibrary, + /// or GetModuleHandle function returns this handle. The GetProcAddress function does not retrieve addresses from modules + /// that were loaded using the LOAD_LIBRARY_AS_DATAFILE flag.For more information, see LoadLibraryEx. + /// </param> + /// <param name="procName"> + /// The function or variable name, or the function's ordinal value. If this parameter is an ordinal value, it must be + /// in the low-order word; the high-order word must be zero. + /// </param> + /// <returns> + /// If the function succeeds, the return value is the address of the exported function or variable. If the function + /// fails, the return value is NULL.To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)] + [SuppressMessage("Globalization", "CA2101:Specify marshaling for P/Invoke string arguments", Justification = "Ansi only")] + public static extern IntPtr GetProcAddress(IntPtr hModule, string procName); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryw. + /// Loads the specified module into the address space of the calling process. The specified module may cause other modules + /// to be loaded. For additional load options, use the LoadLibraryEx function. + /// </summary> + /// <param name="lpFileName"> + /// The name of the module. This can be either a library module (a .dll file) or an executable module (an .exe file). + /// The name specified is the file name of the module and is not related to the name stored in the library module itself, + /// as specified by the LIBRARY keyword in the module-definition (.def) file. If the string specifies a full path, the + /// function searches only that path for the module. If the string specifies a relative path or a module name without + /// a path, the function uses a standard search strategy to find the module; for more information, see the Remarks. + /// If the function cannot find the module, the function fails.When specifying a path, be sure to use backslashes (\), + /// not forward slashes(/). For more information about paths, see Naming a File or Directory. If the string specifies + /// a module name without a path and the file name extension is omitted, the function appends the default library extension + /// .dll to the module name. To prevent the function from appending .dll to the module name, include a trailing point + /// character (.) in the module name string. + /// </param> + /// <returns> + /// If the function succeeds, the return value is a handle to the module. If the function fails, the return value is + /// NULL.To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32", SetLastError = true, CharSet = CharSet.Unicode)] + public static extern IntPtr LoadLibraryW([MarshalAs(UnmanagedType.LPWStr)] string lpFileName); + + /// <summary> + /// ReadProcessMemory copies the data in the specified address range from the address space of the specified process + /// into the specified buffer of the current process. Any process that has a handle with PROCESS_VM_READ access can + /// call the function. The entire area to be read must be accessible, and if it is not accessible, the function fails. + /// </summary> + /// <param name="hProcess"> + /// A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process. + /// </param> + /// <param name="lpBaseAddress"> + /// A pointer to the base address in the specified process from which to read. Before any data transfer occurs, the + /// system verifies that all data in the base address and memory of the specified size is accessible for read access, + /// and if it is not accessible the function fails. + /// </param> + /// <param name="lpBuffer"> + /// A pointer to a buffer that receives the contents from the address space of the specified process. + /// </param> + /// <param name="dwSize"> + /// The number of bytes to be read from the specified process. + /// </param> + /// <param name="lpNumberOfBytesRead"> + /// A pointer to a variable that receives the number of bytes transferred into the specified buffer. If lpNumberOfBytesRead + /// is NULL, the parameter is ignored. + /// </param> + /// <returns> + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is 0 (zero). To get + /// extended error information, call GetLastError. The function fails if the requested read operation crosses into an + /// area of the process that is inaccessible. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true)] + public static extern bool ReadProcessMemory( + IntPtr hProcess, + IntPtr lpBaseAddress, + IntPtr lpBuffer, + int dwSize, + out IntPtr lpNumberOfBytesRead); + + /// <summary> + /// ReadProcessMemory copies the data in the specified address range from the address space of the specified process + /// into the specified buffer of the current process. Any process that has a handle with PROCESS_VM_READ access can + /// call the function. The entire area to be read must be accessible, and if it is not accessible, the function fails. + /// </summary> + /// <param name="hProcess"> + /// A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process. + /// </param> + /// <param name="lpBaseAddress"> + /// A pointer to the base address in the specified process from which to read. Before any data transfer occurs, the + /// system verifies that all data in the base address and memory of the specified size is accessible for read access, + /// and if it is not accessible the function fails. + /// </param> + /// <param name="lpBuffer"> + /// A pointer to a buffer that receives the contents from the address space of the specified process. + /// </param> + /// <param name="dwSize"> + /// The number of bytes to be read from the specified process. + /// </param> + /// <param name="lpNumberOfBytesRead"> + /// A pointer to a variable that receives the number of bytes transferred into the specified buffer. If lpNumberOfBytesRead + /// is NULL, the parameter is ignored. + /// </param> + /// <returns> + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is 0 (zero). To get + /// extended error information, call GetLastError. The function fails if the requested read operation crosses into an + /// area of the process that is inaccessible. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true)] + public static extern bool ReadProcessMemory( + IntPtr hProcess, + IntPtr lpBaseAddress, + byte[] lpBuffer, + int dwSize, + out IntPtr lpNumberOfBytesRead); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode. + /// Controls whether the system will handle the specified types of serious errors or whether the process will handle + /// them. + /// </summary> + /// <param name="uMode"> + /// The process error mode. This parameter can be one or more of the ErrorMode enum values. + /// </param> + /// <returns> + /// The return value is the previous state of the error-mode bit flags. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true)] + public static extern ErrorModes SetErrorMode(ErrorModes uMode); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setunhandledexceptionfilter. + /// Enables an application to supersede the top-level exception handler of each thread of a process. After calling this + /// function, if an exception occurs in a process that is not being debugged, and the exception makes it to the unhandled + /// exception filter, that filter will call the exception filter function specified by the lpTopLevelExceptionFilter + /// parameter. + /// </summary> + /// <param name="lpTopLevelExceptionFilter"> + /// A pointer to a top-level exception filter function that will be called whenever the UnhandledExceptionFilter function + /// gets control, and the process is not being debugged. A value of NULL for this parameter specifies default handling + /// within UnhandledExceptionFilter. The filter function has syntax similar to that of UnhandledExceptionFilter: It + /// takes a single parameter of type LPEXCEPTION_POINTERS, has a WINAPI calling convention, and returns a value of type + /// LONG. The filter function should return one of the EXCEPTION_* enum values. + /// </param> + /// <returns> + /// The SetUnhandledExceptionFilter function returns the address of the previous exception filter established with the + /// function. A NULL return value means that there is no current top-level exception handler. + /// </returns> + [DllImport("kernel32.dll")] + public static extern IntPtr SetUnhandledExceptionFilter(IntPtr lpTopLevelExceptionFilter); + + /// <summary> + /// HeapCreate - Creates a private heap object that can be used by the calling process. + /// The function reserves space in the virtual address space of the process and allocates + /// physical storage for a specified initial portion of this block. + /// Ref: https://learn.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapcreate + /// </summary> + /// <param name="flOptions"> + /// The heap allocation options. + /// These options affect subsequent access to the new heap through calls to the heap functions. + /// </param> + /// <param name="dwInitialSize"> + /// The initial size of the heap, in bytes. + /// + /// This value determines the initial amount of memory that is committed for the heap. + /// The value is rounded up to a multiple of the system page size. The value must be smaller than dwMaximumSize. + /// + /// If this parameter is 0, the function commits one page. To determine the size of a page on the host computer, + /// use the GetSystemInfo function. + /// </param> + /// <param name="dwMaximumSize"> + /// The maximum size of the heap, in bytes. The HeapCreate function rounds dwMaximumSize up to a multiple of the + /// system page size and then reserves a block of that size in the process's virtual address space for the heap. + /// If allocation requests made by the HeapAlloc or HeapReAlloc functions exceed the size specified by + /// dwInitialSize, the system commits additional pages of memory for the heap, up to the heap's maximum size. + /// + /// If dwMaximumSize is not zero, the heap size is fixed and cannot grow beyond the maximum size. Also, the largest + /// memory block that can be allocated from the heap is slightly less than 512 KB for a 32-bit process and slightly + /// less than 1,024 KB for a 64-bit process. Requests to allocate larger blocks fail, even if the maximum size of + /// the heap is large enough to contain the block. + /// + /// If dwMaximumSize is 0, the heap can grow in size. The heap's size is limited only by the available memory. + /// Requests to allocate memory blocks larger than the limit for a fixed-size heap do not automatically fail; + /// instead, the system calls the VirtualAlloc function to obtain the memory that is needed for large blocks. + /// Applications that need to allocate large memory blocks should set dwMaximumSize to 0. + /// </param> + /// <returns> + /// If the function succeeds, the return value is a handle to the newly created heap. + /// + /// If the function fails, the return value is NULL. To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true)] + public static extern nint HeapCreate(HeapOptions flOptions, nuint dwInitialSize, nuint dwMaximumSize); + + /// <summary> + /// Allocates a block of memory from a heap. The allocated memory is not movable. + /// </summary> + /// <param name="hHeap"> + /// A handle to the heap from which the memory will be allocated. This handle is returned by the HeapCreate or + /// GetProcessHeap function. + /// </param> + /// <param name="dwFlags"> + /// The heap allocation options. Specifying any of these values will override the corresponding value specified when + /// the heap was created with HeapCreate. </param> + /// <param name="dwBytes"> + /// The number of bytes to be allocated. + /// + /// If the heap specified by the hHeap parameter is a "non-growable" heap, dwBytes must be less than 0x7FFF8. + /// You create a non-growable heap by calling the HeapCreate function with a nonzero value. + /// </param> + /// <returns> + /// If the function succeeds, the return value is a pointer to the allocated memory block. + /// + /// If the function fails and you have not specified HEAP_GENERATE_EXCEPTIONS, the return value is NULL. + /// + /// If the function fails and you have specified HEAP_GENERATE_EXCEPTIONS, the function may generate either of the + /// exceptions listed in the following table. The particular exception depends upon the nature of the heap + /// corruption. For more information, see GetExceptionCode. + /// </returns> + [DllImport("kernel32.dll", SetLastError=false)] + public static extern nint HeapAlloc(nint hHeap, HeapOptions dwFlags, nuint dwBytes); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc. + /// Reserves, commits, or changes the state of a region of pages in the virtual address space of the calling process. + /// Memory allocated by this function is automatically initialized to zero. To allocate memory in the address space + /// of another process, use the VirtualAllocEx function. + /// </summary> + /// <param name="lpAddress"> + /// The starting address of the region to allocate. If the memory is being reserved, the specified address is rounded + /// down to the nearest multiple of the allocation granularity. If the memory is already reserved and is being committed, + /// the address is rounded down to the next page boundary. To determine the size of a page and the allocation granularity + /// on the host computer, use the GetSystemInfo function. If this parameter is NULL, the system determines where to + /// allocate the region. If this address is within an enclave that you have not initialized by calling InitializeEnclave, + /// VirtualAlloc allocates a page of zeros for the enclave at that address. The page must be previously uncommitted, + /// and will not be measured with the EEXTEND instruction of the Intel Software Guard Extensions programming model. + /// If the address in within an enclave that you initialized, then the allocation operation fails with the + /// ERROR_INVALID_ADDRESS error. + /// </param> + /// <param name="dwSize"> + /// The size of the region, in bytes. If the lpAddress parameter is NULL, this value is rounded up to the next page + /// boundary. Otherwise, the allocated pages include all pages containing one or more bytes in the range from lpAddress + /// to lpAddress+dwSize. This means that a 2-byte range straddling a page boundary causes both pages to be included + /// in the allocated region. + /// </param> + /// <param name="flAllocationType"> + /// The type of memory allocation. This parameter must contain one of the MEM_* enum values. + /// </param> + /// <param name="flProtect"> + /// The memory protection for the region of pages to be allocated. If the pages are being committed, you can specify + /// any one of the memory protection constants. + /// </param> + /// <returns> + /// If the function succeeds, the return value is the base address of the allocated region of pages. If the function + /// fails, the return value is NULL.To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] + public static extern IntPtr VirtualAlloc( + IntPtr lpAddress, + UIntPtr dwSize, + AllocationType flAllocationType, + MemoryProtection flProtect); + + /// <inheritdoc cref="VirtualAlloc(IntPtr, UIntPtr, AllocationType, MemoryProtection)"/> + [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] + public static extern IntPtr VirtualAlloc( + IntPtr lpAddress, + UIntPtr dwSize, + AllocationType flAllocationType, + Memory.MemoryProtection flProtect); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualfree. + /// Releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling + /// process. + /// process. + /// </summary> + /// <param name="lpAddress"> + /// A pointer to the base address of the region of pages to be freed. If the dwFreeType parameter is MEM_RELEASE, this + /// parameter must be the base address returned by the VirtualAlloc function when the region of pages is reserved. + /// </param> + /// <param name="dwSize"> + /// The size of the region of memory to be freed, in bytes. If the dwFreeType parameter is MEM_RELEASE, this parameter + /// must be 0 (zero). The function frees the entire region that is reserved in the initial allocation call to VirtualAlloc. + /// If the dwFreeType parameter is MEM_DECOMMIT, the function decommits all memory pages that contain one or more bytes + /// in the range from the lpAddress parameter to (lpAddress+dwSize). This means, for example, that a 2-byte region of + /// memory that straddles a page boundary causes both pages to be decommitted.If lpAddress is the base address returned + /// by VirtualAlloc and dwSize is 0 (zero), the function decommits the entire region that is allocated by VirtualAlloc. + /// After that, the entire region is in the reserved state. + /// </param> + /// <param name="dwFreeType"> + /// The type of free operation. This parameter must be one of the MEM_* enum values. + /// </param> + /// <returns> + /// If the function succeeds, the return value is a nonzero value. If the function fails, the return value is 0 (zero). + /// To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] + public static extern bool VirtualFree( + IntPtr lpAddress, + UIntPtr dwSize, + AllocationType dwFreeType); + + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualprotect. + /// Changes the protection on a region of committed pages in the virtual address space of the calling process. + /// </summary> + /// <param name="lpAddress"> + /// The address of the starting page of the region of pages whose access protection attributes are to be changed. All + /// pages in the specified region must be within the same reserved region allocated when calling the VirtualAlloc or + /// VirtualAllocEx function using MEM_RESERVE. The pages cannot span adjacent reserved regions that were allocated by + /// separate calls to VirtualAlloc or VirtualAllocEx using MEM_RESERVE. + /// </param> + /// <param name="dwSize"> + /// The size of the region whose access protection attributes are to be changed, in bytes. The region of affected pages + /// includes all pages containing one or more bytes in the range from the lpAddress parameter to (lpAddress+dwSize). + /// This means that a 2-byte range straddling a page boundary causes the protection attributes of both pages to be changed. + /// </param> + /// <param name="flNewProtection"> + /// The memory protection option. This parameter can be one of the memory protection constants. For mapped views, this + /// value must be compatible with the access protection specified when the view was mapped (see MapViewOfFile, + /// MapViewOfFileEx, and MapViewOfFileExNuma). + /// </param> + /// <param name="lpflOldProtect"> + /// A pointer to a variable that receives the previous access protection value of the first page in the specified region + /// of pages. If this parameter is NULL or does not point to a valid variable, the function fails. + /// </param> + /// <returns> + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. + /// To get extended error information, call GetLastError. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] + public static extern bool VirtualProtect( + IntPtr lpAddress, + UIntPtr dwSize, + MemoryProtection flNewProtection, + out MemoryProtection lpflOldProtect); + + /// <inheritdoc cref="VirtualAlloc(IntPtr, UIntPtr, AllocationType, MemoryProtection)"/> + [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] + public static extern bool VirtualProtect( + IntPtr lpAddress, + UIntPtr dwSize, + Memory.MemoryProtection flNewProtection, + out Memory.MemoryProtection lpflOldProtect); + + /// <summary> + /// Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or + /// the operation fails. + /// </summary> + /// <param name="hProcess"> + /// A handle to the process memory to be modified. The handle must have PROCESS_VM_WRITE and PROCESS_VM_OPERATION access + /// to the process. + /// </param> + /// <param name="lpBaseAddress"> + /// A pointer to the base address in the specified process to which data is written. Before data transfer occurs, the + /// system verifies that all data in the base address and memory of the specified size is accessible for write access, + /// and if it is not accessible, the function fails. + /// </param> + /// <param name="lpBuffer"> + /// A pointer to the buffer that contains data to be written in the address space of the specified process. + /// </param> + /// <param name="dwSize"> + /// The number of bytes to be written to the specified process. + /// </param> + /// <param name="lpNumberOfBytesWritten"> + /// A pointer to a variable that receives the number of bytes transferred into the specified process. This parameter + /// is optional. If lpNumberOfBytesWritten is NULL, the parameter is ignored. + /// </param> + /// <returns> + /// If the function succeeds, the return value is nonzero. If the function fails, the return value is 0 (zero). To get + /// extended error information, call GetLastError.The function fails if the requested write operation crosses into an + /// area of the process that is inaccessible. + /// </returns> + [DllImport("kernel32.dll", SetLastError = true)] + public static extern bool WriteProcessMemory( + IntPtr hProcess, + IntPtr lpBaseAddress, + byte[] lpBuffer, + int dwSize, + out IntPtr lpNumberOfBytesWritten); + + /// <summary> + /// Get a handle to the current process. + /// </summary> + /// <returns>Handle to the process.</returns> + [DllImport("kernel32.dll")] + public static extern IntPtr GetCurrentProcess(); + + /// <summary> + /// Get the current process ID. + /// </summary> + /// <returns>The process ID.</returns> + [DllImport("kernel32.dll")] + public static extern uint GetCurrentProcessId(); + + /// <summary> + /// Get the current thread ID. + /// </summary> + /// <returns>The thread ID.</returns> + [DllImport("kernel32.dll")] + public static extern uint GetCurrentThreadId(); +} + +/// <summary> +/// Native dbghelp functions. +/// </summary> +[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1201:Elements should appear in the correct order", Justification = "Native funcs")] +internal static partial class NativeFunctions +{ + /// <summary> + /// Type of minidump to create. + /// </summary> + public enum MiniDumpType : int + { + /// <summary> + /// Normal minidump. + /// </summary> + MiniDumpNormal, + + /// <summary> + /// Minidump with data segments. + /// </summary> + MiniDumpWithDataSegs, + + /// <summary> + /// Minidump with full memory. + /// </summary> + MiniDumpWithFullMemory, + } + + /// <summary> + /// Initializes the symbol handler for a process. + /// </summary> + /// <param name="hProcess"> + /// A handle that identifies the caller. + /// This value should be unique and nonzero, but need not be a process handle. + /// However, if you do use a process handle, be sure to use the correct handle. + /// If the application is a debugger, use the process handle for the process being debugged. + /// Do not use the handle returned by GetCurrentProcess when debugging another process, because calling functions like SymLoadModuleEx can have unexpected results. + /// This parameter cannot be NULL.</param> + /// <param name="userSearchPath"> + /// The path, or series of paths separated by a semicolon (;), that is used to search for symbol files. + /// If this parameter is NULL, the library attempts to form a symbol path from the following sources: + /// - The current working directory of the application + /// - The _NT_SYMBOL_PATH environment variable + /// - The _NT_ALTERNATE_SYMBOL_PATH environment variable + /// Note that the search path can also be set using the SymSetSearchPath function. + /// </param> + /// <param name="fInvadeProcess"> + /// If this value is <see langword="true"/>, enumerates the loaded modules for the process and effectively calls the SymLoadModule64 function for each module. + /// </param> + /// <returns>Whether or not the function succeeded.</returns> + [DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)] + public static extern bool SymInitialize(IntPtr hProcess, string userSearchPath, bool fInvadeProcess); + + /// <summary> + /// Deallocates all resources associated with the process handle. + /// </summary> + /// <param name="hProcess">A handle to the process that was originally passed to the <seealso cref="SymInitialize"/> function.</param> + /// <returns>Whether or not the function succeeded.</returns> + [DllImport("dbghelp.dll", SetLastError = true, CharSet = CharSet.Auto)] + public static extern bool SymCleanup(IntPtr hProcess); + + /// <summary> + /// Creates a minidump. + /// </summary> + /// <param name="hProcess">Target process handle.</param> + /// <param name="processId">Target process ID.</param> + /// <param name="hFile">Output file handle.</param> + /// <param name="dumpType">Type of dump to take.</param> + /// <param name="exceptionInfo">Exception information.</param> + /// <param name="userStreamParam">User information.</param> + /// <param name="callback">Callback.</param> + /// <returns>Whether or not the minidump succeeded.</returns> + [DllImport("dbghelp.dll")] + public static extern bool MiniDumpWriteDump(IntPtr hProcess, uint processId, IntPtr hFile, int dumpType, ref MinidumpExceptionInformation exceptionInfo, IntPtr userStreamParam, IntPtr callback); + + /// <summary> + /// Structure describing minidump exception information. + /// </summary> + [StructLayout(LayoutKind.Sequential, Pack = 4)] + public struct MinidumpExceptionInformation + { + /// <summary> + /// ID of the thread that caused the exception. + /// </summary> + public uint ThreadId; + + /// <summary> + /// Pointer to the exception record. + /// </summary> + public IntPtr ExceptionPointers; + + /// <summary> + /// ClientPointers field. + /// </summary> + public int ClientPointers; + } + + /// <summary> + /// Finds window according to conditions. + /// </summary> + /// <param name="parentHandle">Handle to parent window.</param> + /// <param name="childAfter">Window to search after.</param> + /// <param name="className">Name of class.</param> + /// <param name="windowTitle">Name of window.</param> + /// <returns>Found window, or null.</returns> + [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] + public static extern IntPtr FindWindowEx( + IntPtr parentHandle, + IntPtr childAfter, + string className, + IntPtr windowTitle); +} + +/// <summary> +/// Native ws2_32 functions. +/// </summary> +internal static partial class NativeFunctions +{ + /// <summary> + /// See https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt. + /// The setsockopt function sets a socket option. + /// </summary> + /// <param name="socket"> + /// A descriptor that identifies a socket. + /// </param> + /// <param name="level"> + /// The level at which the option is defined (for example, SOL_SOCKET). + /// </param> + /// <param name="optName"> + /// The socket option for which the value is to be set (for example, SO_BROADCAST). The optname parameter must be a + /// socket option defined within the specified level, or behavior is undefined. + /// </param> + /// <param name="optVal"> + /// A pointer to the buffer in which the value for the requested option is specified. + /// </param> + /// <param name="optLen"> + /// The size, in bytes, of the buffer pointed to by the optval parameter. + /// </param> + /// <returns> + /// If no error occurs, setsockopt returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error + /// code can be retrieved by calling WSAGetLastError. + /// </returns> + [DllImport("ws2_32.dll", CallingConvention = CallingConvention.Winapi, EntryPoint = "setsockopt")] + public static extern int SetSockOpt(IntPtr socket, SocketOptionLevel level, SocketOptionName optName, ref IntPtr optVal, int optLen); +} + +/// <summary> +/// Native dwmapi functions. +/// </summary> +internal static partial class NativeFunctions +{ + /// <summary> + /// Attributes for use with DwmSetWindowAttribute. + /// </summary> + public enum DWMWINDOWATTRIBUTE : int + { + /// <summary> + /// Allows the window frame for this window to be drawn in dark mode colors when the dark mode system setting is enabled. + /// </summary> + DWMWA_USE_IMMERSIVE_DARK_MODE = 20, + } + + /// <summary> + /// Sets the value of Desktop Window Manager (DWM) non-client rendering attributes for a window. + /// </summary> + /// <param name="hwnd">The handle to the window for which the attribute value is to be set.</param> + /// <param name="attr">The attribute to be set.</param> + /// <param name="attrValue">The value of the attribute.</param> + /// <param name="attrSize">The size of the attribute.</param> + /// <returns>HRESULT.</returns> + [DllImport("dwmapi.dll", PreserveSig = true)] + public static extern int DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE attr, ref int attrValue, int attrSize); +} diff --git a/Dalamud/NativeMethods.json b/Dalamud/NativeMethods.json deleted file mode 100644 index 46fd3504f..000000000 --- a/Dalamud/NativeMethods.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "https://aka.ms/CsWin32.schema.json", - "useSafeHandles": false, - "allowMarshaling": false -} diff --git a/Dalamud/NativeMethods.txt b/Dalamud/NativeMethods.txt index ee888a98b..d9d05e472 100644 --- a/Dalamud/NativeMethods.txt +++ b/Dalamud/NativeMethods.txt @@ -8,17 +8,10 @@ SetWindowPos SetForegroundWindow SetFocus SetActiveWindow -GetKeyState HWND_TOPMOST HWND_NOTOPMOST SET_WINDOW_POS_FLAGS -SetEvent -CreateMutex - -SymInitialize -SymCleanup - OpenClipboard SetClipboardData CloseClipboard @@ -28,35 +21,3 @@ GlobalAlloc GlobalLock GlobalUnlock GLOBAL_ALLOC_FLAGS - -VirtualAlloc -VirtualProtect -VirtualFree -VirtualQuery - -SetUnhandledExceptionFilter - -ReadProcessMemory -WriteProcessMemory - -FlashWindowEx - -GetProcAddress -GetModuleHandle -GetForegroundWindow -GetCurrentProcess -GetWindowThreadProcessId - -MessageBoxW - -SystemParametersInfo - -SystemParametersInfo - -DwmSetWindowAttribute - -setsockopt - -RegisterDragDrop -RevokeDragDrop -DragQueryFileW diff --git a/Dalamud/Networking/Http/HappyEyeballsCallback.cs b/Dalamud/Networking/Http/HappyEyeballsCallback.cs index 59bdff630..4e3ee61f6 100644 --- a/Dalamud/Networking/Http/HappyEyeballsCallback.cs +++ b/Dalamud/Networking/Http/HappyEyeballsCallback.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; @@ -20,7 +20,7 @@ namespace Dalamud.Networking.Http; /// </summary> public class HappyEyeballsCallback : IDisposable { - private static readonly ModuleLog Log = ModuleLog.Create<HappyEyeballsCallback>(); + private static readonly ModuleLog Log = new("HTTP"); /* * ToDo: Eventually add in some kind of state management to cache DNS and IP Family. diff --git a/Dalamud/Networking/Http/HappyHttpClient.cs b/Dalamud/Networking/Http/HappyHttpClient.cs index c6a476fff..aeed98695 100644 --- a/Dalamud/Networking/Http/HappyHttpClient.cs +++ b/Dalamud/Networking/Http/HappyHttpClient.cs @@ -36,7 +36,7 @@ internal class HappyHttpClient : IInternalDisposableService { UserAgent = { - new ProductInfoHeaderValue("Dalamud", Versioning.GetAssemblyVersion()), + new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion), }, }, }; diff --git a/Dalamud/Plugin/ActivePluginsChangedEventArgs.cs b/Dalamud/Plugin/ActivePluginsChangedEventArgs.cs deleted file mode 100644 index 7a3991dcd..000000000 --- a/Dalamud/Plugin/ActivePluginsChangedEventArgs.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Collections.Generic; - -namespace Dalamud.Plugin; - -/// <inheritdoc cref="IActivePluginsChangedEventArgs" /> -public class ActivePluginsChangedEventArgs : EventArgs, IActivePluginsChangedEventArgs -{ - /// <summary> - /// Initializes a new instance of the <see cref="ActivePluginsChangedEventArgs"/> class - /// with the specified parameters. - /// </summary> - /// <param name="kind">The kind of change that triggered the event.</param> - /// <param name="affectedInternalNames">The internal names of the plugins affected by the change.</param> - internal ActivePluginsChangedEventArgs(PluginListInvalidationKind kind, IEnumerable<string> affectedInternalNames) - { - this.Kind = kind; - this.AffectedInternalNames = affectedInternalNames; - } - - /// <inheritdoc/> - public PluginListInvalidationKind Kind { get; } - - /// <inheritdoc/> - public IEnumerable<string> AffectedInternalNames { get; } -} diff --git a/Dalamud/Plugin/DalamudPluginInterface.cs b/Dalamud/Plugin/DalamudPluginInterface.cs index 48f91b250..d5cf360af 100644 --- a/Dalamud/Plugin/DalamudPluginInterface.cs +++ b/Dalamud/Plugin/DalamudPluginInterface.cs @@ -5,7 +5,6 @@ using System.Globalization; using System.IO; using System.Linq; using System.Reflection; -using System.Runtime.Loader; using System.Threading.Tasks; using Dalamud.Configuration; @@ -14,17 +13,19 @@ using Dalamud.Data; using Dalamud.Game.Gui; using Dalamud.Game.Text; using Dalamud.Game.Text.Sanitizer; +using Dalamud.Game.Text.SeStringHandling; +using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Interface; using Dalamud.Interface.Internal; -using Dalamud.IoC.Internal; +using Dalamud.Interface.Internal.Windows.PluginInstaller; +using Dalamud.Interface.Internal.Windows.Settings; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.AutoUpdate; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Internal.Types.Manifest; using Dalamud.Plugin.Ipc; +using Dalamud.Plugin.Ipc.Exceptions; using Dalamud.Plugin.Ipc.Internal; -using Dalamud.Plugin.VersionInfo; -using Dalamud.Utility; using Serilog; @@ -83,73 +84,126 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa configuration.DalamudConfigurationSaved += this.OnDalamudConfigurationSaved; } - /// <inheritdoc/> + /// <summary> + /// Event that gets fired when loc is changed + /// </summary> public event IDalamudPluginInterface.LanguageChangedDelegate? LanguageChanged; - /// <inheritdoc/> + /// <summary> + /// Event that is fired when the active list of plugins is changed. + /// </summary> public event IDalamudPluginInterface.ActivePluginsChangedDelegate? ActivePluginsChanged; - /// <inheritdoc/> + /// <summary> + /// Gets the reason this plugin was loaded. + /// </summary> public PluginLoadReason Reason { get; } - /// <inheritdoc/> - public bool IsAutoUpdateComplete => Service<AutoUpdateManager>.GetNullable()?.IsAutoUpdateComplete ?? false; + /// <summary> + /// Gets a value indicating whether or not auto-updates have already completed this session. + /// </summary> + public bool IsAutoUpdateComplete => Service<AutoUpdateManager>.Get().IsAutoUpdateComplete; - /// <inheritdoc/> + /// <summary> + /// Gets the repository from which this plugin was installed. + /// + /// If a plugin was installed from the official/main repository, this will return the value of + /// <see cref="SpecialPluginSource.MainRepo"/>. Developer plugins will return the value of + /// <see cref="SpecialPluginSource.DevPlugin"/>. + /// </summary> public string SourceRepository { get; } - /// <inheritdoc/> + /// <summary> + /// Gets the current internal plugin name. + /// </summary> public string InternalName => this.plugin.InternalName; - /// <inheritdoc/> + /// <summary> + /// Gets the plugin's manifest. + /// </summary> public IPluginManifest Manifest => this.plugin.Manifest; - /// <inheritdoc/> + /// <summary> + /// Gets a value indicating whether this is a dev plugin. + /// </summary> public bool IsDev => this.plugin.IsDev; - /// <inheritdoc/> + /// <summary> + /// Gets a value indicating whether this is a testing release of a plugin. + /// </summary> + /// <remarks> + /// Dev plugins have undefined behavior for this value, but can be expected to return <c>false</c>. + /// </remarks> public bool IsTesting { get; } - /// <inheritdoc/> + /// <summary> + /// Gets the time that this plugin was loaded. + /// </summary> public DateTime LoadTime { get; } - /// <inheritdoc/> + /// <summary> + /// Gets the UTC time that this plugin was loaded. + /// </summary> public DateTime LoadTimeUTC { get; } - /// <inheritdoc/> + /// <summary> + /// Gets the timespan delta from when this plugin was loaded. + /// </summary> public TimeSpan LoadTimeDelta => DateTime.Now - this.LoadTime; - /// <inheritdoc/> + /// <summary> + /// Gets the directory Dalamud assets are stored in. + /// </summary> public DirectoryInfo DalamudAssetDirectory => Service<Dalamud>.Get().AssetDirectory; - /// <inheritdoc/> + /// <summary> + /// Gets the location of your plugin assembly. + /// </summary> public FileInfo AssemblyLocation => this.plugin.DllFile; - /// <inheritdoc/> + /// <summary> + /// Gets the directory your plugin configurations are stored in. + /// </summary> public DirectoryInfo ConfigDirectory => new(this.GetPluginConfigDirectory()); - /// <inheritdoc/> + /// <summary> + /// Gets the config file of your plugin. + /// </summary> public FileInfo ConfigFile => this.configs.GetConfigFile(this.plugin.InternalName); - /// <inheritdoc/> + /// <summary> + /// Gets the <see cref="UiBuilder"/> instance which allows you to draw UI into the game via ImGui draw calls. + /// </summary> public IUiBuilder UiBuilder { get; private set; } - /// <inheritdoc/> + /// <summary> + /// Gets a value indicating whether Dalamud is running in Debug mode or the /xldev menu is open. This can occur on release builds. + /// </summary> public bool IsDevMenuOpen => Service<DalamudInterface>.GetNullable() is { IsDevMenuOpen: true }; // Can be null during boot - /// <inheritdoc/> + /// <summary> + /// Gets a value indicating whether a debugger is attached. + /// </summary> public bool IsDebugging => Debugger.IsAttached; - /// <inheritdoc/> + /// <summary> + /// Gets the current UI language in two-letter iso format. + /// </summary> public string UiLanguage { get; private set; } - /// <inheritdoc/> + /// <summary> + /// Gets serializer class with functions to remove special characters from strings. + /// </summary> public ISanitizer Sanitizer { get; } - /// <inheritdoc/> + /// <summary> + /// Gets the chat type used by default for plugin messages. + /// </summary> public XivChatType GeneralChatType { get; private set; } - /// <inheritdoc/> + /// <summary> + /// Gets a list of installed plugins along with their current state. + /// </summary> public IEnumerable<IExposedPlugin> InstalledPlugins => Service<PluginManager>.Get().InstalledPlugins.Select(p => new ExposedPlugin(p)); @@ -158,7 +212,12 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa /// </summary> internal UiBuilder LocalUiBuilder => this.uiBuilder; - /// <inheritdoc/> + /// <summary> + /// Opens the <see cref="PluginInstallerWindow"/>, with an optional search term. + /// </summary> + /// <param name="openTo">The page to open the installer to. Defaults to the "All Plugins" page.</param> + /// <param name="searchText">An optional search text to input in the search box.</param> + /// <returns>Returns false if the DalamudInterface was null.</returns> public bool OpenPluginInstallerTo(PluginInstallerOpenKind openTo = PluginInstallerOpenKind.AllPlugins, string? searchText = null) { var dalamudInterface = Service<DalamudInterface>.GetNullable(); // Can be null during boot @@ -173,7 +232,12 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa return true; } - /// <inheritdoc/> + /// <summary> + /// Opens the <see cref="SettingsWindow"/>, with an optional search term. + /// </summary> + /// <param name="openTo">The tab to open the settings to. Defaults to the "General" tab.</param> + /// <param name="searchText">An optional search text to input in the search box.</param> + /// <returns>Returns false if the DalamudInterface was null.</returns> public bool OpenDalamudSettingsTo(SettingsOpenKind openTo = SettingsOpenKind.General, string? searchText = null) { var dalamudInterface = Service<DalamudInterface>.GetNullable(); // Can be null during boot @@ -188,7 +252,10 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa return true; } - /// <inheritdoc/> + /// <summary> + /// Opens the dev menu bar. + /// </summary> + /// <returns>Returns false if the DalamudInterface was null.</returns> public bool OpenDeveloperMenu() { var dalamudInterface = Service<DalamudInterface>.GetNullable(); // Can be null during boot @@ -201,123 +268,115 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa return true; } - /// <inheritdoc/> - public IExposedPlugin? GetPlugin(Assembly assembly) - => AssemblyLoadContext.GetLoadContext(assembly) switch - { - null => null, - var context => this.GetPlugin(context), - }; - - /// <inheritdoc/> - public IExposedPlugin? GetPlugin(AssemblyLoadContext context) - => Service<PluginManager>.Get().InstalledPlugins.FirstOrDefault(p => p.LoadsIn(context)) switch - { - null => null, - var p => new ExposedPlugin(p), - }; - - /// <inheritdoc/> - public IDalamudVersionInfo GetDalamudVersion() - { - return new DalamudVersionInfo(Versioning.GetAssemblyVersionParsed(), Versioning.GetActiveTrack(), Versioning.GetGitHash(), Versioning.GetGitHashClientStructs(), Versioning.GetScmVersion()); - } - #region IPC - /// <inheritdoc/> + /// <inheritdoc cref="DataShare.GetOrCreateData{T}"/> public T GetOrCreateData<T>(string tag, Func<T> dataGenerator) where T : class - => Service<DataShare>.Get().GetOrCreateData(tag, new DataCachePluginId(this.plugin.InternalName, this.plugin.EffectiveWorkingPluginId), dataGenerator); + => Service<DataShare>.Get().GetOrCreateData(tag, dataGenerator); - /// <inheritdoc/> + /// <inheritdoc cref="DataShare.RelinquishData"/> public void RelinquishData(string tag) - => Service<DataShare>.Get().RelinquishData(tag, new DataCachePluginId(this.plugin.InternalName, this.plugin.EffectiveWorkingPluginId)); + => Service<DataShare>.Get().RelinquishData(tag); - /// <inheritdoc/> + /// <inheritdoc cref="DataShare.TryGetData{T}"/> public bool TryGetData<T>(string tag, [NotNullWhen(true)] out T? data) where T : class - => Service<DataShare>.Get().TryGetData(tag, new DataCachePluginId(this.plugin.InternalName, this.plugin.EffectiveWorkingPluginId), out data); + => Service<DataShare>.Get().TryGetData(tag, out data); - /// <inheritdoc/> + /// <inheritdoc cref="DataShare.GetData{T}"/> public T? GetData<T>(string tag) where T : class - => Service<DataShare>.Get().GetData<T>(tag, new DataCachePluginId(this.plugin.InternalName, this.plugin.EffectiveWorkingPluginId)); + => Service<DataShare>.Get().GetData<T>(tag); - /// <inheritdoc/> + /// <summary> + /// Gets an IPC provider. + /// </summary> + /// <typeparam name="TRet">The return type for funcs. Use object if this is unused.</typeparam> + /// <param name="name">The name of the IPC registration.</param> + /// <returns>An IPC provider.</returns> + /// <exception cref="IpcTypeMismatchError">This is thrown when the requested types do not match the previously registered types are different.</exception> public ICallGateProvider<TRet> GetIpcProvider<TRet>(string name) - => new CallGatePubSub<TRet>(name, this.plugin); + => new CallGatePubSub<TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, TRet> GetIpcProvider<T1, TRet>(string name) - => new CallGatePubSub<T1, TRet>(name, this.plugin); + => new CallGatePubSub<T1, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, T2, TRet> GetIpcProvider<T1, T2, TRet>(string name) - => new CallGatePubSub<T1, T2, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, T2, T3, TRet> GetIpcProvider<T1, T2, T3, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, T2, T3, T4, TRet> GetIpcProvider<T1, T2, T3, T4, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, T2, T3, T4, T5, TRet> GetIpcProvider<T1, T2, T3, T4, T5, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, T2, T3, T4, T5, T6, TRet> GetIpcProvider<T1, T2, T3, T4, T5, T6, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, T6, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, T6, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, T2, T3, T4, T5, T6, T7, TRet> GetIpcProvider<T1, T2, T3, T4, T5, T6, T7, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateProvider{TRet}"/> public ICallGateProvider<T1, T2, T3, T4, T5, T6, T7, T8, TRet> GetIpcProvider<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(name); - /// <inheritdoc/> + /// <summary> + /// Gets an IPC subscriber. + /// </summary> + /// <typeparam name="TRet">The return type for funcs. Use object if this is unused.</typeparam> + /// <param name="name">The name of the IPC registration.</param> + /// <returns>An IPC subscriber.</returns> public ICallGateSubscriber<TRet> GetIpcSubscriber<TRet>(string name) - => new CallGatePubSub<TRet>(name, this.plugin); + => new CallGatePubSub<TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, TRet> GetIpcSubscriber<T1, TRet>(string name) - => new CallGatePubSub<T1, TRet>(name, this.plugin); + => new CallGatePubSub<T1, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, T2, TRet> GetIpcSubscriber<T1, T2, TRet>(string name) - => new CallGatePubSub<T1, T2, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, T2, T3, TRet> GetIpcSubscriber<T1, T2, T3, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, T2, T3, T4, TRet> GetIpcSubscriber<T1, T2, T3, T4, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, T2, T3, T4, T5, TRet> GetIpcSubscriber<T1, T2, T3, T4, T5, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, T2, T3, T4, T5, T6, TRet> GetIpcSubscriber<T1, T2, T3, T4, T5, T6, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, T6, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, T6, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, T2, T3, T4, T5, T6, T7, TRet> GetIpcSubscriber<T1, T2, T3, T4, T5, T6, T7, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, TRet>(name); - /// <inheritdoc/> + /// <inheritdoc cref="ICallGateSubscriber{TRet}"/> public ICallGateSubscriber<T1, T2, T3, T4, T5, T6, T7, T8, TRet> GetIpcSubscriber<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(string name) - => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(name, this.plugin); + => new CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, T8, TRet>(name); #endregion #region Configuration - /// <inheritdoc/> + /// <summary> + /// Save a plugin configuration(inheriting IPluginConfiguration). + /// </summary> + /// <param name="currentConfig">The current configuration.</param> public void SavePluginConfig(IPluginConfiguration? currentConfig) { if (currentConfig == null) @@ -326,7 +385,10 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa this.configs.Save(currentConfig, this.plugin.InternalName, this.plugin.EffectiveWorkingPluginId); } - /// <inheritdoc/> + /// <summary> + /// Get a previously saved plugin configuration or null if none was saved before. + /// </summary> + /// <returns>A previously saved config or null if none was saved before.</returns> public IPluginConfiguration? GetPluginConfig() { // This is done to support json deserialization of plugin configurations @@ -342,7 +404,7 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa { var mi = this.configs.GetType().GetMethod("LoadForType"); var fn = mi.MakeGenericMethod(type); - return (IPluginConfiguration)fn.Invoke(this.configs, [this.plugin.InternalName]); + return (IPluginConfiguration)fn.Invoke(this.configs, new object[] { this.plugin.InternalName }); } } @@ -350,22 +412,55 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa return this.configs.Load(this.plugin.InternalName, this.plugin.EffectiveWorkingPluginId); } - /// <inheritdoc/> + /// <summary> + /// Get the config directory. + /// </summary> + /// <returns>directory with path of AppData/XIVLauncher/pluginConfig/PluginInternalName.</returns> public string GetPluginConfigDirectory() => this.configs.GetDirectory(this.plugin.InternalName); - /// <inheritdoc/> + /// <summary> + /// Get the loc directory. + /// </summary> + /// <returns>directory with path of AppData/XIVLauncher/pluginConfig/PluginInternalName/loc.</returns> public string GetPluginLocDirectory() => this.configs.GetDirectory(Path.Combine(this.plugin.InternalName, "loc")); #endregion - #region Dependency Injection + #region Chat Links - /// <inheritdoc/> - public object? GetService(Type serviceType) + // TODO API9: Move to chatgui, don't allow passing own commandId + + /// <summary> + /// Register a chat link handler. + /// </summary> + /// <param name="commandId">The ID of the command.</param> + /// <param name="commandAction">The action to be executed.</param> + /// <returns>Returns an SeString payload for the link.</returns> + public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action<uint, SeString> commandAction) { - return this.plugin.ServiceScope.GetService(serviceType); + return Service<ChatGui>.Get().AddChatLinkHandler(this.plugin.InternalName, commandId, commandAction); } + /// <summary> + /// Remove a chat link handler. + /// </summary> + /// <param name="commandId">The ID of the command.</param> + public void RemoveChatLinkHandler(uint commandId) + { + Service<ChatGui>.Get().RemoveChatLinkHandler(this.plugin.InternalName, commandId); + } + + /// <summary> + /// Removes all chat link handlers registered by the plugin. + /// </summary> + public void RemoveChatLinkHandler() + { + Service<ChatGui>.Get().RemoveChatLinkHandler(this.plugin.InternalName); + } + #endregion + + #region Dependency Injection + /// <inheritdoc/> public T? Create<T>(params object[] scopedObjects) where T : class { @@ -387,7 +482,7 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa /// <inheritdoc/> public async Task<T> CreateAsync<T>(params object[] scopedObjects) where T : class => - (T)await this.plugin.ServiceScope!.CreateAsync(typeof(T), ObjectInstanceVisibility.ExposedToPlugins, this.GetPublicIocScopes(scopedObjects)); + (T)await this.plugin.ServiceScope!.CreateAsync(typeof(T), this.GetPublicIocScopes(scopedObjects)); /// <inheritdoc/> public bool Inject(object instance, params object[] scopedObjects) @@ -414,7 +509,8 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa #endregion - /// <inheritdoc/> + /// <summary>Unregister the plugin and dispose all references.</summary> + /// <remarks>Dalamud internal use only.</remarks> public void Dispose() { Service<ChatGui>.Get().RemoveChatLinkHandler(this.plugin.InternalName); @@ -426,18 +522,22 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa /// <summary> /// Dispatch the active plugins changed event. /// </summary> - /// <param name="args">The event arguments containing information about the change.</param> - internal void NotifyActivePluginsChanged(IActivePluginsChangedEventArgs args) + /// <param name="kind">What action caused this event to be fired.</param> + /// <param name="affectedThisPlugin">If this plugin was affected by the change.</param> + internal void NotifyActivePluginsChanged(PluginListInvalidationKind kind, bool affectedThisPlugin) { - foreach (var action in Delegate.EnumerateInvocationList(this.ActivePluginsChanged)) + if (this.ActivePluginsChanged is { } callback) { - try + foreach (var action in callback.GetInvocationList().Cast<IDalamudPluginInterface.ActivePluginsChangedDelegate>()) { - action(args); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); + try + { + action(kind, affectedThisPlugin); + } + catch (Exception ex) + { + Log.Error(ex, "Exception during raise of {handler}", action.Method); + } } } } @@ -446,15 +546,18 @@ internal sealed class DalamudPluginInterface : IDalamudPluginInterface, IDisposa { this.UiLanguage = langCode; - foreach (var action in Delegate.EnumerateInvocationList(this.LanguageChanged)) + if (this.LanguageChanged is { } callback) { - try + foreach (var action in callback.GetInvocationList().Cast<IDalamudPluginInterface.LanguageChangedDelegate>()) { - action(langCode); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); + try + { + action(langCode); + } + catch (Exception ex) + { + Log.Error(ex, "Exception during raise of {handler}", action.Method); + } } } } diff --git a/Dalamud/Plugin/IActivePluginsChangedEventArgs.cs b/Dalamud/Plugin/IActivePluginsChangedEventArgs.cs deleted file mode 100644 index 17c4347c7..000000000 --- a/Dalamud/Plugin/IActivePluginsChangedEventArgs.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Collections.Generic; - -namespace Dalamud.Plugin; - -/// <summary> -/// Contains data about changes to the list of active plugins. -/// </summary> -public interface IActivePluginsChangedEventArgs -{ - /// <summary> - /// Gets the invalidation kind that caused this event to be fired. - /// </summary> - PluginListInvalidationKind Kind { get; } - - /// <summary> - /// Gets the InternalNames of affected plugins. - /// </summary> - IEnumerable<string> AffectedInternalNames { get; } -} diff --git a/Dalamud/Plugin/IDalamudPluginInterface.cs b/Dalamud/Plugin/IDalamudPluginInterface.cs index 92ecab006..100d4570e 100644 --- a/Dalamud/Plugin/IDalamudPluginInterface.cs +++ b/Dalamud/Plugin/IDalamudPluginInterface.cs @@ -1,13 +1,13 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; -using System.Reflection; -using System.Runtime.Loader; using System.Threading.Tasks; using Dalamud.Configuration; using Dalamud.Game.Text; using Dalamud.Game.Text.Sanitizer; +using Dalamud.Game.Text.SeStringHandling; +using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Interface; using Dalamud.Interface.Internal.Windows.PluginInstaller; using Dalamud.Interface.Internal.Windows.Settings; @@ -15,14 +15,13 @@ using Dalamud.Plugin.Internal.Types.Manifest; using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Ipc.Exceptions; using Dalamud.Plugin.Ipc.Internal; -using Dalamud.Plugin.VersionInfo; namespace Dalamud.Plugin; /// <summary> /// This interface acts as an interface to various objects needed to interact with Dalamud and the game. /// </summary> -public interface IDalamudPluginInterface : IServiceProvider +public interface IDalamudPluginInterface { /// <summary> /// Delegate for localization change with two-letter iso lang code. @@ -33,9 +32,10 @@ public interface IDalamudPluginInterface : IServiceProvider /// <summary> /// Delegate for events that listen to changes to the list of active plugins. /// </summary> - /// <param name="args">The event arguments containing information about the change.</param> - public delegate void ActivePluginsChangedDelegate(IActivePluginsChangedEventArgs args); - + /// <param name="kind">What action caused this event to be fired.</param> + /// <param name="affectedThisPlugin">If this plugin was affected by the change.</param> + public delegate void ActivePluginsChangedDelegate(PluginListInvalidationKind kind, bool affectedThisPlugin); + /// <summary> /// Event that gets fired when loc is changed /// </summary> @@ -52,7 +52,7 @@ public interface IDalamudPluginInterface : IServiceProvider PluginLoadReason Reason { get; } /// <summary> - /// Gets a value indicating whether auto-updates have already completed this session. + /// Gets a value indicating whether or not auto-updates have already completed this session. /// </summary> bool IsAutoUpdateComplete { get; } @@ -180,26 +180,6 @@ public interface IDalamudPluginInterface : IServiceProvider /// <returns>Returns false if the DalamudInterface was null.</returns> bool OpenDeveloperMenu(); - /// <summary> - /// Gets the plugin the given assembly is part of. - /// </summary> - /// <param name="assembly">The assembly to check.</param> - /// <returns>The plugin the given assembly is part of, or null if this is a shared assembly or if this information cannot be determined.</returns> - IExposedPlugin? GetPlugin(Assembly assembly); - - /// <summary> - /// Gets the plugin that loads in the given context. - /// </summary> - /// <param name="context">The context to check.</param> - /// <returns>The plugin that loads in the given context, or null if this isn't a plugin's context or if this information cannot be determined.</returns> - IExposedPlugin? GetPlugin(AssemblyLoadContext context); - - /// <summary> - /// Gets information about the version of Dalamud this plugin is loaded into. - /// </summary> - /// <returns>Class containing version information.</returns> - IDalamudVersionInfo GetDalamudVersion(); - /// <inheritdoc cref="DataShare.GetOrCreateData{T}"/> T GetOrCreateData<T>(string tag, Func<T> dataGenerator) where T : class; @@ -301,6 +281,25 @@ public interface IDalamudPluginInterface : IServiceProvider /// <returns>directory with path of AppData/XIVLauncher/pluginConfig/PluginInternalName/loc.</returns> string GetPluginLocDirectory(); + /// <summary> + /// Register a chat link handler. + /// </summary> + /// <param name="commandId">The ID of the command.</param> + /// <param name="commandAction">The action to be executed.</param> + /// <returns>Returns an SeString payload for the link.</returns> + DalamudLinkPayload AddChatLinkHandler(uint commandId, Action<uint, SeString> commandAction); + + /// <summary> + /// Remove a chat link handler. + /// </summary> + /// <param name="commandId">The ID of the command.</param> + void RemoveChatLinkHandler(uint commandId); + + /// <summary> + /// Removes all chat link handlers registered by the plugin. + /// </summary> + void RemoveChatLinkHandler(); + /// <summary> /// Create a new object of the provided type using its default constructor, then inject objects and properties. /// </summary> diff --git a/Dalamud/Plugin/InstalledPluginState.cs b/Dalamud/Plugin/InstalledPluginState.cs index 1c79e33f0..6700a1f8d 100644 --- a/Dalamud/Plugin/InstalledPluginState.cs +++ b/Dalamud/Plugin/InstalledPluginState.cs @@ -1,5 +1,4 @@ -using Dalamud.Plugin.Internal.Types; -using Dalamud.Plugin.Internal.Types.Manifest; +using Dalamud.Plugin.Internal.Types; namespace Dalamud.Plugin; @@ -23,47 +22,6 @@ public interface IExposedPlugin /// </summary> bool IsLoaded { get; } - /// <summary> - /// Gets a value indicating whether this plugin's API level is out of date. - /// </summary> - bool IsOutdated { get; } - - /// <summary> - /// Gets a value indicating whether the plugin is for testing use only. - /// </summary> - bool IsTesting { get; } - - /// <summary> - /// Gets a value indicating whether this plugin is orphaned(belongs to a repo) or not. - /// </summary> - bool IsOrphaned { get; } - - /// <summary> - /// Gets a value indicating whether this plugin is serviced(repo still exists, but plugin no longer does). - /// </summary> - bool IsDecommissioned { get; } - - /// <summary> - /// Gets a value indicating whether this plugin has been banned. - /// </summary> - bool IsBanned { get; } - - /// <summary> - /// Gets a value indicating whether this plugin is dev plugin. - /// </summary> - bool IsDev { get; } - - /// <summary> - /// Gets a value indicating whether this manifest is associated with a plugin that was installed from a third party - /// repo. - /// </summary> - bool IsThirdParty { get; } - - /// <summary> - /// Gets the plugin manifest. - /// </summary> - ILocalPluginManifest Manifest { get; } - /// <summary> /// Gets the version of the plugin. /// </summary> @@ -116,30 +74,6 @@ internal sealed class ExposedPlugin(LocalPlugin plugin) : IExposedPlugin /// <inheritdoc/> public bool HasConfigUi => plugin.DalamudInterface?.LocalUiBuilder.HasConfigUi ?? false; - /// <inheritdoc/> - public bool IsOutdated => plugin.IsOutdated; - - /// <inheritdoc/> - public bool IsTesting => plugin.IsTesting; - - /// <inheritdoc/> - public bool IsOrphaned => plugin.IsOrphaned; - - /// <inheritdoc/> - public bool IsDecommissioned => plugin.IsDecommissioned; - - /// <inheritdoc/> - public bool IsBanned => plugin.IsBanned; - - /// <inheritdoc/> - public bool IsDev => plugin.IsDev; - - /// <inheritdoc/> - public bool IsThirdParty => plugin.IsThirdParty; - - /// <inheritdoc/> - public ILocalPluginManifest Manifest => plugin.Manifest; - /// <inheritdoc/> public void OpenMainUi() { diff --git a/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs b/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs index 734bc5ef9..c25ec4ee4 100644 --- a/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs +++ b/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs @@ -4,16 +4,11 @@ using System.Threading.Tasks; using CheapLoc; -using Dalamud.Bindings.ImGui; using Dalamud.Configuration.Internal; using Dalamud.Console; using Dalamud.Game; using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.Gui; -using Dalamud.Game.Text; -using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Interface; using Dalamud.Interface.ImGuiNotification; using Dalamud.Interface.ImGuiNotification.EventArgs; @@ -25,6 +20,8 @@ using Dalamud.Logging.Internal; using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Services; +using ImGuiNET; + namespace Dalamud.Plugin.Internal.AutoUpdate; /// <summary> @@ -33,18 +30,18 @@ namespace Dalamud.Plugin.Internal.AutoUpdate; [ServiceManager.EarlyLoadedService] internal class AutoUpdateManager : IServiceType { - private static readonly ModuleLog Log = ModuleLog.Create<AutoUpdateManager>(); - + private static readonly ModuleLog Log = new("AUTOUPDATE"); + /// <summary> /// Time we should wait after login to update. /// </summary> private static readonly TimeSpan UpdateTimeAfterLogin = TimeSpan.FromSeconds(20); - + /// <summary> /// Time we should wait between scheduled update checks. /// </summary> private static readonly TimeSpan TimeBetweenUpdateChecks = TimeSpan.FromHours(2); - + /// <summary> /// Time we should wait between scheduled update checks if the user has dismissed the notification, /// instead of updating. We don't want to spam the user with notifications. @@ -59,30 +56,28 @@ internal class AutoUpdateManager : IServiceType [ServiceManager.ServiceDependency] private readonly PluginManager pluginManager = Service<PluginManager>.Get(); - + [ServiceManager.ServiceDependency] private readonly DalamudConfiguration config = Service<DalamudConfiguration>.Get(); - + [ServiceManager.ServiceDependency] private readonly NotificationManager notificationManager = Service<NotificationManager>.Get(); - + [ServiceManager.ServiceDependency] private readonly DalamudInterface dalamudInterface = Service<DalamudInterface>.Get(); - + private readonly IConsoleVariable<bool> isDryRun; - - private readonly Task<DalamudLinkPayload> openInstallerWindowLinkTask; - + private DateTime? loginTime; private DateTime? nextUpdateCheckTime; private DateTime? unblockedSince; - + private bool hasStartedInitialUpdateThisSession; private IActiveNotification? updateNotification; - + private Task? autoUpdateTask; - + /// <summary> /// Initializes a new instance of the <see cref="AutoUpdateManager"/> class. /// </summary> @@ -97,15 +92,7 @@ internal class AutoUpdateManager : IServiceType t.Result.Logout += (int type, int code) => this.OnLogout(); }); Service<Framework>.GetAsync().ContinueWith(t => { t.Result.Update += this.OnUpdate; }); - - this.openInstallerWindowLinkTask = - Service<ChatGui>.GetAsync().ContinueWith( - chatGuiTask => chatGuiTask.Result.AddChatLinkHandler( - (_, _) => - { - Service<DalamudInterface>.GetNullable()?.OpenPluginInstallerTo(PluginInstallerOpenKind.InstalledPlugins); - })); - + this.isDryRun = console.AddVariable("dalamud.autoupdate.dry_run", "Simulate updates instead", false); console.AddCommand("dalamud.autoupdate.trigger_login", "Trigger a login event", () => { @@ -119,36 +106,36 @@ internal class AutoUpdateManager : IServiceType return true; }); } - + private enum UpdateListingRestriction { Unrestricted, AllowNone, AllowMainRepo, } - + /// <summary> - /// Gets a value indicating whether auto-updates have already completed this session. + /// Gets a value indicating whether or not auto-updates have already completed this session. /// </summary> public bool IsAutoUpdateComplete { get; private set; } - + /// <summary> /// Gets the time of the next scheduled update check. /// </summary> public DateTime? NextUpdateCheckTime => this.nextUpdateCheckTime; - + /// <summary> /// Gets the time the auto-update was unblocked. /// </summary> public DateTime? UnblockedSince => this.unblockedSince; - + private static UpdateListingRestriction DecideUpdateListingRestriction(AutoUpdateBehavior behavior) { return behavior switch { // We don't generally allow any updates in this mode, but specific opt-ins. AutoUpdateBehavior.None => UpdateListingRestriction.AllowNone, - + // If we're only notifying, I guess it's fine to list all plugins. AutoUpdateBehavior.OnlyNotify => UpdateListingRestriction.Unrestricted, @@ -157,7 +144,7 @@ internal class AutoUpdateManager : IServiceType _ => throw new ArgumentOutOfRangeException(nameof(behavior), behavior, null), }; } - + private static void DrawOpenInstallerNotificationButton(bool primary, PluginInstallerOpenKind kind, IActiveNotification notification) { if (primary ? @@ -192,7 +179,7 @@ internal class AutoUpdateManager : IServiceType this.updateNotification = null; } } - + // If we're blocked, we don't do anything. if (!isUnblocked) return; @@ -212,16 +199,16 @@ internal class AutoUpdateManager : IServiceType if (!this.hasStartedInitialUpdateThisSession && DateTime.Now > this.loginTime.Value.Add(UpdateTimeAfterLogin)) { this.hasStartedInitialUpdateThisSession = true; - + var currentlyUpdatablePlugins = this.GetAvailablePluginUpdates(DecideUpdateListingRestriction(behavior)); if (currentlyUpdatablePlugins.Count == 0) { this.IsAutoUpdateComplete = true; this.nextUpdateCheckTime = DateTime.Now + TimeBetweenUpdateChecks; - + return; } - + // TODO: This is not 100% what we want... Plugins that are opted-in should be updated regardless of the behavior, // and we should show a notification for the others afterwards. if (behavior == AutoUpdateBehavior.OnlyNotify) @@ -254,7 +241,6 @@ internal class AutoUpdateManager : IServiceType Log.Error(t.Exception!, "Failed to reload plugin masters for auto-update"); } - Log.Verbose($"Available Updates: {string.Join(", ", this.pluginManager.UpdatablePlugins.Select(s => s.UpdateManifest.InternalName))}"); var updatable = this.GetAvailablePluginUpdates( DecideUpdateListingRestriction(behavior)); @@ -266,7 +252,7 @@ internal class AutoUpdateManager : IServiceType { this.nextUpdateCheckTime = DateTime.Now + TimeBetweenUpdateChecks; Log.Verbose( - "Auto update found nothing to do, next update at {Time}", + "Auto update found nothing to do, next update at {Time}", this.nextUpdateCheckTime); } }); @@ -277,13 +263,13 @@ internal class AutoUpdateManager : IServiceType { if (this.updateNotification != null) throw new InvalidOperationException("Already showing a notification"); - + this.updateNotification = this.notificationManager.AddNotification(notification); this.updateNotification.Dismiss += _ => { this.updateNotification = null; - + // Schedule the next update opportunistically for when this closes. this.nextUpdateCheckTime = DateTime.Now + TimeBetweenUpdateChecks; }; @@ -305,7 +291,7 @@ internal class AutoUpdateManager : IServiceType { Log.Warning("Auto-update task was canceled"); } - + this.autoUpdateTask = null; this.IsAutoUpdateComplete = true; }); @@ -335,20 +321,20 @@ internal class AutoUpdateManager : IServiceType notification.Content = Locs.NotificationContentUpdating(updateProgress.CurrentPluginManifest.Name); notification.Progress = (float)updateProgress.PluginsProcessed / updateProgress.TotalPlugins; }; - + var pluginStates = (await this.pluginManager.UpdatePluginsAsync(updatablePlugins, this.isDryRun.Value, true, progress)).ToList(); this.pluginManager.PrintUpdatedPlugins(pluginStates, Loc.Localize("DalamudPluginAutoUpdate", "The following plugins were auto-updated:")); notification.Progress = 1; notification.UserDismissable = true; notification.HardExpiry = DateTime.Now.AddSeconds(30); - + notification.DrawActions += _ => { ImGuiHelpers.ScaledDummy(2); DrawOpenInstallerNotificationButton(true, PluginInstallerOpenKind.InstalledPlugins, notification); }; - + // Update the notification to show the final state if (pluginStates.All(x => x.Status == PluginUpdateStatus.StatusKind.Success)) { @@ -356,7 +342,7 @@ internal class AutoUpdateManager : IServiceType // Janky way to make sure the notification does not change before it's minimized... await Task.Delay(500); - + notification.Title = Locs.NotificationTitleUpdatesSuccessful; notification.MinimizedText = Locs.NotificationContentUpdatesSuccessfulMinimized; notification.Type = NotificationType.Success; @@ -368,20 +354,20 @@ internal class AutoUpdateManager : IServiceType notification.MinimizedText = Locs.NotificationContentUpdatesFailedMinimized; notification.Type = NotificationType.Error; notification.Content = Locs.NotificationContentUpdatesFailed; - + var failedPlugins = pluginStates .Where(x => x.Status != PluginUpdateStatus.StatusKind.Success) .Select(x => x.Name).ToList(); - + notification.Content += "\n" + Locs.NotificationContentFailedPlugins(failedPlugins); } } - private void NotifyUpdatesAreAvailable(List<AvailablePluginUpdate> updatablePlugins) + private void NotifyUpdatesAreAvailable(ICollection<AvailablePluginUpdate> updatablePlugins) { if (updatablePlugins.Count == 0) return; - + var notification = this.GetBaseNotification(new Notification { Title = Locs.NotificationTitleUpdatesAvailable, @@ -414,50 +400,22 @@ internal class AutoUpdateManager : IServiceType notification.Dismiss += args => { if (args.Reason != NotificationDismissReason.Manual) return; - + this.nextUpdateCheckTime = DateTime.Now + TimeBetweenUpdateChecksIfDismissed; Log.Verbose("User dismissed update notification, next check at {Time}", this.nextUpdateCheckTime); }; - - // Send out a chat message only if the user requested so - if (!this.config.SendUpdateNotificationToChat) - return; - - var chatGui = Service<ChatGui>.GetNullable(); - if (chatGui == null) - { - Log.Verbose("Unable to get chat gui, discard notification for chat."); - return; - } - - chatGui.Print(new XivChatEntry - { - Message = new SeString(new List<Payload> - { - new TextPayload(Locs.NotificationContentUpdatesAvailableMinimized(updatablePlugins.Count)), - new TextPayload(" ["), - new UIForegroundPayload(500), - this.openInstallerWindowLinkTask.Result, - new TextPayload(Loc.Localize("DalamudInstallerHelp", "Open the plugin installer")), - RawPayload.LinkTerminator, - new UIForegroundPayload(0), - new TextPayload("]"), - }), - - Type = XivChatType.Urgent, - }); } - + private List<AvailablePluginUpdate> GetAvailablePluginUpdates(UpdateListingRestriction restriction) { var optIns = this.config.PluginAutoUpdatePreferences.ToArray(); - + // Get all of our updatable plugins and do some initial filtering that must apply to all plugins. var updateablePlugins = this.pluginManager.UpdatablePlugins .Where( p => !p.InstalledPlugin.IsDev && // Never update dev-plugins - (p.InstalledPlugin.IsWantedByAnyProfile || this.config.UpdateDisabledPlugins) && // Never update plugins that are not wanted by any profile(not enabled) + p.InstalledPlugin.IsWantedByAnyProfile && // Never update plugins that are not wanted by any profile(not enabled) !p.InstalledPlugin.Manifest.ScheduledForDeletion); // Never update plugins that we want to get rid of return updateablePlugins.Where(FilterPlugin).ToList(); @@ -465,14 +423,14 @@ internal class AutoUpdateManager : IServiceType bool FilterPlugin(AvailablePluginUpdate availablePluginUpdate) { var optIn = optIns.FirstOrDefault(x => x.WorkingPluginId == availablePluginUpdate.InstalledPlugin.EffectiveWorkingPluginId); - + // If this is an opt-out, we don't update. if (optIn is { Kind: AutoUpdatePreference.OptKind.NeverUpdate }) return false; if (restriction == UpdateListingRestriction.AllowNone && optIn is not { Kind: AutoUpdatePreference.OptKind.AlwaysUpdate }) return false; - + if (restriction == UpdateListingRestriction.AllowMainRepo && availablePluginUpdate.InstalledPlugin.IsThirdParty) return false; @@ -484,7 +442,7 @@ internal class AutoUpdateManager : IServiceType { this.loginTime = DateTime.Now; } - + private void OnLogout() { this.loginTime = null; @@ -492,10 +450,13 @@ internal class AutoUpdateManager : IServiceType private bool CanUpdateOrNag() { - var clientState = Service<ClientState>.Get(); + var condition = Service<Condition>.Get(); return this.IsPluginManagerReady() && - !this.dalamudInterface.IsPluginInstallerOpen && - clientState.IsClientIdle(); + !this.dalamudInterface.IsPluginInstallerOpen && + condition.OnlyAny(ConditionFlag.NormalConditions, + ConditionFlag.Jumping, + ConditionFlag.Mounted, + ConditionFlag.UsingParasol); } private bool IsPluginManagerReady() @@ -508,21 +469,21 @@ internal class AutoUpdateManager : IServiceType public static string NotificationButtonOpenPluginInstaller => Loc.Localize("AutoUpdateOpenPluginInstaller", "Open installer"); public static string NotificationButtonUpdate => Loc.Localize("AutoUpdateUpdate", "Update"); - + public static string NotificationTitleUpdatesAvailable => Loc.Localize("AutoUpdateUpdatesAvailable", "Updates available!"); - + public static string NotificationTitleUpdatesSuccessful => Loc.Localize("AutoUpdateUpdatesSuccessful", "Updates successful!"); - + public static string NotificationTitleUpdatingPlugins => Loc.Localize("AutoUpdateUpdatingPlugins", "Updating plugins..."); - + public static string NotificationTitleUpdatesFailed => Loc.Localize("AutoUpdateUpdatesFailed", "Updates failed!"); - + public static string NotificationContentUpdatesSuccessful => Loc.Localize("AutoUpdateUpdatesSuccessfulContent", "All plugins have been updated successfully."); - + public static string NotificationContentUpdatesSuccessfulMinimized => Loc.Localize("AutoUpdateUpdatesSuccessfulContentMinimized", "Plugins updated successfully."); - + public static string NotificationContentUpdatesFailed => Loc.Localize("AutoUpdateUpdatesFailedContent", "Some plugins failed to update. Please check the plugin installer for more information."); - + public static string NotificationContentUpdatesFailedMinimized => Loc.Localize("AutoUpdateUpdatesFailedContentMinimized", "Plugins failed to update."); public static string NotificationContentUpdatesAvailable(ICollection<AvailablePluginUpdate> updatablePlugins) @@ -536,20 +497,20 @@ internal class AutoUpdateManager : IServiceType "There are {0} plugins that can be updated:"), updatablePlugins.Count)) + "\n\n" + string.Join(", ", updatablePlugins.Select(x => x.InstalledPlugin.Manifest.Name)); - + public static string NotificationContentUpdatesAvailableMinimized(int numUpdates) => numUpdates == 1 ? - Loc.Localize("AutoUpdateUpdatesAvailableContentMinimizedSingular", "1 plugin update available") : + Loc.Localize("AutoUpdateUpdatesAvailableContentMinimizedSingular", "1 plugin update available") : string.Format(Loc.Localize("AutoUpdateUpdatesAvailableContentMinimizedPlural", "{0} plugin updates available"), numUpdates); - + public static string NotificationContentPreparingToUpdate(int numPlugins) => numPlugins == 1 ? - Loc.Localize("AutoUpdatePreparingToUpdateSingular", "Preparing to update 1 plugin...") : + Loc.Localize("AutoUpdatePreparingToUpdateSingular", "Preparing to update 1 plugin...") : string.Format(Loc.Localize("AutoUpdatePreparingToUpdatePlural", "Preparing to update {0} plugins..."), numPlugins); - + public static string NotificationContentUpdating(string name) => string.Format(Loc.Localize("AutoUpdateUpdating", "Updating {0}..."), name); - + public static string NotificationContentFailedPlugins(IEnumerable<string> failedPlugins) => string.Format(Loc.Localize("AutoUpdateFailedPlugins", "Failed plugin(s): {0}"), string.Join(", ", failedPlugins)); } diff --git a/Dalamud/Plugin/Internal/Exceptions/InternalPluginStateException.cs b/Dalamud/Plugin/Internal/Exceptions/InternalPluginStateException.cs deleted file mode 100644 index 03e37afcf..000000000 --- a/Dalamud/Plugin/Internal/Exceptions/InternalPluginStateException.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Dalamud.Plugin.Internal.Exceptions; - -/// <summary> -/// An exception to be thrown when policy blocks a plugin from loading. -/// </summary> -internal class InternalPluginStateException : InvalidPluginOperationException -{ - /// <summary> - /// Initializes a new instance of the <see cref="InternalPluginStateException"/> class. - /// </summary> - /// <param name="message">The message to associate with this exception.</param> - public InternalPluginStateException(string message) - : base(message) - { - } -} diff --git a/Dalamud/Plugin/Internal/Loader/AssemblyLoadContextBuilder.cs b/Dalamud/Plugin/Internal/Loader/AssemblyLoadContextBuilder.cs index aa304cd05..1c6e6feed 100644 --- a/Dalamud/Plugin/Internal/Loader/AssemblyLoadContextBuilder.cs +++ b/Dalamud/Plugin/Internal/Loader/AssemblyLoadContextBuilder.cs @@ -15,9 +15,9 @@ namespace Dalamud.Plugin.Internal.Loader; /// </summary> internal class AssemblyLoadContextBuilder { - private readonly List<string> additionalProbingPaths = []; - private readonly List<string> resourceProbingPaths = []; - private readonly List<string> resourceProbingSubpaths = []; + private readonly List<string> additionalProbingPaths = new(); + private readonly List<string> resourceProbingPaths = new(); + private readonly List<string> resourceProbingSubpaths = new(); private readonly Dictionary<string, ManagedLibrary> managedLibraries = new(StringComparer.Ordinal); private readonly Dictionary<string, NativeLibrary> nativeLibraries = new(StringComparer.Ordinal); private readonly HashSet<string> privateAssemblies = new(StringComparer.Ordinal); @@ -140,7 +140,7 @@ internal class AssemblyLoadContextBuilder return this; } - var names = new Queue<AssemblyName>([assemblyName]); + var names = new Queue<AssemblyName>(new[] { assemblyName }); while (names.TryDequeue(out var name)) { diff --git a/Dalamud/Plugin/Internal/Loader/LoaderConfig.cs b/Dalamud/Plugin/Internal/Loader/LoaderConfig.cs index e26338820..b863b8ee1 100644 --- a/Dalamud/Plugin/Internal/Loader/LoaderConfig.cs +++ b/Dalamud/Plugin/Internal/Loader/LoaderConfig.cs @@ -39,13 +39,13 @@ internal class LoaderConfig /// <summary> /// Gets a list of assemblies which should be treated as private. /// </summary> - public ICollection<AssemblyName> PrivateAssemblies { get; } = []; + public ICollection<AssemblyName> PrivateAssemblies { get; } = new List<AssemblyName>(); /// <summary> /// Gets a list of assemblies which should be unified between the host and the plugin. /// </summary> /// <seealso href="https://github.com/natemcmaster/DotNetCorePlugins/blob/main/docs/what-are-shared-types.md">what-are-shared-types</seealso> - public ICollection<(AssemblyName Name, bool Recursive)> SharedAssemblies { get; } = []; + public ICollection<(AssemblyName Name, bool Recursive)> SharedAssemblies { get; } = new List<(AssemblyName Name, bool Recursive)>(); /// <summary> /// Gets or sets a value indicating whether attempt to unify all types from a plugin with the host. diff --git a/Dalamud/Plugin/Internal/Loader/ManagedLoadContext.cs b/Dalamud/Plugin/Internal/Loader/ManagedLoadContext.cs index a85d20e40..4ea4eb5c4 100644 --- a/Dalamud/Plugin/Internal/Loader/ManagedLoadContext.cs +++ b/Dalamud/Plugin/Internal/Loader/ManagedLoadContext.cs @@ -24,7 +24,7 @@ internal class ManagedLoadContext : AssemblyLoadContext private readonly IReadOnlyDictionary<string, ManagedLibrary> managedAssemblies; private readonly IReadOnlyDictionary<string, NativeLibrary> nativeLibraries; private readonly IReadOnlyCollection<string> privateAssemblies; - private readonly List<string> defaultAssemblies; + private readonly ICollection<string> defaultAssemblies; private readonly IReadOnlyCollection<string> additionalProbingPaths; private readonly bool preferDefaultLoadContext; private readonly string[] resourceRoots; @@ -64,7 +64,8 @@ internal class ManagedLoadContext : AssemblyLoadContext bool shadowCopyNativeLibraries) : base(Path.GetFileNameWithoutExtension(mainAssemblyPath), isCollectible) { - ArgumentNullException.ThrowIfNull(resourceProbingPaths); + if (resourceProbingPaths == null) + throw new ArgumentNullException(nameof(resourceProbingPaths)); this.mainAssemblyPath = mainAssemblyPath ?? throw new ArgumentNullException(nameof(mainAssemblyPath)); this.dependencyResolver = new AssemblyDependencyResolver(mainAssemblyPath); @@ -242,7 +243,7 @@ internal class ManagedLoadContext : AssemblyLoadContext } // check to see if there is a library entry for the library without the file extension - var trimmedName = unmanagedDllName[..^suffix.Length]; + var trimmedName = unmanagedDllName.Substring(0, unmanagedDllName.Length - suffix.Length); if (this.nativeLibraries.TryGetValue(prefix + trimmedName, out library)) { diff --git a/Dalamud/Plugin/Internal/Loader/PlatformInformation.cs b/Dalamud/Plugin/Internal/Loader/PlatformInformation.cs index 151d184db..ec1d557be 100644 --- a/Dalamud/Plugin/Internal/Loader/PlatformInformation.cs +++ b/Dalamud/Plugin/Internal/Loader/PlatformInformation.cs @@ -11,21 +11,21 @@ internal class PlatformInformation /// <summary> /// Gets a list of native OS specific library extensions. /// </summary> - public static string[] NativeLibraryExtensions => [".dll"]; + public static string[] NativeLibraryExtensions => new[] { ".dll" }; /// <summary> /// Gets a list of native OS specific library prefixes. /// </summary> - public static string[] NativeLibraryPrefixes => [string.Empty]; + public static string[] NativeLibraryPrefixes => new[] { string.Empty }; /// <summary> /// Gets a list of native OS specific managed assembly extensions. /// </summary> - public static string[] ManagedAssemblyExtensions => - [ + public static string[] ManagedAssemblyExtensions => new[] + { ".dll", ".ni.dll", ".exe", ".ni.exe", - ]; + }; } diff --git a/Dalamud/Plugin/Internal/Loader/PluginLoader.cs b/Dalamud/Plugin/Internal/Loader/PluginLoader.cs index a77bfe088..54b9cad4b 100644 --- a/Dalamud/Plugin/Internal/Loader/PluginLoader.cs +++ b/Dalamud/Plugin/Internal/Loader/PluginLoader.cs @@ -53,7 +53,8 @@ internal class PluginLoader : IDisposable /// <returns>A loader.</returns> public static PluginLoader CreateFromAssemblyFile(string assemblyFile, Action<LoaderConfig> configure) { - ArgumentNullException.ThrowIfNull(configure); + if (configure == null) + throw new ArgumentNullException(nameof(configure)); var config = new LoaderConfig(assemblyFile); configure(config); @@ -158,6 +159,7 @@ internal class PluginLoader : IDisposable private void EnsureNotDisposed() { - ObjectDisposedException.ThrowIf(this.disposed, this); + if (this.disposed) + throw new ObjectDisposedException(nameof(PluginLoader)); } } diff --git a/Dalamud/Plugin/Internal/PluginErrorHandler.cs b/Dalamud/Plugin/Internal/PluginErrorHandler.cs deleted file mode 100644 index 6733cc3ca..000000000 --- a/Dalamud/Plugin/Internal/PluginErrorHandler.cs +++ /dev/null @@ -1,195 +0,0 @@ -using System.Collections.Generic; -using System.Linq.Expressions; - -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.ImGuiNotification; -using Dalamud.Interface.ImGuiNotification.Internal; -using Dalamud.Interface.Internal; -using Dalamud.Plugin.Internal.Types; - -using Serilog; - -namespace Dalamud.Plugin.Internal; - -/// <summary> -/// Service responsible for notifying the user when a plugin is creating errors. -/// </summary> -[ServiceManager.ScopedService] -internal class PluginErrorHandler : IServiceType -{ - private readonly LocalPlugin plugin; - private readonly NotificationManager notificationManager; - private readonly DalamudInterface di; - - private readonly Dictionary<Type, Delegate> invokerCache = []; - - private DateTime lastErrorTime = DateTime.MinValue; - private IActiveNotification? activeNotification; - - /// <summary> - /// Initializes a new instance of the <see cref="PluginErrorHandler"/> class. - /// </summary> - /// <param name="plugin">The plugin we are notifying for.</param> - /// <param name="notificationManager">The notification manager.</param> - /// <param name="di">The dalamud interface class.</param> - [ServiceManager.ServiceConstructor] - public PluginErrorHandler(LocalPlugin plugin, NotificationManager notificationManager, DalamudInterface di) - { - this.plugin = plugin; - this.notificationManager = notificationManager; - this.di = di; - } - - /// <summary> - /// Invoke the specified delegate and catch any exceptions that occur. - /// Writes an error message to the log if an exception occurs and shows - /// a notification if the plugin is a dev plugin and the user has enabled error notifications. - /// </summary> - /// <param name="eventHandler">The delegate to invoke.</param> - /// <param name="hint">A hint to show about the origin of the exception if an error occurs.</param> - /// <param name="args">Arguments to the event handler.</param> - /// <typeparam name="TDelegate">The type of the delegate.</typeparam> - /// <returns>Whether invocation was successful/did not throw an exception.</returns> - public bool InvokeAndCatch<TDelegate>( - TDelegate? eventHandler, - string hint, - params object[] args) - where TDelegate : Delegate - { - if (eventHandler == null) - return true; - - try - { - var invoker = this.GetInvoker<TDelegate>(); - invoker(eventHandler, args); - return true; - } - catch (Exception ex) - { - Log.Error(ex, $"[{this.plugin.InternalName}] Exception in event handler {{EventHandlerName}}", hint); - this.NotifyError(); - return false; - } - } - - /// <summary> - /// Show a notification, if the plugin is a dev plugin and the user has enabled error notifications. - /// This function has a cooldown built-in. - /// </summary> - public void NotifyError() - { - if (this.plugin is not LocalDevPlugin devPlugin) - return; - - if (!devPlugin.NotifyForErrors) - return; - - // If the notification is already active, we don't need to show it again. - if (this.activeNotification is { DismissReason: null }) - return; - - var now = DateTime.UtcNow; - if (now - this.lastErrorTime < TimeSpan.FromMinutes(2)) - return; - - this.lastErrorTime = now; - - var creatingErrorsText = $"{devPlugin.Name} is creating errors"; - var notification = new Notification() - { - Title = creatingErrorsText, - Icon = INotificationIcon.From(FontAwesomeIcon.Bolt), - Type = NotificationType.Error, - InitialDuration = TimeSpan.FromSeconds(15), - MinimizedText = creatingErrorsText, - Content = $"The plugin '{devPlugin.Name}' is creating errors. Click 'Show console' to learn more.\n\n" + - $"You are seeing this because '{devPlugin.Name}' is a Dev Plugin.", - RespectUiHidden = false, - }; - - this.activeNotification = this.notificationManager.AddNotification(notification); - this.activeNotification.DrawActions += _ => - { - if (ImGui.Button("Show console"u8)) - { - this.di.OpenLogWindow(this.plugin.InternalName); - this.activeNotification.DismissNow(); - } - - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Show the console filtered to this plugin"u8); - } - - ImGui.SameLine(); - - if (ImGui.Button("Disable notifications"u8)) - { - devPlugin.NotifyForErrors = false; - this.activeNotification.DismissNow(); - } - - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Disable error notifications for this plugin"u8); - } - }; - } - - private static Action<TDelegate, object[]> CreateInvoker<TDelegate>() where TDelegate : Delegate - { - var delegateType = typeof(TDelegate); - var method = delegateType.GetMethod("Invoke") ?? throw new InvalidOperationException($"Delegate {delegateType} does not have an Invoke method."); - var parameters = method.GetParameters(); - - // Create parameters for the lambda - var delegateParam = Expression.Parameter(delegateType, "d"); - var argsParam = Expression.Parameter(typeof(object[]), "args"); - - // Create expressions to convert array elements to parameter types - var callArgs = new Expression[parameters.Length]; - for (var i = 0; i < parameters.Length; i++) - { - var paramType = parameters[i].ParameterType; - var arrayAccess = Expression.ArrayIndex(argsParam, Expression.Constant(i)); - callArgs[i] = Expression.Convert(arrayAccess, paramType); - } - - // Create the delegate invocation expression - var callExpr = Expression.Call(delegateParam, method, callArgs); - - // If return type is not void, discard the result - Expression bodyExpr; - if (method.ReturnType != typeof(void)) - { - // Create a block that executes the call and then returns void - bodyExpr = Expression.Block( - Expression.Call(delegateParam, method, callArgs), - Expression.Empty()); - } - else - { - bodyExpr = callExpr; - } - - // Compile and return the lambda - var lambda = Expression.Lambda<Action<TDelegate, object[]>>( - bodyExpr, delegateParam, argsParam); - return lambda.Compile(); - } - - private Action<TDelegate, object[]> GetInvoker<TDelegate>() where TDelegate : Delegate - { - var delegateType = typeof(TDelegate); - - if (!this.invokerCache.TryGetValue(delegateType, out var cachedInvoker)) - { - cachedInvoker = CreateInvoker<TDelegate>(); - this.invokerCache[delegateType] = cachedInvoker; - } - - return (Action<TDelegate, object[]>)cachedInvoker; - } -} diff --git a/Dalamud/Plugin/Internal/PluginManager.cs b/Dalamud/Plugin/Internal/PluginManager.cs index 0c9894380..9d71c60df 100644 --- a/Dalamud/Plugin/Internal/PluginManager.cs +++ b/Dalamud/Plugin/Internal/PluginManager.cs @@ -11,7 +11,6 @@ using System.Threading; using System.Threading.Tasks; using CheapLoc; - using Dalamud.Configuration; using Dalamud.Configuration.Internal; using Dalamud.Game; @@ -32,7 +31,6 @@ using Dalamud.Plugin.Ipc.Internal; using Dalamud.Support; using Dalamud.Utility; using Dalamud.Utility.Timing; - using Newtonsoft.Json; namespace Dalamud.Plugin.Internal; @@ -50,17 +48,15 @@ internal class PluginManager : IInternalDisposableService /// </summary> public const int PluginWaitBeforeFreeDefault = 1000; // upped from 500ms, seems more stable - private const string BrokenMarkerFileName = ".broken"; - - private static readonly ModuleLog Log = ModuleLog.Create<PluginManager>(); + private static readonly ModuleLog Log = new("PLUGINM"); private readonly object pluginListLock = new(); private readonly DirectoryInfo pluginDirectory; private readonly BannedPlugin[]? bannedPlugins; - - private readonly List<LocalPlugin> installedPluginsList = []; - private readonly List<RemotePluginManifest> availablePluginsList = []; - private readonly List<AvailablePluginUpdate> updatablePluginsList = []; + + private readonly List<LocalPlugin> installedPluginsList = new(); + private readonly List<RemotePluginManifest> availablePluginsList = new(); + private readonly List<AvailablePluginUpdate> updatablePluginsList = new(); private readonly Task<DalamudLinkPayload> openInstallerWindowPluginChangelogsLink; @@ -127,15 +123,20 @@ internal class PluginManager : IInternalDisposableService this.openInstallerWindowPluginChangelogsLink = Service<ChatGui>.GetAsync().ContinueWith( chatGuiTask => chatGuiTask.Result.AddChatLinkHandler( + "Dalamud", + 1003, (_, _) => { Service<DalamudInterface>.GetNullable()?.OpenPluginInstallerTo( PluginInstallerOpenKind.Changelogs); })); - this.configuration.PluginTestingOptIns ??= []; + this.configuration.PluginTestingOptIns ??= new(); this.MainRepo = PluginRepository.CreateMainRepo(this.happyHttpClient); + // NET8 CHORE + // this.ApplyPatches(); + registerStartupBlocker( Task.Run(this.LoadAndStartLoadSyncPlugins), "Waiting for plugins that asked to be loaded before the game."); @@ -209,7 +210,7 @@ internal class PluginManager : IInternalDisposableService } } } - + /// <summary> /// Gets a copy of the list of all plugins with an available update. /// </summary> @@ -232,7 +233,7 @@ internal class PluginManager : IInternalDisposableService /// <summary> /// Gets a list of all plugin repositories. The main repo should always be first. /// </summary> - public List<PluginRepository> Repos { get; private set; } = []; + public List<PluginRepository> Repos { get; private set; } = new(); /// <summary> /// Gets a value indicating whether plugins are not still loading from boot. @@ -245,9 +246,9 @@ internal class PluginManager : IInternalDisposableService public bool ReposReady { get; private set; } /// <summary> - /// Gets or sets a value indicating whether the plugin manager started in safe mode. + /// Gets a value indicating whether the plugin manager started in safe mode. /// </summary> - public bool SafeMode { get; set; } + public bool SafeMode { get; init; } /// <summary> /// Gets the <see cref="PluginConfigurations"/> object used when initializing plugins. @@ -263,7 +264,7 @@ internal class PluginManager : IInternalDisposableService /// Gets or sets a value indicating whether banned plugins will be loaded. /// </summary> public bool LoadBannedPlugins { get; set; } - + /// <summary> /// Gets a tracker for plugins that are loading at startup, used to display information to the user. /// </summary> @@ -280,6 +281,26 @@ internal class PluginManager : IInternalDisposableService return !manifest.IsHide; } + /// <summary> + /// Check if a manifest even has an available testing version. + /// </summary> + /// <param name="manifest">The manifest to test.</param> + /// <returns>Whether or not a testing version is available.</returns> + public static bool HasTestingVersion(IPluginManifest manifest) + { + var av = manifest.AssemblyVersion; + var tv = manifest.TestingAssemblyVersion; + var hasTv = tv != null; + + if (hasTv) + { + return tv > av && + manifest.TestingDalamudApiLevel == DalamudApiLevel; + } + + return false; + } + /// <summary> /// Get a disposable that will lock plugin lists while it is not disposed. /// You must NEVER use this in async code. @@ -353,23 +374,6 @@ internal class PluginManager : IInternalDisposableService return this.configuration.PluginTestingOptIns!.Any(x => x.InternalName == manifest.InternalName); } - /// <summary> - /// For a given manifest, determine if the testing version can be used over the normal version. - /// The higher of the two versions is calculated after checking other settings. - /// </summary> - /// <param name="manifest">Manifest to check.</param> - /// <returns>A value indicating whether testing can be used.</returns> - public bool CanUseTesting(IPluginManifest manifest) - { - if (!this.configuration.DoPluginTest) - return false; - - if (!manifest.TestingDalamudApiLevel.HasValue) - return false; - - return manifest.IsTestingExclusive || manifest.IsAvailableForTesting; - } - /// <summary> /// For a given manifest, determine if the testing version should be used over the normal version. /// The higher of the two versions is calculated after checking other settings. @@ -378,7 +382,16 @@ internal class PluginManager : IInternalDisposableService /// <returns>A value indicating whether testing should be used.</returns> public bool UseTesting(IPluginManifest manifest) { - return this.CanUseTesting(manifest) && this.HasTestingOptIn(manifest); + if (!this.configuration.DoPluginTest) + return false; + + if (!this.HasTestingOptIn(manifest)) + return false; + + if (manifest.IsTestingExclusive) + return true; + + return HasTestingVersion(manifest); } /// <inheritdoc/> @@ -420,6 +433,10 @@ internal class PluginManager : IInternalDisposableService await Task.WhenAll(disposablePlugins.Select(plugin => plugin.DisposeAsync().AsTask())) .SuppressException(); } + + // NET8 CHORE + // this.assemblyLocationMonoHook?.Dispose(); + // this.assemblyCodeBaseMonoHook?.Dispose(); } /// <summary> @@ -469,7 +486,7 @@ internal class PluginManager : IInternalDisposableService Log.Error("No DLL found for plugin at {Path}", versionDir.FullName); continue; } - + var manifestFile = LocalPluginManifest.GetManifestFile(dllFile); if (!manifestFile.Exists) { @@ -496,7 +513,7 @@ internal class PluginManager : IInternalDisposableService } this.configuration.QueueSave(); - + if (versionsDefs.Count == 0) { Log.Verbose("No versions found for plugin: {Name}", pluginDir.Name); @@ -542,7 +559,7 @@ internal class PluginManager : IInternalDisposableService Log.Error("DLL at {DllPath} has no manifest, this is no longer valid", dllFile.FullName); continue; } - + var manifest = LocalPluginManifest.Load(manifestFile); if (manifest == null) { @@ -651,8 +668,6 @@ internal class PluginManager : IInternalDisposableService _ = Task.Run( async () => { - Log.Verbose("Starting async boot load"); - // Load plugins that want to be loaded during Framework.Tick var framework = await Service<Framework>.GetAsync().ConfigureAwait(false); await framework.RunOnTick( @@ -661,35 +676,27 @@ internal class PluginManager : IInternalDisposableService syncPlugins.Where(def => def.Manifest?.LoadRequiredState == 1), tokenSource.Token), cancellationToken: tokenSource.Token).ConfigureAwait(false); - Log.Verbose("Loaded FrameworkTickSync plugins (LoadRequiredState == 1)"); - loadTasks.Add(LoadPluginsAsync( "FrameworkTickAsync", asyncPlugins.Where(def => def.Manifest?.LoadRequiredState == 1), tokenSource.Token)); - Log.Verbose("Kicked off FrameworkTickAsync plugins (LoadRequiredState == 1)"); // Load plugins that want to be loaded during Framework.Tick, when drawing facilities are available _ = await Service<InterfaceManager.InterfaceManagerWithScene>.GetAsync().ConfigureAwait(false); - Log.Verbose(" InterfaceManager is ready, starting to load DrawAvailableSync plugins"); await framework.RunOnTick( () => LoadPluginsSync( "DrawAvailableSync", syncPlugins.Where(def => def.Manifest?.LoadRequiredState is 0 or null), tokenSource.Token), cancellationToken: tokenSource.Token); - Log.Verbose("Loaded DrawAvailableSync plugins (LoadRequiredState == 0 or null)"); - loadTasks.Add(LoadPluginsAsync( "DrawAvailableAsync", asyncPlugins.Where(def => def.Manifest?.LoadRequiredState is 0 or null), tokenSource.Token)); - Log.Verbose("Kicked off DrawAvailableAsync plugins (LoadRequiredState == 0 or null)"); // Save signatures when all plugins are done loading, successful or not. try { - Log.Verbose("Now waiting for {NumTasks} async load tasks", loadTasks.Count); await Task.WhenAll(loadTasks).ConfigureAwait(false); Log.Information("Loaded plugins on boot"); } @@ -713,13 +720,8 @@ internal class PluginManager : IInternalDisposableService } this.StartupLoadTracking = null; - }, tokenSource.Token).ContinueWith(t => - { - if (t.IsFaulted) - { - Log.Error(t.Exception, "Failed to load FrameworkTickAsync/DrawAvailableAsync plugins"); - } - }, TaskContinuationOptions.OnlyOnFaulted); + }, + tokenSource.Token); } /// <summary> @@ -766,7 +768,7 @@ internal class PluginManager : IInternalDisposableService .SelectMany(repo => repo.PluginMaster) .Where(this.IsManifestEligible) .Where(IsManifestVisible)); - + if (notify) { this.NotifyAvailablePluginsChanged(); @@ -779,8 +781,7 @@ internal class PluginManager : IInternalDisposableService /// only shown as disabled in the installed plugins window. This is a modified version of LoadAllPlugins that works /// a little differently. /// </summary> - /// <returns>A <see cref="Task"/> representing the asynchronous operation. This function generally will not block as new plugins aren't loaded.</returns> - public async Task ScanDevPluginsAsync() + public void ScanDevPlugins() { // devPlugins are more freeform. Look for any dll and hope to get lucky. var devDllFiles = new List<FileInfo>(); @@ -789,7 +790,7 @@ internal class PluginManager : IInternalDisposableService { if (!setting.IsEnabled) continue; - + Log.Verbose("Scanning dev plugins at {Path}", setting.Path); if (File.Exists(setting.Path)) @@ -816,7 +817,7 @@ internal class PluginManager : IInternalDisposableService Log.Error("DLL at {DllPath} has no manifest, this is no longer valid", dllFile.FullName); continue; } - + var manifest = LocalPluginManifest.Load(manifestFile); if (manifest == null) { @@ -827,7 +828,8 @@ internal class PluginManager : IInternalDisposableService try { // Add them to the list and let the user decide, nothing is auto-loaded. - await this.LoadPluginAsync(dllFile, manifest, PluginLoadReason.Installer, isDev: true, doNotLoad: true); + this.LoadPluginAsync(dllFile, manifest, PluginLoadReason.Installer, isDev: true, doNotLoad: true) + .Wait(); listChanged = true; } catch (InvalidPluginException) @@ -859,7 +861,7 @@ internal class PluginManager : IInternalDisposableService var stream = await this.DownloadPluginAsync(repoManifest, useTesting); return await this.InstallPluginInternalAsync(repoManifest, useTesting, reason, stream, inheritedWorkingPluginId); } - + /// <summary> /// Remove a plugin. /// </summary> @@ -874,12 +876,15 @@ internal class PluginManager : IInternalDisposableService this.installedPluginsList.Remove(plugin); } + // NET8 CHORE + // PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _); + this.NotifyinstalledPluginsListChanged(); this.NotifyAvailablePluginsChanged(); } /// <summary> - /// Cleanup disabled and broken plugins. Does not target devPlugins. + /// Cleanup disabled plugins. Does not target devPlugins. /// </summary> public void CleanupPlugins() { @@ -887,13 +892,6 @@ internal class PluginManager : IInternalDisposableService { try { - if (File.Exists(Path.Combine(pluginDir.FullName, BrokenMarkerFileName))) - { - Log.Warning("Cleaning up broken plugin {Name}", pluginDir.Name); - pluginDir.Delete(true); - continue; - } - var versionDirs = pluginDir.GetDirectories(); versionDirs = versionDirs @@ -1040,7 +1038,7 @@ internal class PluginManager : IInternalDisposableService /// </summary> /// <param name="metadata">The available plugin update.</param> /// <param name="notify">Whether to notify that installed plugins have changed afterwards.</param> - /// <param name="dryRun">Whether to actually perform the update, or just indicate success.</param> + /// <param name="dryRun">Whether or not to actually perform the update, or just indicate success.</param> /// <returns>The status of the update.</returns> public async Task<PluginUpdateStatus> UpdateSinglePluginAsync(AvailablePluginUpdate metadata, bool notify, bool dryRun) { @@ -1060,7 +1058,7 @@ internal class PluginManager : IInternalDisposableService Status = PluginUpdateStatus.StatusKind.Success, HasChangelog = !metadata.UpdateManifest.Changelog.IsNullOrWhitespace(), }; - + // Check if this plugin is already up to date (=> AvailablePluginUpdate was stale) lock (this.installedPluginsList) { @@ -1087,7 +1085,7 @@ internal class PluginManager : IInternalDisposableService updateStatus.Status = PluginUpdateStatus.StatusKind.FailedDownload; return updateStatus; } - + // Unload if loaded if (plugin.State is PluginState.Loaded or PluginState.LoadError or PluginState.DependencyResolutionFailed) { @@ -1191,29 +1189,32 @@ internal class PluginManager : IInternalDisposableService { // Testing exclusive if (manifest.IsTestingExclusive && !this.configuration.DoPluginTest) + { + Log.Verbose($"Testing exclusivity: {manifest.InternalName} - {manifest.AssemblyVersion} - {manifest.TestingAssemblyVersion}"); return false; + } // Applicable version if (manifest.ApplicableVersion < this.dalamud.StartInfo.GameVersion) + { + Log.Verbose($"Game version: {manifest.InternalName} - {manifest.AssemblyVersion} - {manifest.TestingAssemblyVersion}"); return false; + } // API level - we keep the API before this in the installer to show as "outdated" - if (!this.LoadAllApiLevels) + var effectiveApiLevel = this.UseTesting(manifest) && manifest.TestingDalamudApiLevel != null ? manifest.TestingDalamudApiLevel.Value : manifest.DalamudApiLevel; + if (effectiveApiLevel < DalamudApiLevel - 1 && !this.LoadAllApiLevels) { - var effectiveDalamudApiLevel = - this.CanUseTesting(manifest) && - manifest.TestingDalamudApiLevel.HasValue && - manifest.TestingDalamudApiLevel.Value > manifest.DalamudApiLevel - ? manifest.TestingDalamudApiLevel.Value - : manifest.DalamudApiLevel; - - if (effectiveDalamudApiLevel < PluginManager.DalamudApiLevel - 1) - return false; + Log.Verbose($"API Level: {manifest.InternalName} - {manifest.AssemblyVersion} - {manifest.TestingAssemblyVersion}"); + return false; } // Banned if (this.IsManifestBanned(manifest)) + { + Log.Verbose($"Banned: {manifest.InternalName} - {manifest.AssemblyVersion} - {manifest.TestingAssemblyVersion}"); return false; + } return true; } @@ -1239,7 +1240,7 @@ internal class PluginManager : IInternalDisposableService } return this.bannedPlugins.Any(ban => (ban.Name == manifest.InternalName || ban.Name == Hash.GetStringSha256Hash(manifest.InternalName)) - && (ban.AssemblyVersion == null || ban.AssemblyVersion >= versionToCheck)); + && ban.AssemblyVersion >= versionToCheck); } /// <summary> @@ -1291,26 +1292,6 @@ internal class PluginManager : IInternalDisposableService /// <returns>The calling plugin, or null.</returns> public LocalPlugin? FindCallingPlugin() => this.FindCallingPlugin(new StackTrace()); - /// <summary> - /// Notifies all plugins that the active plugins list changed. - /// </summary> - /// <param name="kind">The invalidation kind.</param> - /// <param name="affectedInternalNames">The affected plugins.</param> - public void NotifyPluginsForStateChange(PluginListInvalidationKind kind, IEnumerable<string> affectedInternalNames) - { - lock (this.pluginListLock) - { - foreach (var installedPlugin in this.installedPluginsList) - { - if (!installedPlugin.IsLoaded || installedPlugin.DalamudInterface == null) - continue; - - installedPlugin.DalamudInterface.NotifyActivePluginsChanged( - new ActivePluginsChangedEventArgs(kind, affectedInternalNames)); - } - } - } - /// <summary> /// Resolves the services that a plugin may have a dependency on.<br /> /// This is required, as the lifetime of a plugin cannot be longer than PluginManager, @@ -1334,7 +1315,7 @@ internal class PluginManager : IInternalDisposableService { if (serviceType == typeof(PluginManager)) continue; - + // Scoped plugin services lifetime is tied to their scopes. They go away when LocalPlugin goes away. // Nonetheless, their direct dependencies must be considered. if (serviceType.GetServiceKind() == ServiceManager.ServiceKind.ScopedService) @@ -1342,19 +1323,19 @@ internal class PluginManager : IInternalDisposableService var typeAsServiceT = ServiceHelpers.GetAsService(serviceType); var dependencies = ServiceHelpers.GetDependencies(typeAsServiceT, false); ServiceManager.Log.Verbose("Found dependencies of scoped plugin service {Type} ({Cnt})", serviceType.FullName!, dependencies!.Count); - + foreach (var scopedDep in dependencies) { if (scopedDep == typeof(PluginManager)) throw new Exception("Scoped plugin services cannot depend on PluginManager."); - + ServiceManager.Log.Verbose("PluginManager MUST depend on {Type} via {BaseType}", scopedDep.FullName!, serviceType.FullName!); yield return scopedDep; } continue; } - + var pluginInterfaceAttribute = serviceType.GetCustomAttribute<PluginInterfaceAttribute>(true); if (pluginInterfaceAttribute == null) continue; @@ -1365,12 +1346,12 @@ internal class PluginManager : IInternalDisposableService } /// <summary> - /// Check if there are any inconsistencies with our plugins, their IDs, and our profiles. + /// Check if there are any inconsistencies with our plugins, their IDs, and our profiles. /// </summary> private void ParanoiaValidatePluginsAndProfiles() { var seenIds = new List<Guid>(); - + foreach (var installedPlugin in this.InstalledPlugins) { if (installedPlugin.EffectiveWorkingPluginId == Guid.Empty) @@ -1381,13 +1362,13 @@ internal class PluginManager : IInternalDisposableService throw new Exception( $"{(installedPlugin is LocalDevPlugin ? "DevPlugin" : "Plugin")} '{installedPlugin.Manifest.InternalName}' has a duplicate WorkingPluginId '{installedPlugin.EffectiveWorkingPluginId}'"); } - + seenIds.Add(installedPlugin.EffectiveWorkingPluginId); } - + this.profileManager.ParanoiaValidateProfiles(); } - + private async Task<Stream> DownloadPluginAsync(RemotePluginManifest repoManifest, bool useTesting) { var downloadUrl = useTesting ? repoManifest.DownloadLinkTesting : repoManifest.DownloadLinkInstall; @@ -1420,7 +1401,7 @@ internal class PluginManager : IInternalDisposableService { var version = useTesting ? repoManifest.TestingAssemblyVersion : repoManifest.AssemblyVersion; Log.Debug($"Installing plugin {repoManifest.Name} (testing={useTesting}, version={version}, reason={reason})"); - + // If this plugin is in the default profile for whatever reason, delete the state // If it was in multiple profiles and is still, the user uninstalled it and chose to keep it in there, // or the user removed the plugin manually in which case we don't care @@ -1452,10 +1433,9 @@ internal class PluginManager : IInternalDisposableService else { // If we are doing anything other than a fresh install, not having a workingPluginId is an error that must be fixed - if (inheritedWorkingPluginId == null) - throw new ArgumentNullException(nameof(inheritedWorkingPluginId), "Inherited WorkingPluginId must not be null when updating"); + Debug.Assert(inheritedWorkingPluginId != null, "inheritedWorkingPluginId != null"); } - + // Ensure that we have a testing opt-in for this plugin if we are installing a testing version if (useTesting && this.configuration.PluginTestingOptIns!.All(x => x.InternalName != repoManifest.InternalName)) { @@ -1464,28 +1444,31 @@ internal class PluginManager : IInternalDisposableService this.configuration.QueueSave(); } - var pluginVersionsDir = new DirectoryInfo(Path.Combine(this.pluginDirectory.FullName, repoManifest.InternalName)); - var tempOutputDir = new DirectoryInfo(FilesystemUtil.GetTempFileName()); - var outputDir = new DirectoryInfo(Path.Combine(pluginVersionsDir.FullName, version?.ToString() ?? string.Empty)); - - FilesystemUtil.DeleteAndRecreateDirectory(tempOutputDir); - FilesystemUtil.DeleteAndRecreateDirectory(outputDir); - - Log.Debug("Extracting plugin to {TempOutputDir}", tempOutputDir); + var outputDir = new DirectoryInfo(Path.Combine(this.pluginDirectory.FullName, repoManifest.InternalName, version?.ToString() ?? string.Empty)); try { - using var archive = new ZipArchive(zipStream); + if (outputDir.Exists) + outputDir.Delete(true); + outputDir.Create(); + } + catch + { + // ignored, since the plugin may be loaded already + } + + Log.Debug("Extracting to {OutputDir}", outputDir); + + using (var archive = new ZipArchive(zipStream)) + { foreach (var zipFile in archive.Entries) { - var outputFile = new FileInfo( - Path.GetFullPath(Path.Combine(tempOutputDir.FullName, zipFile.FullName))); + var outputFile = new FileInfo(Path.GetFullPath(Path.Combine(outputDir.FullName, zipFile.FullName))); - if (!outputFile.FullName.StartsWith(tempOutputDir.FullName, StringComparison.OrdinalIgnoreCase)) + if (!outputFile.FullName.StartsWith(outputDir.FullName, StringComparison.OrdinalIgnoreCase)) { - throw new IOException( - "Trying to extract file outside of destination directory. See this link for more info: https://snyk.io/research/zip-slip-vulnerability"); + throw new IOException("Trying to extract file outside of destination directory. See this link for more info: https://snyk.io/research/zip-slip-vulnerability"); } if (outputFile.Directory == null) @@ -1496,86 +1479,72 @@ internal class PluginManager : IInternalDisposableService if (zipFile.Name.IsNullOrEmpty()) { // Assuming Empty for Directory - Log.Verbose( - "ZipFile name is null or empty, treating as a directory: {Path}", outputFile.Directory.FullName); + Log.Verbose($"ZipFile name is null or empty, treating as a directory: {outputFile.Directory.FullName}"); Directory.CreateDirectory(outputFile.Directory.FullName); continue; } // Ensure directory is created Directory.CreateDirectory(outputFile.Directory.FullName); - zipFile.ExtractToFile(outputFile.FullName, true); + + try + { + zipFile.ExtractToFile(outputFile.FullName, true); + } + catch (Exception ex) + { + if (outputFile.Extension.EndsWith("dll")) + { + throw new IOException($"Could not overwrite {zipFile.Name}: {ex.Message}"); + } + + Log.Error($"Could not overwrite {zipFile.Name}: {ex.Message}"); + } } - - var tempDllFile = LocalPluginManifest.GetPluginFile(tempOutputDir, repoManifest); - var tempManifestFile = LocalPluginManifest.GetManifestFile(tempDllFile); - - // We need to save the repoManifest due to how the repo fills in some fields that authors are not expected to use. - FilesystemUtil.WriteAllTextSafe( - tempManifestFile.FullName, - JsonConvert.SerializeObject(repoManifest, Formatting.Indented)); - - // Reload as a local manifest, add some attributes, and save again. - var tempManifest = LocalPluginManifest.Load(tempManifestFile) ?? throw new Exception("Plugin had no valid manifest"); - if (tempManifest.InternalName != repoManifest.InternalName) - { - throw new Exception( - $"Distributed internal name does not match repo internal name: {tempManifest.InternalName} - {repoManifest.InternalName}"); - } - - if (tempManifest.WorkingPluginId != Guid.Empty) - throw new Exception("Plugin shall not specify a WorkingPluginId"); - - tempManifest.WorkingPluginId = inheritedWorkingPluginId ?? Guid.NewGuid(); - - if (useTesting) - { - tempManifest.Testing = true; - } - - // Document the url the plugin was installed from - tempManifest.InstalledFromUrl = repoManifest.SourceRepo.IsThirdParty - ? repoManifest.SourceRepo.PluginMasterUrl - : SpecialPluginSource.MainRepo; - - tempManifest.Save(tempManifestFile, "installation"); - - // Copy the directory to the final location - Log.Debug("Copying plugin from {TempOutputDir} to {OutputDir}", tempOutputDir, outputDir); - FilesystemUtil.CopyFilesRecursively(tempOutputDir, outputDir); - - var finalDllFile = LocalPluginManifest.GetPluginFile(outputDir, repoManifest); - var finalManifestFile = LocalPluginManifest.GetManifestFile(finalDllFile); - var finalManifest = LocalPluginManifest.Load(finalManifestFile) ?? - throw new Exception("Plugin had no valid manifest after copy"); - - Log.Information("Installed plugin {InternalName} (testing={UseTesting})", tempManifest.Name, useTesting); - var plugin = await this.LoadPluginAsync(finalDllFile, finalManifest, reason); - - this.NotifyinstalledPluginsListChanged(); - return plugin; } - catch + + var dllFile = LocalPluginManifest.GetPluginFile(outputDir, repoManifest); + var manifestFile = LocalPluginManifest.GetManifestFile(dllFile); + + // We need to save the repoManifest due to how the repo fills in some fields that authors are not expected to use. + Util.WriteAllTextSafe(manifestFile.FullName, JsonConvert.SerializeObject(repoManifest, Formatting.Indented)); + + // Reload as a local manifest, add some attributes, and save again. + var manifest = LocalPluginManifest.Load(manifestFile); + + if (manifest == null) + throw new Exception("Plugin had no valid manifest"); + + if (manifest.InternalName != repoManifest.InternalName) { - // Attempt to clean up if we can - try - { - outputDir.Delete(true); - } - catch - { - // Write marker file if we can't, we'll try to do it at the next start - File.WriteAllText(Path.Combine(pluginVersionsDir.FullName, BrokenMarkerFileName), string.Empty); - } + Directory.Delete(outputDir.FullName, true); + throw new Exception( + $"Distributed internal name does not match repo internal name: {manifest.InternalName} - {repoManifest.InternalName}"); + } - throw; - } - finally + if (manifest.WorkingPluginId != Guid.Empty) + throw new Exception("Plugin shall not specify a WorkingPluginId"); + + manifest.WorkingPluginId = inheritedWorkingPluginId ?? Guid.NewGuid(); + + if (useTesting) { - tempOutputDir.Delete(true); + manifest.Testing = true; } + + // Document the url the plugin was installed from + manifest.InstalledFromUrl = repoManifest.SourceRepo.IsThirdParty ? repoManifest.SourceRepo.PluginMasterUrl : SpecialPluginSource.MainRepo; + + manifest.Save(manifestFile, "installation"); + + Log.Information($"Installed plugin {manifest.Name} (testing={useTesting})"); + + var plugin = await this.LoadPluginAsync(dllFile, manifest, reason); + + this.NotifyinstalledPluginsListChanged(); + return plugin; } - + /// <summary> /// Load a plugin. /// </summary> @@ -1588,8 +1557,7 @@ internal class PluginManager : IInternalDisposableService /// <returns>The loaded plugin.</returns> private async Task<LocalPlugin> LoadPluginAsync(FileInfo dllFile, LocalPluginManifest manifest, PluginLoadReason reason, bool isDev = false, bool isBoot = false, bool doNotLoad = false) { - // TODO: Split this function - it should only take care of adding the plugin to the list, not loading itself, that should be done through the plugin instance - + var name = manifest?.Name ?? dllFile.Name; var loadPlugin = !doNotLoad; LocalPlugin? plugin; @@ -1600,34 +1568,17 @@ internal class PluginManager : IInternalDisposableService throw new Exception("No internal name"); } - // Track the plugin as soon as it is instantiated to prevent it from being loaded twice, - // if the installer or DevPlugin scanner is attempting to add plugins while we are still loading boot plugins - lock (this.pluginListLock) + if (isDev) { - // Check if this plugin is already loaded - if (this.installedPluginsList.Any(lp => lp.DllFile.FullName == dllFile.FullName)) - throw new InvalidOperationException("Plugin at the provided path is already loaded"); - - if (isDev) - { - Log.Information("Loading dev plugin {Name}", manifest.InternalName); - plugin = new LocalDevPlugin(dllFile, manifest); - - // This is a dev plugin - turn ImGui asserts on by default if we haven't chosen yet - // TODO(goat): Re-enable this when we have better tracing for what was rendering when - // this.configuration.ImGuiAssertsEnabledAtStartup ??= true; - } - else - { - Log.Information("Loading plugin {Name}", manifest.InternalName); - plugin = new LocalPlugin(dllFile, manifest); - } - - this.installedPluginsList.Add(plugin); + Log.Information($"Loading dev plugin {name}"); + plugin = new LocalDevPlugin(dllFile, manifest); } - - Log.Verbose("Starting to load plugin {Name} at {FileLocation}", manifest.InternalName, dllFile.FullName); - + else + { + Log.Information($"Loading plugin {name}"); + plugin = new LocalPlugin(dllFile, manifest); + } + // Perform a migration from InternalName to GUIDs. The plugin should definitely have a GUID here. // This will also happen if you are installing a plugin with the installer, and that's intended! // It means that, if you have a profile which has unsatisfied plugins, installing a matching plugin will @@ -1635,7 +1586,7 @@ internal class PluginManager : IInternalDisposableService if (plugin.EffectiveWorkingPluginId == Guid.Empty) throw new Exception("Plugin should have a WorkingPluginId at this point"); this.profileManager.MigrateProfilesToGuidsForPlugin(plugin.Manifest.InternalName, plugin.EffectiveWorkingPluginId); - + var wantedByAnyProfile = false; // Now, if this is a devPlugin, figure out if we want to load it @@ -1651,11 +1602,11 @@ internal class PluginManager : IInternalDisposableService // We don't know about this plugin, so we don't want to do anything here. // The code below will take care of it and add it with the default value. Log.Verbose("DevPlugin {Name} not wanted in default plugin", plugin.Manifest.InternalName); - + // Check if any profile wants this plugin. We need to do this here, since we want to allow loading a dev plugin if a non-default profile wants it active. // Note that this will not add the plugin to the default profile. That's done below in any other case. wantedByAnyProfile = await this.profileManager.GetWantStateAsync(plugin.EffectiveWorkingPluginId, plugin.Manifest.InternalName, false, false); - + // If it is wanted by any other profile, we do want to load it. if (wantedByAnyProfile) loadPlugin = true; @@ -1702,12 +1653,12 @@ internal class PluginManager : IInternalDisposableService #pragma warning disable CS0618 var defaultState = manifest?.Disabled != true && loadPlugin; #pragma warning restore CS0618 - + // Plugins that aren't in any profile will be added to the default profile with this call. // We are skipping a double-lookup for dev plugins that are wanted by non-default profiles, as noted above. wantedByAnyProfile = wantedByAnyProfile || await this.profileManager.GetWantStateAsync(plugin.EffectiveWorkingPluginId, plugin.Manifest.InternalName, defaultState); Log.Information("{Name} defaultState: {State} wantedByAnyProfile: {WantedByAny} loadPlugin: {LoadPlugin}", plugin.Manifest.InternalName, defaultState, wantedByAnyProfile, loadPlugin); - + if (loadPlugin) { try @@ -1718,52 +1669,73 @@ internal class PluginManager : IInternalDisposableService } else { - Log.Verbose("{Name} not loaded, wantToLoad:{WantedByAnyProfile} orphaned:{IsOrphaned}", manifest.InternalName, wantedByAnyProfile, plugin.IsOrphaned); + Log.Verbose($"{name} not loaded, wantToLoad:{wantedByAnyProfile} orphaned:{plugin.IsOrphaned}"); } } catch (InvalidPluginException) { + // NET8 CHORE + // PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _); throw; } catch (BannedPluginException) { // Out of date plugins get added so they can be updated. - Log.Information("{InternalName}: Plugin was banned, adding anyways", plugin.Manifest.InternalName); + Log.Information($"Plugin was banned, adding anyways: {dllFile.Name}"); } catch (Exception ex) { if (plugin.IsDev) { // Dev plugins always get added to the list so they can be fiddled with in the UI - Log.Information(ex, "{InternalName}: Dev plugin failed to load", plugin.Manifest.InternalName); + Log.Information(ex, $"Dev plugin failed to load, adding anyways: {dllFile.Name}"); + + // NOTE(goat): This can't work - plugins don't "unload" if they fail to load. + // plugin.Disable(); // Disable here, otherwise you can't enable+load later } else if (plugin.IsOutdated) { // Out of date plugins get added, so they can be updated. - Log.Information(ex, "{InternalName}: Plugin was outdated", plugin.Manifest.InternalName); + Log.Information(ex, $"Plugin was outdated, adding anyways: {dllFile.Name}"); } else if (plugin.IsOrphaned) { // Orphaned plugins get added, so that users aren't confused. - Log.Information(ex, "{InternalName}: Plugin was orphaned", plugin.Manifest.InternalName); + Log.Information(ex, $"Plugin was orphaned, adding anyways: {dllFile.Name}"); } else if (isBoot) { // During boot load, plugins always get added to the list so they can be fiddled with in the UI - Log.Information(ex, "{InternalName}: Regular plugin failed to load", plugin.Manifest.InternalName); + Log.Information(ex, $"Regular plugin failed to load, adding anyways: {dllFile.Name}"); + + // NOTE(goat): This can't work - plugins don't "unload" if they fail to load. + // plugin.Disable(); // Disable here, otherwise you can't enable+load later } else if (!plugin.CheckPolicy()) { // During boot load, plugins always get added to the list so they can be fiddled with in the UI - Log.Information(ex, "{InternalName}: Plugin not loaded due to policy", plugin.Manifest.InternalName); + Log.Information(ex, $"Plugin not loaded due to policy, adding anyways: {dllFile.Name}"); + + // NOTE(goat): This can't work - plugins don't "unload" if they fail to load. + // plugin.Disable(); // Disable here, otherwise you can't enable+load later } else { + // NET8 CHORE + // PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _); throw; } } } + if (plugin == null) + throw new Exception("Plugin was null when adding to list"); + + lock (this.pluginListLock) + { + this.installedPluginsList.Add(plugin); + } + // Mark as finished loading if (manifest.LoadSync) this.StartupLoadTracking?.Finish(manifest.InternalName); @@ -1774,11 +1746,11 @@ internal class PluginManager : IInternalDisposableService private void DetectAvailablePluginUpdates() { Log.Debug("Starting plugin update check..."); - + lock (this.pluginListLock) { this.updatablePluginsList.Clear(); - + foreach (var plugin in this.installedPluginsList) { var installedVersion = plugin.IsTesting @@ -1788,7 +1760,6 @@ internal class PluginManager : IInternalDisposableService var updates = this.AvailablePlugins .Where(remoteManifest => plugin.Manifest.InternalName == remoteManifest.InternalName) .Where(remoteManifest => plugin.Manifest.InstalledFromUrl == remoteManifest.SourceRepo.PluginMasterUrl || !remoteManifest.SourceRepo.IsThirdParty) - .Where(remoteManifest => remoteManifest.MinimumDalamudVersion == null || Versioning.GetAssemblyVersionParsed() >= remoteManifest.MinimumDalamudVersion) .Where(remoteManifest => { var useTesting = this.UseTesting(remoteManifest); @@ -1818,12 +1789,12 @@ internal class PluginManager : IInternalDisposableService } } } - + Log.Debug("Update check found {updateCount} available updates.", this.updatablePluginsList.Count); } private void NotifyAvailablePluginsChanged() - { + { this.DetectAvailablePluginUpdates(); this.OnAvailablePluginsChanged?.InvokeSafely(); @@ -1836,6 +1807,20 @@ internal class PluginManager : IInternalDisposableService this.OnInstalledPluginsChanged?.InvokeSafely(); } + private void NotifyPluginsForStateChange(PluginListInvalidationKind kind, IEnumerable<string> affectedInternalNames) + { + foreach (var installedPlugin in this.installedPluginsList) + { + if (!installedPlugin.IsLoaded || installedPlugin.DalamudInterface == null) + continue; + + installedPlugin.DalamudInterface.NotifyActivePluginsChanged( + kind, + // ReSharper disable once PossibleMultipleEnumeration + affectedInternalNames.Contains(installedPlugin.Manifest.InternalName)); + } + } + private void LoadAndStartLoadSyncPlugins() { try @@ -1845,28 +1830,19 @@ internal class PluginManager : IInternalDisposableService _ = this.SetPluginReposFromConfigAsync(false); this.OnInstalledPluginsChanged += () => Task.Run(Troubleshooting.LogTroubleshooting); - Log.Information("Repos loaded!"); + Log.Information("[T3] PM repos OK!"); } using (Timings.Start("PM Cleanup Plugins")) { this.CleanupPlugins(); - Log.Information("Plugin cleanup OK!"); + Log.Information("[T3] PMC OK!"); } using (Timings.Start("PM Load Sync Plugins")) { - var loadAllPlugins = Task.Run(this.LoadAllPlugins) - .ContinueWith(t => - { - if (t.IsFaulted) - { - Log.Error(t.Exception, "Error in LoadAllPlugins()"); - } - - _ = Task.Run(Troubleshooting.LogTroubleshooting); - }); - + var loadAllPlugins = Task.Run(this.LoadAllPlugins); + // We wait for all blocking services and tasks to finish before kicking off the main thread in any mode. // This means that we don't want to block here if this stupid thing isn't enabled. if (this.configuration.IsResumeGameAfterPluginLoad) @@ -1875,35 +1851,37 @@ internal class PluginManager : IInternalDisposableService loadAllPlugins.Wait(); } - Log.Information("Boot load started"); + Log.Information("[T3] PML OK!"); } + + _ = Task.Run(Troubleshooting.LogTroubleshooting); } catch (Exception ex) { Log.Error(ex, "Plugin load failed"); } } - + /// <summary> /// Class representing progress of an update operation. /// </summary> public record PluginUpdateProgress(int PluginsProcessed, int TotalPlugins, IPluginManifest CurrentPluginManifest); - + /// <summary> /// Simple class that tracks the internal names and public names of plugins that we are planning to load at startup, /// and are still actively loading. /// </summary> public class StartupLoadTracker { - private readonly Dictionary<string, string> internalToPublic = []; - private readonly ConcurrentBag<string> allInternalNames = []; - private readonly ConcurrentBag<string> finishedInternalNames = []; - + private readonly Dictionary<string, string> internalToPublic = new(); + private readonly ConcurrentBag<string> allInternalNames = new(); + private readonly ConcurrentBag<string> finishedInternalNames = new(); + /// <summary> /// Gets a value indicating the total load progress. /// </summary> public float Progress => (float)this.finishedInternalNames.Count / this.allInternalNames.Count; - + /// <summary> /// Calculate a set of internal names that are still pending. /// </summary> @@ -1914,7 +1892,7 @@ internal class PluginManager : IInternalDisposableService pending.ExceptWith(this.finishedInternalNames); return pending; } - + /// <summary> /// Track a new plugin. /// </summary> @@ -1925,7 +1903,7 @@ internal class PluginManager : IInternalDisposableService this.internalToPublic[internalName] = publicName; this.allInternalNames.Add(internalName); } - + /// <summary> /// Mark a plugin as finished loading. /// </summary> @@ -1934,7 +1912,7 @@ internal class PluginManager : IInternalDisposableService { this.finishedInternalNames.Add(internalName); } - + /// <summary> /// Get the public name for a given internal name. /// </summary> @@ -1953,3 +1931,114 @@ internal class PluginManager : IInternalDisposableService public static string DalamudPluginUpdateFailed(string name, Version version, string why) => Loc.Localize("DalamudPluginUpdateFailed", " 》 {0} update to v{1} failed ({2}).").Format(name, version, why); } } + +// NET8 CHORE +/* +/// <summary> +/// Class responsible for loading and unloading plugins. +/// This contains the assembly patching functionality to resolve assembly locations. +/// </summary> +internal partial class PluginManager +{ + /// <summary> + /// A mapping of plugin assembly name to patch data. Used to fill in missing data due to loading + /// plugins via byte[]. + /// </summary> + internal static readonly ConcurrentDictionary<string, PluginPatchData> PluginLocations = new(); + + private MonoMod.RuntimeDetour.Hook? assemblyLocationMonoHook; + private MonoMod.RuntimeDetour.Hook? assemblyCodeBaseMonoHook; + + /// <summary> + /// Patch method for internal class RuntimeAssembly.Location, also known as Assembly.Location. + /// This patch facilitates resolving the assembly location for plugins that are loaded via byte[]. + /// It should never be called manually. + /// </summary> + /// <param name="orig">A delegate that acts as the original method.</param> + /// <param name="self">The equivalent of `this`.</param> + /// <returns>The plugin location, or the result from the original method.</returns> + private static string AssemblyLocationPatch(Func<Assembly, string?> orig, Assembly self) + { + var result = orig(self); + + if (string.IsNullOrEmpty(result)) + { + foreach (var assemblyName in GetStackFrameAssemblyNames()) + { + if (PluginLocations.TryGetValue(assemblyName, out var data)) + { + result = data.Location; + break; + } + } + } + + result ??= string.Empty; + + Log.Verbose($"Assembly.Location // {self.FullName} // {result}"); + return result; + } + + /// <summary> + /// Patch method for internal class RuntimeAssembly.CodeBase, also known as Assembly.CodeBase. + /// This patch facilitates resolving the assembly location for plugins that are loaded via byte[]. + /// It should never be called manually. + /// </summary> + /// <param name="orig">A delegate that acts as the original method.</param> + /// <param name="self">The equivalent of `this`.</param> + /// <returns>The plugin code base, or the result from the original method.</returns> + private static string AssemblyCodeBasePatch(Func<Assembly, string?> orig, Assembly self) + { + var result = orig(self); + + if (string.IsNullOrEmpty(result)) + { + foreach (var assemblyName in GetStackFrameAssemblyNames()) + { + if (PluginLocations.TryGetValue(assemblyName, out var data)) + { + result = data.CodeBase; + break; + } + } + } + + result ??= string.Empty; + + Log.Verbose($"Assembly.CodeBase // {self.FullName} // {result}"); + return result; + } + + private static IEnumerable<string> GetStackFrameAssemblyNames() + { + var stackTrace = new StackTrace(); + var stackFrames = stackTrace.GetFrames(); + + foreach (var stackFrame in stackFrames) + { + var methodBase = stackFrame.GetMethod(); + if (methodBase == null) + continue; + + yield return methodBase.Module.Assembly.FullName!; + } + } + + private void ApplyPatches() + { + var targetType = typeof(PluginManager).Assembly.GetType(); + + var locationTarget = targetType.GetProperty(nameof(Assembly.Location))!.GetGetMethod(); + var locationPatch = typeof(PluginManager).GetMethod(nameof(AssemblyLocationPatch), BindingFlags.NonPublic | BindingFlags.Static); + this.assemblyLocationMonoHook = new MonoMod.RuntimeDetour.Hook(locationTarget, locationPatch); + +#pragma warning disable CS0618 +#pragma warning disable SYSLIB0012 + var codebaseTarget = targetType.GetProperty(nameof(Assembly.CodeBase))?.GetGetMethod(); +#pragma warning restore SYSLIB0012 +#pragma warning restore CS0618 + var codebasePatch = typeof(PluginManager).GetMethod(nameof(AssemblyCodeBasePatch), BindingFlags.NonPublic | BindingFlags.Static); + this.assemblyCodeBaseMonoHook = new MonoMod.RuntimeDetour.Hook(codebaseTarget, codebasePatch); + } +} +*/ diff --git a/Dalamud/Plugin/Internal/PluginValidator.cs b/Dalamud/Plugin/Internal/PluginValidator.cs index 4c6bb9fef..b2cbe5520 100644 --- a/Dalamud/Plugin/Internal/PluginValidator.cs +++ b/Dalamud/Plugin/Internal/PluginValidator.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Dalamud.Game.Command; @@ -11,7 +11,7 @@ namespace Dalamud.Plugin.Internal; /// </summary> internal static class PluginValidator { - private static readonly char[] LineSeparator = [' ', '\n', '\r']; + private static readonly char[] LineSeparator = new[] { ' ', '\n', '\r' }; /// <summary> /// Represents the severity of a validation problem. diff --git a/Dalamud/Plugin/Internal/Profiles/PluginManagementCommandHandler.cs b/Dalamud/Plugin/Internal/Profiles/PluginManagementCommandHandler.cs deleted file mode 100644 index 6608f2669..000000000 --- a/Dalamud/Plugin/Internal/Profiles/PluginManagementCommandHandler.cs +++ /dev/null @@ -1,387 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -using CheapLoc; - -using Dalamud.Game; -using Dalamud.Game.Command; -using Dalamud.Game.Gui; -using Dalamud.Plugin.Internal.Types; -using Dalamud.Plugin.Services; -using Dalamud.Utility; - -using Serilog; - -namespace Dalamud.Plugin.Internal.Profiles; - -/// <summary> -/// Service responsible for profile-related chat commands. -/// </summary> -[ServiceManager.EarlyLoadedService] -internal class PluginManagementCommandHandler : IInternalDisposableService -{ -#pragma warning disable SA1600 - public const string CommandEnableProfile = "/xlenablecollection"; - public const string CommandDisableProfile = "/xldisablecollection"; - public const string CommandToggleProfile = "/xltogglecollection"; - - public const string CommandEnablePlugin = "/xlenableplugin"; - public const string CommandDisablePlugin = "/xldisableplugin"; - public const string CommandTogglePlugin = "/xltoggleplugin"; -#pragma warning restore SA1600 - - private static readonly string LegacyCommandEnable = CommandEnableProfile.Replace("collection", "profile"); - private static readonly string LegacyCommandDisable = CommandDisableProfile.Replace("collection", "profile"); - private static readonly string LegacyCommandToggle = CommandToggleProfile.Replace("collection", "profile"); - - private readonly CommandManager cmd; - private readonly ProfileManager profileManager; - private readonly PluginManager pluginManager; - private readonly ChatGui chat; - private readonly Framework framework; - - private List<(Target Target, PluginCommandOperation Operation)> commandQueue = []; - - /// <summary> - /// Initializes a new instance of the <see cref="PluginManagementCommandHandler"/> class. - /// </summary> - /// <param name="cmd">Command handler.</param> - /// <param name="profileManager">Profile manager.</param> - /// <param name="pluginManager">Plugin manager.</param> - /// <param name="chat">Chat handler.</param> - /// <param name="framework">Framework.</param> - [ServiceManager.ServiceConstructor] - public PluginManagementCommandHandler( - CommandManager cmd, - ProfileManager profileManager, - PluginManager pluginManager, - ChatGui chat, - Framework framework) - { - this.cmd = cmd; - this.profileManager = profileManager; - this.pluginManager = pluginManager; - this.chat = chat; - this.framework = framework; - - this.cmd.AddHandler(CommandEnableProfile, new CommandInfo(this.OnEnableProfile) - { - HelpMessage = Loc.Localize("ProfileCommandsEnableHint", "Enable a collection. Usage: /xlenablecollection \"Collection Name\""), - ShowInHelp = true, - }); - - this.cmd.AddHandler(CommandDisableProfile, new CommandInfo(this.OnDisableProfile) - { - HelpMessage = Loc.Localize("ProfileCommandsDisableHint", "Disable a collection. Usage: /xldisablecollection \"Collection Name\""), - ShowInHelp = true, - }); - - this.cmd.AddHandler(CommandToggleProfile, new CommandInfo(this.OnToggleProfile) - { - HelpMessage = Loc.Localize("ProfileCommandsToggleHint", "Toggle a collection. Usage: /xltogglecollection \"Collection Name\""), - ShowInHelp = true, - }); - - this.cmd.AddHandler(LegacyCommandEnable, new CommandInfo(this.OnEnableProfile) - { - ShowInHelp = false, - }); - - this.cmd.AddHandler(LegacyCommandDisable, new CommandInfo(this.OnDisableProfile) - { - ShowInHelp = false, - }); - - this.cmd.AddHandler(LegacyCommandToggle, new CommandInfo(this.OnToggleProfile) - { - ShowInHelp = false, - }); - - this.cmd.AddHandler(CommandEnablePlugin, new CommandInfo(this.OnEnablePlugin) - { - HelpMessage = Loc.Localize("PluginCommandsEnableHint", "Enable a plugin. Usage: /xlenableplugin \"Plugin Name\""), - ShowInHelp = true, - }); - - this.cmd.AddHandler(CommandDisablePlugin, new CommandInfo(this.OnDisablePlugin) - { - HelpMessage = Loc.Localize("PluginCommandsDisableHint", "Disable a plugin. Usage: /xldisableplugin \"Plugin Name\""), - ShowInHelp = true, - }); - - this.cmd.AddHandler(CommandTogglePlugin, new CommandInfo(this.OnTogglePlugin) - { - HelpMessage = Loc.Localize("PluginCommandsToggleHint", "Toggle a plugin. Usage: /xltoggleplugin \"Plugin Name\""), - ShowInHelp = true, - }); - - this.framework.Update += this.FrameworkOnUpdate; - } - - private enum PluginCommandOperation - { - Enable, - Disable, - Toggle, - } - - /// <inheritdoc/> - void IInternalDisposableService.DisposeService() - { - this.cmd.RemoveHandler(CommandEnableProfile); - this.cmd.RemoveHandler(CommandDisableProfile); - this.cmd.RemoveHandler(CommandToggleProfile); - this.cmd.RemoveHandler(LegacyCommandEnable); - this.cmd.RemoveHandler(LegacyCommandDisable); - this.cmd.RemoveHandler(LegacyCommandToggle); - - this.framework.Update += this.FrameworkOnUpdate; - } - - private void HandleProfileOperation(string profileName, PluginCommandOperation operation) - { - var profile = this.profileManager.Profiles.FirstOrDefault( - x => x.Name == profileName); - if (profile == null || profile.IsDefaultProfile) - return; - - switch (operation) - { - case PluginCommandOperation.Enable: - if (!profile.IsEnabled) - Task.Run(() => profile.SetStateAsync(true, false)).GetAwaiter().GetResult(); - break; - case PluginCommandOperation.Disable: - if (profile.IsEnabled) - Task.Run(() => profile.SetStateAsync(false, false)).GetAwaiter().GetResult(); - break; - case PluginCommandOperation.Toggle: - Task.Run(() => profile.SetStateAsync(!profile.IsEnabled, false)).GetAwaiter().GetResult(); - break; - default: - throw new ArgumentOutOfRangeException(nameof(operation), operation, null); - } - - this.chat.Print( - profile.IsEnabled - ? Loc.Localize("ProfileCommandsEnabling", "Enabling collection \"{0}\"...").Format(profile.Name) - : Loc.Localize("ProfileCommandsDisabling", "Disabling collection \"{0}\"...").Format(profile.Name)); - - Task.Run(this.profileManager.ApplyAllWantStatesAsync).ContinueWith(t => - { - if (!t.IsCompletedSuccessfully && t.Exception != null) - { - Log.Error(t.Exception, "Could not apply profiles through commands"); - this.chat.PrintError(Loc.Localize("ProfileCommandsApplyFailed", "Failed to apply your collections. Please check the console for errors.")); - } - else - { - this.chat.Print(Loc.Localize("ProfileCommandsApplySuccess", "Collections applied.")); - } - }); - } - - private bool HandlePluginOperation(Guid workingPluginId, PluginCommandOperation operation) - { - var plugin = this.pluginManager.InstalledPlugins.FirstOrDefault(x => x.EffectiveWorkingPluginId == workingPluginId); - if (plugin == null) - return true; - - switch (plugin.State) - { - // Ignore if the plugin is in a fail state - case PluginState.LoadError or PluginState.UnloadError: - this.chat.Print(Loc.Localize("PluginCommandsFailed", "Plugin \"{0}\" has previously failed to load/unload, not continuing.").Format(plugin.Name)); - return true; - - case PluginState.Loaded when operation == PluginCommandOperation.Enable: - this.chat.Print(Loc.Localize("PluginCommandsAlreadyEnabled", "Plugin \"{0}\" is already enabled.").Format(plugin.Name)); - return true; - case PluginState.Unloaded when operation == PluginCommandOperation.Disable: - this.chat.Print(Loc.Localize("PluginCommandsAlreadyDisabled", "Plugin \"{0}\" is already disabled.").Format(plugin.Name)); - return true; - - // Defer if this plugin is busy right now - case PluginState.Loading or PluginState.Unloading: - return false; - } - - void Continuation(Task t, string onSuccess, string onError) - { - if (!t.IsCompletedSuccessfully && t.Exception != null) - { - Log.Error(t.Exception, "Plugin command operation failed for plugin {PluginName}", plugin.Name); - this.chat.PrintError(onError); - return; - } - - this.chat.Print(onSuccess); - } - - if (operation == PluginCommandOperation.Toggle) - { - operation = plugin.State == PluginState.Loaded ? PluginCommandOperation.Disable : PluginCommandOperation.Enable; - } - - switch (operation) - { - case PluginCommandOperation.Enable: - this.chat.Print(Loc.Localize("PluginCommandsEnabling", "Enabling plugin \"{0}\"...").Format(plugin.Name)); - Task.Run(() => plugin.LoadAsync(PluginLoadReason.Installer)) - .ContinueWith(t => Continuation(t, - Loc.Localize("PluginCommandsEnableSuccess", "Plugin \"{0}\" enabled.").Format(plugin.Name), - Loc.Localize("PluginCommandsEnableFailed", "Failed to enable plugin \"{0}\". Please check the console for errors.").Format(plugin.Name))) - .ConfigureAwait(false); - break; - case PluginCommandOperation.Disable: - this.chat.Print(Loc.Localize("PluginCommandsDisabling", "Disabling plugin \"{0}\"...").Format(plugin.Name)); - Task.Run(() => plugin.UnloadAsync()) - .ContinueWith(t => Continuation(t, - Loc.Localize("PluginCommandsDisableSuccess", "Plugin \"{0}\" disabled.").Format(plugin.Name), - Loc.Localize("PluginCommandsDisableFailed", "Failed to disable plugin \"{0}\". Please check the console for errors.").Format(plugin.Name))) - .ConfigureAwait(false); - break; - default: - throw new ArgumentOutOfRangeException(nameof(operation), operation, null); - } - - return true; - } - - private void FrameworkOnUpdate(IFramework framework1) - { - if (this.profileManager.IsBusy) - { - return; - } - - if (this.commandQueue.Count > 0) - { - var op = this.commandQueue[0]; - - var remove = true; - switch (op.Target) - { - case PluginTarget pluginTarget: - remove = this.HandlePluginOperation(pluginTarget.WorkingPluginId, op.Operation); - break; - case ProfileTarget profileTarget: - this.HandleProfileOperation(profileTarget.ProfileName, op.Operation); - break; - } - - if (remove) - { - this.commandQueue.RemoveAt(0); - } - } - } - - private void OnEnableProfile(string command, string arguments) - { - var name = this.ValidateProfileName(arguments); - if (name == null) - return; - - var target = new ProfileTarget(name); - this.commandQueue = this.commandQueue.Where(x => x.Target != target).ToList(); - this.commandQueue.Add((target, PluginCommandOperation.Enable)); - } - - private void OnDisableProfile(string command, string arguments) - { - var name = this.ValidateProfileName(arguments); - if (name == null) - return; - - var target = new ProfileTarget(name); - this.commandQueue = this.commandQueue.Where(x => x.Target != target).ToList(); - this.commandQueue.Add((target, PluginCommandOperation.Disable)); - } - - private void OnToggleProfile(string command, string arguments) - { - var name = this.ValidateProfileName(arguments); - if (name == null) - return; - - var target = new ProfileTarget(name); - this.commandQueue.Add((target, PluginCommandOperation.Toggle)); - } - - private void OnEnablePlugin(string command, string arguments) - { - var plugin = this.ValidatePluginName(arguments); - if (plugin == null) - return; - - var target = new PluginTarget(plugin.EffectiveWorkingPluginId); - this.commandQueue - .RemoveAll(x => x.Target == target); - this.commandQueue.Add((target, PluginCommandOperation.Enable)); - } - - private void OnDisablePlugin(string command, string arguments) - { - var plugin = this.ValidatePluginName(arguments); - if (plugin == null) - return; - - var target = new PluginTarget(plugin.EffectiveWorkingPluginId); - this.commandQueue - .RemoveAll(x => x.Target == target); - this.commandQueue.Add((target, PluginCommandOperation.Disable)); - } - - private void OnTogglePlugin(string command, string arguments) - { - var plugin = this.ValidatePluginName(arguments); - if (plugin == null) - return; - - var target = new PluginTarget(plugin.EffectiveWorkingPluginId); - this.commandQueue - .RemoveAll(x => x.Target == target); - this.commandQueue.Add((target, PluginCommandOperation.Toggle)); - } - - private string? ValidateProfileName(string arguments) - { - var name = arguments.Replace("\"", string.Empty); - if (this.profileManager.Profiles.All(x => x.Name != name)) - { - this.chat.PrintError(Loc.Localize("ProfileCommandsNotFound", "Collection \"{0}\" not found.").Format(name)); - return null; - } - - return name; - } - - private LocalPlugin? ValidatePluginName(string arguments) - { - var name = arguments.Replace("\"", string.Empty); - var targetPlugin = - this.pluginManager.InstalledPlugins.FirstOrDefault(x => x.InternalName == name || x.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase)); - - if (targetPlugin == null) - { - this.chat.PrintError(Loc.Localize("PluginCommandsNotFound", "Plugin \"{0}\" not found.").Format(name)); - return null; - } - - if (!this.profileManager.IsInDefaultProfile(targetPlugin.EffectiveWorkingPluginId)) - { - this.chat.PrintError(Loc.Localize("PluginCommandsNotInDefaultProfile", "Plugin \"{0}\" is in a collection and can't be managed through commands. Manage the collection instead.") - .Format(targetPlugin.Name)); - } - - return targetPlugin; - } - - private abstract record Target; - - private record PluginTarget(Guid WorkingPluginId) : Target; - - private record ProfileTarget(string ProfileName) : Target; -} diff --git a/Dalamud/Plugin/Internal/Profiles/Profile.cs b/Dalamud/Plugin/Internal/Profiles/Profile.cs index 9d931d9ed..2c254167e 100644 --- a/Dalamud/Plugin/Internal/Profiles/Profile.cs +++ b/Dalamud/Plugin/Internal/Profiles/Profile.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; @@ -14,7 +14,7 @@ namespace Dalamud.Plugin.Internal.Profiles; /// </summary> internal class Profile { - private static readonly ModuleLog Log = ModuleLog.Create<Profile>(); + private static readonly ModuleLog Log = new("PROFILE"); private readonly ProfileManager manager; private readonly ProfileModelV1 modelV1; @@ -24,8 +24,8 @@ internal class Profile /// </summary> /// <param name="manager">The manager this profile belongs to.</param> /// <param name="model">The model this profile is tied to.</param> - /// <param name="isDefaultProfile">Whether this profile is the default profile.</param> - /// <param name="isBoot">Whether this profile was initialized during bootup.</param> + /// <param name="isDefaultProfile">Whether or not this profile is the default profile.</param> + /// <param name="isBoot">Whether or not this profile was initialized during bootup.</param> public Profile(ProfileManager manager, ProfileModel model, bool isDefaultProfile, bool isBoot) { this.manager = manager; @@ -33,18 +33,6 @@ internal class Profile this.modelV1 = model as ProfileModelV1 ?? throw new ArgumentException("Model was null or unhandled version"); - // Migrate "policy" - if (this.modelV1.StartupPolicy == null) - { -#pragma warning disable CS0618 - this.modelV1.StartupPolicy = this.modelV1.AlwaysEnableOnBoot - ? ProfileModelV1.ProfileStartupPolicy.AlwaysEnable - : ProfileModelV1.ProfileStartupPolicy.RememberState; -#pragma warning restore CS0618 - - Service<DalamudConfiguration>.Get().QueueSave(); - } - // We don't actually enable plugins here, PM will do it on bootup if (isDefaultProfile) { @@ -52,40 +40,20 @@ internal class Profile this.IsEnabled = this.modelV1.IsEnabled = true; this.Name = this.modelV1.Name = "DEFAULT"; } - else if (isBoot) + else if (this.modelV1.AlwaysEnableOnBoot && isBoot) { - if (this.modelV1.StartupPolicy == ProfileModelV1.ProfileStartupPolicy.AlwaysEnable) - { - this.IsEnabled = true; - Log.Verbose("{Guid} set enabled because always enable", this.modelV1.Guid); - } - else if (this.modelV1.StartupPolicy == ProfileModelV1.ProfileStartupPolicy.AlwaysDisable) - { - this.IsEnabled = false; - Log.Verbose("{Guid} set disabled because always disable", this.modelV1.Guid); - } - else if (this.modelV1.StartupPolicy == ProfileModelV1.ProfileStartupPolicy.RememberState) - { - this.IsEnabled = this.modelV1.IsEnabled; - Log.Verbose("{Guid} set enabled because remember", this.modelV1.Guid); - } - else - { - throw new ArgumentOutOfRangeException(nameof(this.modelV1.StartupPolicy)); - } + this.IsEnabled = true; + Log.Verbose("{Guid} set enabled because bootup", this.modelV1.Guid); + } + else if (this.modelV1.IsEnabled) + { + this.IsEnabled = true; + Log.Verbose("{Guid} set enabled because remember", this.modelV1.Guid); } else { Log.Verbose("{Guid} not enabled", this.modelV1.Guid); } - - Log.Verbose("Init profile {Guid} ({Name}) enabled:{Enabled} policy:{Policy} plugins:{NumPlugins} will be enabled:{Status}", - this.modelV1.Guid, - this.modelV1.Name, - this.modelV1.IsEnabled, - this.modelV1.StartupPolicy, - this.modelV1.Plugins.Count, - this.IsEnabled); } /// <summary> @@ -104,12 +72,12 @@ internal class Profile /// <summary> /// Gets or sets a value indicating whether this profile shall always be enabled at boot. /// </summary> - public ProfileModelV1.ProfileStartupPolicy StartupPolicy + public bool AlwaysEnableAtBoot { - get => this.modelV1.StartupPolicy ?? ProfileModelV1.ProfileStartupPolicy.RememberState; + get => this.modelV1.AlwaysEnableOnBoot; set { - this.modelV1.StartupPolicy = value; + this.modelV1.AlwaysEnableOnBoot = value; Service<DalamudConfiguration>.Get().QueueSave(); } } @@ -120,12 +88,12 @@ internal class Profile public Guid Guid => this.modelV1.Guid; /// <summary> - /// Gets a value indicating whether this profile is currently enabled. + /// Gets a value indicating whether or not this profile is currently enabled. /// </summary> public bool IsEnabled { get; private set; } /// <summary> - /// Gets a value indicating whether this profile is the default profile. + /// Gets a value indicating whether or not this profile is the default profile. /// </summary> public bool IsDefaultProfile { get; } @@ -151,8 +119,8 @@ internal class Profile /// Set this profile's state. This cannot be called for the default profile. /// This will block until all states have been applied. /// </summary> - /// <param name="enabled">Whether the profile is enabled.</param> - /// <param name="apply">Whether the current state should immediately be applied.</param> + /// <param name="enabled">Whether or not the profile is enabled.</param> + /// <param name="apply">Whether or not the current state should immediately be applied.</param> /// <exception cref="InvalidOperationException">Thrown when an untoggleable profile is toggled.</exception> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public async Task SetStateAsync(bool enabled, bool apply = true) @@ -190,13 +158,13 @@ internal class Profile /// </summary> /// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="internalName">The internal name of the plugin, if available.</param> - /// <param name="state">Whether the plugin should be enabled.</param> - /// <param name="apply">Whether the current state should immediately be applied.</param> + /// <param name="state">Whether or not the plugin should be enabled.</param> + /// <param name="apply">Whether or not the current state should immediately be applied.</param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public async Task AddOrUpdateAsync(Guid workingPluginId, string? internalName, bool state, bool apply = true) { Debug.Assert(workingPluginId != Guid.Empty, "Trying to add plugin with empty guid"); - + lock (this) { var existing = this.modelV1.Plugins.FirstOrDefault(x => x.WorkingPluginId == workingPluginId); @@ -214,9 +182,9 @@ internal class Profile }); } } - + Log.Information("Adding plugin {Plugin}({Guid}) to profile {Profile} with state {State}", internalName, workingPluginId, this.Guid, state); - + // We need to remove this plugin from the default profile, if it declares it. if (!this.IsDefaultProfile && this.manager.DefaultProfile.WantsPlugin(workingPluginId) != null) { @@ -235,9 +203,9 @@ internal class Profile /// This will block until all states have been applied. /// </summary> /// <param name="workingPluginId">The ID of the plugin.</param> - /// <param name="apply">Whether the current state should immediately be applied.</param> + /// <param name="apply">Whether or not the current state should immediately be applied.</param> /// <param name="checkDefault"> - /// Whether to throw when a plugin is removed from the default profile, without being in another profile. + /// Whether or not to throw when a plugin is removed from the default profile, without being in another profile. /// Used to prevent orphan plugins, but can be ignored when cleaning up old entries. /// </param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> @@ -253,7 +221,7 @@ internal class Profile if (!this.modelV1.Plugins.Remove(entry)) throw new Exception("Couldn't remove plugin from model collection"); } - + Log.Information("Removing plugin {Plugin}({Guid}) from profile {Profile}", entry.InternalName, entry.WorkingPluginId, this.Guid); // We need to add this plugin back to the default profile, if we were the last profile to have it. @@ -292,7 +260,7 @@ internal class Profile // TODO: What should happen if a profile has a GUID locked in, but the plugin // is not installed anymore? That probably means that the user uninstalled the plugin // and is now reinstalling it. We should still satisfy that and update the ID. - + if (plugin.InternalName == internalName && plugin.WorkingPluginId == Guid.Empty) { plugin.WorkingPluginId = newGuid; @@ -300,7 +268,7 @@ internal class Profile } } } - + Service<DalamudConfiguration>.Get().QueueSave(); } @@ -351,7 +319,7 @@ internal sealed class PluginNotFoundException : ProfileOperationException : base($"The plugin '{internalName}' was not found in the profile") { } - + /// <summary> /// Initializes a new instance of the <see cref="PluginNotFoundException"/> class. /// </summary> diff --git a/Dalamud/Plugin/Internal/Profiles/ProfileCommandHandler.cs b/Dalamud/Plugin/Internal/Profiles/ProfileCommandHandler.cs new file mode 100644 index 000000000..7b7b4cfd0 --- /dev/null +++ b/Dalamud/Plugin/Internal/Profiles/ProfileCommandHandler.cs @@ -0,0 +1,204 @@ +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +using CheapLoc; +using Dalamud.Game; +using Dalamud.Game.Command; +using Dalamud.Game.Gui; +using Dalamud.Plugin.Services; +using Dalamud.Utility; +using Serilog; + +namespace Dalamud.Plugin.Internal.Profiles; + +/// <summary> +/// Service responsible for profile-related chat commands. +/// </summary> +[ServiceManager.EarlyLoadedService] +internal class ProfileCommandHandler : IInternalDisposableService +{ +#pragma warning disable SA1600 + public const string CommandEnable = "/xlenablecollection"; + public const string CommandDisable = "/xldisablecollection"; + public const string CommandToggle = "/xltogglecollection"; +#pragma warning restore SA1600 + + private static readonly string LegacyCommandEnable = CommandEnable.Replace("collection", "profile"); + private static readonly string LegacyCommandDisable = CommandDisable.Replace("collection", "profile"); + private static readonly string LegacyCommandToggle = CommandToggle.Replace("collection", "profile"); + + private readonly CommandManager cmd; + private readonly ProfileManager profileManager; + private readonly ChatGui chat; + private readonly Framework framework; + + private List<(string, ProfileOp)> queue = new(); + + /// <summary> + /// Initializes a new instance of the <see cref="ProfileCommandHandler"/> class. + /// </summary> + /// <param name="cmd">Command handler.</param> + /// <param name="profileManager">Profile manager.</param> + /// <param name="chat">Chat handler.</param> + /// <param name="framework">Framework.</param> + [ServiceManager.ServiceConstructor] + public ProfileCommandHandler(CommandManager cmd, ProfileManager profileManager, ChatGui chat, Framework framework) + { + this.cmd = cmd; + this.profileManager = profileManager; + this.chat = chat; + this.framework = framework; + + this.cmd.AddHandler(CommandEnable, new CommandInfo(this.OnEnableProfile) + { + HelpMessage = Loc.Localize("ProfileCommandsEnableHint", "Enable a collection. Usage: /xlenablecollection \"Collection Name\""), + ShowInHelp = true, + }); + + this.cmd.AddHandler(CommandDisable, new CommandInfo(this.OnDisableProfile) + { + HelpMessage = Loc.Localize("ProfileCommandsDisableHint", "Disable a collection. Usage: /xldisablecollection \"Collection Name\""), + ShowInHelp = true, + }); + + this.cmd.AddHandler(CommandToggle, new CommandInfo(this.OnToggleProfile) + { + HelpMessage = Loc.Localize("ProfileCommandsToggleHint", "Toggle a collection. Usage: /xltogglecollection \"Collection Name\""), + ShowInHelp = true, + }); + + this.cmd.AddHandler(LegacyCommandEnable, new CommandInfo(this.OnEnableProfile) + { + ShowInHelp = false, + }); + + this.cmd.AddHandler(LegacyCommandDisable, new CommandInfo(this.OnDisableProfile) + { + ShowInHelp = true, + }); + + this.cmd.AddHandler(LegacyCommandToggle, new CommandInfo(this.OnToggleProfile) + { + ShowInHelp = true, + }); + + this.framework.Update += this.FrameworkOnUpdate; + } + + private enum ProfileOp + { + Enable, + Disable, + Toggle, + } + + /// <inheritdoc/> + void IInternalDisposableService.DisposeService() + { + this.cmd.RemoveHandler(CommandEnable); + this.cmd.RemoveHandler(CommandDisable); + this.cmd.RemoveHandler(CommandToggle); + this.cmd.RemoveHandler(LegacyCommandEnable); + this.cmd.RemoveHandler(LegacyCommandDisable); + this.cmd.RemoveHandler(LegacyCommandToggle); + + this.framework.Update += this.FrameworkOnUpdate; + } + + private void FrameworkOnUpdate(IFramework framework1) + { + if (this.profileManager.IsBusy) + return; + + if (this.queue.Count > 0) + { + var op = this.queue[0]; + this.queue.RemoveAt(0); + + var profile = this.profileManager.Profiles.FirstOrDefault(x => x.Name == op.Item1); + if (profile == null || profile.IsDefaultProfile) + return; + + switch (op.Item2) + { + case ProfileOp.Enable: + if (!profile.IsEnabled) + Task.Run(() => profile.SetStateAsync(true, false)).GetAwaiter().GetResult(); + break; + case ProfileOp.Disable: + if (profile.IsEnabled) + Task.Run(() => profile.SetStateAsync(false, false)).GetAwaiter().GetResult(); + break; + case ProfileOp.Toggle: + Task.Run(() => profile.SetStateAsync(!profile.IsEnabled, false)).GetAwaiter().GetResult(); + break; + default: + throw new ArgumentOutOfRangeException(); + } + + if (profile.IsEnabled) + { + this.chat.Print(Loc.Localize("ProfileCommandsEnabling", "Enabling collection \"{0}\"...").Format(profile.Name)); + } + else + { + this.chat.Print(Loc.Localize("ProfileCommandsDisabling", "Disabling collection \"{0}\"...").Format(profile.Name)); + } + + Task.Run(this.profileManager.ApplyAllWantStatesAsync).ContinueWith(t => + { + if (!t.IsCompletedSuccessfully && t.Exception != null) + { + Log.Error(t.Exception, "Could not apply profiles through commands"); + this.chat.PrintError(Loc.Localize("ProfileCommandsApplyFailed", "Failed to apply your collections. Please check the console for errors.")); + } + else + { + this.chat.Print(Loc.Localize("ProfileCommandsApplySuccess", "Collections applied.")); + } + }); + } + } + + private void OnEnableProfile(string command, string arguments) + { + var name = this.ValidateName(arguments); + if (name == null) + return; + + this.queue = this.queue.Where(x => x.Item1 != name).ToList(); + this.queue.Add((name, ProfileOp.Enable)); + } + + private void OnDisableProfile(string command, string arguments) + { + var name = this.ValidateName(arguments); + if (name == null) + return; + + this.queue = this.queue.Where(x => x.Item1 != name).ToList(); + this.queue.Add((name, ProfileOp.Disable)); + } + + private void OnToggleProfile(string command, string arguments) + { + var name = this.ValidateName(arguments); + if (name == null) + return; + + this.queue.Add((name, ProfileOp.Toggle)); + } + + private string? ValidateName(string arguments) + { + var name = arguments.Replace("\"", string.Empty); + if (this.profileManager.Profiles.All(x => x.Name != name)) + { + this.chat.PrintError($"No collection like \"{name}\"."); + return null; + } + + return name; + } +} diff --git a/Dalamud/Plugin/Internal/Profiles/ProfileManager.cs b/Dalamud/Plugin/Internal/Profiles/ProfileManager.cs index bbe678162..e36e9908b 100644 --- a/Dalamud/Plugin/Internal/Profiles/ProfileManager.cs +++ b/Dalamud/Plugin/Internal/Profiles/ProfileManager.cs @@ -1,11 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using CheapLoc; - using Dalamud.Configuration.Internal; using Dalamud.Logging.Internal; using Dalamud.Utility; @@ -16,12 +15,12 @@ namespace Dalamud.Plugin.Internal.Profiles; /// Class responsible for managing plugin profiles. /// </summary> [ServiceManager.BlockingEarlyLoadedService($"Data provider for {nameof(PluginManager)}.")] -internal partial class ProfileManager : IServiceType +internal class ProfileManager : IServiceType { - private static readonly ModuleLog Log = ModuleLog.Create<ProfileManager>(); + private static readonly ModuleLog Log = new("PROFMAN"); private readonly DalamudConfiguration config; - private readonly List<Profile> profiles = []; + private readonly List<Profile> profiles = new(); private volatile bool isBusy = false; @@ -55,10 +54,10 @@ internal partial class ProfileManager : IServiceType public IEnumerable<Profile> Profiles => this.profiles; /// <summary> - /// Gets a value indicating whether the profile manager is busy enabling/disabling plugins. + /// Gets a value indicating whether or not the profile manager is busy enabling/disabling plugins. /// </summary> public bool IsBusy => this.isBusy; - + /// <summary> /// Get a disposable that will lock the profile list while it is not disposed. /// You must NEVER use this in async code. @@ -72,13 +71,13 @@ internal partial class ProfileManager : IServiceType /// <param name="workingPluginId">The ID of the plugin.</param> /// <param name="internalName">The internal name of the plugin, if available.</param> /// <param name="defaultState">The state the plugin shall be in, if it needs to be added.</param> - /// <param name="addIfNotDeclared">Whether the plugin should be added to the default preset, if it's not present in any preset.</param> - /// <returns>Whether the plugin shall be enabled.</returns> + /// <param name="addIfNotDeclared">Whether or not the plugin should be added to the default preset, if it's not present in any preset.</param> + /// <returns>Whether or not the plugin shall be enabled.</returns> public async Task<bool> GetWantStateAsync(Guid workingPluginId, string? internalName, bool defaultState, bool addIfNotDeclared = true) { var want = false; var wasInAnyProfile = false; - + lock (this.profiles) { foreach (var profile in this.profiles) @@ -94,7 +93,7 @@ internal partial class ProfileManager : IServiceType if (!wasInAnyProfile && addIfNotDeclared) { - Log.Warning("{Guid}({InternalName}) was not in any profile, adding to default with {Default}", workingPluginId, internalName, defaultState); + Log.Warning("'{Guid}'('{InternalName}') was not in any profile, adding to default with {Default}", workingPluginId, internalName, defaultState); await this.DefaultProfile.AddOrUpdateAsync(workingPluginId, internalName, defaultState, false); return defaultState; @@ -107,7 +106,7 @@ internal partial class ProfileManager : IServiceType /// Check whether a plugin is declared in any profile. /// </summary> /// <param name="workingPluginId">The ID of the plugin.</param> - /// <returns>Whether the plugin is in any profile.</returns> + /// <returns>Whether or not the plugin is in any profile.</returns> public bool IsInAnyProfile(Guid workingPluginId) { lock (this.profiles) @@ -119,7 +118,7 @@ internal partial class ProfileManager : IServiceType /// A plugin can never be in the default profile if it is in any other profile. /// </summary> /// <param name="workingPluginId">The ID of the plugin.</param> - /// <returns>Whether the plugin is in the default profile.</returns> + /// <returns>Whether or not the plugin is in the default profile.</returns> public bool IsInDefaultProfile(Guid workingPluginId) => this.DefaultProfile.WantsPlugin(workingPluginId) != null; @@ -152,7 +151,11 @@ internal partial class ProfileManager : IServiceType /// <returns>The newly cloned profile.</returns> public Profile CloneProfile(Profile toClone) { - return this.ImportProfile(toClone.Model.SerializeForShare()) ?? throw new Exception("New profile was null while cloning"); + var newProfile = this.ImportProfile(toClone.Model.SerializeForShare()); + if (newProfile == null) + throw new Exception("New profile was null while cloning"); + + return newProfile; } /// <summary> @@ -172,7 +175,7 @@ internal partial class ProfileManager : IServiceType { // Disable it modelV1.IsEnabled = false; - + // Try to find matching plugins for all plugins in the profile var pm = Service<PluginManager>.Get(); foreach (var plugin in modelV1.Plugins) @@ -190,10 +193,6 @@ internal partial class ProfileManager : IServiceType } } } - else - { - throw new InvalidOperationException("Unsupported profile model version"); - } this.config.SavedProfiles!.Add(newModel); this.config.QueueSave(); @@ -314,7 +313,7 @@ internal partial class ProfileManager : IServiceType profile.MigrateProfilesToGuidsForPlugin(internalName, newGuid); } } - + /// <summary> /// Validate profiles for errors. /// </summary> @@ -329,21 +328,18 @@ internal partial class ProfileManager : IServiceType { if (seenIds.Contains(pluginEntry.WorkingPluginId)) throw new Exception($"Plugin '{pluginEntry.WorkingPluginId}'('{pluginEntry.InternalName}') is twice in profile '{profile.Guid}'('{profile.Name}')"); - + seenIds.Add(pluginEntry.WorkingPluginId); } } } - [GeneratedRegex(@" \(.* Mix\)")] - private static partial Regex MixRegex(); - private string GenerateUniqueProfileName(string startingWith) { if (this.profiles.All(x => x.Name != startingWith)) return startingWith; - startingWith = MixRegex().Replace(startingWith, string.Empty); + startingWith = Regex.Replace(startingWith, @" \(.* Mix\)", string.Empty); while (true) { @@ -359,7 +355,7 @@ internal partial class ProfileManager : IServiceType this.config.DefaultProfile ??= new ProfileModelV1(); this.profiles.Add(new Profile(this, this.config.DefaultProfile, true, true)); - this.config.SavedProfiles ??= []; + this.config.SavedProfiles ??= new List<ProfileModel>(); foreach (var profileModel in this.config.SavedProfiles) { this.profiles.Add(new Profile(this, profileModel, false, true)); diff --git a/Dalamud/Plugin/Internal/Profiles/ProfileModel.cs b/Dalamud/Plugin/Internal/Profiles/ProfileModel.cs index 37487e321..e3d9e2955 100644 --- a/Dalamud/Plugin/Internal/Profiles/ProfileModel.cs +++ b/Dalamud/Plugin/Internal/Profiles/ProfileModel.cs @@ -1,8 +1,7 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Dalamud.Utility; - using Newtonsoft.Json; using Newtonsoft.Json.Serialization; @@ -33,7 +32,7 @@ public abstract class ProfileModel /// <exception cref="ArgumentException">Thrown when the parsed string is not a valid profile.</exception> public static ProfileModel? Deserialize(string model) { - var json = Util.DecompressString(Convert.FromBase64String(model[3..])); + var json = Util.DecompressString(Convert.FromBase64String(model.Substring(3))); if (model.StartsWith(ProfileModelV1.SerializedPrefix)) return JsonConvert.DeserializeObject<ProfileModelV1>(json); @@ -48,15 +47,19 @@ public abstract class ProfileModel /// <exception cref="ArgumentOutOfRangeException">Thrown when an unsupported model is serialized.</exception> public string SerializeForShare() { - var prefix = this switch + string prefix; + switch (this) { - ProfileModelV1 => ProfileModelV1.SerializedPrefix, - _ => throw new ArgumentOutOfRangeException(), - }; + case ProfileModelV1: + prefix = ProfileModelV1.SerializedPrefix; + break; + default: + throw new ArgumentOutOfRangeException(); + } // HACK: Just filter the ID for now, we should split the sharing + saving model var serialized = JsonConvert.SerializeObject(this, new JsonSerializerSettings() - { ContractResolver = new IgnorePropertiesResolver(["WorkingPluginId"]) }); + { ContractResolver = new IgnorePropertiesResolver(new[] { "WorkingPluginId" }) }); return prefix + Convert.ToBase64String(Util.CompressString(serialized)); } diff --git a/Dalamud/Plugin/Internal/Profiles/ProfileModelV1.cs b/Dalamud/Plugin/Internal/Profiles/ProfileModelV1.cs index deee9c04f..99da4263b 100644 --- a/Dalamud/Plugin/Internal/Profiles/ProfileModelV1.cs +++ b/Dalamud/Plugin/Internal/Profiles/ProfileModelV1.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Newtonsoft.Json; @@ -9,47 +9,19 @@ namespace Dalamud.Plugin.Internal.Profiles; /// </summary> public class ProfileModelV1 : ProfileModel { - /// <summary> - /// Enum representing the startup policy of a profile. - /// </summary> - public enum ProfileStartupPolicy - { - /// <summary> - /// Remember the last state of the profile. - /// </summary> - RememberState, - - /// <summary> - /// Always enable the profile. - /// </summary> - AlwaysEnable, - - /// <summary> - /// Always disable the profile. - /// </summary> - AlwaysDisable, - } - /// <summary> /// Gets the prefix of this version. /// </summary> public static string SerializedPrefix => "DP1"; /// <summary> - /// Gets or sets a value indicating whether this profile should always be enabled at boot. + /// Gets or sets a value indicating whether or not this profile should always be enabled at boot. /// </summary> [JsonProperty("b")] - [Obsolete("Superseded by StartupPolicy")] public bool AlwaysEnableOnBoot { get; set; } = false; /// <summary> - /// Gets or sets the policy to use when Dalamud is loading. - /// </summary> - [JsonProperty("p")] - public ProfileStartupPolicy? StartupPolicy { get; set; } - - /// <summary> - /// Gets or sets a value indicating whether this profile is currently enabled. + /// Gets or sets a value indicating whether or not this profile is currently enabled. /// </summary> [JsonProperty("e")] public bool IsEnabled { get; set; } = false; @@ -63,7 +35,7 @@ public class ProfileModelV1 : ProfileModel /// <summary> /// Gets or sets the list of plugins in this profile. /// </summary> - public List<ProfileModelV1Plugin> Plugins { get; set; } = []; + public List<ProfileModelV1Plugin> Plugins { get; set; } = new(); /// <summary> /// Class representing a single plugin in a profile. @@ -74,14 +46,14 @@ public class ProfileModelV1 : ProfileModel /// Gets or sets the internal name of the plugin. /// </summary> public string? InternalName { get; set; } - + /// <summary> /// Gets or sets an ID uniquely identifying this specific instance of a plugin. /// </summary> public Guid WorkingPluginId { get; set; } /// <summary> - /// Gets or sets a value indicating whether this entry is enabled. + /// Gets or sets a value indicating whether or not this entry is enabled. /// </summary> public bool IsEnabled { get; set; } } diff --git a/Dalamud/Plugin/Internal/Profiles/ProfilePluginEntry.cs b/Dalamud/Plugin/Internal/Profiles/ProfilePluginEntry.cs index a2805ff6e..7909981bc 100644 --- a/Dalamud/Plugin/Internal/Profiles/ProfilePluginEntry.cs +++ b/Dalamud/Plugin/Internal/Profiles/ProfilePluginEntry.cs @@ -10,7 +10,7 @@ internal class ProfilePluginEntry /// </summary> /// <param name="internalName">The internal name of the plugin.</param> /// <param name="workingPluginId">The ID of the plugin.</param> - /// <param name="state">A value indicating whether this entry is enabled.</param> + /// <param name="state">A value indicating whether or not this entry is enabled.</param> public ProfilePluginEntry(string internalName, Guid workingPluginId, bool state) { this.InternalName = internalName; @@ -22,14 +22,14 @@ internal class ProfilePluginEntry /// Gets the internal name of the plugin. /// </summary> public string InternalName { get; } - + /// <summary> /// Gets or sets an ID uniquely identifying this specific instance of a plugin. /// </summary> public Guid WorkingPluginId { get; set; } /// <summary> - /// Gets a value indicating whether this entry is enabled. + /// Gets a value indicating whether or not this entry is enabled. /// </summary> public bool IsEnabled { get; } } diff --git a/Dalamud/Plugin/Internal/Types/BannedPlugin.cs b/Dalamud/Plugin/Internal/Types/BannedPlugin.cs index 384318a56..a21bbf02b 100644 --- a/Dalamud/Plugin/Internal/Types/BannedPlugin.cs +++ b/Dalamud/Plugin/Internal/Types/BannedPlugin.cs @@ -17,7 +17,7 @@ internal struct BannedPlugin /// Gets plugin assembly version. /// </summary> [JsonProperty] - public Version? AssemblyVersion { get; private set; } + public Version AssemblyVersion { get; private set; } /// <summary> /// Gets reason for the ban. diff --git a/Dalamud/Plugin/Internal/Types/LocalDevPlugin.cs b/Dalamud/Plugin/Internal/Types/LocalDevPlugin.cs index 2e20d2aef..581bfd724 100644 --- a/Dalamud/Plugin/Internal/Types/LocalDevPlugin.cs +++ b/Dalamud/Plugin/Internal/Types/LocalDevPlugin.cs @@ -15,9 +15,9 @@ namespace Dalamud.Plugin.Internal.Types; /// This class represents a dev plugin and all facets of its lifecycle. /// The DLL on disk, dependencies, loaded assembly, etc. /// </summary> -internal sealed class LocalDevPlugin : LocalPlugin +internal class LocalDevPlugin : LocalPlugin { - private static readonly ModuleLog Log = ModuleLog.Create<LocalDevPlugin>(); + private static readonly ModuleLog Log = new("PLUGIN"); // Ref to Dalamud.Configuration.DevPluginSettings private readonly DevPluginSettings devSettings; @@ -41,7 +41,7 @@ internal sealed class LocalDevPlugin : LocalPlugin configuration.DevPluginSettings[dllFile.FullName] = this.devSettings = new DevPluginSettings(); configuration.QueueSave(); } - + // Legacy dev plugins might not have this! if (this.devSettings.WorkingPluginId == Guid.Empty) { @@ -85,17 +85,7 @@ internal sealed class LocalDevPlugin : LocalPlugin } } } - - /// <summary> - /// Gets or sets a value indicating whether users should be notified when this plugin - /// is causing errors. - /// </summary> - public bool NotifyForErrors - { - get => this.devSettings.NotifyForErrors; - set => this.devSettings.NotifyForErrors = value; - } - + /// <summary> /// Gets an ID uniquely identifying this specific instance of a devPlugin. /// </summary> @@ -162,7 +152,7 @@ internal sealed class LocalDevPlugin : LocalPlugin if (manifestPath.Exists) this.manifest = LocalPluginManifest.Load(manifestPath) ?? throw new Exception("Could not reload manifest."); } - + /// <inheritdoc/> protected override void OnPreReload() { diff --git a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs index 29867b355..59f6b23c1 100644 --- a/Dalamud/Plugin/Internal/Types/LocalPlugin.cs +++ b/Dalamud/Plugin/Internal/Types/LocalPlugin.cs @@ -3,7 +3,6 @@ using System.IO; using System.Linq; using System.Reflection; using System.Runtime.ExceptionServices; -using System.Runtime.Loader; using System.Threading; using System.Threading.Tasks; @@ -16,7 +15,6 @@ using Dalamud.Plugin.Internal.Exceptions; using Dalamud.Plugin.Internal.Loader; using Dalamud.Plugin.Internal.Profiles; using Dalamud.Plugin.Internal.Types.Manifest; -using Dalamud.Utility; namespace Dalamud.Plugin.Internal.Types; @@ -32,8 +30,8 @@ internal class LocalPlugin : IAsyncDisposable #pragma warning disable SA1401 protected LocalPluginManifest manifest; #pragma warning restore SA1401 - - private static readonly ModuleLog Log = ModuleLog.Create<LocalPlugin>(); + + private static readonly ModuleLog Log = new("LOCALPLUGIN"); private readonly FileInfo manifestFile; private readonly FileInfo disabledFile; @@ -64,13 +62,12 @@ internal class LocalPlugin : IAsyncDisposable } this.DllFile = dllFile; + this.State = PluginState.Unloaded; // Although it is conditionally used here, we need to set the initial value regardless. this.manifestFile = LocalPluginManifest.GetManifestFile(this.DllFile); this.manifest = manifest; - this.State = PluginState.Unloaded; - var needsSaveDueToLegacyFiles = false; // This converts from the ".disabled" file feature to the manifest instead. @@ -180,13 +177,13 @@ internal class LocalPlugin : IAsyncDisposable public bool IsTesting => this.manifest.IsTestingExclusive || this.manifest.Testing; /// <summary> - /// Gets a value indicating whether this plugin is orphaned(belongs to a repo) or not. + /// Gets a value indicating whether or not this plugin is orphaned(belongs to a repo) or not. /// </summary> public bool IsOrphaned => !this.IsDev && this.GetSourceRepository() == null; /// <summary> - /// Gets a value indicating whether this plugin is serviced(repo still exists, but plugin no longer does). + /// Gets a value indicating whether or not this plugin is serviced(repo still exists, but plugin no longer does). /// </summary> public bool IsDecommissioned => !this.IsDev && this.GetSourceRepository()?.State == PluginRepositoryState.Success && @@ -284,7 +281,7 @@ internal class LocalPlugin : IAsyncDisposable case PluginState.Unloaded: if (this.instance is not null) { - throw new InternalPluginStateException( + throw new InvalidPluginOperationException( "Plugin should have been unloaded but instance is not cleared"); } @@ -302,7 +299,7 @@ internal class LocalPlugin : IAsyncDisposable throw new PluginPreconditionFailedException($"Unable to load {this.Name}, game is newer than applicable version {this.manifest.ApplicableVersion}"); // We want to allow loading dev plugins with a lower API level than the current Dalamud API level, for ease of development - if (!pluginManager.LoadAllApiLevels && !this.IsDev && this.manifest.EffectiveApiLevel < PluginManager.DalamudApiLevel) + if (this.manifest.EffectiveApiLevel < PluginManager.DalamudApiLevel && !pluginManager.LoadAllApiLevels && !this.IsDev) throw new PluginPreconditionFailedException($"Unable to load {this.Name}, incompatible API level {this.manifest.EffectiveApiLevel}"); // We might want to throw here? @@ -315,12 +312,9 @@ internal class LocalPlugin : IAsyncDisposable if (!this.CheckPolicy()) throw new PluginPreconditionFailedException($"Unable to load {this.Name} as a load policy forbids it"); - if (this.Manifest.MinimumDalamudVersion != null && this.Manifest.MinimumDalamudVersion > Versioning.GetAssemblyVersionParsed()) - throw new PluginPreconditionFailedException($"Unable to load {this.Name}, Dalamud version is lower than minimum required version {this.Manifest.MinimumDalamudVersion}"); - this.State = PluginState.Loading; Log.Information($"Loading {this.DllFile.Name}"); - + this.EnsureLoader(); if (this.DllFile.DirectoryName != null && @@ -358,13 +352,19 @@ internal class LocalPlugin : IAsyncDisposable } this.loader.Reload(); - this.RefreshAssemblyInformation(); } - Log.Verbose("{Name} ({Guid}): Have type", this.InternalName, this.EffectiveWorkingPluginId); + // Load the assembly + this.pluginAssembly ??= this.loader.LoadDefaultAssembly(); + + this.AssemblyName = this.pluginAssembly.GetName(); + + // Find the plugin interface implementation. It is guaranteed to exist after checking in the ctor. + this.pluginType ??= this.pluginAssembly.GetTypes() + .First(type => type.IsAssignableTo(typeof(IDalamudPlugin))); // Check for any loaded plugins with the same assembly name - var assemblyName = this.pluginAssembly!.GetName().Name; + var assemblyName = this.pluginAssembly.GetName().Name; foreach (var otherPlugin in pluginManager.InstalledPlugins) { // During hot-reloading, this plugin will be in the plugin list, and the instance will have been disposed @@ -376,12 +376,16 @@ internal class LocalPlugin : IAsyncDisposable if (otherPluginAssemblyName == assemblyName && otherPluginAssemblyName != null) { this.State = PluginState.Unloaded; - Log.Debug("Duplicate assembly: {Name}", this.InternalName); + Log.Debug($"Duplicate assembly: {this.Name}"); throw new DuplicatePluginException(assemblyName); } } + // Update the location for the Location and CodeBase patches + // NET8 CHORE + // PluginManager.PluginLocations[this.pluginType.Assembly.FullName] = new PluginPatchData(this.DllFile); + this.dalamudInterface = new(this, reason); this.serviceScope = ioc.GetScope(); @@ -392,13 +396,10 @@ internal class LocalPlugin : IAsyncDisposable this.instance = await CreatePluginInstance( this.manifest, this.serviceScope, - this.pluginType!, + this.pluginType, this.dalamudInterface); this.State = PluginState.Loaded; Log.Information("Finished loading {PluginName}", this.InternalName); - - var manager = Service<PluginManager>.Get(); - manager.NotifyPluginsForStateChange(PluginListInvalidationKind.Loaded, [this.manifest.InternalName]); } catch (Exception ex) { @@ -412,11 +413,9 @@ internal class LocalPlugin : IAsyncDisposable } catch (Exception ex) { - // These are "user errors", we don't want to mark the plugin as failed - if (ex is not InvalidPluginOperationException) - this.State = PluginState.LoadError; + this.State = PluginState.LoadError; - // If a precondition fails, don't record it as an error, as it isn't really. + // If a precondition fails, don't record it as an error, as it isn't really. if (ex is PluginPreconditionFailedException) Log.Warning(ex.Message); else @@ -474,16 +473,10 @@ internal class LocalPlugin : IAsyncDisposable this.State = PluginState.Unloaded; Log.Information("Finished unloading {PluginName}", this.InternalName); - - var manager = Service<PluginManager>.Get(); - manager.NotifyPluginsForStateChange(PluginListInvalidationKind.Unloaded, [this.manifest.InternalName]); } catch (Exception ex) { - // These are "user errors", we don't want to mark the plugin as failed - if (ex is not InvalidPluginOperationException) - this.State = PluginState.UnloadError; - + this.State = PluginState.UnloadError; Log.Error(ex, "Error while unloading {PluginName}", this.InternalName); throw; @@ -510,12 +503,15 @@ internal class LocalPlugin : IAsyncDisposable /// <summary> /// Check if anything forbids this plugin from loading. /// </summary> - /// <returns>Whether this plugin shouldn't load.</returns> + /// <returns>Whether or not this plugin shouldn't load.</returns> public bool CheckPolicy() { var startInfo = Service<Dalamud>.Get().StartInfo; var manager = Service<PluginManager>.Get(); + if (startInfo.NoLoadPlugins) + return false; + if (startInfo.NoLoadThirdPartyPlugins && this.manifest.IsThirdParty) return false; @@ -554,20 +550,12 @@ internal class LocalPlugin : IAsyncDisposable }); } - /// <summary> - /// Checks whether this plugin loads in the given load context. - /// </summary> - /// <param name="context">The load context to check.</param> - /// <returns>Whether this plugin loads in the given load context.</returns> - public bool LoadsIn(AssemblyLoadContext context) - => this.loader?.LoadContext == context; - /// <summary> /// Save this plugin manifest. /// </summary> /// <param name="reason">Why it should be saved.</param> protected void SaveManifest(string reason) => this.manifest.Save(this.manifestFile, reason); - + /// <summary> /// Called before a plugin is reloaded. /// </summary> @@ -592,7 +580,7 @@ internal class LocalPlugin : IAsyncDisposable var newInstanceTask = forceFrameworkThread ? framework.RunOnFrameworkThread(Create) : Create(); return await newInstanceTask.ConfigureAwait(false); - async Task<IDalamudPlugin> Create() => (IDalamudPlugin)await scope.CreateAsync(type, ObjectInstanceVisibility.ExposedToPlugins, dalamudInterface); + async Task<IDalamudPlugin> Create() => (IDalamudPlugin)await scope.CreateAsync(type, dalamudInterface); } private static void SetupLoaderConfig(LoaderConfig config) @@ -606,7 +594,7 @@ internal class LocalPlugin : IAsyncDisposable // but plugins may load other versions of assemblies that Dalamud depends on. config.SharedAssemblies.Add((typeof(EntryPoint).Assembly.GetName(), false)); config.SharedAssemblies.Add((typeof(Common.DalamudStartInfo).Assembly.GetName(), false)); - + // Pin Lumina since we expose it as an API surface. Before anyone removes this again, please see #1598. // Changes to Lumina should be upstreamed if feasible, and if there is a desire to re-add unpinned Lumina we // will need to put this behind some kind of feature flag somewhere. @@ -618,11 +606,7 @@ internal class LocalPlugin : IAsyncDisposable { if (this.loader != null) return; - - this.DllFile.Refresh(); - if (!this.DllFile.Exists) - throw new Exception($"Plugin DLL file at '{this.DllFile.FullName}' did not exist, cannot load."); - + try { this.loader = PluginLoader.CreateFromAssemblyFile(this.DllFile.FullName, SetupLoaderConfig); @@ -634,30 +618,17 @@ internal class LocalPlugin : IAsyncDisposable throw; } - this.RefreshAssemblyInformation(); - } - - private void RefreshAssemblyInformation() - { - if (this.loader == null) - throw new InvalidOperationException("No loader available"); - try { this.pluginAssembly = this.loader.LoadDefaultAssembly(); - this.AssemblyName = this.pluginAssembly.GetName(); } catch (Exception ex) { - this.ResetLoader(); - Log.Error(ex, $"Not a plugin: {this.DllFile.FullName}"); - throw new InvalidPluginException(this.DllFile); - } + this.pluginAssembly = null; + this.pluginType = null; + this.loader.Dispose(); - if (this.pluginAssembly == null) - { - this.ResetLoader(); - Log.Error("Plugin assembly is null: {DllFileFullName}", this.DllFile.FullName); + Log.Error(ex, $"Not a plugin: {this.DllFile.FullName}"); throw new InvalidPluginException(this.DllFile); } @@ -667,27 +638,22 @@ internal class LocalPlugin : IAsyncDisposable } catch (ReflectionTypeLoadException ex) { - this.ResetLoader(); - Log.Error(ex, "Could not load one or more types when searching for IDalamudPlugin: {DllFileFullName}", this.DllFile.FullName); - throw; + Log.Error(ex, $"Could not load one or more types when searching for IDalamudPlugin: {this.DllFile.FullName}"); + // Something blew up when parsing types, but we still want to look for IDalamudPlugin. Let Load() handle the error. + this.pluginType = ex.Types.FirstOrDefault(type => type != null && type.IsAssignableTo(typeof(IDalamudPlugin))); } - if (this.pluginType == null) + if (this.pluginType == default) { - this.ResetLoader(); - Log.Error("Nothing inherits from IDalamudPlugin: {DllFileFullName}", this.DllFile.FullName); + this.pluginAssembly = null; + this.pluginType = null; + this.loader.Dispose(); + + Log.Error($"Nothing inherits from IDalamudPlugin: {this.DllFile.FullName}"); throw new InvalidPluginException(this.DllFile); } } - private void ResetLoader() - { - this.pluginAssembly = null; - this.pluginType = null; - this.loader?.Dispose(); - this.loader = null; - } - /// <summary>Clears and disposes all resources associated with the plugin instance.</summary> /// <param name="disposalMode">Whether to clear and dispose <see cref="loader"/>.</param> /// <returns>Exceptions, if any occurred.</returns> diff --git a/Dalamud/Plugin/Internal/Types/Manifest/IPluginManifest.cs b/Dalamud/Plugin/Internal/Types/Manifest/IPluginManifest.cs index c770c80be..4b0951397 100644 --- a/Dalamud/Plugin/Internal/Types/Manifest/IPluginManifest.cs +++ b/Dalamud/Plugin/Internal/Types/Manifest/IPluginManifest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Dalamud.Plugin.Internal.Types.Manifest; @@ -16,7 +16,7 @@ public interface IPluginManifest /// Gets the public name of the plugin. /// </summary> public string Name { get; } - + /// <summary> /// Gets a punchline of the plugins functions. /// </summary> @@ -26,7 +26,7 @@ public interface IPluginManifest /// Gets the author/s of the plugin. /// </summary> public string Author { get; } - + /// <summary> /// Gets a value indicating whether the plugin can be unloaded asynchronously. /// </summary> @@ -41,22 +41,17 @@ public interface IPluginManifest /// Gets the assembly version of the plugin's testing variant. /// </summary> public Version? TestingAssemblyVersion { get; } - - /// <summary> - /// Gets the minimum Dalamud assembly version this plugin requires. - /// </summary> - public Version? MinimumDalamudVersion { get; } - + /// <summary> /// Gets the DIP17 channel name. /// </summary> public string? Dip17Channel { get; } - + /// <summary> /// Gets the last time this plugin was updated. /// </summary> public long LastUpdate { get; } - + /// <summary> /// Gets a changelog, null if none exists. /// </summary> @@ -93,7 +88,7 @@ public interface IPluginManifest /// Gets an URL to the website or source code of the plugin. /// </summary> public string? RepoUrl { get; } - + /// <summary> /// Gets a description of the plugins functions. /// </summary> @@ -118,9 +113,4 @@ public interface IPluginManifest /// Gets an URL for the plugin's icon. /// </summary> public string? IconUrl { get; } - - /// <summary> - /// Gets a value indicating whether this plugin is eligible for testing. - /// </summary> - public bool IsAvailableForTesting { get; } } diff --git a/Dalamud/Plugin/Internal/Types/Manifest/LocalPluginManifest.cs b/Dalamud/Plugin/Internal/Types/Manifest/LocalPluginManifest.cs index 73d23d19f..dc05409b0 100644 --- a/Dalamud/Plugin/Internal/Types/Manifest/LocalPluginManifest.cs +++ b/Dalamud/Plugin/Internal/Types/Manifest/LocalPluginManifest.cs @@ -1,9 +1,7 @@ using System.IO; using Dalamud.Utility; - using Newtonsoft.Json; - using Serilog; namespace Dalamud.Plugin.Internal.Types.Manifest; @@ -59,15 +57,15 @@ internal record LocalPluginManifest : PluginManifest, ILocalPluginManifest /// <param name="reason">The reason the manifest was saved.</param> public void Save(FileInfo manifestFile, string reason) { - Log.Verbose("Saving manifest for {PluginName} because {Reason}", this.InternalName, reason); + Log.Verbose("Saving manifest for '{PluginName}' because '{Reason}'", this.InternalName, reason); try { - FilesystemUtil.WriteAllTextSafe(manifestFile.FullName, JsonConvert.SerializeObject(this, Formatting.Indented)); + Util.WriteAllTextSafe(manifestFile.FullName, JsonConvert.SerializeObject(this, Formatting.Indented)); } catch { - Log.Error("Could not write out manifest for {PluginName} because {Reason}", this.InternalName, reason); + Log.Error("Could not write out manifest for '{PluginName}' because '{Reason}'", this.InternalName, reason); throw; } } @@ -80,7 +78,7 @@ internal record LocalPluginManifest : PluginManifest, ILocalPluginManifest public static LocalPluginManifest? Load(FileInfo manifestFile) => JsonConvert.DeserializeObject<LocalPluginManifest>(File.ReadAllText(manifestFile.FullName)); /// <summary> - /// A standardized way to get the plugin DLL name that should accompany a manifest file. + /// A standardized way to get the plugin DLL name that should accompany a manifest file. May not exist. /// </summary> /// <param name="dir">Manifest directory.</param> /// <param name="manifest">The manifest.</param> @@ -88,7 +86,7 @@ internal record LocalPluginManifest : PluginManifest, ILocalPluginManifest public static FileInfo GetPluginFile(DirectoryInfo dir, PluginManifest manifest) => new(Path.Combine(dir.FullName, $"{manifest.InternalName}.dll")); /// <summary> - /// A standardized way to get the manifest file that should accompany a plugin DLL. + /// A standardized way to get the manifest file that should accompany a plugin DLL. May not exist. /// </summary> /// <param name="dllFile">The plugin DLL.</param> /// <returns>The <see cref="PluginManifest"/> file.</returns> diff --git a/Dalamud/Plugin/Internal/Types/Manifest/RemotePluginManifest.cs b/Dalamud/Plugin/Internal/Types/Manifest/RemotePluginManifest.cs index b83ba91a8..e3d99a85a 100644 --- a/Dalamud/Plugin/Internal/Types/Manifest/RemotePluginManifest.cs +++ b/Dalamud/Plugin/Internal/Types/Manifest/RemotePluginManifest.cs @@ -1,5 +1,4 @@ using JetBrains.Annotations; - using Newtonsoft.Json; namespace Dalamud.Plugin.Internal.Types.Manifest; @@ -22,4 +21,9 @@ internal record RemotePluginManifest : PluginManifest /// Gets or sets the changelog to be shown when obtaining the testing version of the plugin. /// </summary> public string? TestingChangelog { get; set; } + + /// <summary> + /// Gets a value indicating whether this plugin is eligible for testing. + /// </summary> + public bool IsAvailableForTesting => this.TestingAssemblyVersion != null && this.TestingAssemblyVersion > this.AssemblyVersion; } diff --git a/Dalamud/Plugin/Internal/Types/PluginDef.cs b/Dalamud/Plugin/Internal/Types/PluginDef.cs index f9f49225a..25cd82423 100644 --- a/Dalamud/Plugin/Internal/Types/PluginDef.cs +++ b/Dalamud/Plugin/Internal/Types/PluginDef.cs @@ -7,7 +7,7 @@ namespace Dalamud.Plugin.Internal.Types; /// <summary> /// Plugin Definition. /// </summary> -internal readonly struct PluginDef +internal struct PluginDef { /// <summary> /// Initializes a new instance of the <see cref="PluginDef"/> struct. diff --git a/Dalamud/Plugin/Internal/Types/PluginManifest.cs b/Dalamud/Plugin/Internal/Types/PluginManifest.cs index fc9f4e372..01951c8a6 100644 --- a/Dalamud/Plugin/Internal/Types/PluginManifest.cs +++ b/Dalamud/Plugin/Internal/Types/PluginManifest.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using Dalamud.Common.Game; using Dalamud.Plugin.Internal.Types.Manifest; - using Newtonsoft.Json; namespace Dalamud.Plugin.Internal.Types; @@ -43,7 +42,7 @@ internal record PluginManifest : IPluginManifest public List<string>? CategoryTags { get; init; } /// <summary> - /// Gets or sets a value indicating whether the plugin is hidden in the plugin installer. + /// Gets or sets a value indicating whether or not the plugin is hidden in the plugin installer. /// This value comes from the plugin master and is in addition to the list of hidden names kept by Dalamud. /// </summary> [JsonProperty] @@ -76,10 +75,6 @@ internal record PluginManifest : IPluginManifest [JsonConverter(typeof(GameVersionConverter))] public GameVersion? ApplicableVersion { get; init; } = GameVersion.Any; - /// <inheritdoc/> - [JsonProperty] - public Version? MinimumDalamudVersion { get; init; } - /// <inheritdoc/> [JsonProperty] public int DalamudApiLevel { get; init; } = PluginManager.DalamudApiLevel; @@ -161,11 +156,4 @@ internal record PluginManifest : IPluginManifest /// <inheritdoc/> [JsonProperty("_Dip17Channel")] public string? Dip17Channel { get; init; } - - /// <inheritdoc/> - [JsonIgnore] - public bool IsAvailableForTesting - => this.TestingAssemblyVersion != null && - this.TestingAssemblyVersion > this.AssemblyVersion && - this.TestingDalamudApiLevel == PluginManager.DalamudApiLevel; } diff --git a/Dalamud/Plugin/Internal/Types/PluginRepository.cs b/Dalamud/Plugin/Internal/Types/PluginRepository.cs index d47a3727d..c5e703e4b 100644 --- a/Dalamud/Plugin/Internal/Types/PluginRepository.cs +++ b/Dalamud/Plugin/Internal/Types/PluginRepository.cs @@ -29,7 +29,7 @@ internal class PluginRepository private const int HttpRequestTimeoutSeconds = 20; - private static readonly ModuleLog Log = ModuleLog.Create<PluginRepository>(); + private static readonly ModuleLog Log = new("PLUGINR"); private readonly HttpClient httpClient; /// <summary> @@ -59,7 +59,7 @@ internal class PluginRepository }, UserAgent = { - new ProductInfoHeaderValue("Dalamud", Versioning.GetAssemblyVersion()), + new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion), }, }, }; @@ -119,7 +119,13 @@ internal class PluginRepository response.EnsureSuccessStatusCode(); var data = await response.Content.ReadAsStringAsync(); - var pluginMaster = JsonConvert.DeserializeObject<List<RemotePluginManifest>>(data) ?? throw new Exception("Deserialized PluginMaster was null."); + var pluginMaster = JsonConvert.DeserializeObject<List<RemotePluginManifest>>(data); + + if (pluginMaster == null) + { + throw new Exception("Deserialized PluginMaster was null."); + } + pluginMaster.Sort((pm1, pm2) => string.Compare(pm1.Name, pm2.Name, StringComparison.Ordinal)); // Set the source for each remote manifest. Allows for checking if is 3rd party. @@ -158,7 +164,7 @@ internal class PluginRepository } this.PluginMaster = pluginMaster.Where(this.IsValidManifest).ToList().AsReadOnly(); - + // API9 HACK: Force IsHide to false, we should remove that if (!this.IsThirdParty) { @@ -191,7 +197,7 @@ internal class PluginRepository Log.Error("Plugin {PluginName} in {RepoLink} has an invalid Name.", manifest.InternalName, this.PluginMasterUrl); return false; } - + // ReSharper disable once ConditionIsAlwaysTrueOrFalse if (manifest.AssemblyVersion == null) { @@ -218,7 +224,7 @@ internal class PluginRepository request.Headers.CacheControl = new CacheControlHeaderValue { NoCache = true }; using var requestCts = new CancellationTokenSource(TimeSpan.FromSeconds(timeout)); - + return await httpClient.SendAsync(request, requestCts.Token); } } diff --git a/Dalamud/Plugin/Ipc/Exceptions/DataCacheCreationError.cs b/Dalamud/Plugin/Ipc/Exceptions/DataCacheCreationError.cs index 38b729616..db095bad9 100644 --- a/Dalamud/Plugin/Ipc/Exceptions/DataCacheCreationError.cs +++ b/Dalamud/Plugin/Ipc/Exceptions/DataCacheCreationError.cs @@ -1,5 +1,3 @@ -using Dalamud.Plugin.Ipc.Internal; - namespace Dalamud.Plugin.Ipc.Exceptions; /// <summary> @@ -11,11 +9,11 @@ public class DataCacheCreationError : IpcError /// Initializes a new instance of the <see cref="DataCacheCreationError"/> class. /// </summary> /// <param name="tag">Tag of the data cache.</param> - /// <param name="creatorPluginId">The plugin ID of the creating plugin.</param> + /// <param name="creator">The assembly name of the caller.</param> /// <param name="expectedType">The type expected.</param> /// <param name="ex">The thrown exception.</param> - public DataCacheCreationError(string tag, DataCachePluginId creatorPluginId, Type expectedType, Exception ex) - : base($"The creation of the {expectedType} data cache {tag} initialized by {creatorPluginId.InternalName} ({creatorPluginId.EffectiveWorkingId}) was unsuccessful.", ex) + public DataCacheCreationError(string tag, string creator, Type expectedType, Exception ex) + : base($"The creation of the {expectedType} data cache {tag} initialized by {creator} was unsuccessful.", ex) { } } diff --git a/Dalamud/Plugin/Ipc/Exceptions/DataCacheTypeMismatchError.cs b/Dalamud/Plugin/Ipc/Exceptions/DataCacheTypeMismatchError.cs index bfe09b120..e5d9cc4db 100644 --- a/Dalamud/Plugin/Ipc/Exceptions/DataCacheTypeMismatchError.cs +++ b/Dalamud/Plugin/Ipc/Exceptions/DataCacheTypeMismatchError.cs @@ -1,5 +1,3 @@ -using Dalamud.Plugin.Ipc.Internal; - namespace Dalamud.Plugin.Ipc.Exceptions; /// <summary> @@ -11,11 +9,11 @@ public class DataCacheTypeMismatchError : IpcError /// Initializes a new instance of the <see cref="DataCacheTypeMismatchError"/> class. /// </summary> /// <param name="tag">Tag of the data cache.</param> - /// <param name="creatorPluginId">The plugin ID of the creating plugin.</param> + /// <param name="creator">Assembly name of the plugin creating the cache.</param> /// <param name="requestedType">The requested type.</param> /// <param name="actualType">The stored type.</param> - public DataCacheTypeMismatchError(string tag, DataCachePluginId creatorPluginId, Type requestedType, Type actualType) - : base($"Data cache {tag} was requested with type {requestedType}, but {creatorPluginId.InternalName} ({creatorPluginId.EffectiveWorkingId}) created type {actualType}.") + public DataCacheTypeMismatchError(string tag, string creator, Type requestedType, Type actualType) + : base($"Data cache {tag} was requested with type {requestedType}, but {creator} created type {actualType}.") { } } diff --git a/Dalamud/Plugin/Ipc/ICallGateProvider.cs b/Dalamud/Plugin/Ipc/ICallGateProvider.cs index 5fde2ef01..f4e5c76d7 100644 --- a/Dalamud/Plugin/Ipc/ICallGateProvider.cs +++ b/Dalamud/Plugin/Ipc/ICallGateProvider.cs @@ -1,4 +1,5 @@ using Dalamud.Plugin.Ipc.Internal; +using Dalamud.Utility; #pragma warning disable SA1402 // File may only contain a single type @@ -18,9 +19,6 @@ public interface ICallGateProvider /// <inheritdoc cref="CallGatePubSubBase.UnregisterFunc"/> public void UnregisterFunc(); - - /// <inheritdoc cref="CallGatePubSubBase.GetContext"/> - public IpcContext? GetContext(); } /// <inheritdoc cref="ICallGateProvider"/> diff --git a/Dalamud/Plugin/Ipc/Internal/CallGate.cs b/Dalamud/Plugin/Ipc/Internal/CallGate.cs index 3f299da9d..fef4b97d0 100644 --- a/Dalamud/Plugin/Ipc/Internal/CallGate.cs +++ b/Dalamud/Plugin/Ipc/Internal/CallGate.cs @@ -9,7 +9,7 @@ namespace Dalamud.Plugin.Ipc.Internal; [ServiceManager.EarlyLoadedService] internal class CallGate : IServiceType { - private readonly Dictionary<string, CallGateChannel> gates = []; + private readonly Dictionary<string, CallGateChannel> gates = new(); private ImmutableDictionary<string, CallGateChannel>? gatesCopy; diff --git a/Dalamud/Plugin/Ipc/Internal/CallGateChannel.cs b/Dalamud/Plugin/Ipc/Internal/CallGateChannel.cs index 78c7f841b..ea94103f7 100644 --- a/Dalamud/Plugin/Ipc/Internal/CallGateChannel.cs +++ b/Dalamud/Plugin/Ipc/Internal/CallGateChannel.cs @@ -2,14 +2,11 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Reflection; -using System.Threading; -using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Ipc.Exceptions; using Dalamud.Plugin.Ipc.Internal.Converters; using Newtonsoft.Json; - using Serilog; namespace Dalamud.Plugin.Ipc.Internal; @@ -19,12 +16,10 @@ namespace Dalamud.Plugin.Ipc.Internal; /// </summary> internal class CallGateChannel { - private readonly ThreadLocal<IpcContext> ipcExecutionContext = new(); - /// <summary> /// The actual storage. /// </summary> - private readonly HashSet<Delegate> subscriptions = []; + private readonly HashSet<Delegate> subscriptions = new(); /// <summary> /// A copy of the actual storage, that will be cleared and populated depending on changes made to @@ -150,32 +145,6 @@ internal class CallGateChannel return (TRet)result; } - /// <summary> - /// Set the context for the invocations through this channel. - /// </summary> - /// <param name="ipcContext">The context to set.</param> - internal void SetInvocationContext(IpcContext ipcContext) - { - this.ipcExecutionContext.Value = ipcContext; - } - - /// <summary> - /// Get the context for invocations through this channel. - /// </summary> - /// <returns>The context, if one was set.</returns> - internal IpcContext? GetInvocationContext() - { - return this.ipcExecutionContext.IsValueCreated ? this.ipcExecutionContext.Value : null; - } - - /// <summary> - /// Clear the context for this channel. - /// </summary> - internal void ClearInvocationContext() - { - this.ipcExecutionContext.Value = null; - } - private void CheckAndConvertArgs(object?[]? args, MethodInfo methodInfo) { var paramTypes = methodInfo.GetParameters() diff --git a/Dalamud/Plugin/Ipc/Internal/CallGatePubSub.cs b/Dalamud/Plugin/Ipc/Internal/CallGatePubSub.cs index 8725ef733..cc54a563b 100644 --- a/Dalamud/Plugin/Ipc/Internal/CallGatePubSub.cs +++ b/Dalamud/Plugin/Ipc/Internal/CallGatePubSub.cs @@ -1,5 +1,3 @@ -using Dalamud.Plugin.Internal.Types; - #pragma warning disable SA1402 // File may only contain a single type namespace Dalamud.Plugin.Ipc.Internal; @@ -7,9 +5,9 @@ namespace Dalamud.Plugin.Ipc.Internal; /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<TRet> : CallGatePubSubBase, ICallGateProvider<TRet>, ICallGateSubscriber<TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -45,9 +43,9 @@ internal class CallGatePubSub<TRet> : CallGatePubSubBase, ICallGateProvider<TRet /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, TRet> : CallGatePubSubBase, ICallGateProvider<T1, TRet>, ICallGateSubscriber<T1, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -83,9 +81,9 @@ internal class CallGatePubSub<T1, TRet> : CallGatePubSubBase, ICallGateProvider< /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, T2, TRet> : CallGatePubSubBase, ICallGateProvider<T1, T2, TRet>, ICallGateSubscriber<T1, T2, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -121,9 +119,9 @@ internal class CallGatePubSub<T1, T2, TRet> : CallGatePubSubBase, ICallGateProvi /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, T2, T3, TRet> : CallGatePubSubBase, ICallGateProvider<T1, T2, T3, TRet>, ICallGateSubscriber<T1, T2, T3, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -159,9 +157,9 @@ internal class CallGatePubSub<T1, T2, T3, TRet> : CallGatePubSubBase, ICallGateP /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, T2, T3, T4, TRet> : CallGatePubSubBase, ICallGateProvider<T1, T2, T3, T4, TRet>, ICallGateSubscriber<T1, T2, T3, T4, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -197,9 +195,9 @@ internal class CallGatePubSub<T1, T2, T3, T4, TRet> : CallGatePubSubBase, ICallG /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, T2, T3, T4, T5, TRet> : CallGatePubSubBase, ICallGateProvider<T1, T2, T3, T4, T5, TRet>, ICallGateSubscriber<T1, T2, T3, T4, T5, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -235,9 +233,9 @@ internal class CallGatePubSub<T1, T2, T3, T4, T5, TRet> : CallGatePubSubBase, IC /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, T2, T3, T4, T5, T6, TRet> : CallGatePubSubBase, ICallGateProvider<T1, T2, T3, T4, T5, T6, TRet>, ICallGateSubscriber<T1, T2, T3, T4, T5, T6, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -273,9 +271,9 @@ internal class CallGatePubSub<T1, T2, T3, T4, T5, T6, TRet> : CallGatePubSubBase /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, TRet> : CallGatePubSubBase, ICallGateProvider<T1, T2, T3, T4, T5, T6, T7, TRet>, ICallGateSubscriber<T1, T2, T3, T4, T5, T6, T7, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } @@ -311,9 +309,9 @@ internal class CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, TRet> : CallGatePubSub /// <inheritdoc cref="CallGatePubSubBase"/> internal class CallGatePubSub<T1, T2, T3, T4, T5, T6, T7, T8, TRet> : CallGatePubSubBase, ICallGateProvider<T1, T2, T3, T4, T5, T6, T7, T8, TRet>, ICallGateSubscriber<T1, T2, T3, T4, T5, T6, T7, T8, TRet> { - /// <inheritdoc cref="CallGatePubSubBase(string, LocalPlugin?)"/> - public CallGatePubSub(string name, LocalPlugin? owningPlugin = null) - : base(name, owningPlugin) + /// <inheritdoc cref="CallGatePubSubBase(string)"/> + public CallGatePubSub(string name) + : base(name) { } diff --git a/Dalamud/Plugin/Ipc/Internal/CallGatePubSubBase.cs b/Dalamud/Plugin/Ipc/Internal/CallGatePubSubBase.cs index 521824b7b..308457373 100644 --- a/Dalamud/Plugin/Ipc/Internal/CallGatePubSubBase.cs +++ b/Dalamud/Plugin/Ipc/Internal/CallGatePubSubBase.cs @@ -1,11 +1,4 @@ -using System.Reactive.Disposables; -using System.Threading; - -using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Ipc.Exceptions; -using Dalamud.Utility; - -using Serilog; namespace Dalamud.Plugin.Ipc.Internal; @@ -18,11 +11,9 @@ internal abstract class CallGatePubSubBase /// Initializes a new instance of the <see cref="CallGatePubSubBase"/> class. /// </summary> /// <param name="name">The name of the IPC registration.</param> - /// <param name="owningPlugin">The plugin that owns this IPC pubsub.</param> - protected CallGatePubSubBase(string name, LocalPlugin? owningPlugin) + protected CallGatePubSubBase(string name) { this.Channel = Service<CallGate>.Get().GetOrCreateChannel(name); - this.OwningPlugin = owningPlugin; } /// <summary> @@ -30,7 +21,7 @@ internal abstract class CallGatePubSubBase /// <see cref="ICallGateSubscriber"/>s. /// </summary> public bool HasAction => this.Channel.Action != null; - + /// <summary> /// Gets a value indicating whether this IPC call gate has an associated Function. Only exposed to /// <see cref="ICallGateSubscriber"/>s. @@ -42,17 +33,12 @@ internal abstract class CallGatePubSubBase /// <see cref="ICallGateProvider"/>s, and can be used to determine if messages should be sent through the gate. /// </summary> public int SubscriptionCount => this.Channel.Subscriptions.Count; - + /// <summary> /// Gets the underlying channel implementation. /// </summary> protected CallGateChannel Channel { get; init; } - - /// <summary> - /// Gets the plugin that owns this pubsub instance. - /// </summary> - protected LocalPlugin? OwningPlugin { get; init; } - + /// <summary> /// Removes the associated Action from this call gate, effectively disabling RPC calls. /// </summary> @@ -67,16 +53,6 @@ internal abstract class CallGatePubSubBase public void UnregisterFunc() => this.Channel.Func = null; - /// <summary> - /// Gets the current context for this IPC call. This will only be present when called from within an IPC action - /// or function handler, and will be null otherwise. - /// </summary> - /// <returns>Returns a potential IPC context.</returns> - public IpcContext? GetContext() - { - return this.Channel.GetInvocationContext(); - } - /// <summary> /// Registers a <see cref="Delegate"/> for use by other plugins via RPC. This Delegate must satisfy the constraints /// of an <see cref="Action"/> type as defined by the interface, meaning they may not return a value and must have @@ -129,12 +105,7 @@ internal abstract class CallGatePubSubBase /// <seealso cref="RegisterAction"/> /// <seealso cref="UnregisterAction"/> private protected void InvokeAction(params object?[]? args) - { - using (this.BuildContext()) - { - this.Channel.InvokeAction(args); - } - } + => this.Channel.InvokeAction(args); /// <summary> /// Executes the Function registered for this IPC call gate via <see cref="RegisterFunc"/>. This method is intended @@ -149,12 +120,7 @@ internal abstract class CallGatePubSubBase /// <seealso cref="RegisterFunc"/> /// <seealso cref="UnregisterFunc"/> private protected TRet InvokeFunc<TRet>(params object?[]? args) - { - using (this.BuildContext()) - { - return this.Channel.InvokeFunc<TRet>(args); - } - } + => this.Channel.InvokeFunc<TRet>(args); /// <summary> /// Send the given arguments to all subscribers (through <see cref="Subscribe"/>) of this IPC call gate. This method @@ -166,14 +132,4 @@ internal abstract class CallGatePubSubBase /// <param name="args">Delegate arguments.</param> private protected void SendMessage(params object?[]? args) => this.Channel.SendMessage(args); - - private IDisposable BuildContext() - { - this.Channel.SetInvocationContext(new IpcContext - { - SourcePlugin = this.OwningPlugin != null ? new ExposedPlugin(this.OwningPlugin) : null, - }); - - return Disposable.Create(() => { this.Channel.ClearInvocationContext(); }); - } } diff --git a/Dalamud/Plugin/Ipc/Internal/DataCache.cs b/Dalamud/Plugin/Ipc/Internal/DataCache.cs index cbb5bb342..38cea4866 100644 --- a/Dalamud/Plugin/Ipc/Internal/DataCache.cs +++ b/Dalamud/Plugin/Ipc/Internal/DataCache.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Runtime.ExceptionServices; using Dalamud.Plugin.Ipc.Exceptions; @@ -17,12 +16,12 @@ internal readonly struct DataCache /// <summary> Name of the data. </summary> internal readonly string Tag; - /// <summary> The creating plugin ID of this DataCache entry. </summary> - internal readonly DataCachePluginId CreatorPluginId; + /// <summary> The assembly name of the initial creator. </summary> + internal readonly string CreatorAssemblyName; - /// <summary> A distinct list of plugin IDs that are using this data. </summary> + /// <summary> A not-necessarily distinct list of current users. </summary> /// <remarks> Also used as a reference count tracker. </remarks> - internal readonly List<DataCachePluginId> UserPluginIds; + internal readonly List<string> UserAssemblyNames; /// <summary> The type the data was registered as. </summary> internal readonly Type Type; @@ -34,14 +33,14 @@ internal readonly struct DataCache /// Initializes a new instance of the <see cref="DataCache"/> struct. /// </summary> /// <param name="tag">Name of the data.</param> - /// <param name="creatorPluginId">The internal name and effective working ID of the creating plugin.</param> + /// <param name="creatorAssemblyName">The assembly name of the initial creator.</param> /// <param name="data">A reference to data.</param> /// <param name="type">The type of the data.</param> - public DataCache(string tag, DataCachePluginId creatorPluginId, object? data, Type type) + public DataCache(string tag, string creatorAssemblyName, object? data, Type type) { this.Tag = tag; - this.CreatorPluginId = creatorPluginId; - this.UserPluginIds = []; + this.CreatorAssemblyName = creatorAssemblyName; + this.UserAssemblyNames = new(); this.Data = data; this.Type = type; } @@ -50,40 +49,40 @@ internal readonly struct DataCache /// Creates a new instance of the <see cref="DataCache"/> struct, using the given data generator function. /// </summary> /// <param name="tag">The name for the data cache.</param> - /// <param name="creatorPluginId">The internal name and effective working ID of the creating plugin.</param> + /// <param name="creatorAssemblyName">The assembly name of the initial creator.</param> /// <param name="dataGenerator">The function that generates the data if it does not already exist.</param> /// <typeparam name="T">The type of the stored data - needs to be a reference type that is shared through Dalamud itself, not loaded by the plugin.</typeparam> /// <returns>The new instance of <see cref="DataCache"/>.</returns> - public static DataCache From<T>(string tag, DataCachePluginId creatorPluginId, Func<T> dataGenerator) + public static DataCache From<T>(string tag, string creatorAssemblyName, Func<T> dataGenerator) where T : class { try { - var result = new DataCache(tag, creatorPluginId, dataGenerator.Invoke(), typeof(T)); + var result = new DataCache(tag, creatorAssemblyName, dataGenerator.Invoke(), typeof(T)); Log.Verbose( "[{who}] Created new data for [{Tag:l}] for creator {Creator:l}.", nameof(DataShare), tag, - creatorPluginId); + creatorAssemblyName); return result; } catch (Exception e) { throw ExceptionDispatchInfo.SetCurrentStackTrace( - new DataCacheCreationError(tag, creatorPluginId, typeof(T), e)); + new DataCacheCreationError(tag, creatorAssemblyName, typeof(T), e)); } } /// <summary> /// Attempts to fetch the data. /// </summary> - /// <param name="callingPluginId">The calling plugin ID.</param> + /// <param name="callerName">The name of the caller assembly.</param> /// <param name="value">The value, if succeeded.</param> /// <param name="ex">The exception, if failed.</param> /// <typeparam name="T">Desired type of the data.</typeparam> /// <returns><c>true</c> on success.</returns> public bool TryGetData<T>( - DataCachePluginId callingPluginId, + string callerName, [NotNullWhen(true)] out T? value, [NotNullWhen(false)] out Exception? ex) where T : class @@ -99,21 +98,16 @@ internal readonly struct DataCache value = data; ex = null; - // Register the access history. The effective working ID is unique per plugin and persists between reloads, so only add it once. - lock (this.UserPluginIds) - { - if (this.UserPluginIds.All(c => c.EffectiveWorkingId != callingPluginId.EffectiveWorkingId)) - { - this.UserPluginIds.Add(callingPluginId); - } - } + // Register the access history + lock (this.UserAssemblyNames) + this.UserAssemblyNames.Add(callerName); return true; default: value = null; ex = ExceptionDispatchInfo.SetCurrentStackTrace( - new DataCacheTypeMismatchError(this.Tag, this.CreatorPluginId, typeof(T), this.Type)); + new DataCacheTypeMismatchError(this.Tag, this.CreatorAssemblyName, typeof(T), this.Type)); return false; } } diff --git a/Dalamud/Plugin/Ipc/Internal/DataCachePluginId.cs b/Dalamud/Plugin/Ipc/Internal/DataCachePluginId.cs deleted file mode 100644 index c68dc7c06..000000000 --- a/Dalamud/Plugin/Ipc/Internal/DataCachePluginId.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.ExceptionServices; - -using Dalamud.Plugin.Ipc.Exceptions; - -using Serilog; - -namespace Dalamud.Plugin.Ipc.Internal; - -/// <summary> -/// Stores the internal name and effective working ID of a plugin accessing datashare. -/// </summary> -/// <param name="InternalName">The internal name of the plugin.</param> -/// <param name="EffectiveWorkingId">The effective working ID of the plugin.</param> -public record DataCachePluginId(string InternalName, Guid EffectiveWorkingId); diff --git a/Dalamud/Plugin/Ipc/Internal/DataShare.cs b/Dalamud/Plugin/Ipc/Internal/DataShare.cs index ffad4876e..8ce5ddb95 100644 --- a/Dalamud/Plugin/Ipc/Internal/DataShare.cs +++ b/Dalamud/Plugin/Ipc/Internal/DataShare.cs @@ -19,7 +19,7 @@ internal class DataShare : IServiceType /// Dictionary of cached values. Note that <see cref="Lazy{T}"/> is being used, as it does its own locking, /// effectively preventing calling the data generator multiple times concurrently. /// </summary> - private readonly Dictionary<string, Lazy<DataCache>> caches = []; + private readonly Dictionary<string, Lazy<DataCache>> caches = new(); [ServiceManager.ServiceConstructor] private DataShare() @@ -33,23 +33,24 @@ internal class DataShare : IServiceType /// </summary> /// <typeparam name="T">The type of the stored data - needs to be a reference type that is shared through Dalamud itself, not loaded by the plugin.</typeparam> /// <param name="tag">The name for the data cache.</param> - /// <param name="callingPluginId">The ID of the calling plugin.</param> /// <param name="dataGenerator">The function that generates the data if it does not already exist.</param> /// <returns>Either the existing data for <paramref name="tag"/> or the data generated by <paramref name="dataGenerator"/>.</returns> /// <exception cref="DataCacheTypeMismatchError">Thrown if a cache for <paramref name="tag"/> exists, but contains data of a type not assignable to <typeparamref name="T>"/>.</exception> /// <exception cref="DataCacheValueNullError">Thrown if the stored data for a cache is null.</exception> /// <exception cref="DataCacheCreationError">Thrown if <paramref name="dataGenerator"/> throws an exception or returns null.</exception> - public T GetOrCreateData<T>(string tag, DataCachePluginId callingPluginId, Func<T> dataGenerator) + public T GetOrCreateData<T>(string tag, Func<T> dataGenerator) where T : class { + var callerName = GetCallerName(); + Lazy<DataCache> cacheLazy; lock (this.caches) { if (!this.caches.TryGetValue(tag, out cacheLazy)) - this.caches[tag] = cacheLazy = new(() => DataCache.From(tag, callingPluginId, dataGenerator)); + this.caches[tag] = cacheLazy = new(() => DataCache.From(tag, callerName, dataGenerator)); } - return cacheLazy.Value.TryGetData<T>(callingPluginId, out var value, out var ex) ? value : throw ex; + return cacheLazy.Value.TryGetData<T>(callerName, out var value, out var ex) ? value : throw ex; } /// <summary> @@ -57,8 +58,7 @@ internal class DataShare : IServiceType /// If no assembly uses the data anymore, the cache will be removed from the data share and if it is an IDisposable, Dispose will be called on it. /// </summary> /// <param name="tag">The name for the data cache.</param> - /// <param name="callingPluginId">The ID of the calling plugin.</param> - public void RelinquishData(string tag, DataCachePluginId callingPluginId) + public void RelinquishData(string tag) { DataCache cache; lock (this.caches) @@ -66,8 +66,10 @@ internal class DataShare : IServiceType if (!this.caches.TryGetValue(tag, out var cacheLazy)) return; + var callerName = GetCallerName(); + cache = cacheLazy.Value; - if (!cache.UserPluginIds.Remove(callingPluginId) || cache.UserPluginIds.Count > 0) + if (!cache.UserAssemblyNames.Remove(callerName) || cache.UserAssemblyNames.Count > 0) return; if (!this.caches.Remove(tag)) return; @@ -82,7 +84,7 @@ internal class DataShare : IServiceType } catch (Exception e) { - Log.Error(e, "[DataShare] Failed to dispose [{Tag:l}] after it was removed from all shares.", tag); + Log.Error(e, "[DataShare] Failed to dispose [{Tag:l}] after it was removed from all shares.", tag); } } else @@ -97,10 +99,9 @@ internal class DataShare : IServiceType /// </summary> /// <typeparam name="T">The type of the stored data - needs to be a reference type that is shared through Dalamud itself, not loaded by the plugin.</typeparam> /// <param name="tag">The name for the data cache.</param> - /// <param name="callingPluginId">The ID of the calling plugin.</param> /// <param name="data">The requested data on success, null otherwise.</param> /// <returns>True if the requested data exists and is assignable to the requested type.</returns> - public bool TryGetData<T>(string tag, DataCachePluginId callingPluginId, [NotNullWhen(true)] out T? data) + public bool TryGetData<T>(string tag, [NotNullWhen(true)] out T? data) where T : class { data = null; @@ -111,7 +112,7 @@ internal class DataShare : IServiceType return false; } - return cacheLazy.Value.TryGetData(callingPluginId, out data, out _); + return cacheLazy.Value.TryGetData(GetCallerName(), out data, out _); } /// <summary> @@ -120,12 +121,11 @@ internal class DataShare : IServiceType /// </summary> /// <typeparam name="T">The type of the stored data - needs to be a reference type that is shared through Dalamud itself, not loaded by the plugin.</typeparam> /// <param name="tag">The name for the data cache.</param> - /// <param name="callingPluginId">The ID of the calling plugin.</param> /// <returns>The requested data.</returns> /// <exception cref="KeyNotFoundException">Thrown if <paramref name="tag"/> is not registered.</exception> /// <exception cref="DataCacheTypeMismatchError">Thrown if a cache for <paramref name="tag"/> exists, but contains data of a type not assignable to <typeparamref name="T>"/>.</exception> /// <exception cref="DataCacheValueNullError">Thrown if the stored data for a cache is null.</exception> - public T GetData<T>(string tag, DataCachePluginId callingPluginId) + public T GetData<T>(string tag) where T : class { Lazy<DataCache> cacheLazy; @@ -135,19 +135,35 @@ internal class DataShare : IServiceType throw new KeyNotFoundException($"The data cache [{tag}] is not registered."); } - return cacheLazy.Value.TryGetData<T>(callingPluginId, out var value, out var ex) ? value : throw ex; + return cacheLazy.Value.TryGetData<T>(GetCallerName(), out var value, out var ex) ? value : throw ex; } /// <summary> /// Obtain a read-only list of data shares. /// </summary> /// <returns>All currently subscribed tags, their creator names and all their users.</returns> - internal IEnumerable<(string Tag, DataCachePluginId CreatorPluginId, DataCachePluginId[] UserPluginIds)> GetAllShares() + internal IEnumerable<(string Tag, string CreatorAssembly, string[] Users)> GetAllShares() { lock (this.caches) { return this.caches.Select( - kvp => (kvp.Key, kvp.Value.Value.CreatorPluginId, kvp.Value.Value.UserPluginIds.ToArray())); + kvp => (kvp.Key, kvp.Value.Value.CreatorAssemblyName, kvp.Value.Value.UserAssemblyNames.ToArray())); } } + + /// <summary> Obtain the last assembly name in the stack trace that is not a system or dalamud assembly. </summary> + private static string GetCallerName() + { + var frames = new StackTrace().GetFrames(); + foreach (var frame in frames.Reverse()) + { + var name = frame.GetMethod()?.DeclaringType?.Assembly.GetName().Name ?? "Unknown"; + if (!name.StartsWith("System") && !name.StartsWith("Dalamud")) + { + return name; + } + } + + return "Unknown"; + } } diff --git a/Dalamud/Plugin/Ipc/IpcContext.cs b/Dalamud/Plugin/Ipc/IpcContext.cs deleted file mode 100644 index 25fde6a36..000000000 --- a/Dalamud/Plugin/Ipc/IpcContext.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Dalamud.Plugin.Ipc; - -/// <summary> -/// The context associated for an IPC call. Reads from ThreadLocal. -/// </summary> -public class IpcContext -{ - /// <summary> - /// Gets the plugin that initiated this IPC call. - /// </summary> - public IExposedPlugin? SourcePlugin { get; init; } - - /// <inheritdoc/> - public override string ToString() => $"<IpcContext SourcePlugin={this.SourcePlugin?.Name ?? "null"}>"; -} diff --git a/Dalamud/Plugin/PluginListInvalidationKind.cs b/Dalamud/Plugin/PluginListInvalidationKind.cs index 588ae60d7..4e7782703 100644 --- a/Dalamud/Plugin/PluginListInvalidationKind.cs +++ b/Dalamud/Plugin/PluginListInvalidationKind.cs @@ -1,20 +1,10 @@ -namespace Dalamud.Plugin; +namespace Dalamud.Plugin; /// <summary> /// Causes for a change to the plugin list. /// </summary> public enum PluginListInvalidationKind { - /// <summary> - /// A plugin was loaded. - /// </summary> - Loaded, - - /// <summary> - /// A plugin was unloaded. - /// </summary> - Unloaded, - /// <summary> /// An installer-initiated update reloaded plugins. /// </summary> diff --git a/Dalamud/Plugin/PluginLoadReason.cs b/Dalamud/Plugin/PluginLoadReason.cs index 2b494c549..d4c1a3b26 100644 --- a/Dalamud/Plugin/PluginLoadReason.cs +++ b/Dalamud/Plugin/PluginLoadReason.cs @@ -3,31 +3,32 @@ namespace Dalamud.Plugin; /// <summary> /// This enum reflects reasons for loading a plugin. /// </summary> -[Flags] public enum PluginLoadReason { /// <summary> /// We don't know why this plugin was loaded. /// </summary> - Unknown = 1 << 0, + Unknown, /// <summary> /// This plugin was loaded because it was installed with the plugin installer. /// </summary> - Installer = 1 << 1, + Installer, /// <summary> /// This plugin was loaded because it was just updated. /// </summary> - Update = 1 << 2, + Update, /// <summary> /// This plugin was loaded because it was told to reload. /// </summary> - Reload = 1 << 3, + Reload, /// <summary> /// This plugin was loaded because the game was started or Dalamud was reinjected. /// </summary> - Boot = 1 << 4, + Boot, } + +// TODO(api9): This should be a mask, so that we can combine Installer | ProfileLoaded diff --git a/Dalamud/Plugin/SelfTest/Internal/SelfTestGroup.cs b/Dalamud/Plugin/SelfTest/Internal/SelfTestGroup.cs deleted file mode 100644 index e2bc80f4b..000000000 --- a/Dalamud/Plugin/SelfTest/Internal/SelfTestGroup.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace Dalamud.Plugin.SelfTest.Internal; - -/// <summary> -/// Represents a self-test group with its loaded/unloaded state. -/// </summary> -internal class SelfTestGroup -{ - /// <summary> - /// Initializes a new instance of the <see cref="SelfTestGroup"/> class. - /// </summary> - /// <param name="name">The name of the test group.</param> - /// <param name="loaded">Whether the group is currently loaded.</param> - public SelfTestGroup(string name, bool loaded = true) - { - this.Name = name; - this.Loaded = loaded; - } - - /// <summary> - /// Gets the name of the test group. - /// </summary> - public string Name { get; } - - /// <summary> - /// Gets or sets a value indicating whether this test group is currently loaded. - /// </summary> - public bool Loaded { get; set; } -} diff --git a/Dalamud/Plugin/SelfTest/Internal/SelfTestRegistry.cs b/Dalamud/Plugin/SelfTest/Internal/SelfTestRegistry.cs deleted file mode 100644 index aa410b2c4..000000000 --- a/Dalamud/Plugin/SelfTest/Internal/SelfTestRegistry.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System.Collections.Generic; -using System.Linq; - -using Dalamud.Logging.Internal; -using Dalamud.Plugin.Internal.Types; - -namespace Dalamud.Plugin.SelfTest.Internal; - -/// <summary> -/// Registry for self-tests that can be run in the SelfTest window. -/// </summary> -[ServiceManager.EarlyLoadedService] -internal class SelfTestRegistry : IServiceType -{ - /// <summary> - /// The name of the Dalamud test group. - /// </summary> - public const string DalamudTestGroup = "Dalamud"; - - private static readonly ModuleLog Log = new("SelfTestRegistry"); - - private List<SelfTestWithResults> dalamudSelfTests = new(); - private List<SelfTestWithResults> pluginSelfTests = new(); - private Dictionary<string, SelfTestGroup> allGroups = new(); - - /// <summary> - /// Initializes a new instance of the <see cref="SelfTestRegistry"/> class. - /// </summary> - [ServiceManager.ServiceConstructor] - public SelfTestRegistry() - { - } - - /// <summary> - /// Gets all available self test groups. - /// </summary> - public IEnumerable<SelfTestGroup> SelfTestGroups - { - get - { - // Always return Dalamud group first, then plugin groups - if (this.allGroups.TryGetValue(DalamudTestGroup, out var dalamudGroup)) - { - yield return dalamudGroup; - } - - foreach (var group in this.allGroups.Values) - { - if (group.Name != DalamudTestGroup) - { - yield return group; - } - } - } - } - - /// <summary> - /// Gets all self tests from all groups. - /// </summary> - public IEnumerable<SelfTestWithResults> SelfTests => this.dalamudSelfTests.Concat(this.pluginSelfTests); - - /// <summary> - /// Registers Dalamud self test steps. - /// </summary> - /// <param name="steps">The steps to register.</param> - public void RegisterDalamudSelfTestSteps(IEnumerable<ISelfTestStep> steps) - { - // Ensure Dalamud group exists and is loaded - if (!this.allGroups.ContainsKey(DalamudTestGroup)) - { - this.allGroups[DalamudTestGroup] = new SelfTestGroup(DalamudTestGroup, loaded: true); - } - else - { - this.allGroups[DalamudTestGroup].Loaded = true; - } - - this.dalamudSelfTests.AddRange(steps.Select(step => SelfTestWithResults.FromDalamudStep(step))); - } - - /// <summary> - /// Registers plugin self test steps. - /// </summary> - /// <param name="plugin">The plugin registering the tests.</param> - /// <param name="steps">The steps to register.</param> - public void RegisterPluginSelfTestSteps(LocalPlugin plugin, IEnumerable<ISelfTestStep> steps) - { - // Ensure plugin group exists and is loaded - if (!this.allGroups.ContainsKey(plugin.InternalName)) - { - this.allGroups[plugin.InternalName] = new SelfTestGroup(plugin.InternalName, loaded: true); - } - else - { - this.allGroups[plugin.InternalName].Loaded = true; - } - - this.pluginSelfTests.AddRange(steps.Select(step => SelfTestWithResults.FromPluginStep(plugin, step))); - } - - /// <summary> - /// Unregisters all self test steps for a plugin. - /// </summary> - /// <param name="plugin">The plugin to unregister tests for.</param> - public void UnregisterPluginSelfTestSteps(LocalPlugin plugin) - { - // Clean up existing tests for this plugin - this.pluginSelfTests.ForEach(test => - { - if (test.Plugin == plugin) - { - test.Unload(); - } - }); - - this.pluginSelfTests.RemoveAll(test => test.Plugin == plugin); - - // Mark group as unloaded if it exists - if (this.allGroups.ContainsKey(plugin.InternalName)) - { - this.allGroups[plugin.InternalName].Loaded = false; - } - } -} diff --git a/Dalamud/Plugin/SelfTest/Internal/SelfTestRegistryPluginScoped.cs b/Dalamud/Plugin/SelfTest/Internal/SelfTestRegistryPluginScoped.cs deleted file mode 100644 index e3835ddbc..000000000 --- a/Dalamud/Plugin/SelfTest/Internal/SelfTestRegistryPluginScoped.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System.Collections.Generic; - -using Dalamud.IoC; -using Dalamud.IoC.Internal; -using Dalamud.Plugin.Internal.Types; -using Dalamud.Plugin.Services; - -namespace Dalamud.Plugin.SelfTest.Internal; - -/// <summary> -/// Plugin-scoped version of SelfTestRegistry. -/// </summary> -[PluginInterface] -[ServiceManager.ScopedService] -[ResolveVia<ISelfTestRegistry>] -internal class SelfTestRegistryPluginScoped : ISelfTestRegistry, IInternalDisposableService, IDalamudService -{ - [ServiceManager.ServiceDependency] - private readonly SelfTestRegistry selfTestRegistry = Service<SelfTestRegistry>.Get(); - - private readonly LocalPlugin plugin; - - /// <summary> - /// Initializes a new instance of the <see cref="SelfTestRegistryPluginScoped"/> class. - /// </summary> - /// <param name="plugin">The plugin this service belongs to.</param> - [ServiceManager.ServiceConstructor] - public SelfTestRegistryPluginScoped(LocalPlugin plugin) - { - this.plugin = plugin; - } - - /// <summary> - /// Gets the plugin name. - /// </summary> - public string PluginName { get; private set; } - - /// <summary> - /// Registers test steps for this plugin. - /// </summary> - /// <param name="steps">The test steps to register.</param> - public void RegisterTestSteps(IEnumerable<ISelfTestStep> steps) - { - this.selfTestRegistry.RegisterPluginSelfTestSteps(this.plugin, steps); - } - - /// <inheritdoc/> - void IInternalDisposableService.DisposeService() - { - this.selfTestRegistry.UnregisterPluginSelfTestSteps(this.plugin); - } -} diff --git a/Dalamud/Plugin/SelfTest/Internal/SelfTestWithResults.cs b/Dalamud/Plugin/SelfTest/Internal/SelfTestWithResults.cs deleted file mode 100644 index 3c03f66a8..000000000 --- a/Dalamud/Plugin/SelfTest/Internal/SelfTestWithResults.cs +++ /dev/null @@ -1,173 +0,0 @@ -using Dalamud.Logging.Internal; -using Dalamud.Plugin.Internal.Types; - -namespace Dalamud.Plugin.SelfTest.Internal; - -/// <summary> -/// A self test step with result tracking. -/// </summary> -internal class SelfTestWithResults -{ - private static readonly ModuleLog Log = new("SelfTest"); - - /// <summary> - /// Initializes a new instance of the <see cref="SelfTestWithResults"/> class. - /// </summary> - /// <param name="plugin">The plugin providing this test.</param> - /// <param name="group">The test group name.</param> - /// <param name="step">The test step.</param> - public SelfTestWithResults(LocalPlugin plugin, string group, ISelfTestStep step) - { - this.Plugin = plugin; - this.Group = group; - this.Step = step; - } - - /// <summary> - /// Gets the test group name. - /// </summary> - public string Group { get; private set; } - - /// <summary> - /// Gets the plugin that defined these tests. <c>null</c> for Dalamud tests. - /// </summary> - public LocalPlugin? Plugin { get; private set; } - - /// <summary> - /// Gets the test name. - /// </summary> - public string Name { get => this.Step.Name; } - - /// <summary> - /// Gets a value indicating whether the test has run and finished. - /// </summary> - public bool Finished => this.Result == SelfTestStepResult.Fail || this.Result == SelfTestStepResult.Pass; - - /// <summary> - /// Gets a value indicating whether the plugin that provided this test has been unloaded. - /// </summary> - public bool Unloaded => this.Step == null; - - /// <summary> - /// Gets the most recent result of running this test. - /// </summary> - public SelfTestStepResult Result { get; private set; } = SelfTestStepResult.NotRan; - - /// <summary> - /// Gets the last time this test was started. - /// </summary> - public DateTimeOffset? StartTime { get; private set; } = null; - - /// <summary> - /// Gets how long it took (or is taking) for this test to execute. - /// </summary> - public TimeSpan? Duration { get; private set; } = null; - - /// <summary> - /// Gets or sets the Step that our results are for. - /// - /// If <c>null</c> it means the Plugin that provided this test has been unloaded and we can't use this test anymore. - /// </summary> - private ISelfTestStep? Step { get; set; } - - /// <summary> - /// Creates a SelfTestWithResults from a Dalamud step. - /// </summary> - /// <param name="step">The step to wrap.</param> - /// <returns>A new SelfTestWithResults instance.</returns> - public static SelfTestWithResults FromDalamudStep(ISelfTestStep step) - { - return new SelfTestWithResults(plugin: null, group: "Dalamud", step: step); - } - - /// <summary> - /// Creates a SelfTestWithResults from a plugin step. - /// </summary> - /// <param name="plugin">The plugin providing the step.</param> - /// <param name="step">The step to wrap.</param> - /// <returns>A new SelfTestWithResults instance.</returns> - public static SelfTestWithResults FromPluginStep(LocalPlugin plugin, ISelfTestStep step) - { - return new SelfTestWithResults(plugin: plugin, group: plugin.InternalName, step: step); - } - - /// <summary> - /// Reset the test. - /// </summary> - public void Reset() - { - this.Result = SelfTestStepResult.NotRan; - this.StartTime = null; - this.Duration = null; - } - - /// <summary> - /// Finish the currently running test and clean up any state. This preserves test run results. - /// </summary> - public void Finish() - { - if (this.Step == null) - { - return; - } - - if (this.Result == SelfTestStepResult.NotRan) - { - return; - } - - this.Step.CleanUp(); - } - - /// <summary> - /// Steps the state of this Self Test. This should be called every frame that we care about the results of this test. - /// </summary> - public void DrawAndStep() - { - // If we've been unloaded then there's nothing to do. - if (this.Step == null) - { - return; - } - - // If we have already finished then there's nothing to do - if (this.Finished) - { - return; - } - - // Otherwise, we assume that calling this functions means we are running the test. - if (this.Result == SelfTestStepResult.NotRan) - { - this.StartTime = DateTimeOffset.Now; - this.Result = SelfTestStepResult.Waiting; - } - - try - { - this.Result = this.Step.RunStep(); - } - catch (Exception ex) - { - Log.Error(ex, $"Step failed: {this.Name} ({this.Group})"); - this.Result = SelfTestStepResult.Fail; - } - - this.Duration = DateTimeOffset.Now - this.StartTime; - - // If we ran and finished we need to clean up - if (this.Finished) - { - this.Finish(); - } - } - - /// <summary> - /// Unloads the test and cleans up. - /// </summary> - public void Unload() - { - this.Finish(); - this.Step = null; - } -} diff --git a/Dalamud/Plugin/Services/IAddonEventManager.cs b/Dalamud/Plugin/Services/IAddonEventManager.cs index 6b7b1166e..c6ec5a941 100644 --- a/Dalamud/Plugin/Services/IAddonEventManager.cs +++ b/Dalamud/Plugin/Services/IAddonEventManager.cs @@ -1,19 +1,19 @@ -using Dalamud.Game.Addon.Events; -using Dalamud.Game.Addon.Events.EventDataTypes; +using Dalamud.Game.Addon.Events; namespace Dalamud.Plugin.Services; /// <summary> /// Service provider for addon event management. /// </summary> -public interface IAddonEventManager : IDalamudService +public interface IAddonEventManager { /// <summary> /// Delegate to be called when an event is received. /// </summary> - /// <param name="atkEventType">The AtkEventType that triggered this event.</param> - /// <param name="data">The event data object for use in handling this event.</param> - public delegate void AddonEventDelegate(AddonEventType atkEventType, AddonEventData data); + /// <param name="atkEventType">Event type for this event handler.</param> + /// <param name="atkUnitBase">The parent addon for this event handler.</param> + /// <param name="atkResNode">The specific node that will trigger this event handler.</param> + public delegate void AddonEventHandler(AddonEventType atkEventType, nint atkUnitBase, nint atkResNode); /// <summary> /// Registers an event handler for the specified addon, node, and type. @@ -21,9 +21,9 @@ public interface IAddonEventManager : IDalamudService /// <param name="atkUnitBase">The parent addon for this event.</param> /// <param name="atkResNode">The node that will trigger this event.</param> /// <param name="eventType">The event type for this event.</param> - /// <param name="eventDelegate">The handler to call when event is triggered.</param> + /// <param name="eventHandler">The handler to call when event is triggered.</param> /// <returns>IAddonEventHandle used to remove the event. Null if no event was added.</returns> - IAddonEventHandle? AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType eventType, AddonEventDelegate eventDelegate); + IAddonEventHandle? AddEvent(nint atkUnitBase, nint atkResNode, AddonEventType eventType, AddonEventHandler eventHandler); /// <summary> /// Unregisters an event handler with the specified event id and event type. diff --git a/Dalamud/Plugin/Services/IAddonLifecycle.cs b/Dalamud/Plugin/Services/IAddonLifecycle.cs index aeff29811..ebf629b85 100644 --- a/Dalamud/Plugin/Services/IAddonLifecycle.cs +++ b/Dalamud/Plugin/Services/IAddonLifecycle.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Runtime.InteropServices; using Dalamud.Game.Addon.Lifecycle; @@ -9,7 +9,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This class provides events for in-game addon lifecycles. /// </summary> -public interface IAddonLifecycle : IDalamudService +public interface IAddonLifecycle { /// <summary> /// Delegate for receiving addon lifecycle event messages. @@ -17,7 +17,7 @@ public interface IAddonLifecycle : IDalamudService /// <param name="type">The event type that triggered the message.</param> /// <param name="args">Information about what addon triggered the message.</param> public delegate void AddonEventDelegate(AddonEvent type, AddonArgs args); - + /// <summary> /// Register a listener that will trigger on the specified event and any of the specified addons. /// </summary> @@ -25,7 +25,7 @@ public interface IAddonLifecycle : IDalamudService /// <param name="addonNames">Addon names that will trigger the handler to be invoked.</param> /// <param name="handler">The handler to invoke.</param> void RegisterListener(AddonEvent eventType, IEnumerable<string> addonNames, AddonEventDelegate handler); - + /// <summary> /// Register a listener that will trigger on the specified event only for the specified addon. /// </summary> @@ -33,14 +33,14 @@ public interface IAddonLifecycle : IDalamudService /// <param name="addonName">The addon name that will trigger the handler to be invoked.</param> /// <param name="handler">The handler to invoke.</param> void RegisterListener(AddonEvent eventType, string addonName, AddonEventDelegate handler); - + /// <summary> /// Register a listener that will trigger on the specified event for any addon. /// </summary> /// <param name="eventType">Event type to trigger on.</param> /// <param name="handler">The handler to invoke.</param> void RegisterListener(AddonEvent eventType, AddonEventDelegate handler); - + /// <summary> /// Unregister listener from specified event type and specified addon names. /// </summary> @@ -51,7 +51,7 @@ public interface IAddonLifecycle : IDalamudService /// <param name="addonNames">Addon names to deregister.</param> /// <param name="handler">Optional specific handler to remove.</param> void UnregisterListener(AddonEvent eventType, IEnumerable<string> addonNames, [Optional] AddonEventDelegate handler); - + /// <summary> /// Unregister all listeners for the specified event type and addon name. /// </summary> @@ -62,7 +62,7 @@ public interface IAddonLifecycle : IDalamudService /// <param name="addonName">Addon name to deregister.</param> /// <param name="handler">Optional specific handler to remove.</param> void UnregisterListener(AddonEvent eventType, string addonName, [Optional] AddonEventDelegate handler); - + /// <summary> /// Unregister an event type handler.<br/>This will only remove a handler that is added via <see cref="RegisterListener(AddonEvent, AddonEventDelegate)"/>. /// </summary> @@ -72,17 +72,10 @@ public interface IAddonLifecycle : IDalamudService /// <param name="eventType">Event type to deregister.</param> /// <param name="handler">Optional specific handler to remove.</param> void UnregisterListener(AddonEvent eventType, [Optional] AddonEventDelegate handler); - + /// <summary> /// Unregister all events that use the specified handlers. /// </summary> /// <param name="handlers">Handlers to remove.</param> void UnregisterListener(params AddonEventDelegate[] handlers); - - /// <summary> - /// Resolves an addons virtual table address back to the original unmodified table address. - /// </summary> - /// <param name="virtualTableAddress">The address of a modified addons virtual table.</param> - /// <returns>The address of the addons original virtual table.</returns> - nint GetOriginalVirtualTable(nint virtualTableAddress); } diff --git a/Dalamud/Plugin/Services/IAetheryteList.cs b/Dalamud/Plugin/Services/IAetheryteList.cs index 58b82ebf6..88c2ff616 100644 --- a/Dalamud/Plugin/Services/IAetheryteList.cs +++ b/Dalamud/Plugin/Services/IAetheryteList.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.ClientState.Aetherytes; @@ -7,7 +7,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This collection represents the list of available Aetherytes in the Teleport window. /// </summary> -public interface IAetheryteList : IDalamudService, IReadOnlyCollection<IAetheryteEntry> +public interface IAetheryteList : IReadOnlyCollection<IAetheryteEntry> { /// <summary> /// Gets the amount of Aetherytes the local player has unlocked. diff --git a/Dalamud/Plugin/Services/IAgentLifecycle.cs b/Dalamud/Plugin/Services/IAgentLifecycle.cs deleted file mode 100644 index 62178408d..000000000 --- a/Dalamud/Plugin/Services/IAgentLifecycle.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System.Collections.Generic; -using System.Runtime.InteropServices; - -using Dalamud.Game.Agent; -using Dalamud.Game.Agent.AgentArgTypes; - -namespace Dalamud.Plugin.Services; - -/// <summary> -/// This class provides events for in-game agent lifecycles. -/// </summary> -public interface IAgentLifecycle : IDalamudService -{ - /// <summary> - /// Delegate for receiving agent lifecycle event messages. - /// </summary> - /// <param name="type">The event type that triggered the message.</param> - /// <param name="args">Information about what agent triggered the message.</param> - public delegate void AgentEventDelegate(AgentEvent type, AgentArgs args); - - /// <summary> - /// Register a listener that will trigger on the specified event and any of the specified agent. - /// </summary> - /// <param name="eventType">Event type to trigger on.</param> - /// <param name="agentIds">Agent IDs that will trigger the handler to be invoked.</param> - /// <param name="handler">The handler to invoke.</param> - void RegisterListener(AgentEvent eventType, IEnumerable<AgentId> agentIds, AgentEventDelegate handler); - - /// <summary> - /// Register a listener that will trigger on the specified event only for the specified agent. - /// </summary> - /// <param name="eventType">Event type to trigger on.</param> - /// <param name="agentId">The agent ID that will trigger the handler to be invoked.</param> - /// <param name="handler">The handler to invoke.</param> - void RegisterListener(AgentEvent eventType, AgentId agentId, AgentEventDelegate handler); - - /// <summary> - /// Register a listener that will trigger on the specified event for any agent. - /// </summary> - /// <param name="eventType">Event type to trigger on.</param> - /// <param name="handler">The handler to invoke.</param> - void RegisterListener(AgentEvent eventType, AgentEventDelegate handler); - - /// <summary> - /// Unregister listener from specified event type and specified agent IDs. - /// </summary> - /// <remarks> - /// If a specific handler is not provided, all handlers for the event type and agent IDs will be unregistered. - /// </remarks> - /// <param name="eventType">Event type to deregister.</param> - /// <param name="agentIds">Agent IDs to deregister.</param> - /// <param name="handler">Optional specific handler to remove.</param> - void UnregisterListener(AgentEvent eventType, IEnumerable<AgentId> agentIds, [Optional] AgentEventDelegate handler); - - /// <summary> - /// Unregister all listeners for the specified event type and agent ID. - /// </summary> - /// <remarks> - /// If a specific handler is not provided, all handlers for the event type and agents will be unregistered. - /// </remarks> - /// <param name="eventType">Event type to deregister.</param> - /// <param name="agentId">Agent id to deregister.</param> - /// <param name="handler">Optional specific handler to remove.</param> - void UnregisterListener(AgentEvent eventType, AgentId agentId, [Optional] AgentEventDelegate handler); - - /// <summary> - /// Unregister an event type handler.<br/>This will only remove a handler that is added via <see cref="RegisterListener(AgentEvent, AgentEventDelegate)"/>. - /// </summary> - /// <remarks> - /// If a specific handler is not provided, all handlers for the event type and agents will be unregistered. - /// </remarks> - /// <param name="eventType">Event type to deregister.</param> - /// <param name="handler">Optional specific handler to remove.</param> - void UnregisterListener(AgentEvent eventType, [Optional] AgentEventDelegate handler); - - /// <summary> - /// Unregister all events that use the specified handlers. - /// </summary> - /// <param name="handlers">Handlers to remove.</param> - void UnregisterListener(params AgentEventDelegate[] handlers); - - /// <summary> - /// Resolves an agents virtual table address back to the original unmodified table address. - /// </summary> - /// <param name="virtualTableAddress">The address of a modified agents virtual table.</param> - /// <returns>The address of the agents original virtual table.</returns> - nint GetOriginalVirtualTable(nint virtualTableAddress); -} diff --git a/Dalamud/Plugin/Services/IBuddyList.cs b/Dalamud/Plugin/Services/IBuddyList.cs index 8d3790b6d..77c0b9c17 100644 --- a/Dalamud/Plugin/Services/IBuddyList.cs +++ b/Dalamud/Plugin/Services/IBuddyList.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.ClientState.Buddy; @@ -8,7 +8,7 @@ namespace Dalamud.Plugin.Services; /// This collection represents the buddies present in your squadron or trust party. /// It does not include the local player. /// </summary> -public interface IBuddyList : IDalamudService, IReadOnlyCollection<IBuddyMember> +public interface IBuddyList : IReadOnlyCollection<IBuddyMember> { /// <summary> /// Gets the amount of battle buddies the local player has. diff --git a/Dalamud/Plugin/Services/IChatGui.cs b/Dalamud/Plugin/Services/IChatGui.cs index 2bb7b6913..3f221b3bb 100644 --- a/Dalamud/Plugin/Services/IChatGui.cs +++ b/Dalamud/Plugin/Services/IChatGui.cs @@ -1,17 +1,15 @@ using System.Collections.Generic; -using Dalamud.Game.Chat; using Dalamud.Game.Gui; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Game.Text.SeStringHandling.Payloads; namespace Dalamud.Plugin.Services; /// <summary> /// This class handles interacting with the native chat UI. /// </summary> -public interface IChatGui : IDalamudService +public interface IChatGui { /// <summary> /// A delegate type used with the <see cref="ChatGui.ChatMessage"/> event. @@ -51,12 +49,6 @@ public interface IChatGui : IDalamudService /// <param name="message">The message sent.</param> public delegate void OnMessageUnhandledDelegate(XivChatType type, int timestamp, SeString sender, SeString message); - /// <summary> - /// A delegate type used with the <see cref="IChatGui.LogMessage"/> event. - /// </summary> - /// <param name="message">The message sent.</param> - public delegate void OnLogMessageDelegate(ILogMessage message); - /// <summary> /// Event that will be fired when a chat message is sent to chat by the game. /// </summary> @@ -77,11 +69,6 @@ public interface IChatGui : IDalamudService /// </summary> public event OnMessageUnhandledDelegate ChatMessageUnhandled; - /// <summary> - /// Event that will be fired when a log message, that is a chat message based on entries in the LogMessage sheet, is sent. - /// </summary> - public event OnLogMessageDelegate LogMessage; - /// <summary> /// Gets the ID of the last linked item. /// </summary> @@ -97,25 +84,6 @@ public interface IChatGui : IDalamudService /// </summary> public IReadOnlyDictionary<(string PluginName, uint CommandId), Action<uint, SeString>> RegisteredLinkHandlers { get; } - /// <summary> - /// Register a chat link handler. - /// </summary> - /// <param name="commandId">The ID of the command.</param> - /// <param name="commandAction">The action to be executed.</param> - /// <returns>Returns an SeString payload for the link.</returns> - public DalamudLinkPayload AddChatLinkHandler(uint commandId, Action<uint, SeString> commandAction); - - /// <summary> - /// Remove a chat link handler. - /// </summary> - /// <param name="commandId">The ID of the command.</param> - public void RemoveChatLinkHandler(uint commandId); - - /// <summary> - /// Removes all chat link handlers registered by the plugin. - /// </summary> - public void RemoveChatLinkHandler(); - /// <summary> /// Queue a chat message. Dalamud will send queued messages on the next framework event. /// </summary> diff --git a/Dalamud/Plugin/Services/IClientState.cs b/Dalamud/Plugin/Services/IClientState.cs index 9e7453c25..bac2b3e3f 100644 --- a/Dalamud/Plugin/Services/IClientState.cs +++ b/Dalamud/Plugin/Services/IClientState.cs @@ -1,15 +1,13 @@ using Dalamud.Game; -using Dalamud.Game.ClientState; using Dalamud.Game.ClientState.Conditions; using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Utility; namespace Dalamud.Plugin.Services; /// <summary> /// This class represents the state of the game client at the time of access. /// </summary> -public interface IClientState : IDalamudService +public interface IClientState { /// <summary> /// A delegate type used for the <see cref="ClassJobChanged"/> event. @@ -31,26 +29,11 @@ public interface IClientState : IDalamudService /// <param name="code">The success/failure code.</param> public delegate void LogoutDelegate(int type, int code); - /// <summary> - /// Event that gets fired when the game initializes a zone. - /// </summary> - public event Action<ZoneInitEventArgs> ZoneInit; - /// <summary> /// Event that gets fired when the current Territory changes. /// </summary> public event Action<ushort> TerritoryChanged; - /// <summary> - /// Event that gets fired when the current Map changes. - /// </summary> - public event Action<uint> MapIdChanged; - - /// <summary> - /// Event that gets fired when the current zone Instance changes. - /// </summary> - public event Action<uint> InstanceChanged; - /// <summary> /// Event that fires when a characters ClassJob changed. /// </summary> @@ -96,29 +79,20 @@ public interface IClientState : IDalamudService /// Gets the current Territory the player resides in. /// </summary> public ushort TerritoryType { get; } - + /// <summary> /// Gets the current Map the player resides in. /// </summary> public uint MapId { get; } - /// <summary> - /// Gets the instance number of the current zone, used when multiple copies of an area are active. - /// </summary> - public uint Instance { get; } - /// <summary> /// Gets the local player character, if one is present. /// </summary> - [Api15ToDo("Remove")] - [Obsolete($"Use {nameof(IPlayerState)} or {nameof(IObjectTable)}.{nameof(IObjectTable.LocalPlayer)} if necessary.")] public IPlayerCharacter? LocalPlayer { get; } /// <summary> /// Gets the content ID of the local character. /// </summary> - [Api15ToDo("Remove")] - [Obsolete($"Use {nameof(IPlayerState)}.{nameof(IPlayerState.ContentId)}")] public ulong LocalContentId { get; } /// <summary> @@ -127,17 +101,17 @@ public interface IClientState : IDalamudService public bool IsLoggedIn { get; } /// <summary> - /// Gets a value indicating whether the user is playing PvP. + /// Gets a value indicating whether or not the user is playing PvP. /// </summary> public bool IsPvP { get; } /// <summary> - /// Gets a value indicating whether the user is playing PvP, excluding the Wolves' Den. + /// Gets a value indicating whether or not the user is playing PvP, excluding the Wolves' Den. /// </summary> public bool IsPvPExcludingDen { get; } - + /// <summary> - /// Gets a value indicating whether the client is currently in Group Pose (GPose) mode. + /// Gets a value indicating whether the client is currently in Group Pose (GPose) mode. /// </summary> public bool IsGPosing { get; } diff --git a/Dalamud/Plugin/Services/ICommandManager.cs b/Dalamud/Plugin/Services/ICommandManager.cs index 46138cd71..a6bc4763f 100644 --- a/Dalamud/Plugin/Services/ICommandManager.cs +++ b/Dalamud/Plugin/Services/ICommandManager.cs @@ -1,4 +1,4 @@ -using System.Collections.ObjectModel; +using System.Collections.ObjectModel; using Dalamud.Game.Command; @@ -7,7 +7,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This class manages registered in-game slash commands. /// </summary> -public interface ICommandManager : IDalamudService +public interface ICommandManager { /// <summary> /// Gets a read-only list of all registered commands. diff --git a/Dalamud/Plugin/Services/ICondition.cs b/Dalamud/Plugin/Services/ICondition.cs index c37117f3c..4ea9e7f76 100644 --- a/Dalamud/Plugin/Services/ICondition.cs +++ b/Dalamud/Plugin/Services/ICondition.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.ClientState.Conditions; @@ -7,7 +7,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// Provides access to conditions (generally player state). You can check whether a player is in combat, mounted, etc. /// </summary> -public interface ICondition : IDalamudService +public interface ICondition { /// <summary> /// A delegate type used with the <see cref="ConditionChange"/> event. diff --git a/Dalamud/Plugin/Services/IConsole.cs b/Dalamud/Plugin/Services/IConsole.cs index be920a5c9..0b6832efb 100644 --- a/Dalamud/Plugin/Services/IConsole.cs +++ b/Dalamud/Plugin/Services/IConsole.cs @@ -1,4 +1,4 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using Dalamud.Console; @@ -8,7 +8,7 @@ namespace Dalamud.Plugin.Services; /// Provides functions to register console commands and variables. /// </summary> [Experimental("Dalamud001")] -public interface IConsole : IDalamudService +public interface IConsole { /// <summary> /// Gets this plugin's namespace prefix, derived off its internal name. diff --git a/Dalamud/Plugin/Services/IContextMenu.cs b/Dalamud/Plugin/Services/IContextMenu.cs index ed99f595e..02f773441 100644 --- a/Dalamud/Plugin/Services/IContextMenu.cs +++ b/Dalamud/Plugin/Services/IContextMenu.cs @@ -5,7 +5,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This class provides methods for interacting with the game's context menu. /// </summary> -public interface IContextMenu : IDalamudService +public interface IContextMenu { /// <summary> /// A delegate type used for the <see cref="OnMenuOpened"/> event. diff --git a/Dalamud/Plugin/Services/IDalamudService.cs b/Dalamud/Plugin/Services/IDalamudService.cs deleted file mode 100644 index 1472b27da..000000000 --- a/Dalamud/Plugin/Services/IDalamudService.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Dalamud.Plugin.Services; - -/// <summary> -/// Marker interface for Dalamud services. -/// </summary> -/// <remarks> -/// This interface is implemented by all services provided through Dalamud's -/// dependency injection system. -/// </remarks> -public interface IDalamudService; diff --git a/Dalamud/Plugin/Services/IDataManager.cs b/Dalamud/Plugin/Services/IDataManager.cs index 474d34ecb..65c51a9fb 100644 --- a/Dalamud/Plugin/Services/IDataManager.cs +++ b/Dalamud/Plugin/Services/IDataManager.cs @@ -14,7 +14,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This class provides data for Dalamud-internal features, but can also be used by plugins if needed. /// </summary> -public interface IDataManager : IDalamudService +public interface IDataManager { /// <summary> /// Gets the current game client language. diff --git a/Dalamud/Plugin/Services/IDtrBar.cs b/Dalamud/Plugin/Services/IDtrBar.cs index a24327e23..8ab34c6f2 100644 --- a/Dalamud/Plugin/Services/IDtrBar.cs +++ b/Dalamud/Plugin/Services/IDtrBar.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.Gui.Dtr; using Dalamud.Game.Text.SeStringHandling; @@ -8,7 +8,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// Class used to interface with the server info bar. /// </summary> -public interface IDtrBar : IDalamudService +public interface IDtrBar { /// <summary> /// Gets a read-only copy of the list of all DTR bar entries. diff --git a/Dalamud/Plugin/Services/IDutyState.cs b/Dalamud/Plugin/Services/IDutyState.cs index 9ad2e3c24..3d49f68cb 100644 --- a/Dalamud/Plugin/Services/IDutyState.cs +++ b/Dalamud/Plugin/Services/IDutyState.cs @@ -1,9 +1,9 @@ -namespace Dalamud.Plugin.Services; +namespace Dalamud.Plugin.Services; /// <summary> /// This class represents the state of the currently occupied duty. /// </summary> -public interface IDutyState : IDalamudService +public interface IDutyState { /// <summary> /// Event that gets fired when the duty starts. diff --git a/Dalamud/Plugin/Services/IFateTable.cs b/Dalamud/Plugin/Services/IFateTable.cs index 3392d8e23..d10141050 100644 --- a/Dalamud/Plugin/Services/IFateTable.cs +++ b/Dalamud/Plugin/Services/IFateTable.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.ClientState.Fates; @@ -7,7 +7,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This collection represents the currently available Fate events. /// </summary> -public interface IFateTable : IDalamudService, IReadOnlyCollection<IFate> +public interface IFateTable : IReadOnlyCollection<IFate> { /// <summary> /// Gets the address of the Fate table. diff --git a/Dalamud/Plugin/Services/IFlyTextGui.cs b/Dalamud/Plugin/Services/IFlyTextGui.cs index 6c0e40fd6..04fae351d 100644 --- a/Dalamud/Plugin/Services/IFlyTextGui.cs +++ b/Dalamud/Plugin/Services/IFlyTextGui.cs @@ -1,4 +1,4 @@ -using Dalamud.Game.Gui.FlyText; +using Dalamud.Game.Gui.FlyText; using Dalamud.Game.Text.SeStringHandling; namespace Dalamud.Plugin.Services; @@ -6,7 +6,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This class facilitates interacting with and creating native in-game "fly text". /// </summary> -public interface IFlyTextGui : IDalamudService +public interface IFlyTextGui { /// <summary> /// The delegate defining the type for the FlyText event. diff --git a/Dalamud/Plugin/Services/IFramework.cs b/Dalamud/Plugin/Services/IFramework.cs index 3524ca668..f1a4b6906 100644 --- a/Dalamud/Plugin/Services/IFramework.cs +++ b/Dalamud/Plugin/Services/IFramework.cs @@ -1,4 +1,4 @@ -using System.Threading; +using System.Threading; using System.Threading.Tasks; using Dalamud.Interface.Internal.Windows.Data.Widgets; @@ -24,7 +24,7 @@ namespace Dalamud.Plugin.Services; /// <para>See <see cref="TaskSchedulerWidget"/> to see the difference in behaviors, and how would a misuse of these /// functions result in a deadlock.</para> /// </remarks> -public interface IFramework : IDalamudService +public interface IFramework { /// <summary> /// A delegate type used with the <see cref="Update"/> event. diff --git a/Dalamud/Plugin/Services/IGameConfig.cs b/Dalamud/Plugin/Services/IGameConfig.cs index 10883c6d1..5d8378659 100644 --- a/Dalamud/Plugin/Services/IGameConfig.cs +++ b/Dalamud/Plugin/Services/IGameConfig.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; using Dalamud.Game.Config; using Dalamud.Plugin.Internal.Types; @@ -17,7 +17,7 @@ namespace Dalamud.Plugin.Services; /// If property access from the plugin constructor is desired, do the value retrieval asynchronously via /// <see cref="IFramework.RunOnFrameworkThread{T}(Func{T})"/>; do not wait for the result right away. /// </remarks> -public interface IGameConfig : IDalamudService +public interface IGameConfig { /// <summary> /// Event which is fired when any game config option is changed. diff --git a/Dalamud/Plugin/Services/IGameGui.cs b/Dalamud/Plugin/Services/IGameGui.cs index 933252ff4..0e2da7874 100644 --- a/Dalamud/Plugin/Services/IGameGui.cs +++ b/Dalamud/Plugin/Services/IGameGui.cs @@ -1,7 +1,6 @@ -using System.Numerics; +using System.Numerics; using Dalamud.Game.Gui; -using Dalamud.Game.NativeWrapper; using Dalamud.Game.Text.SeStringHandling.Payloads; namespace Dalamud.Plugin.Services; @@ -9,7 +8,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// A class handling many aspects of the in-game UI. /// </summary> -public unsafe interface IGameGui : IDalamudService +public unsafe interface IGameGui { /// <summary> /// Event which is fired when the game UI hiding is toggled. @@ -26,12 +25,6 @@ public unsafe interface IGameGui : IDalamudService /// </summary> public event EventHandler<HoveredAction> HoveredActionChanged; - /// <summary> - /// Fired when the game sets one or more <see cref="AgentUpdateFlag"/> values, - /// used by agents to conditionally update their addons. - /// </summary> - event Action<AgentUpdateFlag> AgentUpdate; - /// <summary> /// Gets a value indicating whether the game UI is hidden. /// </summary> @@ -42,7 +35,7 @@ public unsafe interface IGameGui : IDalamudService /// If > 1.000.000, subtract 1.000.000 and treat it as HQ. /// </summary> public ulong HoveredItem { get; set; } - + /// <summary> /// Gets the action ID that is current hovered by the player. 0 when no action is hovered. /// </summary> @@ -82,46 +75,37 @@ public unsafe interface IGameGui : IDalamudService public bool ScreenToWorld(Vector2 screenPos, out Vector3 worldPos, float rayDistance = 100000.0f); /// <summary> - /// Gets a pointer to the game's UIModule instance. + /// Gets a pointer to the game's UI module. /// </summary> - /// <returns>A pointer wrapper to UIModule.</returns> - public UIModulePtr GetUIModule(); + /// <returns>IntPtr pointing to UI module.</returns> + public nint GetUIModule(); /// <summary> /// Gets the pointer to the Addon with the given name and index. /// </summary> /// <param name="name">Name of addon to find.</param> /// <param name="index">Index of addon to find (1-indexed).</param> - /// <returns>A pointer wrapper to the addon.</returns> - public AtkUnitBasePtr GetAddonByName(string name, int index = 1); - - /// <summary> - /// Gets the pointer to the Addon with the given name and index. - /// </summary> - /// <param name="name">Name of addon to find.</param> - /// <param name="index">Index of addon to find (1-indexed).</param> - /// <returns>A pointer wrapper to the addon.</returns> - /// <typeparam name="T">Type of addon pointer AtkUnitBase or any derived struct.</typeparam> - public T* GetAddonByName<T>(string name, int index = 1) where T : unmanaged; - - /// <summary> - /// Find the agent associated with an addon, if possible. - /// </summary> - /// <param name="id">The agent id.</param> - /// <returns>A pointer wrapper to the agent interface.</returns> - public AgentInterfacePtr GetAgentById(int id); + /// <returns>nint.Zero if unable to find UI, otherwise nint pointing to the start of the addon.</returns> + public nint GetAddonByName(string name, int index = 1); /// <summary> /// Find the agent associated with an addon, if possible. /// </summary> /// <param name="addonName">The addon name.</param> - /// <returns>A pointer wrapper to the agent interface.</returns> - public AgentInterfacePtr FindAgentInterface(string addonName); + /// <returns>A pointer to the agent interface.</returns> + public nint FindAgentInterface(string addonName); /// <summary> /// Find the agent associated with an addon, if possible. /// </summary> /// <param name="addon">The addon address.</param> - /// <returns>A pointer wrapper to the agent interface.</returns> - public AgentInterfacePtr FindAgentInterface(AtkUnitBasePtr addon); + /// <returns>A pointer to the agent interface.</returns> + public nint FindAgentInterface(void* addon); + + /// <summary> + /// Find the agent associated with an addon, if possible. + /// </summary> + /// <param name="addonPtr">The addon address.</param> + /// <returns>A pointer to the agent interface.</returns> + public IntPtr FindAgentInterface(IntPtr addonPtr); } diff --git a/Dalamud/Plugin/Services/IGameInteropProvider.cs b/Dalamud/Plugin/Services/IGameInteropProvider.cs index 645d70ac6..99e36c7ed 100644 --- a/Dalamud/Plugin/Services/IGameInteropProvider.cs +++ b/Dalamud/Plugin/Services/IGameInteropProvider.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; using Dalamud.Hooking; using Dalamud.Utility.Signatures; @@ -8,7 +8,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// Service responsible for the creation of hooks. /// </summary> -public interface IGameInteropProvider : IDalamudService +public interface IGameInteropProvider { /// <summary> /// Available hooking backends. diff --git a/Dalamud/Plugin/Services/IGameInventory.cs b/Dalamud/Plugin/Services/IGameInventory.cs index cba1c9872..0dff1ff03 100644 --- a/Dalamud/Plugin/Services/IGameInventory.cs +++ b/Dalamud/Plugin/Services/IGameInventory.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.Inventory; using Dalamud.Game.Inventory.InventoryEventArgTypes; @@ -8,7 +8,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This class provides events for the in-game inventory. /// </summary> -public interface IGameInventory : IDalamudService +public interface IGameInventory { /// <summary> /// Delegate function to be called when inventories have been changed. diff --git a/Dalamud/Plugin/Services/IGameLifecycle.cs b/Dalamud/Plugin/Services/IGameLifecycle.cs index 8fae3fc0e..caa64ed23 100644 --- a/Dalamud/Plugin/Services/IGameLifecycle.cs +++ b/Dalamud/Plugin/Services/IGameLifecycle.cs @@ -1,11 +1,11 @@ -using System.Threading; +using System.Threading; namespace Dalamud.Plugin.Services; /// <summary> /// Class offering cancellation tokens for common gameplay events. /// </summary> -public interface IGameLifecycle : IDalamudService +public interface IGameLifecycle { /// <summary> /// Gets a token that is cancelled when Dalamud is unloading. diff --git a/Dalamud/Plugin/Services/IGameNetwork.cs b/Dalamud/Plugin/Services/IGameNetwork.cs new file mode 100644 index 000000000..eed79b4af --- /dev/null +++ b/Dalamud/Plugin/Services/IGameNetwork.cs @@ -0,0 +1,26 @@ +using Dalamud.Game.Network; + +namespace Dalamud.Plugin.Services; + +/// <summary> +/// This class handles interacting with game network events. +/// </summary> +public interface IGameNetwork +{ + // TODO(v9): we shouldn't be passing pointers to the actual data here + + /// <summary> + /// The delegate type of a network message event. + /// </summary> + /// <param name="dataPtr">The pointer to the raw data.</param> + /// <param name="opCode">The operation ID code.</param> + /// <param name="sourceActorId">The source actor ID.</param> + /// <param name="targetActorId">The taret actor ID.</param> + /// <param name="direction">The direction of the packed.</param> + public delegate void OnNetworkMessageDelegate(nint dataPtr, ushort opCode, uint sourceActorId, uint targetActorId, NetworkMessageDirection direction); + + /// <summary> + /// Event that is called when a network message is sent/received. + /// </summary> + public event OnNetworkMessageDelegate NetworkMessage; +} diff --git a/Dalamud/Plugin/Services/IGamepadState.cs b/Dalamud/Plugin/Services/IGamepadState.cs index bdb07b91b..c349923f3 100644 --- a/Dalamud/Plugin/Services/IGamepadState.cs +++ b/Dalamud/Plugin/Services/IGamepadState.cs @@ -1,7 +1,7 @@ -using System.Numerics; +using System.Numerics; -using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.GamePad; +using ImGuiNET; namespace Dalamud.Plugin.Services; @@ -10,18 +10,18 @@ namespace Dalamud.Plugin.Services; /// /// Will block game's gamepad input if <see cref="ImGuiConfigFlags.NavEnableGamepad"/> is set. /// </summary> -public interface IGamepadState : IDalamudService +public interface IGamepadState { /// <summary> /// Gets the pointer to the current instance of the GamepadInput struct. /// </summary> public nint GamepadInputAddress { get; } - + /// <summary> /// Gets the left analogue sticks tilt vector. /// </summary> public Vector2 LeftStick { get; } - + /// <summary> /// Gets the right analogue sticks tilt vector. /// </summary> diff --git a/Dalamud/Plugin/Services/IJobGauges.cs b/Dalamud/Plugin/Services/IJobGauges.cs index 3313de7f6..4489a7be7 100644 --- a/Dalamud/Plugin/Services/IJobGauges.cs +++ b/Dalamud/Plugin/Services/IJobGauges.cs @@ -1,11 +1,11 @@ -using Dalamud.Game.ClientState.JobGauge.Types; +using Dalamud.Game.ClientState.JobGauge.Types; namespace Dalamud.Plugin.Services; /// <summary> /// This class converts in-memory Job gauge data to structs. /// </summary> -public interface IJobGauges : IDalamudService +public interface IJobGauges { /// <summary> /// Gets the address of the JobGauge data. diff --git a/Dalamud/Plugin/Services/IKeyState.cs b/Dalamud/Plugin/Services/IKeyState.cs index 06d6c9b49..de78978ca 100644 --- a/Dalamud/Plugin/Services/IKeyState.cs +++ b/Dalamud/Plugin/Services/IKeyState.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.ClientState.Keys; @@ -16,7 +16,7 @@ namespace Dalamud.Plugin.Services; /// index & 2 = key up (ephemeral). /// index & 3 = short key press (ephemeral). /// </remarks> -public interface IKeyState : IDalamudService +public interface IKeyState { /// <summary> /// Get or set the key-pressed state for a given vkCode. diff --git a/Dalamud/Plugin/Services/IMarketBoard.cs b/Dalamud/Plugin/Services/IMarketBoard.cs index 0bdfad175..3fded6987 100644 --- a/Dalamud/Plugin/Services/IMarketBoard.cs +++ b/Dalamud/Plugin/Services/IMarketBoard.cs @@ -1,11 +1,11 @@ -using Dalamud.Game.Network.Structures; +using Dalamud.Game.Network.Structures; namespace Dalamud.Plugin.Services; /// <summary> /// Provides access to market board related events as the client receives/sends them. /// </summary> -public interface IMarketBoard : IDalamudService +public interface IMarketBoard { /// <summary> /// A delegate type used with the <see cref="HistoryReceived"/> event. diff --git a/Dalamud/Plugin/Services/INamePlateGui.cs b/Dalamud/Plugin/Services/INamePlateGui.cs index b58b5b7d0..eb2579bae 100644 --- a/Dalamud/Plugin/Services/INamePlateGui.cs +++ b/Dalamud/Plugin/Services/INamePlateGui.cs @@ -7,7 +7,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// Class used to modify the data used when rendering nameplates. /// </summary> -public interface INamePlateGui : IDalamudService +public interface INamePlateGui { /// <summary> /// The delegate used for receiving nameplate update events. diff --git a/Dalamud/Plugin/Services/INotificationManager.cs b/Dalamud/Plugin/Services/INotificationManager.cs index 6d9dbf584..7d9ccd0b0 100644 --- a/Dalamud/Plugin/Services/INotificationManager.cs +++ b/Dalamud/Plugin/Services/INotificationManager.cs @@ -3,7 +3,7 @@ using Dalamud.Interface.ImGuiNotification; namespace Dalamud.Plugin.Services; /// <summary>Manager for notifications provided by Dalamud using ImGui.</summary> -public interface INotificationManager : IDalamudService +public interface INotificationManager { /// <summary>Adds a notification.</summary> /// <param name="notification">The new notification.</param> diff --git a/Dalamud/Plugin/Services/IObjectTable.cs b/Dalamud/Plugin/Services/IObjectTable.cs index be8e50dea..ad2c4d6dc 100644 --- a/Dalamud/Plugin/Services/IObjectTable.cs +++ b/Dalamud/Plugin/Services/IObjectTable.cs @@ -1,6 +1,5 @@ -using System.Collections.Generic; +using System.Collections.Generic; -using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; namespace Dalamud.Plugin.Services; @@ -8,7 +7,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This collection represents the currently spawned FFXIV game objects. /// </summary> -public interface IObjectTable : IDalamudService, IEnumerable<IGameObject> +public interface IObjectTable : IEnumerable<IGameObject> { /// <summary> /// Gets the address of the object table. @@ -20,43 +19,6 @@ public interface IObjectTable : IDalamudService, IEnumerable<IGameObject> /// </summary> public int Length { get; } - /// <summary> - /// Gets the local player character, if one is present. - /// </summary> - public IPlayerCharacter? LocalPlayer { get; } - - /// <summary> - /// Gets an enumerator for accessing player objects. This will only contain BattleChara objects. - /// Does not contain any mounts, minions, or accessories. - /// </summary> - public IEnumerable<IBattleChara> PlayerObjects { get; } - - /// <summary> - /// Gets an enumerator for accessing character manager objects. Contains all objects in indexes [0, 199]. - /// Includes mounts, minions, accessories, and players. - /// </summary> - public IEnumerable<IGameObject> CharacterManagerObjects { get; } - - /// <summary> - /// Gets an enumerator for accessing client objects. Contains all objects in indexes [200, 448]. - /// </summary> - public IEnumerable<IGameObject> ClientObjects { get; } - - /// <summary> - /// Gets an enumerator for accessing event objects. Contains all objects in indexes [449, 488]. - /// </summary> - public IEnumerable<IGameObject> EventObjects { get; } - - /// <summary> - /// Gets an enumerator for accessing stand objects. Contains all objects in indexes [489, 628]. - /// </summary> - public IEnumerable<IGameObject> StandObjects { get; } - - /// <summary> - /// Gets an enumerator for accessing reaction event objects. Contains all objects in indexes [629, 728]. - /// </summary> - public IEnumerable<IGameObject> ReactionEventObjects { get; } - /// <summary> /// Get an object at the specified spawn index. /// </summary> diff --git a/Dalamud/Plugin/Services/IPartyFinderGui.cs b/Dalamud/Plugin/Services/IPartyFinderGui.cs index d9b14baed..fb7a49acd 100644 --- a/Dalamud/Plugin/Services/IPartyFinderGui.cs +++ b/Dalamud/Plugin/Services/IPartyFinderGui.cs @@ -1,11 +1,11 @@ -using Dalamud.Game.Gui.PartyFinder.Types; +using Dalamud.Game.Gui.PartyFinder.Types; namespace Dalamud.Plugin.Services; /// <summary> /// This class handles interacting with the native PartyFinder window. /// </summary> -public interface IPartyFinderGui : IDalamudService +public interface IPartyFinderGui { /// <summary> /// Event type fired each time the game receives an individual Party Finder listing. diff --git a/Dalamud/Plugin/Services/IPartyList.cs b/Dalamud/Plugin/Services/IPartyList.cs index 1af3fa962..b046f36db 100644 --- a/Dalamud/Plugin/Services/IPartyList.cs +++ b/Dalamud/Plugin/Services/IPartyList.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Game.ClientState.Party; @@ -7,7 +7,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This collection represents the actors present in your party or alliance. /// </summary> -public interface IPartyList : IDalamudService, IReadOnlyCollection<IPartyMember> +public interface IPartyList : IReadOnlyCollection<IPartyMember> { /// <summary> /// Gets the amount of party members the local player has. diff --git a/Dalamud/Plugin/Services/IPlayerState.cs b/Dalamud/Plugin/Services/IPlayerState.cs deleted file mode 100644 index 838d5a346..000000000 --- a/Dalamud/Plugin/Services/IPlayerState.cs +++ /dev/null @@ -1,243 +0,0 @@ -using System.Collections.Generic; - -using Dalamud.Game.Player; - -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace Dalamud.Plugin.Services; - -#pragma warning disable SA1400 // Access modifier should be declared: Interface members are public by default - -/// <summary> -/// Interface for determining the players state. -/// </summary> -public interface IPlayerState : IDalamudService -{ - /// <summary> - /// Gets a value indicating whether the local players data is loaded. - /// </summary> - /// <remarks> - /// PlayerState is separate from <see cref="IObjectTable.LocalPlayer"/>, - /// and as such the game object might not exist when it's loaded. - /// </remarks> - bool IsLoaded { get; } - - /// <summary> - /// Gets the name of the local character. - /// </summary> - string CharacterName { get; } - - /// <summary> - /// Gets the entity ID of the local character. - /// </summary> - uint EntityId { get; } - - /// <summary> - /// Gets the content ID of the local character. - /// </summary> - ulong ContentId { get; } - - /// <summary> - /// Gets the World row for the local character's current world. - /// </summary> - RowRef<World> CurrentWorld { get; } - - /// <summary> - /// Gets the World row for the local character's home world. - /// </summary> - RowRef<World> HomeWorld { get; } - - /// <summary> - /// Gets the sex of the local character. - /// </summary> - Sex Sex { get; } - - /// <summary> - /// Gets the Race row for the local character. - /// </summary> - RowRef<Race> Race { get; } - - /// <summary> - /// Gets the Tribe row for the local character. - /// </summary> - RowRef<Tribe> Tribe { get; } - - /// <summary> - /// Gets the ClassJob row for the local character's current class/job. - /// </summary> - RowRef<ClassJob> ClassJob { get; } - - /// <summary> - /// Gets the current class/job's level of the local character. - /// </summary> - short Level { get; } - - /// <summary> - /// Gets a value indicating whether the local character's level is synced. - /// </summary> - bool IsLevelSynced { get; } - - /// <summary> - /// Gets the effective level of the local character, taking level sync into account. - /// </summary> - short EffectiveLevel { get; } - - /// <summary> - /// Gets the GuardianDeity row for the local character. - /// </summary> - RowRef<GuardianDeity> GuardianDeity { get; } - - /// <summary> - /// Gets the birth month of the local character. - /// </summary> - byte BirthMonth { get; } - - /// <summary> - /// Gets the birth day of the local character. - /// </summary> - byte BirthDay { get; } - - /// <summary> - /// Gets the ClassJob row for the local character's starting class. - /// </summary> - RowRef<ClassJob> FirstClass { get; } - - /// <summary> - /// Gets the Town row for the local character's starting town. - /// </summary> - RowRef<Town> StartTown { get; } - - /// <summary> - /// Gets the base strength of the local character. - /// </summary> - int BaseStrength { get; } - - /// <summary> - /// Gets the base dexterity of the local character. - /// </summary> - int BaseDexterity { get; } - - /// <summary> - /// Gets the base vitality of the local character. - /// </summary> - int BaseVitality { get; } - - /// <summary> - /// Gets the base intelligence of the local character. - /// </summary> - int BaseIntelligence { get; } - - /// <summary> - /// Gets the base mind of the local character. - /// </summary> - int BaseMind { get; } - - /// <summary> - /// Gets the piety mind of the local character. - /// </summary> - int BasePiety { get; } - - /// <summary> - /// Gets the GrandCompany row for the local character's current Grand Company affiliation. - /// </summary> - RowRef<GrandCompany> GrandCompany { get; } - - /// <summary> - /// Gets the Aetheryte row for the local player's home aetheryte. - /// </summary> - RowRef<Aetheryte> HomeAetheryte { get; } - - /// <summary> - /// Gets an array of Aetheryte rows for the local player's favourite aetherytes. - /// </summary> - IReadOnlyList<RowRef<Aetheryte>> FavoriteAetherytes { get; } - - /// <summary> - /// Gets the Aetheryte row for the local player's free aetheryte. - /// </summary> - RowRef<Aetheryte> FreeAetheryte { get; } - - /// <summary> - /// Gets the amount of rested experience available to the local player. - /// </summary> - uint BaseRestedExperience { get; } - - /// <summary> - /// Gets the amount of received player commendations of the local player. - /// </summary> - short PlayerCommendations { get; } - - /// <summary> - /// Gets the Carrier Level of Delivery Moogle Quests of the local player. - /// </summary> - byte DeliveryLevel { get; } - - /// <summary> - /// Gets the mentor version of the local player. - /// </summary> - MentorVersion MentorVersion { get; } - - /// <summary> - /// Gets a value indicating whether the local player is any kind of Mentor (Battle or Trade Mentor). - /// </summary> - bool IsMentor { get; } - - /// <summary> - /// Gets a value indicating whether the local player is a Battle Mentor. - /// </summary> - bool IsBattleMentor { get; } - - /// <summary> - /// Gets a value indicating whether the local player is a Trade Mentor. - /// </summary> - bool IsTradeMentor { get; } - - /// <summary> - /// Gets a value indicating whether the local player is a novice (aka. Sprout or New Adventurer). - /// </summary> - /// <remarks> - /// Can be <see langword="false"/> if <c>/nastatus</c> was used to deactivate it. - /// </remarks> - bool IsNovice { get; } - - /// <summary> - /// Gets a value indicating whether the local player is a returner. - /// </summary> - bool IsReturner { get; } - - /// <summary> - /// Gets the value of an attribute of the local character. - /// </summary> - /// <param name="attribute">The attribute to check.</param> - /// <returns>The value of the specific attribute.</returns> - int GetAttribute(PlayerAttribute attribute); - - /// <summary> - /// Gets the Grand Company rank of the local character. - /// </summary> - /// <param name="grandCompany">The Grand Company to check.</param> - /// <returns>The Grand Company rank of the local character.</returns> - byte GetGrandCompanyRank(GrandCompany grandCompany); - - /// <summary> - /// Gets the level of the local character's class/job. - /// </summary> - /// <param name="classJob">The ClassJob row to check.</param> - /// <returns>The level of the requested class/job.</returns> - short GetClassJobLevel(ClassJob classJob); - - /// <summary> - /// Gets the experience of the local character's class/job. - /// </summary> - /// <param name="classJob">The ClassJob row to check.</param> - /// <returns>The experience of the requested class/job.</returns> - int GetClassJobExperience(ClassJob classJob); - - /// <summary> - /// Gets the desynthesis level of the local character's crafter job. - /// </summary> - /// <param name="classJob">The ClassJob row to check.</param> - /// <returns>The desynthesis level of the requested crafter job.</returns> - float GetDesynthesisLevel(ClassJob classJob); -} diff --git a/Dalamud/Plugin/Services/IPluginLog.cs b/Dalamud/Plugin/Services/IPluginLog.cs index 38786f0d2..38406fd91 100644 --- a/Dalamud/Plugin/Services/IPluginLog.cs +++ b/Dalamud/Plugin/Services/IPluginLog.cs @@ -1,4 +1,4 @@ -using Serilog; +using Serilog; using Serilog.Events; #pragma warning disable CS1573 // See https://github.com/dotnet/roslyn/issues/40325 @@ -8,7 +8,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// An opinionated service to handle logging for plugins. /// </summary> -public interface IPluginLog : IDalamudService +public interface IPluginLog { /// <summary> /// Gets a Serilog ILogger instance for this plugin. This is the entrypoint for plugins that wish to use more diff --git a/Dalamud/Plugin/Services/IReliableFileStorage.cs b/Dalamud/Plugin/Services/IReliableFileStorage.cs deleted file mode 100644 index 757493a20..000000000 --- a/Dalamud/Plugin/Services/IReliableFileStorage.cs +++ /dev/null @@ -1,168 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.IO; -using System.Text; -using System.Threading.Tasks; - -using Dalamud.Configuration; -using Dalamud.Storage; - -namespace Dalamud.Plugin.Services; - -/// <summary> -/// Service to interact with the file system, as a replacement for standard C# file I/O. -/// Writes and reads using this service are, to the best of our ability, atomic and reliable. -/// -/// All data is synced to disk immediately and written to a database, additionally to files on disk. This means -/// that in case of file corruption, data can likely be recovered from the database. -/// -/// However, this also means that operations using this service duplicate data on disk, so we don't recommend -/// performing large file operations. The service will not permit files larger than <see cref="MaxFileSizeBytes"/> -/// (64MB) to be written. -/// -/// Saved configuration data using the <see cref="PluginConfigurations"/> class uses this functionality implicitly. -/// </summary> -[Experimental("Dalamud001")] -public interface IReliableFileStorage : IDalamudService -{ - /// <summary> - /// Gets the maximum file size, in bytes, that can be written using this service. - /// </summary> - /// <remarks> - /// The service enforces this limit when writing files and fails with an appropriate exception - /// (for example <see cref="ArgumentException"/> or a custom exception) when a caller attempts to write - /// more than this number of bytes. - /// </remarks> - long MaxFileSizeBytes { get; } - - /// <summary> - /// Check whether a file exists either on the local filesystem or in the transparent backup database. - /// </summary> - /// <param name="path">The file system path to check. Must not be null or empty.</param> - /// <returns> - /// True if the file exists on disk or a backup copy exists in the storage's internal journal/backup database; - /// otherwise false. - /// </returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - bool Exists(string path); - - /// <summary> - /// Write the given text into a file using UTF-8 encoding. The write is performed atomically and is persisted to - /// both the filesystem and the internal backup database used by this service. - /// </summary> - /// <param name="path">The file path to write to. Must not be null or empty.</param> - /// <param name="contents">The string contents to write. May be null, in which case an empty file is written.</param> - /// <returns>A <see cref="Task"/> that completes when the write has finished and been flushed to disk and the backup.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - Task WriteAllTextAsync(string path, string? contents); - - /// <summary> - /// Write the given text into a file using the provided <paramref name="encoding"/>. The write is performed - /// atomically (to the extent possible) and is persisted to both the filesystem and the internal backup database - /// used by this service. - /// </summary> - /// <param name="path">The file path to write to. Must not be null or empty.</param> - /// <param name="contents">The string contents to write. May be null, in which case an empty file is written.</param> - /// <param name="encoding">The text encoding to use when serializing the string to bytes. Must not be null.</param> - /// <returns>A <see cref="Task"/> that completes when the write has finished and been flushed to disk and the backup.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - /// <exception cref="ArgumentNullException">Thrown when <paramref name="encoding"/> is null.</exception> - Task WriteAllTextAsync(string path, string? contents, Encoding encoding); - - /// <summary> - /// Write the given bytes to a file. The write is persisted to both the filesystem and the service's internal - /// backup database. Avoid writing extremely large byte arrays because this service duplicates data on disk. - /// </summary> - /// <param name="path">The file path to write to. Must not be null or empty.</param> - /// <param name="bytes">The raw bytes to write. Must not be null.</param> - /// <returns>A <see cref="Task"/> that completes when the write has finished and been flushed to disk and the backup.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - /// <exception cref="ArgumentNullException">Thrown when <paramref name="bytes"/> is null.</exception> - Task WriteAllBytesAsync(string path, byte[] bytes); - - /// <summary> - /// Read all text from a file using UTF-8 encoding. If the file is unreadable or missing on disk, the service - /// attempts to return a backed-up copy from its internal journal/backup database. - /// </summary> - /// <param name="path">The file path to read. Must not be null or empty.</param> - /// <param name="forceBackup"> - /// When true the service prefers the internal backup database and returns backed-up contents if available. When - /// false the service tries the filesystem first and falls back to the backup only on error or when the file is missing. - /// </param> - /// <returns>The textual contents of the file, decoded using UTF-8.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - /// <exception cref="FileNotFoundException">Thrown when the file does not exist on disk and no backup copy is available.</exception> - Task<string> ReadAllTextAsync(string path, bool forceBackup = false); - - /// <summary> - /// Read all text from a file using the specified <paramref name="encoding"/>. If the file is unreadable or - /// missing on disk, the service attempts to return a backed-up copy from its internal journal/backup database. - /// </summary> - /// <param name="path">The file path to read. Must not be null or empty.</param> - /// <param name="encoding">The encoding to use when decoding the stored bytes into text. Must not be null.</param> - /// <param name="forceBackup"> - /// When true the service prefers the internal backup database and returns backed-up contents if available. When - /// false the service tries the filesystem first and falls back to the backup only on error or when the file is missing. - /// </param> - /// <returns>The textual contents of the file decoded using the provided <paramref name="encoding"/>.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - /// <exception cref="ArgumentNullException">Thrown when <paramref name="encoding"/> is null.</exception> - /// <exception cref="FileNotFoundException">Thrown when the file does not exist on disk and no backup copy is available.</exception> - Task<string> ReadAllTextAsync(string path, Encoding encoding, bool forceBackup = false); - - /// <summary> - /// Read all text from a file and invoke the provided <paramref name="reader"/> callback with the string - /// contents. If the reader throws or the initial read fails, the service attempts a backup read and invokes the - /// reader again with the backup contents. If both reads fail the service surfaces an exception to the caller. - /// </summary> - /// <param name="path">The file path to read. Must not be null or empty.</param> - /// <param name="reader"> - /// A callback invoked with the file's textual contents. Must not be null. - /// If the callback throws an exception the service treats that as a signal to retry the read using the - /// internal backup database and will invoke the callback again with the backup contents when available. - /// For example, the callback can throw when JSON deserialization fails to request the backup copy instead of - /// silently accepting corrupt data. - /// </param> - /// <returns>A <see cref="Task"/> that completes when the read (and any attempted fallback) and callback invocation have finished.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - /// <exception cref="ArgumentNullException">Thrown when <paramref name="reader"/> is null.</exception> - /// <exception cref="FileNotFoundException">Thrown when the file does not exist on disk and no backup copy is available.</exception> - /// <exception cref="FileReadException">Thrown when both the filesystem read and the backup read fail for other reasons.</exception> - Task ReadAllTextAsync(string path, Action<string> reader); - - /// <summary> - /// Read all text from a file using the specified <paramref name="encoding"/> and invoke the provided - /// <paramref name="reader"/> callback with the decoded string contents. If the reader throws or the initial - /// read fails, the service attempts a backup read and invokes the reader again with the backup contents. If - /// both reads fail the service surfaces an exception to the caller. - /// </summary> - /// <param name="path">The file path to read. Must not be null or empty.</param> - /// <param name="encoding">The encoding to use when decoding the stored bytes into text. Must not be null.</param> - /// <param name="reader"> - /// A callback invoked with the file's textual contents. Must not be null. - /// If the callback throws an exception the service treats that as a signal to retry the read using the - /// internal backup database and will invoke the callback again with the backup contents when available. - /// For example, the callback can throw when JSON deserialization fails to request the backup copy instead of - /// silently accepting corrupt data. - /// </param> - /// <returns>A <see cref="Task"/> that completes when the read (and any attempted fallback) and callback invocation have finished.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - /// <exception cref="ArgumentNullException">Thrown when <paramref name="encoding"/> or <paramref name="reader"/> is null.</exception> - /// <exception cref="FileNotFoundException">Thrown when the file does not exist on disk and no backup copy is available.</exception> - /// <exception cref="FileReadException">Thrown when both the filesystem read and the backup read fail for other reasons.</exception> - Task ReadAllTextAsync(string path, Encoding encoding, Action<string> reader); - - /// <summary> - /// Read all bytes from a file. If the file is unreadable or missing on disk, the service may try to return a - /// backed-up copy from its internal journal/backup database. - /// </summary> - /// <param name="path">The file path to read. Must not be null or empty.</param> - /// <param name="forceBackup"> - /// When true the service prefers the internal backup database and returns the backed-up contents - /// if available. When false the service tries the filesystem first and falls back to the backup only - /// on error or when the file is missing. - /// </param> - /// <returns>The raw bytes stored in the file.</returns> - /// <exception cref="ArgumentException">Thrown when <paramref name="path"/> is null or empty.</exception> - /// <exception cref="FileNotFoundException">Thrown when the file does not exist on disk and no backup copy is available.</exception> - Task<byte[]> ReadAllBytesAsync(string path, bool forceBackup = false); -} diff --git a/Dalamud/Plugin/Services/ISeStringEvaluator.cs b/Dalamud/Plugin/Services/ISeStringEvaluator.cs deleted file mode 100644 index 8ab7adad1..000000000 --- a/Dalamud/Plugin/Services/ISeStringEvaluator.cs +++ /dev/null @@ -1,94 +0,0 @@ -using Dalamud.Game; -using Dalamud.Game.ClientState.Objects.Enums; -using Dalamud.Game.Text.Evaluator; - -using Lumina.Text.ReadOnly; - -namespace Dalamud.Plugin.Services; - -/// <summary> -/// Defines a service for retrieving localized text for various in-game entities. -/// </summary> -public interface ISeStringEvaluator : IDalamudService -{ - /// <summary> - /// Evaluates macros in a <see cref="ReadOnlySeString"/>. - /// </summary> - /// <param name="str">The string containing macros.</param> - /// <param name="localParameters">An optional list of local parameters.</param> - /// <param name="language">An optional language override.</param> - /// <returns>An evaluated <see cref="ReadOnlySeString"/>.</returns> - ReadOnlySeString Evaluate(ReadOnlySeString str, Span<SeStringParameter> localParameters = default, ClientLanguage? language = null); - - /// <summary> - /// Evaluates macros in a <see cref="ReadOnlySeStringSpan"/>. - /// </summary> - /// <param name="str">The string containing macros.</param> - /// <param name="localParameters">An optional list of local parameters.</param> - /// <param name="language">An optional language override.</param> - /// <returns>An evaluated <see cref="ReadOnlySeString"/>.</returns> - ReadOnlySeString Evaluate(ReadOnlySeStringSpan str, Span<SeStringParameter> localParameters = default, ClientLanguage? language = null); - - /// <summary> - /// Evaluates macros in a macro string. - /// </summary> - /// <param name="macroString">The macro string.</param> - /// <param name="localParameters">An optional list of local parameters.</param> - /// <param name="language">An optional language override.</param> - /// <returns>An evaluated <see cref="ReadOnlySeString"/>.</returns> - ReadOnlySeString EvaluateMacroString(string macroString, Span<SeStringParameter> localParameters = default, ClientLanguage? language = null); - - /// <summary> - /// Evaluates macros in a macro string. - /// </summary> - /// <param name="macroString">The macro string.</param> - /// <param name="localParameters">An optional list of local parameters.</param> - /// <param name="language">An optional language override.</param> - /// <returns>An evaluated <see cref="ReadOnlySeString"/>.</returns> - ReadOnlySeString EvaluateMacroString(ReadOnlySpan<byte> macroString, Span<SeStringParameter> localParameters = default, ClientLanguage? language = null); - - /// <summary> - /// Evaluates macros in text from the Addon sheet. - /// </summary> - /// <param name="addonId">The row id of the Addon sheet.</param> - /// <param name="localParameters">An optional list of local parameters.</param> - /// <param name="language">An optional language override.</param> - /// <returns>An evaluated <see cref="ReadOnlySeString"/>.</returns> - ReadOnlySeString EvaluateFromAddon(uint addonId, Span<SeStringParameter> localParameters = default, ClientLanguage? language = null); - - /// <summary> - /// Evaluates macros in text from the Lobby sheet. - /// </summary> - /// <param name="lobbyId">The row id of the Lobby sheet.</param> - /// <param name="localParameters">An optional list of local parameters.</param> - /// <param name="language">An optional language override.</param> - /// <returns>An evaluated <see cref="ReadOnlySeString"/>.</returns> - ReadOnlySeString EvaluateFromLobby(uint lobbyId, Span<SeStringParameter> localParameters = default, ClientLanguage? language = null); - - /// <summary> - /// Evaluates macros in text from the LogMessage sheet. - /// </summary> - /// <param name="logMessageId">The row id of the LogMessage sheet.</param> - /// <param name="localParameters">An optional list of local parameters.</param> - /// <param name="language">An optional language override.</param> - /// <returns>An evaluated <see cref="ReadOnlySeString"/>.</returns> - ReadOnlySeString EvaluateFromLogMessage(uint logMessageId, Span<SeStringParameter> localParameters = default, ClientLanguage? language = null); - - /// <summary> - /// Evaluates ActStr from the given ActionKind and id. - /// </summary> - /// <param name="actionKind">The ActionKind.</param> - /// <param name="id">The action id.</param> - /// <param name="language">An optional language override.</param> - /// <returns>The name of the action.</returns> - string EvaluateActStr(ActionKind actionKind, uint id, ClientLanguage? language = null); - - /// <summary> - /// Evaluates ObjStr from the given ObjectKind and id. - /// </summary> - /// <param name="objectKind">The ObjectKind.</param> - /// <param name="id">The object id.</param> - /// <param name="language">An optional language override.</param> - /// <returns>The singular name of the object.</returns> - string EvaluateObjStr(ObjectKind objectKind, uint id, ClientLanguage? language = null); -} diff --git a/Dalamud/Plugin/Services/ISelfTestRegistry.cs b/Dalamud/Plugin/Services/ISelfTestRegistry.cs deleted file mode 100644 index 50d3d35ce..000000000 --- a/Dalamud/Plugin/Services/ISelfTestRegistry.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System.Collections.Generic; - -using Dalamud.Plugin.SelfTest; - -namespace Dalamud.Plugin.Services; - -/// <summary> -/// Interface for registering and unregistering self-test steps from plugins. -/// </summary> -/// <example> -/// Registering custom self-test steps for your plugin: -/// <code> -/// [PluginService] -/// public ISelfTestRegistry SelfTestRegistry { get; init; } -/// -/// // In your plugin initialization -/// this.SelfTestRegistry.RegisterTestSteps([ -/// new MyCustomSelfTestStep(), -/// new AnotherSelfTestStep() -/// ]); -/// </code> -/// -/// Creating a custom self-test step: -/// <code> -/// public class MyCustomSelfTestStep : ISelfTestStep -/// { -/// public string Name => "My Custom Test"; -/// -/// public SelfTestStepResult RunStep() -/// { -/// // Your test logic here -/// if (/* test condition passes */) -/// return SelfTestStepResult.Pass; -/// -/// if (/* test condition fails */) -/// return SelfTestStepResult.Fail; -/// -/// // Still waiting for test to complete -/// return SelfTestStepResult.Waiting; -/// } -/// -/// public void CleanUp() -/// { -/// // Clean up any resources used by the test -/// } -/// } -/// </code> -/// </example> -public interface ISelfTestRegistry : IDalamudService -{ - /// <summary> - /// Registers the self-test steps for this plugin. - /// </summary> - /// <param name="steps">The test steps to register.</param> - public void RegisterTestSteps(IEnumerable<ISelfTestStep> steps); -} diff --git a/Dalamud/Plugin/Services/ISigScanner.cs b/Dalamud/Plugin/Services/ISigScanner.cs index 017c4fe9d..c0ebd9310 100644 --- a/Dalamud/Plugin/Services/ISigScanner.cs +++ b/Dalamud/Plugin/Services/ISigScanner.cs @@ -2,20 +2,20 @@ using System.Collections.Generic; using System.Diagnostics; using System.Threading; -namespace Dalamud.Plugin.Services; +namespace Dalamud.Game; /// <summary> /// A SigScanner facilitates searching for memory signatures in a given ProcessModule. /// </summary> -public interface ISigScanner : IDalamudService +public interface ISigScanner { /// <summary> - /// Gets a value indicating whether the search on this module is performed on a copy. + /// Gets a value indicating whether or not the search on this module is performed on a copy. /// </summary> public bool IsCopy { get; } /// <summary> - /// Gets a value indicating whether the ProcessModule is 32-bit. + /// Gets a value indicating whether or not the ProcessModule is 32-bit. /// </summary> public bool Is32BitProcess { get; } @@ -84,7 +84,7 @@ public interface ISigScanner : IDalamudService /// <param name="offset">The offset from function start of the instruction using the data.</param> /// <returns>An IntPtr to the static memory location.</returns> public nint GetStaticAddressFromSig(string signature, int offset = 0); - + /// <summary> /// Try scanning for a .data address using a .text function. /// This is intended to be used with IDA sigs. @@ -95,14 +95,14 @@ public interface ISigScanner : IDalamudService /// <param name="offset">The offset from function start of the instruction using the data.</param> /// <returns>true if the signature was found.</returns> public bool TryGetStaticAddressFromSig(string signature, out nint result, int offset = 0); - + /// <summary> /// Scan for a byte signature in the .data section. /// </summary> /// <param name="signature">The signature.</param> /// <returns>The real offset of the found signature.</returns> public nint ScanData(string signature); - + /// <summary> /// Try scanning for a byte signature in the .data section. /// </summary> @@ -110,14 +110,14 @@ public interface ISigScanner : IDalamudService /// <param name="result">The real offset of the signature, if found.</param> /// <returns>true if the signature was found.</returns> public bool TryScanData(string signature, out nint result); - + /// <summary> /// Scan for a byte signature in the whole module search area. /// </summary> /// <param name="signature">The signature.</param> /// <returns>The real offset of the found signature.</returns> public nint ScanModule(string signature); - + /// <summary> /// Try scanning for a byte signature in the whole module search area. /// </summary> @@ -125,7 +125,7 @@ public interface ISigScanner : IDalamudService /// <param name="result">The real offset of the signature, if found.</param> /// <returns>true if the signature was found.</returns> public bool TryScanModule(string signature, out nint result); - + /// <summary> /// Resolve a RVA address. /// </summary> @@ -133,14 +133,14 @@ public interface ISigScanner : IDalamudService /// <param name="relOffset">The relative offset.</param> /// <returns>The calculated offset.</returns> public nint ResolveRelativeAddress(nint nextInstAddr, int relOffset); - + /// <summary> /// Scan for a byte signature in the .text section. /// </summary> /// <param name="signature">The signature.</param> /// <returns>The real offset of the found signature.</returns> public nint ScanText(string signature); - + /// <summary> /// Try scanning for a byte signature in the .text section. /// </summary> diff --git a/Dalamud/Plugin/Services/ITargetManager.cs b/Dalamud/Plugin/Services/ITargetManager.cs index 0c14571c5..5ba9f390e 100644 --- a/Dalamud/Plugin/Services/ITargetManager.cs +++ b/Dalamud/Plugin/Services/ITargetManager.cs @@ -1,12 +1,11 @@ -using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Plugin.Services; +using Dalamud.Game.ClientState.Objects.Types; -namespace Dalamud.Plugin.Services; +namespace Dalamud.Game.ClientState.Objects; /// <summary> /// Get and set various kinds of targets for the player. /// </summary> -public interface ITargetManager : IDalamudService +public interface ITargetManager { /// <summary> /// Gets or sets the current target. @@ -37,13 +36,13 @@ public interface ITargetManager : IDalamudService /// Set to null to clear the target. /// </summary> public IGameObject? SoftTarget { get; set; } - + /// <summary> /// Gets or sets the gpose target. /// Set to null to clear the target. /// </summary> public IGameObject? GPoseTarget { get; set; } - + /// <summary> /// Gets or sets the mouseover nameplate target. /// Set to null to clear the target. diff --git a/Dalamud/Plugin/Services/ITextureProvider.cs b/Dalamud/Plugin/Services/ITextureProvider.cs index 63a463613..ff13f11f1 100644 --- a/Dalamud/Plugin/Services/ITextureProvider.cs +++ b/Dalamud/Plugin/Services/ITextureProvider.cs @@ -5,8 +5,6 @@ using System.Reflection; using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.ImGuiSeStringRenderer; using Dalamud.Interface.Internal.Windows.Data.Widgets; using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.TextureWraps; @@ -33,7 +31,7 @@ namespace Dalamud.Plugin.Services; /// <see cref="TexWidget"/>. /// </para> /// </remarks> -public interface ITextureProvider : IDalamudService +public interface ITextureProvider { /// <summary>Creates an empty texture.</summary> /// <param name="specs">Texture specifications.</param> @@ -47,14 +45,6 @@ public interface ITextureProvider : IDalamudService bool cpuWrite, string? debugName = null); - /// <summary>Creates a texture that can be drawn from an <see cref="ImDrawList"/> or an <see cref="ImDrawData"/>. - /// </summary> - /// <param name="debugName">Name for debug display purposes.</param> - /// <returns>A new draw list texture.</returns> - /// <remarks>No new resource is allocated upfront; it will be done when <see cref="IDrawListTextureWrap.Size"/> is - /// set with positive values for both components.</remarks> - IDrawListTextureWrap CreateDrawListTexture(string? debugName = null); - /// <summary>Creates a texture from the given existing texture, cropping and converting pixel format as needed. /// </summary> /// <param name="wrap">The source texture wrap. The passed value may be disposed once this function returns, @@ -179,25 +169,6 @@ public interface ITextureProvider : IDalamudService string? debugName = null, CancellationToken cancellationToken = default); - /// <summary>Creates a texture from clipboard.</summary> - /// <param name="debugName">Name for debug display purposes.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>A <see cref="Task"/> representing the status of the operation.</returns> - Task<IDalamudTextureWrap> CreateFromClipboardAsync( - string? debugName = null, - CancellationToken cancellationToken = default); - - /// <summary>Creates a texture by drawing a SeString onto it.</summary> - /// <param name="text">SeString to render.</param> - /// <param name="drawParams">Parameters for drawing.</param> - /// <param name="debugName">Name for debug display purposes.</param> - /// <returns>The new texture.</returns> - /// <remarks>Can be only be used from the main thread.</remarks> - public IDalamudTextureWrap CreateTextureFromSeString( - ReadOnlySpan<byte> text, - scoped in SeStringDrawParams drawParams = default, - string? debugName = null); - /// <summary>Gets the supported bitmap decoders.</summary> /// <returns>The supported bitmap decoders.</returns> /// <remarks> @@ -220,12 +191,7 @@ public interface ITextureProvider : IDalamudService /// <para>Caching the returned object is not recommended. Performance benefit will be minimal.</para> /// </remarks> ISharedImmediateTexture GetFromGameIcon(in GameIconLookup lookup); - - /// <summary>Gets a value indicating whether the current desktop clipboard contains an image that can be attempted - /// to read using <see cref="CreateFromClipboardAsync"/>.</summary> - /// <returns><c>true</c> if it is the case.</returns> - bool HasClipboardImage(); - + /// <summary>Gets a shared texture corresponding to the given game resource icon specifier.</summary> /// <remarks> /// <para>This function does not throw exceptions.</para> @@ -234,7 +200,7 @@ public interface ITextureProvider : IDalamudService /// </remarks> /// <param name="lookup">A game icon specifier.</param> /// <param name="texture">The resulting <see cref="ISharedImmediateTexture"/>.</param> - /// <returns>Whether the lookup succeeded.</returns> + /// <returns>Whether or not the lookup succeeded.</returns> bool TryGetFromGameIcon(in GameIconLookup lookup, [NotNullWhen(true)] out ISharedImmediateTexture? texture); /// <summary>Gets a shared texture corresponding to the given path to a game resource.</summary> @@ -255,7 +221,7 @@ public interface ITextureProvider : IDalamudService /// <para>Caching the returned object is not recommended. Performance benefit will be minimal.</para> /// </remarks> ISharedImmediateTexture GetFromFile(string path); - + /// <summary>Gets a shared texture corresponding to the given file on the filesystem.</summary> /// <param name="file">The file on the filesystem to load.</param> /// <returns>The shared texture that you may use to obtain the loaded texture wrap and load states.</returns> @@ -322,7 +288,7 @@ public interface ITextureProvider : IDalamudService /// <param name="leaveWrapOpen">Whether to leave <paramref name="wrap"/> non-disposed when the returned /// <see cref="Task{TResult}"/> completes.</param> /// <returns>Address of the new <see cref="FFXIVClientStructs.FFXIV.Client.Graphics.Kernel.Texture"/>.</returns> - /// <example>See <c>PrintTextureInfo</c> in <see cref="Interface.Internal.UiDebug.Browsing.ImageNodeTree"/> for an example + /// <example>See <c>PrintTextureInfo</c> in <see cref="Interface.Internal.UiDebug.PrintSimpleNode"/> for an example /// of replacing the texture of an image node.</example> /// <remarks> /// <para>If the returned kernel texture is to be destroyed, call the fourth function in its vtable, by calling diff --git a/Dalamud/Plugin/Services/ITextureReadbackProvider.cs b/Dalamud/Plugin/Services/ITextureReadbackProvider.cs index 00b684cbb..b41ded41f 100644 --- a/Dalamud/Plugin/Services/ITextureReadbackProvider.cs +++ b/Dalamud/Plugin/Services/ITextureReadbackProvider.cs @@ -3,13 +3,14 @@ using System.IO; using System.Threading; using System.Threading.Tasks; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures; using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Plugin.Services; /// <summary>Service that grants you to read instances of <see cref="IDalamudTextureWrap"/>.</summary> -public interface ITextureReadbackProvider : IDalamudService +public interface ITextureReadbackProvider { /// <summary>Gets the raw data of a texture wrap.</summary> /// <param name="wrap">The source texture wrap.</param> @@ -105,17 +106,4 @@ public interface ITextureReadbackProvider : IDalamudService IReadOnlyDictionary<string, object>? props = null, bool leaveWrapOpen = false, CancellationToken cancellationToken = default); - - /// <summary>Copies the texture to clipboard.</summary> - /// <param name="wrap">Texture wrap to copy.</param> - /// <param name="preferredFileNameWithoutExtension">Preferred file name.</param> - /// <param name="leaveWrapOpen">Whether to leave <paramref name="wrap"/> non-disposed when the returned - /// <see cref="Task{TResult}"/> completes.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>A <see cref="Task"/> representing the status of the operation.</returns> - Task CopyToClipboardAsync( - IDalamudTextureWrap wrap, - string? preferredFileNameWithoutExtension = null, - bool leaveWrapOpen = false, - CancellationToken cancellationToken = default); } diff --git a/Dalamud/Plugin/Services/ITextureSubstitutionProvider.cs b/Dalamud/Plugin/Services/ITextureSubstitutionProvider.cs index dcd1b00cc..371fbaf0f 100644 --- a/Dalamud/Plugin/Services/ITextureSubstitutionProvider.cs +++ b/Dalamud/Plugin/Services/ITextureSubstitutionProvider.cs @@ -1,11 +1,11 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace Dalamud.Plugin.Services; /// <summary> /// Service that grants you the ability to replace texture data that is to be loaded by Dalamud. /// </summary> -public interface ITextureSubstitutionProvider : IDalamudService +public interface ITextureSubstitutionProvider { /// <summary> /// Delegate describing a function that may be used to intercept and replace texture data. diff --git a/Dalamud/Plugin/Services/ITitleScreenMenu.cs b/Dalamud/Plugin/Services/ITitleScreenMenu.cs index 50bae62a1..5ebd80017 100644 --- a/Dalamud/Plugin/Services/ITitleScreenMenu.cs +++ b/Dalamud/Plugin/Services/ITitleScreenMenu.cs @@ -1,14 +1,15 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Dalamud.Interface; -using Dalamud.Interface.Textures; +using Dalamud.Interface.Internal; +using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Plugin.Services; /// <summary> /// Interface for class responsible for managing elements in the title screen menu. /// </summary> -public interface ITitleScreenMenu : IDalamudService +public interface ITitleScreenMenu { /// <summary> /// Gets the list of read only entries in the title screen menu. @@ -19,22 +20,22 @@ public interface ITitleScreenMenu : IDalamudService /// Adds a new entry to the title screen menu. /// </summary> /// <param name="text">The text to show.</param> - /// <param name="texture">The texture to show. The texture must be 64x64 or the entry will be removed and an error will be logged.</param> + /// <param name="texture">The texture to show.</param> /// <param name="onTriggered">The action to execute when the option is selected.</param> /// <returns>A <see cref="IReadOnlyTitleScreenMenuEntry"/> object that can be reference the entry.</returns> /// <exception cref="ArgumentException">Thrown when the texture provided does not match the required resolution(64x64).</exception> - public IReadOnlyTitleScreenMenuEntry AddEntry(string text, ISharedImmediateTexture texture, Action onTriggered); + public IReadOnlyTitleScreenMenuEntry AddEntry(string text, IDalamudTextureWrap texture, Action onTriggered); /// <summary> /// Adds a new entry to the title screen menu. /// </summary> /// <param name="priority">Priority of the entry.</param> /// <param name="text">The text to show.</param> - /// <param name="texture">The texture to show. The texture must be 64x64 or the entry will be removed and an error will be logged.</param> + /// <param name="texture">The texture to show.</param> /// <param name="onTriggered">The action to execute when the option is selected.</param> /// <returns>A <see cref="IReadOnlyTitleScreenMenuEntry"/> object that can be used to reference the entry.</returns> /// <exception cref="ArgumentException">Thrown when the texture provided does not match the required resolution(64x64).</exception> - public IReadOnlyTitleScreenMenuEntry AddEntry(ulong priority, string text, ISharedImmediateTexture texture, Action onTriggered); + public IReadOnlyTitleScreenMenuEntry AddEntry(ulong priority, string text, IDalamudTextureWrap texture, Action onTriggered); /// <summary> /// Remove an entry from the title screen menu. diff --git a/Dalamud/Plugin/Services/IToastGui.cs b/Dalamud/Plugin/Services/IToastGui.cs index c472cbb1f..ef83e95ac 100644 --- a/Dalamud/Plugin/Services/IToastGui.cs +++ b/Dalamud/Plugin/Services/IToastGui.cs @@ -1,4 +1,4 @@ -using Dalamud.Game.Gui.Toast; +using Dalamud.Game.Gui.Toast; using Dalamud.Game.Text.SeStringHandling; namespace Dalamud.Plugin.Services; @@ -6,7 +6,7 @@ namespace Dalamud.Plugin.Services; /// <summary> /// This class facilitates interacting with and creating native toast windows. /// </summary> -public interface IToastGui : IDalamudService +public interface IToastGui { /// <summary> /// A delegate type used when a normal toast window appears. diff --git a/Dalamud/Plugin/Services/IUnlockState.cs b/Dalamud/Plugin/Services/IUnlockState.cs deleted file mode 100644 index 4f92b2b3d..000000000 --- a/Dalamud/Plugin/Services/IUnlockState.cs +++ /dev/null @@ -1,372 +0,0 @@ -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace Dalamud.Plugin.Services; - -#pragma warning disable SA1400 // Access modifier should be declared: Interface members are public by default - -/// <summary> -/// Interface for determining unlock state of various content in the game. -/// </summary> -public interface IUnlockState : IDalamudService -{ - /// <summary> - /// A delegate type used for the <see cref="Unlock"/> event. - /// </summary> - /// <param name="rowRef">A RowRef of the unlocked thing.</param> - delegate void UnlockDelegate(RowRef rowRef); - - /// <summary> - /// Event triggered when something was unlocked. - /// </summary> - event UnlockDelegate? Unlock; - - /// <summary> - /// Gets a value indicating whether the full Achievements list was received. - /// </summary> - bool IsAchievementListLoaded { get; } - - /// <summary> - /// Gets a value indicating whether the full Titles list was received. - /// </summary> - bool IsTitleListLoaded { get; } - - /// <summary> - /// Determines whether the specified Achievement is completed.<br/> - /// Requires that the player requested the Achievements list (can be chcked with <see cref="IsAchievementListLoaded"/>). - /// </summary> - /// <param name="row">The Achievement row to check.</param> - /// <returns><see langword="true"/> if completed; otherwise, <see langword="false"/>.</returns> - bool IsAchievementComplete(Achievement row); - - /// <summary> - /// Determines whether the specified Action is unlocked. - /// </summary> - /// <param name="row">The Action row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsActionUnlocked(Lumina.Excel.Sheets.Action row); - - /// <summary> - /// Determines whether the specified Adventure is completed. - /// </summary> - /// <param name="row">The Adventure row to check.</param> - /// <returns><see langword="true"/> if completed; otherwise, <see langword="false"/>.</returns> - public bool IsAdventureComplete(Adventure row); - - /// <summary> - /// Determines whether the specified AetherCurrentCompFlgSet is unlocked. - /// </summary> - /// <param name="row">The AetherCurrentCompFlgSet row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsAetherCurrentCompFlgSetUnlocked(AetherCurrentCompFlgSet row); - - /// <summary> - /// Determines whether the specified AetherCurrent is unlocked. - /// </summary> - /// <param name="row">The AetherCurrent row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsAetherCurrentUnlocked(AetherCurrent row); - - /// <summary> - /// Determines whether the specified AozAction (Blue Mage Action) is unlocked. - /// </summary> - /// <param name="row">The AozAction row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsAozActionUnlocked(AozAction row); - - /// <summary> - /// Determines whether the specified BannerBg (Portrait Backgrounds) is unlocked. - /// </summary> - /// <param name="row">The BannerBg row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBannerBgUnlocked(BannerBg row); - - /// <summary> - /// Determines whether the specified BannerCondition is unlocked. - /// </summary> - /// <param name="row">The BannerCondition row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBannerConditionUnlocked(BannerCondition row); - - /// <summary> - /// Determines whether the specified BannerDecoration (Portrait Accents) is unlocked. - /// </summary> - /// <param name="row">The BannerDecoration row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBannerDecorationUnlocked(BannerDecoration row); - - /// <summary> - /// Determines whether the specified BannerFacial (Portrait Expressions) is unlocked. - /// </summary> - /// <param name="row">The BannerFacial row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBannerFacialUnlocked(BannerFacial row); - - /// <summary> - /// Determines whether the specified BannerFrame (Portrait Frames) is unlocked. - /// </summary> - /// <param name="row">The BannerFrame row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBannerFrameUnlocked(BannerFrame row); - - /// <summary> - /// Determines whether the specified BannerTimeline (Portrait Poses) is unlocked. - /// </summary> - /// <param name="row">The BannerTimeline row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBannerTimelineUnlocked(BannerTimeline row); - - /// <summary> - /// Determines whether the specified BuddyAction (Action of the players Chocobo Companion) is unlocked. - /// </summary> - /// <param name="row">The BuddyAction row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBuddyActionUnlocked(BuddyAction row); - - /// <summary> - /// Determines whether the specified BuddyEquip (Equipment of the players Chocobo Companion) is unlocked. - /// </summary> - /// <param name="row">The BuddyEquip row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsBuddyEquipUnlocked(BuddyEquip row); - - /// <summary> - /// Determines whether the specified CharaMakeCustomize (Hairstyles and Face Paint patterns) is unlocked. - /// </summary> - /// <param name="row">The CharaMakeCustomize row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsCharaMakeCustomizeUnlocked(CharaMakeCustomize row); - - /// <summary> - /// Determines whether the specified ChocoboTaxiStand (Chocobokeeps of the Chocobo Porter service) is unlocked. - /// </summary> - /// <param name="row">The ChocoboTaxiStand row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsChocoboTaxiStandUnlocked(ChocoboTaxiStand row); - - /// <summary> - /// Determines whether the specified Companion (Minions) is unlocked. - /// </summary> - /// <param name="row">The Companion row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsCompanionUnlocked(Companion row); - - /// <summary> - /// Determines whether the specified CraftAction is unlocked. - /// </summary> - /// <param name="row">The CraftAction row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsCraftActionUnlocked(CraftAction row); - - /// <summary> - /// Determines whether the specified CSBonusContentType is unlocked. - /// </summary> - /// <param name="row">The CSBonusContentType row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsCSBonusContentTypeUnlocked(CSBonusContentType row); - - /// <summary> - /// Determines whether the specified Emote is unlocked. - /// </summary> - /// <param name="row">The Emote row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsEmoteUnlocked(Emote row); - - /// <summary> - /// Determines whether the specified EmjVoiceNpc (Doman Mahjong Characters) is unlocked. - /// </summary> - /// <param name="row">The EmjVoiceNpc row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsEmjVoiceNpcUnlocked(EmjVoiceNpc row); - - /// <summary> - /// Determines whether the specified EmjCostume (Doman Mahjong Character Costume) is unlocked. - /// </summary> - /// <param name="row">The EmjCostume row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsEmjCostumeUnlocked(EmjCostume row); - - /// <summary> - /// Determines whether the specified GeneralAction is unlocked. - /// </summary> - /// <param name="row">The GeneralAction row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsGeneralActionUnlocked(GeneralAction row); - - /// <summary> - /// Determines whether the specified Glasses is unlocked. - /// </summary> - /// <param name="row">The Glasses row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsGlassesUnlocked(Glasses row); - - /// <summary> - /// Determines whether the specified HowTo is unlocked. - /// </summary> - /// <param name="row">The HowTo row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsHowToUnlocked(HowTo row); - - /// <summary> - /// Determines whether the specified InstanceContent is unlocked. - /// </summary> - /// <param name="row">The InstanceContent row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsInstanceContentUnlocked(InstanceContent row); - - /// <summary> - /// Determines whether the specified Item is considered unlockable. - /// </summary> - /// <param name="row">The Item row to check.</param> - /// <returns><see langword="true"/> if unlockable; otherwise, <see langword="false"/>.</returns> - bool IsItemUnlockable(Item row); - - /// <summary> - /// Determines whether the specified Item is unlocked. - /// </summary> - /// <param name="row">The Item row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsItemUnlocked(Item row); - - /// <summary> - /// Determines whether the specified Leve is completed. - /// </summary> - /// <param name="row">The Leve row to check.</param> - /// <returns><see langword="true"/> if completed; otherwise, <see langword="false"/>.</returns> - bool IsLeveCompleted(Leve row); - - /// <summary> - /// Determines whether the specified McGuffin is unlocked. - /// </summary> - /// <param name="row">The McGuffin row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsMcGuffinUnlocked(McGuffin row); - - /// <summary> - /// Determines whether the specified MJILandmark (Island Sanctuary landmark) is unlocked. - /// </summary> - /// <param name="row">The MJILandmark row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsMJILandmarkUnlocked(MJILandmark row); - - /// <summary> - /// Determines whether the specified MKDLore (Occult Record) is unlocked. - /// </summary> - /// <param name="row">The MKDLore row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsMKDLoreUnlocked(MKDLore row); - - /// <summary> - /// Determines whether the specified Mount is unlocked. - /// </summary> - /// <param name="row">The Mount row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsMountUnlocked(Mount row); - - /// <summary> - /// Determines whether the specified NotebookDivision (Categories in Crafting/Gathering Log) is unlocked. - /// </summary> - /// <param name="row">The NotebookDivision row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsNotebookDivisionUnlocked(NotebookDivision row); - - /// <summary> - /// Determines whether the specified Orchestrion roll is unlocked. - /// </summary> - /// <param name="row">The Orchestrion row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsOrchestrionUnlocked(Orchestrion row); - - /// <summary> - /// Determines whether the specified Ornament (Fashion Accessories) is unlocked. - /// </summary> - /// <param name="row">The Ornament row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsOrnamentUnlocked(Ornament row); - - /// <summary> - /// Determines whether the specified Perform (Performance Instruments) is unlocked. - /// </summary> - /// <param name="row">The Perform row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsPerformUnlocked(Perform row); - - /// <summary> - /// Determines whether the specified PublicContent is unlocked. - /// </summary> - /// <param name="row">The PublicContent row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsPublicContentUnlocked(PublicContent row); - - /// <summary> - /// Determines whether the specified Quest is completed. - /// </summary> - /// <param name="row">The Quest row to check.</param> - /// <returns><see langword="true"/> if completed; otherwise, <see langword="false"/>.</returns> - bool IsQuestCompleted(Quest row); - - /// <summary> - /// Determines whether the specified Recipe is unlocked. - /// </summary> - /// <param name="row">The Recipe row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsRecipeUnlocked(Recipe row); - - /// <summary> - /// Determines whether the underlying RowRef type is unlocked. - /// </summary> - /// <param name="rowRef">The RowRef to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsRowRefUnlocked(RowRef rowRef); - - /// <summary> - /// Determines whether the underlying RowRef type is unlocked. - /// </summary> - /// <typeparam name="T">The type of the Excel row.</typeparam> - /// <param name="rowRef">The RowRef to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsRowRefUnlocked<T>(RowRef<T> rowRef) where T : struct, IExcelRow<T>; - - /// <summary> - /// Determines whether the specified SecretRecipeBook (Master Recipe Books) is unlocked. - /// </summary> - /// <param name="row">The SecretRecipeBook row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsSecretRecipeBookUnlocked(SecretRecipeBook row); - - /// <summary> - /// Determines whether the specified Title is unlocked.<br/> - /// Requires that the player requested the Titles list (can be chcked with <see cref="IsTitleListLoaded"/>). - /// </summary> - /// <param name="row">The Title row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsTitleUnlocked(Title row); - - /// <summary> - /// Determines whether the specified Trait is unlocked. - /// </summary> - /// <param name="row">The Trait row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsTraitUnlocked(Trait row); - - /// <summary> - /// Determines whether the specified TripleTriadCard is unlocked. - /// </summary> - /// <param name="row">The TripleTriadCard row to check.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsTripleTriadCardUnlocked(TripleTriadCard row); - - /// <summary> - /// Determines whether the specified unlock link is unlocked or quest is completed. - /// </summary> - /// <param name="unlockLink">The unlock link id or quest id (quest ids in this case are over 65536).</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsUnlockLinkUnlocked(uint unlockLink); - - /// <summary> - /// Determines whether the specified unlock link is unlocked. - /// </summary> - /// <param name="unlockLink">The unlock link id.</param> - /// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns> - bool IsUnlockLinkUnlocked(ushort unlockLink); -} diff --git a/Dalamud/Plugin/VersionInfo/DalamudVersionInfo.cs b/Dalamud/Plugin/VersionInfo/DalamudVersionInfo.cs deleted file mode 100644 index 0a6fad9c2..000000000 --- a/Dalamud/Plugin/VersionInfo/DalamudVersionInfo.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace Dalamud.Plugin.VersionInfo; - -/// <inheritdoc /> -internal class DalamudVersionInfo(Version version, string? track, string? gitHash, string? gitHashClientStructs, string? scmVersion) : IDalamudVersionInfo -{ - /// <inheritdoc/> - public Version Version { get; } = version; - - /// <inheritdoc/> - public string? BetaTrack { get; } = track; - - /// <inheritdoc/> - public string? GitHash { get; } = gitHash; - - /// <inheritdoc/> - public string? GitHashClientStructs { get; } = gitHashClientStructs; - - /// <inheritdoc/> - public string? ScmVersion { get; } = scmVersion; -} diff --git a/Dalamud/Plugin/VersionInfo/IDalamudVersionInfo.cs b/Dalamud/Plugin/VersionInfo/IDalamudVersionInfo.cs deleted file mode 100644 index 6297ce196..000000000 --- a/Dalamud/Plugin/VersionInfo/IDalamudVersionInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace Dalamud.Plugin.VersionInfo; - -/// <summary> -/// Interface exposing various information related to Dalamud versioning. -/// </summary> -public interface IDalamudVersionInfo -{ - /// <summary> - /// Gets the Dalamud version. - /// </summary> - Version Version { get; } - - /// <summary> - /// Gets the currently used beta track. - /// Please don't tell users to switch branches. They have it bad enough, fix your things instead. - /// Null if this build wasn't launched from XIVLauncher. - /// </summary> - string? BetaTrack { get; } - - /// <summary> - /// Gets the git commit hash value from the assembly or null if it cannot be found. Will be null for Debug builds, - /// and will be suffixed with `-dirty` if in release with pending changes. - /// </summary> - string? GitHash { get; } - - /// <summary> - /// Gets the git hash value from the assembly or null if it cannot be found. - /// </summary> - string? GitHashClientStructs { get; } - - /// <summary> - /// Gets the SCM Version from the assembly, or null if it cannot be found. The value returned will generally be - /// the <c>git describe</c> output for this build, which will be a raw version if this is a stable build or an - /// appropriately-annotated version if this is *not* stable. Local builds will return a `Local Build` text string. - /// </summary> - string? ScmVersion { get; } -} diff --git a/Dalamud/SafeMemory.cs b/Dalamud/SafeMemory.cs index 16d16056d..3365ff118 100644 --- a/Dalamud/SafeMemory.cs +++ b/Dalamud/SafeMemory.cs @@ -1,8 +1,6 @@ using System.Runtime.InteropServices; using System.Text; -using Windows.Win32.Foundation; - namespace Dalamud; /// <summary> @@ -14,11 +12,11 @@ namespace Dalamud; /// </remarks> public static class SafeMemory { - private static readonly HANDLE Handle; + private static readonly IntPtr Handle; static SafeMemory() { - Handle = Windows.Win32.PInvoke.GetCurrentProcess(); + Handle = Imports.GetCurrentProcess(); } /// <summary> @@ -27,31 +25,11 @@ public static class SafeMemory /// <param name="address">The address to read from.</param> /// <param name="count">The amount of bytes to read.</param> /// <param name="buffer">The result buffer.</param> - /// <returns>Whether the read succeeded.</returns> - public static unsafe bool ReadBytes(IntPtr address, int count, out byte[] buffer) + /// <returns>Whether or not the read succeeded.</returns> + public static bool ReadBytes(IntPtr address, int count, out byte[] buffer) { - if (Handle.IsNull) - { - buffer = []; - return false; - } - buffer = new byte[count <= 0 ? 0 : count]; - fixed (byte* p = buffer) - { - UIntPtr bytesRead; - if (!Windows.Win32.PInvoke.ReadProcessMemory( - Handle, - address.ToPointer(), - p, - new UIntPtr((uint)count), - &bytesRead)) - { - return false; - } - } - - return true; + return Imports.ReadProcessMemory(Handle, address, buffer, buffer.Length, out _); } /// <summary> @@ -59,30 +37,10 @@ public static class SafeMemory /// </summary> /// <param name="address">The address to write to.</param> /// <param name="buffer">The buffer to write.</param> - /// <returns>Whether the write succeeded.</returns> - public static unsafe bool WriteBytes(IntPtr address, byte[] buffer) + /// <returns>Whether or not the write succeeded.</returns> + public static bool WriteBytes(IntPtr address, byte[] buffer) { - if (Handle.IsNull) - return false; - - if (buffer.Length == 0) - return true; - - UIntPtr bytesWritten; - fixed (byte* p = buffer) - { - if (!Windows.Win32.PInvoke.WriteProcessMemory( - Handle, - address.ToPointer(), - p, - new UIntPtr((uint)buffer.Length), - &bytesWritten)) - { - return false; - } - } - - return true; + return Imports.WriteProcessMemory(Handle, address, buffer, buffer.Length, out _); } /// <summary> @@ -91,7 +49,7 @@ public static class SafeMemory /// <typeparam name="T">The type of the struct.</typeparam> /// <param name="address">The address to read from.</param> /// <param name="result">The resulting object.</param> - /// <returns>Whether the read succeeded.</returns> + /// <returns>Whether or not the read succeeded.</returns> public static bool Read<T>(IntPtr address, out T result) where T : struct { if (!ReadBytes(address, SizeCache<T>.Size, out var buffer)) @@ -133,7 +91,7 @@ public static class SafeMemory /// <typeparam name="T">The type of the struct.</typeparam> /// <param name="address">The address to write to.</param> /// <param name="obj">The object to write.</param> - /// <returns>Whether the write succeeded.</returns> + /// <returns>Whether or not the write succeeded.</returns> public static bool Write<T>(IntPtr address, T obj) where T : struct { using var mem = new LocalMemory(SizeCache<T>.Size); @@ -147,7 +105,7 @@ public static class SafeMemory /// <typeparam name="T">The type of the structs.</typeparam> /// <param name="address">The address to write to.</param> /// <param name="objArray">The array to write.</param> - /// <returns>Whether the write succeeded.</returns> + /// <returns>Whether or not the write succeeded.</returns> public static bool Write<T>(IntPtr address, T[] objArray) where T : struct { if (objArray == null || objArray.Length == 0) @@ -193,7 +151,7 @@ public static class SafeMemory return null; var data = encoding.GetString(buffer); var eosPos = data.IndexOf('\0'); - return eosPos == -1 ? data : data[..eosPos]; + return eosPos == -1 ? data : data.Substring(0, eosPos); } /// <summary> @@ -206,7 +164,7 @@ public static class SafeMemory /// </remarks> /// <param name="address">The address to write to.</param> /// <param name="str">The string to write.</param> - /// <returns>Whether the write succeeded.</returns> + /// <returns>Whether or not the write succeeded.</returns> public static bool WriteString(IntPtr address, string str) { return WriteString(address, str, Encoding.UTF8); @@ -223,7 +181,7 @@ public static class SafeMemory /// <param name="address">The address to write to.</param> /// <param name="str">The string to write.</param> /// <param name="encoding">The encoding to use.</param> - /// <returns>Whether the write succeeded.</returns> + /// <returns>Whether or not the write succeeded.</returns> public static bool WriteString(IntPtr address, string str, Encoding encoding) { if (string.IsNullOrEmpty(str)) @@ -282,6 +240,18 @@ public static class SafeMemory } } + private static class Imports + { + [DllImport("kernel32", SetLastError = true)] + public static extern bool ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [Out] byte[] lpBuffer, int nSize, out int lpNumberOfBytesRead); + + [DllImport("kernel32", SetLastError = true)] + public static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, int nSize, out int lpNumberOfBytesWritten); + + [DllImport("kernel32", SetLastError = false)] + public static extern IntPtr GetCurrentProcess(); + } + private sealed class LocalMemory : IDisposable { private readonly int size; @@ -303,7 +273,7 @@ public static class SafeMemory return bytes; } - public T Read<T>(int offset = 0) => Marshal.PtrToStructure<T>(this.hGlobal + offset); + public T Read<T>(int offset = 0) => (T)Marshal.PtrToStructure(this.hGlobal + offset, typeof(T)); public object? Read(Type type, int offset = 0) => Marshal.PtrToStructure(this.hGlobal + offset, type); diff --git a/Dalamud/Service/LoadingDialog.cs b/Dalamud/Service/LoadingDialog.cs index ea45d3bb2..424087743 100644 --- a/Dalamud/Service/LoadingDialog.cs +++ b/Dalamud/Service/LoadingDialog.cs @@ -1,4 +1,4 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Drawing; @@ -294,18 +294,18 @@ internal sealed class LoadingDialog ? null : Icon.ExtractAssociatedIcon(Path.Combine(workingDirectory, "Dalamud.Injector.exe")); - fixed (char* pszEmpty = "-") - fixed (char* pszWindowTitle = "Dalamud") - fixed (char* pszDalamudBoot = "Dalamud.Boot.dll") - fixed (char* pszThemesManifestResourceName = "RT_MANIFEST_THEMES") - fixed (char* pszHide = Loc.Localize("LoadingDialogHide", "Hide")) - fixed (char* pszShowLatestLogs = Loc.Localize("LoadingDialogShowLatestLogs", "Show Latest Logs")) - fixed (char* pszHideLatestLogs = Loc.Localize("LoadingDialogHideLatestLogs", "Hide Latest Logs")) + fixed (void* pszEmpty = "-") + fixed (void* pszWindowTitle = "Dalamud") + fixed (void* pszDalamudBoot = "Dalamud.Boot.dll") + fixed (void* pszThemesManifestResourceName = "RT_MANIFEST_THEMES") + fixed (void* pszHide = Loc.Localize("LoadingDialogHide", "Hide")) + fixed (void* pszShowLatestLogs = Loc.Localize("LoadingDialogShowLatestLogs", "Show Latest Logs")) + fixed (void* pszHideLatestLogs = Loc.Localize("LoadingDialogHideLatestLogs", "Hide Latest Logs")) { var taskDialogButton = new TASKDIALOG_BUTTON { nButtonID = IDOK, - pszButtonText = pszHide, + pszButtonText = (ushort*)pszHide, }; var taskDialogConfig = new TASKDIALOGCONFIG { @@ -318,8 +318,8 @@ internal sealed class LoadingDialog (int)TDF_CALLBACK_TIMER | (extractedIcon is null ? 0 : (int)TDF_USE_HICON_MAIN), dwCommonButtons = 0, - pszWindowTitle = pszWindowTitle, - pszMainIcon = extractedIcon is null ? TD.TD_INFORMATION_ICON : (char*)extractedIcon.Handle, + pszWindowTitle = (ushort*)pszWindowTitle, + pszMainIcon = extractedIcon is null ? TD.TD_INFORMATION_ICON : (ushort*)extractedIcon.Handle, pszMainInstruction = null, pszContent = null, cButtons = 1, @@ -329,9 +329,9 @@ internal sealed class LoadingDialog pRadioButtons = null, nDefaultRadioButton = 0, pszVerificationText = null, - pszExpandedInformation = pszEmpty, - pszExpandedControlText = pszShowLatestLogs, - pszCollapsedControlText = pszHideLatestLogs, + pszExpandedInformation = (ushort*)pszEmpty, + pszExpandedControlText = (ushort*)pszShowLatestLogs, + pszCollapsedControlText = (ushort*)pszHideLatestLogs, pszFooterIcon = null, pszFooter = null, pfCallback = &HResultFuncBinder, @@ -348,8 +348,8 @@ internal sealed class LoadingDialog { cbSize = (uint)sizeof(ACTCTXW), dwFlags = ACTCTX_FLAG_HMODULE_VALID | ACTCTX_FLAG_RESOURCE_NAME_VALID, - lpResourceName = pszThemesManifestResourceName, - hModule = GetModuleHandleW(pszDalamudBoot), + lpResourceName = (ushort*)pszThemesManifestResourceName, + hModule = GetModuleHandleW((ushort*)pszDalamudBoot), }; hActCtx = CreateActCtxW(&actctx); if (hActCtx == default) diff --git a/Dalamud/Service/ServiceManager.cs b/Dalamud/Service/ServiceManager.cs index 824f816ff..206b24736 100644 --- a/Dalamud/Service/ServiceManager.cs +++ b/Dalamud/Service/ServiceManager.cs @@ -9,14 +9,11 @@ using System.Threading.Tasks; using Dalamud.Configuration.Internal; using Dalamud.Game; -using Dalamud.IoC; using Dalamud.IoC.Internal; using Dalamud.Logging.Internal; -using Dalamud.Plugin.Services; using Dalamud.Storage; using Dalamud.Utility; using Dalamud.Utility.Timing; - using JetBrains.Annotations; // API10 TODO: Move to Dalamud.Service namespace. Some plugins reflect this... including my own, oops. There's a todo @@ -35,7 +32,7 @@ internal static class ServiceManager /// <summary> /// Static log facility for Service{T}, to avoid duplicate instances for different types. /// </summary> - public static readonly ModuleLog Log = new(nameof(ServiceManager)); + public static readonly ModuleLog Log = new("SVC"); #if DEBUG /// <summary> @@ -44,7 +41,7 @@ internal static class ServiceManager internal static readonly ThreadLocal<Type?> CurrentConstructorServiceType = new(); [SuppressMessage("ReSharper", "CollectionNeverQueried.Local", Justification = "Debugging purposes")] - private static readonly List<Type> LoadedServices = []; + private static readonly List<Type> LoadedServices = new(); #endif private static readonly TaskCompletionSource BlockingServicesLoadedTaskCompletionSource = @@ -75,7 +72,7 @@ internal static class ServiceManager /// <param name="justification">The justification for using this feature.</param> [InjectableType] public delegate void RegisterUnloadAfterDelegate(IEnumerable<Type> unloadAfter, string justification); - + /// <summary> /// Kinds of services. /// </summary> @@ -86,27 +83,27 @@ internal static class ServiceManager /// Not a service. /// </summary> None = 0, - + /// <summary> /// Service that is loaded manually. /// </summary> ProvidedService = 1 << 0, - + /// <summary> /// Service that is loaded asynchronously while the game starts. /// </summary> EarlyLoadedService = 1 << 1, - + /// <summary> /// Service that is loaded before the game starts. /// </summary> BlockingEarlyLoadedService = 1 << 2, - + /// <summary> /// Service that is only instantiable via scopes. /// </summary> ScopedService = 1 << 3, - + /// <summary> /// Service that is loaded automatically when the game starts, synchronously or asynchronously. /// </summary> @@ -117,7 +114,7 @@ internal static class ServiceManager /// Gets task that gets completed when all blocking early loading services are done loading. /// </summary> public static Task BlockingResolved { get; } = BlockingServicesLoadedTaskCompletionSource.Task; - + /// <summary> /// Gets a cancellation token that will be cancelled once Dalamud needs to unload, be it due to a failure state /// during initialization or during regular operation. @@ -139,23 +136,15 @@ internal static class ServiceManager TargetSigScanner scanner, Localization localization) { - void ProvideAllServices() - { - // ServiceContainer MUST be first. The static ctor of Service<T> will call Service<ServiceContainer>.Get() - // which causes a deadlock otherwise. - ProvideService(new ServiceContainer()); - - ProvideService(dalamud); - ProvideService(fs); - ProvideService(configuration); - ProvideService(scanner); - ProvideService(localization); - } - #if DEBUG lock (LoadedServices) { - ProvideAllServices(); + ProvideService(dalamud); + ProvideService(fs); + ProvideService(configuration); + ProvideService(new ServiceContainer()); + ProvideService(scanner); + ProvideService(localization); } return; @@ -167,8 +156,12 @@ internal static class ServiceManager LoadedServices.Add(typeof(T)); } #else - - ProvideAllServices(); + ProvideService(dalamud); + ProvideService(fs); + ProvideService(configuration); + ProvideService(new ServiceContainer()); + ProvideService(scanner); + ProvideService(localization); return; void ProvideService<T>(T service) where T : IServiceType => Service<T>.Provide(service); @@ -200,7 +193,7 @@ internal static class ServiceManager var getAsyncTaskMap = new Dictionary<Type, Task>(); var serviceContainer = Service<ServiceContainer>.Get(); - + foreach (var serviceType in GetConcreteServiceTypes()) { var serviceKind = serviceType.GetServiceKind(); @@ -209,13 +202,13 @@ internal static class ServiceManager // Let IoC know about the interfaces this service implements serviceContainer.RegisterInterfaces(serviceType); - + // Scoped service do not go through Service<T> and are never early loaded if (serviceKind.HasFlag(ServiceKind.ScopedService)) continue; var genericWrappedServiceType = typeof(Service<>).MakeGenericType(serviceType); - + var getTask = (Task)genericWrappedServiceType .InvokeMember( nameof(Service<IServiceType>.GetAsync), @@ -291,13 +284,13 @@ internal static class ServiceManager await loadingDialog.HideAndJoin(); return; - static async Task WaitWithTimeoutConsent(IEnumerable<Task> tasksEnumerable, LoadingDialog.State state) + async Task WaitWithTimeoutConsent(IEnumerable<Task> tasksEnumerable, LoadingDialog.State state) { loadingDialog.CurrentState = state; var tasks = tasksEnumerable.AsReadOnlyCollection(); if (tasks.Count == 0) return; - + // Time we wait until showing the loading dialog const int loadingDialogTimeout = 10000; @@ -317,7 +310,7 @@ internal static class ServiceManager servicesToLoad.UnionWith(earlyLoadingServices); servicesToLoad.UnionWith(blockingEarlyLoadingServices); - while (servicesToLoad.Count != 0) + while (servicesToLoad.Any()) { foreach (var serviceType in servicesToLoad) { @@ -337,7 +330,7 @@ internal static class ServiceManager hasDeps = false; } } - + if (!hasDeps) continue; @@ -367,7 +360,7 @@ internal static class ServiceManager BindingFlags.InvokeMethod | BindingFlags.Static | BindingFlags.NonPublic, null, null, - [startLoaderArgs])); + new object[] { startLoaderArgs })); servicesToLoad.Remove(serviceType); #if DEBUG @@ -383,23 +376,23 @@ internal static class ServiceManager #endif } - if (tasks.Count == 0) + if (!tasks.Any()) { // No more services we can start loading for now. // Either we're waiting for provided services, or there's a dependency cycle. providedServices.RemoveWhere(x => getAsyncTaskMap[x].IsCompleted); - if (providedServices.Count != 0) + if (providedServices.Any()) await Task.WhenAny(providedServices.Select(x => getAsyncTaskMap[x])); else throw new InvalidOperationException("Unresolvable dependency cycle detected"); continue; } - if (servicesToLoad.Count != 0) + if (servicesToLoad.Any()) { await Task.WhenAny(tasks); var faultedTasks = tasks.Where(x => x.IsFaulted).Select(x => (Exception)x.Exception!).ToArray(); - if (faultedTasks.Length != 0) + if (faultedTasks.Any()) throw new AggregateException(faultedTasks); } else @@ -426,7 +419,7 @@ internal static class ServiceManager await loadingDialog.HideAndJoin(); - while (tasks.Count != 0) + while (tasks.Any()) { await Task.WhenAny(tasks); tasks.RemoveAll(x => x.IsCompleted); @@ -444,7 +437,7 @@ internal static class ServiceManager public static void UnloadAllServices() { UnloadCancellationTokenSource.Cancel(); - + var framework = Service<Framework>.GetNullable(Service<Framework>.ExceptionPropagationMode.None); if (framework is { IsInFrameworkUpdateThread: false, IsFrameworkUnloading: false }) { @@ -457,14 +450,14 @@ internal static class ServiceManager var dependencyServicesMap = new Dictionary<Type, IReadOnlyCollection<Type>>(); var allToUnload = new HashSet<Type>(); var unloadOrder = new List<Type>(); - + Log.Information("==== COLLECTING SERVICES TO UNLOAD ===="); - + foreach (var serviceType in GetConcreteServiceTypes()) { if (!serviceType.IsAssignableTo(typeof(IServiceType))) continue; - + // Scoped services shall never be unloaded here. // Their lifetime must be managed by the IServiceScope that owns them. If it leaks, it's their fault. if (serviceType.GetServiceKind() == ServiceKind.ScopedService) @@ -492,12 +485,12 @@ internal static class ServiceManager unloadOrder.Add(serviceType); Log.Information("Queue for unload {Type}", serviceType.FullName!); } - + foreach (var serviceType in allToUnload) { UnloadService(serviceType); } - + Log.Information("==== UNLOADING ALL SERVICES ===="); unloadOrder.Reverse(); @@ -514,7 +507,7 @@ internal static class ServiceManager null, null); } - + #if DEBUG lock (LoadedServices) { @@ -543,30 +536,19 @@ internal static class ServiceManager var attr = type.GetCustomAttribute<ServiceAttribute>(true)?.GetType(); if (attr == null) return ServiceKind.None; - - if (!type.IsAssignableTo(typeof(IServiceType))) - { - Log.Error($"Service {type.Name} did not inherit from IServiceType"); - Debug.Fail("Service did not inherit from IServiceType"); - } + + Debug.Assert( + type.IsAssignableTo(typeof(IServiceType)), + "Service did not inherit from IServiceType"); if (attr.IsAssignableTo(typeof(BlockingEarlyLoadedServiceAttribute))) return ServiceKind.BlockingEarlyLoadedService; - + if (attr.IsAssignableTo(typeof(EarlyLoadedServiceAttribute))) return ServiceKind.EarlyLoadedService; - + if (attr.IsAssignableTo(typeof(ScopedServiceAttribute))) - { - if (type.GetCustomAttribute<PluginInterfaceAttribute>() != null - && !type.IsAssignableTo(typeof(IDalamudService))) - { - Log.Error($"Plugin-scoped service {type.Name} must inherit from IDalamudService"); - Debug.Fail("Plugin-scoped service must inherit from IDalamudService"); - } - return ServiceKind.ScopedService; - } return ServiceKind.ProvidedService; } @@ -590,7 +572,7 @@ internal static class ServiceManager var isAnyDisposable = isServiceDisposable || serviceType.IsAssignableTo(typeof(IDisposable)) - || serviceType.IsAssignableTo(typeof(IAsyncDisposable)); + || serviceType.IsAssignableTo(typeof(IAsyncDisposable)); if (isAnyDisposable && !isServiceDisposable) { throw new InvalidOperationException( diff --git a/Dalamud/Service/Service{T}.cs b/Dalamud/Service/Service{T}.cs index c965eeb3d..b4bfff917 100644 --- a/Dalamud/Service/Service{T}.cs +++ b/Dalamud/Service/Service{T}.cs @@ -23,9 +23,6 @@ namespace Dalamud; [SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "Service container static type")] internal static class Service<T> where T : IServiceType { - // TODO: Service<T> should only work with singleton services. Trying to call Service<T>.Get() on a scoped service should - // be a compile-time error. - private static readonly ServiceManager.ServiceAttribute ServiceAttribute; private static TaskCompletionSource<T> instanceTcs = new(TaskCreationOptions.RunContinuationsAsynchronously); private static List<Type>? dependencyServices; @@ -45,13 +42,8 @@ internal static class Service<T> where T : IServiceType else ServiceManager.Log.Debug("Service<{0}>: Static ctor called", type.Name); - // We can't use the service container to register itself. It does so in its constructor. - if (typeof(T) != typeof(ServiceContainer)) - { - Service<ServiceContainer>.Get().RegisterSingleton( - instanceTcs.Task, - exposeToPlugins ? ObjectInstanceVisibility.ExposedToPlugins : ObjectInstanceVisibility.Internal); - } + if (exposeToPlugins) + Service<ServiceContainer>.Get().RegisterSingleton(instanceTcs.Task); } /// <summary> @@ -171,7 +163,7 @@ internal static class Service<T> where T : IServiceType return dependencyServices; var res = new List<Type>(); - + ServiceManager.Log.Verbose("Service<{0}>: Getting dependencies", typeof(T).Name); var ctor = GetServiceConstructor(); @@ -182,12 +174,12 @@ internal static class Service<T> where T : IServiceType .Select(x => x.ParameterType) .Where(x => x.GetServiceKind() != ServiceManager.ServiceKind.None)); } - + res.AddRange(typeof(T) .GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) .Where(x => x.GetCustomAttribute<ServiceManager.ServiceDependency>(true) != null) .Select(x => x.FieldType)); - + res.AddRange(typeof(T) .GetCustomAttributes() .OfType<InherentDependencyAttribute>() @@ -206,7 +198,7 @@ internal static class Service<T> where T : IServiceType is not ServiceManager.ServiceKind.BlockingEarlyLoadedService and not ServiceManager.ServiceKind.ProvidedService) .ToArray(); - if (offenders.Length != 0) + if (offenders.Any()) { const string bels = nameof(ServiceManager.BlockingEarlyLoadedServiceAttribute); const string ps = nameof(ServiceManager.ProvidedServiceAttribute); @@ -286,13 +278,13 @@ internal static class Service<T> where T : IServiceType { if (method.Invoke(instance, args) is Task task) { - tasks ??= []; + tasks ??= new(); tasks.Add(task); } } catch (Exception e) { - tasks ??= []; + tasks ??= new(); tasks.Add(Task.FromException(e)); } } @@ -351,12 +343,15 @@ internal static class Service<T> where T : IServiceType BindingFlags.CreateInstance | BindingFlags.OptionalParamBinding; return typeof(T) .GetConstructors(ctorBindingFlags) - .SingleOrDefault(x => x.GetCustomAttributes(typeof(ServiceManager.ServiceConstructor), true).Length != 0); + .SingleOrDefault(x => x.GetCustomAttributes(typeof(ServiceManager.ServiceConstructor), true).Any()); } private static async Task<T> ConstructObject(IReadOnlyCollection<object> additionalProvidedTypedObjects) { - var ctor = GetServiceConstructor() ?? throw new Exception($"Service \"{typeof(T).FullName}\" had no applicable constructor"); + var ctor = GetServiceConstructor(); + if (ctor == null) + throw new Exception($"Service \"{typeof(T).FullName}\" had no applicable constructor"); + var args = await ResolveInjectedParameters(ctor.GetParameters(), additionalProvidedTypedObjects) .ConfigureAwait(false); using (Timings.Start($"{typeof(T).Name} Construct")) @@ -392,7 +387,7 @@ internal static class Service<T> where T : IServiceType argTask = Task.FromResult(additionalProvidedTypedObjects.Single(x => x.GetType() == argType)); continue; } - + argTask = (Task<object>)typeof(Service<>) .MakeGenericType(argType) .InvokeMember( @@ -457,7 +452,7 @@ internal static class ServiceHelpers BindingFlags.InvokeMethod | BindingFlags.Static | BindingFlags.Public, null, null, - [includeUnloadDependencies]) ?? new List<Type>(); + new object?[] { includeUnloadDependencies }) ?? new List<Type>(); } /// <summary> diff --git a/Dalamud/Storage/Assets/DalamudAssetPurpose.cs b/Dalamud/Storage/Assets/DalamudAssetPurpose.cs index 69de1f871..e6c7bd920 100644 --- a/Dalamud/Storage/Assets/DalamudAssetPurpose.cs +++ b/Dalamud/Storage/Assets/DalamudAssetPurpose.cs @@ -11,12 +11,12 @@ public enum DalamudAssetPurpose Empty = 0, /// <summary> - /// The asset is a .png file, and can be purposed as a <see cref="TerraFX.Interop.DirectX.ID3D11Texture2D"/>. + /// The asset is a .png file, and can be purposed as a <see cref="SharpDX.Direct3D11.Texture2D"/>. /// </summary> TextureFromPng = 10, - + /// <summary> - /// The asset is a raw texture, and can be purposed as a <see cref="TerraFX.Interop.DirectX.ID3D11Texture2D"/>. + /// The asset is a raw texture, and can be purposed as a <see cref="SharpDX.Direct3D11.Texture2D"/>. /// </summary> TextureFromRaw = 1001, diff --git a/Dalamud/Storage/Assets/IDalamudAssetManager.cs b/Dalamud/Storage/Assets/IDalamudAssetManager.cs index 8b74e4347..b4dc41bfd 100644 --- a/Dalamud/Storage/Assets/IDalamudAssetManager.cs +++ b/Dalamud/Storage/Assets/IDalamudAssetManager.cs @@ -1,8 +1,9 @@ -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.IO; using System.Threading.Tasks; +using Dalamud.Interface.Internal; using Dalamud.Interface.Textures.TextureWraps; namespace Dalamud.Storage.Assets; diff --git a/Dalamud/Storage/ReliableFileStorage.cs b/Dalamud/Storage/ReliableFileStorage.cs index 72cc598ae..b78d16cc7 100644 --- a/Dalamud/Storage/ReliableFileStorage.cs +++ b/Dalamud/Storage/ReliableFileStorage.cs @@ -1,11 +1,8 @@ -using System.IO; +using System.IO; using System.Text; -using System.Threading; -using System.Threading.Tasks; using Dalamud.Logging.Internal; using Dalamud.Utility; - using SQLite; namespace Dalamud.Storage; @@ -27,12 +24,12 @@ namespace Dalamud.Storage; [ServiceManager.ProvidedService] internal class ReliableFileStorage : IInternalDisposableService { - private static readonly ModuleLog Log = ModuleLog.Create<ReliableFileStorage>(); + private static readonly ModuleLog Log = new("VFS"); - private readonly Lock syncRoot = new(); + private readonly object syncRoot = new(); private SQLiteConnection? db; - + /// <summary> /// Initializes a new instance of the <see cref="ReliableFileStorage"/> class. /// </summary> @@ -40,7 +37,7 @@ internal class ReliableFileStorage : IInternalDisposableService public ReliableFileStorage(string vfsDbPath) { var databasePath = Path.Combine(vfsDbPath, "dalamudVfs.db"); - + Log.Verbose("Initializing VFS database at {Path}", databasePath); try @@ -55,7 +52,7 @@ internal class ReliableFileStorage : IInternalDisposableService { if (File.Exists(databasePath)) File.Delete(databasePath); - + this.SetupDb(databasePath); } catch (Exception) @@ -82,23 +79,22 @@ internal class ReliableFileStorage : IInternalDisposableService if (this.db == null) return false; - + // If the file doesn't actually exist on the FS, but it does in the DB, we can say YES and read operations will read from the DB instead var normalizedPath = NormalizePath(path); var file = this.db.Table<DbFile>().FirstOrDefault(f => f.Path == normalizedPath && f.ContainerId == containerId); return file != null; } - + /// <summary> /// Write all text to a file. /// </summary> /// <param name="path">Path to write to.</param> /// <param name="contents">The contents of the file.</param> /// <param name="containerId">Container to write to.</param> - /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> - public async Task WriteAllTextAsync(string path, string? contents, Guid containerId = default) - => await this.WriteAllTextAsync(path, contents, Encoding.UTF8, containerId); - + public void WriteAllText(string path, string? contents, Guid containerId = default) + => this.WriteAllText(path, contents, Encoding.UTF8, containerId); + /// <summary> /// Write all text to a file. /// </summary> @@ -106,21 +102,19 @@ internal class ReliableFileStorage : IInternalDisposableService /// <param name="contents">The contents of the file.</param> /// <param name="encoding">The encoding to write with.</param> /// <param name="containerId">Container to write to.</param> - /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> - public async Task WriteAllTextAsync(string path, string? contents, Encoding encoding, Guid containerId = default) + public void WriteAllText(string path, string? contents, Encoding encoding, Guid containerId = default) { var bytes = encoding.GetBytes(contents ?? string.Empty); - await this.WriteAllBytesAsync(path, bytes, containerId); + this.WriteAllBytes(path, bytes, containerId); } - + /// <summary> /// Write all bytes to a file. /// </summary> /// <param name="path">Path to write to.</param> /// <param name="bytes">The contents of the file.</param> /// <param name="containerId">Container to write to.</param> - /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> - public Task WriteAllBytesAsync(string path, byte[] bytes, Guid containerId = default) + public void WriteAllBytes(string path, byte[] bytes, Guid containerId = default) { ArgumentException.ThrowIfNullOrEmpty(path); @@ -128,10 +122,10 @@ internal class ReliableFileStorage : IInternalDisposableService { if (this.db == null) { - FilesystemUtil.WriteAllBytesSafe(path, bytes); - return Task.CompletedTask; + Util.WriteAllBytesSafe(path, bytes); + return; } - + this.db.RunInTransaction(() => { var normalizedPath = NormalizePath(path); @@ -151,12 +145,10 @@ internal class ReliableFileStorage : IInternalDisposableService file.Data = bytes; this.db.Update(file); } - - FilesystemUtil.WriteAllBytesSafe(path, bytes); + + Util.WriteAllBytesSafe(path, bytes); }); } - - return Task.CompletedTask; } /// <summary> @@ -165,12 +157,12 @@ internal class ReliableFileStorage : IInternalDisposableService /// automatically written back to disk, however. /// </summary> /// <param name="path">The path to read from.</param> - /// <param name="forceBackup">Whether the backup of the file should take priority.</param> + /// <param name="forceBackup">Whether or not the backup of the file should take priority.</param> /// <param name="containerId">The container to read from.</param> /// <returns>All text stored in this file.</returns> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> - public Task<string> ReadAllTextAsync(string path, bool forceBackup = false, Guid containerId = default) - => this.ReadAllTextAsync(path, Encoding.UTF8, forceBackup, containerId); + public string ReadAllText(string path, bool forceBackup = false, Guid containerId = default) + => this.ReadAllText(path, Encoding.UTF8, forceBackup, containerId); /// <summary> /// Read all text from a file. @@ -179,16 +171,16 @@ internal class ReliableFileStorage : IInternalDisposableService /// </summary> /// <param name="path">The path to read from.</param> /// <param name="encoding">The encoding to read with.</param> - /// <param name="forceBackup">Whether the backup of the file should take priority.</param> + /// <param name="forceBackup">Whether or not the backup of the file should take priority.</param> /// <param name="containerId">The container to read from.</param> /// <returns>All text stored in this file.</returns> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> - public async Task<string> ReadAllTextAsync(string path, Encoding encoding, bool forceBackup = false, Guid containerId = default) + public string ReadAllText(string path, Encoding encoding, bool forceBackup = false, Guid containerId = default) { - var bytes = await this.ReadAllBytesAsync(path, forceBackup, containerId); + var bytes = this.ReadAllBytes(path, forceBackup, containerId); return encoding.GetString(bytes); } - + /// <summary> /// Read all text from a file, and automatically try again with the backup if the file does not exist or /// the <paramref name="reader"/> function throws an exception. If the backup read also throws an exception, @@ -199,9 +191,8 @@ internal class ReliableFileStorage : IInternalDisposableService /// <param name="containerId">The container to read from.</param> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> /// <exception cref="FileReadException">Thrown here if the file and the backup fail their read.</exception> - /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> - public async Task ReadAllTextAsync(string path, Action<string> reader, Guid containerId = default) - => await this.ReadAllTextAsync(path, Encoding.UTF8, reader, containerId); + public void ReadAllText(string path, Action<string> reader, Guid containerId = default) + => this.ReadAllText(path, Encoding.UTF8, reader, containerId); /// <summary> /// Read all text from a file, and automatically try again with the backup if the file does not exist or @@ -214,19 +205,18 @@ internal class ReliableFileStorage : IInternalDisposableService /// <param name="containerId">The container to read from.</param> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> /// <exception cref="FileReadException">Thrown here if the file and the backup fail their read.</exception> - /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> - public async Task ReadAllTextAsync(string path, Encoding encoding, Action<string> reader, Guid containerId = default) + public void ReadAllText(string path, Encoding encoding, Action<string> reader, Guid containerId = default) { ArgumentException.ThrowIfNullOrEmpty(path); - + // TODO: We are technically reading one time too many here, if the file does not exist on the FS, ReadAllText // fails over to the backup, and then the backup fails to read in the lambda. We should do something about that, // but it's not a big deal. Would be nice if ReadAllText could indicate if it did fail over. - + // 1.) Try without using the backup try { - var text = await this.ReadAllTextAsync(path, encoding, false, containerId); + var text = this.ReadAllText(path, encoding, false, containerId); reader(text); return; } @@ -239,11 +229,11 @@ internal class ReliableFileStorage : IInternalDisposableService { Log.Verbose(ex, "First chance read from {Path} failed, trying backup", path); } - + // 2.) Try using the backup try { - var text = await this.ReadAllTextAsync(path, encoding, true, containerId); + var text = this.ReadAllText(path, encoding, true, containerId); reader(text); } catch (Exception ex) @@ -259,30 +249,32 @@ internal class ReliableFileStorage : IInternalDisposableService /// automatically written back to disk, however. /// </summary> /// <param name="path">The path to read from.</param> - /// <param name="forceBackup">Whether the backup of the file should take priority.</param> + /// <param name="forceBackup">Whether or not the backup of the file should take priority.</param> /// <param name="containerId">The container to read from.</param> /// <returns>All bytes stored in this file.</returns> /// <exception cref="FileNotFoundException">Thrown if the file does not exist on the filesystem or in the backup.</exception> - public async Task<byte[]> ReadAllBytesAsync(string path, bool forceBackup = false, Guid containerId = default) + public byte[] ReadAllBytes(string path, bool forceBackup = false, Guid containerId = default) { ArgumentException.ThrowIfNullOrEmpty(path); - + if (forceBackup) { // If the db failed to load, act as if the file does not exist if (this.db == null) throw new FileNotFoundException("Backup database was not available"); - + var normalizedPath = NormalizePath(path); - var file = this.db.Table<DbFile>().FirstOrDefault(f => f.Path == normalizedPath && f.ContainerId == containerId) - ?? throw new FileNotFoundException(); + var file = this.db.Table<DbFile>().FirstOrDefault(f => f.Path == normalizedPath && f.ContainerId == containerId); + if (file == null) + throw new FileNotFoundException(); + return file.Data; } // If the file doesn't exist, immediately check the backup db if (!File.Exists(path)) - return await this.ReadAllBytesAsync(path, true, containerId); - + return this.ReadAllBytes(path, true, containerId); + try { return File.ReadAllBytes(path); @@ -290,7 +282,7 @@ internal class ReliableFileStorage : IInternalDisposableService catch (Exception e) { Log.Error(e, "Failed to read file from disk, falling back to database"); - return await this.ReadAllBytesAsync(path, true, containerId); + return this.ReadAllBytes(path, true, containerId); } } @@ -310,10 +302,10 @@ internal class ReliableFileStorage : IInternalDisposableService // Replace users folder var usersFolder = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); path = path.Replace(usersFolder, "%USERPROFILE%"); - + return path; } - + private void SetupDb(string path) { this.db = new SQLiteConnection(path, @@ -328,9 +320,9 @@ internal class ReliableFileStorage : IInternalDisposableService [PrimaryKey] [AutoIncrement] public int Id { get; set; } - + public Guid ContainerId { get; set; } - + public string Path { get; set; } = null!; public byte[] Data { get; set; } = null!; diff --git a/Dalamud/Storage/ReliableFileStoragePluginScoped.cs b/Dalamud/Storage/ReliableFileStoragePluginScoped.cs deleted file mode 100644 index 59d6bccc4..000000000 --- a/Dalamud/Storage/ReliableFileStoragePluginScoped.cs +++ /dev/null @@ -1,199 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; - -using Dalamud.IoC; -using Dalamud.IoC.Internal; -using Dalamud.Plugin.Internal.Types; -using Dalamud.Plugin.Services; - -namespace Dalamud.Storage; - -#pragma warning disable Dalamud001 - -/// <summary> -/// Plugin-scoped VFS wrapper. -/// </summary> -[PluginInterface] -[ServiceManager.ScopedService] -#pragma warning disable SA1015 -[ResolveVia<IReliableFileStorage>] -#pragma warning restore SA1015 -public class ReliableFileStoragePluginScoped : IReliableFileStorage, IInternalDisposableService -{ - private readonly Lock pendingLock = new(); - private readonly HashSet<Task> pendingWrites = []; - - private readonly LocalPlugin plugin; - - [ServiceManager.ServiceDependency] - private readonly ReliableFileStorage storage = Service<ReliableFileStorage>.Get(); - - // When true, the scope is disposing and new write requests are rejected. - private volatile bool isDisposing = false; - - /// <summary> - /// Initializes a new instance of the <see cref="ReliableFileStoragePluginScoped"/> class. - /// </summary> - /// <param name="plugin">The owner plugin.</param> - [ServiceManager.ServiceConstructor] - internal ReliableFileStoragePluginScoped(LocalPlugin plugin) - { - this.plugin = plugin; - } - - /// <inheritdoc/> - public long MaxFileSizeBytes => 64 * 1024 * 1024; - - /// <inheritdoc/> - public bool Exists(string path) - { - if (this.isDisposing) - throw new ObjectDisposedException(nameof(ReliableFileStoragePluginScoped)); - - return this.storage.Exists(path, this.plugin.EffectiveWorkingPluginId); - } - - /// <inheritdoc/> - public Task WriteAllTextAsync(string path, string? contents) - { - // Route through WriteAllBytesAsync so all write tracking and size checks are centralized. - ArgumentException.ThrowIfNullOrEmpty(path); - - var bytes = Encoding.UTF8.GetBytes(contents ?? string.Empty); - return this.WriteAllBytesAsync(path, bytes); - } - - /// <inheritdoc/> - public Task WriteAllTextAsync(string path, string? contents, Encoding encoding) - { - // Route through WriteAllBytesAsync so all write tracking and size checks are centralized. - ArgumentException.ThrowIfNullOrEmpty(path); - ArgumentNullException.ThrowIfNull(encoding); - - var bytes = encoding.GetBytes(contents ?? string.Empty); - return this.WriteAllBytesAsync(path, bytes); - } - - /// <inheritdoc/> - public Task WriteAllBytesAsync(string path, byte[] bytes) - { - ArgumentException.ThrowIfNullOrEmpty(path); - ArgumentNullException.ThrowIfNull(bytes); - - if (bytes.LongLength > this.MaxFileSizeBytes) - throw new ArgumentException($"The provided data exceeds the maximum allowed size of {this.MaxFileSizeBytes} bytes.", nameof(bytes)); - - // Start the underlying write task - var task = Task.Run(() => this.storage.WriteAllBytesAsync(path, bytes, this.plugin.EffectiveWorkingPluginId)); - - // Track the task so we can wait for it on dispose - lock (this.pendingLock) - { - if (this.isDisposing) - throw new ObjectDisposedException(nameof(ReliableFileStoragePluginScoped)); - - this.pendingWrites.Add(task); - } - - // Remove when done, if the task is already done this runs synchronously here and removes immediately - _ = task.ContinueWith(t => - { - lock (this.pendingLock) - { - this.pendingWrites.Remove(t); - } - }, TaskContinuationOptions.ExecuteSynchronously); - - return task; - } - - /// <inheritdoc/> - public Task<string> ReadAllTextAsync(string path, bool forceBackup = false) - { - if (this.isDisposing) - throw new ObjectDisposedException(nameof(ReliableFileStoragePluginScoped)); - - ArgumentException.ThrowIfNullOrEmpty(path); - - return this.storage.ReadAllTextAsync(path, forceBackup, this.plugin.EffectiveWorkingPluginId); - } - - /// <inheritdoc/> - public Task<string> ReadAllTextAsync(string path, Encoding encoding, bool forceBackup = false) - { - if (this.isDisposing) - throw new ObjectDisposedException(nameof(ReliableFileStoragePluginScoped)); - - ArgumentException.ThrowIfNullOrEmpty(path); - ArgumentNullException.ThrowIfNull(encoding); - - return this.storage.ReadAllTextAsync(path, encoding, forceBackup, this.plugin.EffectiveWorkingPluginId); - } - - /// <inheritdoc/> - public Task ReadAllTextAsync(string path, Action<string> reader) - { - if (this.isDisposing) - throw new ObjectDisposedException(nameof(ReliableFileStoragePluginScoped)); - - ArgumentException.ThrowIfNullOrEmpty(path); - ArgumentNullException.ThrowIfNull(reader); - - return this.storage.ReadAllTextAsync(path, reader, this.plugin.EffectiveWorkingPluginId); - } - - /// <inheritdoc/> - public Task ReadAllTextAsync(string path, Encoding encoding, Action<string> reader) - { - if (this.isDisposing) - throw new ObjectDisposedException(nameof(ReliableFileStoragePluginScoped)); - - ArgumentException.ThrowIfNullOrEmpty(path); - ArgumentNullException.ThrowIfNull(encoding); - ArgumentNullException.ThrowIfNull(reader); - - return this.storage.ReadAllTextAsync(path, encoding, reader, this.plugin.EffectiveWorkingPluginId); - } - - /// <inheritdoc/> - public Task<byte[]> ReadAllBytesAsync(string path, bool forceBackup = false) - { - if (this.isDisposing) - throw new ObjectDisposedException(nameof(ReliableFileStoragePluginScoped)); - - ArgumentException.ThrowIfNullOrEmpty(path); - - return this.storage.ReadAllBytesAsync(path, forceBackup, this.plugin.EffectiveWorkingPluginId); - } - - /// <inheritdoc/> - public void DisposeService() - { - Task[] tasksSnapshot; - lock (this.pendingLock) - { - // Mark disposing to reject new writes. - this.isDisposing = true; - - if (this.pendingWrites.Count == 0) - return; - - tasksSnapshot = this.pendingWrites.ToArray(); - } - - try - { - // Wait for all pending writes to complete. If some complete while we're waiting they will be in tasksSnapshot - // and are observed here; newly started writes are rejected due to isDisposing. - Task.WaitAll(tasksSnapshot); - } - catch (AggregateException) - { - // Swallow exceptions here: the underlying write failures will have been surfaced earlier to callers. - // We don't want dispose to throw and crash unload sequences. - } - } -} diff --git a/Dalamud/Support/BugBait.cs b/Dalamud/Support/BugBait.cs index c37c4d2f8..c82e5e652 100644 --- a/Dalamud/Support/BugBait.cs +++ b/Dalamud/Support/BugBait.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using Dalamud.Networking.Http; using Dalamud.Plugin.Internal.Types.Manifest; using Dalamud.Utility; - using Newtonsoft.Json; namespace Dalamud.Support; @@ -21,10 +20,10 @@ internal static class BugBait /// Send feedback to Discord. /// </summary> /// <param name="plugin">The plugin to send feedback about.</param> - /// <param name="isTesting">Whether the plugin is a testing plugin.</param> + /// <param name="isTesting">Whether or not the plugin is a testing plugin.</param> /// <param name="content">The content of the feedback.</param> /// <param name="reporter">The reporter name.</param> - /// <param name="includeException">Whether the most recent exception to occur should be included in the report.</param> + /// <param name="includeException">Whether or not the most recent exception to occur should be included in the report.</param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public static async Task SendFeedback(IPluginManifest plugin, bool isTesting, string content, string reporter, bool includeException) { @@ -37,15 +36,14 @@ internal static class BugBait Reporter = reporter, Name = plugin.InternalName, Version = isTesting ? plugin.TestingAssemblyVersion?.ToString() : plugin.AssemblyVersion.ToString(), - Platform = Util.GetHostPlatform().ToString(), - DalamudHash = Versioning.GetScmVersion(), + DalamudHash = Util.GetScmVersion(), }; if (includeException) { model.Exception = Troubleshooting.LastException == null ? "Was included, but none happened" : Troubleshooting.LastException?.ToString(); } - + var httpClient = Service<HappyHttpClient>.Get().SharedHttpClient; var postContent = new StringContent(JsonConvert.SerializeObject(model), Encoding.UTF8, "application/json"); @@ -68,9 +66,6 @@ internal static class BugBait [JsonProperty("version")] public string? Version { get; set; } - [JsonProperty("platform")] - public string? Platform { get; set; } - [JsonProperty("reporter")] public string? Reporter { get; set; } diff --git a/Dalamud/Support/DalamudReleases.cs b/Dalamud/Support/DalamudReleases.cs index 949ebf94a..15e851da2 100644 --- a/Dalamud/Support/DalamudReleases.cs +++ b/Dalamud/Support/DalamudReleases.cs @@ -3,7 +3,6 @@ using System.Threading.Tasks; using Dalamud.Configuration.Internal; using Dalamud.Networking.Http; -using Dalamud.Utility; using Newtonsoft.Json; @@ -16,7 +15,7 @@ namespace Dalamud.Support; internal class DalamudReleases : IServiceType { private const string VersionInfoUrl = "https://kamori.goats.dev/Dalamud/Release/VersionInfo?track={0}"; - + private readonly HappyHttpClient httpClient; private readonly DalamudConfiguration config; @@ -31,24 +30,20 @@ internal class DalamudReleases : IServiceType this.httpClient = httpClient; this.config = config; } - + /// <summary> /// Get the latest version info for the current track. /// </summary> /// <returns>The version info for the current track.</returns> - public async Task<DalamudVersionInfo?> GetVersionForCurrentTrack() + public async Task<DalamudVersionInfo> GetVersionForCurrentTrack() { - var currentTrack = Versioning.GetActiveTrack(); - if (currentTrack.IsNullOrEmpty()) - return null; - - var url = string.Format(VersionInfoUrl, [currentTrack]); + var url = string.Format(VersionInfoUrl, [this.config.DalamudBetaKind]); var response = await this.httpClient.SharedHttpClient.GetAsync(url); response.EnsureSuccessStatusCode(); var content = await response.Content.ReadAsStringAsync(); return JsonConvert.DeserializeObject<DalamudVersionInfo>(content); } - + [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "laziness")] public class DalamudVersionInfo { diff --git a/Dalamud/Support/Troubleshooting.cs b/Dalamud/Support/Troubleshooting.cs index 779754ee8..4af8d5ffc 100644 --- a/Dalamud/Support/Troubleshooting.cs +++ b/Dalamud/Support/Troubleshooting.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.IO; using System.Linq; using System.Text; @@ -9,9 +8,7 @@ using Dalamud.Interface.Internal; using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal.Types.Manifest; using Dalamud.Utility; - using Newtonsoft.Json; - using Serilog; namespace Dalamud.Support; @@ -35,7 +32,7 @@ public static class Troubleshooting { LastException = exception; - var fixedContext = context?.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); + var fixedContext = context?.Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); try { @@ -69,15 +66,14 @@ public static class Troubleshooting { var payload = new TroubleshootingPayload { - Timestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(), LoadedPlugins = pluginManager?.InstalledPlugins?.Select(x => x.Manifest as LocalPluginManifest)?.OrderByDescending(x => x.InternalName).ToArray(), PluginStates = pluginManager?.InstalledPlugins?.Where(x => !x.IsDev).ToDictionary(x => x.Manifest.InternalName, x => x.IsBanned ? "Banned" : x.State.ToString()), EverStartedLoadingPlugins = pluginManager?.InstalledPlugins.Where(x => x.HasEverStartedLoad).Select(x => x.InternalName).ToList(), - DalamudVersion = Versioning.GetScmVersion(), - DalamudGitHash = Versioning.GetGitHash() ?? "Unknown", + DalamudVersion = Util.GetScmVersion(), + DalamudGitHash = Util.GetGitHash() ?? "Unknown", GameVersion = startInfo.GameVersion?.ToString() ?? "Unknown", Language = startInfo.Language.ToString(), - BetaKey = Versioning.GetActiveTrack(), + BetaKey = configuration.DalamudBetaKey, DoPluginTest = configuration.DoPluginTest, LoadAllApiLevels = pluginManager?.LoadAllApiLevels == true, InterfaceLoaded = interfaceManager?.IsReady ?? false, @@ -87,12 +83,6 @@ public static class Troubleshooting var encodedPayload = Convert.ToBase64String(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(payload))); Log.Information($"TROUBLESHOOTING:{encodedPayload}"); - - File.WriteAllText( - Path.Join( - startInfo.LogPath, - "dalamud.troubleshooting.json"), - JsonConvert.SerializeObject(payload, Formatting.Indented)); } catch (Exception ex) { @@ -111,8 +101,6 @@ public static class Troubleshooting private class TroubleshootingPayload { - public long Timestamp { get; set; } - public LocalPluginManifest[]? LoadedPlugins { get; set; } public Dictionary<string, string>? PluginStates { get; set; } @@ -139,7 +127,7 @@ public static class Troubleshooting public bool ForcedMinHook { get; set; } - public List<ThirdPartyRepoSettings> ThirdRepo => []; + public List<ThirdPartyRepoSettings> ThirdRepo => new(); public bool HasThirdRepo { get; set; } } diff --git a/Dalamud/Utility/ActionKindExtensions.cs b/Dalamud/Utility/ActionKindExtensions.cs deleted file mode 100644 index 21026bc31..000000000 --- a/Dalamud/Utility/ActionKindExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Dalamud.Game; - -namespace Dalamud.Utility; - -/// <summary> -/// Extension methods for the <see cref="ActionKind"/> enum. -/// </summary> -public static class ActionKindExtensions -{ - /// <summary> - /// Converts the id of an ActionKind to the id used in the ActStr sheet redirect. - /// </summary> - /// <param name="actionKind">The ActionKind this id is for.</param> - /// <param name="id">The id.</param> - /// <returns>An id that can be used in the ActStr sheet redirect.</returns> - public static uint GetActStrId(this ActionKind actionKind, uint id) - { - // See "83 F9 0D 76 0B" - var idx = (uint)actionKind; - - if (idx is <= 13 or 19 or 20) - return id + (1000000 * idx); - - return 0; - } -} diff --git a/Dalamud/Utility/Api15ToDoAttribute.cs b/Dalamud/Utility/Api11ToDoAttribute.cs similarity index 59% rename from Dalamud/Utility/Api15ToDoAttribute.cs rename to Dalamud/Utility/Api11ToDoAttribute.cs index 646c260e8..0336120ba 100644 --- a/Dalamud/Utility/Api15ToDoAttribute.cs +++ b/Dalamud/Utility/Api11ToDoAttribute.cs @@ -1,11 +1,10 @@ namespace Dalamud.Utility; /// <summary> -/// Utility class for marking something to be changed for API 13, for ease of lookup. -/// Intended to represent not the upcoming API, but the one after it for more major changes. +/// Utility class for marking something to be changed for API 11, for ease of lookup. /// </summary> [AttributeUsage(AttributeTargets.All, Inherited = false)] -internal sealed class Api15ToDoAttribute : Attribute +internal sealed class Api11ToDoAttribute : Attribute { /// <summary> /// Marks that this should be made internal. @@ -13,11 +12,11 @@ internal sealed class Api15ToDoAttribute : Attribute public const string MakeInternal = "Make internal."; /// <summary> - /// Initializes a new instance of the <see cref="Api15ToDoAttribute"/> class. + /// Initializes a new instance of the <see cref="Api11ToDoAttribute"/> class. /// </summary> /// <param name="what">The explanation.</param> /// <param name="what2">The explanation 2.</param> - public Api15ToDoAttribute(string what, string what2 = "") + public Api11ToDoAttribute(string what, string what2 = "") { _ = what; _ = what2; diff --git a/Dalamud/Utility/ArrayExtensions.cs b/Dalamud/Utility/ArrayExtensions.cs index 5444468c6..5b6ce2332 100644 --- a/Dalamud/Utility/ArrayExtensions.cs +++ b/Dalamud/Utility/ArrayExtensions.cs @@ -115,7 +115,8 @@ internal static class ArrayExtensions if (count < 0 || startIndex > list.Count - count) throw new ArgumentOutOfRangeException(nameof(count), count, null); - ArgumentNullException.ThrowIfNull(match); + if (match == null) + throw new ArgumentNullException(nameof(match)); var endIndex = startIndex + count; for (var i = startIndex; i < endIndex; i++) @@ -137,7 +138,8 @@ internal static class ArrayExtensions /// <inheritdoc cref="List{T}.FindLastIndex(int,int,System.Predicate{T})"/> public static int FindLastIndex<T>(this IReadOnlyList<T> list, int startIndex, int count, Predicate<T> match) { - ArgumentNullException.ThrowIfNull(match); + if (match == null) + throw new ArgumentNullException(nameof(match)); if (list.Count == 0) { diff --git a/Dalamud/Utility/CStringExtensions.cs b/Dalamud/Utility/CStringExtensions.cs deleted file mode 100644 index 83ebb186f..000000000 --- a/Dalamud/Utility/CStringExtensions.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Dalamud.Game.Text.SeStringHandling; - -using InteropGenerator.Runtime; - -using Lumina.Text.ReadOnly; - -namespace Dalamud.Utility; - -/// <summary> -/// A set of helpful utilities for working with <see cref="CStringPointer"/>s from ClientStructs. -/// </summary> -/// <remarks> -/// WARNING: Will break if a custom ClientStructs is used. These are here for CONVENIENCE ONLY!. -/// </remarks> -public static class CStringExtensions -{ - /// <summary> - /// Convert a CStringPointer to a ReadOnlySeStringSpan. - /// </summary> - /// <param name="ptr">The pointer to convert.</param> - /// <returns>A span.</returns> - public static ReadOnlySeStringSpan AsReadOnlySeStringSpan(this CStringPointer ptr) - { - return ptr.AsSpan(); - } - - /// <summary> - /// Convert a CStringPointer to a Dalamud SeString. - /// </summary> - /// <param name="ptr">The pointer to convert.</param> - /// <returns>A Dalamud-flavored SeString.</returns> - public static SeString AsDalamudSeString(this CStringPointer ptr) - { - return ptr.AsReadOnlySeStringSpan().ToDalamudString(); - } - - /// <summary> - /// Get a new ReadOnlySeString that's a <em>copy</em> of the text in this CStringPointer. - /// </summary> - /// <remarks> - /// This should be functionally identical to <see cref="AsReadOnlySeStringSpan"/>, but exists - /// for convenience in places that already expect ReadOnlySeString as a type (and where a copy is desired). - /// </remarks> - /// <param name="ptr">The pointer to copy.</param> - /// <returns>A new Lumina ReadOnlySeString.</returns> - public static ReadOnlySeString AsReadOnlySeString(this CStringPointer ptr) - { - return new ReadOnlySeString(ptr.AsSpan().ToArray()); - } - - /// <summary> - /// Extract text from this CStringPointer following <see cref="ReadOnlySeStringSpan.ExtractText()"/>'s rules. Only - /// useful for SeStrings. - /// </summary> - /// <param name="ptr">The CStringPointer to process.</param> - /// <returns>Extracted text.</returns> - public static string ExtractText(this CStringPointer ptr) - { - return ptr.AsReadOnlySeStringSpan().ExtractText(); - } -} diff --git a/Dalamud/Utility/ClientLanguageExtensions.cs b/Dalamud/Utility/ClientLanguageExtensions.cs index 47f0a2082..69c39c9b8 100644 --- a/Dalamud/Utility/ClientLanguageExtensions.cs +++ b/Dalamud/Utility/ClientLanguageExtensions.cs @@ -23,40 +23,4 @@ public static class ClientLanguageExtensions _ => throw new ArgumentOutOfRangeException(nameof(language)), }; } - - /// <summary> - /// Gets the language code from a ClientLanguage. - /// </summary> - /// <param name="value">The ClientLanguage to convert.</param> - /// <returns>The language code (ja, en, de, fr).</returns> - /// <exception cref="ArgumentOutOfRangeException">An exception that is thrown when no valid ClientLanguage was given.</exception> - public static string ToCode(this ClientLanguage value) - { - return value switch - { - ClientLanguage.Japanese => "ja", - ClientLanguage.English => "en", - ClientLanguage.German => "de", - ClientLanguage.French => "fr", - _ => throw new ArgumentOutOfRangeException(nameof(value)), - }; - } - - /// <summary> - /// Gets the ClientLanguage from a language code. - /// </summary> - /// <param name="value">The language code to convert (ja, en, de, fr).</param> - /// <returns>The ClientLanguage.</returns> - /// <exception cref="ArgumentOutOfRangeException">An exception that is thrown when no valid language code was given.</exception> - public static ClientLanguage ToClientLanguage(this string value) - { - return value switch - { - "ja" => ClientLanguage.Japanese, - "en" => ClientLanguage.English, - "de" => ClientLanguage.German, - "fr" => ClientLanguage.French, - _ => throw new ArgumentOutOfRangeException(nameof(value)), - }; - } } diff --git a/Dalamud/Utility/ClipboardFormats.cs b/Dalamud/Utility/ClipboardFormats.cs deleted file mode 100644 index b80e05dd3..000000000 --- a/Dalamud/Utility/ClipboardFormats.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Runtime.InteropServices; - -using TerraFX.Interop.Windows; - -using static TerraFX.Interop.Windows.Windows; - -namespace Dalamud.Utility; - -/// <summary>Clipboard formats, looked up by their names.</summary> -internal static class ClipboardFormats -{ - /// <inheritdoc cref="CFSTR.CFSTR_FILECONTENTS"/> - public static uint FileContents { get; } = ClipboardFormatFromName(CFSTR.CFSTR_FILECONTENTS); - - /// <summary>Gets the clipboard format corresponding to the PNG file format.</summary> - public static uint Png { get; } = ClipboardFormatFromName("PNG"); - - /// <inheritdoc cref="CFSTR.CFSTR_FILEDESCRIPTORW"/> - public static uint FileDescriptorW { get; } = ClipboardFormatFromName(CFSTR.CFSTR_FILEDESCRIPTORW); - - /// <inheritdoc cref="CFSTR.CFSTR_FILEDESCRIPTORA"/> - public static uint FileDescriptorA { get; } = ClipboardFormatFromName(CFSTR.CFSTR_FILEDESCRIPTORA); - - /// <inheritdoc cref="CFSTR.CFSTR_FILENAMEW"/> - public static uint FileNameW { get; } = ClipboardFormatFromName(CFSTR.CFSTR_FILENAMEW); - - /// <inheritdoc cref="CFSTR.CFSTR_FILENAMEA"/> - public static uint FileNameA { get; } = ClipboardFormatFromName(CFSTR.CFSTR_FILENAMEA); - - private static unsafe uint ClipboardFormatFromName(ReadOnlySpan<char> name) - { - uint cf; - fixed (char* p = name) - cf = RegisterClipboardFormatW(p); - if (cf != 0) - return cf; - throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) ?? - new InvalidOperationException($"RegisterClipboardFormatW({name}) failed."); - } -} diff --git a/Dalamud/Utility/CultureFixes.cs b/Dalamud/Utility/CultureFixes.cs deleted file mode 100644 index f37844206..000000000 --- a/Dalamud/Utility/CultureFixes.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System.Globalization; - -namespace Dalamud.Utility; - -/// <summary> -/// Class containing fixes for culture-specific issues. -/// </summary> -internal static class CultureFixes -{ - /// <summary> - /// Apply all fixes. - /// </summary> - public static void Apply() - { - PatchFrenchNumberSeparator(); - } - - private static void PatchFrenchNumberSeparator() - { - // Reset formatting specifier for the "digit grouping symbol" to an empty string - // for cultures that use a narrow no-break space (U+202F). - // This glyph is not present in any game fonts and not in the range for our Noto - // so it will be rendered as a geta (=) instead. That's a hack, but it works and - // doesn't look as weird. - static CultureInfo PatchCulture(CultureInfo info) - { - var newCulture = (CultureInfo)info.Clone(); - - const string invalidGroupSeparator = "\u202F"; - const string replacedGroupSeparator = " "; - - if (info.NumberFormat.NumberGroupSeparator == invalidGroupSeparator) - newCulture.NumberFormat.NumberGroupSeparator = replacedGroupSeparator; - - if (info.NumberFormat.NumberDecimalSeparator == invalidGroupSeparator) - newCulture.NumberFormat.NumberDecimalSeparator = replacedGroupSeparator; - - if (info.NumberFormat.CurrencyGroupSeparator == invalidGroupSeparator) - newCulture.NumberFormat.CurrencyGroupSeparator = replacedGroupSeparator; - - if (info.NumberFormat.CurrencyDecimalSeparator == invalidGroupSeparator) - newCulture.NumberFormat.CurrencyDecimalSeparator = replacedGroupSeparator; - - return newCulture; - } - - CultureInfo.CurrentCulture = PatchCulture(CultureInfo.CurrentCulture); - CultureInfo.CurrentUICulture = PatchCulture(CultureInfo.CurrentUICulture); - CultureInfo.DefaultThreadCurrentCulture = CultureInfo.CurrentCulture; - CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.CurrentUICulture; - } -} diff --git a/Dalamud/Utility/DateTimeSpanExtensions.cs b/Dalamud/Utility/DateTimeSpanExtensions.cs index d60b17924..3cf8975af 100644 --- a/Dalamud/Utility/DateTimeSpanExtensions.cs +++ b/Dalamud/Utility/DateTimeSpanExtensions.cs @@ -100,7 +100,7 @@ public static class DateTimeSpanExtensions private sealed class ParsedRelativeFormatStrings { - private readonly List<(float MinSeconds, string FormatString)> formatStrings = []; + private readonly List<(float MinSeconds, string FormatString)> formatStrings = new(); public ParsedRelativeFormatStrings(string value) { diff --git a/Dalamud/Utility/DiagnosticUtil.cs b/Dalamud/Utility/DiagnosticUtil.cs deleted file mode 100644 index d853a2668..000000000 --- a/Dalamud/Utility/DiagnosticUtil.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System.Diagnostics; -using System.Linq; - -namespace Dalamud.Utility; - -/// <summary> -/// A set of utilities for diagnostics. -/// </summary> -public static class DiagnosticUtil -{ - private static readonly string[] IgnoredNamespaces = [ - nameof(System), - ]; - - /// <summary> - /// Gets a stack trace that filters out irrelevant frames. - /// </summary> - /// <param name="source">The source stacktrace to filter.</param> - /// <returns>Returns a stack trace with "extra" frames removed.</returns> - public static StackTrace GetUsefulTrace(StackTrace source) - { - var frames = source.GetFrames().SkipWhile( - f => - { - var frameNs = f.GetMethod()?.DeclaringType?.Namespace; - return frameNs == null || IgnoredNamespaces.Any(i => frameNs.StartsWith(i, true, null)); - }); - - return new StackTrace(frames); - } -} diff --git a/Dalamud/Utility/DisposeSafety.cs b/Dalamud/Utility/DisposeSafety.cs index ac7ed07d7..64d31048f 100644 --- a/Dalamud/Utility/DisposeSafety.cs +++ b/Dalamud/Utility/DisposeSafety.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reactive.Disposables; @@ -92,7 +92,7 @@ public static class DisposeSafety new AggregateException( new[] { e }.Concat( (IEnumerable<Exception>)r.Exception?.InnerExceptions - ?? [new OperationCanceledException()]))); + ?? new[] { new OperationCanceledException() }))); } } @@ -125,7 +125,7 @@ public static class DisposeSafety } catch (Exception de) { - exceptions ??= []; + exceptions ??= new(); exceptions.Add(de); } } @@ -140,7 +140,7 @@ public static class DisposeSafety /// </summary> public class ScopedFinalizer : IDisposeCallback, IAsyncDisposable { - private readonly List<object> objects = []; + private readonly List<object> objects = new(); /// <inheritdoc/> public event Action<IDisposeCallback>? BeforeDispose; @@ -338,7 +338,7 @@ public static class DisposeSafety } catch (Exception ex) { - exceptions ??= []; + exceptions ??= new(); exceptions.Add(ex); } } @@ -402,7 +402,7 @@ public static class DisposeSafety } catch (Exception ex) { - exceptions ??= []; + exceptions ??= new(); exceptions.Add(ex); } } diff --git a/Dalamud/Utility/DynamicPriorityQueueLoader.cs b/Dalamud/Utility/DynamicPriorityQueueLoader.cs index c32858bb4..83fd366bb 100644 --- a/Dalamud/Utility/DynamicPriorityQueueLoader.cs +++ b/Dalamud/Utility/DynamicPriorityQueueLoader.cs @@ -15,7 +15,7 @@ internal class DynamicPriorityQueueLoader : IDisposable private readonly Channel<WorkItem> newItemChannel; private readonly Channel<object?> workTokenChannel; - private readonly List<WorkItem> workItemPending = []; + private readonly List<WorkItem> workItemPending = new(); private bool disposing; diff --git a/Dalamud/Utility/ErrorHandling.cs b/Dalamud/Utility/ErrorHandling.cs deleted file mode 100644 index 3c025a12e..000000000 --- a/Dalamud/Utility/ErrorHandling.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Runtime.InteropServices; - -namespace Dalamud.Utility; - -/// <summary> -/// Utilities for handling errors inside Dalamud. -/// </summary> -internal static partial class ErrorHandling -{ - /// <summary> - /// Crash the game at this point, and show the crash handler with the supplied context. - /// </summary> - /// <param name="context">The context to show in the crash handler.</param> - public static void CrashWithContext(string context) - { - BootVehRaiseExternalEvent(context); - } - - [LibraryImport("Dalamud.Boot.dll", EntryPoint = "BootVehRaiseExternalEventW", StringMarshalling = StringMarshalling.Utf16)] - private static partial void BootVehRaiseExternalEvent(string info); -} diff --git a/Dalamud/Utility/EventHandlerExtensions.cs b/Dalamud/Utility/EventHandlerExtensions.cs index 415937dbf..9bb35a8f1 100644 --- a/Dalamud/Utility/EventHandlerExtensions.cs +++ b/Dalamud/Utility/EventHandlerExtensions.cs @@ -1,10 +1,8 @@ -using System.Collections.Generic; +using System.Linq; using Dalamud.Game; using Dalamud.Game.Gui.ContextMenu; -using Dalamud.Game.Gui.NamePlate; using Dalamud.Plugin.Services; - using Serilog; namespace Dalamud.Utility; @@ -16,29 +14,25 @@ internal static class EventHandlerExtensions { /// <summary> /// Replacement for Invoke() on EventHandlers to catch exceptions that stop event propagation in case - /// of a thrown Exception inside an invocation. + /// of a thrown Exception inside of an invocation. /// </summary> /// <param name="eh">The EventHandler in question.</param> /// <param name="sender">Default sender for Invoke equivalent.</param> /// <param name="e">Default EventArgs for Invoke equivalent.</param> public static void InvokeSafely(this EventHandler? eh, object sender, EventArgs e) { - foreach (var handler in Delegate.EnumerateInvocationList(eh)) + if (eh == null) + return; + + foreach (var handler in eh.GetInvocationList().Cast<EventHandler>()) { - try - { - handler(sender, e); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", handler.Method); - } + HandleInvoke(() => handler(sender, e)); } } /// <summary> /// Replacement for Invoke() on generic EventHandlers to catch exceptions that stop event propagation in case - /// of a thrown Exception inside an invocation. + /// of a thrown Exception inside of an invocation. /// </summary> /// <param name="eh">The EventHandler in question.</param> /// <param name="sender">Default sender for Invoke equivalent.</param> @@ -46,135 +40,104 @@ internal static class EventHandlerExtensions /// <typeparam name="T">Type of EventArgs.</typeparam> public static void InvokeSafely<T>(this EventHandler<T>? eh, object sender, T e) { - foreach (var handler in Delegate.EnumerateInvocationList(eh)) + if (eh == null) + return; + + foreach (var handler in eh.GetInvocationList().Cast<EventHandler<T>>()) { - try - { - handler(sender, e); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", handler.Method); - } + HandleInvoke(() => handler(sender, e)); } } /// <summary> /// Replacement for Invoke() on event Actions to catch exceptions that stop event propagation in case - /// of a thrown Exception inside an invocation. + /// of a thrown Exception inside of an invocation. /// </summary> /// <param name="act">The Action in question.</param> public static void InvokeSafely(this Action? act) { - foreach (var action in Delegate.EnumerateInvocationList(act)) + if (act == null) + return; + + foreach (var action in act.GetInvocationList().Cast<Action>()) { - try - { - action(); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } + HandleInvoke(action); } } - /// <inheritdoc cref="InvokeSafely(Action)"/> + /// <summary> + /// Replacement for Invoke() on event Actions to catch exceptions that stop event propagation in case + /// of a thrown Exception inside of an invocation. + /// </summary> + /// <param name="act">The Action in question.</param> + /// <param name="argument">Templated argument for Action.</param> + /// <typeparam name="T">Type of Action args.</typeparam> public static void InvokeSafely<T>(this Action<T>? act, T argument) { - foreach (var action in Delegate.EnumerateInvocationList(act)) - { - try - { - action(argument); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } - } - } + if (act == null) + return; - /// <inheritdoc cref="InvokeSafely(Action)"/> - public static void InvokeSafely<T1, T2>(this Action<T1, T2>? act, T1 arg1, T2 arg2) - { - foreach (var action in Delegate.EnumerateInvocationList(act)) + foreach (var action in act.GetInvocationList().Cast<Action<T>>()) { - try - { - action(arg1, arg2); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } + HandleInvoke(action, argument); } } /// <summary> /// Replacement for Invoke() on OnUpdateDelegate to catch exceptions that stop event propagation in case - /// of a thrown Exception inside an invocation. + /// of a thrown Exception inside of an invocation. /// </summary> /// <param name="updateDelegate">The OnUpdateDelegate in question.</param> /// <param name="framework">Framework to be passed on to OnUpdateDelegate.</param> public static void InvokeSafely(this IFramework.OnUpdateDelegate? updateDelegate, Framework framework) { - foreach (var action in Delegate.EnumerateInvocationList(updateDelegate)) + if (updateDelegate == null) + return; + + foreach (var action in updateDelegate.GetInvocationList().Cast<IFramework.OnUpdateDelegate>()) { - try - { - action(framework); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } + HandleInvoke(() => action(framework)); } } /// <summary> /// Replacement for Invoke() on OnMenuOpenedDelegate to catch exceptions that stop event propagation in case - /// of a thrown Exception inside an invocation. + /// of a thrown Exception inside of an invocation. /// </summary> /// <param name="openedDelegate">The OnMenuOpenedDelegate in question.</param> /// <param name="argument">Templated argument for Action.</param> public static void InvokeSafely(this IContextMenu.OnMenuOpenedDelegate? openedDelegate, MenuOpenedArgs argument) { - foreach (var action in Delegate.EnumerateInvocationList(openedDelegate)) + if (openedDelegate == null) + return; + + foreach (var action in openedDelegate.GetInvocationList().Cast<IContextMenu.OnMenuOpenedDelegate>()) { - try - { - action(argument); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } + HandleInvoke(() => action(argument)); } } - /// <summary> - /// Replacement for Invoke() on OnMenuOpenedDelegate to catch exceptions that stop event propagation in case - /// of a thrown Exception inside an invocation. - /// </summary> - /// <param name="updatedDelegate">The OnMenuOpenedDelegate in question.</param> - /// <param name="context">An object containing information about the pending data update.</param> - /// <param name="handlers>">A list of handlers used for updating nameplate data.</param> - public static void InvokeSafely( - this INamePlateGui.OnPlateUpdateDelegate? updatedDelegate, - INamePlateUpdateContext context, - IReadOnlyList<INamePlateUpdateHandler> handlers) + private static void HandleInvoke(Action act) { - foreach (var action in Delegate.EnumerateInvocationList(updatedDelegate)) + try { - try - { - action(context, handlers); - } - catch (Exception ex) - { - Log.Error(ex, "Exception during raise of {handler}", action.Method); - } + act(); + } + catch (Exception ex) + { + Log.Error(ex, "Exception during raise of {handler}", act.Method); + } + } + + private static void HandleInvoke<T>(Action<T> act, T argument) + { + try + { + act(argument); + } + catch (Exception ex) + { + Log.Error(ex, "Exception during raise of {handler}", act.Method); } } } diff --git a/Dalamud/Utility/FilesystemUtil.cs b/Dalamud/Utility/FilesystemUtil.cs deleted file mode 100644 index f1b62ee21..000000000 --- a/Dalamud/Utility/FilesystemUtil.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System.ComponentModel; -using System.IO; -using System.Text; - -using Windows.Win32.Foundation; -using Windows.Win32.Storage.FileSystem; - -namespace Dalamud.Utility; - -/// <summary> -/// Helper functions for filesystem operations. -/// </summary> -public static class FilesystemUtil -{ - /// <summary> - /// Overwrite text in a file by first writing it to a temporary file, and then - /// moving that file to the path specified. - /// </summary> - /// <param name="path">The path of the file to write to.</param> - /// <param name="text">The text to write.</param> - public static void WriteAllTextSafe(string path, string text) - { - WriteAllTextSafe(path, text, Encoding.UTF8); - } - - /// <summary> - /// Overwrite text in a file by first writing it to a temporary file, and then - /// moving that file to the path specified. - /// </summary> - /// <param name="path">The path of the file to write to.</param> - /// <param name="text">The text to write.</param> - /// <param name="encoding">Encoding to use.</param> - public static void WriteAllTextSafe(string path, string text, Encoding encoding) - { - WriteAllBytesSafe(path, encoding.GetBytes(text)); - } - - /// <summary> - /// Overwrite data in a file by first writing it to a temporary file, and then - /// moving that file to the path specified. - /// </summary> - /// <param name="path">The path of the file to write to.</param> - /// <param name="bytes">The data to write.</param> - public static unsafe void WriteAllBytesSafe(string path, byte[] bytes) - { - ArgumentException.ThrowIfNullOrEmpty(path); - - // Open the temp file - var tempPath = path + ".tmp"; - - var tempFile = Windows.Win32.PInvoke.CreateFile( - tempPath, - (uint)(FILE_ACCESS_RIGHTS.FILE_GENERIC_READ | FILE_ACCESS_RIGHTS.FILE_GENERIC_WRITE), - FILE_SHARE_MODE.FILE_SHARE_NONE, - null, - FILE_CREATION_DISPOSITION.CREATE_ALWAYS, - FILE_FLAGS_AND_ATTRIBUTES.FILE_ATTRIBUTE_NORMAL, - HANDLE.Null); - - if (tempFile.IsNull) - throw new Win32Exception(); - - // Write the data - uint bytesWritten = 0; - fixed (byte* ptr = bytes) - { - if (!Windows.Win32.PInvoke.WriteFile(tempFile, ptr, (uint)bytes.Length, &bytesWritten, null)) - throw new Win32Exception(); - } - - if (bytesWritten != bytes.Length) - { - Windows.Win32.PInvoke.CloseHandle(tempFile); - throw new Exception($"Could not write all bytes to temp file ({bytesWritten} of {bytes.Length})"); - } - - if (!Windows.Win32.PInvoke.FlushFileBuffers(tempFile)) - { - Windows.Win32.PInvoke.CloseHandle(tempFile); - throw new Win32Exception(); - } - - Windows.Win32.PInvoke.CloseHandle(tempFile); - - if (!Windows.Win32.PInvoke.MoveFileEx(tempPath, path, MOVE_FILE_FLAGS.MOVEFILE_REPLACE_EXISTING | MOVE_FILE_FLAGS.MOVEFILE_WRITE_THROUGH)) - throw new Win32Exception(); - } - - /// <summary> - /// Generates a temporary file name. - /// </summary> - /// <returns>A temporary file name that is almost guaranteed to be unique.</returns> - internal static string GetTempFileName() - { - // https://stackoverflow.com/a/50413126 - return Path.Combine(Path.GetTempPath(), "dalamud_" + Guid.NewGuid()); - } - - /// <summary> - /// Copy files recursively from one directory to another. - /// </summary> - /// <param name="source">The source directory.</param> - /// <param name="target">The target directory.</param> - internal static void CopyFilesRecursively(DirectoryInfo source, DirectoryInfo target) - { - foreach (var dir in source.GetDirectories()) - CopyFilesRecursively(dir, target.CreateSubdirectory(dir.Name)); - - foreach (var file in source.GetFiles()) - file.CopyTo(Path.Combine(target.FullName, file.Name)); - } - - /// <summary> - /// Delete and recreate a directory. - /// </summary> - /// <param name="dir">The directory to delete and recreate.</param> - internal static void DeleteAndRecreateDirectory(DirectoryInfo dir) - { - if (dir.Exists) - { - dir.Delete(true); - } - - dir.Create(); - } -} diff --git a/Dalamud/Utility/FuzzyMatcher.cs b/Dalamud/Utility/FuzzyMatcher.cs index d8b881300..03723da89 100644 --- a/Dalamud/Utility/FuzzyMatcher.cs +++ b/Dalamud/Utility/FuzzyMatcher.cs @@ -1,4 +1,4 @@ -#define BORDER_MATCHING +#define BORDER_MATCHING using System.Collections.Generic; using System.Runtime.CompilerServices; @@ -32,12 +32,18 @@ internal readonly ref struct FuzzyMatcher this.needleFinalPosition = this.needleSpan.Length - 1; this.mode = matchMode; - this.needleSegments = matchMode switch + switch (matchMode) { - MatchMode.FuzzyParts => FindNeedleSegments(this.needleSpan), - MatchMode.Fuzzy or MatchMode.Simple => EmptySegArray, - _ => throw new ArgumentOutOfRangeException(nameof(matchMode), matchMode, null), - }; + case MatchMode.FuzzyParts: + this.needleSegments = FindNeedleSegments(this.needleSpan); + break; + case MatchMode.Fuzzy: + case MatchMode.Simple: + this.needleSegments = EmptySegArray; + break; + default: + throw new ArgumentOutOfRangeException(nameof(matchMode), matchMode, null); + } } private static (int Start, int End)[] FindNeedleSegments(ReadOnlySpan<char> span) diff --git a/Dalamud/Utility/Hash.cs b/Dalamud/Utility/Hash.cs index 952c2305f..08fc78901 100644 --- a/Dalamud/Utility/Hash.cs +++ b/Dalamud/Utility/Hash.cs @@ -1,4 +1,4 @@ -using System.Security.Cryptography; +using System.Security.Cryptography; namespace Dalamud.Utility; @@ -24,9 +24,10 @@ public static class Hash /// <returns>The computed hash.</returns> internal static string GetSha256Hash(byte[] buffer) { - var hash = SHA256.HashData(buffer); + using var sha = SHA256.Create(); + var hash = sha.ComputeHash(buffer); return ByteArrayToString(hash); } - private static string ByteArrayToString(byte[] ba) => Convert.ToHexString(ba); + private static string ByteArrayToString(byte[] ba) => BitConverter.ToString(ba).Replace("-", string.Empty); } diff --git a/Dalamud/Utility/Internal/LazyLoc.cs b/Dalamud/Utility/Internal/LazyLoc.cs deleted file mode 100644 index 08ea6bd95..000000000 --- a/Dalamud/Utility/Internal/LazyLoc.cs +++ /dev/null @@ -1,31 +0,0 @@ -using CheapLoc; - -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Utility.Internal; - -/// <summary> -/// Represents a lazily localized string, consisting of a localization key and a fallback value. -/// </summary> -/// <param name="Key">The localization key used to retrieve the localized value.</param> -/// <param name="Fallback">The fallback text to use if the localization key is not found.</param> -internal readonly record struct LazyLoc(string Key, string Fallback) -{ - public static implicit operator ImU8String(LazyLoc locRef) - => new(locRef.ToString()); - - /// <summary> - /// Creates a new instance of <see cref="LazyLoc"/> with the specified localization key and fallback text. - /// </summary> - /// <param name="key">The localization key used to retrieve the localized value.</param> - /// <param name="fallback">The fallback text to use if the localization key is not found.</param> - /// <returns>A <see cref="LazyLoc"/> instance representing the localized value.</returns> - public static LazyLoc Localize(string key, string fallback) - => new(key, fallback); - - /// <inheritdoc/> - public override string ToString() - { - return Loc.Localize(this.Key, this.Fallback); - } -} diff --git a/Dalamud/Utility/ItemUtil.cs b/Dalamud/Utility/ItemUtil.cs deleted file mode 100644 index 8ee465486..000000000 --- a/Dalamud/Utility/ItemUtil.cs +++ /dev/null @@ -1,184 +0,0 @@ -using System.Runtime.CompilerServices; - -using Dalamud.Data; -using Dalamud.Game; -using Dalamud.Game.Text; - -using Lumina.Excel.Sheets; -using Lumina.Text.ReadOnly; - -namespace Dalamud.Utility; - -/// <summary> -/// Kinds of items that can be fetched from this payload. -/// </summary> -public enum ItemKind : uint -{ - /// <summary> - /// Normal items. - /// </summary> - Normal, - - /// <summary> - /// Collectible Items. - /// </summary> - Collectible = 500_000, - - /// <summary> - /// High-Quality items. - /// </summary> - Hq = 1_000_000, - - /// <summary> - /// Event/Key items. - /// </summary> - EventItem = 2_000_000, -} - -/// <summary> -/// Utilities related to Items. -/// </summary> -public static class ItemUtil -{ - private static int? eventItemRowCount; - - /// <summary>Converts raw item ID to item ID with its classification.</summary> - /// <param name="rawItemId">Raw item ID.</param> - /// <returns>Item ID and its classification.</returns> - public static (uint ItemId, ItemKind Kind) GetBaseId(uint rawItemId) - { - if (IsEventItem(rawItemId)) return (rawItemId, ItemKind.EventItem); // EventItem IDs are NOT adjusted - if (IsHighQuality(rawItemId)) return (rawItemId - 1_000_000, ItemKind.Hq); - if (IsCollectible(rawItemId)) return (rawItemId - 500_000, ItemKind.Collectible); - return (rawItemId, ItemKind.Normal); - } - - /// <summary>Converts item ID with its classification to raw item ID.</summary> - /// <param name="itemId">Item ID.</param> - /// <param name="kind">Item classification.</param> - /// <returns>Raw Item ID.</returns> - public static uint GetRawId(uint itemId, ItemKind kind) - { - return kind switch - { - ItemKind.Collectible when itemId < 500_000 => itemId + 500_000, - ItemKind.Hq when itemId < 1_000_000 => itemId + 1_000_000, - ItemKind.EventItem => itemId, // EventItem IDs are not adjusted - _ => itemId, - }; - } - - /// <summary> - /// Checks if the item id belongs to a normal item. - /// </summary> - /// <param name="itemId">The item id to check.</param> - /// <returns><c>true</c> when the item id belongs to a normal item.</returns> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool IsNormalItem(uint itemId) - { - return itemId < 500_000; - } - - /// <summary> - /// Checks if the item id belongs to a collectible item. - /// </summary> - /// <param name="itemId">The item id to check.</param> - /// <returns><c>true</c> when the item id belongs to a collectible item.</returns> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool IsCollectible(uint itemId) - { - return itemId is >= 500_000 and < 1_000_000; - } - - /// <summary> - /// Checks if the item id belongs to a high quality item. - /// </summary> - /// <param name="itemId">The item id to check.</param> - /// <returns><c>true</c> when the item id belongs to a high quality item.</returns> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool IsHighQuality(uint itemId) - { - return itemId is >= 1_000_000 and < 2_000_000; - } - - /// <summary> - /// Checks if the item id belongs to an event item. - /// </summary> - /// <param name="itemId">The item id to check.</param> - /// <returns><c>true</c> when the item id belongs to an event item.</returns> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool IsEventItem(uint itemId) - { - return itemId >= 2_000_000 && itemId - 2_000_000 < (eventItemRowCount ??= Service<DataManager>.Get().GetExcelSheet<EventItem>().Count); - } - - /// <summary> - /// Gets the name of an item. - /// </summary> - /// <param name="itemId">The raw item id.</param> - /// <param name="includeIcon">Whether to include the High Quality or Collectible icon.</param> - /// <param name="language">An optional client language override.</param> - /// <returns>The item name.</returns> - public static ReadOnlySeString GetItemName(uint itemId, bool includeIcon = true, ClientLanguage? language = null) - { - var dataManager = Service<DataManager>.Get(); - - if (IsEventItem(itemId)) - { - // Only English, German, and French have a Name field. - // For other languages, the Name is an empty string, and the Singular field should be used instead. - language ??= dataManager.Language; - var useSingular = language is not (ClientLanguage.English or ClientLanguage.German or ClientLanguage.French); - - return dataManager - .GetExcelSheet<EventItem>(language) - .TryGetRow(itemId, out var eventItem) - ? (useSingular ? eventItem.Singular : eventItem.Name) - : default; - } - - var (baseId, kind) = GetBaseId(itemId); - - if (!dataManager - .GetExcelSheet<Item>(language) - .TryGetRow(baseId, out var item)) - { - return default; - } - - if (!includeIcon || kind is not (ItemKind.Hq or ItemKind.Collectible)) - return item.Name; - - using var rssb = new RentedSeStringBuilder(); - - rssb.Builder.Append(item.Name); - - switch (kind) - { - case ItemKind.Hq: - rssb.Builder.Append($" {(char)SeIconChar.HighQuality}"); - break; - case ItemKind.Collectible: - rssb.Builder.Append($" {(char)SeIconChar.Collectible}"); - break; - } - - return rssb.Builder.ToReadOnlySeString(); - } - - /// <summary> - /// Gets the color row id for an item name. - /// </summary> - /// <param name="itemId">The raw item Id.</param> - /// <param name="isEdgeColor">Wheather this color is used as edge color.</param> - /// <returns>The Color row id.</returns> - public static uint GetItemRarityColorType(uint itemId, bool isEdgeColor = false) - { - var rarity = 1u; - - if (!IsEventItem(itemId) && Service<DataManager>.Get().GetExcelSheet<Item>().TryGetRow(GetBaseId(itemId).ItemId, out var item)) - rarity = item.Rarity; - - return (isEdgeColor ? 548u : 547u) + (rarity * 2u); - } -} diff --git a/Dalamud/Utility/ObjectKindExtensions.cs b/Dalamud/Utility/ObjectKindExtensions.cs deleted file mode 100644 index 5d42dc760..000000000 --- a/Dalamud/Utility/ObjectKindExtensions.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Dalamud.Game.ClientState.Objects.Enums; - -namespace Dalamud.Utility; - -/// <summary> -/// Extension methods for the <see cref="ObjectKind"/> enum. -/// </summary> -public static class ObjectKindExtensions -{ - /// <summary> - /// Converts the id of an ObjectKind to the id used in the ObjStr sheet redirect. - /// </summary> - /// <param name="objectKind">The ObjectKind this id is for.</param> - /// <param name="id">The id.</param> - /// <returns>An id that can be used in the ObjStr sheet redirect.</returns> - public static uint GetObjStrId(this ObjectKind objectKind, uint id) - { - // See "8D 41 FE 83 F8 0C 77 4D" - return objectKind switch - { - ObjectKind.BattleNpc => id < 1000000 ? id : id - 900000, - ObjectKind.EventNpc => id, - ObjectKind.Treasure or - ObjectKind.Aetheryte or - ObjectKind.GatheringPoint or - ObjectKind.Companion or - ObjectKind.Housing => id + (1000000 * (uint)objectKind) - 2000000, - ObjectKind.EventObj => id + (1000000 * (uint)objectKind) - 4000000, - ObjectKind.CardStand => id + 3000000, - _ => 0, - }; - } -} diff --git a/Dalamud/Utility/RentedSeStringBuilder.cs b/Dalamud/Utility/RentedSeStringBuilder.cs deleted file mode 100644 index 93a45d967..000000000 --- a/Dalamud/Utility/RentedSeStringBuilder.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Lumina.Text; - -namespace Dalamud.Utility; - -/// <summary> -/// Provides a temporarily rented <see cref="SeStringBuilder"/> from a shared pool. -/// </summary> -public readonly struct RentedSeStringBuilder() : IDisposable -{ - /// <summary> - /// Gets the rented <see cref="SeStringBuilder"/> value from the shared pool. - /// </summary> - public SeStringBuilder Builder { get; } = SeStringBuilder.SharedPool.Get(); - - /// <summary> - /// Returns the rented <see cref="SeStringBuilder"/> to the shared pool. - /// </summary> - public void Dispose() => SeStringBuilder.SharedPool.Return(this.Builder); -} diff --git a/Dalamud/Utility/RollingList.cs b/Dalamud/Utility/RollingList.cs index 896b74fbf..0f1553bf9 100644 --- a/Dalamud/Utility/RollingList.cs +++ b/Dalamud/Utility/RollingList.cs @@ -40,7 +40,7 @@ namespace Dalamud.Utility { ThrowHelper.ThrowArgumentOutOfRangeExceptionIfLessThan(nameof(size), size, 0); this.size = size; - this.items = []; + this.items = new(); } /// <summary>Initializes a new instance of the <see cref="RollingList{T}"/> class.</summary> diff --git a/Dalamud/Utility/SeStringExtensions.cs b/Dalamud/Utility/SeStringExtensions.cs index 9de116f26..34ebb1450 100644 --- a/Dalamud/Utility/SeStringExtensions.cs +++ b/Dalamud/Utility/SeStringExtensions.cs @@ -20,7 +20,6 @@ public static class SeStringExtensions /// </summary> /// <param name="originalString">The original Lumina SeString.</param> /// <returns>The re-parsed Dalamud SeString.</returns> - [Obsolete("Switch to using ReadOnlySeString instead of Lumina's SeString.", true)] public static DSeString ToDalamudString(this LSeString originalString) => DSeString.Parse(originalString.RawData); /// <summary> @@ -39,15 +38,35 @@ public static class SeStringExtensions /// <returns>The re-parsed Dalamud SeString.</returns> public static DSeString ToDalamudString(this ReadOnlySeStringSpan originalString) => DSeString.Parse(originalString.Data); + /// <summary>Compiles and appends a macro string.</summary> + /// <param name="ssb">Target SeString builder.</param> + /// <param name="macroString">Macro string in UTF-8 to compile and append to <paramref name="ssb"/>.</param> + /// <returns><c>this</c> for method chaining.</returns> + [Obsolete($"Use {nameof(LSeStringBuilder)}.{nameof(LSeStringBuilder.AppendMacroString)} directly instead.", true)] + [Api11ToDo("Remove")] + public static LSeStringBuilder AppendMacroString(this LSeStringBuilder ssb, ReadOnlySpan<byte> macroString) => + ssb.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError }); + + /// <summary>Compiles and appends a macro string.</summary> + /// <param name="ssb">Target SeString builder.</param> + /// <param name="macroString">Macro string in UTF-16 to compile and append to <paramref name="ssb"/>.</param> + /// <returns><c>this</c> for method chaining.</returns> + [Obsolete($"Use {nameof(LSeStringBuilder)}.{nameof(LSeStringBuilder.AppendMacroString)} directly instead.", true)] + [Api11ToDo("Remove")] + public static LSeStringBuilder AppendMacroString(this LSeStringBuilder ssb, ReadOnlySpan<char> macroString) => + ssb.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError }); + /// <summary>Compiles and appends a macro string.</summary> /// <param name="ssb">Target SeString builder.</param> /// <param name="macroString">Macro string in UTF-8 to compile and append to <paramref name="ssb"/>.</param> /// <returns><c>this</c> for method chaining.</returns> public static DSeStringBuilder AppendMacroString(this DSeStringBuilder ssb, ReadOnlySpan<byte> macroString) { - using var rssb = new RentedSeStringBuilder(); - rssb.Builder.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError }); - return ssb.Append(DSeString.Parse(rssb.Builder.ToReadOnlySeString().Data.Span)); + var lssb = LSeStringBuilder.SharedPool.Get(); + lssb.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError }); + ssb.Append(DSeString.Parse(lssb.ToReadOnlySeString().Data.Span)); + LSeStringBuilder.SharedPool.Return(lssb); + return ssb; } /// <summary>Compiles and appends a macro string.</summary> @@ -56,9 +75,11 @@ public static class SeStringExtensions /// <returns><c>this</c> for method chaining.</returns> public static DSeStringBuilder AppendMacroString(this DSeStringBuilder ssb, ReadOnlySpan<char> macroString) { - using var rssb = new RentedSeStringBuilder(); - rssb.Builder.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError }); - return ssb.Append(DSeString.Parse(rssb.Builder.ToReadOnlySeString().Data.Span)); + var lssb = LSeStringBuilder.SharedPool.Get(); + lssb.AppendMacroString(macroString, new() { ExceptionMode = MacroStringParseExceptionMode.EmbedError }); + ssb.Append(DSeString.Parse(lssb.ToReadOnlySeString().Data.Span)); + LSeStringBuilder.SharedPool.Return(lssb); + return ssb; } /// <summary> @@ -71,152 +92,4 @@ public static class SeStringExtensions /// <param name="value">character name to validate.</param> /// <returns>indicator if character is name is valid.</returns> public static bool IsValidCharacterName(this DSeString value) => value.ToString().IsValidCharacterName(); - - /// <summary> - /// Determines whether the <see cref="ReadOnlySeString"/> contains only text payloads. - /// </summary> - /// <param name="ross">The <see cref="ReadOnlySeString"/> to check.</param> - /// <returns><c>true</c> if the string contains only text payloads; otherwise, <c>false</c>.</returns> - public static bool IsTextOnly(this ReadOnlySeString ross) - { - return ross.AsSpan().IsTextOnly(); - } - - /// <summary> - /// Determines whether the <see cref="ReadOnlySeStringSpan"/> contains only text payloads. - /// </summary> - /// <param name="rosss">The <see cref="ReadOnlySeStringSpan"/> to check.</param> - /// <returns><c>true</c> if the span contains only text payloads; otherwise, <c>false</c>.</returns> - public static bool IsTextOnly(this ReadOnlySeStringSpan rosss) - { - foreach (var payload in rosss) - { - if (payload.Type != ReadOnlySePayloadType.Text) - return false; - } - - return true; - } - - /// <summary> - /// Determines whether the <see cref="ReadOnlySeString"/> contains the specified text. - /// </summary> - /// <param name="ross">The <see cref="ReadOnlySeString"/> to search.</param> - /// <param name="needle">The text to find.</param> - /// <returns><c>true</c> if the text is found; otherwise, <c>false</c>.</returns> - public static bool ContainsText(this ReadOnlySeString ross, ReadOnlySpan<byte> needle) - { - return ross.AsSpan().ContainsText(needle); - } - - /// <summary> - /// Determines whether the <see cref="ReadOnlySeStringSpan"/> contains the specified text. - /// </summary> - /// <param name="rosss">The <see cref="ReadOnlySeStringSpan"/> to search.</param> - /// <param name="needle">The text to find.</param> - /// <returns><c>true</c> if the text is found; otherwise, <c>false</c>.</returns> - public static bool ContainsText(this ReadOnlySeStringSpan rosss, ReadOnlySpan<byte> needle) - { - foreach (var payload in rosss) - { - if (payload.Type != ReadOnlySePayloadType.Text) - continue; - - if (payload.Body.IndexOf(needle) != -1) - return true; - } - - return false; - } - - /// <summary> - /// Determines whether the <see cref="LSeStringBuilder"/> contains the specified text. - /// </summary> - /// <param name="builder">The builder to search.</param> - /// <param name="needle">The text to find.</param> - /// <returns><c>true</c> if the text is found; otherwise, <c>false</c>.</returns> - public static bool ContainsText(this LSeStringBuilder builder, ReadOnlySpan<byte> needle) - { - return builder.ToReadOnlySeString().ContainsText(needle); - } - - /// <summary> - /// Replaces occurrences of a specified text in a <see cref="ReadOnlySeString"/> with another text. - /// </summary> - /// <param name="ross">The original string.</param> - /// <param name="toFind">The text to find.</param> - /// <param name="replacement">The replacement text.</param> - /// <returns>A new <see cref="ReadOnlySeString"/> with the replacements made.</returns> - public static ReadOnlySeString ReplaceText( - this ReadOnlySeString ross, - ReadOnlySpan<byte> toFind, - ReadOnlySpan<byte> replacement) - { - if (ross.IsEmpty) - return ross; - - using var rssb = new RentedSeStringBuilder(); - - foreach (var payload in ross) - { - if (payload.Type == ReadOnlySePayloadType.Invalid) - continue; - - if (payload.Type != ReadOnlySePayloadType.Text) - { - rssb.Builder.Append(payload); - continue; - } - - var index = payload.Body.Span.IndexOf(toFind); - if (index == -1) - { - rssb.Builder.Append(payload); - continue; - } - - var lastIndex = 0; - while (index != -1) - { - rssb.Builder.Append(payload.Body.Span[lastIndex..index]); - - if (!replacement.IsEmpty) - { - rssb.Builder.Append(replacement); - } - - lastIndex = index + toFind.Length; - index = payload.Body.Span[lastIndex..].IndexOf(toFind); - - if (index != -1) - index += lastIndex; - } - - rssb.Builder.Append(payload.Body.Span[lastIndex..]); - } - - return rssb.Builder.ToReadOnlySeString(); - } - - /// <summary> - /// Replaces occurrences of a specified text in an <see cref="LSeStringBuilder"/> with another text. - /// </summary> - /// <param name="builder">The builder to modify.</param> - /// <param name="toFind">The text to find.</param> - /// <param name="replacement">The replacement text.</param> - public static void ReplaceText( - this LSeStringBuilder builder, - ReadOnlySpan<byte> toFind, - ReadOnlySpan<byte> replacement) - { - if (toFind.IsEmpty) - return; - - var str = builder.ToReadOnlySeString(); - if (str.IsEmpty) - return; - - var replaced = ReplaceText(new ReadOnlySeString(builder.GetViewAsMemory()), toFind, replacement); - builder.Clear().Append(replaced); - } } diff --git a/Dalamud/Utility/Signatures/NullabilityUtil.cs b/Dalamud/Utility/Signatures/NullabilityUtil.cs index da45db197..da4b24db6 100755 --- a/Dalamud/Utility/Signatures/NullabilityUtil.cs +++ b/Dalamud/Utility/Signatures/NullabilityUtil.cs @@ -14,21 +14,21 @@ internal static class NullabilityUtil /// Check if the provided property is nullable. /// </summary> /// <param name="property">The property to check.</param> - /// <returns>Whether the property is nullable.</returns> + /// <returns>Whether or not the property is nullable.</returns> internal static bool IsNullable(PropertyInfo property) => IsNullableHelper(property.PropertyType, property.DeclaringType, property.CustomAttributes); /// <summary> /// Check if the provided field is nullable. /// </summary> /// <param name="field">The field to check.</param> - /// <returns>Whether the field is nullable.</returns> + /// <returns>Whether or not the field is nullable.</returns> internal static bool IsNullable(FieldInfo field) => IsNullableHelper(field.FieldType, field.DeclaringType, field.CustomAttributes); /// <summary> /// Check if the provided parameter is nullable. /// </summary> /// <param name="parameter">The parameter to check.</param> - /// <returns>Whether the parameter is nullable.</returns> + /// <returns>Whether or not the parameter is nullable.</returns> internal static bool IsNullable(ParameterInfo parameter) => IsNullableHelper(parameter.ParameterType, parameter.Member, parameter.CustomAttributes); private static bool IsNullableHelper(Type memberType, MemberInfo? declaringType, IEnumerable<CustomAttributeData> customAttributes) diff --git a/Dalamud/Utility/Signatures/SignatureHelper.cs b/Dalamud/Utility/Signatures/SignatureHelper.cs index e1a4dafc2..cdf601852 100755 --- a/Dalamud/Utility/Signatures/SignatureHelper.cs +++ b/Dalamud/Utility/Signatures/SignatureHelper.cs @@ -5,8 +5,8 @@ using System.Runtime.InteropServices; using Dalamud.Game; using Dalamud.Hooking; +using Dalamud.Logging; using Dalamud.Utility.Signatures.Wrappers; - using Serilog; namespace Dalamud.Utility.Signatures; @@ -72,8 +72,9 @@ internal static class SignatureHelper } } + IntPtr ptr; var success = sig.ScanType == ScanType.Text - ? scanner.TryScanText(sig.Signature, out var ptr) + ? scanner.TryScanText(sig.Signature, out ptr) : scanner.TryGetStaticAddressFromSig(sig.Signature, out ptr); if (!success) { @@ -158,7 +159,7 @@ internal static class SignatureHelper continue; } - var hook = creator.Invoke(null, [ptr, detour, false]) as IDalamudHook; + var hook = creator.Invoke(null, new object?[] { ptr, detour, false }) as IDalamudHook; info.SetValue(self, hook); createdHooks.Add(hook); diff --git a/Dalamud/Utility/Signatures/Wrappers/IFieldOrPropertyInfo.cs b/Dalamud/Utility/Signatures/Wrappers/IFieldOrPropertyInfo.cs index a660164c1..76e32da28 100755 --- a/Dalamud/Utility/Signatures/Wrappers/IFieldOrPropertyInfo.cs +++ b/Dalamud/Utility/Signatures/Wrappers/IFieldOrPropertyInfo.cs @@ -16,7 +16,7 @@ internal interface IFieldOrPropertyInfo Type ActualType { get; } /// <summary> - /// Gets a value indicating whether the field or property is nullable. + /// Gets a value indicating whether or not the field or property is nullable. /// </summary> bool IsNullable { get; } diff --git a/Dalamud/Utility/StringExtensions.cs b/Dalamud/Utility/StringExtensions.cs index 7f9975f82..24aa48446 100644 --- a/Dalamud/Utility/StringExtensions.cs +++ b/Dalamud/Utility/StringExtensions.cs @@ -1,8 +1,4 @@ using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; - -using Dalamud.Game; using FFXIVClientStructs.FFXIV.Client.UI; @@ -13,9 +9,6 @@ namespace Dalamud.Utility; /// </summary> public static class StringExtensions { - private static readonly string[] CommonExcludedWords = ["sas", "zos", "van", "nan", "tol", "deus", "mal", "de", "rem", "out", "yae", "bas", "cen", "quo", "viator", "la"]; - private static readonly string[] EnglishExcludedWords = ["of", "the", "to", "and", "a", "an", "or", "at", "by", "for", "in", "on", "with", "from", .. CommonExcludedWords]; - /// <summary> /// An extension method to chain usage of string.Format. /// </summary> @@ -50,172 +43,4 @@ public static class StringExtensions if (!UIGlobals.IsValidPlayerCharacterName(value)) return false; return includeLegacy || value.Length <= 21; } - - /// <summary> - /// Converts the first character of the string to uppercase while leaving the rest of the string unchanged. - /// </summary> - /// <param name="input">The input string.</param> - /// <param name="culture"><inheritdoc cref="string.ToLower(CultureInfo)" path="/param[@name='cultureInfo']"/></param> - /// <returns>A new string with the first character converted to uppercase.</returns> - [return: NotNullIfNotNull(nameof(input))] - public static string? FirstCharToUpper(this string? input, CultureInfo? culture = null) => - string.IsNullOrWhiteSpace(input) - ? input - : $"{char.ToUpper(input[0], culture ?? CultureInfo.CurrentCulture)}{input.AsSpan(1)}"; - - /// <summary> - /// Converts the first character of the string to lowercase while leaving the rest of the string unchanged. - /// </summary> - /// <param name="input">The input string.</param> - /// <param name="culture"><inheritdoc cref="string.ToLower(CultureInfo)" path="/param[@name='cultureInfo']"/></param> - /// <returns>A new string with the first character converted to lowercase.</returns> - [return: NotNullIfNotNull(nameof(input))] - public static string? FirstCharToLower(this string? input, CultureInfo? culture = null) => - string.IsNullOrWhiteSpace(input) - ? input - : $"{char.ToLower(input[0], culture ?? CultureInfo.CurrentCulture)}{input.AsSpan(1)}"; - - /// <summary> - /// Removes soft hyphen characters (U+00AD) from the input string. - /// </summary> - /// <param name="input">The input string to remove soft hyphen characters from.</param> - /// <returns>A string with all soft hyphens removed.</returns> - public static string StripSoftHyphen(this string input) => input.Replace("\u00AD", string.Empty); - - /// <summary> - /// Truncates the given string to the specified maximum number of characters, - /// appending an ellipsis if truncation occurs. - /// </summary> - /// <param name="input">The string to truncate.</param> - /// <param name="maxChars">The maximum allowed length of the string.</param> - /// <param name="ellipses">The string to append if truncation occurs (defaults to "...").</param> - /// <returns>The truncated string, or the original string if no truncation is needed.</returns> - public static string? Truncate(this string input, int maxChars, string ellipses = "...") - { - return string.IsNullOrEmpty(input) || input.Length <= maxChars ? input : input[..maxChars] + ellipses; - } - - /// <summary> - /// Converts the input string to uppercase based on specified options like capitalizing the first character, - /// normalizing vowels, and excluding certain words based on the selected language. - /// </summary> - /// <param name="input">The input string to be converted to uppercase.</param> - /// <param name="firstCharOnly">Whether to capitalize only the first character of the string.</param> - /// <param name="everyWord">Whether to capitalize the first letter of each word.</param> - /// <param name="normalizeVowels">Whether to normalize vowels to uppercase if they appear at the beginning of a word.</param> - /// <param name="language">The language context used to determine which words to exclude from capitalization.</param> - /// <returns>A new string with the appropriate characters converted to uppercase.</returns> - /// <remarks>This is a C# implementation of Client::System::String::Utf8String.ToUpper with word exclusion lists as used by the HeadAll macro.</remarks> - public static string ToUpper(this string input, bool firstCharOnly, bool everyWord, bool normalizeVowels, ClientLanguage language) - { - return ToUpper(input, firstCharOnly, everyWord, normalizeVowels, language switch - { - ClientLanguage.Japanese => [], - ClientLanguage.English => EnglishExcludedWords, - ClientLanguage.German => CommonExcludedWords, - ClientLanguage.French => CommonExcludedWords, - _ => [], - }); - } - - /// <summary> - /// Converts the input string to uppercase based on specified options like capitalizing the first character, - /// normalizing vowels, and excluding certain words based on the selected language. - /// </summary> - /// <param name="input">The input string to be converted to uppercase.</param> - /// <param name="firstCharOnly">Whether to capitalize only the first character of the string.</param> - /// <param name="everyWord">Whether to capitalize the first letter of each word.</param> - /// <param name="normalizeVowels">Whether to normalize vowels to uppercase if they appear at the beginning of a word.</param> - /// <param name="excludedWords">A list of words to exclude from being capitalized. Words in this list will remain lowercase.</param> - /// <returns>A new string with the appropriate characters converted to uppercase.</returns> - /// <remarks>This is a C# implementation of Client::System::String::Utf8String.ToUpper.</remarks> - public static string ToUpper(this string input, bool firstCharOnly, bool everyWord, bool normalizeVowels, ReadOnlySpan<string> excludedWords) - { - if (string.IsNullOrEmpty(input)) - return input; - - var builder = new StringBuilder(input); - var isWordBeginning = true; - var length = firstCharOnly && !everyWord ? 1 : builder.Length; - - for (var i = 0; i < length; i++) - { - var ch = builder[i]; - - if (ch == ' ') - { - isWordBeginning = true; - continue; - } - - if (firstCharOnly && !isWordBeginning) - continue; - - // Basic ASCII a-z - if (ch >= 'a' && ch <= 'z') - { - var substr = builder.ToString(i, builder.Length - i); - var isExcluded = false; - - // Do not exclude words at the beginning - if (i > 0) - { - foreach (var excludedWord in excludedWords) - { - if (substr.StartsWith(excludedWord + " ", StringComparison.OrdinalIgnoreCase)) - { - isExcluded = true; - break; - } - } - } - - if (!isExcluded) - { - builder[i] = char.ToUpperInvariant(ch); - } - } - - // Special œ → Œ - else if (ch == 'œ') - { - builder[i] = 'Œ'; - } - - // Characters with accents - else if (ch >= 'à' && ch <= 'ý' && ch != '÷') - { - builder[i] = char.ToUpperInvariant(ch); - } - - // Normalize vowels with accents - else if (normalizeVowels && isWordBeginning) - { - if ("àáâãäå".Contains(ch)) - { - builder[i] = 'A'; - } - else if ("èéêë".Contains(ch)) - { - builder[i] = 'E'; - } - else if ("ìíîï".Contains(ch)) - { - builder[i] = 'I'; - } - else if ("òóôõö".Contains(ch)) - { - builder[i] = 'O'; - } - else if ("ùúûü".Contains(ch)) - { - builder[i] = 'U'; - } - } - - isWordBeginning = false; - } - - return builder.ToString(); - } } diff --git a/Dalamud/Utility/TerraFxCom/ManagedIStream.cs b/Dalamud/Utility/TerraFxCom/ManagedIStream.cs index eb1997daf..caec65da2 100644 --- a/Dalamud/Utility/TerraFxCom/ManagedIStream.cs +++ b/Dalamud/Utility/TerraFxCom/ManagedIStream.cs @@ -57,60 +57,60 @@ internal sealed unsafe class ManagedIStream : IStream.Interface, IRefCountable static ManagedIStream? ToManagedObject(void* pThis) => GCHandle.FromIntPtr(((nint*)pThis)[1]).Target as ManagedIStream; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int QueryInterfaceStatic(IStream* pThis, Guid* riid, void** ppvObject) => ToManagedObject(pThis)?.QueryInterface(riid, ppvObject) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static uint AddRefStatic(IStream* pThis) => (uint)(ToManagedObject(pThis)?.AddRef() ?? 0); - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static uint ReleaseStatic(IStream* pThis) => (uint)(ToManagedObject(pThis)?.Release() ?? 0); - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int ReadStatic(IStream* pThis, void* pv, uint cb, uint* pcbRead) => ToManagedObject(pThis)?.Read(pv, cb, pcbRead) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int WriteStatic(IStream* pThis, void* pv, uint cb, uint* pcbWritten) => ToManagedObject(pThis)?.Write(pv, cb, pcbWritten) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int SeekStatic( IStream* pThis, LARGE_INTEGER dlibMove, uint dwOrigin, ULARGE_INTEGER* plibNewPosition) => ToManagedObject(pThis)?.Seek(dlibMove, dwOrigin, plibNewPosition) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int SetSizeStatic(IStream* pThis, ULARGE_INTEGER libNewSize) => ToManagedObject(pThis)?.SetSize(libNewSize) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int CopyToStatic( IStream* pThis, IStream* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten) => ToManagedObject(pThis)?.CopyTo(pstm, cb, pcbRead, pcbWritten) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int CommitStatic(IStream* pThis, uint grfCommitFlags) => ToManagedObject(pThis)?.Commit(grfCommitFlags) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int RevertStatic(IStream* pThis) => ToManagedObject(pThis)?.Revert() ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int LockRegionStatic(IStream* pThis, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType) => ToManagedObject(pThis)?.LockRegion(libOffset, cb, dwLockType) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int UnlockRegionStatic( IStream* pThis, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType) => ToManagedObject(pThis)?.UnlockRegion(libOffset, cb, dwLockType) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int StatStatic(IStream* pThis, STATSTG* pstatstg, uint grfStatFlag) => ToManagedObject(pThis)?.Stat(pstatstg, grfStatFlag) ?? E.E_UNEXPECTED; - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])] + [UnmanagedCallersOnly] static int CloneStatic(IStream* pThis, IStream** ppstm) => ToManagedObject(pThis)?.Clone(ppstm) ?? E.E_UNEXPECTED; } diff --git a/Dalamud/Utility/TerraFxCom/TerraFxComInterfaceExtensions.cs b/Dalamud/Utility/TerraFxCom/TerraFxComInterfaceExtensions.cs index f952cba7e..f9252839f 100644 --- a/Dalamud/Utility/TerraFxCom/TerraFxComInterfaceExtensions.cs +++ b/Dalamud/Utility/TerraFxCom/TerraFxComInterfaceExtensions.cs @@ -51,28 +51,44 @@ internal static unsafe partial class TerraFxComInterfaceExtensions throw new ArgumentOutOfRangeException(nameof(mode), mode, null); } - grfMode |= access switch + switch (access) { - FileAccess.Read => STGM.STGM_READ, - FileAccess.Write => STGM.STGM_WRITE, - FileAccess.ReadWrite => (uint)STGM.STGM_READWRITE, - _ => throw new ArgumentOutOfRangeException(nameof(access), access, null), - }; + case FileAccess.Read: + grfMode |= STGM.STGM_READ; + break; + case FileAccess.Write: + grfMode |= STGM.STGM_WRITE; + break; + case FileAccess.ReadWrite: + grfMode |= STGM.STGM_READWRITE; + break; + default: + throw new ArgumentOutOfRangeException(nameof(access), access, null); + } - grfMode |= share switch + switch (share) { - FileShare.None => STGM.STGM_SHARE_EXCLUSIVE, - FileShare.Read => STGM.STGM_SHARE_DENY_WRITE, - FileShare.Write => STGM.STGM_SHARE_DENY_READ, - FileShare.ReadWrite => (uint)STGM.STGM_SHARE_DENY_NONE, - _ => throw new NotSupportedException($"Only ${FileShare.Read} and ${FileShare.Write} are supported."), - }; + case FileShare.None: + grfMode |= STGM.STGM_SHARE_EXCLUSIVE; + break; + case FileShare.Read: + grfMode |= STGM.STGM_SHARE_DENY_WRITE; + break; + case FileShare.Write: + grfMode |= STGM.STGM_SHARE_DENY_READ; + break; + case FileShare.ReadWrite: + grfMode |= STGM.STGM_SHARE_DENY_NONE; + break; + default: + throw new NotSupportedException($"Only ${FileShare.Read} and ${FileShare.Write} are supported."); + } using var stream = default(ComPtr<IStream>); fixed (char* pPath = path) { SHCreateStreamOnFileEx( - pPath, + (ushort*)pPath, grfMode, (uint)attributes, fCreate, @@ -99,7 +115,7 @@ internal static unsafe partial class TerraFxComInterfaceExtensions { fixed (char* pName = name) { - var option = new PROPBAG2 { pstrName = pName }; + var option = new PROPBAG2 { pstrName = (ushort*)pName }; return obj.Write(1, &option, &varValue); } } @@ -129,7 +145,7 @@ internal static unsafe partial class TerraFxComInterfaceExtensions try { fixed (char* pName = name) - return obj.SetMetadataByName(pName, &propVarValue); + return obj.SetMetadataByName((ushort*)pName, &propVarValue); } finally { @@ -149,7 +165,7 @@ internal static unsafe partial class TerraFxComInterfaceExtensions public static HRESULT RemoveMetadataByName(ref this IWICMetadataQueryWriter obj, string name) { fixed (char* pName = name) - return obj.RemoveMetadataByName(pName); + return obj.RemoveMetadataByName((ushort*)pName); } [LibraryImport("propsys.dll")] diff --git a/Dalamud/Utility/TexFileExtensions.cs b/Dalamud/Utility/TexFileExtensions.cs index 9d6f152c5..ec8e10b3c 100644 --- a/Dalamud/Utility/TexFileExtensions.cs +++ b/Dalamud/Utility/TexFileExtensions.cs @@ -1,12 +1,10 @@ using System.Runtime.CompilerServices; -using Dalamud.Interface.ImGuiBackend.Renderers; using Dalamud.Memory; +using ImGuiScene; using Lumina.Data.Files; -using TerraFX.Interop.DirectX; - namespace Dalamud.Utility; /// <summary> @@ -15,9 +13,7 @@ namespace Dalamud.Utility; public static class TexFileExtensions { /// <summary> - /// Returns the image data formatted for <see cref="IImGuiRenderer.CreateTexture2D"/>, - /// using <see cref="DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM"/>.<br /> - /// <b>Consider using <see cref="TexFile.ImageData"/> with <see cref="DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM"/>.</b> + /// Returns the image data formatted for <see cref="RawDX11Scene.LoadImageRaw"/>. /// </summary> /// <param name="texFile">The TexFile to format.</param> /// <returns>The formatted image data.</returns> diff --git a/Dalamud/Utility/ThreadBoundTaskScheduler.cs b/Dalamud/Utility/ThreadBoundTaskScheduler.cs index 2930bd27f..4b6de29ff 100644 --- a/Dalamud/Utility/ThreadBoundTaskScheduler.cs +++ b/Dalamud/Utility/ThreadBoundTaskScheduler.cs @@ -22,14 +22,8 @@ internal class ThreadBoundTaskScheduler : TaskScheduler public ThreadBoundTaskScheduler(Thread? boundThread = null) { this.BoundThread = boundThread; - this.TaskQueued += static () => { }; } - /// <summary> - /// Event fired when a task has been posted. - /// </summary> - public event Action TaskQueued; - /// <summary> /// Gets or sets the thread this task scheduler is bound to. /// </summary> @@ -63,7 +57,6 @@ internal class ThreadBoundTaskScheduler : TaskScheduler /// <inheritdoc/> protected override void QueueTask(Task task) { - this.TaskQueued.Invoke(); this.scheduledTasks[task] = Scheduled; } diff --git a/Dalamud/Utility/ThreadSafety.cs b/Dalamud/Utility/ThreadSafety.cs index c31cc0005..ea8238d44 100644 --- a/Dalamud/Utility/ThreadSafety.cs +++ b/Dalamud/Utility/ThreadSafety.cs @@ -18,14 +18,13 @@ public static class ThreadSafety /// <summary> /// Throws an exception when the current thread is not the main thread. /// </summary> - /// <param name="message">The message to be passed into the exception, if one is to be thrown.</param> /// <exception cref="InvalidOperationException">Thrown when the current thread is not the main thread.</exception> [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AssertMainThread(string? message = null) + public static void AssertMainThread() { if (!threadStaticIsMainThread) { - throw new InvalidOperationException(message ?? "Not on main thread!"); + throw new InvalidOperationException("Not on main thread!"); } } diff --git a/Dalamud/Utility/Timing/TimingHandle.cs b/Dalamud/Utility/Timing/TimingHandle.cs index e334908b1..d73a9c2d3 100644 --- a/Dalamud/Utility/Timing/TimingHandle.cs +++ b/Dalamud/Utility/Timing/TimingHandle.cs @@ -67,7 +67,7 @@ public sealed class TimingHandle : TimingEvent, IDisposable, IComparable<TimingH public TimingHandle? Parent { get; private set; } /// <summary> - /// Gets a value indicating whether this timing was started on the main thread. + /// Gets a value indicating whether or not this timing was started on the main thread. /// </summary> public bool IsMainThread { get; private set; } diff --git a/Dalamud/Utility/Timing/Timings.cs b/Dalamud/Utility/Timing/Timings.cs index 563221fb9..e2c00461c 100644 --- a/Dalamud/Utility/Timing/Timings.cs +++ b/Dalamud/Utility/Timing/Timings.cs @@ -19,12 +19,12 @@ public static class Timings /// <summary> /// All concluded timings. /// </summary> - internal static readonly SortedList<TimingHandle, TimingHandle> AllTimings = []; + internal static readonly SortedList<TimingHandle, TimingHandle> AllTimings = new(); /// <summary> /// List of all timing events. /// </summary> - internal static readonly List<TimingEvent> Events = []; + internal static readonly List<TimingEvent> Events = new(); private static readonly AsyncLocal<Tuple<int?, List<TimingHandle>>> TaskTimingHandleStorage = new(); @@ -36,7 +36,7 @@ public static class Timings get { if (TaskTimingHandleStorage.Value == null || TaskTimingHandleStorage.Value.Item1 != Task.CurrentId) - TaskTimingHandleStorage.Value = Tuple.Create<int?, List<TimingHandle>>(Task.CurrentId, []); + TaskTimingHandleStorage.Value = Tuple.Create<int?, List<TimingHandle>>(Task.CurrentId, new()); return TaskTimingHandleStorage.Value!.Item2!; } set => TaskTimingHandleStorage.Value = Tuple.Create(Task.CurrentId, value); @@ -53,7 +53,7 @@ public static class Timings var outerTimingHandle = TaskTimingHandles; return () => { - var res = default(T); + T res = default(T); var prev = TaskTimingHandles; TaskTimingHandles = outerTimingHandle; try diff --git a/Dalamud/Utility/Util.cs b/Dalamud/Utility/Util.cs index 72db5cfc6..d5e14e212 100644 --- a/Dalamud/Utility/Util.cs +++ b/Dalamud/Utility/Util.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics; using System.IO; using System.IO.Compression; @@ -9,33 +10,28 @@ using System.Reflection.Emit; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -using System.Threading; using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; +using Dalamud.Configuration.Internal; using Dalamud.Data; using Dalamud.Game; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Interface.Colors; -using Dalamud.Interface.Internal; using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; using Dalamud.Support; - +using ImGuiNET; using Lumina.Excel.Sheets; - using Serilog; - using TerraFX.Interop.Windows; - +using Windows.Win32.Storage.FileSystem; using Windows.Win32.System.Memory; using Windows.Win32.System.Ole; -using Windows.Win32.UI.WindowsAndMessaging; -using FLASHWINFO = Windows.Win32.UI.WindowsAndMessaging.FLASHWINFO; -using HWND = Windows.Win32.Foundation.HWND; -using MEMORY_BASIC_INFORMATION = Windows.Win32.System.Memory.MEMORY_BASIC_INFORMATION; +using Dalamud.Interface.Utility.Raii; + +using static TerraFX.Interop.Windows.Windows; + using Win32_PInvoke = Windows.Win32.PInvoke; namespace Dalamud.Utility; @@ -43,7 +39,7 @@ namespace Dalamud.Utility; /// <summary> /// Class providing various helper methods for use in Dalamud and plugins. /// </summary> -public static partial class Util +public static class Util { private static readonly string[] PageProtectionFlagNames = [ "PAGE_NOACCESS", @@ -68,10 +64,122 @@ public static partial class Util ]; private static readonly Type GenericSpanType = typeof(Span<>); + private static string? scmVersionInternal; + private static string? gitHashInternal; + private static int? gitCommitCountInternal; + private static string? gitHashClientStructsInternal; private static ulong moduleStartAddr; private static ulong moduleEndAddr; + /// <summary> + /// Gets the assembly version of Dalamud. + /// </summary> + public static string AssemblyVersion { get; } = + Assembly.GetAssembly(typeof(ChatHandlers)).GetName().Version.ToString(); + + /// <summary> + /// Check two byte arrays for equality. + /// </summary> + /// <param name="a1">The first byte array.</param> + /// <param name="a2">The second byte array.</param> + /// <returns>Whether or not the byte arrays are equal.</returns> + public static unsafe bool FastByteArrayCompare(byte[]? a1, byte[]? a2) + { + // Copyright (c) 2008-2013 Hafthor Stefansson + // Distributed under the MIT/X11 software license + // Ref: http://www.opensource.org/licenses/mit-license.php. + // https://stackoverflow.com/a/8808245 + + if (a1 == a2) return true; + if (a1 == null || a2 == null || a1.Length != a2.Length) + return false; + fixed (byte* p1 = a1, p2 = a2) + { + byte* x1 = p1, x2 = p2; + var l = a1.Length; + for (var i = 0; i < l / 8; i++, x1 += 8, x2 += 8) + { + if (*((long*)x1) != *((long*)x2)) + return false; + } + + if ((l & 4) != 0) + { + if (*((int*)x1) != *((int*)x2)) + return false; + x1 += 4; + x2 += 4; + } + + if ((l & 2) != 0) + { + if (*((short*)x1) != *((short*)x2)) + return false; + x1 += 2; + x2 += 2; + } + + if ((l & 1) != 0) + { + if (*((byte*)x1) != *((byte*)x2)) + return false; + } + + return true; + } + } + + /// <summary> + /// Gets the SCM Version from the assembly, or null if it cannot be found. This method will generally return + /// the <c>git describe</c> output for this build, which will be a raw version if this is a stable build or an + /// appropriately-annotated version if this is *not* stable. Local builds will return a `Local Build` text string. + /// </summary> + /// <returns>The SCM version of the assembly.</returns> + public static string GetScmVersion() + { + if (scmVersionInternal != null) return scmVersionInternal; + + var asm = typeof(Util).Assembly; + var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>(); + + return scmVersionInternal = attrs.First(a => a.Key == "SCMVersion").Value + ?? asm.GetName().Version!.ToString(); + } + + /// <summary> + /// Gets the git commit hash value from the assembly or null if it cannot be found. Will be null for Debug builds, + /// and will be suffixed with `-dirty` if in release with pending changes. + /// </summary> + /// <returns>The git hash of the assembly.</returns> + public static string? GetGitHash() + { + if (gitHashInternal != null) + return gitHashInternal; + + var asm = typeof(Util).Assembly; + var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>(); + + return gitHashInternal = attrs.FirstOrDefault(a => a.Key == "GitHash")?.Value ?? "N/A"; + } + + /// <summary> + /// Gets the git hash value from the assembly or null if it cannot be found. + /// </summary> + /// <returns>The git hash of the assembly.</returns> + public static string? GetGitHashClientStructs() + { + if (gitHashClientStructsInternal != null) + return gitHashClientStructsInternal; + + var asm = typeof(Util).Assembly; + var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>(); + + gitHashClientStructsInternal = attrs.First(a => a.Key == "GitHashClientStructs").Value; + + return gitHashClientStructsInternal; + } + /// <inheritdoc cref="DescribeAddress(nint)"/> public static unsafe string DescribeAddress(void* p) => DescribeAddress((nint)p); @@ -149,14 +257,14 @@ public static partial class Util } MEMORY_BASIC_INFORMATION mbi; - if (Win32_PInvoke.VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) + if (VirtualQuery((void*)p, &mbi, (nuint)sizeof(MEMORY_BASIC_INFORMATION)) == 0) return $"0x{p:X}(???)"; var sb = new StringBuilder(); sb.Append($"0x{p:X}("); for (int i = 0, c = 0; i < PageProtectionFlagNames.Length; i++) { - if (((uint)mbi.Protect & (1 << i)) == 0) + if ((mbi.Protect & (1 << i)) == 0) continue; if (c++ != 0) sb.Append(" | "); @@ -255,7 +363,7 @@ public static partial class Util /// </summary> /// <param name="obj">The structure to show.</param> /// <param name="addr">The address to the structure.</param> - /// <param name="autoExpand">Whether this structure should start out expanded.</param> + /// <param name="autoExpand">Whether or not this structure should start out expanded.</param> /// <param name="path">The already followed path.</param> public static void ShowStruct(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null) => ShowStructInternal(obj, addr, autoExpand, path); @@ -265,7 +373,7 @@ public static partial class Util /// </summary> /// <typeparam name="T">The type of the structure.</typeparam> /// <param name="obj">The pointer to the structure.</param> - /// <param name="autoExpand">Whether this structure should start out expanded.</param> + /// <param name="autoExpand">Whether or not this structure should start out expanded.</param> public static unsafe void ShowStruct<T>(T* obj, bool autoExpand = false) where T : unmanaged { ShowStruct(*obj, (ulong)&obj, autoExpand); @@ -275,7 +383,7 @@ public static partial class Util /// Show a GameObject's internal data in an ImGui-context. /// </summary> /// <param name="go">The GameObject to show.</param> - /// <param name="autoExpand">Whether the struct should start as expanded.</param> + /// <param name="autoExpand">Whether or not the struct should start as expanded.</param> public static unsafe void ShowGameObjectStruct(IGameObject go, bool autoExpand = true) { switch (go) @@ -304,7 +412,7 @@ public static partial class Util ImGuiHelpers.ScaledDummy(5); - ImGui.TextColored(ImGuiColors.DalamudOrange, "-> Properties:"u8); + ImGui.TextColored(ImGuiColors.DalamudOrange, "-> Properties:"); ImGui.Indent(); @@ -329,7 +437,7 @@ public static partial class Util ImGuiHelpers.ScaledDummy(5); - ImGui.TextColored(ImGuiColors.HealerGreen, "-> Fields:"u8); + ImGui.TextColored(ImGuiColors.HealerGreen, "-> Fields:"); ImGui.Indent(); @@ -349,9 +457,9 @@ public static partial class Util /// <param name="exit">Specify whether to exit immediately.</param> public static void Fatal(string message, string caption, bool exit = true) { - var flags = MESSAGEBOX_STYLE.MB_OK | MESSAGEBOX_STYLE.MB_ICONERROR | - MESSAGEBOX_STYLE.MB_TOPMOST; - _ = Windows.Win32.PInvoke.MessageBox(new HWND(Process.GetCurrentProcess().MainWindowHandle), message, caption, flags); + var flags = NativeFunctions.MessageBoxType.Ok | NativeFunctions.MessageBoxType.IconError | + NativeFunctions.MessageBoxType.Topmost; + _ = NativeFunctions.MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags); if (exit) { @@ -367,7 +475,7 @@ public static partial class Util /// <returns>Human readable version.</returns> public static string FormatBytes(long bytes) { - string[] suffix = ["B", "KB", "MB", "GB", "TB"]; + string[] suffix = { "B", "KB", "MB", "GB", "TB" }; int i; double dblSByte = bytes; for (i = 0; i < suffix.Length && bytes >= 1024; i++, bytes /= 1024) @@ -446,14 +554,55 @@ public static partial class Util /// Determine if Dalamud is currently running within a Wine context (e.g. either on macOS or Linux). This method /// will not return information about the host operating system. /// </summary> - /// <returns>Returns true if running on Wine, false otherwise.</returns> - public static bool IsWine() => Service<Dalamud>.Get().StartInfo.Platform != OSPlatform.Windows; + /// <returns>Returns true if Wine is detected, false otherwise.</returns> + public static bool IsWine() + { + if (EnvironmentConfiguration.XlWineOnLinux) return true; + if (Environment.GetEnvironmentVariable("XL_PLATFORM") is not null and not "Windows") return true; + + var ntdll = NativeFunctions.GetModuleHandleW("ntdll.dll"); + + // Test to see if any Wine specific exports exist. If they do, then we are running on Wine. + // The exports "wine_get_version", "wine_get_build_id", and "wine_get_host_version" will tend to be hidden + // by most Linux users (else FFXIV will want a macOS license), so we will additionally check some lesser-known + // exports as well. + return AnyProcExists( + ntdll, + "wine_get_version", + "wine_get_build_id", + "wine_get_host_version", + "wine_server_call", + "wine_unix_to_nt_file_name"); + + bool AnyProcExists(nint handle, params string[] procs) => + procs.Any(p => NativeFunctions.GetProcAddress(handle, p) != nint.Zero); + } /// <summary> - /// Gets the current host's platform based on the injector launch arguments or heuristics. + /// Gets the best guess for the current host's platform based on the <c>XL_PLATFORM</c> environment variable or + /// heuristics. /// </summary> + /// <remarks> + /// macOS users running without <c>XL_PLATFORM</c> being set will be reported as Linux users. Due to the way our + /// Wines work, there isn't a great (consistent) way to split the two apart if we're not told. + /// </remarks> /// <returns>Returns the <see cref="OSPlatform"/> that Dalamud is currently running on.</returns> - public static OSPlatform GetHostPlatform() => Service<Dalamud>.Get().StartInfo.Platform; + public static OSPlatform GetHostPlatform() + { + switch (Environment.GetEnvironmentVariable("XL_PLATFORM")) + { + case "Windows": return OSPlatform.Windows; + case "MacOS": return OSPlatform.OSX; + case "Linux": return OSPlatform.Linux; + } + + // n.b. we had some fancy code here to check if the Wine host version returned "Darwin" but apparently + // *all* our Wines report Darwin if exports aren't hidden. As such, it is effectively impossible (without some + // (very cursed and inaccurate heuristics) to determine if we're on macOS or Linux unless we're explicitly told + // by our launcher. See commit a7aacb15e4603a367e2f980578271a9a639d8852 for the old check. + + return IsWine() ? OSPlatform.Linux : OSPlatform.Windows; + } /// <summary> /// Heuristically determine if the Windows version is higher than Windows 11's first build. @@ -462,36 +611,17 @@ public static partial class Util public static bool IsWindows11() => Environment.OSVersion.Version.Build >= 22000; /// <summary> - /// Open a link in the default browser, and attempts to focus the newly launched application. + /// Open a link in the default browser. /// </summary> /// <param name="url">The link to open.</param> - public static void OpenLink(string url) => new Thread( - static url => + public static void OpenLink(string url) + { + var process = new ProcessStartInfo(url) { - try - { - var psi = new ProcessStartInfo((string)url!) - { - UseShellExecute = true, - ErrorDialogParentHandle = Service<InterfaceManager>.GetNullable() is { } im - ? im.GameWindowHandle - : 0, - Verb = "open", - }; - if (Process.Start(psi) is not { } process) - return; - - if (process.Id != 0) - TerraFX.Interop.Windows.Windows.AllowSetForegroundWindow((uint)process.Id); - process.WaitForInputIdle(); - TerraFX.Interop.Windows.Windows.SetForegroundWindow( - (TerraFX.Interop.Windows.HWND)process.MainWindowHandle); - } - catch (Exception e) - { - Log.Error(e, "{fn}: failed to open {url}", nameof(OpenLink), url); - } - }).Start(url); + UseShellExecute = true, + }; + Process.Start(process); + } /// <summary> /// Perform a "zipper merge" (A, 1, B, 2, C, 3) of multiple enumerables, allowing for lists to end early. @@ -543,44 +673,90 @@ public static partial class Util } } - /// <summary> - /// Returns true if the current application has focus, false otherwise. - /// </summary> - /// <returns> - /// If the current application is focused. - /// </returns> - public static unsafe bool ApplicationIsActivated() - { - var activatedHandle = Win32_PInvoke.GetForegroundWindow(); - if (activatedHandle == IntPtr.Zero) - return false; // No window is currently activated - - uint pid; - _ = Win32_PInvoke.GetWindowThreadProcessId(activatedHandle, &pid); - if (Marshal.GetLastWin32Error() != 0) - return false; - - return pid == Environment.ProcessId; - } - /// <summary> /// Request that Windows flash the game window to grab the user's attention. /// </summary> /// <param name="flashIfOpen">Attempt to flash even if the game is currently focused.</param> - public static unsafe void FlashWindow(bool flashIfOpen = false) + public static void FlashWindow(bool flashIfOpen = false) { - if (ApplicationIsActivated() && !flashIfOpen) + if (NativeFunctions.ApplicationIsActivated() && !flashIfOpen) return; - var flashInfo = new FLASHWINFO + var flashInfo = new NativeFunctions.FlashWindowInfo { - cbSize = (uint)sizeof(FLASHWINFO), - uCount = uint.MaxValue, - dwTimeout = 0, - dwFlags = FLASHWINFO_FLAGS.FLASHW_ALL | FLASHWINFO_FLAGS.FLASHW_TIMERNOFG, - hwnd = new HWND(Process.GetCurrentProcess().MainWindowHandle), + Size = (uint)Marshal.SizeOf<NativeFunctions.FlashWindowInfo>(), + Count = uint.MaxValue, + Timeout = 0, + Flags = NativeFunctions.FlashWindow.All | NativeFunctions.FlashWindow.TimerNoFG, + Hwnd = Process.GetCurrentProcess().MainWindowHandle, }; - Win32_PInvoke.FlashWindowEx(flashInfo); + + NativeFunctions.FlashWindowEx(ref flashInfo); + } + + /// <summary> + /// Overwrite text in a file by first writing it to a temporary file, and then + /// moving that file to the path specified. + /// </summary> + /// <param name="path">The path of the file to write to.</param> + /// <param name="text">The text to write.</param> + public static void WriteAllTextSafe(string path, string text) + { + WriteAllTextSafe(path, text, Encoding.UTF8); + } + + /// <summary> + /// Overwrite text in a file by first writing it to a temporary file, and then + /// moving that file to the path specified. + /// </summary> + /// <param name="path">The path of the file to write to.</param> + /// <param name="text">The text to write.</param> + /// <param name="encoding">Encoding to use.</param> + public static void WriteAllTextSafe(string path, string text, Encoding encoding) + { + WriteAllBytesSafe(path, encoding.GetBytes(text)); + } + + /// <summary> + /// Overwrite data in a file by first writing it to a temporary file, and then + /// moving that file to the path specified. + /// </summary> + /// <param name="path">The path of the file to write to.</param> + /// <param name="bytes">The data to write.</param> + public static unsafe void WriteAllBytesSafe(string path, byte[] bytes) + { + ArgumentException.ThrowIfNullOrEmpty(path); + + // Open the temp file + var tempPath = path + ".tmp"; + + using var tempFile = Windows.Win32.PInvoke.CreateFile( + tempPath, + (uint)(FILE_ACCESS_RIGHTS.FILE_GENERIC_READ | FILE_ACCESS_RIGHTS.FILE_GENERIC_WRITE), + FILE_SHARE_MODE.FILE_SHARE_NONE, + null, + FILE_CREATION_DISPOSITION.CREATE_ALWAYS, + FILE_FLAGS_AND_ATTRIBUTES.FILE_ATTRIBUTE_NORMAL, + null); + + if (tempFile.IsInvalid) + throw new Win32Exception(); + + // Write the data + uint bytesWritten = 0; + if (!Windows.Win32.PInvoke.WriteFile(tempFile, new ReadOnlySpan<byte>(bytes), &bytesWritten, null)) + throw new Win32Exception(); + + if (bytesWritten != bytes.Length) + throw new Exception($"Could not write all bytes to temp file ({bytesWritten} of {bytes.Length})"); + + if (!Windows.Win32.PInvoke.FlushFileBuffers(tempFile)) + throw new Win32Exception(); + + tempFile.Close(); + + if (!Windows.Win32.PInvoke.MoveFileEx(tempPath, path, MOVE_FILE_FLAGS.MOVEFILE_REPLACE_EXISTING | MOVE_FILE_FLAGS.MOVEFILE_WRITE_THROUGH)) + throw new Win32Exception(); } /// <summary>Gets a temporary file name, for use as the sourceFileName in @@ -589,7 +765,7 @@ public static partial class Util /// <returns>A temporary file name that should be usable with <see cref="File.Replace(string,string,string?)"/>. /// </returns> /// <remarks>No write operation is done on the filesystem.</remarks> - public static string GetReplaceableFileName(string targetFile) + public static string GetTempFileNameForFileReplacement(string targetFile) { Span<byte> buf = stackalloc byte[9]; Random.Shared.NextBytes(buf); @@ -677,7 +853,7 @@ public static partial class Util // ignore } } - + /// <summary> /// Print formatted IGameObject Information to ImGui. /// </summary> @@ -690,7 +866,7 @@ public static partial class Util $"{actor.Address.ToInt64():X}:{actor.GameObjectId:X}[{tag}] - {actor.ObjectKind} - {actor.Name} - X{actor.Position.X} Y{actor.Position.Y} Z{actor.Position.Z} D{actor.YalmDistanceX} R{actor.Rotation} - Target: {actor.TargetObjectId:X}\n"; if (actor is Npc npc) - actorString += $" BaseId: {npc.BaseId} NameId:{npc.NameId}\n"; + actorString += $" DataId: {npc.DataId} NameId:{npc.NameId}\n"; if (actor is ICharacter chara) { @@ -704,7 +880,7 @@ public static partial class Util $" HomeWorld: {(resolveGameData ? pc.HomeWorld.ValueNullable?.Name : pc.HomeWorld.RowId.ToString())} CurrentWorld: {(resolveGameData ? pc.CurrentWorld.ValueNullable?.Name : pc.CurrentWorld.RowId.ToString())} FC: {pc.CompanyTag}\n"; } - ImGui.Text(actorString); + ImGui.TextUnformatted(actorString); ImGui.SameLine(); if (ImGui.Button($"C##{actor.Address.ToInt64()}")) { @@ -724,7 +900,7 @@ public static partial class Util $"{actor.Address.ToInt64():X}:{actor.GameObjectId:X}[{tag}] - {actor.ObjectKind} - {actor.Name} - X{actor.Position.X} Y{actor.Position.Y} Z{actor.Position.Z} D{actor.YalmDistanceX} R{actor.Rotation} - Target: {actor.TargetObjectId:X}\n"; if (actor is Npc npc) - actorString += $" BaseId: {npc.BaseId} NameId:{npc.NameId}\n"; + actorString += $" DataId: {npc.DataId} NameId:{npc.NameId}\n"; if (actor is Character chara) { @@ -738,7 +914,7 @@ public static partial class Util $" HomeWorld: {(resolveGameData ? pc.HomeWorld.ValueNullable?.Name : pc.HomeWorld.RowId.ToString())} CurrentWorld: {(resolveGameData ? pc.CurrentWorld.ValueNullable?.Name : pc.CurrentWorld.RowId.ToString())} FC: {pc.CompanyTag}\n"; } - ImGui.Text(actorString); + ImGui.TextUnformatted(actorString); ImGui.SameLine(); if (ImGui.Button($"C##{actor.Address.ToInt64()}")) { @@ -762,7 +938,7 @@ public static partial class Util var sizeWithTerminators = pathBytesSize + (pathBytes.Length * 2); var dropFilesSize = sizeof(DROPFILES); - var hGlobal = Win32_PInvoke.GlobalAlloc( + var hGlobal = Win32_PInvoke.GlobalAlloc_SafeHandle( GLOBAL_ALLOC_FLAGS.GHND, // struct size + size of encoded strings + null terminator for each // string + two null terminators for end of list @@ -800,11 +976,12 @@ public static partial class Util { Win32_PInvoke.SetClipboardData( (uint)CLIPBOARD_FORMAT.CF_HDROP, - (Windows.Win32.Foundation.HANDLE)hGlobal.Value); + hGlobal); Win32_PInvoke.CloseClipboard(); return true; } + hGlobal.Dispose(); return false; } @@ -814,7 +991,7 @@ public static partial class Util var propType = p.PropertyType; if (p.GetGetMethod() is not { } getMethod) { - ImGui.Text("(No getter available)"u8); + ImGui.Text("(No getter available)"); return; } @@ -823,7 +1000,7 @@ public static partial class Util MethodAttributes.Public | MethodAttributes.Static, CallingConventions.Standard, null, - [typeof(object), typeof(IList<string>), typeof(ulong)], + new[] { typeof(object), typeof(IList<string>), typeof(ulong) }, obj.GetType(), true); @@ -850,7 +1027,7 @@ public static partial class Util ilg.Emit(OpCodes.Call, mm); ilg.Emit(OpCodes.Ret); - dm.Invoke(null, [obj, path, addr]); + dm.Invoke(null, new[] { obj, path, addr }); } #pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type @@ -874,8 +1051,7 @@ public static partial class Util } } - private static unsafe void ShowSpanEntryPrivate<T>(ulong addr, IList<string> path, int offset, Span<T> spanobj) - { + private static unsafe void ShowSpanEntryPrivate<T>(ulong addr, IList<string> path, int offset, Span<T> spanobj) { const int batchSize = 20; if (spanobj.Length > batchSize) { @@ -908,7 +1084,7 @@ public static partial class Util var pointerType = typeof(T*); for (var i = 0; i < spanobj.Length; i++) { - ImGui.Text($"[{offset + i:n0} (0x{offset + i:X})] "); + ImGui.TextUnformatted($"[{offset + i:n0} (0x{offset + i:X})] "); ImGui.SameLine(); path.Add($"{offset + i}"); ShowValue(addr, path, pointerType, Pointer.Box(p + i, pointerType), true); @@ -949,7 +1125,7 @@ public static partial class Util var ptrObj = SafeMemory.PtrToStructure(new IntPtr(unboxed), eType); if (ptrObj == null) { - ImGui.Text("null or invalid"u8); + ImGui.Text("null or invalid"); } else { @@ -963,7 +1139,7 @@ public static partial class Util } else { - ImGui.Text("null"u8); + ImGui.Text("null"); } } else @@ -984,7 +1160,7 @@ public static partial class Util /// </summary> /// <param name="obj">The structure to show.</param> /// <param name="addr">The address to the structure.</param> - /// <param name="autoExpand">Whether this structure should start out expanded.</param> + /// <param name="autoExpand">Whether or not this structure should start out expanded.</param> /// <param name="path">The already followed path.</param> /// <param name="hideAddress">Do not print addresses. Use when displaying a copied value.</param> private static void ShowStructInternal(object obj, ulong addr, bool autoExpand = false, IEnumerable<string>? path = null, bool hideAddress = false) @@ -1029,12 +1205,12 @@ public static partial class Util foreach (var f in obj.GetType() .GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.Instance)) { - var fixedBuffer = f.GetCustomAttribute<FixedBufferAttribute>(); - var offset = f.GetCustomAttribute<FieldOffsetAttribute>(); + var fixedBuffer = (FixedBufferAttribute)f.GetCustomAttribute(typeof(FixedBufferAttribute)); + var offset = (FieldOffsetAttribute)f.GetCustomAttribute(typeof(FieldOffsetAttribute)); if (fixedBuffer != null) { - ImGui.Text("fixed"u8); + ImGui.Text("fixed"); ImGui.SameLine(); ImGui.TextColored(new Vector4(0.2f, 0.9f, 0.9f, 1), $"{fixedBuffer.ElementType.Name}[0x{fixedBuffer.Length:X}]"); } @@ -1045,7 +1221,6 @@ public static partial class Util ImGui.TextDisabled($"[0x{offset.Value:X}]"); ImGui.SameLine(); } - ImGui.TextColored(new Vector4(0.2f, 0.9f, 0.9f, 1), $"{f.FieldType.Name}"); } @@ -1058,7 +1233,7 @@ public static partial class Util { if (f.FieldType.IsGenericType && (f.FieldType.IsByRef || f.FieldType.IsByRefLike)) { - ImGui.Text("Cannot preview ref typed fields."u8); // object never contains ref struct + ImGui.Text("Cannot preview ref typed fields."); // object never contains ref struct } else if (f.FieldType == typeof(bool) && offset != null) { @@ -1073,7 +1248,7 @@ public static partial class Util { using (ImRaii.PushColor(ImGuiCol.Text, new Vector4(1f, 0.4f, 0.4f, 1f))) { - ImGui.Text($"Error: {ex.GetType().Name}: {ex.Message}"); + ImGui.TextUnformatted($"Error: {ex.GetType().Name}: {ex.Message}"); } } finally @@ -1098,7 +1273,7 @@ public static partial class Util } else if (p.PropertyType.IsGenericType && (p.PropertyType.IsByRef || p.PropertyType.IsByRefLike)) { - ImGui.Text("Cannot preview ref typed properties."u8); + ImGui.Text("Cannot preview ref typed properties."); } else { @@ -1109,7 +1284,7 @@ public static partial class Util { using (ImRaii.PushColor(ImGuiCol.Text, new Vector4(1f, 0.4f, 0.4f, 1f))) { - ImGui.Text($"Error: {ex.GetType().Name}: {ex.Message}"); + ImGui.TextUnformatted($"Error: {ex.GetType().Name}: {ex.Message}"); } } finally diff --git a/Dalamud/Utility/VectorExtensions.cs b/Dalamud/Utility/VectorExtensions.cs new file mode 100644 index 000000000..f617c8420 --- /dev/null +++ b/Dalamud/Utility/VectorExtensions.cs @@ -0,0 +1,51 @@ +using System.Numerics; + +namespace Dalamud.Utility; + +/// <summary> +/// Extension methods for System.Numerics.VectorN and SharpDX.VectorN. +/// </summary> +public static class VectorExtensions +{ + /// <summary> + /// Converts a SharpDX vector to System.Numerics. + /// </summary> + /// <param name="vec">Vector to convert.</param> + /// <returns>A converted vector.</returns> + public static Vector2 ToSystem(this SharpDX.Vector2 vec) => new(x: vec.X, y: vec.Y); + + /// <summary> + /// Converts a SharpDX vector to System.Numerics. + /// </summary> + /// <param name="vec">Vector to convert.</param> + /// <returns>A converted vector.</returns> + public static Vector3 ToSystem(this SharpDX.Vector3 vec) => new(x: vec.X, y: vec.Y, z: vec.Z); + + /// <summary> + /// Converts a SharpDX vector to System.Numerics. + /// </summary> + /// <param name="vec">Vector to convert.</param> + /// <returns>A converted vector.</returns> + public static Vector4 ToSystem(this SharpDX.Vector4 vec) => new(x: vec.X, y: vec.Y, z: vec.Z, w: vec.W); + + /// <summary> + /// Converts a System.Numerics vector to SharpDX. + /// </summary> + /// <param name="vec">Vector to convert.</param> + /// <returns>A converted vector.</returns> + public static SharpDX.Vector2 ToSharpDX(this Vector2 vec) => new(x: vec.X, y: vec.Y); + + /// <summary> + /// Converts a System.Numerics vector to SharpDX. + /// </summary> + /// <param name="vec">Vector to convert.</param> + /// <returns>A converted vector.</returns> + public static SharpDX.Vector3 ToSharpDX(this Vector3 vec) => new(x: vec.X, y: vec.Y, z: vec.Z); + + /// <summary> + /// Converts a System.Numerics vector to SharpDX. + /// </summary> + /// <param name="vec">Vector to convert.</param> + /// <returns>A converted vector.</returns> + public static SharpDX.Vector4 ToSharpDX(this Vector4 vec) => new(x: vec.X, y: vec.Y, z: vec.Z, w: vec.W); +} diff --git a/Dalamud/Utility/Versioning.cs b/Dalamud/Utility/Versioning.cs deleted file mode 100644 index d3b30b834..000000000 --- a/Dalamud/Utility/Versioning.cs +++ /dev/null @@ -1,108 +0,0 @@ -using System.Linq; -using System.Reflection; - -namespace Dalamud.Utility; - -/// <summary> -/// Helpers to access Dalamud versioning information. -/// </summary> -internal static class Versioning -{ - private static string? scmVersionInternal; - private static string? gitHashInternal; - private static string? gitHashClientStructsInternal; - private static string? branchInternal; - - /// <summary> - /// Gets the Dalamud version. - /// </summary> - /// <returns>The raw Dalamud assembly version.</returns> - internal static string GetAssemblyVersion() => - Assembly.GetAssembly(typeof(Versioning))!.GetName().Version!.ToString(); - - /// <summary> - /// Gets the Dalamud version. - /// </summary> - /// <returns>The parsed Dalamud assembly version.</returns> - internal static Version GetAssemblyVersionParsed() => - Assembly.GetAssembly(typeof(Versioning))!.GetName().Version!; - - /// <summary> - /// Gets the SCM Version from the assembly, or null if it cannot be found. This method will generally return - /// the <c>git describe</c> output for this build, which will be a raw version if this is a stable build or an - /// appropriately-annotated version if this is *not* stable. Local builds will return a `Local Build` text string. - /// </summary> - /// <returns>The SCM version of the assembly.</returns> - internal static string GetScmVersion() - { - if (scmVersionInternal != null) return scmVersionInternal; - - var asm = typeof(Util).Assembly; - var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>(); - - return scmVersionInternal = attrs.First(a => a.Key == "SCMVersion").Value - ?? asm.GetName().Version!.ToString(); - } - - /// <summary> - /// Gets the git commit hash value from the assembly or null if it cannot be found. Will be null for Debug builds, - /// and will be suffixed with `-dirty` if in release with pending changes. - /// </summary> - /// <returns>The git hash of the assembly.</returns> - internal static string? GetGitHash() - { - if (gitHashInternal != null) - return gitHashInternal; - - var asm = typeof(Util).Assembly; - var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>(); - - return gitHashInternal = attrs.FirstOrDefault(a => a.Key == "GitHash")?.Value ?? "N/A"; - } - - /// <summary> - /// Gets the git hash value from the assembly or null if it cannot be found. - /// </summary> - /// <returns>The git hash of the assembly.</returns> - internal static string? GetGitHashClientStructs() - { - if (gitHashClientStructsInternal != null) - return gitHashClientStructsInternal; - - var asm = typeof(Util).Assembly; - var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>(); - - gitHashClientStructsInternal = attrs.First(a => a.Key == "GitHashClientStructs").Value; - - return gitHashClientStructsInternal; - } - - /// <summary> - /// Gets the Git branch name this version of Dalamud was built from, or null, if this is a Debug build. - /// </summary> - /// <returns>The branch name.</returns> - internal static string? GetGitBranch() - { - if (branchInternal != null) - return branchInternal; - - var asm = typeof(Util).Assembly; - var attrs = asm.GetCustomAttributes<AssemblyMetadataAttribute>(); - - var gitBranch = attrs.FirstOrDefault(a => a.Key == "GitBranch")?.Value; - if (gitBranch == null) - return null; - - return branchInternal = gitBranch; - } - - /// <summary> - /// Gets the active Dalamud track, if this instance was launched through XIVLauncher and used a version - /// downloaded from webservices. - /// </summary> - /// <returns>The name of the track, or null.</returns> - internal static string? GetActiveTrack() - { - return Environment.GetEnvironmentVariable("DALAMUD_BRANCH"); - } -} diff --git a/Dalamud/Utility/WeakConcurrentCollection.cs b/Dalamud/Utility/WeakConcurrentCollection.cs deleted file mode 100644 index c23ebac9a..000000000 --- a/Dalamud/Utility/WeakConcurrentCollection.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Dalamud.Utility; - -/// <summary> -/// An implementation of a weak concurrent set based on a <see cref="ConditionalWeakTable{TKey,TValue}"/>. -/// </summary> -/// <typeparam name="T">The type of object that we're tracking.</typeparam> -public class WeakConcurrentCollection<T> : ICollection<T> where T : class -{ - private readonly ConditionalWeakTable<T, object> cwt = []; - - /// <inheritdoc/> - public int Count => this.cwt.Count(); - - /// <inheritdoc/> - public bool IsReadOnly => false; - - private IEnumerable<T> Keys => this.cwt.Select(pair => pair.Key); - - /// <inheritdoc/> - public IEnumerator<T> GetEnumerator() => this.cwt.Select(pair => pair.Key).GetEnumerator(); - - /// <inheritdoc/> - IEnumerator IEnumerable.GetEnumerator() => this.cwt.Select(pair => pair.Key).GetEnumerator(); - - /// <inheritdoc/> - public void Add(T item) => this.cwt.AddOrUpdate(item, null); - - /// <inheritdoc/> - public void Clear() => this.cwt.Clear(); - - /// <inheritdoc/> - public bool Contains(T item) => this.Keys.Contains(item); - - /// <inheritdoc/> - public void CopyTo(T[] array, int arrayIndex) => this.Keys.ToArray().CopyTo(array, arrayIndex); - - /// <inheritdoc/> - public bool Remove(T item) => this.cwt.Remove(item); -} diff --git a/DalamudCrashHandler/DalamudCrashHandler.cpp b/DalamudCrashHandler/DalamudCrashHandler.cpp index f883ba55b..4b1d4a6e5 100644 --- a/DalamudCrashHandler/DalamudCrashHandler.cpp +++ b/DalamudCrashHandler/DalamudCrashHandler.cpp @@ -19,7 +19,6 @@ #include <comdef.h> #include <CommCtrl.h> #include <DbgHelp.h> -#include <intrin.h> #include <minidumpapiset.h> #include <PathCch.h> #include <Psapi.h> @@ -28,9 +27,6 @@ #include <ShObjIdl.h> #include <shlobj_core.h> -#include <dxgi.h> -#pragma comment(lib, "dxgi.lib") - #pragma comment(lib, "comctl32.lib") #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") @@ -123,7 +119,7 @@ std::wstring describe_module(const std::filesystem::path& path) { return std::format(L"<error: GetFileVersionInfoSizeW#2 returned {}>", GetLastError()); UINT size = 0; - + std::wstring version = L"v?.?.?.?"; if (LPVOID lpBuffer; VerQueryValueW(block.data(), L"\\", &lpBuffer, &size)) { const auto& v = *static_cast<const VS_FIXEDFILEINFO*>(lpBuffer); @@ -180,7 +176,7 @@ const std::map<HMODULE, size_t>& get_remote_modules() { std::vector<HMODULE> buf(8192); for (size_t i = 0; i < 64; i++) { if (DWORD needed; !EnumProcessModules(g_hProcess, &buf[0], static_cast<DWORD>(std::span(buf).size_bytes()), &needed)) { - std::cerr << std::format("EnumProcessModules error: 0x{:x}", GetLastError()) << std::endl; + std::cerr << std::format("EnumProcessModules error: 0x{:x}", GetLastError()) << std::endl; break; } else if (needed > std::span(buf).size_bytes()) { buf.resize(needed / sizeof(HMODULE) + 16); @@ -205,7 +201,7 @@ const std::map<HMODULE, size_t>& get_remote_modules() { data[hModule] = nth64.OptionalHeader.SizeOfImage; } - + return data; }(); @@ -296,43 +292,35 @@ std::wstring to_address_string(const DWORD64 address, const bool try_ptrderef = void print_exception_info(HANDLE hThread, const EXCEPTION_POINTERS& ex, const CONTEXT& ctx, std::wostringstream& log) { std::vector<EXCEPTION_RECORD> exRecs; - if (ex.ExceptionRecord) - { + if (ex.ExceptionRecord) { size_t rec_index = 0; size_t read; - + exRecs.emplace_back(); for (auto pRemoteExRec = ex.ExceptionRecord; - pRemoteExRec && rec_index < 64; - rec_index++) - { - exRecs.emplace_back(); - - if (!ReadProcessMemory(g_hProcess, pRemoteExRec, &exRecs.back(), sizeof exRecs.back(), &read) - || read < offsetof(EXCEPTION_RECORD, ExceptionInformation) - || read < static_cast<size_t>(reinterpret_cast<const char*>(&exRecs.back().ExceptionInformation[exRecs. - back().NumberParameters]) - reinterpret_cast<const char*>(&exRecs.back()))) - { - exRecs.pop_back(); - break; - } + pRemoteExRec + && rec_index < 64 + && ReadProcessMemory(g_hProcess, pRemoteExRec, &exRecs.back(), sizeof exRecs.back(), &read) + && read >= offsetof(EXCEPTION_RECORD, ExceptionInformation) + && read >= static_cast<size_t>(reinterpret_cast<const char*>(&exRecs.back().ExceptionInformation[exRecs.back().NumberParameters]) - reinterpret_cast<const char*>(&exRecs.back())); + rec_index++) { log << std::format(L"\nException Info #{}\n", rec_index); log << std::format(L"Address: {:X}\n", exRecs.back().ExceptionCode); log << std::format(L"Flags: {:X}\n", exRecs.back().ExceptionFlags); log << std::format(L"Address: {:X}\n", reinterpret_cast<size_t>(exRecs.back().ExceptionAddress)); - if (exRecs.back().NumberParameters) - { - log << L"Parameters: "; - for (DWORD i = 0; i < exRecs.back().NumberParameters; ++i) - { - if (i != 0) - log << L", "; - log << std::format(L"{:X}", exRecs.back().ExceptionInformation[i]); - } + if (!exRecs.back().NumberParameters) + continue; + log << L"Parameters: "; + for (DWORD i = 0; i < exRecs.back().NumberParameters; ++i) { + if (i != 0) + log << L", "; + log << std::format(L"{:X}", exRecs.back().ExceptionInformation[i]); } pRemoteExRec = exRecs.back().ExceptionRecord; + exRecs.emplace_back(); } + exRecs.pop_back(); } log << L"\nCall Stack\n{"; @@ -422,7 +410,7 @@ void print_exception_info_extended(const EXCEPTION_POINTERS& ex, const CONTEXT& std::wstring escape_shell_arg(const std::wstring& arg) { // https://docs.microsoft.com/en-us/archive/blogs/twistylittlepassagesallalike/everyone-quotes-command-line-arguments-the-wrong-way - + std::wstring res; if (!arg.empty() && arg.find_first_of(L" \t\n\v\"") == std::wstring::npos) { res.append(arg); @@ -473,43 +461,14 @@ void open_folder_and_select_items(HWND hwndOpener, const std::wstring& path) { ILFree(piid); } -std::vector<IDXGIAdapter1*> enum_dxgi_adapters() -{ - std::vector<IDXGIAdapter1*> vAdapters; - - IDXGIFactory1* pFactory = NULL; - if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**)&pFactory))) - { - return vAdapters; - } - - IDXGIAdapter1* pAdapter; - for (UINT i = 0; - pFactory->EnumAdapters1(i, &pAdapter) != DXGI_ERROR_NOT_FOUND; - ++i) - { - vAdapters.push_back(pAdapter); - } - - if (pFactory) - { - pFactory->Release(); - } - - return vAdapters; -} - void export_tspack(HWND hWndParent, const std::filesystem::path& logDir, const std::string& crashLog, const std::string& troubleshootingPackData) { static const char* SourceLogFiles[] = { - "output.log", // XIVLauncher for Windows - "launcher.log", // XIVLauncher.Core for [mostly] Linux + "output.log", "patcher.log", "dalamud.log", - "dalamud.troubleshooting.json", "dalamud.injector.log", "dalamud.boot.log", "aria.log", - "wine.log" }; static constexpr auto MaxSizePerLog = 1 * 1024 * 1024; static constexpr std::array<COMDLG_FILTERSPEC, 2> OutputFileTypeFilterSpec{{ @@ -543,7 +502,7 @@ void export_tspack(HWND hWndParent, const std::filesystem::path& logDir, const s filePath.emplace(pFilePath); std::fstream fileStream(*filePath, std::ios::binary | std::ios::in | std::ios::out | std::ios::trunc); - + mz_zip_archive zipa{}; zipa.m_pIO_opaque = &fileStream; zipa.m_pRead = [](void* pOpaque, mz_uint64 file_ofs, void* pBuf, size_t n) -> size_t { @@ -605,7 +564,7 @@ void export_tspack(HWND hWndParent, const std::filesystem::path& logDir, const s const auto hLogFile = CreateFileW(logFilePath.c_str(), GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, nullptr); if (hLogFile == INVALID_HANDLE_VALUE) throw_last_error(std::format("indiv. log file: CreateFileW({})", ws_to_u8(logFilePath.wstring()))); - + std::unique_ptr<void, decltype(&CloseHandle)> hLogFileClose(hLogFile, &CloseHandle); LARGE_INTEGER size, baseOffset{}; @@ -720,60 +679,6 @@ void restart_game_using_injector(int nRadioButton, const std::vector<std::wstrin } } -void get_cpu_info(wchar_t *vendor, wchar_t *brand) -{ - // Gotten and reformatted to not include all data as listed at https://learn.microsoft.com/en-us/cpp/intrinsics/cpuid-cpuidex?view=msvc-170#example - - // int cpuInfo[4] = {-1}; - std::array<int, 4> cpui; - int nIds_; - int nExIds_; - std::vector<std::array<int, 4>> data_; - std::vector<std::array<int, 4>> extdata_; - size_t convertedChars = 0; - - // Calling __cpuid with 0x0 as the function_id argument - // gets the number of the highest valid function ID. - __cpuid(cpui.data(), 0); - nIds_ = cpui[0]; - - for (int i = 0; i <= nIds_; ++i) - { - __cpuidex(cpui.data(), i, 0); - data_.push_back(cpui); - } - - // Capture vendor string - char vendorA[0x20]; - memset(vendorA, 0, sizeof(vendorA)); - *reinterpret_cast<int *>(vendorA) = data_[0][1]; - *reinterpret_cast<int *>(vendorA + 4) = data_[0][3]; - *reinterpret_cast<int *>(vendorA + 8) = data_[0][2]; - mbstowcs_s(&convertedChars, vendor, 0x20, vendorA, _TRUNCATE); - - // Calling __cpuid with 0x80000000 as the function_id argument - // gets the number of the highest valid extended ID. - __cpuid(cpui.data(), 0x80000000); - nExIds_ = cpui[0]; - - for (int i = 0x80000000; i <= nExIds_; ++i) - { - __cpuidex(cpui.data(), i, 0); - extdata_.push_back(cpui); - } - - // Interpret CPU brand string if reported - if (nExIds_ >= 0x80000004) - { - char brandA[0x40]; - memset(brandA, 0, sizeof(brandA)); - memcpy(brandA, extdata_[2].data(), sizeof(cpui)); - memcpy(brandA + 16, extdata_[3].data(), sizeof(cpui)); - memcpy(brandA + 32, extdata_[4].data(), sizeof(cpui)); - mbstowcs_s(&convertedChars, brand, 0x40, brandA, _TRUNCATE); - } -} - int main() { enum crash_handler_special_exit_codes { UnknownError = -99, @@ -788,7 +693,7 @@ int main() { // IFileSaveDialog only works on STA CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); - + std::vector<std::wstring> args; if (int argc = 0; const auto argv = CommandLineToArgvW(GetCommandLineW(), &argc)) { for (auto i = 0; i < argc; i++) @@ -916,14 +821,14 @@ int main() { hr = pOleWindow->GetWindow(&hwndProgressDialog); if (SUCCEEDED(hr)) { - SetWindowPos(hwndProgressDialog, HWND_TOPMOST, 0, 0, 0, 0, + SetWindowPos(hwndProgressDialog, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); SetForegroundWindow(hwndProgressDialog); } - + pOleWindow->Release(); } - + } else { std::cerr << "Failed to create progress window" << std::endl; @@ -945,14 +850,14 @@ int main() { https://github.com/sumatrapdfreader/sumatrapdf/blob/master/src/utils/DbgHelpDyn.cpp */ - + if (g_bSymbolsAvailable) { SymRefreshModuleList(g_hProcess); } else if(!assetDir.empty()) { auto symbol_search_path = std::format(L".;{}", (assetDir / "UIRes" / "pdb").wstring()); - + g_bSymbolsAvailable = SymInitializeW(g_hProcess, symbol_search_path.c_str(), true); std::wcout << std::format(L"Init symbols with PDB at {}", symbol_search_path) << std::endl; @@ -963,12 +868,12 @@ int main() { g_bSymbolsAvailable = SymInitializeW(g_hProcess, nullptr, true); std::cout << "Init symbols without PDB" << std::endl; } - + if (!g_bSymbolsAvailable) { std::wcerr << std::format(L"SymInitialize error: 0x{:x}", GetLastError()) << std::endl; } - if (pProgressDialog) + if (pProgressDialog) pProgressDialog->SetLine(3, L"Reading troubleshooting data", FALSE, NULL); std::wstring stackTrace(exinfo.dwStackTraceLength, L'\0'); @@ -1023,60 +928,28 @@ int main() { } while (false); } - const bool is_external_event = exinfo.ExceptionRecord.ExceptionCode == CUSTOM_EXCEPTION_EXTERNAL_EVENT; - std::wostringstream log; - wchar_t vendor[0x20]; - wchar_t brand[0x40]; - get_cpu_info(vendor, brand); - - if (!is_external_event) - { - log << std::format(L"Unhandled native exception occurred at {}", to_address_string(exinfo.ContextRecord.Rip, false)) << std::endl; - log << std::format(L"Code: {:X}", exinfo.ExceptionRecord.ExceptionCode) << std::endl; - } - else - { - log << L"CLR error occurred" << std::endl; - } + log << std::format(L"Unhandled native exception occurred at {}", to_address_string(exinfo.ContextRecord.Rip, false)) << std::endl; + log << std::format(L"Code: {:X}", exinfo.ExceptionRecord.ExceptionCode) << std::endl; if (shutup) log << L"======= Crash handler was globally muted(shutdown?) =======" << std::endl; - + if (dumpPath.empty()) log << L"Dump skipped" << std::endl; else if (dumpError.empty()) log << std::format(L"Dump at: {}", dumpPath.wstring()) << std::endl; else log << std::format(L"Dump error: {}", dumpError) << std::endl; - log << std::format(L"System Time: {0:%F} {0:%T} {0:%Ez}", std::chrono::system_clock::now()) << std::endl; - log << std::format(L"CPU Vendor: {}", vendor) << std::endl; - log << std::format(L"CPU Brand: {}", brand) << std::endl; - - for (IDXGIAdapter1* adapter : enum_dxgi_adapters()) { - DXGI_ADAPTER_DESC1 adapterDescription{}; - adapter->GetDesc1(&adapterDescription); - log << std::format(L"GPU Desc: {}", adapterDescription.Description) << std::endl; - } - + log << L"System Time: " << std::chrono::system_clock::now() << std::endl; log << L"\n" << stackTrace << std::endl; if (pProgressDialog) pProgressDialog->SetLine(3, L"Refreshing Module List", FALSE, NULL); - std::wstring window_log_str; - - // Cut the log here for external events, the rest is unreadable and doesn't matter since we can't get - // symbols for mixed-mode stacks yet. - if (is_external_event) - window_log_str = log.str(); - SymRefreshModuleList(GetCurrentProcess()); print_exception_info(exinfo.hThreadHandle, exinfo.ExceptionPointers, exinfo.ContextRecord, log); - - if (!is_external_event) - window_log_str = log.str(); - + const auto window_log_str = log.str(); print_exception_info_extended(exinfo.ExceptionPointers, exinfo.ContextRecord, log); std::wofstream(logPath) << log.str(); @@ -1111,8 +984,8 @@ int main() { config.pButtons = buttons; config.cButtons = ARRAYSIZE(buttons); config.nDefaultButton = IdButtonRestart; - config.pszExpandedControlText = L"Hide further information"; - config.pszCollapsedControlText = L"Further information for developers"; + config.pszExpandedControlText = L"Hide stack trace"; + config.pszCollapsedControlText = L"Stack trace for plugin developers"; config.pszExpandedInformation = window_log_str.c_str(); config.pszWindowTitle = L"Dalamud Crash Handler"; config.pRadioButtons = radios; @@ -1128,7 +1001,7 @@ int main() { R"aa(<a href="help">Help</a> | <a href="logdir">Open log directory</a> | <a href="logfile">Open log file</a>)aa" ); #endif - + // Can't do this, xiv stops pumping messages here //config.hwndParent = FindWindowA("FFXIVGAME", NULL); @@ -1181,13 +1054,13 @@ int main() { return (*reinterpret_cast<decltype(callback)*>(dwRefData))(hwnd, uNotification, wParam, lParam); }; config.lpCallbackData = reinterpret_cast<LONG_PTR>(&callback); - + if (pProgressDialog) { pProgressDialog->StopProgressDialog(); pProgressDialog->Release(); pProgressDialog = NULL; } - + const auto kill_game = [&] { TerminateProcess(g_hProcess, exinfo.ExceptionRecord.ExceptionCode); }; if (shutup) { diff --git a/DalamudCrashHandler/DalamudCrashHandler.vcxproj b/DalamudCrashHandler/DalamudCrashHandler.vcxproj index 00d67cd65..52d70fbf2 100644 --- a/DalamudCrashHandler/DalamudCrashHandler.vcxproj +++ b/DalamudCrashHandler/DalamudCrashHandler.vcxproj @@ -58,7 +58,7 @@ <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>false</IntrinsicFunctions> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> </ClCompile> <Link> <EnableCOMDATFolding>false</EnableCOMDATFolding> @@ -70,7 +70,7 @@ <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <EnableCOMDATFolding>true</EnableCOMDATFolding> diff --git a/DalamudCrashHandler/miniz.h b/DalamudCrashHandler/miniz.h index 0c12a3ccb..6cc398c92 100644 --- a/DalamudCrashHandler/miniz.h +++ b/DalamudCrashHandler/miniz.h @@ -115,7 +115,7 @@ -/* Defines to completely disable specific portions of miniz.c: +/* Defines to completely disable specific portions of miniz.c: If all macros here are defined the only functionality remaining will be CRC-32, adler-32, tinfl, and tdefl. */ /* Define MINIZ_NO_STDIO to disable all usage and any functions which rely on stdio for file I/O. */ @@ -138,7 +138,7 @@ /* Define MINIZ_NO_ZLIB_COMPATIBLE_NAME to disable zlib names, to prevent conflicts against stock zlib. */ /*#define MINIZ_NO_ZLIB_COMPATIBLE_NAMES */ -/* Define MINIZ_NO_MALLOC to disable all calls to malloc, free, and realloc. +/* Define MINIZ_NO_MALLOC to disable all calls to malloc, free, and realloc. Note if MINIZ_NO_MALLOC is defined then the user must always provide custom user alloc/free/realloc callbacks to the zlib and archive API's, and a few stand-alone helper API's which don't provide custom user functions (such as tdefl_compress_mem_to_heap() and tinfl_decompress_mem_to_heap()) won't work. */ @@ -360,7 +360,7 @@ MINIZ_EXPORT mz_ulong mz_compressBound(mz_ulong source_len); /* Initializes a decompressor. */ MINIZ_EXPORT int mz_inflateInit(mz_streamp pStream); -/* mz_inflateInit2() is like mz_inflateInit() with an additional option that controls the window size and whether the stream has been wrapped with a zlib header/footer: */ +/* mz_inflateInit2() is like mz_inflateInit() with an additional option that controls the window size and whether or not the stream has been wrapped with a zlib header/footer: */ /* window_bits must be MZ_DEFAULT_WINDOW_BITS (to parse zlib header/footer) or -MZ_DEFAULT_WINDOW_BITS (raw deflate). */ MINIZ_EXPORT int mz_inflateInit2(mz_streamp pStream, int window_bits); @@ -908,7 +908,7 @@ struct tinfl_decompressor_tag #ifdef __cplusplus } #endif - + #pragma once diff --git a/Directory.Build.props b/Directory.Build.props index 8a8df22d7..0c5af2e37 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,22 +1,7 @@ -<!-- Shared settings for all Dalamud projects. --> +<!-- Code analysis settings for all Dalamud projects. --> <Project> - - <PropertyGroup Label="Target"> - <TargetFramework>net10.0-windows</TargetFramework> - <PlatformTarget>x64</PlatformTarget> - <Platforms>x64</Platforms> - - <!-- preview, as docfx is late at upgrading Roslyn versions --> - <LangVersion>preview</LangVersion> - - <!-- Disable Intel CET. Causes crashes on unpatched Windows 10 systems. --> - <!-- https://github.com/dotnet/runtime/issues/108589 --> - <CETCompat>false</CETCompat> - </PropertyGroup> - - <!-- Code analysis settings for all Dalamud projects. --> <ItemGroup Label="Code Analysis"> - <PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" PrivateAssets="All" /> + <PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" PrivateAssets="All" /> <AdditionalFiles Include="$(MSBuildThisFileDirectory)tools\BannedSymbols.txt" /> </ItemGroup> <!-- diff --git a/Directory.Packages.props b/Directory.Packages.props deleted file mode 100644 index 2a8c52dc4..000000000 --- a/Directory.Packages.props +++ /dev/null @@ -1,60 +0,0 @@ -<Project> - <PropertyGroup> - <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> - <CentralPackageVersionOverrideEnabled>false</CentralPackageVersionOverrideEnabled> - </PropertyGroup> - - <ItemGroup> - <!-- Analyzers --> - <PackageVersion Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="4.14.0" /> - <PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" /> - <PackageVersion Include="JetBrains.Annotations" Version="2025.2.4" /> - - <!-- Misc Libraries --> - <PackageVersion Include="BitFaster.Caching" Version="2.5.4" /> - <PackageVersion Include="CheapLoc" Version="1.1.8" /> - <PackageVersion Include="MinSharp" Version="1.0.4" /> - <PackageVersion Include="Newtonsoft.Json" Version="13.0.4" /> - <PackageVersion Include="Lumina" Version="7.1.0" /> - <PackageVersion Include="Microsoft.Extensions.ObjectPool" Version="10.0.0" /> - <PackageVersion Include="System.Reactive" Version="6.1.0" /> - <PackageVersion Include="System.Reflection.MetadataLoadContext" Version="10.0.0" /> - <PackageVersion Include="DotNet.ReproducibleBuilds" Version="1.2.39" /> - <PackageVersion Include="sqlite-net-pcl" Version="1.9.172" /> - - <!-- DirectX / Win32 --> - <PackageVersion Include="TerraFX.Interop.Windows" Version="10.0.26100.5" /> - <PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.259" /> - - <!-- Logging --> - <PackageVersion Include="Serilog" Version="4.3.0" /> - <PackageVersion Include="Serilog.Sinks.Async" Version="2.1.0" /> - <PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" /> - <PackageVersion Include="Serilog.Sinks.File" Version="7.0.0" /> - - <!-- Injector Utilities --> - <!-- Take care: must be pinned to version used in goatcorp.Reloaded.Hooks, otherwise we are trampling the injector's version when building Dalamud --> - <PackageVersion Include="Iced" Version="1.17.0" /> - <PackageVersion Include="PeNet" Version="5.1.0" /> - - <!-- HexaGen --> - <PackageVersion Include="HexaGen.Runtime" Version="1.1.20" /> - - <!-- Reloaded --> - <PackageVersion Include="goatcorp.Reloaded.Hooks" Version="4.2.0-goatcorp8" /> - <PackageVersion Include="Reloaded.Memory" Version="7.0.0" /> - <PackageVersion Include="Reloaded.Memory.Buffers" Version="2.0.0" /> - - <!-- Unit Testing --> - <PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" /> - <PackageVersion Include="xunit" Version="2.9.3" /> - <PackageVersion Include="xunit.abstractions" Version="2.0.3" /> - <PackageVersion Include="xunit.analyzers" Version="1.26.0" /> - <PackageVersion Include="xunit.assert" Version="2.9.3" /> - <PackageVersion Include="xunit.core" Version="2.9.3" /> - <PackageVersion Include="xunit.extensibility.core" Version="2.9.3" /> - <PackageVersion Include="xunit.extensibility.execution" Version="2.9.3" /> - <PackageVersion Include="xunit.runner.console" Version="2.9.3" /> - <PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" /> - </ItemGroup> -</Project> diff --git a/README.md b/README.md index 547559d1b..8a925f1c6 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,16 @@ -# Dalamud [![Discord Shield](https://discordapp.com/api/guilds/581875019861328007/widget.png?style=shield)](https://discord.gg/3NMcUV5) +# Dalamud [![Actions Status](https://github.com/goatcorp/Dalamud/workflows/Build%20Dalamud/badge.svg)](https://github.com/goatcorp/Dalamud/actions) [![Discord Shield](https://discordapp.com/api/guilds/581875019861328007/widget.png?style=shield)](https://discord.gg/3NMcUV5) <p align="center"> <img src="https://raw.githubusercontent.com/goatcorp/DalamudAssets/master/UIRes/logo.png" alt="Dalamud" width="200"/> </p> -Dalamud is a plugin development framework for FFXIV that provides access to game data and native interoperability with the game itself to add functionality and quality-of-life. +Dalamud is a plugin development framework for FINAL FANTASY XIV that provides access to game data and native interoperability with the game itself to add functionality and quality-of-life. -It is meant to be used in conjunction with [XIVLauncher](https://github.com/goatcorp/FFXIVQuickLauncher), which manages and launches Dalamud for you. __It is generally not recommended for end users to try to run Dalamud manually as XIVLauncher manages multiple required dependencies.__ +It is meant to be used in conjunction with [FFXIVQuickLauncher](https://github.com/goatcorp/FFXIVQuickLauncher), which manages and launches Dalamud for you. __It is generally not recommended for users to try to run Dalamud manually as there are multiple dependencies and assumed folder paths.__ ## Hold Up! - If you are just trying to **use** Dalamud, you don't need to do anything on this page - please [download XIVLauncher](https://goatcorp.github.io/) from its official page and follow the setup instructions. -## Building and testing locally - -Please check the [docs page on building Dalamud](https://dalamud.dev/building) for more information and required dependencies. - ## Plugin development Dalamud features a growing API for in-game plugin development with game data and chat access and overlays. Please see our [Developer FAQ](https://goatcorp.github.io/faq/development) and the [API documentation](https://dalamud.dev) for more details. @@ -39,6 +34,15 @@ Dalamud can be loaded via DLL injection, or by rewriting a process' entrypoint. | *Dalamud* (C#) | Core API, game bindings, plugin framework | | *Dalamud.CorePlugin* (C#) | Testbed plugin that can access Dalamud internals, to prototype new Dalamud features | +## Branches + +We are currently working from the following branches. + +| Name | API Level | Purpose | .NET Version | Track | +|----------|-----------|------------------------------------------------------------|----------------------------|-------------------| +| *master* | **9** | Current release branch | .NET 8.0.0 (November 2023) | Release & Staging | +| *api10* | **10** | Next major version, slated for release alongside Patch 7.0 | .NET 8.0.0 (November 2023) | api10 | + <br> ##### Final Fantasy XIV © 2010-2021 SQUARE ENIX CO., LTD. All Rights Reserved. We are not affiliated with SQUARE ENIX CO., LTD. in any way. diff --git a/build/DalamudBuild.cs b/build/DalamudBuild.cs index 1a189f2c7..d704d54e0 100644 --- a/build/DalamudBuild.cs +++ b/build/DalamudBuild.cs @@ -1,11 +1,10 @@ -using System; using System.Collections.Generic; +using System.IO; using Nuke.Common; using Nuke.Common.Execution; using Nuke.Common.Git; using Nuke.Common.IO; using Nuke.Common.ProjectModel; -using Nuke.Common.Tooling; using Nuke.Common.Tools.DotNet; using Nuke.Common.Tools.MSBuild; using Serilog; @@ -41,81 +40,28 @@ public class DalamudBuild : NukeBuild AbsolutePath InjectorProjectDir => RootDirectory / "Dalamud.Injector"; AbsolutePath InjectorProjectFile => InjectorProjectDir / "Dalamud.Injector.csproj"; - + + AbsolutePath InjectorBootProjectDir => RootDirectory / "Dalamud.Injector.Boot"; + AbsolutePath InjectorBootProjectFile => InjectorBootProjectDir / "Dalamud.Injector.Boot.vcxproj"; + AbsolutePath TestProjectDir => RootDirectory / "Dalamud.Test"; AbsolutePath TestProjectFile => TestProjectDir / "Dalamud.Test.csproj"; - AbsolutePath ExternalsDir => RootDirectory / "external"; - AbsolutePath CImGuiDir => ExternalsDir / "cimgui"; - AbsolutePath CImGuiProjectFile => CImGuiDir / "cimgui.vcxproj"; - AbsolutePath CImPlotDir => ExternalsDir / "cimplot"; - AbsolutePath CImPlotProjectFile => CImPlotDir / "cimplot.vcxproj"; - AbsolutePath CImGuizmoDir => ExternalsDir / "cimguizmo"; - AbsolutePath CImGuizmoProjectFile => CImGuizmoDir / "cimguizmo.vcxproj"; - AbsolutePath ArtifactsDirectory => RootDirectory / "bin" / Configuration; private static AbsolutePath LibraryDirectory => RootDirectory / "lib"; private static Dictionary<string, string> EnvironmentVariables => new(EnvironmentInfo.Variables); - private static string ConsoleTemplate => "{Message:l}{NewLine}{Exception}"; - private static bool IsCIBuild => Environment.GetEnvironmentVariable("CI") == "true"; - Target Restore => _ => _ .Executes(() => { DotNetTasks.DotNetRestore(s => s .SetProjectFile(Solution)); }); - - Target CompileCImGui => _ => _ - .Executes(() => - { - // Not necessary, and does not build on Linux - if (IsDocsBuild) - return; - - MSBuildTasks.MSBuild(s => s - .SetTargetPath(CImGuiProjectFile) - .SetConfiguration(Configuration) - .SetTargetPlatform(MSBuildTargetPlatform.x64)); - }); - - Target CompileCImPlot => _ => _ - .Executes(() => - { - // Not necessary, and does not build on Linux - if (IsDocsBuild) - return; - - MSBuildTasks.MSBuild(s => s - .SetTargetPath(CImPlotProjectFile) - .SetConfiguration(Configuration) - .SetTargetPlatform(MSBuildTargetPlatform.x64)); - }); - - Target CompileCImGuizmo => _ => _ - .Executes(() => - { - // Not necessary, and does not build on Linux - if (IsDocsBuild) - return; - - MSBuildTasks.MSBuild(s => s - .SetTargetPath(CImGuizmoProjectFile) - .SetConfiguration(Configuration) - .SetTargetPlatform(MSBuildTargetPlatform.x64)); - }); - - Target CompileImGuiNatives => _ => _ - .DependsOn(CompileCImGui) - .DependsOn(CompileCImPlot) - .DependsOn(CompileCImGuizmo); - + Target CompileDalamud => _ => _ .DependsOn(Restore) - .DependsOn(CompileImGuiNatives) .Executes(() => { DotNetTasks.DotNetBuild(s => @@ -124,20 +70,16 @@ public class DalamudBuild : NukeBuild .SetProjectFile(DalamudProjectFile) .SetConfiguration(Configuration) .EnableNoRestore(); - if (IsCIBuild) - { - s = s - .SetProcessAdditionalArguments("/clp:NoSummary"); // Disable MSBuild summary on CI builds - } + // We need to emit compiler generated files for the docs build, since docfx can't run generators directly // TODO: This fails every build after this because of redefinitions... + if (IsDocsBuild) + { + Log.Warning("Building for documentation, emitting compiler generated files. This can cause issues on Windows due to path-length limitations"); + s = s + .SetProperty("IsDocsBuild", "true"); + } - // if (IsDocsBuild) - // { - // Log.Warning("Building for documentation, emitting compiler generated files. This can cause issues on Windows due to path-length limitations"); - // s = s - // .SetProperty("IsDocsBuild", "true"); - // } return s; }); }); @@ -168,27 +110,20 @@ public class DalamudBuild : NukeBuild .EnableNoRestore()); }); - Target SetCILogging => _ => _ - .DependentFor(Compile) - .OnlyWhenStatic(() => IsCIBuild) + Target CompileInjectorBoot => _ => _ .Executes(() => { - Log.Logger = new LoggerConfiguration() - .MinimumLevel.Debug() - .WriteTo.Console(outputTemplate: ConsoleTemplate) - .CreateLogger(); + MSBuildTasks.MSBuild(s => s + .SetTargetPath(InjectorBootProjectFile) + .SetConfiguration(Configuration)); }); Target Compile => _ => _ - .DependsOn(CompileDalamud) - .DependsOn(CompileDalamudBoot) - .DependsOn(CompileDalamudCrashHandler) - .DependsOn(CompileInjector) - ; - - Target CI => _ => _ - .DependsOn(Compile) - .Triggers(Test); + .DependsOn(CompileDalamud) + .DependsOn(CompileDalamudBoot) + .DependsOn(CompileDalamudCrashHandler) + .DependsOn(CompileInjector) + .DependsOn(CompileInjectorBoot); Target Test => _ => _ .DependsOn(Compile) @@ -197,28 +132,12 @@ public class DalamudBuild : NukeBuild DotNetTasks.DotNetTest(s => s .SetProjectFile(TestProjectFile) .SetConfiguration(Configuration) - .AddProperty("WarningLevel", "0") .EnableNoRestore()); }); Target Clean => _ => _ .Executes(() => { - MSBuildTasks.MSBuild(s => s - .SetProjectFile(CImGuiProjectFile) - .SetConfiguration(Configuration) - .SetTargets("Clean")); - - MSBuildTasks.MSBuild(s => s - .SetProjectFile(CImPlotProjectFile) - .SetConfiguration(Configuration) - .SetTargets("Clean")); - - MSBuildTasks.MSBuild(s => s - .SetProjectFile(CImGuizmoProjectFile) - .SetConfiguration(Configuration) - .SetTargets("Clean")); - DotNetTasks.DotNetClean(s => s .SetProject(DalamudProjectFile) .SetConfiguration(Configuration)); @@ -237,6 +156,12 @@ public class DalamudBuild : NukeBuild .SetProject(InjectorProjectFile) .SetConfiguration(Configuration)); - ArtifactsDirectory.CreateOrCleanDirectory(); + MSBuildTasks.MSBuild(s => s + .SetProjectFile(InjectorBootProjectFile) + .SetConfiguration(Configuration) + .SetTargets("Clean")); + + FileSystemTasks.DeleteDirectory(ArtifactsDirectory); + Directory.CreateDirectory(ArtifactsDirectory); }); } diff --git a/build/build.csproj b/build/build.csproj index 7096c7f8a..219b668bd 100644 --- a/build/build.csproj +++ b/build/build.csproj @@ -1,6 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> + <TargetFramework>net8.0</TargetFramework> <Nullable>disable</Nullable> <RootNamespace></RootNamespace> <NoWarn>IDE0002;IDE0051;IDE1006;CS0649;CS0169</NoWarn> @@ -8,11 +9,8 @@ <NukeScriptDirectory>..</NukeScriptDirectory> <NukeTelemetryVersion>1</NukeTelemetryVersion> <EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization> - <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> </PropertyGroup> <ItemGroup> - <PackageReference Include="Nuke.Common" Version="10.1.0" /> - <PackageReference Include="System.Runtime.Serialization.Formatters" Version="10.0.0" /> - <PackageReference Remove="Microsoft.CodeAnalysis.BannedApiAnalyzers" /> + <PackageReference Include="Nuke.Common" Version="6.2.1" /> </ItemGroup> </Project> diff --git a/docfx.json b/docfx.json index cf7a80194..30c85957c 100644 --- a/docfx.json +++ b/docfx.json @@ -4,17 +4,18 @@ "src": [ { "files": [ - "bin/Release/Dalamud.dll" + "Dalamud.Interface/Dalamud.Interface.csproj", + "Dalamud/Dalamud.csproj", + "lib/ImGuiScene/ImGuiScene/ImGuiScene.csproj", + "lib/ImGuiScene/deps/ImGui.NET/src/ImGui.NET-472/ImGui.NET-472.csproj", + "lib/ImGuiScene/deps/SDL2-CS/SDL2-CS.csproj" ] } ], "dest": "api", "disableGitFeatures": false, "disableDefaultFilter": false, - "filter": "filterConfig.yml", - "properties": { - "TargetFramework": "net10.0-windows" - } + "filter": "filterConfig.yml" } ], "build": { diff --git a/external/Directory.Build.props b/external/Directory.Build.props deleted file mode 100644 index f719442cd..000000000 --- a/external/Directory.Build.props +++ /dev/null @@ -1,3 +0,0 @@ -<!-- This is left empty on purpose to avoid having Directory.Build.props in the root of the repository leak into dependencies. --> -<Project> -</Project> diff --git a/external/cimgui/cimgui.vcxproj b/external/cimgui/cimgui.vcxproj deleted file mode 100644 index d99d23119..000000000 --- a/external/cimgui/cimgui.vcxproj +++ /dev/null @@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <ItemGroup> - <ClCompile Include="..\..\lib\cimgui\cimgui.cpp" /> - <ClCompile Include="..\..\lib\cimgui\cimgui_impl.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_demo.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_draw.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_tables.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_widgets.cpp" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\..\lib\cimgui\cimgui.h" /> - <ClInclude Include="..\..\lib\cimgui\imgui\imgui.h" /> - <ClInclude Include="..\..\lib\cimgui\imgui\imgui_internal.h" /> - </ItemGroup> - <PropertyGroup Label="Globals"> - <VCProjectVersion>17.0</VCProjectVersion> - <Keyword>Win32Proj</Keyword> - <ProjectGuid>{8430077c-f736-4246-a052-8ea1cece844e}</ProjectGuid> - <RootNamespace>cimgui</RootNamespace> - <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <UseDebugLibraries>true</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="Shared"> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <OutDir>bin\$(Configuration)\</OutDir> - <IntDir>obj\$(Configuration)\</IntDir> - </PropertyGroup> - <ItemDefinitionGroup> - <ClCompile> - <AdditionalIncludeDirectories>..\..\lib\cimgui\imgui;..\..\lib\cimgui;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PrecompiledHeader>NotUsing</PrecompiledHeader> - </ClCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>_DEBUG;CIMGUI_EXPORTS;_WINDOWS;_USRDLL;IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1;IMGUI_USER_CONFIG="cimgui_user.h";%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableUAC>false</EnableUAC> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>NDEBUG;CIMGUI_EXPORTS;_WINDOWS;_USRDLL;IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1;IMGUI_USER_CONFIG="cimgui_user.h";%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableUAC>false</EnableUAC> - </Link> - </ItemDefinitionGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> - <Target Name="CopyOutputDlls" AfterTargets="PostBuildEvent"> - <Copy SourceFiles="$(OutDir)$(TargetName).dll" DestinationFolder="..\..\bin\$(Configuration)\" /> - <Copy SourceFiles="$(OutDir)$(TargetName).pdb" DestinationFolder="..\..\bin\$(Configuration)\" /> - </Target> -</Project> \ No newline at end of file diff --git a/external/cimgui/cimgui.vcxproj.filters b/external/cimgui/cimgui.vcxproj.filters deleted file mode 100644 index d48c361f1..000000000 --- a/external/cimgui/cimgui.vcxproj.filters +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> - <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> - <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="..\..\lib\cimgui\cimgui.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\cimgui_impl.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_demo.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_draw.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_tables.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_widgets.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\..\lib\cimgui\cimgui.h"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/external/cimguizmo/cimguizmo.vcxproj b/external/cimguizmo/cimguizmo.vcxproj deleted file mode 100644 index 9bf692d4b..000000000 --- a/external/cimguizmo/cimguizmo.vcxproj +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <ItemGroup> - <ClCompile Include="..\..\lib\cimguizmo\cimguizmo.cpp" /> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\GraphEditor.cpp" /> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImCurveEdit.cpp" /> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImGradient.cpp" /> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImGuizmo.cpp" /> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImSequencer.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_demo.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_draw.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_tables.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_widgets.cpp" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\..\lib\cimguizmo\cimguizmo.h" /> - </ItemGroup> - <PropertyGroup Label="Globals"> - <VCProjectVersion>17.0</VCProjectVersion> - <Keyword>Win32Proj</Keyword> - <ProjectGuid>{F258347D-31BE-4605-98CE-40E43BDF6F9D}</ProjectGuid> - <RootNamespace>cimplot</RootNamespace> - <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <UseDebugLibraries>true</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="Shared"> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <OutDir>bin\$(Configuration)\</OutDir> - <IntDir>obj\$(Configuration)\</IntDir> - </PropertyGroup> - <ItemDefinitionGroup> - <ClCompile> - <AdditionalIncludeDirectories>..\..\lib\cimgui\imgui;..\..\lib\cimguizmo\ImGuizmo;..\..\lib\cimgui;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PrecompiledHeader>NotUsing</PrecompiledHeader> - </ClCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>_DEBUG;CIMGUIZMO_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableUAC>false</EnableUAC> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>NDEBUG;CIMGUIZMO_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableUAC>false</EnableUAC> - </Link> - </ItemDefinitionGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> - <Target Name="CopyOutputDlls" AfterTargets="PostBuildEvent"> - <Copy SourceFiles="$(OutDir)$(TargetName).dll" DestinationFolder="..\..\bin\$(Configuration)\" /> - <Copy SourceFiles="$(OutDir)$(TargetName).pdb" DestinationFolder="..\..\bin\$(Configuration)\" /> - </Target> -</Project> \ No newline at end of file diff --git a/external/cimguizmo/cimguizmo.vcxproj.filters b/external/cimguizmo/cimguizmo.vcxproj.filters deleted file mode 100644 index f954dcc2c..000000000 --- a/external/cimguizmo/cimguizmo.vcxproj.filters +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> - <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> - <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_demo.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_draw.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_tables.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_widgets.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimguizmo\cimguizmo.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\GraphEditor.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImCurveEdit.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImGradient.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImGuizmo.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimguizmo\ImGuizmo\ImSequencer.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\..\lib\cimguizmo\cimguizmo.h"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/external/cimplot/cimplot.vcxproj b/external/cimplot/cimplot.vcxproj deleted file mode 100644 index e9aecbc15..000000000 --- a/external/cimplot/cimplot.vcxproj +++ /dev/null @@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <ItemGroup> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_demo.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_draw.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_tables.cpp" /> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_widgets.cpp" /> - <ClCompile Include="..\..\lib\cimplot\cimplot.cpp" /> - <ClCompile Include="..\..\lib\cimplot\implot\implot.cpp" /> - <ClCompile Include="..\..\lib\cimplot\implot\implot_demo.cpp" /> - <ClCompile Include="..\..\lib\cimplot\implot\implot_items.cpp" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\..\lib\cimplot\cimplot.h" /> - </ItemGroup> - <PropertyGroup Label="Globals"> - <VCProjectVersion>17.0</VCProjectVersion> - <Keyword>Win32Proj</Keyword> - <ProjectGuid>{76caa246-c405-4a8c-b0ae-f4a0ef3d4e16}</ProjectGuid> - <RootNamespace>cimplot</RootNamespace> - <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <UseDebugLibraries>true</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v143</PlatformToolset> - <WholeProgramOptimization>true</WholeProgramOptimization> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="Shared"> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <OutDir>bin\$(Configuration)\</OutDir> - <IntDir>obj\$(Configuration)\</IntDir> - </PropertyGroup> - <ItemDefinitionGroup> - <ClCompile> - <AdditionalIncludeDirectories>..\..\lib\cimgui\imgui;..\..\lib\cimplot\implot;..\..\lib\cimgui;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PrecompiledHeader>NotUsing</PrecompiledHeader> - </ClCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>_DEBUG;CIMPLOT_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableUAC>false</EnableUAC> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <WarningLevel>Level3</WarningLevel> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <SDLCheck>true</SDLCheck> - <PreprocessorDefinitions>NDEBUG;CIMPLOT_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <ConformanceMode>true</ConformanceMode> - <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - <GenerateDebugInformation>true</GenerateDebugInformation> - <EnableUAC>false</EnableUAC> - </Link> - </ItemDefinitionGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> - <Target Name="CopyOutputDlls" AfterTargets="PostBuildEvent"> - <Copy SourceFiles="$(OutDir)$(TargetName).dll" DestinationFolder="..\..\bin\$(Configuration)\" /> - <Copy SourceFiles="$(OutDir)$(TargetName).pdb" DestinationFolder="..\..\bin\$(Configuration)\" /> - </Target> -</Project> \ No newline at end of file diff --git a/external/cimplot/cimplot.vcxproj.filters b/external/cimplot/cimplot.vcxproj.filters deleted file mode 100644 index ad8bfd11b..000000000 --- a/external/cimplot/cimplot.vcxproj.filters +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> - <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> - <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="..\..\lib\cimplot\cimplot.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimplot\implot\implot.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimplot\implot\implot_demo.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimplot\implot\implot_items.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_demo.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_draw.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_tables.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="..\..\lib\cimgui\imgui\imgui_widgets.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\..\lib\cimplot\cimplot.h"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/filter_imgui_bindings.ps1 b/filter_imgui_bindings.ps1 deleted file mode 100644 index 55f02599d..000000000 --- a/filter_imgui_bindings.ps1 +++ /dev/null @@ -1,293 +0,0 @@ -$ErrorActionPreference = "Stop" -Set-StrictMode -Version Latest - -$namespaceDefPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?:^\s*)namespace\s+(?<namespace>[\w.]+)\b', 'Compiled,Multiline,Singleline' -$usingPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?:^|;)\s*using\s+(?<using>\w+)\s*;', 'Compiled,Multiline,Singleline' -$classDefPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?<indent>^\s*)(?<visibility>public\s+|internal\s+|protected\s+|private\s+)?(?<static>static\s+)?(?<unsafe>unsafe\s+)?(?<partial>partial\s+)?(?<type>class\s+|struct\s+)(?<name>\w+)\b', 'Compiled,Multiline,Singleline' -$methodPattern = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?:^\s+?\[.*?\](?:\r\n|\r|\n))?(?<indent>^\s*)(?<prototype>(?<visibility>public\s+|internal\s+|protected\s+|private\s+)?(?<static>static\s+)?(?<unsafe>unsafe\s+)?(?<return>(?!public|internal|protected|private|static|unsafe)\w+(?:\s*<\s*\w+?(?:<\s*\w+\s*>?)?\s*>)?(?:\s*\*+)?\s+)(?<name>\w+)(?<args>\s*\([^)]*\)))(?:\r\n|\r|\n)[\s\S]+?(?:^\k<indent>}(?:\r\n|\r|\n))', 'Compiled,Multiline,Singleline' -$referNativeFunction = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '(?<!\.\s*)\b(\w+)Native(?=\()', 'Compiled' -$referNativeFunctionQualified = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList '\b(\w+)\s*\.\s*(\w+)Native(?=\()', 'Compiled' - -$sourcePaths = ( - "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Functions", - "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Structs", - "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Internals\Functions", - "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Manual\Functions", - # "$PSScriptRoot\imgui\Dalamud.Bindings.ImPlot\Generated\Functions", - # "$PSScriptRoot\imgui\Dalamud.Bindings.ImPlot\Generated\Structs", - $null -) - -# replace "ImGuiKey.GamepadStart" -$tmp = Get-Content -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Enums\ImGuiKeyPrivate.cs" -Raw -$tmp = $tmp.Replace("unchecked((int)GamepadStart)", "unchecked((int)ImGuiKey.GamepadStart)").Trim() -$tmp.Trim() | Set-Content -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Enums\ImGuiKeyPrivate.cs" -Encoding ascii - -try -{ - Remove-Item -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Handles\ImTextureID.cs" -Force -} -catch [System.Management.Automation.ItemNotFoundException] -{ - # pass -} - -foreach ($sourcePath in $sourcePaths) -{ - if (!$sourcePath) - { - continue - } - - $targetPath = "$( Split-Path $( Split-Path $sourcePath ) )/Custom/Generated/$( Split-Path $( Split-Path $sourcePath ) -Leaf )/$( Split-Path $sourcePath -Leaf )" - $null = New-Item -Path $targetPath -Type Container -Force - - $namespace = $null - $classes = New-Object -TypeName "System.Collections.Generic.Dictionary[string, System.Collections.Generic.Dictionary[string, System.Collections.Generic.List[System.Text.RegularExpressions.Match]]]" - $imports = New-Object -TypeName "System.Collections.Generic.SortedSet[string]" - $null = $imports.Add("System.Diagnostics") - $null = $imports.Add("System.Runtime.CompilerServices") - $null = $imports.Add("System.Runtime.InteropServices") - $null = $imports.Add("System.Numerics") - $null = $imports.Add("HexaGen.Runtime") - - if (!$sourcePath.StartsWith("$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\")) - { - $null = $imports.Add("Dalamud.Bindings.ImGui") - } - - $husks = New-Object -TypeName "System.Text.StringBuilder" - foreach ($file in (Get-ChildItem -Path $sourcePath)) - { - $fileData = Get-Content -Path $file.FullName -Raw - $fileData = [Regex]::Replace($fileData, '#else\s*$[\s\S]*?^\s*#endif\s*$', '#endif', 'Multiline') - $fileData = [Regex]::Replace($fileData, '^\s*(#if(?:def)?\s+.*|#endif\s*)$', '', 'Multiline') - $namespace = $namespaceDefPattern.Match($fileData).Groups["namespace"].Value - $classDefMatches = $classDefPattern.Matches($fileData) - foreach ($using in $usingPattern.Matches($fileData)) - { - $null = $imports.Add($using.Groups["using"]) - } - - $null = $husks.Append("/* $( $file.Name ) */`r`n").Append($methodPattern.Replace($fileData, "")) - - foreach ($i in (0..($classDefMatches.Count - 1))) - { - $classGroup = $classDefMatches[$i].Groups - $className = "$($classGroup["type"].Value.Trim() ) $($classGroup["name"].Value.Trim() )" - if ( $className.EndsWith("Union")) - { - $className = $className.Substring(0, $className.Length - 5) - } - $methods = $nativeMethods = $null - - $methodMatches = $methodPattern.Matches($( - if (!$classes.TryGetValue($className, [ref]$methods)) - { - $methods = New-Object -TypeName "System.Collections.Generic.Dictionary[string, System.Collections.Generic.List[System.Text.RegularExpressions.Match]]" - $classes.Add($className, $methods) - } - If ($i -eq ($classDefMatches.Count - 1)) - { - $fileData.Substring($classDefMatches[$i].Index) - } - Else - { - $fileData.Substring($classDefMatches[$i].Index, $classDefMatches[$i + 1].Index - $classDefMatches[$i].Index) - } - )) - - foreach ($methodMatch in $methodMatches) - { - $methodName = $methodMatch.Groups["name"].Value - if ( $methodMatch.Groups["args"].Value.Contains("stbtt_pack_context")) - { - continue - } - $overload = $null - $methodContainer = $( If ( $methodName.EndsWith("Native")) - { - if ($null -eq $nativeMethods -and !$classes.TryGetValue("$( $className )Native", [ref]$nativeMethods)) - { - $nativeMethods = New-Object -TypeName "System.Collections.Generic.Dictionary[string, System.Collections.Generic.List[System.Text.RegularExpressions.Match]]" - $classes.Add("$( $className )Native", $nativeMethods) - } - $nativeMethods - } - else - { - $methods - } ) - if (!$methodContainer.TryGetValue($methodName, [ref]$overload)) - { - $overload = New-Object -TypeName "System.Collections.Generic.List[System.Text.RegularExpressions.Match]" - $methodContainer.Add($methodName, $overload) - } - - $overload.Add($methodMatch) - } - } - } - - $husks = $husks.ToString() - $husks = [Regex]::Replace($husks, '^\s*//.*\r\n', '', 'Multiline') - $husks = [Regex]::Replace($husks, '^\s*using .*;\r\n', '', 'Multiline') - # $husks = $emptyClassPattern.Replace($husks, '') - # $husks = $emptyNamespacePattern.Replace($husks, '') - $husks = [Regex]::Replace($husks, '\s*\r\n', "`r`n", 'Multiline').Trim() - if ($husks -ne '') - { - $husks = [Regex]::Replace($husks, '\}\s*' + [Regex]::Escape("namespace $namespace") + '\s*\{', "", 'Multiline').Trim() - $husks = $husks.Replace("public unsafe struct", "public unsafe partial struct") - $husks = $referNativeFunctionQualified.Replace($husks, '$1Native.$2') - $husks = "// <auto-generated/>`r`n`r`nusing $([string]::Join(";`r`nusing ", $imports) );`r`n`r`n$husks" - $husks = $husks -ireplace 'nuint (ActiveIdUsingKeyInputMask)', 'ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN $1' - $husks = $husks.Replace('ref Unsafe.AsRef<nuint>(&Handle->ActiveIdUsingKeyInputMask)', 'ref Unsafe.AsRef<ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN>(&Handle->ActiveIdUsingKeyInputMask)') - $husks.Trim() | Set-Content -Path "$targetPath.gen.cs" -Encoding ascii - } - - $husks = "// <auto-generated/>`r`n`r`nusing $([string]::Join(";`r`nusing ", $imports) );`r`n`r`nnamespace $namespace;`r`n`r`n" - - $sb = New-Object -TypeName "System.Text.StringBuilder" - $discardMethods = New-Object -TypeName "System.Collections.Generic.SortedSet[string]" - $null = $discardMethods.Add("ImFontAtlasBuildPackCustomRectsNative") - foreach ($classDef in $classes.Keys) - { - $null = $sb.Clear().Append($husks).Append("public unsafe partial $classDef`r`n{`r`n") - $className = $classDef.Split(" ")[1] - $isNative = $className.EndsWith("Native") - $discardMethods.Clear() - - if (!$isNative) - { - foreach ($methods in $classes[$classDef].Values) - { - $methodName = $methods[0].Groups["name"].Value; - - # discard Drag/Slider functions - if ($methodName.StartsWith("Drag") -or - $methodName.StartsWith("Slider") -or - $methodName.StartsWith("VSlider") -or - $methodName.StartsWith("InputFloat") -or - $methodName.StartsWith("InputInt") -or - $methodName.StartsWith("InputDouble") -or - $methodName.StartsWith("InputScalar") -or - $methodName.StartsWith("ColorEdit") -or - $methodName.StartsWith("ColorPicker")) - { - $null = $discardMethods.Add($methodName) - continue - } - - # discard specific functions - if ($methodName.StartsWith("ImGuiTextRange") -or - $methodName.StartsWith("AddInputCharacter")) - { - $null = $discardMethods.Add($methodName) - continue - } - - # discard Get...Ref functions - if ($methodName.StartsWith("Get") -And - $methodName.EndsWith("Ref")) - { - $null = $discardMethods.Add($methodName) - continue - } - - foreach ($overload in $methods) - { - $returnType = $overload.Groups["return"].Value.Trim() - $argDef = $overload.Groups["args"].Value - - # discard functions returning a string of some sort - if ($returnType -eq "string" -and - $methodName.EndsWith("S")) - { - $null = $discardMethods.Add($methodName.Substring(0, $methodName.Length - 1)) - $null = $discardMethods.Add($methodName) - break - } - - # discard formatting functions or functions accepting (begin, end) or (data, size) pairs - if ($argDef.Contains("fmt") -or - $argDef -match "\btext\b" -or - # $argDef.Contains("byte* textEnd") -or - $argDef.Contains("str") -or - # $argDef.Contains("byte* strEnd") -or - # $argDef.Contains("byte* strIdEnd") -or - $argDef.Contains("label") -or - $argDef.Contains("name") -or - $argDef.Contains("prefix") -or - $argDef.Contains("byte* shortcut") -or - $argDef.Contains("byte* type") -or - $argDef.Contains("byte* iniData") -or - $argDef.Contains("int dataSize") -or - $argDef.Contains("values, int valuesCount") -or - $argDef.Contains("data, int itemCount") -or - $argDef.Contains("pData, int components") -or - $argDef.Contains("ushort* glyphRanges") -or - $argDef.Contains("nuint args")) - { - $null = $discardMethods.Add($methodName) - break - } - } - } - } - - foreach ($methods in $classes[$classDef].Values) - { - $methodName = $methods[0].Groups["name"]; - - if ( $discardMethods.Contains($methodName)) - { - continue - } - - foreach ($overload in $methods) - { - if ($isNative) - { - $null = $sb.Append($overload.Groups[0].Value.Replace("internal ", "public ").Replace("Native(", "(").Replace("funcTable", "$($className.Substring(0, $className.Length - 6) ).funcTable")) - continue - } - - $tmp = $overload.Groups[0].Value - $tmp = $referNativeFunction.Replace($tmp, "$( $className )Native.`$1") - $tmp = $referNativeFunctionQualified.Replace($tmp, '$1Native.$2') - $tmp = $tmp -creplace '(?<=Get[A-Za-z0-9_]+\()ref ([A-Za-z*]+) self(?=, |\))', 'this scoped in $1 self' - $tmp = $tmp -creplace '(?<=\()(ref )?([A-Za-z*]+) self(?=, |\))', 'this $1$2 self' - $null = $sb.Append($tmp) - } - } - - $null = $sb.Append("}`r`n") - - $nativeMethods = $null - if (!$classes.TryGetValue($classDef + "Native", [ref]$nativeMethods)) - { - $nativeMethods = $null - } - - foreach ($methodName in $discardMethods) - { - if ($nativeMethods -ne $null) - { - $overloads = $null - if ($nativeMethods.TryGetValue($methodName + "Native", [ref]$overloads)) - { - foreach ($overload in $overloads) - { - $null = $sb.Append("// DISCARDED: $( $overload.Groups["prototype"].Value )`r`n") - } - continue - } - } - - $null = $sb.Append("// DISCARDED: $methodName`r`n") - } - - $sb.ToString().Trim() | Set-Content -Path "$targetPath/$className.gen.cs" -Encoding ascii - } -} diff --git a/generate_imgui_bindings.ps1 b/generate_imgui_bindings.ps1 deleted file mode 100644 index 0384bb488..000000000 --- a/generate_imgui_bindings.ps1 +++ /dev/null @@ -1,81 +0,0 @@ -# Store initial directory -$initialDirectory = Get-Location - -# CD to the directory of this script -Set-Location -Path $PSScriptRoot - -# Copy cimgui files from the cimgui repository to Hexa.NET.ImGui -Copy-Item -Path "lib/cimgui/cimgui.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force -Copy-Item -Path "lib/cimgui/generator/output/definitions.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force -Copy-Item -Path "lib/cimgui/generator/output/structs_and_enums.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force -Copy-Item -Path "lib/cimgui/generator/output/typedefs_dict.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimgui" -Force - -# Copy cimplot.h and cimguizmo.h -Copy-Item -Path "lib/cimplot/cimplot.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force -Copy-Item -Path "lib/cimplot/generator/output/definitions.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force -Copy-Item -Path "lib/cimplot/generator/output/structs_and_enums.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force -Copy-Item -Path "lib/cimplot/generator/output/typedefs_dict.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot" -Force - -Copy-Item -Path "lib/cimguizmo/cimguizmo.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force -Copy-Item -Path "lib/cimguizmo/generator/output/definitions.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force -Copy-Item -Path "lib/cimguizmo/generator/output/structs_and_enums.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force -#Copy-Item -Path "lib/cimguizmo/generator/output/typedefs_dict.json" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo" -Force - -# Find the first `#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS` in cimgui.h and insert `#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS` before it -function InsertDefine { - param ( - [string]$filePath - ) - - $lines = Get-Content $filePath - $inserted = $false - - foreach ($line in $lines) { - if ($line -match "#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS") { - $index = [Array]::IndexOf($lines, $line) - if ($index -gt 0 -and $lines[$index - 1] -ne "#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS") { - $lines = $lines[0..($index - 1)] + "#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS" + "`r`n" + $lines[$index..($lines.Length - 1)] - $inserted = $true - } - break - } - } - - if (-not $inserted) { - Write-Host "CIMGUI_DEFINE_ENUMS_AND_STRUCTS not found in $filePath. Exiting." - exit 1 - } - - # Write the modified lines back to the file - Set-Content -Path $filePath -Value $lines -} - -# Insert the define line into all relevant header files -InsertDefine -filePath "lib/Hexa.NET.ImGui/Generator/cimgui/cimgui.h" -InsertDefine -filePath "lib/Hexa.NET.ImGui/Generator/cimplot/cimplot.h" -InsertDefine -filePath "lib/Hexa.NET.ImGui/Generator/cimguizmo/cimguizmo.h" - -# Copy modified cimgui.h to cimplot and cimguizmo directories -Copy-Item -Path "lib/Hexa.NET.ImGui/Generator/cimgui/cimgui.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimplot/cimgui.h" -Force -Copy-Item -Path "lib/Hexa.NET.ImGui/Generator/cimgui/cimgui.h" -Destination "lib/Hexa.NET.ImGui/Generator/cimguizmo/cimgui.h" -Force - - -Set-Location -Path "lib/Hexa.NET.ImGui" -#dotnet workload restore -#dotnet restore - -# CD to generator directory -Set-Location -Path "Generator" - -# Build generator -dotnet build - -# Run generator -Read-Host -Prompt "Press any key to generate" | Out-Null -Set-Location -Path "bin/Debug/net9.0" -.\Generator.exe - -# Restore initial directory -Set-Location -Path $initialDirectory - -& "$PSScriptRoot\filter_imgui_bindings.ps1" diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/Dalamud.EnumGenerator.Sample.csproj b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/Dalamud.EnumGenerator.Sample.csproj deleted file mode 100644 index 225ea5f94..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/Dalamud.EnumGenerator.Sample.csproj +++ /dev/null @@ -1,20 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <TargetFramework>net9.0</TargetFramework> - <Nullable>enable</Nullable> - <RootNamespace>Dalamud.EnumGenerator.Sample</RootNamespace> - - <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> - </PropertyGroup> - - <ItemGroup> - <ProjectReference Include="..\Dalamud.EnumGenerator\Dalamud.EnumGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/> - </ItemGroup> - - <ItemGroup> - <None Remove="EnumCloneMap.txt"/> - <AdditionalFiles Include="EnumCloneMap.txt" /> - </ItemGroup> - -</Project> diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/EnumCloneMap.txt b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/EnumCloneMap.txt deleted file mode 100644 index a7db08bf3..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/EnumCloneMap.txt +++ /dev/null @@ -1,4 +0,0 @@ -# Format: Target.Full.TypeName = Source.Full.EnumTypeName -# Example: Generate a local enum MyGeneratedEnum in namespace Sample.Gen mapped to SourceEnums.SampleSourceEnum -Dalamud.EnumGenerator.Sample.Gen.MyGeneratedEnum = Dalamud.EnumGenerator.Sample.SourceEnums.SampleSourceEnum - diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/SourceEnums.cs b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/SourceEnums.cs deleted file mode 100644 index 407b4c151..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Sample/SourceEnums.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Dalamud.EnumGenerator.Sample.SourceEnums -{ - public enum SampleSourceEnum : long - { - First = 1, - Second = 2, - Third = 10000000000L - } -} diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/Dalamud.EnumGenerator.Tests.csproj b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/Dalamud.EnumGenerator.Tests.csproj deleted file mode 100644 index 50de4a7c8..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/Dalamud.EnumGenerator.Tests.csproj +++ /dev/null @@ -1,29 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <TargetFramework>net9.0</TargetFramework> - <Nullable>enable</Nullable> - - <IsPackable>false</IsPackable> - - <RootNamespace>Dalamud.EnumGenerator.Tests</RootNamespace> - - <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> - </PropertyGroup> - - <ItemGroup> - <PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit" Version="1.1.1"/> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2"/> - <PackageReference Include="xunit" Version="2.4.2"/> - <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"> - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> - <PrivateAssets>all</PrivateAssets> - </PackageReference> - </ItemGroup> - - <ItemGroup> - <ProjectReference Include="..\Dalamud.EnumGenerator\Dalamud.EnumGenerator.csproj"/> - </ItemGroup> - - -</Project> diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/EnumCloneMapTests.cs b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/EnumCloneMapTests.cs deleted file mode 100644 index f14279c53..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/EnumCloneMapTests.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Collections.Immutable; -using System.Linq; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Xunit; - -namespace Dalamud.EnumGenerator.Tests; - -public class EnumCloneMapTests -{ - [Fact] - public void ParseMappings_SimpleLines_ParsesCorrectly() - { - var text = @"# Comment line -My.Namespace.Target = Other.Namespace.Source - -Another.Target = Some.Source"; - - var results = Dalamud.EnumGenerator.EnumCloneGenerator.ParseMappings(text); - - Assert.Equal(2, results.Length); - Assert.Equal("My.Namespace.Target", results[0].TargetFullName); - Assert.Equal("Other.Namespace.Source", results[0].SourceFullName); - Assert.Equal("Another.Target", results[1].TargetFullName); - } - - [Fact] - public void Generator_ProducesFile_WhenSourceResolved() - { - // We'll create a compilation that contains a source enum type and add an AdditionalText mapping - var sourceEnum = @"namespace Foo.Bar { public enum SourceEnum { A = 1, B = 2 } }"; - - var mapText = "GeneratedNs.TargetEnum = Foo.Bar.SourceEnum"; - - var generator = new EnumCloneGenerator(); - var driver = CSharpGeneratorDriver.Create(generator) - .AddAdditionalTexts(ImmutableArray.Create<AdditionalText>(new Utils.TestAdditionalFile("EnumCloneMap.txt", mapText))); - - var compilation = CSharpCompilation.Create("TestGen", [CSharpSyntaxTree.ParseText(sourceEnum)], - [MetadataReference.CreateFromFile(typeof(object).Assembly.Location)]); - - driver.RunGeneratorsAndUpdateCompilation(compilation, out var newCompilation, out var diagnostics); - - var generated = newCompilation.SyntaxTrees.Select(t => t.FilePath).Where(p => p.EndsWith("TargetEnum.CloneEnum.g.cs")).ToArray(); - Assert.Single(generated); - } -} diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/Utils/TestAdditionalFile.cs b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/Utils/TestAdditionalFile.cs deleted file mode 100644 index e5c0df848..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator.Tests/Utils/TestAdditionalFile.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Threading; - -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Text; - -namespace Dalamud.EnumGenerator.Tests.Utils; - -public class TestAdditionalFile : AdditionalText -{ - private readonly SourceText text; - - public TestAdditionalFile(string path, string text) - { - Path = path; - this.text = SourceText.From(text); - } - - public override SourceText GetText(CancellationToken cancellationToken = new()) => this.text; - - public override string Path { get; } -} diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/AnalyzerReleases.Shipped.md b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/AnalyzerReleases.Shipped.md deleted file mode 100644 index 60b59dd99..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/AnalyzerReleases.Shipped.md +++ /dev/null @@ -1,3 +0,0 @@ -; Shipped analyzer releases -; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md - diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/AnalyzerReleases.Unshipped.md b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/AnalyzerReleases.Unshipped.md deleted file mode 100644 index e90084796..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/AnalyzerReleases.Unshipped.md +++ /dev/null @@ -1,9 +0,0 @@ -; Unshipped analyzer release -; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md - -### New Rules - -Rule ID | Category | Severity | Notes ---------|----------|----------|------- -ENUMGEN001 | EnumGenerator | Warning | SourceGeneratorWithAttributes -ENUMGEN002 | EnumGenerator | Warning | SourceGeneratorWithAttributes \ No newline at end of file diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/Dalamud.EnumGenerator.csproj b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/Dalamud.EnumGenerator.csproj deleted file mode 100644 index 106b036a8..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/Dalamud.EnumGenerator.csproj +++ /dev/null @@ -1,33 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <TargetFramework>netstandard2.0</TargetFramework> - <IsPackable>false</IsPackable> - <Nullable>enable</Nullable> - <LangVersion>latest</LangVersion> - - <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> - <IsRoslynComponent>true</IsRoslynComponent> - - <RootNamespace>Dalamud.EnumGenerator</RootNamespace> - <PackageId>Dalamud.EnumGenerator</PackageId> - - <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> - </PropertyGroup> - - <ItemGroup> - <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4"> - <PrivateAssets>all</PrivateAssets> - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> - </PackageReference> - <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.0"/> - <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.3.0"/> - </ItemGroup> - - <ItemGroup> - <AdditionalFiles Include="AnalyzerReleases.Shipped.md" /> - <AdditionalFiles Include="AnalyzerReleases.Unshipped.md" /> - </ItemGroup> - - -</Project> diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/EnumCloneGenerator.cs b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/EnumCloneGenerator.cs deleted file mode 100644 index 10cf0723c..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/EnumCloneGenerator.cs +++ /dev/null @@ -1,193 +0,0 @@ -using System; -using System.Collections.Immutable; -using System.IO; -using System.Linq; -using System.Text; -using System.Globalization; - -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Text; - -namespace Dalamud.EnumGenerator; - -[Generator] -public class EnumCloneGenerator : IIncrementalGenerator -{ - private const string NewLine = "\r\n"; - - private const string MappingFileName = "EnumCloneMap.txt"; - - private static readonly DiagnosticDescriptor MissingSourceDescriptor = new( - id: "ENUMGEN001", - title: "Source enum not found", - messageFormat: "Source enum '{0}' could not be resolved by the compilation", - category: "EnumGenerator", - defaultSeverity: DiagnosticSeverity.Warning, - isEnabledByDefault: true); - - private static readonly DiagnosticDescriptor DuplicateTargetDescriptor = new( - id: "ENUMGEN002", - title: "Duplicate target mapping", - messageFormat: "Target enum '{0}' is mapped multiple times; generation skipped for this target", - category: "EnumGenerator", - defaultSeverity: DiagnosticSeverity.Warning, - isEnabledByDefault: true); - - public void Initialize(IncrementalGeneratorInitializationContext context) - { - // Read mappings from additional files named EnumCloneMap.txt - var mappingEntries = context.AdditionalTextsProvider - .Where(at => Path.GetFileName(at.Path).Equals(MappingFileName, StringComparison.OrdinalIgnoreCase)) - .SelectMany((at, _) => ParseMappings(at.GetText()?.ToString() ?? string.Empty)); - - // Combine with compilation so we can resolve types - var compilationAndMaps = context.CompilationProvider.Combine(mappingEntries.Collect()); - - context.RegisterSourceOutput(compilationAndMaps, (spc, pair) => - { - var compilation = pair.Left; - var maps = pair.Right; - - // Detect duplicate targets first and report diagnostics - var duplicateTargets = maps.GroupBy(m => m.TargetFullName, StringComparer.OrdinalIgnoreCase) - .Where(g => g.Count() > 1) - .Select(g => g.Key) - .ToImmutableArray(); - foreach (var dup in duplicateTargets) - { - var diag = Diagnostic.Create(DuplicateTargetDescriptor, Location.None, dup); - spc.ReportDiagnostic(diag); - } - - foreach (var (targetFullName, sourceFullName) in maps) - { - if (string.IsNullOrWhiteSpace(targetFullName) || string.IsNullOrWhiteSpace(sourceFullName)) - continue; - - if (duplicateTargets.Contains(targetFullName, StringComparer.OrdinalIgnoreCase)) - continue; - - // Resolve the source enum type by metadata name (namespace.type) - var sourceSymbol = compilation.GetTypeByMetadataName(sourceFullName); - if (sourceSymbol is null) - { - // Report diagnostic for missing source type - var diag = Diagnostic.Create(MissingSourceDescriptor, Location.None, sourceFullName); - spc.ReportDiagnostic(diag); - continue; - } - - if (sourceSymbol.TypeKind != TypeKind.Enum) - continue; - - var sourceNamed = sourceSymbol; // GetTypeByMetadataName already returns INamedTypeSymbol - - // Split target into namespace and type name - string? targetNamespace = null; - var targetName = targetFullName; - var lastDot = targetFullName.LastIndexOf('.'); - if (lastDot >= 0) - { - targetNamespace = targetFullName.Substring(0, lastDot); - targetName = targetFullName.Substring(lastDot + 1); - } - - var underlyingType = sourceNamed.EnumUnderlyingType; - var underlyingDisplay = underlyingType?.ToDisplayString() ?? "int"; - - var fields = sourceNamed.GetMembers() - .OfType<IFieldSymbol>() - .Where(f => f.IsStatic && f.HasConstantValue) - .ToArray(); - - var memberLines = fields.Select(f => - { - var name = f.Name; - var constValue = f.ConstantValue; - string literal; - - var st = underlyingType?.SpecialType ?? SpecialType.System_Int32; - - if (constValue is null) - { - literal = "0"; - } - else if (st == SpecialType.System_UInt64) - { - literal = Convert.ToString(constValue, CultureInfo.InvariantCulture) + "UL"; - } - else if (st == SpecialType.System_UInt32) - { - literal = Convert.ToString(constValue, CultureInfo.InvariantCulture) + "U"; - } - else if (st == SpecialType.System_Int64) - { - literal = Convert.ToString(constValue, CultureInfo.InvariantCulture) + "L"; - } - else - { - literal = Convert.ToString(constValue, CultureInfo.InvariantCulture) ?? throw new InvalidOperationException("Unable to convert enum constant value to string."); - } - - return $" {name} = {literal},"; - }); - - var membersText = string.Join(NewLine, memberLines); - - var nsPrefix = targetNamespace is null ? string.Empty : $"namespace {targetNamespace};" + NewLine + NewLine; - - var sourceFullyQualified = sourceNamed.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat); - - var code = "// <auto-generated/>" + NewLine + NewLine - + nsPrefix - + $"public enum {targetName} : {underlyingDisplay}" + NewLine - + "{" + NewLine - + membersText + NewLine - + "}" + NewLine + NewLine; - - var extClassName = targetName + "Conversions"; - var extMethodName = "ToDalamud" + targetName; - - var extClass = $"public static class {extClassName}" + NewLine - + "{" + NewLine - + $" public static {targetName} {extMethodName}(this {sourceFullyQualified} value) => ({targetName})(({underlyingDisplay})value);" + NewLine - + "}" + NewLine; - - code += extClass; - - var hintName = $"{targetName}.CloneEnum.g.cs"; - spc.AddSource(hintName, SourceText.From(code, Encoding.UTF8)); - } - }); - } - - internal static ImmutableArray<(string TargetFullName, string SourceFullName)> ParseMappings(string text) - { - var builder = ImmutableArray.CreateBuilder<(string, string)>(); - using var reader = new StringReader(text); - string? line; - while ((line = reader.ReadLine()) != null) - { - // Remove comments starting with # - var commentIndex = line.IndexOf('#'); - var content = commentIndex >= 0 ? line.Substring(0, commentIndex) : line; - content = content.Trim(); - if (string.IsNullOrEmpty(content)) - continue; - - // Expected format: Target.Full.Name = Source.Full.Name - var idx = content.IndexOf('='); - if (idx <= 0) - continue; - - var left = content.Substring(0, idx).Trim(); - var right = content.Substring(idx + 1).Trim(); - if (string.IsNullOrEmpty(left) || string.IsNullOrEmpty(right)) - continue; - - builder.Add((left, right)); - } - - return builder.ToImmutable(); - } -} diff --git a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/Properties/AssemblyInfo.cs b/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/Properties/AssemblyInfo.cs deleted file mode 100644 index 6eac4d12e..000000000 --- a/generators/Dalamud.EnumGenerator/Dalamud.EnumGenerator/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,4 +0,0 @@ -using System.Runtime.CompilerServices; - -[assembly: InternalsVisibleTo("Dalamud.EnumGenerator.Tests")] - diff --git a/generators/Directory.Build.props b/generators/Directory.Build.props deleted file mode 100644 index f699838f7..000000000 --- a/generators/Directory.Build.props +++ /dev/null @@ -1,5 +0,0 @@ -<Project> - <ItemGroup Label="Code Analysis"> - <PackageReference Remove="Microsoft.CodeAnalysis.BannedApiAnalyzers" /> - </ItemGroup> -</Project> diff --git a/global.json b/global.json index 93dd0dd1f..7e8286fbe 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "10.0.0", + "version": "8.0.0", "rollForward": "latestMinor", "allowPrerelease": true } -} \ No newline at end of file +} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions.gen.cs deleted file mode 100644 index 8001f2632..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions.gen.cs +++ /dev/null @@ -1,695 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -/* Functions.000.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.001.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.002.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.003.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.004.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.005.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.006.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.007.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.008.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.009.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.010.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.011.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.012.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.013.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.014.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.015.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.016.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.017.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.018.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.019.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.020.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.021.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.022.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.023.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.024.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.025.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.026.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.027.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.028.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.029.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.030.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.031.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.032.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.033.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.034.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.035.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.036.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.037.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.038.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.039.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.040.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.041.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.042.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.043.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.044.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.045.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.046.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.047.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.048.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.049.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.050.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.051.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.052.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.053.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.054.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.055.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.056.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.057.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.058.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.059.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.060.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.061.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.062.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.063.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.064.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.065.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.066.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.067.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.068.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.069.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.070.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.071.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.072.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.073.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.074.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.075.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.076.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.077.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.078.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.079.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.080.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.081.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.082.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.083.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.084.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.085.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.086.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.087.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.088.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.089.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.090.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.091.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.092.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.093.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.094.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.095.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.096.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.097.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGui.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGui.gen.cs deleted file mode 100644 index 8db9fb7de..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGui.gen.cs +++ /dev/null @@ -1,8898 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGui -{ - public static Vector2* ImVec2() - { - Vector2* ret = ImGuiNative.ImVec2(); - return ret; - } - public static Vector2* ImVec2(float x, float y) - { - Vector2* ret = ImGuiNative.ImVec2(x, y); - return ret; - } - public static void Destroy(Vector2* self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(ref Vector2 self) - { - fixed (Vector2* pself = &self) - { - ImGuiNative.Destroy((Vector2*)pself); - } - } - public static void Destroy(Vector4* self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(ref Vector4 self) - { - fixed (Vector4* pself = &self) - { - ImGuiNative.Destroy((Vector4*)pself); - } - } - public static void Destroy(this ImGuiStylePtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiStyle self) - { - fixed (ImGuiStyle* pself = &self) - { - ImGuiNative.Destroy((ImGuiStyle*)pself); - } - } - public static void Destroy(this ImGuiIOPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.Destroy((ImGuiIO*)pself); - } - } - public static void Destroy(this ImGuiInputTextCallbackDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - ImGuiNative.Destroy((ImGuiInputTextCallbackData*)pself); - } - } - public static void Destroy(this ImGuiWindowClassPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiWindowClass self) - { - fixed (ImGuiWindowClass* pself = &self) - { - ImGuiNative.Destroy((ImGuiWindowClass*)pself); - } - } - public static void Destroy(this ImGuiPayloadPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - ImGuiNative.Destroy((ImGuiPayload*)pself); - } - } - public static void Destroy(this ImGuiTableColumnSortSpecsPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTableColumnSortSpecs self) - { - fixed (ImGuiTableColumnSortSpecs* pself = &self) - { - ImGuiNative.Destroy((ImGuiTableColumnSortSpecs*)pself); - } - } - public static void Destroy(this ImGuiTableSortSpecsPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTableSortSpecs self) - { - fixed (ImGuiTableSortSpecs* pself = &self) - { - ImGuiNative.Destroy((ImGuiTableSortSpecs*)pself); - } - } - public static void Destroy(this ImGuiOnceUponAFramePtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiOnceUponAFrame self) - { - fixed (ImGuiOnceUponAFrame* pself = &self) - { - ImGuiNative.Destroy((ImGuiOnceUponAFrame*)pself); - } - } - public static void Destroy(this ImGuiTextFilterPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - ImGuiNative.Destroy((ImGuiTextFilter*)pself); - } - } - public static void Destroy(this ImGuiTextRangePtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTextRange self) - { - fixed (ImGuiTextRange* pself = &self) - { - ImGuiNative.Destroy((ImGuiTextRange*)pself); - } - } - public static void Destroy(this ImGuiTextBufferPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - ImGuiNative.Destroy((ImGuiTextBuffer*)pself); - } - } - public static void Destroy(this ImGuiStoragePairPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiStoragePair self) - { - fixed (ImGuiStoragePair* pself = &self) - { - ImGuiNative.Destroy((ImGuiStoragePair*)pself); - } - } - public static void Destroy(this ImGuiListClipperPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - ImGuiNative.Destroy((ImGuiListClipper*)pself); - } - } - public static void Destroy(this ImColorPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImColor self) - { - fixed (ImColor* pself = &self) - { - ImGuiNative.Destroy((ImColor*)pself); - } - } - public static void Destroy(this ImDrawCmdPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - ImGuiNative.Destroy((ImDrawCmd*)pself); - } - } - public static void Destroy(this ImDrawListSplitterPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ImGuiNative.Destroy((ImDrawListSplitter*)pself); - } - } - public static void Destroy(this ImDrawListPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.Destroy((ImDrawList*)pself); - } - } - public static void Destroy(this ImDrawDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - ImGuiNative.Destroy((ImDrawData*)pself); - } - } - public static void Destroy(this ImFontConfigPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImFontConfig self) - { - fixed (ImFontConfig* pself = &self) - { - ImGuiNative.Destroy((ImFontConfig*)pself); - } - } - public static void Destroy(this ImFontGlyphRangesBuilderPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ImGuiNative.Destroy((ImFontGlyphRangesBuilder*)pself); - } - } - public static void Destroy(this ImFontAtlasCustomRectPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImFontAtlasCustomRect self) - { - fixed (ImFontAtlasCustomRect* pself = &self) - { - ImGuiNative.Destroy((ImFontAtlasCustomRect*)pself); - } - } - public static void Destroy(this ImFontAtlasPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.Destroy((ImFontAtlas*)pself); - } - } - public static void Destroy(this ImFontPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImFont self) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.Destroy((ImFont*)pself); - } - } - public static void Destroy(this ImGuiViewportPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - ImGuiNative.Destroy((ImGuiViewport*)pself); - } - } - public static void Destroy(this ImGuiPlatformIOPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiPlatformIO self) - { - fixed (ImGuiPlatformIO* pself = &self) - { - ImGuiNative.Destroy((ImGuiPlatformIO*)pself); - } - } - public static void Destroy(this ImGuiPlatformMonitorPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiPlatformMonitor self) - { - fixed (ImGuiPlatformMonitor* pself = &self) - { - ImGuiNative.Destroy((ImGuiPlatformMonitor*)pself); - } - } - public static void Destroy(this ImGuiPlatformImeDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiPlatformImeData self) - { - fixed (ImGuiPlatformImeData* pself = &self) - { - ImGuiNative.Destroy((ImGuiPlatformImeData*)pself); - } - } - public static void Destroy(ImVec1Ptr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(ref ImVec1 self) - { - fixed (ImVec1* pself = &self) - { - ImGuiNative.Destroy((ImVec1*)pself); - } - } - public static void Destroy(ImVec2IhPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(ref ImVec2Ih self) - { - fixed (ImVec2Ih* pself = &self) - { - ImGuiNative.Destroy((ImVec2Ih*)pself); - } - } - public static void Destroy(this ImRectPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiNative.Destroy((ImRect*)pself); - } - } - public static void Destroy(this ImDrawListSharedDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImDrawListSharedData self) - { - fixed (ImDrawListSharedData* pself = &self) - { - ImGuiNative.Destroy((ImDrawListSharedData*)pself); - } - } - public static void Destroy(this ImGuiStyleModPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiStyleMod self) - { - fixed (ImGuiStyleMod* pself = &self) - { - ImGuiNative.Destroy((ImGuiStyleMod*)pself); - } - } - public static void Destroy(this ImGuiComboPreviewDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiComboPreviewData self) - { - fixed (ImGuiComboPreviewData* pself = &self) - { - ImGuiNative.Destroy((ImGuiComboPreviewData*)pself); - } - } - public static void Destroy(this ImGuiMenuColumnsPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiMenuColumns self) - { - fixed (ImGuiMenuColumns* pself = &self) - { - ImGuiNative.Destroy((ImGuiMenuColumns*)pself); - } - } - public static void Destroy(this ImGuiInputTextStatePtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiNative.Destroy((ImGuiInputTextState*)pself); - } - } - public static void Destroy(this ImGuiPopupDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiPopupData self) - { - fixed (ImGuiPopupData* pself = &self) - { - ImGuiNative.Destroy((ImGuiPopupData*)pself); - } - } - public static void Destroy(this ImGuiNextWindowDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiNextWindowData self) - { - fixed (ImGuiNextWindowData* pself = &self) - { - ImGuiNative.Destroy((ImGuiNextWindowData*)pself); - } - } - public static void Destroy(this ImGuiNextItemDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiNextItemData self) - { - fixed (ImGuiNextItemData* pself = &self) - { - ImGuiNative.Destroy((ImGuiNextItemData*)pself); - } - } - public static void Destroy(this ImGuiLastItemDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiLastItemData self) - { - fixed (ImGuiLastItemData* pself = &self) - { - ImGuiNative.Destroy((ImGuiLastItemData*)pself); - } - } - public static void Destroy(this ImGuiStackSizesPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - ImGuiNative.Destroy((ImGuiStackSizes*)pself); - } - } - public static void Destroy(this ImGuiPtrOrIndexPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiPtrOrIndex self) - { - fixed (ImGuiPtrOrIndex* pself = &self) - { - ImGuiNative.Destroy((ImGuiPtrOrIndex*)pself); - } - } - public static void Destroy(this ImGuiInputEventPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiInputEvent self) - { - fixed (ImGuiInputEvent* pself = &self) - { - ImGuiNative.Destroy((ImGuiInputEvent*)pself); - } - } - public static void Destroy(this ImGuiListClipperDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiListClipperData self) - { - fixed (ImGuiListClipperData* pself = &self) - { - ImGuiNative.Destroy((ImGuiListClipperData*)pself); - } - } - public static void Destroy(this ImGuiNavItemDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiNavItemData self) - { - fixed (ImGuiNavItemData* pself = &self) - { - ImGuiNative.Destroy((ImGuiNavItemData*)pself); - } - } - public static void Destroy(this ImGuiOldColumnDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiOldColumnData self) - { - fixed (ImGuiOldColumnData* pself = &self) - { - ImGuiNative.Destroy((ImGuiOldColumnData*)pself); - } - } - public static void Destroy(this ImGuiOldColumnsPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiOldColumns self) - { - fixed (ImGuiOldColumns* pself = &self) - { - ImGuiNative.Destroy((ImGuiOldColumns*)pself); - } - } - public static void Destroy(this ImGuiDockContextPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiDockContext self) - { - fixed (ImGuiDockContext* pself = &self) - { - ImGuiNative.Destroy((ImGuiDockContext*)pself); - } - } - public static void Destroy(this ImGuiWindowSettingsPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* pself = &self) - { - ImGuiNative.Destroy((ImGuiWindowSettings*)pself); - } - } - public static void Destroy(this ImGuiSettingsHandlerPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiSettingsHandler self) - { - fixed (ImGuiSettingsHandler* pself = &self) - { - ImGuiNative.Destroy((ImGuiSettingsHandler*)pself); - } - } - public static void Destroy(this ImGuiMetricsConfigPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiMetricsConfig self) - { - fixed (ImGuiMetricsConfig* pself = &self) - { - ImGuiNative.Destroy((ImGuiMetricsConfig*)pself); - } - } - public static void Destroy(this ImGuiStackLevelInfoPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiStackLevelInfo self) - { - fixed (ImGuiStackLevelInfo* pself = &self) - { - ImGuiNative.Destroy((ImGuiStackLevelInfo*)pself); - } - } - public static void Destroy(this ImGuiStackToolPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiStackTool self) - { - fixed (ImGuiStackTool* pself = &self) - { - ImGuiNative.Destroy((ImGuiStackTool*)pself); - } - } - public static void Destroy(this ImGuiContextHookPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiContextHook self) - { - fixed (ImGuiContextHook* pself = &self) - { - ImGuiNative.Destroy((ImGuiContextHook*)pself); - } - } - public static void Destroy(this ImGuiContextPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiContext self) - { - fixed (ImGuiContext* pself = &self) - { - ImGuiNative.Destroy((ImGuiContext*)pself); - } - } - public static void Destroy(this ImGuiTabItemPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTabItem self) - { - fixed (ImGuiTabItem* pself = &self) - { - ImGuiNative.Destroy((ImGuiTabItem*)pself); - } - } - public static void Destroy(this ImGuiTabBarPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTabBar self) - { - fixed (ImGuiTabBar* pself = &self) - { - ImGuiNative.Destroy((ImGuiTabBar*)pself); - } - } - public static void Destroy(this ImGuiTableColumnPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTableColumn self) - { - fixed (ImGuiTableColumn* pself = &self) - { - ImGuiNative.Destroy((ImGuiTableColumn*)pself); - } - } - public static void Destroy(this ImGuiTableInstanceDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTableInstanceData self) - { - fixed (ImGuiTableInstanceData* pself = &self) - { - ImGuiNative.Destroy((ImGuiTableInstanceData*)pself); - } - } - public static void Destroy(this ImGuiTableTempDataPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTableTempData self) - { - fixed (ImGuiTableTempData* pself = &self) - { - ImGuiNative.Destroy((ImGuiTableTempData*)pself); - } - } - public static void Destroy(this ImGuiTableColumnSettingsPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTableColumnSettings self) - { - fixed (ImGuiTableColumnSettings* pself = &self) - { - ImGuiNative.Destroy((ImGuiTableColumnSettings*)pself); - } - } - public static void Destroy(this ImGuiTableSettingsPtr self) - { - ImGuiNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTableSettings self) - { - fixed (ImGuiTableSettings* pself = &self) - { - ImGuiNative.Destroy((ImGuiTableSettings*)pself); - } - } - public static Vector4* ImVec4() - { - Vector4* ret = ImGuiNative.ImVec4(); - return ret; - } - public static Vector4* ImVec4(float x, float y, float z, float w) - { - Vector4* ret = ImGuiNative.ImVec4(x, y, z, w); - return ret; - } - public static ImGuiContextPtr CreateContext(ImFontAtlasPtr sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiNative.CreateContext(sharedFontAtlas); - return ret; - } - public static ImGuiContextPtr CreateContext() - { - ImGuiContextPtr ret = ImGuiNative.CreateContext((ImFontAtlas*)(default)); - return ret; - } - public static ImGuiContextPtr CreateContext(ref ImFontAtlas sharedFontAtlas) - { - fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiNative.CreateContext((ImFontAtlas*)psharedFontAtlas); - return ret; - } - } - public static void DestroyContext(ImGuiContextPtr ctx) - { - ImGuiNative.DestroyContext(ctx); - } - public static void DestroyContext() - { - ImGuiNative.DestroyContext((ImGuiContext*)(default)); - } - public static void DestroyContext(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiNative.DestroyContext((ImGuiContext*)pctx); - } - } - public static ImGuiContextPtr GetCurrentContext() - { - ImGuiContextPtr ret = ImGuiNative.GetCurrentContext(); - return ret; - } - public static void SetCurrentContext(ImGuiContextPtr ctx) - { - ImGuiNative.SetCurrentContext(ctx); - } - public static void SetCurrentContext(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiNative.SetCurrentContext((ImGuiContext*)pctx); - } - } - public static ImGuiIOPtr GetIO() - { - ImGuiIOPtr ret = ImGuiNative.GetIO(); - return ret; - } - public static ImGuiStylePtr GetStyle() - { - ImGuiStylePtr ret = ImGuiNative.GetStyle(); - return ret; - } - public static void NewFrame() - { - ImGuiNative.NewFrame(); - } - public static void EndFrame() - { - ImGuiNative.EndFrame(); - } - public static void Render() - { - ImGuiNative.Render(); - } - public static ImDrawDataPtr GetDrawData() - { - ImDrawDataPtr ret = ImGuiNative.GetDrawData(); - return ret; - } - public static void ShowDemoWindow(bool* pOpen) - { - ImGuiNative.ShowDemoWindow(pOpen); - } - public static void ShowDemoWindow() - { - ImGuiNative.ShowDemoWindow((bool*)(default)); - } - public static void ShowDemoWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ImGuiNative.ShowDemoWindow((bool*)ppOpen); - } - } - public static void ShowMetricsWindow(bool* pOpen) - { - ImGuiNative.ShowMetricsWindow(pOpen); - } - public static void ShowMetricsWindow() - { - ImGuiNative.ShowMetricsWindow((bool*)(default)); - } - public static void ShowMetricsWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ImGuiNative.ShowMetricsWindow((bool*)ppOpen); - } - } - public static void ShowDebugLogWindow(bool* pOpen) - { - ImGuiNative.ShowDebugLogWindow(pOpen); - } - public static void ShowDebugLogWindow() - { - ImGuiNative.ShowDebugLogWindow((bool*)(default)); - } - public static void ShowDebugLogWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ImGuiNative.ShowDebugLogWindow((bool*)ppOpen); - } - } - public static void ShowStackToolWindow(bool* pOpen) - { - ImGuiNative.ShowStackToolWindow(pOpen); - } - public static void ShowStackToolWindow() - { - ImGuiNative.ShowStackToolWindow((bool*)(default)); - } - public static void ShowStackToolWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ImGuiNative.ShowStackToolWindow((bool*)ppOpen); - } - } - public static void ShowAboutWindow(bool* pOpen) - { - ImGuiNative.ShowAboutWindow(pOpen); - } - public static void ShowAboutWindow() - { - ImGuiNative.ShowAboutWindow((bool*)(default)); - } - public static void ShowAboutWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ImGuiNative.ShowAboutWindow((bool*)ppOpen); - } - } - public static void ShowStyleEditor(ImGuiStylePtr reference) - { - ImGuiNative.ShowStyleEditor(reference); - } - public static void ShowStyleEditor() - { - ImGuiNative.ShowStyleEditor((ImGuiStyle*)(default)); - } - public static void ShowStyleEditor(ref ImGuiStyle reference) - { - fixed (ImGuiStyle* preference = &reference) - { - ImGuiNative.ShowStyleEditor((ImGuiStyle*)preference); - } - } - public static void ShowUserGuide() - { - ImGuiNative.ShowUserGuide(); - } - public static void StyleColorsDark(ImGuiStylePtr dst) - { - ImGuiNative.StyleColorsDark(dst); - } - public static void StyleColorsDark() - { - ImGuiNative.StyleColorsDark((ImGuiStyle*)(default)); - } - public static void StyleColorsDark(ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - ImGuiNative.StyleColorsDark((ImGuiStyle*)pdst); - } - } - public static void StyleColorsLight(ImGuiStylePtr dst) - { - ImGuiNative.StyleColorsLight(dst); - } - public static void StyleColorsLight() - { - ImGuiNative.StyleColorsLight((ImGuiStyle*)(default)); - } - public static void StyleColorsLight(ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - ImGuiNative.StyleColorsLight((ImGuiStyle*)pdst); - } - } - public static void StyleColorsClassic(ImGuiStylePtr dst) - { - ImGuiNative.StyleColorsClassic(dst); - } - public static void StyleColorsClassic() - { - ImGuiNative.StyleColorsClassic((ImGuiStyle*)(default)); - } - public static void StyleColorsClassic(ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - ImGuiNative.StyleColorsClassic((ImGuiStyle*)pdst); - } - } - public static void End() - { - ImGuiNative.End(); - } - public static void End(this ImGuiListClipperPtr self) - { - ImGuiNative.End(self); - } - public static void End(this ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - ImGuiNative.End((ImGuiListClipper*)pself); - } - } - public static void EndChild() - { - ImGuiNative.EndChild(); - } - public static bool IsWindowAppearing() - { - byte ret = ImGuiNative.IsWindowAppearing(); - return ret != 0; - } - public static bool IsWindowCollapsed() - { - byte ret = ImGuiNative.IsWindowCollapsed(); - return ret != 0; - } - public static bool IsWindowFocused(ImGuiFocusedFlags flags) - { - byte ret = ImGuiNative.IsWindowFocused(flags); - return ret != 0; - } - public static bool IsWindowFocused() - { - byte ret = ImGuiNative.IsWindowFocused((ImGuiFocusedFlags)(0)); - return ret != 0; - } - public static bool IsWindowHovered(ImGuiHoveredFlags flags) - { - byte ret = ImGuiNative.IsWindowHovered(flags); - return ret != 0; - } - public static bool IsWindowHovered() - { - byte ret = ImGuiNative.IsWindowHovered((ImGuiHoveredFlags)(0)); - return ret != 0; - } - public static ImDrawListPtr GetWindowDrawList() - { - ImDrawListPtr ret = ImGuiNative.GetWindowDrawList(); - return ret; - } - public static float GetWindowDpiScale() - { - float ret = ImGuiNative.GetWindowDpiScale(); - return ret; - } - public static Vector2 GetWindowPos() - { - Vector2 ret; - ImGuiNative.GetWindowPos(&ret); - return ret; - } - public static void GetWindowPos(Vector2* pOut) - { - ImGuiNative.GetWindowPos(pOut); - } - public static void GetWindowPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetWindowPos((Vector2*)ppOut); - } - } - public static Vector2 GetWindowSize() - { - Vector2 ret; - ImGuiNative.GetWindowSize(&ret); - return ret; - } - public static void GetWindowSize(Vector2* pOut) - { - ImGuiNative.GetWindowSize(pOut); - } - public static void GetWindowSize(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetWindowSize((Vector2*)ppOut); - } - } - public static float GetWindowWidth() - { - float ret = ImGuiNative.GetWindowWidth(); - return ret; - } - public static float GetWindowHeight() - { - float ret = ImGuiNative.GetWindowHeight(); - return ret; - } - public static ImGuiViewportPtr GetWindowViewport() - { - ImGuiViewportPtr ret = ImGuiNative.GetWindowViewport(); - return ret; - } - public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot) - { - ImGuiNative.SetNextWindowPos(pos, cond, pivot); - } - public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond) - { - ImGuiNative.SetNextWindowPos(pos, cond, (Vector2)(new Vector2(0,0))); - } - public static void SetNextWindowPos(Vector2 pos) - { - ImGuiNative.SetNextWindowPos(pos, (ImGuiCond)(0), (Vector2)(new Vector2(0,0))); - } - public static void SetNextWindowPos(Vector2 pos, Vector2 pivot) - { - ImGuiNative.SetNextWindowPos(pos, (ImGuiCond)(0), pivot); - } - public static void SetNextWindowSize(Vector2 size, ImGuiCond cond) - { - ImGuiNative.SetNextWindowSize(size, cond); - } - public static void SetNextWindowSize(Vector2 size) - { - ImGuiNative.SetNextWindowSize(size, (ImGuiCond)(0)); - } - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) - { - ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, customCallback, customCallbackData); - } - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback) - { - ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, customCallback, (void*)(default)); - } - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax) - { - ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); - } - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, void* customCallbackData) - { - ImGuiNative.SetNextWindowSizeConstraints(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); - } - public static void SetNextWindowContentSize(Vector2 size) - { - ImGuiNative.SetNextWindowContentSize(size); - } - public static void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) - { - ImGuiNative.SetNextWindowCollapsed(collapsed ? (byte)1 : (byte)0, cond); - } - public static void SetNextWindowCollapsed(bool collapsed) - { - ImGuiNative.SetNextWindowCollapsed(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - public static void SetNextWindowFocus() - { - ImGuiNative.SetNextWindowFocus(); - } - public static void SetNextWindowBgAlpha(float alpha) - { - ImGuiNative.SetNextWindowBgAlpha(alpha); - } - public static void SetNextWindowViewport(uint viewportId) - { - ImGuiNative.SetNextWindowViewport(viewportId); - } - public static void SetWindowFontScale(float scale) - { - ImGuiNative.SetWindowFontScale(scale); - } - public static Vector2 GetContentRegionAvail() - { - Vector2 ret; - ImGuiNative.GetContentRegionAvail(&ret); - return ret; - } - public static void GetContentRegionAvail(Vector2* pOut) - { - ImGuiNative.GetContentRegionAvail(pOut); - } - public static void GetContentRegionAvail(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetContentRegionAvail((Vector2*)ppOut); - } - } - public static Vector2 GetContentRegionMax() - { - Vector2 ret; - ImGuiNative.GetContentRegionMax(&ret); - return ret; - } - public static void GetContentRegionMax(Vector2* pOut) - { - ImGuiNative.GetContentRegionMax(pOut); - } - public static void GetContentRegionMax(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetContentRegionMax((Vector2*)ppOut); - } - } - public static Vector2 GetWindowContentRegionMin() - { - Vector2 ret; - ImGuiNative.GetWindowContentRegionMin(&ret); - return ret; - } - public static void GetWindowContentRegionMin(Vector2* pOut) - { - ImGuiNative.GetWindowContentRegionMin(pOut); - } - public static void GetWindowContentRegionMin(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetWindowContentRegionMin((Vector2*)ppOut); - } - } - public static Vector2 GetWindowContentRegionMax() - { - Vector2 ret; - ImGuiNative.GetWindowContentRegionMax(&ret); - return ret; - } - public static void GetWindowContentRegionMax(Vector2* pOut) - { - ImGuiNative.GetWindowContentRegionMax(pOut); - } - public static void GetWindowContentRegionMax(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetWindowContentRegionMax((Vector2*)ppOut); - } - } - public static float GetScrollX() - { - float ret = ImGuiNative.GetScrollX(); - return ret; - } - public static float GetScrollY() - { - float ret = ImGuiNative.GetScrollY(); - return ret; - } - public static void SetScrollX(float scrollX) - { - ImGuiNative.SetScrollX(scrollX); - } - public static void SetScrollY(float scrollY) - { - ImGuiNative.SetScrollY(scrollY); - } - public static float GetScrollMaxX() - { - float ret = ImGuiNative.GetScrollMaxX(); - return ret; - } - public static float GetScrollMaxY() - { - float ret = ImGuiNative.GetScrollMaxY(); - return ret; - } - public static void SetScrollHereX(float centerXRatio) - { - ImGuiNative.SetScrollHereX(centerXRatio); - } - public static void SetScrollHereX() - { - ImGuiNative.SetScrollHereX((float)(0.5f)); - } - public static void SetScrollHereY(float centerYRatio) - { - ImGuiNative.SetScrollHereY(centerYRatio); - } - public static void SetScrollHereY() - { - ImGuiNative.SetScrollHereY((float)(0.5f)); - } - public static void SetScrollFromPosX(float localX, float centerXRatio) - { - ImGuiNative.SetScrollFromPosX(localX, centerXRatio); - } - public static void SetScrollFromPosX(float localX) - { - ImGuiNative.SetScrollFromPosX(localX, (float)(0.5f)); - } - public static void SetScrollFromPosY(float localY, float centerYRatio) - { - ImGuiNative.SetScrollFromPosY(localY, centerYRatio); - } - public static void SetScrollFromPosY(float localY) - { - ImGuiNative.SetScrollFromPosY(localY, (float)(0.5f)); - } - public static void PushFont(ImFontPtr font) - { - ImGuiNative.PushFont(font); - } - public static void PushFont(ref ImFont font) - { - fixed (ImFont* pfont = &font) - { - ImGuiNative.PushFont((ImFont*)pfont); - } - } - public static void PopFont() - { - ImGuiNative.PopFont(); - } - public static void PushStyleColor(ImGuiCol idx, uint col) - { - ImGuiNative.PushStyleColor(idx, col); - } - public static void PushStyleColor(ImGuiCol idx, Vector4 col) - { - ImGuiNative.PushStyleColor(idx, col); - } - public static void PopStyleColor(int count) - { - ImGuiNative.PopStyleColor(count); - } - public static void PopStyleColor() - { - ImGuiNative.PopStyleColor((int)(1)); - } - public static void PushStyleVar(ImGuiStyleVar idx, float val) - { - ImGuiNative.PushStyleVar(idx, val); - } - public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val) - { - ImGuiNative.PushStyleVar(idx, val); - } - public static void PopStyleVar(int count) - { - ImGuiNative.PopStyleVar(count); - } - public static void PopStyleVar() - { - ImGuiNative.PopStyleVar((int)(1)); - } - public static void PushAllowKeyboardFocus(bool allowKeyboardFocus) - { - ImGuiNative.PushAllowKeyboardFocus(allowKeyboardFocus ? (byte)1 : (byte)0); - } - public static void PopAllowKeyboardFocus() - { - ImGuiNative.PopAllowKeyboardFocus(); - } - public static void PushButtonRepeat(bool repeat) - { - ImGuiNative.PushButtonRepeat(repeat ? (byte)1 : (byte)0); - } - public static void PopButtonRepeat() - { - ImGuiNative.PopButtonRepeat(); - } - public static void PushItemWidth(float itemWidth) - { - ImGuiNative.PushItemWidth(itemWidth); - } - public static void PopItemWidth() - { - ImGuiNative.PopItemWidth(); - } - public static void SetNextItemWidth(float itemWidth) - { - ImGuiNative.SetNextItemWidth(itemWidth); - } - public static float CalcItemWidth() - { - float ret = ImGuiNative.CalcItemWidth(); - return ret; - } - public static void PushTextWrapPos(float wrapLocalPosX) - { - ImGuiNative.PushTextWrapPos(wrapLocalPosX); - } - public static void PushTextWrapPos() - { - ImGuiNative.PushTextWrapPos((float)(0.0f)); - } - public static void PopTextWrapPos() - { - ImGuiNative.PopTextWrapPos(); - } - public static ImFontPtr GetFont() - { - ImFontPtr ret = ImGuiNative.GetFont(); - return ret; - } - public static float GetFontSize() - { - float ret = ImGuiNative.GetFontSize(); - return ret; - } - public static ImTextureID GetFontTexIdWhitePixel() - { - ImTextureID ret = ImGuiNative.GetFontTexIdWhitePixel(); - return ret; - } - public static Vector2 GetFontTexUvWhitePixel() - { - Vector2 ret; - ImGuiNative.GetFontTexUvWhitePixel(&ret); - return ret; - } - public static void GetFontTexUvWhitePixel(Vector2* pOut) - { - ImGuiNative.GetFontTexUvWhitePixel(pOut); - } - public static void GetFontTexUvWhitePixel(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetFontTexUvWhitePixel((Vector2*)ppOut); - } - } - public static uint GetColorU32(ImGuiCol idx, float alphaMul) - { - uint ret = ImGuiNative.GetColorU32(idx, alphaMul); - return ret; - } - public static uint GetColorU32(ImGuiCol idx) - { - uint ret = ImGuiNative.GetColorU32(idx, (float)(1.0f)); - return ret; - } - public static uint GetColorU32(Vector4 col) - { - uint ret = ImGuiNative.GetColorU32(col); - return ret; - } - public static uint GetColorU32(uint col) - { - uint ret = ImGuiNative.GetColorU32(col); - return ret; - } - public static Vector4* GetStyleColorVec4(ImGuiCol idx) - { - Vector4* ret = ImGuiNative.GetStyleColorVec4(idx); - return ret; - } - public static void Separator() - { - ImGuiNative.Separator(); - } - public static void SameLine(float offsetFromStartX, float spacing) - { - ImGuiNative.SameLine(offsetFromStartX, spacing); - } - public static void SameLine(float offsetFromStartX) - { - ImGuiNative.SameLine(offsetFromStartX, (float)(-1.0f)); - } - public static void SameLine() - { - ImGuiNative.SameLine((float)(0.0f), (float)(-1.0f)); - } - public static void NewLine() - { - ImGuiNative.NewLine(); - } - public static void Spacing() - { - ImGuiNative.Spacing(); - } - public static void Dummy(Vector2 size) - { - ImGuiNative.Dummy(size); - } - public static void Indent(float indentW) - { - ImGuiNative.Indent(indentW); - } - public static void Indent() - { - ImGuiNative.Indent((float)(0.0f)); - } - public static void Unindent(float indentW) - { - ImGuiNative.Unindent(indentW); - } - public static void Unindent() - { - ImGuiNative.Unindent((float)(0.0f)); - } - public static void BeginGroup() - { - ImGuiNative.BeginGroup(); - } - public static void EndGroup() - { - ImGuiNative.EndGroup(); - } - public static Vector2 GetCursorPos() - { - Vector2 ret; - ImGuiNative.GetCursorPos(&ret); - return ret; - } - public static void GetCursorPos(Vector2* pOut) - { - ImGuiNative.GetCursorPos(pOut); - } - public static void GetCursorPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetCursorPos((Vector2*)ppOut); - } - } - public static float GetCursorPosX() - { - float ret = ImGuiNative.GetCursorPosX(); - return ret; - } - public static float GetCursorPosY() - { - float ret = ImGuiNative.GetCursorPosY(); - return ret; - } - public static void SetCursorPos(Vector2 localPos) - { - ImGuiNative.SetCursorPos(localPos); - } - public static void SetCursorPosX(float localX) - { - ImGuiNative.SetCursorPosX(localX); - } - public static void SetCursorPosY(float localY) - { - ImGuiNative.SetCursorPosY(localY); - } - public static Vector2 GetCursorStartPos() - { - Vector2 ret; - ImGuiNative.GetCursorStartPos(&ret); - return ret; - } - public static void GetCursorStartPos(Vector2* pOut) - { - ImGuiNative.GetCursorStartPos(pOut); - } - public static void GetCursorStartPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetCursorStartPos((Vector2*)ppOut); - } - } - public static Vector2 GetCursorScreenPos() - { - Vector2 ret; - ImGuiNative.GetCursorScreenPos(&ret); - return ret; - } - public static void GetCursorScreenPos(Vector2* pOut) - { - ImGuiNative.GetCursorScreenPos(pOut); - } - public static void GetCursorScreenPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetCursorScreenPos((Vector2*)ppOut); - } - } - public static void SetCursorScreenPos(Vector2 pos) - { - ImGuiNative.SetCursorScreenPos(pos); - } - public static void AlignTextToFramePadding() - { - ImGuiNative.AlignTextToFramePadding(); - } - public static float GetTextLineHeight() - { - float ret = ImGuiNative.GetTextLineHeight(); - return ret; - } - public static float GetTextLineHeightWithSpacing() - { - float ret = ImGuiNative.GetTextLineHeightWithSpacing(); - return ret; - } - public static float GetFrameHeight() - { - float ret = ImGuiNative.GetFrameHeight(); - return ret; - } - public static float GetFrameHeightWithSpacing() - { - float ret = ImGuiNative.GetFrameHeightWithSpacing(); - return ret; - } - public static void PopID() - { - ImGuiNative.PopID(); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) - { - ImGuiNative.Image(userTextureId, size, uv0, uv1, tintCol, borderCol); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - ImGuiNative.Image(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) - { - ImGuiNative.Image(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0) - { - ImGuiNative.Image(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - public static void Image(ImTextureID userTextureId, Vector2 size) - { - ImGuiNative.Image(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol) - { - ImGuiNative.Image(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol) - { - ImGuiNative.Image(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol, Vector4 borderCol) - { - ImGuiNative.Image(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); - } - public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol, Vector4 borderCol) - { - ImGuiNative.Image(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, uv1, (int)(-1), bgCol, tintCol); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); - return ret != 0; - } - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImGuiNative.ImageButton(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); - return ret != 0; - } - public static void Bullet() - { - ImGuiNative.Bullet(); - } - public static void EndCombo() - { - ImGuiNative.EndCombo(); - } - public static void SetColorEditOptions(ImGuiColorEditFlags flags) - { - ImGuiNative.SetColorEditOptions(flags); - } - public static void TreePop() - { - ImGuiNative.TreePop(); - } - public static float GetTreeNodeToLabelSpacing() - { - float ret = ImGuiNative.GetTreeNodeToLabelSpacing(); - return ret; - } - public static void SetNextItemOpen(bool isOpen, ImGuiCond cond) - { - ImGuiNative.SetNextItemOpen(isOpen ? (byte)1 : (byte)0, cond); - } - public static void SetNextItemOpen(bool isOpen) - { - ImGuiNative.SetNextItemOpen(isOpen ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - public static void EndListBox() - { - ImGuiNative.EndListBox(); - } - public static bool BeginMenuBar() - { - byte ret = ImGuiNative.BeginMenuBar(); - return ret != 0; - } - public static void EndMenuBar() - { - ImGuiNative.EndMenuBar(); - } - public static bool BeginMainMenuBar() - { - byte ret = ImGuiNative.BeginMainMenuBar(); - return ret != 0; - } - public static void EndMainMenuBar() - { - ImGuiNative.EndMainMenuBar(); - } - public static void EndMenu() - { - ImGuiNative.EndMenu(); - } - public static void BeginTooltip() - { - ImGuiNative.BeginTooltip(); - } - public static void EndTooltip() - { - ImGuiNative.EndTooltip(); - } - public static void EndPopup() - { - ImGuiNative.EndPopup(); - } - public static void CloseCurrentPopup() - { - ImGuiNative.CloseCurrentPopup(); - } - public static void EndTable() - { - ImGuiNative.EndTable(); - } - public static void TableNextRow(ImGuiTableRowFlags rowFlags, float minRowHeight) - { - ImGuiNative.TableNextRow(rowFlags, minRowHeight); - } - public static void TableNextRow(ImGuiTableRowFlags rowFlags) - { - ImGuiNative.TableNextRow(rowFlags, (float)(0.0f)); - } - public static void TableNextRow() - { - ImGuiNative.TableNextRow((ImGuiTableRowFlags)(0), (float)(0.0f)); - } - public static void TableNextRow(float minRowHeight) - { - ImGuiNative.TableNextRow((ImGuiTableRowFlags)(0), minRowHeight); - } - public static bool TableNextColumn() - { - byte ret = ImGuiNative.TableNextColumn(); - return ret != 0; - } - public static bool TableSetColumnIndex(int columnN) - { - byte ret = ImGuiNative.TableSetColumnIndex(columnN); - return ret != 0; - } - public static void TableSetupScrollFreeze(int cols, int rows) - { - ImGuiNative.TableSetupScrollFreeze(cols, rows); - } - public static void TableHeadersRow() - { - ImGuiNative.TableHeadersRow(); - } - public static ImGuiTableSortSpecsPtr TableGetSortSpecs() - { - ImGuiTableSortSpecsPtr ret = ImGuiNative.TableGetSortSpecs(); - return ret; - } - public static int TableGetColumnCount() - { - int ret = ImGuiNative.TableGetColumnCount(); - return ret; - } - public static int TableGetColumnIndex() - { - int ret = ImGuiNative.TableGetColumnIndex(); - return ret; - } - public static int TableGetRowIndex() - { - int ret = ImGuiNative.TableGetRowIndex(); - return ret; - } - public static ImGuiTableColumnFlags TableGetColumnFlags(int columnN) - { - ImGuiTableColumnFlags ret = ImGuiNative.TableGetColumnFlags(columnN); - return ret; - } - public static ImGuiTableColumnFlags TableGetColumnFlags() - { - ImGuiTableColumnFlags ret = ImGuiNative.TableGetColumnFlags((int)(-1)); - return ret; - } - public static void TableSetColumnEnabled(int columnN, bool v) - { - ImGuiNative.TableSetColumnEnabled(columnN, v ? (byte)1 : (byte)0); - } - public static void TableSetBgColor(ImGuiTableBgTarget target, uint color, int columnN) - { - ImGuiNative.TableSetBgColor(target, color, columnN); - } - public static void TableSetBgColor(ImGuiTableBgTarget target, uint color) - { - ImGuiNative.TableSetBgColor(target, color, (int)(-1)); - } - public static void NextColumn() - { - ImGuiNative.NextColumn(); - } - public static int GetColumnIndex() - { - int ret = ImGuiNative.GetColumnIndex(); - return ret; - } - public static float GetColumnWidth(int columnIndex) - { - float ret = ImGuiNative.GetColumnWidth(columnIndex); - return ret; - } - public static float GetColumnWidth() - { - float ret = ImGuiNative.GetColumnWidth((int)(-1)); - return ret; - } - public static void SetColumnWidth(int columnIndex, float width) - { - ImGuiNative.SetColumnWidth(columnIndex, width); - } - public static float GetColumnOffset(int columnIndex) - { - float ret = ImGuiNative.GetColumnOffset(columnIndex); - return ret; - } - public static float GetColumnOffset() - { - float ret = ImGuiNative.GetColumnOffset((int)(-1)); - return ret; - } - public static void SetColumnOffset(int columnIndex, float offsetX) - { - ImGuiNative.SetColumnOffset(columnIndex, offsetX); - } - public static int GetColumnsCount() - { - int ret = ImGuiNative.GetColumnsCount(); - return ret; - } - public static void EndTabBar() - { - ImGuiNative.EndTabBar(); - } - public static void EndTabItem() - { - ImGuiNative.EndTabItem(); - } - public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpace(id, size, flags, windowClass); - return ret; - } - public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags) - { - uint ret = ImGuiNative.DockSpace(id, size, flags, (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpace(uint id, Vector2 size) - { - uint ret = ImGuiNative.DockSpace(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpace(uint id) - { - uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpace(uint id, ImGuiDockNodeFlags flags) - { - uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpace(uint id, Vector2 size, ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpace(id, size, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - public static uint DockSpace(uint id, ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), flags, windowClass); - return ret; - } - public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpace(id, size, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpace(uint id, Vector2 size, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpace(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpace(uint id, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpace(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport(viewport, flags, windowClass); - return ret; - } - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags) - { - uint ret = ImGuiNative.DockSpaceOverViewport(viewport, flags, (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport) - { - uint ret = ImGuiNative.DockSpaceOverViewport(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpaceOverViewport() - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)(default)); - return ret; - } - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport(viewport, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - public static uint DockSpaceOverViewport(ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), flags, windowClass); - return ret; - } - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, flags, windowClass); - return ret; - } - } - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)(default)); - return ret; - } - } - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - } - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiWindowClassPtr windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - } - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport(viewport, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpaceOverViewport(ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - } - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = ImGuiNative.DockSpaceOverViewport((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - } - public static void SetNextWindowDockID(uint dockId, ImGuiCond cond) - { - ImGuiNative.SetNextWindowDockID(dockId, cond); - } - public static void SetNextWindowDockID(uint dockId) - { - ImGuiNative.SetNextWindowDockID(dockId, (ImGuiCond)(0)); - } - public static void SetNextWindowClass(ImGuiWindowClassPtr windowClass) - { - ImGuiNative.SetNextWindowClass(windowClass); - } - public static void SetNextWindowClass(ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - ImGuiNative.SetNextWindowClass((ImGuiWindowClass*)pwindowClass); - } - } - public static uint GetWindowDockID() - { - uint ret = ImGuiNative.GetWindowDockID(); - return ret; - } - public static bool IsWindowDocked() - { - byte ret = ImGuiNative.IsWindowDocked(); - return ret != 0; - } - public static void LogToTTY(int autoOpenDepth) - { - ImGuiNative.LogToTTY(autoOpenDepth); - } - public static void LogToTTY() - { - ImGuiNative.LogToTTY((int)(-1)); - } - public static void LogToClipboard(int autoOpenDepth) - { - ImGuiNative.LogToClipboard(autoOpenDepth); - } - public static void LogToClipboard() - { - ImGuiNative.LogToClipboard((int)(-1)); - } - public static void LogFinish() - { - ImGuiNative.LogFinish(); - } - public static void LogButtons() - { - ImGuiNative.LogButtons(); - } - public static bool BeginDragDropSource(ImGuiDragDropFlags flags) - { - byte ret = ImGuiNative.BeginDragDropSource(flags); - return ret != 0; - } - public static bool BeginDragDropSource() - { - byte ret = ImGuiNative.BeginDragDropSource((ImGuiDragDropFlags)(0)); - return ret != 0; - } - public static void EndDragDropSource() - { - ImGuiNative.EndDragDropSource(); - } - public static bool BeginDragDropTarget() - { - byte ret = ImGuiNative.BeginDragDropTarget(); - return ret != 0; - } - public static void EndDragDropTarget() - { - ImGuiNative.EndDragDropTarget(); - } - public static ImGuiPayloadPtr GetDragDropPayload() - { - ImGuiPayloadPtr ret = ImGuiNative.GetDragDropPayload(); - return ret; - } - public static void BeginDisabled(bool disabled) - { - ImGuiNative.BeginDisabled(disabled ? (byte)1 : (byte)0); - } - public static void BeginDisabled() - { - ImGuiNative.BeginDisabled((byte)(1)); - } - public static void EndDisabled() - { - ImGuiNative.EndDisabled(); - } - public static void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - ImGuiNative.PushClipRect(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - public static void PushClipRect(this ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - ImGuiNative.PushClipRect(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - public static void PushClipRect(this ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax) - { - ImGuiNative.PushClipRect(self, clipRectMin, clipRectMax, (byte)(0)); - } - public static void PushClipRect(this ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PushClipRect((ImDrawList*)pself, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - } - public static void PushClipRect(this ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PushClipRect((ImDrawList*)pself, clipRectMin, clipRectMax, (byte)(0)); - } - } - public static void PopClipRect() - { - ImGuiNative.PopClipRect(); - } - public static void PopClipRect(this ImDrawListPtr self) - { - ImGuiNative.PopClipRect(self); - } - public static void PopClipRect(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PopClipRect((ImDrawList*)pself); - } - } - public static void SetItemDefaultFocus() - { - ImGuiNative.SetItemDefaultFocus(); - } - public static void SetKeyboardFocusHere(int offset) - { - ImGuiNative.SetKeyboardFocusHere(offset); - } - public static void SetKeyboardFocusHere() - { - ImGuiNative.SetKeyboardFocusHere((int)(0)); - } - public static bool IsItemHovered(ImGuiHoveredFlags flags) - { - byte ret = ImGuiNative.IsItemHovered(flags); - return ret != 0; - } - public static bool IsItemHovered() - { - byte ret = ImGuiNative.IsItemHovered((ImGuiHoveredFlags)(0)); - return ret != 0; - } - public static bool IsItemActive() - { - byte ret = ImGuiNative.IsItemActive(); - return ret != 0; - } - public static bool IsItemFocused() - { - byte ret = ImGuiNative.IsItemFocused(); - return ret != 0; - } - public static bool IsItemClicked(ImGuiMouseButton mouseButton) - { - byte ret = ImGuiNative.IsItemClicked(mouseButton); - return ret != 0; - } - public static bool IsItemClicked() - { - byte ret = ImGuiNative.IsItemClicked((ImGuiMouseButton)(0)); - return ret != 0; - } - public static bool IsItemVisible() - { - byte ret = ImGuiNative.IsItemVisible(); - return ret != 0; - } - public static bool IsItemEdited() - { - byte ret = ImGuiNative.IsItemEdited(); - return ret != 0; - } - public static bool IsItemActivated() - { - byte ret = ImGuiNative.IsItemActivated(); - return ret != 0; - } - public static bool IsItemDeactivated() - { - byte ret = ImGuiNative.IsItemDeactivated(); - return ret != 0; - } - public static bool IsItemDeactivatedAfterEdit() - { - byte ret = ImGuiNative.IsItemDeactivatedAfterEdit(); - return ret != 0; - } - public static bool IsItemToggledOpen() - { - byte ret = ImGuiNative.IsItemToggledOpen(); - return ret != 0; - } - public static bool IsAnyItemHovered() - { - byte ret = ImGuiNative.IsAnyItemHovered(); - return ret != 0; - } - public static bool IsAnyItemActive() - { - byte ret = ImGuiNative.IsAnyItemActive(); - return ret != 0; - } - public static bool IsAnyItemFocused() - { - byte ret = ImGuiNative.IsAnyItemFocused(); - return ret != 0; - } - public static Vector2 GetItemRectMin() - { - Vector2 ret; - ImGuiNative.GetItemRectMin(&ret); - return ret; - } - public static void GetItemRectMin(Vector2* pOut) - { - ImGuiNative.GetItemRectMin(pOut); - } - public static void GetItemRectMin(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetItemRectMin((Vector2*)ppOut); - } - } - public static Vector2 GetItemRectMax() - { - Vector2 ret; - ImGuiNative.GetItemRectMax(&ret); - return ret; - } - public static void GetItemRectMax(Vector2* pOut) - { - ImGuiNative.GetItemRectMax(pOut); - } - public static void GetItemRectMax(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetItemRectMax((Vector2*)ppOut); - } - } - public static Vector2 GetItemRectSize() - { - Vector2 ret; - ImGuiNative.GetItemRectSize(&ret); - return ret; - } - public static void GetItemRectSize(Vector2* pOut) - { - ImGuiNative.GetItemRectSize(pOut); - } - public static void GetItemRectSize(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetItemRectSize((Vector2*)ppOut); - } - } - public static void SetItemAllowOverlap() - { - ImGuiNative.SetItemAllowOverlap(); - } - public static ImGuiViewportPtr GetMainViewport() - { - ImGuiViewportPtr ret = ImGuiNative.GetMainViewport(); - return ret; - } - public static ImDrawListPtr GetBackgroundDrawList() - { - ImDrawListPtr ret = ImGuiNative.GetBackgroundDrawList(); - return ret; - } - public static ImDrawListPtr GetBackgroundDrawList(ImGuiViewportPtr viewport) - { - ImDrawListPtr ret = ImGuiNative.GetBackgroundDrawList(viewport); - return ret; - } - public static ImDrawListPtr GetBackgroundDrawList(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImDrawListPtr ret = ImGuiNative.GetBackgroundDrawList((ImGuiViewport*)pviewport); - return ret; - } - } - public static ImDrawListPtr GetForegroundDrawList() - { - ImDrawListPtr ret = ImGuiNative.GetForegroundDrawList(); - return ret; - } - public static ImDrawListPtr GetForegroundDrawList(ImGuiViewportPtr viewport) - { - ImDrawListPtr ret = ImGuiNative.GetForegroundDrawList(viewport); - return ret; - } - public static ImDrawListPtr GetForegroundDrawList(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImDrawListPtr ret = ImGuiNative.GetForegroundDrawList((ImGuiViewport*)pviewport); - return ret; - } - } - public static bool IsRectVisible(Vector2 size) - { - byte ret = ImGuiNative.IsRectVisible(size); - return ret != 0; - } - public static bool IsRectVisible(Vector2 rectMin, Vector2 rectMax) - { - byte ret = ImGuiNative.IsRectVisible(rectMin, rectMax); - return ret != 0; - } - public static double GetTime() - { - double ret = ImGuiNative.GetTime(); - return ret; - } - public static int GetFrameCount() - { - int ret = ImGuiNative.GetFrameCount(); - return ret; - } - public static ImDrawListSharedDataPtr GetDrawListSharedData() - { - ImDrawListSharedDataPtr ret = ImGuiNative.GetDrawListSharedData(); - return ret; - } - public static void SetStateStorage(ImGuiStoragePtr storage) - { - ImGuiNative.SetStateStorage(storage); - } - public static void SetStateStorage(ref ImGuiStorage storage) - { - fixed (ImGuiStorage* pstorage = &storage) - { - ImGuiNative.SetStateStorage((ImGuiStorage*)pstorage); - } - } - public static ImGuiStoragePtr GetStateStorage() - { - ImGuiStoragePtr ret = ImGuiNative.GetStateStorage(); - return ret; - } - public static bool BeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags) - { - byte ret = ImGuiNative.BeginChildFrame(id, size, flags); - return ret != 0; - } - public static bool BeginChildFrame(uint id, Vector2 size) - { - byte ret = ImGuiNative.BeginChildFrame(id, size, (ImGuiWindowFlags)(0)); - return ret != 0; - } - public static void EndChildFrame() - { - ImGuiNative.EndChildFrame(); - } - public static Vector4 ColorConvertU32ToFloat4(uint input) - { - Vector4 ret; - ImGuiNative.ColorConvertU32ToFloat4(&ret, input); - return ret; - } - public static void ColorConvertU32ToFloat4(Vector4* pOut, uint input) - { - ImGuiNative.ColorConvertU32ToFloat4(pOut, input); - } - public static void ColorConvertU32ToFloat4(ref Vector4 pOut, uint input) - { - fixed (Vector4* ppOut = &pOut) - { - ImGuiNative.ColorConvertU32ToFloat4((Vector4*)ppOut, input); - } - } - public static uint ColorConvertFloat4ToU32(Vector4 input) - { - uint ret = ImGuiNative.ColorConvertFloat4ToU32(input); - return ret; - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, float* outV) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, outS, outV); - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, float* outV) - { - fixed (float* poutH = &outH) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, outS, outV); - } - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, float* outV) - { - fixed (float* poutS = &outS) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, (float*)poutS, outV); - } - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, float* outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutS = &outS) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, (float*)poutS, outV); - } - } - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, ref float outV) - { - fixed (float* poutV = &outV) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, outS, (float*)poutV); - } - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, ref float outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutV = &outV) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, outS, (float*)poutV); - } - } - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, ref float outV) - { - fixed (float* poutS = &outS) - { - fixed (float* poutV = &outV) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, outH, (float*)poutS, (float*)poutV); - } - } - } - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, ref float outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutS = &outS) - { - fixed (float* poutV = &outV) - { - ImGuiNative.ColorConvertRGBtoHSV(r, g, b, (float*)poutH, (float*)poutS, (float*)poutV); - } - } - } - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, float* outB) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, outG, outB); - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, float* outB) - { - fixed (float* poutR = &outR) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, outG, outB); - } - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, float* outB) - { - fixed (float* poutG = &outG) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, (float*)poutG, outB); - } - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, float* outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutG = &outG) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, (float*)poutG, outB); - } - } - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, ref float outB) - { - fixed (float* poutB = &outB) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, outG, (float*)poutB); - } - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, ref float outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutB = &outB) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, outG, (float*)poutB); - } - } - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, ref float outB) - { - fixed (float* poutG = &outG) - { - fixed (float* poutB = &outB) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, outR, (float*)poutG, (float*)poutB); - } - } - } - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, ref float outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutG = &outG) - { - fixed (float* poutB = &outB) - { - ImGuiNative.ColorConvertHSVtoRGB(h, s, v, (float*)poutR, (float*)poutG, (float*)poutB); - } - } - } - } - public static bool IsKeyDown(ImGuiKey key) - { - byte ret = ImGuiNative.IsKeyDown(key); - return ret != 0; - } - public static bool IsKeyPressed(ImGuiKey key, bool repeat) - { - byte ret = ImGuiNative.IsKeyPressed(key, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - public static bool IsKeyPressed(ImGuiKey key) - { - byte ret = ImGuiNative.IsKeyPressed(key, (byte)(1)); - return ret != 0; - } - public static bool IsKeyReleased(ImGuiKey key) - { - byte ret = ImGuiNative.IsKeyReleased(key); - return ret != 0; - } - public static int GetKeyPressedAmount(ImGuiKey key, float repeatDelay, float rate) - { - int ret = ImGuiNative.GetKeyPressedAmount(key, repeatDelay, rate); - return ret; - } - public static void SetNextFrameWantCaptureKeyboard(bool wantCaptureKeyboard) - { - ImGuiNative.SetNextFrameWantCaptureKeyboard(wantCaptureKeyboard ? (byte)1 : (byte)0); - } - public static bool IsMouseDown(ImGuiMouseButton button) - { - byte ret = ImGuiNative.IsMouseDown(button); - return ret != 0; - } - public static bool IsMouseClicked(ImGuiMouseButton button, bool repeat) - { - byte ret = ImGuiNative.IsMouseClicked(button, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - public static bool IsMouseClicked(ImGuiMouseButton button) - { - byte ret = ImGuiNative.IsMouseClicked(button, (byte)(0)); - return ret != 0; - } - public static bool IsMouseReleased(ImGuiMouseButton button) - { - byte ret = ImGuiNative.IsMouseReleased(button); - return ret != 0; - } - public static bool IsMouseDoubleClicked(ImGuiMouseButton button) - { - byte ret = ImGuiNative.IsMouseDoubleClicked(button); - return ret != 0; - } - public static int GetMouseClickedCount(ImGuiMouseButton button) - { - int ret = ImGuiNative.GetMouseClickedCount(button); - return ret; - } - public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax, bool clip) - { - byte ret = ImGuiNative.IsMouseHoveringRect(rMin, rMax, clip ? (byte)1 : (byte)0); - return ret != 0; - } - public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax) - { - byte ret = ImGuiNative.IsMouseHoveringRect(rMin, rMax, (byte)(1)); - return ret != 0; - } - public static bool IsMousePosValid(Vector2* mousePos) - { - byte ret = ImGuiNative.IsMousePosValid(mousePos); - return ret != 0; - } - public static bool IsMousePosValid() - { - byte ret = ImGuiNative.IsMousePosValid((Vector2*)(default)); - return ret != 0; - } - public static bool IsMousePosValid(ref Vector2 mousePos) - { - fixed (Vector2* pmousePos = &mousePos) - { - byte ret = ImGuiNative.IsMousePosValid((Vector2*)pmousePos); - return ret != 0; - } - } - public static bool IsAnyMouseDown() - { - byte ret = ImGuiNative.IsAnyMouseDown(); - return ret != 0; - } - public static Vector2 GetMousePos() - { - Vector2 ret; - ImGuiNative.GetMousePos(&ret); - return ret; - } - public static void GetMousePos(Vector2* pOut) - { - ImGuiNative.GetMousePos(pOut); - } - public static void GetMousePos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetMousePos((Vector2*)ppOut); - } - } - public static Vector2 GetMousePosOnOpeningCurrentPopup() - { - Vector2 ret; - ImGuiNative.GetMousePosOnOpeningCurrentPopup(&ret); - return ret; - } - public static void GetMousePosOnOpeningCurrentPopup(Vector2* pOut) - { - ImGuiNative.GetMousePosOnOpeningCurrentPopup(pOut); - } - public static void GetMousePosOnOpeningCurrentPopup(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetMousePosOnOpeningCurrentPopup((Vector2*)ppOut); - } - } - public static bool IsMouseDragging(ImGuiMouseButton button, float lockThreshold) - { - byte ret = ImGuiNative.IsMouseDragging(button, lockThreshold); - return ret != 0; - } - public static bool IsMouseDragging(ImGuiMouseButton button) - { - byte ret = ImGuiNative.IsMouseDragging(button, (float)(-1.0f)); - return ret != 0; - } - public static Vector2 GetMouseDragDelta() - { - Vector2 ret; - ImGuiNative.GetMouseDragDelta(&ret, (ImGuiMouseButton)(0), (float)(-1.0f)); - return ret; - } - public static Vector2 GetMouseDragDelta(ImGuiMouseButton button) - { - Vector2 ret; - ImGuiNative.GetMouseDragDelta(&ret, button, (float)(-1.0f)); - return ret; - } - public static void GetMouseDragDelta(Vector2* pOut) - { - ImGuiNative.GetMouseDragDelta(pOut, (ImGuiMouseButton)(0), (float)(-1.0f)); - } - public static Vector2 GetMouseDragDelta(float lockThreshold) - { - Vector2 ret; - ImGuiNative.GetMouseDragDelta(&ret, (ImGuiMouseButton)(0), lockThreshold); - return ret; - } - public static Vector2 GetMouseDragDelta(ImGuiMouseButton button, float lockThreshold) - { - Vector2 ret; - ImGuiNative.GetMouseDragDelta(&ret, button, lockThreshold); - return ret; - } - public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) - { - ImGuiNative.GetMouseDragDelta(pOut, button, lockThreshold); - } - public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button) - { - ImGuiNative.GetMouseDragDelta(pOut, button, (float)(-1.0f)); - } - public static void GetMouseDragDelta(Vector2* pOut, float lockThreshold) - { - ImGuiNative.GetMouseDragDelta(pOut, (ImGuiMouseButton)(0), lockThreshold); - } - public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button, float lockThreshold) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, button, lockThreshold); - } - } - public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, button, (float)(-1.0f)); - } - } - public static void GetMouseDragDelta(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, (ImGuiMouseButton)(0), (float)(-1.0f)); - } - } - public static void GetMouseDragDelta(ref Vector2 pOut, float lockThreshold) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetMouseDragDelta((Vector2*)ppOut, (ImGuiMouseButton)(0), lockThreshold); - } - } - public static void ResetMouseDragDelta(ImGuiMouseButton button) - { - ImGuiNative.ResetMouseDragDelta(button); - } - public static void ResetMouseDragDelta() - { - ImGuiNative.ResetMouseDragDelta((ImGuiMouseButton)(0)); - } - public static ImGuiMouseCursor GetMouseCursor() - { - ImGuiMouseCursor ret = ImGuiNative.GetMouseCursor(); - return ret; - } - public static void SetMouseCursor(ImGuiMouseCursor cursorType) - { - ImGuiNative.SetMouseCursor(cursorType); - } - public static void SetNextFrameWantCaptureMouse(bool wantCaptureMouse) - { - ImGuiNative.SetNextFrameWantCaptureMouse(wantCaptureMouse ? (byte)1 : (byte)0); - } - public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) - { - ImGuiNative.SetAllocatorFunctions(allocFunc, freeFunc, userData); - } - public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc) - { - ImGuiNative.SetAllocatorFunctions(allocFunc, freeFunc, (void*)(default)); - } - public static void GetAllocatorFunctions(delegate*<nuint, void*, void*>* pAllocFunc, delegate*<void*, void*, void>* pFreeFunc, void** pUserData) - { - ImGuiNative.GetAllocatorFunctions(pAllocFunc, pFreeFunc, pUserData); - } - public static void* MemAlloc(nuint size) - { - void* ret = ImGuiNative.MemAlloc(size); - return ret; - } - public static void MemFree(void* ptr) - { - ImGuiNative.MemFree(ptr); - } - public static ImGuiPlatformIOPtr GetPlatformIO() - { - ImGuiPlatformIOPtr ret = ImGuiNative.GetPlatformIO(); - return ret; - } - public static void UpdatePlatformWindows() - { - ImGuiNative.UpdatePlatformWindows(); - } - public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg) - { - ImGuiNative.RenderPlatformWindowsDefault(platformRenderArg, rendererRenderArg); - } - public static void RenderPlatformWindowsDefault(void* platformRenderArg) - { - ImGuiNative.RenderPlatformWindowsDefault(platformRenderArg, (void*)(default)); - } - public static void RenderPlatformWindowsDefault() - { - ImGuiNative.RenderPlatformWindowsDefault((void*)(default), (void*)(default)); - } - public static void DestroyPlatformWindows() - { - ImGuiNative.DestroyPlatformWindows(); - } - public static ImGuiViewportPtr FindViewportByID(uint id) - { - ImGuiViewportPtr ret = ImGuiNative.FindViewportByID(id); - return ret; - } - public static ImGuiViewportPtr FindViewportByPlatformHandle(void* platformHandle) - { - ImGuiViewportPtr ret = ImGuiNative.FindViewportByPlatformHandle(platformHandle); - return ret; - } - public static ImGuiStylePtr ImGuiStyle() - { - ImGuiStylePtr ret = ImGuiNative.ImGuiStyle(); - return ret; - } - public static void ScaleAllSizes(this ImGuiStylePtr self, float scaleFactor) - { - ImGuiNative.ScaleAllSizes(self, scaleFactor); - } - public static void ScaleAllSizes(this ref ImGuiStyle self, float scaleFactor) - { - fixed (ImGuiStyle* pself = &self) - { - ImGuiNative.ScaleAllSizes((ImGuiStyle*)pself, scaleFactor); - } - } - public static void AddKeyEvent(this ImGuiIOPtr self, ImGuiKey key, bool down) - { - ImGuiNative.AddKeyEvent(self, key, down ? (byte)1 : (byte)0); - } - public static void AddKeyEvent(this ref ImGuiIO self, ImGuiKey key, bool down) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.AddKeyEvent((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0); - } - } - public static void AddKeyAnalogEvent(this ImGuiIOPtr self, ImGuiKey key, bool down, float v) - { - ImGuiNative.AddKeyAnalogEvent(self, key, down ? (byte)1 : (byte)0, v); - } - public static void AddKeyAnalogEvent(this ref ImGuiIO self, ImGuiKey key, bool down, float v) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.AddKeyAnalogEvent((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0, v); - } - } - public static void AddMousePosEvent(this ImGuiIOPtr self, float x, float y) - { - ImGuiNative.AddMousePosEvent(self, x, y); - } - public static void AddMousePosEvent(this ref ImGuiIO self, float x, float y) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.AddMousePosEvent((ImGuiIO*)pself, x, y); - } - } - public static void AddMouseButtonEvent(this ImGuiIOPtr self, int button, bool down) - { - ImGuiNative.AddMouseButtonEvent(self, button, down ? (byte)1 : (byte)0); - } - public static void AddMouseButtonEvent(this ref ImGuiIO self, int button, bool down) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.AddMouseButtonEvent((ImGuiIO*)pself, button, down ? (byte)1 : (byte)0); - } - } - public static void AddMouseWheelEvent(this ImGuiIOPtr self, float whX, float whY) - { - ImGuiNative.AddMouseWheelEvent(self, whX, whY); - } - public static void AddMouseWheelEvent(this ref ImGuiIO self, float whX, float whY) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.AddMouseWheelEvent((ImGuiIO*)pself, whX, whY); - } - } - public static void AddMouseViewportEvent(this ImGuiIOPtr self, uint id) - { - ImGuiNative.AddMouseViewportEvent(self, id); - } - public static void AddMouseViewportEvent(this ref ImGuiIO self, uint id) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.AddMouseViewportEvent((ImGuiIO*)pself, id); - } - } - public static void AddFocusEvent(this ImGuiIOPtr self, bool focused) - { - ImGuiNative.AddFocusEvent(self, focused ? (byte)1 : (byte)0); - } - public static void AddFocusEvent(this ref ImGuiIO self, bool focused) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.AddFocusEvent((ImGuiIO*)pself, focused ? (byte)1 : (byte)0); - } - } - public static void SetKeyEventNativeData(this ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - ImGuiNative.SetKeyEventNativeData(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - public static void SetKeyEventNativeData(this ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode) - { - ImGuiNative.SetKeyEventNativeData(self, key, nativeKeycode, nativeScancode, (int)(-1)); - } - public static void SetKeyEventNativeData(this ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.SetKeyEventNativeData((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - } - public static void SetKeyEventNativeData(this ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.SetKeyEventNativeData((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, (int)(-1)); - } - } - public static void SetAppAcceptingEvents(this ImGuiIOPtr self, bool acceptingEvents) - { - ImGuiNative.SetAppAcceptingEvents(self, acceptingEvents ? (byte)1 : (byte)0); - } - public static void SetAppAcceptingEvents(this ref ImGuiIO self, bool acceptingEvents) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.SetAppAcceptingEvents((ImGuiIO*)pself, acceptingEvents ? (byte)1 : (byte)0); - } - } - public static void ClearInputCharacters(this ImGuiIOPtr self) - { - ImGuiNative.ClearInputCharacters(self); - } - public static void ClearInputCharacters(this ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.ClearInputCharacters((ImGuiIO*)pself); - } - } - public static void ClearInputKeys(this ImGuiIOPtr self) - { - ImGuiNative.ClearInputKeys(self); - } - public static void ClearInputKeys(this ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ImGuiNative.ClearInputKeys((ImGuiIO*)pself); - } - } - public static ImGuiIOPtr ImGuiIO() - { - ImGuiIOPtr ret = ImGuiNative.ImGuiIO(); - return ret; - } - public static ImGuiInputTextCallbackDataPtr ImGuiInputTextCallbackData() - { - ImGuiInputTextCallbackDataPtr ret = ImGuiNative.ImGuiInputTextCallbackData(); - return ret; - } - public static void DeleteChars(this ImGuiInputTextCallbackDataPtr self, int pos, int bytesCount) - { - ImGuiNative.DeleteChars(self, pos, bytesCount); - } - public static void DeleteChars(this ref ImGuiInputTextCallbackData self, int pos, int bytesCount) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - ImGuiNative.DeleteChars((ImGuiInputTextCallbackData*)pself, pos, bytesCount); - } - } - public static void SelectAll(this ImGuiInputTextCallbackDataPtr self) - { - ImGuiNative.SelectAll(self); - } - public static void SelectAll(this ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - ImGuiNative.SelectAll((ImGuiInputTextCallbackData*)pself); - } - } - public static void ClearSelection(this ImGuiInputTextCallbackDataPtr self) - { - ImGuiNative.ClearSelection(self); - } - public static void ClearSelection(this ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - ImGuiNative.ClearSelection((ImGuiInputTextCallbackData*)pself); - } - } - public static bool HasSelection(this ImGuiInputTextCallbackDataPtr self) - { - byte ret = ImGuiNative.HasSelection(self); - return ret != 0; - } - public static bool HasSelection(this ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte ret = ImGuiNative.HasSelection((ImGuiInputTextCallbackData*)pself); - return ret != 0; - } - } - public static ImGuiWindowClassPtr ImGuiWindowClass() - { - ImGuiWindowClassPtr ret = ImGuiNative.ImGuiWindowClass(); - return ret; - } - public static ImGuiPayloadPtr ImGuiPayload() - { - ImGuiPayloadPtr ret = ImGuiNative.ImGuiPayload(); - return ret; - } - public static void Clear(this ImGuiPayloadPtr self) - { - ImGuiNative.Clear(self); - } - public static void Clear(this ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - ImGuiNative.Clear((ImGuiPayload*)pself); - } - } - public static void Clear(this ImGuiTextFilterPtr self) - { - ImGuiNative.Clear(self); - } - public static void Clear(this ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - ImGuiNative.Clear((ImGuiTextFilter*)pself); - } - } - public static void Clear(this ImGuiStoragePtr self) - { - ImGuiNative.Clear(self); - } - public static void Clear(this ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - ImGuiNative.Clear((ImGuiStorage*)pself); - } - } - public static void Clear(this ImDrawListSplitterPtr self) - { - ImGuiNative.Clear(self); - } - public static void Clear(this ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ImGuiNative.Clear((ImDrawListSplitter*)pself); - } - } - public static void Clear(this ImDrawDataPtr self) - { - ImGuiNative.Clear(self); - } - public static void Clear(this ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - ImGuiNative.Clear((ImDrawData*)pself); - } - } - public static void Clear(this ImFontGlyphRangesBuilderPtr self) - { - ImGuiNative.Clear(self); - } - public static void Clear(this ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ImGuiNative.Clear((ImFontGlyphRangesBuilder*)pself); - } - } - public static void Clear(this ImFontAtlasPtr self) - { - ImGuiNative.Clear(self); - } - public static void Clear(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.Clear((ImFontAtlas*)pself); - } - } - public static bool IsPreview(this ImGuiPayloadPtr self) - { - byte ret = ImGuiNative.IsPreview(self); - return ret != 0; - } - public static bool IsPreview(this ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = ImGuiNative.IsPreview((ImGuiPayload*)pself); - return ret != 0; - } - } - public static bool IsDelivery(this ImGuiPayloadPtr self) - { - byte ret = ImGuiNative.IsDelivery(self); - return ret != 0; - } - public static bool IsDelivery(this ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = ImGuiNative.IsDelivery((ImGuiPayload*)pself); - return ret != 0; - } - } - public static ImGuiTableColumnSortSpecsPtr ImGuiTableColumnSortSpecs() - { - ImGuiTableColumnSortSpecsPtr ret = ImGuiNative.ImGuiTableColumnSortSpecs(); - return ret; - } - public static ImGuiTableSortSpecsPtr ImGuiTableSortSpecs() - { - ImGuiTableSortSpecsPtr ret = ImGuiNative.ImGuiTableSortSpecs(); - return ret; - } - public static ImGuiOnceUponAFramePtr ImGuiOnceUponAFrame() - { - ImGuiOnceUponAFramePtr ret = ImGuiNative.ImGuiOnceUponAFrame(); - return ret; - } - public static void Build(this ImGuiTextFilterPtr self) - { - ImGuiNative.Build(self); - } - public static void Build(this ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - ImGuiNative.Build((ImGuiTextFilter*)pself); - } - } - public static bool Build(this ImFontAtlasPtr self) - { - byte ret = ImGuiNative.Build(self); - return ret != 0; - } - public static bool Build(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = ImGuiNative.Build((ImFontAtlas*)pself); - return ret != 0; - } - } - public static bool IsActive(this ImGuiTextFilterPtr self) - { - byte ret = ImGuiNative.IsActive(self); - return ret != 0; - } - public static bool IsActive(this ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = ImGuiNative.IsActive((ImGuiTextFilter*)pself); - return ret != 0; - } - } - public static bool empty(this ImGuiTextRangePtr self) - { - byte ret = ImGuiNative.empty(self); - return ret != 0; - } - public static bool empty(this ref ImGuiTextRange self) - { - fixed (ImGuiTextRange* pself = &self) - { - byte ret = ImGuiNative.empty((ImGuiTextRange*)pself); - return ret != 0; - } - } - public static bool empty(this ImGuiTextBufferPtr self) - { - byte ret = ImGuiNative.empty(self); - return ret != 0; - } - public static bool empty(this ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte ret = ImGuiNative.empty((ImGuiTextBuffer*)pself); - return ret != 0; - } - } - public static void split(this ImGuiTextRangePtr self, byte separator, ImVector<ImGuiTextRange>* output) - { - ImGuiNative.split(self, separator, output); - } - public static void split(this ref ImGuiTextRange self, byte separator, ImVector<ImGuiTextRange>* output) - { - fixed (ImGuiTextRange* pself = &self) - { - ImGuiNative.split((ImGuiTextRange*)pself, separator, output); - } - } - public static void split(this ImGuiTextRangePtr self, byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - ImGuiNative.split(self, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } - public static void split(this ref ImGuiTextRange self, byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImGuiTextRange* pself = &self) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - ImGuiNative.split((ImGuiTextRange*)pself, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } - } - public static ImGuiTextBufferPtr ImGuiTextBuffer() - { - ImGuiTextBufferPtr ret = ImGuiNative.ImGuiTextBuffer(); - return ret; - } - public static int size(this ImGuiTextBufferPtr self) - { - int ret = ImGuiNative.size(self); - return ret; - } - public static int size(this ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - int ret = ImGuiNative.size((ImGuiTextBuffer*)pself); - return ret; - } - } - public static void clear(this ImGuiTextBufferPtr self) - { - ImGuiNative.clear(self); - } - public static void clear(this ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - ImGuiNative.clear((ImGuiTextBuffer*)pself); - } - } - public static void reserve(this ImGuiTextBufferPtr self, int capacity) - { - ImGuiNative.reserve(self, capacity); - } - public static void reserve(this ref ImGuiTextBuffer self, int capacity) - { - fixed (ImGuiTextBuffer* pself = &self) - { - ImGuiNative.reserve((ImGuiTextBuffer*)pself, capacity); - } - } - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, int valI) - { - ImGuiStoragePairPtr ret = ImGuiNative.ImGuiStoragePair(key, valI); - return ret; - } - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, float valF) - { - ImGuiStoragePairPtr ret = ImGuiNative.ImGuiStoragePair(key, valF); - return ret; - } - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, void* valP) - { - ImGuiStoragePairPtr ret = ImGuiNative.ImGuiStoragePair(key, valP); - return ret; - } - public static int GetInt(this ImGuiStoragePtr self, uint key, int defaultVal) - { - int ret = ImGuiNative.GetInt(self, key, defaultVal); - return ret; - } - public static int GetInt(this ImGuiStoragePtr self, uint key) - { - int ret = ImGuiNative.GetInt(self, key, (int)(0)); - return ret; - } - public static int GetInt(this scoped in ImGuiStorage self, uint key, int defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = ImGuiNative.GetInt((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - public static int GetInt(this scoped in ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = ImGuiNative.GetInt((ImGuiStorage*)pself, key, (int)(0)); - return ret; - } - } - public static void SetInt(this ImGuiStoragePtr self, uint key, int val) - { - ImGuiNative.SetInt(self, key, val); - } - public static void SetInt(this ref ImGuiStorage self, uint key, int val) - { - fixed (ImGuiStorage* pself = &self) - { - ImGuiNative.SetInt((ImGuiStorage*)pself, key, val); - } - } - public static bool GetBool(this ImGuiStoragePtr self, uint key, bool defaultVal) - { - byte ret = ImGuiNative.GetBool(self, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - public static bool GetBool(this ImGuiStoragePtr self, uint key) - { - byte ret = ImGuiNative.GetBool(self, key, (byte)(0)); - return ret != 0; - } - public static bool GetBool(this scoped in ImGuiStorage self, uint key, bool defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = ImGuiNative.GetBool((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - } - public static bool GetBool(this scoped in ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = ImGuiNative.GetBool((ImGuiStorage*)pself, key, (byte)(0)); - return ret != 0; - } - } - public static void SetBool(this ImGuiStoragePtr self, uint key, bool val) - { - ImGuiNative.SetBool(self, key, val ? (byte)1 : (byte)0); - } - public static void SetBool(this ref ImGuiStorage self, uint key, bool val) - { - fixed (ImGuiStorage* pself = &self) - { - ImGuiNative.SetBool((ImGuiStorage*)pself, key, val ? (byte)1 : (byte)0); - } - } - public static float GetFloat(this ImGuiStoragePtr self, uint key, float defaultVal) - { - float ret = ImGuiNative.GetFloat(self, key, defaultVal); - return ret; - } - public static float GetFloat(this ImGuiStoragePtr self, uint key) - { - float ret = ImGuiNative.GetFloat(self, key, (float)(0.0f)); - return ret; - } - public static float GetFloat(this scoped in ImGuiStorage self, uint key, float defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = ImGuiNative.GetFloat((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - public static float GetFloat(this scoped in ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = ImGuiNative.GetFloat((ImGuiStorage*)pself, key, (float)(0.0f)); - return ret; - } - } - public static void SetFloat(this ImGuiStoragePtr self, uint key, float val) - { - ImGuiNative.SetFloat(self, key, val); - } - public static void SetFloat(this ref ImGuiStorage self, uint key, float val) - { - fixed (ImGuiStorage* pself = &self) - { - ImGuiNative.SetFloat((ImGuiStorage*)pself, key, val); - } - } - public static void* GetVoidPtr(this ImGuiStoragePtr self, uint key) - { - void* ret = ImGuiNative.GetVoidPtr(self, key); - return ret; - } - public static void* GetVoidPtr(this scoped in ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - void* ret = ImGuiNative.GetVoidPtr((ImGuiStorage*)pself, key); - return ret; - } - } - public static void SetVoidPtr(this ImGuiStoragePtr self, uint key, void* val) - { - ImGuiNative.SetVoidPtr(self, key, val); - } - public static void SetVoidPtr(this ref ImGuiStorage self, uint key, void* val) - { - fixed (ImGuiStorage* pself = &self) - { - ImGuiNative.SetVoidPtr((ImGuiStorage*)pself, key, val); - } - } - public static void SetAllInt(this ImGuiStoragePtr self, int val) - { - ImGuiNative.SetAllInt(self, val); - } - public static void SetAllInt(this ref ImGuiStorage self, int val) - { - fixed (ImGuiStorage* pself = &self) - { - ImGuiNative.SetAllInt((ImGuiStorage*)pself, val); - } - } - public static void BuildSortByKey(this ImGuiStoragePtr self) - { - ImGuiNative.BuildSortByKey(self); - } - public static void BuildSortByKey(this ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - ImGuiNative.BuildSortByKey((ImGuiStorage*)pself); - } - } - public static ImGuiListClipperPtr ImGuiListClipper() - { - ImGuiListClipperPtr ret = ImGuiNative.ImGuiListClipper(); - return ret; - } - public static bool Step(this ImGuiListClipperPtr self) - { - byte ret = ImGuiNative.Step(self); - return ret != 0; - } - public static bool Step(this ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - byte ret = ImGuiNative.Step((ImGuiListClipper*)pself); - return ret != 0; - } - } - public static void ForceDisplayRangeByIndices(this ImGuiListClipperPtr self, int itemMin, int itemMax) - { - ImGuiNative.ForceDisplayRangeByIndices(self, itemMin, itemMax); - } - public static void ForceDisplayRangeByIndices(this ref ImGuiListClipper self, int itemMin, int itemMax) - { - fixed (ImGuiListClipper* pself = &self) - { - ImGuiNative.ForceDisplayRangeByIndices((ImGuiListClipper*)pself, itemMin, itemMax); - } - } - public static ImColorPtr ImColor() - { - ImColorPtr ret = ImGuiNative.ImColor(); - return ret; - } - public static ImColorPtr ImColor(float r, float g, float b, float a) - { - ImColorPtr ret = ImGuiNative.ImColor(r, g, b, a); - return ret; - } - public static ImColorPtr ImColor(float r, float g, float b) - { - ImColorPtr ret = ImGuiNative.ImColor(r, g, b, (float)(1.0f)); - return ret; - } - public static ImColorPtr ImColor(Vector4 col) - { - ImColorPtr ret = ImGuiNative.ImColor(col); - return ret; - } - public static ImColorPtr ImColor(int r, int g, int b, int a) - { - ImColorPtr ret = ImGuiNative.ImColor(r, g, b, a); - return ret; - } - public static ImColorPtr ImColor(int r, int g, int b) - { - ImColorPtr ret = ImGuiNative.ImColor(r, g, b, (int)(255)); - return ret; - } - public static ImColorPtr ImColor(uint rgba) - { - ImColorPtr ret = ImGuiNative.ImColor(rgba); - return ret; - } - public static void SetHSV(this ImColorPtr self, float h, float s, float v, float a) - { - ImGuiNative.SetHSV(self, h, s, v, a); - } - public static void SetHSV(this ImColorPtr self, float h, float s, float v) - { - ImGuiNative.SetHSV(self, h, s, v, (float)(1.0f)); - } - public static void SetHSV(this ref ImColor self, float h, float s, float v, float a) - { - fixed (ImColor* pself = &self) - { - ImGuiNative.SetHSV((ImColor*)pself, h, s, v, a); - } - } - public static void SetHSV(this ref ImColor self, float h, float s, float v) - { - fixed (ImColor* pself = &self) - { - ImGuiNative.SetHSV((ImColor*)pself, h, s, v, (float)(1.0f)); - } - } - public static ImColor HSV(float h, float s, float v) - { - ImColor ret; - ImGuiNative.HSV(&ret, h, s, v, (float)(1.0f)); - return ret; - } - public static ImColor HSV(float h, float s, float v, float a) - { - ImColor ret; - ImGuiNative.HSV(&ret, h, s, v, a); - return ret; - } - public static void HSV(ImColorPtr pOut, float h, float s, float v, float a) - { - ImGuiNative.HSV(pOut, h, s, v, a); - } - public static void HSV(ImColorPtr pOut, float h, float s, float v) - { - ImGuiNative.HSV(pOut, h, s, v, (float)(1.0f)); - } - public static void HSV(ref ImColor pOut, float h, float s, float v, float a) - { - fixed (ImColor* ppOut = &pOut) - { - ImGuiNative.HSV((ImColor*)ppOut, h, s, v, a); - } - } - public static void HSV(ref ImColor pOut, float h, float s, float v) - { - fixed (ImColor* ppOut = &pOut) - { - ImGuiNative.HSV((ImColor*)ppOut, h, s, v, (float)(1.0f)); - } - } - public static ImDrawCmdPtr ImDrawCmd() - { - ImDrawCmdPtr ret = ImGuiNative.ImDrawCmd(); - return ret; - } - public static ImTextureID GetTexID(this ImDrawCmdPtr self) - { - ImTextureID ret = ImGuiNative.GetTexID(self); - return ret; - } - public static ImTextureID GetTexID(this scoped in ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - ImTextureID ret = ImGuiNative.GetTexID((ImDrawCmd*)pself); - return ret; - } - } - public static ImDrawListSplitterPtr ImDrawListSplitter() - { - ImDrawListSplitterPtr ret = ImGuiNative.ImDrawListSplitter(); - return ret; - } - public static void ClearFreeMemory(this ImDrawListSplitterPtr self) - { - ImGuiNative.ClearFreeMemory(self); - } - public static void ClearFreeMemory(this ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ImGuiNative.ClearFreeMemory((ImDrawListSplitter*)pself); - } - } - public static void Split(this ImDrawListSplitterPtr self, ImDrawListPtr drawList, int count) - { - ImGuiNative.Split(self, drawList, count); - } - public static void Split(this ref ImDrawListSplitter self, ImDrawListPtr drawList, int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - ImGuiNative.Split((ImDrawListSplitter*)pself, drawList, count); - } - } - public static void Split(this ImDrawListSplitterPtr self, ref ImDrawList drawList, int count) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Split(self, (ImDrawList*)pdrawList, count); - } - } - public static void Split(this ref ImDrawListSplitter self, ref ImDrawList drawList, int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Split((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, count); - } - } - } - public static void Merge(this ImDrawListSplitterPtr self, ImDrawListPtr drawList) - { - ImGuiNative.Merge(self, drawList); - } - public static void Merge(this ref ImDrawListSplitter self, ImDrawListPtr drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - ImGuiNative.Merge((ImDrawListSplitter*)pself, drawList); - } - } - public static void Merge(this ImDrawListSplitterPtr self, ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Merge(self, (ImDrawList*)pdrawList); - } - } - public static void Merge(this ref ImDrawListSplitter self, ref ImDrawList drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Merge((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList); - } - } - } - public static void SetCurrentChannel(this ImDrawListSplitterPtr self, ImDrawListPtr drawList, int channelIdx) - { - ImGuiNative.SetCurrentChannel(self, drawList, channelIdx); - } - public static void SetCurrentChannel(this ref ImDrawListSplitter self, ImDrawListPtr drawList, int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - ImGuiNative.SetCurrentChannel((ImDrawListSplitter*)pself, drawList, channelIdx); - } - } - public static void SetCurrentChannel(this ImDrawListSplitterPtr self, ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.SetCurrentChannel(self, (ImDrawList*)pdrawList, channelIdx); - } - } - public static void SetCurrentChannel(this ref ImDrawListSplitter self, ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.SetCurrentChannel((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, channelIdx); - } - } - } - public static ImDrawListPtr ImDrawList(ImDrawListSharedDataPtr sharedData) - { - ImDrawListPtr ret = ImGuiNative.ImDrawList(sharedData); - return ret; - } - public static ImDrawListPtr ImDrawList(ref ImDrawListSharedData sharedData) - { - fixed (ImDrawListSharedData* psharedData = &sharedData) - { - ImDrawListPtr ret = ImGuiNative.ImDrawList((ImDrawListSharedData*)psharedData); - return ret; - } - } - public static void PushClipRectFullScreen(this ImDrawListPtr self) - { - ImGuiNative.PushClipRectFullScreen(self); - } - public static void PushClipRectFullScreen(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PushClipRectFullScreen((ImDrawList*)pself); - } - } - public static void PushTextureID(this ImDrawListPtr self, ImTextureID textureId) - { - ImGuiNative.PushTextureID(self, textureId); - } - public static void PushTextureID(this ref ImDrawList self, ImTextureID textureId) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PushTextureID((ImDrawList*)pself, textureId); - } - } - public static void PopTextureID(this ImDrawListPtr self) - { - ImGuiNative.PopTextureID(self); - } - public static void PopTextureID(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PopTextureID((ImDrawList*)pself); - } - } - public static Vector2 GetClipRectMin(this ImDrawListPtr self) - { - Vector2 ret; - ImGuiNative.GetClipRectMin(&ret, self); - return ret; - } - public static void GetClipRectMin(Vector2* pOut, ImDrawListPtr self) - { - ImGuiNative.GetClipRectMin(pOut, self); - } - public static void GetClipRectMin(ref Vector2 pOut, ImDrawListPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetClipRectMin((Vector2*)ppOut, self); - } - } - public static Vector2 GetClipRectMin(this scoped in ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - Vector2 ret; - ImGuiNative.GetClipRectMin(&ret, (ImDrawList*)pself); - return ret; - } - } - public static void GetClipRectMin(Vector2* pOut, ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.GetClipRectMin(pOut, (ImDrawList*)pself); - } - } - public static void GetClipRectMin(ref Vector2 pOut, ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.GetClipRectMin((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - public static Vector2 GetClipRectMax(this ImDrawListPtr self) - { - Vector2 ret; - ImGuiNative.GetClipRectMax(&ret, self); - return ret; - } - public static void GetClipRectMax(Vector2* pOut, ImDrawListPtr self) - { - ImGuiNative.GetClipRectMax(pOut, self); - } - public static void GetClipRectMax(ref Vector2 pOut, ImDrawListPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetClipRectMax((Vector2*)ppOut, self); - } - } - public static Vector2 GetClipRectMax(this scoped in ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - Vector2 ret; - ImGuiNative.GetClipRectMax(&ret, (ImDrawList*)pself); - return ret; - } - } - public static void GetClipRectMax(Vector2* pOut, ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.GetClipRectMax(pOut, (ImDrawList*)pself); - } - } - public static void GetClipRectMax(ref Vector2 pOut, ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.GetClipRectMax((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - public static void AddLine(this ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - ImGuiNative.AddLine(self, p1, p2, col, thickness); - } - public static void AddLine(this ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col) - { - ImGuiNative.AddLine(self, p1, p2, col, (float)(1.0f)); - } - public static void AddLine(this ref ImDrawList self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddLine((ImDrawList*)pself, p1, p2, col, thickness); - } - } - public static void AddLine(this ref ImDrawList self, Vector2 p1, Vector2 p2, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddLine((ImDrawList*)pself, p1, p2, col, (float)(1.0f)); - } - } - public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - ImGuiNative.AddRect(self, pMin, pMax, col, rounding, flags, thickness); - } - public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - ImGuiNative.AddRect(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - ImGuiNative.AddRect(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) - { - ImGuiNative.AddRect(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - ImGuiNative.AddRect(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - ImGuiNative.AddRect(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - public static void AddRect(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - ImGuiNative.AddRect(self, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, flags, thickness); - } - } - public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - } - public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - } - public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - } - public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - } - public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - } - public static void AddRect(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRect((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - } - public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - ImGuiNative.AddRectFilled(self, pMin, pMax, col, rounding, flags); - } - public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - ImGuiNative.AddRectFilled(self, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) - { - ImGuiNative.AddRectFilled(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - public static void AddRectFilled(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - ImGuiNative.AddRectFilled(self, pMin, pMax, col, (float)(0.0f), flags); - } - public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, rounding, flags); - } - } - public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - } - public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - } - public static void AddRectFilled(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRectFilled((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags); - } - } - public static void AddRectFilledMultiColor(this ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - ImGuiNative.AddRectFilledMultiColor(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - public static void AddRectFilledMultiColor(this ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddRectFilledMultiColor((ImDrawList*)pself, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - } - public static void AddQuad(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - ImGuiNative.AddQuad(self, p1, p2, p3, p4, col, thickness); - } - public static void AddQuad(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGuiNative.AddQuad(self, p1, p2, p3, p4, col, (float)(1.0f)); - } - public static void AddQuad(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddQuad((ImDrawList*)pself, p1, p2, p3, p4, col, thickness); - } - } - public static void AddQuad(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddQuad((ImDrawList*)pself, p1, p2, p3, p4, col, (float)(1.0f)); - } - } - public static void AddQuadFilled(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGuiNative.AddQuadFilled(self, p1, p2, p3, p4, col); - } - public static void AddQuadFilled(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddQuadFilled((ImDrawList*)pself, p1, p2, p3, p4, col); - } - } - public static void AddTriangle(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - ImGuiNative.AddTriangle(self, p1, p2, p3, col, thickness); - } - public static void AddTriangle(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - ImGuiNative.AddTriangle(self, p1, p2, p3, col, (float)(1.0f)); - } - public static void AddTriangle(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddTriangle((ImDrawList*)pself, p1, p2, p3, col, thickness); - } - } - public static void AddTriangle(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddTriangle((ImDrawList*)pself, p1, p2, p3, col, (float)(1.0f)); - } - } - public static void AddTriangleFilled(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - ImGuiNative.AddTriangleFilled(self, p1, p2, p3, col); - } - public static void AddTriangleFilled(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddTriangleFilled((ImDrawList*)pself, p1, p2, p3, col); - } - } - public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - ImGuiNative.AddCircle(self, center, radius, col, numSegments, thickness); - } - public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddCircle(self, center, radius, col, numSegments, (float)(1.0f)); - } - public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col) - { - ImGuiNative.AddCircle(self, center, radius, col, (int)(0), (float)(1.0f)); - } - public static void AddCircle(this ImDrawListPtr self, Vector2 center, float radius, uint col, float thickness) - { - ImGuiNative.AddCircle(self, center, radius, col, (int)(0), thickness); - } - public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, (int)(0), (float)(1.0f)); - } - } - public static void AddCircle(this ref ImDrawList self, Vector2 center, float radius, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddCircle((ImDrawList*)pself, center, radius, col, (int)(0), thickness); - } - } - public static void AddCircleFilled(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddCircleFilled(self, center, radius, col, numSegments); - } - public static void AddCircleFilled(this ImDrawListPtr self, Vector2 center, float radius, uint col) - { - ImGuiNative.AddCircleFilled(self, center, radius, col, (int)(0)); - } - public static void AddCircleFilled(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddCircleFilled((ImDrawList*)pself, center, radius, col, numSegments); - } - } - public static void AddCircleFilled(this ref ImDrawList self, Vector2 center, float radius, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddCircleFilled((ImDrawList*)pself, center, radius, col, (int)(0)); - } - } - public static void AddNgon(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - ImGuiNative.AddNgon(self, center, radius, col, numSegments, thickness); - } - public static void AddNgon(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddNgon(self, center, radius, col, numSegments, (float)(1.0f)); - } - public static void AddNgon(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddNgon((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - public static void AddNgon(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddNgon((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - public static void AddNgonFilled(this ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddNgonFilled(self, center, radius, col, numSegments); - } - public static void AddNgonFilled(this ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddNgonFilled((ImDrawList*)pself, center, radius, col, numSegments); - } - } - public static void AddPolyline(this ImDrawListPtr self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - ImGuiNative.AddPolyline(self, points, numPoints, col, flags, thickness); - } - public static void AddPolyline(this ref ImDrawList self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddPolyline((ImDrawList*)pself, points, numPoints, col, flags, thickness); - } - } - public static void AddPolyline(this ImDrawListPtr self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddPolyline(self, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - public static void AddPolyline(this ref ImDrawList self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddPolyline((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - } - public static void AddConvexPolyFilled(this ImDrawListPtr self, Vector2* points, int numPoints, uint col) - { - ImGuiNative.AddConvexPolyFilled(self, points, numPoints, col); - } - public static void AddConvexPolyFilled(this ref ImDrawList self, Vector2* points, int numPoints, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddConvexPolyFilled((ImDrawList*)pself, points, numPoints, col); - } - } - public static void AddConvexPolyFilled(this ImDrawListPtr self, ref Vector2 points, int numPoints, uint col) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddConvexPolyFilled(self, (Vector2*)ppoints, numPoints, col); - } - } - public static void AddConvexPolyFilled(this ref ImDrawList self, ref Vector2 points, int numPoints, uint col) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddConvexPolyFilled((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col); - } - } - } - public static void AddBezierCubic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - ImGuiNative.AddBezierCubic(self, p1, p2, p3, p4, col, thickness, numSegments); - } - public static void AddBezierCubic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - ImGuiNative.AddBezierCubic(self, p1, p2, p3, p4, col, thickness, (int)(0)); - } - public static void AddBezierCubic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddBezierCubic((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, numSegments); - } - } - public static void AddBezierCubic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddBezierCubic((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, (int)(0)); - } - } - public static void AddBezierQuadratic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - ImGuiNative.AddBezierQuadratic(self, p1, p2, p3, col, thickness, numSegments); - } - public static void AddBezierQuadratic(this ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - ImGuiNative.AddBezierQuadratic(self, p1, p2, p3, col, thickness, (int)(0)); - } - public static void AddBezierQuadratic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddBezierQuadratic((ImDrawList*)pself, p1, p2, p3, col, thickness, numSegments); - } - } - public static void AddBezierQuadratic(this ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddBezierQuadratic((ImDrawList*)pself, p1, p2, p3, col, thickness, (int)(0)); - } - } - public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - ImGuiNative.AddImage(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - ImGuiNative.AddImage(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - public static void AddImage(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - ImGuiNative.AddImage(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - } - public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - } - public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - } - public static void AddImage(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImage((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - public static void AddImageQuad(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGuiNative.AddImageQuad(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - public static void AddImageQuad(this ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageQuad((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - public static void AddImageRounded(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - ImGuiNative.AddImageRounded(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - public static void AddImageRounded(this ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - ImGuiNative.AddImageRounded(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - public static void AddImageRounded(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageRounded((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - } - public static void AddImageRounded(this ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddImageRounded((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - } - public static void PathClear(this ImDrawListPtr self) - { - ImGuiNative.PathClear(self); - } - public static void PathClear(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathClear((ImDrawList*)pself); - } - } - public static void PathLineTo(this ImDrawListPtr self, Vector2 pos) - { - ImGuiNative.PathLineTo(self, pos); - } - public static void PathLineTo(this ref ImDrawList self, Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathLineTo((ImDrawList*)pself, pos); - } - } - public static void PathLineToMergeDuplicate(this ImDrawListPtr self, Vector2 pos) - { - ImGuiNative.PathLineToMergeDuplicate(self, pos); - } - public static void PathLineToMergeDuplicate(this ref ImDrawList self, Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathLineToMergeDuplicate((ImDrawList*)pself, pos); - } - } - public static void PathFillConvex(this ImDrawListPtr self, uint col) - { - ImGuiNative.PathFillConvex(self, col); - } - public static void PathFillConvex(this ref ImDrawList self, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathFillConvex((ImDrawList*)pself, col); - } - } - public static void PathStroke(this ImDrawListPtr self, uint col, ImDrawFlags flags, float thickness) - { - ImGuiNative.PathStroke(self, col, flags, thickness); - } - public static void PathStroke(this ImDrawListPtr self, uint col, ImDrawFlags flags) - { - ImGuiNative.PathStroke(self, col, flags, (float)(1.0f)); - } - public static void PathStroke(this ImDrawListPtr self, uint col) - { - ImGuiNative.PathStroke(self, col, (ImDrawFlags)(0), (float)(1.0f)); - } - public static void PathStroke(this ImDrawListPtr self, uint col, float thickness) - { - ImGuiNative.PathStroke(self, col, (ImDrawFlags)(0), thickness); - } - public static void PathStroke(this ref ImDrawList self, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathStroke((ImDrawList*)pself, col, flags, thickness); - } - } - public static void PathStroke(this ref ImDrawList self, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathStroke((ImDrawList*)pself, col, flags, (float)(1.0f)); - } - } - public static void PathStroke(this ref ImDrawList self, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathStroke((ImDrawList*)pself, col, (ImDrawFlags)(0), (float)(1.0f)); - } - } - public static void PathStroke(this ref ImDrawList self, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathStroke((ImDrawList*)pself, col, (ImDrawFlags)(0), thickness); - } - } - public static void PathArcTo(this ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - ImGuiNative.PathArcTo(self, center, radius, aMin, aMax, numSegments); - } - public static void PathArcTo(this ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax) - { - ImGuiNative.PathArcTo(self, center, radius, aMin, aMax, (int)(0)); - } - public static void PathArcTo(this ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathArcTo((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - public static void PathArcTo(this ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathArcTo((ImDrawList*)pself, center, radius, aMin, aMax, (int)(0)); - } - } - public static void PathArcToFast(this ImDrawListPtr self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - ImGuiNative.PathArcToFast(self, center, radius, aMinOf12, aMaxOf12); - } - public static void PathArcToFast(this ref ImDrawList self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathArcToFast((ImDrawList*)pself, center, radius, aMinOf12, aMaxOf12); - } - } - public static void PathBezierCubicCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - ImGuiNative.PathBezierCubicCurveTo(self, p2, p3, p4, numSegments); - } - public static void PathBezierCubicCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4) - { - ImGuiNative.PathBezierCubicCurveTo(self, p2, p3, p4, (int)(0)); - } - public static void PathBezierCubicCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathBezierCubicCurveTo((ImDrawList*)pself, p2, p3, p4, numSegments); - } - } - public static void PathBezierCubicCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathBezierCubicCurveTo((ImDrawList*)pself, p2, p3, p4, (int)(0)); - } - } - public static void PathBezierQuadraticCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3, int numSegments) - { - ImGuiNative.PathBezierQuadraticCurveTo(self, p2, p3, numSegments); - } - public static void PathBezierQuadraticCurveTo(this ImDrawListPtr self, Vector2 p2, Vector2 p3) - { - ImGuiNative.PathBezierQuadraticCurveTo(self, p2, p3, (int)(0)); - } - public static void PathBezierQuadraticCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathBezierQuadraticCurveTo((ImDrawList*)pself, p2, p3, numSegments); - } - } - public static void PathBezierQuadraticCurveTo(this ref ImDrawList self, Vector2 p2, Vector2 p3) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathBezierQuadraticCurveTo((ImDrawList*)pself, p2, p3, (int)(0)); - } - } - public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - ImGuiNative.PathRect(self, rectMin, rectMax, rounding, flags); - } - public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding) - { - ImGuiNative.PathRect(self, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax) - { - ImGuiNative.PathRect(self, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - public static void PathRect(this ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - ImGuiNative.PathRect(self, rectMin, rectMax, (float)(0.0f), flags); - } - public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, rounding, flags); - } - } - public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - } - public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - } - public static void PathRect(this ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PathRect((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), flags); - } - } - public static void AddCallback(this ImDrawListPtr self, ImDrawCallback callback, void* callbackData) - { - ImGuiNative.AddCallback(self, callback, callbackData); - } - public static void AddCallback(this ref ImDrawList self, ImDrawCallback callback, void* callbackData) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddCallback((ImDrawList*)pself, callback, callbackData); - } - } - public static void AddDrawCmd(this ImDrawListPtr self) - { - ImGuiNative.AddDrawCmd(self); - } - public static void AddDrawCmd(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.AddDrawCmd((ImDrawList*)pself); - } - } - public static ImDrawListPtr CloneOutput(this ImDrawListPtr self) - { - ImDrawListPtr ret = ImGuiNative.CloneOutput(self); - return ret; - } - public static ImDrawListPtr CloneOutput(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImDrawListPtr ret = ImGuiNative.CloneOutput((ImDrawList*)pself); - return ret; - } - } - public static void ChannelsSplit(this ImDrawListPtr self, int count) - { - ImGuiNative.ChannelsSplit(self, count); - } - public static void ChannelsSplit(this ref ImDrawList self, int count) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.ChannelsSplit((ImDrawList*)pself, count); - } - } - public static void ChannelsMerge(this ImDrawListPtr self) - { - ImGuiNative.ChannelsMerge(self); - } - public static void ChannelsMerge(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.ChannelsMerge((ImDrawList*)pself); - } - } - public static void ChannelsSetCurrent(this ImDrawListPtr self, int n) - { - ImGuiNative.ChannelsSetCurrent(self, n); - } - public static void ChannelsSetCurrent(this ref ImDrawList self, int n) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.ChannelsSetCurrent((ImDrawList*)pself, n); - } - } - public static void PrimReserve(this ImDrawListPtr self, int idxCount, int vtxCount) - { - ImGuiNative.PrimReserve(self, idxCount, vtxCount); - } - public static void PrimReserve(this ref ImDrawList self, int idxCount, int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimReserve((ImDrawList*)pself, idxCount, vtxCount); - } - } - public static void PrimUnreserve(this ImDrawListPtr self, int idxCount, int vtxCount) - { - ImGuiNative.PrimUnreserve(self, idxCount, vtxCount); - } - public static void PrimUnreserve(this ref ImDrawList self, int idxCount, int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimUnreserve((ImDrawList*)pself, idxCount, vtxCount); - } - } - public static void PrimRect(this ImDrawListPtr self, Vector2 a, Vector2 b, uint col) - { - ImGuiNative.PrimRect(self, a, b, col); - } - public static void PrimRect(this ref ImDrawList self, Vector2 a, Vector2 b, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimRect((ImDrawList*)pself, a, b, col); - } - } - public static void PrimRectUV(this ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - ImGuiNative.PrimRectUV(self, a, b, uvA, uvB, col); - } - public static void PrimRectUV(this ref ImDrawList self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimRectUV((ImDrawList*)pself, a, b, uvA, uvB, col); - } - } - public static void PrimQuadUV(this ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - ImGuiNative.PrimQuadUV(self, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - public static void PrimQuadUV(this ref ImDrawList self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimQuadUV((ImDrawList*)pself, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - } - public static void PrimWriteVtx(this ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) - { - ImGuiNative.PrimWriteVtx(self, pos, uv, col); - } - public static void PrimWriteVtx(this ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimWriteVtx((ImDrawList*)pself, pos, uv, col); - } - } - public static void PrimWriteIdx(this ImDrawListPtr self, ushort idx) - { - ImGuiNative.PrimWriteIdx(self, idx); - } - public static void PrimWriteIdx(this ref ImDrawList self, ushort idx) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimWriteIdx((ImDrawList*)pself, idx); - } - } - public static void PrimVtx(this ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) - { - ImGuiNative.PrimVtx(self, pos, uv, col); - } - public static void PrimVtx(this ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative.PrimVtx((ImDrawList*)pself, pos, uv, col); - } - } - public static void _ResetForNewFrame(this ImDrawListPtr self) - { - ImGuiNative._ResetForNewFrame(self); - } - public static void _ResetForNewFrame(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._ResetForNewFrame((ImDrawList*)pself); - } - } - public static void _ClearFreeMemory(this ImDrawListPtr self) - { - ImGuiNative._ClearFreeMemory(self); - } - public static void _ClearFreeMemory(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._ClearFreeMemory((ImDrawList*)pself); - } - } - public static void _PopUnusedDrawCmd(this ImDrawListPtr self) - { - ImGuiNative._PopUnusedDrawCmd(self); - } - public static void _PopUnusedDrawCmd(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._PopUnusedDrawCmd((ImDrawList*)pself); - } - } - public static void _TryMergeDrawCmds(this ImDrawListPtr self) - { - ImGuiNative._TryMergeDrawCmds(self); - } - public static void _TryMergeDrawCmds(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._TryMergeDrawCmds((ImDrawList*)pself); - } - } - public static void _OnChangedClipRect(this ImDrawListPtr self) - { - ImGuiNative._OnChangedClipRect(self); - } - public static void _OnChangedClipRect(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._OnChangedClipRect((ImDrawList*)pself); - } - } - public static void _OnChangedTextureID(this ImDrawListPtr self) - { - ImGuiNative._OnChangedTextureID(self); - } - public static void _OnChangedTextureID(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._OnChangedTextureID((ImDrawList*)pself); - } - } - public static void _OnChangedVtxOffset(this ImDrawListPtr self) - { - ImGuiNative._OnChangedVtxOffset(self); - } - public static void _OnChangedVtxOffset(this ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._OnChangedVtxOffset((ImDrawList*)pself); - } - } - public static int _CalcCircleAutoSegmentCount(this ImDrawListPtr self, float radius) - { - int ret = ImGuiNative._CalcCircleAutoSegmentCount(self, radius); - return ret; - } - public static int _CalcCircleAutoSegmentCount(this ref ImDrawList self, float radius) - { - fixed (ImDrawList* pself = &self) - { - int ret = ImGuiNative._CalcCircleAutoSegmentCount((ImDrawList*)pself, radius); - return ret; - } - } - public static void _PathArcToFastEx(this ImDrawListPtr self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - ImGuiNative._PathArcToFastEx(self, center, radius, aMinSample, aMaxSample, aStep); - } - public static void _PathArcToFastEx(this ref ImDrawList self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._PathArcToFastEx((ImDrawList*)pself, center, radius, aMinSample, aMaxSample, aStep); - } - } - public static void _PathArcToN(this ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - ImGuiNative._PathArcToN(self, center, radius, aMin, aMax, numSegments); - } - public static void _PathArcToN(this ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - ImGuiNative._PathArcToN((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - public static ImDrawDataPtr ImDrawData() - { - ImDrawDataPtr ret = ImGuiNative.ImDrawData(); - return ret; - } - public static void DeIndexAllBuffers(this ImDrawDataPtr self) - { - ImGuiNative.DeIndexAllBuffers(self); - } - public static void DeIndexAllBuffers(this ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - ImGuiNative.DeIndexAllBuffers((ImDrawData*)pself); - } - } - public static void ScaleClipRects(this ImDrawDataPtr self, Vector2 fbScale) - { - ImGuiNative.ScaleClipRects(self, fbScale); - } - public static void ScaleClipRects(this ref ImDrawData self, Vector2 fbScale) - { - fixed (ImDrawData* pself = &self) - { - ImGuiNative.ScaleClipRects((ImDrawData*)pself, fbScale); - } - } - public static ImFontConfigPtr ImFontConfig() - { - ImFontConfigPtr ret = ImGuiNative.ImFontConfig(); - return ret; - } - public static ImFontGlyphRangesBuilderPtr ImFontGlyphRangesBuilder() - { - ImFontGlyphRangesBuilderPtr ret = ImGuiNative.ImFontGlyphRangesBuilder(); - return ret; - } - public static bool GetBit(this ImFontGlyphRangesBuilderPtr self, nuint n) - { - byte ret = ImGuiNative.GetBit(self, n); - return ret != 0; - } - public static bool GetBit(this scoped in ImFontGlyphRangesBuilder self, nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte ret = ImGuiNative.GetBit((ImFontGlyphRangesBuilder*)pself, n); - return ret != 0; - } - } - public static void SetBit(this ImFontGlyphRangesBuilderPtr self, nuint n) - { - ImGuiNative.SetBit(self, n); - } - public static void SetBit(this ref ImFontGlyphRangesBuilder self, nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ImGuiNative.SetBit((ImFontGlyphRangesBuilder*)pself, n); - } - } - public static void AddChar(this ImFontGlyphRangesBuilderPtr self, ushort c) - { - ImGuiNative.AddChar(self, c); - } - public static void AddChar(this ref ImFontGlyphRangesBuilder self, ushort c) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ImGuiNative.AddChar((ImFontGlyphRangesBuilder*)pself, c); - } - } - public static void AddRanges(this ImFontGlyphRangesBuilderPtr self, ushort* ranges) - { - ImGuiNative.AddRanges(self, ranges); - } - public static void AddRanges(this ref ImFontGlyphRangesBuilder self, ushort* ranges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ImGuiNative.AddRanges((ImFontGlyphRangesBuilder*)pself, ranges); - } - } - public static void BuildRanges(this ImFontGlyphRangesBuilderPtr self, ImVector<ushort>* outRanges) - { - ImGuiNative.BuildRanges(self, outRanges); - } - public static void BuildRanges(this ref ImFontGlyphRangesBuilder self, ImVector<ushort>* outRanges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ImGuiNative.BuildRanges((ImFontGlyphRangesBuilder*)pself, outRanges); - } - } - public static void BuildRanges(this ImFontGlyphRangesBuilderPtr self, ref ImVector<ushort> outRanges) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - ImGuiNative.BuildRanges(self, (ImVector<ushort>*)poutRanges); - } - } - public static void BuildRanges(this ref ImFontGlyphRangesBuilder self, ref ImVector<ushort> outRanges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - ImGuiNative.BuildRanges((ImFontGlyphRangesBuilder*)pself, (ImVector<ushort>*)poutRanges); - } - } - } - public static ImFontAtlasCustomRectPtr ImFontAtlasCustomRect() - { - ImFontAtlasCustomRectPtr ret = ImGuiNative.ImFontAtlasCustomRect(); - return ret; - } - public static bool IsPacked(this ImFontAtlasCustomRectPtr self) - { - byte ret = ImGuiNative.IsPacked(self); - return ret != 0; - } - public static bool IsPacked(this ref ImFontAtlasCustomRect self) - { - fixed (ImFontAtlasCustomRect* pself = &self) - { - byte ret = ImGuiNative.IsPacked((ImFontAtlasCustomRect*)pself); - return ret != 0; - } - } - public static ImFontAtlasPtr ImFontAtlas() - { - ImFontAtlasPtr ret = ImGuiNative.ImFontAtlas(); - return ret; - } - public static ImFontPtr AddFont(this ImFontAtlasPtr self, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFont(self, fontCfg); - return ret; - } - public static ImFontPtr AddFont(this ref ImFontAtlas self, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = ImGuiNative.AddFont((ImFontAtlas*)pself, fontCfg); - return ret; - } - } - public static ImFontPtr AddFont(this ImFontAtlasPtr self, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFont(self, (ImFontConfig*)pfontCfg); - return ret; - } - } - public static ImFontPtr AddFont(this ref ImFontAtlas self, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFont((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - public static ImFontPtr AddFontDefault(this ImFontAtlasPtr self, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(self, fontCfg); - return ret; - } - public static ImFontPtr AddFontDefault(this ImFontAtlasPtr self) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(self, (ImFontConfig*)(default)); - return ret; - } - public static ImFontPtr AddFontDefault(this ref ImFontAtlas self, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = ImGuiNative.AddFontDefault((ImFontAtlas*)pself, fontCfg); - return ret; - } - } - public static ImFontPtr AddFontDefault(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = ImGuiNative.AddFontDefault((ImFontAtlas*)pself, (ImFontConfig*)(default)); - return ret; - } - } - public static ImFontPtr AddFontDefault(this ImFontAtlasPtr self, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(self, (ImFontConfig*)pfontCfg); - return ret; - } - } - public static ImFontPtr AddFontDefault(this ref ImFontAtlas self, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFontDefault((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - public static void ClearInputData(this ImFontAtlasPtr self) - { - ImGuiNative.ClearInputData(self); - } - public static void ClearInputData(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.ClearInputData((ImFontAtlas*)pself); - } - } - public static void ClearTexData(this ImFontAtlasPtr self) - { - ImGuiNative.ClearTexData(self); - } - public static void ClearTexData(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.ClearTexData((ImFontAtlas*)pself); - } - } - public static void ClearFonts(this ImFontAtlasPtr self) - { - ImGuiNative.ClearFonts(self); - } - public static void ClearFonts(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.ClearFonts((ImFontAtlas*)pself); - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsAlpha8(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsAlpha8(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsRGBA32(this ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public static void GetTexDataAsRGBA32(this scoped in ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - public static bool IsBuilt(this ImFontAtlasPtr self) - { - byte ret = ImGuiNative.IsBuilt(self); - return ret != 0; - } - public static bool IsBuilt(this ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = ImGuiNative.IsBuilt((ImFontAtlas*)pself); - return ret != 0; - } - } - public static void SetTexID(this ImFontAtlasPtr self, int textureIndex, ImTextureID id) - { - ImGuiNative.SetTexID(self, textureIndex, id); - } - public static void SetTexID(this ref ImFontAtlas self, int textureIndex, ImTextureID id) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.SetTexID((ImFontAtlas*)pself, textureIndex, id); - } - } - public static void ClearTexID(this ImFontAtlasPtr self, ImTextureID nullId) - { - ImGuiNative.ClearTexID(self, nullId); - } - public static void ClearTexID(this ref ImFontAtlas self, ImTextureID nullId) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.ClearTexID((ImFontAtlas*)pself, nullId); - } - } - public static ushort* GetGlyphRangesDefault(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesDefault(self); - return ret; - } - public static ushort* GetGlyphRangesDefault(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesDefault((ImFontAtlas*)pself); - return ret; - } - } - public static ushort* GetGlyphRangesKorean(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesKorean(self); - return ret; - } - public static ushort* GetGlyphRangesKorean(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesKorean((ImFontAtlas*)pself); - return ret; - } - } - public static ushort* GetGlyphRangesJapanese(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesJapanese(self); - return ret; - } - public static ushort* GetGlyphRangesJapanese(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesJapanese((ImFontAtlas*)pself); - return ret; - } - } - public static ushort* GetGlyphRangesChineseFull(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseFull(self); - return ret; - } - public static ushort* GetGlyphRangesChineseFull(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseFull((ImFontAtlas*)pself); - return ret; - } - } - public static ushort* GetGlyphRangesChineseSimplifiedCommon(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon(self); - return ret; - } - public static ushort* GetGlyphRangesChineseSimplifiedCommon(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon((ImFontAtlas*)pself); - return ret; - } - } - public static ushort* GetGlyphRangesCyrillic(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesCyrillic(self); - return ret; - } - public static ushort* GetGlyphRangesCyrillic(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesCyrillic((ImFontAtlas*)pself); - return ret; - } - } - public static ushort* GetGlyphRangesThai(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesThai(self); - return ret; - } - public static ushort* GetGlyphRangesThai(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesThai((ImFontAtlas*)pself); - return ret; - } - } - public static ushort* GetGlyphRangesVietnamese(this ImFontAtlasPtr self) - { - ushort* ret = ImGuiNative.GetGlyphRangesVietnamese(self); - return ret; - } - public static ushort* GetGlyphRangesVietnamese(this scoped in ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = ImGuiNative.GetGlyphRangesVietnamese((ImFontAtlas*)pself); - return ret; - } - } - public static int AddCustomRectRegular(this ImFontAtlasPtr self, int width, int height) - { - int ret = ImGuiNative.AddCustomRectRegular(self, width, height); - return ret; - } - public static int AddCustomRectRegular(this ref ImFontAtlas self, int width, int height) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = ImGuiNative.AddCustomRectRegular((ImFontAtlas*)pself, width, height); - return ret; - } - } - public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(self, font, id, width, height, advanceX, offset); - return ret; - } - public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - public static int AddCustomRectFontGlyph(this ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, font, id, width, height, advanceX, offset); - return ret; - } - } - public static int AddCustomRectFontGlyph(this ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(self, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - public static int AddCustomRectFontGlyph(this ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - public static int AddCustomRectFontGlyph(this ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - } - public static int AddCustomRectFontGlyph(this ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - } - public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(this ImFontAtlasPtr self, int index) - { - ImFontAtlasCustomRectPtr ret = ImGuiNative.GetCustomRectByIndex(self, index); - return ret; - } - public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(this scoped in ImFontAtlas self, int index) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontAtlasCustomRectPtr ret = ImGuiNative.GetCustomRectByIndex((ImFontAtlas*)pself, index); - return ret; - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) - { - ImGuiNative.CalcCustomRectUV(self, rect, outUvMin, outUvMax); - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, outUvMin, outUvMax); - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV(self, rect, (Vector2*)poutUvMin, outUvMax); - } - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, outUvMax); - } - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(self, rect, outUvMin, (Vector2*)poutUvMax); - } - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, outUvMin, (Vector2*)poutUvMax); - } - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - public static void CalcCustomRectUV(this ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - public static void CalcCustomRectUV(this ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - public static bool GetMouseCursorTexData(this scoped in ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - public static ImFontPtr ImFont() - { - ImFontPtr ret = ImGuiNative.ImFont(); - return ret; - } - public static ImFontGlyphPtr FindGlyph(this ImFontPtr self, ushort c) - { - ImFontGlyphPtr ret = ImGuiNative.FindGlyph(self, c); - return ret; - } - public static ImFontGlyphPtr FindGlyph(this ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyphPtr ret = ImGuiNative.FindGlyph((ImFont*)pself, c); - return ret; - } - } - public static ImFontGlyphPtr FindGlyphNoFallback(this ImFontPtr self, ushort c) - { - ImFontGlyphPtr ret = ImGuiNative.FindGlyphNoFallback(self, c); - return ret; - } - public static ImFontGlyphPtr FindGlyphNoFallback(this ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyphPtr ret = ImGuiNative.FindGlyphNoFallback((ImFont*)pself, c); - return ret; - } - } - public static float GetDistanceAdjustmentForPair(this ImFontPtr self, ushort leftC, ushort rightC) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPair(self, leftC, rightC); - return ret; - } - public static float GetDistanceAdjustmentForPair(this scoped in ImFont self, ushort leftC, ushort rightC) - { - fixed (ImFont* pself = &self) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPair((ImFont*)pself, leftC, rightC); - return ret; - } - } - public static float GetCharAdvance(this ImFontPtr self, ushort c) - { - float ret = ImGuiNative.GetCharAdvance(self, c); - return ret; - } - public static float GetCharAdvance(this scoped in ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - float ret = ImGuiNative.GetCharAdvance((ImFont*)pself, c); - return ret; - } - } - public static bool IsLoaded(this ImFontPtr self) - { - byte ret = ImGuiNative.IsLoaded(self); - return ret != 0; - } - public static bool IsLoaded(this ref ImFont self) - { - fixed (ImFont* pself = &self) - { - byte ret = ImGuiNative.IsLoaded((ImFont*)pself); - return ret != 0; - } - } - public static void RenderChar(this ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - ImGuiNative.RenderChar(self, drawList, size, pos, col, c); - } - public static void RenderChar(this ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.RenderChar((ImFont*)pself, drawList, size, pos, col, c); - } - } - public static void RenderChar(this ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.RenderChar(self, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - public static void RenderChar(this ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.RenderChar((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - } - public static void BuildLookupTable(this ImFontPtr self) - { - ImGuiNative.BuildLookupTable(self); - } - public static void BuildLookupTable(this ref ImFont self) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.BuildLookupTable((ImFont*)pself); - } - } - public static void ClearOutputData(this ImFontPtr self) - { - ImGuiNative.ClearOutputData(self); - } - public static void ClearOutputData(this ref ImFont self) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.ClearOutputData((ImFont*)pself); - } - } - public static void GrowIndex(this ImFontPtr self, int newSize) - { - ImGuiNative.GrowIndex(self, newSize); - } - public static void GrowIndex(this ref ImFont self, int newSize) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.GrowIndex((ImFont*)pself, newSize); - } - } - public static void AddGlyph(this ImFontPtr self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - ImGuiNative.AddGlyph(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - public static void AddGlyph(this ref ImFont self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.AddGlyph((ImFont*)pself, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - public static void AddGlyph(this ImFontPtr self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - ImGuiNative.AddGlyph(self, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - public static void AddGlyph(this ref ImFont self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* pself = &self) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - ImGuiNative.AddGlyph((ImFont*)pself, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - } - public static void AddRemapChar(this ImFontPtr self, ushort dst, ushort src, bool overwriteDst) - { - ImGuiNative.AddRemapChar(self, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - public static void AddRemapChar(this ImFontPtr self, ushort dst, ushort src) - { - ImGuiNative.AddRemapChar(self, dst, src, (byte)(1)); - } - public static void AddRemapChar(this ref ImFont self, ushort dst, ushort src, bool overwriteDst) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.AddRemapChar((ImFont*)pself, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - } - public static void AddRemapChar(this ref ImFont self, ushort dst, ushort src) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.AddRemapChar((ImFont*)pself, dst, src, (byte)(1)); - } - } - public static void SetGlyphVisible(this ImFontPtr self, ushort c, bool visible) - { - ImGuiNative.SetGlyphVisible(self, c, visible ? (byte)1 : (byte)0); - } - public static void SetGlyphVisible(this ref ImFont self, ushort c, bool visible) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.SetGlyphVisible((ImFont*)pself, c, visible ? (byte)1 : (byte)0); - } - } - public static bool IsGlyphRangeUnused(this ImFontPtr self, uint cBegin, uint cLast) - { - byte ret = ImGuiNative.IsGlyphRangeUnused(self, cBegin, cLast); - return ret != 0; - } - public static bool IsGlyphRangeUnused(this ref ImFont self, uint cBegin, uint cLast) - { - fixed (ImFont* pself = &self) - { - byte ret = ImGuiNative.IsGlyphRangeUnused((ImFont*)pself, cBegin, cLast); - return ret != 0; - } - } - public static void AddKerningPair(this ImFontPtr self, ushort leftC, ushort rightC, float distanceAdjustment) - { - ImGuiNative.AddKerningPair(self, leftC, rightC, distanceAdjustment); - } - public static void AddKerningPair(this ref ImFont self, ushort leftC, ushort rightC, float distanceAdjustment) - { - fixed (ImFont* pself = &self) - { - ImGuiNative.AddKerningPair((ImFont*)pself, leftC, rightC, distanceAdjustment); - } - } - public static float GetDistanceAdjustmentForPairFromHotData(this ImFontPtr self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(self, leftC, rightCInfo); - return ret; - } - public static float GetDistanceAdjustmentForPairFromHotData(this scoped in ImFont self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) - { - fixed (ImFont* pself = &self) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData((ImFont*)pself, leftC, rightCInfo); - return ret; - } - } - public static float GetDistanceAdjustmentForPairFromHotData(this ImFontPtr self, ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(self, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - public static float GetDistanceAdjustmentForPairFromHotData(this scoped in ImFont self, ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFont* pself = &self) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData((ImFont*)pself, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - } - public static ImGuiViewportPtr ImGuiViewport() - { - ImGuiViewportPtr ret = ImGuiNative.ImGuiViewport(); - return ret; - } - public static Vector2 GetCenter(this ImGuiViewportPtr self) - { - Vector2 ret; - ImGuiNative.GetCenter(&ret, self); - return ret; - } - public static void GetCenter(Vector2* pOut, ImGuiViewportPtr self) - { - ImGuiNative.GetCenter(pOut, self); - } - public static void GetCenter(ref Vector2 pOut, ImGuiViewportPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetCenter((Vector2*)ppOut, self); - } - } - public static Vector2 GetCenter(this scoped in ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - Vector2 ret; - ImGuiNative.GetCenter(&ret, (ImGuiViewport*)pself); - return ret; - } - } - public static void GetCenter(Vector2* pOut, ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - ImGuiNative.GetCenter(pOut, (ImGuiViewport*)pself); - } - } - public static void GetCenter(ref Vector2 pOut, ref ImGuiViewport self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewport* pself = &self) - { - ImGuiNative.GetCenter((Vector2*)ppOut, (ImGuiViewport*)pself); - } - } - } - public static Vector2 GetWorkCenter(this ImGuiViewportPtr self) - { - Vector2 ret; - ImGuiNative.GetWorkCenter(&ret, self); - return ret; - } - public static void GetWorkCenter(Vector2* pOut, ImGuiViewportPtr self) - { - ImGuiNative.GetWorkCenter(pOut, self); - } - public static void GetWorkCenter(ref Vector2 pOut, ImGuiViewportPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiNative.GetWorkCenter((Vector2*)ppOut, self); - } - } - public static Vector2 GetWorkCenter(this scoped in ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - Vector2 ret; - ImGuiNative.GetWorkCenter(&ret, (ImGuiViewport*)pself); - return ret; - } - } - public static void GetWorkCenter(Vector2* pOut, ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - ImGuiNative.GetWorkCenter(pOut, (ImGuiViewport*)pself); - } - } - public static void GetWorkCenter(ref Vector2 pOut, ref ImGuiViewport self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewport* pself = &self) - { - ImGuiNative.GetWorkCenter((Vector2*)ppOut, (ImGuiViewport*)pself); - } - } - } - public static ImGuiPlatformIOPtr ImGuiPlatformIO() - { - ImGuiPlatformIOPtr ret = ImGuiNative.ImGuiPlatformIO(); - return ret; - } - public static ImGuiPlatformMonitorPtr ImGuiPlatformMonitor() - { - ImGuiPlatformMonitorPtr ret = ImGuiNative.ImGuiPlatformMonitor(); - return ret; - } - public static ImGuiPlatformImeDataPtr ImGuiPlatformImeData() - { - ImGuiPlatformImeDataPtr ret = ImGuiNative.ImGuiPlatformImeData(); - return ret; - } - public static int GetKeyIndex(ImGuiKey key) - { - int ret = ImGuiNative.GetKeyIndex(key); - return ret; - } - public static float GETFLTMAX() - { - float ret = ImGuiNative.GETFLTMAX(); - return ret; - } - public static float GETFLTMIN() - { - float ret = ImGuiNative.GETFLTMIN(); - return ret; - } - public static ImVector<ushort>* ImVectorImWcharCreate() - { - ImVector<ushort>* ret = ImGuiNative.ImVectorImWcharCreate(); - return ret; - } - public static void ImVectorImWcharDestroy(ImVector<ushort>* self) - { - ImGuiNative.ImVectorImWcharDestroy(self); - } - public static void ImVectorImWcharDestroy(ref ImVector<ushort> self) - { - fixed (ImVector<ushort>* pself = &self) - { - ImGuiNative.ImVectorImWcharDestroy((ImVector<ushort>*)pself); - } - } - public static void ImVectorImWcharInit(ImVector<ushort>* p) - { - ImGuiNative.ImVectorImWcharInit(p); - } - public static void ImVectorImWcharInit(ref ImVector<ushort> p) - { - fixed (ImVector<ushort>* pp = &p) - { - ImGuiNative.ImVectorImWcharInit((ImVector<ushort>*)pp); - } - } - public static void ImVectorImWcharUnInit(ImVector<ushort>* p) - { - ImGuiNative.ImVectorImWcharUnInit(p); - } - public static void ImVectorImWcharUnInit(ref ImVector<ushort> p) - { - fixed (ImVector<ushort>* pp = &p) - { - ImGuiNative.ImVectorImWcharUnInit((ImVector<ushort>*)pp); - } - } -} -// DISCARDED: internal static ImGuiPayload* AcceptDragDropPayloadNative(byte* type, ImGuiDragDropFlags flags) -// DISCARDED: internal static ImFont* AddFontFromFileTTFNative(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) -// DISCARDED: internal static ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) -// DISCARDED: internal static ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) -// DISCARDED: internal static ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) -// DISCARDED: internal static void AddInputCharacterNative(ImGuiIO* self, uint c) -// DISCARDED: internal static void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str) -// DISCARDED: internal static void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c) -// DISCARDED: internal static void AddTextNative(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) -// DISCARDED: internal static void AddTextNative(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) -// DISCARDED: internal static void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) -// DISCARDED: internal static void appendNative(ImGuiTextBuffer* self, byte* str, byte* strEnd) -// DISCARDED: internal static void appendfNative(ImGuiTextBuffer* buffer, byte* fmt) -// DISCARDED: internal static void appendfvNative(ImGuiTextBuffer* self, byte* fmt, nuint args) -// DISCARDED: internal static byte ArrowButtonNative(byte* strId, ImGuiDir dir) -// DISCARDED: internal static byte* beginNative(ImGuiTextBuffer* self) -// DISCARDED: internal static byte BeginNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) -// DISCARDED: internal static void BeginNative(ImGuiListClipper* self, int itemsCount, float itemsHeight) -// DISCARDED: internal static byte BeginChildNative(byte* strId, Vector2 size, byte border, ImGuiWindowFlags flags) -// DISCARDED: internal static byte BeginChildNative(uint id, Vector2 size, byte border, ImGuiWindowFlags flags) -// DISCARDED: internal static byte BeginComboNative(byte* label, byte* previewValue, ImGuiComboFlags flags) -// DISCARDED: internal static byte BeginListBoxNative(byte* label, Vector2 size) -// DISCARDED: internal static byte BeginMenuNative(byte* label, byte enabled) -// DISCARDED: internal static byte BeginPopupNative(byte* strId, ImGuiWindowFlags flags) -// DISCARDED: internal static byte BeginPopupContextItemNative(byte* strId, ImGuiPopupFlags popupFlags) -// DISCARDED: internal static byte BeginPopupContextVoidNative(byte* strId, ImGuiPopupFlags popupFlags) -// DISCARDED: internal static byte BeginPopupContextWindowNative(byte* strId, ImGuiPopupFlags popupFlags) -// DISCARDED: internal static byte BeginPopupModalNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) -// DISCARDED: beginS -// DISCARDED: internal static byte BeginTabBarNative(byte* strId, ImGuiTabBarFlags flags) -// DISCARDED: internal static byte BeginTabItemNative(byte* label, bool* pOpen, ImGuiTabItemFlags flags) -// DISCARDED: internal static byte BeginTableNative(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) -// DISCARDED: internal static void BulletTextNative(byte* fmt) -// DISCARDED: internal static void BulletTextVNative(byte* fmt, nuint args) -// DISCARDED: internal static byte ButtonNative(byte* label, Vector2 size) -// DISCARDED: internal static byte* c_strNative(ImGuiTextBuffer* self) -// DISCARDED: c_strS -// DISCARDED: internal static void CalcTextSizeNative(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth) -// DISCARDED: internal static void CalcTextSizeANative(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) -// DISCARDED: internal static byte* CalcWordWrapPositionANative(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) -// DISCARDED: CalcWordWrapPositionAS -// DISCARDED: internal static byte CheckboxNative(byte* label, bool* v) -// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, int* flags, int flagsValue) -// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, uint* flags, uint flagsValue) -// DISCARDED: internal static byte CollapsingHeaderNative(byte* label, ImGuiTreeNodeFlags flags) -// DISCARDED: internal static byte CollapsingHeaderNative(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) -// DISCARDED: internal static byte ColorButtonNative(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) -// DISCARDED: internal static byte ColorEdit3Native(byte* label, float* col, ImGuiColorEditFlags flags) -// DISCARDED: internal static byte ColorEdit4Native(byte* label, float* col, ImGuiColorEditFlags flags) -// DISCARDED: internal static byte ColorPicker3Native(byte* label, float* col, ImGuiColorEditFlags flags) -// DISCARDED: internal static byte ColorPicker4Native(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) -// DISCARDED: internal static void ColumnsNative(int count, byte* id, byte border) -// DISCARDED: internal static byte ComboNative(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) -// DISCARDED: internal static byte ComboNative(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) -// DISCARDED: internal static byte ComboNative(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) -// DISCARDED: internal static byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) -// DISCARDED: internal static void DebugTextEncodingNative(byte* text) -// DISCARDED: internal static byte DragFloatNative(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragFloat2Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragFloat3Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragFloat4Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragFloatRange2Native(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragIntNative(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragInt2Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragInt3Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragInt4Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragIntRange2Native(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragScalarNative(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DragScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte DrawNative(ImGuiTextFilter* self, byte* label, float width) -// DISCARDED: internal static byte* endNative(ImGuiTextBuffer* self) -// DISCARDED: endS -// DISCARDED: internal static bool* GetBoolRefNative(ImGuiStorage* self, uint key, byte defaultVal) -// DISCARDED: internal static byte* GetClipboardTextNative() -// DISCARDED: GetClipboardTextS -// DISCARDED: internal static byte* GetDebugNameNative(ImFont* self) -// DISCARDED: GetDebugNameS -// DISCARDED: internal static float* GetFloatRefNative(ImGuiStorage* self, uint key, float defaultVal) -// DISCARDED: internal static uint GetIDNative(byte* strId) -// DISCARDED: internal static uint GetIDNative(byte* strIdBegin, byte* strIdEnd) -// DISCARDED: internal static uint GetIDNative(void* ptrId) -// DISCARDED: internal static int* GetIntRefNative(ImGuiStorage* self, uint key, int defaultVal) -// DISCARDED: internal static byte* GetKeyNameNative(ImGuiKey key) -// DISCARDED: GetKeyNameS -// DISCARDED: internal static byte* GetStyleColorNameNative(ImGuiCol idx) -// DISCARDED: GetStyleColorNameS -// DISCARDED: internal static byte* GetVersionNative() -// DISCARDED: GetVersionS -// DISCARDED: internal static void** GetVoidPtrRefNative(ImGuiStorage* self, uint key, void* defaultVal) -// DISCARDED: internal static ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter) -// DISCARDED: internal static ImGuiTextRange* ImGuiTextRangeNative() -// DISCARDED: internal static ImGuiTextRange* ImGuiTextRangeNative(byte* b, byte* e) -// DISCARDED: internal static byte InputDoubleNative(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputFloatNative(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputFloat2Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputFloat3Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputFloat4Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputIntNative(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputInt2Native(byte* label, int* v, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputInt3Native(byte* label, int* v, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputInt4Native(byte* label, int* v, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) -// DISCARDED: internal static byte InputScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) -// DISCARDED: internal static void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) -// DISCARDED: internal static byte InvisibleButtonNative(byte* strId, Vector2 size, ImGuiButtonFlags flags) -// DISCARDED: internal static byte IsDataTypeNative(ImGuiPayload* self, byte* type) -// DISCARDED: internal static byte IsPopupOpenNative(byte* strId, ImGuiPopupFlags flags) -// DISCARDED: internal static void LabelTextNative(byte* label, byte* fmt) -// DISCARDED: internal static void LabelTextVNative(byte* label, byte* fmt, nuint args) -// DISCARDED: internal static byte ListBoxNative(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) -// DISCARDED: internal static byte ListBoxNative(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) -// DISCARDED: internal static void LoadIniSettingsFromDiskNative(byte* iniFilename) -// DISCARDED: internal static void LoadIniSettingsFromMemoryNative(byte* iniData, nuint iniSize) -// DISCARDED: internal static void LogTextNative(byte* fmt) -// DISCARDED: internal static void LogTextVNative(byte* fmt, nuint args) -// DISCARDED: internal static void LogToFileNative(int autoOpenDepth, byte* filename) -// DISCARDED: internal static byte MenuItemNative(byte* label, byte* shortcut, byte selected, byte enabled) -// DISCARDED: internal static byte MenuItemNative(byte* label, byte* shortcut, bool* pSelected, byte enabled) -// DISCARDED: internal static void OpenPopupNative(byte* strId, ImGuiPopupFlags popupFlags) -// DISCARDED: internal static void OpenPopupNative(uint id, ImGuiPopupFlags popupFlags) -// DISCARDED: internal static void OpenPopupOnItemClickNative(byte* strId, ImGuiPopupFlags popupFlags) -// DISCARDED: internal static byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd) -// DISCARDED: internal static void PlotHistogramNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) -// DISCARDED: internal static void PlotHistogramNative(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) -// DISCARDED: internal static void PlotLinesNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) -// DISCARDED: internal static void PlotLinesNative(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) -// DISCARDED: internal static void ProgressBarNative(float fraction, Vector2 sizeArg, byte* overlay) -// DISCARDED: internal static void PushIDNative(byte* strId) -// DISCARDED: internal static void PushIDNative(byte* strIdBegin, byte* strIdEnd) -// DISCARDED: internal static void PushIDNative(void* ptrId) -// DISCARDED: internal static void PushIDNative(int intId) -// DISCARDED: internal static byte RadioButtonNative(byte* label, byte active) -// DISCARDED: internal static byte RadioButtonNative(byte* label, int* v, int vButton) -// DISCARDED: internal static void RenderTextNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip) -// DISCARDED: internal static void SaveIniSettingsToDiskNative(byte* iniFilename) -// DISCARDED: internal static byte* SaveIniSettingsToMemoryNative(nuint* outIniSize) -// DISCARDED: SaveIniSettingsToMemoryS -// DISCARDED: internal static byte SelectableNative(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size) -// DISCARDED: internal static byte SelectableNative(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) -// DISCARDED: internal static void SetClipboardTextNative(byte* text) -// DISCARDED: internal static byte SetDragDropPayloadNative(byte* type, void* data, nuint sz, ImGuiCond cond) -// DISCARDED: internal static void SetTabItemClosedNative(byte* tabOrDockedWindowLabel) -// DISCARDED: internal static void SetTooltipNative(byte* fmt) -// DISCARDED: internal static void SetTooltipVNative(byte* fmt, nuint args) -// DISCARDED: internal static void SetWindowCollapsedNative(byte collapsed, ImGuiCond cond) -// DISCARDED: internal static void SetWindowCollapsedNative(byte* name, byte collapsed, ImGuiCond cond) -// DISCARDED: internal static void SetWindowFocusNative() -// DISCARDED: internal static void SetWindowFocusNative(byte* name) -// DISCARDED: internal static void SetWindowPosNative(Vector2 pos, ImGuiCond cond) -// DISCARDED: internal static void SetWindowPosNative(byte* name, Vector2 pos, ImGuiCond cond) -// DISCARDED: internal static void SetWindowSizeNative(Vector2 size, ImGuiCond cond) -// DISCARDED: internal static void SetWindowSizeNative(byte* name, Vector2 size, ImGuiCond cond) -// DISCARDED: internal static void ShowFontSelectorNative(byte* label) -// DISCARDED: internal static byte ShowStyleSelectorNative(byte* label) -// DISCARDED: internal static byte SliderAngleNative(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderFloatNative(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderFloat2Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderFloat3Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderFloat4Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderIntNative(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderInt2Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderInt3Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderInt4Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SliderScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte SmallButtonNative(byte* label) -// DISCARDED: internal static byte TabItemButtonNative(byte* label, ImGuiTabItemFlags flags) -// DISCARDED: internal static byte* TableGetColumnNameNative(int columnN) -// DISCARDED: TableGetColumnNameS -// DISCARDED: internal static void TableHeaderNative(byte* label) -// DISCARDED: internal static void TableSetupColumnNative(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) -// DISCARDED: internal static void TextNative(byte* fmt) -// DISCARDED: internal static void TextColoredNative(Vector4 col, byte* fmt) -// DISCARDED: internal static void TextColoredVNative(Vector4 col, byte* fmt, nuint args) -// DISCARDED: internal static void TextDisabledNative(byte* fmt) -// DISCARDED: internal static void TextDisabledVNative(byte* fmt, nuint args) -// DISCARDED: internal static void TextUnformattedNative(byte* text, byte* textEnd) -// DISCARDED: internal static void TextVNative(byte* fmt, nuint args) -// DISCARDED: internal static void TextWrappedNative(byte* fmt) -// DISCARDED: internal static void TextWrappedVNative(byte* fmt, nuint args) -// DISCARDED: internal static byte TreeNodeNative(byte* label) -// DISCARDED: internal static byte TreeNodeNative(byte* strId, byte* fmt) -// DISCARDED: internal static byte TreeNodeNative(void* ptrId, byte* fmt) -// DISCARDED: internal static byte TreeNodeExNative(byte* label, ImGuiTreeNodeFlags flags) -// DISCARDED: internal static byte TreeNodeExNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) -// DISCARDED: internal static byte TreeNodeExNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) -// DISCARDED: internal static byte TreeNodeExVNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) -// DISCARDED: internal static byte TreeNodeExVNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) -// DISCARDED: internal static byte TreeNodeVNative(byte* strId, byte* fmt, nuint args) -// DISCARDED: internal static byte TreeNodeVNative(void* ptrId, byte* fmt, nuint args) -// DISCARDED: internal static void TreePushNative(byte* strId) -// DISCARDED: internal static void TreePushNative(void* ptrId) -// DISCARDED: internal static void ValueNative(byte* prefix, byte b) -// DISCARDED: internal static void ValueNative(byte* prefix, int v) -// DISCARDED: internal static void ValueNative(byte* prefix, uint v) -// DISCARDED: internal static void ValueNative(byte* prefix, float v, byte* floatFormat) -// DISCARDED: internal static byte VSliderFloatNative(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte VSliderIntNative(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static byte VSliderScalarNative(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGuiNative.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGuiNative.gen.cs deleted file mode 100644 index 5e2fd7fa2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Functions/ImGuiNative.gen.cs +++ /dev/null @@ -1,4830 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGuiNative -{ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2* ImVec2() - { - - return ((delegate* unmanaged[Cdecl]<Vector2*>)ImGui.funcTable[0])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2* ImVec2(float x, float y) - { - - return ((delegate* unmanaged[Cdecl]<float, float, Vector2*>)ImGui.funcTable[2])(x, y); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(Vector2* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[1])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(Vector4* self) - { - - ((delegate* unmanaged[Cdecl]<Vector4*, void>)ImGui.funcTable[4])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiStyle* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)ImGui.funcTable[395])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiIO* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, void>)ImGui.funcTable[412])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiInputTextCallbackData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, void>)ImGui.funcTable[414])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiWindowClass* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindowClass*, void>)ImGui.funcTable[421])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiPayload* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiPayload*, void>)ImGui.funcTable[423])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTableColumnSortSpecs* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSortSpecs*, void>)ImGui.funcTable[429])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTableSortSpecs* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableSortSpecs*, void>)ImGui.funcTable[431])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiOnceUponAFrame* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiOnceUponAFrame*, void>)ImGui.funcTable[433])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTextFilter* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, void>)ImGui.funcTable[435])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTextRange* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextRange*, void>)ImGui.funcTable[442])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTextBuffer* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, void>)ImGui.funcTable[447])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiStoragePair* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStoragePair*, void>)ImGui.funcTable[458])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiListClipper* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, void>)ImGui.funcTable[477])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImColor* self) - { - - ((delegate* unmanaged[Cdecl]<ImColor*, void>)ImGui.funcTable[483])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImDrawCmd* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawCmd*, void>)ImGui.funcTable[491])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImDrawListSplitter* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, void>)ImGui.funcTable[494])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[501])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImDrawData* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawData*, void>)ImGui.funcTable[565])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImFontConfig* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontConfig*, void>)ImGui.funcTable[570])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImFontGlyphRangesBuilder* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, void>)ImGui.funcTable[572])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImFontAtlasCustomRect* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlasCustomRect*, void>)ImGui.funcTable[581])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImFontAtlas* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGui.funcTable[584])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImFont* self) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, void>)ImGui.funcTable[615])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiViewport* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewport*, void>)ImGui.funcTable[636])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiPlatformIO* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiPlatformIO*, void>)ImGui.funcTable[640])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiPlatformMonitor* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiPlatformMonitor*, void>)ImGui.funcTable[642])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiPlatformImeData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiPlatformImeData*, void>)ImGui.funcTable[644])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImVec1* self) - { - - ((delegate* unmanaged[Cdecl]<ImVec1*, void>)ImGui.funcTable[646])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImVec2Ih* self) - { - - ((delegate* unmanaged[Cdecl]<ImVec2Ih*, void>)ImGui.funcTable[647])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, void>)ImGui.funcTable[648])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImDrawListSharedData* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*, void>)ImGui.funcTable[649])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiStyleMod* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyleMod*, void>)ImGui.funcTable[650])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiComboPreviewData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiComboPreviewData*, void>)ImGui.funcTable[651])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiMenuColumns* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, void>)ImGui.funcTable[652])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiInputTextState* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGui.funcTable[653])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiPopupData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiPopupData*, void>)ImGui.funcTable[654])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiNextWindowData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiNextWindowData*, void>)ImGui.funcTable[655])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiNextItemData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiNextItemData*, void>)ImGui.funcTable[656])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiLastItemData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiLastItemData*, void>)ImGui.funcTable[657])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiStackSizes* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*, void>)ImGui.funcTable[658])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiPtrOrIndex* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiPtrOrIndex*, void>)ImGui.funcTable[659])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiInputEvent* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputEvent*, void>)ImGui.funcTable[660])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiListClipperData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiListClipperData*, void>)ImGui.funcTable[661])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiNavItemData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*, void>)ImGui.funcTable[662])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiOldColumnData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiOldColumnData*, void>)ImGui.funcTable[663])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiOldColumns* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, void>)ImGui.funcTable[664])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiDockContext* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDockContext*, void>)ImGui.funcTable[665])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiWindowSettings* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*, void>)ImGui.funcTable[666])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiSettingsHandler* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiSettingsHandler*, void>)ImGui.funcTable[667])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiMetricsConfig* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiMetricsConfig*, void>)ImGui.funcTable[668])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiStackLevelInfo* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStackLevelInfo*, void>)ImGui.funcTable[669])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiStackTool* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStackTool*, void>)ImGui.funcTable[670])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiContextHook* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContextHook*, void>)ImGui.funcTable[671])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiContext* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGui.funcTable[672])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTabItem* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabItem*, void>)ImGui.funcTable[673])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTabBar* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, void>)ImGui.funcTable[674])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTableColumn* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableColumn*, void>)ImGui.funcTable[675])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTableInstanceData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableInstanceData*, void>)ImGui.funcTable[676])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTableTempData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableTempData*, void>)ImGui.funcTable[677])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTableColumnSettings* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSettings*, void>)ImGui.funcTable[678])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTableSettings* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*, void>)ImGui.funcTable[679])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4* ImVec4() - { - - return ((delegate* unmanaged[Cdecl]<Vector4*>)ImGui.funcTable[3])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4* ImVec4(float x, float y, float z, float w) - { - - return ((delegate* unmanaged[Cdecl]<float, float, float, float, Vector4*>)ImGui.funcTable[5])(x, y, z, w); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiContext* CreateContext(ImFontAtlas* sharedFontAtlas) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImGuiContext*>)ImGui.funcTable[6])(sharedFontAtlas); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DestroyContext(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGui.funcTable[7])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiContext* GetCurrentContext() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiContext*>)ImGui.funcTable[8])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCurrentContext(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGui.funcTable[9])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiIO* GetIO() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiIO*>)ImGui.funcTable[10])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStyle* GetStyle() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStyle*>)ImGui.funcTable[11])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NewFrame() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[12])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndFrame() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[13])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Render() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[14])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawData* GetDrawData() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawData*>)ImGui.funcTable[15])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowDemoWindow(bool* pOpen) - { - - ((delegate* unmanaged[Cdecl]<bool*, void>)ImGui.funcTable[16])(pOpen); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowMetricsWindow(bool* pOpen) - { - - ((delegate* unmanaged[Cdecl]<bool*, void>)ImGui.funcTable[17])(pOpen); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowDebugLogWindow(bool* pOpen) - { - - ((delegate* unmanaged[Cdecl]<bool*, void>)ImGui.funcTable[18])(pOpen); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowStackToolWindow(bool* pOpen) - { - - ((delegate* unmanaged[Cdecl]<bool*, void>)ImGui.funcTable[19])(pOpen); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowAboutWindow(bool* pOpen) - { - - ((delegate* unmanaged[Cdecl]<bool*, void>)ImGui.funcTable[20])(pOpen); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowStyleEditor(ImGuiStyle* reference) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)ImGui.funcTable[21])(reference); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ShowStyleSelector(byte* label) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte>)ImGui.funcTable[22])(label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowFontSelector(byte* label) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[23])(label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowUserGuide() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[24])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetVersion() - { - - return ((delegate* unmanaged[Cdecl]<byte*>)ImGui.funcTable[25])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void StyleColorsDark(ImGuiStyle* dst) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)ImGui.funcTable[26])(dst); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void StyleColorsLight(ImGuiStyle* dst) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)ImGui.funcTable[27])(dst); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void StyleColorsClassic(ImGuiStyle* dst) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)ImGui.funcTable[28])(dst); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Begin(byte* name, bool* pOpen, ImGuiWindowFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiWindowFlags, byte>)ImGui.funcTable[29])(name, pOpen, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Begin(ImGuiListClipper* self, int itemsCount, float itemsHeight) - { - - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, int, float, void>)ImGui.funcTable[478])(self, itemsCount, itemsHeight); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void End() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[30])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void End(ImGuiListClipper* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, void>)ImGui.funcTable[479])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginChild(byte* strId, Vector2 size, byte border, ImGuiWindowFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, byte, ImGuiWindowFlags, byte>)ImGui.funcTable[31])(strId, size, border, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginChild(uint id, Vector2 size, byte border, ImGuiWindowFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<uint, Vector2, byte, ImGuiWindowFlags, byte>)ImGui.funcTable[32])(id, size, border, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndChild() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[33])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowAppearing() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[34])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowCollapsed() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[35])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowFocused(ImGuiFocusedFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiFocusedFlags, byte>)ImGui.funcTable[36])(flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowHovered(ImGuiHoveredFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiHoveredFlags, byte>)ImGui.funcTable[37])(flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* GetWindowDrawList() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawList*>)ImGui.funcTable[38])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetWindowDpiScale() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[39])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetWindowPos(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[40])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetWindowSize(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[41])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetWindowWidth() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[42])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetWindowHeight() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[43])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiViewport* GetWindowViewport() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*>)ImGui.funcTable[44])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot) - { - - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, Vector2, void>)ImGui.funcTable[45])(pos, cond, pivot); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowSize(Vector2 size, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)ImGui.funcTable[46])(size, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) - { - - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, delegate*<ImGuiSizeCallbackData*, void>, void*, void>)ImGui.funcTable[47])(sizeMin, sizeMax, (delegate*<ImGuiSizeCallbackData*, void>)Utils.GetFunctionPointerForDelegate(customCallback), customCallbackData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowContentSize(Vector2 size) - { - - ((delegate* unmanaged[Cdecl]<Vector2, void>)ImGui.funcTable[48])(size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowCollapsed(byte collapsed, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)ImGui.funcTable[49])(collapsed, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowFocus() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[50])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowBgAlpha(float alpha) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[51])(alpha); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowViewport(uint viewportId) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGui.funcTable[52])(viewportId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowPos(Vector2 pos, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)ImGui.funcTable[53])(pos, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowPos(byte* name, Vector2 pos, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiCond, void>)ImGui.funcTable[58])(name, pos, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowSize(Vector2 size, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)ImGui.funcTable[54])(size, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowSize(byte* name, Vector2 size, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiCond, void>)ImGui.funcTable[59])(name, size, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowCollapsed(byte collapsed, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)ImGui.funcTable[55])(collapsed, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowCollapsed(byte* name, byte collapsed, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte, ImGuiCond, void>)ImGui.funcTable[60])(name, collapsed, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowFocus() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[56])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowFocus(byte* name) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[61])(name); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowFontScale(float scale) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[57])(scale); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetContentRegionAvail(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[62])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetContentRegionMax(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[63])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetWindowContentRegionMin(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[64])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetWindowContentRegionMax(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[65])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetScrollX() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[66])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetScrollY() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[67])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollX(float scrollX) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[68])(scrollX); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollY(float scrollY) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[69])(scrollY); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetScrollMaxX() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[70])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetScrollMaxY() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[71])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollHereX(float centerXRatio) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[72])(centerXRatio); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollHereY(float centerYRatio) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[73])(centerYRatio); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollFromPosX(float localX, float centerXRatio) - { - - ((delegate* unmanaged[Cdecl]<float, float, void>)ImGui.funcTable[74])(localX, centerXRatio); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollFromPosY(float localY, float centerYRatio) - { - - ((delegate* unmanaged[Cdecl]<float, float, void>)ImGui.funcTable[75])(localY, centerYRatio); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushFont(ImFont* font) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, void>)ImGui.funcTable[76])(font); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopFont() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[77])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushStyleColor(ImGuiCol idx, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImGuiCol, uint, void>)ImGui.funcTable[78])(idx, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushStyleColor(ImGuiCol idx, Vector4 col) - { - - ((delegate* unmanaged[Cdecl]<ImGuiCol, Vector4, void>)ImGui.funcTable[79])(idx, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopStyleColor(int count) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGui.funcTable[80])(count); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushStyleVar(ImGuiStyleVar idx, float val) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, float, void>)ImGui.funcTable[81])(idx, val); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, Vector2, void>)ImGui.funcTable[82])(idx, val); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopStyleVar(int count) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGui.funcTable[83])(count); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushAllowKeyboardFocus(byte allowKeyboardFocus) - { - - ((delegate* unmanaged[Cdecl]<byte, void>)ImGui.funcTable[84])(allowKeyboardFocus); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopAllowKeyboardFocus() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[85])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushButtonRepeat(byte repeat) - { - - ((delegate* unmanaged[Cdecl]<byte, void>)ImGui.funcTable[86])(repeat); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopButtonRepeat() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[87])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushItemWidth(float itemWidth) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[88])(itemWidth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopItemWidth() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[89])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextItemWidth(float itemWidth) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[90])(itemWidth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float CalcItemWidth() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[91])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushTextWrapPos(float wrapLocalPosX) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[92])(wrapLocalPosX); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopTextWrapPos() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[93])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* GetFont() - { - - return ((delegate* unmanaged[Cdecl]<ImFont*>)ImGui.funcTable[94])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetFontSize() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[95])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImTextureID GetFontTexIdWhitePixel() - { - - return ((delegate* unmanaged[Cdecl]<ImTextureID>)ImGui.funcTable[96])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetFontTexUvWhitePixel(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[97])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetColorU32(ImGuiCol idx, float alphaMul) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiCol, float, uint>)ImGui.funcTable[98])(idx, alphaMul); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetColorU32(Vector4 col) - { - - return ((delegate* unmanaged[Cdecl]<Vector4, uint>)ImGui.funcTable[99])(col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetColorU32(uint col) - { - - return ((delegate* unmanaged[Cdecl]<uint, uint>)ImGui.funcTable[100])(col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4* GetStyleColorVec4(ImGuiCol idx) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiCol, Vector4*>)ImGui.funcTable[101])(idx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Separator() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[102])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SameLine(float offsetFromStartX, float spacing) - { - - ((delegate* unmanaged[Cdecl]<float, float, void>)ImGui.funcTable[103])(offsetFromStartX, spacing); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NewLine() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[104])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Spacing() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[105])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Dummy(Vector2 size) - { - - ((delegate* unmanaged[Cdecl]<Vector2, void>)ImGui.funcTable[106])(size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Indent(float indentW) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[107])(indentW); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Unindent(float indentW) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[108])(indentW); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginGroup() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[109])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndGroup() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[110])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetCursorPos(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[111])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetCursorPosX() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[112])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetCursorPosY() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[113])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCursorPos(Vector2 localPos) - { - - ((delegate* unmanaged[Cdecl]<Vector2, void>)ImGui.funcTable[114])(localPos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCursorPosX(float localX) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[115])(localX); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCursorPosY(float localY) - { - - ((delegate* unmanaged[Cdecl]<float, void>)ImGui.funcTable[116])(localY); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetCursorStartPos(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[117])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetCursorScreenPos(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[118])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCursorScreenPos(Vector2 pos) - { - - ((delegate* unmanaged[Cdecl]<Vector2, void>)ImGui.funcTable[119])(pos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AlignTextToFramePadding() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[120])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetTextLineHeight() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[121])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetTextLineHeightWithSpacing() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[122])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetFrameHeight() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[123])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetFrameHeightWithSpacing() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[124])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushID(byte* strId) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[125])(strId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushID(byte* strIdBegin, byte* strIdEnd) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)ImGui.funcTable[126])(strIdBegin, strIdEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushID(void* ptrId) - { - - ((delegate* unmanaged[Cdecl]<void*, void>)ImGui.funcTable[127])(ptrId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushID(int intId) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGui.funcTable[128])(intId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopID() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[129])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetID(byte* strId) - { - - return ((delegate* unmanaged[Cdecl]<byte*, uint>)ImGui.funcTable[130])(strId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetID(byte* strIdBegin, byte* strIdEnd) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, uint>)ImGui.funcTable[131])(strIdBegin, strIdEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetID(void* ptrId) - { - - return ((delegate* unmanaged[Cdecl]<void*, uint>)ImGui.funcTable[132])(ptrId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextUnformatted(byte* text, byte* textEnd) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)ImGui.funcTable[133])(text, textEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Text(byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[134])(fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextV(byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGui.funcTable[135])(fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextColored(Vector4 col, byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<Vector4, byte*, void>)ImGui.funcTable[136])(col, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextColoredV(Vector4 col, byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<Vector4, byte*, nuint, void>)ImGui.funcTable[137])(col, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextDisabled(byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[138])(fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextDisabledV(byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGui.funcTable[139])(fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextWrapped(byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[140])(fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextWrappedV(byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGui.funcTable[141])(fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LabelText(byte* label, byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)ImGui.funcTable[142])(label, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LabelTextV(byte* label, byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, void>)ImGui.funcTable[143])(label, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BulletText(byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[144])(fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BulletTextV(byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGui.funcTable[145])(fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Button(byte* label, Vector2 size) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, byte>)ImGui.funcTable[146])(label, size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SmallButton(byte* label) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte>)ImGui.funcTable[147])(label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InvisibleButton(byte* strId, Vector2 size, ImGuiButtonFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiButtonFlags, byte>)ImGui.funcTable[148])(strId, size, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ArrowButton(byte* strId, ImGuiDir dir) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDir, byte>)ImGui.funcTable[149])(strId, dir); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) - { - - ((delegate* unmanaged[Cdecl]<ImTextureID, Vector2, Vector2, Vector2, Vector4, Vector4, void>)ImGui.funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - - return ((delegate* unmanaged[Cdecl]<ImTextureID, Vector2, Vector2, Vector2, int, Vector4, Vector4, byte>)ImGui.funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Checkbox(byte* label, bool* v) - { - - return ((delegate* unmanaged[Cdecl]<byte*, bool*, byte>)ImGui.funcTable[152])(label, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CheckboxFlags(byte* label, int* flags, int flagsValue) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, byte>)ImGui.funcTable[153])(label, flags, flagsValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CheckboxFlags(byte* label, uint* flags, uint flagsValue) - { - - return ((delegate* unmanaged[Cdecl]<byte*, uint*, uint, byte>)ImGui.funcTable[154])(label, flags, flagsValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte RadioButton(byte* label, byte active) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte, byte>)ImGui.funcTable[155])(label, active); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte RadioButton(byte* label, int* v, int vButton) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, byte>)ImGui.funcTable[156])(label, v, vButton); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ProgressBar(float fraction, Vector2 sizeArg, byte* overlay) - { - - ((delegate* unmanaged[Cdecl]<float, Vector2, byte*, void>)ImGui.funcTable[157])(fraction, sizeArg, overlay); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Bullet() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[158])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginCombo(byte* label, byte* previewValue, ImGuiComboFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, ImGuiComboFlags, byte>)ImGui.funcTable[159])(label, previewValue, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndCombo() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[160])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Combo(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, byte**, int, int, byte>)ImGui.funcTable[161])(label, currentItem, items, itemsCount, popupMaxHeightInItems); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Combo(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, byte*, int, byte>)ImGui.funcTable[162])(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Combo(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>, void*, int, int, byte>)ImGui.funcTable[163])(label, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[164])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[165])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[166])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[167])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float*, float, float, float, byte*, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[168])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[169])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[170])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[171])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[172])(label, v, vSpeed, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int*, float, int, int, byte*, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[173])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, float, void*, void*, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[174])(label, dataType, pData, vSpeed, pMin, pMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, int, float, void*, void*, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[175])(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderFloat(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[176])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderFloat2(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[177])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderFloat3(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[178])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderFloat4(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[179])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[180])(label, vRad, vDegreesMin, vDegreesMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderInt(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[181])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderInt2(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[182])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderInt3(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[183])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderInt4(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[184])(label, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, void*, void*, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[185])(label, dataType, pData, pMin, pMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, int, void*, void*, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[186])(label, dataType, pData, components, pMin, pMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, float*, float, float, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[187])(label, size, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, int*, int, int, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[188])(label, size, v, vMin, vMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiDataType, void*, void*, void*, byte*, ImGuiSliderFlags, byte>)ImGui.funcTable[189])(label, size, dataType, pData, pMin, pMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputFloat(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiInputTextFlags, byte>)ImGui.funcTable[190])(label, v, step, stepFast, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputFloat2(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, byte*, ImGuiInputTextFlags, byte>)ImGui.funcTable[191])(label, v, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputFloat3(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, byte*, ImGuiInputTextFlags, byte>)ImGui.funcTable[192])(label, v, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputFloat4(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, byte*, ImGuiInputTextFlags, byte>)ImGui.funcTable[193])(label, v, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputInt(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, ImGuiInputTextFlags, byte>)ImGui.funcTable[194])(label, v, step, stepFast, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputInt2(byte* label, int* v, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, ImGuiInputTextFlags, byte>)ImGui.funcTable[195])(label, v, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputInt3(byte* label, int* v, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, ImGuiInputTextFlags, byte>)ImGui.funcTable[196])(label, v, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputInt4(byte* label, int* v, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, ImGuiInputTextFlags, byte>)ImGui.funcTable[197])(label, v, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputDouble(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, double*, double, double, byte*, ImGuiInputTextFlags, byte>)ImGui.funcTable[198])(label, v, step, stepFast, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, void*, void*, byte*, ImGuiInputTextFlags, byte>)ImGui.funcTable[199])(label, dataType, pData, pStep, pStepFast, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, int, void*, void*, byte*, ImGuiInputTextFlags, byte>)ImGui.funcTable[200])(label, dataType, pData, components, pStep, pStepFast, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ColorEdit3(byte* label, float* col, ImGuiColorEditFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, byte>)ImGui.funcTable[201])(label, col, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ColorEdit4(byte* label, float* col, ImGuiColorEditFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, byte>)ImGui.funcTable[202])(label, col, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ColorPicker3(byte* label, float* col, ImGuiColorEditFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, byte>)ImGui.funcTable[203])(label, col, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) - { - - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, float*, byte>)ImGui.funcTable[204])(label, col, flags, refCol); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector4, ImGuiColorEditFlags, Vector2, byte>)ImGui.funcTable[205])(descId, col, flags, size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetColorEditOptions(ImGuiColorEditFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiColorEditFlags, void>)ImGui.funcTable[206])(flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNode(byte* label) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte>)ImGui.funcTable[207])(label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNode(byte* strId, byte* fmt) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte>)ImGui.funcTable[208])(strId, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNode(void* ptrId, byte* fmt) - { - - return ((delegate* unmanaged[Cdecl]<void*, byte*, byte>)ImGui.funcTable[209])(ptrId, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeV(byte* strId, byte* fmt, nuint args) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, byte>)ImGui.funcTable[210])(strId, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeV(void* ptrId, byte* fmt, nuint args) - { - - return ((delegate* unmanaged[Cdecl]<void*, byte*, nuint, byte>)ImGui.funcTable[211])(ptrId, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeEx(byte* label, ImGuiTreeNodeFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte>)ImGui.funcTable[212])(label, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte*, byte>)ImGui.funcTable[213])(strId, flags, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) - { - - return ((delegate* unmanaged[Cdecl]<void*, ImGuiTreeNodeFlags, byte*, byte>)ImGui.funcTable[214])(ptrId, flags, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte*, nuint, byte>)ImGui.funcTable[215])(strId, flags, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - - return ((delegate* unmanaged[Cdecl]<void*, ImGuiTreeNodeFlags, byte*, nuint, byte>)ImGui.funcTable[216])(ptrId, flags, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TreePush(byte* strId) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[217])(strId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TreePush(void* ptrId) - { - - ((delegate* unmanaged[Cdecl]<void*, void>)ImGui.funcTable[218])(ptrId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TreePop() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[219])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetTreeNodeToLabelSpacing() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[220])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CollapsingHeader(byte* label, ImGuiTreeNodeFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte>)ImGui.funcTable[221])(label, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CollapsingHeader(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiTreeNodeFlags, byte>)ImGui.funcTable[222])(label, pVisible, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextItemOpen(byte isOpen, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)ImGui.funcTable[223])(isOpen, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Selectable(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte, ImGuiSelectableFlags, Vector2, byte>)ImGui.funcTable[224])(label, selected, flags, size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Selectable(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiSelectableFlags, Vector2, byte>)ImGui.funcTable[225])(label, pSelected, flags, size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginListBox(byte* label, Vector2 size) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, byte>)ImGui.funcTable[226])(label, size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndListBox() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[227])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ListBox(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, byte**, int, int, byte>)ImGui.funcTable[228])(label, currentItem, items, itemsCount, heightInItems); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ListBox(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int*, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>, void*, int, int, byte>)ImGui.funcTable[229])(label, currentItem, itemsGetter, data, itemsCount, heightInItems); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - - ((delegate* unmanaged[Cdecl]<byte*, float*, int, int, byte*, float, float, Vector2, int, void>)ImGui.funcTable[230])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - - ((delegate* unmanaged[Cdecl]<byte*, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)ImGui.funcTable[231])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - - ((delegate* unmanaged[Cdecl]<byte*, float*, int, int, byte*, float, float, Vector2, int, void>)ImGui.funcTable[232])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - - ((delegate* unmanaged[Cdecl]<byte*, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)ImGui.funcTable[233])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Value(byte* prefix, byte b) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte, void>)ImGui.funcTable[234])(prefix, b); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Value(byte* prefix, int v) - { - - ((delegate* unmanaged[Cdecl]<byte*, int, void>)ImGui.funcTable[235])(prefix, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Value(byte* prefix, uint v) - { - - ((delegate* unmanaged[Cdecl]<byte*, uint, void>)ImGui.funcTable[236])(prefix, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Value(byte* prefix, float v, byte* floatFormat) - { - - ((delegate* unmanaged[Cdecl]<byte*, float, byte*, void>)ImGui.funcTable[237])(prefix, v, floatFormat); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginMenuBar() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[238])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndMenuBar() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[239])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginMainMenuBar() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[240])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndMainMenuBar() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[241])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginMenu(byte* label, byte enabled) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte, byte>)ImGui.funcTable[242])(label, enabled); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndMenu() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[243])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte MenuItem(byte* label, byte* shortcut, byte selected, byte enabled) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte, byte, byte>)ImGui.funcTable[244])(label, shortcut, selected, enabled); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte MenuItem(byte* label, byte* shortcut, bool* pSelected, byte enabled) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, bool*, byte, byte>)ImGui.funcTable[245])(label, shortcut, pSelected, enabled); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginTooltip() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[246])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndTooltip() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[247])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetTooltip(byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[248])(fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetTooltipV(byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGui.funcTable[249])(fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginPopup(byte* strId, ImGuiWindowFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindowFlags, byte>)ImGui.funcTable[250])(strId, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginPopupModal(byte* name, bool* pOpen, ImGuiWindowFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiWindowFlags, byte>)ImGui.funcTable[251])(name, pOpen, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndPopup() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[252])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void OpenPopup(byte* strId, ImGuiPopupFlags popupFlags) - { - - ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, void>)ImGui.funcTable[253])(strId, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, void>)ImGui.funcTable[254])(id, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void OpenPopupOnItemClick(byte* strId, ImGuiPopupFlags popupFlags) - { - - ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, void>)ImGui.funcTable[255])(strId, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CloseCurrentPopup() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[256])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginPopupContextItem(byte* strId, ImGuiPopupFlags popupFlags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)ImGui.funcTable[257])(strId, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginPopupContextWindow(byte* strId, ImGuiPopupFlags popupFlags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)ImGui.funcTable[258])(strId, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginPopupContextVoid(byte* strId, ImGuiPopupFlags popupFlags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)ImGui.funcTable[259])(strId, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsPopupOpen(byte* strId, ImGuiPopupFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)ImGui.funcTable[260])(strId, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int, ImGuiTableFlags, Vector2, float, byte>)ImGui.funcTable[261])(strId, column, flags, outerSize, innerWidth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndTable() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[262])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableNextRow(ImGuiTableRowFlags rowFlags, float minRowHeight) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableRowFlags, float, void>)ImGui.funcTable[263])(rowFlags, minRowHeight); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TableNextColumn() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[264])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TableSetColumnIndex(int columnN) - { - - return ((delegate* unmanaged[Cdecl]<int, byte>)ImGui.funcTable[265])(columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) - { - - ((delegate* unmanaged[Cdecl]<byte*, ImGuiTableColumnFlags, float, uint, void>)ImGui.funcTable[266])(label, flags, initWidthOrWeight, userId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetupScrollFreeze(int cols, int rows) - { - - ((delegate* unmanaged[Cdecl]<int, int, void>)ImGui.funcTable[267])(cols, rows); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableHeadersRow() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[268])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableHeader(byte* label) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[269])(label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableSortSpecs* TableGetSortSpecs() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableSortSpecs*>)ImGui.funcTable[270])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int TableGetColumnCount() - { - - return ((delegate* unmanaged[Cdecl]<int>)ImGui.funcTable[271])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int TableGetColumnIndex() - { - - return ((delegate* unmanaged[Cdecl]<int>)ImGui.funcTable[272])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int TableGetRowIndex() - { - - return ((delegate* unmanaged[Cdecl]<int>)ImGui.funcTable[273])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* TableGetColumnName(int columnN) - { - - return ((delegate* unmanaged[Cdecl]<int, byte*>)ImGui.funcTable[274])(columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableColumnFlags TableGetColumnFlags(int columnN) - { - - return ((delegate* unmanaged[Cdecl]<int, ImGuiTableColumnFlags>)ImGui.funcTable[275])(columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetColumnEnabled(int columnN, byte v) - { - - ((delegate* unmanaged[Cdecl]<int, byte, void>)ImGui.funcTable[276])(columnN, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetBgColor(ImGuiTableBgTarget target, uint color, int columnN) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableBgTarget, uint, int, void>)ImGui.funcTable[277])(target, color, columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Columns(int count, byte* id, byte border) - { - - ((delegate* unmanaged[Cdecl]<int, byte*, byte, void>)ImGui.funcTable[278])(count, id, border); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NextColumn() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[279])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetColumnIndex() - { - - return ((delegate* unmanaged[Cdecl]<int>)ImGui.funcTable[280])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetColumnWidth(int columnIndex) - { - - return ((delegate* unmanaged[Cdecl]<int, float>)ImGui.funcTable[281])(columnIndex); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetColumnWidth(int columnIndex, float width) - { - - ((delegate* unmanaged[Cdecl]<int, float, void>)ImGui.funcTable[282])(columnIndex, width); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetColumnOffset(int columnIndex) - { - - return ((delegate* unmanaged[Cdecl]<int, float>)ImGui.funcTable[283])(columnIndex); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetColumnOffset(int columnIndex, float offsetX) - { - - ((delegate* unmanaged[Cdecl]<int, float, void>)ImGui.funcTable[284])(columnIndex, offsetX); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetColumnsCount() - { - - return ((delegate* unmanaged[Cdecl]<int>)ImGui.funcTable[285])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginTabBar(byte* strId, ImGuiTabBarFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTabBarFlags, byte>)ImGui.funcTable[286])(strId, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndTabBar() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[287])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginTabItem(byte* label, bool* pOpen, ImGuiTabItemFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiTabItemFlags, byte>)ImGui.funcTable[288])(label, pOpen, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndTabItem() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[289])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TabItemButton(byte* label, ImGuiTabItemFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTabItemFlags, byte>)ImGui.funcTable[290])(label, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetTabItemClosed(byte* tabOrDockedWindowLabel) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[291])(tabOrDockedWindowLabel); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) - { - - return ((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiDockNodeFlags, ImGuiWindowClass*, uint>)ImGui.funcTable[292])(id, size, flags, windowClass); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint DockSpaceOverViewport(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImGuiDockNodeFlags, ImGuiWindowClass*, uint>)ImGui.funcTable[293])(viewport, flags, windowClass); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowDockID(uint dockId, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiCond, void>)ImGui.funcTable[294])(dockId, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowClass(ImGuiWindowClass* windowClass) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindowClass*, void>)ImGui.funcTable[295])(windowClass); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetWindowDockID() - { - - return ((delegate* unmanaged[Cdecl]<uint>)ImGui.funcTable[296])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowDocked() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[297])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogToTTY(int autoOpenDepth) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGui.funcTable[298])(autoOpenDepth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogToFile(int autoOpenDepth, byte* filename) - { - - ((delegate* unmanaged[Cdecl]<int, byte*, void>)ImGui.funcTable[299])(autoOpenDepth, filename); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogToClipboard(int autoOpenDepth) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGui.funcTable[300])(autoOpenDepth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogFinish() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[301])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogButtons() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[302])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogTextV(byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGui.funcTable[303])(fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginDragDropSource(ImGuiDragDropFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDragDropFlags, byte>)ImGui.funcTable[304])(flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SetDragDropPayload(byte* type, void* data, nuint sz, ImGuiCond cond) - { - - return ((delegate* unmanaged[Cdecl]<byte*, void*, nuint, ImGuiCond, byte>)ImGui.funcTable[305])(type, data, sz, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndDragDropSource() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[306])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginDragDropTarget() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[307])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPayload* AcceptDragDropPayload(byte* type, ImGuiDragDropFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDragDropFlags, ImGuiPayload*>)ImGui.funcTable[308])(type, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndDragDropTarget() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[309])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPayload* GetDragDropPayload() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*>)ImGui.funcTable[310])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginDisabled(byte disabled) - { - - ((delegate* unmanaged[Cdecl]<byte, void>)ImGui.funcTable[311])(disabled); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndDisabled() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[312])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) - { - - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte, void>)ImGui.funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushClipRect(ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, byte, void>)ImGui.funcTable[502])(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopClipRect() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[314])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopClipRect(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[504])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetItemDefaultFocus() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[315])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetKeyboardFocusHere(int offset) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGui.funcTable[316])(offset); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemHovered(ImGuiHoveredFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiHoveredFlags, byte>)ImGui.funcTable[317])(flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemActive() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[318])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemFocused() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[319])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemClicked(ImGuiMouseButton mouseButton) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)ImGui.funcTable[320])(mouseButton); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemVisible() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[321])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemEdited() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[322])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemActivated() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[323])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemDeactivated() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[324])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemDeactivatedAfterEdit() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[325])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemToggledOpen() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[326])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsAnyItemHovered() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[327])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsAnyItemActive() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[328])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsAnyItemFocused() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[329])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetItemRectMin(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[330])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetItemRectMax(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[331])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetItemRectSize(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[332])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetItemAllowOverlap() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[333])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiViewport* GetMainViewport() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*>)ImGui.funcTable[334])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* GetBackgroundDrawList() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawList*>)ImGui.funcTable[335])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImDrawList*>)ImGui.funcTable[337])(viewport); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* GetForegroundDrawList() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawList*>)ImGui.funcTable[336])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImDrawList*>)ImGui.funcTable[338])(viewport); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsRectVisible(Vector2 size) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, byte>)ImGui.funcTable[339])(size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsRectVisible(Vector2 rectMin, Vector2 rectMax) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte>)ImGui.funcTable[340])(rectMin, rectMax); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double GetTime() - { - - return ((delegate* unmanaged[Cdecl]<double>)ImGui.funcTable[341])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetFrameCount() - { - - return ((delegate* unmanaged[Cdecl]<int>)ImGui.funcTable[342])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawListSharedData* GetDrawListSharedData() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*>)ImGui.funcTable[343])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetStyleColorName(ImGuiCol idx) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiCol, byte*>)ImGui.funcTable[344])(idx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetStateStorage(ImGuiStorage* storage) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, void>)ImGui.funcTable[345])(storage); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStorage* GetStateStorage() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*>)ImGui.funcTable[346])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiWindowFlags, byte>)ImGui.funcTable[347])(id, size, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndChildFrame() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[348])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, byte*, byte*, byte, float, void>)ImGui.funcTable[349])(pOut, text, textEnd, hideTextAfterDoubleHash, wrapWidth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ColorConvertU32ToFloat4(Vector4* pOut, uint input) - { - - ((delegate* unmanaged[Cdecl]<Vector4*, uint, void>)ImGui.funcTable[350])(pOut, input); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint ColorConvertFloat4ToU32(Vector4 input) - { - - return ((delegate* unmanaged[Cdecl]<Vector4, uint>)ImGui.funcTable[351])(input); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, float* outV) - { - - ((delegate* unmanaged[Cdecl]<float, float, float, float*, float*, float*, void>)ImGui.funcTable[352])(r, g, b, outH, outS, outV); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, float* outB) - { - - ((delegate* unmanaged[Cdecl]<float, float, float, float*, float*, float*, void>)ImGui.funcTable[353])(h, s, v, outR, outG, outB); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsKeyDown(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)ImGui.funcTable[354])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsKeyPressed(ImGuiKey key, byte repeat) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)ImGui.funcTable[355])(key, repeat); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsKeyReleased(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)ImGui.funcTable[356])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetKeyPressedAmount(ImGuiKey key, float repeatDelay, float rate) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, float, float, int>)ImGui.funcTable[357])(key, repeatDelay, rate); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetKeyName(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte*>)ImGui.funcTable[358])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextFrameWantCaptureKeyboard(byte wantCaptureKeyboard) - { - - ((delegate* unmanaged[Cdecl]<byte, void>)ImGui.funcTable[359])(wantCaptureKeyboard); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMouseDown(ImGuiMouseButton button) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)ImGui.funcTable[360])(button); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMouseClicked(ImGuiMouseButton button, byte repeat) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte, byte>)ImGui.funcTable[361])(button, repeat); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMouseReleased(ImGuiMouseButton button) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)ImGui.funcTable[362])(button); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMouseDoubleClicked(ImGuiMouseButton button) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)ImGui.funcTable[363])(button); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetMouseClickedCount(ImGuiMouseButton button) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, int>)ImGui.funcTable[364])(button); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMouseHoveringRect(Vector2 rMin, Vector2 rMax, byte clip) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte, byte>)ImGui.funcTable[365])(rMin, rMax, clip); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMousePosValid(Vector2* mousePos) - { - - return ((delegate* unmanaged[Cdecl]<Vector2*, byte>)ImGui.funcTable[366])(mousePos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsAnyMouseDown() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGui.funcTable[367])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetMousePos(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[368])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetMousePosOnOpeningCurrentPopup(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGui.funcTable[369])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMouseDragging(ImGuiMouseButton button, float lockThreshold) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)ImGui.funcTable[370])(button, lockThreshold); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiMouseButton, float, void>)ImGui.funcTable[371])(pOut, button, lockThreshold); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ResetMouseDragDelta(ImGuiMouseButton button) - { - - ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, void>)ImGui.funcTable[372])(button); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiMouseCursor GetMouseCursor() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseCursor>)ImGui.funcTable[373])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetMouseCursor(ImGuiMouseCursor cursorType) - { - - ((delegate* unmanaged[Cdecl]<ImGuiMouseCursor, void>)ImGui.funcTable[374])(cursorType); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextFrameWantCaptureMouse(byte wantCaptureMouse) - { - - ((delegate* unmanaged[Cdecl]<byte, void>)ImGui.funcTable[375])(wantCaptureMouse); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetClipboardText() - { - - return ((delegate* unmanaged[Cdecl]<byte*>)ImGui.funcTable[376])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetClipboardText(byte* text) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[377])(text); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LoadIniSettingsFromDisk(byte* iniFilename) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[378])(iniFilename); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LoadIniSettingsFromMemory(byte* iniData, nuint iniSize) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGui.funcTable[379])(iniData, iniSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SaveIniSettingsToDisk(byte* iniFilename) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[380])(iniFilename); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* SaveIniSettingsToMemory(nuint* outIniSize) - { - - return ((delegate* unmanaged[Cdecl]<nuint*, byte*>)ImGui.funcTable[381])(outIniSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugTextEncoding(byte* text) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[382])(text); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - - return ((delegate* unmanaged[Cdecl]<byte*, nuint, nuint, nuint, nuint, nuint, nuint, byte>)ImGui.funcTable[383])(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) - { - - ((delegate* unmanaged[Cdecl]<delegate*<nuint, void*, void*>, delegate*<void*, void*, void>, void*, void>)ImGui.funcTable[384])((delegate*<nuint, void*, void*>)Utils.GetFunctionPointerForDelegate(allocFunc), (delegate*<void*, void*, void>)Utils.GetFunctionPointerForDelegate(freeFunc), userData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetAllocatorFunctions(delegate*<nuint, void*, void*>* pAllocFunc, delegate*<void*, void*, void>* pFreeFunc, void** pUserData) - { - - ((delegate* unmanaged[Cdecl]<delegate*<nuint, void*, void*>*, delegate*<void*, void*, void>*, void**, void>)ImGui.funcTable[385])(pAllocFunc, pFreeFunc, pUserData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void* MemAlloc(nuint size) - { - - return ((delegate* unmanaged[Cdecl]<nuint, void*>)ImGui.funcTable[386])(size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void MemFree(void* ptr) - { - - ((delegate* unmanaged[Cdecl]<void*, void>)ImGui.funcTable[387])(ptr); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPlatformIO* GetPlatformIO() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformIO*>)ImGui.funcTable[388])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdatePlatformWindows() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[389])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg) - { - - ((delegate* unmanaged[Cdecl]<void*, void*, void>)ImGui.funcTable[390])(platformRenderArg, rendererRenderArg); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DestroyPlatformWindows() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGui.funcTable[391])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiViewport* FindViewportByID(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiViewport*>)ImGui.funcTable[392])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiViewport* FindViewportByPlatformHandle(void* platformHandle) - { - - return ((delegate* unmanaged[Cdecl]<void*, ImGuiViewport*>)ImGui.funcTable[393])(platformHandle); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStyle* ImGuiStyle() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStyle*>)ImGui.funcTable[394])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ScaleAllSizes(ImGuiStyle* self, float scaleFactor) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, float, void>)ImGui.funcTable[396])(self, scaleFactor); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddKeyEvent(ImGuiIO* self, ImGuiKey key, byte down) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ImGuiKey, byte, void>)ImGui.funcTable[397])(self, key, down); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddKeyAnalogEvent(ImGuiIO* self, ImGuiKey key, byte down, float v) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ImGuiKey, byte, float, void>)ImGui.funcTable[398])(self, key, down, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddMousePosEvent(ImGuiIO* self, float x, float y) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, float, float, void>)ImGui.funcTable[399])(self, x, y); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddMouseButtonEvent(ImGuiIO* self, int button, byte down) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, int, byte, void>)ImGui.funcTable[400])(self, button, down); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddMouseWheelEvent(ImGuiIO* self, float whX, float whY) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, float, float, void>)ImGui.funcTable[401])(self, whX, whY); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddMouseViewportEvent(ImGuiIO* self, uint id) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, uint, void>)ImGui.funcTable[402])(self, id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddFocusEvent(ImGuiIO* self, byte focused) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, byte, void>)ImGui.funcTable[403])(self, focused); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddInputCharacter(ImGuiIO* self, uint c) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, uint, void>)ImGui.funcTable[404])(self, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddInputCharacterUTF16(ImGuiIO* self, ushort c) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ushort, void>)ImGui.funcTable[405])(self, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddInputCharactersUTF8(ImGuiIO* self, byte* str) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, byte*, void>)ImGui.funcTable[406])(self, str); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetKeyEventNativeData(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ImGuiKey, int, int, int, void>)ImGui.funcTable[407])(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetAppAcceptingEvents(ImGuiIO* self, byte acceptingEvents) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, byte, void>)ImGui.funcTable[408])(self, acceptingEvents); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearInputCharacters(ImGuiIO* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, void>)ImGui.funcTable[409])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearInputKeys(ImGuiIO* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiIO*, void>)ImGui.funcTable[410])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiIO* ImGuiIO() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiIO*>)ImGui.funcTable[411])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiInputTextCallbackData* ImGuiInputTextCallbackData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*>)ImGui.funcTable[413])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytesCount) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, int, int, void>)ImGui.funcTable[415])(self, pos, bytesCount); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void InsertChars(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, int, byte*, byte*, void>)ImGui.funcTable[416])(self, pos, text, textEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SelectAll(ImGuiInputTextCallbackData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, void>)ImGui.funcTable[417])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearSelection(ImGuiInputTextCallbackData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, void>)ImGui.funcTable[418])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte HasSelection(ImGuiInputTextCallbackData* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, byte>)ImGui.funcTable[419])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindowClass* ImGuiWindowClass() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindowClass*>)ImGui.funcTable[420])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPayload* ImGuiPayload() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*>)ImGui.funcTable[422])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImGuiPayload* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiPayload*, void>)ImGui.funcTable[424])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImGuiTextFilter* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, void>)ImGui.funcTable[439])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImGuiStorage* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, void>)ImGui.funcTable[461])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImDrawListSplitter* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, void>)ImGui.funcTable[495])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImDrawData* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawData*, void>)ImGui.funcTable[566])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImFontGlyphRangesBuilder* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, void>)ImGui.funcTable[573])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImFontAtlas* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGui.funcTable[594])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsDataType(ImGuiPayload* self, byte* type) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*, byte*, byte>)ImGui.funcTable[425])(self, type); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsPreview(ImGuiPayload* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*, byte>)ImGui.funcTable[426])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsDelivery(ImGuiPayload* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*, byte>)ImGui.funcTable[427])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSortSpecs*>)ImGui.funcTable[428])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableSortSpecs* ImGuiTableSortSpecs() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableSortSpecs*>)ImGui.funcTable[430])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiOnceUponAFrame* ImGuiOnceUponAFrame() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiOnceUponAFrame*>)ImGui.funcTable[432])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTextFilter* ImGuiTextFilter(byte* defaultFilter) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTextFilter*>)ImGui.funcTable[434])(defaultFilter); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Draw(ImGuiTextFilter* self, byte* label, float width) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, byte*, float, byte>)ImGui.funcTable[436])(self, label, width); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte PassFilter(ImGuiTextFilter* self, byte* text, byte* textEnd) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, byte*, byte*, byte>)ImGui.funcTable[437])(self, text, textEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Build(ImGuiTextFilter* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, void>)ImGui.funcTable[438])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Build(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte>)ImGui.funcTable[595])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsActive(ImGuiTextFilter* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, byte>)ImGui.funcTable[440])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTextRange* ImGuiTextRange() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextRange*>)ImGui.funcTable[441])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTextRange* ImGuiTextRange(byte* b, byte* e) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, ImGuiTextRange*>)ImGui.funcTable[443])(b, e); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte empty(ImGuiTextRange* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextRange*, byte>)ImGui.funcTable[444])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte empty(ImGuiTextBuffer* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte>)ImGui.funcTable[451])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void split(ImGuiTextRange* self, byte separator, ImVector<ImGuiTextRange>* output) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextRange*, byte, ImVector<ImGuiTextRange>*, void>)ImGui.funcTable[445])(self, separator, output); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTextBuffer* ImGuiTextBuffer() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*>)ImGui.funcTable[446])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* begin(ImGuiTextBuffer* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*>)ImGui.funcTable[448])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* end(ImGuiTextBuffer* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*>)ImGui.funcTable[449])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int size(ImGuiTextBuffer* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, int>)ImGui.funcTable[450])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void clear(ImGuiTextBuffer* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, void>)ImGui.funcTable[452])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void reserve(ImGuiTextBuffer* self, int capacity) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, int, void>)ImGui.funcTable[453])(self, capacity); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* c_str(ImGuiTextBuffer* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*>)ImGui.funcTable[454])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void append(ImGuiTextBuffer* self, byte* str, byte* strEnd) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*, byte*, void>)ImGui.funcTable[455])(self, str, strEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void appendfv(ImGuiTextBuffer* self, byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*, nuint, void>)ImGui.funcTable[456])(self, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStoragePair* ImGuiStoragePair(uint key, int valI) - { - - return ((delegate* unmanaged[Cdecl]<uint, int, ImGuiStoragePair*>)ImGui.funcTable[457])(key, valI); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStoragePair* ImGuiStoragePair(uint key, float valF) - { - - return ((delegate* unmanaged[Cdecl]<uint, float, ImGuiStoragePair*>)ImGui.funcTable[459])(key, valF); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStoragePair* ImGuiStoragePair(uint key, void* valP) - { - - return ((delegate* unmanaged[Cdecl]<uint, void*, ImGuiStoragePair*>)ImGui.funcTable[460])(key, valP); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetInt(ImGuiStorage* self, uint key, int defaultVal) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, int, int>)ImGui.funcTable[462])(self, key, defaultVal); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetInt(ImGuiStorage* self, uint key, int val) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, int, void>)ImGui.funcTable[463])(self, key, val); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte GetBool(ImGuiStorage* self, uint key, byte defaultVal) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, byte, byte>)ImGui.funcTable[464])(self, key, defaultVal); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetBool(ImGuiStorage* self, uint key, byte val) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, byte, void>)ImGui.funcTable[465])(self, key, val); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetFloat(ImGuiStorage* self, uint key, float defaultVal) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, float, float>)ImGui.funcTable[466])(self, key, defaultVal); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetFloat(ImGuiStorage* self, uint key, float val) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, float, void>)ImGui.funcTable[467])(self, key, val); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void* GetVoidPtr(ImGuiStorage* self, uint key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, void*>)ImGui.funcTable[468])(self, key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetVoidPtr(ImGuiStorage* self, uint key, void* val) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, void*, void>)ImGui.funcTable[469])(self, key, val); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int* GetIntRef(ImGuiStorage* self, uint key, int defaultVal) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, int, int*>)ImGui.funcTable[470])(self, key, defaultVal); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool* GetBoolRef(ImGuiStorage* self, uint key, byte defaultVal) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, byte, bool*>)ImGui.funcTable[471])(self, key, defaultVal); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float* GetFloatRef(ImGuiStorage* self, uint key, float defaultVal) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, float, float*>)ImGui.funcTable[472])(self, key, defaultVal); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void** GetVoidPtrRef(ImGuiStorage* self, uint key, void* defaultVal) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, void*, void**>)ImGui.funcTable[473])(self, key, defaultVal); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetAllInt(ImGuiStorage* self, int val) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, int, void>)ImGui.funcTable[474])(self, val); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BuildSortByKey(ImGuiStorage* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, void>)ImGui.funcTable[475])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiListClipper* ImGuiListClipper() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiListClipper*>)ImGui.funcTable[476])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Step(ImGuiListClipper* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, byte>)ImGui.funcTable[480])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ForceDisplayRangeByIndices(ImGuiListClipper* self, int itemMin, int itemMax) - { - - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, int, int, void>)ImGui.funcTable[481])(self, itemMin, itemMax); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImColor* ImColor() - { - - return ((delegate* unmanaged[Cdecl]<ImColor*>)ImGui.funcTable[482])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImColor* ImColor(float r, float g, float b, float a) - { - - return ((delegate* unmanaged[Cdecl]<float, float, float, float, ImColor*>)ImGui.funcTable[484])(r, g, b, a); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImColor* ImColor(Vector4 col) - { - - return ((delegate* unmanaged[Cdecl]<Vector4, ImColor*>)ImGui.funcTable[485])(col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImColor* ImColor(int r, int g, int b, int a) - { - - return ((delegate* unmanaged[Cdecl]<int, int, int, int, ImColor*>)ImGui.funcTable[486])(r, g, b, a); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImColor* ImColor(uint rgba) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImColor*>)ImGui.funcTable[487])(rgba); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetHSV(ImColor* self, float h, float s, float v, float a) - { - - ((delegate* unmanaged[Cdecl]<ImColor*, float, float, float, float, void>)ImGui.funcTable[488])(self, h, s, v, a); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void HSV(ImColor* pOut, float h, float s, float v, float a) - { - - ((delegate* unmanaged[Cdecl]<ImColor*, float, float, float, float, void>)ImGui.funcTable[489])(pOut, h, s, v, a); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawCmd* ImDrawCmd() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawCmd*>)ImGui.funcTable[490])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImTextureID GetTexID(ImDrawCmd* self) - { - - return ((delegate* unmanaged[Cdecl]<ImDrawCmd*, ImTextureID>)ImGui.funcTable[492])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawListSplitter* ImDrawListSplitter() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*>)ImGui.funcTable[493])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearFreeMemory(ImDrawListSplitter* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, void>)ImGui.funcTable[496])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Split(ImDrawListSplitter* self, ImDrawList* drawList, int count) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, ImDrawList*, int, void>)ImGui.funcTable[497])(self, drawList, count); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Merge(ImDrawListSplitter* self, ImDrawList* drawList) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, ImDrawList*, void>)ImGui.funcTable[498])(self, drawList); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCurrentChannel(ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, ImDrawList*, int, void>)ImGui.funcTable[499])(self, drawList, channelIdx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* ImDrawList(ImDrawListSharedData* sharedData) - { - - return ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*, ImDrawList*>)ImGui.funcTable[500])(sharedData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushClipRectFullScreen(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[503])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushTextureID(ImDrawList* self, ImTextureID textureId) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, void>)ImGui.funcTable[505])(self, textureId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopTextureID(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[506])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetClipRectMin(Vector2* pOut, ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImDrawList*, void>)ImGui.funcTable[507])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetClipRectMax(Vector2* pOut, ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImDrawList*, void>)ImGui.funcTable[508])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddLine(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, void>)ImGui.funcTable[509])(self, p1, p2, col, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddRect(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, ImDrawFlags, float, void>)ImGui.funcTable[510])(self, pMin, pMax, col, rounding, flags, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddRectFilled(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, ImDrawFlags, void>)ImGui.funcTable[511])(self, pMin, pMax, col, rounding, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddRectFilledMultiColor(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, uint, uint, uint, void>)ImGui.funcTable[512])(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddQuad(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, float, void>)ImGui.funcTable[513])(self, p1, p2, p3, p4, col, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddQuadFilled(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, void>)ImGui.funcTable[514])(self, p1, p2, p3, p4, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddTriangle(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, uint, float, void>)ImGui.funcTable[515])(self, p1, p2, p3, col, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddTriangleFilled(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, uint, void>)ImGui.funcTable[516])(self, p1, p2, p3, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddCircle(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, float, void>)ImGui.funcTable[517])(self, center, radius, col, numSegments, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddCircleFilled(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, void>)ImGui.funcTable[518])(self, center, radius, col, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddNgon(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, float, void>)ImGui.funcTable[519])(self, center, radius, col, numSegments, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddNgonFilled(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, void>)ImGui.funcTable[520])(self, center, radius, col, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddText(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, byte*, byte*, void>)ImGui.funcTable[521])(self, pos, col, textBegin, textEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddText(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImFont*, float, Vector2, uint, byte*, byte*, float, Vector4*, void>)ImGui.funcTable[522])(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddText(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) - { - - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, byte*, byte*, void>)ImGui.funcTable[577])(self, text, textEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddPolyline(ImDrawList* self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2*, int, uint, ImDrawFlags, float, void>)ImGui.funcTable[523])(self, points, numPoints, col, flags, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddConvexPolyFilled(ImDrawList* self, Vector2* points, int numPoints, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2*, int, uint, void>)ImGui.funcTable[524])(self, points, numPoints, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddBezierCubic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, float, int, void>)ImGui.funcTable[525])(self, p1, p2, p3, p4, col, thickness, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddBezierQuadratic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, uint, float, int, void>)ImGui.funcTable[526])(self, p1, p2, p3, col, thickness, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddImage(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, Vector2, Vector2, Vector2, Vector2, uint, void>)ImGui.funcTable[527])(self, userTextureId, pMin, pMax, uvMin, uvMax, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddImageQuad(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, uint, void>)ImGui.funcTable[528])(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddImageRounded(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, Vector2, Vector2, Vector2, Vector2, uint, float, ImDrawFlags, void>)ImGui.funcTable[529])(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathClear(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[530])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathLineTo(ImDrawList* self, Vector2 pos) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, void>)ImGui.funcTable[531])(self, pos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathLineToMergeDuplicate(ImDrawList* self, Vector2 pos) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, void>)ImGui.funcTable[532])(self, pos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathFillConvex(ImDrawList* self, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, uint, void>)ImGui.funcTable[533])(self, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathStroke(ImDrawList* self, uint col, ImDrawFlags flags, float thickness) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, uint, ImDrawFlags, float, void>)ImGui.funcTable[534])(self, col, flags, thickness); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathArcTo(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, float, float, int, void>)ImGui.funcTable[535])(self, center, radius, aMin, aMax, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathArcToFast(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, int, int, void>)ImGui.funcTable[536])(self, center, radius, aMinOf12, aMaxOf12); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathBezierCubicCurveTo(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, int, void>)ImGui.funcTable[537])(self, p2, p3, p4, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathBezierQuadraticCurveTo(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, int, void>)ImGui.funcTable[538])(self, p2, p3, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PathRect(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, float, ImDrawFlags, void>)ImGui.funcTable[539])(self, rectMin, rectMax, rounding, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddCallback(ImDrawList* self, ImDrawCallback callback, void* callbackData) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, delegate*<ImDrawList*, ImDrawCmd*, void>, void*, void>)ImGui.funcTable[540])(self, (delegate*<ImDrawList*, ImDrawCmd*, void>)Utils.GetFunctionPointerForDelegate(callback), callbackData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddDrawCmd(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[541])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* CloneOutput(ImDrawList* self) - { - - return ((delegate* unmanaged[Cdecl]<ImDrawList*, ImDrawList*>)ImGui.funcTable[542])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ChannelsSplit(ImDrawList* self, int count) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, void>)ImGui.funcTable[543])(self, count); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ChannelsMerge(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[544])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ChannelsSetCurrent(ImDrawList* self, int n) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, void>)ImGui.funcTable[545])(self, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimReserve(ImDrawList* self, int idxCount, int vtxCount) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, void>)ImGui.funcTable[546])(self, idxCount, vtxCount); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimUnreserve(ImDrawList* self, int idxCount, int vtxCount) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, void>)ImGui.funcTable[547])(self, idxCount, vtxCount); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimRect(ImDrawList* self, Vector2 a, Vector2 b, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, void>)ImGui.funcTable[548])(self, a, b, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimRectUV(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, void>)ImGui.funcTable[549])(self, a, b, uvA, uvB, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimQuadUV(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, uint, void>)ImGui.funcTable[550])(self, a, b, c, d, uvA, uvB, uvC, uvD, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimWriteVtx(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, void>)ImGui.funcTable[551])(self, pos, uv, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimWriteIdx(ImDrawList* self, ushort idx) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ushort, void>)ImGui.funcTable[552])(self, idx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PrimVtx(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, void>)ImGui.funcTable[553])(self, pos, uv, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _ResetForNewFrame(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[554])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _ClearFreeMemory(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[555])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _PopUnusedDrawCmd(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[556])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _TryMergeDrawCmds(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[557])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _OnChangedClipRect(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[558])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _OnChangedTextureID(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[559])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _OnChangedVtxOffset(ImDrawList* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)ImGui.funcTable[560])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int _CalcCircleAutoSegmentCount(ImDrawList* self, float radius) - { - - return ((delegate* unmanaged[Cdecl]<ImDrawList*, float, int>)ImGui.funcTable[561])(self, radius); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _PathArcToFastEx(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, int, int, int, void>)ImGui.funcTable[562])(self, center, radius, aMinSample, aMaxSample, aStep); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void _PathArcToN(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, float, float, int, void>)ImGui.funcTable[563])(self, center, radius, aMin, aMax, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawData* ImDrawData() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawData*>)ImGui.funcTable[564])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DeIndexAllBuffers(ImDrawData* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawData*, void>)ImGui.funcTable[567])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ScaleClipRects(ImDrawData* self, Vector2 fbScale) - { - - ((delegate* unmanaged[Cdecl]<ImDrawData*, Vector2, void>)ImGui.funcTable[568])(self, fbScale); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontConfig* ImFontConfig() - { - - return ((delegate* unmanaged[Cdecl]<ImFontConfig*>)ImGui.funcTable[569])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder() - { - - return ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*>)ImGui.funcTable[571])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte GetBit(ImFontGlyphRangesBuilder* self, nuint n) - { - - return ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, nuint, byte>)ImGui.funcTable[574])(self, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetBit(ImFontGlyphRangesBuilder* self, nuint n) - { - - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, nuint, void>)ImGui.funcTable[575])(self, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddChar(ImFontGlyphRangesBuilder* self, ushort c) - { - - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, ushort, void>)ImGui.funcTable[576])(self, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddRanges(ImFontGlyphRangesBuilder* self, ushort* ranges) - { - - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, ushort*, void>)ImGui.funcTable[578])(self, ranges); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BuildRanges(ImFontGlyphRangesBuilder* self, ImVector<ushort>* outRanges) - { - - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, ImVector<ushort>*, void>)ImGui.funcTable[579])(self, outRanges); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontAtlasCustomRect* ImFontAtlasCustomRect() - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlasCustomRect*>)ImGui.funcTable[580])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsPacked(ImFontAtlasCustomRect* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlasCustomRect*, byte>)ImGui.funcTable[582])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontAtlas* ImFontAtlas() - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*>)ImGui.funcTable[583])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* AddFont(ImFontAtlas* self, ImFontConfig* fontCfg) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFontConfig*, ImFont*>)ImGui.funcTable[585])(self, fontCfg); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* AddFontDefault(ImFontAtlas* self, ImFontConfig* fontCfg) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFontConfig*, ImFont*>)ImGui.funcTable[586])(self, fontCfg); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* AddFontFromFileTTF(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte*, float, ImFontConfig*, ushort*, ImFont*>)ImGui.funcTable[587])(self, filename, sizePixels, fontCfg, glyphRanges); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* AddFontFromMemoryTTF(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void*, int, float, ImFontConfig*, ushort*, ImFont*>)ImGui.funcTable[588])(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* AddFontFromMemoryCompressedTTF(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void*, int, float, ImFontConfig*, ushort*, ImFont*>)ImGui.funcTable[589])(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte*, float, ImFontConfig*, ushort*, ImFont*>)ImGui.funcTable[590])(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearInputData(ImFontAtlas* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGui.funcTable[591])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearTexData(ImFontAtlas* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGui.funcTable[592])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearFonts(ImFontAtlas* self) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGui.funcTable[593])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetTexDataAsAlpha8(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, byte**, int*, int*, int*, void>)ImGui.funcTable[596])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetTexDataAsRGBA32(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, byte**, int*, int*, int*, void>)ImGui.funcTable[597])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsBuilt(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte>)ImGui.funcTable[598])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetTexID(ImFontAtlas* self, int textureIndex, ImTextureID id) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, ImTextureID, void>)ImGui.funcTable[599])(self, textureIndex, id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearTexID(ImFontAtlas* self, ImTextureID nullId) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImTextureID, void>)ImGui.funcTable[600])(self, nullId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesDefault(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[601])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesKorean(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[602])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesJapanese(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[603])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesChineseFull(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[604])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[605])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesCyrillic(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[606])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesThai(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[607])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* GetGlyphRangesVietnamese(ImFontAtlas* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)ImGui.funcTable[608])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int AddCustomRectRegular(ImFontAtlas* self, int width, int height) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, int, int>)ImGui.funcTable[609])(self, width, height); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFont*, ushort, int, int, float, Vector2, int>)ImGui.funcTable[610])(self, font, id, width, height, advanceX, offset); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontAtlasCustomRect* GetCustomRectByIndex(ImFontAtlas* self, int index) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, ImFontAtlasCustomRect*>)ImGui.funcTable[611])(self, index); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcCustomRectUV(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFontAtlasCustomRect*, Vector2*, Vector2*, void>)ImGui.funcTable[612])(self, rect, outUvMin, outUvMax); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte GetMouseCursorTexData(ImFontAtlas* self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImGuiMouseCursor, Vector2*, Vector2*, Vector2*, Vector2*, int*, byte>)ImGui.funcTable[613])(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* ImFont() - { - - return ((delegate* unmanaged[Cdecl]<ImFont*>)ImGui.funcTable[614])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontGlyph* FindGlyph(ImFont* self, ushort c) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ImFontGlyph*>)ImGui.funcTable[616])(self, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontGlyph* FindGlyphNoFallback(ImFont* self, ushort c) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ImFontGlyph*>)ImGui.funcTable[617])(self, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetDistanceAdjustmentForPair(ImFont* self, ushort leftC, ushort rightC) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ushort, float>)ImGui.funcTable[618])(self, leftC, rightC); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetCharAdvance(ImFont* self, ushort c) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, float>)ImGui.funcTable[619])(self, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsLoaded(ImFont* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, byte>)ImGui.funcTable[620])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetDebugName(ImFont* self) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, byte*>)ImGui.funcTable[621])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcTextSizeA(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImFont*, float, float, float, byte*, byte*, byte**, void>)ImGui.funcTable[622])(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* CalcWordWrapPositionA(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, float, byte*, byte*, float, byte*>)ImGui.funcTable[623])(self, scale, text, textEnd, wrapWidth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderChar(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, ushort c) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, ImDrawList*, float, Vector2, uint, ushort, void>)ImGui.funcTable[624])(self, drawList, size, pos, col, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderText(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, ImDrawList*, float, Vector2, uint, Vector4, byte*, byte*, float, byte, void>)ImGui.funcTable[625])(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BuildLookupTable(ImFont* self) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, void>)ImGui.funcTable[626])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearOutputData(ImFont* self) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, void>)ImGui.funcTable[627])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GrowIndex(ImFont* self, int newSize) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, int, void>)ImGui.funcTable[628])(self, newSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddGlyph(ImFont* self, ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, ImFontConfig*, ushort, int, float, float, float, float, float, float, float, float, float, void>)ImGui.funcTable[629])(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddRemapChar(ImFont* self, ushort dst, ushort src, byte overwriteDst) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ushort, byte, void>)ImGui.funcTable[630])(self, dst, src, overwriteDst); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetGlyphVisible(ImFont* self, ushort c, byte visible) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, ushort, byte, void>)ImGui.funcTable[631])(self, c, visible); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsGlyphRangeUnused(ImFont* self, uint cBegin, uint cLast) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, uint, uint, byte>)ImGui.funcTable[632])(self, cBegin, cLast); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddKerningPair(ImFont* self, ushort leftC, ushort rightC, float distanceAdjustment) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ushort, float, void>)ImGui.funcTable[633])(self, leftC, rightC, distanceAdjustment); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetDistanceAdjustmentForPairFromHotData(ImFont* self, ushort leftC, ImFontGlyphHotData* rightCInfo) - { - - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ImFontGlyphHotData*, float>)ImGui.funcTable[634])(self, leftC, rightCInfo); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiViewport* ImGuiViewport() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*>)ImGui.funcTable[635])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetCenter(Vector2* pOut, ImGuiViewport* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewport*, void>)ImGui.funcTable[637])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetWorkCenter(Vector2* pOut, ImGuiViewport* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewport*, void>)ImGui.funcTable[638])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPlatformIO* ImGuiPlatformIO() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformIO*>)ImGui.funcTable[639])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPlatformMonitor* ImGuiPlatformMonitor() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformMonitor*>)ImGui.funcTable[641])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPlatformImeData* ImGuiPlatformImeData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformImeData*>)ImGui.funcTable[643])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetKeyIndex(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, int>)ImGui.funcTable[645])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogText(byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGui.funcTable[680])(fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void appendf(ImGuiTextBuffer* buffer, byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*, void>)ImGui.funcTable[681])(buffer, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GETFLTMAX() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[682])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GETFLTMIN() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGui.funcTable[683])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImVector<ushort>* ImVectorImWcharCreate() - { - - return ((delegate* unmanaged[Cdecl]<ImVector<ushort>*>)ImGui.funcTable[684])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImVectorImWcharDestroy(ImVector<ushort>* self) - { - - ((delegate* unmanaged[Cdecl]<ImVector<ushort>*, void>)ImGui.funcTable[685])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImVectorImWcharInit(ImVector<ushort>* p) - { - - ((delegate* unmanaged[Cdecl]<ImVector<ushort>*, void>)ImGui.funcTable[686])(p); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImVectorImWcharUnInit(ImVector<ushort>* p) - { - - ((delegate* unmanaged[Cdecl]<ImVector<ushort>*, void>)ImGui.funcTable[687])(p); - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs.gen.cs deleted file mode 100644 index 2fe66de88..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs.gen.cs +++ /dev/null @@ -1,20333 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -/* ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN - { - public uint Storage_0; - public uint Storage_1; - public uint Storage_2; - public uint Storage_3; - public uint Storage_4; - public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(uint* storage = default) - { - if (storage != default(uint*)) - { - Storage_0 = storage[0]; - Storage_1 = storage[1]; - Storage_2 = storage[2]; - Storage_3 = storage[3]; - Storage_4 = storage[4]; - } - } - public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(Span<uint> storage = default) - { - if (storage != default(Span<uint>)) - { - Storage_0 = storage[0]; - Storage_1 = storage[1]; - Storage_2 = storage[2]; - Storage_3 = storage[3]; - Storage_4 = storage[4]; - } - } - } -} -/* ImBitVector.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImBitVector - { - public ImVector<uint> Storage; - public unsafe ImBitVector(ImVector<uint> storage = default) - { - Storage = storage; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImBitVectorPtr : IEquatable<ImBitVectorPtr> - { - public ImBitVectorPtr(ImBitVector* handle) { Handle = handle; } - public ImBitVector* Handle; - public bool IsNull => Handle == null; - public static ImBitVectorPtr Null => new ImBitVectorPtr(null); - public ImBitVector this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImBitVectorPtr(ImBitVector* handle) => new ImBitVectorPtr(handle); - public static implicit operator ImBitVector*(ImBitVectorPtr handle) => handle.Handle; - public static bool operator ==(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImBitVectorPtr left, ImBitVector* right) => left.Handle == right; - public static bool operator !=(ImBitVectorPtr left, ImBitVector* right) => left.Handle != right; - public bool Equals(ImBitVectorPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImBitVectorPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImBitVectorPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<uint> Storage => ref Unsafe.AsRef<ImVector<uint>>(&Handle->Storage); - } -} -/* ImChunkStreamImGuiTableSettings.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImChunkStreamImGuiTableSettings - { - public ImVector<byte> Buf; - public unsafe ImChunkStreamImGuiTableSettings(ImVector<byte> buf = default) - { - Buf = buf; - } - } -} -/* ImChunkStreamImGuiWindowSettings.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImChunkStreamImGuiWindowSettings - { - public ImVector<byte> Buf; - public unsafe ImChunkStreamImGuiWindowSettings(ImVector<byte> buf = default) - { - Buf = buf; - } - } -} -/* ImColor.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImColor - { - public Vector4 Value; - public unsafe ImColor(Vector4 value = default) - { - Value = value; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImColorPtr : IEquatable<ImColorPtr> - { - public ImColorPtr(ImColor* handle) { Handle = handle; } - public ImColor* Handle; - public bool IsNull => Handle == null; - public static ImColorPtr Null => new ImColorPtr(null); - public ImColor this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImColorPtr(ImColor* handle) => new ImColorPtr(handle); - public static implicit operator ImColor*(ImColorPtr handle) => handle.Handle; - public static bool operator ==(ImColorPtr left, ImColorPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImColorPtr left, ImColorPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImColorPtr left, ImColor* right) => left.Handle == right; - public static bool operator !=(ImColorPtr left, ImColor* right) => left.Handle != right; - public bool Equals(ImColorPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImColorPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImColorPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref Vector4 Value => ref Unsafe.AsRef<Vector4>(&Handle->Value); - } -} -/* ImDrawChannel.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawChannel - { - public ImVector<ImDrawCmd> CmdBuffer; - public ImVector<ushort> IdxBuffer; - public unsafe ImDrawChannel(ImVector<ImDrawCmd> cmdBuffer = default, ImVector<ushort> idxBuffer = default) - { - CmdBuffer = cmdBuffer; - IdxBuffer = idxBuffer; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawChannelPtr : IEquatable<ImDrawChannelPtr> - { - public ImDrawChannelPtr(ImDrawChannel* handle) { Handle = handle; } - public ImDrawChannel* Handle; - public bool IsNull => Handle == null; - public static ImDrawChannelPtr Null => new ImDrawChannelPtr(null); - public ImDrawChannel this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawChannelPtr(ImDrawChannel* handle) => new ImDrawChannelPtr(handle); - public static implicit operator ImDrawChannel*(ImDrawChannelPtr handle) => handle.Handle; - public static bool operator ==(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle == right; - public static bool operator !=(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle != right; - public bool Equals(ImDrawChannelPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawChannelPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawChannelPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<ImDrawCmd> CmdBuffer => ref Unsafe.AsRef<ImVector<ImDrawCmd>>(&Handle->CmdBuffer); - public ref ImVector<ushort> IdxBuffer => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->IdxBuffer); - } -} -/* ImDrawCmd.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawCmd - { - public Vector4 ClipRect; - public ImTextureID TextureId; - public uint VtxOffset; - public uint IdxOffset; - public uint ElemCount; - public unsafe void* UserCallback; - public unsafe void* UserCallbackData; - public unsafe ImDrawCmd(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default, uint idxOffset = default, uint elemCount = default, ImDrawCallback userCallback = default, void* userCallbackData = default) - { - ClipRect = clipRect; - TextureId = textureId; - VtxOffset = vtxOffset; - IdxOffset = idxOffset; - ElemCount = elemCount; - UserCallback = (void*)Marshal.GetFunctionPointerForDelegate(userCallback); - UserCallbackData = userCallbackData; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawCmdPtr : IEquatable<ImDrawCmdPtr> - { - public ImDrawCmdPtr(ImDrawCmd* handle) { Handle = handle; } - public ImDrawCmd* Handle; - public bool IsNull => Handle == null; - public static ImDrawCmdPtr Null => new ImDrawCmdPtr(null); - public ImDrawCmd this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawCmdPtr(ImDrawCmd* handle) => new ImDrawCmdPtr(handle); - public static implicit operator ImDrawCmd*(ImDrawCmdPtr handle) => handle.Handle; - public static bool operator ==(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle == right; - public static bool operator !=(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle != right; - public bool Equals(ImDrawCmdPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawCmdPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawCmdPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref Vector4 ClipRect => ref Unsafe.AsRef<Vector4>(&Handle->ClipRect); - public ref ImTextureID TextureId => ref Unsafe.AsRef<ImTextureID>(&Handle->TextureId); - public ref uint VtxOffset => ref Unsafe.AsRef<uint>(&Handle->VtxOffset); - public ref uint IdxOffset => ref Unsafe.AsRef<uint>(&Handle->IdxOffset); - public ref uint ElemCount => ref Unsafe.AsRef<uint>(&Handle->ElemCount); - public void* UserCallback { get => Handle->UserCallback; set => Handle->UserCallback = value; } - public void* UserCallbackData { get => Handle->UserCallbackData; set => Handle->UserCallbackData = value; } - } -} -/* ImDrawCmdHeader.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawCmdHeader - { - public Vector4 ClipRect; - public ImTextureID TextureId; - public uint VtxOffset; - public unsafe ImDrawCmdHeader(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default) - { - ClipRect = clipRect; - TextureId = textureId; - VtxOffset = vtxOffset; - } - } -} -/* ImDrawData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawData - { - public byte Valid; - public int CmdListsCount; - public int TotalIdxCount; - public int TotalVtxCount; - public unsafe ImDrawList** CmdLists; - public Vector2 DisplayPos; - public Vector2 DisplaySize; - public Vector2 FramebufferScale; - public unsafe ImGuiViewport* OwnerViewport; - public unsafe ImDrawData(bool valid = default, int cmdListsCount = default, int totalIdxCount = default, int totalVtxCount = default, ImDrawListPtrPtr cmdLists = default, Vector2 displayPos = default, Vector2 displaySize = default, Vector2 framebufferScale = default, ImGuiViewport* ownerViewport = default) - { - Valid = valid ? (byte)1 : (byte)0; - CmdListsCount = cmdListsCount; - TotalIdxCount = totalIdxCount; - TotalVtxCount = totalVtxCount; - CmdLists = cmdLists; - DisplayPos = displayPos; - DisplaySize = displaySize; - FramebufferScale = framebufferScale; - OwnerViewport = ownerViewport; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawDataPtr : IEquatable<ImDrawDataPtr> - { - public ImDrawDataPtr(ImDrawData* handle) { Handle = handle; } - public ImDrawData* Handle; - public bool IsNull => Handle == null; - public static ImDrawDataPtr Null => new ImDrawDataPtr(null); - public ImDrawData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawDataPtr(ImDrawData* handle) => new ImDrawDataPtr(handle); - public static implicit operator ImDrawData*(ImDrawDataPtr handle) => handle.Handle; - public static bool operator ==(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawDataPtr left, ImDrawData* right) => left.Handle == right; - public static bool operator !=(ImDrawDataPtr left, ImDrawData* right) => left.Handle != right; - public bool Equals(ImDrawDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref bool Valid => ref Unsafe.AsRef<bool>(&Handle->Valid); - public ref int CmdListsCount => ref Unsafe.AsRef<int>(&Handle->CmdListsCount); - public ref int TotalIdxCount => ref Unsafe.AsRef<int>(&Handle->TotalIdxCount); - public ref int TotalVtxCount => ref Unsafe.AsRef<int>(&Handle->TotalVtxCount); - public ref ImDrawListPtrPtr CmdLists => ref Unsafe.AsRef<ImDrawListPtrPtr>(&Handle->CmdLists); - public ref Vector2 DisplayPos => ref Unsafe.AsRef<Vector2>(&Handle->DisplayPos); - public ref Vector2 DisplaySize => ref Unsafe.AsRef<Vector2>(&Handle->DisplaySize); - public ref Vector2 FramebufferScale => ref Unsafe.AsRef<Vector2>(&Handle->FramebufferScale); - public ref ImGuiViewportPtr OwnerViewport => ref Unsafe.AsRef<ImGuiViewportPtr>(&Handle->OwnerViewport); - } -} -/* ImDrawDataBuilder.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawDataBuilder - { - public ImVector<ImDrawListPtr> Layers_0; - public ImVector<ImDrawListPtr> Layers_1; - public unsafe ImDrawDataBuilder(ImVector<ImDrawListPtr>* layers = default) - { - if (layers != default(ImVector<ImDrawListPtr>*)) - { - Layers_0 = layers[0]; - Layers_1 = layers[1]; - } - } - public unsafe ImDrawDataBuilder(Span<ImVector<ImDrawListPtr>> layers = default) - { - if (layers != default(Span<ImVector<ImDrawListPtr>>)) - { - Layers_0 = layers[0]; - Layers_1 = layers[1]; - } - } - public unsafe Span<ImVector<ImDrawListPtr>> Layers - { - get - { - fixed (ImVector<ImDrawListPtr>* p = &this.Layers_0) - { - return new Span<ImVector<ImDrawListPtr>>(p, 2); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawDataBuilderPtr : IEquatable<ImDrawDataBuilderPtr> - { - public ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) { Handle = handle; } - public ImDrawDataBuilder* Handle; - public bool IsNull => Handle == null; - public static ImDrawDataBuilderPtr Null => new ImDrawDataBuilderPtr(null); - public ImDrawDataBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) => new ImDrawDataBuilderPtr(handle); - public static implicit operator ImDrawDataBuilder*(ImDrawDataBuilderPtr handle) => handle.Handle; - public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle == right; - public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle != right; - public bool Equals(ImDrawDataBuilderPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawDataBuilderPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawDataBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public unsafe Span<ImVector<ImDrawListPtr>> Layers - { - get - { - return new Span<ImVector<ImDrawListPtr>>(&Handle->Layers_0, 2); - } - } - } -} -/* ImDrawList.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawList - { - public ImVector<ImDrawCmd> CmdBuffer; - public ImVector<ushort> IdxBuffer; - public ImVector<ImDrawVert> VtxBuffer; - public ImDrawListFlags Flags; - public uint VtxCurrentIdx; - public unsafe ImDrawListSharedData* Data; - public unsafe byte* OwnerName; - public unsafe ImDrawVert* VtxWritePtr; - public unsafe ushort* IdxWritePtr; - public ImVector<Vector4> ClipRectStack; - public ImVector<ImTextureID> TextureIdStack; - public ImVector<Vector2> Path; - public ImDrawCmdHeader CmdHeader; - public ImDrawListSplitter Splitter; - public float FringeScale; - public unsafe ImDrawList(ImVector<ImDrawCmd> cmdBuffer = default, ImVector<ushort> idxBuffer = default, ImVector<ImDrawVert> vtxBuffer = default, ImDrawListFlags flags = default, uint vtxCurrentIdx = default, ImDrawListSharedData* data = default, byte* ownerName = default, ImDrawVert* vtxWritePtr = default, ushort* idxWritePtr = default, ImVector<Vector4> clipRectStack = default, ImVector<ImTextureID> textureIdStack = default, ImVector<Vector2> path = default, ImDrawCmdHeader cmdHeader = default, ImDrawListSplitter splitter = default, float fringeScale = default) - { - CmdBuffer = cmdBuffer; - IdxBuffer = idxBuffer; - VtxBuffer = vtxBuffer; - Flags = flags; - VtxCurrentIdx = vtxCurrentIdx; - Data = data; - OwnerName = ownerName; - VtxWritePtr = vtxWritePtr; - IdxWritePtr = idxWritePtr; - ClipRectStack = clipRectStack; - TextureIdStack = textureIdStack; - Path = path; - CmdHeader = cmdHeader; - Splitter = splitter; - FringeScale = fringeScale; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawListPtr : IEquatable<ImDrawListPtr> - { - public ImDrawListPtr(ImDrawList* handle) { Handle = handle; } - public ImDrawList* Handle; - public bool IsNull => Handle == null; - public static ImDrawListPtr Null => new ImDrawListPtr(null); - public ImDrawList this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawListPtr(ImDrawList* handle) => new ImDrawListPtr(handle); - public static implicit operator ImDrawList*(ImDrawListPtr handle) => handle.Handle; - public static bool operator ==(ImDrawListPtr left, ImDrawListPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawListPtr left, ImDrawListPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawListPtr left, ImDrawList* right) => left.Handle == right; - public static bool operator !=(ImDrawListPtr left, ImDrawList* right) => left.Handle != right; - public bool Equals(ImDrawListPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawListPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawListPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<ImDrawCmd> CmdBuffer => ref Unsafe.AsRef<ImVector<ImDrawCmd>>(&Handle->CmdBuffer); - public ref ImVector<ushort> IdxBuffer => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->IdxBuffer); - public ref ImVector<ImDrawVert> VtxBuffer => ref Unsafe.AsRef<ImVector<ImDrawVert>>(&Handle->VtxBuffer); - public ref ImDrawListFlags Flags => ref Unsafe.AsRef<ImDrawListFlags>(&Handle->Flags); - public ref uint VtxCurrentIdx => ref Unsafe.AsRef<uint>(&Handle->VtxCurrentIdx); - public ref ImDrawListSharedDataPtr Data => ref Unsafe.AsRef<ImDrawListSharedDataPtr>(&Handle->Data); - public byte* OwnerName { get => Handle->OwnerName; set => Handle->OwnerName = value; } - public ref ImDrawVertPtr VtxWritePtr => ref Unsafe.AsRef<ImDrawVertPtr>(&Handle->VtxWritePtr); - public ushort* IdxWritePtr { get => Handle->IdxWritePtr; set => Handle->IdxWritePtr = value; } - public ref ImVector<Vector4> ClipRectStack => ref Unsafe.AsRef<ImVector<Vector4>>(&Handle->ClipRectStack); - public ref ImVector<ImTextureID> TextureIdStack => ref Unsafe.AsRef<ImVector<ImTextureID>>(&Handle->TextureIdStack); - public ref ImVector<Vector2> Path => ref Unsafe.AsRef<ImVector<Vector2>>(&Handle->Path); - public ref ImDrawCmdHeader CmdHeader => ref Unsafe.AsRef<ImDrawCmdHeader>(&Handle->CmdHeader); - public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef<ImDrawListSplitter>(&Handle->Splitter); - public ref float FringeScale => ref Unsafe.AsRef<float>(&Handle->FringeScale); - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawListPtrPtr : IEquatable<ImDrawListPtrPtr> - { - public ImDrawListPtrPtr(ImDrawList** handle) { Handle = handle; } - public ImDrawList** Handle; - public bool IsNull => Handle == null; - public static ImDrawListPtrPtr Null => new ImDrawListPtrPtr(null); - public ImDrawList* this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawListPtrPtr(ImDrawList** handle) => new ImDrawListPtrPtr(handle); - public static implicit operator ImDrawList**(ImDrawListPtrPtr handle) => handle.Handle; - public static bool operator ==(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle == right; - public static bool operator !=(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle != right; - public bool Equals(ImDrawListPtrPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawListPtrPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawListPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* ImDrawListSharedData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawListSharedData - { - public ImTextureID TexIdCommon; - public Vector2 TexUvWhitePixel; - public unsafe ImFont* Font; - public float FontSize; - public float CurveTessellationTol; - public float CircleSegmentMaxError; - public Vector4 ClipRectFullscreen; - public ImDrawListFlags InitialFlags; - public Vector2 ArcFastVtx_0; - public Vector2 ArcFastVtx_1; - public Vector2 ArcFastVtx_2; - public Vector2 ArcFastVtx_3; - public Vector2 ArcFastVtx_4; - public Vector2 ArcFastVtx_5; - public Vector2 ArcFastVtx_6; - public Vector2 ArcFastVtx_7; - public Vector2 ArcFastVtx_8; - public Vector2 ArcFastVtx_9; - public Vector2 ArcFastVtx_10; - public Vector2 ArcFastVtx_11; - public Vector2 ArcFastVtx_12; - public Vector2 ArcFastVtx_13; - public Vector2 ArcFastVtx_14; - public Vector2 ArcFastVtx_15; - public Vector2 ArcFastVtx_16; - public Vector2 ArcFastVtx_17; - public Vector2 ArcFastVtx_18; - public Vector2 ArcFastVtx_19; - public Vector2 ArcFastVtx_20; - public Vector2 ArcFastVtx_21; - public Vector2 ArcFastVtx_22; - public Vector2 ArcFastVtx_23; - public Vector2 ArcFastVtx_24; - public Vector2 ArcFastVtx_25; - public Vector2 ArcFastVtx_26; - public Vector2 ArcFastVtx_27; - public Vector2 ArcFastVtx_28; - public Vector2 ArcFastVtx_29; - public Vector2 ArcFastVtx_30; - public Vector2 ArcFastVtx_31; - public Vector2 ArcFastVtx_32; - public Vector2 ArcFastVtx_33; - public Vector2 ArcFastVtx_34; - public Vector2 ArcFastVtx_35; - public Vector2 ArcFastVtx_36; - public Vector2 ArcFastVtx_37; - public Vector2 ArcFastVtx_38; - public Vector2 ArcFastVtx_39; - public Vector2 ArcFastVtx_40; - public Vector2 ArcFastVtx_41; - public Vector2 ArcFastVtx_42; - public Vector2 ArcFastVtx_43; - public Vector2 ArcFastVtx_44; - public Vector2 ArcFastVtx_45; - public Vector2 ArcFastVtx_46; - public Vector2 ArcFastVtx_47; - public float ArcFastRadiusCutoff; - public byte CircleSegmentCounts_0; - public byte CircleSegmentCounts_1; - public byte CircleSegmentCounts_2; - public byte CircleSegmentCounts_3; - public byte CircleSegmentCounts_4; - public byte CircleSegmentCounts_5; - public byte CircleSegmentCounts_6; - public byte CircleSegmentCounts_7; - public byte CircleSegmentCounts_8; - public byte CircleSegmentCounts_9; - public byte CircleSegmentCounts_10; - public byte CircleSegmentCounts_11; - public byte CircleSegmentCounts_12; - public byte CircleSegmentCounts_13; - public byte CircleSegmentCounts_14; - public byte CircleSegmentCounts_15; - public byte CircleSegmentCounts_16; - public byte CircleSegmentCounts_17; - public byte CircleSegmentCounts_18; - public byte CircleSegmentCounts_19; - public byte CircleSegmentCounts_20; - public byte CircleSegmentCounts_21; - public byte CircleSegmentCounts_22; - public byte CircleSegmentCounts_23; - public byte CircleSegmentCounts_24; - public byte CircleSegmentCounts_25; - public byte CircleSegmentCounts_26; - public byte CircleSegmentCounts_27; - public byte CircleSegmentCounts_28; - public byte CircleSegmentCounts_29; - public byte CircleSegmentCounts_30; - public byte CircleSegmentCounts_31; - public byte CircleSegmentCounts_32; - public byte CircleSegmentCounts_33; - public byte CircleSegmentCounts_34; - public byte CircleSegmentCounts_35; - public byte CircleSegmentCounts_36; - public byte CircleSegmentCounts_37; - public byte CircleSegmentCounts_38; - public byte CircleSegmentCounts_39; - public byte CircleSegmentCounts_40; - public byte CircleSegmentCounts_41; - public byte CircleSegmentCounts_42; - public byte CircleSegmentCounts_43; - public byte CircleSegmentCounts_44; - public byte CircleSegmentCounts_45; - public byte CircleSegmentCounts_46; - public byte CircleSegmentCounts_47; - public byte CircleSegmentCounts_48; - public byte CircleSegmentCounts_49; - public byte CircleSegmentCounts_50; - public byte CircleSegmentCounts_51; - public byte CircleSegmentCounts_52; - public byte CircleSegmentCounts_53; - public byte CircleSegmentCounts_54; - public byte CircleSegmentCounts_55; - public byte CircleSegmentCounts_56; - public byte CircleSegmentCounts_57; - public byte CircleSegmentCounts_58; - public byte CircleSegmentCounts_59; - public byte CircleSegmentCounts_60; - public byte CircleSegmentCounts_61; - public byte CircleSegmentCounts_62; - public byte CircleSegmentCounts_63; - public unsafe Vector4* TexUvLines; - public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Vector2* arcFastVtx = default, float arcFastRadiusCutoff = default, byte* circleSegmentCounts = default, Vector4* texUvLines = default) - { - TexIdCommon = texIdCommon; - TexUvWhitePixel = texUvWhitePixel; - Font = font; - FontSize = fontSize; - CurveTessellationTol = curveTessellationTol; - CircleSegmentMaxError = circleSegmentMaxError; - ClipRectFullscreen = clipRectFullscreen; - InitialFlags = initialFlags; - if (arcFastVtx != default(Vector2*)) - { - ArcFastVtx_0 = arcFastVtx[0]; - ArcFastVtx_1 = arcFastVtx[1]; - ArcFastVtx_2 = arcFastVtx[2]; - ArcFastVtx_3 = arcFastVtx[3]; - ArcFastVtx_4 = arcFastVtx[4]; - ArcFastVtx_5 = arcFastVtx[5]; - ArcFastVtx_6 = arcFastVtx[6]; - ArcFastVtx_7 = arcFastVtx[7]; - ArcFastVtx_8 = arcFastVtx[8]; - ArcFastVtx_9 = arcFastVtx[9]; - ArcFastVtx_10 = arcFastVtx[10]; - ArcFastVtx_11 = arcFastVtx[11]; - ArcFastVtx_12 = arcFastVtx[12]; - ArcFastVtx_13 = arcFastVtx[13]; - ArcFastVtx_14 = arcFastVtx[14]; - ArcFastVtx_15 = arcFastVtx[15]; - ArcFastVtx_16 = arcFastVtx[16]; - ArcFastVtx_17 = arcFastVtx[17]; - ArcFastVtx_18 = arcFastVtx[18]; - ArcFastVtx_19 = arcFastVtx[19]; - ArcFastVtx_20 = arcFastVtx[20]; - ArcFastVtx_21 = arcFastVtx[21]; - ArcFastVtx_22 = arcFastVtx[22]; - ArcFastVtx_23 = arcFastVtx[23]; - ArcFastVtx_24 = arcFastVtx[24]; - ArcFastVtx_25 = arcFastVtx[25]; - ArcFastVtx_26 = arcFastVtx[26]; - ArcFastVtx_27 = arcFastVtx[27]; - ArcFastVtx_28 = arcFastVtx[28]; - ArcFastVtx_29 = arcFastVtx[29]; - ArcFastVtx_30 = arcFastVtx[30]; - ArcFastVtx_31 = arcFastVtx[31]; - ArcFastVtx_32 = arcFastVtx[32]; - ArcFastVtx_33 = arcFastVtx[33]; - ArcFastVtx_34 = arcFastVtx[34]; - ArcFastVtx_35 = arcFastVtx[35]; - ArcFastVtx_36 = arcFastVtx[36]; - ArcFastVtx_37 = arcFastVtx[37]; - ArcFastVtx_38 = arcFastVtx[38]; - ArcFastVtx_39 = arcFastVtx[39]; - ArcFastVtx_40 = arcFastVtx[40]; - ArcFastVtx_41 = arcFastVtx[41]; - ArcFastVtx_42 = arcFastVtx[42]; - ArcFastVtx_43 = arcFastVtx[43]; - ArcFastVtx_44 = arcFastVtx[44]; - ArcFastVtx_45 = arcFastVtx[45]; - ArcFastVtx_46 = arcFastVtx[46]; - ArcFastVtx_47 = arcFastVtx[47]; - } - ArcFastRadiusCutoff = arcFastRadiusCutoff; - if (circleSegmentCounts != default(byte*)) - { - CircleSegmentCounts_0 = circleSegmentCounts[0]; - CircleSegmentCounts_1 = circleSegmentCounts[1]; - CircleSegmentCounts_2 = circleSegmentCounts[2]; - CircleSegmentCounts_3 = circleSegmentCounts[3]; - CircleSegmentCounts_4 = circleSegmentCounts[4]; - CircleSegmentCounts_5 = circleSegmentCounts[5]; - CircleSegmentCounts_6 = circleSegmentCounts[6]; - CircleSegmentCounts_7 = circleSegmentCounts[7]; - CircleSegmentCounts_8 = circleSegmentCounts[8]; - CircleSegmentCounts_9 = circleSegmentCounts[9]; - CircleSegmentCounts_10 = circleSegmentCounts[10]; - CircleSegmentCounts_11 = circleSegmentCounts[11]; - CircleSegmentCounts_12 = circleSegmentCounts[12]; - CircleSegmentCounts_13 = circleSegmentCounts[13]; - CircleSegmentCounts_14 = circleSegmentCounts[14]; - CircleSegmentCounts_15 = circleSegmentCounts[15]; - CircleSegmentCounts_16 = circleSegmentCounts[16]; - CircleSegmentCounts_17 = circleSegmentCounts[17]; - CircleSegmentCounts_18 = circleSegmentCounts[18]; - CircleSegmentCounts_19 = circleSegmentCounts[19]; - CircleSegmentCounts_20 = circleSegmentCounts[20]; - CircleSegmentCounts_21 = circleSegmentCounts[21]; - CircleSegmentCounts_22 = circleSegmentCounts[22]; - CircleSegmentCounts_23 = circleSegmentCounts[23]; - CircleSegmentCounts_24 = circleSegmentCounts[24]; - CircleSegmentCounts_25 = circleSegmentCounts[25]; - CircleSegmentCounts_26 = circleSegmentCounts[26]; - CircleSegmentCounts_27 = circleSegmentCounts[27]; - CircleSegmentCounts_28 = circleSegmentCounts[28]; - CircleSegmentCounts_29 = circleSegmentCounts[29]; - CircleSegmentCounts_30 = circleSegmentCounts[30]; - CircleSegmentCounts_31 = circleSegmentCounts[31]; - CircleSegmentCounts_32 = circleSegmentCounts[32]; - CircleSegmentCounts_33 = circleSegmentCounts[33]; - CircleSegmentCounts_34 = circleSegmentCounts[34]; - CircleSegmentCounts_35 = circleSegmentCounts[35]; - CircleSegmentCounts_36 = circleSegmentCounts[36]; - CircleSegmentCounts_37 = circleSegmentCounts[37]; - CircleSegmentCounts_38 = circleSegmentCounts[38]; - CircleSegmentCounts_39 = circleSegmentCounts[39]; - CircleSegmentCounts_40 = circleSegmentCounts[40]; - CircleSegmentCounts_41 = circleSegmentCounts[41]; - CircleSegmentCounts_42 = circleSegmentCounts[42]; - CircleSegmentCounts_43 = circleSegmentCounts[43]; - CircleSegmentCounts_44 = circleSegmentCounts[44]; - CircleSegmentCounts_45 = circleSegmentCounts[45]; - CircleSegmentCounts_46 = circleSegmentCounts[46]; - CircleSegmentCounts_47 = circleSegmentCounts[47]; - CircleSegmentCounts_48 = circleSegmentCounts[48]; - CircleSegmentCounts_49 = circleSegmentCounts[49]; - CircleSegmentCounts_50 = circleSegmentCounts[50]; - CircleSegmentCounts_51 = circleSegmentCounts[51]; - CircleSegmentCounts_52 = circleSegmentCounts[52]; - CircleSegmentCounts_53 = circleSegmentCounts[53]; - CircleSegmentCounts_54 = circleSegmentCounts[54]; - CircleSegmentCounts_55 = circleSegmentCounts[55]; - CircleSegmentCounts_56 = circleSegmentCounts[56]; - CircleSegmentCounts_57 = circleSegmentCounts[57]; - CircleSegmentCounts_58 = circleSegmentCounts[58]; - CircleSegmentCounts_59 = circleSegmentCounts[59]; - CircleSegmentCounts_60 = circleSegmentCounts[60]; - CircleSegmentCounts_61 = circleSegmentCounts[61]; - CircleSegmentCounts_62 = circleSegmentCounts[62]; - CircleSegmentCounts_63 = circleSegmentCounts[63]; - } - TexUvLines = texUvLines; - } - public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Span<Vector2> arcFastVtx = default, float arcFastRadiusCutoff = default, Span<byte> circleSegmentCounts = default, Vector4* texUvLines = default) - { - TexIdCommon = texIdCommon; - TexUvWhitePixel = texUvWhitePixel; - Font = font; - FontSize = fontSize; - CurveTessellationTol = curveTessellationTol; - CircleSegmentMaxError = circleSegmentMaxError; - ClipRectFullscreen = clipRectFullscreen; - InitialFlags = initialFlags; - if (arcFastVtx != default(Span<Vector2>)) - { - ArcFastVtx_0 = arcFastVtx[0]; - ArcFastVtx_1 = arcFastVtx[1]; - ArcFastVtx_2 = arcFastVtx[2]; - ArcFastVtx_3 = arcFastVtx[3]; - ArcFastVtx_4 = arcFastVtx[4]; - ArcFastVtx_5 = arcFastVtx[5]; - ArcFastVtx_6 = arcFastVtx[6]; - ArcFastVtx_7 = arcFastVtx[7]; - ArcFastVtx_8 = arcFastVtx[8]; - ArcFastVtx_9 = arcFastVtx[9]; - ArcFastVtx_10 = arcFastVtx[10]; - ArcFastVtx_11 = arcFastVtx[11]; - ArcFastVtx_12 = arcFastVtx[12]; - ArcFastVtx_13 = arcFastVtx[13]; - ArcFastVtx_14 = arcFastVtx[14]; - ArcFastVtx_15 = arcFastVtx[15]; - ArcFastVtx_16 = arcFastVtx[16]; - ArcFastVtx_17 = arcFastVtx[17]; - ArcFastVtx_18 = arcFastVtx[18]; - ArcFastVtx_19 = arcFastVtx[19]; - ArcFastVtx_20 = arcFastVtx[20]; - ArcFastVtx_21 = arcFastVtx[21]; - ArcFastVtx_22 = arcFastVtx[22]; - ArcFastVtx_23 = arcFastVtx[23]; - ArcFastVtx_24 = arcFastVtx[24]; - ArcFastVtx_25 = arcFastVtx[25]; - ArcFastVtx_26 = arcFastVtx[26]; - ArcFastVtx_27 = arcFastVtx[27]; - ArcFastVtx_28 = arcFastVtx[28]; - ArcFastVtx_29 = arcFastVtx[29]; - ArcFastVtx_30 = arcFastVtx[30]; - ArcFastVtx_31 = arcFastVtx[31]; - ArcFastVtx_32 = arcFastVtx[32]; - ArcFastVtx_33 = arcFastVtx[33]; - ArcFastVtx_34 = arcFastVtx[34]; - ArcFastVtx_35 = arcFastVtx[35]; - ArcFastVtx_36 = arcFastVtx[36]; - ArcFastVtx_37 = arcFastVtx[37]; - ArcFastVtx_38 = arcFastVtx[38]; - ArcFastVtx_39 = arcFastVtx[39]; - ArcFastVtx_40 = arcFastVtx[40]; - ArcFastVtx_41 = arcFastVtx[41]; - ArcFastVtx_42 = arcFastVtx[42]; - ArcFastVtx_43 = arcFastVtx[43]; - ArcFastVtx_44 = arcFastVtx[44]; - ArcFastVtx_45 = arcFastVtx[45]; - ArcFastVtx_46 = arcFastVtx[46]; - ArcFastVtx_47 = arcFastVtx[47]; - } - ArcFastRadiusCutoff = arcFastRadiusCutoff; - if (circleSegmentCounts != default(Span<byte>)) - { - CircleSegmentCounts_0 = circleSegmentCounts[0]; - CircleSegmentCounts_1 = circleSegmentCounts[1]; - CircleSegmentCounts_2 = circleSegmentCounts[2]; - CircleSegmentCounts_3 = circleSegmentCounts[3]; - CircleSegmentCounts_4 = circleSegmentCounts[4]; - CircleSegmentCounts_5 = circleSegmentCounts[5]; - CircleSegmentCounts_6 = circleSegmentCounts[6]; - CircleSegmentCounts_7 = circleSegmentCounts[7]; - CircleSegmentCounts_8 = circleSegmentCounts[8]; - CircleSegmentCounts_9 = circleSegmentCounts[9]; - CircleSegmentCounts_10 = circleSegmentCounts[10]; - CircleSegmentCounts_11 = circleSegmentCounts[11]; - CircleSegmentCounts_12 = circleSegmentCounts[12]; - CircleSegmentCounts_13 = circleSegmentCounts[13]; - CircleSegmentCounts_14 = circleSegmentCounts[14]; - CircleSegmentCounts_15 = circleSegmentCounts[15]; - CircleSegmentCounts_16 = circleSegmentCounts[16]; - CircleSegmentCounts_17 = circleSegmentCounts[17]; - CircleSegmentCounts_18 = circleSegmentCounts[18]; - CircleSegmentCounts_19 = circleSegmentCounts[19]; - CircleSegmentCounts_20 = circleSegmentCounts[20]; - CircleSegmentCounts_21 = circleSegmentCounts[21]; - CircleSegmentCounts_22 = circleSegmentCounts[22]; - CircleSegmentCounts_23 = circleSegmentCounts[23]; - CircleSegmentCounts_24 = circleSegmentCounts[24]; - CircleSegmentCounts_25 = circleSegmentCounts[25]; - CircleSegmentCounts_26 = circleSegmentCounts[26]; - CircleSegmentCounts_27 = circleSegmentCounts[27]; - CircleSegmentCounts_28 = circleSegmentCounts[28]; - CircleSegmentCounts_29 = circleSegmentCounts[29]; - CircleSegmentCounts_30 = circleSegmentCounts[30]; - CircleSegmentCounts_31 = circleSegmentCounts[31]; - CircleSegmentCounts_32 = circleSegmentCounts[32]; - CircleSegmentCounts_33 = circleSegmentCounts[33]; - CircleSegmentCounts_34 = circleSegmentCounts[34]; - CircleSegmentCounts_35 = circleSegmentCounts[35]; - CircleSegmentCounts_36 = circleSegmentCounts[36]; - CircleSegmentCounts_37 = circleSegmentCounts[37]; - CircleSegmentCounts_38 = circleSegmentCounts[38]; - CircleSegmentCounts_39 = circleSegmentCounts[39]; - CircleSegmentCounts_40 = circleSegmentCounts[40]; - CircleSegmentCounts_41 = circleSegmentCounts[41]; - CircleSegmentCounts_42 = circleSegmentCounts[42]; - CircleSegmentCounts_43 = circleSegmentCounts[43]; - CircleSegmentCounts_44 = circleSegmentCounts[44]; - CircleSegmentCounts_45 = circleSegmentCounts[45]; - CircleSegmentCounts_46 = circleSegmentCounts[46]; - CircleSegmentCounts_47 = circleSegmentCounts[47]; - CircleSegmentCounts_48 = circleSegmentCounts[48]; - CircleSegmentCounts_49 = circleSegmentCounts[49]; - CircleSegmentCounts_50 = circleSegmentCounts[50]; - CircleSegmentCounts_51 = circleSegmentCounts[51]; - CircleSegmentCounts_52 = circleSegmentCounts[52]; - CircleSegmentCounts_53 = circleSegmentCounts[53]; - CircleSegmentCounts_54 = circleSegmentCounts[54]; - CircleSegmentCounts_55 = circleSegmentCounts[55]; - CircleSegmentCounts_56 = circleSegmentCounts[56]; - CircleSegmentCounts_57 = circleSegmentCounts[57]; - CircleSegmentCounts_58 = circleSegmentCounts[58]; - CircleSegmentCounts_59 = circleSegmentCounts[59]; - CircleSegmentCounts_60 = circleSegmentCounts[60]; - CircleSegmentCounts_61 = circleSegmentCounts[61]; - CircleSegmentCounts_62 = circleSegmentCounts[62]; - CircleSegmentCounts_63 = circleSegmentCounts[63]; - } - TexUvLines = texUvLines; - } - public unsafe Span<Vector2> ArcFastVtx - { - get - { - fixed (Vector2* p = &this.ArcFastVtx_0) - { - return new Span<Vector2>(p, 48); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawListSharedDataPtr : IEquatable<ImDrawListSharedDataPtr> - { - public ImDrawListSharedDataPtr(ImDrawListSharedData* handle) { Handle = handle; } - public ImDrawListSharedData* Handle; - public bool IsNull => Handle == null; - public static ImDrawListSharedDataPtr Null => new ImDrawListSharedDataPtr(null); - public ImDrawListSharedData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawListSharedDataPtr(ImDrawListSharedData* handle) => new ImDrawListSharedDataPtr(handle); - public static implicit operator ImDrawListSharedData*(ImDrawListSharedDataPtr handle) => handle.Handle; - public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle == right; - public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle != right; - public bool Equals(ImDrawListSharedDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawListSharedDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawListSharedDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImTextureID TexIdCommon => ref Unsafe.AsRef<ImTextureID>(&Handle->TexIdCommon); - public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef<Vector2>(&Handle->TexUvWhitePixel); - public ref ImFontPtr Font => ref Unsafe.AsRef<ImFontPtr>(&Handle->Font); - public ref float FontSize => ref Unsafe.AsRef<float>(&Handle->FontSize); - public ref float CurveTessellationTol => ref Unsafe.AsRef<float>(&Handle->CurveTessellationTol); - public ref float CircleSegmentMaxError => ref Unsafe.AsRef<float>(&Handle->CircleSegmentMaxError); - public ref Vector4 ClipRectFullscreen => ref Unsafe.AsRef<Vector4>(&Handle->ClipRectFullscreen); - public ref ImDrawListFlags InitialFlags => ref Unsafe.AsRef<ImDrawListFlags>(&Handle->InitialFlags); - public unsafe Span<Vector2> ArcFastVtx - { - get - { - return new Span<Vector2>(&Handle->ArcFastVtx_0, 48); - } - } - public ref float ArcFastRadiusCutoff => ref Unsafe.AsRef<float>(&Handle->ArcFastRadiusCutoff); - public unsafe Span<byte> CircleSegmentCounts - { - get - { - return new Span<byte>(&Handle->CircleSegmentCounts_0, 64); - } - } - public Vector4* TexUvLines { get => Handle->TexUvLines; set => Handle->TexUvLines = value; } - } -} -/* ImDrawListSplitter.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawListSplitter - { - public int Current; - public int Count; - public ImVector<ImDrawChannel> Channels; - public unsafe ImDrawListSplitter(int current = default, int count = default, ImVector<ImDrawChannel> channels = default) - { - Current = current; - Count = count; - Channels = channels; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawListSplitterPtr : IEquatable<ImDrawListSplitterPtr> - { - public ImDrawListSplitterPtr(ImDrawListSplitter* handle) { Handle = handle; } - public ImDrawListSplitter* Handle; - public bool IsNull => Handle == null; - public static ImDrawListSplitterPtr Null => new ImDrawListSplitterPtr(null); - public ImDrawListSplitter this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawListSplitterPtr(ImDrawListSplitter* handle) => new ImDrawListSplitterPtr(handle); - public static implicit operator ImDrawListSplitter*(ImDrawListSplitterPtr handle) => handle.Handle; - public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle == right; - public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle != right; - public bool Equals(ImDrawListSplitterPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawListSplitterPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawListSplitterPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref int Current => ref Unsafe.AsRef<int>(&Handle->Current); - public ref int Count => ref Unsafe.AsRef<int>(&Handle->Count); - public ref ImVector<ImDrawChannel> Channels => ref Unsafe.AsRef<ImVector<ImDrawChannel>>(&Handle->Channels); - } -} -/* ImDrawVert.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawVert - { - public Vector2 Pos; - public Vector2 Uv; - public uint Col; - public unsafe ImDrawVert(Vector2 pos = default, Vector2 uv = default, uint col = default) - { - Pos = pos; - Uv = uv; - Col = col; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImDrawVertPtr : IEquatable<ImDrawVertPtr> - { - public ImDrawVertPtr(ImDrawVert* handle) { Handle = handle; } - public ImDrawVert* Handle; - public bool IsNull => Handle == null; - public static ImDrawVertPtr Null => new ImDrawVertPtr(null); - public ImDrawVert this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImDrawVertPtr(ImDrawVert* handle) => new ImDrawVertPtr(handle); - public static implicit operator ImDrawVert*(ImDrawVertPtr handle) => handle.Handle; - public static bool operator ==(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImDrawVertPtr left, ImDrawVert* right) => left.Handle == right; - public static bool operator !=(ImDrawVertPtr left, ImDrawVert* right) => left.Handle != right; - public bool Equals(ImDrawVertPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImDrawVertPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImDrawVertPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - public ref Vector2 Uv => ref Unsafe.AsRef<Vector2>(&Handle->Uv); - public ref uint Col => ref Unsafe.AsRef<uint>(&Handle->Col); - } -} -/* ImFont.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFont - { - public ImVector<ImFontGlyphHotData> IndexedHotData; - public ImVector<float> FrequentKerningPairs; - public float FontSize; - public ImVector<ushort> IndexLookup; - public ImVector<ImFontGlyph> Glyphs; - public unsafe ImFontGlyph* FallbackGlyph; - public unsafe ImFontGlyphHotData* FallbackHotData; - public ImVector<ImFontKerningPair> KerningPairs; - public unsafe ImFontAtlas* ContainerAtlas; - public unsafe ImFontConfig* ConfigData; - public short ConfigDataCount; - public ushort FallbackChar; - public ushort EllipsisChar; - public ushort DotChar; - public byte DirtyLookupTables; - public float Scale; - public float Ascent; - public float Descent; - public int MetricsTotalSurface; - public byte Used4kPagesMap_0; - public byte Used4kPagesMap_1; - public unsafe ImFont(ImVector<ImFontGlyphHotData> indexedHotData = default, ImVector<float> frequentKerningPairs = default, float fontSize = default, ImVector<ushort> indexLookup = default, ImVector<ImFontGlyph> glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector<ImFontKerningPair> kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, byte* used4KPagesMap = default) - { - IndexedHotData = indexedHotData; - FrequentKerningPairs = frequentKerningPairs; - FontSize = fontSize; - IndexLookup = indexLookup; - Glyphs = glyphs; - FallbackGlyph = fallbackGlyph; - FallbackHotData = fallbackHotData; - KerningPairs = kerningPairs; - ContainerAtlas = containerAtlas; - ConfigData = configData; - ConfigDataCount = configDataCount; - FallbackChar = fallbackChar; - EllipsisChar = ellipsisChar; - DotChar = dotChar; - DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; - Scale = scale; - Ascent = ascent; - Descent = descent; - MetricsTotalSurface = metricsTotalSurface; - if (used4KPagesMap != default(byte*)) - { - Used4kPagesMap_0 = used4KPagesMap[0]; - Used4kPagesMap_1 = used4KPagesMap[1]; - } - } - public unsafe ImFont(ImVector<ImFontGlyphHotData> indexedHotData = default, ImVector<float> frequentKerningPairs = default, float fontSize = default, ImVector<ushort> indexLookup = default, ImVector<ImFontGlyph> glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector<ImFontKerningPair> kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, Span<byte> used4KPagesMap = default) - { - IndexedHotData = indexedHotData; - FrequentKerningPairs = frequentKerningPairs; - FontSize = fontSize; - IndexLookup = indexLookup; - Glyphs = glyphs; - FallbackGlyph = fallbackGlyph; - FallbackHotData = fallbackHotData; - KerningPairs = kerningPairs; - ContainerAtlas = containerAtlas; - ConfigData = configData; - ConfigDataCount = configDataCount; - FallbackChar = fallbackChar; - EllipsisChar = ellipsisChar; - DotChar = dotChar; - DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; - Scale = scale; - Ascent = ascent; - Descent = descent; - MetricsTotalSurface = metricsTotalSurface; - if (used4KPagesMap != default(Span<byte>)) - { - Used4kPagesMap_0 = used4KPagesMap[0]; - Used4kPagesMap_1 = used4KPagesMap[1]; - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontPtr : IEquatable<ImFontPtr> - { - public ImFontPtr(ImFont* handle) { Handle = handle; } - public ImFont* Handle; - public bool IsNull => Handle == null; - public static ImFontPtr Null => new ImFontPtr(null); - public ImFont this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontPtr(ImFont* handle) => new ImFontPtr(handle); - public static implicit operator ImFont*(ImFontPtr handle) => handle.Handle; - public static bool operator ==(ImFontPtr left, ImFontPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontPtr left, ImFontPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontPtr left, ImFont* right) => left.Handle == right; - public static bool operator !=(ImFontPtr left, ImFont* right) => left.Handle != right; - public bool Equals(ImFontPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<ImFontGlyphHotData> IndexedHotData => ref Unsafe.AsRef<ImVector<ImFontGlyphHotData>>(&Handle->IndexedHotData); - public ref ImVector<float> FrequentKerningPairs => ref Unsafe.AsRef<ImVector<float>>(&Handle->FrequentKerningPairs); - public ref float FontSize => ref Unsafe.AsRef<float>(&Handle->FontSize); - public ref ImVector<ushort> IndexLookup => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->IndexLookup); - public ref ImVector<ImFontGlyph> Glyphs => ref Unsafe.AsRef<ImVector<ImFontGlyph>>(&Handle->Glyphs); - public ref ImFontGlyphPtr FallbackGlyph => ref Unsafe.AsRef<ImFontGlyphPtr>(&Handle->FallbackGlyph); - public ref ImFontGlyphHotDataPtr FallbackHotData => ref Unsafe.AsRef<ImFontGlyphHotDataPtr>(&Handle->FallbackHotData); - public ref ImVector<ImFontKerningPair> KerningPairs => ref Unsafe.AsRef<ImVector<ImFontKerningPair>>(&Handle->KerningPairs); - public ref ImFontAtlasPtr ContainerAtlas => ref Unsafe.AsRef<ImFontAtlasPtr>(&Handle->ContainerAtlas); - public ref ImFontConfigPtr ConfigData => ref Unsafe.AsRef<ImFontConfigPtr>(&Handle->ConfigData); - public ref short ConfigDataCount => ref Unsafe.AsRef<short>(&Handle->ConfigDataCount); - public ref ushort FallbackChar => ref Unsafe.AsRef<ushort>(&Handle->FallbackChar); - public ref ushort EllipsisChar => ref Unsafe.AsRef<ushort>(&Handle->EllipsisChar); - public ref ushort DotChar => ref Unsafe.AsRef<ushort>(&Handle->DotChar); - public ref bool DirtyLookupTables => ref Unsafe.AsRef<bool>(&Handle->DirtyLookupTables); - public ref float Scale => ref Unsafe.AsRef<float>(&Handle->Scale); - public ref float Ascent => ref Unsafe.AsRef<float>(&Handle->Ascent); - public ref float Descent => ref Unsafe.AsRef<float>(&Handle->Descent); - public ref int MetricsTotalSurface => ref Unsafe.AsRef<int>(&Handle->MetricsTotalSurface); - public unsafe Span<byte> Used4kPagesMap - { - get - { - return new Span<byte>(&Handle->Used4kPagesMap_0, 2); - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontPtrPtr : IEquatable<ImFontPtrPtr> - { - public ImFontPtrPtr(ImFont** handle) { Handle = handle; } - public ImFont** Handle; - public bool IsNull => Handle == null; - public static ImFontPtrPtr Null => new ImFontPtrPtr(null); - public ImFont* this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontPtrPtr(ImFont** handle) => new ImFontPtrPtr(handle); - public static implicit operator ImFont**(ImFontPtrPtr handle) => handle.Handle; - public static bool operator ==(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontPtrPtr left, ImFont** right) => left.Handle == right; - public static bool operator !=(ImFontPtrPtr left, ImFont** right) => left.Handle != right; - public bool Equals(ImFontPtrPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontPtrPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* ImFontAtlas.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontAtlas - { - public ImFontAtlasFlags Flags; - public ImVector<ImFontAtlasTexture> Textures; - public int TexDesiredWidth; - public int TexDesiredHeight; - public int TexGlyphPadding; - public byte Locked; - public byte TexReady; - public byte TexPixelsUseColors; - public int TexWidth; - public int TexHeight; - public Vector2 TexUvScale; - public Vector2 TexUvWhitePixel; - public ImVector<ImFontPtr> Fonts; - public ImVector<ImFontAtlasCustomRect> CustomRects; - public ImVector<ImFontConfig> ConfigData; - public Vector4 TexUvLines_0; - public Vector4 TexUvLines_1; - public Vector4 TexUvLines_2; - public Vector4 TexUvLines_3; - public Vector4 TexUvLines_4; - public Vector4 TexUvLines_5; - public Vector4 TexUvLines_6; - public Vector4 TexUvLines_7; - public Vector4 TexUvLines_8; - public Vector4 TexUvLines_9; - public Vector4 TexUvLines_10; - public Vector4 TexUvLines_11; - public Vector4 TexUvLines_12; - public Vector4 TexUvLines_13; - public Vector4 TexUvLines_14; - public Vector4 TexUvLines_15; - public Vector4 TexUvLines_16; - public Vector4 TexUvLines_17; - public Vector4 TexUvLines_18; - public Vector4 TexUvLines_19; - public Vector4 TexUvLines_20; - public Vector4 TexUvLines_21; - public Vector4 TexUvLines_22; - public Vector4 TexUvLines_23; - public Vector4 TexUvLines_24; - public Vector4 TexUvLines_25; - public Vector4 TexUvLines_26; - public Vector4 TexUvLines_27; - public Vector4 TexUvLines_28; - public Vector4 TexUvLines_29; - public Vector4 TexUvLines_30; - public Vector4 TexUvLines_31; - public Vector4 TexUvLines_32; - public Vector4 TexUvLines_33; - public Vector4 TexUvLines_34; - public Vector4 TexUvLines_35; - public Vector4 TexUvLines_36; - public Vector4 TexUvLines_37; - public Vector4 TexUvLines_38; - public Vector4 TexUvLines_39; - public Vector4 TexUvLines_40; - public Vector4 TexUvLines_41; - public Vector4 TexUvLines_42; - public Vector4 TexUvLines_43; - public Vector4 TexUvLines_44; - public Vector4 TexUvLines_45; - public Vector4 TexUvLines_46; - public Vector4 TexUvLines_47; - public Vector4 TexUvLines_48; - public Vector4 TexUvLines_49; - public Vector4 TexUvLines_50; - public Vector4 TexUvLines_51; - public Vector4 TexUvLines_52; - public Vector4 TexUvLines_53; - public Vector4 TexUvLines_54; - public Vector4 TexUvLines_55; - public Vector4 TexUvLines_56; - public Vector4 TexUvLines_57; - public Vector4 TexUvLines_58; - public Vector4 TexUvLines_59; - public Vector4 TexUvLines_60; - public Vector4 TexUvLines_61; - public Vector4 TexUvLines_62; - public Vector4 TexUvLines_63; - public unsafe ImFontBuilderIO* FontBuilderIO; - public uint FontBuilderFlags; - public int TextureIndexCommon; - public int PackIdCommon; - public ImFontAtlasCustomRect RectMouseCursors; - public ImFontAtlasCustomRect RectLines; - public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector<ImFontAtlasTexture> textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector<ImFontPtr> fonts = default, ImVector<ImFontAtlasCustomRect> customRects = default, ImVector<ImFontConfig> configData = default, Vector4* texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) - { - Flags = flags; - Textures = textures; - TexDesiredWidth = texDesiredWidth; - TexDesiredHeight = texDesiredHeight; - TexGlyphPadding = texGlyphPadding; - Locked = locked ? (byte)1 : (byte)0; - TexReady = texReady ? (byte)1 : (byte)0; - TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; - TexWidth = texWidth; - TexHeight = texHeight; - TexUvScale = texUvScale; - TexUvWhitePixel = texUvWhitePixel; - Fonts = fonts; - CustomRects = customRects; - ConfigData = configData; - if (texUvLines != default(Vector4*)) - { - TexUvLines_0 = texUvLines[0]; - TexUvLines_1 = texUvLines[1]; - TexUvLines_2 = texUvLines[2]; - TexUvLines_3 = texUvLines[3]; - TexUvLines_4 = texUvLines[4]; - TexUvLines_5 = texUvLines[5]; - TexUvLines_6 = texUvLines[6]; - TexUvLines_7 = texUvLines[7]; - TexUvLines_8 = texUvLines[8]; - TexUvLines_9 = texUvLines[9]; - TexUvLines_10 = texUvLines[10]; - TexUvLines_11 = texUvLines[11]; - TexUvLines_12 = texUvLines[12]; - TexUvLines_13 = texUvLines[13]; - TexUvLines_14 = texUvLines[14]; - TexUvLines_15 = texUvLines[15]; - TexUvLines_16 = texUvLines[16]; - TexUvLines_17 = texUvLines[17]; - TexUvLines_18 = texUvLines[18]; - TexUvLines_19 = texUvLines[19]; - TexUvLines_20 = texUvLines[20]; - TexUvLines_21 = texUvLines[21]; - TexUvLines_22 = texUvLines[22]; - TexUvLines_23 = texUvLines[23]; - TexUvLines_24 = texUvLines[24]; - TexUvLines_25 = texUvLines[25]; - TexUvLines_26 = texUvLines[26]; - TexUvLines_27 = texUvLines[27]; - TexUvLines_28 = texUvLines[28]; - TexUvLines_29 = texUvLines[29]; - TexUvLines_30 = texUvLines[30]; - TexUvLines_31 = texUvLines[31]; - TexUvLines_32 = texUvLines[32]; - TexUvLines_33 = texUvLines[33]; - TexUvLines_34 = texUvLines[34]; - TexUvLines_35 = texUvLines[35]; - TexUvLines_36 = texUvLines[36]; - TexUvLines_37 = texUvLines[37]; - TexUvLines_38 = texUvLines[38]; - TexUvLines_39 = texUvLines[39]; - TexUvLines_40 = texUvLines[40]; - TexUvLines_41 = texUvLines[41]; - TexUvLines_42 = texUvLines[42]; - TexUvLines_43 = texUvLines[43]; - TexUvLines_44 = texUvLines[44]; - TexUvLines_45 = texUvLines[45]; - TexUvLines_46 = texUvLines[46]; - TexUvLines_47 = texUvLines[47]; - TexUvLines_48 = texUvLines[48]; - TexUvLines_49 = texUvLines[49]; - TexUvLines_50 = texUvLines[50]; - TexUvLines_51 = texUvLines[51]; - TexUvLines_52 = texUvLines[52]; - TexUvLines_53 = texUvLines[53]; - TexUvLines_54 = texUvLines[54]; - TexUvLines_55 = texUvLines[55]; - TexUvLines_56 = texUvLines[56]; - TexUvLines_57 = texUvLines[57]; - TexUvLines_58 = texUvLines[58]; - TexUvLines_59 = texUvLines[59]; - TexUvLines_60 = texUvLines[60]; - TexUvLines_61 = texUvLines[61]; - TexUvLines_62 = texUvLines[62]; - TexUvLines_63 = texUvLines[63]; - } - FontBuilderIO = fontBuilderIo; - FontBuilderFlags = fontBuilderFlags; - TextureIndexCommon = textureIndexCommon; - PackIdCommon = packIdCommon; - RectMouseCursors = rectMouseCursors; - RectLines = rectLines; - } - public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector<ImFontAtlasTexture> textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector<ImFontPtr> fonts = default, ImVector<ImFontAtlasCustomRect> customRects = default, ImVector<ImFontConfig> configData = default, Span<Vector4> texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) - { - Flags = flags; - Textures = textures; - TexDesiredWidth = texDesiredWidth; - TexDesiredHeight = texDesiredHeight; - TexGlyphPadding = texGlyphPadding; - Locked = locked ? (byte)1 : (byte)0; - TexReady = texReady ? (byte)1 : (byte)0; - TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; - TexWidth = texWidth; - TexHeight = texHeight; - TexUvScale = texUvScale; - TexUvWhitePixel = texUvWhitePixel; - Fonts = fonts; - CustomRects = customRects; - ConfigData = configData; - if (texUvLines != default(Span<Vector4>)) - { - TexUvLines_0 = texUvLines[0]; - TexUvLines_1 = texUvLines[1]; - TexUvLines_2 = texUvLines[2]; - TexUvLines_3 = texUvLines[3]; - TexUvLines_4 = texUvLines[4]; - TexUvLines_5 = texUvLines[5]; - TexUvLines_6 = texUvLines[6]; - TexUvLines_7 = texUvLines[7]; - TexUvLines_8 = texUvLines[8]; - TexUvLines_9 = texUvLines[9]; - TexUvLines_10 = texUvLines[10]; - TexUvLines_11 = texUvLines[11]; - TexUvLines_12 = texUvLines[12]; - TexUvLines_13 = texUvLines[13]; - TexUvLines_14 = texUvLines[14]; - TexUvLines_15 = texUvLines[15]; - TexUvLines_16 = texUvLines[16]; - TexUvLines_17 = texUvLines[17]; - TexUvLines_18 = texUvLines[18]; - TexUvLines_19 = texUvLines[19]; - TexUvLines_20 = texUvLines[20]; - TexUvLines_21 = texUvLines[21]; - TexUvLines_22 = texUvLines[22]; - TexUvLines_23 = texUvLines[23]; - TexUvLines_24 = texUvLines[24]; - TexUvLines_25 = texUvLines[25]; - TexUvLines_26 = texUvLines[26]; - TexUvLines_27 = texUvLines[27]; - TexUvLines_28 = texUvLines[28]; - TexUvLines_29 = texUvLines[29]; - TexUvLines_30 = texUvLines[30]; - TexUvLines_31 = texUvLines[31]; - TexUvLines_32 = texUvLines[32]; - TexUvLines_33 = texUvLines[33]; - TexUvLines_34 = texUvLines[34]; - TexUvLines_35 = texUvLines[35]; - TexUvLines_36 = texUvLines[36]; - TexUvLines_37 = texUvLines[37]; - TexUvLines_38 = texUvLines[38]; - TexUvLines_39 = texUvLines[39]; - TexUvLines_40 = texUvLines[40]; - TexUvLines_41 = texUvLines[41]; - TexUvLines_42 = texUvLines[42]; - TexUvLines_43 = texUvLines[43]; - TexUvLines_44 = texUvLines[44]; - TexUvLines_45 = texUvLines[45]; - TexUvLines_46 = texUvLines[46]; - TexUvLines_47 = texUvLines[47]; - TexUvLines_48 = texUvLines[48]; - TexUvLines_49 = texUvLines[49]; - TexUvLines_50 = texUvLines[50]; - TexUvLines_51 = texUvLines[51]; - TexUvLines_52 = texUvLines[52]; - TexUvLines_53 = texUvLines[53]; - TexUvLines_54 = texUvLines[54]; - TexUvLines_55 = texUvLines[55]; - TexUvLines_56 = texUvLines[56]; - TexUvLines_57 = texUvLines[57]; - TexUvLines_58 = texUvLines[58]; - TexUvLines_59 = texUvLines[59]; - TexUvLines_60 = texUvLines[60]; - TexUvLines_61 = texUvLines[61]; - TexUvLines_62 = texUvLines[62]; - TexUvLines_63 = texUvLines[63]; - } - FontBuilderIO = fontBuilderIo; - FontBuilderFlags = fontBuilderFlags; - TextureIndexCommon = textureIndexCommon; - PackIdCommon = packIdCommon; - RectMouseCursors = rectMouseCursors; - RectLines = rectLines; - } - public unsafe Span<Vector4> TexUvLines - { - get - { - fixed (Vector4* p = &this.TexUvLines_0) - { - return new Span<Vector4>(p, 64); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontAtlasPtr : IEquatable<ImFontAtlasPtr> - { - public ImFontAtlasPtr(ImFontAtlas* handle) { Handle = handle; } - public ImFontAtlas* Handle; - public bool IsNull => Handle == null; - public static ImFontAtlasPtr Null => new ImFontAtlasPtr(null); - public ImFontAtlas this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontAtlasPtr(ImFontAtlas* handle) => new ImFontAtlasPtr(handle); - public static implicit operator ImFontAtlas*(ImFontAtlasPtr handle) => handle.Handle; - public static bool operator ==(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle == right; - public static bool operator !=(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle != right; - public bool Equals(ImFontAtlasPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontAtlasPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontAtlasPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImFontAtlasFlags Flags => ref Unsafe.AsRef<ImFontAtlasFlags>(&Handle->Flags); - public ref ImVector<ImFontAtlasTexture> Textures => ref Unsafe.AsRef<ImVector<ImFontAtlasTexture>>(&Handle->Textures); - public ref int TexDesiredWidth => ref Unsafe.AsRef<int>(&Handle->TexDesiredWidth); - public ref int TexDesiredHeight => ref Unsafe.AsRef<int>(&Handle->TexDesiredHeight); - public ref int TexGlyphPadding => ref Unsafe.AsRef<int>(&Handle->TexGlyphPadding); - public ref bool Locked => ref Unsafe.AsRef<bool>(&Handle->Locked); - public ref bool TexReady => ref Unsafe.AsRef<bool>(&Handle->TexReady); - public ref bool TexPixelsUseColors => ref Unsafe.AsRef<bool>(&Handle->TexPixelsUseColors); - public ref int TexWidth => ref Unsafe.AsRef<int>(&Handle->TexWidth); - public ref int TexHeight => ref Unsafe.AsRef<int>(&Handle->TexHeight); - public ref Vector2 TexUvScale => ref Unsafe.AsRef<Vector2>(&Handle->TexUvScale); - public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef<Vector2>(&Handle->TexUvWhitePixel); - public ref ImVector<ImFontPtr> Fonts => ref Unsafe.AsRef<ImVector<ImFontPtr>>(&Handle->Fonts); - public ref ImVector<ImFontAtlasCustomRect> CustomRects => ref Unsafe.AsRef<ImVector<ImFontAtlasCustomRect>>(&Handle->CustomRects); - public ref ImVector<ImFontConfig> ConfigData => ref Unsafe.AsRef<ImVector<ImFontConfig>>(&Handle->ConfigData); - public unsafe Span<Vector4> TexUvLines - { - get - { - return new Span<Vector4>(&Handle->TexUvLines_0, 64); - } - } - public ref ImFontBuilderIOPtr FontBuilderIO => ref Unsafe.AsRef<ImFontBuilderIOPtr>(&Handle->FontBuilderIO); - public ref uint FontBuilderFlags => ref Unsafe.AsRef<uint>(&Handle->FontBuilderFlags); - public ref int TextureIndexCommon => ref Unsafe.AsRef<int>(&Handle->TextureIndexCommon); - public ref int PackIdCommon => ref Unsafe.AsRef<int>(&Handle->PackIdCommon); - public ref ImFontAtlasCustomRect RectMouseCursors => ref Unsafe.AsRef<ImFontAtlasCustomRect>(&Handle->RectMouseCursors); - public ref ImFontAtlasCustomRect RectLines => ref Unsafe.AsRef<ImFontAtlasCustomRect>(&Handle->RectLines); - } -} -/* ImFontAtlasCustomRect.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontAtlasCustomRect - { - public ushort Width; - public ushort Height; - public ushort X; - public ushort Y; - public uint RawBits0; - public float GlyphAdvanceX; - public Vector2 GlyphOffset; - public unsafe ImFont* Font; - public unsafe ImFontAtlasCustomRect(ushort width = default, ushort height = default, ushort x = default, ushort y = default, uint reserved = default, uint textureIndex = default, uint glyphId = default, float glyphAdvanceX = default, Vector2 glyphOffset = default, ImFontPtr font = default) - { - Width = width; - Height = height; - X = x; - Y = y; - Reserved = reserved; - TextureIndex = textureIndex; - GlyphID = glyphId; - GlyphAdvanceX = glyphAdvanceX; - GlyphOffset = glyphOffset; - Font = font; - } - public uint Reserved { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } - public uint TextureIndex { get => Bitfield.Get(RawBits0, 2, 9); set => Bitfield.Set(ref RawBits0, value, 2, 9); } - public uint GlyphID { get => Bitfield.Get(RawBits0, 11, 21); set => Bitfield.Set(ref RawBits0, value, 11, 21); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontAtlasCustomRectPtr : IEquatable<ImFontAtlasCustomRectPtr> - { - public ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) { Handle = handle; } - public ImFontAtlasCustomRect* Handle; - public bool IsNull => Handle == null; - public static ImFontAtlasCustomRectPtr Null => new ImFontAtlasCustomRectPtr(null); - public ImFontAtlasCustomRect this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) => new ImFontAtlasCustomRectPtr(handle); - public static implicit operator ImFontAtlasCustomRect*(ImFontAtlasCustomRectPtr handle) => handle.Handle; - public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle == right; - public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle != right; - public bool Equals(ImFontAtlasCustomRectPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontAtlasCustomRectPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontAtlasCustomRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ushort Width => ref Unsafe.AsRef<ushort>(&Handle->Width); - public ref ushort Height => ref Unsafe.AsRef<ushort>(&Handle->Height); - public ref ushort X => ref Unsafe.AsRef<ushort>(&Handle->X); - public ref ushort Y => ref Unsafe.AsRef<ushort>(&Handle->Y); - public uint Reserved { get => Handle->Reserved; set => Handle->Reserved = value; } - public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } - public uint GlyphID { get => Handle->GlyphID; set => Handle->GlyphID = value; } - public ref float GlyphAdvanceX => ref Unsafe.AsRef<float>(&Handle->GlyphAdvanceX); - public ref Vector2 GlyphOffset => ref Unsafe.AsRef<Vector2>(&Handle->GlyphOffset); - public ref ImFontPtr Font => ref Unsafe.AsRef<ImFontPtr>(&Handle->Font); - } -} -/* ImFontAtlasTexture.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontAtlasTexture - { - public ImTextureID TexID; - public unsafe byte* TexPixelsAlpha8; - public unsafe uint* TexPixelsRGBA32; - public unsafe ImFontAtlasTexture(ImTextureID texId = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default) - { - TexID = texId; - TexPixelsAlpha8 = texPixelsAlpha8; - TexPixelsRGBA32 = texPixelsRgba32; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontAtlasTexturePtr : IEquatable<ImFontAtlasTexturePtr> - { - public ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) { Handle = handle; } - public ImFontAtlasTexture* Handle; - public bool IsNull => Handle == null; - public static ImFontAtlasTexturePtr Null => new ImFontAtlasTexturePtr(null); - public ImFontAtlasTexture this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) => new ImFontAtlasTexturePtr(handle); - public static implicit operator ImFontAtlasTexture*(ImFontAtlasTexturePtr handle) => handle.Handle; - public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle == right; - public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle != right; - public bool Equals(ImFontAtlasTexturePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontAtlasTexturePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontAtlasTexturePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImTextureID TexID => ref Unsafe.AsRef<ImTextureID>(&Handle->TexID); - public byte* TexPixelsAlpha8 { get => Handle->TexPixelsAlpha8; set => Handle->TexPixelsAlpha8 = value; } - public uint* TexPixelsRGBA32 { get => Handle->TexPixelsRGBA32; set => Handle->TexPixelsRGBA32 = value; } - } -} -/* ImFontBuilderIO.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontBuilderIO - { - public unsafe void* FontBuilderBuild; - public unsafe ImFontBuilderIO(delegate*<ImFontAtlas*, bool> fontbuilderBuild = default) - { - FontBuilderBuild = (void*)fontbuilderBuild; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontBuilderIOPtr : IEquatable<ImFontBuilderIOPtr> - { - public ImFontBuilderIOPtr(ImFontBuilderIO* handle) { Handle = handle; } - public ImFontBuilderIO* Handle; - public bool IsNull => Handle == null; - public static ImFontBuilderIOPtr Null => new ImFontBuilderIOPtr(null); - public ImFontBuilderIO this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontBuilderIOPtr(ImFontBuilderIO* handle) => new ImFontBuilderIOPtr(handle); - public static implicit operator ImFontBuilderIO*(ImFontBuilderIOPtr handle) => handle.Handle; - public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle == right; - public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle != right; - public bool Equals(ImFontBuilderIOPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontBuilderIOPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontBuilderIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public void* FontBuilderBuild { get => Handle->FontBuilderBuild; set => Handle->FontBuilderBuild = value; } - } -} -/* ImFontConfig.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontConfig - { - public unsafe void* FontData; - public int FontDataSize; - public byte FontDataOwnedByAtlas; - public int FontNo; - public float SizePixels; - public int OversampleH; - public int OversampleV; - public byte PixelSnapH; - public Vector2 GlyphExtraSpacing; - public Vector2 GlyphOffset; - public unsafe ushort* GlyphRanges; - public float GlyphMinAdvanceX; - public float GlyphMaxAdvanceX; - public byte MergeMode; - public uint FontBuilderFlags; - public float RasterizerMultiply; - public float RasterizerGamma; - public ushort EllipsisChar; - public byte Name_0; - public byte Name_1; - public byte Name_2; - public byte Name_3; - public byte Name_4; - public byte Name_5; - public byte Name_6; - public byte Name_7; - public byte Name_8; - public byte Name_9; - public byte Name_10; - public byte Name_11; - public byte Name_12; - public byte Name_13; - public byte Name_14; - public byte Name_15; - public byte Name_16; - public byte Name_17; - public byte Name_18; - public byte Name_19; - public byte Name_20; - public byte Name_21; - public byte Name_22; - public byte Name_23; - public byte Name_24; - public byte Name_25; - public byte Name_26; - public byte Name_27; - public byte Name_28; - public byte Name_29; - public byte Name_30; - public byte Name_31; - public byte Name_32; - public byte Name_33; - public byte Name_34; - public byte Name_35; - public byte Name_36; - public byte Name_37; - public byte Name_38; - public byte Name_39; - public unsafe ImFont* DstFont; - public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, byte* name = default, ImFontPtr dstFont = default) - { - FontData = fontData; - FontDataSize = fontDataSize; - FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; - FontNo = fontNo; - SizePixels = sizePixels; - OversampleH = oversampleH; - OversampleV = oversampleV; - PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; - GlyphExtraSpacing = glyphExtraSpacing; - GlyphOffset = glyphOffset; - GlyphRanges = glyphRanges; - GlyphMinAdvanceX = glyphMinAdvanceX; - GlyphMaxAdvanceX = glyphMaxAdvanceX; - MergeMode = mergeMode ? (byte)1 : (byte)0; - FontBuilderFlags = fontBuilderFlags; - RasterizerMultiply = rasterizerMultiply; - RasterizerGamma = rasterizerGamma; - EllipsisChar = ellipsisChar; - if (name != default(byte*)) - { - Name_0 = name[0]; - Name_1 = name[1]; - Name_2 = name[2]; - Name_3 = name[3]; - Name_4 = name[4]; - Name_5 = name[5]; - Name_6 = name[6]; - Name_7 = name[7]; - Name_8 = name[8]; - Name_9 = name[9]; - Name_10 = name[10]; - Name_11 = name[11]; - Name_12 = name[12]; - Name_13 = name[13]; - Name_14 = name[14]; - Name_15 = name[15]; - Name_16 = name[16]; - Name_17 = name[17]; - Name_18 = name[18]; - Name_19 = name[19]; - Name_20 = name[20]; - Name_21 = name[21]; - Name_22 = name[22]; - Name_23 = name[23]; - Name_24 = name[24]; - Name_25 = name[25]; - Name_26 = name[26]; - Name_27 = name[27]; - Name_28 = name[28]; - Name_29 = name[29]; - Name_30 = name[30]; - Name_31 = name[31]; - Name_32 = name[32]; - Name_33 = name[33]; - Name_34 = name[34]; - Name_35 = name[35]; - Name_36 = name[36]; - Name_37 = name[37]; - Name_38 = name[38]; - Name_39 = name[39]; - } - DstFont = dstFont; - } - public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, Span<byte> name = default, ImFontPtr dstFont = default) - { - FontData = fontData; - FontDataSize = fontDataSize; - FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; - FontNo = fontNo; - SizePixels = sizePixels; - OversampleH = oversampleH; - OversampleV = oversampleV; - PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; - GlyphExtraSpacing = glyphExtraSpacing; - GlyphOffset = glyphOffset; - GlyphRanges = glyphRanges; - GlyphMinAdvanceX = glyphMinAdvanceX; - GlyphMaxAdvanceX = glyphMaxAdvanceX; - MergeMode = mergeMode ? (byte)1 : (byte)0; - FontBuilderFlags = fontBuilderFlags; - RasterizerMultiply = rasterizerMultiply; - RasterizerGamma = rasterizerGamma; - EllipsisChar = ellipsisChar; - if (name != default(Span<byte>)) - { - Name_0 = name[0]; - Name_1 = name[1]; - Name_2 = name[2]; - Name_3 = name[3]; - Name_4 = name[4]; - Name_5 = name[5]; - Name_6 = name[6]; - Name_7 = name[7]; - Name_8 = name[8]; - Name_9 = name[9]; - Name_10 = name[10]; - Name_11 = name[11]; - Name_12 = name[12]; - Name_13 = name[13]; - Name_14 = name[14]; - Name_15 = name[15]; - Name_16 = name[16]; - Name_17 = name[17]; - Name_18 = name[18]; - Name_19 = name[19]; - Name_20 = name[20]; - Name_21 = name[21]; - Name_22 = name[22]; - Name_23 = name[23]; - Name_24 = name[24]; - Name_25 = name[25]; - Name_26 = name[26]; - Name_27 = name[27]; - Name_28 = name[28]; - Name_29 = name[29]; - Name_30 = name[30]; - Name_31 = name[31]; - Name_32 = name[32]; - Name_33 = name[33]; - Name_34 = name[34]; - Name_35 = name[35]; - Name_36 = name[36]; - Name_37 = name[37]; - Name_38 = name[38]; - Name_39 = name[39]; - } - DstFont = dstFont; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontConfigPtr : IEquatable<ImFontConfigPtr> - { - public ImFontConfigPtr(ImFontConfig* handle) { Handle = handle; } - public ImFontConfig* Handle; - public bool IsNull => Handle == null; - public static ImFontConfigPtr Null => new ImFontConfigPtr(null); - public ImFontConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontConfigPtr(ImFontConfig* handle) => new ImFontConfigPtr(handle); - public static implicit operator ImFontConfig*(ImFontConfigPtr handle) => handle.Handle; - public static bool operator ==(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontConfigPtr left, ImFontConfig* right) => left.Handle == right; - public static bool operator !=(ImFontConfigPtr left, ImFontConfig* right) => left.Handle != right; - public bool Equals(ImFontConfigPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontConfigPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public void* FontData { get => Handle->FontData; set => Handle->FontData = value; } - public ref int FontDataSize => ref Unsafe.AsRef<int>(&Handle->FontDataSize); - public ref bool FontDataOwnedByAtlas => ref Unsafe.AsRef<bool>(&Handle->FontDataOwnedByAtlas); - public ref int FontNo => ref Unsafe.AsRef<int>(&Handle->FontNo); - public ref float SizePixels => ref Unsafe.AsRef<float>(&Handle->SizePixels); - public ref int OversampleH => ref Unsafe.AsRef<int>(&Handle->OversampleH); - public ref int OversampleV => ref Unsafe.AsRef<int>(&Handle->OversampleV); - public ref bool PixelSnapH => ref Unsafe.AsRef<bool>(&Handle->PixelSnapH); - public ref Vector2 GlyphExtraSpacing => ref Unsafe.AsRef<Vector2>(&Handle->GlyphExtraSpacing); - public ref Vector2 GlyphOffset => ref Unsafe.AsRef<Vector2>(&Handle->GlyphOffset); - public ushort* GlyphRanges { get => Handle->GlyphRanges; set => Handle->GlyphRanges = value; } - public ref float GlyphMinAdvanceX => ref Unsafe.AsRef<float>(&Handle->GlyphMinAdvanceX); - public ref float GlyphMaxAdvanceX => ref Unsafe.AsRef<float>(&Handle->GlyphMaxAdvanceX); - public ref bool MergeMode => ref Unsafe.AsRef<bool>(&Handle->MergeMode); - public ref uint FontBuilderFlags => ref Unsafe.AsRef<uint>(&Handle->FontBuilderFlags); - public ref float RasterizerMultiply => ref Unsafe.AsRef<float>(&Handle->RasterizerMultiply); - public ref float RasterizerGamma => ref Unsafe.AsRef<float>(&Handle->RasterizerGamma); - public ref ushort EllipsisChar => ref Unsafe.AsRef<ushort>(&Handle->EllipsisChar); - public unsafe Span<byte> Name - { - get - { - return new Span<byte>(&Handle->Name_0, 40); - } - } - public ref ImFontPtr DstFont => ref Unsafe.AsRef<ImFontPtr>(&Handle->DstFont); - } -} -/* ImFontGlyph.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontGlyph - { - public uint RawBits0; - public float AdvanceX; - public float X0; - public float Y0; - public float X1; - public float Y1; - public float U0; - public float V0; - public float U1; - public float V1; - public unsafe ImFontGlyph(uint colored = default, uint visible = default, uint textureIndex = default, uint codepoint = default, float advanceX = default, float x0 = default, float y0 = default, float x1 = default, float y1 = default, float u0 = default, float v0 = default, float u1 = default, float v1 = default) - { - Colored = colored; - Visible = visible; - TextureIndex = textureIndex; - Codepoint = codepoint; - AdvanceX = advanceX; - X0 = x0; - Y0 = y0; - X1 = x1; - Y1 = y1; - U0 = u0; - V0 = v0; - U1 = u1; - V1 = v1; - } - public uint Colored { get => Bitfield.Get(RawBits0, 0, 1); set => Bitfield.Set(ref RawBits0, value, 0, 1); } - public uint Visible { get => Bitfield.Get(RawBits0, 1, 1); set => Bitfield.Set(ref RawBits0, value, 1, 1); } - public uint TextureIndex { get => Bitfield.Get(RawBits0, 2, 9); set => Bitfield.Set(ref RawBits0, value, 2, 9); } - public uint Codepoint { get => Bitfield.Get(RawBits0, 11, 21); set => Bitfield.Set(ref RawBits0, value, 11, 21); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontGlyphPtr : IEquatable<ImFontGlyphPtr> - { - public ImFontGlyphPtr(ImFontGlyph* handle) { Handle = handle; } - public ImFontGlyph* Handle; - public bool IsNull => Handle == null; - public static ImFontGlyphPtr Null => new ImFontGlyphPtr(null); - public ImFontGlyph this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontGlyphPtr(ImFontGlyph* handle) => new ImFontGlyphPtr(handle); - public static implicit operator ImFontGlyph*(ImFontGlyphPtr handle) => handle.Handle; - public static bool operator ==(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle == right; - public static bool operator !=(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle != right; - public bool Equals(ImFontGlyphPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontGlyphPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontGlyphPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public uint Colored { get => Handle->Colored; set => Handle->Colored = value; } - public uint Visible { get => Handle->Visible; set => Handle->Visible = value; } - public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } - public uint Codepoint { get => Handle->Codepoint; set => Handle->Codepoint = value; } - public ref float AdvanceX => ref Unsafe.AsRef<float>(&Handle->AdvanceX); - public ref float X0 => ref Unsafe.AsRef<float>(&Handle->X0); - public ref float Y0 => ref Unsafe.AsRef<float>(&Handle->Y0); - public ref float X1 => ref Unsafe.AsRef<float>(&Handle->X1); - public ref float Y1 => ref Unsafe.AsRef<float>(&Handle->Y1); - public ref float U0 => ref Unsafe.AsRef<float>(&Handle->U0); - public ref float V0 => ref Unsafe.AsRef<float>(&Handle->V0); - public ref float U1 => ref Unsafe.AsRef<float>(&Handle->U1); - public ref float V1 => ref Unsafe.AsRef<float>(&Handle->V1); - } -} -/* ImFontGlyphHotData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontGlyphHotData - { - public float AdvanceX; - public float OccupiedWidth; - public uint RawBits0; - public unsafe ImFontGlyphHotData(float advanceX = default, float occupiedWidth = default, uint kerningPairUseBisect = default, uint kerningPairOffset = default, uint kerningPairCount = default) - { - AdvanceX = advanceX; - OccupiedWidth = occupiedWidth; - KerningPairUseBisect = kerningPairUseBisect; - KerningPairOffset = kerningPairOffset; - KerningPairCount = kerningPairCount; - } - public uint KerningPairUseBisect { get => Bitfield.Get(RawBits0, 0, 1); set => Bitfield.Set(ref RawBits0, value, 0, 1); } - public uint KerningPairOffset { get => Bitfield.Get(RawBits0, 1, 19); set => Bitfield.Set(ref RawBits0, value, 1, 19); } - public uint KerningPairCount { get => Bitfield.Get(RawBits0, 20, 12); set => Bitfield.Set(ref RawBits0, value, 20, 12); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontGlyphHotDataPtr : IEquatable<ImFontGlyphHotDataPtr> - { - public ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) { Handle = handle; } - public ImFontGlyphHotData* Handle; - public bool IsNull => Handle == null; - public static ImFontGlyphHotDataPtr Null => new ImFontGlyphHotDataPtr(null); - public ImFontGlyphHotData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) => new ImFontGlyphHotDataPtr(handle); - public static implicit operator ImFontGlyphHotData*(ImFontGlyphHotDataPtr handle) => handle.Handle; - public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle == right; - public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle != right; - public bool Equals(ImFontGlyphHotDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontGlyphHotDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontGlyphHotDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref float AdvanceX => ref Unsafe.AsRef<float>(&Handle->AdvanceX); - public ref float OccupiedWidth => ref Unsafe.AsRef<float>(&Handle->OccupiedWidth); - public uint KerningPairUseBisect { get => Handle->KerningPairUseBisect; set => Handle->KerningPairUseBisect = value; } - public uint KerningPairOffset { get => Handle->KerningPairOffset; set => Handle->KerningPairOffset = value; } - public uint KerningPairCount { get => Handle->KerningPairCount; set => Handle->KerningPairCount = value; } - } -} -/* ImFontGlyphRangesBuilder.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontGlyphRangesBuilder - { - public ImVector<uint> UsedChars; - public unsafe ImFontGlyphRangesBuilder(ImVector<uint> usedChars = default) - { - UsedChars = usedChars; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontGlyphRangesBuilderPtr : IEquatable<ImFontGlyphRangesBuilderPtr> - { - public ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) { Handle = handle; } - public ImFontGlyphRangesBuilder* Handle; - public bool IsNull => Handle == null; - public static ImFontGlyphRangesBuilderPtr Null => new ImFontGlyphRangesBuilderPtr(null); - public ImFontGlyphRangesBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) => new ImFontGlyphRangesBuilderPtr(handle); - public static implicit operator ImFontGlyphRangesBuilder*(ImFontGlyphRangesBuilderPtr handle) => handle.Handle; - public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle == right; - public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle != right; - public bool Equals(ImFontGlyphRangesBuilderPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontGlyphRangesBuilderPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontGlyphRangesBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<uint> UsedChars => ref Unsafe.AsRef<ImVector<uint>>(&Handle->UsedChars); - } -} -/* ImFontKerningPair.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontKerningPair - { - public ushort Left; - public ushort Right; - public float AdvanceXAdjustment; - public unsafe ImFontKerningPair(ushort left = default, ushort right = default, float advanceXAdjustment = default) - { - Left = left; - Right = right; - AdvanceXAdjustment = advanceXAdjustment; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImFontKerningPairPtr : IEquatable<ImFontKerningPairPtr> - { - public ImFontKerningPairPtr(ImFontKerningPair* handle) { Handle = handle; } - public ImFontKerningPair* Handle; - public bool IsNull => Handle == null; - public static ImFontKerningPairPtr Null => new ImFontKerningPairPtr(null); - public ImFontKerningPair this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImFontKerningPairPtr(ImFontKerningPair* handle) => new ImFontKerningPairPtr(handle); - public static implicit operator ImFontKerningPair*(ImFontKerningPairPtr handle) => handle.Handle; - public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle == right; - public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle != right; - public bool Equals(ImFontKerningPairPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImFontKerningPairPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImFontKerningPairPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ushort Left => ref Unsafe.AsRef<ushort>(&Handle->Left); - public ref ushort Right => ref Unsafe.AsRef<ushort>(&Handle->Right); - public ref float AdvanceXAdjustment => ref Unsafe.AsRef<float>(&Handle->AdvanceXAdjustment); - } -} -/* ImGuiColorMod.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiColorMod - { - public ImGuiCol Col; - public Vector4 BackupValue; - public unsafe ImGuiColorMod(ImGuiCol col = default, Vector4 backupValue = default) - { - Col = col; - BackupValue = backupValue; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiColorModPtr : IEquatable<ImGuiColorModPtr> - { - public ImGuiColorModPtr(ImGuiColorMod* handle) { Handle = handle; } - public ImGuiColorMod* Handle; - public bool IsNull => Handle == null; - public static ImGuiColorModPtr Null => new ImGuiColorModPtr(null); - public ImGuiColorMod this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiColorModPtr(ImGuiColorMod* handle) => new ImGuiColorModPtr(handle); - public static implicit operator ImGuiColorMod*(ImGuiColorModPtr handle) => handle.Handle; - public static bool operator ==(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle == right; - public static bool operator !=(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle != right; - public bool Equals(ImGuiColorModPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiColorModPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiColorModPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiCol Col => ref Unsafe.AsRef<ImGuiCol>(&Handle->Col); - public ref Vector4 BackupValue => ref Unsafe.AsRef<Vector4>(&Handle->BackupValue); - } -} -/* ImGuiComboPreviewData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiComboPreviewData - { - public ImRect PreviewRect; - public Vector2 BackupCursorPos; - public Vector2 BackupCursorMaxPos; - public Vector2 BackupCursorPosPrevLine; - public float BackupPrevLineTextBaseOffset; - public ImGuiLayoutType BackupLayout; - public unsafe ImGuiComboPreviewData(ImRect previewRect = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, float backupPrevLineTextBaseOffset = default, ImGuiLayoutType backupLayout = default) - { - PreviewRect = previewRect; - BackupCursorPos = backupCursorPos; - BackupCursorMaxPos = backupCursorMaxPos; - BackupCursorPosPrevLine = backupCursorPosPrevLine; - BackupPrevLineTextBaseOffset = backupPrevLineTextBaseOffset; - BackupLayout = backupLayout; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiComboPreviewDataPtr : IEquatable<ImGuiComboPreviewDataPtr> - { - public ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) { Handle = handle; } - public ImGuiComboPreviewData* Handle; - public bool IsNull => Handle == null; - public static ImGuiComboPreviewDataPtr Null => new ImGuiComboPreviewDataPtr(null); - public ImGuiComboPreviewData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) => new ImGuiComboPreviewDataPtr(handle); - public static implicit operator ImGuiComboPreviewData*(ImGuiComboPreviewDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle == right; - public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle != right; - public bool Equals(ImGuiComboPreviewDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiComboPreviewDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiComboPreviewDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImRect PreviewRect => ref Unsafe.AsRef<ImRect>(&Handle->PreviewRect); - public ref Vector2 BackupCursorPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPos); - public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorMaxPos); - public ref Vector2 BackupCursorPosPrevLine => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPosPrevLine); - public ref float BackupPrevLineTextBaseOffset => ref Unsafe.AsRef<float>(&Handle->BackupPrevLineTextBaseOffset); - public ref ImGuiLayoutType BackupLayout => ref Unsafe.AsRef<ImGuiLayoutType>(&Handle->BackupLayout); - } -} -/* ImGuiContext.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiContext - { - public byte Initialized; - public byte FontAtlasOwnedByContext; - public ImGuiIO IO; - public ImGuiPlatformIO PlatformIO; - public ImVector<ImGuiInputEvent> InputEventsQueue; - public ImVector<ImGuiInputEvent> InputEventsTrail; - public ImGuiStyle Style; - public ImGuiConfigFlags ConfigFlagsCurrFrame; - public ImGuiConfigFlags ConfigFlagsLastFrame; - public unsafe ImFont* Font; - public float FontSize; - public float FontBaseSize; - public ImDrawListSharedData DrawListSharedData; - public double Time; - public int FrameCount; - public int FrameCountEnded; - public int FrameCountPlatformEnded; - public int FrameCountRendered; - public byte WithinFrameScope; - public byte WithinFrameScopeWithImplicitWindow; - public byte WithinEndChild; - public byte GcCompactAll; - public byte TestEngineHookItems; - public unsafe void* TestEngine; - public ImVector<ImGuiWindowPtr> Windows; - public ImVector<ImGuiWindowPtr> WindowsFocusOrder; - public ImVector<ImGuiWindowPtr> WindowsTempSortBuffer; - public ImVector<ImGuiWindowStackData> CurrentWindowStack; - public ImGuiStorage WindowsById; - public int WindowsActiveCount; - public Vector2 WindowsHoverPadding; - public unsafe ImGuiWindow* CurrentWindow; - public unsafe ImGuiWindow* HoveredWindow; - public unsafe ImGuiWindow* HoveredWindowUnderMovingWindow; - public unsafe ImGuiDockNode* HoveredDockNode; - public unsafe ImGuiWindow* MovingWindow; - public unsafe ImGuiWindow* WheelingWindow; - public Vector2 WheelingWindowRefMousePos; - public float WheelingWindowTimer; - public uint DebugHookIdInfo; - public uint HoveredId; - public uint HoveredIdPreviousFrame; - public byte HoveredIdAllowOverlap; - public byte HoveredIdUsingMouseWheel; - public byte HoveredIdPreviousFrameUsingMouseWheel; - public byte HoveredIdDisabled; - public float HoveredIdTimer; - public float HoveredIdNotActiveTimer; - public uint ActiveId; - public uint ActiveIdIsAlive; - public float ActiveIdTimer; - public byte ActiveIdIsJustActivated; - public byte ActiveIdAllowOverlap; - public byte ActiveIdNoClearOnFocusLoss; - public byte ActiveIdHasBeenPressedBefore; - public byte ActiveIdHasBeenEditedBefore; - public byte ActiveIdHasBeenEditedThisFrame; - public Vector2 ActiveIdClickOffset; - public unsafe ImGuiWindow* ActiveIdWindow; - public ImGuiInputSource ActiveIdSource; - public int ActiveIdMouseButton; - public uint ActiveIdPreviousFrame; - public byte ActiveIdPreviousFrameIsAlive; - public byte ActiveIdPreviousFrameHasBeenEditedBefore; - public unsafe ImGuiWindow* ActiveIdPreviousFrameWindow; - public uint LastActiveId; - public float LastActiveIdTimer; - public byte ActiveIdUsingMouseWheel; - public uint ActiveIdUsingNavDirMask; - public uint ActiveIdUsingNavInputMask; - public ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN ActiveIdUsingKeyInputMask; - public ImGuiItemFlags CurrentItemFlags; - public ImGuiNextItemData NextItemData; - public ImGuiLastItemData LastItemData; - public ImGuiNextWindowData NextWindowData; - public ImVector<ImGuiColorMod> ColorStack; - public ImVector<ImGuiStyleMod> StyleVarStack; - public ImVector<ImFontPtr> FontStack; - public ImVector<uint> FocusScopeStack; - public ImVector<ImGuiItemFlags> ItemFlagsStack; - public ImVector<ImGuiGroupData> GroupStack; - public ImVector<ImGuiPopupData> OpenPopupStack; - public ImVector<ImGuiPopupData> BeginPopupStack; - public int BeginMenuCount; - public ImVector<ImGuiViewportPPtr> Viewports; - public float CurrentDpiScale; - public unsafe ImGuiViewportP* CurrentViewport; - public unsafe ImGuiViewportP* MouseViewport; - public unsafe ImGuiViewportP* MouseLastHoveredViewport; - public uint PlatformLastFocusedViewportId; - public ImGuiPlatformMonitor FallbackMonitor; - public int ViewportFrontMostStampCount; - public unsafe ImGuiWindow* NavWindow; - public uint NavId; - public uint NavFocusScopeId; - public uint NavActivateId; - public uint NavActivateDownId; - public uint NavActivatePressedId; - public uint NavActivateInputId; - public ImGuiActivateFlags NavActivateFlags; - public uint NavJustMovedToId; - public uint NavJustMovedToFocusScopeId; - public ImGuiModFlags NavJustMovedToKeyMods; - public uint NavNextActivateId; - public ImGuiActivateFlags NavNextActivateFlags; - public ImGuiInputSource NavInputSource; - public ImGuiNavLayer NavLayer; - public byte NavIdIsAlive; - public byte NavMousePosDirty; - public byte NavDisableHighlight; - public byte NavDisableMouseHover; - public byte NavAnyRequest; - public byte NavInitRequest; - public byte NavInitRequestFromMove; - public uint NavInitResultId; - public ImRect NavInitResultRectRel; - public byte NavMoveSubmitted; - public byte NavMoveScoringItems; - public byte NavMoveForwardToNextFrame; - public ImGuiNavMoveFlags NavMoveFlags; - public ImGuiScrollFlags NavMoveScrollFlags; - public ImGuiModFlags NavMoveKeyMods; - public ImGuiDir NavMoveDir; - public ImGuiDir NavMoveDirForDebug; - public ImGuiDir NavMoveClipDir; - public ImRect NavScoringRect; - public ImRect NavScoringNoClipRect; - public int NavScoringDebugCount; - public int NavTabbingDir; - public int NavTabbingCounter; - public ImGuiNavItemData NavMoveResultLocal; - public ImGuiNavItemData NavMoveResultLocalVisible; - public ImGuiNavItemData NavMoveResultOther; - public ImGuiNavItemData NavTabbingResultFirst; - public unsafe ImGuiWindow* NavWindowingTarget; - public unsafe ImGuiWindow* NavWindowingTargetAnim; - public unsafe ImGuiWindow* NavWindowingListWindow; - public float NavWindowingTimer; - public float NavWindowingHighlightAlpha; - public byte NavWindowingToggleLayer; - public float DimBgRatio; - public ImGuiMouseCursor MouseCursor; - public byte DragDropActive; - public byte DragDropWithinSource; - public byte DragDropWithinTarget; - public ImGuiDragDropFlags DragDropSourceFlags; - public int DragDropSourceFrameCount; - public int DragDropMouseButton; - public ImGuiPayload DragDropPayload; - public ImRect DragDropTargetRect; - public uint DragDropTargetId; - public ImGuiDragDropFlags DragDropAcceptFlags; - public float DragDropAcceptIdCurrRectSurface; - public uint DragDropAcceptIdCurr; - public uint DragDropAcceptIdPrev; - public int DragDropAcceptFrameCount; - public uint DragDropHoldJustPressedId; - public ImVector<byte> DragDropPayloadBufHeap; - public byte DragDropPayloadBufLocal_0; - public byte DragDropPayloadBufLocal_1; - public byte DragDropPayloadBufLocal_2; - public byte DragDropPayloadBufLocal_3; - public byte DragDropPayloadBufLocal_4; - public byte DragDropPayloadBufLocal_5; - public byte DragDropPayloadBufLocal_6; - public byte DragDropPayloadBufLocal_7; - public byte DragDropPayloadBufLocal_8; - public byte DragDropPayloadBufLocal_9; - public byte DragDropPayloadBufLocal_10; - public byte DragDropPayloadBufLocal_11; - public byte DragDropPayloadBufLocal_12; - public byte DragDropPayloadBufLocal_13; - public byte DragDropPayloadBufLocal_14; - public byte DragDropPayloadBufLocal_15; - public int ClipperTempDataStacked; - public ImVector<ImGuiListClipperData> ClipperTempData; - public unsafe ImGuiTable* CurrentTable; - public int TablesTempDataStacked; - public ImVector<ImGuiTableTempData> TablesTempData; - public ImPoolImGuiTable Tables; - public ImVector<float> TablesLastTimeActive; - public ImVector<ImDrawChannel> DrawChannelsTempMergeBuffer; - public unsafe ImGuiTabBar* CurrentTabBar; - public ImPoolImGuiTabBar TabBars; - public ImVector<ImGuiPtrOrIndex> CurrentTabBarStack; - public ImVector<ImGuiShrinkWidthItem> ShrinkWidthBuffer; - public Vector2 MouseLastValidPos; - public ImGuiInputTextState InputTextState; - public ImFont InputTextPasswordFont; - public uint TempInputId; - public ImGuiColorEditFlags ColorEditOptions; - public float ColorEditLastHue; - public float ColorEditLastSat; - public uint ColorEditLastColor; - public Vector4 ColorPickerRef; - public ImGuiComboPreviewData ComboPreviewData; - public float SliderGrabClickOffset; - public float SliderCurrentAccum; - public byte SliderCurrentAccumDirty; - public byte DragCurrentAccumDirty; - public float DragCurrentAccum; - public float DragSpeedDefaultRatio; - public float ScrollbarClickDeltaToGrabCenter; - public float DisabledAlphaBackup; - public short DisabledStackSize; - public short TooltipOverrideCount; - public float TooltipSlowDelay; - public ImVector<byte> ClipboardHandlerData; - public ImVector<uint> MenusIdSubmittedThisFrame; - public ImGuiPlatformImeData PlatformImeData; - public ImGuiPlatformImeData PlatformImeDataPrev; - public uint PlatformImeViewport; - public byte PlatformLocaleDecimalPoint; - public ImGuiDockContext DockContext; - public byte SettingsLoaded; - public float SettingsDirtyTimer; - public ImGuiTextBuffer SettingsIniData; - public ImVector<ImGuiSettingsHandler> SettingsHandlers; - public ImChunkStreamImGuiWindowSettings SettingsWindows; - public ImChunkStreamImGuiTableSettings SettingsTables; - public ImVector<ImGuiContextHook> Hooks; - public uint HookIdNext; - public byte LogEnabled; - public ImGuiLogType LogType; - public ImFileHandle LogFile; - public ImGuiTextBuffer LogBuffer; - public unsafe byte* LogNextPrefix; - public unsafe byte* LogNextSuffix; - public float LogLinePosY; - public byte LogLineFirstItem; - public int LogDepthRef; - public int LogDepthToExpand; - public int LogDepthToExpandDefault; - public ImGuiDebugLogFlags DebugLogFlags; - public ImGuiTextBuffer DebugLogBuf; - public byte DebugItemPickerActive; - public uint DebugItemPickerBreakId; - public ImGuiMetricsConfig DebugMetricsConfig; - public ImGuiStackTool DebugStackTool; - public float FramerateSecPerFrame_0; - public float FramerateSecPerFrame_1; - public float FramerateSecPerFrame_2; - public float FramerateSecPerFrame_3; - public float FramerateSecPerFrame_4; - public float FramerateSecPerFrame_5; - public float FramerateSecPerFrame_6; - public float FramerateSecPerFrame_7; - public float FramerateSecPerFrame_8; - public float FramerateSecPerFrame_9; - public float FramerateSecPerFrame_10; - public float FramerateSecPerFrame_11; - public float FramerateSecPerFrame_12; - public float FramerateSecPerFrame_13; - public float FramerateSecPerFrame_14; - public float FramerateSecPerFrame_15; - public float FramerateSecPerFrame_16; - public float FramerateSecPerFrame_17; - public float FramerateSecPerFrame_18; - public float FramerateSecPerFrame_19; - public float FramerateSecPerFrame_20; - public float FramerateSecPerFrame_21; - public float FramerateSecPerFrame_22; - public float FramerateSecPerFrame_23; - public float FramerateSecPerFrame_24; - public float FramerateSecPerFrame_25; - public float FramerateSecPerFrame_26; - public float FramerateSecPerFrame_27; - public float FramerateSecPerFrame_28; - public float FramerateSecPerFrame_29; - public float FramerateSecPerFrame_30; - public float FramerateSecPerFrame_31; - public float FramerateSecPerFrame_32; - public float FramerateSecPerFrame_33; - public float FramerateSecPerFrame_34; - public float FramerateSecPerFrame_35; - public float FramerateSecPerFrame_36; - public float FramerateSecPerFrame_37; - public float FramerateSecPerFrame_38; - public float FramerateSecPerFrame_39; - public float FramerateSecPerFrame_40; - public float FramerateSecPerFrame_41; - public float FramerateSecPerFrame_42; - public float FramerateSecPerFrame_43; - public float FramerateSecPerFrame_44; - public float FramerateSecPerFrame_45; - public float FramerateSecPerFrame_46; - public float FramerateSecPerFrame_47; - public float FramerateSecPerFrame_48; - public float FramerateSecPerFrame_49; - public float FramerateSecPerFrame_50; - public float FramerateSecPerFrame_51; - public float FramerateSecPerFrame_52; - public float FramerateSecPerFrame_53; - public float FramerateSecPerFrame_54; - public float FramerateSecPerFrame_55; - public float FramerateSecPerFrame_56; - public float FramerateSecPerFrame_57; - public float FramerateSecPerFrame_58; - public float FramerateSecPerFrame_59; - public float FramerateSecPerFrame_60; - public float FramerateSecPerFrame_61; - public float FramerateSecPerFrame_62; - public float FramerateSecPerFrame_63; - public float FramerateSecPerFrame_64; - public float FramerateSecPerFrame_65; - public float FramerateSecPerFrame_66; - public float FramerateSecPerFrame_67; - public float FramerateSecPerFrame_68; - public float FramerateSecPerFrame_69; - public float FramerateSecPerFrame_70; - public float FramerateSecPerFrame_71; - public float FramerateSecPerFrame_72; - public float FramerateSecPerFrame_73; - public float FramerateSecPerFrame_74; - public float FramerateSecPerFrame_75; - public float FramerateSecPerFrame_76; - public float FramerateSecPerFrame_77; - public float FramerateSecPerFrame_78; - public float FramerateSecPerFrame_79; - public float FramerateSecPerFrame_80; - public float FramerateSecPerFrame_81; - public float FramerateSecPerFrame_82; - public float FramerateSecPerFrame_83; - public float FramerateSecPerFrame_84; - public float FramerateSecPerFrame_85; - public float FramerateSecPerFrame_86; - public float FramerateSecPerFrame_87; - public float FramerateSecPerFrame_88; - public float FramerateSecPerFrame_89; - public float FramerateSecPerFrame_90; - public float FramerateSecPerFrame_91; - public float FramerateSecPerFrame_92; - public float FramerateSecPerFrame_93; - public float FramerateSecPerFrame_94; - public float FramerateSecPerFrame_95; - public float FramerateSecPerFrame_96; - public float FramerateSecPerFrame_97; - public float FramerateSecPerFrame_98; - public float FramerateSecPerFrame_99; - public float FramerateSecPerFrame_100; - public float FramerateSecPerFrame_101; - public float FramerateSecPerFrame_102; - public float FramerateSecPerFrame_103; - public float FramerateSecPerFrame_104; - public float FramerateSecPerFrame_105; - public float FramerateSecPerFrame_106; - public float FramerateSecPerFrame_107; - public float FramerateSecPerFrame_108; - public float FramerateSecPerFrame_109; - public float FramerateSecPerFrame_110; - public float FramerateSecPerFrame_111; - public float FramerateSecPerFrame_112; - public float FramerateSecPerFrame_113; - public float FramerateSecPerFrame_114; - public float FramerateSecPerFrame_115; - public float FramerateSecPerFrame_116; - public float FramerateSecPerFrame_117; - public float FramerateSecPerFrame_118; - public float FramerateSecPerFrame_119; - public int FramerateSecPerFrameIdx; - public int FramerateSecPerFrameCount; - public float FramerateSecPerFrameAccum; - public int WantCaptureMouseNextFrame; - public int WantCaptureKeyboardNextFrame; - public int WantTextInputNextFrame; - public ImVector<byte> TempBuffer; - public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector<ImGuiInputEvent> inputEventsQueue = default, ImVector<ImGuiInputEvent> inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector<ImGuiWindowPtr> windows = default, ImVector<ImGuiWindowPtr> windowsFocusOrder = default, ImVector<ImGuiWindowPtr> windowsTempSortBuffer = default, ImVector<ImGuiWindowStackData> currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector<ImGuiColorMod> colorStack = default, ImVector<ImGuiStyleMod> styleVarStack = default, ImVector<ImFontPtr> fontStack = default, ImVector<uint> focusScopeStack = default, ImVector<ImGuiItemFlags> itemFlagsStack = default, ImVector<ImGuiGroupData> groupStack = default, ImVector<ImGuiPopupData> openPopupStack = default, ImVector<ImGuiPopupData> beginPopupStack = default, int beginMenuCount = default, ImVector<ImGuiViewportPPtr> viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector<byte> dragDropPayloadBufHeap = default, byte* dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector<ImGuiListClipperData> clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector<ImGuiTableTempData> tablesTempData = default, ImPoolImGuiTable tables = default, ImVector<float> tablesLastTimeActive = default, ImVector<ImDrawChannel> drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector<ImGuiPtrOrIndex> currentTabBarStack = default, ImVector<ImGuiShrinkWidthItem> shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector<byte> clipboardHandlerData = default, ImVector<uint> menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector<ImGuiSettingsHandler> settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector<ImGuiContextHook> hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, float* framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector<byte> tempBuffer = default) - { - Initialized = initialized ? (byte)1 : (byte)0; - FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; - IO = io; - PlatformIO = platformIo; - InputEventsQueue = inputEventsQueue; - InputEventsTrail = inputEventsTrail; - Style = style; - ConfigFlagsCurrFrame = configFlagsCurrFrame; - ConfigFlagsLastFrame = configFlagsLastFrame; - Font = font; - FontSize = fontSize; - FontBaseSize = fontBaseSize; - DrawListSharedData = drawListSharedData; - Time = time; - FrameCount = frameCount; - FrameCountEnded = frameCountEnded; - FrameCountPlatformEnded = frameCountPlatformEnded; - FrameCountRendered = frameCountRendered; - WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; - WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; - WithinEndChild = withinEndChild ? (byte)1 : (byte)0; - GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; - TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; - TestEngine = testEngine; - Windows = windows; - WindowsFocusOrder = windowsFocusOrder; - WindowsTempSortBuffer = windowsTempSortBuffer; - CurrentWindowStack = currentWindowStack; - WindowsById = windowsById; - WindowsActiveCount = windowsActiveCount; - WindowsHoverPadding = windowsHoverPadding; - CurrentWindow = currentWindow; - HoveredWindow = hoveredWindow; - HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; - HoveredDockNode = hoveredDockNode; - MovingWindow = movingWindow; - WheelingWindow = wheelingWindow; - WheelingWindowRefMousePos = wheelingWindowRefMousePos; - WheelingWindowTimer = wheelingWindowTimer; - DebugHookIdInfo = debugHookIdInfo; - HoveredId = hoveredId; - HoveredIdPreviousFrame = hoveredIdPreviousFrame; - HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; - HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; - HoveredIdTimer = hoveredIdTimer; - HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; - ActiveId = activeId; - ActiveIdIsAlive = activeIdIsAlive; - ActiveIdTimer = activeIdTimer; - ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; - ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; - ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; - ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; - ActiveIdClickOffset = activeIdClickOffset; - ActiveIdWindow = activeIdWindow; - ActiveIdSource = activeIdSource; - ActiveIdMouseButton = activeIdMouseButton; - ActiveIdPreviousFrame = activeIdPreviousFrame; - ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; - ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; - LastActiveId = lastActiveId; - LastActiveIdTimer = lastActiveIdTimer; - ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; - ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; - ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; - ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; - CurrentItemFlags = currentItemFlags; - NextItemData = nextItemData; - LastItemData = lastItemData; - NextWindowData = nextWindowData; - ColorStack = colorStack; - StyleVarStack = styleVarStack; - FontStack = fontStack; - FocusScopeStack = focusScopeStack; - ItemFlagsStack = itemFlagsStack; - GroupStack = groupStack; - OpenPopupStack = openPopupStack; - BeginPopupStack = beginPopupStack; - BeginMenuCount = beginMenuCount; - Viewports = viewports; - CurrentDpiScale = currentDpiScale; - CurrentViewport = currentViewport; - MouseViewport = mouseViewport; - MouseLastHoveredViewport = mouseLastHoveredViewport; - PlatformLastFocusedViewportId = platformLastFocusedViewportId; - FallbackMonitor = fallbackMonitor; - ViewportFrontMostStampCount = viewportFrontMostStampCount; - NavWindow = navWindow; - NavId = navId; - NavFocusScopeId = navFocusScopeId; - NavActivateId = navActivateId; - NavActivateDownId = navActivateDownId; - NavActivatePressedId = navActivatePressedId; - NavActivateInputId = navActivateInputId; - NavActivateFlags = navActivateFlags; - NavJustMovedToId = navJustMovedToId; - NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; - NavJustMovedToKeyMods = navJustMovedToKeyMods; - NavNextActivateId = navNextActivateId; - NavNextActivateFlags = navNextActivateFlags; - NavInputSource = navInputSource; - NavLayer = navLayer; - NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; - NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; - NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; - NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; - NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; - NavInitRequest = navInitRequest ? (byte)1 : (byte)0; - NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; - NavInitResultId = navInitResultId; - NavInitResultRectRel = navInitResultRectRel; - NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; - NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; - NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; - NavMoveFlags = navMoveFlags; - NavMoveScrollFlags = navMoveScrollFlags; - NavMoveKeyMods = navMoveKeyMods; - NavMoveDir = navMoveDir; - NavMoveDirForDebug = navMoveDirForDebug; - NavMoveClipDir = navMoveClipDir; - NavScoringRect = navScoringRect; - NavScoringNoClipRect = navScoringNoClipRect; - NavScoringDebugCount = navScoringDebugCount; - NavTabbingDir = navTabbingDir; - NavTabbingCounter = navTabbingCounter; - NavMoveResultLocal = navMoveResultLocal; - NavMoveResultLocalVisible = navMoveResultLocalVisible; - NavMoveResultOther = navMoveResultOther; - NavTabbingResultFirst = navTabbingResultFirst; - NavWindowingTarget = navWindowingTarget; - NavWindowingTargetAnim = navWindowingTargetAnim; - NavWindowingListWindow = navWindowingListWindow; - NavWindowingTimer = navWindowingTimer; - NavWindowingHighlightAlpha = navWindowingHighlightAlpha; - NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; - DimBgRatio = dimBgRatio; - MouseCursor = mouseCursor; - DragDropActive = dragDropActive ? (byte)1 : (byte)0; - DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; - DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; - DragDropSourceFlags = dragDropSourceFlags; - DragDropSourceFrameCount = dragDropSourceFrameCount; - DragDropMouseButton = dragDropMouseButton; - DragDropPayload = dragDropPayload; - DragDropTargetRect = dragDropTargetRect; - DragDropTargetId = dragDropTargetId; - DragDropAcceptFlags = dragDropAcceptFlags; - DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; - DragDropAcceptIdCurr = dragDropAcceptIdCurr; - DragDropAcceptIdPrev = dragDropAcceptIdPrev; - DragDropAcceptFrameCount = dragDropAcceptFrameCount; - DragDropHoldJustPressedId = dragDropHoldJustPressedId; - DragDropPayloadBufHeap = dragDropPayloadBufHeap; - if (dragDropPayloadBufLocal != default(byte*)) - { - DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; - DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; - DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; - DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; - DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; - DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; - DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; - DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; - DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; - DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; - DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; - DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; - DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; - DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; - DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; - DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; - } - ClipperTempDataStacked = clipperTempDataStacked; - ClipperTempData = clipperTempData; - CurrentTable = currentTable; - TablesTempDataStacked = tablesTempDataStacked; - TablesTempData = tablesTempData; - Tables = tables; - TablesLastTimeActive = tablesLastTimeActive; - DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; - CurrentTabBar = currentTabBar; - TabBars = tabBars; - CurrentTabBarStack = currentTabBarStack; - ShrinkWidthBuffer = shrinkWidthBuffer; - MouseLastValidPos = mouseLastValidPos; - InputTextState = inputTextState; - InputTextPasswordFont = inputTextPasswordFont; - TempInputId = tempInputId; - ColorEditOptions = colorEditOptions; - ColorEditLastHue = colorEditLastHue; - ColorEditLastSat = colorEditLastSat; - ColorEditLastColor = colorEditLastColor; - ColorPickerRef = colorPickerRef; - ComboPreviewData = comboPreviewData; - SliderGrabClickOffset = sliderGrabClickOffset; - SliderCurrentAccum = sliderCurrentAccum; - SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccum = dragCurrentAccum; - DragSpeedDefaultRatio = dragSpeedDefaultRatio; - ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; - DisabledAlphaBackup = disabledAlphaBackup; - DisabledStackSize = disabledStackSize; - TooltipOverrideCount = tooltipOverrideCount; - TooltipSlowDelay = tooltipSlowDelay; - ClipboardHandlerData = clipboardHandlerData; - MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; - PlatformImeData = platformImeData; - PlatformImeDataPrev = platformImeDataPrev; - PlatformImeViewport = platformImeViewport; - PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; - DockContext = dockContext; - SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; - SettingsDirtyTimer = settingsDirtyTimer; - SettingsIniData = settingsIniData; - SettingsHandlers = settingsHandlers; - SettingsWindows = settingsWindows; - SettingsTables = settingsTables; - Hooks = hooks; - HookIdNext = hookIdNext; - LogEnabled = logEnabled ? (byte)1 : (byte)0; - LogType = logType; - LogFile = logFile; - LogBuffer = logBuffer; - LogNextPrefix = logNextPrefix; - LogNextSuffix = logNextSuffix; - LogLinePosY = logLinePosY; - LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; - LogDepthRef = logDepthRef; - LogDepthToExpand = logDepthToExpand; - LogDepthToExpandDefault = logDepthToExpandDefault; - DebugLogFlags = debugLogFlags; - DebugLogBuf = debugLogBuf; - DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; - DebugItemPickerBreakId = debugItemPickerBreakId; - DebugMetricsConfig = debugMetricsConfig; - DebugStackTool = debugStackTool; - if (framerateSecPerFrame != default(float*)) - { - FramerateSecPerFrame_0 = framerateSecPerFrame[0]; - FramerateSecPerFrame_1 = framerateSecPerFrame[1]; - FramerateSecPerFrame_2 = framerateSecPerFrame[2]; - FramerateSecPerFrame_3 = framerateSecPerFrame[3]; - FramerateSecPerFrame_4 = framerateSecPerFrame[4]; - FramerateSecPerFrame_5 = framerateSecPerFrame[5]; - FramerateSecPerFrame_6 = framerateSecPerFrame[6]; - FramerateSecPerFrame_7 = framerateSecPerFrame[7]; - FramerateSecPerFrame_8 = framerateSecPerFrame[8]; - FramerateSecPerFrame_9 = framerateSecPerFrame[9]; - FramerateSecPerFrame_10 = framerateSecPerFrame[10]; - FramerateSecPerFrame_11 = framerateSecPerFrame[11]; - FramerateSecPerFrame_12 = framerateSecPerFrame[12]; - FramerateSecPerFrame_13 = framerateSecPerFrame[13]; - FramerateSecPerFrame_14 = framerateSecPerFrame[14]; - FramerateSecPerFrame_15 = framerateSecPerFrame[15]; - FramerateSecPerFrame_16 = framerateSecPerFrame[16]; - FramerateSecPerFrame_17 = framerateSecPerFrame[17]; - FramerateSecPerFrame_18 = framerateSecPerFrame[18]; - FramerateSecPerFrame_19 = framerateSecPerFrame[19]; - FramerateSecPerFrame_20 = framerateSecPerFrame[20]; - FramerateSecPerFrame_21 = framerateSecPerFrame[21]; - FramerateSecPerFrame_22 = framerateSecPerFrame[22]; - FramerateSecPerFrame_23 = framerateSecPerFrame[23]; - FramerateSecPerFrame_24 = framerateSecPerFrame[24]; - FramerateSecPerFrame_25 = framerateSecPerFrame[25]; - FramerateSecPerFrame_26 = framerateSecPerFrame[26]; - FramerateSecPerFrame_27 = framerateSecPerFrame[27]; - FramerateSecPerFrame_28 = framerateSecPerFrame[28]; - FramerateSecPerFrame_29 = framerateSecPerFrame[29]; - FramerateSecPerFrame_30 = framerateSecPerFrame[30]; - FramerateSecPerFrame_31 = framerateSecPerFrame[31]; - FramerateSecPerFrame_32 = framerateSecPerFrame[32]; - FramerateSecPerFrame_33 = framerateSecPerFrame[33]; - FramerateSecPerFrame_34 = framerateSecPerFrame[34]; - FramerateSecPerFrame_35 = framerateSecPerFrame[35]; - FramerateSecPerFrame_36 = framerateSecPerFrame[36]; - FramerateSecPerFrame_37 = framerateSecPerFrame[37]; - FramerateSecPerFrame_38 = framerateSecPerFrame[38]; - FramerateSecPerFrame_39 = framerateSecPerFrame[39]; - FramerateSecPerFrame_40 = framerateSecPerFrame[40]; - FramerateSecPerFrame_41 = framerateSecPerFrame[41]; - FramerateSecPerFrame_42 = framerateSecPerFrame[42]; - FramerateSecPerFrame_43 = framerateSecPerFrame[43]; - FramerateSecPerFrame_44 = framerateSecPerFrame[44]; - FramerateSecPerFrame_45 = framerateSecPerFrame[45]; - FramerateSecPerFrame_46 = framerateSecPerFrame[46]; - FramerateSecPerFrame_47 = framerateSecPerFrame[47]; - FramerateSecPerFrame_48 = framerateSecPerFrame[48]; - FramerateSecPerFrame_49 = framerateSecPerFrame[49]; - FramerateSecPerFrame_50 = framerateSecPerFrame[50]; - FramerateSecPerFrame_51 = framerateSecPerFrame[51]; - FramerateSecPerFrame_52 = framerateSecPerFrame[52]; - FramerateSecPerFrame_53 = framerateSecPerFrame[53]; - FramerateSecPerFrame_54 = framerateSecPerFrame[54]; - FramerateSecPerFrame_55 = framerateSecPerFrame[55]; - FramerateSecPerFrame_56 = framerateSecPerFrame[56]; - FramerateSecPerFrame_57 = framerateSecPerFrame[57]; - FramerateSecPerFrame_58 = framerateSecPerFrame[58]; - FramerateSecPerFrame_59 = framerateSecPerFrame[59]; - FramerateSecPerFrame_60 = framerateSecPerFrame[60]; - FramerateSecPerFrame_61 = framerateSecPerFrame[61]; - FramerateSecPerFrame_62 = framerateSecPerFrame[62]; - FramerateSecPerFrame_63 = framerateSecPerFrame[63]; - FramerateSecPerFrame_64 = framerateSecPerFrame[64]; - FramerateSecPerFrame_65 = framerateSecPerFrame[65]; - FramerateSecPerFrame_66 = framerateSecPerFrame[66]; - FramerateSecPerFrame_67 = framerateSecPerFrame[67]; - FramerateSecPerFrame_68 = framerateSecPerFrame[68]; - FramerateSecPerFrame_69 = framerateSecPerFrame[69]; - FramerateSecPerFrame_70 = framerateSecPerFrame[70]; - FramerateSecPerFrame_71 = framerateSecPerFrame[71]; - FramerateSecPerFrame_72 = framerateSecPerFrame[72]; - FramerateSecPerFrame_73 = framerateSecPerFrame[73]; - FramerateSecPerFrame_74 = framerateSecPerFrame[74]; - FramerateSecPerFrame_75 = framerateSecPerFrame[75]; - FramerateSecPerFrame_76 = framerateSecPerFrame[76]; - FramerateSecPerFrame_77 = framerateSecPerFrame[77]; - FramerateSecPerFrame_78 = framerateSecPerFrame[78]; - FramerateSecPerFrame_79 = framerateSecPerFrame[79]; - FramerateSecPerFrame_80 = framerateSecPerFrame[80]; - FramerateSecPerFrame_81 = framerateSecPerFrame[81]; - FramerateSecPerFrame_82 = framerateSecPerFrame[82]; - FramerateSecPerFrame_83 = framerateSecPerFrame[83]; - FramerateSecPerFrame_84 = framerateSecPerFrame[84]; - FramerateSecPerFrame_85 = framerateSecPerFrame[85]; - FramerateSecPerFrame_86 = framerateSecPerFrame[86]; - FramerateSecPerFrame_87 = framerateSecPerFrame[87]; - FramerateSecPerFrame_88 = framerateSecPerFrame[88]; - FramerateSecPerFrame_89 = framerateSecPerFrame[89]; - FramerateSecPerFrame_90 = framerateSecPerFrame[90]; - FramerateSecPerFrame_91 = framerateSecPerFrame[91]; - FramerateSecPerFrame_92 = framerateSecPerFrame[92]; - FramerateSecPerFrame_93 = framerateSecPerFrame[93]; - FramerateSecPerFrame_94 = framerateSecPerFrame[94]; - FramerateSecPerFrame_95 = framerateSecPerFrame[95]; - FramerateSecPerFrame_96 = framerateSecPerFrame[96]; - FramerateSecPerFrame_97 = framerateSecPerFrame[97]; - FramerateSecPerFrame_98 = framerateSecPerFrame[98]; - FramerateSecPerFrame_99 = framerateSecPerFrame[99]; - FramerateSecPerFrame_100 = framerateSecPerFrame[100]; - FramerateSecPerFrame_101 = framerateSecPerFrame[101]; - FramerateSecPerFrame_102 = framerateSecPerFrame[102]; - FramerateSecPerFrame_103 = framerateSecPerFrame[103]; - FramerateSecPerFrame_104 = framerateSecPerFrame[104]; - FramerateSecPerFrame_105 = framerateSecPerFrame[105]; - FramerateSecPerFrame_106 = framerateSecPerFrame[106]; - FramerateSecPerFrame_107 = framerateSecPerFrame[107]; - FramerateSecPerFrame_108 = framerateSecPerFrame[108]; - FramerateSecPerFrame_109 = framerateSecPerFrame[109]; - FramerateSecPerFrame_110 = framerateSecPerFrame[110]; - FramerateSecPerFrame_111 = framerateSecPerFrame[111]; - FramerateSecPerFrame_112 = framerateSecPerFrame[112]; - FramerateSecPerFrame_113 = framerateSecPerFrame[113]; - FramerateSecPerFrame_114 = framerateSecPerFrame[114]; - FramerateSecPerFrame_115 = framerateSecPerFrame[115]; - FramerateSecPerFrame_116 = framerateSecPerFrame[116]; - FramerateSecPerFrame_117 = framerateSecPerFrame[117]; - FramerateSecPerFrame_118 = framerateSecPerFrame[118]; - FramerateSecPerFrame_119 = framerateSecPerFrame[119]; - } - FramerateSecPerFrameIdx = framerateSecPerFrameIdx; - FramerateSecPerFrameCount = framerateSecPerFrameCount; - FramerateSecPerFrameAccum = framerateSecPerFrameAccum; - WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; - WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; - WantTextInputNextFrame = wantTextInputNextFrame; - TempBuffer = tempBuffer; - } - public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector<ImGuiInputEvent> inputEventsQueue = default, ImVector<ImGuiInputEvent> inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector<ImGuiWindowPtr> windows = default, ImVector<ImGuiWindowPtr> windowsFocusOrder = default, ImVector<ImGuiWindowPtr> windowsTempSortBuffer = default, ImVector<ImGuiWindowStackData> currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector<ImGuiColorMod> colorStack = default, ImVector<ImGuiStyleMod> styleVarStack = default, ImVector<ImFontPtr> fontStack = default, ImVector<uint> focusScopeStack = default, ImVector<ImGuiItemFlags> itemFlagsStack = default, ImVector<ImGuiGroupData> groupStack = default, ImVector<ImGuiPopupData> openPopupStack = default, ImVector<ImGuiPopupData> beginPopupStack = default, int beginMenuCount = default, ImVector<ImGuiViewportPPtr> viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector<byte> dragDropPayloadBufHeap = default, Span<byte> dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector<ImGuiListClipperData> clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector<ImGuiTableTempData> tablesTempData = default, ImPoolImGuiTable tables = default, ImVector<float> tablesLastTimeActive = default, ImVector<ImDrawChannel> drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector<ImGuiPtrOrIndex> currentTabBarStack = default, ImVector<ImGuiShrinkWidthItem> shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector<byte> clipboardHandlerData = default, ImVector<uint> menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector<ImGuiSettingsHandler> settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector<ImGuiContextHook> hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, Span<float> framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector<byte> tempBuffer = default) - { - Initialized = initialized ? (byte)1 : (byte)0; - FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; - IO = io; - PlatformIO = platformIo; - InputEventsQueue = inputEventsQueue; - InputEventsTrail = inputEventsTrail; - Style = style; - ConfigFlagsCurrFrame = configFlagsCurrFrame; - ConfigFlagsLastFrame = configFlagsLastFrame; - Font = font; - FontSize = fontSize; - FontBaseSize = fontBaseSize; - DrawListSharedData = drawListSharedData; - Time = time; - FrameCount = frameCount; - FrameCountEnded = frameCountEnded; - FrameCountPlatformEnded = frameCountPlatformEnded; - FrameCountRendered = frameCountRendered; - WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; - WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; - WithinEndChild = withinEndChild ? (byte)1 : (byte)0; - GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; - TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; - TestEngine = testEngine; - Windows = windows; - WindowsFocusOrder = windowsFocusOrder; - WindowsTempSortBuffer = windowsTempSortBuffer; - CurrentWindowStack = currentWindowStack; - WindowsById = windowsById; - WindowsActiveCount = windowsActiveCount; - WindowsHoverPadding = windowsHoverPadding; - CurrentWindow = currentWindow; - HoveredWindow = hoveredWindow; - HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; - HoveredDockNode = hoveredDockNode; - MovingWindow = movingWindow; - WheelingWindow = wheelingWindow; - WheelingWindowRefMousePos = wheelingWindowRefMousePos; - WheelingWindowTimer = wheelingWindowTimer; - DebugHookIdInfo = debugHookIdInfo; - HoveredId = hoveredId; - HoveredIdPreviousFrame = hoveredIdPreviousFrame; - HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; - HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; - HoveredIdTimer = hoveredIdTimer; - HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; - ActiveId = activeId; - ActiveIdIsAlive = activeIdIsAlive; - ActiveIdTimer = activeIdTimer; - ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; - ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; - ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; - ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; - ActiveIdClickOffset = activeIdClickOffset; - ActiveIdWindow = activeIdWindow; - ActiveIdSource = activeIdSource; - ActiveIdMouseButton = activeIdMouseButton; - ActiveIdPreviousFrame = activeIdPreviousFrame; - ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; - ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; - LastActiveId = lastActiveId; - LastActiveIdTimer = lastActiveIdTimer; - ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; - ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; - ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; - ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; - CurrentItemFlags = currentItemFlags; - NextItemData = nextItemData; - LastItemData = lastItemData; - NextWindowData = nextWindowData; - ColorStack = colorStack; - StyleVarStack = styleVarStack; - FontStack = fontStack; - FocusScopeStack = focusScopeStack; - ItemFlagsStack = itemFlagsStack; - GroupStack = groupStack; - OpenPopupStack = openPopupStack; - BeginPopupStack = beginPopupStack; - BeginMenuCount = beginMenuCount; - Viewports = viewports; - CurrentDpiScale = currentDpiScale; - CurrentViewport = currentViewport; - MouseViewport = mouseViewport; - MouseLastHoveredViewport = mouseLastHoveredViewport; - PlatformLastFocusedViewportId = platformLastFocusedViewportId; - FallbackMonitor = fallbackMonitor; - ViewportFrontMostStampCount = viewportFrontMostStampCount; - NavWindow = navWindow; - NavId = navId; - NavFocusScopeId = navFocusScopeId; - NavActivateId = navActivateId; - NavActivateDownId = navActivateDownId; - NavActivatePressedId = navActivatePressedId; - NavActivateInputId = navActivateInputId; - NavActivateFlags = navActivateFlags; - NavJustMovedToId = navJustMovedToId; - NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; - NavJustMovedToKeyMods = navJustMovedToKeyMods; - NavNextActivateId = navNextActivateId; - NavNextActivateFlags = navNextActivateFlags; - NavInputSource = navInputSource; - NavLayer = navLayer; - NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; - NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; - NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; - NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; - NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; - NavInitRequest = navInitRequest ? (byte)1 : (byte)0; - NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; - NavInitResultId = navInitResultId; - NavInitResultRectRel = navInitResultRectRel; - NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; - NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; - NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; - NavMoveFlags = navMoveFlags; - NavMoveScrollFlags = navMoveScrollFlags; - NavMoveKeyMods = navMoveKeyMods; - NavMoveDir = navMoveDir; - NavMoveDirForDebug = navMoveDirForDebug; - NavMoveClipDir = navMoveClipDir; - NavScoringRect = navScoringRect; - NavScoringNoClipRect = navScoringNoClipRect; - NavScoringDebugCount = navScoringDebugCount; - NavTabbingDir = navTabbingDir; - NavTabbingCounter = navTabbingCounter; - NavMoveResultLocal = navMoveResultLocal; - NavMoveResultLocalVisible = navMoveResultLocalVisible; - NavMoveResultOther = navMoveResultOther; - NavTabbingResultFirst = navTabbingResultFirst; - NavWindowingTarget = navWindowingTarget; - NavWindowingTargetAnim = navWindowingTargetAnim; - NavWindowingListWindow = navWindowingListWindow; - NavWindowingTimer = navWindowingTimer; - NavWindowingHighlightAlpha = navWindowingHighlightAlpha; - NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; - DimBgRatio = dimBgRatio; - MouseCursor = mouseCursor; - DragDropActive = dragDropActive ? (byte)1 : (byte)0; - DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; - DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; - DragDropSourceFlags = dragDropSourceFlags; - DragDropSourceFrameCount = dragDropSourceFrameCount; - DragDropMouseButton = dragDropMouseButton; - DragDropPayload = dragDropPayload; - DragDropTargetRect = dragDropTargetRect; - DragDropTargetId = dragDropTargetId; - DragDropAcceptFlags = dragDropAcceptFlags; - DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; - DragDropAcceptIdCurr = dragDropAcceptIdCurr; - DragDropAcceptIdPrev = dragDropAcceptIdPrev; - DragDropAcceptFrameCount = dragDropAcceptFrameCount; - DragDropHoldJustPressedId = dragDropHoldJustPressedId; - DragDropPayloadBufHeap = dragDropPayloadBufHeap; - if (dragDropPayloadBufLocal != default(Span<byte>)) - { - DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; - DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; - DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; - DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; - DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; - DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; - DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; - DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; - DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; - DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; - DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; - DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; - DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; - DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; - DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; - DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; - } - ClipperTempDataStacked = clipperTempDataStacked; - ClipperTempData = clipperTempData; - CurrentTable = currentTable; - TablesTempDataStacked = tablesTempDataStacked; - TablesTempData = tablesTempData; - Tables = tables; - TablesLastTimeActive = tablesLastTimeActive; - DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; - CurrentTabBar = currentTabBar; - TabBars = tabBars; - CurrentTabBarStack = currentTabBarStack; - ShrinkWidthBuffer = shrinkWidthBuffer; - MouseLastValidPos = mouseLastValidPos; - InputTextState = inputTextState; - InputTextPasswordFont = inputTextPasswordFont; - TempInputId = tempInputId; - ColorEditOptions = colorEditOptions; - ColorEditLastHue = colorEditLastHue; - ColorEditLastSat = colorEditLastSat; - ColorEditLastColor = colorEditLastColor; - ColorPickerRef = colorPickerRef; - ComboPreviewData = comboPreviewData; - SliderGrabClickOffset = sliderGrabClickOffset; - SliderCurrentAccum = sliderCurrentAccum; - SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccum = dragCurrentAccum; - DragSpeedDefaultRatio = dragSpeedDefaultRatio; - ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; - DisabledAlphaBackup = disabledAlphaBackup; - DisabledStackSize = disabledStackSize; - TooltipOverrideCount = tooltipOverrideCount; - TooltipSlowDelay = tooltipSlowDelay; - ClipboardHandlerData = clipboardHandlerData; - MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; - PlatformImeData = platformImeData; - PlatformImeDataPrev = platformImeDataPrev; - PlatformImeViewport = platformImeViewport; - PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; - DockContext = dockContext; - SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; - SettingsDirtyTimer = settingsDirtyTimer; - SettingsIniData = settingsIniData; - SettingsHandlers = settingsHandlers; - SettingsWindows = settingsWindows; - SettingsTables = settingsTables; - Hooks = hooks; - HookIdNext = hookIdNext; - LogEnabled = logEnabled ? (byte)1 : (byte)0; - LogType = logType; - LogFile = logFile; - LogBuffer = logBuffer; - LogNextPrefix = logNextPrefix; - LogNextSuffix = logNextSuffix; - LogLinePosY = logLinePosY; - LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; - LogDepthRef = logDepthRef; - LogDepthToExpand = logDepthToExpand; - LogDepthToExpandDefault = logDepthToExpandDefault; - DebugLogFlags = debugLogFlags; - DebugLogBuf = debugLogBuf; - DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; - DebugItemPickerBreakId = debugItemPickerBreakId; - DebugMetricsConfig = debugMetricsConfig; - DebugStackTool = debugStackTool; - if (framerateSecPerFrame != default(Span<float>)) - { - FramerateSecPerFrame_0 = framerateSecPerFrame[0]; - FramerateSecPerFrame_1 = framerateSecPerFrame[1]; - FramerateSecPerFrame_2 = framerateSecPerFrame[2]; - FramerateSecPerFrame_3 = framerateSecPerFrame[3]; - FramerateSecPerFrame_4 = framerateSecPerFrame[4]; - FramerateSecPerFrame_5 = framerateSecPerFrame[5]; - FramerateSecPerFrame_6 = framerateSecPerFrame[6]; - FramerateSecPerFrame_7 = framerateSecPerFrame[7]; - FramerateSecPerFrame_8 = framerateSecPerFrame[8]; - FramerateSecPerFrame_9 = framerateSecPerFrame[9]; - FramerateSecPerFrame_10 = framerateSecPerFrame[10]; - FramerateSecPerFrame_11 = framerateSecPerFrame[11]; - FramerateSecPerFrame_12 = framerateSecPerFrame[12]; - FramerateSecPerFrame_13 = framerateSecPerFrame[13]; - FramerateSecPerFrame_14 = framerateSecPerFrame[14]; - FramerateSecPerFrame_15 = framerateSecPerFrame[15]; - FramerateSecPerFrame_16 = framerateSecPerFrame[16]; - FramerateSecPerFrame_17 = framerateSecPerFrame[17]; - FramerateSecPerFrame_18 = framerateSecPerFrame[18]; - FramerateSecPerFrame_19 = framerateSecPerFrame[19]; - FramerateSecPerFrame_20 = framerateSecPerFrame[20]; - FramerateSecPerFrame_21 = framerateSecPerFrame[21]; - FramerateSecPerFrame_22 = framerateSecPerFrame[22]; - FramerateSecPerFrame_23 = framerateSecPerFrame[23]; - FramerateSecPerFrame_24 = framerateSecPerFrame[24]; - FramerateSecPerFrame_25 = framerateSecPerFrame[25]; - FramerateSecPerFrame_26 = framerateSecPerFrame[26]; - FramerateSecPerFrame_27 = framerateSecPerFrame[27]; - FramerateSecPerFrame_28 = framerateSecPerFrame[28]; - FramerateSecPerFrame_29 = framerateSecPerFrame[29]; - FramerateSecPerFrame_30 = framerateSecPerFrame[30]; - FramerateSecPerFrame_31 = framerateSecPerFrame[31]; - FramerateSecPerFrame_32 = framerateSecPerFrame[32]; - FramerateSecPerFrame_33 = framerateSecPerFrame[33]; - FramerateSecPerFrame_34 = framerateSecPerFrame[34]; - FramerateSecPerFrame_35 = framerateSecPerFrame[35]; - FramerateSecPerFrame_36 = framerateSecPerFrame[36]; - FramerateSecPerFrame_37 = framerateSecPerFrame[37]; - FramerateSecPerFrame_38 = framerateSecPerFrame[38]; - FramerateSecPerFrame_39 = framerateSecPerFrame[39]; - FramerateSecPerFrame_40 = framerateSecPerFrame[40]; - FramerateSecPerFrame_41 = framerateSecPerFrame[41]; - FramerateSecPerFrame_42 = framerateSecPerFrame[42]; - FramerateSecPerFrame_43 = framerateSecPerFrame[43]; - FramerateSecPerFrame_44 = framerateSecPerFrame[44]; - FramerateSecPerFrame_45 = framerateSecPerFrame[45]; - FramerateSecPerFrame_46 = framerateSecPerFrame[46]; - FramerateSecPerFrame_47 = framerateSecPerFrame[47]; - FramerateSecPerFrame_48 = framerateSecPerFrame[48]; - FramerateSecPerFrame_49 = framerateSecPerFrame[49]; - FramerateSecPerFrame_50 = framerateSecPerFrame[50]; - FramerateSecPerFrame_51 = framerateSecPerFrame[51]; - FramerateSecPerFrame_52 = framerateSecPerFrame[52]; - FramerateSecPerFrame_53 = framerateSecPerFrame[53]; - FramerateSecPerFrame_54 = framerateSecPerFrame[54]; - FramerateSecPerFrame_55 = framerateSecPerFrame[55]; - FramerateSecPerFrame_56 = framerateSecPerFrame[56]; - FramerateSecPerFrame_57 = framerateSecPerFrame[57]; - FramerateSecPerFrame_58 = framerateSecPerFrame[58]; - FramerateSecPerFrame_59 = framerateSecPerFrame[59]; - FramerateSecPerFrame_60 = framerateSecPerFrame[60]; - FramerateSecPerFrame_61 = framerateSecPerFrame[61]; - FramerateSecPerFrame_62 = framerateSecPerFrame[62]; - FramerateSecPerFrame_63 = framerateSecPerFrame[63]; - FramerateSecPerFrame_64 = framerateSecPerFrame[64]; - FramerateSecPerFrame_65 = framerateSecPerFrame[65]; - FramerateSecPerFrame_66 = framerateSecPerFrame[66]; - FramerateSecPerFrame_67 = framerateSecPerFrame[67]; - FramerateSecPerFrame_68 = framerateSecPerFrame[68]; - FramerateSecPerFrame_69 = framerateSecPerFrame[69]; - FramerateSecPerFrame_70 = framerateSecPerFrame[70]; - FramerateSecPerFrame_71 = framerateSecPerFrame[71]; - FramerateSecPerFrame_72 = framerateSecPerFrame[72]; - FramerateSecPerFrame_73 = framerateSecPerFrame[73]; - FramerateSecPerFrame_74 = framerateSecPerFrame[74]; - FramerateSecPerFrame_75 = framerateSecPerFrame[75]; - FramerateSecPerFrame_76 = framerateSecPerFrame[76]; - FramerateSecPerFrame_77 = framerateSecPerFrame[77]; - FramerateSecPerFrame_78 = framerateSecPerFrame[78]; - FramerateSecPerFrame_79 = framerateSecPerFrame[79]; - FramerateSecPerFrame_80 = framerateSecPerFrame[80]; - FramerateSecPerFrame_81 = framerateSecPerFrame[81]; - FramerateSecPerFrame_82 = framerateSecPerFrame[82]; - FramerateSecPerFrame_83 = framerateSecPerFrame[83]; - FramerateSecPerFrame_84 = framerateSecPerFrame[84]; - FramerateSecPerFrame_85 = framerateSecPerFrame[85]; - FramerateSecPerFrame_86 = framerateSecPerFrame[86]; - FramerateSecPerFrame_87 = framerateSecPerFrame[87]; - FramerateSecPerFrame_88 = framerateSecPerFrame[88]; - FramerateSecPerFrame_89 = framerateSecPerFrame[89]; - FramerateSecPerFrame_90 = framerateSecPerFrame[90]; - FramerateSecPerFrame_91 = framerateSecPerFrame[91]; - FramerateSecPerFrame_92 = framerateSecPerFrame[92]; - FramerateSecPerFrame_93 = framerateSecPerFrame[93]; - FramerateSecPerFrame_94 = framerateSecPerFrame[94]; - FramerateSecPerFrame_95 = framerateSecPerFrame[95]; - FramerateSecPerFrame_96 = framerateSecPerFrame[96]; - FramerateSecPerFrame_97 = framerateSecPerFrame[97]; - FramerateSecPerFrame_98 = framerateSecPerFrame[98]; - FramerateSecPerFrame_99 = framerateSecPerFrame[99]; - FramerateSecPerFrame_100 = framerateSecPerFrame[100]; - FramerateSecPerFrame_101 = framerateSecPerFrame[101]; - FramerateSecPerFrame_102 = framerateSecPerFrame[102]; - FramerateSecPerFrame_103 = framerateSecPerFrame[103]; - FramerateSecPerFrame_104 = framerateSecPerFrame[104]; - FramerateSecPerFrame_105 = framerateSecPerFrame[105]; - FramerateSecPerFrame_106 = framerateSecPerFrame[106]; - FramerateSecPerFrame_107 = framerateSecPerFrame[107]; - FramerateSecPerFrame_108 = framerateSecPerFrame[108]; - FramerateSecPerFrame_109 = framerateSecPerFrame[109]; - FramerateSecPerFrame_110 = framerateSecPerFrame[110]; - FramerateSecPerFrame_111 = framerateSecPerFrame[111]; - FramerateSecPerFrame_112 = framerateSecPerFrame[112]; - FramerateSecPerFrame_113 = framerateSecPerFrame[113]; - FramerateSecPerFrame_114 = framerateSecPerFrame[114]; - FramerateSecPerFrame_115 = framerateSecPerFrame[115]; - FramerateSecPerFrame_116 = framerateSecPerFrame[116]; - FramerateSecPerFrame_117 = framerateSecPerFrame[117]; - FramerateSecPerFrame_118 = framerateSecPerFrame[118]; - FramerateSecPerFrame_119 = framerateSecPerFrame[119]; - } - FramerateSecPerFrameIdx = framerateSecPerFrameIdx; - FramerateSecPerFrameCount = framerateSecPerFrameCount; - FramerateSecPerFrameAccum = framerateSecPerFrameAccum; - WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; - WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; - WantTextInputNextFrame = wantTextInputNextFrame; - TempBuffer = tempBuffer; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiContextPtr : IEquatable<ImGuiContextPtr> - { - public ImGuiContextPtr(ImGuiContext* handle) { Handle = handle; } - public ImGuiContext* Handle; - public bool IsNull => Handle == null; - public static ImGuiContextPtr Null => new ImGuiContextPtr(null); - public ImGuiContext this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiContextPtr(ImGuiContext* handle) => new ImGuiContextPtr(handle); - public static implicit operator ImGuiContext*(ImGuiContextPtr handle) => handle.Handle; - public static bool operator ==(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiContextPtr left, ImGuiContext* right) => left.Handle == right; - public static bool operator !=(ImGuiContextPtr left, ImGuiContext* right) => left.Handle != right; - public bool Equals(ImGuiContextPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiContextPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref bool Initialized => ref Unsafe.AsRef<bool>(&Handle->Initialized); - public ref bool FontAtlasOwnedByContext => ref Unsafe.AsRef<bool>(&Handle->FontAtlasOwnedByContext); - public ref ImGuiIO IO => ref Unsafe.AsRef<ImGuiIO>(&Handle->IO); - public ref ImGuiPlatformIO PlatformIO => ref Unsafe.AsRef<ImGuiPlatformIO>(&Handle->PlatformIO); - public ref ImVector<ImGuiInputEvent> InputEventsQueue => ref Unsafe.AsRef<ImVector<ImGuiInputEvent>>(&Handle->InputEventsQueue); - public ref ImVector<ImGuiInputEvent> InputEventsTrail => ref Unsafe.AsRef<ImVector<ImGuiInputEvent>>(&Handle->InputEventsTrail); - public ref ImGuiStyle Style => ref Unsafe.AsRef<ImGuiStyle>(&Handle->Style); - public ref ImGuiConfigFlags ConfigFlagsCurrFrame => ref Unsafe.AsRef<ImGuiConfigFlags>(&Handle->ConfigFlagsCurrFrame); - public ref ImGuiConfigFlags ConfigFlagsLastFrame => ref Unsafe.AsRef<ImGuiConfigFlags>(&Handle->ConfigFlagsLastFrame); - public ref ImFontPtr Font => ref Unsafe.AsRef<ImFontPtr>(&Handle->Font); - public ref float FontSize => ref Unsafe.AsRef<float>(&Handle->FontSize); - public ref float FontBaseSize => ref Unsafe.AsRef<float>(&Handle->FontBaseSize); - public ref ImDrawListSharedData DrawListSharedData => ref Unsafe.AsRef<ImDrawListSharedData>(&Handle->DrawListSharedData); - public ref double Time => ref Unsafe.AsRef<double>(&Handle->Time); - public ref int FrameCount => ref Unsafe.AsRef<int>(&Handle->FrameCount); - public ref int FrameCountEnded => ref Unsafe.AsRef<int>(&Handle->FrameCountEnded); - public ref int FrameCountPlatformEnded => ref Unsafe.AsRef<int>(&Handle->FrameCountPlatformEnded); - public ref int FrameCountRendered => ref Unsafe.AsRef<int>(&Handle->FrameCountRendered); - public ref bool WithinFrameScope => ref Unsafe.AsRef<bool>(&Handle->WithinFrameScope); - public ref bool WithinFrameScopeWithImplicitWindow => ref Unsafe.AsRef<bool>(&Handle->WithinFrameScopeWithImplicitWindow); - public ref bool WithinEndChild => ref Unsafe.AsRef<bool>(&Handle->WithinEndChild); - public ref bool GcCompactAll => ref Unsafe.AsRef<bool>(&Handle->GcCompactAll); - public ref bool TestEngineHookItems => ref Unsafe.AsRef<bool>(&Handle->TestEngineHookItems); - public void* TestEngine { get => Handle->TestEngine; set => Handle->TestEngine = value; } - public ref ImVector<ImGuiWindowPtr> Windows => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->Windows); - public ref ImVector<ImGuiWindowPtr> WindowsFocusOrder => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->WindowsFocusOrder); - public ref ImVector<ImGuiWindowPtr> WindowsTempSortBuffer => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->WindowsTempSortBuffer); - public ref ImVector<ImGuiWindowStackData> CurrentWindowStack => ref Unsafe.AsRef<ImVector<ImGuiWindowStackData>>(&Handle->CurrentWindowStack); - public ref ImGuiStorage WindowsById => ref Unsafe.AsRef<ImGuiStorage>(&Handle->WindowsById); - public ref int WindowsActiveCount => ref Unsafe.AsRef<int>(&Handle->WindowsActiveCount); - public ref Vector2 WindowsHoverPadding => ref Unsafe.AsRef<Vector2>(&Handle->WindowsHoverPadding); - public ref ImGuiWindowPtr CurrentWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->CurrentWindow); - public ref ImGuiWindowPtr HoveredWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->HoveredWindow); - public ref ImGuiWindowPtr HoveredWindowUnderMovingWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->HoveredWindowUnderMovingWindow); - public ref ImGuiDockNodePtr HoveredDockNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->HoveredDockNode); - public ref ImGuiWindowPtr MovingWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->MovingWindow); - public ref ImGuiWindowPtr WheelingWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->WheelingWindow); - public ref Vector2 WheelingWindowRefMousePos => ref Unsafe.AsRef<Vector2>(&Handle->WheelingWindowRefMousePos); - public ref float WheelingWindowTimer => ref Unsafe.AsRef<float>(&Handle->WheelingWindowTimer); - public ref uint DebugHookIdInfo => ref Unsafe.AsRef<uint>(&Handle->DebugHookIdInfo); - public ref uint HoveredId => ref Unsafe.AsRef<uint>(&Handle->HoveredId); - public ref uint HoveredIdPreviousFrame => ref Unsafe.AsRef<uint>(&Handle->HoveredIdPreviousFrame); - public ref bool HoveredIdAllowOverlap => ref Unsafe.AsRef<bool>(&Handle->HoveredIdAllowOverlap); - public ref bool HoveredIdUsingMouseWheel => ref Unsafe.AsRef<bool>(&Handle->HoveredIdUsingMouseWheel); - public ref bool HoveredIdPreviousFrameUsingMouseWheel => ref Unsafe.AsRef<bool>(&Handle->HoveredIdPreviousFrameUsingMouseWheel); - public ref bool HoveredIdDisabled => ref Unsafe.AsRef<bool>(&Handle->HoveredIdDisabled); - public ref float HoveredIdTimer => ref Unsafe.AsRef<float>(&Handle->HoveredIdTimer); - public ref float HoveredIdNotActiveTimer => ref Unsafe.AsRef<float>(&Handle->HoveredIdNotActiveTimer); - public ref uint ActiveId => ref Unsafe.AsRef<uint>(&Handle->ActiveId); - public ref uint ActiveIdIsAlive => ref Unsafe.AsRef<uint>(&Handle->ActiveIdIsAlive); - public ref float ActiveIdTimer => ref Unsafe.AsRef<float>(&Handle->ActiveIdTimer); - public ref bool ActiveIdIsJustActivated => ref Unsafe.AsRef<bool>(&Handle->ActiveIdIsJustActivated); - public ref bool ActiveIdAllowOverlap => ref Unsafe.AsRef<bool>(&Handle->ActiveIdAllowOverlap); - public ref bool ActiveIdNoClearOnFocusLoss => ref Unsafe.AsRef<bool>(&Handle->ActiveIdNoClearOnFocusLoss); - public ref bool ActiveIdHasBeenPressedBefore => ref Unsafe.AsRef<bool>(&Handle->ActiveIdHasBeenPressedBefore); - public ref bool ActiveIdHasBeenEditedBefore => ref Unsafe.AsRef<bool>(&Handle->ActiveIdHasBeenEditedBefore); - public ref bool ActiveIdHasBeenEditedThisFrame => ref Unsafe.AsRef<bool>(&Handle->ActiveIdHasBeenEditedThisFrame); - public ref Vector2 ActiveIdClickOffset => ref Unsafe.AsRef<Vector2>(&Handle->ActiveIdClickOffset); - public ref ImGuiWindowPtr ActiveIdWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ActiveIdWindow); - public ref ImGuiInputSource ActiveIdSource => ref Unsafe.AsRef<ImGuiInputSource>(&Handle->ActiveIdSource); - public ref int ActiveIdMouseButton => ref Unsafe.AsRef<int>(&Handle->ActiveIdMouseButton); - public ref uint ActiveIdPreviousFrame => ref Unsafe.AsRef<uint>(&Handle->ActiveIdPreviousFrame); - public ref bool ActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef<bool>(&Handle->ActiveIdPreviousFrameIsAlive); - public ref bool ActiveIdPreviousFrameHasBeenEditedBefore => ref Unsafe.AsRef<bool>(&Handle->ActiveIdPreviousFrameHasBeenEditedBefore); - public ref ImGuiWindowPtr ActiveIdPreviousFrameWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ActiveIdPreviousFrameWindow); - public ref uint LastActiveId => ref Unsafe.AsRef<uint>(&Handle->LastActiveId); - public ref float LastActiveIdTimer => ref Unsafe.AsRef<float>(&Handle->LastActiveIdTimer); - public ref bool ActiveIdUsingMouseWheel => ref Unsafe.AsRef<bool>(&Handle->ActiveIdUsingMouseWheel); - public ref uint ActiveIdUsingNavDirMask => ref Unsafe.AsRef<uint>(&Handle->ActiveIdUsingNavDirMask); - public ref uint ActiveIdUsingNavInputMask => ref Unsafe.AsRef<uint>(&Handle->ActiveIdUsingNavInputMask); - public ref ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN ActiveIdUsingKeyInputMask => ref Unsafe.AsRef<ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN>(&Handle->ActiveIdUsingKeyInputMask); - public ref ImGuiItemFlags CurrentItemFlags => ref Unsafe.AsRef<ImGuiItemFlags>(&Handle->CurrentItemFlags); - public ref ImGuiNextItemData NextItemData => ref Unsafe.AsRef<ImGuiNextItemData>(&Handle->NextItemData); - public ref ImGuiLastItemData LastItemData => ref Unsafe.AsRef<ImGuiLastItemData>(&Handle->LastItemData); - public ref ImGuiNextWindowData NextWindowData => ref Unsafe.AsRef<ImGuiNextWindowData>(&Handle->NextWindowData); - public ref ImVector<ImGuiColorMod> ColorStack => ref Unsafe.AsRef<ImVector<ImGuiColorMod>>(&Handle->ColorStack); - public ref ImVector<ImGuiStyleMod> StyleVarStack => ref Unsafe.AsRef<ImVector<ImGuiStyleMod>>(&Handle->StyleVarStack); - public ref ImVector<ImFontPtr> FontStack => ref Unsafe.AsRef<ImVector<ImFontPtr>>(&Handle->FontStack); - public ref ImVector<uint> FocusScopeStack => ref Unsafe.AsRef<ImVector<uint>>(&Handle->FocusScopeStack); - public ref ImVector<ImGuiItemFlags> ItemFlagsStack => ref Unsafe.AsRef<ImVector<ImGuiItemFlags>>(&Handle->ItemFlagsStack); - public ref ImVector<ImGuiGroupData> GroupStack => ref Unsafe.AsRef<ImVector<ImGuiGroupData>>(&Handle->GroupStack); - public ref ImVector<ImGuiPopupData> OpenPopupStack => ref Unsafe.AsRef<ImVector<ImGuiPopupData>>(&Handle->OpenPopupStack); - public ref ImVector<ImGuiPopupData> BeginPopupStack => ref Unsafe.AsRef<ImVector<ImGuiPopupData>>(&Handle->BeginPopupStack); - public ref int BeginMenuCount => ref Unsafe.AsRef<int>(&Handle->BeginMenuCount); - public ref ImVector<ImGuiViewportPPtr> Viewports => ref Unsafe.AsRef<ImVector<ImGuiViewportPPtr>>(&Handle->Viewports); - public ref float CurrentDpiScale => ref Unsafe.AsRef<float>(&Handle->CurrentDpiScale); - public ref ImGuiViewportPPtr CurrentViewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->CurrentViewport); - public ref ImGuiViewportPPtr MouseViewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->MouseViewport); - public ref ImGuiViewportPPtr MouseLastHoveredViewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->MouseLastHoveredViewport); - public ref uint PlatformLastFocusedViewportId => ref Unsafe.AsRef<uint>(&Handle->PlatformLastFocusedViewportId); - public ref ImGuiPlatformMonitor FallbackMonitor => ref Unsafe.AsRef<ImGuiPlatformMonitor>(&Handle->FallbackMonitor); - public ref int ViewportFrontMostStampCount => ref Unsafe.AsRef<int>(&Handle->ViewportFrontMostStampCount); - public ref ImGuiWindowPtr NavWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindow); - public ref uint NavId => ref Unsafe.AsRef<uint>(&Handle->NavId); - public ref uint NavFocusScopeId => ref Unsafe.AsRef<uint>(&Handle->NavFocusScopeId); - public ref uint NavActivateId => ref Unsafe.AsRef<uint>(&Handle->NavActivateId); - public ref uint NavActivateDownId => ref Unsafe.AsRef<uint>(&Handle->NavActivateDownId); - public ref uint NavActivatePressedId => ref Unsafe.AsRef<uint>(&Handle->NavActivatePressedId); - public ref uint NavActivateInputId => ref Unsafe.AsRef<uint>(&Handle->NavActivateInputId); - public ref ImGuiActivateFlags NavActivateFlags => ref Unsafe.AsRef<ImGuiActivateFlags>(&Handle->NavActivateFlags); - public ref uint NavJustMovedToId => ref Unsafe.AsRef<uint>(&Handle->NavJustMovedToId); - public ref uint NavJustMovedToFocusScopeId => ref Unsafe.AsRef<uint>(&Handle->NavJustMovedToFocusScopeId); - public ref ImGuiModFlags NavJustMovedToKeyMods => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->NavJustMovedToKeyMods); - public ref uint NavNextActivateId => ref Unsafe.AsRef<uint>(&Handle->NavNextActivateId); - public ref ImGuiActivateFlags NavNextActivateFlags => ref Unsafe.AsRef<ImGuiActivateFlags>(&Handle->NavNextActivateFlags); - public ref ImGuiInputSource NavInputSource => ref Unsafe.AsRef<ImGuiInputSource>(&Handle->NavInputSource); - public ref ImGuiNavLayer NavLayer => ref Unsafe.AsRef<ImGuiNavLayer>(&Handle->NavLayer); - public ref bool NavIdIsAlive => ref Unsafe.AsRef<bool>(&Handle->NavIdIsAlive); - public ref bool NavMousePosDirty => ref Unsafe.AsRef<bool>(&Handle->NavMousePosDirty); - public ref bool NavDisableHighlight => ref Unsafe.AsRef<bool>(&Handle->NavDisableHighlight); - public ref bool NavDisableMouseHover => ref Unsafe.AsRef<bool>(&Handle->NavDisableMouseHover); - public ref bool NavAnyRequest => ref Unsafe.AsRef<bool>(&Handle->NavAnyRequest); - public ref bool NavInitRequest => ref Unsafe.AsRef<bool>(&Handle->NavInitRequest); - public ref bool NavInitRequestFromMove => ref Unsafe.AsRef<bool>(&Handle->NavInitRequestFromMove); - public ref uint NavInitResultId => ref Unsafe.AsRef<uint>(&Handle->NavInitResultId); - public ref ImRect NavInitResultRectRel => ref Unsafe.AsRef<ImRect>(&Handle->NavInitResultRectRel); - public ref bool NavMoveSubmitted => ref Unsafe.AsRef<bool>(&Handle->NavMoveSubmitted); - public ref bool NavMoveScoringItems => ref Unsafe.AsRef<bool>(&Handle->NavMoveScoringItems); - public ref bool NavMoveForwardToNextFrame => ref Unsafe.AsRef<bool>(&Handle->NavMoveForwardToNextFrame); - public ref ImGuiNavMoveFlags NavMoveFlags => ref Unsafe.AsRef<ImGuiNavMoveFlags>(&Handle->NavMoveFlags); - public ref ImGuiScrollFlags NavMoveScrollFlags => ref Unsafe.AsRef<ImGuiScrollFlags>(&Handle->NavMoveScrollFlags); - public ref ImGuiModFlags NavMoveKeyMods => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->NavMoveKeyMods); - public ref ImGuiDir NavMoveDir => ref Unsafe.AsRef<ImGuiDir>(&Handle->NavMoveDir); - public ref ImGuiDir NavMoveDirForDebug => ref Unsafe.AsRef<ImGuiDir>(&Handle->NavMoveDirForDebug); - public ref ImGuiDir NavMoveClipDir => ref Unsafe.AsRef<ImGuiDir>(&Handle->NavMoveClipDir); - public ref ImRect NavScoringRect => ref Unsafe.AsRef<ImRect>(&Handle->NavScoringRect); - public ref ImRect NavScoringNoClipRect => ref Unsafe.AsRef<ImRect>(&Handle->NavScoringNoClipRect); - public ref int NavScoringDebugCount => ref Unsafe.AsRef<int>(&Handle->NavScoringDebugCount); - public ref int NavTabbingDir => ref Unsafe.AsRef<int>(&Handle->NavTabbingDir); - public ref int NavTabbingCounter => ref Unsafe.AsRef<int>(&Handle->NavTabbingCounter); - public ref ImGuiNavItemData NavMoveResultLocal => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavMoveResultLocal); - public ref ImGuiNavItemData NavMoveResultLocalVisible => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavMoveResultLocalVisible); - public ref ImGuiNavItemData NavMoveResultOther => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavMoveResultOther); - public ref ImGuiNavItemData NavTabbingResultFirst => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavTabbingResultFirst); - public ref ImGuiWindowPtr NavWindowingTarget => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindowingTarget); - public ref ImGuiWindowPtr NavWindowingTargetAnim => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindowingTargetAnim); - public ref ImGuiWindowPtr NavWindowingListWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindowingListWindow); - public ref float NavWindowingTimer => ref Unsafe.AsRef<float>(&Handle->NavWindowingTimer); - public ref float NavWindowingHighlightAlpha => ref Unsafe.AsRef<float>(&Handle->NavWindowingHighlightAlpha); - public ref bool NavWindowingToggleLayer => ref Unsafe.AsRef<bool>(&Handle->NavWindowingToggleLayer); - public ref float DimBgRatio => ref Unsafe.AsRef<float>(&Handle->DimBgRatio); - public ref ImGuiMouseCursor MouseCursor => ref Unsafe.AsRef<ImGuiMouseCursor>(&Handle->MouseCursor); - public ref bool DragDropActive => ref Unsafe.AsRef<bool>(&Handle->DragDropActive); - public ref bool DragDropWithinSource => ref Unsafe.AsRef<bool>(&Handle->DragDropWithinSource); - public ref bool DragDropWithinTarget => ref Unsafe.AsRef<bool>(&Handle->DragDropWithinTarget); - public ref ImGuiDragDropFlags DragDropSourceFlags => ref Unsafe.AsRef<ImGuiDragDropFlags>(&Handle->DragDropSourceFlags); - public ref int DragDropSourceFrameCount => ref Unsafe.AsRef<int>(&Handle->DragDropSourceFrameCount); - public ref int DragDropMouseButton => ref Unsafe.AsRef<int>(&Handle->DragDropMouseButton); - public ref ImGuiPayload DragDropPayload => ref Unsafe.AsRef<ImGuiPayload>(&Handle->DragDropPayload); - public ref ImRect DragDropTargetRect => ref Unsafe.AsRef<ImRect>(&Handle->DragDropTargetRect); - public ref uint DragDropTargetId => ref Unsafe.AsRef<uint>(&Handle->DragDropTargetId); - public ref ImGuiDragDropFlags DragDropAcceptFlags => ref Unsafe.AsRef<ImGuiDragDropFlags>(&Handle->DragDropAcceptFlags); - public ref float DragDropAcceptIdCurrRectSurface => ref Unsafe.AsRef<float>(&Handle->DragDropAcceptIdCurrRectSurface); - public ref uint DragDropAcceptIdCurr => ref Unsafe.AsRef<uint>(&Handle->DragDropAcceptIdCurr); - public ref uint DragDropAcceptIdPrev => ref Unsafe.AsRef<uint>(&Handle->DragDropAcceptIdPrev); - public ref int DragDropAcceptFrameCount => ref Unsafe.AsRef<int>(&Handle->DragDropAcceptFrameCount); - public ref uint DragDropHoldJustPressedId => ref Unsafe.AsRef<uint>(&Handle->DragDropHoldJustPressedId); - public ref ImVector<byte> DragDropPayloadBufHeap => ref Unsafe.AsRef<ImVector<byte>>(&Handle->DragDropPayloadBufHeap); - public unsafe Span<byte> DragDropPayloadBufLocal - { - get - { - return new Span<byte>(&Handle->DragDropPayloadBufLocal_0, 16); - } - } - public ref int ClipperTempDataStacked => ref Unsafe.AsRef<int>(&Handle->ClipperTempDataStacked); - public ref ImVector<ImGuiListClipperData> ClipperTempData => ref Unsafe.AsRef<ImVector<ImGuiListClipperData>>(&Handle->ClipperTempData); - public ref ImGuiTablePtr CurrentTable => ref Unsafe.AsRef<ImGuiTablePtr>(&Handle->CurrentTable); - public ref int TablesTempDataStacked => ref Unsafe.AsRef<int>(&Handle->TablesTempDataStacked); - public ref ImVector<ImGuiTableTempData> TablesTempData => ref Unsafe.AsRef<ImVector<ImGuiTableTempData>>(&Handle->TablesTempData); - public ref ImPoolImGuiTable Tables => ref Unsafe.AsRef<ImPoolImGuiTable>(&Handle->Tables); - public ref ImVector<float> TablesLastTimeActive => ref Unsafe.AsRef<ImVector<float>>(&Handle->TablesLastTimeActive); - public ref ImVector<ImDrawChannel> DrawChannelsTempMergeBuffer => ref Unsafe.AsRef<ImVector<ImDrawChannel>>(&Handle->DrawChannelsTempMergeBuffer); - public ref ImGuiTabBarPtr CurrentTabBar => ref Unsafe.AsRef<ImGuiTabBarPtr>(&Handle->CurrentTabBar); - public ref ImPoolImGuiTabBar TabBars => ref Unsafe.AsRef<ImPoolImGuiTabBar>(&Handle->TabBars); - public ref ImVector<ImGuiPtrOrIndex> CurrentTabBarStack => ref Unsafe.AsRef<ImVector<ImGuiPtrOrIndex>>(&Handle->CurrentTabBarStack); - public ref ImVector<ImGuiShrinkWidthItem> ShrinkWidthBuffer => ref Unsafe.AsRef<ImVector<ImGuiShrinkWidthItem>>(&Handle->ShrinkWidthBuffer); - public ref Vector2 MouseLastValidPos => ref Unsafe.AsRef<Vector2>(&Handle->MouseLastValidPos); - public ref ImGuiInputTextState InputTextState => ref Unsafe.AsRef<ImGuiInputTextState>(&Handle->InputTextState); - public ref ImFont InputTextPasswordFont => ref Unsafe.AsRef<ImFont>(&Handle->InputTextPasswordFont); - public ref uint TempInputId => ref Unsafe.AsRef<uint>(&Handle->TempInputId); - public ref ImGuiColorEditFlags ColorEditOptions => ref Unsafe.AsRef<ImGuiColorEditFlags>(&Handle->ColorEditOptions); - public ref float ColorEditLastHue => ref Unsafe.AsRef<float>(&Handle->ColorEditLastHue); - public ref float ColorEditLastSat => ref Unsafe.AsRef<float>(&Handle->ColorEditLastSat); - public ref uint ColorEditLastColor => ref Unsafe.AsRef<uint>(&Handle->ColorEditLastColor); - public ref Vector4 ColorPickerRef => ref Unsafe.AsRef<Vector4>(&Handle->ColorPickerRef); - public ref ImGuiComboPreviewData ComboPreviewData => ref Unsafe.AsRef<ImGuiComboPreviewData>(&Handle->ComboPreviewData); - public ref float SliderGrabClickOffset => ref Unsafe.AsRef<float>(&Handle->SliderGrabClickOffset); - public ref float SliderCurrentAccum => ref Unsafe.AsRef<float>(&Handle->SliderCurrentAccum); - public ref bool SliderCurrentAccumDirty => ref Unsafe.AsRef<bool>(&Handle->SliderCurrentAccumDirty); - public ref bool DragCurrentAccumDirty => ref Unsafe.AsRef<bool>(&Handle->DragCurrentAccumDirty); - public ref float DragCurrentAccum => ref Unsafe.AsRef<float>(&Handle->DragCurrentAccum); - public ref float DragSpeedDefaultRatio => ref Unsafe.AsRef<float>(&Handle->DragSpeedDefaultRatio); - public ref float ScrollbarClickDeltaToGrabCenter => ref Unsafe.AsRef<float>(&Handle->ScrollbarClickDeltaToGrabCenter); - public ref float DisabledAlphaBackup => ref Unsafe.AsRef<float>(&Handle->DisabledAlphaBackup); - public ref short DisabledStackSize => ref Unsafe.AsRef<short>(&Handle->DisabledStackSize); - public ref short TooltipOverrideCount => ref Unsafe.AsRef<short>(&Handle->TooltipOverrideCount); - public ref float TooltipSlowDelay => ref Unsafe.AsRef<float>(&Handle->TooltipSlowDelay); - public ref ImVector<byte> ClipboardHandlerData => ref Unsafe.AsRef<ImVector<byte>>(&Handle->ClipboardHandlerData); - public ref ImVector<uint> MenusIdSubmittedThisFrame => ref Unsafe.AsRef<ImVector<uint>>(&Handle->MenusIdSubmittedThisFrame); - public ref ImGuiPlatformImeData PlatformImeData => ref Unsafe.AsRef<ImGuiPlatformImeData>(&Handle->PlatformImeData); - public ref ImGuiPlatformImeData PlatformImeDataPrev => ref Unsafe.AsRef<ImGuiPlatformImeData>(&Handle->PlatformImeDataPrev); - public ref uint PlatformImeViewport => ref Unsafe.AsRef<uint>(&Handle->PlatformImeViewport); - public ref byte PlatformLocaleDecimalPoint => ref Unsafe.AsRef<byte>(&Handle->PlatformLocaleDecimalPoint); - public ref ImGuiDockContext DockContext => ref Unsafe.AsRef<ImGuiDockContext>(&Handle->DockContext); - public ref bool SettingsLoaded => ref Unsafe.AsRef<bool>(&Handle->SettingsLoaded); - public ref float SettingsDirtyTimer => ref Unsafe.AsRef<float>(&Handle->SettingsDirtyTimer); - public ref ImGuiTextBuffer SettingsIniData => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->SettingsIniData); - public ref ImVector<ImGuiSettingsHandler> SettingsHandlers => ref Unsafe.AsRef<ImVector<ImGuiSettingsHandler>>(&Handle->SettingsHandlers); - public ref ImChunkStreamImGuiWindowSettings SettingsWindows => ref Unsafe.AsRef<ImChunkStreamImGuiWindowSettings>(&Handle->SettingsWindows); - public ref ImChunkStreamImGuiTableSettings SettingsTables => ref Unsafe.AsRef<ImChunkStreamImGuiTableSettings>(&Handle->SettingsTables); - public ref ImVector<ImGuiContextHook> Hooks => ref Unsafe.AsRef<ImVector<ImGuiContextHook>>(&Handle->Hooks); - public ref uint HookIdNext => ref Unsafe.AsRef<uint>(&Handle->HookIdNext); - public ref bool LogEnabled => ref Unsafe.AsRef<bool>(&Handle->LogEnabled); - public ref ImGuiLogType LogType => ref Unsafe.AsRef<ImGuiLogType>(&Handle->LogType); - public ref ImFileHandle LogFile => ref Unsafe.AsRef<ImFileHandle>(&Handle->LogFile); - public ref ImGuiTextBuffer LogBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->LogBuffer); - public byte* LogNextPrefix { get => Handle->LogNextPrefix; set => Handle->LogNextPrefix = value; } - public byte* LogNextSuffix { get => Handle->LogNextSuffix; set => Handle->LogNextSuffix = value; } - public ref float LogLinePosY => ref Unsafe.AsRef<float>(&Handle->LogLinePosY); - public ref bool LogLineFirstItem => ref Unsafe.AsRef<bool>(&Handle->LogLineFirstItem); - public ref int LogDepthRef => ref Unsafe.AsRef<int>(&Handle->LogDepthRef); - public ref int LogDepthToExpand => ref Unsafe.AsRef<int>(&Handle->LogDepthToExpand); - public ref int LogDepthToExpandDefault => ref Unsafe.AsRef<int>(&Handle->LogDepthToExpandDefault); - public ref ImGuiDebugLogFlags DebugLogFlags => ref Unsafe.AsRef<ImGuiDebugLogFlags>(&Handle->DebugLogFlags); - public ref ImGuiTextBuffer DebugLogBuf => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->DebugLogBuf); - public ref bool DebugItemPickerActive => ref Unsafe.AsRef<bool>(&Handle->DebugItemPickerActive); - public ref uint DebugItemPickerBreakId => ref Unsafe.AsRef<uint>(&Handle->DebugItemPickerBreakId); - public ref ImGuiMetricsConfig DebugMetricsConfig => ref Unsafe.AsRef<ImGuiMetricsConfig>(&Handle->DebugMetricsConfig); - public ref ImGuiStackTool DebugStackTool => ref Unsafe.AsRef<ImGuiStackTool>(&Handle->DebugStackTool); - public unsafe Span<float> FramerateSecPerFrame - { - get - { - return new Span<float>(&Handle->FramerateSecPerFrame_0, 120); - } - } - public ref int FramerateSecPerFrameIdx => ref Unsafe.AsRef<int>(&Handle->FramerateSecPerFrameIdx); - public ref int FramerateSecPerFrameCount => ref Unsafe.AsRef<int>(&Handle->FramerateSecPerFrameCount); - public ref float FramerateSecPerFrameAccum => ref Unsafe.AsRef<float>(&Handle->FramerateSecPerFrameAccum); - public ref int WantCaptureMouseNextFrame => ref Unsafe.AsRef<int>(&Handle->WantCaptureMouseNextFrame); - public ref int WantCaptureKeyboardNextFrame => ref Unsafe.AsRef<int>(&Handle->WantCaptureKeyboardNextFrame); - public ref int WantTextInputNextFrame => ref Unsafe.AsRef<int>(&Handle->WantTextInputNextFrame); - public ref ImVector<byte> TempBuffer => ref Unsafe.AsRef<ImVector<byte>>(&Handle->TempBuffer); - } -} -/* ImGuiContextHook.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiContextHook - { - public uint HookId; - public ImGuiContextHookType Type; - public uint Owner; - public unsafe void* Callback; - public unsafe void* UserData; - public unsafe ImGuiContextHook(uint hookId = default, ImGuiContextHookType type = default, uint owner = default, ImGuiContextHookCallback callback = default, void* userData = default) - { - HookId = hookId; - Type = type; - Owner = owner; - Callback = (void*)Marshal.GetFunctionPointerForDelegate(callback); - UserData = userData; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiContextHookPtr : IEquatable<ImGuiContextHookPtr> - { - public ImGuiContextHookPtr(ImGuiContextHook* handle) { Handle = handle; } - public ImGuiContextHook* Handle; - public bool IsNull => Handle == null; - public static ImGuiContextHookPtr Null => new ImGuiContextHookPtr(null); - public ImGuiContextHook this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiContextHookPtr(ImGuiContextHook* handle) => new ImGuiContextHookPtr(handle); - public static implicit operator ImGuiContextHook*(ImGuiContextHookPtr handle) => handle.Handle; - public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle == right; - public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle != right; - public bool Equals(ImGuiContextHookPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiContextHookPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiContextHookPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint HookId => ref Unsafe.AsRef<uint>(&Handle->HookId); - public ref ImGuiContextHookType Type => ref Unsafe.AsRef<ImGuiContextHookType>(&Handle->Type); - public ref uint Owner => ref Unsafe.AsRef<uint>(&Handle->Owner); - public void* Callback { get => Handle->Callback; set => Handle->Callback = value; } - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - } -} -/* ImGuiDataTypeInfo.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDataTypeInfo - { - public nuint Size; - public unsafe byte* Name; - public unsafe byte* PrintFmt; - public unsafe byte* ScanFmt; - public unsafe ImGuiDataTypeInfo(nuint size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) - { - Size = size; - Name = name; - PrintFmt = printFmt; - ScanFmt = scanFmt; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiDataTypeInfoPtr : IEquatable<ImGuiDataTypeInfoPtr> - { - public ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) { Handle = handle; } - public ImGuiDataTypeInfo* Handle; - public bool IsNull => Handle == null; - public static ImGuiDataTypeInfoPtr Null => new ImGuiDataTypeInfoPtr(null); - public ImGuiDataTypeInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) => new ImGuiDataTypeInfoPtr(handle); - public static implicit operator ImGuiDataTypeInfo*(ImGuiDataTypeInfoPtr handle) => handle.Handle; - public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle == right; - public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle != right; - public bool Equals(ImGuiDataTypeInfoPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiDataTypeInfoPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiDataTypeInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref nuint Size => ref Unsafe.AsRef<nuint>(&Handle->Size); - public byte* Name { get => Handle->Name; set => Handle->Name = value; } - public byte* PrintFmt { get => Handle->PrintFmt; set => Handle->PrintFmt = value; } - public byte* ScanFmt { get => Handle->ScanFmt; set => Handle->ScanFmt = value; } - } -} -/* ImGuiDataTypeTempStorage.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDataTypeTempStorage - { - public byte Data_0; - public byte Data_1; - public byte Data_2; - public byte Data_3; - public byte Data_4; - public byte Data_5; - public byte Data_6; - public byte Data_7; - public unsafe ImGuiDataTypeTempStorage(byte* data = default) - { - if (data != default(byte*)) - { - Data_0 = data[0]; - Data_1 = data[1]; - Data_2 = data[2]; - Data_3 = data[3]; - Data_4 = data[4]; - Data_5 = data[5]; - Data_6 = data[6]; - Data_7 = data[7]; - } - } - public unsafe ImGuiDataTypeTempStorage(Span<byte> data = default) - { - if (data != default(Span<byte>)) - { - Data_0 = data[0]; - Data_1 = data[1]; - Data_2 = data[2]; - Data_3 = data[3]; - Data_4 = data[4]; - Data_5 = data[5]; - Data_6 = data[6]; - Data_7 = data[7]; - } - } - } -} -/* ImGuiDockContext.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockContext - { - public ImGuiStorage Nodes; - public ImVector<ImGuiDockRequest> Requests; - public ImVector<ImGuiDockNodeSettings> NodesSettings; - public byte WantFullRebuild; - public unsafe ImGuiDockContext(ImGuiStorage nodes = default, ImVector<ImGuiDockRequest> requests = default, ImVector<ImGuiDockNodeSettings> nodesSettings = default, bool wantFullRebuild = default) - { - Nodes = nodes; - Requests = requests; - NodesSettings = nodesSettings; - WantFullRebuild = wantFullRebuild ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiDockContextPtr : IEquatable<ImGuiDockContextPtr> - { - public ImGuiDockContextPtr(ImGuiDockContext* handle) { Handle = handle; } - public ImGuiDockContext* Handle; - public bool IsNull => Handle == null; - public static ImGuiDockContextPtr Null => new ImGuiDockContextPtr(null); - public ImGuiDockContext this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiDockContextPtr(ImGuiDockContext* handle) => new ImGuiDockContextPtr(handle); - public static implicit operator ImGuiDockContext*(ImGuiDockContextPtr handle) => handle.Handle; - public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle == right; - public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle != right; - public bool Equals(ImGuiDockContextPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiDockContextPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiDockContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiStorage Nodes => ref Unsafe.AsRef<ImGuiStorage>(&Handle->Nodes); - public ref ImVector<ImGuiDockRequest> Requests => ref Unsafe.AsRef<ImVector<ImGuiDockRequest>>(&Handle->Requests); - public ref ImVector<ImGuiDockNodeSettings> NodesSettings => ref Unsafe.AsRef<ImVector<ImGuiDockNodeSettings>>(&Handle->NodesSettings); - public ref bool WantFullRebuild => ref Unsafe.AsRef<bool>(&Handle->WantFullRebuild); - } -} -/* ImGuiDockNode.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockNode - { - public uint ID; - public ImGuiDockNodeFlags SharedFlags; - public ImGuiDockNodeFlags LocalFlags; - public ImGuiDockNodeFlags LocalFlagsInWindows; - public ImGuiDockNodeFlags MergedFlags; - public ImGuiDockNodeState State; - public unsafe ImGuiDockNode* ParentNode; - public unsafe ImGuiDockNode* ChildNodes_0; - public unsafe ImGuiDockNode* ChildNodes_1; - public ImVector<ImGuiWindowPtr> Windows; - public unsafe ImGuiTabBar* TabBar; - public Vector2 Pos; - public Vector2 Size; - public Vector2 SizeRef; - public ImGuiAxis SplitAxis; - public ImGuiWindowClass WindowClass; - public uint LastBgColor; - public unsafe ImGuiWindow* HostWindow; - public unsafe ImGuiWindow* VisibleWindow; - public unsafe ImGuiDockNode* CentralNode; - public unsafe ImGuiDockNode* OnlyNodeWithWindows; - public int CountNodeWithWindows; - public int LastFrameAlive; - public int LastFrameActive; - public int LastFrameFocused; - public uint LastFocusedNodeId; - public uint SelectedTabId; - public uint WantCloseTabId; - public ImGuiDataAuthority RawBits0; - public bool RawBits1; - public bool RawBits2; - public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, ImGuiDockNode** childNodes = default, ImVector<ImGuiWindowPtr> windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) - { - ID = id; - SharedFlags = sharedFlags; - LocalFlags = localFlags; - LocalFlagsInWindows = localFlagsInWindows; - MergedFlags = mergedFlags; - State = state; - ParentNode = parentNode; - if (childNodes != default(ImGuiDockNode**)) - { - ChildNodes_0 = childNodes[0]; - ChildNodes_1 = childNodes[1]; - } - Windows = windows; - TabBar = tabBar; - Pos = pos; - Size = size; - SizeRef = sizeRef; - SplitAxis = splitAxis; - WindowClass = windowClass; - LastBgColor = lastBgColor; - HostWindow = hostWindow; - VisibleWindow = visibleWindow; - CentralNode = centralNode; - OnlyNodeWithWindows = onlyNodeWithWindows; - CountNodeWithWindows = countNodeWithWindows; - LastFrameAlive = lastFrameAlive; - LastFrameActive = lastFrameActive; - LastFrameFocused = lastFrameFocused; - LastFocusedNodeId = lastFocusedNodeId; - SelectedTabId = selectedTabId; - WantCloseTabId = wantCloseTabId; - AuthorityForPos = authorityForPos; - AuthorityForSize = authorityForSize; - AuthorityForViewport = authorityForViewport; - IsVisible = isVisible; - IsFocused = isFocused; - IsBgDrawnThisFrame = isBgDrawnThisFrame; - HasCloseButton = hasCloseButton; - HasWindowMenuButton = hasWindowMenuButton; - HasCentralNodeChild = hasCentralNodeChild; - WantCloseAll = wantCloseAll; - WantLockSizeOnce = wantLockSizeOnce; - WantMouseMove = wantMouseMove; - WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; - WantHiddenTabBarToggle = wantHiddenTabBarToggle; - } - public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, Span<Pointer<ImGuiDockNode>> childNodes = default, ImVector<ImGuiWindowPtr> windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) - { - ID = id; - SharedFlags = sharedFlags; - LocalFlags = localFlags; - LocalFlagsInWindows = localFlagsInWindows; - MergedFlags = mergedFlags; - State = state; - ParentNode = parentNode; - if (childNodes != default(Span<Pointer<ImGuiDockNode>>)) - { - ChildNodes_0 = childNodes[0]; - ChildNodes_1 = childNodes[1]; - } - Windows = windows; - TabBar = tabBar; - Pos = pos; - Size = size; - SizeRef = sizeRef; - SplitAxis = splitAxis; - WindowClass = windowClass; - LastBgColor = lastBgColor; - HostWindow = hostWindow; - VisibleWindow = visibleWindow; - CentralNode = centralNode; - OnlyNodeWithWindows = onlyNodeWithWindows; - CountNodeWithWindows = countNodeWithWindows; - LastFrameAlive = lastFrameAlive; - LastFrameActive = lastFrameActive; - LastFrameFocused = lastFrameFocused; - LastFocusedNodeId = lastFocusedNodeId; - SelectedTabId = selectedTabId; - WantCloseTabId = wantCloseTabId; - AuthorityForPos = authorityForPos; - AuthorityForSize = authorityForSize; - AuthorityForViewport = authorityForViewport; - IsVisible = isVisible; - IsFocused = isFocused; - IsBgDrawnThisFrame = isBgDrawnThisFrame; - HasCloseButton = hasCloseButton; - HasWindowMenuButton = hasWindowMenuButton; - HasCentralNodeChild = hasCentralNodeChild; - WantCloseAll = wantCloseAll; - WantLockSizeOnce = wantLockSizeOnce; - WantMouseMove = wantMouseMove; - WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; - WantHiddenTabBarToggle = wantHiddenTabBarToggle; - } - public ImGuiDataAuthority AuthorityForPos { get => Bitfield.Get(RawBits0, 0, 3); set => Bitfield.Set(ref RawBits0, value, 0, 3); } - public ImGuiDataAuthority AuthorityForSize { get => Bitfield.Get(RawBits0, 3, 3); set => Bitfield.Set(ref RawBits0, value, 3, 3); } - public ImGuiDataAuthority AuthorityForViewport { get => Bitfield.Get(RawBits0, 6, 3); set => Bitfield.Set(ref RawBits0, value, 6, 3); } - public bool IsVisible { get => Bitfield.Get(RawBits1, 0, 1); set => Bitfield.Set(ref RawBits1, value, 0, 1); } - public bool IsFocused { get => Bitfield.Get(RawBits1, 1, 1); set => Bitfield.Set(ref RawBits1, value, 1, 1); } - public bool IsBgDrawnThisFrame { get => Bitfield.Get(RawBits1, 2, 1); set => Bitfield.Set(ref RawBits1, value, 2, 1); } - public bool HasCloseButton { get => Bitfield.Get(RawBits1, 3, 1); set => Bitfield.Set(ref RawBits1, value, 3, 1); } - public bool HasWindowMenuButton { get => Bitfield.Get(RawBits1, 4, 1); set => Bitfield.Set(ref RawBits1, value, 4, 1); } - public bool HasCentralNodeChild { get => Bitfield.Get(RawBits1, 5, 1); set => Bitfield.Set(ref RawBits1, value, 5, 1); } - public bool WantCloseAll { get => Bitfield.Get(RawBits1, 6, 1); set => Bitfield.Set(ref RawBits1, value, 6, 1); } - public bool WantLockSizeOnce { get => Bitfield.Get(RawBits1, 7, 1); set => Bitfield.Set(ref RawBits1, value, 7, 1); } - public bool WantMouseMove { get => Bitfield.Get(RawBits2, 0, 1); set => Bitfield.Set(ref RawBits2, value, 0, 1); } - public bool WantHiddenTabBarUpdate { get => Bitfield.Get(RawBits2, 1, 1); set => Bitfield.Set(ref RawBits2, value, 1, 1); } - public bool WantHiddenTabBarToggle { get => Bitfield.Get(RawBits2, 2, 1); set => Bitfield.Set(ref RawBits2, value, 2, 1); } - public unsafe Span<Pointer<ImGuiDockNode>> ChildNodes - { - get - { - fixed (ImGuiDockNode** p = &this.ChildNodes_0) - { - return new Span<Pointer<ImGuiDockNode>>(p, 2); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiDockNodePtr : IEquatable<ImGuiDockNodePtr> - { - public ImGuiDockNodePtr(ImGuiDockNode* handle) { Handle = handle; } - public ImGuiDockNode* Handle; - public bool IsNull => Handle == null; - public static ImGuiDockNodePtr Null => new ImGuiDockNodePtr(null); - public ImGuiDockNode this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiDockNodePtr(ImGuiDockNode* handle) => new ImGuiDockNodePtr(handle); - public static implicit operator ImGuiDockNode*(ImGuiDockNodePtr handle) => handle.Handle; - public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle == right; - public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle != right; - public bool Equals(ImGuiDockNodePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiDockNodePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiDockNodePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiDockNodeFlags SharedFlags => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->SharedFlags); - public ref ImGuiDockNodeFlags LocalFlags => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->LocalFlags); - public ref ImGuiDockNodeFlags LocalFlagsInWindows => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->LocalFlagsInWindows); - public ref ImGuiDockNodeFlags MergedFlags => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->MergedFlags); - public ref ImGuiDockNodeState State => ref Unsafe.AsRef<ImGuiDockNodeState>(&Handle->State); - public ref ImGuiDockNodePtr ParentNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->ParentNode); - public ref ImVector<ImGuiWindowPtr> Windows => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->Windows); - public ref ImGuiTabBarPtr TabBar => ref Unsafe.AsRef<ImGuiTabBarPtr>(&Handle->TabBar); - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - public ref Vector2 Size => ref Unsafe.AsRef<Vector2>(&Handle->Size); - public ref Vector2 SizeRef => ref Unsafe.AsRef<Vector2>(&Handle->SizeRef); - public ref ImGuiAxis SplitAxis => ref Unsafe.AsRef<ImGuiAxis>(&Handle->SplitAxis); - public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef<ImGuiWindowClass>(&Handle->WindowClass); - public ref uint LastBgColor => ref Unsafe.AsRef<uint>(&Handle->LastBgColor); - public ref ImGuiWindowPtr HostWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->HostWindow); - public ref ImGuiWindowPtr VisibleWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->VisibleWindow); - public ref ImGuiDockNodePtr CentralNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->CentralNode); - public ref ImGuiDockNodePtr OnlyNodeWithWindows => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->OnlyNodeWithWindows); - public ref int CountNodeWithWindows => ref Unsafe.AsRef<int>(&Handle->CountNodeWithWindows); - public ref int LastFrameAlive => ref Unsafe.AsRef<int>(&Handle->LastFrameAlive); - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - public ref int LastFrameFocused => ref Unsafe.AsRef<int>(&Handle->LastFrameFocused); - public ref uint LastFocusedNodeId => ref Unsafe.AsRef<uint>(&Handle->LastFocusedNodeId); - public ref uint SelectedTabId => ref Unsafe.AsRef<uint>(&Handle->SelectedTabId); - public ref uint WantCloseTabId => ref Unsafe.AsRef<uint>(&Handle->WantCloseTabId); - public ImGuiDataAuthority AuthorityForPos { get => Handle->AuthorityForPos; set => Handle->AuthorityForPos = value; } - public ImGuiDataAuthority AuthorityForSize { get => Handle->AuthorityForSize; set => Handle->AuthorityForSize = value; } - public ImGuiDataAuthority AuthorityForViewport { get => Handle->AuthorityForViewport; set => Handle->AuthorityForViewport = value; } - public bool IsVisible { get => Handle->IsVisible; set => Handle->IsVisible = value; } - public bool IsFocused { get => Handle->IsFocused; set => Handle->IsFocused = value; } - public bool IsBgDrawnThisFrame { get => Handle->IsBgDrawnThisFrame; set => Handle->IsBgDrawnThisFrame = value; } - public bool HasCloseButton { get => Handle->HasCloseButton; set => Handle->HasCloseButton = value; } - public bool HasWindowMenuButton { get => Handle->HasWindowMenuButton; set => Handle->HasWindowMenuButton = value; } - public bool HasCentralNodeChild { get => Handle->HasCentralNodeChild; set => Handle->HasCentralNodeChild = value; } - public bool WantCloseAll { get => Handle->WantCloseAll; set => Handle->WantCloseAll = value; } - public bool WantLockSizeOnce { get => Handle->WantLockSizeOnce; set => Handle->WantLockSizeOnce = value; } - public bool WantMouseMove { get => Handle->WantMouseMove; set => Handle->WantMouseMove = value; } - public bool WantHiddenTabBarUpdate { get => Handle->WantHiddenTabBarUpdate; set => Handle->WantHiddenTabBarUpdate = value; } - public bool WantHiddenTabBarToggle { get => Handle->WantHiddenTabBarToggle; set => Handle->WantHiddenTabBarToggle = value; } - } -} -/* ImGuiDockNodeSettings.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockNodeSettings - { - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiDockNodeSettingsPtr : IEquatable<ImGuiDockNodeSettingsPtr> - { - public ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) { Handle = handle; } - public ImGuiDockNodeSettings* Handle; - public bool IsNull => Handle == null; - public static ImGuiDockNodeSettingsPtr Null => new ImGuiDockNodeSettingsPtr(null); - public ImGuiDockNodeSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) => new ImGuiDockNodeSettingsPtr(handle); - public static implicit operator ImGuiDockNodeSettings*(ImGuiDockNodeSettingsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle == right; - public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle != right; - public bool Equals(ImGuiDockNodeSettingsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiDockNodeSettingsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiDockNodeSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* ImGuiDockRequest.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockRequest - { - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiDockRequestPtr : IEquatable<ImGuiDockRequestPtr> - { - public ImGuiDockRequestPtr(ImGuiDockRequest* handle) { Handle = handle; } - public ImGuiDockRequest* Handle; - public bool IsNull => Handle == null; - public static ImGuiDockRequestPtr Null => new ImGuiDockRequestPtr(null); - public ImGuiDockRequest this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiDockRequestPtr(ImGuiDockRequest* handle) => new ImGuiDockRequestPtr(handle); - public static implicit operator ImGuiDockRequest*(ImGuiDockRequestPtr handle) => handle.Handle; - public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle == right; - public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle != right; - public bool Equals(ImGuiDockRequestPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiDockRequestPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiDockRequestPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* ImGuiGroupData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiGroupData - { - public uint WindowID; - public Vector2 BackupCursorPos; - public Vector2 BackupCursorMaxPos; - public ImVec1 BackupIndent; - public ImVec1 BackupGroupOffset; - public Vector2 BackupCurrLineSize; - public float BackupCurrLineTextBaseOffset; - public uint BackupActiveIdIsAlive; - public byte BackupActiveIdPreviousFrameIsAlive; - public byte BackupHoveredIdIsAlive; - public byte EmitItem; - public unsafe ImGuiGroupData(uint windowId = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, ImVec1 backupIndent = default, ImVec1 backupGroupOffset = default, Vector2 backupCurrLineSize = default, float backupCurrLineTextBaseOffset = default, uint backupActiveIdIsAlive = default, bool backupActiveIdPreviousFrameIsAlive = default, bool backupHoveredIdIsAlive = default, bool emitItem = default) - { - WindowID = windowId; - BackupCursorPos = backupCursorPos; - BackupCursorMaxPos = backupCursorMaxPos; - BackupIndent = backupIndent; - BackupGroupOffset = backupGroupOffset; - BackupCurrLineSize = backupCurrLineSize; - BackupCurrLineTextBaseOffset = backupCurrLineTextBaseOffset; - BackupActiveIdIsAlive = backupActiveIdIsAlive; - BackupActiveIdPreviousFrameIsAlive = backupActiveIdPreviousFrameIsAlive ? (byte)1 : (byte)0; - BackupHoveredIdIsAlive = backupHoveredIdIsAlive ? (byte)1 : (byte)0; - EmitItem = emitItem ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiGroupDataPtr : IEquatable<ImGuiGroupDataPtr> - { - public ImGuiGroupDataPtr(ImGuiGroupData* handle) { Handle = handle; } - public ImGuiGroupData* Handle; - public bool IsNull => Handle == null; - public static ImGuiGroupDataPtr Null => new ImGuiGroupDataPtr(null); - public ImGuiGroupData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiGroupDataPtr(ImGuiGroupData* handle) => new ImGuiGroupDataPtr(handle); - public static implicit operator ImGuiGroupData*(ImGuiGroupDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle == right; - public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle != right; - public bool Equals(ImGuiGroupDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiGroupDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiGroupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint WindowID => ref Unsafe.AsRef<uint>(&Handle->WindowID); - public ref Vector2 BackupCursorPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPos); - public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorMaxPos); - public ref ImVec1 BackupIndent => ref Unsafe.AsRef<ImVec1>(&Handle->BackupIndent); - public ref ImVec1 BackupGroupOffset => ref Unsafe.AsRef<ImVec1>(&Handle->BackupGroupOffset); - public ref Vector2 BackupCurrLineSize => ref Unsafe.AsRef<Vector2>(&Handle->BackupCurrLineSize); - public ref float BackupCurrLineTextBaseOffset => ref Unsafe.AsRef<float>(&Handle->BackupCurrLineTextBaseOffset); - public ref uint BackupActiveIdIsAlive => ref Unsafe.AsRef<uint>(&Handle->BackupActiveIdIsAlive); - public ref bool BackupActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef<bool>(&Handle->BackupActiveIdPreviousFrameIsAlive); - public ref bool BackupHoveredIdIsAlive => ref Unsafe.AsRef<bool>(&Handle->BackupHoveredIdIsAlive); - public ref bool EmitItem => ref Unsafe.AsRef<bool>(&Handle->EmitItem); - } -} -/* ImGuiInputEvent.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEvent - { - [StructLayout(LayoutKind.Explicit)] - public partial struct ImGuiInputEventUnion - { - [FieldOffset(0)] - public ImGuiInputEventMousePos MousePos; - [FieldOffset(0)] - public ImGuiInputEventMouseWheel MouseWheel; - [FieldOffset(0)] - public ImGuiInputEventMouseButton MouseButton; - [FieldOffset(0)] - public ImGuiInputEventMouseViewport MouseViewport; - [FieldOffset(0)] - public ImGuiInputEventKey Key; - [FieldOffset(0)] - public ImGuiInputEventText Text; - [FieldOffset(0)] - public ImGuiInputEventAppFocused AppFocused; - public unsafe ImGuiInputEventUnion(ImGuiInputEventMousePos mousePos = default, ImGuiInputEventMouseWheel mouseWheel = default, ImGuiInputEventMouseButton mouseButton = default, ImGuiInputEventMouseViewport mouseViewport = default, ImGuiInputEventKey key = default, ImGuiInputEventText text = default, ImGuiInputEventAppFocused appFocused = default) - { - MousePos = mousePos; - MouseWheel = mouseWheel; - MouseButton = mouseButton; - MouseViewport = mouseViewport; - Key = key; - Text = text; - AppFocused = appFocused; - } - } - public ImGuiInputEventType Type; - public ImGuiInputSource Source; - public ImGuiInputEventUnion Union; - public byte AddedByTestEngine; - public unsafe ImGuiInputEvent(ImGuiInputEventType type = default, ImGuiInputSource source = default, ImGuiInputEventUnion union = default, bool addedByTestEngine = default) - { - Type = type; - Source = source; - Union = union; - AddedByTestEngine = addedByTestEngine ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiInputEventPtr : IEquatable<ImGuiInputEventPtr> - { - public ImGuiInputEventPtr(ImGuiInputEvent* handle) { Handle = handle; } - public ImGuiInputEvent* Handle; - public bool IsNull => Handle == null; - public static ImGuiInputEventPtr Null => new ImGuiInputEventPtr(null); - public ImGuiInputEvent this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiInputEventPtr(ImGuiInputEvent* handle) => new ImGuiInputEventPtr(handle); - public static implicit operator ImGuiInputEvent*(ImGuiInputEventPtr handle) => handle.Handle; - public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle == right; - public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle != right; - public bool Equals(ImGuiInputEventPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiInputEventPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiInputEventPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiInputEventType Type => ref Unsafe.AsRef<ImGuiInputEventType>(&Handle->Type); - public ref ImGuiInputSource Source => ref Unsafe.AsRef<ImGuiInputSource>(&Handle->Source); - public ref ImGuiInputEvent.ImGuiInputEventUnion Union => ref Unsafe.AsRef<ImGuiInputEvent.ImGuiInputEventUnion>(&Handle->Union); - public ref bool AddedByTestEngine => ref Unsafe.AsRef<bool>(&Handle->AddedByTestEngine); - } -} -/* ImGuiInputEventAppFocused.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventAppFocused - { - public byte Focused; - public unsafe ImGuiInputEventAppFocused(bool focused = default) - { - Focused = focused ? (byte)1 : (byte)0; - } - } -} -/* ImGuiInputEventKey.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventKey - { - public ImGuiKey Key; - public byte Down; - public float AnalogValue; - public unsafe ImGuiInputEventKey(ImGuiKey key = default, bool down = default, float analogValue = default) - { - Key = key; - Down = down ? (byte)1 : (byte)0; - AnalogValue = analogValue; - } - } -} -/* ImGuiInputEventMouseButton.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMouseButton - { - public int Button; - public byte Down; - public unsafe ImGuiInputEventMouseButton(int button = default, bool down = default) - { - Button = button; - Down = down ? (byte)1 : (byte)0; - } - } -} -/* ImGuiInputEventMousePos.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMousePos - { - public float PosX; - public float PosY; - public unsafe ImGuiInputEventMousePos(float posX = default, float posY = default) - { - PosX = posX; - PosY = posY; - } - } -} -/* ImGuiInputEventMouseViewport.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMouseViewport - { - public uint HoveredViewportID; - public unsafe ImGuiInputEventMouseViewport(uint hoveredViewportId = default) - { - HoveredViewportID = hoveredViewportId; - } - } -} -/* ImGuiInputEventMouseWheel.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMouseWheel - { - public float WheelX; - public float WheelY; - public unsafe ImGuiInputEventMouseWheel(float wheelX = default, float wheelY = default) - { - WheelX = wheelX; - WheelY = wheelY; - } - } -} -/* ImGuiInputEventText.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventText - { - public uint Char; - public unsafe ImGuiInputEventText(uint @char = default) - { - Char = @char; - } - } -} -/* ImGuiInputTextCallbackData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputTextCallbackData - { - public ImGuiInputTextFlags EventFlag; - public ImGuiInputTextFlags Flags; - public unsafe void* UserData; - public ushort EventChar; - public ImGuiKey EventKey; - public unsafe byte* Buf; - public int BufTextLen; - public int BufSize; - public byte BufDirty; - public int CursorPos; - public int SelectionStart; - public int SelectionEnd; - public unsafe ImGuiInputTextCallbackData(ImGuiInputTextFlags eventFlag = default, ImGuiInputTextFlags flags = default, void* userData = default, ushort eventChar = default, ImGuiKey eventKey = default, byte* buf = default, int bufTextLen = default, int bufSize = default, bool bufDirty = default, int cursorPos = default, int selectionStart = default, int selectionEnd = default) - { - EventFlag = eventFlag; - Flags = flags; - UserData = userData; - EventChar = eventChar; - EventKey = eventKey; - Buf = buf; - BufTextLen = bufTextLen; - BufSize = bufSize; - BufDirty = bufDirty ? (byte)1 : (byte)0; - CursorPos = cursorPos; - SelectionStart = selectionStart; - SelectionEnd = selectionEnd; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiInputTextCallbackDataPtr : IEquatable<ImGuiInputTextCallbackDataPtr> - { - public ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) { Handle = handle; } - public ImGuiInputTextCallbackData* Handle; - public bool IsNull => Handle == null; - public static ImGuiInputTextCallbackDataPtr Null => new ImGuiInputTextCallbackDataPtr(null); - public ImGuiInputTextCallbackData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) => new ImGuiInputTextCallbackDataPtr(handle); - public static implicit operator ImGuiInputTextCallbackData*(ImGuiInputTextCallbackDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle == right; - public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle != right; - public bool Equals(ImGuiInputTextCallbackDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiInputTextCallbackDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiInputTextCallbackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiInputTextFlags EventFlag => ref Unsafe.AsRef<ImGuiInputTextFlags>(&Handle->EventFlag); - public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef<ImGuiInputTextFlags>(&Handle->Flags); - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - public ref ushort EventChar => ref Unsafe.AsRef<ushort>(&Handle->EventChar); - public ref ImGuiKey EventKey => ref Unsafe.AsRef<ImGuiKey>(&Handle->EventKey); - public byte* Buf { get => Handle->Buf; set => Handle->Buf = value; } - public ref int BufTextLen => ref Unsafe.AsRef<int>(&Handle->BufTextLen); - public ref int BufSize => ref Unsafe.AsRef<int>(&Handle->BufSize); - public ref bool BufDirty => ref Unsafe.AsRef<bool>(&Handle->BufDirty); - public ref int CursorPos => ref Unsafe.AsRef<int>(&Handle->CursorPos); - public ref int SelectionStart => ref Unsafe.AsRef<int>(&Handle->SelectionStart); - public ref int SelectionEnd => ref Unsafe.AsRef<int>(&Handle->SelectionEnd); - } -} -/* ImGuiInputTextState.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputTextState - { - public uint ID; - public int CurLenW; - public int CurLenA; - public ImVector<ushort> TextW; - public ImVector<byte> TextA; - public ImVector<byte> InitialTextA; - public byte TextAIsValid; - public int BufCapacityA; - public float ScrollX; - public STBTexteditState Stb; - public float CursorAnim; - public byte CursorFollow; - public byte SelectedAllMouseLock; - public byte Edited; - public ImGuiInputTextFlags Flags; - public unsafe ImGuiInputTextState(uint id = default, int curLenW = default, int curLenA = default, ImVector<ushort> textW = default, ImVector<byte> textA = default, ImVector<byte> initialTextA = default, bool textAIsValid = default, int bufCapacityA = default, float scrollX = default, STBTexteditState stb = default, float cursorAnim = default, bool cursorFollow = default, bool selectedAllMouseLock = default, bool edited = default, ImGuiInputTextFlags flags = default) - { - ID = id; - CurLenW = curLenW; - CurLenA = curLenA; - TextW = textW; - TextA = textA; - InitialTextA = initialTextA; - TextAIsValid = textAIsValid ? (byte)1 : (byte)0; - BufCapacityA = bufCapacityA; - ScrollX = scrollX; - Stb = stb; - CursorAnim = cursorAnim; - CursorFollow = cursorFollow ? (byte)1 : (byte)0; - SelectedAllMouseLock = selectedAllMouseLock ? (byte)1 : (byte)0; - Edited = edited ? (byte)1 : (byte)0; - Flags = flags; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiInputTextStatePtr : IEquatable<ImGuiInputTextStatePtr> - { - public ImGuiInputTextStatePtr(ImGuiInputTextState* handle) { Handle = handle; } - public ImGuiInputTextState* Handle; - public bool IsNull => Handle == null; - public static ImGuiInputTextStatePtr Null => new ImGuiInputTextStatePtr(null); - public ImGuiInputTextState this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiInputTextStatePtr(ImGuiInputTextState* handle) => new ImGuiInputTextStatePtr(handle); - public static implicit operator ImGuiInputTextState*(ImGuiInputTextStatePtr handle) => handle.Handle; - public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle == right; - public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle != right; - public bool Equals(ImGuiInputTextStatePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiInputTextStatePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiInputTextStatePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref int CurLenW => ref Unsafe.AsRef<int>(&Handle->CurLenW); - public ref int CurLenA => ref Unsafe.AsRef<int>(&Handle->CurLenA); - public ref ImVector<ushort> TextW => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->TextW); - public ref ImVector<byte> TextA => ref Unsafe.AsRef<ImVector<byte>>(&Handle->TextA); - public ref ImVector<byte> InitialTextA => ref Unsafe.AsRef<ImVector<byte>>(&Handle->InitialTextA); - public ref bool TextAIsValid => ref Unsafe.AsRef<bool>(&Handle->TextAIsValid); - public ref int BufCapacityA => ref Unsafe.AsRef<int>(&Handle->BufCapacityA); - public ref float ScrollX => ref Unsafe.AsRef<float>(&Handle->ScrollX); - public ref STBTexteditState Stb => ref Unsafe.AsRef<STBTexteditState>(&Handle->Stb); - public ref float CursorAnim => ref Unsafe.AsRef<float>(&Handle->CursorAnim); - public ref bool CursorFollow => ref Unsafe.AsRef<bool>(&Handle->CursorFollow); - public ref bool SelectedAllMouseLock => ref Unsafe.AsRef<bool>(&Handle->SelectedAllMouseLock); - public ref bool Edited => ref Unsafe.AsRef<bool>(&Handle->Edited); - public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef<ImGuiInputTextFlags>(&Handle->Flags); - } -} -/* ImGuiIO.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiIO - { - public ImGuiConfigFlags ConfigFlags; - public ImGuiBackendFlags BackendFlags; - public Vector2 DisplaySize; - public float DeltaTime; - public float IniSavingRate; - public unsafe byte* IniFilename; - public unsafe byte* LogFilename; - public float MouseDoubleClickTime; - public float MouseDoubleClickMaxDist; - public float MouseDragThreshold; - public float KeyRepeatDelay; - public float KeyRepeatRate; - public unsafe void* UserData; - public unsafe ImFontAtlas* Fonts; - public float FontGlobalScale; - public byte FontAllowUserScaling; - public unsafe ImFont* FontDefault; - public Vector2 DisplayFramebufferScale; - public byte ConfigDockingNoSplit; - public byte ConfigDockingWithShift; - public byte ConfigDockingAlwaysTabBar; - public byte ConfigDockingTransparentPayload; - public byte ConfigViewportsNoAutoMerge; - public byte ConfigViewportsNoTaskBarIcon; - public byte ConfigViewportsNoDecoration; - public byte ConfigViewportsNoDefaultParent; - public byte MouseDrawCursor; - public byte ConfigMacOSXBehaviors; - public byte ConfigInputTrickleEventQueue; - public byte ConfigInputTextCursorBlink; - public byte ConfigDragClickToInputText; - public byte ConfigWindowsResizeFromEdges; - public byte ConfigWindowsMoveFromTitleBarOnly; - public float ConfigMemoryCompactTimer; - public unsafe byte* BackendPlatformName; - public unsafe byte* BackendRendererName; - public unsafe void* BackendPlatformUserData; - public unsafe void* BackendRendererUserData; - public unsafe void* BackendLanguageUserData; - public unsafe void* GetClipboardTextFn; - public unsafe void* SetClipboardTextFn; - public unsafe void* ClipboardUserData; - public unsafe void* SetPlatformImeDataFn; - public unsafe void* UnusedPadding; - public byte WantCaptureMouse; - public byte WantCaptureKeyboard; - public byte WantTextInput; - public byte WantSetMousePos; - public byte WantSaveIniSettings; - public byte NavActive; - public byte NavVisible; - public float Framerate; - public int MetricsRenderVertices; - public int MetricsRenderIndices; - public int MetricsRenderWindows; - public int MetricsActiveWindows; - public int MetricsActiveAllocations; - public Vector2 MouseDelta; - public int KeyMap_0; - public int KeyMap_1; - public int KeyMap_2; - public int KeyMap_3; - public int KeyMap_4; - public int KeyMap_5; - public int KeyMap_6; - public int KeyMap_7; - public int KeyMap_8; - public int KeyMap_9; - public int KeyMap_10; - public int KeyMap_11; - public int KeyMap_12; - public int KeyMap_13; - public int KeyMap_14; - public int KeyMap_15; - public int KeyMap_16; - public int KeyMap_17; - public int KeyMap_18; - public int KeyMap_19; - public int KeyMap_20; - public int KeyMap_21; - public int KeyMap_22; - public int KeyMap_23; - public int KeyMap_24; - public int KeyMap_25; - public int KeyMap_26; - public int KeyMap_27; - public int KeyMap_28; - public int KeyMap_29; - public int KeyMap_30; - public int KeyMap_31; - public int KeyMap_32; - public int KeyMap_33; - public int KeyMap_34; - public int KeyMap_35; - public int KeyMap_36; - public int KeyMap_37; - public int KeyMap_38; - public int KeyMap_39; - public int KeyMap_40; - public int KeyMap_41; - public int KeyMap_42; - public int KeyMap_43; - public int KeyMap_44; - public int KeyMap_45; - public int KeyMap_46; - public int KeyMap_47; - public int KeyMap_48; - public int KeyMap_49; - public int KeyMap_50; - public int KeyMap_51; - public int KeyMap_52; - public int KeyMap_53; - public int KeyMap_54; - public int KeyMap_55; - public int KeyMap_56; - public int KeyMap_57; - public int KeyMap_58; - public int KeyMap_59; - public int KeyMap_60; - public int KeyMap_61; - public int KeyMap_62; - public int KeyMap_63; - public int KeyMap_64; - public int KeyMap_65; - public int KeyMap_66; - public int KeyMap_67; - public int KeyMap_68; - public int KeyMap_69; - public int KeyMap_70; - public int KeyMap_71; - public int KeyMap_72; - public int KeyMap_73; - public int KeyMap_74; - public int KeyMap_75; - public int KeyMap_76; - public int KeyMap_77; - public int KeyMap_78; - public int KeyMap_79; - public int KeyMap_80; - public int KeyMap_81; - public int KeyMap_82; - public int KeyMap_83; - public int KeyMap_84; - public int KeyMap_85; - public int KeyMap_86; - public int KeyMap_87; - public int KeyMap_88; - public int KeyMap_89; - public int KeyMap_90; - public int KeyMap_91; - public int KeyMap_92; - public int KeyMap_93; - public int KeyMap_94; - public int KeyMap_95; - public int KeyMap_96; - public int KeyMap_97; - public int KeyMap_98; - public int KeyMap_99; - public int KeyMap_100; - public int KeyMap_101; - public int KeyMap_102; - public int KeyMap_103; - public int KeyMap_104; - public int KeyMap_105; - public int KeyMap_106; - public int KeyMap_107; - public int KeyMap_108; - public int KeyMap_109; - public int KeyMap_110; - public int KeyMap_111; - public int KeyMap_112; - public int KeyMap_113; - public int KeyMap_114; - public int KeyMap_115; - public int KeyMap_116; - public int KeyMap_117; - public int KeyMap_118; - public int KeyMap_119; - public int KeyMap_120; - public int KeyMap_121; - public int KeyMap_122; - public int KeyMap_123; - public int KeyMap_124; - public int KeyMap_125; - public int KeyMap_126; - public int KeyMap_127; - public int KeyMap_128; - public int KeyMap_129; - public int KeyMap_130; - public int KeyMap_131; - public int KeyMap_132; - public int KeyMap_133; - public int KeyMap_134; - public int KeyMap_135; - public int KeyMap_136; - public int KeyMap_137; - public int KeyMap_138; - public int KeyMap_139; - public int KeyMap_140; - public int KeyMap_141; - public int KeyMap_142; - public int KeyMap_143; - public int KeyMap_144; - public int KeyMap_145; - public int KeyMap_146; - public int KeyMap_147; - public int KeyMap_148; - public int KeyMap_149; - public int KeyMap_150; - public int KeyMap_151; - public int KeyMap_152; - public int KeyMap_153; - public int KeyMap_154; - public int KeyMap_155; - public int KeyMap_156; - public int KeyMap_157; - public int KeyMap_158; - public int KeyMap_159; - public int KeyMap_160; - public int KeyMap_161; - public int KeyMap_162; - public int KeyMap_163; - public int KeyMap_164; - public int KeyMap_165; - public int KeyMap_166; - public int KeyMap_167; - public int KeyMap_168; - public int KeyMap_169; - public int KeyMap_170; - public int KeyMap_171; - public int KeyMap_172; - public int KeyMap_173; - public int KeyMap_174; - public int KeyMap_175; - public int KeyMap_176; - public int KeyMap_177; - public int KeyMap_178; - public int KeyMap_179; - public int KeyMap_180; - public int KeyMap_181; - public int KeyMap_182; - public int KeyMap_183; - public int KeyMap_184; - public int KeyMap_185; - public int KeyMap_186; - public int KeyMap_187; - public int KeyMap_188; - public int KeyMap_189; - public int KeyMap_190; - public int KeyMap_191; - public int KeyMap_192; - public int KeyMap_193; - public int KeyMap_194; - public int KeyMap_195; - public int KeyMap_196; - public int KeyMap_197; - public int KeyMap_198; - public int KeyMap_199; - public int KeyMap_200; - public int KeyMap_201; - public int KeyMap_202; - public int KeyMap_203; - public int KeyMap_204; - public int KeyMap_205; - public int KeyMap_206; - public int KeyMap_207; - public int KeyMap_208; - public int KeyMap_209; - public int KeyMap_210; - public int KeyMap_211; - public int KeyMap_212; - public int KeyMap_213; - public int KeyMap_214; - public int KeyMap_215; - public int KeyMap_216; - public int KeyMap_217; - public int KeyMap_218; - public int KeyMap_219; - public int KeyMap_220; - public int KeyMap_221; - public int KeyMap_222; - public int KeyMap_223; - public int KeyMap_224; - public int KeyMap_225; - public int KeyMap_226; - public int KeyMap_227; - public int KeyMap_228; - public int KeyMap_229; - public int KeyMap_230; - public int KeyMap_231; - public int KeyMap_232; - public int KeyMap_233; - public int KeyMap_234; - public int KeyMap_235; - public int KeyMap_236; - public int KeyMap_237; - public int KeyMap_238; - public int KeyMap_239; - public int KeyMap_240; - public int KeyMap_241; - public int KeyMap_242; - public int KeyMap_243; - public int KeyMap_244; - public int KeyMap_245; - public int KeyMap_246; - public int KeyMap_247; - public int KeyMap_248; - public int KeyMap_249; - public int KeyMap_250; - public int KeyMap_251; - public int KeyMap_252; - public int KeyMap_253; - public int KeyMap_254; - public int KeyMap_255; - public int KeyMap_256; - public int KeyMap_257; - public int KeyMap_258; - public int KeyMap_259; - public int KeyMap_260; - public int KeyMap_261; - public int KeyMap_262; - public int KeyMap_263; - public int KeyMap_264; - public int KeyMap_265; - public int KeyMap_266; - public int KeyMap_267; - public int KeyMap_268; - public int KeyMap_269; - public int KeyMap_270; - public int KeyMap_271; - public int KeyMap_272; - public int KeyMap_273; - public int KeyMap_274; - public int KeyMap_275; - public int KeyMap_276; - public int KeyMap_277; - public int KeyMap_278; - public int KeyMap_279; - public int KeyMap_280; - public int KeyMap_281; - public int KeyMap_282; - public int KeyMap_283; - public int KeyMap_284; - public int KeyMap_285; - public int KeyMap_286; - public int KeyMap_287; - public int KeyMap_288; - public int KeyMap_289; - public int KeyMap_290; - public int KeyMap_291; - public int KeyMap_292; - public int KeyMap_293; - public int KeyMap_294; - public int KeyMap_295; - public int KeyMap_296; - public int KeyMap_297; - public int KeyMap_298; - public int KeyMap_299; - public int KeyMap_300; - public int KeyMap_301; - public int KeyMap_302; - public int KeyMap_303; - public int KeyMap_304; - public int KeyMap_305; - public int KeyMap_306; - public int KeyMap_307; - public int KeyMap_308; - public int KeyMap_309; - public int KeyMap_310; - public int KeyMap_311; - public int KeyMap_312; - public int KeyMap_313; - public int KeyMap_314; - public int KeyMap_315; - public int KeyMap_316; - public int KeyMap_317; - public int KeyMap_318; - public int KeyMap_319; - public int KeyMap_320; - public int KeyMap_321; - public int KeyMap_322; - public int KeyMap_323; - public int KeyMap_324; - public int KeyMap_325; - public int KeyMap_326; - public int KeyMap_327; - public int KeyMap_328; - public int KeyMap_329; - public int KeyMap_330; - public int KeyMap_331; - public int KeyMap_332; - public int KeyMap_333; - public int KeyMap_334; - public int KeyMap_335; - public int KeyMap_336; - public int KeyMap_337; - public int KeyMap_338; - public int KeyMap_339; - public int KeyMap_340; - public int KeyMap_341; - public int KeyMap_342; - public int KeyMap_343; - public int KeyMap_344; - public int KeyMap_345; - public int KeyMap_346; - public int KeyMap_347; - public int KeyMap_348; - public int KeyMap_349; - public int KeyMap_350; - public int KeyMap_351; - public int KeyMap_352; - public int KeyMap_353; - public int KeyMap_354; - public int KeyMap_355; - public int KeyMap_356; - public int KeyMap_357; - public int KeyMap_358; - public int KeyMap_359; - public int KeyMap_360; - public int KeyMap_361; - public int KeyMap_362; - public int KeyMap_363; - public int KeyMap_364; - public int KeyMap_365; - public int KeyMap_366; - public int KeyMap_367; - public int KeyMap_368; - public int KeyMap_369; - public int KeyMap_370; - public int KeyMap_371; - public int KeyMap_372; - public int KeyMap_373; - public int KeyMap_374; - public int KeyMap_375; - public int KeyMap_376; - public int KeyMap_377; - public int KeyMap_378; - public int KeyMap_379; - public int KeyMap_380; - public int KeyMap_381; - public int KeyMap_382; - public int KeyMap_383; - public int KeyMap_384; - public int KeyMap_385; - public int KeyMap_386; - public int KeyMap_387; - public int KeyMap_388; - public int KeyMap_389; - public int KeyMap_390; - public int KeyMap_391; - public int KeyMap_392; - public int KeyMap_393; - public int KeyMap_394; - public int KeyMap_395; - public int KeyMap_396; - public int KeyMap_397; - public int KeyMap_398; - public int KeyMap_399; - public int KeyMap_400; - public int KeyMap_401; - public int KeyMap_402; - public int KeyMap_403; - public int KeyMap_404; - public int KeyMap_405; - public int KeyMap_406; - public int KeyMap_407; - public int KeyMap_408; - public int KeyMap_409; - public int KeyMap_410; - public int KeyMap_411; - public int KeyMap_412; - public int KeyMap_413; - public int KeyMap_414; - public int KeyMap_415; - public int KeyMap_416; - public int KeyMap_417; - public int KeyMap_418; - public int KeyMap_419; - public int KeyMap_420; - public int KeyMap_421; - public int KeyMap_422; - public int KeyMap_423; - public int KeyMap_424; - public int KeyMap_425; - public int KeyMap_426; - public int KeyMap_427; - public int KeyMap_428; - public int KeyMap_429; - public int KeyMap_430; - public int KeyMap_431; - public int KeyMap_432; - public int KeyMap_433; - public int KeyMap_434; - public int KeyMap_435; - public int KeyMap_436; - public int KeyMap_437; - public int KeyMap_438; - public int KeyMap_439; - public int KeyMap_440; - public int KeyMap_441; - public int KeyMap_442; - public int KeyMap_443; - public int KeyMap_444; - public int KeyMap_445; - public int KeyMap_446; - public int KeyMap_447; - public int KeyMap_448; - public int KeyMap_449; - public int KeyMap_450; - public int KeyMap_451; - public int KeyMap_452; - public int KeyMap_453; - public int KeyMap_454; - public int KeyMap_455; - public int KeyMap_456; - public int KeyMap_457; - public int KeyMap_458; - public int KeyMap_459; - public int KeyMap_460; - public int KeyMap_461; - public int KeyMap_462; - public int KeyMap_463; - public int KeyMap_464; - public int KeyMap_465; - public int KeyMap_466; - public int KeyMap_467; - public int KeyMap_468; - public int KeyMap_469; - public int KeyMap_470; - public int KeyMap_471; - public int KeyMap_472; - public int KeyMap_473; - public int KeyMap_474; - public int KeyMap_475; - public int KeyMap_476; - public int KeyMap_477; - public int KeyMap_478; - public int KeyMap_479; - public int KeyMap_480; - public int KeyMap_481; - public int KeyMap_482; - public int KeyMap_483; - public int KeyMap_484; - public int KeyMap_485; - public int KeyMap_486; - public int KeyMap_487; - public int KeyMap_488; - public int KeyMap_489; - public int KeyMap_490; - public int KeyMap_491; - public int KeyMap_492; - public int KeyMap_493; - public int KeyMap_494; - public int KeyMap_495; - public int KeyMap_496; - public int KeyMap_497; - public int KeyMap_498; - public int KeyMap_499; - public int KeyMap_500; - public int KeyMap_501; - public int KeyMap_502; - public int KeyMap_503; - public int KeyMap_504; - public int KeyMap_505; - public int KeyMap_506; - public int KeyMap_507; - public int KeyMap_508; - public int KeyMap_509; - public int KeyMap_510; - public int KeyMap_511; - public int KeyMap_512; - public int KeyMap_513; - public int KeyMap_514; - public int KeyMap_515; - public int KeyMap_516; - public int KeyMap_517; - public int KeyMap_518; - public int KeyMap_519; - public int KeyMap_520; - public int KeyMap_521; - public int KeyMap_522; - public int KeyMap_523; - public int KeyMap_524; - public int KeyMap_525; - public int KeyMap_526; - public int KeyMap_527; - public int KeyMap_528; - public int KeyMap_529; - public int KeyMap_530; - public int KeyMap_531; - public int KeyMap_532; - public int KeyMap_533; - public int KeyMap_534; - public int KeyMap_535; - public int KeyMap_536; - public int KeyMap_537; - public int KeyMap_538; - public int KeyMap_539; - public int KeyMap_540; - public int KeyMap_541; - public int KeyMap_542; - public int KeyMap_543; - public int KeyMap_544; - public int KeyMap_545; - public int KeyMap_546; - public int KeyMap_547; - public int KeyMap_548; - public int KeyMap_549; - public int KeyMap_550; - public int KeyMap_551; - public int KeyMap_552; - public int KeyMap_553; - public int KeyMap_554; - public int KeyMap_555; - public int KeyMap_556; - public int KeyMap_557; - public int KeyMap_558; - public int KeyMap_559; - public int KeyMap_560; - public int KeyMap_561; - public int KeyMap_562; - public int KeyMap_563; - public int KeyMap_564; - public int KeyMap_565; - public int KeyMap_566; - public int KeyMap_567; - public int KeyMap_568; - public int KeyMap_569; - public int KeyMap_570; - public int KeyMap_571; - public int KeyMap_572; - public int KeyMap_573; - public int KeyMap_574; - public int KeyMap_575; - public int KeyMap_576; - public int KeyMap_577; - public int KeyMap_578; - public int KeyMap_579; - public int KeyMap_580; - public int KeyMap_581; - public int KeyMap_582; - public int KeyMap_583; - public int KeyMap_584; - public int KeyMap_585; - public int KeyMap_586; - public int KeyMap_587; - public int KeyMap_588; - public int KeyMap_589; - public int KeyMap_590; - public int KeyMap_591; - public int KeyMap_592; - public int KeyMap_593; - public int KeyMap_594; - public int KeyMap_595; - public int KeyMap_596; - public int KeyMap_597; - public int KeyMap_598; - public int KeyMap_599; - public int KeyMap_600; - public int KeyMap_601; - public int KeyMap_602; - public int KeyMap_603; - public int KeyMap_604; - public int KeyMap_605; - public int KeyMap_606; - public int KeyMap_607; - public int KeyMap_608; - public int KeyMap_609; - public int KeyMap_610; - public int KeyMap_611; - public int KeyMap_612; - public int KeyMap_613; - public int KeyMap_614; - public int KeyMap_615; - public int KeyMap_616; - public int KeyMap_617; - public int KeyMap_618; - public int KeyMap_619; - public int KeyMap_620; - public int KeyMap_621; - public int KeyMap_622; - public int KeyMap_623; - public int KeyMap_624; - public int KeyMap_625; - public int KeyMap_626; - public int KeyMap_627; - public int KeyMap_628; - public int KeyMap_629; - public int KeyMap_630; - public int KeyMap_631; - public int KeyMap_632; - public int KeyMap_633; - public int KeyMap_634; - public int KeyMap_635; - public int KeyMap_636; - public int KeyMap_637; - public int KeyMap_638; - public int KeyMap_639; - public int KeyMap_640; - public int KeyMap_641; - public int KeyMap_642; - public int KeyMap_643; - public int KeyMap_644; - public bool KeysDown_0; - public bool KeysDown_1; - public bool KeysDown_2; - public bool KeysDown_3; - public bool KeysDown_4; - public bool KeysDown_5; - public bool KeysDown_6; - public bool KeysDown_7; - public bool KeysDown_8; - public bool KeysDown_9; - public bool KeysDown_10; - public bool KeysDown_11; - public bool KeysDown_12; - public bool KeysDown_13; - public bool KeysDown_14; - public bool KeysDown_15; - public bool KeysDown_16; - public bool KeysDown_17; - public bool KeysDown_18; - public bool KeysDown_19; - public bool KeysDown_20; - public bool KeysDown_21; - public bool KeysDown_22; - public bool KeysDown_23; - public bool KeysDown_24; - public bool KeysDown_25; - public bool KeysDown_26; - public bool KeysDown_27; - public bool KeysDown_28; - public bool KeysDown_29; - public bool KeysDown_30; - public bool KeysDown_31; - public bool KeysDown_32; - public bool KeysDown_33; - public bool KeysDown_34; - public bool KeysDown_35; - public bool KeysDown_36; - public bool KeysDown_37; - public bool KeysDown_38; - public bool KeysDown_39; - public bool KeysDown_40; - public bool KeysDown_41; - public bool KeysDown_42; - public bool KeysDown_43; - public bool KeysDown_44; - public bool KeysDown_45; - public bool KeysDown_46; - public bool KeysDown_47; - public bool KeysDown_48; - public bool KeysDown_49; - public bool KeysDown_50; - public bool KeysDown_51; - public bool KeysDown_52; - public bool KeysDown_53; - public bool KeysDown_54; - public bool KeysDown_55; - public bool KeysDown_56; - public bool KeysDown_57; - public bool KeysDown_58; - public bool KeysDown_59; - public bool KeysDown_60; - public bool KeysDown_61; - public bool KeysDown_62; - public bool KeysDown_63; - public bool KeysDown_64; - public bool KeysDown_65; - public bool KeysDown_66; - public bool KeysDown_67; - public bool KeysDown_68; - public bool KeysDown_69; - public bool KeysDown_70; - public bool KeysDown_71; - public bool KeysDown_72; - public bool KeysDown_73; - public bool KeysDown_74; - public bool KeysDown_75; - public bool KeysDown_76; - public bool KeysDown_77; - public bool KeysDown_78; - public bool KeysDown_79; - public bool KeysDown_80; - public bool KeysDown_81; - public bool KeysDown_82; - public bool KeysDown_83; - public bool KeysDown_84; - public bool KeysDown_85; - public bool KeysDown_86; - public bool KeysDown_87; - public bool KeysDown_88; - public bool KeysDown_89; - public bool KeysDown_90; - public bool KeysDown_91; - public bool KeysDown_92; - public bool KeysDown_93; - public bool KeysDown_94; - public bool KeysDown_95; - public bool KeysDown_96; - public bool KeysDown_97; - public bool KeysDown_98; - public bool KeysDown_99; - public bool KeysDown_100; - public bool KeysDown_101; - public bool KeysDown_102; - public bool KeysDown_103; - public bool KeysDown_104; - public bool KeysDown_105; - public bool KeysDown_106; - public bool KeysDown_107; - public bool KeysDown_108; - public bool KeysDown_109; - public bool KeysDown_110; - public bool KeysDown_111; - public bool KeysDown_112; - public bool KeysDown_113; - public bool KeysDown_114; - public bool KeysDown_115; - public bool KeysDown_116; - public bool KeysDown_117; - public bool KeysDown_118; - public bool KeysDown_119; - public bool KeysDown_120; - public bool KeysDown_121; - public bool KeysDown_122; - public bool KeysDown_123; - public bool KeysDown_124; - public bool KeysDown_125; - public bool KeysDown_126; - public bool KeysDown_127; - public bool KeysDown_128; - public bool KeysDown_129; - public bool KeysDown_130; - public bool KeysDown_131; - public bool KeysDown_132; - public bool KeysDown_133; - public bool KeysDown_134; - public bool KeysDown_135; - public bool KeysDown_136; - public bool KeysDown_137; - public bool KeysDown_138; - public bool KeysDown_139; - public bool KeysDown_140; - public bool KeysDown_141; - public bool KeysDown_142; - public bool KeysDown_143; - public bool KeysDown_144; - public bool KeysDown_145; - public bool KeysDown_146; - public bool KeysDown_147; - public bool KeysDown_148; - public bool KeysDown_149; - public bool KeysDown_150; - public bool KeysDown_151; - public bool KeysDown_152; - public bool KeysDown_153; - public bool KeysDown_154; - public bool KeysDown_155; - public bool KeysDown_156; - public bool KeysDown_157; - public bool KeysDown_158; - public bool KeysDown_159; - public bool KeysDown_160; - public bool KeysDown_161; - public bool KeysDown_162; - public bool KeysDown_163; - public bool KeysDown_164; - public bool KeysDown_165; - public bool KeysDown_166; - public bool KeysDown_167; - public bool KeysDown_168; - public bool KeysDown_169; - public bool KeysDown_170; - public bool KeysDown_171; - public bool KeysDown_172; - public bool KeysDown_173; - public bool KeysDown_174; - public bool KeysDown_175; - public bool KeysDown_176; - public bool KeysDown_177; - public bool KeysDown_178; - public bool KeysDown_179; - public bool KeysDown_180; - public bool KeysDown_181; - public bool KeysDown_182; - public bool KeysDown_183; - public bool KeysDown_184; - public bool KeysDown_185; - public bool KeysDown_186; - public bool KeysDown_187; - public bool KeysDown_188; - public bool KeysDown_189; - public bool KeysDown_190; - public bool KeysDown_191; - public bool KeysDown_192; - public bool KeysDown_193; - public bool KeysDown_194; - public bool KeysDown_195; - public bool KeysDown_196; - public bool KeysDown_197; - public bool KeysDown_198; - public bool KeysDown_199; - public bool KeysDown_200; - public bool KeysDown_201; - public bool KeysDown_202; - public bool KeysDown_203; - public bool KeysDown_204; - public bool KeysDown_205; - public bool KeysDown_206; - public bool KeysDown_207; - public bool KeysDown_208; - public bool KeysDown_209; - public bool KeysDown_210; - public bool KeysDown_211; - public bool KeysDown_212; - public bool KeysDown_213; - public bool KeysDown_214; - public bool KeysDown_215; - public bool KeysDown_216; - public bool KeysDown_217; - public bool KeysDown_218; - public bool KeysDown_219; - public bool KeysDown_220; - public bool KeysDown_221; - public bool KeysDown_222; - public bool KeysDown_223; - public bool KeysDown_224; - public bool KeysDown_225; - public bool KeysDown_226; - public bool KeysDown_227; - public bool KeysDown_228; - public bool KeysDown_229; - public bool KeysDown_230; - public bool KeysDown_231; - public bool KeysDown_232; - public bool KeysDown_233; - public bool KeysDown_234; - public bool KeysDown_235; - public bool KeysDown_236; - public bool KeysDown_237; - public bool KeysDown_238; - public bool KeysDown_239; - public bool KeysDown_240; - public bool KeysDown_241; - public bool KeysDown_242; - public bool KeysDown_243; - public bool KeysDown_244; - public bool KeysDown_245; - public bool KeysDown_246; - public bool KeysDown_247; - public bool KeysDown_248; - public bool KeysDown_249; - public bool KeysDown_250; - public bool KeysDown_251; - public bool KeysDown_252; - public bool KeysDown_253; - public bool KeysDown_254; - public bool KeysDown_255; - public bool KeysDown_256; - public bool KeysDown_257; - public bool KeysDown_258; - public bool KeysDown_259; - public bool KeysDown_260; - public bool KeysDown_261; - public bool KeysDown_262; - public bool KeysDown_263; - public bool KeysDown_264; - public bool KeysDown_265; - public bool KeysDown_266; - public bool KeysDown_267; - public bool KeysDown_268; - public bool KeysDown_269; - public bool KeysDown_270; - public bool KeysDown_271; - public bool KeysDown_272; - public bool KeysDown_273; - public bool KeysDown_274; - public bool KeysDown_275; - public bool KeysDown_276; - public bool KeysDown_277; - public bool KeysDown_278; - public bool KeysDown_279; - public bool KeysDown_280; - public bool KeysDown_281; - public bool KeysDown_282; - public bool KeysDown_283; - public bool KeysDown_284; - public bool KeysDown_285; - public bool KeysDown_286; - public bool KeysDown_287; - public bool KeysDown_288; - public bool KeysDown_289; - public bool KeysDown_290; - public bool KeysDown_291; - public bool KeysDown_292; - public bool KeysDown_293; - public bool KeysDown_294; - public bool KeysDown_295; - public bool KeysDown_296; - public bool KeysDown_297; - public bool KeysDown_298; - public bool KeysDown_299; - public bool KeysDown_300; - public bool KeysDown_301; - public bool KeysDown_302; - public bool KeysDown_303; - public bool KeysDown_304; - public bool KeysDown_305; - public bool KeysDown_306; - public bool KeysDown_307; - public bool KeysDown_308; - public bool KeysDown_309; - public bool KeysDown_310; - public bool KeysDown_311; - public bool KeysDown_312; - public bool KeysDown_313; - public bool KeysDown_314; - public bool KeysDown_315; - public bool KeysDown_316; - public bool KeysDown_317; - public bool KeysDown_318; - public bool KeysDown_319; - public bool KeysDown_320; - public bool KeysDown_321; - public bool KeysDown_322; - public bool KeysDown_323; - public bool KeysDown_324; - public bool KeysDown_325; - public bool KeysDown_326; - public bool KeysDown_327; - public bool KeysDown_328; - public bool KeysDown_329; - public bool KeysDown_330; - public bool KeysDown_331; - public bool KeysDown_332; - public bool KeysDown_333; - public bool KeysDown_334; - public bool KeysDown_335; - public bool KeysDown_336; - public bool KeysDown_337; - public bool KeysDown_338; - public bool KeysDown_339; - public bool KeysDown_340; - public bool KeysDown_341; - public bool KeysDown_342; - public bool KeysDown_343; - public bool KeysDown_344; - public bool KeysDown_345; - public bool KeysDown_346; - public bool KeysDown_347; - public bool KeysDown_348; - public bool KeysDown_349; - public bool KeysDown_350; - public bool KeysDown_351; - public bool KeysDown_352; - public bool KeysDown_353; - public bool KeysDown_354; - public bool KeysDown_355; - public bool KeysDown_356; - public bool KeysDown_357; - public bool KeysDown_358; - public bool KeysDown_359; - public bool KeysDown_360; - public bool KeysDown_361; - public bool KeysDown_362; - public bool KeysDown_363; - public bool KeysDown_364; - public bool KeysDown_365; - public bool KeysDown_366; - public bool KeysDown_367; - public bool KeysDown_368; - public bool KeysDown_369; - public bool KeysDown_370; - public bool KeysDown_371; - public bool KeysDown_372; - public bool KeysDown_373; - public bool KeysDown_374; - public bool KeysDown_375; - public bool KeysDown_376; - public bool KeysDown_377; - public bool KeysDown_378; - public bool KeysDown_379; - public bool KeysDown_380; - public bool KeysDown_381; - public bool KeysDown_382; - public bool KeysDown_383; - public bool KeysDown_384; - public bool KeysDown_385; - public bool KeysDown_386; - public bool KeysDown_387; - public bool KeysDown_388; - public bool KeysDown_389; - public bool KeysDown_390; - public bool KeysDown_391; - public bool KeysDown_392; - public bool KeysDown_393; - public bool KeysDown_394; - public bool KeysDown_395; - public bool KeysDown_396; - public bool KeysDown_397; - public bool KeysDown_398; - public bool KeysDown_399; - public bool KeysDown_400; - public bool KeysDown_401; - public bool KeysDown_402; - public bool KeysDown_403; - public bool KeysDown_404; - public bool KeysDown_405; - public bool KeysDown_406; - public bool KeysDown_407; - public bool KeysDown_408; - public bool KeysDown_409; - public bool KeysDown_410; - public bool KeysDown_411; - public bool KeysDown_412; - public bool KeysDown_413; - public bool KeysDown_414; - public bool KeysDown_415; - public bool KeysDown_416; - public bool KeysDown_417; - public bool KeysDown_418; - public bool KeysDown_419; - public bool KeysDown_420; - public bool KeysDown_421; - public bool KeysDown_422; - public bool KeysDown_423; - public bool KeysDown_424; - public bool KeysDown_425; - public bool KeysDown_426; - public bool KeysDown_427; - public bool KeysDown_428; - public bool KeysDown_429; - public bool KeysDown_430; - public bool KeysDown_431; - public bool KeysDown_432; - public bool KeysDown_433; - public bool KeysDown_434; - public bool KeysDown_435; - public bool KeysDown_436; - public bool KeysDown_437; - public bool KeysDown_438; - public bool KeysDown_439; - public bool KeysDown_440; - public bool KeysDown_441; - public bool KeysDown_442; - public bool KeysDown_443; - public bool KeysDown_444; - public bool KeysDown_445; - public bool KeysDown_446; - public bool KeysDown_447; - public bool KeysDown_448; - public bool KeysDown_449; - public bool KeysDown_450; - public bool KeysDown_451; - public bool KeysDown_452; - public bool KeysDown_453; - public bool KeysDown_454; - public bool KeysDown_455; - public bool KeysDown_456; - public bool KeysDown_457; - public bool KeysDown_458; - public bool KeysDown_459; - public bool KeysDown_460; - public bool KeysDown_461; - public bool KeysDown_462; - public bool KeysDown_463; - public bool KeysDown_464; - public bool KeysDown_465; - public bool KeysDown_466; - public bool KeysDown_467; - public bool KeysDown_468; - public bool KeysDown_469; - public bool KeysDown_470; - public bool KeysDown_471; - public bool KeysDown_472; - public bool KeysDown_473; - public bool KeysDown_474; - public bool KeysDown_475; - public bool KeysDown_476; - public bool KeysDown_477; - public bool KeysDown_478; - public bool KeysDown_479; - public bool KeysDown_480; - public bool KeysDown_481; - public bool KeysDown_482; - public bool KeysDown_483; - public bool KeysDown_484; - public bool KeysDown_485; - public bool KeysDown_486; - public bool KeysDown_487; - public bool KeysDown_488; - public bool KeysDown_489; - public bool KeysDown_490; - public bool KeysDown_491; - public bool KeysDown_492; - public bool KeysDown_493; - public bool KeysDown_494; - public bool KeysDown_495; - public bool KeysDown_496; - public bool KeysDown_497; - public bool KeysDown_498; - public bool KeysDown_499; - public bool KeysDown_500; - public bool KeysDown_501; - public bool KeysDown_502; - public bool KeysDown_503; - public bool KeysDown_504; - public bool KeysDown_505; - public bool KeysDown_506; - public bool KeysDown_507; - public bool KeysDown_508; - public bool KeysDown_509; - public bool KeysDown_510; - public bool KeysDown_511; - public bool KeysDown_512; - public bool KeysDown_513; - public bool KeysDown_514; - public bool KeysDown_515; - public bool KeysDown_516; - public bool KeysDown_517; - public bool KeysDown_518; - public bool KeysDown_519; - public bool KeysDown_520; - public bool KeysDown_521; - public bool KeysDown_522; - public bool KeysDown_523; - public bool KeysDown_524; - public bool KeysDown_525; - public bool KeysDown_526; - public bool KeysDown_527; - public bool KeysDown_528; - public bool KeysDown_529; - public bool KeysDown_530; - public bool KeysDown_531; - public bool KeysDown_532; - public bool KeysDown_533; - public bool KeysDown_534; - public bool KeysDown_535; - public bool KeysDown_536; - public bool KeysDown_537; - public bool KeysDown_538; - public bool KeysDown_539; - public bool KeysDown_540; - public bool KeysDown_541; - public bool KeysDown_542; - public bool KeysDown_543; - public bool KeysDown_544; - public bool KeysDown_545; - public bool KeysDown_546; - public bool KeysDown_547; - public bool KeysDown_548; - public bool KeysDown_549; - public bool KeysDown_550; - public bool KeysDown_551; - public bool KeysDown_552; - public bool KeysDown_553; - public bool KeysDown_554; - public bool KeysDown_555; - public bool KeysDown_556; - public bool KeysDown_557; - public bool KeysDown_558; - public bool KeysDown_559; - public bool KeysDown_560; - public bool KeysDown_561; - public bool KeysDown_562; - public bool KeysDown_563; - public bool KeysDown_564; - public bool KeysDown_565; - public bool KeysDown_566; - public bool KeysDown_567; - public bool KeysDown_568; - public bool KeysDown_569; - public bool KeysDown_570; - public bool KeysDown_571; - public bool KeysDown_572; - public bool KeysDown_573; - public bool KeysDown_574; - public bool KeysDown_575; - public bool KeysDown_576; - public bool KeysDown_577; - public bool KeysDown_578; - public bool KeysDown_579; - public bool KeysDown_580; - public bool KeysDown_581; - public bool KeysDown_582; - public bool KeysDown_583; - public bool KeysDown_584; - public bool KeysDown_585; - public bool KeysDown_586; - public bool KeysDown_587; - public bool KeysDown_588; - public bool KeysDown_589; - public bool KeysDown_590; - public bool KeysDown_591; - public bool KeysDown_592; - public bool KeysDown_593; - public bool KeysDown_594; - public bool KeysDown_595; - public bool KeysDown_596; - public bool KeysDown_597; - public bool KeysDown_598; - public bool KeysDown_599; - public bool KeysDown_600; - public bool KeysDown_601; - public bool KeysDown_602; - public bool KeysDown_603; - public bool KeysDown_604; - public bool KeysDown_605; - public bool KeysDown_606; - public bool KeysDown_607; - public bool KeysDown_608; - public bool KeysDown_609; - public bool KeysDown_610; - public bool KeysDown_611; - public bool KeysDown_612; - public bool KeysDown_613; - public bool KeysDown_614; - public bool KeysDown_615; - public bool KeysDown_616; - public bool KeysDown_617; - public bool KeysDown_618; - public bool KeysDown_619; - public bool KeysDown_620; - public bool KeysDown_621; - public bool KeysDown_622; - public bool KeysDown_623; - public bool KeysDown_624; - public bool KeysDown_625; - public bool KeysDown_626; - public bool KeysDown_627; - public bool KeysDown_628; - public bool KeysDown_629; - public bool KeysDown_630; - public bool KeysDown_631; - public bool KeysDown_632; - public bool KeysDown_633; - public bool KeysDown_634; - public bool KeysDown_635; - public bool KeysDown_636; - public bool KeysDown_637; - public bool KeysDown_638; - public bool KeysDown_639; - public bool KeysDown_640; - public bool KeysDown_641; - public bool KeysDown_642; - public bool KeysDown_643; - public bool KeysDown_644; - public Vector2 MousePos; - public bool MouseDown_0; - public bool MouseDown_1; - public bool MouseDown_2; - public bool MouseDown_3; - public bool MouseDown_4; - public float MouseWheel; - public float MouseWheelH; - public uint MouseHoveredViewport; - public byte KeyCtrl; - public byte KeyShift; - public byte KeyAlt; - public byte KeySuper; - public float NavInputs_0; - public float NavInputs_1; - public float NavInputs_2; - public float NavInputs_3; - public float NavInputs_4; - public float NavInputs_5; - public float NavInputs_6; - public float NavInputs_7; - public float NavInputs_8; - public float NavInputs_9; - public float NavInputs_10; - public float NavInputs_11; - public float NavInputs_12; - public float NavInputs_13; - public float NavInputs_14; - public float NavInputs_15; - public float NavInputs_16; - public float NavInputs_17; - public float NavInputs_18; - public float NavInputs_19; - public float NavInputs_20; - public ImGuiModFlags KeyMods; - public ImGuiKeyData KeysData_0; - public ImGuiKeyData KeysData_1; - public ImGuiKeyData KeysData_2; - public ImGuiKeyData KeysData_3; - public ImGuiKeyData KeysData_4; - public ImGuiKeyData KeysData_5; - public ImGuiKeyData KeysData_6; - public ImGuiKeyData KeysData_7; - public ImGuiKeyData KeysData_8; - public ImGuiKeyData KeysData_9; - public ImGuiKeyData KeysData_10; - public ImGuiKeyData KeysData_11; - public ImGuiKeyData KeysData_12; - public ImGuiKeyData KeysData_13; - public ImGuiKeyData KeysData_14; - public ImGuiKeyData KeysData_15; - public ImGuiKeyData KeysData_16; - public ImGuiKeyData KeysData_17; - public ImGuiKeyData KeysData_18; - public ImGuiKeyData KeysData_19; - public ImGuiKeyData KeysData_20; - public ImGuiKeyData KeysData_21; - public ImGuiKeyData KeysData_22; - public ImGuiKeyData KeysData_23; - public ImGuiKeyData KeysData_24; - public ImGuiKeyData KeysData_25; - public ImGuiKeyData KeysData_26; - public ImGuiKeyData KeysData_27; - public ImGuiKeyData KeysData_28; - public ImGuiKeyData KeysData_29; - public ImGuiKeyData KeysData_30; - public ImGuiKeyData KeysData_31; - public ImGuiKeyData KeysData_32; - public ImGuiKeyData KeysData_33; - public ImGuiKeyData KeysData_34; - public ImGuiKeyData KeysData_35; - public ImGuiKeyData KeysData_36; - public ImGuiKeyData KeysData_37; - public ImGuiKeyData KeysData_38; - public ImGuiKeyData KeysData_39; - public ImGuiKeyData KeysData_40; - public ImGuiKeyData KeysData_41; - public ImGuiKeyData KeysData_42; - public ImGuiKeyData KeysData_43; - public ImGuiKeyData KeysData_44; - public ImGuiKeyData KeysData_45; - public ImGuiKeyData KeysData_46; - public ImGuiKeyData KeysData_47; - public ImGuiKeyData KeysData_48; - public ImGuiKeyData KeysData_49; - public ImGuiKeyData KeysData_50; - public ImGuiKeyData KeysData_51; - public ImGuiKeyData KeysData_52; - public ImGuiKeyData KeysData_53; - public ImGuiKeyData KeysData_54; - public ImGuiKeyData KeysData_55; - public ImGuiKeyData KeysData_56; - public ImGuiKeyData KeysData_57; - public ImGuiKeyData KeysData_58; - public ImGuiKeyData KeysData_59; - public ImGuiKeyData KeysData_60; - public ImGuiKeyData KeysData_61; - public ImGuiKeyData KeysData_62; - public ImGuiKeyData KeysData_63; - public ImGuiKeyData KeysData_64; - public ImGuiKeyData KeysData_65; - public ImGuiKeyData KeysData_66; - public ImGuiKeyData KeysData_67; - public ImGuiKeyData KeysData_68; - public ImGuiKeyData KeysData_69; - public ImGuiKeyData KeysData_70; - public ImGuiKeyData KeysData_71; - public ImGuiKeyData KeysData_72; - public ImGuiKeyData KeysData_73; - public ImGuiKeyData KeysData_74; - public ImGuiKeyData KeysData_75; - public ImGuiKeyData KeysData_76; - public ImGuiKeyData KeysData_77; - public ImGuiKeyData KeysData_78; - public ImGuiKeyData KeysData_79; - public ImGuiKeyData KeysData_80; - public ImGuiKeyData KeysData_81; - public ImGuiKeyData KeysData_82; - public ImGuiKeyData KeysData_83; - public ImGuiKeyData KeysData_84; - public ImGuiKeyData KeysData_85; - public ImGuiKeyData KeysData_86; - public ImGuiKeyData KeysData_87; - public ImGuiKeyData KeysData_88; - public ImGuiKeyData KeysData_89; - public ImGuiKeyData KeysData_90; - public ImGuiKeyData KeysData_91; - public ImGuiKeyData KeysData_92; - public ImGuiKeyData KeysData_93; - public ImGuiKeyData KeysData_94; - public ImGuiKeyData KeysData_95; - public ImGuiKeyData KeysData_96; - public ImGuiKeyData KeysData_97; - public ImGuiKeyData KeysData_98; - public ImGuiKeyData KeysData_99; - public ImGuiKeyData KeysData_100; - public ImGuiKeyData KeysData_101; - public ImGuiKeyData KeysData_102; - public ImGuiKeyData KeysData_103; - public ImGuiKeyData KeysData_104; - public ImGuiKeyData KeysData_105; - public ImGuiKeyData KeysData_106; - public ImGuiKeyData KeysData_107; - public ImGuiKeyData KeysData_108; - public ImGuiKeyData KeysData_109; - public ImGuiKeyData KeysData_110; - public ImGuiKeyData KeysData_111; - public ImGuiKeyData KeysData_112; - public ImGuiKeyData KeysData_113; - public ImGuiKeyData KeysData_114; - public ImGuiKeyData KeysData_115; - public ImGuiKeyData KeysData_116; - public ImGuiKeyData KeysData_117; - public ImGuiKeyData KeysData_118; - public ImGuiKeyData KeysData_119; - public ImGuiKeyData KeysData_120; - public ImGuiKeyData KeysData_121; - public ImGuiKeyData KeysData_122; - public ImGuiKeyData KeysData_123; - public ImGuiKeyData KeysData_124; - public ImGuiKeyData KeysData_125; - public ImGuiKeyData KeysData_126; - public ImGuiKeyData KeysData_127; - public ImGuiKeyData KeysData_128; - public ImGuiKeyData KeysData_129; - public ImGuiKeyData KeysData_130; - public ImGuiKeyData KeysData_131; - public ImGuiKeyData KeysData_132; - public ImGuiKeyData KeysData_133; - public ImGuiKeyData KeysData_134; - public ImGuiKeyData KeysData_135; - public ImGuiKeyData KeysData_136; - public ImGuiKeyData KeysData_137; - public ImGuiKeyData KeysData_138; - public ImGuiKeyData KeysData_139; - public ImGuiKeyData KeysData_140; - public ImGuiKeyData KeysData_141; - public ImGuiKeyData KeysData_142; - public ImGuiKeyData KeysData_143; - public ImGuiKeyData KeysData_144; - public ImGuiKeyData KeysData_145; - public ImGuiKeyData KeysData_146; - public ImGuiKeyData KeysData_147; - public ImGuiKeyData KeysData_148; - public ImGuiKeyData KeysData_149; - public ImGuiKeyData KeysData_150; - public ImGuiKeyData KeysData_151; - public ImGuiKeyData KeysData_152; - public ImGuiKeyData KeysData_153; - public ImGuiKeyData KeysData_154; - public ImGuiKeyData KeysData_155; - public ImGuiKeyData KeysData_156; - public ImGuiKeyData KeysData_157; - public ImGuiKeyData KeysData_158; - public ImGuiKeyData KeysData_159; - public ImGuiKeyData KeysData_160; - public ImGuiKeyData KeysData_161; - public ImGuiKeyData KeysData_162; - public ImGuiKeyData KeysData_163; - public ImGuiKeyData KeysData_164; - public ImGuiKeyData KeysData_165; - public ImGuiKeyData KeysData_166; - public ImGuiKeyData KeysData_167; - public ImGuiKeyData KeysData_168; - public ImGuiKeyData KeysData_169; - public ImGuiKeyData KeysData_170; - public ImGuiKeyData KeysData_171; - public ImGuiKeyData KeysData_172; - public ImGuiKeyData KeysData_173; - public ImGuiKeyData KeysData_174; - public ImGuiKeyData KeysData_175; - public ImGuiKeyData KeysData_176; - public ImGuiKeyData KeysData_177; - public ImGuiKeyData KeysData_178; - public ImGuiKeyData KeysData_179; - public ImGuiKeyData KeysData_180; - public ImGuiKeyData KeysData_181; - public ImGuiKeyData KeysData_182; - public ImGuiKeyData KeysData_183; - public ImGuiKeyData KeysData_184; - public ImGuiKeyData KeysData_185; - public ImGuiKeyData KeysData_186; - public ImGuiKeyData KeysData_187; - public ImGuiKeyData KeysData_188; - public ImGuiKeyData KeysData_189; - public ImGuiKeyData KeysData_190; - public ImGuiKeyData KeysData_191; - public ImGuiKeyData KeysData_192; - public ImGuiKeyData KeysData_193; - public ImGuiKeyData KeysData_194; - public ImGuiKeyData KeysData_195; - public ImGuiKeyData KeysData_196; - public ImGuiKeyData KeysData_197; - public ImGuiKeyData KeysData_198; - public ImGuiKeyData KeysData_199; - public ImGuiKeyData KeysData_200; - public ImGuiKeyData KeysData_201; - public ImGuiKeyData KeysData_202; - public ImGuiKeyData KeysData_203; - public ImGuiKeyData KeysData_204; - public ImGuiKeyData KeysData_205; - public ImGuiKeyData KeysData_206; - public ImGuiKeyData KeysData_207; - public ImGuiKeyData KeysData_208; - public ImGuiKeyData KeysData_209; - public ImGuiKeyData KeysData_210; - public ImGuiKeyData KeysData_211; - public ImGuiKeyData KeysData_212; - public ImGuiKeyData KeysData_213; - public ImGuiKeyData KeysData_214; - public ImGuiKeyData KeysData_215; - public ImGuiKeyData KeysData_216; - public ImGuiKeyData KeysData_217; - public ImGuiKeyData KeysData_218; - public ImGuiKeyData KeysData_219; - public ImGuiKeyData KeysData_220; - public ImGuiKeyData KeysData_221; - public ImGuiKeyData KeysData_222; - public ImGuiKeyData KeysData_223; - public ImGuiKeyData KeysData_224; - public ImGuiKeyData KeysData_225; - public ImGuiKeyData KeysData_226; - public ImGuiKeyData KeysData_227; - public ImGuiKeyData KeysData_228; - public ImGuiKeyData KeysData_229; - public ImGuiKeyData KeysData_230; - public ImGuiKeyData KeysData_231; - public ImGuiKeyData KeysData_232; - public ImGuiKeyData KeysData_233; - public ImGuiKeyData KeysData_234; - public ImGuiKeyData KeysData_235; - public ImGuiKeyData KeysData_236; - public ImGuiKeyData KeysData_237; - public ImGuiKeyData KeysData_238; - public ImGuiKeyData KeysData_239; - public ImGuiKeyData KeysData_240; - public ImGuiKeyData KeysData_241; - public ImGuiKeyData KeysData_242; - public ImGuiKeyData KeysData_243; - public ImGuiKeyData KeysData_244; - public ImGuiKeyData KeysData_245; - public ImGuiKeyData KeysData_246; - public ImGuiKeyData KeysData_247; - public ImGuiKeyData KeysData_248; - public ImGuiKeyData KeysData_249; - public ImGuiKeyData KeysData_250; - public ImGuiKeyData KeysData_251; - public ImGuiKeyData KeysData_252; - public ImGuiKeyData KeysData_253; - public ImGuiKeyData KeysData_254; - public ImGuiKeyData KeysData_255; - public ImGuiKeyData KeysData_256; - public ImGuiKeyData KeysData_257; - public ImGuiKeyData KeysData_258; - public ImGuiKeyData KeysData_259; - public ImGuiKeyData KeysData_260; - public ImGuiKeyData KeysData_261; - public ImGuiKeyData KeysData_262; - public ImGuiKeyData KeysData_263; - public ImGuiKeyData KeysData_264; - public ImGuiKeyData KeysData_265; - public ImGuiKeyData KeysData_266; - public ImGuiKeyData KeysData_267; - public ImGuiKeyData KeysData_268; - public ImGuiKeyData KeysData_269; - public ImGuiKeyData KeysData_270; - public ImGuiKeyData KeysData_271; - public ImGuiKeyData KeysData_272; - public ImGuiKeyData KeysData_273; - public ImGuiKeyData KeysData_274; - public ImGuiKeyData KeysData_275; - public ImGuiKeyData KeysData_276; - public ImGuiKeyData KeysData_277; - public ImGuiKeyData KeysData_278; - public ImGuiKeyData KeysData_279; - public ImGuiKeyData KeysData_280; - public ImGuiKeyData KeysData_281; - public ImGuiKeyData KeysData_282; - public ImGuiKeyData KeysData_283; - public ImGuiKeyData KeysData_284; - public ImGuiKeyData KeysData_285; - public ImGuiKeyData KeysData_286; - public ImGuiKeyData KeysData_287; - public ImGuiKeyData KeysData_288; - public ImGuiKeyData KeysData_289; - public ImGuiKeyData KeysData_290; - public ImGuiKeyData KeysData_291; - public ImGuiKeyData KeysData_292; - public ImGuiKeyData KeysData_293; - public ImGuiKeyData KeysData_294; - public ImGuiKeyData KeysData_295; - public ImGuiKeyData KeysData_296; - public ImGuiKeyData KeysData_297; - public ImGuiKeyData KeysData_298; - public ImGuiKeyData KeysData_299; - public ImGuiKeyData KeysData_300; - public ImGuiKeyData KeysData_301; - public ImGuiKeyData KeysData_302; - public ImGuiKeyData KeysData_303; - public ImGuiKeyData KeysData_304; - public ImGuiKeyData KeysData_305; - public ImGuiKeyData KeysData_306; - public ImGuiKeyData KeysData_307; - public ImGuiKeyData KeysData_308; - public ImGuiKeyData KeysData_309; - public ImGuiKeyData KeysData_310; - public ImGuiKeyData KeysData_311; - public ImGuiKeyData KeysData_312; - public ImGuiKeyData KeysData_313; - public ImGuiKeyData KeysData_314; - public ImGuiKeyData KeysData_315; - public ImGuiKeyData KeysData_316; - public ImGuiKeyData KeysData_317; - public ImGuiKeyData KeysData_318; - public ImGuiKeyData KeysData_319; - public ImGuiKeyData KeysData_320; - public ImGuiKeyData KeysData_321; - public ImGuiKeyData KeysData_322; - public ImGuiKeyData KeysData_323; - public ImGuiKeyData KeysData_324; - public ImGuiKeyData KeysData_325; - public ImGuiKeyData KeysData_326; - public ImGuiKeyData KeysData_327; - public ImGuiKeyData KeysData_328; - public ImGuiKeyData KeysData_329; - public ImGuiKeyData KeysData_330; - public ImGuiKeyData KeysData_331; - public ImGuiKeyData KeysData_332; - public ImGuiKeyData KeysData_333; - public ImGuiKeyData KeysData_334; - public ImGuiKeyData KeysData_335; - public ImGuiKeyData KeysData_336; - public ImGuiKeyData KeysData_337; - public ImGuiKeyData KeysData_338; - public ImGuiKeyData KeysData_339; - public ImGuiKeyData KeysData_340; - public ImGuiKeyData KeysData_341; - public ImGuiKeyData KeysData_342; - public ImGuiKeyData KeysData_343; - public ImGuiKeyData KeysData_344; - public ImGuiKeyData KeysData_345; - public ImGuiKeyData KeysData_346; - public ImGuiKeyData KeysData_347; - public ImGuiKeyData KeysData_348; - public ImGuiKeyData KeysData_349; - public ImGuiKeyData KeysData_350; - public ImGuiKeyData KeysData_351; - public ImGuiKeyData KeysData_352; - public ImGuiKeyData KeysData_353; - public ImGuiKeyData KeysData_354; - public ImGuiKeyData KeysData_355; - public ImGuiKeyData KeysData_356; - public ImGuiKeyData KeysData_357; - public ImGuiKeyData KeysData_358; - public ImGuiKeyData KeysData_359; - public ImGuiKeyData KeysData_360; - public ImGuiKeyData KeysData_361; - public ImGuiKeyData KeysData_362; - public ImGuiKeyData KeysData_363; - public ImGuiKeyData KeysData_364; - public ImGuiKeyData KeysData_365; - public ImGuiKeyData KeysData_366; - public ImGuiKeyData KeysData_367; - public ImGuiKeyData KeysData_368; - public ImGuiKeyData KeysData_369; - public ImGuiKeyData KeysData_370; - public ImGuiKeyData KeysData_371; - public ImGuiKeyData KeysData_372; - public ImGuiKeyData KeysData_373; - public ImGuiKeyData KeysData_374; - public ImGuiKeyData KeysData_375; - public ImGuiKeyData KeysData_376; - public ImGuiKeyData KeysData_377; - public ImGuiKeyData KeysData_378; - public ImGuiKeyData KeysData_379; - public ImGuiKeyData KeysData_380; - public ImGuiKeyData KeysData_381; - public ImGuiKeyData KeysData_382; - public ImGuiKeyData KeysData_383; - public ImGuiKeyData KeysData_384; - public ImGuiKeyData KeysData_385; - public ImGuiKeyData KeysData_386; - public ImGuiKeyData KeysData_387; - public ImGuiKeyData KeysData_388; - public ImGuiKeyData KeysData_389; - public ImGuiKeyData KeysData_390; - public ImGuiKeyData KeysData_391; - public ImGuiKeyData KeysData_392; - public ImGuiKeyData KeysData_393; - public ImGuiKeyData KeysData_394; - public ImGuiKeyData KeysData_395; - public ImGuiKeyData KeysData_396; - public ImGuiKeyData KeysData_397; - public ImGuiKeyData KeysData_398; - public ImGuiKeyData KeysData_399; - public ImGuiKeyData KeysData_400; - public ImGuiKeyData KeysData_401; - public ImGuiKeyData KeysData_402; - public ImGuiKeyData KeysData_403; - public ImGuiKeyData KeysData_404; - public ImGuiKeyData KeysData_405; - public ImGuiKeyData KeysData_406; - public ImGuiKeyData KeysData_407; - public ImGuiKeyData KeysData_408; - public ImGuiKeyData KeysData_409; - public ImGuiKeyData KeysData_410; - public ImGuiKeyData KeysData_411; - public ImGuiKeyData KeysData_412; - public ImGuiKeyData KeysData_413; - public ImGuiKeyData KeysData_414; - public ImGuiKeyData KeysData_415; - public ImGuiKeyData KeysData_416; - public ImGuiKeyData KeysData_417; - public ImGuiKeyData KeysData_418; - public ImGuiKeyData KeysData_419; - public ImGuiKeyData KeysData_420; - public ImGuiKeyData KeysData_421; - public ImGuiKeyData KeysData_422; - public ImGuiKeyData KeysData_423; - public ImGuiKeyData KeysData_424; - public ImGuiKeyData KeysData_425; - public ImGuiKeyData KeysData_426; - public ImGuiKeyData KeysData_427; - public ImGuiKeyData KeysData_428; - public ImGuiKeyData KeysData_429; - public ImGuiKeyData KeysData_430; - public ImGuiKeyData KeysData_431; - public ImGuiKeyData KeysData_432; - public ImGuiKeyData KeysData_433; - public ImGuiKeyData KeysData_434; - public ImGuiKeyData KeysData_435; - public ImGuiKeyData KeysData_436; - public ImGuiKeyData KeysData_437; - public ImGuiKeyData KeysData_438; - public ImGuiKeyData KeysData_439; - public ImGuiKeyData KeysData_440; - public ImGuiKeyData KeysData_441; - public ImGuiKeyData KeysData_442; - public ImGuiKeyData KeysData_443; - public ImGuiKeyData KeysData_444; - public ImGuiKeyData KeysData_445; - public ImGuiKeyData KeysData_446; - public ImGuiKeyData KeysData_447; - public ImGuiKeyData KeysData_448; - public ImGuiKeyData KeysData_449; - public ImGuiKeyData KeysData_450; - public ImGuiKeyData KeysData_451; - public ImGuiKeyData KeysData_452; - public ImGuiKeyData KeysData_453; - public ImGuiKeyData KeysData_454; - public ImGuiKeyData KeysData_455; - public ImGuiKeyData KeysData_456; - public ImGuiKeyData KeysData_457; - public ImGuiKeyData KeysData_458; - public ImGuiKeyData KeysData_459; - public ImGuiKeyData KeysData_460; - public ImGuiKeyData KeysData_461; - public ImGuiKeyData KeysData_462; - public ImGuiKeyData KeysData_463; - public ImGuiKeyData KeysData_464; - public ImGuiKeyData KeysData_465; - public ImGuiKeyData KeysData_466; - public ImGuiKeyData KeysData_467; - public ImGuiKeyData KeysData_468; - public ImGuiKeyData KeysData_469; - public ImGuiKeyData KeysData_470; - public ImGuiKeyData KeysData_471; - public ImGuiKeyData KeysData_472; - public ImGuiKeyData KeysData_473; - public ImGuiKeyData KeysData_474; - public ImGuiKeyData KeysData_475; - public ImGuiKeyData KeysData_476; - public ImGuiKeyData KeysData_477; - public ImGuiKeyData KeysData_478; - public ImGuiKeyData KeysData_479; - public ImGuiKeyData KeysData_480; - public ImGuiKeyData KeysData_481; - public ImGuiKeyData KeysData_482; - public ImGuiKeyData KeysData_483; - public ImGuiKeyData KeysData_484; - public ImGuiKeyData KeysData_485; - public ImGuiKeyData KeysData_486; - public ImGuiKeyData KeysData_487; - public ImGuiKeyData KeysData_488; - public ImGuiKeyData KeysData_489; - public ImGuiKeyData KeysData_490; - public ImGuiKeyData KeysData_491; - public ImGuiKeyData KeysData_492; - public ImGuiKeyData KeysData_493; - public ImGuiKeyData KeysData_494; - public ImGuiKeyData KeysData_495; - public ImGuiKeyData KeysData_496; - public ImGuiKeyData KeysData_497; - public ImGuiKeyData KeysData_498; - public ImGuiKeyData KeysData_499; - public ImGuiKeyData KeysData_500; - public ImGuiKeyData KeysData_501; - public ImGuiKeyData KeysData_502; - public ImGuiKeyData KeysData_503; - public ImGuiKeyData KeysData_504; - public ImGuiKeyData KeysData_505; - public ImGuiKeyData KeysData_506; - public ImGuiKeyData KeysData_507; - public ImGuiKeyData KeysData_508; - public ImGuiKeyData KeysData_509; - public ImGuiKeyData KeysData_510; - public ImGuiKeyData KeysData_511; - public ImGuiKeyData KeysData_512; - public ImGuiKeyData KeysData_513; - public ImGuiKeyData KeysData_514; - public ImGuiKeyData KeysData_515; - public ImGuiKeyData KeysData_516; - public ImGuiKeyData KeysData_517; - public ImGuiKeyData KeysData_518; - public ImGuiKeyData KeysData_519; - public ImGuiKeyData KeysData_520; - public ImGuiKeyData KeysData_521; - public ImGuiKeyData KeysData_522; - public ImGuiKeyData KeysData_523; - public ImGuiKeyData KeysData_524; - public ImGuiKeyData KeysData_525; - public ImGuiKeyData KeysData_526; - public ImGuiKeyData KeysData_527; - public ImGuiKeyData KeysData_528; - public ImGuiKeyData KeysData_529; - public ImGuiKeyData KeysData_530; - public ImGuiKeyData KeysData_531; - public ImGuiKeyData KeysData_532; - public ImGuiKeyData KeysData_533; - public ImGuiKeyData KeysData_534; - public ImGuiKeyData KeysData_535; - public ImGuiKeyData KeysData_536; - public ImGuiKeyData KeysData_537; - public ImGuiKeyData KeysData_538; - public ImGuiKeyData KeysData_539; - public ImGuiKeyData KeysData_540; - public ImGuiKeyData KeysData_541; - public ImGuiKeyData KeysData_542; - public ImGuiKeyData KeysData_543; - public ImGuiKeyData KeysData_544; - public ImGuiKeyData KeysData_545; - public ImGuiKeyData KeysData_546; - public ImGuiKeyData KeysData_547; - public ImGuiKeyData KeysData_548; - public ImGuiKeyData KeysData_549; - public ImGuiKeyData KeysData_550; - public ImGuiKeyData KeysData_551; - public ImGuiKeyData KeysData_552; - public ImGuiKeyData KeysData_553; - public ImGuiKeyData KeysData_554; - public ImGuiKeyData KeysData_555; - public ImGuiKeyData KeysData_556; - public ImGuiKeyData KeysData_557; - public ImGuiKeyData KeysData_558; - public ImGuiKeyData KeysData_559; - public ImGuiKeyData KeysData_560; - public ImGuiKeyData KeysData_561; - public ImGuiKeyData KeysData_562; - public ImGuiKeyData KeysData_563; - public ImGuiKeyData KeysData_564; - public ImGuiKeyData KeysData_565; - public ImGuiKeyData KeysData_566; - public ImGuiKeyData KeysData_567; - public ImGuiKeyData KeysData_568; - public ImGuiKeyData KeysData_569; - public ImGuiKeyData KeysData_570; - public ImGuiKeyData KeysData_571; - public ImGuiKeyData KeysData_572; - public ImGuiKeyData KeysData_573; - public ImGuiKeyData KeysData_574; - public ImGuiKeyData KeysData_575; - public ImGuiKeyData KeysData_576; - public ImGuiKeyData KeysData_577; - public ImGuiKeyData KeysData_578; - public ImGuiKeyData KeysData_579; - public ImGuiKeyData KeysData_580; - public ImGuiKeyData KeysData_581; - public ImGuiKeyData KeysData_582; - public ImGuiKeyData KeysData_583; - public ImGuiKeyData KeysData_584; - public ImGuiKeyData KeysData_585; - public ImGuiKeyData KeysData_586; - public ImGuiKeyData KeysData_587; - public ImGuiKeyData KeysData_588; - public ImGuiKeyData KeysData_589; - public ImGuiKeyData KeysData_590; - public ImGuiKeyData KeysData_591; - public ImGuiKeyData KeysData_592; - public ImGuiKeyData KeysData_593; - public ImGuiKeyData KeysData_594; - public ImGuiKeyData KeysData_595; - public ImGuiKeyData KeysData_596; - public ImGuiKeyData KeysData_597; - public ImGuiKeyData KeysData_598; - public ImGuiKeyData KeysData_599; - public ImGuiKeyData KeysData_600; - public ImGuiKeyData KeysData_601; - public ImGuiKeyData KeysData_602; - public ImGuiKeyData KeysData_603; - public ImGuiKeyData KeysData_604; - public ImGuiKeyData KeysData_605; - public ImGuiKeyData KeysData_606; - public ImGuiKeyData KeysData_607; - public ImGuiKeyData KeysData_608; - public ImGuiKeyData KeysData_609; - public ImGuiKeyData KeysData_610; - public ImGuiKeyData KeysData_611; - public ImGuiKeyData KeysData_612; - public ImGuiKeyData KeysData_613; - public ImGuiKeyData KeysData_614; - public ImGuiKeyData KeysData_615; - public ImGuiKeyData KeysData_616; - public ImGuiKeyData KeysData_617; - public ImGuiKeyData KeysData_618; - public ImGuiKeyData KeysData_619; - public ImGuiKeyData KeysData_620; - public ImGuiKeyData KeysData_621; - public ImGuiKeyData KeysData_622; - public ImGuiKeyData KeysData_623; - public ImGuiKeyData KeysData_624; - public ImGuiKeyData KeysData_625; - public ImGuiKeyData KeysData_626; - public ImGuiKeyData KeysData_627; - public ImGuiKeyData KeysData_628; - public ImGuiKeyData KeysData_629; - public ImGuiKeyData KeysData_630; - public ImGuiKeyData KeysData_631; - public ImGuiKeyData KeysData_632; - public ImGuiKeyData KeysData_633; - public ImGuiKeyData KeysData_634; - public ImGuiKeyData KeysData_635; - public ImGuiKeyData KeysData_636; - public ImGuiKeyData KeysData_637; - public ImGuiKeyData KeysData_638; - public ImGuiKeyData KeysData_639; - public ImGuiKeyData KeysData_640; - public ImGuiKeyData KeysData_641; - public ImGuiKeyData KeysData_642; - public ImGuiKeyData KeysData_643; - public ImGuiKeyData KeysData_644; - public byte WantCaptureMouseUnlessPopupClose; - public Vector2 MousePosPrev; - public Vector2 MouseClickedPos_0; - public Vector2 MouseClickedPos_1; - public Vector2 MouseClickedPos_2; - public Vector2 MouseClickedPos_3; - public Vector2 MouseClickedPos_4; - public double MouseClickedTime_0; - public double MouseClickedTime_1; - public double MouseClickedTime_2; - public double MouseClickedTime_3; - public double MouseClickedTime_4; - public bool MouseClicked_0; - public bool MouseClicked_1; - public bool MouseClicked_2; - public bool MouseClicked_3; - public bool MouseClicked_4; - public bool MouseDoubleClicked_0; - public bool MouseDoubleClicked_1; - public bool MouseDoubleClicked_2; - public bool MouseDoubleClicked_3; - public bool MouseDoubleClicked_4; - public ushort MouseClickedCount_0; - public ushort MouseClickedCount_1; - public ushort MouseClickedCount_2; - public ushort MouseClickedCount_3; - public ushort MouseClickedCount_4; - public ushort MouseClickedLastCount_0; - public ushort MouseClickedLastCount_1; - public ushort MouseClickedLastCount_2; - public ushort MouseClickedLastCount_3; - public ushort MouseClickedLastCount_4; - public bool MouseReleased_0; - public bool MouseReleased_1; - public bool MouseReleased_2; - public bool MouseReleased_3; - public bool MouseReleased_4; - public bool MouseDownOwned_0; - public bool MouseDownOwned_1; - public bool MouseDownOwned_2; - public bool MouseDownOwned_3; - public bool MouseDownOwned_4; - public bool MouseDownOwnedUnlessPopupClose_0; - public bool MouseDownOwnedUnlessPopupClose_1; - public bool MouseDownOwnedUnlessPopupClose_2; - public bool MouseDownOwnedUnlessPopupClose_3; - public bool MouseDownOwnedUnlessPopupClose_4; - public float MouseDownDuration_0; - public float MouseDownDuration_1; - public float MouseDownDuration_2; - public float MouseDownDuration_3; - public float MouseDownDuration_4; - public float MouseDownDurationPrev_0; - public float MouseDownDurationPrev_1; - public float MouseDownDurationPrev_2; - public float MouseDownDurationPrev_3; - public float MouseDownDurationPrev_4; - public Vector2 MouseDragMaxDistanceAbs_0; - public Vector2 MouseDragMaxDistanceAbs_1; - public Vector2 MouseDragMaxDistanceAbs_2; - public Vector2 MouseDragMaxDistanceAbs_3; - public Vector2 MouseDragMaxDistanceAbs_4; - public float MouseDragMaxDistanceSqr_0; - public float MouseDragMaxDistanceSqr_1; - public float MouseDragMaxDistanceSqr_2; - public float MouseDragMaxDistanceSqr_3; - public float MouseDragMaxDistanceSqr_4; - public float NavInputsDownDuration_0; - public float NavInputsDownDuration_1; - public float NavInputsDownDuration_2; - public float NavInputsDownDuration_3; - public float NavInputsDownDuration_4; - public float NavInputsDownDuration_5; - public float NavInputsDownDuration_6; - public float NavInputsDownDuration_7; - public float NavInputsDownDuration_8; - public float NavInputsDownDuration_9; - public float NavInputsDownDuration_10; - public float NavInputsDownDuration_11; - public float NavInputsDownDuration_12; - public float NavInputsDownDuration_13; - public float NavInputsDownDuration_14; - public float NavInputsDownDuration_15; - public float NavInputsDownDuration_16; - public float NavInputsDownDuration_17; - public float NavInputsDownDuration_18; - public float NavInputsDownDuration_19; - public float NavInputsDownDuration_20; - public float NavInputsDownDurationPrev_0; - public float NavInputsDownDurationPrev_1; - public float NavInputsDownDurationPrev_2; - public float NavInputsDownDurationPrev_3; - public float NavInputsDownDurationPrev_4; - public float NavInputsDownDurationPrev_5; - public float NavInputsDownDurationPrev_6; - public float NavInputsDownDurationPrev_7; - public float NavInputsDownDurationPrev_8; - public float NavInputsDownDurationPrev_9; - public float NavInputsDownDurationPrev_10; - public float NavInputsDownDurationPrev_11; - public float NavInputsDownDurationPrev_12; - public float NavInputsDownDurationPrev_13; - public float NavInputsDownDurationPrev_14; - public float NavInputsDownDurationPrev_15; - public float NavInputsDownDurationPrev_16; - public float NavInputsDownDurationPrev_17; - public float NavInputsDownDurationPrev_18; - public float NavInputsDownDurationPrev_19; - public float NavInputsDownDurationPrev_20; - public float PenPressure; - public byte AppFocusLost; - public byte AppAcceptingEvents; - public sbyte BackendUsingLegacyKeyArrays; - public byte BackendUsingLegacyNavInputArray; - public ushort InputQueueSurrogate; - public ImVector<ushort> InputQueueCharacters; - public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate*<void*, byte*> getClipboardTextFn = default, delegate*<void*, byte*, void> setClipboardTextFn = default, void* clipboardUserData = default, delegate*<ImGuiViewport*, ImGuiPlatformImeData*, void> setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, int* keyMap = default, bool* keysDown = default, Vector2 mousePos = default, bool* mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, float* navInputs = default, ImGuiModFlags keyMods = default, ImGuiKeyData* keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Vector2* mouseClickedPos = default, double* mouseClickedTime = default, bool* mouseClicked = default, bool* mouseDoubleClicked = default, ushort* mouseClickedCount = default, ushort* mouseClickedLastCount = default, bool* mouseReleased = default, bool* mouseDownOwned = default, bool* mouseDownOwnedUnlessPopupClose = default, float* mouseDownDuration = default, float* mouseDownDurationPrev = default, Vector2* mouseDragMaxDistanceAbs = default, float* mouseDragMaxDistanceSqr = default, float* navInputsDownDuration = default, float* navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector<ushort> inputQueueCharacters = default) - { - ConfigFlags = configFlags; - BackendFlags = backendFlags; - DisplaySize = displaySize; - DeltaTime = deltaTime; - IniSavingRate = iniSavingRate; - IniFilename = iniFilename; - LogFilename = logFilename; - MouseDoubleClickTime = mouseDoubleClickTime; - MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; - MouseDragThreshold = mouseDragThreshold; - KeyRepeatDelay = keyRepeatDelay; - KeyRepeatRate = keyRepeatRate; - UserData = userData; - Fonts = fonts; - FontGlobalScale = fontGlobalScale; - FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; - FontDefault = fontDefault; - DisplayFramebufferScale = displayFramebufferScale; - ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; - ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; - ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; - ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; - ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; - ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; - ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; - ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; - MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; - ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; - ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; - ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; - ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; - ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; - ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; - ConfigMemoryCompactTimer = configMemoryCompactTimer; - BackendPlatformName = backendPlatformName; - BackendRendererName = backendRendererName; - BackendPlatformUserData = backendPlatformUserData; - BackendRendererUserData = backendRendererUserData; - BackendLanguageUserData = backendLanguageUserData; - GetClipboardTextFn = (void*)getClipboardTextFn; - SetClipboardTextFn = (void*)setClipboardTextFn; - ClipboardUserData = clipboardUserData; - SetPlatformImeDataFn = (void*)setPlatformImeDataFn; - UnusedPadding = unusedPadding; - WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; - WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; - WantTextInput = wantTextInput ? (byte)1 : (byte)0; - WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; - WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; - NavActive = navActive ? (byte)1 : (byte)0; - NavVisible = navVisible ? (byte)1 : (byte)0; - Framerate = framerate; - MetricsRenderVertices = metricsRenderVertices; - MetricsRenderIndices = metricsRenderIndices; - MetricsRenderWindows = metricsRenderWindows; - MetricsActiveWindows = metricsActiveWindows; - MetricsActiveAllocations = metricsActiveAllocations; - MouseDelta = mouseDelta; - if (keyMap != default(int*)) - { - KeyMap_0 = keyMap[0]; - KeyMap_1 = keyMap[1]; - KeyMap_2 = keyMap[2]; - KeyMap_3 = keyMap[3]; - KeyMap_4 = keyMap[4]; - KeyMap_5 = keyMap[5]; - KeyMap_6 = keyMap[6]; - KeyMap_7 = keyMap[7]; - KeyMap_8 = keyMap[8]; - KeyMap_9 = keyMap[9]; - KeyMap_10 = keyMap[10]; - KeyMap_11 = keyMap[11]; - KeyMap_12 = keyMap[12]; - KeyMap_13 = keyMap[13]; - KeyMap_14 = keyMap[14]; - KeyMap_15 = keyMap[15]; - KeyMap_16 = keyMap[16]; - KeyMap_17 = keyMap[17]; - KeyMap_18 = keyMap[18]; - KeyMap_19 = keyMap[19]; - KeyMap_20 = keyMap[20]; - KeyMap_21 = keyMap[21]; - KeyMap_22 = keyMap[22]; - KeyMap_23 = keyMap[23]; - KeyMap_24 = keyMap[24]; - KeyMap_25 = keyMap[25]; - KeyMap_26 = keyMap[26]; - KeyMap_27 = keyMap[27]; - KeyMap_28 = keyMap[28]; - KeyMap_29 = keyMap[29]; - KeyMap_30 = keyMap[30]; - KeyMap_31 = keyMap[31]; - KeyMap_32 = keyMap[32]; - KeyMap_33 = keyMap[33]; - KeyMap_34 = keyMap[34]; - KeyMap_35 = keyMap[35]; - KeyMap_36 = keyMap[36]; - KeyMap_37 = keyMap[37]; - KeyMap_38 = keyMap[38]; - KeyMap_39 = keyMap[39]; - KeyMap_40 = keyMap[40]; - KeyMap_41 = keyMap[41]; - KeyMap_42 = keyMap[42]; - KeyMap_43 = keyMap[43]; - KeyMap_44 = keyMap[44]; - KeyMap_45 = keyMap[45]; - KeyMap_46 = keyMap[46]; - KeyMap_47 = keyMap[47]; - KeyMap_48 = keyMap[48]; - KeyMap_49 = keyMap[49]; - KeyMap_50 = keyMap[50]; - KeyMap_51 = keyMap[51]; - KeyMap_52 = keyMap[52]; - KeyMap_53 = keyMap[53]; - KeyMap_54 = keyMap[54]; - KeyMap_55 = keyMap[55]; - KeyMap_56 = keyMap[56]; - KeyMap_57 = keyMap[57]; - KeyMap_58 = keyMap[58]; - KeyMap_59 = keyMap[59]; - KeyMap_60 = keyMap[60]; - KeyMap_61 = keyMap[61]; - KeyMap_62 = keyMap[62]; - KeyMap_63 = keyMap[63]; - KeyMap_64 = keyMap[64]; - KeyMap_65 = keyMap[65]; - KeyMap_66 = keyMap[66]; - KeyMap_67 = keyMap[67]; - KeyMap_68 = keyMap[68]; - KeyMap_69 = keyMap[69]; - KeyMap_70 = keyMap[70]; - KeyMap_71 = keyMap[71]; - KeyMap_72 = keyMap[72]; - KeyMap_73 = keyMap[73]; - KeyMap_74 = keyMap[74]; - KeyMap_75 = keyMap[75]; - KeyMap_76 = keyMap[76]; - KeyMap_77 = keyMap[77]; - KeyMap_78 = keyMap[78]; - KeyMap_79 = keyMap[79]; - KeyMap_80 = keyMap[80]; - KeyMap_81 = keyMap[81]; - KeyMap_82 = keyMap[82]; - KeyMap_83 = keyMap[83]; - KeyMap_84 = keyMap[84]; - KeyMap_85 = keyMap[85]; - KeyMap_86 = keyMap[86]; - KeyMap_87 = keyMap[87]; - KeyMap_88 = keyMap[88]; - KeyMap_89 = keyMap[89]; - KeyMap_90 = keyMap[90]; - KeyMap_91 = keyMap[91]; - KeyMap_92 = keyMap[92]; - KeyMap_93 = keyMap[93]; - KeyMap_94 = keyMap[94]; - KeyMap_95 = keyMap[95]; - KeyMap_96 = keyMap[96]; - KeyMap_97 = keyMap[97]; - KeyMap_98 = keyMap[98]; - KeyMap_99 = keyMap[99]; - KeyMap_100 = keyMap[100]; - KeyMap_101 = keyMap[101]; - KeyMap_102 = keyMap[102]; - KeyMap_103 = keyMap[103]; - KeyMap_104 = keyMap[104]; - KeyMap_105 = keyMap[105]; - KeyMap_106 = keyMap[106]; - KeyMap_107 = keyMap[107]; - KeyMap_108 = keyMap[108]; - KeyMap_109 = keyMap[109]; - KeyMap_110 = keyMap[110]; - KeyMap_111 = keyMap[111]; - KeyMap_112 = keyMap[112]; - KeyMap_113 = keyMap[113]; - KeyMap_114 = keyMap[114]; - KeyMap_115 = keyMap[115]; - KeyMap_116 = keyMap[116]; - KeyMap_117 = keyMap[117]; - KeyMap_118 = keyMap[118]; - KeyMap_119 = keyMap[119]; - KeyMap_120 = keyMap[120]; - KeyMap_121 = keyMap[121]; - KeyMap_122 = keyMap[122]; - KeyMap_123 = keyMap[123]; - KeyMap_124 = keyMap[124]; - KeyMap_125 = keyMap[125]; - KeyMap_126 = keyMap[126]; - KeyMap_127 = keyMap[127]; - KeyMap_128 = keyMap[128]; - KeyMap_129 = keyMap[129]; - KeyMap_130 = keyMap[130]; - KeyMap_131 = keyMap[131]; - KeyMap_132 = keyMap[132]; - KeyMap_133 = keyMap[133]; - KeyMap_134 = keyMap[134]; - KeyMap_135 = keyMap[135]; - KeyMap_136 = keyMap[136]; - KeyMap_137 = keyMap[137]; - KeyMap_138 = keyMap[138]; - KeyMap_139 = keyMap[139]; - KeyMap_140 = keyMap[140]; - KeyMap_141 = keyMap[141]; - KeyMap_142 = keyMap[142]; - KeyMap_143 = keyMap[143]; - KeyMap_144 = keyMap[144]; - KeyMap_145 = keyMap[145]; - KeyMap_146 = keyMap[146]; - KeyMap_147 = keyMap[147]; - KeyMap_148 = keyMap[148]; - KeyMap_149 = keyMap[149]; - KeyMap_150 = keyMap[150]; - KeyMap_151 = keyMap[151]; - KeyMap_152 = keyMap[152]; - KeyMap_153 = keyMap[153]; - KeyMap_154 = keyMap[154]; - KeyMap_155 = keyMap[155]; - KeyMap_156 = keyMap[156]; - KeyMap_157 = keyMap[157]; - KeyMap_158 = keyMap[158]; - KeyMap_159 = keyMap[159]; - KeyMap_160 = keyMap[160]; - KeyMap_161 = keyMap[161]; - KeyMap_162 = keyMap[162]; - KeyMap_163 = keyMap[163]; - KeyMap_164 = keyMap[164]; - KeyMap_165 = keyMap[165]; - KeyMap_166 = keyMap[166]; - KeyMap_167 = keyMap[167]; - KeyMap_168 = keyMap[168]; - KeyMap_169 = keyMap[169]; - KeyMap_170 = keyMap[170]; - KeyMap_171 = keyMap[171]; - KeyMap_172 = keyMap[172]; - KeyMap_173 = keyMap[173]; - KeyMap_174 = keyMap[174]; - KeyMap_175 = keyMap[175]; - KeyMap_176 = keyMap[176]; - KeyMap_177 = keyMap[177]; - KeyMap_178 = keyMap[178]; - KeyMap_179 = keyMap[179]; - KeyMap_180 = keyMap[180]; - KeyMap_181 = keyMap[181]; - KeyMap_182 = keyMap[182]; - KeyMap_183 = keyMap[183]; - KeyMap_184 = keyMap[184]; - KeyMap_185 = keyMap[185]; - KeyMap_186 = keyMap[186]; - KeyMap_187 = keyMap[187]; - KeyMap_188 = keyMap[188]; - KeyMap_189 = keyMap[189]; - KeyMap_190 = keyMap[190]; - KeyMap_191 = keyMap[191]; - KeyMap_192 = keyMap[192]; - KeyMap_193 = keyMap[193]; - KeyMap_194 = keyMap[194]; - KeyMap_195 = keyMap[195]; - KeyMap_196 = keyMap[196]; - KeyMap_197 = keyMap[197]; - KeyMap_198 = keyMap[198]; - KeyMap_199 = keyMap[199]; - KeyMap_200 = keyMap[200]; - KeyMap_201 = keyMap[201]; - KeyMap_202 = keyMap[202]; - KeyMap_203 = keyMap[203]; - KeyMap_204 = keyMap[204]; - KeyMap_205 = keyMap[205]; - KeyMap_206 = keyMap[206]; - KeyMap_207 = keyMap[207]; - KeyMap_208 = keyMap[208]; - KeyMap_209 = keyMap[209]; - KeyMap_210 = keyMap[210]; - KeyMap_211 = keyMap[211]; - KeyMap_212 = keyMap[212]; - KeyMap_213 = keyMap[213]; - KeyMap_214 = keyMap[214]; - KeyMap_215 = keyMap[215]; - KeyMap_216 = keyMap[216]; - KeyMap_217 = keyMap[217]; - KeyMap_218 = keyMap[218]; - KeyMap_219 = keyMap[219]; - KeyMap_220 = keyMap[220]; - KeyMap_221 = keyMap[221]; - KeyMap_222 = keyMap[222]; - KeyMap_223 = keyMap[223]; - KeyMap_224 = keyMap[224]; - KeyMap_225 = keyMap[225]; - KeyMap_226 = keyMap[226]; - KeyMap_227 = keyMap[227]; - KeyMap_228 = keyMap[228]; - KeyMap_229 = keyMap[229]; - KeyMap_230 = keyMap[230]; - KeyMap_231 = keyMap[231]; - KeyMap_232 = keyMap[232]; - KeyMap_233 = keyMap[233]; - KeyMap_234 = keyMap[234]; - KeyMap_235 = keyMap[235]; - KeyMap_236 = keyMap[236]; - KeyMap_237 = keyMap[237]; - KeyMap_238 = keyMap[238]; - KeyMap_239 = keyMap[239]; - KeyMap_240 = keyMap[240]; - KeyMap_241 = keyMap[241]; - KeyMap_242 = keyMap[242]; - KeyMap_243 = keyMap[243]; - KeyMap_244 = keyMap[244]; - KeyMap_245 = keyMap[245]; - KeyMap_246 = keyMap[246]; - KeyMap_247 = keyMap[247]; - KeyMap_248 = keyMap[248]; - KeyMap_249 = keyMap[249]; - KeyMap_250 = keyMap[250]; - KeyMap_251 = keyMap[251]; - KeyMap_252 = keyMap[252]; - KeyMap_253 = keyMap[253]; - KeyMap_254 = keyMap[254]; - KeyMap_255 = keyMap[255]; - KeyMap_256 = keyMap[256]; - KeyMap_257 = keyMap[257]; - KeyMap_258 = keyMap[258]; - KeyMap_259 = keyMap[259]; - KeyMap_260 = keyMap[260]; - KeyMap_261 = keyMap[261]; - KeyMap_262 = keyMap[262]; - KeyMap_263 = keyMap[263]; - KeyMap_264 = keyMap[264]; - KeyMap_265 = keyMap[265]; - KeyMap_266 = keyMap[266]; - KeyMap_267 = keyMap[267]; - KeyMap_268 = keyMap[268]; - KeyMap_269 = keyMap[269]; - KeyMap_270 = keyMap[270]; - KeyMap_271 = keyMap[271]; - KeyMap_272 = keyMap[272]; - KeyMap_273 = keyMap[273]; - KeyMap_274 = keyMap[274]; - KeyMap_275 = keyMap[275]; - KeyMap_276 = keyMap[276]; - KeyMap_277 = keyMap[277]; - KeyMap_278 = keyMap[278]; - KeyMap_279 = keyMap[279]; - KeyMap_280 = keyMap[280]; - KeyMap_281 = keyMap[281]; - KeyMap_282 = keyMap[282]; - KeyMap_283 = keyMap[283]; - KeyMap_284 = keyMap[284]; - KeyMap_285 = keyMap[285]; - KeyMap_286 = keyMap[286]; - KeyMap_287 = keyMap[287]; - KeyMap_288 = keyMap[288]; - KeyMap_289 = keyMap[289]; - KeyMap_290 = keyMap[290]; - KeyMap_291 = keyMap[291]; - KeyMap_292 = keyMap[292]; - KeyMap_293 = keyMap[293]; - KeyMap_294 = keyMap[294]; - KeyMap_295 = keyMap[295]; - KeyMap_296 = keyMap[296]; - KeyMap_297 = keyMap[297]; - KeyMap_298 = keyMap[298]; - KeyMap_299 = keyMap[299]; - KeyMap_300 = keyMap[300]; - KeyMap_301 = keyMap[301]; - KeyMap_302 = keyMap[302]; - KeyMap_303 = keyMap[303]; - KeyMap_304 = keyMap[304]; - KeyMap_305 = keyMap[305]; - KeyMap_306 = keyMap[306]; - KeyMap_307 = keyMap[307]; - KeyMap_308 = keyMap[308]; - KeyMap_309 = keyMap[309]; - KeyMap_310 = keyMap[310]; - KeyMap_311 = keyMap[311]; - KeyMap_312 = keyMap[312]; - KeyMap_313 = keyMap[313]; - KeyMap_314 = keyMap[314]; - KeyMap_315 = keyMap[315]; - KeyMap_316 = keyMap[316]; - KeyMap_317 = keyMap[317]; - KeyMap_318 = keyMap[318]; - KeyMap_319 = keyMap[319]; - KeyMap_320 = keyMap[320]; - KeyMap_321 = keyMap[321]; - KeyMap_322 = keyMap[322]; - KeyMap_323 = keyMap[323]; - KeyMap_324 = keyMap[324]; - KeyMap_325 = keyMap[325]; - KeyMap_326 = keyMap[326]; - KeyMap_327 = keyMap[327]; - KeyMap_328 = keyMap[328]; - KeyMap_329 = keyMap[329]; - KeyMap_330 = keyMap[330]; - KeyMap_331 = keyMap[331]; - KeyMap_332 = keyMap[332]; - KeyMap_333 = keyMap[333]; - KeyMap_334 = keyMap[334]; - KeyMap_335 = keyMap[335]; - KeyMap_336 = keyMap[336]; - KeyMap_337 = keyMap[337]; - KeyMap_338 = keyMap[338]; - KeyMap_339 = keyMap[339]; - KeyMap_340 = keyMap[340]; - KeyMap_341 = keyMap[341]; - KeyMap_342 = keyMap[342]; - KeyMap_343 = keyMap[343]; - KeyMap_344 = keyMap[344]; - KeyMap_345 = keyMap[345]; - KeyMap_346 = keyMap[346]; - KeyMap_347 = keyMap[347]; - KeyMap_348 = keyMap[348]; - KeyMap_349 = keyMap[349]; - KeyMap_350 = keyMap[350]; - KeyMap_351 = keyMap[351]; - KeyMap_352 = keyMap[352]; - KeyMap_353 = keyMap[353]; - KeyMap_354 = keyMap[354]; - KeyMap_355 = keyMap[355]; - KeyMap_356 = keyMap[356]; - KeyMap_357 = keyMap[357]; - KeyMap_358 = keyMap[358]; - KeyMap_359 = keyMap[359]; - KeyMap_360 = keyMap[360]; - KeyMap_361 = keyMap[361]; - KeyMap_362 = keyMap[362]; - KeyMap_363 = keyMap[363]; - KeyMap_364 = keyMap[364]; - KeyMap_365 = keyMap[365]; - KeyMap_366 = keyMap[366]; - KeyMap_367 = keyMap[367]; - KeyMap_368 = keyMap[368]; - KeyMap_369 = keyMap[369]; - KeyMap_370 = keyMap[370]; - KeyMap_371 = keyMap[371]; - KeyMap_372 = keyMap[372]; - KeyMap_373 = keyMap[373]; - KeyMap_374 = keyMap[374]; - KeyMap_375 = keyMap[375]; - KeyMap_376 = keyMap[376]; - KeyMap_377 = keyMap[377]; - KeyMap_378 = keyMap[378]; - KeyMap_379 = keyMap[379]; - KeyMap_380 = keyMap[380]; - KeyMap_381 = keyMap[381]; - KeyMap_382 = keyMap[382]; - KeyMap_383 = keyMap[383]; - KeyMap_384 = keyMap[384]; - KeyMap_385 = keyMap[385]; - KeyMap_386 = keyMap[386]; - KeyMap_387 = keyMap[387]; - KeyMap_388 = keyMap[388]; - KeyMap_389 = keyMap[389]; - KeyMap_390 = keyMap[390]; - KeyMap_391 = keyMap[391]; - KeyMap_392 = keyMap[392]; - KeyMap_393 = keyMap[393]; - KeyMap_394 = keyMap[394]; - KeyMap_395 = keyMap[395]; - KeyMap_396 = keyMap[396]; - KeyMap_397 = keyMap[397]; - KeyMap_398 = keyMap[398]; - KeyMap_399 = keyMap[399]; - KeyMap_400 = keyMap[400]; - KeyMap_401 = keyMap[401]; - KeyMap_402 = keyMap[402]; - KeyMap_403 = keyMap[403]; - KeyMap_404 = keyMap[404]; - KeyMap_405 = keyMap[405]; - KeyMap_406 = keyMap[406]; - KeyMap_407 = keyMap[407]; - KeyMap_408 = keyMap[408]; - KeyMap_409 = keyMap[409]; - KeyMap_410 = keyMap[410]; - KeyMap_411 = keyMap[411]; - KeyMap_412 = keyMap[412]; - KeyMap_413 = keyMap[413]; - KeyMap_414 = keyMap[414]; - KeyMap_415 = keyMap[415]; - KeyMap_416 = keyMap[416]; - KeyMap_417 = keyMap[417]; - KeyMap_418 = keyMap[418]; - KeyMap_419 = keyMap[419]; - KeyMap_420 = keyMap[420]; - KeyMap_421 = keyMap[421]; - KeyMap_422 = keyMap[422]; - KeyMap_423 = keyMap[423]; - KeyMap_424 = keyMap[424]; - KeyMap_425 = keyMap[425]; - KeyMap_426 = keyMap[426]; - KeyMap_427 = keyMap[427]; - KeyMap_428 = keyMap[428]; - KeyMap_429 = keyMap[429]; - KeyMap_430 = keyMap[430]; - KeyMap_431 = keyMap[431]; - KeyMap_432 = keyMap[432]; - KeyMap_433 = keyMap[433]; - KeyMap_434 = keyMap[434]; - KeyMap_435 = keyMap[435]; - KeyMap_436 = keyMap[436]; - KeyMap_437 = keyMap[437]; - KeyMap_438 = keyMap[438]; - KeyMap_439 = keyMap[439]; - KeyMap_440 = keyMap[440]; - KeyMap_441 = keyMap[441]; - KeyMap_442 = keyMap[442]; - KeyMap_443 = keyMap[443]; - KeyMap_444 = keyMap[444]; - KeyMap_445 = keyMap[445]; - KeyMap_446 = keyMap[446]; - KeyMap_447 = keyMap[447]; - KeyMap_448 = keyMap[448]; - KeyMap_449 = keyMap[449]; - KeyMap_450 = keyMap[450]; - KeyMap_451 = keyMap[451]; - KeyMap_452 = keyMap[452]; - KeyMap_453 = keyMap[453]; - KeyMap_454 = keyMap[454]; - KeyMap_455 = keyMap[455]; - KeyMap_456 = keyMap[456]; - KeyMap_457 = keyMap[457]; - KeyMap_458 = keyMap[458]; - KeyMap_459 = keyMap[459]; - KeyMap_460 = keyMap[460]; - KeyMap_461 = keyMap[461]; - KeyMap_462 = keyMap[462]; - KeyMap_463 = keyMap[463]; - KeyMap_464 = keyMap[464]; - KeyMap_465 = keyMap[465]; - KeyMap_466 = keyMap[466]; - KeyMap_467 = keyMap[467]; - KeyMap_468 = keyMap[468]; - KeyMap_469 = keyMap[469]; - KeyMap_470 = keyMap[470]; - KeyMap_471 = keyMap[471]; - KeyMap_472 = keyMap[472]; - KeyMap_473 = keyMap[473]; - KeyMap_474 = keyMap[474]; - KeyMap_475 = keyMap[475]; - KeyMap_476 = keyMap[476]; - KeyMap_477 = keyMap[477]; - KeyMap_478 = keyMap[478]; - KeyMap_479 = keyMap[479]; - KeyMap_480 = keyMap[480]; - KeyMap_481 = keyMap[481]; - KeyMap_482 = keyMap[482]; - KeyMap_483 = keyMap[483]; - KeyMap_484 = keyMap[484]; - KeyMap_485 = keyMap[485]; - KeyMap_486 = keyMap[486]; - KeyMap_487 = keyMap[487]; - KeyMap_488 = keyMap[488]; - KeyMap_489 = keyMap[489]; - KeyMap_490 = keyMap[490]; - KeyMap_491 = keyMap[491]; - KeyMap_492 = keyMap[492]; - KeyMap_493 = keyMap[493]; - KeyMap_494 = keyMap[494]; - KeyMap_495 = keyMap[495]; - KeyMap_496 = keyMap[496]; - KeyMap_497 = keyMap[497]; - KeyMap_498 = keyMap[498]; - KeyMap_499 = keyMap[499]; - KeyMap_500 = keyMap[500]; - KeyMap_501 = keyMap[501]; - KeyMap_502 = keyMap[502]; - KeyMap_503 = keyMap[503]; - KeyMap_504 = keyMap[504]; - KeyMap_505 = keyMap[505]; - KeyMap_506 = keyMap[506]; - KeyMap_507 = keyMap[507]; - KeyMap_508 = keyMap[508]; - KeyMap_509 = keyMap[509]; - KeyMap_510 = keyMap[510]; - KeyMap_511 = keyMap[511]; - KeyMap_512 = keyMap[512]; - KeyMap_513 = keyMap[513]; - KeyMap_514 = keyMap[514]; - KeyMap_515 = keyMap[515]; - KeyMap_516 = keyMap[516]; - KeyMap_517 = keyMap[517]; - KeyMap_518 = keyMap[518]; - KeyMap_519 = keyMap[519]; - KeyMap_520 = keyMap[520]; - KeyMap_521 = keyMap[521]; - KeyMap_522 = keyMap[522]; - KeyMap_523 = keyMap[523]; - KeyMap_524 = keyMap[524]; - KeyMap_525 = keyMap[525]; - KeyMap_526 = keyMap[526]; - KeyMap_527 = keyMap[527]; - KeyMap_528 = keyMap[528]; - KeyMap_529 = keyMap[529]; - KeyMap_530 = keyMap[530]; - KeyMap_531 = keyMap[531]; - KeyMap_532 = keyMap[532]; - KeyMap_533 = keyMap[533]; - KeyMap_534 = keyMap[534]; - KeyMap_535 = keyMap[535]; - KeyMap_536 = keyMap[536]; - KeyMap_537 = keyMap[537]; - KeyMap_538 = keyMap[538]; - KeyMap_539 = keyMap[539]; - KeyMap_540 = keyMap[540]; - KeyMap_541 = keyMap[541]; - KeyMap_542 = keyMap[542]; - KeyMap_543 = keyMap[543]; - KeyMap_544 = keyMap[544]; - KeyMap_545 = keyMap[545]; - KeyMap_546 = keyMap[546]; - KeyMap_547 = keyMap[547]; - KeyMap_548 = keyMap[548]; - KeyMap_549 = keyMap[549]; - KeyMap_550 = keyMap[550]; - KeyMap_551 = keyMap[551]; - KeyMap_552 = keyMap[552]; - KeyMap_553 = keyMap[553]; - KeyMap_554 = keyMap[554]; - KeyMap_555 = keyMap[555]; - KeyMap_556 = keyMap[556]; - KeyMap_557 = keyMap[557]; - KeyMap_558 = keyMap[558]; - KeyMap_559 = keyMap[559]; - KeyMap_560 = keyMap[560]; - KeyMap_561 = keyMap[561]; - KeyMap_562 = keyMap[562]; - KeyMap_563 = keyMap[563]; - KeyMap_564 = keyMap[564]; - KeyMap_565 = keyMap[565]; - KeyMap_566 = keyMap[566]; - KeyMap_567 = keyMap[567]; - KeyMap_568 = keyMap[568]; - KeyMap_569 = keyMap[569]; - KeyMap_570 = keyMap[570]; - KeyMap_571 = keyMap[571]; - KeyMap_572 = keyMap[572]; - KeyMap_573 = keyMap[573]; - KeyMap_574 = keyMap[574]; - KeyMap_575 = keyMap[575]; - KeyMap_576 = keyMap[576]; - KeyMap_577 = keyMap[577]; - KeyMap_578 = keyMap[578]; - KeyMap_579 = keyMap[579]; - KeyMap_580 = keyMap[580]; - KeyMap_581 = keyMap[581]; - KeyMap_582 = keyMap[582]; - KeyMap_583 = keyMap[583]; - KeyMap_584 = keyMap[584]; - KeyMap_585 = keyMap[585]; - KeyMap_586 = keyMap[586]; - KeyMap_587 = keyMap[587]; - KeyMap_588 = keyMap[588]; - KeyMap_589 = keyMap[589]; - KeyMap_590 = keyMap[590]; - KeyMap_591 = keyMap[591]; - KeyMap_592 = keyMap[592]; - KeyMap_593 = keyMap[593]; - KeyMap_594 = keyMap[594]; - KeyMap_595 = keyMap[595]; - KeyMap_596 = keyMap[596]; - KeyMap_597 = keyMap[597]; - KeyMap_598 = keyMap[598]; - KeyMap_599 = keyMap[599]; - KeyMap_600 = keyMap[600]; - KeyMap_601 = keyMap[601]; - KeyMap_602 = keyMap[602]; - KeyMap_603 = keyMap[603]; - KeyMap_604 = keyMap[604]; - KeyMap_605 = keyMap[605]; - KeyMap_606 = keyMap[606]; - KeyMap_607 = keyMap[607]; - KeyMap_608 = keyMap[608]; - KeyMap_609 = keyMap[609]; - KeyMap_610 = keyMap[610]; - KeyMap_611 = keyMap[611]; - KeyMap_612 = keyMap[612]; - KeyMap_613 = keyMap[613]; - KeyMap_614 = keyMap[614]; - KeyMap_615 = keyMap[615]; - KeyMap_616 = keyMap[616]; - KeyMap_617 = keyMap[617]; - KeyMap_618 = keyMap[618]; - KeyMap_619 = keyMap[619]; - KeyMap_620 = keyMap[620]; - KeyMap_621 = keyMap[621]; - KeyMap_622 = keyMap[622]; - KeyMap_623 = keyMap[623]; - KeyMap_624 = keyMap[624]; - KeyMap_625 = keyMap[625]; - KeyMap_626 = keyMap[626]; - KeyMap_627 = keyMap[627]; - KeyMap_628 = keyMap[628]; - KeyMap_629 = keyMap[629]; - KeyMap_630 = keyMap[630]; - KeyMap_631 = keyMap[631]; - KeyMap_632 = keyMap[632]; - KeyMap_633 = keyMap[633]; - KeyMap_634 = keyMap[634]; - KeyMap_635 = keyMap[635]; - KeyMap_636 = keyMap[636]; - KeyMap_637 = keyMap[637]; - KeyMap_638 = keyMap[638]; - KeyMap_639 = keyMap[639]; - KeyMap_640 = keyMap[640]; - KeyMap_641 = keyMap[641]; - KeyMap_642 = keyMap[642]; - KeyMap_643 = keyMap[643]; - KeyMap_644 = keyMap[644]; - } - if (keysDown != default(bool*)) - { - KeysDown_0 = keysDown[0]; - KeysDown_1 = keysDown[1]; - KeysDown_2 = keysDown[2]; - KeysDown_3 = keysDown[3]; - KeysDown_4 = keysDown[4]; - KeysDown_5 = keysDown[5]; - KeysDown_6 = keysDown[6]; - KeysDown_7 = keysDown[7]; - KeysDown_8 = keysDown[8]; - KeysDown_9 = keysDown[9]; - KeysDown_10 = keysDown[10]; - KeysDown_11 = keysDown[11]; - KeysDown_12 = keysDown[12]; - KeysDown_13 = keysDown[13]; - KeysDown_14 = keysDown[14]; - KeysDown_15 = keysDown[15]; - KeysDown_16 = keysDown[16]; - KeysDown_17 = keysDown[17]; - KeysDown_18 = keysDown[18]; - KeysDown_19 = keysDown[19]; - KeysDown_20 = keysDown[20]; - KeysDown_21 = keysDown[21]; - KeysDown_22 = keysDown[22]; - KeysDown_23 = keysDown[23]; - KeysDown_24 = keysDown[24]; - KeysDown_25 = keysDown[25]; - KeysDown_26 = keysDown[26]; - KeysDown_27 = keysDown[27]; - KeysDown_28 = keysDown[28]; - KeysDown_29 = keysDown[29]; - KeysDown_30 = keysDown[30]; - KeysDown_31 = keysDown[31]; - KeysDown_32 = keysDown[32]; - KeysDown_33 = keysDown[33]; - KeysDown_34 = keysDown[34]; - KeysDown_35 = keysDown[35]; - KeysDown_36 = keysDown[36]; - KeysDown_37 = keysDown[37]; - KeysDown_38 = keysDown[38]; - KeysDown_39 = keysDown[39]; - KeysDown_40 = keysDown[40]; - KeysDown_41 = keysDown[41]; - KeysDown_42 = keysDown[42]; - KeysDown_43 = keysDown[43]; - KeysDown_44 = keysDown[44]; - KeysDown_45 = keysDown[45]; - KeysDown_46 = keysDown[46]; - KeysDown_47 = keysDown[47]; - KeysDown_48 = keysDown[48]; - KeysDown_49 = keysDown[49]; - KeysDown_50 = keysDown[50]; - KeysDown_51 = keysDown[51]; - KeysDown_52 = keysDown[52]; - KeysDown_53 = keysDown[53]; - KeysDown_54 = keysDown[54]; - KeysDown_55 = keysDown[55]; - KeysDown_56 = keysDown[56]; - KeysDown_57 = keysDown[57]; - KeysDown_58 = keysDown[58]; - KeysDown_59 = keysDown[59]; - KeysDown_60 = keysDown[60]; - KeysDown_61 = keysDown[61]; - KeysDown_62 = keysDown[62]; - KeysDown_63 = keysDown[63]; - KeysDown_64 = keysDown[64]; - KeysDown_65 = keysDown[65]; - KeysDown_66 = keysDown[66]; - KeysDown_67 = keysDown[67]; - KeysDown_68 = keysDown[68]; - KeysDown_69 = keysDown[69]; - KeysDown_70 = keysDown[70]; - KeysDown_71 = keysDown[71]; - KeysDown_72 = keysDown[72]; - KeysDown_73 = keysDown[73]; - KeysDown_74 = keysDown[74]; - KeysDown_75 = keysDown[75]; - KeysDown_76 = keysDown[76]; - KeysDown_77 = keysDown[77]; - KeysDown_78 = keysDown[78]; - KeysDown_79 = keysDown[79]; - KeysDown_80 = keysDown[80]; - KeysDown_81 = keysDown[81]; - KeysDown_82 = keysDown[82]; - KeysDown_83 = keysDown[83]; - KeysDown_84 = keysDown[84]; - KeysDown_85 = keysDown[85]; - KeysDown_86 = keysDown[86]; - KeysDown_87 = keysDown[87]; - KeysDown_88 = keysDown[88]; - KeysDown_89 = keysDown[89]; - KeysDown_90 = keysDown[90]; - KeysDown_91 = keysDown[91]; - KeysDown_92 = keysDown[92]; - KeysDown_93 = keysDown[93]; - KeysDown_94 = keysDown[94]; - KeysDown_95 = keysDown[95]; - KeysDown_96 = keysDown[96]; - KeysDown_97 = keysDown[97]; - KeysDown_98 = keysDown[98]; - KeysDown_99 = keysDown[99]; - KeysDown_100 = keysDown[100]; - KeysDown_101 = keysDown[101]; - KeysDown_102 = keysDown[102]; - KeysDown_103 = keysDown[103]; - KeysDown_104 = keysDown[104]; - KeysDown_105 = keysDown[105]; - KeysDown_106 = keysDown[106]; - KeysDown_107 = keysDown[107]; - KeysDown_108 = keysDown[108]; - KeysDown_109 = keysDown[109]; - KeysDown_110 = keysDown[110]; - KeysDown_111 = keysDown[111]; - KeysDown_112 = keysDown[112]; - KeysDown_113 = keysDown[113]; - KeysDown_114 = keysDown[114]; - KeysDown_115 = keysDown[115]; - KeysDown_116 = keysDown[116]; - KeysDown_117 = keysDown[117]; - KeysDown_118 = keysDown[118]; - KeysDown_119 = keysDown[119]; - KeysDown_120 = keysDown[120]; - KeysDown_121 = keysDown[121]; - KeysDown_122 = keysDown[122]; - KeysDown_123 = keysDown[123]; - KeysDown_124 = keysDown[124]; - KeysDown_125 = keysDown[125]; - KeysDown_126 = keysDown[126]; - KeysDown_127 = keysDown[127]; - KeysDown_128 = keysDown[128]; - KeysDown_129 = keysDown[129]; - KeysDown_130 = keysDown[130]; - KeysDown_131 = keysDown[131]; - KeysDown_132 = keysDown[132]; - KeysDown_133 = keysDown[133]; - KeysDown_134 = keysDown[134]; - KeysDown_135 = keysDown[135]; - KeysDown_136 = keysDown[136]; - KeysDown_137 = keysDown[137]; - KeysDown_138 = keysDown[138]; - KeysDown_139 = keysDown[139]; - KeysDown_140 = keysDown[140]; - KeysDown_141 = keysDown[141]; - KeysDown_142 = keysDown[142]; - KeysDown_143 = keysDown[143]; - KeysDown_144 = keysDown[144]; - KeysDown_145 = keysDown[145]; - KeysDown_146 = keysDown[146]; - KeysDown_147 = keysDown[147]; - KeysDown_148 = keysDown[148]; - KeysDown_149 = keysDown[149]; - KeysDown_150 = keysDown[150]; - KeysDown_151 = keysDown[151]; - KeysDown_152 = keysDown[152]; - KeysDown_153 = keysDown[153]; - KeysDown_154 = keysDown[154]; - KeysDown_155 = keysDown[155]; - KeysDown_156 = keysDown[156]; - KeysDown_157 = keysDown[157]; - KeysDown_158 = keysDown[158]; - KeysDown_159 = keysDown[159]; - KeysDown_160 = keysDown[160]; - KeysDown_161 = keysDown[161]; - KeysDown_162 = keysDown[162]; - KeysDown_163 = keysDown[163]; - KeysDown_164 = keysDown[164]; - KeysDown_165 = keysDown[165]; - KeysDown_166 = keysDown[166]; - KeysDown_167 = keysDown[167]; - KeysDown_168 = keysDown[168]; - KeysDown_169 = keysDown[169]; - KeysDown_170 = keysDown[170]; - KeysDown_171 = keysDown[171]; - KeysDown_172 = keysDown[172]; - KeysDown_173 = keysDown[173]; - KeysDown_174 = keysDown[174]; - KeysDown_175 = keysDown[175]; - KeysDown_176 = keysDown[176]; - KeysDown_177 = keysDown[177]; - KeysDown_178 = keysDown[178]; - KeysDown_179 = keysDown[179]; - KeysDown_180 = keysDown[180]; - KeysDown_181 = keysDown[181]; - KeysDown_182 = keysDown[182]; - KeysDown_183 = keysDown[183]; - KeysDown_184 = keysDown[184]; - KeysDown_185 = keysDown[185]; - KeysDown_186 = keysDown[186]; - KeysDown_187 = keysDown[187]; - KeysDown_188 = keysDown[188]; - KeysDown_189 = keysDown[189]; - KeysDown_190 = keysDown[190]; - KeysDown_191 = keysDown[191]; - KeysDown_192 = keysDown[192]; - KeysDown_193 = keysDown[193]; - KeysDown_194 = keysDown[194]; - KeysDown_195 = keysDown[195]; - KeysDown_196 = keysDown[196]; - KeysDown_197 = keysDown[197]; - KeysDown_198 = keysDown[198]; - KeysDown_199 = keysDown[199]; - KeysDown_200 = keysDown[200]; - KeysDown_201 = keysDown[201]; - KeysDown_202 = keysDown[202]; - KeysDown_203 = keysDown[203]; - KeysDown_204 = keysDown[204]; - KeysDown_205 = keysDown[205]; - KeysDown_206 = keysDown[206]; - KeysDown_207 = keysDown[207]; - KeysDown_208 = keysDown[208]; - KeysDown_209 = keysDown[209]; - KeysDown_210 = keysDown[210]; - KeysDown_211 = keysDown[211]; - KeysDown_212 = keysDown[212]; - KeysDown_213 = keysDown[213]; - KeysDown_214 = keysDown[214]; - KeysDown_215 = keysDown[215]; - KeysDown_216 = keysDown[216]; - KeysDown_217 = keysDown[217]; - KeysDown_218 = keysDown[218]; - KeysDown_219 = keysDown[219]; - KeysDown_220 = keysDown[220]; - KeysDown_221 = keysDown[221]; - KeysDown_222 = keysDown[222]; - KeysDown_223 = keysDown[223]; - KeysDown_224 = keysDown[224]; - KeysDown_225 = keysDown[225]; - KeysDown_226 = keysDown[226]; - KeysDown_227 = keysDown[227]; - KeysDown_228 = keysDown[228]; - KeysDown_229 = keysDown[229]; - KeysDown_230 = keysDown[230]; - KeysDown_231 = keysDown[231]; - KeysDown_232 = keysDown[232]; - KeysDown_233 = keysDown[233]; - KeysDown_234 = keysDown[234]; - KeysDown_235 = keysDown[235]; - KeysDown_236 = keysDown[236]; - KeysDown_237 = keysDown[237]; - KeysDown_238 = keysDown[238]; - KeysDown_239 = keysDown[239]; - KeysDown_240 = keysDown[240]; - KeysDown_241 = keysDown[241]; - KeysDown_242 = keysDown[242]; - KeysDown_243 = keysDown[243]; - KeysDown_244 = keysDown[244]; - KeysDown_245 = keysDown[245]; - KeysDown_246 = keysDown[246]; - KeysDown_247 = keysDown[247]; - KeysDown_248 = keysDown[248]; - KeysDown_249 = keysDown[249]; - KeysDown_250 = keysDown[250]; - KeysDown_251 = keysDown[251]; - KeysDown_252 = keysDown[252]; - KeysDown_253 = keysDown[253]; - KeysDown_254 = keysDown[254]; - KeysDown_255 = keysDown[255]; - KeysDown_256 = keysDown[256]; - KeysDown_257 = keysDown[257]; - KeysDown_258 = keysDown[258]; - KeysDown_259 = keysDown[259]; - KeysDown_260 = keysDown[260]; - KeysDown_261 = keysDown[261]; - KeysDown_262 = keysDown[262]; - KeysDown_263 = keysDown[263]; - KeysDown_264 = keysDown[264]; - KeysDown_265 = keysDown[265]; - KeysDown_266 = keysDown[266]; - KeysDown_267 = keysDown[267]; - KeysDown_268 = keysDown[268]; - KeysDown_269 = keysDown[269]; - KeysDown_270 = keysDown[270]; - KeysDown_271 = keysDown[271]; - KeysDown_272 = keysDown[272]; - KeysDown_273 = keysDown[273]; - KeysDown_274 = keysDown[274]; - KeysDown_275 = keysDown[275]; - KeysDown_276 = keysDown[276]; - KeysDown_277 = keysDown[277]; - KeysDown_278 = keysDown[278]; - KeysDown_279 = keysDown[279]; - KeysDown_280 = keysDown[280]; - KeysDown_281 = keysDown[281]; - KeysDown_282 = keysDown[282]; - KeysDown_283 = keysDown[283]; - KeysDown_284 = keysDown[284]; - KeysDown_285 = keysDown[285]; - KeysDown_286 = keysDown[286]; - KeysDown_287 = keysDown[287]; - KeysDown_288 = keysDown[288]; - KeysDown_289 = keysDown[289]; - KeysDown_290 = keysDown[290]; - KeysDown_291 = keysDown[291]; - KeysDown_292 = keysDown[292]; - KeysDown_293 = keysDown[293]; - KeysDown_294 = keysDown[294]; - KeysDown_295 = keysDown[295]; - KeysDown_296 = keysDown[296]; - KeysDown_297 = keysDown[297]; - KeysDown_298 = keysDown[298]; - KeysDown_299 = keysDown[299]; - KeysDown_300 = keysDown[300]; - KeysDown_301 = keysDown[301]; - KeysDown_302 = keysDown[302]; - KeysDown_303 = keysDown[303]; - KeysDown_304 = keysDown[304]; - KeysDown_305 = keysDown[305]; - KeysDown_306 = keysDown[306]; - KeysDown_307 = keysDown[307]; - KeysDown_308 = keysDown[308]; - KeysDown_309 = keysDown[309]; - KeysDown_310 = keysDown[310]; - KeysDown_311 = keysDown[311]; - KeysDown_312 = keysDown[312]; - KeysDown_313 = keysDown[313]; - KeysDown_314 = keysDown[314]; - KeysDown_315 = keysDown[315]; - KeysDown_316 = keysDown[316]; - KeysDown_317 = keysDown[317]; - KeysDown_318 = keysDown[318]; - KeysDown_319 = keysDown[319]; - KeysDown_320 = keysDown[320]; - KeysDown_321 = keysDown[321]; - KeysDown_322 = keysDown[322]; - KeysDown_323 = keysDown[323]; - KeysDown_324 = keysDown[324]; - KeysDown_325 = keysDown[325]; - KeysDown_326 = keysDown[326]; - KeysDown_327 = keysDown[327]; - KeysDown_328 = keysDown[328]; - KeysDown_329 = keysDown[329]; - KeysDown_330 = keysDown[330]; - KeysDown_331 = keysDown[331]; - KeysDown_332 = keysDown[332]; - KeysDown_333 = keysDown[333]; - KeysDown_334 = keysDown[334]; - KeysDown_335 = keysDown[335]; - KeysDown_336 = keysDown[336]; - KeysDown_337 = keysDown[337]; - KeysDown_338 = keysDown[338]; - KeysDown_339 = keysDown[339]; - KeysDown_340 = keysDown[340]; - KeysDown_341 = keysDown[341]; - KeysDown_342 = keysDown[342]; - KeysDown_343 = keysDown[343]; - KeysDown_344 = keysDown[344]; - KeysDown_345 = keysDown[345]; - KeysDown_346 = keysDown[346]; - KeysDown_347 = keysDown[347]; - KeysDown_348 = keysDown[348]; - KeysDown_349 = keysDown[349]; - KeysDown_350 = keysDown[350]; - KeysDown_351 = keysDown[351]; - KeysDown_352 = keysDown[352]; - KeysDown_353 = keysDown[353]; - KeysDown_354 = keysDown[354]; - KeysDown_355 = keysDown[355]; - KeysDown_356 = keysDown[356]; - KeysDown_357 = keysDown[357]; - KeysDown_358 = keysDown[358]; - KeysDown_359 = keysDown[359]; - KeysDown_360 = keysDown[360]; - KeysDown_361 = keysDown[361]; - KeysDown_362 = keysDown[362]; - KeysDown_363 = keysDown[363]; - KeysDown_364 = keysDown[364]; - KeysDown_365 = keysDown[365]; - KeysDown_366 = keysDown[366]; - KeysDown_367 = keysDown[367]; - KeysDown_368 = keysDown[368]; - KeysDown_369 = keysDown[369]; - KeysDown_370 = keysDown[370]; - KeysDown_371 = keysDown[371]; - KeysDown_372 = keysDown[372]; - KeysDown_373 = keysDown[373]; - KeysDown_374 = keysDown[374]; - KeysDown_375 = keysDown[375]; - KeysDown_376 = keysDown[376]; - KeysDown_377 = keysDown[377]; - KeysDown_378 = keysDown[378]; - KeysDown_379 = keysDown[379]; - KeysDown_380 = keysDown[380]; - KeysDown_381 = keysDown[381]; - KeysDown_382 = keysDown[382]; - KeysDown_383 = keysDown[383]; - KeysDown_384 = keysDown[384]; - KeysDown_385 = keysDown[385]; - KeysDown_386 = keysDown[386]; - KeysDown_387 = keysDown[387]; - KeysDown_388 = keysDown[388]; - KeysDown_389 = keysDown[389]; - KeysDown_390 = keysDown[390]; - KeysDown_391 = keysDown[391]; - KeysDown_392 = keysDown[392]; - KeysDown_393 = keysDown[393]; - KeysDown_394 = keysDown[394]; - KeysDown_395 = keysDown[395]; - KeysDown_396 = keysDown[396]; - KeysDown_397 = keysDown[397]; - KeysDown_398 = keysDown[398]; - KeysDown_399 = keysDown[399]; - KeysDown_400 = keysDown[400]; - KeysDown_401 = keysDown[401]; - KeysDown_402 = keysDown[402]; - KeysDown_403 = keysDown[403]; - KeysDown_404 = keysDown[404]; - KeysDown_405 = keysDown[405]; - KeysDown_406 = keysDown[406]; - KeysDown_407 = keysDown[407]; - KeysDown_408 = keysDown[408]; - KeysDown_409 = keysDown[409]; - KeysDown_410 = keysDown[410]; - KeysDown_411 = keysDown[411]; - KeysDown_412 = keysDown[412]; - KeysDown_413 = keysDown[413]; - KeysDown_414 = keysDown[414]; - KeysDown_415 = keysDown[415]; - KeysDown_416 = keysDown[416]; - KeysDown_417 = keysDown[417]; - KeysDown_418 = keysDown[418]; - KeysDown_419 = keysDown[419]; - KeysDown_420 = keysDown[420]; - KeysDown_421 = keysDown[421]; - KeysDown_422 = keysDown[422]; - KeysDown_423 = keysDown[423]; - KeysDown_424 = keysDown[424]; - KeysDown_425 = keysDown[425]; - KeysDown_426 = keysDown[426]; - KeysDown_427 = keysDown[427]; - KeysDown_428 = keysDown[428]; - KeysDown_429 = keysDown[429]; - KeysDown_430 = keysDown[430]; - KeysDown_431 = keysDown[431]; - KeysDown_432 = keysDown[432]; - KeysDown_433 = keysDown[433]; - KeysDown_434 = keysDown[434]; - KeysDown_435 = keysDown[435]; - KeysDown_436 = keysDown[436]; - KeysDown_437 = keysDown[437]; - KeysDown_438 = keysDown[438]; - KeysDown_439 = keysDown[439]; - KeysDown_440 = keysDown[440]; - KeysDown_441 = keysDown[441]; - KeysDown_442 = keysDown[442]; - KeysDown_443 = keysDown[443]; - KeysDown_444 = keysDown[444]; - KeysDown_445 = keysDown[445]; - KeysDown_446 = keysDown[446]; - KeysDown_447 = keysDown[447]; - KeysDown_448 = keysDown[448]; - KeysDown_449 = keysDown[449]; - KeysDown_450 = keysDown[450]; - KeysDown_451 = keysDown[451]; - KeysDown_452 = keysDown[452]; - KeysDown_453 = keysDown[453]; - KeysDown_454 = keysDown[454]; - KeysDown_455 = keysDown[455]; - KeysDown_456 = keysDown[456]; - KeysDown_457 = keysDown[457]; - KeysDown_458 = keysDown[458]; - KeysDown_459 = keysDown[459]; - KeysDown_460 = keysDown[460]; - KeysDown_461 = keysDown[461]; - KeysDown_462 = keysDown[462]; - KeysDown_463 = keysDown[463]; - KeysDown_464 = keysDown[464]; - KeysDown_465 = keysDown[465]; - KeysDown_466 = keysDown[466]; - KeysDown_467 = keysDown[467]; - KeysDown_468 = keysDown[468]; - KeysDown_469 = keysDown[469]; - KeysDown_470 = keysDown[470]; - KeysDown_471 = keysDown[471]; - KeysDown_472 = keysDown[472]; - KeysDown_473 = keysDown[473]; - KeysDown_474 = keysDown[474]; - KeysDown_475 = keysDown[475]; - KeysDown_476 = keysDown[476]; - KeysDown_477 = keysDown[477]; - KeysDown_478 = keysDown[478]; - KeysDown_479 = keysDown[479]; - KeysDown_480 = keysDown[480]; - KeysDown_481 = keysDown[481]; - KeysDown_482 = keysDown[482]; - KeysDown_483 = keysDown[483]; - KeysDown_484 = keysDown[484]; - KeysDown_485 = keysDown[485]; - KeysDown_486 = keysDown[486]; - KeysDown_487 = keysDown[487]; - KeysDown_488 = keysDown[488]; - KeysDown_489 = keysDown[489]; - KeysDown_490 = keysDown[490]; - KeysDown_491 = keysDown[491]; - KeysDown_492 = keysDown[492]; - KeysDown_493 = keysDown[493]; - KeysDown_494 = keysDown[494]; - KeysDown_495 = keysDown[495]; - KeysDown_496 = keysDown[496]; - KeysDown_497 = keysDown[497]; - KeysDown_498 = keysDown[498]; - KeysDown_499 = keysDown[499]; - KeysDown_500 = keysDown[500]; - KeysDown_501 = keysDown[501]; - KeysDown_502 = keysDown[502]; - KeysDown_503 = keysDown[503]; - KeysDown_504 = keysDown[504]; - KeysDown_505 = keysDown[505]; - KeysDown_506 = keysDown[506]; - KeysDown_507 = keysDown[507]; - KeysDown_508 = keysDown[508]; - KeysDown_509 = keysDown[509]; - KeysDown_510 = keysDown[510]; - KeysDown_511 = keysDown[511]; - KeysDown_512 = keysDown[512]; - KeysDown_513 = keysDown[513]; - KeysDown_514 = keysDown[514]; - KeysDown_515 = keysDown[515]; - KeysDown_516 = keysDown[516]; - KeysDown_517 = keysDown[517]; - KeysDown_518 = keysDown[518]; - KeysDown_519 = keysDown[519]; - KeysDown_520 = keysDown[520]; - KeysDown_521 = keysDown[521]; - KeysDown_522 = keysDown[522]; - KeysDown_523 = keysDown[523]; - KeysDown_524 = keysDown[524]; - KeysDown_525 = keysDown[525]; - KeysDown_526 = keysDown[526]; - KeysDown_527 = keysDown[527]; - KeysDown_528 = keysDown[528]; - KeysDown_529 = keysDown[529]; - KeysDown_530 = keysDown[530]; - KeysDown_531 = keysDown[531]; - KeysDown_532 = keysDown[532]; - KeysDown_533 = keysDown[533]; - KeysDown_534 = keysDown[534]; - KeysDown_535 = keysDown[535]; - KeysDown_536 = keysDown[536]; - KeysDown_537 = keysDown[537]; - KeysDown_538 = keysDown[538]; - KeysDown_539 = keysDown[539]; - KeysDown_540 = keysDown[540]; - KeysDown_541 = keysDown[541]; - KeysDown_542 = keysDown[542]; - KeysDown_543 = keysDown[543]; - KeysDown_544 = keysDown[544]; - KeysDown_545 = keysDown[545]; - KeysDown_546 = keysDown[546]; - KeysDown_547 = keysDown[547]; - KeysDown_548 = keysDown[548]; - KeysDown_549 = keysDown[549]; - KeysDown_550 = keysDown[550]; - KeysDown_551 = keysDown[551]; - KeysDown_552 = keysDown[552]; - KeysDown_553 = keysDown[553]; - KeysDown_554 = keysDown[554]; - KeysDown_555 = keysDown[555]; - KeysDown_556 = keysDown[556]; - KeysDown_557 = keysDown[557]; - KeysDown_558 = keysDown[558]; - KeysDown_559 = keysDown[559]; - KeysDown_560 = keysDown[560]; - KeysDown_561 = keysDown[561]; - KeysDown_562 = keysDown[562]; - KeysDown_563 = keysDown[563]; - KeysDown_564 = keysDown[564]; - KeysDown_565 = keysDown[565]; - KeysDown_566 = keysDown[566]; - KeysDown_567 = keysDown[567]; - KeysDown_568 = keysDown[568]; - KeysDown_569 = keysDown[569]; - KeysDown_570 = keysDown[570]; - KeysDown_571 = keysDown[571]; - KeysDown_572 = keysDown[572]; - KeysDown_573 = keysDown[573]; - KeysDown_574 = keysDown[574]; - KeysDown_575 = keysDown[575]; - KeysDown_576 = keysDown[576]; - KeysDown_577 = keysDown[577]; - KeysDown_578 = keysDown[578]; - KeysDown_579 = keysDown[579]; - KeysDown_580 = keysDown[580]; - KeysDown_581 = keysDown[581]; - KeysDown_582 = keysDown[582]; - KeysDown_583 = keysDown[583]; - KeysDown_584 = keysDown[584]; - KeysDown_585 = keysDown[585]; - KeysDown_586 = keysDown[586]; - KeysDown_587 = keysDown[587]; - KeysDown_588 = keysDown[588]; - KeysDown_589 = keysDown[589]; - KeysDown_590 = keysDown[590]; - KeysDown_591 = keysDown[591]; - KeysDown_592 = keysDown[592]; - KeysDown_593 = keysDown[593]; - KeysDown_594 = keysDown[594]; - KeysDown_595 = keysDown[595]; - KeysDown_596 = keysDown[596]; - KeysDown_597 = keysDown[597]; - KeysDown_598 = keysDown[598]; - KeysDown_599 = keysDown[599]; - KeysDown_600 = keysDown[600]; - KeysDown_601 = keysDown[601]; - KeysDown_602 = keysDown[602]; - KeysDown_603 = keysDown[603]; - KeysDown_604 = keysDown[604]; - KeysDown_605 = keysDown[605]; - KeysDown_606 = keysDown[606]; - KeysDown_607 = keysDown[607]; - KeysDown_608 = keysDown[608]; - KeysDown_609 = keysDown[609]; - KeysDown_610 = keysDown[610]; - KeysDown_611 = keysDown[611]; - KeysDown_612 = keysDown[612]; - KeysDown_613 = keysDown[613]; - KeysDown_614 = keysDown[614]; - KeysDown_615 = keysDown[615]; - KeysDown_616 = keysDown[616]; - KeysDown_617 = keysDown[617]; - KeysDown_618 = keysDown[618]; - KeysDown_619 = keysDown[619]; - KeysDown_620 = keysDown[620]; - KeysDown_621 = keysDown[621]; - KeysDown_622 = keysDown[622]; - KeysDown_623 = keysDown[623]; - KeysDown_624 = keysDown[624]; - KeysDown_625 = keysDown[625]; - KeysDown_626 = keysDown[626]; - KeysDown_627 = keysDown[627]; - KeysDown_628 = keysDown[628]; - KeysDown_629 = keysDown[629]; - KeysDown_630 = keysDown[630]; - KeysDown_631 = keysDown[631]; - KeysDown_632 = keysDown[632]; - KeysDown_633 = keysDown[633]; - KeysDown_634 = keysDown[634]; - KeysDown_635 = keysDown[635]; - KeysDown_636 = keysDown[636]; - KeysDown_637 = keysDown[637]; - KeysDown_638 = keysDown[638]; - KeysDown_639 = keysDown[639]; - KeysDown_640 = keysDown[640]; - KeysDown_641 = keysDown[641]; - KeysDown_642 = keysDown[642]; - KeysDown_643 = keysDown[643]; - KeysDown_644 = keysDown[644]; - } - MousePos = mousePos; - if (mouseDown != default(bool*)) - { - MouseDown_0 = mouseDown[0]; - MouseDown_1 = mouseDown[1]; - MouseDown_2 = mouseDown[2]; - MouseDown_3 = mouseDown[3]; - MouseDown_4 = mouseDown[4]; - } - MouseWheel = mouseWheel; - MouseWheelH = mouseWheelH; - MouseHoveredViewport = mouseHoveredViewport; - KeyCtrl = keyCtrl ? (byte)1 : (byte)0; - KeyShift = keyShift ? (byte)1 : (byte)0; - KeyAlt = keyAlt ? (byte)1 : (byte)0; - KeySuper = keySuper ? (byte)1 : (byte)0; - if (navInputs != default(float*)) - { - NavInputs_0 = navInputs[0]; - NavInputs_1 = navInputs[1]; - NavInputs_2 = navInputs[2]; - NavInputs_3 = navInputs[3]; - NavInputs_4 = navInputs[4]; - NavInputs_5 = navInputs[5]; - NavInputs_6 = navInputs[6]; - NavInputs_7 = navInputs[7]; - NavInputs_8 = navInputs[8]; - NavInputs_9 = navInputs[9]; - NavInputs_10 = navInputs[10]; - NavInputs_11 = navInputs[11]; - NavInputs_12 = navInputs[12]; - NavInputs_13 = navInputs[13]; - NavInputs_14 = navInputs[14]; - NavInputs_15 = navInputs[15]; - NavInputs_16 = navInputs[16]; - NavInputs_17 = navInputs[17]; - NavInputs_18 = navInputs[18]; - NavInputs_19 = navInputs[19]; - NavInputs_20 = navInputs[20]; - } - KeyMods = keyMods; - if (keysData != default(ImGuiKeyData*)) - { - KeysData_0 = keysData[0]; - KeysData_1 = keysData[1]; - KeysData_2 = keysData[2]; - KeysData_3 = keysData[3]; - KeysData_4 = keysData[4]; - KeysData_5 = keysData[5]; - KeysData_6 = keysData[6]; - KeysData_7 = keysData[7]; - KeysData_8 = keysData[8]; - KeysData_9 = keysData[9]; - KeysData_10 = keysData[10]; - KeysData_11 = keysData[11]; - KeysData_12 = keysData[12]; - KeysData_13 = keysData[13]; - KeysData_14 = keysData[14]; - KeysData_15 = keysData[15]; - KeysData_16 = keysData[16]; - KeysData_17 = keysData[17]; - KeysData_18 = keysData[18]; - KeysData_19 = keysData[19]; - KeysData_20 = keysData[20]; - KeysData_21 = keysData[21]; - KeysData_22 = keysData[22]; - KeysData_23 = keysData[23]; - KeysData_24 = keysData[24]; - KeysData_25 = keysData[25]; - KeysData_26 = keysData[26]; - KeysData_27 = keysData[27]; - KeysData_28 = keysData[28]; - KeysData_29 = keysData[29]; - KeysData_30 = keysData[30]; - KeysData_31 = keysData[31]; - KeysData_32 = keysData[32]; - KeysData_33 = keysData[33]; - KeysData_34 = keysData[34]; - KeysData_35 = keysData[35]; - KeysData_36 = keysData[36]; - KeysData_37 = keysData[37]; - KeysData_38 = keysData[38]; - KeysData_39 = keysData[39]; - KeysData_40 = keysData[40]; - KeysData_41 = keysData[41]; - KeysData_42 = keysData[42]; - KeysData_43 = keysData[43]; - KeysData_44 = keysData[44]; - KeysData_45 = keysData[45]; - KeysData_46 = keysData[46]; - KeysData_47 = keysData[47]; - KeysData_48 = keysData[48]; - KeysData_49 = keysData[49]; - KeysData_50 = keysData[50]; - KeysData_51 = keysData[51]; - KeysData_52 = keysData[52]; - KeysData_53 = keysData[53]; - KeysData_54 = keysData[54]; - KeysData_55 = keysData[55]; - KeysData_56 = keysData[56]; - KeysData_57 = keysData[57]; - KeysData_58 = keysData[58]; - KeysData_59 = keysData[59]; - KeysData_60 = keysData[60]; - KeysData_61 = keysData[61]; - KeysData_62 = keysData[62]; - KeysData_63 = keysData[63]; - KeysData_64 = keysData[64]; - KeysData_65 = keysData[65]; - KeysData_66 = keysData[66]; - KeysData_67 = keysData[67]; - KeysData_68 = keysData[68]; - KeysData_69 = keysData[69]; - KeysData_70 = keysData[70]; - KeysData_71 = keysData[71]; - KeysData_72 = keysData[72]; - KeysData_73 = keysData[73]; - KeysData_74 = keysData[74]; - KeysData_75 = keysData[75]; - KeysData_76 = keysData[76]; - KeysData_77 = keysData[77]; - KeysData_78 = keysData[78]; - KeysData_79 = keysData[79]; - KeysData_80 = keysData[80]; - KeysData_81 = keysData[81]; - KeysData_82 = keysData[82]; - KeysData_83 = keysData[83]; - KeysData_84 = keysData[84]; - KeysData_85 = keysData[85]; - KeysData_86 = keysData[86]; - KeysData_87 = keysData[87]; - KeysData_88 = keysData[88]; - KeysData_89 = keysData[89]; - KeysData_90 = keysData[90]; - KeysData_91 = keysData[91]; - KeysData_92 = keysData[92]; - KeysData_93 = keysData[93]; - KeysData_94 = keysData[94]; - KeysData_95 = keysData[95]; - KeysData_96 = keysData[96]; - KeysData_97 = keysData[97]; - KeysData_98 = keysData[98]; - KeysData_99 = keysData[99]; - KeysData_100 = keysData[100]; - KeysData_101 = keysData[101]; - KeysData_102 = keysData[102]; - KeysData_103 = keysData[103]; - KeysData_104 = keysData[104]; - KeysData_105 = keysData[105]; - KeysData_106 = keysData[106]; - KeysData_107 = keysData[107]; - KeysData_108 = keysData[108]; - KeysData_109 = keysData[109]; - KeysData_110 = keysData[110]; - KeysData_111 = keysData[111]; - KeysData_112 = keysData[112]; - KeysData_113 = keysData[113]; - KeysData_114 = keysData[114]; - KeysData_115 = keysData[115]; - KeysData_116 = keysData[116]; - KeysData_117 = keysData[117]; - KeysData_118 = keysData[118]; - KeysData_119 = keysData[119]; - KeysData_120 = keysData[120]; - KeysData_121 = keysData[121]; - KeysData_122 = keysData[122]; - KeysData_123 = keysData[123]; - KeysData_124 = keysData[124]; - KeysData_125 = keysData[125]; - KeysData_126 = keysData[126]; - KeysData_127 = keysData[127]; - KeysData_128 = keysData[128]; - KeysData_129 = keysData[129]; - KeysData_130 = keysData[130]; - KeysData_131 = keysData[131]; - KeysData_132 = keysData[132]; - KeysData_133 = keysData[133]; - KeysData_134 = keysData[134]; - KeysData_135 = keysData[135]; - KeysData_136 = keysData[136]; - KeysData_137 = keysData[137]; - KeysData_138 = keysData[138]; - KeysData_139 = keysData[139]; - KeysData_140 = keysData[140]; - KeysData_141 = keysData[141]; - KeysData_142 = keysData[142]; - KeysData_143 = keysData[143]; - KeysData_144 = keysData[144]; - KeysData_145 = keysData[145]; - KeysData_146 = keysData[146]; - KeysData_147 = keysData[147]; - KeysData_148 = keysData[148]; - KeysData_149 = keysData[149]; - KeysData_150 = keysData[150]; - KeysData_151 = keysData[151]; - KeysData_152 = keysData[152]; - KeysData_153 = keysData[153]; - KeysData_154 = keysData[154]; - KeysData_155 = keysData[155]; - KeysData_156 = keysData[156]; - KeysData_157 = keysData[157]; - KeysData_158 = keysData[158]; - KeysData_159 = keysData[159]; - KeysData_160 = keysData[160]; - KeysData_161 = keysData[161]; - KeysData_162 = keysData[162]; - KeysData_163 = keysData[163]; - KeysData_164 = keysData[164]; - KeysData_165 = keysData[165]; - KeysData_166 = keysData[166]; - KeysData_167 = keysData[167]; - KeysData_168 = keysData[168]; - KeysData_169 = keysData[169]; - KeysData_170 = keysData[170]; - KeysData_171 = keysData[171]; - KeysData_172 = keysData[172]; - KeysData_173 = keysData[173]; - KeysData_174 = keysData[174]; - KeysData_175 = keysData[175]; - KeysData_176 = keysData[176]; - KeysData_177 = keysData[177]; - KeysData_178 = keysData[178]; - KeysData_179 = keysData[179]; - KeysData_180 = keysData[180]; - KeysData_181 = keysData[181]; - KeysData_182 = keysData[182]; - KeysData_183 = keysData[183]; - KeysData_184 = keysData[184]; - KeysData_185 = keysData[185]; - KeysData_186 = keysData[186]; - KeysData_187 = keysData[187]; - KeysData_188 = keysData[188]; - KeysData_189 = keysData[189]; - KeysData_190 = keysData[190]; - KeysData_191 = keysData[191]; - KeysData_192 = keysData[192]; - KeysData_193 = keysData[193]; - KeysData_194 = keysData[194]; - KeysData_195 = keysData[195]; - KeysData_196 = keysData[196]; - KeysData_197 = keysData[197]; - KeysData_198 = keysData[198]; - KeysData_199 = keysData[199]; - KeysData_200 = keysData[200]; - KeysData_201 = keysData[201]; - KeysData_202 = keysData[202]; - KeysData_203 = keysData[203]; - KeysData_204 = keysData[204]; - KeysData_205 = keysData[205]; - KeysData_206 = keysData[206]; - KeysData_207 = keysData[207]; - KeysData_208 = keysData[208]; - KeysData_209 = keysData[209]; - KeysData_210 = keysData[210]; - KeysData_211 = keysData[211]; - KeysData_212 = keysData[212]; - KeysData_213 = keysData[213]; - KeysData_214 = keysData[214]; - KeysData_215 = keysData[215]; - KeysData_216 = keysData[216]; - KeysData_217 = keysData[217]; - KeysData_218 = keysData[218]; - KeysData_219 = keysData[219]; - KeysData_220 = keysData[220]; - KeysData_221 = keysData[221]; - KeysData_222 = keysData[222]; - KeysData_223 = keysData[223]; - KeysData_224 = keysData[224]; - KeysData_225 = keysData[225]; - KeysData_226 = keysData[226]; - KeysData_227 = keysData[227]; - KeysData_228 = keysData[228]; - KeysData_229 = keysData[229]; - KeysData_230 = keysData[230]; - KeysData_231 = keysData[231]; - KeysData_232 = keysData[232]; - KeysData_233 = keysData[233]; - KeysData_234 = keysData[234]; - KeysData_235 = keysData[235]; - KeysData_236 = keysData[236]; - KeysData_237 = keysData[237]; - KeysData_238 = keysData[238]; - KeysData_239 = keysData[239]; - KeysData_240 = keysData[240]; - KeysData_241 = keysData[241]; - KeysData_242 = keysData[242]; - KeysData_243 = keysData[243]; - KeysData_244 = keysData[244]; - KeysData_245 = keysData[245]; - KeysData_246 = keysData[246]; - KeysData_247 = keysData[247]; - KeysData_248 = keysData[248]; - KeysData_249 = keysData[249]; - KeysData_250 = keysData[250]; - KeysData_251 = keysData[251]; - KeysData_252 = keysData[252]; - KeysData_253 = keysData[253]; - KeysData_254 = keysData[254]; - KeysData_255 = keysData[255]; - KeysData_256 = keysData[256]; - KeysData_257 = keysData[257]; - KeysData_258 = keysData[258]; - KeysData_259 = keysData[259]; - KeysData_260 = keysData[260]; - KeysData_261 = keysData[261]; - KeysData_262 = keysData[262]; - KeysData_263 = keysData[263]; - KeysData_264 = keysData[264]; - KeysData_265 = keysData[265]; - KeysData_266 = keysData[266]; - KeysData_267 = keysData[267]; - KeysData_268 = keysData[268]; - KeysData_269 = keysData[269]; - KeysData_270 = keysData[270]; - KeysData_271 = keysData[271]; - KeysData_272 = keysData[272]; - KeysData_273 = keysData[273]; - KeysData_274 = keysData[274]; - KeysData_275 = keysData[275]; - KeysData_276 = keysData[276]; - KeysData_277 = keysData[277]; - KeysData_278 = keysData[278]; - KeysData_279 = keysData[279]; - KeysData_280 = keysData[280]; - KeysData_281 = keysData[281]; - KeysData_282 = keysData[282]; - KeysData_283 = keysData[283]; - KeysData_284 = keysData[284]; - KeysData_285 = keysData[285]; - KeysData_286 = keysData[286]; - KeysData_287 = keysData[287]; - KeysData_288 = keysData[288]; - KeysData_289 = keysData[289]; - KeysData_290 = keysData[290]; - KeysData_291 = keysData[291]; - KeysData_292 = keysData[292]; - KeysData_293 = keysData[293]; - KeysData_294 = keysData[294]; - KeysData_295 = keysData[295]; - KeysData_296 = keysData[296]; - KeysData_297 = keysData[297]; - KeysData_298 = keysData[298]; - KeysData_299 = keysData[299]; - KeysData_300 = keysData[300]; - KeysData_301 = keysData[301]; - KeysData_302 = keysData[302]; - KeysData_303 = keysData[303]; - KeysData_304 = keysData[304]; - KeysData_305 = keysData[305]; - KeysData_306 = keysData[306]; - KeysData_307 = keysData[307]; - KeysData_308 = keysData[308]; - KeysData_309 = keysData[309]; - KeysData_310 = keysData[310]; - KeysData_311 = keysData[311]; - KeysData_312 = keysData[312]; - KeysData_313 = keysData[313]; - KeysData_314 = keysData[314]; - KeysData_315 = keysData[315]; - KeysData_316 = keysData[316]; - KeysData_317 = keysData[317]; - KeysData_318 = keysData[318]; - KeysData_319 = keysData[319]; - KeysData_320 = keysData[320]; - KeysData_321 = keysData[321]; - KeysData_322 = keysData[322]; - KeysData_323 = keysData[323]; - KeysData_324 = keysData[324]; - KeysData_325 = keysData[325]; - KeysData_326 = keysData[326]; - KeysData_327 = keysData[327]; - KeysData_328 = keysData[328]; - KeysData_329 = keysData[329]; - KeysData_330 = keysData[330]; - KeysData_331 = keysData[331]; - KeysData_332 = keysData[332]; - KeysData_333 = keysData[333]; - KeysData_334 = keysData[334]; - KeysData_335 = keysData[335]; - KeysData_336 = keysData[336]; - KeysData_337 = keysData[337]; - KeysData_338 = keysData[338]; - KeysData_339 = keysData[339]; - KeysData_340 = keysData[340]; - KeysData_341 = keysData[341]; - KeysData_342 = keysData[342]; - KeysData_343 = keysData[343]; - KeysData_344 = keysData[344]; - KeysData_345 = keysData[345]; - KeysData_346 = keysData[346]; - KeysData_347 = keysData[347]; - KeysData_348 = keysData[348]; - KeysData_349 = keysData[349]; - KeysData_350 = keysData[350]; - KeysData_351 = keysData[351]; - KeysData_352 = keysData[352]; - KeysData_353 = keysData[353]; - KeysData_354 = keysData[354]; - KeysData_355 = keysData[355]; - KeysData_356 = keysData[356]; - KeysData_357 = keysData[357]; - KeysData_358 = keysData[358]; - KeysData_359 = keysData[359]; - KeysData_360 = keysData[360]; - KeysData_361 = keysData[361]; - KeysData_362 = keysData[362]; - KeysData_363 = keysData[363]; - KeysData_364 = keysData[364]; - KeysData_365 = keysData[365]; - KeysData_366 = keysData[366]; - KeysData_367 = keysData[367]; - KeysData_368 = keysData[368]; - KeysData_369 = keysData[369]; - KeysData_370 = keysData[370]; - KeysData_371 = keysData[371]; - KeysData_372 = keysData[372]; - KeysData_373 = keysData[373]; - KeysData_374 = keysData[374]; - KeysData_375 = keysData[375]; - KeysData_376 = keysData[376]; - KeysData_377 = keysData[377]; - KeysData_378 = keysData[378]; - KeysData_379 = keysData[379]; - KeysData_380 = keysData[380]; - KeysData_381 = keysData[381]; - KeysData_382 = keysData[382]; - KeysData_383 = keysData[383]; - KeysData_384 = keysData[384]; - KeysData_385 = keysData[385]; - KeysData_386 = keysData[386]; - KeysData_387 = keysData[387]; - KeysData_388 = keysData[388]; - KeysData_389 = keysData[389]; - KeysData_390 = keysData[390]; - KeysData_391 = keysData[391]; - KeysData_392 = keysData[392]; - KeysData_393 = keysData[393]; - KeysData_394 = keysData[394]; - KeysData_395 = keysData[395]; - KeysData_396 = keysData[396]; - KeysData_397 = keysData[397]; - KeysData_398 = keysData[398]; - KeysData_399 = keysData[399]; - KeysData_400 = keysData[400]; - KeysData_401 = keysData[401]; - KeysData_402 = keysData[402]; - KeysData_403 = keysData[403]; - KeysData_404 = keysData[404]; - KeysData_405 = keysData[405]; - KeysData_406 = keysData[406]; - KeysData_407 = keysData[407]; - KeysData_408 = keysData[408]; - KeysData_409 = keysData[409]; - KeysData_410 = keysData[410]; - KeysData_411 = keysData[411]; - KeysData_412 = keysData[412]; - KeysData_413 = keysData[413]; - KeysData_414 = keysData[414]; - KeysData_415 = keysData[415]; - KeysData_416 = keysData[416]; - KeysData_417 = keysData[417]; - KeysData_418 = keysData[418]; - KeysData_419 = keysData[419]; - KeysData_420 = keysData[420]; - KeysData_421 = keysData[421]; - KeysData_422 = keysData[422]; - KeysData_423 = keysData[423]; - KeysData_424 = keysData[424]; - KeysData_425 = keysData[425]; - KeysData_426 = keysData[426]; - KeysData_427 = keysData[427]; - KeysData_428 = keysData[428]; - KeysData_429 = keysData[429]; - KeysData_430 = keysData[430]; - KeysData_431 = keysData[431]; - KeysData_432 = keysData[432]; - KeysData_433 = keysData[433]; - KeysData_434 = keysData[434]; - KeysData_435 = keysData[435]; - KeysData_436 = keysData[436]; - KeysData_437 = keysData[437]; - KeysData_438 = keysData[438]; - KeysData_439 = keysData[439]; - KeysData_440 = keysData[440]; - KeysData_441 = keysData[441]; - KeysData_442 = keysData[442]; - KeysData_443 = keysData[443]; - KeysData_444 = keysData[444]; - KeysData_445 = keysData[445]; - KeysData_446 = keysData[446]; - KeysData_447 = keysData[447]; - KeysData_448 = keysData[448]; - KeysData_449 = keysData[449]; - KeysData_450 = keysData[450]; - KeysData_451 = keysData[451]; - KeysData_452 = keysData[452]; - KeysData_453 = keysData[453]; - KeysData_454 = keysData[454]; - KeysData_455 = keysData[455]; - KeysData_456 = keysData[456]; - KeysData_457 = keysData[457]; - KeysData_458 = keysData[458]; - KeysData_459 = keysData[459]; - KeysData_460 = keysData[460]; - KeysData_461 = keysData[461]; - KeysData_462 = keysData[462]; - KeysData_463 = keysData[463]; - KeysData_464 = keysData[464]; - KeysData_465 = keysData[465]; - KeysData_466 = keysData[466]; - KeysData_467 = keysData[467]; - KeysData_468 = keysData[468]; - KeysData_469 = keysData[469]; - KeysData_470 = keysData[470]; - KeysData_471 = keysData[471]; - KeysData_472 = keysData[472]; - KeysData_473 = keysData[473]; - KeysData_474 = keysData[474]; - KeysData_475 = keysData[475]; - KeysData_476 = keysData[476]; - KeysData_477 = keysData[477]; - KeysData_478 = keysData[478]; - KeysData_479 = keysData[479]; - KeysData_480 = keysData[480]; - KeysData_481 = keysData[481]; - KeysData_482 = keysData[482]; - KeysData_483 = keysData[483]; - KeysData_484 = keysData[484]; - KeysData_485 = keysData[485]; - KeysData_486 = keysData[486]; - KeysData_487 = keysData[487]; - KeysData_488 = keysData[488]; - KeysData_489 = keysData[489]; - KeysData_490 = keysData[490]; - KeysData_491 = keysData[491]; - KeysData_492 = keysData[492]; - KeysData_493 = keysData[493]; - KeysData_494 = keysData[494]; - KeysData_495 = keysData[495]; - KeysData_496 = keysData[496]; - KeysData_497 = keysData[497]; - KeysData_498 = keysData[498]; - KeysData_499 = keysData[499]; - KeysData_500 = keysData[500]; - KeysData_501 = keysData[501]; - KeysData_502 = keysData[502]; - KeysData_503 = keysData[503]; - KeysData_504 = keysData[504]; - KeysData_505 = keysData[505]; - KeysData_506 = keysData[506]; - KeysData_507 = keysData[507]; - KeysData_508 = keysData[508]; - KeysData_509 = keysData[509]; - KeysData_510 = keysData[510]; - KeysData_511 = keysData[511]; - KeysData_512 = keysData[512]; - KeysData_513 = keysData[513]; - KeysData_514 = keysData[514]; - KeysData_515 = keysData[515]; - KeysData_516 = keysData[516]; - KeysData_517 = keysData[517]; - KeysData_518 = keysData[518]; - KeysData_519 = keysData[519]; - KeysData_520 = keysData[520]; - KeysData_521 = keysData[521]; - KeysData_522 = keysData[522]; - KeysData_523 = keysData[523]; - KeysData_524 = keysData[524]; - KeysData_525 = keysData[525]; - KeysData_526 = keysData[526]; - KeysData_527 = keysData[527]; - KeysData_528 = keysData[528]; - KeysData_529 = keysData[529]; - KeysData_530 = keysData[530]; - KeysData_531 = keysData[531]; - KeysData_532 = keysData[532]; - KeysData_533 = keysData[533]; - KeysData_534 = keysData[534]; - KeysData_535 = keysData[535]; - KeysData_536 = keysData[536]; - KeysData_537 = keysData[537]; - KeysData_538 = keysData[538]; - KeysData_539 = keysData[539]; - KeysData_540 = keysData[540]; - KeysData_541 = keysData[541]; - KeysData_542 = keysData[542]; - KeysData_543 = keysData[543]; - KeysData_544 = keysData[544]; - KeysData_545 = keysData[545]; - KeysData_546 = keysData[546]; - KeysData_547 = keysData[547]; - KeysData_548 = keysData[548]; - KeysData_549 = keysData[549]; - KeysData_550 = keysData[550]; - KeysData_551 = keysData[551]; - KeysData_552 = keysData[552]; - KeysData_553 = keysData[553]; - KeysData_554 = keysData[554]; - KeysData_555 = keysData[555]; - KeysData_556 = keysData[556]; - KeysData_557 = keysData[557]; - KeysData_558 = keysData[558]; - KeysData_559 = keysData[559]; - KeysData_560 = keysData[560]; - KeysData_561 = keysData[561]; - KeysData_562 = keysData[562]; - KeysData_563 = keysData[563]; - KeysData_564 = keysData[564]; - KeysData_565 = keysData[565]; - KeysData_566 = keysData[566]; - KeysData_567 = keysData[567]; - KeysData_568 = keysData[568]; - KeysData_569 = keysData[569]; - KeysData_570 = keysData[570]; - KeysData_571 = keysData[571]; - KeysData_572 = keysData[572]; - KeysData_573 = keysData[573]; - KeysData_574 = keysData[574]; - KeysData_575 = keysData[575]; - KeysData_576 = keysData[576]; - KeysData_577 = keysData[577]; - KeysData_578 = keysData[578]; - KeysData_579 = keysData[579]; - KeysData_580 = keysData[580]; - KeysData_581 = keysData[581]; - KeysData_582 = keysData[582]; - KeysData_583 = keysData[583]; - KeysData_584 = keysData[584]; - KeysData_585 = keysData[585]; - KeysData_586 = keysData[586]; - KeysData_587 = keysData[587]; - KeysData_588 = keysData[588]; - KeysData_589 = keysData[589]; - KeysData_590 = keysData[590]; - KeysData_591 = keysData[591]; - KeysData_592 = keysData[592]; - KeysData_593 = keysData[593]; - KeysData_594 = keysData[594]; - KeysData_595 = keysData[595]; - KeysData_596 = keysData[596]; - KeysData_597 = keysData[597]; - KeysData_598 = keysData[598]; - KeysData_599 = keysData[599]; - KeysData_600 = keysData[600]; - KeysData_601 = keysData[601]; - KeysData_602 = keysData[602]; - KeysData_603 = keysData[603]; - KeysData_604 = keysData[604]; - KeysData_605 = keysData[605]; - KeysData_606 = keysData[606]; - KeysData_607 = keysData[607]; - KeysData_608 = keysData[608]; - KeysData_609 = keysData[609]; - KeysData_610 = keysData[610]; - KeysData_611 = keysData[611]; - KeysData_612 = keysData[612]; - KeysData_613 = keysData[613]; - KeysData_614 = keysData[614]; - KeysData_615 = keysData[615]; - KeysData_616 = keysData[616]; - KeysData_617 = keysData[617]; - KeysData_618 = keysData[618]; - KeysData_619 = keysData[619]; - KeysData_620 = keysData[620]; - KeysData_621 = keysData[621]; - KeysData_622 = keysData[622]; - KeysData_623 = keysData[623]; - KeysData_624 = keysData[624]; - KeysData_625 = keysData[625]; - KeysData_626 = keysData[626]; - KeysData_627 = keysData[627]; - KeysData_628 = keysData[628]; - KeysData_629 = keysData[629]; - KeysData_630 = keysData[630]; - KeysData_631 = keysData[631]; - KeysData_632 = keysData[632]; - KeysData_633 = keysData[633]; - KeysData_634 = keysData[634]; - KeysData_635 = keysData[635]; - KeysData_636 = keysData[636]; - KeysData_637 = keysData[637]; - KeysData_638 = keysData[638]; - KeysData_639 = keysData[639]; - KeysData_640 = keysData[640]; - KeysData_641 = keysData[641]; - KeysData_642 = keysData[642]; - KeysData_643 = keysData[643]; - KeysData_644 = keysData[644]; - } - WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; - MousePosPrev = mousePosPrev; - if (mouseClickedPos != default(Vector2*)) - { - MouseClickedPos_0 = mouseClickedPos[0]; - MouseClickedPos_1 = mouseClickedPos[1]; - MouseClickedPos_2 = mouseClickedPos[2]; - MouseClickedPos_3 = mouseClickedPos[3]; - MouseClickedPos_4 = mouseClickedPos[4]; - } - if (mouseClickedTime != default(double*)) - { - MouseClickedTime_0 = mouseClickedTime[0]; - MouseClickedTime_1 = mouseClickedTime[1]; - MouseClickedTime_2 = mouseClickedTime[2]; - MouseClickedTime_3 = mouseClickedTime[3]; - MouseClickedTime_4 = mouseClickedTime[4]; - } - if (mouseClicked != default(bool*)) - { - MouseClicked_0 = mouseClicked[0]; - MouseClicked_1 = mouseClicked[1]; - MouseClicked_2 = mouseClicked[2]; - MouseClicked_3 = mouseClicked[3]; - MouseClicked_4 = mouseClicked[4]; - } - if (mouseDoubleClicked != default(bool*)) - { - MouseDoubleClicked_0 = mouseDoubleClicked[0]; - MouseDoubleClicked_1 = mouseDoubleClicked[1]; - MouseDoubleClicked_2 = mouseDoubleClicked[2]; - MouseDoubleClicked_3 = mouseDoubleClicked[3]; - MouseDoubleClicked_4 = mouseDoubleClicked[4]; - } - if (mouseClickedCount != default(ushort*)) - { - MouseClickedCount_0 = mouseClickedCount[0]; - MouseClickedCount_1 = mouseClickedCount[1]; - MouseClickedCount_2 = mouseClickedCount[2]; - MouseClickedCount_3 = mouseClickedCount[3]; - MouseClickedCount_4 = mouseClickedCount[4]; - } - if (mouseClickedLastCount != default(ushort*)) - { - MouseClickedLastCount_0 = mouseClickedLastCount[0]; - MouseClickedLastCount_1 = mouseClickedLastCount[1]; - MouseClickedLastCount_2 = mouseClickedLastCount[2]; - MouseClickedLastCount_3 = mouseClickedLastCount[3]; - MouseClickedLastCount_4 = mouseClickedLastCount[4]; - } - if (mouseReleased != default(bool*)) - { - MouseReleased_0 = mouseReleased[0]; - MouseReleased_1 = mouseReleased[1]; - MouseReleased_2 = mouseReleased[2]; - MouseReleased_3 = mouseReleased[3]; - MouseReleased_4 = mouseReleased[4]; - } - if (mouseDownOwned != default(bool*)) - { - MouseDownOwned_0 = mouseDownOwned[0]; - MouseDownOwned_1 = mouseDownOwned[1]; - MouseDownOwned_2 = mouseDownOwned[2]; - MouseDownOwned_3 = mouseDownOwned[3]; - MouseDownOwned_4 = mouseDownOwned[4]; - } - if (mouseDownOwnedUnlessPopupClose != default(bool*)) - { - MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; - MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; - MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; - MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; - MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; - } - if (mouseDownDuration != default(float*)) - { - MouseDownDuration_0 = mouseDownDuration[0]; - MouseDownDuration_1 = mouseDownDuration[1]; - MouseDownDuration_2 = mouseDownDuration[2]; - MouseDownDuration_3 = mouseDownDuration[3]; - MouseDownDuration_4 = mouseDownDuration[4]; - } - if (mouseDownDurationPrev != default(float*)) - { - MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; - MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; - MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; - MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; - MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; - } - if (mouseDragMaxDistanceAbs != default(Vector2*)) - { - MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; - MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; - MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; - MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; - MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; - } - if (mouseDragMaxDistanceSqr != default(float*)) - { - MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; - MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; - MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; - MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; - MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; - } - if (navInputsDownDuration != default(float*)) - { - NavInputsDownDuration_0 = navInputsDownDuration[0]; - NavInputsDownDuration_1 = navInputsDownDuration[1]; - NavInputsDownDuration_2 = navInputsDownDuration[2]; - NavInputsDownDuration_3 = navInputsDownDuration[3]; - NavInputsDownDuration_4 = navInputsDownDuration[4]; - NavInputsDownDuration_5 = navInputsDownDuration[5]; - NavInputsDownDuration_6 = navInputsDownDuration[6]; - NavInputsDownDuration_7 = navInputsDownDuration[7]; - NavInputsDownDuration_8 = navInputsDownDuration[8]; - NavInputsDownDuration_9 = navInputsDownDuration[9]; - NavInputsDownDuration_10 = navInputsDownDuration[10]; - NavInputsDownDuration_11 = navInputsDownDuration[11]; - NavInputsDownDuration_12 = navInputsDownDuration[12]; - NavInputsDownDuration_13 = navInputsDownDuration[13]; - NavInputsDownDuration_14 = navInputsDownDuration[14]; - NavInputsDownDuration_15 = navInputsDownDuration[15]; - NavInputsDownDuration_16 = navInputsDownDuration[16]; - NavInputsDownDuration_17 = navInputsDownDuration[17]; - NavInputsDownDuration_18 = navInputsDownDuration[18]; - NavInputsDownDuration_19 = navInputsDownDuration[19]; - NavInputsDownDuration_20 = navInputsDownDuration[20]; - } - if (navInputsDownDurationPrev != default(float*)) - { - NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; - NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; - NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; - NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; - NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; - NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; - NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; - NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; - NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; - NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; - NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; - NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; - NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; - NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; - NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; - NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; - NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; - NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; - NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; - NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; - NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; - } - PenPressure = penPressure; - AppFocusLost = appFocusLost ? (byte)1 : (byte)0; - AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; - BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; - BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; - InputQueueSurrogate = inputQueueSurrogate; - InputQueueCharacters = inputQueueCharacters; - } - public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate*<void*, byte*> getClipboardTextFn = default, delegate*<void*, byte*, void> setClipboardTextFn = default, void* clipboardUserData = default, delegate*<ImGuiViewport*, ImGuiPlatformImeData*, void> setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, Span<int> keyMap = default, Span<bool> keysDown = default, Vector2 mousePos = default, Span<bool> mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, Span<float> navInputs = default, ImGuiModFlags keyMods = default, Span<ImGuiKeyData> keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Span<Vector2> mouseClickedPos = default, Span<double> mouseClickedTime = default, Span<bool> mouseClicked = default, Span<bool> mouseDoubleClicked = default, Span<ushort> mouseClickedCount = default, Span<ushort> mouseClickedLastCount = default, Span<bool> mouseReleased = default, Span<bool> mouseDownOwned = default, Span<bool> mouseDownOwnedUnlessPopupClose = default, Span<float> mouseDownDuration = default, Span<float> mouseDownDurationPrev = default, Span<Vector2> mouseDragMaxDistanceAbs = default, Span<float> mouseDragMaxDistanceSqr = default, Span<float> navInputsDownDuration = default, Span<float> navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector<ushort> inputQueueCharacters = default) - { - ConfigFlags = configFlags; - BackendFlags = backendFlags; - DisplaySize = displaySize; - DeltaTime = deltaTime; - IniSavingRate = iniSavingRate; - IniFilename = iniFilename; - LogFilename = logFilename; - MouseDoubleClickTime = mouseDoubleClickTime; - MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; - MouseDragThreshold = mouseDragThreshold; - KeyRepeatDelay = keyRepeatDelay; - KeyRepeatRate = keyRepeatRate; - UserData = userData; - Fonts = fonts; - FontGlobalScale = fontGlobalScale; - FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; - FontDefault = fontDefault; - DisplayFramebufferScale = displayFramebufferScale; - ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; - ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; - ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; - ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; - ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; - ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; - ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; - ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; - MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; - ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; - ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; - ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; - ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; - ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; - ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; - ConfigMemoryCompactTimer = configMemoryCompactTimer; - BackendPlatformName = backendPlatformName; - BackendRendererName = backendRendererName; - BackendPlatformUserData = backendPlatformUserData; - BackendRendererUserData = backendRendererUserData; - BackendLanguageUserData = backendLanguageUserData; - GetClipboardTextFn = (void*)getClipboardTextFn; - SetClipboardTextFn = (void*)setClipboardTextFn; - ClipboardUserData = clipboardUserData; - SetPlatformImeDataFn = (void*)setPlatformImeDataFn; - UnusedPadding = unusedPadding; - WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; - WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; - WantTextInput = wantTextInput ? (byte)1 : (byte)0; - WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; - WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; - NavActive = navActive ? (byte)1 : (byte)0; - NavVisible = navVisible ? (byte)1 : (byte)0; - Framerate = framerate; - MetricsRenderVertices = metricsRenderVertices; - MetricsRenderIndices = metricsRenderIndices; - MetricsRenderWindows = metricsRenderWindows; - MetricsActiveWindows = metricsActiveWindows; - MetricsActiveAllocations = metricsActiveAllocations; - MouseDelta = mouseDelta; - if (keyMap != default(Span<int>)) - { - KeyMap_0 = keyMap[0]; - KeyMap_1 = keyMap[1]; - KeyMap_2 = keyMap[2]; - KeyMap_3 = keyMap[3]; - KeyMap_4 = keyMap[4]; - KeyMap_5 = keyMap[5]; - KeyMap_6 = keyMap[6]; - KeyMap_7 = keyMap[7]; - KeyMap_8 = keyMap[8]; - KeyMap_9 = keyMap[9]; - KeyMap_10 = keyMap[10]; - KeyMap_11 = keyMap[11]; - KeyMap_12 = keyMap[12]; - KeyMap_13 = keyMap[13]; - KeyMap_14 = keyMap[14]; - KeyMap_15 = keyMap[15]; - KeyMap_16 = keyMap[16]; - KeyMap_17 = keyMap[17]; - KeyMap_18 = keyMap[18]; - KeyMap_19 = keyMap[19]; - KeyMap_20 = keyMap[20]; - KeyMap_21 = keyMap[21]; - KeyMap_22 = keyMap[22]; - KeyMap_23 = keyMap[23]; - KeyMap_24 = keyMap[24]; - KeyMap_25 = keyMap[25]; - KeyMap_26 = keyMap[26]; - KeyMap_27 = keyMap[27]; - KeyMap_28 = keyMap[28]; - KeyMap_29 = keyMap[29]; - KeyMap_30 = keyMap[30]; - KeyMap_31 = keyMap[31]; - KeyMap_32 = keyMap[32]; - KeyMap_33 = keyMap[33]; - KeyMap_34 = keyMap[34]; - KeyMap_35 = keyMap[35]; - KeyMap_36 = keyMap[36]; - KeyMap_37 = keyMap[37]; - KeyMap_38 = keyMap[38]; - KeyMap_39 = keyMap[39]; - KeyMap_40 = keyMap[40]; - KeyMap_41 = keyMap[41]; - KeyMap_42 = keyMap[42]; - KeyMap_43 = keyMap[43]; - KeyMap_44 = keyMap[44]; - KeyMap_45 = keyMap[45]; - KeyMap_46 = keyMap[46]; - KeyMap_47 = keyMap[47]; - KeyMap_48 = keyMap[48]; - KeyMap_49 = keyMap[49]; - KeyMap_50 = keyMap[50]; - KeyMap_51 = keyMap[51]; - KeyMap_52 = keyMap[52]; - KeyMap_53 = keyMap[53]; - KeyMap_54 = keyMap[54]; - KeyMap_55 = keyMap[55]; - KeyMap_56 = keyMap[56]; - KeyMap_57 = keyMap[57]; - KeyMap_58 = keyMap[58]; - KeyMap_59 = keyMap[59]; - KeyMap_60 = keyMap[60]; - KeyMap_61 = keyMap[61]; - KeyMap_62 = keyMap[62]; - KeyMap_63 = keyMap[63]; - KeyMap_64 = keyMap[64]; - KeyMap_65 = keyMap[65]; - KeyMap_66 = keyMap[66]; - KeyMap_67 = keyMap[67]; - KeyMap_68 = keyMap[68]; - KeyMap_69 = keyMap[69]; - KeyMap_70 = keyMap[70]; - KeyMap_71 = keyMap[71]; - KeyMap_72 = keyMap[72]; - KeyMap_73 = keyMap[73]; - KeyMap_74 = keyMap[74]; - KeyMap_75 = keyMap[75]; - KeyMap_76 = keyMap[76]; - KeyMap_77 = keyMap[77]; - KeyMap_78 = keyMap[78]; - KeyMap_79 = keyMap[79]; - KeyMap_80 = keyMap[80]; - KeyMap_81 = keyMap[81]; - KeyMap_82 = keyMap[82]; - KeyMap_83 = keyMap[83]; - KeyMap_84 = keyMap[84]; - KeyMap_85 = keyMap[85]; - KeyMap_86 = keyMap[86]; - KeyMap_87 = keyMap[87]; - KeyMap_88 = keyMap[88]; - KeyMap_89 = keyMap[89]; - KeyMap_90 = keyMap[90]; - KeyMap_91 = keyMap[91]; - KeyMap_92 = keyMap[92]; - KeyMap_93 = keyMap[93]; - KeyMap_94 = keyMap[94]; - KeyMap_95 = keyMap[95]; - KeyMap_96 = keyMap[96]; - KeyMap_97 = keyMap[97]; - KeyMap_98 = keyMap[98]; - KeyMap_99 = keyMap[99]; - KeyMap_100 = keyMap[100]; - KeyMap_101 = keyMap[101]; - KeyMap_102 = keyMap[102]; - KeyMap_103 = keyMap[103]; - KeyMap_104 = keyMap[104]; - KeyMap_105 = keyMap[105]; - KeyMap_106 = keyMap[106]; - KeyMap_107 = keyMap[107]; - KeyMap_108 = keyMap[108]; - KeyMap_109 = keyMap[109]; - KeyMap_110 = keyMap[110]; - KeyMap_111 = keyMap[111]; - KeyMap_112 = keyMap[112]; - KeyMap_113 = keyMap[113]; - KeyMap_114 = keyMap[114]; - KeyMap_115 = keyMap[115]; - KeyMap_116 = keyMap[116]; - KeyMap_117 = keyMap[117]; - KeyMap_118 = keyMap[118]; - KeyMap_119 = keyMap[119]; - KeyMap_120 = keyMap[120]; - KeyMap_121 = keyMap[121]; - KeyMap_122 = keyMap[122]; - KeyMap_123 = keyMap[123]; - KeyMap_124 = keyMap[124]; - KeyMap_125 = keyMap[125]; - KeyMap_126 = keyMap[126]; - KeyMap_127 = keyMap[127]; - KeyMap_128 = keyMap[128]; - KeyMap_129 = keyMap[129]; - KeyMap_130 = keyMap[130]; - KeyMap_131 = keyMap[131]; - KeyMap_132 = keyMap[132]; - KeyMap_133 = keyMap[133]; - KeyMap_134 = keyMap[134]; - KeyMap_135 = keyMap[135]; - KeyMap_136 = keyMap[136]; - KeyMap_137 = keyMap[137]; - KeyMap_138 = keyMap[138]; - KeyMap_139 = keyMap[139]; - KeyMap_140 = keyMap[140]; - KeyMap_141 = keyMap[141]; - KeyMap_142 = keyMap[142]; - KeyMap_143 = keyMap[143]; - KeyMap_144 = keyMap[144]; - KeyMap_145 = keyMap[145]; - KeyMap_146 = keyMap[146]; - KeyMap_147 = keyMap[147]; - KeyMap_148 = keyMap[148]; - KeyMap_149 = keyMap[149]; - KeyMap_150 = keyMap[150]; - KeyMap_151 = keyMap[151]; - KeyMap_152 = keyMap[152]; - KeyMap_153 = keyMap[153]; - KeyMap_154 = keyMap[154]; - KeyMap_155 = keyMap[155]; - KeyMap_156 = keyMap[156]; - KeyMap_157 = keyMap[157]; - KeyMap_158 = keyMap[158]; - KeyMap_159 = keyMap[159]; - KeyMap_160 = keyMap[160]; - KeyMap_161 = keyMap[161]; - KeyMap_162 = keyMap[162]; - KeyMap_163 = keyMap[163]; - KeyMap_164 = keyMap[164]; - KeyMap_165 = keyMap[165]; - KeyMap_166 = keyMap[166]; - KeyMap_167 = keyMap[167]; - KeyMap_168 = keyMap[168]; - KeyMap_169 = keyMap[169]; - KeyMap_170 = keyMap[170]; - KeyMap_171 = keyMap[171]; - KeyMap_172 = keyMap[172]; - KeyMap_173 = keyMap[173]; - KeyMap_174 = keyMap[174]; - KeyMap_175 = keyMap[175]; - KeyMap_176 = keyMap[176]; - KeyMap_177 = keyMap[177]; - KeyMap_178 = keyMap[178]; - KeyMap_179 = keyMap[179]; - KeyMap_180 = keyMap[180]; - KeyMap_181 = keyMap[181]; - KeyMap_182 = keyMap[182]; - KeyMap_183 = keyMap[183]; - KeyMap_184 = keyMap[184]; - KeyMap_185 = keyMap[185]; - KeyMap_186 = keyMap[186]; - KeyMap_187 = keyMap[187]; - KeyMap_188 = keyMap[188]; - KeyMap_189 = keyMap[189]; - KeyMap_190 = keyMap[190]; - KeyMap_191 = keyMap[191]; - KeyMap_192 = keyMap[192]; - KeyMap_193 = keyMap[193]; - KeyMap_194 = keyMap[194]; - KeyMap_195 = keyMap[195]; - KeyMap_196 = keyMap[196]; - KeyMap_197 = keyMap[197]; - KeyMap_198 = keyMap[198]; - KeyMap_199 = keyMap[199]; - KeyMap_200 = keyMap[200]; - KeyMap_201 = keyMap[201]; - KeyMap_202 = keyMap[202]; - KeyMap_203 = keyMap[203]; - KeyMap_204 = keyMap[204]; - KeyMap_205 = keyMap[205]; - KeyMap_206 = keyMap[206]; - KeyMap_207 = keyMap[207]; - KeyMap_208 = keyMap[208]; - KeyMap_209 = keyMap[209]; - KeyMap_210 = keyMap[210]; - KeyMap_211 = keyMap[211]; - KeyMap_212 = keyMap[212]; - KeyMap_213 = keyMap[213]; - KeyMap_214 = keyMap[214]; - KeyMap_215 = keyMap[215]; - KeyMap_216 = keyMap[216]; - KeyMap_217 = keyMap[217]; - KeyMap_218 = keyMap[218]; - KeyMap_219 = keyMap[219]; - KeyMap_220 = keyMap[220]; - KeyMap_221 = keyMap[221]; - KeyMap_222 = keyMap[222]; - KeyMap_223 = keyMap[223]; - KeyMap_224 = keyMap[224]; - KeyMap_225 = keyMap[225]; - KeyMap_226 = keyMap[226]; - KeyMap_227 = keyMap[227]; - KeyMap_228 = keyMap[228]; - KeyMap_229 = keyMap[229]; - KeyMap_230 = keyMap[230]; - KeyMap_231 = keyMap[231]; - KeyMap_232 = keyMap[232]; - KeyMap_233 = keyMap[233]; - KeyMap_234 = keyMap[234]; - KeyMap_235 = keyMap[235]; - KeyMap_236 = keyMap[236]; - KeyMap_237 = keyMap[237]; - KeyMap_238 = keyMap[238]; - KeyMap_239 = keyMap[239]; - KeyMap_240 = keyMap[240]; - KeyMap_241 = keyMap[241]; - KeyMap_242 = keyMap[242]; - KeyMap_243 = keyMap[243]; - KeyMap_244 = keyMap[244]; - KeyMap_245 = keyMap[245]; - KeyMap_246 = keyMap[246]; - KeyMap_247 = keyMap[247]; - KeyMap_248 = keyMap[248]; - KeyMap_249 = keyMap[249]; - KeyMap_250 = keyMap[250]; - KeyMap_251 = keyMap[251]; - KeyMap_252 = keyMap[252]; - KeyMap_253 = keyMap[253]; - KeyMap_254 = keyMap[254]; - KeyMap_255 = keyMap[255]; - KeyMap_256 = keyMap[256]; - KeyMap_257 = keyMap[257]; - KeyMap_258 = keyMap[258]; - KeyMap_259 = keyMap[259]; - KeyMap_260 = keyMap[260]; - KeyMap_261 = keyMap[261]; - KeyMap_262 = keyMap[262]; - KeyMap_263 = keyMap[263]; - KeyMap_264 = keyMap[264]; - KeyMap_265 = keyMap[265]; - KeyMap_266 = keyMap[266]; - KeyMap_267 = keyMap[267]; - KeyMap_268 = keyMap[268]; - KeyMap_269 = keyMap[269]; - KeyMap_270 = keyMap[270]; - KeyMap_271 = keyMap[271]; - KeyMap_272 = keyMap[272]; - KeyMap_273 = keyMap[273]; - KeyMap_274 = keyMap[274]; - KeyMap_275 = keyMap[275]; - KeyMap_276 = keyMap[276]; - KeyMap_277 = keyMap[277]; - KeyMap_278 = keyMap[278]; - KeyMap_279 = keyMap[279]; - KeyMap_280 = keyMap[280]; - KeyMap_281 = keyMap[281]; - KeyMap_282 = keyMap[282]; - KeyMap_283 = keyMap[283]; - KeyMap_284 = keyMap[284]; - KeyMap_285 = keyMap[285]; - KeyMap_286 = keyMap[286]; - KeyMap_287 = keyMap[287]; - KeyMap_288 = keyMap[288]; - KeyMap_289 = keyMap[289]; - KeyMap_290 = keyMap[290]; - KeyMap_291 = keyMap[291]; - KeyMap_292 = keyMap[292]; - KeyMap_293 = keyMap[293]; - KeyMap_294 = keyMap[294]; - KeyMap_295 = keyMap[295]; - KeyMap_296 = keyMap[296]; - KeyMap_297 = keyMap[297]; - KeyMap_298 = keyMap[298]; - KeyMap_299 = keyMap[299]; - KeyMap_300 = keyMap[300]; - KeyMap_301 = keyMap[301]; - KeyMap_302 = keyMap[302]; - KeyMap_303 = keyMap[303]; - KeyMap_304 = keyMap[304]; - KeyMap_305 = keyMap[305]; - KeyMap_306 = keyMap[306]; - KeyMap_307 = keyMap[307]; - KeyMap_308 = keyMap[308]; - KeyMap_309 = keyMap[309]; - KeyMap_310 = keyMap[310]; - KeyMap_311 = keyMap[311]; - KeyMap_312 = keyMap[312]; - KeyMap_313 = keyMap[313]; - KeyMap_314 = keyMap[314]; - KeyMap_315 = keyMap[315]; - KeyMap_316 = keyMap[316]; - KeyMap_317 = keyMap[317]; - KeyMap_318 = keyMap[318]; - KeyMap_319 = keyMap[319]; - KeyMap_320 = keyMap[320]; - KeyMap_321 = keyMap[321]; - KeyMap_322 = keyMap[322]; - KeyMap_323 = keyMap[323]; - KeyMap_324 = keyMap[324]; - KeyMap_325 = keyMap[325]; - KeyMap_326 = keyMap[326]; - KeyMap_327 = keyMap[327]; - KeyMap_328 = keyMap[328]; - KeyMap_329 = keyMap[329]; - KeyMap_330 = keyMap[330]; - KeyMap_331 = keyMap[331]; - KeyMap_332 = keyMap[332]; - KeyMap_333 = keyMap[333]; - KeyMap_334 = keyMap[334]; - KeyMap_335 = keyMap[335]; - KeyMap_336 = keyMap[336]; - KeyMap_337 = keyMap[337]; - KeyMap_338 = keyMap[338]; - KeyMap_339 = keyMap[339]; - KeyMap_340 = keyMap[340]; - KeyMap_341 = keyMap[341]; - KeyMap_342 = keyMap[342]; - KeyMap_343 = keyMap[343]; - KeyMap_344 = keyMap[344]; - KeyMap_345 = keyMap[345]; - KeyMap_346 = keyMap[346]; - KeyMap_347 = keyMap[347]; - KeyMap_348 = keyMap[348]; - KeyMap_349 = keyMap[349]; - KeyMap_350 = keyMap[350]; - KeyMap_351 = keyMap[351]; - KeyMap_352 = keyMap[352]; - KeyMap_353 = keyMap[353]; - KeyMap_354 = keyMap[354]; - KeyMap_355 = keyMap[355]; - KeyMap_356 = keyMap[356]; - KeyMap_357 = keyMap[357]; - KeyMap_358 = keyMap[358]; - KeyMap_359 = keyMap[359]; - KeyMap_360 = keyMap[360]; - KeyMap_361 = keyMap[361]; - KeyMap_362 = keyMap[362]; - KeyMap_363 = keyMap[363]; - KeyMap_364 = keyMap[364]; - KeyMap_365 = keyMap[365]; - KeyMap_366 = keyMap[366]; - KeyMap_367 = keyMap[367]; - KeyMap_368 = keyMap[368]; - KeyMap_369 = keyMap[369]; - KeyMap_370 = keyMap[370]; - KeyMap_371 = keyMap[371]; - KeyMap_372 = keyMap[372]; - KeyMap_373 = keyMap[373]; - KeyMap_374 = keyMap[374]; - KeyMap_375 = keyMap[375]; - KeyMap_376 = keyMap[376]; - KeyMap_377 = keyMap[377]; - KeyMap_378 = keyMap[378]; - KeyMap_379 = keyMap[379]; - KeyMap_380 = keyMap[380]; - KeyMap_381 = keyMap[381]; - KeyMap_382 = keyMap[382]; - KeyMap_383 = keyMap[383]; - KeyMap_384 = keyMap[384]; - KeyMap_385 = keyMap[385]; - KeyMap_386 = keyMap[386]; - KeyMap_387 = keyMap[387]; - KeyMap_388 = keyMap[388]; - KeyMap_389 = keyMap[389]; - KeyMap_390 = keyMap[390]; - KeyMap_391 = keyMap[391]; - KeyMap_392 = keyMap[392]; - KeyMap_393 = keyMap[393]; - KeyMap_394 = keyMap[394]; - KeyMap_395 = keyMap[395]; - KeyMap_396 = keyMap[396]; - KeyMap_397 = keyMap[397]; - KeyMap_398 = keyMap[398]; - KeyMap_399 = keyMap[399]; - KeyMap_400 = keyMap[400]; - KeyMap_401 = keyMap[401]; - KeyMap_402 = keyMap[402]; - KeyMap_403 = keyMap[403]; - KeyMap_404 = keyMap[404]; - KeyMap_405 = keyMap[405]; - KeyMap_406 = keyMap[406]; - KeyMap_407 = keyMap[407]; - KeyMap_408 = keyMap[408]; - KeyMap_409 = keyMap[409]; - KeyMap_410 = keyMap[410]; - KeyMap_411 = keyMap[411]; - KeyMap_412 = keyMap[412]; - KeyMap_413 = keyMap[413]; - KeyMap_414 = keyMap[414]; - KeyMap_415 = keyMap[415]; - KeyMap_416 = keyMap[416]; - KeyMap_417 = keyMap[417]; - KeyMap_418 = keyMap[418]; - KeyMap_419 = keyMap[419]; - KeyMap_420 = keyMap[420]; - KeyMap_421 = keyMap[421]; - KeyMap_422 = keyMap[422]; - KeyMap_423 = keyMap[423]; - KeyMap_424 = keyMap[424]; - KeyMap_425 = keyMap[425]; - KeyMap_426 = keyMap[426]; - KeyMap_427 = keyMap[427]; - KeyMap_428 = keyMap[428]; - KeyMap_429 = keyMap[429]; - KeyMap_430 = keyMap[430]; - KeyMap_431 = keyMap[431]; - KeyMap_432 = keyMap[432]; - KeyMap_433 = keyMap[433]; - KeyMap_434 = keyMap[434]; - KeyMap_435 = keyMap[435]; - KeyMap_436 = keyMap[436]; - KeyMap_437 = keyMap[437]; - KeyMap_438 = keyMap[438]; - KeyMap_439 = keyMap[439]; - KeyMap_440 = keyMap[440]; - KeyMap_441 = keyMap[441]; - KeyMap_442 = keyMap[442]; - KeyMap_443 = keyMap[443]; - KeyMap_444 = keyMap[444]; - KeyMap_445 = keyMap[445]; - KeyMap_446 = keyMap[446]; - KeyMap_447 = keyMap[447]; - KeyMap_448 = keyMap[448]; - KeyMap_449 = keyMap[449]; - KeyMap_450 = keyMap[450]; - KeyMap_451 = keyMap[451]; - KeyMap_452 = keyMap[452]; - KeyMap_453 = keyMap[453]; - KeyMap_454 = keyMap[454]; - KeyMap_455 = keyMap[455]; - KeyMap_456 = keyMap[456]; - KeyMap_457 = keyMap[457]; - KeyMap_458 = keyMap[458]; - KeyMap_459 = keyMap[459]; - KeyMap_460 = keyMap[460]; - KeyMap_461 = keyMap[461]; - KeyMap_462 = keyMap[462]; - KeyMap_463 = keyMap[463]; - KeyMap_464 = keyMap[464]; - KeyMap_465 = keyMap[465]; - KeyMap_466 = keyMap[466]; - KeyMap_467 = keyMap[467]; - KeyMap_468 = keyMap[468]; - KeyMap_469 = keyMap[469]; - KeyMap_470 = keyMap[470]; - KeyMap_471 = keyMap[471]; - KeyMap_472 = keyMap[472]; - KeyMap_473 = keyMap[473]; - KeyMap_474 = keyMap[474]; - KeyMap_475 = keyMap[475]; - KeyMap_476 = keyMap[476]; - KeyMap_477 = keyMap[477]; - KeyMap_478 = keyMap[478]; - KeyMap_479 = keyMap[479]; - KeyMap_480 = keyMap[480]; - KeyMap_481 = keyMap[481]; - KeyMap_482 = keyMap[482]; - KeyMap_483 = keyMap[483]; - KeyMap_484 = keyMap[484]; - KeyMap_485 = keyMap[485]; - KeyMap_486 = keyMap[486]; - KeyMap_487 = keyMap[487]; - KeyMap_488 = keyMap[488]; - KeyMap_489 = keyMap[489]; - KeyMap_490 = keyMap[490]; - KeyMap_491 = keyMap[491]; - KeyMap_492 = keyMap[492]; - KeyMap_493 = keyMap[493]; - KeyMap_494 = keyMap[494]; - KeyMap_495 = keyMap[495]; - KeyMap_496 = keyMap[496]; - KeyMap_497 = keyMap[497]; - KeyMap_498 = keyMap[498]; - KeyMap_499 = keyMap[499]; - KeyMap_500 = keyMap[500]; - KeyMap_501 = keyMap[501]; - KeyMap_502 = keyMap[502]; - KeyMap_503 = keyMap[503]; - KeyMap_504 = keyMap[504]; - KeyMap_505 = keyMap[505]; - KeyMap_506 = keyMap[506]; - KeyMap_507 = keyMap[507]; - KeyMap_508 = keyMap[508]; - KeyMap_509 = keyMap[509]; - KeyMap_510 = keyMap[510]; - KeyMap_511 = keyMap[511]; - KeyMap_512 = keyMap[512]; - KeyMap_513 = keyMap[513]; - KeyMap_514 = keyMap[514]; - KeyMap_515 = keyMap[515]; - KeyMap_516 = keyMap[516]; - KeyMap_517 = keyMap[517]; - KeyMap_518 = keyMap[518]; - KeyMap_519 = keyMap[519]; - KeyMap_520 = keyMap[520]; - KeyMap_521 = keyMap[521]; - KeyMap_522 = keyMap[522]; - KeyMap_523 = keyMap[523]; - KeyMap_524 = keyMap[524]; - KeyMap_525 = keyMap[525]; - KeyMap_526 = keyMap[526]; - KeyMap_527 = keyMap[527]; - KeyMap_528 = keyMap[528]; - KeyMap_529 = keyMap[529]; - KeyMap_530 = keyMap[530]; - KeyMap_531 = keyMap[531]; - KeyMap_532 = keyMap[532]; - KeyMap_533 = keyMap[533]; - KeyMap_534 = keyMap[534]; - KeyMap_535 = keyMap[535]; - KeyMap_536 = keyMap[536]; - KeyMap_537 = keyMap[537]; - KeyMap_538 = keyMap[538]; - KeyMap_539 = keyMap[539]; - KeyMap_540 = keyMap[540]; - KeyMap_541 = keyMap[541]; - KeyMap_542 = keyMap[542]; - KeyMap_543 = keyMap[543]; - KeyMap_544 = keyMap[544]; - KeyMap_545 = keyMap[545]; - KeyMap_546 = keyMap[546]; - KeyMap_547 = keyMap[547]; - KeyMap_548 = keyMap[548]; - KeyMap_549 = keyMap[549]; - KeyMap_550 = keyMap[550]; - KeyMap_551 = keyMap[551]; - KeyMap_552 = keyMap[552]; - KeyMap_553 = keyMap[553]; - KeyMap_554 = keyMap[554]; - KeyMap_555 = keyMap[555]; - KeyMap_556 = keyMap[556]; - KeyMap_557 = keyMap[557]; - KeyMap_558 = keyMap[558]; - KeyMap_559 = keyMap[559]; - KeyMap_560 = keyMap[560]; - KeyMap_561 = keyMap[561]; - KeyMap_562 = keyMap[562]; - KeyMap_563 = keyMap[563]; - KeyMap_564 = keyMap[564]; - KeyMap_565 = keyMap[565]; - KeyMap_566 = keyMap[566]; - KeyMap_567 = keyMap[567]; - KeyMap_568 = keyMap[568]; - KeyMap_569 = keyMap[569]; - KeyMap_570 = keyMap[570]; - KeyMap_571 = keyMap[571]; - KeyMap_572 = keyMap[572]; - KeyMap_573 = keyMap[573]; - KeyMap_574 = keyMap[574]; - KeyMap_575 = keyMap[575]; - KeyMap_576 = keyMap[576]; - KeyMap_577 = keyMap[577]; - KeyMap_578 = keyMap[578]; - KeyMap_579 = keyMap[579]; - KeyMap_580 = keyMap[580]; - KeyMap_581 = keyMap[581]; - KeyMap_582 = keyMap[582]; - KeyMap_583 = keyMap[583]; - KeyMap_584 = keyMap[584]; - KeyMap_585 = keyMap[585]; - KeyMap_586 = keyMap[586]; - KeyMap_587 = keyMap[587]; - KeyMap_588 = keyMap[588]; - KeyMap_589 = keyMap[589]; - KeyMap_590 = keyMap[590]; - KeyMap_591 = keyMap[591]; - KeyMap_592 = keyMap[592]; - KeyMap_593 = keyMap[593]; - KeyMap_594 = keyMap[594]; - KeyMap_595 = keyMap[595]; - KeyMap_596 = keyMap[596]; - KeyMap_597 = keyMap[597]; - KeyMap_598 = keyMap[598]; - KeyMap_599 = keyMap[599]; - KeyMap_600 = keyMap[600]; - KeyMap_601 = keyMap[601]; - KeyMap_602 = keyMap[602]; - KeyMap_603 = keyMap[603]; - KeyMap_604 = keyMap[604]; - KeyMap_605 = keyMap[605]; - KeyMap_606 = keyMap[606]; - KeyMap_607 = keyMap[607]; - KeyMap_608 = keyMap[608]; - KeyMap_609 = keyMap[609]; - KeyMap_610 = keyMap[610]; - KeyMap_611 = keyMap[611]; - KeyMap_612 = keyMap[612]; - KeyMap_613 = keyMap[613]; - KeyMap_614 = keyMap[614]; - KeyMap_615 = keyMap[615]; - KeyMap_616 = keyMap[616]; - KeyMap_617 = keyMap[617]; - KeyMap_618 = keyMap[618]; - KeyMap_619 = keyMap[619]; - KeyMap_620 = keyMap[620]; - KeyMap_621 = keyMap[621]; - KeyMap_622 = keyMap[622]; - KeyMap_623 = keyMap[623]; - KeyMap_624 = keyMap[624]; - KeyMap_625 = keyMap[625]; - KeyMap_626 = keyMap[626]; - KeyMap_627 = keyMap[627]; - KeyMap_628 = keyMap[628]; - KeyMap_629 = keyMap[629]; - KeyMap_630 = keyMap[630]; - KeyMap_631 = keyMap[631]; - KeyMap_632 = keyMap[632]; - KeyMap_633 = keyMap[633]; - KeyMap_634 = keyMap[634]; - KeyMap_635 = keyMap[635]; - KeyMap_636 = keyMap[636]; - KeyMap_637 = keyMap[637]; - KeyMap_638 = keyMap[638]; - KeyMap_639 = keyMap[639]; - KeyMap_640 = keyMap[640]; - KeyMap_641 = keyMap[641]; - KeyMap_642 = keyMap[642]; - KeyMap_643 = keyMap[643]; - KeyMap_644 = keyMap[644]; - } - if (keysDown != default(Span<bool>)) - { - KeysDown_0 = keysDown[0]; - KeysDown_1 = keysDown[1]; - KeysDown_2 = keysDown[2]; - KeysDown_3 = keysDown[3]; - KeysDown_4 = keysDown[4]; - KeysDown_5 = keysDown[5]; - KeysDown_6 = keysDown[6]; - KeysDown_7 = keysDown[7]; - KeysDown_8 = keysDown[8]; - KeysDown_9 = keysDown[9]; - KeysDown_10 = keysDown[10]; - KeysDown_11 = keysDown[11]; - KeysDown_12 = keysDown[12]; - KeysDown_13 = keysDown[13]; - KeysDown_14 = keysDown[14]; - KeysDown_15 = keysDown[15]; - KeysDown_16 = keysDown[16]; - KeysDown_17 = keysDown[17]; - KeysDown_18 = keysDown[18]; - KeysDown_19 = keysDown[19]; - KeysDown_20 = keysDown[20]; - KeysDown_21 = keysDown[21]; - KeysDown_22 = keysDown[22]; - KeysDown_23 = keysDown[23]; - KeysDown_24 = keysDown[24]; - KeysDown_25 = keysDown[25]; - KeysDown_26 = keysDown[26]; - KeysDown_27 = keysDown[27]; - KeysDown_28 = keysDown[28]; - KeysDown_29 = keysDown[29]; - KeysDown_30 = keysDown[30]; - KeysDown_31 = keysDown[31]; - KeysDown_32 = keysDown[32]; - KeysDown_33 = keysDown[33]; - KeysDown_34 = keysDown[34]; - KeysDown_35 = keysDown[35]; - KeysDown_36 = keysDown[36]; - KeysDown_37 = keysDown[37]; - KeysDown_38 = keysDown[38]; - KeysDown_39 = keysDown[39]; - KeysDown_40 = keysDown[40]; - KeysDown_41 = keysDown[41]; - KeysDown_42 = keysDown[42]; - KeysDown_43 = keysDown[43]; - KeysDown_44 = keysDown[44]; - KeysDown_45 = keysDown[45]; - KeysDown_46 = keysDown[46]; - KeysDown_47 = keysDown[47]; - KeysDown_48 = keysDown[48]; - KeysDown_49 = keysDown[49]; - KeysDown_50 = keysDown[50]; - KeysDown_51 = keysDown[51]; - KeysDown_52 = keysDown[52]; - KeysDown_53 = keysDown[53]; - KeysDown_54 = keysDown[54]; - KeysDown_55 = keysDown[55]; - KeysDown_56 = keysDown[56]; - KeysDown_57 = keysDown[57]; - KeysDown_58 = keysDown[58]; - KeysDown_59 = keysDown[59]; - KeysDown_60 = keysDown[60]; - KeysDown_61 = keysDown[61]; - KeysDown_62 = keysDown[62]; - KeysDown_63 = keysDown[63]; - KeysDown_64 = keysDown[64]; - KeysDown_65 = keysDown[65]; - KeysDown_66 = keysDown[66]; - KeysDown_67 = keysDown[67]; - KeysDown_68 = keysDown[68]; - KeysDown_69 = keysDown[69]; - KeysDown_70 = keysDown[70]; - KeysDown_71 = keysDown[71]; - KeysDown_72 = keysDown[72]; - KeysDown_73 = keysDown[73]; - KeysDown_74 = keysDown[74]; - KeysDown_75 = keysDown[75]; - KeysDown_76 = keysDown[76]; - KeysDown_77 = keysDown[77]; - KeysDown_78 = keysDown[78]; - KeysDown_79 = keysDown[79]; - KeysDown_80 = keysDown[80]; - KeysDown_81 = keysDown[81]; - KeysDown_82 = keysDown[82]; - KeysDown_83 = keysDown[83]; - KeysDown_84 = keysDown[84]; - KeysDown_85 = keysDown[85]; - KeysDown_86 = keysDown[86]; - KeysDown_87 = keysDown[87]; - KeysDown_88 = keysDown[88]; - KeysDown_89 = keysDown[89]; - KeysDown_90 = keysDown[90]; - KeysDown_91 = keysDown[91]; - KeysDown_92 = keysDown[92]; - KeysDown_93 = keysDown[93]; - KeysDown_94 = keysDown[94]; - KeysDown_95 = keysDown[95]; - KeysDown_96 = keysDown[96]; - KeysDown_97 = keysDown[97]; - KeysDown_98 = keysDown[98]; - KeysDown_99 = keysDown[99]; - KeysDown_100 = keysDown[100]; - KeysDown_101 = keysDown[101]; - KeysDown_102 = keysDown[102]; - KeysDown_103 = keysDown[103]; - KeysDown_104 = keysDown[104]; - KeysDown_105 = keysDown[105]; - KeysDown_106 = keysDown[106]; - KeysDown_107 = keysDown[107]; - KeysDown_108 = keysDown[108]; - KeysDown_109 = keysDown[109]; - KeysDown_110 = keysDown[110]; - KeysDown_111 = keysDown[111]; - KeysDown_112 = keysDown[112]; - KeysDown_113 = keysDown[113]; - KeysDown_114 = keysDown[114]; - KeysDown_115 = keysDown[115]; - KeysDown_116 = keysDown[116]; - KeysDown_117 = keysDown[117]; - KeysDown_118 = keysDown[118]; - KeysDown_119 = keysDown[119]; - KeysDown_120 = keysDown[120]; - KeysDown_121 = keysDown[121]; - KeysDown_122 = keysDown[122]; - KeysDown_123 = keysDown[123]; - KeysDown_124 = keysDown[124]; - KeysDown_125 = keysDown[125]; - KeysDown_126 = keysDown[126]; - KeysDown_127 = keysDown[127]; - KeysDown_128 = keysDown[128]; - KeysDown_129 = keysDown[129]; - KeysDown_130 = keysDown[130]; - KeysDown_131 = keysDown[131]; - KeysDown_132 = keysDown[132]; - KeysDown_133 = keysDown[133]; - KeysDown_134 = keysDown[134]; - KeysDown_135 = keysDown[135]; - KeysDown_136 = keysDown[136]; - KeysDown_137 = keysDown[137]; - KeysDown_138 = keysDown[138]; - KeysDown_139 = keysDown[139]; - KeysDown_140 = keysDown[140]; - KeysDown_141 = keysDown[141]; - KeysDown_142 = keysDown[142]; - KeysDown_143 = keysDown[143]; - KeysDown_144 = keysDown[144]; - KeysDown_145 = keysDown[145]; - KeysDown_146 = keysDown[146]; - KeysDown_147 = keysDown[147]; - KeysDown_148 = keysDown[148]; - KeysDown_149 = keysDown[149]; - KeysDown_150 = keysDown[150]; - KeysDown_151 = keysDown[151]; - KeysDown_152 = keysDown[152]; - KeysDown_153 = keysDown[153]; - KeysDown_154 = keysDown[154]; - KeysDown_155 = keysDown[155]; - KeysDown_156 = keysDown[156]; - KeysDown_157 = keysDown[157]; - KeysDown_158 = keysDown[158]; - KeysDown_159 = keysDown[159]; - KeysDown_160 = keysDown[160]; - KeysDown_161 = keysDown[161]; - KeysDown_162 = keysDown[162]; - KeysDown_163 = keysDown[163]; - KeysDown_164 = keysDown[164]; - KeysDown_165 = keysDown[165]; - KeysDown_166 = keysDown[166]; - KeysDown_167 = keysDown[167]; - KeysDown_168 = keysDown[168]; - KeysDown_169 = keysDown[169]; - KeysDown_170 = keysDown[170]; - KeysDown_171 = keysDown[171]; - KeysDown_172 = keysDown[172]; - KeysDown_173 = keysDown[173]; - KeysDown_174 = keysDown[174]; - KeysDown_175 = keysDown[175]; - KeysDown_176 = keysDown[176]; - KeysDown_177 = keysDown[177]; - KeysDown_178 = keysDown[178]; - KeysDown_179 = keysDown[179]; - KeysDown_180 = keysDown[180]; - KeysDown_181 = keysDown[181]; - KeysDown_182 = keysDown[182]; - KeysDown_183 = keysDown[183]; - KeysDown_184 = keysDown[184]; - KeysDown_185 = keysDown[185]; - KeysDown_186 = keysDown[186]; - KeysDown_187 = keysDown[187]; - KeysDown_188 = keysDown[188]; - KeysDown_189 = keysDown[189]; - KeysDown_190 = keysDown[190]; - KeysDown_191 = keysDown[191]; - KeysDown_192 = keysDown[192]; - KeysDown_193 = keysDown[193]; - KeysDown_194 = keysDown[194]; - KeysDown_195 = keysDown[195]; - KeysDown_196 = keysDown[196]; - KeysDown_197 = keysDown[197]; - KeysDown_198 = keysDown[198]; - KeysDown_199 = keysDown[199]; - KeysDown_200 = keysDown[200]; - KeysDown_201 = keysDown[201]; - KeysDown_202 = keysDown[202]; - KeysDown_203 = keysDown[203]; - KeysDown_204 = keysDown[204]; - KeysDown_205 = keysDown[205]; - KeysDown_206 = keysDown[206]; - KeysDown_207 = keysDown[207]; - KeysDown_208 = keysDown[208]; - KeysDown_209 = keysDown[209]; - KeysDown_210 = keysDown[210]; - KeysDown_211 = keysDown[211]; - KeysDown_212 = keysDown[212]; - KeysDown_213 = keysDown[213]; - KeysDown_214 = keysDown[214]; - KeysDown_215 = keysDown[215]; - KeysDown_216 = keysDown[216]; - KeysDown_217 = keysDown[217]; - KeysDown_218 = keysDown[218]; - KeysDown_219 = keysDown[219]; - KeysDown_220 = keysDown[220]; - KeysDown_221 = keysDown[221]; - KeysDown_222 = keysDown[222]; - KeysDown_223 = keysDown[223]; - KeysDown_224 = keysDown[224]; - KeysDown_225 = keysDown[225]; - KeysDown_226 = keysDown[226]; - KeysDown_227 = keysDown[227]; - KeysDown_228 = keysDown[228]; - KeysDown_229 = keysDown[229]; - KeysDown_230 = keysDown[230]; - KeysDown_231 = keysDown[231]; - KeysDown_232 = keysDown[232]; - KeysDown_233 = keysDown[233]; - KeysDown_234 = keysDown[234]; - KeysDown_235 = keysDown[235]; - KeysDown_236 = keysDown[236]; - KeysDown_237 = keysDown[237]; - KeysDown_238 = keysDown[238]; - KeysDown_239 = keysDown[239]; - KeysDown_240 = keysDown[240]; - KeysDown_241 = keysDown[241]; - KeysDown_242 = keysDown[242]; - KeysDown_243 = keysDown[243]; - KeysDown_244 = keysDown[244]; - KeysDown_245 = keysDown[245]; - KeysDown_246 = keysDown[246]; - KeysDown_247 = keysDown[247]; - KeysDown_248 = keysDown[248]; - KeysDown_249 = keysDown[249]; - KeysDown_250 = keysDown[250]; - KeysDown_251 = keysDown[251]; - KeysDown_252 = keysDown[252]; - KeysDown_253 = keysDown[253]; - KeysDown_254 = keysDown[254]; - KeysDown_255 = keysDown[255]; - KeysDown_256 = keysDown[256]; - KeysDown_257 = keysDown[257]; - KeysDown_258 = keysDown[258]; - KeysDown_259 = keysDown[259]; - KeysDown_260 = keysDown[260]; - KeysDown_261 = keysDown[261]; - KeysDown_262 = keysDown[262]; - KeysDown_263 = keysDown[263]; - KeysDown_264 = keysDown[264]; - KeysDown_265 = keysDown[265]; - KeysDown_266 = keysDown[266]; - KeysDown_267 = keysDown[267]; - KeysDown_268 = keysDown[268]; - KeysDown_269 = keysDown[269]; - KeysDown_270 = keysDown[270]; - KeysDown_271 = keysDown[271]; - KeysDown_272 = keysDown[272]; - KeysDown_273 = keysDown[273]; - KeysDown_274 = keysDown[274]; - KeysDown_275 = keysDown[275]; - KeysDown_276 = keysDown[276]; - KeysDown_277 = keysDown[277]; - KeysDown_278 = keysDown[278]; - KeysDown_279 = keysDown[279]; - KeysDown_280 = keysDown[280]; - KeysDown_281 = keysDown[281]; - KeysDown_282 = keysDown[282]; - KeysDown_283 = keysDown[283]; - KeysDown_284 = keysDown[284]; - KeysDown_285 = keysDown[285]; - KeysDown_286 = keysDown[286]; - KeysDown_287 = keysDown[287]; - KeysDown_288 = keysDown[288]; - KeysDown_289 = keysDown[289]; - KeysDown_290 = keysDown[290]; - KeysDown_291 = keysDown[291]; - KeysDown_292 = keysDown[292]; - KeysDown_293 = keysDown[293]; - KeysDown_294 = keysDown[294]; - KeysDown_295 = keysDown[295]; - KeysDown_296 = keysDown[296]; - KeysDown_297 = keysDown[297]; - KeysDown_298 = keysDown[298]; - KeysDown_299 = keysDown[299]; - KeysDown_300 = keysDown[300]; - KeysDown_301 = keysDown[301]; - KeysDown_302 = keysDown[302]; - KeysDown_303 = keysDown[303]; - KeysDown_304 = keysDown[304]; - KeysDown_305 = keysDown[305]; - KeysDown_306 = keysDown[306]; - KeysDown_307 = keysDown[307]; - KeysDown_308 = keysDown[308]; - KeysDown_309 = keysDown[309]; - KeysDown_310 = keysDown[310]; - KeysDown_311 = keysDown[311]; - KeysDown_312 = keysDown[312]; - KeysDown_313 = keysDown[313]; - KeysDown_314 = keysDown[314]; - KeysDown_315 = keysDown[315]; - KeysDown_316 = keysDown[316]; - KeysDown_317 = keysDown[317]; - KeysDown_318 = keysDown[318]; - KeysDown_319 = keysDown[319]; - KeysDown_320 = keysDown[320]; - KeysDown_321 = keysDown[321]; - KeysDown_322 = keysDown[322]; - KeysDown_323 = keysDown[323]; - KeysDown_324 = keysDown[324]; - KeysDown_325 = keysDown[325]; - KeysDown_326 = keysDown[326]; - KeysDown_327 = keysDown[327]; - KeysDown_328 = keysDown[328]; - KeysDown_329 = keysDown[329]; - KeysDown_330 = keysDown[330]; - KeysDown_331 = keysDown[331]; - KeysDown_332 = keysDown[332]; - KeysDown_333 = keysDown[333]; - KeysDown_334 = keysDown[334]; - KeysDown_335 = keysDown[335]; - KeysDown_336 = keysDown[336]; - KeysDown_337 = keysDown[337]; - KeysDown_338 = keysDown[338]; - KeysDown_339 = keysDown[339]; - KeysDown_340 = keysDown[340]; - KeysDown_341 = keysDown[341]; - KeysDown_342 = keysDown[342]; - KeysDown_343 = keysDown[343]; - KeysDown_344 = keysDown[344]; - KeysDown_345 = keysDown[345]; - KeysDown_346 = keysDown[346]; - KeysDown_347 = keysDown[347]; - KeysDown_348 = keysDown[348]; - KeysDown_349 = keysDown[349]; - KeysDown_350 = keysDown[350]; - KeysDown_351 = keysDown[351]; - KeysDown_352 = keysDown[352]; - KeysDown_353 = keysDown[353]; - KeysDown_354 = keysDown[354]; - KeysDown_355 = keysDown[355]; - KeysDown_356 = keysDown[356]; - KeysDown_357 = keysDown[357]; - KeysDown_358 = keysDown[358]; - KeysDown_359 = keysDown[359]; - KeysDown_360 = keysDown[360]; - KeysDown_361 = keysDown[361]; - KeysDown_362 = keysDown[362]; - KeysDown_363 = keysDown[363]; - KeysDown_364 = keysDown[364]; - KeysDown_365 = keysDown[365]; - KeysDown_366 = keysDown[366]; - KeysDown_367 = keysDown[367]; - KeysDown_368 = keysDown[368]; - KeysDown_369 = keysDown[369]; - KeysDown_370 = keysDown[370]; - KeysDown_371 = keysDown[371]; - KeysDown_372 = keysDown[372]; - KeysDown_373 = keysDown[373]; - KeysDown_374 = keysDown[374]; - KeysDown_375 = keysDown[375]; - KeysDown_376 = keysDown[376]; - KeysDown_377 = keysDown[377]; - KeysDown_378 = keysDown[378]; - KeysDown_379 = keysDown[379]; - KeysDown_380 = keysDown[380]; - KeysDown_381 = keysDown[381]; - KeysDown_382 = keysDown[382]; - KeysDown_383 = keysDown[383]; - KeysDown_384 = keysDown[384]; - KeysDown_385 = keysDown[385]; - KeysDown_386 = keysDown[386]; - KeysDown_387 = keysDown[387]; - KeysDown_388 = keysDown[388]; - KeysDown_389 = keysDown[389]; - KeysDown_390 = keysDown[390]; - KeysDown_391 = keysDown[391]; - KeysDown_392 = keysDown[392]; - KeysDown_393 = keysDown[393]; - KeysDown_394 = keysDown[394]; - KeysDown_395 = keysDown[395]; - KeysDown_396 = keysDown[396]; - KeysDown_397 = keysDown[397]; - KeysDown_398 = keysDown[398]; - KeysDown_399 = keysDown[399]; - KeysDown_400 = keysDown[400]; - KeysDown_401 = keysDown[401]; - KeysDown_402 = keysDown[402]; - KeysDown_403 = keysDown[403]; - KeysDown_404 = keysDown[404]; - KeysDown_405 = keysDown[405]; - KeysDown_406 = keysDown[406]; - KeysDown_407 = keysDown[407]; - KeysDown_408 = keysDown[408]; - KeysDown_409 = keysDown[409]; - KeysDown_410 = keysDown[410]; - KeysDown_411 = keysDown[411]; - KeysDown_412 = keysDown[412]; - KeysDown_413 = keysDown[413]; - KeysDown_414 = keysDown[414]; - KeysDown_415 = keysDown[415]; - KeysDown_416 = keysDown[416]; - KeysDown_417 = keysDown[417]; - KeysDown_418 = keysDown[418]; - KeysDown_419 = keysDown[419]; - KeysDown_420 = keysDown[420]; - KeysDown_421 = keysDown[421]; - KeysDown_422 = keysDown[422]; - KeysDown_423 = keysDown[423]; - KeysDown_424 = keysDown[424]; - KeysDown_425 = keysDown[425]; - KeysDown_426 = keysDown[426]; - KeysDown_427 = keysDown[427]; - KeysDown_428 = keysDown[428]; - KeysDown_429 = keysDown[429]; - KeysDown_430 = keysDown[430]; - KeysDown_431 = keysDown[431]; - KeysDown_432 = keysDown[432]; - KeysDown_433 = keysDown[433]; - KeysDown_434 = keysDown[434]; - KeysDown_435 = keysDown[435]; - KeysDown_436 = keysDown[436]; - KeysDown_437 = keysDown[437]; - KeysDown_438 = keysDown[438]; - KeysDown_439 = keysDown[439]; - KeysDown_440 = keysDown[440]; - KeysDown_441 = keysDown[441]; - KeysDown_442 = keysDown[442]; - KeysDown_443 = keysDown[443]; - KeysDown_444 = keysDown[444]; - KeysDown_445 = keysDown[445]; - KeysDown_446 = keysDown[446]; - KeysDown_447 = keysDown[447]; - KeysDown_448 = keysDown[448]; - KeysDown_449 = keysDown[449]; - KeysDown_450 = keysDown[450]; - KeysDown_451 = keysDown[451]; - KeysDown_452 = keysDown[452]; - KeysDown_453 = keysDown[453]; - KeysDown_454 = keysDown[454]; - KeysDown_455 = keysDown[455]; - KeysDown_456 = keysDown[456]; - KeysDown_457 = keysDown[457]; - KeysDown_458 = keysDown[458]; - KeysDown_459 = keysDown[459]; - KeysDown_460 = keysDown[460]; - KeysDown_461 = keysDown[461]; - KeysDown_462 = keysDown[462]; - KeysDown_463 = keysDown[463]; - KeysDown_464 = keysDown[464]; - KeysDown_465 = keysDown[465]; - KeysDown_466 = keysDown[466]; - KeysDown_467 = keysDown[467]; - KeysDown_468 = keysDown[468]; - KeysDown_469 = keysDown[469]; - KeysDown_470 = keysDown[470]; - KeysDown_471 = keysDown[471]; - KeysDown_472 = keysDown[472]; - KeysDown_473 = keysDown[473]; - KeysDown_474 = keysDown[474]; - KeysDown_475 = keysDown[475]; - KeysDown_476 = keysDown[476]; - KeysDown_477 = keysDown[477]; - KeysDown_478 = keysDown[478]; - KeysDown_479 = keysDown[479]; - KeysDown_480 = keysDown[480]; - KeysDown_481 = keysDown[481]; - KeysDown_482 = keysDown[482]; - KeysDown_483 = keysDown[483]; - KeysDown_484 = keysDown[484]; - KeysDown_485 = keysDown[485]; - KeysDown_486 = keysDown[486]; - KeysDown_487 = keysDown[487]; - KeysDown_488 = keysDown[488]; - KeysDown_489 = keysDown[489]; - KeysDown_490 = keysDown[490]; - KeysDown_491 = keysDown[491]; - KeysDown_492 = keysDown[492]; - KeysDown_493 = keysDown[493]; - KeysDown_494 = keysDown[494]; - KeysDown_495 = keysDown[495]; - KeysDown_496 = keysDown[496]; - KeysDown_497 = keysDown[497]; - KeysDown_498 = keysDown[498]; - KeysDown_499 = keysDown[499]; - KeysDown_500 = keysDown[500]; - KeysDown_501 = keysDown[501]; - KeysDown_502 = keysDown[502]; - KeysDown_503 = keysDown[503]; - KeysDown_504 = keysDown[504]; - KeysDown_505 = keysDown[505]; - KeysDown_506 = keysDown[506]; - KeysDown_507 = keysDown[507]; - KeysDown_508 = keysDown[508]; - KeysDown_509 = keysDown[509]; - KeysDown_510 = keysDown[510]; - KeysDown_511 = keysDown[511]; - KeysDown_512 = keysDown[512]; - KeysDown_513 = keysDown[513]; - KeysDown_514 = keysDown[514]; - KeysDown_515 = keysDown[515]; - KeysDown_516 = keysDown[516]; - KeysDown_517 = keysDown[517]; - KeysDown_518 = keysDown[518]; - KeysDown_519 = keysDown[519]; - KeysDown_520 = keysDown[520]; - KeysDown_521 = keysDown[521]; - KeysDown_522 = keysDown[522]; - KeysDown_523 = keysDown[523]; - KeysDown_524 = keysDown[524]; - KeysDown_525 = keysDown[525]; - KeysDown_526 = keysDown[526]; - KeysDown_527 = keysDown[527]; - KeysDown_528 = keysDown[528]; - KeysDown_529 = keysDown[529]; - KeysDown_530 = keysDown[530]; - KeysDown_531 = keysDown[531]; - KeysDown_532 = keysDown[532]; - KeysDown_533 = keysDown[533]; - KeysDown_534 = keysDown[534]; - KeysDown_535 = keysDown[535]; - KeysDown_536 = keysDown[536]; - KeysDown_537 = keysDown[537]; - KeysDown_538 = keysDown[538]; - KeysDown_539 = keysDown[539]; - KeysDown_540 = keysDown[540]; - KeysDown_541 = keysDown[541]; - KeysDown_542 = keysDown[542]; - KeysDown_543 = keysDown[543]; - KeysDown_544 = keysDown[544]; - KeysDown_545 = keysDown[545]; - KeysDown_546 = keysDown[546]; - KeysDown_547 = keysDown[547]; - KeysDown_548 = keysDown[548]; - KeysDown_549 = keysDown[549]; - KeysDown_550 = keysDown[550]; - KeysDown_551 = keysDown[551]; - KeysDown_552 = keysDown[552]; - KeysDown_553 = keysDown[553]; - KeysDown_554 = keysDown[554]; - KeysDown_555 = keysDown[555]; - KeysDown_556 = keysDown[556]; - KeysDown_557 = keysDown[557]; - KeysDown_558 = keysDown[558]; - KeysDown_559 = keysDown[559]; - KeysDown_560 = keysDown[560]; - KeysDown_561 = keysDown[561]; - KeysDown_562 = keysDown[562]; - KeysDown_563 = keysDown[563]; - KeysDown_564 = keysDown[564]; - KeysDown_565 = keysDown[565]; - KeysDown_566 = keysDown[566]; - KeysDown_567 = keysDown[567]; - KeysDown_568 = keysDown[568]; - KeysDown_569 = keysDown[569]; - KeysDown_570 = keysDown[570]; - KeysDown_571 = keysDown[571]; - KeysDown_572 = keysDown[572]; - KeysDown_573 = keysDown[573]; - KeysDown_574 = keysDown[574]; - KeysDown_575 = keysDown[575]; - KeysDown_576 = keysDown[576]; - KeysDown_577 = keysDown[577]; - KeysDown_578 = keysDown[578]; - KeysDown_579 = keysDown[579]; - KeysDown_580 = keysDown[580]; - KeysDown_581 = keysDown[581]; - KeysDown_582 = keysDown[582]; - KeysDown_583 = keysDown[583]; - KeysDown_584 = keysDown[584]; - KeysDown_585 = keysDown[585]; - KeysDown_586 = keysDown[586]; - KeysDown_587 = keysDown[587]; - KeysDown_588 = keysDown[588]; - KeysDown_589 = keysDown[589]; - KeysDown_590 = keysDown[590]; - KeysDown_591 = keysDown[591]; - KeysDown_592 = keysDown[592]; - KeysDown_593 = keysDown[593]; - KeysDown_594 = keysDown[594]; - KeysDown_595 = keysDown[595]; - KeysDown_596 = keysDown[596]; - KeysDown_597 = keysDown[597]; - KeysDown_598 = keysDown[598]; - KeysDown_599 = keysDown[599]; - KeysDown_600 = keysDown[600]; - KeysDown_601 = keysDown[601]; - KeysDown_602 = keysDown[602]; - KeysDown_603 = keysDown[603]; - KeysDown_604 = keysDown[604]; - KeysDown_605 = keysDown[605]; - KeysDown_606 = keysDown[606]; - KeysDown_607 = keysDown[607]; - KeysDown_608 = keysDown[608]; - KeysDown_609 = keysDown[609]; - KeysDown_610 = keysDown[610]; - KeysDown_611 = keysDown[611]; - KeysDown_612 = keysDown[612]; - KeysDown_613 = keysDown[613]; - KeysDown_614 = keysDown[614]; - KeysDown_615 = keysDown[615]; - KeysDown_616 = keysDown[616]; - KeysDown_617 = keysDown[617]; - KeysDown_618 = keysDown[618]; - KeysDown_619 = keysDown[619]; - KeysDown_620 = keysDown[620]; - KeysDown_621 = keysDown[621]; - KeysDown_622 = keysDown[622]; - KeysDown_623 = keysDown[623]; - KeysDown_624 = keysDown[624]; - KeysDown_625 = keysDown[625]; - KeysDown_626 = keysDown[626]; - KeysDown_627 = keysDown[627]; - KeysDown_628 = keysDown[628]; - KeysDown_629 = keysDown[629]; - KeysDown_630 = keysDown[630]; - KeysDown_631 = keysDown[631]; - KeysDown_632 = keysDown[632]; - KeysDown_633 = keysDown[633]; - KeysDown_634 = keysDown[634]; - KeysDown_635 = keysDown[635]; - KeysDown_636 = keysDown[636]; - KeysDown_637 = keysDown[637]; - KeysDown_638 = keysDown[638]; - KeysDown_639 = keysDown[639]; - KeysDown_640 = keysDown[640]; - KeysDown_641 = keysDown[641]; - KeysDown_642 = keysDown[642]; - KeysDown_643 = keysDown[643]; - KeysDown_644 = keysDown[644]; - } - MousePos = mousePos; - if (mouseDown != default(Span<bool>)) - { - MouseDown_0 = mouseDown[0]; - MouseDown_1 = mouseDown[1]; - MouseDown_2 = mouseDown[2]; - MouseDown_3 = mouseDown[3]; - MouseDown_4 = mouseDown[4]; - } - MouseWheel = mouseWheel; - MouseWheelH = mouseWheelH; - MouseHoveredViewport = mouseHoveredViewport; - KeyCtrl = keyCtrl ? (byte)1 : (byte)0; - KeyShift = keyShift ? (byte)1 : (byte)0; - KeyAlt = keyAlt ? (byte)1 : (byte)0; - KeySuper = keySuper ? (byte)1 : (byte)0; - if (navInputs != default(Span<float>)) - { - NavInputs_0 = navInputs[0]; - NavInputs_1 = navInputs[1]; - NavInputs_2 = navInputs[2]; - NavInputs_3 = navInputs[3]; - NavInputs_4 = navInputs[4]; - NavInputs_5 = navInputs[5]; - NavInputs_6 = navInputs[6]; - NavInputs_7 = navInputs[7]; - NavInputs_8 = navInputs[8]; - NavInputs_9 = navInputs[9]; - NavInputs_10 = navInputs[10]; - NavInputs_11 = navInputs[11]; - NavInputs_12 = navInputs[12]; - NavInputs_13 = navInputs[13]; - NavInputs_14 = navInputs[14]; - NavInputs_15 = navInputs[15]; - NavInputs_16 = navInputs[16]; - NavInputs_17 = navInputs[17]; - NavInputs_18 = navInputs[18]; - NavInputs_19 = navInputs[19]; - NavInputs_20 = navInputs[20]; - } - KeyMods = keyMods; - if (keysData != default(Span<ImGuiKeyData>)) - { - KeysData_0 = keysData[0]; - KeysData_1 = keysData[1]; - KeysData_2 = keysData[2]; - KeysData_3 = keysData[3]; - KeysData_4 = keysData[4]; - KeysData_5 = keysData[5]; - KeysData_6 = keysData[6]; - KeysData_7 = keysData[7]; - KeysData_8 = keysData[8]; - KeysData_9 = keysData[9]; - KeysData_10 = keysData[10]; - KeysData_11 = keysData[11]; - KeysData_12 = keysData[12]; - KeysData_13 = keysData[13]; - KeysData_14 = keysData[14]; - KeysData_15 = keysData[15]; - KeysData_16 = keysData[16]; - KeysData_17 = keysData[17]; - KeysData_18 = keysData[18]; - KeysData_19 = keysData[19]; - KeysData_20 = keysData[20]; - KeysData_21 = keysData[21]; - KeysData_22 = keysData[22]; - KeysData_23 = keysData[23]; - KeysData_24 = keysData[24]; - KeysData_25 = keysData[25]; - KeysData_26 = keysData[26]; - KeysData_27 = keysData[27]; - KeysData_28 = keysData[28]; - KeysData_29 = keysData[29]; - KeysData_30 = keysData[30]; - KeysData_31 = keysData[31]; - KeysData_32 = keysData[32]; - KeysData_33 = keysData[33]; - KeysData_34 = keysData[34]; - KeysData_35 = keysData[35]; - KeysData_36 = keysData[36]; - KeysData_37 = keysData[37]; - KeysData_38 = keysData[38]; - KeysData_39 = keysData[39]; - KeysData_40 = keysData[40]; - KeysData_41 = keysData[41]; - KeysData_42 = keysData[42]; - KeysData_43 = keysData[43]; - KeysData_44 = keysData[44]; - KeysData_45 = keysData[45]; - KeysData_46 = keysData[46]; - KeysData_47 = keysData[47]; - KeysData_48 = keysData[48]; - KeysData_49 = keysData[49]; - KeysData_50 = keysData[50]; - KeysData_51 = keysData[51]; - KeysData_52 = keysData[52]; - KeysData_53 = keysData[53]; - KeysData_54 = keysData[54]; - KeysData_55 = keysData[55]; - KeysData_56 = keysData[56]; - KeysData_57 = keysData[57]; - KeysData_58 = keysData[58]; - KeysData_59 = keysData[59]; - KeysData_60 = keysData[60]; - KeysData_61 = keysData[61]; - KeysData_62 = keysData[62]; - KeysData_63 = keysData[63]; - KeysData_64 = keysData[64]; - KeysData_65 = keysData[65]; - KeysData_66 = keysData[66]; - KeysData_67 = keysData[67]; - KeysData_68 = keysData[68]; - KeysData_69 = keysData[69]; - KeysData_70 = keysData[70]; - KeysData_71 = keysData[71]; - KeysData_72 = keysData[72]; - KeysData_73 = keysData[73]; - KeysData_74 = keysData[74]; - KeysData_75 = keysData[75]; - KeysData_76 = keysData[76]; - KeysData_77 = keysData[77]; - KeysData_78 = keysData[78]; - KeysData_79 = keysData[79]; - KeysData_80 = keysData[80]; - KeysData_81 = keysData[81]; - KeysData_82 = keysData[82]; - KeysData_83 = keysData[83]; - KeysData_84 = keysData[84]; - KeysData_85 = keysData[85]; - KeysData_86 = keysData[86]; - KeysData_87 = keysData[87]; - KeysData_88 = keysData[88]; - KeysData_89 = keysData[89]; - KeysData_90 = keysData[90]; - KeysData_91 = keysData[91]; - KeysData_92 = keysData[92]; - KeysData_93 = keysData[93]; - KeysData_94 = keysData[94]; - KeysData_95 = keysData[95]; - KeysData_96 = keysData[96]; - KeysData_97 = keysData[97]; - KeysData_98 = keysData[98]; - KeysData_99 = keysData[99]; - KeysData_100 = keysData[100]; - KeysData_101 = keysData[101]; - KeysData_102 = keysData[102]; - KeysData_103 = keysData[103]; - KeysData_104 = keysData[104]; - KeysData_105 = keysData[105]; - KeysData_106 = keysData[106]; - KeysData_107 = keysData[107]; - KeysData_108 = keysData[108]; - KeysData_109 = keysData[109]; - KeysData_110 = keysData[110]; - KeysData_111 = keysData[111]; - KeysData_112 = keysData[112]; - KeysData_113 = keysData[113]; - KeysData_114 = keysData[114]; - KeysData_115 = keysData[115]; - KeysData_116 = keysData[116]; - KeysData_117 = keysData[117]; - KeysData_118 = keysData[118]; - KeysData_119 = keysData[119]; - KeysData_120 = keysData[120]; - KeysData_121 = keysData[121]; - KeysData_122 = keysData[122]; - KeysData_123 = keysData[123]; - KeysData_124 = keysData[124]; - KeysData_125 = keysData[125]; - KeysData_126 = keysData[126]; - KeysData_127 = keysData[127]; - KeysData_128 = keysData[128]; - KeysData_129 = keysData[129]; - KeysData_130 = keysData[130]; - KeysData_131 = keysData[131]; - KeysData_132 = keysData[132]; - KeysData_133 = keysData[133]; - KeysData_134 = keysData[134]; - KeysData_135 = keysData[135]; - KeysData_136 = keysData[136]; - KeysData_137 = keysData[137]; - KeysData_138 = keysData[138]; - KeysData_139 = keysData[139]; - KeysData_140 = keysData[140]; - KeysData_141 = keysData[141]; - KeysData_142 = keysData[142]; - KeysData_143 = keysData[143]; - KeysData_144 = keysData[144]; - KeysData_145 = keysData[145]; - KeysData_146 = keysData[146]; - KeysData_147 = keysData[147]; - KeysData_148 = keysData[148]; - KeysData_149 = keysData[149]; - KeysData_150 = keysData[150]; - KeysData_151 = keysData[151]; - KeysData_152 = keysData[152]; - KeysData_153 = keysData[153]; - KeysData_154 = keysData[154]; - KeysData_155 = keysData[155]; - KeysData_156 = keysData[156]; - KeysData_157 = keysData[157]; - KeysData_158 = keysData[158]; - KeysData_159 = keysData[159]; - KeysData_160 = keysData[160]; - KeysData_161 = keysData[161]; - KeysData_162 = keysData[162]; - KeysData_163 = keysData[163]; - KeysData_164 = keysData[164]; - KeysData_165 = keysData[165]; - KeysData_166 = keysData[166]; - KeysData_167 = keysData[167]; - KeysData_168 = keysData[168]; - KeysData_169 = keysData[169]; - KeysData_170 = keysData[170]; - KeysData_171 = keysData[171]; - KeysData_172 = keysData[172]; - KeysData_173 = keysData[173]; - KeysData_174 = keysData[174]; - KeysData_175 = keysData[175]; - KeysData_176 = keysData[176]; - KeysData_177 = keysData[177]; - KeysData_178 = keysData[178]; - KeysData_179 = keysData[179]; - KeysData_180 = keysData[180]; - KeysData_181 = keysData[181]; - KeysData_182 = keysData[182]; - KeysData_183 = keysData[183]; - KeysData_184 = keysData[184]; - KeysData_185 = keysData[185]; - KeysData_186 = keysData[186]; - KeysData_187 = keysData[187]; - KeysData_188 = keysData[188]; - KeysData_189 = keysData[189]; - KeysData_190 = keysData[190]; - KeysData_191 = keysData[191]; - KeysData_192 = keysData[192]; - KeysData_193 = keysData[193]; - KeysData_194 = keysData[194]; - KeysData_195 = keysData[195]; - KeysData_196 = keysData[196]; - KeysData_197 = keysData[197]; - KeysData_198 = keysData[198]; - KeysData_199 = keysData[199]; - KeysData_200 = keysData[200]; - KeysData_201 = keysData[201]; - KeysData_202 = keysData[202]; - KeysData_203 = keysData[203]; - KeysData_204 = keysData[204]; - KeysData_205 = keysData[205]; - KeysData_206 = keysData[206]; - KeysData_207 = keysData[207]; - KeysData_208 = keysData[208]; - KeysData_209 = keysData[209]; - KeysData_210 = keysData[210]; - KeysData_211 = keysData[211]; - KeysData_212 = keysData[212]; - KeysData_213 = keysData[213]; - KeysData_214 = keysData[214]; - KeysData_215 = keysData[215]; - KeysData_216 = keysData[216]; - KeysData_217 = keysData[217]; - KeysData_218 = keysData[218]; - KeysData_219 = keysData[219]; - KeysData_220 = keysData[220]; - KeysData_221 = keysData[221]; - KeysData_222 = keysData[222]; - KeysData_223 = keysData[223]; - KeysData_224 = keysData[224]; - KeysData_225 = keysData[225]; - KeysData_226 = keysData[226]; - KeysData_227 = keysData[227]; - KeysData_228 = keysData[228]; - KeysData_229 = keysData[229]; - KeysData_230 = keysData[230]; - KeysData_231 = keysData[231]; - KeysData_232 = keysData[232]; - KeysData_233 = keysData[233]; - KeysData_234 = keysData[234]; - KeysData_235 = keysData[235]; - KeysData_236 = keysData[236]; - KeysData_237 = keysData[237]; - KeysData_238 = keysData[238]; - KeysData_239 = keysData[239]; - KeysData_240 = keysData[240]; - KeysData_241 = keysData[241]; - KeysData_242 = keysData[242]; - KeysData_243 = keysData[243]; - KeysData_244 = keysData[244]; - KeysData_245 = keysData[245]; - KeysData_246 = keysData[246]; - KeysData_247 = keysData[247]; - KeysData_248 = keysData[248]; - KeysData_249 = keysData[249]; - KeysData_250 = keysData[250]; - KeysData_251 = keysData[251]; - KeysData_252 = keysData[252]; - KeysData_253 = keysData[253]; - KeysData_254 = keysData[254]; - KeysData_255 = keysData[255]; - KeysData_256 = keysData[256]; - KeysData_257 = keysData[257]; - KeysData_258 = keysData[258]; - KeysData_259 = keysData[259]; - KeysData_260 = keysData[260]; - KeysData_261 = keysData[261]; - KeysData_262 = keysData[262]; - KeysData_263 = keysData[263]; - KeysData_264 = keysData[264]; - KeysData_265 = keysData[265]; - KeysData_266 = keysData[266]; - KeysData_267 = keysData[267]; - KeysData_268 = keysData[268]; - KeysData_269 = keysData[269]; - KeysData_270 = keysData[270]; - KeysData_271 = keysData[271]; - KeysData_272 = keysData[272]; - KeysData_273 = keysData[273]; - KeysData_274 = keysData[274]; - KeysData_275 = keysData[275]; - KeysData_276 = keysData[276]; - KeysData_277 = keysData[277]; - KeysData_278 = keysData[278]; - KeysData_279 = keysData[279]; - KeysData_280 = keysData[280]; - KeysData_281 = keysData[281]; - KeysData_282 = keysData[282]; - KeysData_283 = keysData[283]; - KeysData_284 = keysData[284]; - KeysData_285 = keysData[285]; - KeysData_286 = keysData[286]; - KeysData_287 = keysData[287]; - KeysData_288 = keysData[288]; - KeysData_289 = keysData[289]; - KeysData_290 = keysData[290]; - KeysData_291 = keysData[291]; - KeysData_292 = keysData[292]; - KeysData_293 = keysData[293]; - KeysData_294 = keysData[294]; - KeysData_295 = keysData[295]; - KeysData_296 = keysData[296]; - KeysData_297 = keysData[297]; - KeysData_298 = keysData[298]; - KeysData_299 = keysData[299]; - KeysData_300 = keysData[300]; - KeysData_301 = keysData[301]; - KeysData_302 = keysData[302]; - KeysData_303 = keysData[303]; - KeysData_304 = keysData[304]; - KeysData_305 = keysData[305]; - KeysData_306 = keysData[306]; - KeysData_307 = keysData[307]; - KeysData_308 = keysData[308]; - KeysData_309 = keysData[309]; - KeysData_310 = keysData[310]; - KeysData_311 = keysData[311]; - KeysData_312 = keysData[312]; - KeysData_313 = keysData[313]; - KeysData_314 = keysData[314]; - KeysData_315 = keysData[315]; - KeysData_316 = keysData[316]; - KeysData_317 = keysData[317]; - KeysData_318 = keysData[318]; - KeysData_319 = keysData[319]; - KeysData_320 = keysData[320]; - KeysData_321 = keysData[321]; - KeysData_322 = keysData[322]; - KeysData_323 = keysData[323]; - KeysData_324 = keysData[324]; - KeysData_325 = keysData[325]; - KeysData_326 = keysData[326]; - KeysData_327 = keysData[327]; - KeysData_328 = keysData[328]; - KeysData_329 = keysData[329]; - KeysData_330 = keysData[330]; - KeysData_331 = keysData[331]; - KeysData_332 = keysData[332]; - KeysData_333 = keysData[333]; - KeysData_334 = keysData[334]; - KeysData_335 = keysData[335]; - KeysData_336 = keysData[336]; - KeysData_337 = keysData[337]; - KeysData_338 = keysData[338]; - KeysData_339 = keysData[339]; - KeysData_340 = keysData[340]; - KeysData_341 = keysData[341]; - KeysData_342 = keysData[342]; - KeysData_343 = keysData[343]; - KeysData_344 = keysData[344]; - KeysData_345 = keysData[345]; - KeysData_346 = keysData[346]; - KeysData_347 = keysData[347]; - KeysData_348 = keysData[348]; - KeysData_349 = keysData[349]; - KeysData_350 = keysData[350]; - KeysData_351 = keysData[351]; - KeysData_352 = keysData[352]; - KeysData_353 = keysData[353]; - KeysData_354 = keysData[354]; - KeysData_355 = keysData[355]; - KeysData_356 = keysData[356]; - KeysData_357 = keysData[357]; - KeysData_358 = keysData[358]; - KeysData_359 = keysData[359]; - KeysData_360 = keysData[360]; - KeysData_361 = keysData[361]; - KeysData_362 = keysData[362]; - KeysData_363 = keysData[363]; - KeysData_364 = keysData[364]; - KeysData_365 = keysData[365]; - KeysData_366 = keysData[366]; - KeysData_367 = keysData[367]; - KeysData_368 = keysData[368]; - KeysData_369 = keysData[369]; - KeysData_370 = keysData[370]; - KeysData_371 = keysData[371]; - KeysData_372 = keysData[372]; - KeysData_373 = keysData[373]; - KeysData_374 = keysData[374]; - KeysData_375 = keysData[375]; - KeysData_376 = keysData[376]; - KeysData_377 = keysData[377]; - KeysData_378 = keysData[378]; - KeysData_379 = keysData[379]; - KeysData_380 = keysData[380]; - KeysData_381 = keysData[381]; - KeysData_382 = keysData[382]; - KeysData_383 = keysData[383]; - KeysData_384 = keysData[384]; - KeysData_385 = keysData[385]; - KeysData_386 = keysData[386]; - KeysData_387 = keysData[387]; - KeysData_388 = keysData[388]; - KeysData_389 = keysData[389]; - KeysData_390 = keysData[390]; - KeysData_391 = keysData[391]; - KeysData_392 = keysData[392]; - KeysData_393 = keysData[393]; - KeysData_394 = keysData[394]; - KeysData_395 = keysData[395]; - KeysData_396 = keysData[396]; - KeysData_397 = keysData[397]; - KeysData_398 = keysData[398]; - KeysData_399 = keysData[399]; - KeysData_400 = keysData[400]; - KeysData_401 = keysData[401]; - KeysData_402 = keysData[402]; - KeysData_403 = keysData[403]; - KeysData_404 = keysData[404]; - KeysData_405 = keysData[405]; - KeysData_406 = keysData[406]; - KeysData_407 = keysData[407]; - KeysData_408 = keysData[408]; - KeysData_409 = keysData[409]; - KeysData_410 = keysData[410]; - KeysData_411 = keysData[411]; - KeysData_412 = keysData[412]; - KeysData_413 = keysData[413]; - KeysData_414 = keysData[414]; - KeysData_415 = keysData[415]; - KeysData_416 = keysData[416]; - KeysData_417 = keysData[417]; - KeysData_418 = keysData[418]; - KeysData_419 = keysData[419]; - KeysData_420 = keysData[420]; - KeysData_421 = keysData[421]; - KeysData_422 = keysData[422]; - KeysData_423 = keysData[423]; - KeysData_424 = keysData[424]; - KeysData_425 = keysData[425]; - KeysData_426 = keysData[426]; - KeysData_427 = keysData[427]; - KeysData_428 = keysData[428]; - KeysData_429 = keysData[429]; - KeysData_430 = keysData[430]; - KeysData_431 = keysData[431]; - KeysData_432 = keysData[432]; - KeysData_433 = keysData[433]; - KeysData_434 = keysData[434]; - KeysData_435 = keysData[435]; - KeysData_436 = keysData[436]; - KeysData_437 = keysData[437]; - KeysData_438 = keysData[438]; - KeysData_439 = keysData[439]; - KeysData_440 = keysData[440]; - KeysData_441 = keysData[441]; - KeysData_442 = keysData[442]; - KeysData_443 = keysData[443]; - KeysData_444 = keysData[444]; - KeysData_445 = keysData[445]; - KeysData_446 = keysData[446]; - KeysData_447 = keysData[447]; - KeysData_448 = keysData[448]; - KeysData_449 = keysData[449]; - KeysData_450 = keysData[450]; - KeysData_451 = keysData[451]; - KeysData_452 = keysData[452]; - KeysData_453 = keysData[453]; - KeysData_454 = keysData[454]; - KeysData_455 = keysData[455]; - KeysData_456 = keysData[456]; - KeysData_457 = keysData[457]; - KeysData_458 = keysData[458]; - KeysData_459 = keysData[459]; - KeysData_460 = keysData[460]; - KeysData_461 = keysData[461]; - KeysData_462 = keysData[462]; - KeysData_463 = keysData[463]; - KeysData_464 = keysData[464]; - KeysData_465 = keysData[465]; - KeysData_466 = keysData[466]; - KeysData_467 = keysData[467]; - KeysData_468 = keysData[468]; - KeysData_469 = keysData[469]; - KeysData_470 = keysData[470]; - KeysData_471 = keysData[471]; - KeysData_472 = keysData[472]; - KeysData_473 = keysData[473]; - KeysData_474 = keysData[474]; - KeysData_475 = keysData[475]; - KeysData_476 = keysData[476]; - KeysData_477 = keysData[477]; - KeysData_478 = keysData[478]; - KeysData_479 = keysData[479]; - KeysData_480 = keysData[480]; - KeysData_481 = keysData[481]; - KeysData_482 = keysData[482]; - KeysData_483 = keysData[483]; - KeysData_484 = keysData[484]; - KeysData_485 = keysData[485]; - KeysData_486 = keysData[486]; - KeysData_487 = keysData[487]; - KeysData_488 = keysData[488]; - KeysData_489 = keysData[489]; - KeysData_490 = keysData[490]; - KeysData_491 = keysData[491]; - KeysData_492 = keysData[492]; - KeysData_493 = keysData[493]; - KeysData_494 = keysData[494]; - KeysData_495 = keysData[495]; - KeysData_496 = keysData[496]; - KeysData_497 = keysData[497]; - KeysData_498 = keysData[498]; - KeysData_499 = keysData[499]; - KeysData_500 = keysData[500]; - KeysData_501 = keysData[501]; - KeysData_502 = keysData[502]; - KeysData_503 = keysData[503]; - KeysData_504 = keysData[504]; - KeysData_505 = keysData[505]; - KeysData_506 = keysData[506]; - KeysData_507 = keysData[507]; - KeysData_508 = keysData[508]; - KeysData_509 = keysData[509]; - KeysData_510 = keysData[510]; - KeysData_511 = keysData[511]; - KeysData_512 = keysData[512]; - KeysData_513 = keysData[513]; - KeysData_514 = keysData[514]; - KeysData_515 = keysData[515]; - KeysData_516 = keysData[516]; - KeysData_517 = keysData[517]; - KeysData_518 = keysData[518]; - KeysData_519 = keysData[519]; - KeysData_520 = keysData[520]; - KeysData_521 = keysData[521]; - KeysData_522 = keysData[522]; - KeysData_523 = keysData[523]; - KeysData_524 = keysData[524]; - KeysData_525 = keysData[525]; - KeysData_526 = keysData[526]; - KeysData_527 = keysData[527]; - KeysData_528 = keysData[528]; - KeysData_529 = keysData[529]; - KeysData_530 = keysData[530]; - KeysData_531 = keysData[531]; - KeysData_532 = keysData[532]; - KeysData_533 = keysData[533]; - KeysData_534 = keysData[534]; - KeysData_535 = keysData[535]; - KeysData_536 = keysData[536]; - KeysData_537 = keysData[537]; - KeysData_538 = keysData[538]; - KeysData_539 = keysData[539]; - KeysData_540 = keysData[540]; - KeysData_541 = keysData[541]; - KeysData_542 = keysData[542]; - KeysData_543 = keysData[543]; - KeysData_544 = keysData[544]; - KeysData_545 = keysData[545]; - KeysData_546 = keysData[546]; - KeysData_547 = keysData[547]; - KeysData_548 = keysData[548]; - KeysData_549 = keysData[549]; - KeysData_550 = keysData[550]; - KeysData_551 = keysData[551]; - KeysData_552 = keysData[552]; - KeysData_553 = keysData[553]; - KeysData_554 = keysData[554]; - KeysData_555 = keysData[555]; - KeysData_556 = keysData[556]; - KeysData_557 = keysData[557]; - KeysData_558 = keysData[558]; - KeysData_559 = keysData[559]; - KeysData_560 = keysData[560]; - KeysData_561 = keysData[561]; - KeysData_562 = keysData[562]; - KeysData_563 = keysData[563]; - KeysData_564 = keysData[564]; - KeysData_565 = keysData[565]; - KeysData_566 = keysData[566]; - KeysData_567 = keysData[567]; - KeysData_568 = keysData[568]; - KeysData_569 = keysData[569]; - KeysData_570 = keysData[570]; - KeysData_571 = keysData[571]; - KeysData_572 = keysData[572]; - KeysData_573 = keysData[573]; - KeysData_574 = keysData[574]; - KeysData_575 = keysData[575]; - KeysData_576 = keysData[576]; - KeysData_577 = keysData[577]; - KeysData_578 = keysData[578]; - KeysData_579 = keysData[579]; - KeysData_580 = keysData[580]; - KeysData_581 = keysData[581]; - KeysData_582 = keysData[582]; - KeysData_583 = keysData[583]; - KeysData_584 = keysData[584]; - KeysData_585 = keysData[585]; - KeysData_586 = keysData[586]; - KeysData_587 = keysData[587]; - KeysData_588 = keysData[588]; - KeysData_589 = keysData[589]; - KeysData_590 = keysData[590]; - KeysData_591 = keysData[591]; - KeysData_592 = keysData[592]; - KeysData_593 = keysData[593]; - KeysData_594 = keysData[594]; - KeysData_595 = keysData[595]; - KeysData_596 = keysData[596]; - KeysData_597 = keysData[597]; - KeysData_598 = keysData[598]; - KeysData_599 = keysData[599]; - KeysData_600 = keysData[600]; - KeysData_601 = keysData[601]; - KeysData_602 = keysData[602]; - KeysData_603 = keysData[603]; - KeysData_604 = keysData[604]; - KeysData_605 = keysData[605]; - KeysData_606 = keysData[606]; - KeysData_607 = keysData[607]; - KeysData_608 = keysData[608]; - KeysData_609 = keysData[609]; - KeysData_610 = keysData[610]; - KeysData_611 = keysData[611]; - KeysData_612 = keysData[612]; - KeysData_613 = keysData[613]; - KeysData_614 = keysData[614]; - KeysData_615 = keysData[615]; - KeysData_616 = keysData[616]; - KeysData_617 = keysData[617]; - KeysData_618 = keysData[618]; - KeysData_619 = keysData[619]; - KeysData_620 = keysData[620]; - KeysData_621 = keysData[621]; - KeysData_622 = keysData[622]; - KeysData_623 = keysData[623]; - KeysData_624 = keysData[624]; - KeysData_625 = keysData[625]; - KeysData_626 = keysData[626]; - KeysData_627 = keysData[627]; - KeysData_628 = keysData[628]; - KeysData_629 = keysData[629]; - KeysData_630 = keysData[630]; - KeysData_631 = keysData[631]; - KeysData_632 = keysData[632]; - KeysData_633 = keysData[633]; - KeysData_634 = keysData[634]; - KeysData_635 = keysData[635]; - KeysData_636 = keysData[636]; - KeysData_637 = keysData[637]; - KeysData_638 = keysData[638]; - KeysData_639 = keysData[639]; - KeysData_640 = keysData[640]; - KeysData_641 = keysData[641]; - KeysData_642 = keysData[642]; - KeysData_643 = keysData[643]; - KeysData_644 = keysData[644]; - } - WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; - MousePosPrev = mousePosPrev; - if (mouseClickedPos != default(Span<Vector2>)) - { - MouseClickedPos_0 = mouseClickedPos[0]; - MouseClickedPos_1 = mouseClickedPos[1]; - MouseClickedPos_2 = mouseClickedPos[2]; - MouseClickedPos_3 = mouseClickedPos[3]; - MouseClickedPos_4 = mouseClickedPos[4]; - } - if (mouseClickedTime != default(Span<double>)) - { - MouseClickedTime_0 = mouseClickedTime[0]; - MouseClickedTime_1 = mouseClickedTime[1]; - MouseClickedTime_2 = mouseClickedTime[2]; - MouseClickedTime_3 = mouseClickedTime[3]; - MouseClickedTime_4 = mouseClickedTime[4]; - } - if (mouseClicked != default(Span<bool>)) - { - MouseClicked_0 = mouseClicked[0]; - MouseClicked_1 = mouseClicked[1]; - MouseClicked_2 = mouseClicked[2]; - MouseClicked_3 = mouseClicked[3]; - MouseClicked_4 = mouseClicked[4]; - } - if (mouseDoubleClicked != default(Span<bool>)) - { - MouseDoubleClicked_0 = mouseDoubleClicked[0]; - MouseDoubleClicked_1 = mouseDoubleClicked[1]; - MouseDoubleClicked_2 = mouseDoubleClicked[2]; - MouseDoubleClicked_3 = mouseDoubleClicked[3]; - MouseDoubleClicked_4 = mouseDoubleClicked[4]; - } - if (mouseClickedCount != default(Span<ushort>)) - { - MouseClickedCount_0 = mouseClickedCount[0]; - MouseClickedCount_1 = mouseClickedCount[1]; - MouseClickedCount_2 = mouseClickedCount[2]; - MouseClickedCount_3 = mouseClickedCount[3]; - MouseClickedCount_4 = mouseClickedCount[4]; - } - if (mouseClickedLastCount != default(Span<ushort>)) - { - MouseClickedLastCount_0 = mouseClickedLastCount[0]; - MouseClickedLastCount_1 = mouseClickedLastCount[1]; - MouseClickedLastCount_2 = mouseClickedLastCount[2]; - MouseClickedLastCount_3 = mouseClickedLastCount[3]; - MouseClickedLastCount_4 = mouseClickedLastCount[4]; - } - if (mouseReleased != default(Span<bool>)) - { - MouseReleased_0 = mouseReleased[0]; - MouseReleased_1 = mouseReleased[1]; - MouseReleased_2 = mouseReleased[2]; - MouseReleased_3 = mouseReleased[3]; - MouseReleased_4 = mouseReleased[4]; - } - if (mouseDownOwned != default(Span<bool>)) - { - MouseDownOwned_0 = mouseDownOwned[0]; - MouseDownOwned_1 = mouseDownOwned[1]; - MouseDownOwned_2 = mouseDownOwned[2]; - MouseDownOwned_3 = mouseDownOwned[3]; - MouseDownOwned_4 = mouseDownOwned[4]; - } - if (mouseDownOwnedUnlessPopupClose != default(Span<bool>)) - { - MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; - MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; - MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; - MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; - MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; - } - if (mouseDownDuration != default(Span<float>)) - { - MouseDownDuration_0 = mouseDownDuration[0]; - MouseDownDuration_1 = mouseDownDuration[1]; - MouseDownDuration_2 = mouseDownDuration[2]; - MouseDownDuration_3 = mouseDownDuration[3]; - MouseDownDuration_4 = mouseDownDuration[4]; - } - if (mouseDownDurationPrev != default(Span<float>)) - { - MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; - MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; - MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; - MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; - MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; - } - if (mouseDragMaxDistanceAbs != default(Span<Vector2>)) - { - MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; - MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; - MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; - MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; - MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; - } - if (mouseDragMaxDistanceSqr != default(Span<float>)) - { - MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; - MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; - MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; - MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; - MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; - } - if (navInputsDownDuration != default(Span<float>)) - { - NavInputsDownDuration_0 = navInputsDownDuration[0]; - NavInputsDownDuration_1 = navInputsDownDuration[1]; - NavInputsDownDuration_2 = navInputsDownDuration[2]; - NavInputsDownDuration_3 = navInputsDownDuration[3]; - NavInputsDownDuration_4 = navInputsDownDuration[4]; - NavInputsDownDuration_5 = navInputsDownDuration[5]; - NavInputsDownDuration_6 = navInputsDownDuration[6]; - NavInputsDownDuration_7 = navInputsDownDuration[7]; - NavInputsDownDuration_8 = navInputsDownDuration[8]; - NavInputsDownDuration_9 = navInputsDownDuration[9]; - NavInputsDownDuration_10 = navInputsDownDuration[10]; - NavInputsDownDuration_11 = navInputsDownDuration[11]; - NavInputsDownDuration_12 = navInputsDownDuration[12]; - NavInputsDownDuration_13 = navInputsDownDuration[13]; - NavInputsDownDuration_14 = navInputsDownDuration[14]; - NavInputsDownDuration_15 = navInputsDownDuration[15]; - NavInputsDownDuration_16 = navInputsDownDuration[16]; - NavInputsDownDuration_17 = navInputsDownDuration[17]; - NavInputsDownDuration_18 = navInputsDownDuration[18]; - NavInputsDownDuration_19 = navInputsDownDuration[19]; - NavInputsDownDuration_20 = navInputsDownDuration[20]; - } - if (navInputsDownDurationPrev != default(Span<float>)) - { - NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; - NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; - NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; - NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; - NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; - NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; - NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; - NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; - NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; - NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; - NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; - NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; - NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; - NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; - NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; - NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; - NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; - NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; - NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; - NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; - NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; - } - PenPressure = penPressure; - AppFocusLost = appFocusLost ? (byte)1 : (byte)0; - AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; - BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; - BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; - InputQueueSurrogate = inputQueueSurrogate; - InputQueueCharacters = inputQueueCharacters; - } - public unsafe Span<ImGuiKeyData> KeysData - { - get - { - fixed (ImGuiKeyData* p = &this.KeysData_0) - { - return new Span<ImGuiKeyData>(p, 645); - } - } - } - public unsafe Span<Vector2> MouseClickedPos - { - get - { - fixed (Vector2* p = &this.MouseClickedPos_0) - { - return new Span<Vector2>(p, 5); - } - } - } - public unsafe Span<Vector2> MouseDragMaxDistanceAbs - { - get - { - fixed (Vector2* p = &this.MouseDragMaxDistanceAbs_0) - { - return new Span<Vector2>(p, 5); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiIOPtr : IEquatable<ImGuiIOPtr> - { - public ImGuiIOPtr(ImGuiIO* handle) { Handle = handle; } - public ImGuiIO* Handle; - public bool IsNull => Handle == null; - public static ImGuiIOPtr Null => new ImGuiIOPtr(null); - public ImGuiIO this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiIOPtr(ImGuiIO* handle) => new ImGuiIOPtr(handle); - public static implicit operator ImGuiIO*(ImGuiIOPtr handle) => handle.Handle; - public static bool operator ==(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiIOPtr left, ImGuiIO* right) => left.Handle == right; - public static bool operator !=(ImGuiIOPtr left, ImGuiIO* right) => left.Handle != right; - public bool Equals(ImGuiIOPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiIOPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiConfigFlags ConfigFlags => ref Unsafe.AsRef<ImGuiConfigFlags>(&Handle->ConfigFlags); - public ref ImGuiBackendFlags BackendFlags => ref Unsafe.AsRef<ImGuiBackendFlags>(&Handle->BackendFlags); - public ref Vector2 DisplaySize => ref Unsafe.AsRef<Vector2>(&Handle->DisplaySize); - public ref float DeltaTime => ref Unsafe.AsRef<float>(&Handle->DeltaTime); - public ref float IniSavingRate => ref Unsafe.AsRef<float>(&Handle->IniSavingRate); - public byte* IniFilename { get => Handle->IniFilename; set => Handle->IniFilename = value; } - public byte* LogFilename { get => Handle->LogFilename; set => Handle->LogFilename = value; } - public ref float MouseDoubleClickTime => ref Unsafe.AsRef<float>(&Handle->MouseDoubleClickTime); - public ref float MouseDoubleClickMaxDist => ref Unsafe.AsRef<float>(&Handle->MouseDoubleClickMaxDist); - public ref float MouseDragThreshold => ref Unsafe.AsRef<float>(&Handle->MouseDragThreshold); - public ref float KeyRepeatDelay => ref Unsafe.AsRef<float>(&Handle->KeyRepeatDelay); - public ref float KeyRepeatRate => ref Unsafe.AsRef<float>(&Handle->KeyRepeatRate); - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - public ref ImFontAtlasPtr Fonts => ref Unsafe.AsRef<ImFontAtlasPtr>(&Handle->Fonts); - public ref float FontGlobalScale => ref Unsafe.AsRef<float>(&Handle->FontGlobalScale); - public ref bool FontAllowUserScaling => ref Unsafe.AsRef<bool>(&Handle->FontAllowUserScaling); - public ref ImFontPtr FontDefault => ref Unsafe.AsRef<ImFontPtr>(&Handle->FontDefault); - public ref Vector2 DisplayFramebufferScale => ref Unsafe.AsRef<Vector2>(&Handle->DisplayFramebufferScale); - public ref bool ConfigDockingNoSplit => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingNoSplit); - public ref bool ConfigDockingWithShift => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingWithShift); - public ref bool ConfigDockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingAlwaysTabBar); - public ref bool ConfigDockingTransparentPayload => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingTransparentPayload); - public ref bool ConfigViewportsNoAutoMerge => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoAutoMerge); - public ref bool ConfigViewportsNoTaskBarIcon => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoTaskBarIcon); - public ref bool ConfigViewportsNoDecoration => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoDecoration); - public ref bool ConfigViewportsNoDefaultParent => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoDefaultParent); - public ref bool MouseDrawCursor => ref Unsafe.AsRef<bool>(&Handle->MouseDrawCursor); - public ref bool ConfigMacOSXBehaviors => ref Unsafe.AsRef<bool>(&Handle->ConfigMacOSXBehaviors); - public ref bool ConfigInputTrickleEventQueue => ref Unsafe.AsRef<bool>(&Handle->ConfigInputTrickleEventQueue); - public ref bool ConfigInputTextCursorBlink => ref Unsafe.AsRef<bool>(&Handle->ConfigInputTextCursorBlink); - public ref bool ConfigDragClickToInputText => ref Unsafe.AsRef<bool>(&Handle->ConfigDragClickToInputText); - public ref bool ConfigWindowsResizeFromEdges => ref Unsafe.AsRef<bool>(&Handle->ConfigWindowsResizeFromEdges); - public ref bool ConfigWindowsMoveFromTitleBarOnly => ref Unsafe.AsRef<bool>(&Handle->ConfigWindowsMoveFromTitleBarOnly); - public ref float ConfigMemoryCompactTimer => ref Unsafe.AsRef<float>(&Handle->ConfigMemoryCompactTimer); - public byte* BackendPlatformName { get => Handle->BackendPlatformName; set => Handle->BackendPlatformName = value; } - public byte* BackendRendererName { get => Handle->BackendRendererName; set => Handle->BackendRendererName = value; } - public void* BackendPlatformUserData { get => Handle->BackendPlatformUserData; set => Handle->BackendPlatformUserData = value; } - public void* BackendRendererUserData { get => Handle->BackendRendererUserData; set => Handle->BackendRendererUserData = value; } - public void* BackendLanguageUserData { get => Handle->BackendLanguageUserData; set => Handle->BackendLanguageUserData = value; } - public void* GetClipboardTextFn { get => Handle->GetClipboardTextFn; set => Handle->GetClipboardTextFn = value; } - public void* SetClipboardTextFn { get => Handle->SetClipboardTextFn; set => Handle->SetClipboardTextFn = value; } - public void* ClipboardUserData { get => Handle->ClipboardUserData; set => Handle->ClipboardUserData = value; } - public void* SetPlatformImeDataFn { get => Handle->SetPlatformImeDataFn; set => Handle->SetPlatformImeDataFn = value; } - public void* UnusedPadding { get => Handle->UnusedPadding; set => Handle->UnusedPadding = value; } - public ref bool WantCaptureMouse => ref Unsafe.AsRef<bool>(&Handle->WantCaptureMouse); - public ref bool WantCaptureKeyboard => ref Unsafe.AsRef<bool>(&Handle->WantCaptureKeyboard); - public ref bool WantTextInput => ref Unsafe.AsRef<bool>(&Handle->WantTextInput); - public ref bool WantSetMousePos => ref Unsafe.AsRef<bool>(&Handle->WantSetMousePos); - public ref bool WantSaveIniSettings => ref Unsafe.AsRef<bool>(&Handle->WantSaveIniSettings); - public ref bool NavActive => ref Unsafe.AsRef<bool>(&Handle->NavActive); - public ref bool NavVisible => ref Unsafe.AsRef<bool>(&Handle->NavVisible); - public ref float Framerate => ref Unsafe.AsRef<float>(&Handle->Framerate); - public ref int MetricsRenderVertices => ref Unsafe.AsRef<int>(&Handle->MetricsRenderVertices); - public ref int MetricsRenderIndices => ref Unsafe.AsRef<int>(&Handle->MetricsRenderIndices); - public ref int MetricsRenderWindows => ref Unsafe.AsRef<int>(&Handle->MetricsRenderWindows); - public ref int MetricsActiveWindows => ref Unsafe.AsRef<int>(&Handle->MetricsActiveWindows); - public ref int MetricsActiveAllocations => ref Unsafe.AsRef<int>(&Handle->MetricsActiveAllocations); - public ref Vector2 MouseDelta => ref Unsafe.AsRef<Vector2>(&Handle->MouseDelta); - public unsafe Span<int> KeyMap - { - get - { - return new Span<int>(&Handle->KeyMap_0, 645); - } - } - public unsafe Span<bool> KeysDown - { - get - { - return new Span<bool>(&Handle->KeysDown_0, 645); - } - } - public ref Vector2 MousePos => ref Unsafe.AsRef<Vector2>(&Handle->MousePos); - public unsafe Span<bool> MouseDown - { - get - { - return new Span<bool>(&Handle->MouseDown_0, 5); - } - } - public ref float MouseWheel => ref Unsafe.AsRef<float>(&Handle->MouseWheel); - public ref float MouseWheelH => ref Unsafe.AsRef<float>(&Handle->MouseWheelH); - public ref uint MouseHoveredViewport => ref Unsafe.AsRef<uint>(&Handle->MouseHoveredViewport); - public ref bool KeyCtrl => ref Unsafe.AsRef<bool>(&Handle->KeyCtrl); - public ref bool KeyShift => ref Unsafe.AsRef<bool>(&Handle->KeyShift); - public ref bool KeyAlt => ref Unsafe.AsRef<bool>(&Handle->KeyAlt); - public ref bool KeySuper => ref Unsafe.AsRef<bool>(&Handle->KeySuper); - public unsafe Span<float> NavInputs - { - get - { - return new Span<float>(&Handle->NavInputs_0, 21); - } - } - public ref ImGuiModFlags KeyMods => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->KeyMods); - public unsafe Span<ImGuiKeyData> KeysData - { - get - { - return new Span<ImGuiKeyData>(&Handle->KeysData_0, 645); - } - } - public ref bool WantCaptureMouseUnlessPopupClose => ref Unsafe.AsRef<bool>(&Handle->WantCaptureMouseUnlessPopupClose); - public ref Vector2 MousePosPrev => ref Unsafe.AsRef<Vector2>(&Handle->MousePosPrev); - public unsafe Span<Vector2> MouseClickedPos - { - get - { - return new Span<Vector2>(&Handle->MouseClickedPos_0, 5); - } - } - public unsafe Span<double> MouseClickedTime - { - get - { - return new Span<double>(&Handle->MouseClickedTime_0, 5); - } - } - public unsafe Span<bool> MouseClicked - { - get - { - return new Span<bool>(&Handle->MouseClicked_0, 5); - } - } - public unsafe Span<bool> MouseDoubleClicked - { - get - { - return new Span<bool>(&Handle->MouseDoubleClicked_0, 5); - } - } - public unsafe Span<ushort> MouseClickedCount - { - get - { - return new Span<ushort>(&Handle->MouseClickedCount_0, 5); - } - } - public unsafe Span<ushort> MouseClickedLastCount - { - get - { - return new Span<ushort>(&Handle->MouseClickedLastCount_0, 5); - } - } - public unsafe Span<bool> MouseReleased - { - get - { - return new Span<bool>(&Handle->MouseReleased_0, 5); - } - } - public unsafe Span<bool> MouseDownOwned - { - get - { - return new Span<bool>(&Handle->MouseDownOwned_0, 5); - } - } - public unsafe Span<bool> MouseDownOwnedUnlessPopupClose - { - get - { - return new Span<bool>(&Handle->MouseDownOwnedUnlessPopupClose_0, 5); - } - } - public unsafe Span<float> MouseDownDuration - { - get - { - return new Span<float>(&Handle->MouseDownDuration_0, 5); - } - } - public unsafe Span<float> MouseDownDurationPrev - { - get - { - return new Span<float>(&Handle->MouseDownDurationPrev_0, 5); - } - } - public unsafe Span<Vector2> MouseDragMaxDistanceAbs - { - get - { - return new Span<Vector2>(&Handle->MouseDragMaxDistanceAbs_0, 5); - } - } - public unsafe Span<float> MouseDragMaxDistanceSqr - { - get - { - return new Span<float>(&Handle->MouseDragMaxDistanceSqr_0, 5); - } - } - public unsafe Span<float> NavInputsDownDuration - { - get - { - return new Span<float>(&Handle->NavInputsDownDuration_0, 21); - } - } - public unsafe Span<float> NavInputsDownDurationPrev - { - get - { - return new Span<float>(&Handle->NavInputsDownDurationPrev_0, 21); - } - } - public ref float PenPressure => ref Unsafe.AsRef<float>(&Handle->PenPressure); - public ref bool AppFocusLost => ref Unsafe.AsRef<bool>(&Handle->AppFocusLost); - public ref bool AppAcceptingEvents => ref Unsafe.AsRef<bool>(&Handle->AppAcceptingEvents); - public ref sbyte BackendUsingLegacyKeyArrays => ref Unsafe.AsRef<sbyte>(&Handle->BackendUsingLegacyKeyArrays); - public ref bool BackendUsingLegacyNavInputArray => ref Unsafe.AsRef<bool>(&Handle->BackendUsingLegacyNavInputArray); - public ref ushort InputQueueSurrogate => ref Unsafe.AsRef<ushort>(&Handle->InputQueueSurrogate); - public ref ImVector<ushort> InputQueueCharacters => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->InputQueueCharacters); - } -} -/* ImGuiKeyData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiKeyData - { - public byte Down; - public float DownDuration; - public float DownDurationPrev; - public float AnalogValue; - public unsafe ImGuiKeyData(bool down = default, float downDuration = default, float downDurationPrev = default, float analogValue = default) - { - Down = down ? (byte)1 : (byte)0; - DownDuration = downDuration; - DownDurationPrev = downDurationPrev; - AnalogValue = analogValue; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiKeyDataPtr : IEquatable<ImGuiKeyDataPtr> - { - public ImGuiKeyDataPtr(ImGuiKeyData* handle) { Handle = handle; } - public ImGuiKeyData* Handle; - public bool IsNull => Handle == null; - public static ImGuiKeyDataPtr Null => new ImGuiKeyDataPtr(null); - public ImGuiKeyData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiKeyDataPtr(ImGuiKeyData* handle) => new ImGuiKeyDataPtr(handle); - public static implicit operator ImGuiKeyData*(ImGuiKeyDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle == right; - public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle != right; - public bool Equals(ImGuiKeyDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiKeyDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiKeyDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref bool Down => ref Unsafe.AsRef<bool>(&Handle->Down); - public ref float DownDuration => ref Unsafe.AsRef<float>(&Handle->DownDuration); - public ref float DownDurationPrev => ref Unsafe.AsRef<float>(&Handle->DownDurationPrev); - public ref float AnalogValue => ref Unsafe.AsRef<float>(&Handle->AnalogValue); - } -} -/* ImGuiLastItemData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiLastItemData - { - public uint ID; - public ImGuiItemFlags InFlags; - public ImGuiItemStatusFlags StatusFlags; - public ImRect Rect; - public ImRect NavRect; - public ImRect DisplayRect; - public unsafe ImGuiLastItemData(uint id = default, ImGuiItemFlags inFlags = default, ImGuiItemStatusFlags statusFlags = default, ImRect rect = default, ImRect navRect = default, ImRect displayRect = default) - { - ID = id; - InFlags = inFlags; - StatusFlags = statusFlags; - Rect = rect; - NavRect = navRect; - DisplayRect = displayRect; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiLastItemDataPtr : IEquatable<ImGuiLastItemDataPtr> - { - public ImGuiLastItemDataPtr(ImGuiLastItemData* handle) { Handle = handle; } - public ImGuiLastItemData* Handle; - public bool IsNull => Handle == null; - public static ImGuiLastItemDataPtr Null => new ImGuiLastItemDataPtr(null); - public ImGuiLastItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiLastItemDataPtr(ImGuiLastItemData* handle) => new ImGuiLastItemDataPtr(handle); - public static implicit operator ImGuiLastItemData*(ImGuiLastItemDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle == right; - public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle != right; - public bool Equals(ImGuiLastItemDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiLastItemDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiLastItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef<ImGuiItemFlags>(&Handle->InFlags); - public ref ImGuiItemStatusFlags StatusFlags => ref Unsafe.AsRef<ImGuiItemStatusFlags>(&Handle->StatusFlags); - public ref ImRect Rect => ref Unsafe.AsRef<ImRect>(&Handle->Rect); - public ref ImRect NavRect => ref Unsafe.AsRef<ImRect>(&Handle->NavRect); - public ref ImRect DisplayRect => ref Unsafe.AsRef<ImRect>(&Handle->DisplayRect); - } -} -/* ImGuiListClipper.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiListClipper - { - public int DisplayStart; - public int DisplayEnd; - public int ItemsCount; - public float ItemsHeight; - public float StartPosY; - public unsafe void* TempData; - public unsafe ImGuiListClipper(int displayStart = default, int displayEnd = default, int itemsCount = default, float itemsHeight = default, float startPosY = default, void* tempData = default) - { - DisplayStart = displayStart; - DisplayEnd = displayEnd; - ItemsCount = itemsCount; - ItemsHeight = itemsHeight; - StartPosY = startPosY; - TempData = tempData; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiListClipperPtr : IEquatable<ImGuiListClipperPtr> - { - public ImGuiListClipperPtr(ImGuiListClipper* handle) { Handle = handle; } - public ImGuiListClipper* Handle; - public bool IsNull => Handle == null; - public static ImGuiListClipperPtr Null => new ImGuiListClipperPtr(null); - public ImGuiListClipper this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiListClipperPtr(ImGuiListClipper* handle) => new ImGuiListClipperPtr(handle); - public static implicit operator ImGuiListClipper*(ImGuiListClipperPtr handle) => handle.Handle; - public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle == right; - public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle != right; - public bool Equals(ImGuiListClipperPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiListClipperPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiListClipperPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref int DisplayStart => ref Unsafe.AsRef<int>(&Handle->DisplayStart); - public ref int DisplayEnd => ref Unsafe.AsRef<int>(&Handle->DisplayEnd); - public ref int ItemsCount => ref Unsafe.AsRef<int>(&Handle->ItemsCount); - public ref float ItemsHeight => ref Unsafe.AsRef<float>(&Handle->ItemsHeight); - public ref float StartPosY => ref Unsafe.AsRef<float>(&Handle->StartPosY); - public void* TempData { get => Handle->TempData; set => Handle->TempData = value; } - } -} -/* ImGuiListClipperData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiListClipperData - { - public unsafe ImGuiListClipper* ListClipper; - public float LossynessOffset; - public int StepNo; - public int ItemsFrozen; - public ImVector<ImGuiListClipperRange> Ranges; - public unsafe ImGuiListClipperData(ImGuiListClipper* listClipper = default, float lossynessOffset = default, int stepNo = default, int itemsFrozen = default, ImVector<ImGuiListClipperRange> ranges = default) - { - ListClipper = listClipper; - LossynessOffset = lossynessOffset; - StepNo = stepNo; - ItemsFrozen = itemsFrozen; - Ranges = ranges; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiListClipperDataPtr : IEquatable<ImGuiListClipperDataPtr> - { - public ImGuiListClipperDataPtr(ImGuiListClipperData* handle) { Handle = handle; } - public ImGuiListClipperData* Handle; - public bool IsNull => Handle == null; - public static ImGuiListClipperDataPtr Null => new ImGuiListClipperDataPtr(null); - public ImGuiListClipperData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiListClipperDataPtr(ImGuiListClipperData* handle) => new ImGuiListClipperDataPtr(handle); - public static implicit operator ImGuiListClipperData*(ImGuiListClipperDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle == right; - public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle != right; - public bool Equals(ImGuiListClipperDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiListClipperDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiListClipperDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiListClipperPtr ListClipper => ref Unsafe.AsRef<ImGuiListClipperPtr>(&Handle->ListClipper); - public ref float LossynessOffset => ref Unsafe.AsRef<float>(&Handle->LossynessOffset); - public ref int StepNo => ref Unsafe.AsRef<int>(&Handle->StepNo); - public ref int ItemsFrozen => ref Unsafe.AsRef<int>(&Handle->ItemsFrozen); - public ref ImVector<ImGuiListClipperRange> Ranges => ref Unsafe.AsRef<ImVector<ImGuiListClipperRange>>(&Handle->Ranges); - } -} -/* ImGuiListClipperRange.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiListClipperRange - { - public int Min; - public int Max; - public byte PosToIndexConvert; - public sbyte PosToIndexOffsetMin; - public sbyte PosToIndexOffsetMax; - public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, sbyte posToIndexOffsetMin = default, sbyte posToIndexOffsetMax = default) - { - Min = min; - Max = max; - PosToIndexConvert = posToIndexConvert ? (byte)1 : (byte)0; - PosToIndexOffsetMin = posToIndexOffsetMin; - PosToIndexOffsetMax = posToIndexOffsetMax; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiListClipperRangePtr : IEquatable<ImGuiListClipperRangePtr> - { - public ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) { Handle = handle; } - public ImGuiListClipperRange* Handle; - public bool IsNull => Handle == null; - public static ImGuiListClipperRangePtr Null => new ImGuiListClipperRangePtr(null); - public ImGuiListClipperRange this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) => new ImGuiListClipperRangePtr(handle); - public static implicit operator ImGuiListClipperRange*(ImGuiListClipperRangePtr handle) => handle.Handle; - public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle == right; - public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle != right; - public bool Equals(ImGuiListClipperRangePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiListClipperRangePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiListClipperRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref int Min => ref Unsafe.AsRef<int>(&Handle->Min); - public ref int Max => ref Unsafe.AsRef<int>(&Handle->Max); - public ref bool PosToIndexConvert => ref Unsafe.AsRef<bool>(&Handle->PosToIndexConvert); - public ref sbyte PosToIndexOffsetMin => ref Unsafe.AsRef<sbyte>(&Handle->PosToIndexOffsetMin); - public ref sbyte PosToIndexOffsetMax => ref Unsafe.AsRef<sbyte>(&Handle->PosToIndexOffsetMax); - } -} -/* ImGuiMenuColumns.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiMenuColumns - { - public uint TotalWidth; - public uint NextTotalWidth; - public ushort Spacing; - public ushort OffsetIcon; - public ushort OffsetLabel; - public ushort OffsetShortcut; - public ushort OffsetMark; - public ushort Widths_0; - public ushort Widths_1; - public ushort Widths_2; - public ushort Widths_3; - public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, ushort* widths = default) - { - TotalWidth = totalWidth; - NextTotalWidth = nextTotalWidth; - Spacing = spacing; - OffsetIcon = offsetIcon; - OffsetLabel = offsetLabel; - OffsetShortcut = offsetShortcut; - OffsetMark = offsetMark; - if (widths != default(ushort*)) - { - Widths_0 = widths[0]; - Widths_1 = widths[1]; - Widths_2 = widths[2]; - Widths_3 = widths[3]; - } - } - public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, Span<ushort> widths = default) - { - TotalWidth = totalWidth; - NextTotalWidth = nextTotalWidth; - Spacing = spacing; - OffsetIcon = offsetIcon; - OffsetLabel = offsetLabel; - OffsetShortcut = offsetShortcut; - OffsetMark = offsetMark; - if (widths != default(Span<ushort>)) - { - Widths_0 = widths[0]; - Widths_1 = widths[1]; - Widths_2 = widths[2]; - Widths_3 = widths[3]; - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiMenuColumnsPtr : IEquatable<ImGuiMenuColumnsPtr> - { - public ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) { Handle = handle; } - public ImGuiMenuColumns* Handle; - public bool IsNull => Handle == null; - public static ImGuiMenuColumnsPtr Null => new ImGuiMenuColumnsPtr(null); - public ImGuiMenuColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) => new ImGuiMenuColumnsPtr(handle); - public static implicit operator ImGuiMenuColumns*(ImGuiMenuColumnsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle == right; - public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle != right; - public bool Equals(ImGuiMenuColumnsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiMenuColumnsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiMenuColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint TotalWidth => ref Unsafe.AsRef<uint>(&Handle->TotalWidth); - public ref uint NextTotalWidth => ref Unsafe.AsRef<uint>(&Handle->NextTotalWidth); - public ref ushort Spacing => ref Unsafe.AsRef<ushort>(&Handle->Spacing); - public ref ushort OffsetIcon => ref Unsafe.AsRef<ushort>(&Handle->OffsetIcon); - public ref ushort OffsetLabel => ref Unsafe.AsRef<ushort>(&Handle->OffsetLabel); - public ref ushort OffsetShortcut => ref Unsafe.AsRef<ushort>(&Handle->OffsetShortcut); - public ref ushort OffsetMark => ref Unsafe.AsRef<ushort>(&Handle->OffsetMark); - public unsafe Span<ushort> Widths - { - get - { - return new Span<ushort>(&Handle->Widths_0, 4); - } - } - } -} -/* ImGuiMetricsConfig.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiMetricsConfig - { - public byte ShowDebugLog; - public byte ShowStackTool; - public byte ShowWindowsRects; - public byte ShowWindowsBeginOrder; - public byte ShowTablesRects; - public byte ShowDrawCmdMesh; - public byte ShowDrawCmdBoundingBoxes; - public byte ShowDockingNodes; - public int ShowWindowsRectsType; - public int ShowTablesRectsType; - public unsafe ImGuiMetricsConfig(bool showDebugLog = default, bool showStackTool = default, bool showWindowsRects = default, bool showWindowsBeginOrder = default, bool showTablesRects = default, bool showDrawCmdMesh = default, bool showDrawCmdBoundingBoxes = default, bool showDockingNodes = default, int showWindowsRectsType = default, int showTablesRectsType = default) - { - ShowDebugLog = showDebugLog ? (byte)1 : (byte)0; - ShowStackTool = showStackTool ? (byte)1 : (byte)0; - ShowWindowsRects = showWindowsRects ? (byte)1 : (byte)0; - ShowWindowsBeginOrder = showWindowsBeginOrder ? (byte)1 : (byte)0; - ShowTablesRects = showTablesRects ? (byte)1 : (byte)0; - ShowDrawCmdMesh = showDrawCmdMesh ? (byte)1 : (byte)0; - ShowDrawCmdBoundingBoxes = showDrawCmdBoundingBoxes ? (byte)1 : (byte)0; - ShowDockingNodes = showDockingNodes ? (byte)1 : (byte)0; - ShowWindowsRectsType = showWindowsRectsType; - ShowTablesRectsType = showTablesRectsType; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiMetricsConfigPtr : IEquatable<ImGuiMetricsConfigPtr> - { - public ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) { Handle = handle; } - public ImGuiMetricsConfig* Handle; - public bool IsNull => Handle == null; - public static ImGuiMetricsConfigPtr Null => new ImGuiMetricsConfigPtr(null); - public ImGuiMetricsConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) => new ImGuiMetricsConfigPtr(handle); - public static implicit operator ImGuiMetricsConfig*(ImGuiMetricsConfigPtr handle) => handle.Handle; - public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle == right; - public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle != right; - public bool Equals(ImGuiMetricsConfigPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiMetricsConfigPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiMetricsConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref bool ShowDebugLog => ref Unsafe.AsRef<bool>(&Handle->ShowDebugLog); - public ref bool ShowStackTool => ref Unsafe.AsRef<bool>(&Handle->ShowStackTool); - public ref bool ShowWindowsRects => ref Unsafe.AsRef<bool>(&Handle->ShowWindowsRects); - public ref bool ShowWindowsBeginOrder => ref Unsafe.AsRef<bool>(&Handle->ShowWindowsBeginOrder); - public ref bool ShowTablesRects => ref Unsafe.AsRef<bool>(&Handle->ShowTablesRects); - public ref bool ShowDrawCmdMesh => ref Unsafe.AsRef<bool>(&Handle->ShowDrawCmdMesh); - public ref bool ShowDrawCmdBoundingBoxes => ref Unsafe.AsRef<bool>(&Handle->ShowDrawCmdBoundingBoxes); - public ref bool ShowDockingNodes => ref Unsafe.AsRef<bool>(&Handle->ShowDockingNodes); - public ref int ShowWindowsRectsType => ref Unsafe.AsRef<int>(&Handle->ShowWindowsRectsType); - public ref int ShowTablesRectsType => ref Unsafe.AsRef<int>(&Handle->ShowTablesRectsType); - } -} -/* ImGuiNavItemData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiNavItemData - { - public unsafe ImGuiWindow* Window; - public uint ID; - public uint FocusScopeId; - public ImRect RectRel; - public ImGuiItemFlags InFlags; - public float DistBox; - public float DistCenter; - public float DistAxial; - public unsafe ImGuiNavItemData(ImGuiWindowPtr window = default, uint id = default, uint focusScopeId = default, ImRect rectRel = default, ImGuiItemFlags inFlags = default, float distBox = default, float distCenter = default, float distAxial = default) - { - Window = window; - ID = id; - FocusScopeId = focusScopeId; - RectRel = rectRel; - InFlags = inFlags; - DistBox = distBox; - DistCenter = distCenter; - DistAxial = distAxial; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiNavItemDataPtr : IEquatable<ImGuiNavItemDataPtr> - { - public ImGuiNavItemDataPtr(ImGuiNavItemData* handle) { Handle = handle; } - public ImGuiNavItemData* Handle; - public bool IsNull => Handle == null; - public static ImGuiNavItemDataPtr Null => new ImGuiNavItemDataPtr(null); - public ImGuiNavItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiNavItemDataPtr(ImGuiNavItemData* handle) => new ImGuiNavItemDataPtr(handle); - public static implicit operator ImGuiNavItemData*(ImGuiNavItemDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle == right; - public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle != right; - public bool Equals(ImGuiNavItemDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiNavItemDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiNavItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref uint FocusScopeId => ref Unsafe.AsRef<uint>(&Handle->FocusScopeId); - public ref ImRect RectRel => ref Unsafe.AsRef<ImRect>(&Handle->RectRel); - public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef<ImGuiItemFlags>(&Handle->InFlags); - public ref float DistBox => ref Unsafe.AsRef<float>(&Handle->DistBox); - public ref float DistCenter => ref Unsafe.AsRef<float>(&Handle->DistCenter); - public ref float DistAxial => ref Unsafe.AsRef<float>(&Handle->DistAxial); - } -} -/* ImGuiNextItemData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiNextItemData - { - public ImGuiNextItemDataFlags Flags; - public float Width; - public uint FocusScopeId; - public ImGuiCond OpenCond; - public byte OpenVal; - public unsafe ImGuiNextItemData(ImGuiNextItemDataFlags flags = default, float width = default, uint focusScopeId = default, ImGuiCond openCond = default, bool openVal = default) - { - Flags = flags; - Width = width; - FocusScopeId = focusScopeId; - OpenCond = openCond; - OpenVal = openVal ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiNextItemDataPtr : IEquatable<ImGuiNextItemDataPtr> - { - public ImGuiNextItemDataPtr(ImGuiNextItemData* handle) { Handle = handle; } - public ImGuiNextItemData* Handle; - public bool IsNull => Handle == null; - public static ImGuiNextItemDataPtr Null => new ImGuiNextItemDataPtr(null); - public ImGuiNextItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiNextItemDataPtr(ImGuiNextItemData* handle) => new ImGuiNextItemDataPtr(handle); - public static implicit operator ImGuiNextItemData*(ImGuiNextItemDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle == right; - public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle != right; - public bool Equals(ImGuiNextItemDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiNextItemDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiNextItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiNextItemDataFlags Flags => ref Unsafe.AsRef<ImGuiNextItemDataFlags>(&Handle->Flags); - public ref float Width => ref Unsafe.AsRef<float>(&Handle->Width); - public ref uint FocusScopeId => ref Unsafe.AsRef<uint>(&Handle->FocusScopeId); - public ref ImGuiCond OpenCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->OpenCond); - public ref bool OpenVal => ref Unsafe.AsRef<bool>(&Handle->OpenVal); - } -} -/* ImGuiNextWindowData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiNextWindowData - { - public ImGuiNextWindowDataFlags Flags; - public ImGuiCond PosCond; - public ImGuiCond SizeCond; - public ImGuiCond CollapsedCond; - public ImGuiCond DockCond; - public Vector2 PosVal; - public Vector2 PosPivotVal; - public Vector2 SizeVal; - public Vector2 ContentSizeVal; - public Vector2 ScrollVal; - public byte PosUndock; - public byte CollapsedVal; - public ImRect SizeConstraintRect; - public unsafe void* SizeCallback; - public unsafe void* SizeCallbackUserData; - public float BgAlphaVal; - public uint ViewportId; - public uint DockId; - public ImGuiWindowClass WindowClass; - public Vector2 MenuBarOffsetMinVal; - public unsafe ImGuiNextWindowData(ImGuiNextWindowDataFlags flags = default, ImGuiCond posCond = default, ImGuiCond sizeCond = default, ImGuiCond collapsedCond = default, ImGuiCond dockCond = default, Vector2 posVal = default, Vector2 posPivotVal = default, Vector2 sizeVal = default, Vector2 contentSizeVal = default, Vector2 scrollVal = default, bool posUndock = default, bool collapsedVal = default, ImRect sizeConstraintRect = default, ImGuiSizeCallback sizeCallback = default, void* sizeCallbackUserData = default, float bgAlphaVal = default, uint viewportId = default, uint dockId = default, ImGuiWindowClass windowClass = default, Vector2 menuBarOffsetMinVal = default) - { - Flags = flags; - PosCond = posCond; - SizeCond = sizeCond; - CollapsedCond = collapsedCond; - DockCond = dockCond; - PosVal = posVal; - PosPivotVal = posPivotVal; - SizeVal = sizeVal; - ContentSizeVal = contentSizeVal; - ScrollVal = scrollVal; - PosUndock = posUndock ? (byte)1 : (byte)0; - CollapsedVal = collapsedVal ? (byte)1 : (byte)0; - SizeConstraintRect = sizeConstraintRect; - SizeCallback = (void*)Marshal.GetFunctionPointerForDelegate(sizeCallback); - SizeCallbackUserData = sizeCallbackUserData; - BgAlphaVal = bgAlphaVal; - ViewportId = viewportId; - DockId = dockId; - WindowClass = windowClass; - MenuBarOffsetMinVal = menuBarOffsetMinVal; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiNextWindowDataPtr : IEquatable<ImGuiNextWindowDataPtr> - { - public ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) { Handle = handle; } - public ImGuiNextWindowData* Handle; - public bool IsNull => Handle == null; - public static ImGuiNextWindowDataPtr Null => new ImGuiNextWindowDataPtr(null); - public ImGuiNextWindowData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) => new ImGuiNextWindowDataPtr(handle); - public static implicit operator ImGuiNextWindowData*(ImGuiNextWindowDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle == right; - public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle != right; - public bool Equals(ImGuiNextWindowDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiNextWindowDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiNextWindowDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiNextWindowDataFlags Flags => ref Unsafe.AsRef<ImGuiNextWindowDataFlags>(&Handle->Flags); - public ref ImGuiCond PosCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->PosCond); - public ref ImGuiCond SizeCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->SizeCond); - public ref ImGuiCond CollapsedCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->CollapsedCond); - public ref ImGuiCond DockCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->DockCond); - public ref Vector2 PosVal => ref Unsafe.AsRef<Vector2>(&Handle->PosVal); - public ref Vector2 PosPivotVal => ref Unsafe.AsRef<Vector2>(&Handle->PosPivotVal); - public ref Vector2 SizeVal => ref Unsafe.AsRef<Vector2>(&Handle->SizeVal); - public ref Vector2 ContentSizeVal => ref Unsafe.AsRef<Vector2>(&Handle->ContentSizeVal); - public ref Vector2 ScrollVal => ref Unsafe.AsRef<Vector2>(&Handle->ScrollVal); - public ref bool PosUndock => ref Unsafe.AsRef<bool>(&Handle->PosUndock); - public ref bool CollapsedVal => ref Unsafe.AsRef<bool>(&Handle->CollapsedVal); - public ref ImRect SizeConstraintRect => ref Unsafe.AsRef<ImRect>(&Handle->SizeConstraintRect); - public void* SizeCallback { get => Handle->SizeCallback; set => Handle->SizeCallback = value; } - public void* SizeCallbackUserData { get => Handle->SizeCallbackUserData; set => Handle->SizeCallbackUserData = value; } - public ref float BgAlphaVal => ref Unsafe.AsRef<float>(&Handle->BgAlphaVal); - public ref uint ViewportId => ref Unsafe.AsRef<uint>(&Handle->ViewportId); - public ref uint DockId => ref Unsafe.AsRef<uint>(&Handle->DockId); - public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef<ImGuiWindowClass>(&Handle->WindowClass); - public ref Vector2 MenuBarOffsetMinVal => ref Unsafe.AsRef<Vector2>(&Handle->MenuBarOffsetMinVal); - } -} -/* ImGuiOldColumnData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiOldColumnData - { - public float OffsetNorm; - public float OffsetNormBeforeResize; - public ImGuiOldColumnFlags Flags; - public ImRect ClipRect; - public unsafe ImGuiOldColumnData(float offsetNorm = default, float offsetNormBeforeResize = default, ImGuiOldColumnFlags flags = default, ImRect clipRect = default) - { - OffsetNorm = offsetNorm; - OffsetNormBeforeResize = offsetNormBeforeResize; - Flags = flags; - ClipRect = clipRect; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiOldColumnDataPtr : IEquatable<ImGuiOldColumnDataPtr> - { - public ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) { Handle = handle; } - public ImGuiOldColumnData* Handle; - public bool IsNull => Handle == null; - public static ImGuiOldColumnDataPtr Null => new ImGuiOldColumnDataPtr(null); - public ImGuiOldColumnData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) => new ImGuiOldColumnDataPtr(handle); - public static implicit operator ImGuiOldColumnData*(ImGuiOldColumnDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle == right; - public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle != right; - public bool Equals(ImGuiOldColumnDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiOldColumnDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiOldColumnDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref float OffsetNorm => ref Unsafe.AsRef<float>(&Handle->OffsetNorm); - public ref float OffsetNormBeforeResize => ref Unsafe.AsRef<float>(&Handle->OffsetNormBeforeResize); - public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef<ImGuiOldColumnFlags>(&Handle->Flags); - public ref ImRect ClipRect => ref Unsafe.AsRef<ImRect>(&Handle->ClipRect); - } -} -/* ImGuiOldColumns.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiOldColumns - { - public uint ID; - public ImGuiOldColumnFlags Flags; - public byte IsFirstFrame; - public byte IsBeingResized; - public int Current; - public int Count; - public float OffMinX; - public float OffMaxX; - public float LineMinY; - public float LineMaxY; - public float HostCursorPosY; - public float HostCursorMaxPosX; - public ImRect HostInitialClipRect; - public ImRect HostBackupClipRect; - public ImRect HostBackupParentWorkRect; - public ImVector<ImGuiOldColumnData> Columns; - public ImDrawListSplitter Splitter; - public unsafe ImGuiOldColumns(uint id = default, ImGuiOldColumnFlags flags = default, bool isFirstFrame = default, bool isBeingResized = default, int current = default, int count = default, float offMinX = default, float offMaxX = default, float lineMinY = default, float lineMaxY = default, float hostCursorPosY = default, float hostCursorMaxPosX = default, ImRect hostInitialClipRect = default, ImRect hostBackupClipRect = default, ImRect hostBackupParentWorkRect = default, ImVector<ImGuiOldColumnData> columns = default, ImDrawListSplitter splitter = default) - { - ID = id; - Flags = flags; - IsFirstFrame = isFirstFrame ? (byte)1 : (byte)0; - IsBeingResized = isBeingResized ? (byte)1 : (byte)0; - Current = current; - Count = count; - OffMinX = offMinX; - OffMaxX = offMaxX; - LineMinY = lineMinY; - LineMaxY = lineMaxY; - HostCursorPosY = hostCursorPosY; - HostCursorMaxPosX = hostCursorMaxPosX; - HostInitialClipRect = hostInitialClipRect; - HostBackupClipRect = hostBackupClipRect; - HostBackupParentWorkRect = hostBackupParentWorkRect; - Columns = columns; - Splitter = splitter; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiOldColumnsPtr : IEquatable<ImGuiOldColumnsPtr> - { - public ImGuiOldColumnsPtr(ImGuiOldColumns* handle) { Handle = handle; } - public ImGuiOldColumns* Handle; - public bool IsNull => Handle == null; - public static ImGuiOldColumnsPtr Null => new ImGuiOldColumnsPtr(null); - public ImGuiOldColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiOldColumnsPtr(ImGuiOldColumns* handle) => new ImGuiOldColumnsPtr(handle); - public static implicit operator ImGuiOldColumns*(ImGuiOldColumnsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle == right; - public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle != right; - public bool Equals(ImGuiOldColumnsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiOldColumnsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiOldColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef<ImGuiOldColumnFlags>(&Handle->Flags); - public ref bool IsFirstFrame => ref Unsafe.AsRef<bool>(&Handle->IsFirstFrame); - public ref bool IsBeingResized => ref Unsafe.AsRef<bool>(&Handle->IsBeingResized); - public ref int Current => ref Unsafe.AsRef<int>(&Handle->Current); - public ref int Count => ref Unsafe.AsRef<int>(&Handle->Count); - public ref float OffMinX => ref Unsafe.AsRef<float>(&Handle->OffMinX); - public ref float OffMaxX => ref Unsafe.AsRef<float>(&Handle->OffMaxX); - public ref float LineMinY => ref Unsafe.AsRef<float>(&Handle->LineMinY); - public ref float LineMaxY => ref Unsafe.AsRef<float>(&Handle->LineMaxY); - public ref float HostCursorPosY => ref Unsafe.AsRef<float>(&Handle->HostCursorPosY); - public ref float HostCursorMaxPosX => ref Unsafe.AsRef<float>(&Handle->HostCursorMaxPosX); - public ref ImRect HostInitialClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostInitialClipRect); - public ref ImRect HostBackupClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupClipRect); - public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupParentWorkRect); - public ref ImVector<ImGuiOldColumnData> Columns => ref Unsafe.AsRef<ImVector<ImGuiOldColumnData>>(&Handle->Columns); - public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef<ImDrawListSplitter>(&Handle->Splitter); - } -} -/* ImGuiOnceUponAFrame.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiOnceUponAFrame - { - public int RefFrame; - public unsafe ImGuiOnceUponAFrame(int refFrame = default) - { - RefFrame = refFrame; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiOnceUponAFramePtr : IEquatable<ImGuiOnceUponAFramePtr> - { - public ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) { Handle = handle; } - public ImGuiOnceUponAFrame* Handle; - public bool IsNull => Handle == null; - public static ImGuiOnceUponAFramePtr Null => new ImGuiOnceUponAFramePtr(null); - public ImGuiOnceUponAFrame this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) => new ImGuiOnceUponAFramePtr(handle); - public static implicit operator ImGuiOnceUponAFrame*(ImGuiOnceUponAFramePtr handle) => handle.Handle; - public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle == right; - public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle != right; - public bool Equals(ImGuiOnceUponAFramePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiOnceUponAFramePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiOnceUponAFramePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref int RefFrame => ref Unsafe.AsRef<int>(&Handle->RefFrame); - } -} -/* ImGuiPayload.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPayload - { - public unsafe void* Data; - public int DataSize; - public uint SourceId; - public uint SourceParentId; - public int DataFrameCount; - public byte DataType_0; - public byte DataType_1; - public byte DataType_2; - public byte DataType_3; - public byte DataType_4; - public byte DataType_5; - public byte DataType_6; - public byte DataType_7; - public byte DataType_8; - public byte DataType_9; - public byte DataType_10; - public byte DataType_11; - public byte DataType_12; - public byte DataType_13; - public byte DataType_14; - public byte DataType_15; - public byte DataType_16; - public byte DataType_17; - public byte DataType_18; - public byte DataType_19; - public byte DataType_20; - public byte DataType_21; - public byte DataType_22; - public byte DataType_23; - public byte DataType_24; - public byte DataType_25; - public byte DataType_26; - public byte DataType_27; - public byte DataType_28; - public byte DataType_29; - public byte DataType_30; - public byte DataType_31; - public byte DataType_32; - public byte Preview; - public byte Delivery; - public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, byte* dataType = default, bool preview = default, bool delivery = default) - { - Data = data; - DataSize = dataSize; - SourceId = sourceId; - SourceParentId = sourceParentId; - DataFrameCount = dataFrameCount; - if (dataType != default(byte*)) - { - DataType_0 = dataType[0]; - DataType_1 = dataType[1]; - DataType_2 = dataType[2]; - DataType_3 = dataType[3]; - DataType_4 = dataType[4]; - DataType_5 = dataType[5]; - DataType_6 = dataType[6]; - DataType_7 = dataType[7]; - DataType_8 = dataType[8]; - DataType_9 = dataType[9]; - DataType_10 = dataType[10]; - DataType_11 = dataType[11]; - DataType_12 = dataType[12]; - DataType_13 = dataType[13]; - DataType_14 = dataType[14]; - DataType_15 = dataType[15]; - DataType_16 = dataType[16]; - DataType_17 = dataType[17]; - DataType_18 = dataType[18]; - DataType_19 = dataType[19]; - DataType_20 = dataType[20]; - DataType_21 = dataType[21]; - DataType_22 = dataType[22]; - DataType_23 = dataType[23]; - DataType_24 = dataType[24]; - DataType_25 = dataType[25]; - DataType_26 = dataType[26]; - DataType_27 = dataType[27]; - DataType_28 = dataType[28]; - DataType_29 = dataType[29]; - DataType_30 = dataType[30]; - DataType_31 = dataType[31]; - DataType_32 = dataType[32]; - } - Preview = preview ? (byte)1 : (byte)0; - Delivery = delivery ? (byte)1 : (byte)0; - } - public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, Span<byte> dataType = default, bool preview = default, bool delivery = default) - { - Data = data; - DataSize = dataSize; - SourceId = sourceId; - SourceParentId = sourceParentId; - DataFrameCount = dataFrameCount; - if (dataType != default(Span<byte>)) - { - DataType_0 = dataType[0]; - DataType_1 = dataType[1]; - DataType_2 = dataType[2]; - DataType_3 = dataType[3]; - DataType_4 = dataType[4]; - DataType_5 = dataType[5]; - DataType_6 = dataType[6]; - DataType_7 = dataType[7]; - DataType_8 = dataType[8]; - DataType_9 = dataType[9]; - DataType_10 = dataType[10]; - DataType_11 = dataType[11]; - DataType_12 = dataType[12]; - DataType_13 = dataType[13]; - DataType_14 = dataType[14]; - DataType_15 = dataType[15]; - DataType_16 = dataType[16]; - DataType_17 = dataType[17]; - DataType_18 = dataType[18]; - DataType_19 = dataType[19]; - DataType_20 = dataType[20]; - DataType_21 = dataType[21]; - DataType_22 = dataType[22]; - DataType_23 = dataType[23]; - DataType_24 = dataType[24]; - DataType_25 = dataType[25]; - DataType_26 = dataType[26]; - DataType_27 = dataType[27]; - DataType_28 = dataType[28]; - DataType_29 = dataType[29]; - DataType_30 = dataType[30]; - DataType_31 = dataType[31]; - DataType_32 = dataType[32]; - } - Preview = preview ? (byte)1 : (byte)0; - Delivery = delivery ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiPayloadPtr : IEquatable<ImGuiPayloadPtr> - { - public ImGuiPayloadPtr(ImGuiPayload* handle) { Handle = handle; } - public ImGuiPayload* Handle; - public bool IsNull => Handle == null; - public static ImGuiPayloadPtr Null => new ImGuiPayloadPtr(null); - public ImGuiPayload this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiPayloadPtr(ImGuiPayload* handle) => new ImGuiPayloadPtr(handle); - public static implicit operator ImGuiPayload*(ImGuiPayloadPtr handle) => handle.Handle; - public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle == right; - public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle != right; - public bool Equals(ImGuiPayloadPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiPayloadPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiPayloadPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public void* Data { get => Handle->Data; set => Handle->Data = value; } - public ref int DataSize => ref Unsafe.AsRef<int>(&Handle->DataSize); - public ref uint SourceId => ref Unsafe.AsRef<uint>(&Handle->SourceId); - public ref uint SourceParentId => ref Unsafe.AsRef<uint>(&Handle->SourceParentId); - public ref int DataFrameCount => ref Unsafe.AsRef<int>(&Handle->DataFrameCount); - public unsafe Span<byte> DataType - { - get - { - return new Span<byte>(&Handle->DataType_0, 33); - } - } - public ref bool Preview => ref Unsafe.AsRef<bool>(&Handle->Preview); - public ref bool Delivery => ref Unsafe.AsRef<bool>(&Handle->Delivery); - } -} -/* ImGuiPlatformImeData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPlatformImeData - { - public byte WantVisible; - public Vector2 InputPos; - public float InputLineHeight; - public unsafe ImGuiPlatformImeData(bool wantVisible = default, Vector2 inputPos = default, float inputLineHeight = default) - { - WantVisible = wantVisible ? (byte)1 : (byte)0; - InputPos = inputPos; - InputLineHeight = inputLineHeight; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiPlatformImeDataPtr : IEquatable<ImGuiPlatformImeDataPtr> - { - public ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) { Handle = handle; } - public ImGuiPlatformImeData* Handle; - public bool IsNull => Handle == null; - public static ImGuiPlatformImeDataPtr Null => new ImGuiPlatformImeDataPtr(null); - public ImGuiPlatformImeData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) => new ImGuiPlatformImeDataPtr(handle); - public static implicit operator ImGuiPlatformImeData*(ImGuiPlatformImeDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle == right; - public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle != right; - public bool Equals(ImGuiPlatformImeDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiPlatformImeDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiPlatformImeDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref bool WantVisible => ref Unsafe.AsRef<bool>(&Handle->WantVisible); - public ref Vector2 InputPos => ref Unsafe.AsRef<Vector2>(&Handle->InputPos); - public ref float InputLineHeight => ref Unsafe.AsRef<float>(&Handle->InputLineHeight); - } -} -/* ImGuiPlatformIO.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPlatformIO - { - public unsafe void* PlatformCreateWindow; - public unsafe void* PlatformDestroyWindow; - public unsafe void* PlatformShowWindow; - public unsafe void* PlatformSetWindowPos; - public unsafe void* PlatformGetWindowPos; - public unsafe void* PlatformSetWindowSize; - public unsafe void* PlatformGetWindowSize; - public unsafe void* PlatformSetWindowFocus; - public unsafe void* PlatformGetWindowFocus; - public unsafe void* PlatformGetWindowMinimized; - public unsafe void* PlatformSetWindowTitle; - public unsafe void* PlatformSetWindowAlpha; - public unsafe void* PlatformUpdateWindow; - public unsafe void* PlatformRenderWindow; - public unsafe void* PlatformSwapBuffers; - public unsafe void* PlatformGetWindowDpiScale; - public unsafe void* PlatformOnChangedViewport; - public unsafe void* PlatformCreateVkSurface; - public unsafe void* RendererCreateWindow; - public unsafe void* RendererDestroyWindow; - public unsafe void* RendererSetWindowSize; - public unsafe void* RendererRenderWindow; - public unsafe void* RendererSwapBuffers; - public ImVector<ImGuiPlatformMonitor> Monitors; - public ImVector<ImGuiViewportPtr> Viewports; - public unsafe ImGuiPlatformIO(delegate*<ImGuiViewport*, void> platformCreatewindow = default, delegate*<ImGuiViewport*, void> platformDestroywindow = default, delegate*<ImGuiViewport*, void> platformShowwindow = default, delegate*<ImGuiViewport*, Vector2, void> platformSetwindowpos = default, delegate*<ImGuiViewport*, Vector2> platformGetwindowpos = default, delegate*<ImGuiViewport*, Vector2, void> platformSetwindowsize = default, delegate*<ImGuiViewport*, Vector2> platformGetwindowsize = default, delegate*<ImGuiViewport*, void> platformSetwindowfocus = default, delegate*<ImGuiViewport*, bool> platformGetwindowfocus = default, delegate*<ImGuiViewport*, bool> platformGetwindowminimized = default, delegate*<ImGuiViewport*, byte*, void> platformSetwindowtitle = default, delegate*<ImGuiViewport*, float, void> platformSetwindowalpha = default, delegate*<ImGuiViewport*, void> platformUpdatewindow = default, delegate*<ImGuiViewport*, void*, void> platformRenderwindow = default, delegate*<ImGuiViewport*, void*, void> platformSwapbuffers = default, delegate*<ImGuiViewport*, float> platformGetwindowdpiscale = default, delegate*<ImGuiViewport*, void> platformOnchangedviewport = default, delegate*<ImGuiViewport*, ulong, void*, ulong*, int> platformCreatevksurface = default, delegate*<ImGuiViewport*, void> rendererCreatewindow = default, delegate*<ImGuiViewport*, void> rendererDestroywindow = default, delegate*<ImGuiViewport*, Vector2, void> rendererSetwindowsize = default, delegate*<ImGuiViewport*, void*, void> rendererRenderwindow = default, delegate*<ImGuiViewport*, void*, void> rendererSwapbuffers = default, ImVector<ImGuiPlatformMonitor> monitors = default, ImVector<ImGuiViewportPtr> viewports = default) - { - PlatformCreateWindow = (void*)platformCreatewindow; - PlatformDestroyWindow = (void*)platformDestroywindow; - PlatformShowWindow = (void*)platformShowwindow; - PlatformSetWindowPos = (void*)platformSetwindowpos; - PlatformGetWindowPos = (void*)platformGetwindowpos; - PlatformSetWindowSize = (void*)platformSetwindowsize; - PlatformGetWindowSize = (void*)platformGetwindowsize; - PlatformSetWindowFocus = (void*)platformSetwindowfocus; - PlatformGetWindowFocus = (void*)platformGetwindowfocus; - PlatformGetWindowMinimized = (void*)platformGetwindowminimized; - PlatformSetWindowTitle = (void*)platformSetwindowtitle; - PlatformSetWindowAlpha = (void*)platformSetwindowalpha; - PlatformUpdateWindow = (void*)platformUpdatewindow; - PlatformRenderWindow = (void*)platformRenderwindow; - PlatformSwapBuffers = (void*)platformSwapbuffers; - PlatformGetWindowDpiScale = (void*)platformGetwindowdpiscale; - PlatformOnChangedViewport = (void*)platformOnchangedviewport; - PlatformCreateVkSurface = (void*)platformCreatevksurface; - RendererCreateWindow = (void*)rendererCreatewindow; - RendererDestroyWindow = (void*)rendererDestroywindow; - RendererSetWindowSize = (void*)rendererSetwindowsize; - RendererRenderWindow = (void*)rendererRenderwindow; - RendererSwapBuffers = (void*)rendererSwapbuffers; - Monitors = monitors; - Viewports = viewports; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiPlatformIOPtr : IEquatable<ImGuiPlatformIOPtr> - { - public ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) { Handle = handle; } - public ImGuiPlatformIO* Handle; - public bool IsNull => Handle == null; - public static ImGuiPlatformIOPtr Null => new ImGuiPlatformIOPtr(null); - public ImGuiPlatformIO this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) => new ImGuiPlatformIOPtr(handle); - public static implicit operator ImGuiPlatformIO*(ImGuiPlatformIOPtr handle) => handle.Handle; - public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle == right; - public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle != right; - public bool Equals(ImGuiPlatformIOPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiPlatformIOPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiPlatformIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public void* PlatformCreateWindow { get => Handle->PlatformCreateWindow; set => Handle->PlatformCreateWindow = value; } - public void* PlatformDestroyWindow { get => Handle->PlatformDestroyWindow; set => Handle->PlatformDestroyWindow = value; } - public void* PlatformShowWindow { get => Handle->PlatformShowWindow; set => Handle->PlatformShowWindow = value; } - public void* PlatformSetWindowPos { get => Handle->PlatformSetWindowPos; set => Handle->PlatformSetWindowPos = value; } - public void* PlatformGetWindowPos { get => Handle->PlatformGetWindowPos; set => Handle->PlatformGetWindowPos = value; } - public void* PlatformSetWindowSize { get => Handle->PlatformSetWindowSize; set => Handle->PlatformSetWindowSize = value; } - public void* PlatformGetWindowSize { get => Handle->PlatformGetWindowSize; set => Handle->PlatformGetWindowSize = value; } - public void* PlatformSetWindowFocus { get => Handle->PlatformSetWindowFocus; set => Handle->PlatformSetWindowFocus = value; } - public void* PlatformGetWindowFocus { get => Handle->PlatformGetWindowFocus; set => Handle->PlatformGetWindowFocus = value; } - public void* PlatformGetWindowMinimized { get => Handle->PlatformGetWindowMinimized; set => Handle->PlatformGetWindowMinimized = value; } - public void* PlatformSetWindowTitle { get => Handle->PlatformSetWindowTitle; set => Handle->PlatformSetWindowTitle = value; } - public void* PlatformSetWindowAlpha { get => Handle->PlatformSetWindowAlpha; set => Handle->PlatformSetWindowAlpha = value; } - public void* PlatformUpdateWindow { get => Handle->PlatformUpdateWindow; set => Handle->PlatformUpdateWindow = value; } - public void* PlatformRenderWindow { get => Handle->PlatformRenderWindow; set => Handle->PlatformRenderWindow = value; } - public void* PlatformSwapBuffers { get => Handle->PlatformSwapBuffers; set => Handle->PlatformSwapBuffers = value; } - public void* PlatformGetWindowDpiScale { get => Handle->PlatformGetWindowDpiScale; set => Handle->PlatformGetWindowDpiScale = value; } - public void* PlatformOnChangedViewport { get => Handle->PlatformOnChangedViewport; set => Handle->PlatformOnChangedViewport = value; } - public void* PlatformCreateVkSurface { get => Handle->PlatformCreateVkSurface; set => Handle->PlatformCreateVkSurface = value; } - public void* RendererCreateWindow { get => Handle->RendererCreateWindow; set => Handle->RendererCreateWindow = value; } - public void* RendererDestroyWindow { get => Handle->RendererDestroyWindow; set => Handle->RendererDestroyWindow = value; } - public void* RendererSetWindowSize { get => Handle->RendererSetWindowSize; set => Handle->RendererSetWindowSize = value; } - public void* RendererRenderWindow { get => Handle->RendererRenderWindow; set => Handle->RendererRenderWindow = value; } - public void* RendererSwapBuffers { get => Handle->RendererSwapBuffers; set => Handle->RendererSwapBuffers = value; } - public ref ImVector<ImGuiPlatformMonitor> Monitors => ref Unsafe.AsRef<ImVector<ImGuiPlatformMonitor>>(&Handle->Monitors); - public ref ImVector<ImGuiViewportPtr> Viewports => ref Unsafe.AsRef<ImVector<ImGuiViewportPtr>>(&Handle->Viewports); - } -} -/* ImGuiPlatformMonitor.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPlatformMonitor - { - public Vector2 MainPos; - public Vector2 MainSize; - public Vector2 WorkPos; - public Vector2 WorkSize; - public float DpiScale; - public unsafe ImGuiPlatformMonitor(Vector2 mainPos = default, Vector2 mainSize = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default) - { - MainPos = mainPos; - MainSize = mainSize; - WorkPos = workPos; - WorkSize = workSize; - DpiScale = dpiScale; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiPlatformMonitorPtr : IEquatable<ImGuiPlatformMonitorPtr> - { - public ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) { Handle = handle; } - public ImGuiPlatformMonitor* Handle; - public bool IsNull => Handle == null; - public static ImGuiPlatformMonitorPtr Null => new ImGuiPlatformMonitorPtr(null); - public ImGuiPlatformMonitor this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) => new ImGuiPlatformMonitorPtr(handle); - public static implicit operator ImGuiPlatformMonitor*(ImGuiPlatformMonitorPtr handle) => handle.Handle; - public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle == right; - public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle != right; - public bool Equals(ImGuiPlatformMonitorPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiPlatformMonitorPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiPlatformMonitorPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref Vector2 MainPos => ref Unsafe.AsRef<Vector2>(&Handle->MainPos); - public ref Vector2 MainSize => ref Unsafe.AsRef<Vector2>(&Handle->MainSize); - public ref Vector2 WorkPos => ref Unsafe.AsRef<Vector2>(&Handle->WorkPos); - public ref Vector2 WorkSize => ref Unsafe.AsRef<Vector2>(&Handle->WorkSize); - public ref float DpiScale => ref Unsafe.AsRef<float>(&Handle->DpiScale); - } -} -/* ImGuiPopupData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPopupData - { - public uint PopupId; - public unsafe ImGuiWindow* Window; - public unsafe ImGuiWindow* SourceWindow; - public int ParentNavLayer; - public int OpenFrameCount; - public uint OpenParentId; - public Vector2 OpenPopupPos; - public Vector2 OpenMousePos; - public unsafe ImGuiPopupData(uint popupId = default, ImGuiWindowPtr window = default, ImGuiWindowPtr sourceWindow = default, int parentNavLayer = default, int openFrameCount = default, uint openParentId = default, Vector2 openPopupPos = default, Vector2 openMousePos = default) - { - PopupId = popupId; - Window = window; - SourceWindow = sourceWindow; - ParentNavLayer = parentNavLayer; - OpenFrameCount = openFrameCount; - OpenParentId = openParentId; - OpenPopupPos = openPopupPos; - OpenMousePos = openMousePos; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiPopupDataPtr : IEquatable<ImGuiPopupDataPtr> - { - public ImGuiPopupDataPtr(ImGuiPopupData* handle) { Handle = handle; } - public ImGuiPopupData* Handle; - public bool IsNull => Handle == null; - public static ImGuiPopupDataPtr Null => new ImGuiPopupDataPtr(null); - public ImGuiPopupData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiPopupDataPtr(ImGuiPopupData* handle) => new ImGuiPopupDataPtr(handle); - public static implicit operator ImGuiPopupData*(ImGuiPopupDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle == right; - public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle != right; - public bool Equals(ImGuiPopupDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiPopupDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiPopupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint PopupId => ref Unsafe.AsRef<uint>(&Handle->PopupId); - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - public ref ImGuiWindowPtr SourceWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->SourceWindow); - public ref int ParentNavLayer => ref Unsafe.AsRef<int>(&Handle->ParentNavLayer); - public ref int OpenFrameCount => ref Unsafe.AsRef<int>(&Handle->OpenFrameCount); - public ref uint OpenParentId => ref Unsafe.AsRef<uint>(&Handle->OpenParentId); - public ref Vector2 OpenPopupPos => ref Unsafe.AsRef<Vector2>(&Handle->OpenPopupPos); - public ref Vector2 OpenMousePos => ref Unsafe.AsRef<Vector2>(&Handle->OpenMousePos); - } -} -/* ImGuiPtrOrIndex.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPtrOrIndex - { - public unsafe void* Ptr; - public int Index; - public unsafe ImGuiPtrOrIndex(void* ptr = default, int index = default) - { - Ptr = ptr; - Index = index; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiPtrOrIndexPtr : IEquatable<ImGuiPtrOrIndexPtr> - { - public ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) { Handle = handle; } - public ImGuiPtrOrIndex* Handle; - public bool IsNull => Handle == null; - public static ImGuiPtrOrIndexPtr Null => new ImGuiPtrOrIndexPtr(null); - public ImGuiPtrOrIndex this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) => new ImGuiPtrOrIndexPtr(handle); - public static implicit operator ImGuiPtrOrIndex*(ImGuiPtrOrIndexPtr handle) => handle.Handle; - public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle == right; - public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle != right; - public bool Equals(ImGuiPtrOrIndexPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiPtrOrIndexPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiPtrOrIndexPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public void* Ptr { get => Handle->Ptr; set => Handle->Ptr = value; } - public ref int Index => ref Unsafe.AsRef<int>(&Handle->Index); - } -} -/* ImGuiSettingsHandler.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiSettingsHandler - { - public unsafe byte* TypeName; - public uint TypeHash; - public unsafe void* ClearAllFn; - public unsafe void* ReadInitFn; - public unsafe void* ReadOpenFn; - public unsafe void* ReadLineFn; - public unsafe void* ApplyAllFn; - public unsafe void* WriteAllFn; - public unsafe void* UserData; - public unsafe ImGuiSettingsHandler(byte* typeName = default, uint typeHash = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void> clearAllFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void> readInitFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, byte*, void*> readOpenFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void*, byte*, void> readLineFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void> applyAllFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer*, void> writeAllFn = default, void* userData = default) - { - TypeName = typeName; - TypeHash = typeHash; - ClearAllFn = (void*)clearAllFn; - ReadInitFn = (void*)readInitFn; - ReadOpenFn = (void*)readOpenFn; - ReadLineFn = (void*)readLineFn; - ApplyAllFn = (void*)applyAllFn; - WriteAllFn = (void*)writeAllFn; - UserData = userData; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiSettingsHandlerPtr : IEquatable<ImGuiSettingsHandlerPtr> - { - public ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) { Handle = handle; } - public ImGuiSettingsHandler* Handle; - public bool IsNull => Handle == null; - public static ImGuiSettingsHandlerPtr Null => new ImGuiSettingsHandlerPtr(null); - public ImGuiSettingsHandler this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) => new ImGuiSettingsHandlerPtr(handle); - public static implicit operator ImGuiSettingsHandler*(ImGuiSettingsHandlerPtr handle) => handle.Handle; - public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle == right; - public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle != right; - public bool Equals(ImGuiSettingsHandlerPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiSettingsHandlerPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiSettingsHandlerPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public byte* TypeName { get => Handle->TypeName; set => Handle->TypeName = value; } - public ref uint TypeHash => ref Unsafe.AsRef<uint>(&Handle->TypeHash); - public void* ClearAllFn { get => Handle->ClearAllFn; set => Handle->ClearAllFn = value; } - public void* ReadInitFn { get => Handle->ReadInitFn; set => Handle->ReadInitFn = value; } - public void* ReadOpenFn { get => Handle->ReadOpenFn; set => Handle->ReadOpenFn = value; } - public void* ReadLineFn { get => Handle->ReadLineFn; set => Handle->ReadLineFn = value; } - public void* ApplyAllFn { get => Handle->ApplyAllFn; set => Handle->ApplyAllFn = value; } - public void* WriteAllFn { get => Handle->WriteAllFn; set => Handle->WriteAllFn = value; } - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - } -} -/* ImGuiShrinkWidthItem.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiShrinkWidthItem - { - public int Index; - public float Width; - public float InitialWidth; - public unsafe ImGuiShrinkWidthItem(int index = default, float width = default, float initialWidth = default) - { - Index = index; - Width = width; - InitialWidth = initialWidth; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiShrinkWidthItemPtr : IEquatable<ImGuiShrinkWidthItemPtr> - { - public ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) { Handle = handle; } - public ImGuiShrinkWidthItem* Handle; - public bool IsNull => Handle == null; - public static ImGuiShrinkWidthItemPtr Null => new ImGuiShrinkWidthItemPtr(null); - public ImGuiShrinkWidthItem this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) => new ImGuiShrinkWidthItemPtr(handle); - public static implicit operator ImGuiShrinkWidthItem*(ImGuiShrinkWidthItemPtr handle) => handle.Handle; - public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle == right; - public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle != right; - public bool Equals(ImGuiShrinkWidthItemPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiShrinkWidthItemPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiShrinkWidthItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref int Index => ref Unsafe.AsRef<int>(&Handle->Index); - public ref float Width => ref Unsafe.AsRef<float>(&Handle->Width); - public ref float InitialWidth => ref Unsafe.AsRef<float>(&Handle->InitialWidth); - } -} -/* ImGuiSizeCallbackData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiSizeCallbackData - { - public unsafe void* UserData; - public Vector2 Pos; - public Vector2 CurrentSize; - public Vector2 DesiredSize; - public unsafe ImGuiSizeCallbackData(void* userData = default, Vector2 pos = default, Vector2 currentSize = default, Vector2 desiredSize = default) - { - UserData = userData; - Pos = pos; - CurrentSize = currentSize; - DesiredSize = desiredSize; - } - } -} -/* ImGuiStackLevelInfo.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStackLevelInfo - { - public uint ID; - public sbyte QueryFrameCount; - public byte QuerySuccess; - public ImGuiDataType RawBits0; - public byte Desc_0; - public byte Desc_1; - public byte Desc_2; - public byte Desc_3; - public byte Desc_4; - public byte Desc_5; - public byte Desc_6; - public byte Desc_7; - public byte Desc_8; - public byte Desc_9; - public byte Desc_10; - public byte Desc_11; - public byte Desc_12; - public byte Desc_13; - public byte Desc_14; - public byte Desc_15; - public byte Desc_16; - public byte Desc_17; - public byte Desc_18; - public byte Desc_19; - public byte Desc_20; - public byte Desc_21; - public byte Desc_22; - public byte Desc_23; - public byte Desc_24; - public byte Desc_25; - public byte Desc_26; - public byte Desc_27; - public byte Desc_28; - public byte Desc_29; - public byte Desc_30; - public byte Desc_31; - public byte Desc_32; - public byte Desc_33; - public byte Desc_34; - public byte Desc_35; - public byte Desc_36; - public byte Desc_37; - public byte Desc_38; - public byte Desc_39; - public byte Desc_40; - public byte Desc_41; - public byte Desc_42; - public byte Desc_43; - public byte Desc_44; - public byte Desc_45; - public byte Desc_46; - public byte Desc_47; - public byte Desc_48; - public byte Desc_49; - public byte Desc_50; - public byte Desc_51; - public byte Desc_52; - public byte Desc_53; - public byte Desc_54; - public byte Desc_55; - public byte Desc_56; - public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, byte* desc = default) - { - ID = id; - QueryFrameCount = queryFrameCount; - QuerySuccess = querySuccess ? (byte)1 : (byte)0; - DataType = dataType; - if (desc != default(byte*)) - { - Desc_0 = desc[0]; - Desc_1 = desc[1]; - Desc_2 = desc[2]; - Desc_3 = desc[3]; - Desc_4 = desc[4]; - Desc_5 = desc[5]; - Desc_6 = desc[6]; - Desc_7 = desc[7]; - Desc_8 = desc[8]; - Desc_9 = desc[9]; - Desc_10 = desc[10]; - Desc_11 = desc[11]; - Desc_12 = desc[12]; - Desc_13 = desc[13]; - Desc_14 = desc[14]; - Desc_15 = desc[15]; - Desc_16 = desc[16]; - Desc_17 = desc[17]; - Desc_18 = desc[18]; - Desc_19 = desc[19]; - Desc_20 = desc[20]; - Desc_21 = desc[21]; - Desc_22 = desc[22]; - Desc_23 = desc[23]; - Desc_24 = desc[24]; - Desc_25 = desc[25]; - Desc_26 = desc[26]; - Desc_27 = desc[27]; - Desc_28 = desc[28]; - Desc_29 = desc[29]; - Desc_30 = desc[30]; - Desc_31 = desc[31]; - Desc_32 = desc[32]; - Desc_33 = desc[33]; - Desc_34 = desc[34]; - Desc_35 = desc[35]; - Desc_36 = desc[36]; - Desc_37 = desc[37]; - Desc_38 = desc[38]; - Desc_39 = desc[39]; - Desc_40 = desc[40]; - Desc_41 = desc[41]; - Desc_42 = desc[42]; - Desc_43 = desc[43]; - Desc_44 = desc[44]; - Desc_45 = desc[45]; - Desc_46 = desc[46]; - Desc_47 = desc[47]; - Desc_48 = desc[48]; - Desc_49 = desc[49]; - Desc_50 = desc[50]; - Desc_51 = desc[51]; - Desc_52 = desc[52]; - Desc_53 = desc[53]; - Desc_54 = desc[54]; - Desc_55 = desc[55]; - Desc_56 = desc[56]; - } - } - public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, Span<byte> desc = default) - { - ID = id; - QueryFrameCount = queryFrameCount; - QuerySuccess = querySuccess ? (byte)1 : (byte)0; - DataType = dataType; - if (desc != default(Span<byte>)) - { - Desc_0 = desc[0]; - Desc_1 = desc[1]; - Desc_2 = desc[2]; - Desc_3 = desc[3]; - Desc_4 = desc[4]; - Desc_5 = desc[5]; - Desc_6 = desc[6]; - Desc_7 = desc[7]; - Desc_8 = desc[8]; - Desc_9 = desc[9]; - Desc_10 = desc[10]; - Desc_11 = desc[11]; - Desc_12 = desc[12]; - Desc_13 = desc[13]; - Desc_14 = desc[14]; - Desc_15 = desc[15]; - Desc_16 = desc[16]; - Desc_17 = desc[17]; - Desc_18 = desc[18]; - Desc_19 = desc[19]; - Desc_20 = desc[20]; - Desc_21 = desc[21]; - Desc_22 = desc[22]; - Desc_23 = desc[23]; - Desc_24 = desc[24]; - Desc_25 = desc[25]; - Desc_26 = desc[26]; - Desc_27 = desc[27]; - Desc_28 = desc[28]; - Desc_29 = desc[29]; - Desc_30 = desc[30]; - Desc_31 = desc[31]; - Desc_32 = desc[32]; - Desc_33 = desc[33]; - Desc_34 = desc[34]; - Desc_35 = desc[35]; - Desc_36 = desc[36]; - Desc_37 = desc[37]; - Desc_38 = desc[38]; - Desc_39 = desc[39]; - Desc_40 = desc[40]; - Desc_41 = desc[41]; - Desc_42 = desc[42]; - Desc_43 = desc[43]; - Desc_44 = desc[44]; - Desc_45 = desc[45]; - Desc_46 = desc[46]; - Desc_47 = desc[47]; - Desc_48 = desc[48]; - Desc_49 = desc[49]; - Desc_50 = desc[50]; - Desc_51 = desc[51]; - Desc_52 = desc[52]; - Desc_53 = desc[53]; - Desc_54 = desc[54]; - Desc_55 = desc[55]; - Desc_56 = desc[56]; - } - } - public ImGuiDataType DataType { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiStackLevelInfoPtr : IEquatable<ImGuiStackLevelInfoPtr> - { - public ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) { Handle = handle; } - public ImGuiStackLevelInfo* Handle; - public bool IsNull => Handle == null; - public static ImGuiStackLevelInfoPtr Null => new ImGuiStackLevelInfoPtr(null); - public ImGuiStackLevelInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) => new ImGuiStackLevelInfoPtr(handle); - public static implicit operator ImGuiStackLevelInfo*(ImGuiStackLevelInfoPtr handle) => handle.Handle; - public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle == right; - public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle != right; - public bool Equals(ImGuiStackLevelInfoPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiStackLevelInfoPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiStackLevelInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref sbyte QueryFrameCount => ref Unsafe.AsRef<sbyte>(&Handle->QueryFrameCount); - public ref bool QuerySuccess => ref Unsafe.AsRef<bool>(&Handle->QuerySuccess); - public ImGuiDataType DataType { get => Handle->DataType; set => Handle->DataType = value; } - public unsafe Span<byte> Desc - { - get - { - return new Span<byte>(&Handle->Desc_0, 57); - } - } - } -} -/* ImGuiStackSizes.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStackSizes - { - public short SizeOfIDStack; - public short SizeOfColorStack; - public short SizeOfStyleVarStack; - public short SizeOfFontStack; - public short SizeOfFocusScopeStack; - public short SizeOfGroupStack; - public short SizeOfItemFlagsStack; - public short SizeOfBeginPopupStack; - public short SizeOfDisabledStack; - public unsafe ImGuiStackSizes(short sizeOfIdStack = default, short sizeOfColorStack = default, short sizeOfStyleVarStack = default, short sizeOfFontStack = default, short sizeOfFocusScopeStack = default, short sizeOfGroupStack = default, short sizeOfItemFlagsStack = default, short sizeOfBeginPopupStack = default, short sizeOfDisabledStack = default) - { - SizeOfIDStack = sizeOfIdStack; - SizeOfColorStack = sizeOfColorStack; - SizeOfStyleVarStack = sizeOfStyleVarStack; - SizeOfFontStack = sizeOfFontStack; - SizeOfFocusScopeStack = sizeOfFocusScopeStack; - SizeOfGroupStack = sizeOfGroupStack; - SizeOfItemFlagsStack = sizeOfItemFlagsStack; - SizeOfBeginPopupStack = sizeOfBeginPopupStack; - SizeOfDisabledStack = sizeOfDisabledStack; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiStackSizesPtr : IEquatable<ImGuiStackSizesPtr> - { - public ImGuiStackSizesPtr(ImGuiStackSizes* handle) { Handle = handle; } - public ImGuiStackSizes* Handle; - public bool IsNull => Handle == null; - public static ImGuiStackSizesPtr Null => new ImGuiStackSizesPtr(null); - public ImGuiStackSizes this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiStackSizesPtr(ImGuiStackSizes* handle) => new ImGuiStackSizesPtr(handle); - public static implicit operator ImGuiStackSizes*(ImGuiStackSizesPtr handle) => handle.Handle; - public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle == right; - public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle != right; - public bool Equals(ImGuiStackSizesPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiStackSizesPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiStackSizesPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref short SizeOfIDStack => ref Unsafe.AsRef<short>(&Handle->SizeOfIDStack); - public ref short SizeOfColorStack => ref Unsafe.AsRef<short>(&Handle->SizeOfColorStack); - public ref short SizeOfStyleVarStack => ref Unsafe.AsRef<short>(&Handle->SizeOfStyleVarStack); - public ref short SizeOfFontStack => ref Unsafe.AsRef<short>(&Handle->SizeOfFontStack); - public ref short SizeOfFocusScopeStack => ref Unsafe.AsRef<short>(&Handle->SizeOfFocusScopeStack); - public ref short SizeOfGroupStack => ref Unsafe.AsRef<short>(&Handle->SizeOfGroupStack); - public ref short SizeOfItemFlagsStack => ref Unsafe.AsRef<short>(&Handle->SizeOfItemFlagsStack); - public ref short SizeOfBeginPopupStack => ref Unsafe.AsRef<short>(&Handle->SizeOfBeginPopupStack); - public ref short SizeOfDisabledStack => ref Unsafe.AsRef<short>(&Handle->SizeOfDisabledStack); - } -} -/* ImGuiStackTool.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStackTool - { - public int LastActiveFrame; - public int StackLevel; - public uint QueryId; - public ImVector<ImGuiStackLevelInfo> Results; - public byte CopyToClipboardOnCtrlC; - public float CopyToClipboardLastTime; - public unsafe ImGuiStackTool(int lastActiveFrame = default, int stackLevel = default, uint queryId = default, ImVector<ImGuiStackLevelInfo> results = default, bool copyToClipboardOnCtrlC = default, float copyToClipboardLastTime = default) - { - LastActiveFrame = lastActiveFrame; - StackLevel = stackLevel; - QueryId = queryId; - Results = results; - CopyToClipboardOnCtrlC = copyToClipboardOnCtrlC ? (byte)1 : (byte)0; - CopyToClipboardLastTime = copyToClipboardLastTime; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiStackToolPtr : IEquatable<ImGuiStackToolPtr> - { - public ImGuiStackToolPtr(ImGuiStackTool* handle) { Handle = handle; } - public ImGuiStackTool* Handle; - public bool IsNull => Handle == null; - public static ImGuiStackToolPtr Null => new ImGuiStackToolPtr(null); - public ImGuiStackTool this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiStackToolPtr(ImGuiStackTool* handle) => new ImGuiStackToolPtr(handle); - public static implicit operator ImGuiStackTool*(ImGuiStackToolPtr handle) => handle.Handle; - public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle == right; - public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle != right; - public bool Equals(ImGuiStackToolPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiStackToolPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiStackToolPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref int LastActiveFrame => ref Unsafe.AsRef<int>(&Handle->LastActiveFrame); - public ref int StackLevel => ref Unsafe.AsRef<int>(&Handle->StackLevel); - public ref uint QueryId => ref Unsafe.AsRef<uint>(&Handle->QueryId); - public ref ImVector<ImGuiStackLevelInfo> Results => ref Unsafe.AsRef<ImVector<ImGuiStackLevelInfo>>(&Handle->Results); - public ref bool CopyToClipboardOnCtrlC => ref Unsafe.AsRef<bool>(&Handle->CopyToClipboardOnCtrlC); - public ref float CopyToClipboardLastTime => ref Unsafe.AsRef<float>(&Handle->CopyToClipboardLastTime); - } -} -/* ImGuiStorage.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStorage - { - public ImVector<ImGuiStoragePair> Data; - public unsafe ImGuiStorage(ImVector<ImGuiStoragePair> data = default) - { - Data = data; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiStoragePtr : IEquatable<ImGuiStoragePtr> - { - public ImGuiStoragePtr(ImGuiStorage* handle) { Handle = handle; } - public ImGuiStorage* Handle; - public bool IsNull => Handle == null; - public static ImGuiStoragePtr Null => new ImGuiStoragePtr(null); - public ImGuiStorage this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiStoragePtr(ImGuiStorage* handle) => new ImGuiStoragePtr(handle); - public static implicit operator ImGuiStorage*(ImGuiStoragePtr handle) => handle.Handle; - public static bool operator ==(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle == right; - public static bool operator !=(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle != right; - public bool Equals(ImGuiStoragePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiStoragePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiStoragePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<ImGuiStoragePair> Data => ref Unsafe.AsRef<ImVector<ImGuiStoragePair>>(&Handle->Data); - } -} -/* ImGuiStoragePair.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStoragePair - { - [StructLayout(LayoutKind.Explicit)] - public partial struct ImGuiStoragePairUnion - { - [FieldOffset(0)] - public int ValI; - [FieldOffset(0)] - public float ValF; - [FieldOffset(0)] - public unsafe void* ValP; - public unsafe ImGuiStoragePairUnion(int valI = default, float valF = default, void* valP = default) - { - ValI = valI; - ValF = valF; - ValP = valP; - } - } - public uint Key; - public ImGuiStoragePairUnion Union; - public unsafe ImGuiStoragePair(uint key = default, ImGuiStoragePairUnion union = default) - { - Key = key; - Union = union; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiStoragePairPtr : IEquatable<ImGuiStoragePairPtr> - { - public ImGuiStoragePairPtr(ImGuiStoragePair* handle) { Handle = handle; } - public ImGuiStoragePair* Handle; - public bool IsNull => Handle == null; - public static ImGuiStoragePairPtr Null => new ImGuiStoragePairPtr(null); - public ImGuiStoragePair this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiStoragePairPtr(ImGuiStoragePair* handle) => new ImGuiStoragePairPtr(handle); - public static implicit operator ImGuiStoragePair*(ImGuiStoragePairPtr handle) => handle.Handle; - public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle == right; - public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle != right; - public bool Equals(ImGuiStoragePairPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiStoragePairPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiStoragePairPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint Key => ref Unsafe.AsRef<uint>(&Handle->Key); - public ref ImGuiStoragePair.ImGuiStoragePairUnion Union => ref Unsafe.AsRef<ImGuiStoragePair.ImGuiStoragePairUnion>(&Handle->Union); - } -} -/* ImGuiStyle.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStyle - { - public float Alpha; - public float DisabledAlpha; - public Vector2 WindowPadding; - public float WindowRounding; - public float WindowBorderSize; - public Vector2 WindowMinSize; - public Vector2 WindowTitleAlign; - public ImGuiDir WindowMenuButtonPosition; - public float ChildRounding; - public float ChildBorderSize; - public float PopupRounding; - public float PopupBorderSize; - public Vector2 FramePadding; - public float FrameRounding; - public float FrameBorderSize; - public Vector2 ItemSpacing; - public Vector2 ItemInnerSpacing; - public Vector2 CellPadding; - public Vector2 TouchExtraPadding; - public float IndentSpacing; - public float ColumnsMinSpacing; - public float ScrollbarSize; - public float ScrollbarRounding; - public float GrabMinSize; - public float GrabRounding; - public float LogSliderDeadzone; - public float TabRounding; - public float TabBorderSize; - public float TabMinWidthForCloseButton; - public ImGuiDir ColorButtonPosition; - public Vector2 ButtonTextAlign; - public Vector2 SelectableTextAlign; - public Vector2 DisplayWindowPadding; - public Vector2 DisplaySafeAreaPadding; - public float MouseCursorScale; - public byte AntiAliasedLines; - public byte AntiAliasedLinesUseTex; - public byte AntiAliasedFill; - public float CurveTessellationTol; - public float CircleTessellationMaxError; - public Vector4 Colors_0; - public Vector4 Colors_1; - public Vector4 Colors_2; - public Vector4 Colors_3; - public Vector4 Colors_4; - public Vector4 Colors_5; - public Vector4 Colors_6; - public Vector4 Colors_7; - public Vector4 Colors_8; - public Vector4 Colors_9; - public Vector4 Colors_10; - public Vector4 Colors_11; - public Vector4 Colors_12; - public Vector4 Colors_13; - public Vector4 Colors_14; - public Vector4 Colors_15; - public Vector4 Colors_16; - public Vector4 Colors_17; - public Vector4 Colors_18; - public Vector4 Colors_19; - public Vector4 Colors_20; - public Vector4 Colors_21; - public Vector4 Colors_22; - public Vector4 Colors_23; - public Vector4 Colors_24; - public Vector4 Colors_25; - public Vector4 Colors_26; - public Vector4 Colors_27; - public Vector4 Colors_28; - public Vector4 Colors_29; - public Vector4 Colors_30; - public Vector4 Colors_31; - public Vector4 Colors_32; - public Vector4 Colors_33; - public Vector4 Colors_34; - public Vector4 Colors_35; - public Vector4 Colors_36; - public Vector4 Colors_37; - public Vector4 Colors_38; - public Vector4 Colors_39; - public Vector4 Colors_40; - public Vector4 Colors_41; - public Vector4 Colors_42; - public Vector4 Colors_43; - public Vector4 Colors_44; - public Vector4 Colors_45; - public Vector4 Colors_46; - public Vector4 Colors_47; - public Vector4 Colors_48; - public Vector4 Colors_49; - public Vector4 Colors_50; - public Vector4 Colors_51; - public Vector4 Colors_52; - public Vector4 Colors_53; - public Vector4 Colors_54; - public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Vector4* colors = default) - { - Alpha = alpha; - DisabledAlpha = disabledAlpha; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - WindowMinSize = windowMinSize; - WindowTitleAlign = windowTitleAlign; - WindowMenuButtonPosition = windowMenuButtonPosition; - ChildRounding = childRounding; - ChildBorderSize = childBorderSize; - PopupRounding = popupRounding; - PopupBorderSize = popupBorderSize; - FramePadding = framePadding; - FrameRounding = frameRounding; - FrameBorderSize = frameBorderSize; - ItemSpacing = itemSpacing; - ItemInnerSpacing = itemInnerSpacing; - CellPadding = cellPadding; - TouchExtraPadding = touchExtraPadding; - IndentSpacing = indentSpacing; - ColumnsMinSpacing = columnsMinSpacing; - ScrollbarSize = scrollbarSize; - ScrollbarRounding = scrollbarRounding; - GrabMinSize = grabMinSize; - GrabRounding = grabRounding; - LogSliderDeadzone = logSliderDeadzone; - TabRounding = tabRounding; - TabBorderSize = tabBorderSize; - TabMinWidthForCloseButton = tabMinWidthForCloseButton; - ColorButtonPosition = colorButtonPosition; - ButtonTextAlign = buttonTextAlign; - SelectableTextAlign = selectableTextAlign; - DisplayWindowPadding = displayWindowPadding; - DisplaySafeAreaPadding = displaySafeAreaPadding; - MouseCursorScale = mouseCursorScale; - AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; - AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; - AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; - CurveTessellationTol = curveTessellationTol; - CircleTessellationMaxError = circleTessellationMaxError; - if (colors != default(Vector4*)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - Colors_6 = colors[6]; - Colors_7 = colors[7]; - Colors_8 = colors[8]; - Colors_9 = colors[9]; - Colors_10 = colors[10]; - Colors_11 = colors[11]; - Colors_12 = colors[12]; - Colors_13 = colors[13]; - Colors_14 = colors[14]; - Colors_15 = colors[15]; - Colors_16 = colors[16]; - Colors_17 = colors[17]; - Colors_18 = colors[18]; - Colors_19 = colors[19]; - Colors_20 = colors[20]; - Colors_21 = colors[21]; - Colors_22 = colors[22]; - Colors_23 = colors[23]; - Colors_24 = colors[24]; - Colors_25 = colors[25]; - Colors_26 = colors[26]; - Colors_27 = colors[27]; - Colors_28 = colors[28]; - Colors_29 = colors[29]; - Colors_30 = colors[30]; - Colors_31 = colors[31]; - Colors_32 = colors[32]; - Colors_33 = colors[33]; - Colors_34 = colors[34]; - Colors_35 = colors[35]; - Colors_36 = colors[36]; - Colors_37 = colors[37]; - Colors_38 = colors[38]; - Colors_39 = colors[39]; - Colors_40 = colors[40]; - Colors_41 = colors[41]; - Colors_42 = colors[42]; - Colors_43 = colors[43]; - Colors_44 = colors[44]; - Colors_45 = colors[45]; - Colors_46 = colors[46]; - Colors_47 = colors[47]; - Colors_48 = colors[48]; - Colors_49 = colors[49]; - Colors_50 = colors[50]; - Colors_51 = colors[51]; - Colors_52 = colors[52]; - Colors_53 = colors[53]; - Colors_54 = colors[54]; - } - } - public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Span<Vector4> colors = default) - { - Alpha = alpha; - DisabledAlpha = disabledAlpha; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - WindowMinSize = windowMinSize; - WindowTitleAlign = windowTitleAlign; - WindowMenuButtonPosition = windowMenuButtonPosition; - ChildRounding = childRounding; - ChildBorderSize = childBorderSize; - PopupRounding = popupRounding; - PopupBorderSize = popupBorderSize; - FramePadding = framePadding; - FrameRounding = frameRounding; - FrameBorderSize = frameBorderSize; - ItemSpacing = itemSpacing; - ItemInnerSpacing = itemInnerSpacing; - CellPadding = cellPadding; - TouchExtraPadding = touchExtraPadding; - IndentSpacing = indentSpacing; - ColumnsMinSpacing = columnsMinSpacing; - ScrollbarSize = scrollbarSize; - ScrollbarRounding = scrollbarRounding; - GrabMinSize = grabMinSize; - GrabRounding = grabRounding; - LogSliderDeadzone = logSliderDeadzone; - TabRounding = tabRounding; - TabBorderSize = tabBorderSize; - TabMinWidthForCloseButton = tabMinWidthForCloseButton; - ColorButtonPosition = colorButtonPosition; - ButtonTextAlign = buttonTextAlign; - SelectableTextAlign = selectableTextAlign; - DisplayWindowPadding = displayWindowPadding; - DisplaySafeAreaPadding = displaySafeAreaPadding; - MouseCursorScale = mouseCursorScale; - AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; - AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; - AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; - CurveTessellationTol = curveTessellationTol; - CircleTessellationMaxError = circleTessellationMaxError; - if (colors != default(Span<Vector4>)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - Colors_6 = colors[6]; - Colors_7 = colors[7]; - Colors_8 = colors[8]; - Colors_9 = colors[9]; - Colors_10 = colors[10]; - Colors_11 = colors[11]; - Colors_12 = colors[12]; - Colors_13 = colors[13]; - Colors_14 = colors[14]; - Colors_15 = colors[15]; - Colors_16 = colors[16]; - Colors_17 = colors[17]; - Colors_18 = colors[18]; - Colors_19 = colors[19]; - Colors_20 = colors[20]; - Colors_21 = colors[21]; - Colors_22 = colors[22]; - Colors_23 = colors[23]; - Colors_24 = colors[24]; - Colors_25 = colors[25]; - Colors_26 = colors[26]; - Colors_27 = colors[27]; - Colors_28 = colors[28]; - Colors_29 = colors[29]; - Colors_30 = colors[30]; - Colors_31 = colors[31]; - Colors_32 = colors[32]; - Colors_33 = colors[33]; - Colors_34 = colors[34]; - Colors_35 = colors[35]; - Colors_36 = colors[36]; - Colors_37 = colors[37]; - Colors_38 = colors[38]; - Colors_39 = colors[39]; - Colors_40 = colors[40]; - Colors_41 = colors[41]; - Colors_42 = colors[42]; - Colors_43 = colors[43]; - Colors_44 = colors[44]; - Colors_45 = colors[45]; - Colors_46 = colors[46]; - Colors_47 = colors[47]; - Colors_48 = colors[48]; - Colors_49 = colors[49]; - Colors_50 = colors[50]; - Colors_51 = colors[51]; - Colors_52 = colors[52]; - Colors_53 = colors[53]; - Colors_54 = colors[54]; - } - } - public unsafe Span<Vector4> Colors - { - get - { - fixed (Vector4* p = &this.Colors_0) - { - return new Span<Vector4>(p, 55); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiStylePtr : IEquatable<ImGuiStylePtr> - { - public ImGuiStylePtr(ImGuiStyle* handle) { Handle = handle; } - public ImGuiStyle* Handle; - public bool IsNull => Handle == null; - public static ImGuiStylePtr Null => new ImGuiStylePtr(null); - public ImGuiStyle this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiStylePtr(ImGuiStyle* handle) => new ImGuiStylePtr(handle); - public static implicit operator ImGuiStyle*(ImGuiStylePtr handle) => handle.Handle; - public static bool operator ==(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle == right; - public static bool operator !=(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle != right; - public bool Equals(ImGuiStylePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiStylePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiStylePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref float Alpha => ref Unsafe.AsRef<float>(&Handle->Alpha); - public ref float DisabledAlpha => ref Unsafe.AsRef<float>(&Handle->DisabledAlpha); - public ref Vector2 WindowPadding => ref Unsafe.AsRef<Vector2>(&Handle->WindowPadding); - public ref float WindowRounding => ref Unsafe.AsRef<float>(&Handle->WindowRounding); - public ref float WindowBorderSize => ref Unsafe.AsRef<float>(&Handle->WindowBorderSize); - public ref Vector2 WindowMinSize => ref Unsafe.AsRef<Vector2>(&Handle->WindowMinSize); - public ref Vector2 WindowTitleAlign => ref Unsafe.AsRef<Vector2>(&Handle->WindowTitleAlign); - public ref ImGuiDir WindowMenuButtonPosition => ref Unsafe.AsRef<ImGuiDir>(&Handle->WindowMenuButtonPosition); - public ref float ChildRounding => ref Unsafe.AsRef<float>(&Handle->ChildRounding); - public ref float ChildBorderSize => ref Unsafe.AsRef<float>(&Handle->ChildBorderSize); - public ref float PopupRounding => ref Unsafe.AsRef<float>(&Handle->PopupRounding); - public ref float PopupBorderSize => ref Unsafe.AsRef<float>(&Handle->PopupBorderSize); - public ref Vector2 FramePadding => ref Unsafe.AsRef<Vector2>(&Handle->FramePadding); - public ref float FrameRounding => ref Unsafe.AsRef<float>(&Handle->FrameRounding); - public ref float FrameBorderSize => ref Unsafe.AsRef<float>(&Handle->FrameBorderSize); - public ref Vector2 ItemSpacing => ref Unsafe.AsRef<Vector2>(&Handle->ItemSpacing); - public ref Vector2 ItemInnerSpacing => ref Unsafe.AsRef<Vector2>(&Handle->ItemInnerSpacing); - public ref Vector2 CellPadding => ref Unsafe.AsRef<Vector2>(&Handle->CellPadding); - public ref Vector2 TouchExtraPadding => ref Unsafe.AsRef<Vector2>(&Handle->TouchExtraPadding); - public ref float IndentSpacing => ref Unsafe.AsRef<float>(&Handle->IndentSpacing); - public ref float ColumnsMinSpacing => ref Unsafe.AsRef<float>(&Handle->ColumnsMinSpacing); - public ref float ScrollbarSize => ref Unsafe.AsRef<float>(&Handle->ScrollbarSize); - public ref float ScrollbarRounding => ref Unsafe.AsRef<float>(&Handle->ScrollbarRounding); - public ref float GrabMinSize => ref Unsafe.AsRef<float>(&Handle->GrabMinSize); - public ref float GrabRounding => ref Unsafe.AsRef<float>(&Handle->GrabRounding); - public ref float LogSliderDeadzone => ref Unsafe.AsRef<float>(&Handle->LogSliderDeadzone); - public ref float TabRounding => ref Unsafe.AsRef<float>(&Handle->TabRounding); - public ref float TabBorderSize => ref Unsafe.AsRef<float>(&Handle->TabBorderSize); - public ref float TabMinWidthForCloseButton => ref Unsafe.AsRef<float>(&Handle->TabMinWidthForCloseButton); - public ref ImGuiDir ColorButtonPosition => ref Unsafe.AsRef<ImGuiDir>(&Handle->ColorButtonPosition); - public ref Vector2 ButtonTextAlign => ref Unsafe.AsRef<Vector2>(&Handle->ButtonTextAlign); - public ref Vector2 SelectableTextAlign => ref Unsafe.AsRef<Vector2>(&Handle->SelectableTextAlign); - public ref Vector2 DisplayWindowPadding => ref Unsafe.AsRef<Vector2>(&Handle->DisplayWindowPadding); - public ref Vector2 DisplaySafeAreaPadding => ref Unsafe.AsRef<Vector2>(&Handle->DisplaySafeAreaPadding); - public ref float MouseCursorScale => ref Unsafe.AsRef<float>(&Handle->MouseCursorScale); - public ref bool AntiAliasedLines => ref Unsafe.AsRef<bool>(&Handle->AntiAliasedLines); - public ref bool AntiAliasedLinesUseTex => ref Unsafe.AsRef<bool>(&Handle->AntiAliasedLinesUseTex); - public ref bool AntiAliasedFill => ref Unsafe.AsRef<bool>(&Handle->AntiAliasedFill); - public ref float CurveTessellationTol => ref Unsafe.AsRef<float>(&Handle->CurveTessellationTol); - public ref float CircleTessellationMaxError => ref Unsafe.AsRef<float>(&Handle->CircleTessellationMaxError); - public unsafe Span<Vector4> Colors - { - get - { - return new Span<Vector4>(&Handle->Colors_0, 55); - } - } - } -} -/* ImGuiStyleMod.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStyleMod - { - [StructLayout(LayoutKind.Explicit)] - public partial struct ImGuiStyleModUnion - { - [FieldOffset(0)] - public int BackupInt_0; - [FieldOffset(8)] - public int BackupInt_1; - [FieldOffset(0)] - public float BackupFloat_0; - [FieldOffset(8)] - public float BackupFloat_1; - public unsafe ImGuiStyleModUnion(int* backupInt = default, float* backupFloat = default) - { - if (backupInt != default(int*)) - { - BackupInt_0 = backupInt[0]; - BackupInt_1 = backupInt[1]; - } - if (backupFloat != default(float*)) - { - BackupFloat_0 = backupFloat[0]; - BackupFloat_1 = backupFloat[1]; - } - } - public unsafe ImGuiStyleModUnion(Span<int> backupInt = default, Span<float> backupFloat = default) - { - if (backupInt != default(Span<int>)) - { - BackupInt_0 = backupInt[0]; - BackupInt_1 = backupInt[1]; - } - if (backupFloat != default(Span<float>)) - { - BackupFloat_0 = backupFloat[0]; - BackupFloat_1 = backupFloat[1]; - } - } - } - public ImGuiStyleVar VarIdx; - public ImGuiStyleModUnion Union; - public unsafe ImGuiStyleMod(ImGuiStyleVar varIdx = default, ImGuiStyleModUnion union = default) - { - VarIdx = varIdx; - Union = union; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiStyleModPtr : IEquatable<ImGuiStyleModPtr> - { - public ImGuiStyleModPtr(ImGuiStyleMod* handle) { Handle = handle; } - public ImGuiStyleMod* Handle; - public bool IsNull => Handle == null; - public static ImGuiStyleModPtr Null => new ImGuiStyleModPtr(null); - public ImGuiStyleMod this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiStyleModPtr(ImGuiStyleMod* handle) => new ImGuiStyleModPtr(handle); - public static implicit operator ImGuiStyleMod*(ImGuiStyleModPtr handle) => handle.Handle; - public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle == right; - public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle != right; - public bool Equals(ImGuiStyleModPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiStyleModPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiStyleModPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiStyleVar VarIdx => ref Unsafe.AsRef<ImGuiStyleVar>(&Handle->VarIdx); - public ref ImGuiStyleMod.ImGuiStyleModUnion Union => ref Unsafe.AsRef<ImGuiStyleMod.ImGuiStyleModUnion>(&Handle->Union); - } -} -/* ImGuiTabBar.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTabBar - { - public ImVector<ImGuiTabItem> Tabs; - public ImGuiTabBarFlags Flags; - public uint ID; - public uint SelectedTabId; - public uint NextSelectedTabId; - public uint VisibleTabId; - public int CurrFrameVisible; - public int PrevFrameVisible; - public ImRect BarRect; - public float CurrTabsContentsHeight; - public float PrevTabsContentsHeight; - public float WidthAllTabs; - public float WidthAllTabsIdeal; - public float ScrollingAnim; - public float ScrollingTarget; - public float ScrollingTargetDistToVisibility; - public float ScrollingSpeed; - public float ScrollingRectMinX; - public float ScrollingRectMaxX; - public uint ReorderRequestTabId; - public short ReorderRequestOffset; - public sbyte BeginCount; - public byte WantLayout; - public byte VisibleTabWasSubmitted; - public byte TabsAddedNew; - public short TabsActiveCount; - public short LastTabItemIdx; - public float ItemSpacingY; - public Vector2 FramePadding; - public Vector2 BackupCursorPos; - public ImGuiTextBuffer TabsNames; - public unsafe ImGuiTabBar(ImVector<ImGuiTabItem> tabs = default, ImGuiTabBarFlags flags = default, uint id = default, uint selectedTabId = default, uint nextSelectedTabId = default, uint visibleTabId = default, int currFrameVisible = default, int prevFrameVisible = default, ImRect barRect = default, float currTabsContentsHeight = default, float prevTabsContentsHeight = default, float widthAllTabs = default, float widthAllTabsIdeal = default, float scrollingAnim = default, float scrollingTarget = default, float scrollingTargetDistToVisibility = default, float scrollingSpeed = default, float scrollingRectMinX = default, float scrollingRectMaxX = default, uint reorderRequestTabId = default, short reorderRequestOffset = default, sbyte beginCount = default, bool wantLayout = default, bool visibleTabWasSubmitted = default, bool tabsAddedNew = default, short tabsActiveCount = default, short lastTabItemIdx = default, float itemSpacingY = default, Vector2 framePadding = default, Vector2 backupCursorPos = default, ImGuiTextBuffer tabsNames = default) - { - Tabs = tabs; - Flags = flags; - ID = id; - SelectedTabId = selectedTabId; - NextSelectedTabId = nextSelectedTabId; - VisibleTabId = visibleTabId; - CurrFrameVisible = currFrameVisible; - PrevFrameVisible = prevFrameVisible; - BarRect = barRect; - CurrTabsContentsHeight = currTabsContentsHeight; - PrevTabsContentsHeight = prevTabsContentsHeight; - WidthAllTabs = widthAllTabs; - WidthAllTabsIdeal = widthAllTabsIdeal; - ScrollingAnim = scrollingAnim; - ScrollingTarget = scrollingTarget; - ScrollingTargetDistToVisibility = scrollingTargetDistToVisibility; - ScrollingSpeed = scrollingSpeed; - ScrollingRectMinX = scrollingRectMinX; - ScrollingRectMaxX = scrollingRectMaxX; - ReorderRequestTabId = reorderRequestTabId; - ReorderRequestOffset = reorderRequestOffset; - BeginCount = beginCount; - WantLayout = wantLayout ? (byte)1 : (byte)0; - VisibleTabWasSubmitted = visibleTabWasSubmitted ? (byte)1 : (byte)0; - TabsAddedNew = tabsAddedNew ? (byte)1 : (byte)0; - TabsActiveCount = tabsActiveCount; - LastTabItemIdx = lastTabItemIdx; - ItemSpacingY = itemSpacingY; - FramePadding = framePadding; - BackupCursorPos = backupCursorPos; - TabsNames = tabsNames; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTabBarPtr : IEquatable<ImGuiTabBarPtr> - { - public ImGuiTabBarPtr(ImGuiTabBar* handle) { Handle = handle; } - public ImGuiTabBar* Handle; - public bool IsNull => Handle == null; - public static ImGuiTabBarPtr Null => new ImGuiTabBarPtr(null); - public ImGuiTabBar this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTabBarPtr(ImGuiTabBar* handle) => new ImGuiTabBarPtr(handle); - public static implicit operator ImGuiTabBar*(ImGuiTabBarPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle == right; - public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle != right; - public bool Equals(ImGuiTabBarPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTabBarPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTabBarPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<ImGuiTabItem> Tabs => ref Unsafe.AsRef<ImVector<ImGuiTabItem>>(&Handle->Tabs); - public ref ImGuiTabBarFlags Flags => ref Unsafe.AsRef<ImGuiTabBarFlags>(&Handle->Flags); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref uint SelectedTabId => ref Unsafe.AsRef<uint>(&Handle->SelectedTabId); - public ref uint NextSelectedTabId => ref Unsafe.AsRef<uint>(&Handle->NextSelectedTabId); - public ref uint VisibleTabId => ref Unsafe.AsRef<uint>(&Handle->VisibleTabId); - public ref int CurrFrameVisible => ref Unsafe.AsRef<int>(&Handle->CurrFrameVisible); - public ref int PrevFrameVisible => ref Unsafe.AsRef<int>(&Handle->PrevFrameVisible); - public ref ImRect BarRect => ref Unsafe.AsRef<ImRect>(&Handle->BarRect); - public ref float CurrTabsContentsHeight => ref Unsafe.AsRef<float>(&Handle->CurrTabsContentsHeight); - public ref float PrevTabsContentsHeight => ref Unsafe.AsRef<float>(&Handle->PrevTabsContentsHeight); - public ref float WidthAllTabs => ref Unsafe.AsRef<float>(&Handle->WidthAllTabs); - public ref float WidthAllTabsIdeal => ref Unsafe.AsRef<float>(&Handle->WidthAllTabsIdeal); - public ref float ScrollingAnim => ref Unsafe.AsRef<float>(&Handle->ScrollingAnim); - public ref float ScrollingTarget => ref Unsafe.AsRef<float>(&Handle->ScrollingTarget); - public ref float ScrollingTargetDistToVisibility => ref Unsafe.AsRef<float>(&Handle->ScrollingTargetDistToVisibility); - public ref float ScrollingSpeed => ref Unsafe.AsRef<float>(&Handle->ScrollingSpeed); - public ref float ScrollingRectMinX => ref Unsafe.AsRef<float>(&Handle->ScrollingRectMinX); - public ref float ScrollingRectMaxX => ref Unsafe.AsRef<float>(&Handle->ScrollingRectMaxX); - public ref uint ReorderRequestTabId => ref Unsafe.AsRef<uint>(&Handle->ReorderRequestTabId); - public ref short ReorderRequestOffset => ref Unsafe.AsRef<short>(&Handle->ReorderRequestOffset); - public ref sbyte BeginCount => ref Unsafe.AsRef<sbyte>(&Handle->BeginCount); - public ref bool WantLayout => ref Unsafe.AsRef<bool>(&Handle->WantLayout); - public ref bool VisibleTabWasSubmitted => ref Unsafe.AsRef<bool>(&Handle->VisibleTabWasSubmitted); - public ref bool TabsAddedNew => ref Unsafe.AsRef<bool>(&Handle->TabsAddedNew); - public ref short TabsActiveCount => ref Unsafe.AsRef<short>(&Handle->TabsActiveCount); - public ref short LastTabItemIdx => ref Unsafe.AsRef<short>(&Handle->LastTabItemIdx); - public ref float ItemSpacingY => ref Unsafe.AsRef<float>(&Handle->ItemSpacingY); - public ref Vector2 FramePadding => ref Unsafe.AsRef<Vector2>(&Handle->FramePadding); - public ref Vector2 BackupCursorPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPos); - public ref ImGuiTextBuffer TabsNames => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TabsNames); - } -} -/* ImGuiTabItem.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTabItem - { - public uint ID; - public ImGuiTabItemFlags Flags; - public unsafe ImGuiWindow* Window; - public int LastFrameVisible; - public int LastFrameSelected; - public float Offset; - public float Width; - public float ContentWidth; - public float RequestedWidth; - public int NameOffset; - public short BeginOrder; - public short IndexDuringLayout; - public byte WantClose; - public unsafe ImGuiTabItem(uint id = default, ImGuiTabItemFlags flags = default, ImGuiWindowPtr window = default, int lastFrameVisible = default, int lastFrameSelected = default, float offset = default, float width = default, float contentWidth = default, float requestedWidth = default, int nameOffset = default, short beginOrder = default, short indexDuringLayout = default, bool wantClose = default) - { - ID = id; - Flags = flags; - Window = window; - LastFrameVisible = lastFrameVisible; - LastFrameSelected = lastFrameSelected; - Offset = offset; - Width = width; - ContentWidth = contentWidth; - RequestedWidth = requestedWidth; - NameOffset = nameOffset; - BeginOrder = beginOrder; - IndexDuringLayout = indexDuringLayout; - WantClose = wantClose ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTabItemPtr : IEquatable<ImGuiTabItemPtr> - { - public ImGuiTabItemPtr(ImGuiTabItem* handle) { Handle = handle; } - public ImGuiTabItem* Handle; - public bool IsNull => Handle == null; - public static ImGuiTabItemPtr Null => new ImGuiTabItemPtr(null); - public ImGuiTabItem this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTabItemPtr(ImGuiTabItem* handle) => new ImGuiTabItemPtr(handle); - public static implicit operator ImGuiTabItem*(ImGuiTabItemPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle == right; - public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle != right; - public bool Equals(ImGuiTabItemPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTabItemPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTabItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiTabItemFlags Flags => ref Unsafe.AsRef<ImGuiTabItemFlags>(&Handle->Flags); - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - public ref int LastFrameVisible => ref Unsafe.AsRef<int>(&Handle->LastFrameVisible); - public ref int LastFrameSelected => ref Unsafe.AsRef<int>(&Handle->LastFrameSelected); - public ref float Offset => ref Unsafe.AsRef<float>(&Handle->Offset); - public ref float Width => ref Unsafe.AsRef<float>(&Handle->Width); - public ref float ContentWidth => ref Unsafe.AsRef<float>(&Handle->ContentWidth); - public ref float RequestedWidth => ref Unsafe.AsRef<float>(&Handle->RequestedWidth); - public ref int NameOffset => ref Unsafe.AsRef<int>(&Handle->NameOffset); - public ref short BeginOrder => ref Unsafe.AsRef<short>(&Handle->BeginOrder); - public ref short IndexDuringLayout => ref Unsafe.AsRef<short>(&Handle->IndexDuringLayout); - public ref bool WantClose => ref Unsafe.AsRef<bool>(&Handle->WantClose); - } -} -/* ImGuiTable.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTable - { - public uint ID; - public ImGuiTableFlags Flags; - public unsafe void* RawData; - public unsafe ImGuiTableTempData* TempData; - public ImSpanImGuiTableColumn Columns; - public ImSpanImGuiTableColumnIdx DisplayOrderToIndex; - public ImSpanImGuiTableCellData RowCellData; - public ulong EnabledMaskByDisplayOrder; - public ulong EnabledMaskByIndex; - public ulong VisibleMaskByIndex; - public ulong RequestOutputMaskByIndex; - public ImGuiTableFlags SettingsLoadedFlags; - public int SettingsOffset; - public int LastFrameActive; - public int ColumnsCount; - public int CurrentRow; - public int CurrentColumn; - public short InstanceCurrent; - public short InstanceInteracted; - public float RowPosY1; - public float RowPosY2; - public float RowMinHeight; - public float RowTextBaseline; - public float RowIndentOffsetX; - public ImGuiTableRowFlags RawBits0; - public int RowBgColorCounter; - public uint RowBgColor_0; - public uint RowBgColor_1; - public uint BorderColorStrong; - public uint BorderColorLight; - public float BorderX1; - public float BorderX2; - public float HostIndentX; - public float MinColumnWidth; - public float OuterPaddingX; - public float CellPaddingX; - public float CellPaddingY; - public float CellSpacingX1; - public float CellSpacingX2; - public float InnerWidth; - public float ColumnsGivenWidth; - public float ColumnsAutoFitWidth; - public float ColumnsStretchSumWeights; - public float ResizedColumnNextWidth; - public float ResizeLockMinContentsX2; - public float RefScale; - public ImRect OuterRect; - public ImRect InnerRect; - public ImRect WorkRect; - public ImRect InnerClipRect; - public ImRect BgClipRect; - public ImRect Bg0ClipRectForDrawCmd; - public ImRect Bg2ClipRectForDrawCmd; - public ImRect HostClipRect; - public ImRect HostBackupInnerClipRect; - public unsafe ImGuiWindow* OuterWindow; - public unsafe ImGuiWindow* InnerWindow; - public ImGuiTextBuffer ColumnsNames; - public unsafe ImDrawListSplitter* DrawSplitter; - public ImGuiTableInstanceData InstanceDataFirst; - public ImVector<ImGuiTableInstanceData> InstanceDataExtra; - public ImGuiTableColumnSortSpecs SortSpecsSingle; - public ImVector<ImGuiTableColumnSortSpecs> SortSpecsMulti; - public ImGuiTableSortSpecs SortSpecs; - public sbyte SortSpecsCount; - public sbyte ColumnsEnabledCount; - public sbyte ColumnsEnabledFixedCount; - public sbyte DeclColumnsCount; - public sbyte HoveredColumnBody; - public sbyte HoveredColumnBorder; - public sbyte AutoFitSingleColumn; - public sbyte ResizedColumn; - public sbyte LastResizedColumn; - public sbyte HeldHeaderColumn; - public sbyte ReorderColumn; - public sbyte ReorderColumnDir; - public sbyte LeftMostEnabledColumn; - public sbyte RightMostEnabledColumn; - public sbyte LeftMostStretchedColumn; - public sbyte RightMostStretchedColumn; - public sbyte ContextPopupColumn; - public sbyte FreezeRowsRequest; - public sbyte FreezeRowsCount; - public sbyte FreezeColumnsRequest; - public sbyte FreezeColumnsCount; - public sbyte RowCellDataCurrent; - public byte DummyDrawChannel; - public byte Bg2DrawChannelCurrent; - public byte Bg2DrawChannelUnfrozen; - public byte IsLayoutLocked; - public byte IsInsideRow; - public byte IsInitializing; - public byte IsSortSpecsDirty; - public byte IsUsingHeaders; - public byte IsContextPopupOpen; - public byte IsSettingsRequestLoad; - public byte IsSettingsDirty; - public byte IsDefaultDisplayOrder; - public byte IsResetAllRequest; - public byte IsResetDisplayOrderRequest; - public byte IsUnfrozenRows; - public byte IsDefaultSizingPolicy; - public byte MemoryCompacted; - public byte HostSkipItems; - public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, uint* rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector<ImGuiTableInstanceData> instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector<ImGuiTableColumnSortSpecs> sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) - { - ID = id; - Flags = flags; - RawData = rawData; - TempData = tempData; - Columns = columns; - DisplayOrderToIndex = displayOrderToIndex; - RowCellData = rowCellData; - EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; - EnabledMaskByIndex = enabledMaskByIndex; - VisibleMaskByIndex = visibleMaskByIndex; - RequestOutputMaskByIndex = requestOutputMaskByIndex; - SettingsLoadedFlags = settingsLoadedFlags; - SettingsOffset = settingsOffset; - LastFrameActive = lastFrameActive; - ColumnsCount = columnsCount; - CurrentRow = currentRow; - CurrentColumn = currentColumn; - InstanceCurrent = instanceCurrent; - InstanceInteracted = instanceInteracted; - RowPosY1 = rowPosY1; - RowPosY2 = rowPosY2; - RowMinHeight = rowMinHeight; - RowTextBaseline = rowTextBaseline; - RowIndentOffsetX = rowIndentOffsetX; - RowFlags = rowFlags; - LastRowFlags = lastRowFlags; - RowBgColorCounter = rowBgColorCounter; - if (rowBgColor != default(uint*)) - { - RowBgColor_0 = rowBgColor[0]; - RowBgColor_1 = rowBgColor[1]; - } - BorderColorStrong = borderColorStrong; - BorderColorLight = borderColorLight; - BorderX1 = borderX1; - BorderX2 = borderX2; - HostIndentX = hostIndentX; - MinColumnWidth = minColumnWidth; - OuterPaddingX = outerPaddingX; - CellPaddingX = cellPaddingX; - CellPaddingY = cellPaddingY; - CellSpacingX1 = cellSpacingX1; - CellSpacingX2 = cellSpacingX2; - InnerWidth = innerWidth; - ColumnsGivenWidth = columnsGivenWidth; - ColumnsAutoFitWidth = columnsAutoFitWidth; - ColumnsStretchSumWeights = columnsStretchSumWeights; - ResizedColumnNextWidth = resizedColumnNextWidth; - ResizeLockMinContentsX2 = resizeLockMinContentsX2; - RefScale = refScale; - OuterRect = outerRect; - InnerRect = innerRect; - WorkRect = workRect; - InnerClipRect = innerClipRect; - BgClipRect = bgClipRect; - Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; - Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; - HostClipRect = hostClipRect; - HostBackupInnerClipRect = hostBackupInnerClipRect; - OuterWindow = outerWindow; - InnerWindow = innerWindow; - ColumnsNames = columnsNames; - DrawSplitter = drawSplitter; - InstanceDataFirst = instanceDataFirst; - InstanceDataExtra = instanceDataExtra; - SortSpecsSingle = sortSpecsSingle; - SortSpecsMulti = sortSpecsMulti; - SortSpecs = sortSpecs; - SortSpecsCount = sortSpecsCount; - ColumnsEnabledCount = columnsEnabledCount; - ColumnsEnabledFixedCount = columnsEnabledFixedCount; - DeclColumnsCount = declColumnsCount; - HoveredColumnBody = hoveredColumnBody; - HoveredColumnBorder = hoveredColumnBorder; - AutoFitSingleColumn = autoFitSingleColumn; - ResizedColumn = resizedColumn; - LastResizedColumn = lastResizedColumn; - HeldHeaderColumn = heldHeaderColumn; - ReorderColumn = reorderColumn; - ReorderColumnDir = reorderColumnDir; - LeftMostEnabledColumn = leftMostEnabledColumn; - RightMostEnabledColumn = rightMostEnabledColumn; - LeftMostStretchedColumn = leftMostStretchedColumn; - RightMostStretchedColumn = rightMostStretchedColumn; - ContextPopupColumn = contextPopupColumn; - FreezeRowsRequest = freezeRowsRequest; - FreezeRowsCount = freezeRowsCount; - FreezeColumnsRequest = freezeColumnsRequest; - FreezeColumnsCount = freezeColumnsCount; - RowCellDataCurrent = rowCellDataCurrent; - DummyDrawChannel = dummyDrawChannel; - Bg2DrawChannelCurrent = bg2DrawChannelCurrent; - Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; - IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; - IsInsideRow = isInsideRow ? (byte)1 : (byte)0; - IsInitializing = isInitializing ? (byte)1 : (byte)0; - IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; - IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; - IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; - IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; - IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; - IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; - IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; - IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; - IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; - IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; - } - public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, Span<uint> rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector<ImGuiTableInstanceData> instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector<ImGuiTableColumnSortSpecs> sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) - { - ID = id; - Flags = flags; - RawData = rawData; - TempData = tempData; - Columns = columns; - DisplayOrderToIndex = displayOrderToIndex; - RowCellData = rowCellData; - EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; - EnabledMaskByIndex = enabledMaskByIndex; - VisibleMaskByIndex = visibleMaskByIndex; - RequestOutputMaskByIndex = requestOutputMaskByIndex; - SettingsLoadedFlags = settingsLoadedFlags; - SettingsOffset = settingsOffset; - LastFrameActive = lastFrameActive; - ColumnsCount = columnsCount; - CurrentRow = currentRow; - CurrentColumn = currentColumn; - InstanceCurrent = instanceCurrent; - InstanceInteracted = instanceInteracted; - RowPosY1 = rowPosY1; - RowPosY2 = rowPosY2; - RowMinHeight = rowMinHeight; - RowTextBaseline = rowTextBaseline; - RowIndentOffsetX = rowIndentOffsetX; - RowFlags = rowFlags; - LastRowFlags = lastRowFlags; - RowBgColorCounter = rowBgColorCounter; - if (rowBgColor != default(Span<uint>)) - { - RowBgColor_0 = rowBgColor[0]; - RowBgColor_1 = rowBgColor[1]; - } - BorderColorStrong = borderColorStrong; - BorderColorLight = borderColorLight; - BorderX1 = borderX1; - BorderX2 = borderX2; - HostIndentX = hostIndentX; - MinColumnWidth = minColumnWidth; - OuterPaddingX = outerPaddingX; - CellPaddingX = cellPaddingX; - CellPaddingY = cellPaddingY; - CellSpacingX1 = cellSpacingX1; - CellSpacingX2 = cellSpacingX2; - InnerWidth = innerWidth; - ColumnsGivenWidth = columnsGivenWidth; - ColumnsAutoFitWidth = columnsAutoFitWidth; - ColumnsStretchSumWeights = columnsStretchSumWeights; - ResizedColumnNextWidth = resizedColumnNextWidth; - ResizeLockMinContentsX2 = resizeLockMinContentsX2; - RefScale = refScale; - OuterRect = outerRect; - InnerRect = innerRect; - WorkRect = workRect; - InnerClipRect = innerClipRect; - BgClipRect = bgClipRect; - Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; - Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; - HostClipRect = hostClipRect; - HostBackupInnerClipRect = hostBackupInnerClipRect; - OuterWindow = outerWindow; - InnerWindow = innerWindow; - ColumnsNames = columnsNames; - DrawSplitter = drawSplitter; - InstanceDataFirst = instanceDataFirst; - InstanceDataExtra = instanceDataExtra; - SortSpecsSingle = sortSpecsSingle; - SortSpecsMulti = sortSpecsMulti; - SortSpecs = sortSpecs; - SortSpecsCount = sortSpecsCount; - ColumnsEnabledCount = columnsEnabledCount; - ColumnsEnabledFixedCount = columnsEnabledFixedCount; - DeclColumnsCount = declColumnsCount; - HoveredColumnBody = hoveredColumnBody; - HoveredColumnBorder = hoveredColumnBorder; - AutoFitSingleColumn = autoFitSingleColumn; - ResizedColumn = resizedColumn; - LastResizedColumn = lastResizedColumn; - HeldHeaderColumn = heldHeaderColumn; - ReorderColumn = reorderColumn; - ReorderColumnDir = reorderColumnDir; - LeftMostEnabledColumn = leftMostEnabledColumn; - RightMostEnabledColumn = rightMostEnabledColumn; - LeftMostStretchedColumn = leftMostStretchedColumn; - RightMostStretchedColumn = rightMostStretchedColumn; - ContextPopupColumn = contextPopupColumn; - FreezeRowsRequest = freezeRowsRequest; - FreezeRowsCount = freezeRowsCount; - FreezeColumnsRequest = freezeColumnsRequest; - FreezeColumnsCount = freezeColumnsCount; - RowCellDataCurrent = rowCellDataCurrent; - DummyDrawChannel = dummyDrawChannel; - Bg2DrawChannelCurrent = bg2DrawChannelCurrent; - Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; - IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; - IsInsideRow = isInsideRow ? (byte)1 : (byte)0; - IsInitializing = isInitializing ? (byte)1 : (byte)0; - IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; - IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; - IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; - IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; - IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; - IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; - IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; - IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; - IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; - IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; - } - public ImGuiTableRowFlags RowFlags { get => Bitfield.Get(RawBits0, 0, 16); set => Bitfield.Set(ref RawBits0, value, 0, 16); } - public ImGuiTableRowFlags LastRowFlags { get => Bitfield.Get(RawBits0, 16, 16); set => Bitfield.Set(ref RawBits0, value, 16, 16); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTablePtr : IEquatable<ImGuiTablePtr> - { - public ImGuiTablePtr(ImGuiTable* handle) { Handle = handle; } - public ImGuiTable* Handle; - public bool IsNull => Handle == null; - public static ImGuiTablePtr Null => new ImGuiTablePtr(null); - public ImGuiTable this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTablePtr(ImGuiTable* handle) => new ImGuiTablePtr(handle); - public static implicit operator ImGuiTable*(ImGuiTablePtr handle) => handle.Handle; - public static bool operator ==(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTablePtr left, ImGuiTable* right) => left.Handle == right; - public static bool operator !=(ImGuiTablePtr left, ImGuiTable* right) => left.Handle != right; - public bool Equals(ImGuiTablePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTablePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTablePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiTableFlags Flags => ref Unsafe.AsRef<ImGuiTableFlags>(&Handle->Flags); - public void* RawData { get => Handle->RawData; set => Handle->RawData = value; } - public ref ImGuiTableTempDataPtr TempData => ref Unsafe.AsRef<ImGuiTableTempDataPtr>(&Handle->TempData); - public ref ImSpanImGuiTableColumn Columns => ref Unsafe.AsRef<ImSpanImGuiTableColumn>(&Handle->Columns); - public ref ImSpanImGuiTableColumnIdx DisplayOrderToIndex => ref Unsafe.AsRef<ImSpanImGuiTableColumnIdx>(&Handle->DisplayOrderToIndex); - public ref ImSpanImGuiTableCellData RowCellData => ref Unsafe.AsRef<ImSpanImGuiTableCellData>(&Handle->RowCellData); - public ref ulong EnabledMaskByDisplayOrder => ref Unsafe.AsRef<ulong>(&Handle->EnabledMaskByDisplayOrder); - public ref ulong EnabledMaskByIndex => ref Unsafe.AsRef<ulong>(&Handle->EnabledMaskByIndex); - public ref ulong VisibleMaskByIndex => ref Unsafe.AsRef<ulong>(&Handle->VisibleMaskByIndex); - public ref ulong RequestOutputMaskByIndex => ref Unsafe.AsRef<ulong>(&Handle->RequestOutputMaskByIndex); - public ref ImGuiTableFlags SettingsLoadedFlags => ref Unsafe.AsRef<ImGuiTableFlags>(&Handle->SettingsLoadedFlags); - public ref int SettingsOffset => ref Unsafe.AsRef<int>(&Handle->SettingsOffset); - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - public ref int ColumnsCount => ref Unsafe.AsRef<int>(&Handle->ColumnsCount); - public ref int CurrentRow => ref Unsafe.AsRef<int>(&Handle->CurrentRow); - public ref int CurrentColumn => ref Unsafe.AsRef<int>(&Handle->CurrentColumn); - public ref short InstanceCurrent => ref Unsafe.AsRef<short>(&Handle->InstanceCurrent); - public ref short InstanceInteracted => ref Unsafe.AsRef<short>(&Handle->InstanceInteracted); - public ref float RowPosY1 => ref Unsafe.AsRef<float>(&Handle->RowPosY1); - public ref float RowPosY2 => ref Unsafe.AsRef<float>(&Handle->RowPosY2); - public ref float RowMinHeight => ref Unsafe.AsRef<float>(&Handle->RowMinHeight); - public ref float RowTextBaseline => ref Unsafe.AsRef<float>(&Handle->RowTextBaseline); - public ref float RowIndentOffsetX => ref Unsafe.AsRef<float>(&Handle->RowIndentOffsetX); - public ImGuiTableRowFlags RowFlags { get => Handle->RowFlags; set => Handle->RowFlags = value; } - public ImGuiTableRowFlags LastRowFlags { get => Handle->LastRowFlags; set => Handle->LastRowFlags = value; } - public ref int RowBgColorCounter => ref Unsafe.AsRef<int>(&Handle->RowBgColorCounter); - public unsafe Span<uint> RowBgColor - { - get - { - return new Span<uint>(&Handle->RowBgColor_0, 2); - } - } - public ref uint BorderColorStrong => ref Unsafe.AsRef<uint>(&Handle->BorderColorStrong); - public ref uint BorderColorLight => ref Unsafe.AsRef<uint>(&Handle->BorderColorLight); - public ref float BorderX1 => ref Unsafe.AsRef<float>(&Handle->BorderX1); - public ref float BorderX2 => ref Unsafe.AsRef<float>(&Handle->BorderX2); - public ref float HostIndentX => ref Unsafe.AsRef<float>(&Handle->HostIndentX); - public ref float MinColumnWidth => ref Unsafe.AsRef<float>(&Handle->MinColumnWidth); - public ref float OuterPaddingX => ref Unsafe.AsRef<float>(&Handle->OuterPaddingX); - public ref float CellPaddingX => ref Unsafe.AsRef<float>(&Handle->CellPaddingX); - public ref float CellPaddingY => ref Unsafe.AsRef<float>(&Handle->CellPaddingY); - public ref float CellSpacingX1 => ref Unsafe.AsRef<float>(&Handle->CellSpacingX1); - public ref float CellSpacingX2 => ref Unsafe.AsRef<float>(&Handle->CellSpacingX2); - public ref float InnerWidth => ref Unsafe.AsRef<float>(&Handle->InnerWidth); - public ref float ColumnsGivenWidth => ref Unsafe.AsRef<float>(&Handle->ColumnsGivenWidth); - public ref float ColumnsAutoFitWidth => ref Unsafe.AsRef<float>(&Handle->ColumnsAutoFitWidth); - public ref float ColumnsStretchSumWeights => ref Unsafe.AsRef<float>(&Handle->ColumnsStretchSumWeights); - public ref float ResizedColumnNextWidth => ref Unsafe.AsRef<float>(&Handle->ResizedColumnNextWidth); - public ref float ResizeLockMinContentsX2 => ref Unsafe.AsRef<float>(&Handle->ResizeLockMinContentsX2); - public ref float RefScale => ref Unsafe.AsRef<float>(&Handle->RefScale); - public ref ImRect OuterRect => ref Unsafe.AsRef<ImRect>(&Handle->OuterRect); - public ref ImRect InnerRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerRect); - public ref ImRect WorkRect => ref Unsafe.AsRef<ImRect>(&Handle->WorkRect); - public ref ImRect InnerClipRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerClipRect); - public ref ImRect BgClipRect => ref Unsafe.AsRef<ImRect>(&Handle->BgClipRect); - public ref ImRect Bg0ClipRectForDrawCmd => ref Unsafe.AsRef<ImRect>(&Handle->Bg0ClipRectForDrawCmd); - public ref ImRect Bg2ClipRectForDrawCmd => ref Unsafe.AsRef<ImRect>(&Handle->Bg2ClipRectForDrawCmd); - public ref ImRect HostClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostClipRect); - public ref ImRect HostBackupInnerClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupInnerClipRect); - public ref ImGuiWindowPtr OuterWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->OuterWindow); - public ref ImGuiWindowPtr InnerWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->InnerWindow); - public ref ImGuiTextBuffer ColumnsNames => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->ColumnsNames); - public ref ImDrawListSplitterPtr DrawSplitter => ref Unsafe.AsRef<ImDrawListSplitterPtr>(&Handle->DrawSplitter); - public ref ImGuiTableInstanceData InstanceDataFirst => ref Unsafe.AsRef<ImGuiTableInstanceData>(&Handle->InstanceDataFirst); - public ref ImVector<ImGuiTableInstanceData> InstanceDataExtra => ref Unsafe.AsRef<ImVector<ImGuiTableInstanceData>>(&Handle->InstanceDataExtra); - public ref ImGuiTableColumnSortSpecs SortSpecsSingle => ref Unsafe.AsRef<ImGuiTableColumnSortSpecs>(&Handle->SortSpecsSingle); - public ref ImVector<ImGuiTableColumnSortSpecs> SortSpecsMulti => ref Unsafe.AsRef<ImVector<ImGuiTableColumnSortSpecs>>(&Handle->SortSpecsMulti); - public ref ImGuiTableSortSpecs SortSpecs => ref Unsafe.AsRef<ImGuiTableSortSpecs>(&Handle->SortSpecs); - public ref sbyte SortSpecsCount => ref Unsafe.AsRef<sbyte>(&Handle->SortSpecsCount); - public ref sbyte ColumnsEnabledCount => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsEnabledCount); - public ref sbyte ColumnsEnabledFixedCount => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsEnabledFixedCount); - public ref sbyte DeclColumnsCount => ref Unsafe.AsRef<sbyte>(&Handle->DeclColumnsCount); - public ref sbyte HoveredColumnBody => ref Unsafe.AsRef<sbyte>(&Handle->HoveredColumnBody); - public ref sbyte HoveredColumnBorder => ref Unsafe.AsRef<sbyte>(&Handle->HoveredColumnBorder); - public ref sbyte AutoFitSingleColumn => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitSingleColumn); - public ref sbyte ResizedColumn => ref Unsafe.AsRef<sbyte>(&Handle->ResizedColumn); - public ref sbyte LastResizedColumn => ref Unsafe.AsRef<sbyte>(&Handle->LastResizedColumn); - public ref sbyte HeldHeaderColumn => ref Unsafe.AsRef<sbyte>(&Handle->HeldHeaderColumn); - public ref sbyte ReorderColumn => ref Unsafe.AsRef<sbyte>(&Handle->ReorderColumn); - public ref sbyte ReorderColumnDir => ref Unsafe.AsRef<sbyte>(&Handle->ReorderColumnDir); - public ref sbyte LeftMostEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->LeftMostEnabledColumn); - public ref sbyte RightMostEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->RightMostEnabledColumn); - public ref sbyte LeftMostStretchedColumn => ref Unsafe.AsRef<sbyte>(&Handle->LeftMostStretchedColumn); - public ref sbyte RightMostStretchedColumn => ref Unsafe.AsRef<sbyte>(&Handle->RightMostStretchedColumn); - public ref sbyte ContextPopupColumn => ref Unsafe.AsRef<sbyte>(&Handle->ContextPopupColumn); - public ref sbyte FreezeRowsRequest => ref Unsafe.AsRef<sbyte>(&Handle->FreezeRowsRequest); - public ref sbyte FreezeRowsCount => ref Unsafe.AsRef<sbyte>(&Handle->FreezeRowsCount); - public ref sbyte FreezeColumnsRequest => ref Unsafe.AsRef<sbyte>(&Handle->FreezeColumnsRequest); - public ref sbyte FreezeColumnsCount => ref Unsafe.AsRef<sbyte>(&Handle->FreezeColumnsCount); - public ref sbyte RowCellDataCurrent => ref Unsafe.AsRef<sbyte>(&Handle->RowCellDataCurrent); - public ref byte DummyDrawChannel => ref Unsafe.AsRef<byte>(&Handle->DummyDrawChannel); - public ref byte Bg2DrawChannelCurrent => ref Unsafe.AsRef<byte>(&Handle->Bg2DrawChannelCurrent); - public ref byte Bg2DrawChannelUnfrozen => ref Unsafe.AsRef<byte>(&Handle->Bg2DrawChannelUnfrozen); - public ref bool IsLayoutLocked => ref Unsafe.AsRef<bool>(&Handle->IsLayoutLocked); - public ref bool IsInsideRow => ref Unsafe.AsRef<bool>(&Handle->IsInsideRow); - public ref bool IsInitializing => ref Unsafe.AsRef<bool>(&Handle->IsInitializing); - public ref bool IsSortSpecsDirty => ref Unsafe.AsRef<bool>(&Handle->IsSortSpecsDirty); - public ref bool IsUsingHeaders => ref Unsafe.AsRef<bool>(&Handle->IsUsingHeaders); - public ref bool IsContextPopupOpen => ref Unsafe.AsRef<bool>(&Handle->IsContextPopupOpen); - public ref bool IsSettingsRequestLoad => ref Unsafe.AsRef<bool>(&Handle->IsSettingsRequestLoad); - public ref bool IsSettingsDirty => ref Unsafe.AsRef<bool>(&Handle->IsSettingsDirty); - public ref bool IsDefaultDisplayOrder => ref Unsafe.AsRef<bool>(&Handle->IsDefaultDisplayOrder); - public ref bool IsResetAllRequest => ref Unsafe.AsRef<bool>(&Handle->IsResetAllRequest); - public ref bool IsResetDisplayOrderRequest => ref Unsafe.AsRef<bool>(&Handle->IsResetDisplayOrderRequest); - public ref bool IsUnfrozenRows => ref Unsafe.AsRef<bool>(&Handle->IsUnfrozenRows); - public ref bool IsDefaultSizingPolicy => ref Unsafe.AsRef<bool>(&Handle->IsDefaultSizingPolicy); - public ref bool MemoryCompacted => ref Unsafe.AsRef<bool>(&Handle->MemoryCompacted); - public ref bool HostSkipItems => ref Unsafe.AsRef<bool>(&Handle->HostSkipItems); - } -} -/* ImGuiTableCellData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableCellData - { - public uint BgColor; - public sbyte Column; - public unsafe ImGuiTableCellData(uint bgColor = default, sbyte column = default) - { - BgColor = bgColor; - Column = column; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableCellDataPtr : IEquatable<ImGuiTableCellDataPtr> - { - public ImGuiTableCellDataPtr(ImGuiTableCellData* handle) { Handle = handle; } - public ImGuiTableCellData* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableCellDataPtr Null => new ImGuiTableCellDataPtr(null); - public ImGuiTableCellData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableCellDataPtr(ImGuiTableCellData* handle) => new ImGuiTableCellDataPtr(handle); - public static implicit operator ImGuiTableCellData*(ImGuiTableCellDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle == right; - public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle != right; - public bool Equals(ImGuiTableCellDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableCellDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableCellDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint BgColor => ref Unsafe.AsRef<uint>(&Handle->BgColor); - public ref sbyte Column => ref Unsafe.AsRef<sbyte>(&Handle->Column); - } -} -/* ImGuiTableColumn.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumn - { - public ImGuiTableColumnFlags Flags; - public float WidthGiven; - public float MinX; - public float MaxX; - public float WidthRequest; - public float WidthAuto; - public float StretchWeight; - public float InitStretchWeightOrWidth; - public ImRect ClipRect; - public uint UserID; - public float WorkMinX; - public float WorkMaxX; - public float ItemWidth; - public float ContentMaxXFrozen; - public float ContentMaxXUnfrozen; - public float ContentMaxXHeadersUsed; - public float ContentMaxXHeadersIdeal; - public short NameOffset; - public sbyte DisplayOrder; - public sbyte IndexWithinEnabledSet; - public sbyte PrevEnabledColumn; - public sbyte NextEnabledColumn; - public sbyte SortOrder; - public byte DrawChannelCurrent; - public byte DrawChannelFrozen; - public byte DrawChannelUnfrozen; - public byte IsEnabled; - public byte IsUserEnabled; - public byte IsUserEnabledNextFrame; - public byte IsVisibleX; - public byte IsVisibleY; - public byte IsRequestOutput; - public byte IsSkipItems; - public byte IsPreserveWidthAuto; - public sbyte NavLayerCurrent; - public byte AutoFitQueue; - public byte CannotSkipItemsQueue; - public byte RawBits0; - public byte SortDirectionsAvailList; - public unsafe ImGuiTableColumn(ImGuiTableColumnFlags flags = default, float widthGiven = default, float minX = default, float maxX = default, float widthRequest = default, float widthAuto = default, float stretchWeight = default, float initStretchWeightOrWidth = default, ImRect clipRect = default, uint userId = default, float workMinX = default, float workMaxX = default, float itemWidth = default, float contentMaxXFrozen = default, float contentMaxXUnfrozen = default, float contentMaxXHeadersUsed = default, float contentMaxXHeadersIdeal = default, short nameOffset = default, sbyte displayOrder = default, sbyte indexWithinEnabledSet = default, sbyte prevEnabledColumn = default, sbyte nextEnabledColumn = default, sbyte sortOrder = default, byte drawChannelCurrent = default, byte drawChannelFrozen = default, byte drawChannelUnfrozen = default, bool isEnabled = default, bool isUserEnabled = default, bool isUserEnabledNextFrame = default, bool isVisibleX = default, bool isVisibleY = default, bool isRequestOutput = default, bool isSkipItems = default, bool isPreserveWidthAuto = default, sbyte navLayerCurrent = default, byte autoFitQueue = default, byte cannotSkipItemsQueue = default, byte sortDirection = default, byte sortDirectionsAvailCount = default, byte sortDirectionsAvailMask = default, byte sortDirectionsAvailList = default) - { - Flags = flags; - WidthGiven = widthGiven; - MinX = minX; - MaxX = maxX; - WidthRequest = widthRequest; - WidthAuto = widthAuto; - StretchWeight = stretchWeight; - InitStretchWeightOrWidth = initStretchWeightOrWidth; - ClipRect = clipRect; - UserID = userId; - WorkMinX = workMinX; - WorkMaxX = workMaxX; - ItemWidth = itemWidth; - ContentMaxXFrozen = contentMaxXFrozen; - ContentMaxXUnfrozen = contentMaxXUnfrozen; - ContentMaxXHeadersUsed = contentMaxXHeadersUsed; - ContentMaxXHeadersIdeal = contentMaxXHeadersIdeal; - NameOffset = nameOffset; - DisplayOrder = displayOrder; - IndexWithinEnabledSet = indexWithinEnabledSet; - PrevEnabledColumn = prevEnabledColumn; - NextEnabledColumn = nextEnabledColumn; - SortOrder = sortOrder; - DrawChannelCurrent = drawChannelCurrent; - DrawChannelFrozen = drawChannelFrozen; - DrawChannelUnfrozen = drawChannelUnfrozen; - IsEnabled = isEnabled ? (byte)1 : (byte)0; - IsUserEnabled = isUserEnabled ? (byte)1 : (byte)0; - IsUserEnabledNextFrame = isUserEnabledNextFrame ? (byte)1 : (byte)0; - IsVisibleX = isVisibleX ? (byte)1 : (byte)0; - IsVisibleY = isVisibleY ? (byte)1 : (byte)0; - IsRequestOutput = isRequestOutput ? (byte)1 : (byte)0; - IsSkipItems = isSkipItems ? (byte)1 : (byte)0; - IsPreserveWidthAuto = isPreserveWidthAuto ? (byte)1 : (byte)0; - NavLayerCurrent = navLayerCurrent; - AutoFitQueue = autoFitQueue; - CannotSkipItemsQueue = cannotSkipItemsQueue; - SortDirection = sortDirection; - SortDirectionsAvailCount = sortDirectionsAvailCount; - SortDirectionsAvailMask = sortDirectionsAvailMask; - SortDirectionsAvailList = sortDirectionsAvailList; - } - public byte SortDirection { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } - public byte SortDirectionsAvailCount { get => Bitfield.Get(RawBits0, 2, 2); set => Bitfield.Set(ref RawBits0, value, 2, 2); } - public byte SortDirectionsAvailMask { get => Bitfield.Get(RawBits0, 4, 4); set => Bitfield.Set(ref RawBits0, value, 4, 4); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableColumnPtr : IEquatable<ImGuiTableColumnPtr> - { - public ImGuiTableColumnPtr(ImGuiTableColumn* handle) { Handle = handle; } - public ImGuiTableColumn* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableColumnPtr Null => new ImGuiTableColumnPtr(null); - public ImGuiTableColumn this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableColumnPtr(ImGuiTableColumn* handle) => new ImGuiTableColumnPtr(handle); - public static implicit operator ImGuiTableColumn*(ImGuiTableColumnPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle == right; - public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle != right; - public bool Equals(ImGuiTableColumnPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableColumnPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableColumnPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiTableColumnFlags Flags => ref Unsafe.AsRef<ImGuiTableColumnFlags>(&Handle->Flags); - public ref float WidthGiven => ref Unsafe.AsRef<float>(&Handle->WidthGiven); - public ref float MinX => ref Unsafe.AsRef<float>(&Handle->MinX); - public ref float MaxX => ref Unsafe.AsRef<float>(&Handle->MaxX); - public ref float WidthRequest => ref Unsafe.AsRef<float>(&Handle->WidthRequest); - public ref float WidthAuto => ref Unsafe.AsRef<float>(&Handle->WidthAuto); - public ref float StretchWeight => ref Unsafe.AsRef<float>(&Handle->StretchWeight); - public ref float InitStretchWeightOrWidth => ref Unsafe.AsRef<float>(&Handle->InitStretchWeightOrWidth); - public ref ImRect ClipRect => ref Unsafe.AsRef<ImRect>(&Handle->ClipRect); - public ref uint UserID => ref Unsafe.AsRef<uint>(&Handle->UserID); - public ref float WorkMinX => ref Unsafe.AsRef<float>(&Handle->WorkMinX); - public ref float WorkMaxX => ref Unsafe.AsRef<float>(&Handle->WorkMaxX); - public ref float ItemWidth => ref Unsafe.AsRef<float>(&Handle->ItemWidth); - public ref float ContentMaxXFrozen => ref Unsafe.AsRef<float>(&Handle->ContentMaxXFrozen); - public ref float ContentMaxXUnfrozen => ref Unsafe.AsRef<float>(&Handle->ContentMaxXUnfrozen); - public ref float ContentMaxXHeadersUsed => ref Unsafe.AsRef<float>(&Handle->ContentMaxXHeadersUsed); - public ref float ContentMaxXHeadersIdeal => ref Unsafe.AsRef<float>(&Handle->ContentMaxXHeadersIdeal); - public ref short NameOffset => ref Unsafe.AsRef<short>(&Handle->NameOffset); - public ref sbyte DisplayOrder => ref Unsafe.AsRef<sbyte>(&Handle->DisplayOrder); - public ref sbyte IndexWithinEnabledSet => ref Unsafe.AsRef<sbyte>(&Handle->IndexWithinEnabledSet); - public ref sbyte PrevEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->PrevEnabledColumn); - public ref sbyte NextEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->NextEnabledColumn); - public ref sbyte SortOrder => ref Unsafe.AsRef<sbyte>(&Handle->SortOrder); - public ref byte DrawChannelCurrent => ref Unsafe.AsRef<byte>(&Handle->DrawChannelCurrent); - public ref byte DrawChannelFrozen => ref Unsafe.AsRef<byte>(&Handle->DrawChannelFrozen); - public ref byte DrawChannelUnfrozen => ref Unsafe.AsRef<byte>(&Handle->DrawChannelUnfrozen); - public ref bool IsEnabled => ref Unsafe.AsRef<bool>(&Handle->IsEnabled); - public ref bool IsUserEnabled => ref Unsafe.AsRef<bool>(&Handle->IsUserEnabled); - public ref bool IsUserEnabledNextFrame => ref Unsafe.AsRef<bool>(&Handle->IsUserEnabledNextFrame); - public ref bool IsVisibleX => ref Unsafe.AsRef<bool>(&Handle->IsVisibleX); - public ref bool IsVisibleY => ref Unsafe.AsRef<bool>(&Handle->IsVisibleY); - public ref bool IsRequestOutput => ref Unsafe.AsRef<bool>(&Handle->IsRequestOutput); - public ref bool IsSkipItems => ref Unsafe.AsRef<bool>(&Handle->IsSkipItems); - public ref bool IsPreserveWidthAuto => ref Unsafe.AsRef<bool>(&Handle->IsPreserveWidthAuto); - public ref sbyte NavLayerCurrent => ref Unsafe.AsRef<sbyte>(&Handle->NavLayerCurrent); - public ref byte AutoFitQueue => ref Unsafe.AsRef<byte>(&Handle->AutoFitQueue); - public ref byte CannotSkipItemsQueue => ref Unsafe.AsRef<byte>(&Handle->CannotSkipItemsQueue); - public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } - public byte SortDirectionsAvailCount { get => Handle->SortDirectionsAvailCount; set => Handle->SortDirectionsAvailCount = value; } - public byte SortDirectionsAvailMask { get => Handle->SortDirectionsAvailMask; set => Handle->SortDirectionsAvailMask = value; } - public ref byte SortDirectionsAvailList => ref Unsafe.AsRef<byte>(&Handle->SortDirectionsAvailList); - } -} -/* ImGuiTableColumnSettings.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumnSettings - { - public float WidthOrWeight; - public uint UserID; - public sbyte Index; - public sbyte DisplayOrder; - public sbyte SortOrder; - public byte RawBits0; - public unsafe ImGuiTableColumnSettings(float widthOrWeight = default, uint userId = default, sbyte index = default, sbyte displayOrder = default, sbyte sortOrder = default, byte sortDirection = default, byte isEnabled = default, byte isStretch = default) - { - WidthOrWeight = widthOrWeight; - UserID = userId; - Index = index; - DisplayOrder = displayOrder; - SortOrder = sortOrder; - SortDirection = sortDirection; - IsEnabled = isEnabled; - IsStretch = isStretch; - } - public byte SortDirection { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } - public byte IsEnabled { get => Bitfield.Get(RawBits0, 2, 1); set => Bitfield.Set(ref RawBits0, value, 2, 1); } - public byte IsStretch { get => Bitfield.Get(RawBits0, 3, 1); set => Bitfield.Set(ref RawBits0, value, 3, 1); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableColumnSettingsPtr : IEquatable<ImGuiTableColumnSettingsPtr> - { - public ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) { Handle = handle; } - public ImGuiTableColumnSettings* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableColumnSettingsPtr Null => new ImGuiTableColumnSettingsPtr(null); - public ImGuiTableColumnSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) => new ImGuiTableColumnSettingsPtr(handle); - public static implicit operator ImGuiTableColumnSettings*(ImGuiTableColumnSettingsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle == right; - public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle != right; - public bool Equals(ImGuiTableColumnSettingsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableColumnSettingsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableColumnSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref float WidthOrWeight => ref Unsafe.AsRef<float>(&Handle->WidthOrWeight); - public ref uint UserID => ref Unsafe.AsRef<uint>(&Handle->UserID); - public ref sbyte Index => ref Unsafe.AsRef<sbyte>(&Handle->Index); - public ref sbyte DisplayOrder => ref Unsafe.AsRef<sbyte>(&Handle->DisplayOrder); - public ref sbyte SortOrder => ref Unsafe.AsRef<sbyte>(&Handle->SortOrder); - public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } - public byte IsEnabled { get => Handle->IsEnabled; set => Handle->IsEnabled = value; } - public byte IsStretch { get => Handle->IsStretch; set => Handle->IsStretch = value; } - } -} -/* ImGuiTableColumnSortSpecs.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumnSortSpecs - { - public uint ColumnUserID; - public short ColumnIndex; - public short SortOrder; - public ImGuiSortDirection RawBits0; - public unsafe ImGuiTableColumnSortSpecs(uint columnUserId = default, short columnIndex = default, short sortOrder = default, ImGuiSortDirection sortDirection = default) - { - ColumnUserID = columnUserId; - ColumnIndex = columnIndex; - SortOrder = sortOrder; - SortDirection = sortDirection; - } - public ImGuiSortDirection SortDirection { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableColumnSortSpecsPtr : IEquatable<ImGuiTableColumnSortSpecsPtr> - { - public ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) { Handle = handle; } - public ImGuiTableColumnSortSpecs* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableColumnSortSpecsPtr Null => new ImGuiTableColumnSortSpecsPtr(null); - public ImGuiTableColumnSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) => new ImGuiTableColumnSortSpecsPtr(handle); - public static implicit operator ImGuiTableColumnSortSpecs*(ImGuiTableColumnSortSpecsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle == right; - public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle != right; - public bool Equals(ImGuiTableColumnSortSpecsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableColumnSortSpecsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableColumnSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ColumnUserID => ref Unsafe.AsRef<uint>(&Handle->ColumnUserID); - public ref short ColumnIndex => ref Unsafe.AsRef<short>(&Handle->ColumnIndex); - public ref short SortOrder => ref Unsafe.AsRef<short>(&Handle->SortOrder); - public ImGuiSortDirection SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } - } -} -/* ImGuiTableColumnsSettings.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumnsSettings - { - } -} -/* ImGuiTableInstanceData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableInstanceData - { - public float LastOuterHeight; - public float LastFirstRowHeight; - public unsafe ImGuiTableInstanceData(float lastOuterHeight = default, float lastFirstRowHeight = default) - { - LastOuterHeight = lastOuterHeight; - LastFirstRowHeight = lastFirstRowHeight; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableInstanceDataPtr : IEquatable<ImGuiTableInstanceDataPtr> - { - public ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) { Handle = handle; } - public ImGuiTableInstanceData* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableInstanceDataPtr Null => new ImGuiTableInstanceDataPtr(null); - public ImGuiTableInstanceData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) => new ImGuiTableInstanceDataPtr(handle); - public static implicit operator ImGuiTableInstanceData*(ImGuiTableInstanceDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle == right; - public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle != right; - public bool Equals(ImGuiTableInstanceDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableInstanceDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableInstanceDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref float LastOuterHeight => ref Unsafe.AsRef<float>(&Handle->LastOuterHeight); - public ref float LastFirstRowHeight => ref Unsafe.AsRef<float>(&Handle->LastFirstRowHeight); - } -} -/* ImGuiTableSettings.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableSettings - { - public uint ID; - public ImGuiTableFlags SaveFlags; - public float RefScale; - public sbyte ColumnsCount; - public sbyte ColumnsCountMax; - public byte WantApply; - public unsafe ImGuiTableSettings(uint id = default, ImGuiTableFlags saveFlags = default, float refScale = default, sbyte columnsCount = default, sbyte columnsCountMax = default, bool wantApply = default) - { - ID = id; - SaveFlags = saveFlags; - RefScale = refScale; - ColumnsCount = columnsCount; - ColumnsCountMax = columnsCountMax; - WantApply = wantApply ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableSettingsPtr : IEquatable<ImGuiTableSettingsPtr> - { - public ImGuiTableSettingsPtr(ImGuiTableSettings* handle) { Handle = handle; } - public ImGuiTableSettings* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableSettingsPtr Null => new ImGuiTableSettingsPtr(null); - public ImGuiTableSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableSettingsPtr(ImGuiTableSettings* handle) => new ImGuiTableSettingsPtr(handle); - public static implicit operator ImGuiTableSettings*(ImGuiTableSettingsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle == right; - public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle != right; - public bool Equals(ImGuiTableSettingsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableSettingsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiTableFlags SaveFlags => ref Unsafe.AsRef<ImGuiTableFlags>(&Handle->SaveFlags); - public ref float RefScale => ref Unsafe.AsRef<float>(&Handle->RefScale); - public ref sbyte ColumnsCount => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsCount); - public ref sbyte ColumnsCountMax => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsCountMax); - public ref bool WantApply => ref Unsafe.AsRef<bool>(&Handle->WantApply); - } -} -/* ImGuiTableSortSpecs.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableSortSpecs - { - public unsafe ImGuiTableColumnSortSpecs* Specs; - public int SpecsCount; - public byte SpecsDirty; - public unsafe ImGuiTableSortSpecs(ImGuiTableColumnSortSpecsPtr specs = default, int specsCount = default, bool specsDirty = default) - { - Specs = specs; - SpecsCount = specsCount; - SpecsDirty = specsDirty ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableSortSpecsPtr : IEquatable<ImGuiTableSortSpecsPtr> - { - public ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) { Handle = handle; } - public ImGuiTableSortSpecs* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableSortSpecsPtr Null => new ImGuiTableSortSpecsPtr(null); - public ImGuiTableSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) => new ImGuiTableSortSpecsPtr(handle); - public static implicit operator ImGuiTableSortSpecs*(ImGuiTableSortSpecsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle == right; - public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle != right; - public bool Equals(ImGuiTableSortSpecsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableSortSpecsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiTableColumnSortSpecsPtr Specs => ref Unsafe.AsRef<ImGuiTableColumnSortSpecsPtr>(&Handle->Specs); - public ref int SpecsCount => ref Unsafe.AsRef<int>(&Handle->SpecsCount); - public ref bool SpecsDirty => ref Unsafe.AsRef<bool>(&Handle->SpecsDirty); - } -} -/* ImGuiTableTempData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableTempData - { - public int TableIndex; - public float LastTimeActive; - public Vector2 UserOuterSize; - public ImDrawListSplitter DrawSplitter; - public ImRect HostBackupWorkRect; - public ImRect HostBackupParentWorkRect; - public Vector2 HostBackupPrevLineSize; - public Vector2 HostBackupCurrLineSize; - public Vector2 HostBackupCursorMaxPos; - public ImVec1 HostBackupColumnsOffset; - public float HostBackupItemWidth; - public int HostBackupItemWidthStackSize; - public unsafe ImGuiTableTempData(int tableIndex = default, float lastTimeActive = default, Vector2 userOuterSize = default, ImDrawListSplitter drawSplitter = default, ImRect hostBackupWorkRect = default, ImRect hostBackupParentWorkRect = default, Vector2 hostBackupPrevLineSize = default, Vector2 hostBackupCurrLineSize = default, Vector2 hostBackupCursorMaxPos = default, ImVec1 hostBackupColumnsOffset = default, float hostBackupItemWidth = default, int hostBackupItemWidthStackSize = default) - { - TableIndex = tableIndex; - LastTimeActive = lastTimeActive; - UserOuterSize = userOuterSize; - DrawSplitter = drawSplitter; - HostBackupWorkRect = hostBackupWorkRect; - HostBackupParentWorkRect = hostBackupParentWorkRect; - HostBackupPrevLineSize = hostBackupPrevLineSize; - HostBackupCurrLineSize = hostBackupCurrLineSize; - HostBackupCursorMaxPos = hostBackupCursorMaxPos; - HostBackupColumnsOffset = hostBackupColumnsOffset; - HostBackupItemWidth = hostBackupItemWidth; - HostBackupItemWidthStackSize = hostBackupItemWidthStackSize; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTableTempDataPtr : IEquatable<ImGuiTableTempDataPtr> - { - public ImGuiTableTempDataPtr(ImGuiTableTempData* handle) { Handle = handle; } - public ImGuiTableTempData* Handle; - public bool IsNull => Handle == null; - public static ImGuiTableTempDataPtr Null => new ImGuiTableTempDataPtr(null); - public ImGuiTableTempData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTableTempDataPtr(ImGuiTableTempData* handle) => new ImGuiTableTempDataPtr(handle); - public static implicit operator ImGuiTableTempData*(ImGuiTableTempDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle == right; - public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle != right; - public bool Equals(ImGuiTableTempDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTableTempDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTableTempDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref int TableIndex => ref Unsafe.AsRef<int>(&Handle->TableIndex); - public ref float LastTimeActive => ref Unsafe.AsRef<float>(&Handle->LastTimeActive); - public ref Vector2 UserOuterSize => ref Unsafe.AsRef<Vector2>(&Handle->UserOuterSize); - public ref ImDrawListSplitter DrawSplitter => ref Unsafe.AsRef<ImDrawListSplitter>(&Handle->DrawSplitter); - public ref ImRect HostBackupWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupWorkRect); - public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupParentWorkRect); - public ref Vector2 HostBackupPrevLineSize => ref Unsafe.AsRef<Vector2>(&Handle->HostBackupPrevLineSize); - public ref Vector2 HostBackupCurrLineSize => ref Unsafe.AsRef<Vector2>(&Handle->HostBackupCurrLineSize); - public ref Vector2 HostBackupCursorMaxPos => ref Unsafe.AsRef<Vector2>(&Handle->HostBackupCursorMaxPos); - public ref ImVec1 HostBackupColumnsOffset => ref Unsafe.AsRef<ImVec1>(&Handle->HostBackupColumnsOffset); - public ref float HostBackupItemWidth => ref Unsafe.AsRef<float>(&Handle->HostBackupItemWidth); - public ref int HostBackupItemWidthStackSize => ref Unsafe.AsRef<int>(&Handle->HostBackupItemWidthStackSize); - } -} -/* ImGuiTextBuffer.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTextBuffer - { - public ImVector<byte> Buf; - public unsafe ImGuiTextBuffer(ImVector<byte> buf = default) - { - Buf = buf; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTextBufferPtr : IEquatable<ImGuiTextBufferPtr> - { - public ImGuiTextBufferPtr(ImGuiTextBuffer* handle) { Handle = handle; } - public ImGuiTextBuffer* Handle; - public bool IsNull => Handle == null; - public static ImGuiTextBufferPtr Null => new ImGuiTextBufferPtr(null); - public ImGuiTextBuffer this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTextBufferPtr(ImGuiTextBuffer* handle) => new ImGuiTextBufferPtr(handle); - public static implicit operator ImGuiTextBuffer*(ImGuiTextBufferPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle == right; - public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle != right; - public bool Equals(ImGuiTextBufferPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTextBufferPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTextBufferPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImVector<byte> Buf => ref Unsafe.AsRef<ImVector<byte>>(&Handle->Buf); - } -} -/* ImGuiTextFilter.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTextFilter - { - public byte InputBuf_0; - public byte InputBuf_1; - public byte InputBuf_2; - public byte InputBuf_3; - public byte InputBuf_4; - public byte InputBuf_5; - public byte InputBuf_6; - public byte InputBuf_7; - public byte InputBuf_8; - public byte InputBuf_9; - public byte InputBuf_10; - public byte InputBuf_11; - public byte InputBuf_12; - public byte InputBuf_13; - public byte InputBuf_14; - public byte InputBuf_15; - public byte InputBuf_16; - public byte InputBuf_17; - public byte InputBuf_18; - public byte InputBuf_19; - public byte InputBuf_20; - public byte InputBuf_21; - public byte InputBuf_22; - public byte InputBuf_23; - public byte InputBuf_24; - public byte InputBuf_25; - public byte InputBuf_26; - public byte InputBuf_27; - public byte InputBuf_28; - public byte InputBuf_29; - public byte InputBuf_30; - public byte InputBuf_31; - public byte InputBuf_32; - public byte InputBuf_33; - public byte InputBuf_34; - public byte InputBuf_35; - public byte InputBuf_36; - public byte InputBuf_37; - public byte InputBuf_38; - public byte InputBuf_39; - public byte InputBuf_40; - public byte InputBuf_41; - public byte InputBuf_42; - public byte InputBuf_43; - public byte InputBuf_44; - public byte InputBuf_45; - public byte InputBuf_46; - public byte InputBuf_47; - public byte InputBuf_48; - public byte InputBuf_49; - public byte InputBuf_50; - public byte InputBuf_51; - public byte InputBuf_52; - public byte InputBuf_53; - public byte InputBuf_54; - public byte InputBuf_55; - public byte InputBuf_56; - public byte InputBuf_57; - public byte InputBuf_58; - public byte InputBuf_59; - public byte InputBuf_60; - public byte InputBuf_61; - public byte InputBuf_62; - public byte InputBuf_63; - public byte InputBuf_64; - public byte InputBuf_65; - public byte InputBuf_66; - public byte InputBuf_67; - public byte InputBuf_68; - public byte InputBuf_69; - public byte InputBuf_70; - public byte InputBuf_71; - public byte InputBuf_72; - public byte InputBuf_73; - public byte InputBuf_74; - public byte InputBuf_75; - public byte InputBuf_76; - public byte InputBuf_77; - public byte InputBuf_78; - public byte InputBuf_79; - public byte InputBuf_80; - public byte InputBuf_81; - public byte InputBuf_82; - public byte InputBuf_83; - public byte InputBuf_84; - public byte InputBuf_85; - public byte InputBuf_86; - public byte InputBuf_87; - public byte InputBuf_88; - public byte InputBuf_89; - public byte InputBuf_90; - public byte InputBuf_91; - public byte InputBuf_92; - public byte InputBuf_93; - public byte InputBuf_94; - public byte InputBuf_95; - public byte InputBuf_96; - public byte InputBuf_97; - public byte InputBuf_98; - public byte InputBuf_99; - public byte InputBuf_100; - public byte InputBuf_101; - public byte InputBuf_102; - public byte InputBuf_103; - public byte InputBuf_104; - public byte InputBuf_105; - public byte InputBuf_106; - public byte InputBuf_107; - public byte InputBuf_108; - public byte InputBuf_109; - public byte InputBuf_110; - public byte InputBuf_111; - public byte InputBuf_112; - public byte InputBuf_113; - public byte InputBuf_114; - public byte InputBuf_115; - public byte InputBuf_116; - public byte InputBuf_117; - public byte InputBuf_118; - public byte InputBuf_119; - public byte InputBuf_120; - public byte InputBuf_121; - public byte InputBuf_122; - public byte InputBuf_123; - public byte InputBuf_124; - public byte InputBuf_125; - public byte InputBuf_126; - public byte InputBuf_127; - public byte InputBuf_128; - public byte InputBuf_129; - public byte InputBuf_130; - public byte InputBuf_131; - public byte InputBuf_132; - public byte InputBuf_133; - public byte InputBuf_134; - public byte InputBuf_135; - public byte InputBuf_136; - public byte InputBuf_137; - public byte InputBuf_138; - public byte InputBuf_139; - public byte InputBuf_140; - public byte InputBuf_141; - public byte InputBuf_142; - public byte InputBuf_143; - public byte InputBuf_144; - public byte InputBuf_145; - public byte InputBuf_146; - public byte InputBuf_147; - public byte InputBuf_148; - public byte InputBuf_149; - public byte InputBuf_150; - public byte InputBuf_151; - public byte InputBuf_152; - public byte InputBuf_153; - public byte InputBuf_154; - public byte InputBuf_155; - public byte InputBuf_156; - public byte InputBuf_157; - public byte InputBuf_158; - public byte InputBuf_159; - public byte InputBuf_160; - public byte InputBuf_161; - public byte InputBuf_162; - public byte InputBuf_163; - public byte InputBuf_164; - public byte InputBuf_165; - public byte InputBuf_166; - public byte InputBuf_167; - public byte InputBuf_168; - public byte InputBuf_169; - public byte InputBuf_170; - public byte InputBuf_171; - public byte InputBuf_172; - public byte InputBuf_173; - public byte InputBuf_174; - public byte InputBuf_175; - public byte InputBuf_176; - public byte InputBuf_177; - public byte InputBuf_178; - public byte InputBuf_179; - public byte InputBuf_180; - public byte InputBuf_181; - public byte InputBuf_182; - public byte InputBuf_183; - public byte InputBuf_184; - public byte InputBuf_185; - public byte InputBuf_186; - public byte InputBuf_187; - public byte InputBuf_188; - public byte InputBuf_189; - public byte InputBuf_190; - public byte InputBuf_191; - public byte InputBuf_192; - public byte InputBuf_193; - public byte InputBuf_194; - public byte InputBuf_195; - public byte InputBuf_196; - public byte InputBuf_197; - public byte InputBuf_198; - public byte InputBuf_199; - public byte InputBuf_200; - public byte InputBuf_201; - public byte InputBuf_202; - public byte InputBuf_203; - public byte InputBuf_204; - public byte InputBuf_205; - public byte InputBuf_206; - public byte InputBuf_207; - public byte InputBuf_208; - public byte InputBuf_209; - public byte InputBuf_210; - public byte InputBuf_211; - public byte InputBuf_212; - public byte InputBuf_213; - public byte InputBuf_214; - public byte InputBuf_215; - public byte InputBuf_216; - public byte InputBuf_217; - public byte InputBuf_218; - public byte InputBuf_219; - public byte InputBuf_220; - public byte InputBuf_221; - public byte InputBuf_222; - public byte InputBuf_223; - public byte InputBuf_224; - public byte InputBuf_225; - public byte InputBuf_226; - public byte InputBuf_227; - public byte InputBuf_228; - public byte InputBuf_229; - public byte InputBuf_230; - public byte InputBuf_231; - public byte InputBuf_232; - public byte InputBuf_233; - public byte InputBuf_234; - public byte InputBuf_235; - public byte InputBuf_236; - public byte InputBuf_237; - public byte InputBuf_238; - public byte InputBuf_239; - public byte InputBuf_240; - public byte InputBuf_241; - public byte InputBuf_242; - public byte InputBuf_243; - public byte InputBuf_244; - public byte InputBuf_245; - public byte InputBuf_246; - public byte InputBuf_247; - public byte InputBuf_248; - public byte InputBuf_249; - public byte InputBuf_250; - public byte InputBuf_251; - public byte InputBuf_252; - public byte InputBuf_253; - public byte InputBuf_254; - public byte InputBuf_255; - public ImVector<ImGuiTextRange> Filters; - public int CountGrep; - public unsafe ImGuiTextFilter(byte* inputBuf = default, ImVector<ImGuiTextRange> filters = default, int countGrep = default) - { - if (inputBuf != default(byte*)) - { - InputBuf_0 = inputBuf[0]; - InputBuf_1 = inputBuf[1]; - InputBuf_2 = inputBuf[2]; - InputBuf_3 = inputBuf[3]; - InputBuf_4 = inputBuf[4]; - InputBuf_5 = inputBuf[5]; - InputBuf_6 = inputBuf[6]; - InputBuf_7 = inputBuf[7]; - InputBuf_8 = inputBuf[8]; - InputBuf_9 = inputBuf[9]; - InputBuf_10 = inputBuf[10]; - InputBuf_11 = inputBuf[11]; - InputBuf_12 = inputBuf[12]; - InputBuf_13 = inputBuf[13]; - InputBuf_14 = inputBuf[14]; - InputBuf_15 = inputBuf[15]; - InputBuf_16 = inputBuf[16]; - InputBuf_17 = inputBuf[17]; - InputBuf_18 = inputBuf[18]; - InputBuf_19 = inputBuf[19]; - InputBuf_20 = inputBuf[20]; - InputBuf_21 = inputBuf[21]; - InputBuf_22 = inputBuf[22]; - InputBuf_23 = inputBuf[23]; - InputBuf_24 = inputBuf[24]; - InputBuf_25 = inputBuf[25]; - InputBuf_26 = inputBuf[26]; - InputBuf_27 = inputBuf[27]; - InputBuf_28 = inputBuf[28]; - InputBuf_29 = inputBuf[29]; - InputBuf_30 = inputBuf[30]; - InputBuf_31 = inputBuf[31]; - InputBuf_32 = inputBuf[32]; - InputBuf_33 = inputBuf[33]; - InputBuf_34 = inputBuf[34]; - InputBuf_35 = inputBuf[35]; - InputBuf_36 = inputBuf[36]; - InputBuf_37 = inputBuf[37]; - InputBuf_38 = inputBuf[38]; - InputBuf_39 = inputBuf[39]; - InputBuf_40 = inputBuf[40]; - InputBuf_41 = inputBuf[41]; - InputBuf_42 = inputBuf[42]; - InputBuf_43 = inputBuf[43]; - InputBuf_44 = inputBuf[44]; - InputBuf_45 = inputBuf[45]; - InputBuf_46 = inputBuf[46]; - InputBuf_47 = inputBuf[47]; - InputBuf_48 = inputBuf[48]; - InputBuf_49 = inputBuf[49]; - InputBuf_50 = inputBuf[50]; - InputBuf_51 = inputBuf[51]; - InputBuf_52 = inputBuf[52]; - InputBuf_53 = inputBuf[53]; - InputBuf_54 = inputBuf[54]; - InputBuf_55 = inputBuf[55]; - InputBuf_56 = inputBuf[56]; - InputBuf_57 = inputBuf[57]; - InputBuf_58 = inputBuf[58]; - InputBuf_59 = inputBuf[59]; - InputBuf_60 = inputBuf[60]; - InputBuf_61 = inputBuf[61]; - InputBuf_62 = inputBuf[62]; - InputBuf_63 = inputBuf[63]; - InputBuf_64 = inputBuf[64]; - InputBuf_65 = inputBuf[65]; - InputBuf_66 = inputBuf[66]; - InputBuf_67 = inputBuf[67]; - InputBuf_68 = inputBuf[68]; - InputBuf_69 = inputBuf[69]; - InputBuf_70 = inputBuf[70]; - InputBuf_71 = inputBuf[71]; - InputBuf_72 = inputBuf[72]; - InputBuf_73 = inputBuf[73]; - InputBuf_74 = inputBuf[74]; - InputBuf_75 = inputBuf[75]; - InputBuf_76 = inputBuf[76]; - InputBuf_77 = inputBuf[77]; - InputBuf_78 = inputBuf[78]; - InputBuf_79 = inputBuf[79]; - InputBuf_80 = inputBuf[80]; - InputBuf_81 = inputBuf[81]; - InputBuf_82 = inputBuf[82]; - InputBuf_83 = inputBuf[83]; - InputBuf_84 = inputBuf[84]; - InputBuf_85 = inputBuf[85]; - InputBuf_86 = inputBuf[86]; - InputBuf_87 = inputBuf[87]; - InputBuf_88 = inputBuf[88]; - InputBuf_89 = inputBuf[89]; - InputBuf_90 = inputBuf[90]; - InputBuf_91 = inputBuf[91]; - InputBuf_92 = inputBuf[92]; - InputBuf_93 = inputBuf[93]; - InputBuf_94 = inputBuf[94]; - InputBuf_95 = inputBuf[95]; - InputBuf_96 = inputBuf[96]; - InputBuf_97 = inputBuf[97]; - InputBuf_98 = inputBuf[98]; - InputBuf_99 = inputBuf[99]; - InputBuf_100 = inputBuf[100]; - InputBuf_101 = inputBuf[101]; - InputBuf_102 = inputBuf[102]; - InputBuf_103 = inputBuf[103]; - InputBuf_104 = inputBuf[104]; - InputBuf_105 = inputBuf[105]; - InputBuf_106 = inputBuf[106]; - InputBuf_107 = inputBuf[107]; - InputBuf_108 = inputBuf[108]; - InputBuf_109 = inputBuf[109]; - InputBuf_110 = inputBuf[110]; - InputBuf_111 = inputBuf[111]; - InputBuf_112 = inputBuf[112]; - InputBuf_113 = inputBuf[113]; - InputBuf_114 = inputBuf[114]; - InputBuf_115 = inputBuf[115]; - InputBuf_116 = inputBuf[116]; - InputBuf_117 = inputBuf[117]; - InputBuf_118 = inputBuf[118]; - InputBuf_119 = inputBuf[119]; - InputBuf_120 = inputBuf[120]; - InputBuf_121 = inputBuf[121]; - InputBuf_122 = inputBuf[122]; - InputBuf_123 = inputBuf[123]; - InputBuf_124 = inputBuf[124]; - InputBuf_125 = inputBuf[125]; - InputBuf_126 = inputBuf[126]; - InputBuf_127 = inputBuf[127]; - InputBuf_128 = inputBuf[128]; - InputBuf_129 = inputBuf[129]; - InputBuf_130 = inputBuf[130]; - InputBuf_131 = inputBuf[131]; - InputBuf_132 = inputBuf[132]; - InputBuf_133 = inputBuf[133]; - InputBuf_134 = inputBuf[134]; - InputBuf_135 = inputBuf[135]; - InputBuf_136 = inputBuf[136]; - InputBuf_137 = inputBuf[137]; - InputBuf_138 = inputBuf[138]; - InputBuf_139 = inputBuf[139]; - InputBuf_140 = inputBuf[140]; - InputBuf_141 = inputBuf[141]; - InputBuf_142 = inputBuf[142]; - InputBuf_143 = inputBuf[143]; - InputBuf_144 = inputBuf[144]; - InputBuf_145 = inputBuf[145]; - InputBuf_146 = inputBuf[146]; - InputBuf_147 = inputBuf[147]; - InputBuf_148 = inputBuf[148]; - InputBuf_149 = inputBuf[149]; - InputBuf_150 = inputBuf[150]; - InputBuf_151 = inputBuf[151]; - InputBuf_152 = inputBuf[152]; - InputBuf_153 = inputBuf[153]; - InputBuf_154 = inputBuf[154]; - InputBuf_155 = inputBuf[155]; - InputBuf_156 = inputBuf[156]; - InputBuf_157 = inputBuf[157]; - InputBuf_158 = inputBuf[158]; - InputBuf_159 = inputBuf[159]; - InputBuf_160 = inputBuf[160]; - InputBuf_161 = inputBuf[161]; - InputBuf_162 = inputBuf[162]; - InputBuf_163 = inputBuf[163]; - InputBuf_164 = inputBuf[164]; - InputBuf_165 = inputBuf[165]; - InputBuf_166 = inputBuf[166]; - InputBuf_167 = inputBuf[167]; - InputBuf_168 = inputBuf[168]; - InputBuf_169 = inputBuf[169]; - InputBuf_170 = inputBuf[170]; - InputBuf_171 = inputBuf[171]; - InputBuf_172 = inputBuf[172]; - InputBuf_173 = inputBuf[173]; - InputBuf_174 = inputBuf[174]; - InputBuf_175 = inputBuf[175]; - InputBuf_176 = inputBuf[176]; - InputBuf_177 = inputBuf[177]; - InputBuf_178 = inputBuf[178]; - InputBuf_179 = inputBuf[179]; - InputBuf_180 = inputBuf[180]; - InputBuf_181 = inputBuf[181]; - InputBuf_182 = inputBuf[182]; - InputBuf_183 = inputBuf[183]; - InputBuf_184 = inputBuf[184]; - InputBuf_185 = inputBuf[185]; - InputBuf_186 = inputBuf[186]; - InputBuf_187 = inputBuf[187]; - InputBuf_188 = inputBuf[188]; - InputBuf_189 = inputBuf[189]; - InputBuf_190 = inputBuf[190]; - InputBuf_191 = inputBuf[191]; - InputBuf_192 = inputBuf[192]; - InputBuf_193 = inputBuf[193]; - InputBuf_194 = inputBuf[194]; - InputBuf_195 = inputBuf[195]; - InputBuf_196 = inputBuf[196]; - InputBuf_197 = inputBuf[197]; - InputBuf_198 = inputBuf[198]; - InputBuf_199 = inputBuf[199]; - InputBuf_200 = inputBuf[200]; - InputBuf_201 = inputBuf[201]; - InputBuf_202 = inputBuf[202]; - InputBuf_203 = inputBuf[203]; - InputBuf_204 = inputBuf[204]; - InputBuf_205 = inputBuf[205]; - InputBuf_206 = inputBuf[206]; - InputBuf_207 = inputBuf[207]; - InputBuf_208 = inputBuf[208]; - InputBuf_209 = inputBuf[209]; - InputBuf_210 = inputBuf[210]; - InputBuf_211 = inputBuf[211]; - InputBuf_212 = inputBuf[212]; - InputBuf_213 = inputBuf[213]; - InputBuf_214 = inputBuf[214]; - InputBuf_215 = inputBuf[215]; - InputBuf_216 = inputBuf[216]; - InputBuf_217 = inputBuf[217]; - InputBuf_218 = inputBuf[218]; - InputBuf_219 = inputBuf[219]; - InputBuf_220 = inputBuf[220]; - InputBuf_221 = inputBuf[221]; - InputBuf_222 = inputBuf[222]; - InputBuf_223 = inputBuf[223]; - InputBuf_224 = inputBuf[224]; - InputBuf_225 = inputBuf[225]; - InputBuf_226 = inputBuf[226]; - InputBuf_227 = inputBuf[227]; - InputBuf_228 = inputBuf[228]; - InputBuf_229 = inputBuf[229]; - InputBuf_230 = inputBuf[230]; - InputBuf_231 = inputBuf[231]; - InputBuf_232 = inputBuf[232]; - InputBuf_233 = inputBuf[233]; - InputBuf_234 = inputBuf[234]; - InputBuf_235 = inputBuf[235]; - InputBuf_236 = inputBuf[236]; - InputBuf_237 = inputBuf[237]; - InputBuf_238 = inputBuf[238]; - InputBuf_239 = inputBuf[239]; - InputBuf_240 = inputBuf[240]; - InputBuf_241 = inputBuf[241]; - InputBuf_242 = inputBuf[242]; - InputBuf_243 = inputBuf[243]; - InputBuf_244 = inputBuf[244]; - InputBuf_245 = inputBuf[245]; - InputBuf_246 = inputBuf[246]; - InputBuf_247 = inputBuf[247]; - InputBuf_248 = inputBuf[248]; - InputBuf_249 = inputBuf[249]; - InputBuf_250 = inputBuf[250]; - InputBuf_251 = inputBuf[251]; - InputBuf_252 = inputBuf[252]; - InputBuf_253 = inputBuf[253]; - InputBuf_254 = inputBuf[254]; - InputBuf_255 = inputBuf[255]; - } - Filters = filters; - CountGrep = countGrep; - } - public unsafe ImGuiTextFilter(Span<byte> inputBuf = default, ImVector<ImGuiTextRange> filters = default, int countGrep = default) - { - if (inputBuf != default(Span<byte>)) - { - InputBuf_0 = inputBuf[0]; - InputBuf_1 = inputBuf[1]; - InputBuf_2 = inputBuf[2]; - InputBuf_3 = inputBuf[3]; - InputBuf_4 = inputBuf[4]; - InputBuf_5 = inputBuf[5]; - InputBuf_6 = inputBuf[6]; - InputBuf_7 = inputBuf[7]; - InputBuf_8 = inputBuf[8]; - InputBuf_9 = inputBuf[9]; - InputBuf_10 = inputBuf[10]; - InputBuf_11 = inputBuf[11]; - InputBuf_12 = inputBuf[12]; - InputBuf_13 = inputBuf[13]; - InputBuf_14 = inputBuf[14]; - InputBuf_15 = inputBuf[15]; - InputBuf_16 = inputBuf[16]; - InputBuf_17 = inputBuf[17]; - InputBuf_18 = inputBuf[18]; - InputBuf_19 = inputBuf[19]; - InputBuf_20 = inputBuf[20]; - InputBuf_21 = inputBuf[21]; - InputBuf_22 = inputBuf[22]; - InputBuf_23 = inputBuf[23]; - InputBuf_24 = inputBuf[24]; - InputBuf_25 = inputBuf[25]; - InputBuf_26 = inputBuf[26]; - InputBuf_27 = inputBuf[27]; - InputBuf_28 = inputBuf[28]; - InputBuf_29 = inputBuf[29]; - InputBuf_30 = inputBuf[30]; - InputBuf_31 = inputBuf[31]; - InputBuf_32 = inputBuf[32]; - InputBuf_33 = inputBuf[33]; - InputBuf_34 = inputBuf[34]; - InputBuf_35 = inputBuf[35]; - InputBuf_36 = inputBuf[36]; - InputBuf_37 = inputBuf[37]; - InputBuf_38 = inputBuf[38]; - InputBuf_39 = inputBuf[39]; - InputBuf_40 = inputBuf[40]; - InputBuf_41 = inputBuf[41]; - InputBuf_42 = inputBuf[42]; - InputBuf_43 = inputBuf[43]; - InputBuf_44 = inputBuf[44]; - InputBuf_45 = inputBuf[45]; - InputBuf_46 = inputBuf[46]; - InputBuf_47 = inputBuf[47]; - InputBuf_48 = inputBuf[48]; - InputBuf_49 = inputBuf[49]; - InputBuf_50 = inputBuf[50]; - InputBuf_51 = inputBuf[51]; - InputBuf_52 = inputBuf[52]; - InputBuf_53 = inputBuf[53]; - InputBuf_54 = inputBuf[54]; - InputBuf_55 = inputBuf[55]; - InputBuf_56 = inputBuf[56]; - InputBuf_57 = inputBuf[57]; - InputBuf_58 = inputBuf[58]; - InputBuf_59 = inputBuf[59]; - InputBuf_60 = inputBuf[60]; - InputBuf_61 = inputBuf[61]; - InputBuf_62 = inputBuf[62]; - InputBuf_63 = inputBuf[63]; - InputBuf_64 = inputBuf[64]; - InputBuf_65 = inputBuf[65]; - InputBuf_66 = inputBuf[66]; - InputBuf_67 = inputBuf[67]; - InputBuf_68 = inputBuf[68]; - InputBuf_69 = inputBuf[69]; - InputBuf_70 = inputBuf[70]; - InputBuf_71 = inputBuf[71]; - InputBuf_72 = inputBuf[72]; - InputBuf_73 = inputBuf[73]; - InputBuf_74 = inputBuf[74]; - InputBuf_75 = inputBuf[75]; - InputBuf_76 = inputBuf[76]; - InputBuf_77 = inputBuf[77]; - InputBuf_78 = inputBuf[78]; - InputBuf_79 = inputBuf[79]; - InputBuf_80 = inputBuf[80]; - InputBuf_81 = inputBuf[81]; - InputBuf_82 = inputBuf[82]; - InputBuf_83 = inputBuf[83]; - InputBuf_84 = inputBuf[84]; - InputBuf_85 = inputBuf[85]; - InputBuf_86 = inputBuf[86]; - InputBuf_87 = inputBuf[87]; - InputBuf_88 = inputBuf[88]; - InputBuf_89 = inputBuf[89]; - InputBuf_90 = inputBuf[90]; - InputBuf_91 = inputBuf[91]; - InputBuf_92 = inputBuf[92]; - InputBuf_93 = inputBuf[93]; - InputBuf_94 = inputBuf[94]; - InputBuf_95 = inputBuf[95]; - InputBuf_96 = inputBuf[96]; - InputBuf_97 = inputBuf[97]; - InputBuf_98 = inputBuf[98]; - InputBuf_99 = inputBuf[99]; - InputBuf_100 = inputBuf[100]; - InputBuf_101 = inputBuf[101]; - InputBuf_102 = inputBuf[102]; - InputBuf_103 = inputBuf[103]; - InputBuf_104 = inputBuf[104]; - InputBuf_105 = inputBuf[105]; - InputBuf_106 = inputBuf[106]; - InputBuf_107 = inputBuf[107]; - InputBuf_108 = inputBuf[108]; - InputBuf_109 = inputBuf[109]; - InputBuf_110 = inputBuf[110]; - InputBuf_111 = inputBuf[111]; - InputBuf_112 = inputBuf[112]; - InputBuf_113 = inputBuf[113]; - InputBuf_114 = inputBuf[114]; - InputBuf_115 = inputBuf[115]; - InputBuf_116 = inputBuf[116]; - InputBuf_117 = inputBuf[117]; - InputBuf_118 = inputBuf[118]; - InputBuf_119 = inputBuf[119]; - InputBuf_120 = inputBuf[120]; - InputBuf_121 = inputBuf[121]; - InputBuf_122 = inputBuf[122]; - InputBuf_123 = inputBuf[123]; - InputBuf_124 = inputBuf[124]; - InputBuf_125 = inputBuf[125]; - InputBuf_126 = inputBuf[126]; - InputBuf_127 = inputBuf[127]; - InputBuf_128 = inputBuf[128]; - InputBuf_129 = inputBuf[129]; - InputBuf_130 = inputBuf[130]; - InputBuf_131 = inputBuf[131]; - InputBuf_132 = inputBuf[132]; - InputBuf_133 = inputBuf[133]; - InputBuf_134 = inputBuf[134]; - InputBuf_135 = inputBuf[135]; - InputBuf_136 = inputBuf[136]; - InputBuf_137 = inputBuf[137]; - InputBuf_138 = inputBuf[138]; - InputBuf_139 = inputBuf[139]; - InputBuf_140 = inputBuf[140]; - InputBuf_141 = inputBuf[141]; - InputBuf_142 = inputBuf[142]; - InputBuf_143 = inputBuf[143]; - InputBuf_144 = inputBuf[144]; - InputBuf_145 = inputBuf[145]; - InputBuf_146 = inputBuf[146]; - InputBuf_147 = inputBuf[147]; - InputBuf_148 = inputBuf[148]; - InputBuf_149 = inputBuf[149]; - InputBuf_150 = inputBuf[150]; - InputBuf_151 = inputBuf[151]; - InputBuf_152 = inputBuf[152]; - InputBuf_153 = inputBuf[153]; - InputBuf_154 = inputBuf[154]; - InputBuf_155 = inputBuf[155]; - InputBuf_156 = inputBuf[156]; - InputBuf_157 = inputBuf[157]; - InputBuf_158 = inputBuf[158]; - InputBuf_159 = inputBuf[159]; - InputBuf_160 = inputBuf[160]; - InputBuf_161 = inputBuf[161]; - InputBuf_162 = inputBuf[162]; - InputBuf_163 = inputBuf[163]; - InputBuf_164 = inputBuf[164]; - InputBuf_165 = inputBuf[165]; - InputBuf_166 = inputBuf[166]; - InputBuf_167 = inputBuf[167]; - InputBuf_168 = inputBuf[168]; - InputBuf_169 = inputBuf[169]; - InputBuf_170 = inputBuf[170]; - InputBuf_171 = inputBuf[171]; - InputBuf_172 = inputBuf[172]; - InputBuf_173 = inputBuf[173]; - InputBuf_174 = inputBuf[174]; - InputBuf_175 = inputBuf[175]; - InputBuf_176 = inputBuf[176]; - InputBuf_177 = inputBuf[177]; - InputBuf_178 = inputBuf[178]; - InputBuf_179 = inputBuf[179]; - InputBuf_180 = inputBuf[180]; - InputBuf_181 = inputBuf[181]; - InputBuf_182 = inputBuf[182]; - InputBuf_183 = inputBuf[183]; - InputBuf_184 = inputBuf[184]; - InputBuf_185 = inputBuf[185]; - InputBuf_186 = inputBuf[186]; - InputBuf_187 = inputBuf[187]; - InputBuf_188 = inputBuf[188]; - InputBuf_189 = inputBuf[189]; - InputBuf_190 = inputBuf[190]; - InputBuf_191 = inputBuf[191]; - InputBuf_192 = inputBuf[192]; - InputBuf_193 = inputBuf[193]; - InputBuf_194 = inputBuf[194]; - InputBuf_195 = inputBuf[195]; - InputBuf_196 = inputBuf[196]; - InputBuf_197 = inputBuf[197]; - InputBuf_198 = inputBuf[198]; - InputBuf_199 = inputBuf[199]; - InputBuf_200 = inputBuf[200]; - InputBuf_201 = inputBuf[201]; - InputBuf_202 = inputBuf[202]; - InputBuf_203 = inputBuf[203]; - InputBuf_204 = inputBuf[204]; - InputBuf_205 = inputBuf[205]; - InputBuf_206 = inputBuf[206]; - InputBuf_207 = inputBuf[207]; - InputBuf_208 = inputBuf[208]; - InputBuf_209 = inputBuf[209]; - InputBuf_210 = inputBuf[210]; - InputBuf_211 = inputBuf[211]; - InputBuf_212 = inputBuf[212]; - InputBuf_213 = inputBuf[213]; - InputBuf_214 = inputBuf[214]; - InputBuf_215 = inputBuf[215]; - InputBuf_216 = inputBuf[216]; - InputBuf_217 = inputBuf[217]; - InputBuf_218 = inputBuf[218]; - InputBuf_219 = inputBuf[219]; - InputBuf_220 = inputBuf[220]; - InputBuf_221 = inputBuf[221]; - InputBuf_222 = inputBuf[222]; - InputBuf_223 = inputBuf[223]; - InputBuf_224 = inputBuf[224]; - InputBuf_225 = inputBuf[225]; - InputBuf_226 = inputBuf[226]; - InputBuf_227 = inputBuf[227]; - InputBuf_228 = inputBuf[228]; - InputBuf_229 = inputBuf[229]; - InputBuf_230 = inputBuf[230]; - InputBuf_231 = inputBuf[231]; - InputBuf_232 = inputBuf[232]; - InputBuf_233 = inputBuf[233]; - InputBuf_234 = inputBuf[234]; - InputBuf_235 = inputBuf[235]; - InputBuf_236 = inputBuf[236]; - InputBuf_237 = inputBuf[237]; - InputBuf_238 = inputBuf[238]; - InputBuf_239 = inputBuf[239]; - InputBuf_240 = inputBuf[240]; - InputBuf_241 = inputBuf[241]; - InputBuf_242 = inputBuf[242]; - InputBuf_243 = inputBuf[243]; - InputBuf_244 = inputBuf[244]; - InputBuf_245 = inputBuf[245]; - InputBuf_246 = inputBuf[246]; - InputBuf_247 = inputBuf[247]; - InputBuf_248 = inputBuf[248]; - InputBuf_249 = inputBuf[249]; - InputBuf_250 = inputBuf[250]; - InputBuf_251 = inputBuf[251]; - InputBuf_252 = inputBuf[252]; - InputBuf_253 = inputBuf[253]; - InputBuf_254 = inputBuf[254]; - InputBuf_255 = inputBuf[255]; - } - Filters = filters; - CountGrep = countGrep; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTextFilterPtr : IEquatable<ImGuiTextFilterPtr> - { - public ImGuiTextFilterPtr(ImGuiTextFilter* handle) { Handle = handle; } - public ImGuiTextFilter* Handle; - public bool IsNull => Handle == null; - public static ImGuiTextFilterPtr Null => new ImGuiTextFilterPtr(null); - public ImGuiTextFilter this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTextFilterPtr(ImGuiTextFilter* handle) => new ImGuiTextFilterPtr(handle); - public static implicit operator ImGuiTextFilter*(ImGuiTextFilterPtr handle) => handle.Handle; - public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle == right; - public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle != right; - public bool Equals(ImGuiTextFilterPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTextFilterPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTextFilterPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public unsafe Span<byte> InputBuf - { - get - { - return new Span<byte>(&Handle->InputBuf_0, 256); - } - } - public ref ImVector<ImGuiTextRange> Filters => ref Unsafe.AsRef<ImVector<ImGuiTextRange>>(&Handle->Filters); - public ref int CountGrep => ref Unsafe.AsRef<int>(&Handle->CountGrep); - } -} -/* ImGuiTextRange.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTextRange - { - public unsafe byte* B; - public unsafe byte* E; - public unsafe ImGuiTextRange(byte* b = default, byte* e = default) - { - B = b; - E = e; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiTextRangePtr : IEquatable<ImGuiTextRangePtr> - { - public ImGuiTextRangePtr(ImGuiTextRange* handle) { Handle = handle; } - public ImGuiTextRange* Handle; - public bool IsNull => Handle == null; - public static ImGuiTextRangePtr Null => new ImGuiTextRangePtr(null); - public ImGuiTextRange this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiTextRangePtr(ImGuiTextRange* handle) => new ImGuiTextRangePtr(handle); - public static implicit operator ImGuiTextRange*(ImGuiTextRangePtr handle) => handle.Handle; - public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle == right; - public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle != right; - public bool Equals(ImGuiTextRangePtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiTextRangePtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiTextRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); - public byte* B { get => Handle->B; set => Handle->B = value; } - public byte* E { get => Handle->E; set => Handle->E = value; } - } -} -/* ImGuiViewport.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiViewport - { - public uint ID; - public ImGuiViewportFlags Flags; - public Vector2 Pos; - public Vector2 Size; - public Vector2 WorkPos; - public Vector2 WorkSize; - public float DpiScale; - public uint ParentViewportId; - public unsafe ImDrawData* DrawData; - public unsafe void* RendererUserData; - public unsafe void* PlatformUserData; - public unsafe void* PlatformHandle; - public unsafe void* PlatformHandleRaw; - public byte PlatformRequestMove; - public byte PlatformRequestResize; - public byte PlatformRequestClose; - public unsafe ImGuiViewport(uint id = default, ImGuiViewportFlags flags = default, Vector2 pos = default, Vector2 size = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, uint parentViewportId = default, ImDrawDataPtr drawData = default, void* rendererUserData = default, void* platformUserData = default, void* platformHandle = default, void* platformHandleRaw = default, bool platformRequestMove = default, bool platformRequestResize = default, bool platformRequestClose = default) - { - ID = id; - Flags = flags; - Pos = pos; - Size = size; - WorkPos = workPos; - WorkSize = workSize; - DpiScale = dpiScale; - ParentViewportId = parentViewportId; - DrawData = drawData; - RendererUserData = rendererUserData; - PlatformUserData = platformUserData; - PlatformHandle = platformHandle; - PlatformHandleRaw = platformHandleRaw; - PlatformRequestMove = platformRequestMove ? (byte)1 : (byte)0; - PlatformRequestResize = platformRequestResize ? (byte)1 : (byte)0; - PlatformRequestClose = platformRequestClose ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiViewportPtr : IEquatable<ImGuiViewportPtr> - { - public ImGuiViewportPtr(ImGuiViewport* handle) { Handle = handle; } - public ImGuiViewport* Handle; - public bool IsNull => Handle == null; - public static ImGuiViewportPtr Null => new ImGuiViewportPtr(null); - public ImGuiViewport this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiViewportPtr(ImGuiViewport* handle) => new ImGuiViewportPtr(handle); - public static implicit operator ImGuiViewport*(ImGuiViewportPtr handle) => handle.Handle; - public static bool operator ==(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle == right; - public static bool operator !=(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle != right; - public bool Equals(ImGuiViewportPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiViewportPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiViewportPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiViewportFlags Flags => ref Unsafe.AsRef<ImGuiViewportFlags>(&Handle->Flags); - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - public ref Vector2 Size => ref Unsafe.AsRef<Vector2>(&Handle->Size); - public ref Vector2 WorkPos => ref Unsafe.AsRef<Vector2>(&Handle->WorkPos); - public ref Vector2 WorkSize => ref Unsafe.AsRef<Vector2>(&Handle->WorkSize); - public ref float DpiScale => ref Unsafe.AsRef<float>(&Handle->DpiScale); - public ref uint ParentViewportId => ref Unsafe.AsRef<uint>(&Handle->ParentViewportId); - public ref ImDrawDataPtr DrawData => ref Unsafe.AsRef<ImDrawDataPtr>(&Handle->DrawData); - public void* RendererUserData { get => Handle->RendererUserData; set => Handle->RendererUserData = value; } - public void* PlatformUserData { get => Handle->PlatformUserData; set => Handle->PlatformUserData = value; } - public void* PlatformHandle { get => Handle->PlatformHandle; set => Handle->PlatformHandle = value; } - public void* PlatformHandleRaw { get => Handle->PlatformHandleRaw; set => Handle->PlatformHandleRaw = value; } - public ref bool PlatformRequestMove => ref Unsafe.AsRef<bool>(&Handle->PlatformRequestMove); - public ref bool PlatformRequestResize => ref Unsafe.AsRef<bool>(&Handle->PlatformRequestResize); - public ref bool PlatformRequestClose => ref Unsafe.AsRef<bool>(&Handle->PlatformRequestClose); - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiViewportPtrPtr : IEquatable<ImGuiViewportPtrPtr> - { - public ImGuiViewportPtrPtr(ImGuiViewport** handle) { Handle = handle; } - public ImGuiViewport** Handle; - public bool IsNull => Handle == null; - public static ImGuiViewportPtrPtr Null => new ImGuiViewportPtrPtr(null); - public ImGuiViewport* this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiViewportPtrPtr(ImGuiViewport** handle) => new ImGuiViewportPtrPtr(handle); - public static implicit operator ImGuiViewport**(ImGuiViewportPtrPtr handle) => handle.Handle; - public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle == right; - public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle != right; - public bool Equals(ImGuiViewportPtrPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiViewportPtrPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiViewportPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* ImGuiViewportP.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiViewportP - { - public ImGuiViewport ImGuiViewport; - public int Idx; - public int LastFrameActive; - public int LastFrontMostStampCount; - public uint LastNameHash; - public Vector2 LastPos; - public float Alpha; - public float LastAlpha; - public short PlatformMonitor; - public byte PlatformWindowCreated; - public unsafe ImGuiWindow* Window; - public int DrawListsLastFrame_0; - public int DrawListsLastFrame_1; - public unsafe ImDrawList* DrawLists_0; - public unsafe ImDrawList* DrawLists_1; - public ImDrawData DrawDataP; - public ImDrawDataBuilder DrawDataBuilder; - public Vector2 LastPlatformPos; - public Vector2 LastPlatformSize; - public Vector2 LastRendererSize; - public Vector2 WorkOffsetMin; - public Vector2 WorkOffsetMax; - public Vector2 BuildWorkOffsetMin; - public Vector2 BuildWorkOffsetMax; - public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, int* drawListsLastFrame = default, ImDrawListPtrPtr drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) - { - ImGuiViewport = imGuiViewport; - Idx = idx; - LastFrameActive = lastFrameActive; - LastFrontMostStampCount = lastFrontMostStampCount; - LastNameHash = lastNameHash; - LastPos = lastPos; - Alpha = alpha; - LastAlpha = lastAlpha; - PlatformMonitor = platformMonitor; - PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; - Window = window; - if (drawListsLastFrame != default(int*)) - { - DrawListsLastFrame_0 = drawListsLastFrame[0]; - DrawListsLastFrame_1 = drawListsLastFrame[1]; - } - if (drawLists != default(ImDrawListPtrPtr)) - { - DrawLists_0 = drawLists[0]; - DrawLists_1 = drawLists[1]; - } - DrawDataP = drawDataP; - DrawDataBuilder = drawDataBuilder; - LastPlatformPos = lastPlatformPos; - LastPlatformSize = lastPlatformSize; - LastRendererSize = lastRendererSize; - WorkOffsetMin = workOffsetMin; - WorkOffsetMax = workOffsetMax; - BuildWorkOffsetMin = buildWorkOffsetMin; - BuildWorkOffsetMax = buildWorkOffsetMax; - } - public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, Span<int> drawListsLastFrame = default, Span<Pointer<ImDrawList>> drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) - { - ImGuiViewport = imGuiViewport; - Idx = idx; - LastFrameActive = lastFrameActive; - LastFrontMostStampCount = lastFrontMostStampCount; - LastNameHash = lastNameHash; - LastPos = lastPos; - Alpha = alpha; - LastAlpha = lastAlpha; - PlatformMonitor = platformMonitor; - PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; - Window = window; - if (drawListsLastFrame != default(Span<int>)) - { - DrawListsLastFrame_0 = drawListsLastFrame[0]; - DrawListsLastFrame_1 = drawListsLastFrame[1]; - } - if (drawLists != default(Span<Pointer<ImDrawList>>)) - { - DrawLists_0 = drawLists[0]; - DrawLists_1 = drawLists[1]; - } - DrawDataP = drawDataP; - DrawDataBuilder = drawDataBuilder; - LastPlatformPos = lastPlatformPos; - LastPlatformSize = lastPlatformSize; - LastRendererSize = lastRendererSize; - WorkOffsetMin = workOffsetMin; - WorkOffsetMax = workOffsetMax; - BuildWorkOffsetMin = buildWorkOffsetMin; - BuildWorkOffsetMax = buildWorkOffsetMax; - } - public unsafe Span<Pointer<ImDrawList>> DrawLists - { - get - { - fixed (ImDrawList** p = &this.DrawLists_0) - { - return new Span<Pointer<ImDrawList>>(p, 2); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiViewportPPtr : IEquatable<ImGuiViewportPPtr> - { - public ImGuiViewportPPtr(ImGuiViewportP* handle) { Handle = handle; } - public ImGuiViewportP* Handle; - public bool IsNull => Handle == null; - public static ImGuiViewportPPtr Null => new ImGuiViewportPPtr(null); - public ImGuiViewportP this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiViewportPPtr(ImGuiViewportP* handle) => new ImGuiViewportPPtr(handle); - public static implicit operator ImGuiViewportP*(ImGuiViewportPPtr handle) => handle.Handle; - public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle == right; - public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle != right; - public bool Equals(ImGuiViewportPPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiViewportPPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiViewportPPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiViewport ImGuiViewport => ref Unsafe.AsRef<ImGuiViewport>(&Handle->ImGuiViewport); - public ref int Idx => ref Unsafe.AsRef<int>(&Handle->Idx); - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - public ref int LastFrontMostStampCount => ref Unsafe.AsRef<int>(&Handle->LastFrontMostStampCount); - public ref uint LastNameHash => ref Unsafe.AsRef<uint>(&Handle->LastNameHash); - public ref Vector2 LastPos => ref Unsafe.AsRef<Vector2>(&Handle->LastPos); - public ref float Alpha => ref Unsafe.AsRef<float>(&Handle->Alpha); - public ref float LastAlpha => ref Unsafe.AsRef<float>(&Handle->LastAlpha); - public ref short PlatformMonitor => ref Unsafe.AsRef<short>(&Handle->PlatformMonitor); - public ref bool PlatformWindowCreated => ref Unsafe.AsRef<bool>(&Handle->PlatformWindowCreated); - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - public unsafe Span<int> DrawListsLastFrame - { - get - { - return new Span<int>(&Handle->DrawListsLastFrame_0, 2); - } - } - public ref ImDrawData DrawDataP => ref Unsafe.AsRef<ImDrawData>(&Handle->DrawDataP); - public ref ImDrawDataBuilder DrawDataBuilder => ref Unsafe.AsRef<ImDrawDataBuilder>(&Handle->DrawDataBuilder); - public ref Vector2 LastPlatformPos => ref Unsafe.AsRef<Vector2>(&Handle->LastPlatformPos); - public ref Vector2 LastPlatformSize => ref Unsafe.AsRef<Vector2>(&Handle->LastPlatformSize); - public ref Vector2 LastRendererSize => ref Unsafe.AsRef<Vector2>(&Handle->LastRendererSize); - public ref Vector2 WorkOffsetMin => ref Unsafe.AsRef<Vector2>(&Handle->WorkOffsetMin); - public ref Vector2 WorkOffsetMax => ref Unsafe.AsRef<Vector2>(&Handle->WorkOffsetMax); - public ref Vector2 BuildWorkOffsetMin => ref Unsafe.AsRef<Vector2>(&Handle->BuildWorkOffsetMin); - public ref Vector2 BuildWorkOffsetMax => ref Unsafe.AsRef<Vector2>(&Handle->BuildWorkOffsetMax); - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiViewportPPtrPtr : IEquatable<ImGuiViewportPPtrPtr> - { - public ImGuiViewportPPtrPtr(ImGuiViewportP** handle) { Handle = handle; } - public ImGuiViewportP** Handle; - public bool IsNull => Handle == null; - public static ImGuiViewportPPtrPtr Null => new ImGuiViewportPPtrPtr(null); - public ImGuiViewportP* this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiViewportPPtrPtr(ImGuiViewportP** handle) => new ImGuiViewportPPtrPtr(handle); - public static implicit operator ImGuiViewportP**(ImGuiViewportPPtrPtr handle) => handle.Handle; - public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle == right; - public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle != right; - public bool Equals(ImGuiViewportPPtrPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiViewportPPtrPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiViewportPPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* ImGuiWindow.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindow - { - public unsafe byte* Name; - public uint ID; - public ImGuiWindowFlags Flags; - public ImGuiWindowFlags FlagsPreviousFrame; - public ImGuiWindowClass WindowClass; - public unsafe ImGuiViewportP* Viewport; - public uint ViewportId; - public Vector2 ViewportPos; - public int ViewportAllowPlatformMonitorExtend; - public Vector2 Pos; - public Vector2 Size; - public Vector2 SizeFull; - public Vector2 ContentSize; - public Vector2 ContentSizeIdeal; - public Vector2 ContentSizeExplicit; - public Vector2 WindowPadding; - public float WindowRounding; - public float WindowBorderSize; - public int NameBufLen; - public uint MoveId; - public uint TabId; - public uint ChildId; - public Vector2 Scroll; - public Vector2 ScrollMax; - public Vector2 ScrollTarget; - public Vector2 ScrollTargetCenterRatio; - public Vector2 ScrollTargetEdgeSnapDist; - public Vector2 ScrollbarSizes; - public byte ScrollbarX; - public byte ScrollbarY; - public byte ViewportOwned; - public byte Active; - public byte WasActive; - public byte WriteAccessed; - public byte Collapsed; - public byte WantCollapseToggle; - public byte SkipItems; - public byte Appearing; - public byte Hidden; - public byte IsFallbackWindow; - public byte IsExplicitChild; - public byte HasCloseButton; - public byte ResizeBorderHeld; - public short BeginCount; - public short BeginOrderWithinParent; - public short BeginOrderWithinContext; - public short FocusOrder; - public uint PopupId; - public sbyte AutoFitFramesX; - public sbyte AutoFitFramesY; - public sbyte AutoFitChildAxises; - public byte AutoFitOnlyGrows; - public ImGuiDir AutoPosLastDirection; - public sbyte HiddenFramesCanSkipItems; - public sbyte HiddenFramesCannotSkipItems; - public sbyte HiddenFramesForRenderOnly; - public sbyte DisableInputsFrames; - public ImGuiCond RawBits0; - public Vector2 SetWindowPosVal; - public Vector2 SetWindowPosPivot; - public ImVector<uint> IDStack; - public ImGuiWindowTempData DC; - public ImRect OuterRectClipped; - public ImRect InnerRect; - public ImRect InnerClipRect; - public ImRect WorkRect; - public ImRect ParentWorkRect; - public ImRect ClipRect; - public ImRect ContentRegionRect; - public ImVec2Ih HitTestHoleSize; - public ImVec2Ih HitTestHoleOffset; - public int LastFrameActive; - public int LastFrameJustFocused; - public float LastTimeActive; - public float ItemWidthDefault; - public ImGuiStorage StateStorage; - public ImVector<ImGuiOldColumns> ColumnsStorage; - public float FontWindowScale; - public float FontDpiScale; - public int SettingsOffset; - public unsafe ImDrawList* DrawList; - public ImDrawList DrawListInst; - public unsafe ImGuiWindow* ParentWindow; - public unsafe ImGuiWindow* ParentWindowInBeginStack; - public unsafe ImGuiWindow* RootWindow; - public unsafe ImGuiWindow* RootWindowPopupTree; - public unsafe ImGuiWindow* RootWindowDockTree; - public unsafe ImGuiWindow* RootWindowForTitleBarHighlight; - public unsafe ImGuiWindow* RootWindowForNav; - public unsafe ImGuiWindow* NavLastChildNavWindow; - public uint NavLastIds_0; - public uint NavLastIds_1; - public ImRect NavRectRel_0; - public ImRect NavRectRel_1; - public int MemoryDrawListIdxCapacity; - public int MemoryDrawListVtxCapacity; - public byte MemoryCompacted; - public bool RawBits1; - public short DockOrder; - public ImGuiWindowDockStyle DockStyle; - public unsafe ImGuiDockNode* DockNode; - public unsafe ImGuiDockNode* DockNodeAsHost; - public uint DockId; - public ImGuiItemStatusFlags DockTabItemStatusFlags; - public ImRect DockTabItemRect; - public byte InheritNoInputs; - public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector<uint> idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector<ImGuiOldColumns> columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, uint* navLastIds = default, ImRect* navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) - { - Name = name; - ID = id; - Flags = flags; - FlagsPreviousFrame = flagsPreviousFrame; - WindowClass = windowClass; - Viewport = viewport; - ViewportId = viewportId; - ViewportPos = viewportPos; - ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; - Pos = pos; - Size = size; - SizeFull = sizeFull; - ContentSize = contentSize; - ContentSizeIdeal = contentSizeIdeal; - ContentSizeExplicit = contentSizeExplicit; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - NameBufLen = nameBufLen; - MoveId = moveId; - TabId = tabId; - ChildId = childId; - Scroll = scroll; - ScrollMax = scrollMax; - ScrollTarget = scrollTarget; - ScrollTargetCenterRatio = scrollTargetCenterRatio; - ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; - ScrollbarSizes = scrollbarSizes; - ScrollbarX = scrollbarX ? (byte)1 : (byte)0; - ScrollbarY = scrollbarY ? (byte)1 : (byte)0; - ViewportOwned = viewportOwned ? (byte)1 : (byte)0; - Active = active ? (byte)1 : (byte)0; - WasActive = wasActive ? (byte)1 : (byte)0; - WriteAccessed = writeAccessed ? (byte)1 : (byte)0; - Collapsed = collapsed ? (byte)1 : (byte)0; - WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; - SkipItems = skipItems ? (byte)1 : (byte)0; - Appearing = appearing ? (byte)1 : (byte)0; - Hidden = hidden ? (byte)1 : (byte)0; - IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; - IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; - HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; - ResizeBorderHeld = resizeBorderHeld; - BeginCount = beginCount; - BeginOrderWithinParent = beginOrderWithinParent; - BeginOrderWithinContext = beginOrderWithinContext; - FocusOrder = focusOrder; - PopupId = popupId; - AutoFitFramesX = autoFitFramesX; - AutoFitFramesY = autoFitFramesY; - AutoFitChildAxises = autoFitChildAxises; - AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; - AutoPosLastDirection = autoPosLastDirection; - HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; - HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; - HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; - DisableInputsFrames = disableInputsFrames; - SetWindowPosAllowFlags = setWindowPosAllowFlags; - SetWindowSizeAllowFlags = setWindowSizeAllowFlags; - SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; - SetWindowDockAllowFlags = setWindowDockAllowFlags; - SetWindowPosVal = setWindowPosVal; - SetWindowPosPivot = setWindowPosPivot; - IDStack = idStack; - DC = dc; - OuterRectClipped = outerRectClipped; - InnerRect = innerRect; - InnerClipRect = innerClipRect; - WorkRect = workRect; - ParentWorkRect = parentWorkRect; - ClipRect = clipRect; - ContentRegionRect = contentRegionRect; - HitTestHoleSize = hitTestHoleSize; - HitTestHoleOffset = hitTestHoleOffset; - LastFrameActive = lastFrameActive; - LastFrameJustFocused = lastFrameJustFocused; - LastTimeActive = lastTimeActive; - ItemWidthDefault = itemWidthDefault; - StateStorage = stateStorage; - ColumnsStorage = columnsStorage; - FontWindowScale = fontWindowScale; - FontDpiScale = fontDpiScale; - SettingsOffset = settingsOffset; - DrawList = drawList; - DrawListInst = drawListInst; - ParentWindow = parentWindow; - ParentWindowInBeginStack = parentWindowInBeginStack; - RootWindow = rootWindow; - RootWindowPopupTree = rootWindowPopupTree; - RootWindowDockTree = rootWindowDockTree; - RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; - RootWindowForNav = rootWindowForNav; - NavLastChildNavWindow = navLastChildNavWindow; - if (navLastIds != default(uint*)) - { - NavLastIds_0 = navLastIds[0]; - NavLastIds_1 = navLastIds[1]; - } - if (navRectRel != default(ImRect*)) - { - NavRectRel_0 = navRectRel[0]; - NavRectRel_1 = navRectRel[1]; - } - MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; - MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - DockIsActive = dockIsActive; - DockNodeIsVisible = dockNodeIsVisible; - DockTabIsVisible = dockTabIsVisible; - DockTabWantClose = dockTabWantClose; - DockOrder = dockOrder; - DockStyle = dockStyle; - DockNode = dockNode; - DockNodeAsHost = dockNodeAsHost; - DockId = dockId; - DockTabItemStatusFlags = dockTabItemStatusFlags; - DockTabItemRect = dockTabItemRect; - InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; - } - public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector<uint> idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector<ImGuiOldColumns> columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, Span<uint> navLastIds = default, Span<ImRect> navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) - { - Name = name; - ID = id; - Flags = flags; - FlagsPreviousFrame = flagsPreviousFrame; - WindowClass = windowClass; - Viewport = viewport; - ViewportId = viewportId; - ViewportPos = viewportPos; - ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; - Pos = pos; - Size = size; - SizeFull = sizeFull; - ContentSize = contentSize; - ContentSizeIdeal = contentSizeIdeal; - ContentSizeExplicit = contentSizeExplicit; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - NameBufLen = nameBufLen; - MoveId = moveId; - TabId = tabId; - ChildId = childId; - Scroll = scroll; - ScrollMax = scrollMax; - ScrollTarget = scrollTarget; - ScrollTargetCenterRatio = scrollTargetCenterRatio; - ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; - ScrollbarSizes = scrollbarSizes; - ScrollbarX = scrollbarX ? (byte)1 : (byte)0; - ScrollbarY = scrollbarY ? (byte)1 : (byte)0; - ViewportOwned = viewportOwned ? (byte)1 : (byte)0; - Active = active ? (byte)1 : (byte)0; - WasActive = wasActive ? (byte)1 : (byte)0; - WriteAccessed = writeAccessed ? (byte)1 : (byte)0; - Collapsed = collapsed ? (byte)1 : (byte)0; - WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; - SkipItems = skipItems ? (byte)1 : (byte)0; - Appearing = appearing ? (byte)1 : (byte)0; - Hidden = hidden ? (byte)1 : (byte)0; - IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; - IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; - HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; - ResizeBorderHeld = resizeBorderHeld; - BeginCount = beginCount; - BeginOrderWithinParent = beginOrderWithinParent; - BeginOrderWithinContext = beginOrderWithinContext; - FocusOrder = focusOrder; - PopupId = popupId; - AutoFitFramesX = autoFitFramesX; - AutoFitFramesY = autoFitFramesY; - AutoFitChildAxises = autoFitChildAxises; - AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; - AutoPosLastDirection = autoPosLastDirection; - HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; - HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; - HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; - DisableInputsFrames = disableInputsFrames; - SetWindowPosAllowFlags = setWindowPosAllowFlags; - SetWindowSizeAllowFlags = setWindowSizeAllowFlags; - SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; - SetWindowDockAllowFlags = setWindowDockAllowFlags; - SetWindowPosVal = setWindowPosVal; - SetWindowPosPivot = setWindowPosPivot; - IDStack = idStack; - DC = dc; - OuterRectClipped = outerRectClipped; - InnerRect = innerRect; - InnerClipRect = innerClipRect; - WorkRect = workRect; - ParentWorkRect = parentWorkRect; - ClipRect = clipRect; - ContentRegionRect = contentRegionRect; - HitTestHoleSize = hitTestHoleSize; - HitTestHoleOffset = hitTestHoleOffset; - LastFrameActive = lastFrameActive; - LastFrameJustFocused = lastFrameJustFocused; - LastTimeActive = lastTimeActive; - ItemWidthDefault = itemWidthDefault; - StateStorage = stateStorage; - ColumnsStorage = columnsStorage; - FontWindowScale = fontWindowScale; - FontDpiScale = fontDpiScale; - SettingsOffset = settingsOffset; - DrawList = drawList; - DrawListInst = drawListInst; - ParentWindow = parentWindow; - ParentWindowInBeginStack = parentWindowInBeginStack; - RootWindow = rootWindow; - RootWindowPopupTree = rootWindowPopupTree; - RootWindowDockTree = rootWindowDockTree; - RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; - RootWindowForNav = rootWindowForNav; - NavLastChildNavWindow = navLastChildNavWindow; - if (navLastIds != default(Span<uint>)) - { - NavLastIds_0 = navLastIds[0]; - NavLastIds_1 = navLastIds[1]; - } - if (navRectRel != default(Span<ImRect>)) - { - NavRectRel_0 = navRectRel[0]; - NavRectRel_1 = navRectRel[1]; - } - MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; - MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - DockIsActive = dockIsActive; - DockNodeIsVisible = dockNodeIsVisible; - DockTabIsVisible = dockTabIsVisible; - DockTabWantClose = dockTabWantClose; - DockOrder = dockOrder; - DockStyle = dockStyle; - DockNode = dockNode; - DockNodeAsHost = dockNodeAsHost; - DockId = dockId; - DockTabItemStatusFlags = dockTabItemStatusFlags; - DockTabItemRect = dockTabItemRect; - InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; - } - public ImGuiCond SetWindowPosAllowFlags { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } - public ImGuiCond SetWindowSizeAllowFlags { get => Bitfield.Get(RawBits0, 8, 8); set => Bitfield.Set(ref RawBits0, value, 8, 8); } - public ImGuiCond SetWindowCollapsedAllowFlags { get => Bitfield.Get(RawBits0, 16, 8); set => Bitfield.Set(ref RawBits0, value, 16, 8); } - public ImGuiCond SetWindowDockAllowFlags { get => Bitfield.Get(RawBits0, 24, 8); set => Bitfield.Set(ref RawBits0, value, 24, 8); } - public bool DockIsActive { get => Bitfield.Get(RawBits1, 0, 1); set => Bitfield.Set(ref RawBits1, value, 0, 1); } - public bool DockNodeIsVisible { get => Bitfield.Get(RawBits1, 1, 1); set => Bitfield.Set(ref RawBits1, value, 1, 1); } - public bool DockTabIsVisible { get => Bitfield.Get(RawBits1, 2, 1); set => Bitfield.Set(ref RawBits1, value, 2, 1); } - public bool DockTabWantClose { get => Bitfield.Get(RawBits1, 3, 1); set => Bitfield.Set(ref RawBits1, value, 3, 1); } - public unsafe Span<ImRect> NavRectRel - { - get - { - fixed (ImRect* p = &this.NavRectRel_0) - { - return new Span<ImRect>(p, 2); - } - } - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiWindowPtr : IEquatable<ImGuiWindowPtr> - { - public ImGuiWindowPtr(ImGuiWindow* handle) { Handle = handle; } - public ImGuiWindow* Handle; - public bool IsNull => Handle == null; - public static ImGuiWindowPtr Null => new ImGuiWindowPtr(null); - public ImGuiWindow this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiWindowPtr(ImGuiWindow* handle) => new ImGuiWindowPtr(handle); - public static implicit operator ImGuiWindow*(ImGuiWindowPtr handle) => handle.Handle; - public static bool operator ==(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle == right; - public static bool operator !=(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle != right; - public bool Equals(ImGuiWindowPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiWindowPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiWindowPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public byte* Name { get => Handle->Name; set => Handle->Name = value; } - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImGuiWindowFlags Flags => ref Unsafe.AsRef<ImGuiWindowFlags>(&Handle->Flags); - public ref ImGuiWindowFlags FlagsPreviousFrame => ref Unsafe.AsRef<ImGuiWindowFlags>(&Handle->FlagsPreviousFrame); - public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef<ImGuiWindowClass>(&Handle->WindowClass); - public ref ImGuiViewportPPtr Viewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->Viewport); - public ref uint ViewportId => ref Unsafe.AsRef<uint>(&Handle->ViewportId); - public ref Vector2 ViewportPos => ref Unsafe.AsRef<Vector2>(&Handle->ViewportPos); - public ref int ViewportAllowPlatformMonitorExtend => ref Unsafe.AsRef<int>(&Handle->ViewportAllowPlatformMonitorExtend); - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - public ref Vector2 Size => ref Unsafe.AsRef<Vector2>(&Handle->Size); - public ref Vector2 SizeFull => ref Unsafe.AsRef<Vector2>(&Handle->SizeFull); - public ref Vector2 ContentSize => ref Unsafe.AsRef<Vector2>(&Handle->ContentSize); - public ref Vector2 ContentSizeIdeal => ref Unsafe.AsRef<Vector2>(&Handle->ContentSizeIdeal); - public ref Vector2 ContentSizeExplicit => ref Unsafe.AsRef<Vector2>(&Handle->ContentSizeExplicit); - public ref Vector2 WindowPadding => ref Unsafe.AsRef<Vector2>(&Handle->WindowPadding); - public ref float WindowRounding => ref Unsafe.AsRef<float>(&Handle->WindowRounding); - public ref float WindowBorderSize => ref Unsafe.AsRef<float>(&Handle->WindowBorderSize); - public ref int NameBufLen => ref Unsafe.AsRef<int>(&Handle->NameBufLen); - public ref uint MoveId => ref Unsafe.AsRef<uint>(&Handle->MoveId); - public ref uint TabId => ref Unsafe.AsRef<uint>(&Handle->TabId); - public ref uint ChildId => ref Unsafe.AsRef<uint>(&Handle->ChildId); - public ref Vector2 Scroll => ref Unsafe.AsRef<Vector2>(&Handle->Scroll); - public ref Vector2 ScrollMax => ref Unsafe.AsRef<Vector2>(&Handle->ScrollMax); - public ref Vector2 ScrollTarget => ref Unsafe.AsRef<Vector2>(&Handle->ScrollTarget); - public ref Vector2 ScrollTargetCenterRatio => ref Unsafe.AsRef<Vector2>(&Handle->ScrollTargetCenterRatio); - public ref Vector2 ScrollTargetEdgeSnapDist => ref Unsafe.AsRef<Vector2>(&Handle->ScrollTargetEdgeSnapDist); - public ref Vector2 ScrollbarSizes => ref Unsafe.AsRef<Vector2>(&Handle->ScrollbarSizes); - public ref bool ScrollbarX => ref Unsafe.AsRef<bool>(&Handle->ScrollbarX); - public ref bool ScrollbarY => ref Unsafe.AsRef<bool>(&Handle->ScrollbarY); - public ref bool ViewportOwned => ref Unsafe.AsRef<bool>(&Handle->ViewportOwned); - public ref bool Active => ref Unsafe.AsRef<bool>(&Handle->Active); - public ref bool WasActive => ref Unsafe.AsRef<bool>(&Handle->WasActive); - public ref bool WriteAccessed => ref Unsafe.AsRef<bool>(&Handle->WriteAccessed); - public ref bool Collapsed => ref Unsafe.AsRef<bool>(&Handle->Collapsed); - public ref bool WantCollapseToggle => ref Unsafe.AsRef<bool>(&Handle->WantCollapseToggle); - public ref bool SkipItems => ref Unsafe.AsRef<bool>(&Handle->SkipItems); - public ref bool Appearing => ref Unsafe.AsRef<bool>(&Handle->Appearing); - public ref bool Hidden => ref Unsafe.AsRef<bool>(&Handle->Hidden); - public ref bool IsFallbackWindow => ref Unsafe.AsRef<bool>(&Handle->IsFallbackWindow); - public ref bool IsExplicitChild => ref Unsafe.AsRef<bool>(&Handle->IsExplicitChild); - public ref bool HasCloseButton => ref Unsafe.AsRef<bool>(&Handle->HasCloseButton); - public ref byte ResizeBorderHeld => ref Unsafe.AsRef<byte>(&Handle->ResizeBorderHeld); - public ref short BeginCount => ref Unsafe.AsRef<short>(&Handle->BeginCount); - public ref short BeginOrderWithinParent => ref Unsafe.AsRef<short>(&Handle->BeginOrderWithinParent); - public ref short BeginOrderWithinContext => ref Unsafe.AsRef<short>(&Handle->BeginOrderWithinContext); - public ref short FocusOrder => ref Unsafe.AsRef<short>(&Handle->FocusOrder); - public ref uint PopupId => ref Unsafe.AsRef<uint>(&Handle->PopupId); - public ref sbyte AutoFitFramesX => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitFramesX); - public ref sbyte AutoFitFramesY => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitFramesY); - public ref sbyte AutoFitChildAxises => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitChildAxises); - public ref bool AutoFitOnlyGrows => ref Unsafe.AsRef<bool>(&Handle->AutoFitOnlyGrows); - public ref ImGuiDir AutoPosLastDirection => ref Unsafe.AsRef<ImGuiDir>(&Handle->AutoPosLastDirection); - public ref sbyte HiddenFramesCanSkipItems => ref Unsafe.AsRef<sbyte>(&Handle->HiddenFramesCanSkipItems); - public ref sbyte HiddenFramesCannotSkipItems => ref Unsafe.AsRef<sbyte>(&Handle->HiddenFramesCannotSkipItems); - public ref sbyte HiddenFramesForRenderOnly => ref Unsafe.AsRef<sbyte>(&Handle->HiddenFramesForRenderOnly); - public ref sbyte DisableInputsFrames => ref Unsafe.AsRef<sbyte>(&Handle->DisableInputsFrames); - public ImGuiCond SetWindowPosAllowFlags { get => Handle->SetWindowPosAllowFlags; set => Handle->SetWindowPosAllowFlags = value; } - public ImGuiCond SetWindowSizeAllowFlags { get => Handle->SetWindowSizeAllowFlags; set => Handle->SetWindowSizeAllowFlags = value; } - public ImGuiCond SetWindowCollapsedAllowFlags { get => Handle->SetWindowCollapsedAllowFlags; set => Handle->SetWindowCollapsedAllowFlags = value; } - public ImGuiCond SetWindowDockAllowFlags { get => Handle->SetWindowDockAllowFlags; set => Handle->SetWindowDockAllowFlags = value; } - public ref Vector2 SetWindowPosVal => ref Unsafe.AsRef<Vector2>(&Handle->SetWindowPosVal); - public ref Vector2 SetWindowPosPivot => ref Unsafe.AsRef<Vector2>(&Handle->SetWindowPosPivot); - public ref ImVector<uint> IDStack => ref Unsafe.AsRef<ImVector<uint>>(&Handle->IDStack); - public ref ImGuiWindowTempData DC => ref Unsafe.AsRef<ImGuiWindowTempData>(&Handle->DC); - public ref ImRect OuterRectClipped => ref Unsafe.AsRef<ImRect>(&Handle->OuterRectClipped); - public ref ImRect InnerRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerRect); - public ref ImRect InnerClipRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerClipRect); - public ref ImRect WorkRect => ref Unsafe.AsRef<ImRect>(&Handle->WorkRect); - public ref ImRect ParentWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->ParentWorkRect); - public ref ImRect ClipRect => ref Unsafe.AsRef<ImRect>(&Handle->ClipRect); - public ref ImRect ContentRegionRect => ref Unsafe.AsRef<ImRect>(&Handle->ContentRegionRect); - public ref ImVec2Ih HitTestHoleSize => ref Unsafe.AsRef<ImVec2Ih>(&Handle->HitTestHoleSize); - public ref ImVec2Ih HitTestHoleOffset => ref Unsafe.AsRef<ImVec2Ih>(&Handle->HitTestHoleOffset); - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - public ref int LastFrameJustFocused => ref Unsafe.AsRef<int>(&Handle->LastFrameJustFocused); - public ref float LastTimeActive => ref Unsafe.AsRef<float>(&Handle->LastTimeActive); - public ref float ItemWidthDefault => ref Unsafe.AsRef<float>(&Handle->ItemWidthDefault); - public ref ImGuiStorage StateStorage => ref Unsafe.AsRef<ImGuiStorage>(&Handle->StateStorage); - public ref ImVector<ImGuiOldColumns> ColumnsStorage => ref Unsafe.AsRef<ImVector<ImGuiOldColumns>>(&Handle->ColumnsStorage); - public ref float FontWindowScale => ref Unsafe.AsRef<float>(&Handle->FontWindowScale); - public ref float FontDpiScale => ref Unsafe.AsRef<float>(&Handle->FontDpiScale); - public ref int SettingsOffset => ref Unsafe.AsRef<int>(&Handle->SettingsOffset); - public ref ImDrawListPtr DrawList => ref Unsafe.AsRef<ImDrawListPtr>(&Handle->DrawList); - public ref ImDrawList DrawListInst => ref Unsafe.AsRef<ImDrawList>(&Handle->DrawListInst); - public ref ImGuiWindowPtr ParentWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ParentWindow); - public ref ImGuiWindowPtr ParentWindowInBeginStack => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ParentWindowInBeginStack); - public ref ImGuiWindowPtr RootWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindow); - public ref ImGuiWindowPtr RootWindowPopupTree => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowPopupTree); - public ref ImGuiWindowPtr RootWindowDockTree => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowDockTree); - public ref ImGuiWindowPtr RootWindowForTitleBarHighlight => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowForTitleBarHighlight); - public ref ImGuiWindowPtr RootWindowForNav => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowForNav); - public ref ImGuiWindowPtr NavLastChildNavWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavLastChildNavWindow); - public unsafe Span<uint> NavLastIds - { - get - { - return new Span<uint>(&Handle->NavLastIds_0, 2); - } - } - public unsafe Span<ImRect> NavRectRel - { - get - { - return new Span<ImRect>(&Handle->NavRectRel_0, 2); - } - } - public ref int MemoryDrawListIdxCapacity => ref Unsafe.AsRef<int>(&Handle->MemoryDrawListIdxCapacity); - public ref int MemoryDrawListVtxCapacity => ref Unsafe.AsRef<int>(&Handle->MemoryDrawListVtxCapacity); - public ref bool MemoryCompacted => ref Unsafe.AsRef<bool>(&Handle->MemoryCompacted); - public bool DockIsActive { get => Handle->DockIsActive; set => Handle->DockIsActive = value; } - public bool DockNodeIsVisible { get => Handle->DockNodeIsVisible; set => Handle->DockNodeIsVisible = value; } - public bool DockTabIsVisible { get => Handle->DockTabIsVisible; set => Handle->DockTabIsVisible = value; } - public bool DockTabWantClose { get => Handle->DockTabWantClose; set => Handle->DockTabWantClose = value; } - public ref short DockOrder => ref Unsafe.AsRef<short>(&Handle->DockOrder); - public ref ImGuiWindowDockStyle DockStyle => ref Unsafe.AsRef<ImGuiWindowDockStyle>(&Handle->DockStyle); - public ref ImGuiDockNodePtr DockNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->DockNode); - public ref ImGuiDockNodePtr DockNodeAsHost => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->DockNodeAsHost); - public ref uint DockId => ref Unsafe.AsRef<uint>(&Handle->DockId); - public ref ImGuiItemStatusFlags DockTabItemStatusFlags => ref Unsafe.AsRef<ImGuiItemStatusFlags>(&Handle->DockTabItemStatusFlags); - public ref ImRect DockTabItemRect => ref Unsafe.AsRef<ImRect>(&Handle->DockTabItemRect); - public ref bool InheritNoInputs => ref Unsafe.AsRef<bool>(&Handle->InheritNoInputs); - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiWindowPtrPtr : IEquatable<ImGuiWindowPtrPtr> - { - public ImGuiWindowPtrPtr(ImGuiWindow** handle) { Handle = handle; } - public ImGuiWindow** Handle; - public bool IsNull => Handle == null; - public static ImGuiWindowPtrPtr Null => new ImGuiWindowPtrPtr(null); - public ImGuiWindow* this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiWindowPtrPtr(ImGuiWindow** handle) => new ImGuiWindowPtrPtr(handle); - public static implicit operator ImGuiWindow**(ImGuiWindowPtrPtr handle) => handle.Handle; - public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle == right; - public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle != right; - public bool Equals(ImGuiWindowPtrPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiWindowPtrPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiWindowPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* ImGuiWindowClass.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowClass - { - public uint ClassId; - public uint ParentViewportId; - public ImGuiViewportFlags ViewportFlagsOverrideSet; - public ImGuiViewportFlags ViewportFlagsOverrideClear; - public ImGuiTabItemFlags TabItemFlagsOverrideSet; - public ImGuiDockNodeFlags DockNodeFlagsOverrideSet; - public byte DockingAlwaysTabBar; - public byte DockingAllowUnclassed; - public unsafe ImGuiWindowClass(uint classId = default, uint parentViewportId = default, ImGuiViewportFlags viewportFlagsOverrideSet = default, ImGuiViewportFlags viewportFlagsOverrideClear = default, ImGuiTabItemFlags tabItemFlagsOverrideSet = default, ImGuiDockNodeFlags dockNodeFlagsOverrideSet = default, bool dockingAlwaysTabBar = default, bool dockingAllowUnclassed = default) - { - ClassId = classId; - ParentViewportId = parentViewportId; - ViewportFlagsOverrideSet = viewportFlagsOverrideSet; - ViewportFlagsOverrideClear = viewportFlagsOverrideClear; - TabItemFlagsOverrideSet = tabItemFlagsOverrideSet; - DockNodeFlagsOverrideSet = dockNodeFlagsOverrideSet; - DockingAlwaysTabBar = dockingAlwaysTabBar ? (byte)1 : (byte)0; - DockingAllowUnclassed = dockingAllowUnclassed ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiWindowClassPtr : IEquatable<ImGuiWindowClassPtr> - { - public ImGuiWindowClassPtr(ImGuiWindowClass* handle) { Handle = handle; } - public ImGuiWindowClass* Handle; - public bool IsNull => Handle == null; - public static ImGuiWindowClassPtr Null => new ImGuiWindowClassPtr(null); - public ImGuiWindowClass this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiWindowClassPtr(ImGuiWindowClass* handle) => new ImGuiWindowClassPtr(handle); - public static implicit operator ImGuiWindowClass*(ImGuiWindowClassPtr handle) => handle.Handle; - public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle == right; - public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle != right; - public bool Equals(ImGuiWindowClassPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiWindowClassPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiWindowClassPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ClassId => ref Unsafe.AsRef<uint>(&Handle->ClassId); - public ref uint ParentViewportId => ref Unsafe.AsRef<uint>(&Handle->ParentViewportId); - public ref ImGuiViewportFlags ViewportFlagsOverrideSet => ref Unsafe.AsRef<ImGuiViewportFlags>(&Handle->ViewportFlagsOverrideSet); - public ref ImGuiViewportFlags ViewportFlagsOverrideClear => ref Unsafe.AsRef<ImGuiViewportFlags>(&Handle->ViewportFlagsOverrideClear); - public ref ImGuiTabItemFlags TabItemFlagsOverrideSet => ref Unsafe.AsRef<ImGuiTabItemFlags>(&Handle->TabItemFlagsOverrideSet); - public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->DockNodeFlagsOverrideSet); - public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&Handle->DockingAlwaysTabBar); - public ref bool DockingAllowUnclassed => ref Unsafe.AsRef<bool>(&Handle->DockingAllowUnclassed); - } -} -/* ImGuiWindowDockStyle.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowDockStyle - { - public uint Colors_0; - public uint Colors_1; - public uint Colors_2; - public uint Colors_3; - public uint Colors_4; - public uint Colors_5; - public unsafe ImGuiWindowDockStyle(uint* colors = default) - { - if (colors != default(uint*)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - } - } - public unsafe ImGuiWindowDockStyle(Span<uint> colors = default) - { - if (colors != default(Span<uint>)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - } - } - } -} -/* ImGuiWindowSettings.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowSettings - { - public uint ID; - public ImVec2Ih Pos; - public ImVec2Ih Size; - public ImVec2Ih ViewportPos; - public uint ViewportId; - public uint DockId; - public uint ClassId; - public short DockOrder; - public byte Collapsed; - public byte WantApply; - public unsafe ImGuiWindowSettings(uint id = default, ImVec2Ih pos = default, ImVec2Ih size = default, ImVec2Ih viewportPos = default, uint viewportId = default, uint dockId = default, uint classId = default, short dockOrder = default, bool collapsed = default, bool wantApply = default) - { - ID = id; - Pos = pos; - Size = size; - ViewportPos = viewportPos; - ViewportId = viewportId; - DockId = dockId; - ClassId = classId; - DockOrder = dockOrder; - Collapsed = collapsed ? (byte)1 : (byte)0; - WantApply = wantApply ? (byte)1 : (byte)0; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiWindowSettingsPtr : IEquatable<ImGuiWindowSettingsPtr> - { - public ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) { Handle = handle; } - public ImGuiWindowSettings* Handle; - public bool IsNull => Handle == null; - public static ImGuiWindowSettingsPtr Null => new ImGuiWindowSettingsPtr(null); - public ImGuiWindowSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) => new ImGuiWindowSettingsPtr(handle); - public static implicit operator ImGuiWindowSettings*(ImGuiWindowSettingsPtr handle) => handle.Handle; - public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle == right; - public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle != right; - public bool Equals(ImGuiWindowSettingsPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiWindowSettingsPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiWindowSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - public ref ImVec2Ih Pos => ref Unsafe.AsRef<ImVec2Ih>(&Handle->Pos); - public ref ImVec2Ih Size => ref Unsafe.AsRef<ImVec2Ih>(&Handle->Size); - public ref ImVec2Ih ViewportPos => ref Unsafe.AsRef<ImVec2Ih>(&Handle->ViewportPos); - public ref uint ViewportId => ref Unsafe.AsRef<uint>(&Handle->ViewportId); - public ref uint DockId => ref Unsafe.AsRef<uint>(&Handle->DockId); - public ref uint ClassId => ref Unsafe.AsRef<uint>(&Handle->ClassId); - public ref short DockOrder => ref Unsafe.AsRef<short>(&Handle->DockOrder); - public ref bool Collapsed => ref Unsafe.AsRef<bool>(&Handle->Collapsed); - public ref bool WantApply => ref Unsafe.AsRef<bool>(&Handle->WantApply); - } -} -/* ImGuiWindowStackData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowStackData - { - public unsafe ImGuiWindow* Window; - public ImGuiLastItemData ParentLastItemDataBackup; - public ImGuiStackSizes StackSizesOnBegin; - public unsafe ImGuiWindowStackData(ImGuiWindowPtr window = default, ImGuiLastItemData parentLastItemDataBackup = default, ImGuiStackSizes stackSizesOnBegin = default) - { - Window = window; - ParentLastItemDataBackup = parentLastItemDataBackup; - StackSizesOnBegin = stackSizesOnBegin; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImGuiWindowStackDataPtr : IEquatable<ImGuiWindowStackDataPtr> - { - public ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) { Handle = handle; } - public ImGuiWindowStackData* Handle; - public bool IsNull => Handle == null; - public static ImGuiWindowStackDataPtr Null => new ImGuiWindowStackDataPtr(null); - public ImGuiWindowStackData this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) => new ImGuiWindowStackDataPtr(handle); - public static implicit operator ImGuiWindowStackData*(ImGuiWindowStackDataPtr handle) => handle.Handle; - public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle == right; - public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle != right; - public bool Equals(ImGuiWindowStackDataPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImGuiWindowStackDataPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImGuiWindowStackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - public ref ImGuiLastItemData ParentLastItemDataBackup => ref Unsafe.AsRef<ImGuiLastItemData>(&Handle->ParentLastItemDataBackup); - public ref ImGuiStackSizes StackSizesOnBegin => ref Unsafe.AsRef<ImGuiStackSizes>(&Handle->StackSizesOnBegin); - } -} -/* ImGuiWindowTempData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowTempData - { - public Vector2 CursorPos; - public Vector2 CursorPosPrevLine; - public Vector2 CursorStartPos; - public Vector2 CursorMaxPos; - public Vector2 IdealMaxPos; - public Vector2 CurrLineSize; - public Vector2 PrevLineSize; - public float CurrLineTextBaseOffset; - public float PrevLineTextBaseOffset; - public byte IsSameLine; - public ImVec1 Indent; - public ImVec1 ColumnsOffset; - public ImVec1 GroupOffset; - public Vector2 CursorStartPosLossyness; - public ImGuiNavLayer NavLayerCurrent; - public short NavLayersActiveMask; - public short NavLayersActiveMaskNext; - public uint NavFocusScopeIdCurrent; - public byte NavHideHighlightOneFrame; - public byte NavHasScroll; - public byte MenuBarAppending; - public Vector2 MenuBarOffset; - public ImGuiMenuColumns MenuColumns; - public int TreeDepth; - public uint TreeJumpToParentOnPopMask; - public ImVector<ImGuiWindowPtr> ChildWindows; - public unsafe ImGuiStorage* StateStorage; - public unsafe ImGuiOldColumns* CurrentColumns; - public int CurrentTableIdx; - public ImGuiLayoutType LayoutType; - public ImGuiLayoutType ParentLayoutType; - public float ItemWidth; - public float TextWrapPos; - public ImVector<float> ItemWidthStack; - public ImVector<float> TextWrapPosStack; - public unsafe ImGuiWindowTempData(Vector2 cursorPos = default, Vector2 cursorPosPrevLine = default, Vector2 cursorStartPos = default, Vector2 cursorMaxPos = default, Vector2 idealMaxPos = default, Vector2 currLineSize = default, Vector2 prevLineSize = default, float currLineTextBaseOffset = default, float prevLineTextBaseOffset = default, bool isSameLine = default, ImVec1 indent = default, ImVec1 columnsOffset = default, ImVec1 groupOffset = default, Vector2 cursorStartPosLossyness = default, ImGuiNavLayer navLayerCurrent = default, short navLayersActiveMask = default, short navLayersActiveMaskNext = default, uint navFocusScopeIdCurrent = default, bool navHideHighlightOneFrame = default, bool navHasScroll = default, bool menuBarAppending = default, Vector2 menuBarOffset = default, ImGuiMenuColumns menuColumns = default, int treeDepth = default, uint treeJumpToParentOnPopMask = default, ImVector<ImGuiWindowPtr> childWindows = default, ImGuiStorage* stateStorage = default, ImGuiOldColumns* currentColumns = default, int currentTableIdx = default, ImGuiLayoutType layoutType = default, ImGuiLayoutType parentLayoutType = default, float itemWidth = default, float textWrapPos = default, ImVector<float> itemWidthStack = default, ImVector<float> textWrapPosStack = default) - { - CursorPos = cursorPos; - CursorPosPrevLine = cursorPosPrevLine; - CursorStartPos = cursorStartPos; - CursorMaxPos = cursorMaxPos; - IdealMaxPos = idealMaxPos; - CurrLineSize = currLineSize; - PrevLineSize = prevLineSize; - CurrLineTextBaseOffset = currLineTextBaseOffset; - PrevLineTextBaseOffset = prevLineTextBaseOffset; - IsSameLine = isSameLine ? (byte)1 : (byte)0; - Indent = indent; - ColumnsOffset = columnsOffset; - GroupOffset = groupOffset; - CursorStartPosLossyness = cursorStartPosLossyness; - NavLayerCurrent = navLayerCurrent; - NavLayersActiveMask = navLayersActiveMask; - NavLayersActiveMaskNext = navLayersActiveMaskNext; - NavFocusScopeIdCurrent = navFocusScopeIdCurrent; - NavHideHighlightOneFrame = navHideHighlightOneFrame ? (byte)1 : (byte)0; - NavHasScroll = navHasScroll ? (byte)1 : (byte)0; - MenuBarAppending = menuBarAppending ? (byte)1 : (byte)0; - MenuBarOffset = menuBarOffset; - MenuColumns = menuColumns; - TreeDepth = treeDepth; - TreeJumpToParentOnPopMask = treeJumpToParentOnPopMask; - ChildWindows = childWindows; - StateStorage = stateStorage; - CurrentColumns = currentColumns; - CurrentTableIdx = currentTableIdx; - LayoutType = layoutType; - ParentLayoutType = parentLayoutType; - ItemWidth = itemWidth; - TextWrapPos = textWrapPos; - ItemWidthStack = itemWidthStack; - TextWrapPosStack = textWrapPosStack; - } - } -} -/* ImPoolImGuiTabBar.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImGuiTabBar - { - public ImVector<ImGuiTabBar> Buf; - public ImGuiStorage Map; - public int FreeIdx; - public int AliveCount; - public unsafe ImPoolImGuiTabBar(ImVector<ImGuiTabBar> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - } -} -/* ImPoolImGuiTable.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImGuiTable - { - public ImVector<ImGuiTable> Buf; - public ImGuiStorage Map; - public int FreeIdx; - public int AliveCount; - public unsafe ImPoolImGuiTable(ImVector<ImGuiTable> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - } -} -/* ImRect.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImRect - { - public Vector2 Min; - public Vector2 Max; - public unsafe ImRect(Vector2 min = default, Vector2 max = default) - { - Min = min; - Max = max; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImRectPtr : IEquatable<ImRectPtr> - { - public ImRectPtr(ImRect* handle) { Handle = handle; } - public ImRect* Handle; - public bool IsNull => Handle == null; - public static ImRectPtr Null => new ImRectPtr(null); - public ImRect this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImRectPtr(ImRect* handle) => new ImRectPtr(handle); - public static implicit operator ImRect*(ImRectPtr handle) => handle.Handle; - public static bool operator ==(ImRectPtr left, ImRectPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImRectPtr left, ImRectPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImRectPtr left, ImRect* right) => left.Handle == right; - public static bool operator !=(ImRectPtr left, ImRect* right) => left.Handle != right; - public bool Equals(ImRectPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImRectPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref Vector2 Min => ref Unsafe.AsRef<Vector2>(&Handle->Min); - public ref Vector2 Max => ref Unsafe.AsRef<Vector2>(&Handle->Max); - } -} -/* ImSpanImGuiTableCellData.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImSpanImGuiTableCellData - { - public unsafe ImGuiTableCellData* Data; - public unsafe ImGuiTableCellData* DataEnd; - public unsafe ImSpanImGuiTableCellData(ImGuiTableCellData* data = default, ImGuiTableCellData* dataEnd = default) - { - Data = data; - DataEnd = dataEnd; - } - } -} -/* ImSpanImGuiTableColumn.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImSpanImGuiTableColumn - { - public unsafe ImGuiTableColumn* Data; - public unsafe ImGuiTableColumn* DataEnd; - public unsafe ImSpanImGuiTableColumn(ImGuiTableColumn* data = default, ImGuiTableColumn* dataEnd = default) - { - Data = data; - DataEnd = dataEnd; - } - } -} -/* ImSpanImGuiTableColumnIdx.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImSpanImGuiTableColumnIdx - { - public unsafe sbyte* Data; - public unsafe sbyte* DataEnd; - public unsafe ImSpanImGuiTableColumnIdx(sbyte* data = default, sbyte* dataEnd = default) - { - Data = data; - DataEnd = dataEnd; - } - } -} -/* ImVec1.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImVec1 - { - public float X; - public unsafe ImVec1(float x = default) - { - X = x; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImVec1Ptr : IEquatable<ImVec1Ptr> - { - public ImVec1Ptr(ImVec1* handle) { Handle = handle; } - public ImVec1* Handle; - public bool IsNull => Handle == null; - public static ImVec1Ptr Null => new ImVec1Ptr(null); - public ImVec1 this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImVec1Ptr(ImVec1* handle) => new ImVec1Ptr(handle); - public static implicit operator ImVec1*(ImVec1Ptr handle) => handle.Handle; - public static bool operator ==(ImVec1Ptr left, ImVec1Ptr right) => left.Handle == right.Handle; - public static bool operator !=(ImVec1Ptr left, ImVec1Ptr right) => left.Handle != right.Handle; - public static bool operator ==(ImVec1Ptr left, ImVec1* right) => left.Handle == right; - public static bool operator !=(ImVec1Ptr left, ImVec1* right) => left.Handle != right; - public bool Equals(ImVec1Ptr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImVec1Ptr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImVec1Ptr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref float X => ref Unsafe.AsRef<float>(&Handle->X); - } -} -/* ImVec2Ih.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct ImVec2Ih - { - public short X; - public short Y; - public unsafe ImVec2Ih(short x = default, short y = default) - { - X = x; - Y = y; - } - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct ImVec2IhPtr : IEquatable<ImVec2IhPtr> - { - public ImVec2IhPtr(ImVec2Ih* handle) { Handle = handle; } - public ImVec2Ih* Handle; - public bool IsNull => Handle == null; - public static ImVec2IhPtr Null => new ImVec2IhPtr(null); - public ImVec2Ih this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator ImVec2IhPtr(ImVec2Ih* handle) => new ImVec2IhPtr(handle); - public static implicit operator ImVec2Ih*(ImVec2IhPtr handle) => handle.Handle; - public static bool operator ==(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle == right; - public static bool operator !=(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle != right; - public bool Equals(ImVec2IhPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is ImVec2IhPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("ImVec2IhPtr [0x{0}]", ((nuint)Handle).ToString("X")); - public ref short X => ref Unsafe.AsRef<short>(&Handle->X); - public ref short Y => ref Unsafe.AsRef<short>(&Handle->Y); - } -} -/* StbTexteditRow.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct StbTexteditRow - { - public float X0; - public float X1; - public float BaselineYDelta; - public float Ymin; - public float Ymax; - public int NumChars; - public unsafe StbTexteditRow(float x0 = default, float x1 = default, float baselineYDelta = default, float ymin = default, float ymax = default, int numChars = default) - { - X0 = x0; - X1 = x1; - BaselineYDelta = baselineYDelta; - Ymin = ymin; - Ymax = ymax; - NumChars = numChars; - } - } -} -/* STBTexteditState.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct STBTexteditState - { - public int Cursor; - public int SelectStart; - public int SelectEnd; - public byte InsertMode; - public int RowCountPerPage; - public byte CursorAtEndOfLine; - public byte Initialized; - public byte HasPreferredX; - public byte SingleLine; - public byte Padding1; - public byte Padding2; - public byte Padding3; - public float PreferredX; - public StbUndoState Undostate; - public unsafe STBTexteditState(int cursor = default, int selectStart = default, int selectEnd = default, byte insertMode = default, int rowCountPerPage = default, byte cursorAtEndOfLine = default, byte initialized = default, byte hasPreferredX = default, byte singleLine = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, float preferredX = default, StbUndoState undostate = default) - { - Cursor = cursor; - SelectStart = selectStart; - SelectEnd = selectEnd; - InsertMode = insertMode; - RowCountPerPage = rowCountPerPage; - CursorAtEndOfLine = cursorAtEndOfLine; - Initialized = initialized; - HasPreferredX = hasPreferredX; - SingleLine = singleLine; - Padding1 = padding1; - Padding2 = padding2; - Padding3 = padding3; - PreferredX = preferredX; - Undostate = undostate; - } - } -} -/* StbttPackContext.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct StbttPackContext - { - } - - [DebuggerDisplay("{DebuggerDisplay,nq}")] - - public unsafe partial struct StbttPackContextPtr : IEquatable<StbttPackContextPtr> - { - public StbttPackContextPtr(StbttPackContext* handle) { Handle = handle; } - public StbttPackContext* Handle; - public bool IsNull => Handle == null; - public static StbttPackContextPtr Null => new StbttPackContextPtr(null); - public StbttPackContext this[int index] { get => Handle[index]; set => Handle[index] = value; } - public static implicit operator StbttPackContextPtr(StbttPackContext* handle) => new StbttPackContextPtr(handle); - public static implicit operator StbttPackContext*(StbttPackContextPtr handle) => handle.Handle; - public static bool operator ==(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle == right.Handle; - public static bool operator !=(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle != right.Handle; - public static bool operator ==(StbttPackContextPtr left, StbttPackContext* right) => left.Handle == right; - public static bool operator !=(StbttPackContextPtr left, StbttPackContext* right) => left.Handle != right; - public bool Equals(StbttPackContextPtr other) => Handle == other.Handle; - public override bool Equals(object obj) => obj is StbttPackContextPtr handle && Equals(handle); - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - private string DebuggerDisplay => string.Format("StbttPackContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); - - } -} -/* StbUndoRecord.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct StbUndoRecord - { - public int Where; - public int InsertLength; - public int DeleteLength; - public int CharStorage; - public unsafe StbUndoRecord(int where = default, int insertLength = default, int deleteLength = default, int charStorage = default) - { - Where = where; - InsertLength = insertLength; - DeleteLength = deleteLength; - CharStorage = charStorage; - } - } -} -/* StbUndoState.cs */ -namespace Dalamud.Bindings.ImGui -{ - [StructLayout(LayoutKind.Sequential)] - public partial struct StbUndoState - { - public StbUndoRecord UndoRec_0; - public StbUndoRecord UndoRec_1; - public StbUndoRecord UndoRec_2; - public StbUndoRecord UndoRec_3; - public StbUndoRecord UndoRec_4; - public StbUndoRecord UndoRec_5; - public StbUndoRecord UndoRec_6; - public StbUndoRecord UndoRec_7; - public StbUndoRecord UndoRec_8; - public StbUndoRecord UndoRec_9; - public StbUndoRecord UndoRec_10; - public StbUndoRecord UndoRec_11; - public StbUndoRecord UndoRec_12; - public StbUndoRecord UndoRec_13; - public StbUndoRecord UndoRec_14; - public StbUndoRecord UndoRec_15; - public StbUndoRecord UndoRec_16; - public StbUndoRecord UndoRec_17; - public StbUndoRecord UndoRec_18; - public StbUndoRecord UndoRec_19; - public StbUndoRecord UndoRec_20; - public StbUndoRecord UndoRec_21; - public StbUndoRecord UndoRec_22; - public StbUndoRecord UndoRec_23; - public StbUndoRecord UndoRec_24; - public StbUndoRecord UndoRec_25; - public StbUndoRecord UndoRec_26; - public StbUndoRecord UndoRec_27; - public StbUndoRecord UndoRec_28; - public StbUndoRecord UndoRec_29; - public StbUndoRecord UndoRec_30; - public StbUndoRecord UndoRec_31; - public StbUndoRecord UndoRec_32; - public StbUndoRecord UndoRec_33; - public StbUndoRecord UndoRec_34; - public StbUndoRecord UndoRec_35; - public StbUndoRecord UndoRec_36; - public StbUndoRecord UndoRec_37; - public StbUndoRecord UndoRec_38; - public StbUndoRecord UndoRec_39; - public StbUndoRecord UndoRec_40; - public StbUndoRecord UndoRec_41; - public StbUndoRecord UndoRec_42; - public StbUndoRecord UndoRec_43; - public StbUndoRecord UndoRec_44; - public StbUndoRecord UndoRec_45; - public StbUndoRecord UndoRec_46; - public StbUndoRecord UndoRec_47; - public StbUndoRecord UndoRec_48; - public StbUndoRecord UndoRec_49; - public StbUndoRecord UndoRec_50; - public StbUndoRecord UndoRec_51; - public StbUndoRecord UndoRec_52; - public StbUndoRecord UndoRec_53; - public StbUndoRecord UndoRec_54; - public StbUndoRecord UndoRec_55; - public StbUndoRecord UndoRec_56; - public StbUndoRecord UndoRec_57; - public StbUndoRecord UndoRec_58; - public StbUndoRecord UndoRec_59; - public StbUndoRecord UndoRec_60; - public StbUndoRecord UndoRec_61; - public StbUndoRecord UndoRec_62; - public StbUndoRecord UndoRec_63; - public StbUndoRecord UndoRec_64; - public StbUndoRecord UndoRec_65; - public StbUndoRecord UndoRec_66; - public StbUndoRecord UndoRec_67; - public StbUndoRecord UndoRec_68; - public StbUndoRecord UndoRec_69; - public StbUndoRecord UndoRec_70; - public StbUndoRecord UndoRec_71; - public StbUndoRecord UndoRec_72; - public StbUndoRecord UndoRec_73; - public StbUndoRecord UndoRec_74; - public StbUndoRecord UndoRec_75; - public StbUndoRecord UndoRec_76; - public StbUndoRecord UndoRec_77; - public StbUndoRecord UndoRec_78; - public StbUndoRecord UndoRec_79; - public StbUndoRecord UndoRec_80; - public StbUndoRecord UndoRec_81; - public StbUndoRecord UndoRec_82; - public StbUndoRecord UndoRec_83; - public StbUndoRecord UndoRec_84; - public StbUndoRecord UndoRec_85; - public StbUndoRecord UndoRec_86; - public StbUndoRecord UndoRec_87; - public StbUndoRecord UndoRec_88; - public StbUndoRecord UndoRec_89; - public StbUndoRecord UndoRec_90; - public StbUndoRecord UndoRec_91; - public StbUndoRecord UndoRec_92; - public StbUndoRecord UndoRec_93; - public StbUndoRecord UndoRec_94; - public StbUndoRecord UndoRec_95; - public StbUndoRecord UndoRec_96; - public StbUndoRecord UndoRec_97; - public StbUndoRecord UndoRec_98; - public ushort UndoChar_0; - public ushort UndoChar_1; - public ushort UndoChar_2; - public ushort UndoChar_3; - public ushort UndoChar_4; - public ushort UndoChar_5; - public ushort UndoChar_6; - public ushort UndoChar_7; - public ushort UndoChar_8; - public ushort UndoChar_9; - public ushort UndoChar_10; - public ushort UndoChar_11; - public ushort UndoChar_12; - public ushort UndoChar_13; - public ushort UndoChar_14; - public ushort UndoChar_15; - public ushort UndoChar_16; - public ushort UndoChar_17; - public ushort UndoChar_18; - public ushort UndoChar_19; - public ushort UndoChar_20; - public ushort UndoChar_21; - public ushort UndoChar_22; - public ushort UndoChar_23; - public ushort UndoChar_24; - public ushort UndoChar_25; - public ushort UndoChar_26; - public ushort UndoChar_27; - public ushort UndoChar_28; - public ushort UndoChar_29; - public ushort UndoChar_30; - public ushort UndoChar_31; - public ushort UndoChar_32; - public ushort UndoChar_33; - public ushort UndoChar_34; - public ushort UndoChar_35; - public ushort UndoChar_36; - public ushort UndoChar_37; - public ushort UndoChar_38; - public ushort UndoChar_39; - public ushort UndoChar_40; - public ushort UndoChar_41; - public ushort UndoChar_42; - public ushort UndoChar_43; - public ushort UndoChar_44; - public ushort UndoChar_45; - public ushort UndoChar_46; - public ushort UndoChar_47; - public ushort UndoChar_48; - public ushort UndoChar_49; - public ushort UndoChar_50; - public ushort UndoChar_51; - public ushort UndoChar_52; - public ushort UndoChar_53; - public ushort UndoChar_54; - public ushort UndoChar_55; - public ushort UndoChar_56; - public ushort UndoChar_57; - public ushort UndoChar_58; - public ushort UndoChar_59; - public ushort UndoChar_60; - public ushort UndoChar_61; - public ushort UndoChar_62; - public ushort UndoChar_63; - public ushort UndoChar_64; - public ushort UndoChar_65; - public ushort UndoChar_66; - public ushort UndoChar_67; - public ushort UndoChar_68; - public ushort UndoChar_69; - public ushort UndoChar_70; - public ushort UndoChar_71; - public ushort UndoChar_72; - public ushort UndoChar_73; - public ushort UndoChar_74; - public ushort UndoChar_75; - public ushort UndoChar_76; - public ushort UndoChar_77; - public ushort UndoChar_78; - public ushort UndoChar_79; - public ushort UndoChar_80; - public ushort UndoChar_81; - public ushort UndoChar_82; - public ushort UndoChar_83; - public ushort UndoChar_84; - public ushort UndoChar_85; - public ushort UndoChar_86; - public ushort UndoChar_87; - public ushort UndoChar_88; - public ushort UndoChar_89; - public ushort UndoChar_90; - public ushort UndoChar_91; - public ushort UndoChar_92; - public ushort UndoChar_93; - public ushort UndoChar_94; - public ushort UndoChar_95; - public ushort UndoChar_96; - public ushort UndoChar_97; - public ushort UndoChar_98; - public ushort UndoChar_99; - public ushort UndoChar_100; - public ushort UndoChar_101; - public ushort UndoChar_102; - public ushort UndoChar_103; - public ushort UndoChar_104; - public ushort UndoChar_105; - public ushort UndoChar_106; - public ushort UndoChar_107; - public ushort UndoChar_108; - public ushort UndoChar_109; - public ushort UndoChar_110; - public ushort UndoChar_111; - public ushort UndoChar_112; - public ushort UndoChar_113; - public ushort UndoChar_114; - public ushort UndoChar_115; - public ushort UndoChar_116; - public ushort UndoChar_117; - public ushort UndoChar_118; - public ushort UndoChar_119; - public ushort UndoChar_120; - public ushort UndoChar_121; - public ushort UndoChar_122; - public ushort UndoChar_123; - public ushort UndoChar_124; - public ushort UndoChar_125; - public ushort UndoChar_126; - public ushort UndoChar_127; - public ushort UndoChar_128; - public ushort UndoChar_129; - public ushort UndoChar_130; - public ushort UndoChar_131; - public ushort UndoChar_132; - public ushort UndoChar_133; - public ushort UndoChar_134; - public ushort UndoChar_135; - public ushort UndoChar_136; - public ushort UndoChar_137; - public ushort UndoChar_138; - public ushort UndoChar_139; - public ushort UndoChar_140; - public ushort UndoChar_141; - public ushort UndoChar_142; - public ushort UndoChar_143; - public ushort UndoChar_144; - public ushort UndoChar_145; - public ushort UndoChar_146; - public ushort UndoChar_147; - public ushort UndoChar_148; - public ushort UndoChar_149; - public ushort UndoChar_150; - public ushort UndoChar_151; - public ushort UndoChar_152; - public ushort UndoChar_153; - public ushort UndoChar_154; - public ushort UndoChar_155; - public ushort UndoChar_156; - public ushort UndoChar_157; - public ushort UndoChar_158; - public ushort UndoChar_159; - public ushort UndoChar_160; - public ushort UndoChar_161; - public ushort UndoChar_162; - public ushort UndoChar_163; - public ushort UndoChar_164; - public ushort UndoChar_165; - public ushort UndoChar_166; - public ushort UndoChar_167; - public ushort UndoChar_168; - public ushort UndoChar_169; - public ushort UndoChar_170; - public ushort UndoChar_171; - public ushort UndoChar_172; - public ushort UndoChar_173; - public ushort UndoChar_174; - public ushort UndoChar_175; - public ushort UndoChar_176; - public ushort UndoChar_177; - public ushort UndoChar_178; - public ushort UndoChar_179; - public ushort UndoChar_180; - public ushort UndoChar_181; - public ushort UndoChar_182; - public ushort UndoChar_183; - public ushort UndoChar_184; - public ushort UndoChar_185; - public ushort UndoChar_186; - public ushort UndoChar_187; - public ushort UndoChar_188; - public ushort UndoChar_189; - public ushort UndoChar_190; - public ushort UndoChar_191; - public ushort UndoChar_192; - public ushort UndoChar_193; - public ushort UndoChar_194; - public ushort UndoChar_195; - public ushort UndoChar_196; - public ushort UndoChar_197; - public ushort UndoChar_198; - public ushort UndoChar_199; - public ushort UndoChar_200; - public ushort UndoChar_201; - public ushort UndoChar_202; - public ushort UndoChar_203; - public ushort UndoChar_204; - public ushort UndoChar_205; - public ushort UndoChar_206; - public ushort UndoChar_207; - public ushort UndoChar_208; - public ushort UndoChar_209; - public ushort UndoChar_210; - public ushort UndoChar_211; - public ushort UndoChar_212; - public ushort UndoChar_213; - public ushort UndoChar_214; - public ushort UndoChar_215; - public ushort UndoChar_216; - public ushort UndoChar_217; - public ushort UndoChar_218; - public ushort UndoChar_219; - public ushort UndoChar_220; - public ushort UndoChar_221; - public ushort UndoChar_222; - public ushort UndoChar_223; - public ushort UndoChar_224; - public ushort UndoChar_225; - public ushort UndoChar_226; - public ushort UndoChar_227; - public ushort UndoChar_228; - public ushort UndoChar_229; - public ushort UndoChar_230; - public ushort UndoChar_231; - public ushort UndoChar_232; - public ushort UndoChar_233; - public ushort UndoChar_234; - public ushort UndoChar_235; - public ushort UndoChar_236; - public ushort UndoChar_237; - public ushort UndoChar_238; - public ushort UndoChar_239; - public ushort UndoChar_240; - public ushort UndoChar_241; - public ushort UndoChar_242; - public ushort UndoChar_243; - public ushort UndoChar_244; - public ushort UndoChar_245; - public ushort UndoChar_246; - public ushort UndoChar_247; - public ushort UndoChar_248; - public ushort UndoChar_249; - public ushort UndoChar_250; - public ushort UndoChar_251; - public ushort UndoChar_252; - public ushort UndoChar_253; - public ushort UndoChar_254; - public ushort UndoChar_255; - public ushort UndoChar_256; - public ushort UndoChar_257; - public ushort UndoChar_258; - public ushort UndoChar_259; - public ushort UndoChar_260; - public ushort UndoChar_261; - public ushort UndoChar_262; - public ushort UndoChar_263; - public ushort UndoChar_264; - public ushort UndoChar_265; - public ushort UndoChar_266; - public ushort UndoChar_267; - public ushort UndoChar_268; - public ushort UndoChar_269; - public ushort UndoChar_270; - public ushort UndoChar_271; - public ushort UndoChar_272; - public ushort UndoChar_273; - public ushort UndoChar_274; - public ushort UndoChar_275; - public ushort UndoChar_276; - public ushort UndoChar_277; - public ushort UndoChar_278; - public ushort UndoChar_279; - public ushort UndoChar_280; - public ushort UndoChar_281; - public ushort UndoChar_282; - public ushort UndoChar_283; - public ushort UndoChar_284; - public ushort UndoChar_285; - public ushort UndoChar_286; - public ushort UndoChar_287; - public ushort UndoChar_288; - public ushort UndoChar_289; - public ushort UndoChar_290; - public ushort UndoChar_291; - public ushort UndoChar_292; - public ushort UndoChar_293; - public ushort UndoChar_294; - public ushort UndoChar_295; - public ushort UndoChar_296; - public ushort UndoChar_297; - public ushort UndoChar_298; - public ushort UndoChar_299; - public ushort UndoChar_300; - public ushort UndoChar_301; - public ushort UndoChar_302; - public ushort UndoChar_303; - public ushort UndoChar_304; - public ushort UndoChar_305; - public ushort UndoChar_306; - public ushort UndoChar_307; - public ushort UndoChar_308; - public ushort UndoChar_309; - public ushort UndoChar_310; - public ushort UndoChar_311; - public ushort UndoChar_312; - public ushort UndoChar_313; - public ushort UndoChar_314; - public ushort UndoChar_315; - public ushort UndoChar_316; - public ushort UndoChar_317; - public ushort UndoChar_318; - public ushort UndoChar_319; - public ushort UndoChar_320; - public ushort UndoChar_321; - public ushort UndoChar_322; - public ushort UndoChar_323; - public ushort UndoChar_324; - public ushort UndoChar_325; - public ushort UndoChar_326; - public ushort UndoChar_327; - public ushort UndoChar_328; - public ushort UndoChar_329; - public ushort UndoChar_330; - public ushort UndoChar_331; - public ushort UndoChar_332; - public ushort UndoChar_333; - public ushort UndoChar_334; - public ushort UndoChar_335; - public ushort UndoChar_336; - public ushort UndoChar_337; - public ushort UndoChar_338; - public ushort UndoChar_339; - public ushort UndoChar_340; - public ushort UndoChar_341; - public ushort UndoChar_342; - public ushort UndoChar_343; - public ushort UndoChar_344; - public ushort UndoChar_345; - public ushort UndoChar_346; - public ushort UndoChar_347; - public ushort UndoChar_348; - public ushort UndoChar_349; - public ushort UndoChar_350; - public ushort UndoChar_351; - public ushort UndoChar_352; - public ushort UndoChar_353; - public ushort UndoChar_354; - public ushort UndoChar_355; - public ushort UndoChar_356; - public ushort UndoChar_357; - public ushort UndoChar_358; - public ushort UndoChar_359; - public ushort UndoChar_360; - public ushort UndoChar_361; - public ushort UndoChar_362; - public ushort UndoChar_363; - public ushort UndoChar_364; - public ushort UndoChar_365; - public ushort UndoChar_366; - public ushort UndoChar_367; - public ushort UndoChar_368; - public ushort UndoChar_369; - public ushort UndoChar_370; - public ushort UndoChar_371; - public ushort UndoChar_372; - public ushort UndoChar_373; - public ushort UndoChar_374; - public ushort UndoChar_375; - public ushort UndoChar_376; - public ushort UndoChar_377; - public ushort UndoChar_378; - public ushort UndoChar_379; - public ushort UndoChar_380; - public ushort UndoChar_381; - public ushort UndoChar_382; - public ushort UndoChar_383; - public ushort UndoChar_384; - public ushort UndoChar_385; - public ushort UndoChar_386; - public ushort UndoChar_387; - public ushort UndoChar_388; - public ushort UndoChar_389; - public ushort UndoChar_390; - public ushort UndoChar_391; - public ushort UndoChar_392; - public ushort UndoChar_393; - public ushort UndoChar_394; - public ushort UndoChar_395; - public ushort UndoChar_396; - public ushort UndoChar_397; - public ushort UndoChar_398; - public ushort UndoChar_399; - public ushort UndoChar_400; - public ushort UndoChar_401; - public ushort UndoChar_402; - public ushort UndoChar_403; - public ushort UndoChar_404; - public ushort UndoChar_405; - public ushort UndoChar_406; - public ushort UndoChar_407; - public ushort UndoChar_408; - public ushort UndoChar_409; - public ushort UndoChar_410; - public ushort UndoChar_411; - public ushort UndoChar_412; - public ushort UndoChar_413; - public ushort UndoChar_414; - public ushort UndoChar_415; - public ushort UndoChar_416; - public ushort UndoChar_417; - public ushort UndoChar_418; - public ushort UndoChar_419; - public ushort UndoChar_420; - public ushort UndoChar_421; - public ushort UndoChar_422; - public ushort UndoChar_423; - public ushort UndoChar_424; - public ushort UndoChar_425; - public ushort UndoChar_426; - public ushort UndoChar_427; - public ushort UndoChar_428; - public ushort UndoChar_429; - public ushort UndoChar_430; - public ushort UndoChar_431; - public ushort UndoChar_432; - public ushort UndoChar_433; - public ushort UndoChar_434; - public ushort UndoChar_435; - public ushort UndoChar_436; - public ushort UndoChar_437; - public ushort UndoChar_438; - public ushort UndoChar_439; - public ushort UndoChar_440; - public ushort UndoChar_441; - public ushort UndoChar_442; - public ushort UndoChar_443; - public ushort UndoChar_444; - public ushort UndoChar_445; - public ushort UndoChar_446; - public ushort UndoChar_447; - public ushort UndoChar_448; - public ushort UndoChar_449; - public ushort UndoChar_450; - public ushort UndoChar_451; - public ushort UndoChar_452; - public ushort UndoChar_453; - public ushort UndoChar_454; - public ushort UndoChar_455; - public ushort UndoChar_456; - public ushort UndoChar_457; - public ushort UndoChar_458; - public ushort UndoChar_459; - public ushort UndoChar_460; - public ushort UndoChar_461; - public ushort UndoChar_462; - public ushort UndoChar_463; - public ushort UndoChar_464; - public ushort UndoChar_465; - public ushort UndoChar_466; - public ushort UndoChar_467; - public ushort UndoChar_468; - public ushort UndoChar_469; - public ushort UndoChar_470; - public ushort UndoChar_471; - public ushort UndoChar_472; - public ushort UndoChar_473; - public ushort UndoChar_474; - public ushort UndoChar_475; - public ushort UndoChar_476; - public ushort UndoChar_477; - public ushort UndoChar_478; - public ushort UndoChar_479; - public ushort UndoChar_480; - public ushort UndoChar_481; - public ushort UndoChar_482; - public ushort UndoChar_483; - public ushort UndoChar_484; - public ushort UndoChar_485; - public ushort UndoChar_486; - public ushort UndoChar_487; - public ushort UndoChar_488; - public ushort UndoChar_489; - public ushort UndoChar_490; - public ushort UndoChar_491; - public ushort UndoChar_492; - public ushort UndoChar_493; - public ushort UndoChar_494; - public ushort UndoChar_495; - public ushort UndoChar_496; - public ushort UndoChar_497; - public ushort UndoChar_498; - public ushort UndoChar_499; - public ushort UndoChar_500; - public ushort UndoChar_501; - public ushort UndoChar_502; - public ushort UndoChar_503; - public ushort UndoChar_504; - public ushort UndoChar_505; - public ushort UndoChar_506; - public ushort UndoChar_507; - public ushort UndoChar_508; - public ushort UndoChar_509; - public ushort UndoChar_510; - public ushort UndoChar_511; - public ushort UndoChar_512; - public ushort UndoChar_513; - public ushort UndoChar_514; - public ushort UndoChar_515; - public ushort UndoChar_516; - public ushort UndoChar_517; - public ushort UndoChar_518; - public ushort UndoChar_519; - public ushort UndoChar_520; - public ushort UndoChar_521; - public ushort UndoChar_522; - public ushort UndoChar_523; - public ushort UndoChar_524; - public ushort UndoChar_525; - public ushort UndoChar_526; - public ushort UndoChar_527; - public ushort UndoChar_528; - public ushort UndoChar_529; - public ushort UndoChar_530; - public ushort UndoChar_531; - public ushort UndoChar_532; - public ushort UndoChar_533; - public ushort UndoChar_534; - public ushort UndoChar_535; - public ushort UndoChar_536; - public ushort UndoChar_537; - public ushort UndoChar_538; - public ushort UndoChar_539; - public ushort UndoChar_540; - public ushort UndoChar_541; - public ushort UndoChar_542; - public ushort UndoChar_543; - public ushort UndoChar_544; - public ushort UndoChar_545; - public ushort UndoChar_546; - public ushort UndoChar_547; - public ushort UndoChar_548; - public ushort UndoChar_549; - public ushort UndoChar_550; - public ushort UndoChar_551; - public ushort UndoChar_552; - public ushort UndoChar_553; - public ushort UndoChar_554; - public ushort UndoChar_555; - public ushort UndoChar_556; - public ushort UndoChar_557; - public ushort UndoChar_558; - public ushort UndoChar_559; - public ushort UndoChar_560; - public ushort UndoChar_561; - public ushort UndoChar_562; - public ushort UndoChar_563; - public ushort UndoChar_564; - public ushort UndoChar_565; - public ushort UndoChar_566; - public ushort UndoChar_567; - public ushort UndoChar_568; - public ushort UndoChar_569; - public ushort UndoChar_570; - public ushort UndoChar_571; - public ushort UndoChar_572; - public ushort UndoChar_573; - public ushort UndoChar_574; - public ushort UndoChar_575; - public ushort UndoChar_576; - public ushort UndoChar_577; - public ushort UndoChar_578; - public ushort UndoChar_579; - public ushort UndoChar_580; - public ushort UndoChar_581; - public ushort UndoChar_582; - public ushort UndoChar_583; - public ushort UndoChar_584; - public ushort UndoChar_585; - public ushort UndoChar_586; - public ushort UndoChar_587; - public ushort UndoChar_588; - public ushort UndoChar_589; - public ushort UndoChar_590; - public ushort UndoChar_591; - public ushort UndoChar_592; - public ushort UndoChar_593; - public ushort UndoChar_594; - public ushort UndoChar_595; - public ushort UndoChar_596; - public ushort UndoChar_597; - public ushort UndoChar_598; - public ushort UndoChar_599; - public ushort UndoChar_600; - public ushort UndoChar_601; - public ushort UndoChar_602; - public ushort UndoChar_603; - public ushort UndoChar_604; - public ushort UndoChar_605; - public ushort UndoChar_606; - public ushort UndoChar_607; - public ushort UndoChar_608; - public ushort UndoChar_609; - public ushort UndoChar_610; - public ushort UndoChar_611; - public ushort UndoChar_612; - public ushort UndoChar_613; - public ushort UndoChar_614; - public ushort UndoChar_615; - public ushort UndoChar_616; - public ushort UndoChar_617; - public ushort UndoChar_618; - public ushort UndoChar_619; - public ushort UndoChar_620; - public ushort UndoChar_621; - public ushort UndoChar_622; - public ushort UndoChar_623; - public ushort UndoChar_624; - public ushort UndoChar_625; - public ushort UndoChar_626; - public ushort UndoChar_627; - public ushort UndoChar_628; - public ushort UndoChar_629; - public ushort UndoChar_630; - public ushort UndoChar_631; - public ushort UndoChar_632; - public ushort UndoChar_633; - public ushort UndoChar_634; - public ushort UndoChar_635; - public ushort UndoChar_636; - public ushort UndoChar_637; - public ushort UndoChar_638; - public ushort UndoChar_639; - public ushort UndoChar_640; - public ushort UndoChar_641; - public ushort UndoChar_642; - public ushort UndoChar_643; - public ushort UndoChar_644; - public ushort UndoChar_645; - public ushort UndoChar_646; - public ushort UndoChar_647; - public ushort UndoChar_648; - public ushort UndoChar_649; - public ushort UndoChar_650; - public ushort UndoChar_651; - public ushort UndoChar_652; - public ushort UndoChar_653; - public ushort UndoChar_654; - public ushort UndoChar_655; - public ushort UndoChar_656; - public ushort UndoChar_657; - public ushort UndoChar_658; - public ushort UndoChar_659; - public ushort UndoChar_660; - public ushort UndoChar_661; - public ushort UndoChar_662; - public ushort UndoChar_663; - public ushort UndoChar_664; - public ushort UndoChar_665; - public ushort UndoChar_666; - public ushort UndoChar_667; - public ushort UndoChar_668; - public ushort UndoChar_669; - public ushort UndoChar_670; - public ushort UndoChar_671; - public ushort UndoChar_672; - public ushort UndoChar_673; - public ushort UndoChar_674; - public ushort UndoChar_675; - public ushort UndoChar_676; - public ushort UndoChar_677; - public ushort UndoChar_678; - public ushort UndoChar_679; - public ushort UndoChar_680; - public ushort UndoChar_681; - public ushort UndoChar_682; - public ushort UndoChar_683; - public ushort UndoChar_684; - public ushort UndoChar_685; - public ushort UndoChar_686; - public ushort UndoChar_687; - public ushort UndoChar_688; - public ushort UndoChar_689; - public ushort UndoChar_690; - public ushort UndoChar_691; - public ushort UndoChar_692; - public ushort UndoChar_693; - public ushort UndoChar_694; - public ushort UndoChar_695; - public ushort UndoChar_696; - public ushort UndoChar_697; - public ushort UndoChar_698; - public ushort UndoChar_699; - public ushort UndoChar_700; - public ushort UndoChar_701; - public ushort UndoChar_702; - public ushort UndoChar_703; - public ushort UndoChar_704; - public ushort UndoChar_705; - public ushort UndoChar_706; - public ushort UndoChar_707; - public ushort UndoChar_708; - public ushort UndoChar_709; - public ushort UndoChar_710; - public ushort UndoChar_711; - public ushort UndoChar_712; - public ushort UndoChar_713; - public ushort UndoChar_714; - public ushort UndoChar_715; - public ushort UndoChar_716; - public ushort UndoChar_717; - public ushort UndoChar_718; - public ushort UndoChar_719; - public ushort UndoChar_720; - public ushort UndoChar_721; - public ushort UndoChar_722; - public ushort UndoChar_723; - public ushort UndoChar_724; - public ushort UndoChar_725; - public ushort UndoChar_726; - public ushort UndoChar_727; - public ushort UndoChar_728; - public ushort UndoChar_729; - public ushort UndoChar_730; - public ushort UndoChar_731; - public ushort UndoChar_732; - public ushort UndoChar_733; - public ushort UndoChar_734; - public ushort UndoChar_735; - public ushort UndoChar_736; - public ushort UndoChar_737; - public ushort UndoChar_738; - public ushort UndoChar_739; - public ushort UndoChar_740; - public ushort UndoChar_741; - public ushort UndoChar_742; - public ushort UndoChar_743; - public ushort UndoChar_744; - public ushort UndoChar_745; - public ushort UndoChar_746; - public ushort UndoChar_747; - public ushort UndoChar_748; - public ushort UndoChar_749; - public ushort UndoChar_750; - public ushort UndoChar_751; - public ushort UndoChar_752; - public ushort UndoChar_753; - public ushort UndoChar_754; - public ushort UndoChar_755; - public ushort UndoChar_756; - public ushort UndoChar_757; - public ushort UndoChar_758; - public ushort UndoChar_759; - public ushort UndoChar_760; - public ushort UndoChar_761; - public ushort UndoChar_762; - public ushort UndoChar_763; - public ushort UndoChar_764; - public ushort UndoChar_765; - public ushort UndoChar_766; - public ushort UndoChar_767; - public ushort UndoChar_768; - public ushort UndoChar_769; - public ushort UndoChar_770; - public ushort UndoChar_771; - public ushort UndoChar_772; - public ushort UndoChar_773; - public ushort UndoChar_774; - public ushort UndoChar_775; - public ushort UndoChar_776; - public ushort UndoChar_777; - public ushort UndoChar_778; - public ushort UndoChar_779; - public ushort UndoChar_780; - public ushort UndoChar_781; - public ushort UndoChar_782; - public ushort UndoChar_783; - public ushort UndoChar_784; - public ushort UndoChar_785; - public ushort UndoChar_786; - public ushort UndoChar_787; - public ushort UndoChar_788; - public ushort UndoChar_789; - public ushort UndoChar_790; - public ushort UndoChar_791; - public ushort UndoChar_792; - public ushort UndoChar_793; - public ushort UndoChar_794; - public ushort UndoChar_795; - public ushort UndoChar_796; - public ushort UndoChar_797; - public ushort UndoChar_798; - public ushort UndoChar_799; - public ushort UndoChar_800; - public ushort UndoChar_801; - public ushort UndoChar_802; - public ushort UndoChar_803; - public ushort UndoChar_804; - public ushort UndoChar_805; - public ushort UndoChar_806; - public ushort UndoChar_807; - public ushort UndoChar_808; - public ushort UndoChar_809; - public ushort UndoChar_810; - public ushort UndoChar_811; - public ushort UndoChar_812; - public ushort UndoChar_813; - public ushort UndoChar_814; - public ushort UndoChar_815; - public ushort UndoChar_816; - public ushort UndoChar_817; - public ushort UndoChar_818; - public ushort UndoChar_819; - public ushort UndoChar_820; - public ushort UndoChar_821; - public ushort UndoChar_822; - public ushort UndoChar_823; - public ushort UndoChar_824; - public ushort UndoChar_825; - public ushort UndoChar_826; - public ushort UndoChar_827; - public ushort UndoChar_828; - public ushort UndoChar_829; - public ushort UndoChar_830; - public ushort UndoChar_831; - public ushort UndoChar_832; - public ushort UndoChar_833; - public ushort UndoChar_834; - public ushort UndoChar_835; - public ushort UndoChar_836; - public ushort UndoChar_837; - public ushort UndoChar_838; - public ushort UndoChar_839; - public ushort UndoChar_840; - public ushort UndoChar_841; - public ushort UndoChar_842; - public ushort UndoChar_843; - public ushort UndoChar_844; - public ushort UndoChar_845; - public ushort UndoChar_846; - public ushort UndoChar_847; - public ushort UndoChar_848; - public ushort UndoChar_849; - public ushort UndoChar_850; - public ushort UndoChar_851; - public ushort UndoChar_852; - public ushort UndoChar_853; - public ushort UndoChar_854; - public ushort UndoChar_855; - public ushort UndoChar_856; - public ushort UndoChar_857; - public ushort UndoChar_858; - public ushort UndoChar_859; - public ushort UndoChar_860; - public ushort UndoChar_861; - public ushort UndoChar_862; - public ushort UndoChar_863; - public ushort UndoChar_864; - public ushort UndoChar_865; - public ushort UndoChar_866; - public ushort UndoChar_867; - public ushort UndoChar_868; - public ushort UndoChar_869; - public ushort UndoChar_870; - public ushort UndoChar_871; - public ushort UndoChar_872; - public ushort UndoChar_873; - public ushort UndoChar_874; - public ushort UndoChar_875; - public ushort UndoChar_876; - public ushort UndoChar_877; - public ushort UndoChar_878; - public ushort UndoChar_879; - public ushort UndoChar_880; - public ushort UndoChar_881; - public ushort UndoChar_882; - public ushort UndoChar_883; - public ushort UndoChar_884; - public ushort UndoChar_885; - public ushort UndoChar_886; - public ushort UndoChar_887; - public ushort UndoChar_888; - public ushort UndoChar_889; - public ushort UndoChar_890; - public ushort UndoChar_891; - public ushort UndoChar_892; - public ushort UndoChar_893; - public ushort UndoChar_894; - public ushort UndoChar_895; - public ushort UndoChar_896; - public ushort UndoChar_897; - public ushort UndoChar_898; - public ushort UndoChar_899; - public ushort UndoChar_900; - public ushort UndoChar_901; - public ushort UndoChar_902; - public ushort UndoChar_903; - public ushort UndoChar_904; - public ushort UndoChar_905; - public ushort UndoChar_906; - public ushort UndoChar_907; - public ushort UndoChar_908; - public ushort UndoChar_909; - public ushort UndoChar_910; - public ushort UndoChar_911; - public ushort UndoChar_912; - public ushort UndoChar_913; - public ushort UndoChar_914; - public ushort UndoChar_915; - public ushort UndoChar_916; - public ushort UndoChar_917; - public ushort UndoChar_918; - public ushort UndoChar_919; - public ushort UndoChar_920; - public ushort UndoChar_921; - public ushort UndoChar_922; - public ushort UndoChar_923; - public ushort UndoChar_924; - public ushort UndoChar_925; - public ushort UndoChar_926; - public ushort UndoChar_927; - public ushort UndoChar_928; - public ushort UndoChar_929; - public ushort UndoChar_930; - public ushort UndoChar_931; - public ushort UndoChar_932; - public ushort UndoChar_933; - public ushort UndoChar_934; - public ushort UndoChar_935; - public ushort UndoChar_936; - public ushort UndoChar_937; - public ushort UndoChar_938; - public ushort UndoChar_939; - public ushort UndoChar_940; - public ushort UndoChar_941; - public ushort UndoChar_942; - public ushort UndoChar_943; - public ushort UndoChar_944; - public ushort UndoChar_945; - public ushort UndoChar_946; - public ushort UndoChar_947; - public ushort UndoChar_948; - public ushort UndoChar_949; - public ushort UndoChar_950; - public ushort UndoChar_951; - public ushort UndoChar_952; - public ushort UndoChar_953; - public ushort UndoChar_954; - public ushort UndoChar_955; - public ushort UndoChar_956; - public ushort UndoChar_957; - public ushort UndoChar_958; - public ushort UndoChar_959; - public ushort UndoChar_960; - public ushort UndoChar_961; - public ushort UndoChar_962; - public ushort UndoChar_963; - public ushort UndoChar_964; - public ushort UndoChar_965; - public ushort UndoChar_966; - public ushort UndoChar_967; - public ushort UndoChar_968; - public ushort UndoChar_969; - public ushort UndoChar_970; - public ushort UndoChar_971; - public ushort UndoChar_972; - public ushort UndoChar_973; - public ushort UndoChar_974; - public ushort UndoChar_975; - public ushort UndoChar_976; - public ushort UndoChar_977; - public ushort UndoChar_978; - public ushort UndoChar_979; - public ushort UndoChar_980; - public ushort UndoChar_981; - public ushort UndoChar_982; - public ushort UndoChar_983; - public ushort UndoChar_984; - public ushort UndoChar_985; - public ushort UndoChar_986; - public ushort UndoChar_987; - public ushort UndoChar_988; - public ushort UndoChar_989; - public ushort UndoChar_990; - public ushort UndoChar_991; - public ushort UndoChar_992; - public ushort UndoChar_993; - public ushort UndoChar_994; - public ushort UndoChar_995; - public ushort UndoChar_996; - public ushort UndoChar_997; - public ushort UndoChar_998; - public short UndoPoint; - public short RedoPoint; - public int UndoCharPoint; - public int RedoCharPoint; - public unsafe StbUndoState(StbUndoRecord* undoRec = default, ushort* undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) - { - if (undoRec != default(StbUndoRecord*)) - { - UndoRec_0 = undoRec[0]; - UndoRec_1 = undoRec[1]; - UndoRec_2 = undoRec[2]; - UndoRec_3 = undoRec[3]; - UndoRec_4 = undoRec[4]; - UndoRec_5 = undoRec[5]; - UndoRec_6 = undoRec[6]; - UndoRec_7 = undoRec[7]; - UndoRec_8 = undoRec[8]; - UndoRec_9 = undoRec[9]; - UndoRec_10 = undoRec[10]; - UndoRec_11 = undoRec[11]; - UndoRec_12 = undoRec[12]; - UndoRec_13 = undoRec[13]; - UndoRec_14 = undoRec[14]; - UndoRec_15 = undoRec[15]; - UndoRec_16 = undoRec[16]; - UndoRec_17 = undoRec[17]; - UndoRec_18 = undoRec[18]; - UndoRec_19 = undoRec[19]; - UndoRec_20 = undoRec[20]; - UndoRec_21 = undoRec[21]; - UndoRec_22 = undoRec[22]; - UndoRec_23 = undoRec[23]; - UndoRec_24 = undoRec[24]; - UndoRec_25 = undoRec[25]; - UndoRec_26 = undoRec[26]; - UndoRec_27 = undoRec[27]; - UndoRec_28 = undoRec[28]; - UndoRec_29 = undoRec[29]; - UndoRec_30 = undoRec[30]; - UndoRec_31 = undoRec[31]; - UndoRec_32 = undoRec[32]; - UndoRec_33 = undoRec[33]; - UndoRec_34 = undoRec[34]; - UndoRec_35 = undoRec[35]; - UndoRec_36 = undoRec[36]; - UndoRec_37 = undoRec[37]; - UndoRec_38 = undoRec[38]; - UndoRec_39 = undoRec[39]; - UndoRec_40 = undoRec[40]; - UndoRec_41 = undoRec[41]; - UndoRec_42 = undoRec[42]; - UndoRec_43 = undoRec[43]; - UndoRec_44 = undoRec[44]; - UndoRec_45 = undoRec[45]; - UndoRec_46 = undoRec[46]; - UndoRec_47 = undoRec[47]; - UndoRec_48 = undoRec[48]; - UndoRec_49 = undoRec[49]; - UndoRec_50 = undoRec[50]; - UndoRec_51 = undoRec[51]; - UndoRec_52 = undoRec[52]; - UndoRec_53 = undoRec[53]; - UndoRec_54 = undoRec[54]; - UndoRec_55 = undoRec[55]; - UndoRec_56 = undoRec[56]; - UndoRec_57 = undoRec[57]; - UndoRec_58 = undoRec[58]; - UndoRec_59 = undoRec[59]; - UndoRec_60 = undoRec[60]; - UndoRec_61 = undoRec[61]; - UndoRec_62 = undoRec[62]; - UndoRec_63 = undoRec[63]; - UndoRec_64 = undoRec[64]; - UndoRec_65 = undoRec[65]; - UndoRec_66 = undoRec[66]; - UndoRec_67 = undoRec[67]; - UndoRec_68 = undoRec[68]; - UndoRec_69 = undoRec[69]; - UndoRec_70 = undoRec[70]; - UndoRec_71 = undoRec[71]; - UndoRec_72 = undoRec[72]; - UndoRec_73 = undoRec[73]; - UndoRec_74 = undoRec[74]; - UndoRec_75 = undoRec[75]; - UndoRec_76 = undoRec[76]; - UndoRec_77 = undoRec[77]; - UndoRec_78 = undoRec[78]; - UndoRec_79 = undoRec[79]; - UndoRec_80 = undoRec[80]; - UndoRec_81 = undoRec[81]; - UndoRec_82 = undoRec[82]; - UndoRec_83 = undoRec[83]; - UndoRec_84 = undoRec[84]; - UndoRec_85 = undoRec[85]; - UndoRec_86 = undoRec[86]; - UndoRec_87 = undoRec[87]; - UndoRec_88 = undoRec[88]; - UndoRec_89 = undoRec[89]; - UndoRec_90 = undoRec[90]; - UndoRec_91 = undoRec[91]; - UndoRec_92 = undoRec[92]; - UndoRec_93 = undoRec[93]; - UndoRec_94 = undoRec[94]; - UndoRec_95 = undoRec[95]; - UndoRec_96 = undoRec[96]; - UndoRec_97 = undoRec[97]; - UndoRec_98 = undoRec[98]; - } - if (undoChar != default(ushort*)) - { - UndoChar_0 = undoChar[0]; - UndoChar_1 = undoChar[1]; - UndoChar_2 = undoChar[2]; - UndoChar_3 = undoChar[3]; - UndoChar_4 = undoChar[4]; - UndoChar_5 = undoChar[5]; - UndoChar_6 = undoChar[6]; - UndoChar_7 = undoChar[7]; - UndoChar_8 = undoChar[8]; - UndoChar_9 = undoChar[9]; - UndoChar_10 = undoChar[10]; - UndoChar_11 = undoChar[11]; - UndoChar_12 = undoChar[12]; - UndoChar_13 = undoChar[13]; - UndoChar_14 = undoChar[14]; - UndoChar_15 = undoChar[15]; - UndoChar_16 = undoChar[16]; - UndoChar_17 = undoChar[17]; - UndoChar_18 = undoChar[18]; - UndoChar_19 = undoChar[19]; - UndoChar_20 = undoChar[20]; - UndoChar_21 = undoChar[21]; - UndoChar_22 = undoChar[22]; - UndoChar_23 = undoChar[23]; - UndoChar_24 = undoChar[24]; - UndoChar_25 = undoChar[25]; - UndoChar_26 = undoChar[26]; - UndoChar_27 = undoChar[27]; - UndoChar_28 = undoChar[28]; - UndoChar_29 = undoChar[29]; - UndoChar_30 = undoChar[30]; - UndoChar_31 = undoChar[31]; - UndoChar_32 = undoChar[32]; - UndoChar_33 = undoChar[33]; - UndoChar_34 = undoChar[34]; - UndoChar_35 = undoChar[35]; - UndoChar_36 = undoChar[36]; - UndoChar_37 = undoChar[37]; - UndoChar_38 = undoChar[38]; - UndoChar_39 = undoChar[39]; - UndoChar_40 = undoChar[40]; - UndoChar_41 = undoChar[41]; - UndoChar_42 = undoChar[42]; - UndoChar_43 = undoChar[43]; - UndoChar_44 = undoChar[44]; - UndoChar_45 = undoChar[45]; - UndoChar_46 = undoChar[46]; - UndoChar_47 = undoChar[47]; - UndoChar_48 = undoChar[48]; - UndoChar_49 = undoChar[49]; - UndoChar_50 = undoChar[50]; - UndoChar_51 = undoChar[51]; - UndoChar_52 = undoChar[52]; - UndoChar_53 = undoChar[53]; - UndoChar_54 = undoChar[54]; - UndoChar_55 = undoChar[55]; - UndoChar_56 = undoChar[56]; - UndoChar_57 = undoChar[57]; - UndoChar_58 = undoChar[58]; - UndoChar_59 = undoChar[59]; - UndoChar_60 = undoChar[60]; - UndoChar_61 = undoChar[61]; - UndoChar_62 = undoChar[62]; - UndoChar_63 = undoChar[63]; - UndoChar_64 = undoChar[64]; - UndoChar_65 = undoChar[65]; - UndoChar_66 = undoChar[66]; - UndoChar_67 = undoChar[67]; - UndoChar_68 = undoChar[68]; - UndoChar_69 = undoChar[69]; - UndoChar_70 = undoChar[70]; - UndoChar_71 = undoChar[71]; - UndoChar_72 = undoChar[72]; - UndoChar_73 = undoChar[73]; - UndoChar_74 = undoChar[74]; - UndoChar_75 = undoChar[75]; - UndoChar_76 = undoChar[76]; - UndoChar_77 = undoChar[77]; - UndoChar_78 = undoChar[78]; - UndoChar_79 = undoChar[79]; - UndoChar_80 = undoChar[80]; - UndoChar_81 = undoChar[81]; - UndoChar_82 = undoChar[82]; - UndoChar_83 = undoChar[83]; - UndoChar_84 = undoChar[84]; - UndoChar_85 = undoChar[85]; - UndoChar_86 = undoChar[86]; - UndoChar_87 = undoChar[87]; - UndoChar_88 = undoChar[88]; - UndoChar_89 = undoChar[89]; - UndoChar_90 = undoChar[90]; - UndoChar_91 = undoChar[91]; - UndoChar_92 = undoChar[92]; - UndoChar_93 = undoChar[93]; - UndoChar_94 = undoChar[94]; - UndoChar_95 = undoChar[95]; - UndoChar_96 = undoChar[96]; - UndoChar_97 = undoChar[97]; - UndoChar_98 = undoChar[98]; - UndoChar_99 = undoChar[99]; - UndoChar_100 = undoChar[100]; - UndoChar_101 = undoChar[101]; - UndoChar_102 = undoChar[102]; - UndoChar_103 = undoChar[103]; - UndoChar_104 = undoChar[104]; - UndoChar_105 = undoChar[105]; - UndoChar_106 = undoChar[106]; - UndoChar_107 = undoChar[107]; - UndoChar_108 = undoChar[108]; - UndoChar_109 = undoChar[109]; - UndoChar_110 = undoChar[110]; - UndoChar_111 = undoChar[111]; - UndoChar_112 = undoChar[112]; - UndoChar_113 = undoChar[113]; - UndoChar_114 = undoChar[114]; - UndoChar_115 = undoChar[115]; - UndoChar_116 = undoChar[116]; - UndoChar_117 = undoChar[117]; - UndoChar_118 = undoChar[118]; - UndoChar_119 = undoChar[119]; - UndoChar_120 = undoChar[120]; - UndoChar_121 = undoChar[121]; - UndoChar_122 = undoChar[122]; - UndoChar_123 = undoChar[123]; - UndoChar_124 = undoChar[124]; - UndoChar_125 = undoChar[125]; - UndoChar_126 = undoChar[126]; - UndoChar_127 = undoChar[127]; - UndoChar_128 = undoChar[128]; - UndoChar_129 = undoChar[129]; - UndoChar_130 = undoChar[130]; - UndoChar_131 = undoChar[131]; - UndoChar_132 = undoChar[132]; - UndoChar_133 = undoChar[133]; - UndoChar_134 = undoChar[134]; - UndoChar_135 = undoChar[135]; - UndoChar_136 = undoChar[136]; - UndoChar_137 = undoChar[137]; - UndoChar_138 = undoChar[138]; - UndoChar_139 = undoChar[139]; - UndoChar_140 = undoChar[140]; - UndoChar_141 = undoChar[141]; - UndoChar_142 = undoChar[142]; - UndoChar_143 = undoChar[143]; - UndoChar_144 = undoChar[144]; - UndoChar_145 = undoChar[145]; - UndoChar_146 = undoChar[146]; - UndoChar_147 = undoChar[147]; - UndoChar_148 = undoChar[148]; - UndoChar_149 = undoChar[149]; - UndoChar_150 = undoChar[150]; - UndoChar_151 = undoChar[151]; - UndoChar_152 = undoChar[152]; - UndoChar_153 = undoChar[153]; - UndoChar_154 = undoChar[154]; - UndoChar_155 = undoChar[155]; - UndoChar_156 = undoChar[156]; - UndoChar_157 = undoChar[157]; - UndoChar_158 = undoChar[158]; - UndoChar_159 = undoChar[159]; - UndoChar_160 = undoChar[160]; - UndoChar_161 = undoChar[161]; - UndoChar_162 = undoChar[162]; - UndoChar_163 = undoChar[163]; - UndoChar_164 = undoChar[164]; - UndoChar_165 = undoChar[165]; - UndoChar_166 = undoChar[166]; - UndoChar_167 = undoChar[167]; - UndoChar_168 = undoChar[168]; - UndoChar_169 = undoChar[169]; - UndoChar_170 = undoChar[170]; - UndoChar_171 = undoChar[171]; - UndoChar_172 = undoChar[172]; - UndoChar_173 = undoChar[173]; - UndoChar_174 = undoChar[174]; - UndoChar_175 = undoChar[175]; - UndoChar_176 = undoChar[176]; - UndoChar_177 = undoChar[177]; - UndoChar_178 = undoChar[178]; - UndoChar_179 = undoChar[179]; - UndoChar_180 = undoChar[180]; - UndoChar_181 = undoChar[181]; - UndoChar_182 = undoChar[182]; - UndoChar_183 = undoChar[183]; - UndoChar_184 = undoChar[184]; - UndoChar_185 = undoChar[185]; - UndoChar_186 = undoChar[186]; - UndoChar_187 = undoChar[187]; - UndoChar_188 = undoChar[188]; - UndoChar_189 = undoChar[189]; - UndoChar_190 = undoChar[190]; - UndoChar_191 = undoChar[191]; - UndoChar_192 = undoChar[192]; - UndoChar_193 = undoChar[193]; - UndoChar_194 = undoChar[194]; - UndoChar_195 = undoChar[195]; - UndoChar_196 = undoChar[196]; - UndoChar_197 = undoChar[197]; - UndoChar_198 = undoChar[198]; - UndoChar_199 = undoChar[199]; - UndoChar_200 = undoChar[200]; - UndoChar_201 = undoChar[201]; - UndoChar_202 = undoChar[202]; - UndoChar_203 = undoChar[203]; - UndoChar_204 = undoChar[204]; - UndoChar_205 = undoChar[205]; - UndoChar_206 = undoChar[206]; - UndoChar_207 = undoChar[207]; - UndoChar_208 = undoChar[208]; - UndoChar_209 = undoChar[209]; - UndoChar_210 = undoChar[210]; - UndoChar_211 = undoChar[211]; - UndoChar_212 = undoChar[212]; - UndoChar_213 = undoChar[213]; - UndoChar_214 = undoChar[214]; - UndoChar_215 = undoChar[215]; - UndoChar_216 = undoChar[216]; - UndoChar_217 = undoChar[217]; - UndoChar_218 = undoChar[218]; - UndoChar_219 = undoChar[219]; - UndoChar_220 = undoChar[220]; - UndoChar_221 = undoChar[221]; - UndoChar_222 = undoChar[222]; - UndoChar_223 = undoChar[223]; - UndoChar_224 = undoChar[224]; - UndoChar_225 = undoChar[225]; - UndoChar_226 = undoChar[226]; - UndoChar_227 = undoChar[227]; - UndoChar_228 = undoChar[228]; - UndoChar_229 = undoChar[229]; - UndoChar_230 = undoChar[230]; - UndoChar_231 = undoChar[231]; - UndoChar_232 = undoChar[232]; - UndoChar_233 = undoChar[233]; - UndoChar_234 = undoChar[234]; - UndoChar_235 = undoChar[235]; - UndoChar_236 = undoChar[236]; - UndoChar_237 = undoChar[237]; - UndoChar_238 = undoChar[238]; - UndoChar_239 = undoChar[239]; - UndoChar_240 = undoChar[240]; - UndoChar_241 = undoChar[241]; - UndoChar_242 = undoChar[242]; - UndoChar_243 = undoChar[243]; - UndoChar_244 = undoChar[244]; - UndoChar_245 = undoChar[245]; - UndoChar_246 = undoChar[246]; - UndoChar_247 = undoChar[247]; - UndoChar_248 = undoChar[248]; - UndoChar_249 = undoChar[249]; - UndoChar_250 = undoChar[250]; - UndoChar_251 = undoChar[251]; - UndoChar_252 = undoChar[252]; - UndoChar_253 = undoChar[253]; - UndoChar_254 = undoChar[254]; - UndoChar_255 = undoChar[255]; - UndoChar_256 = undoChar[256]; - UndoChar_257 = undoChar[257]; - UndoChar_258 = undoChar[258]; - UndoChar_259 = undoChar[259]; - UndoChar_260 = undoChar[260]; - UndoChar_261 = undoChar[261]; - UndoChar_262 = undoChar[262]; - UndoChar_263 = undoChar[263]; - UndoChar_264 = undoChar[264]; - UndoChar_265 = undoChar[265]; - UndoChar_266 = undoChar[266]; - UndoChar_267 = undoChar[267]; - UndoChar_268 = undoChar[268]; - UndoChar_269 = undoChar[269]; - UndoChar_270 = undoChar[270]; - UndoChar_271 = undoChar[271]; - UndoChar_272 = undoChar[272]; - UndoChar_273 = undoChar[273]; - UndoChar_274 = undoChar[274]; - UndoChar_275 = undoChar[275]; - UndoChar_276 = undoChar[276]; - UndoChar_277 = undoChar[277]; - UndoChar_278 = undoChar[278]; - UndoChar_279 = undoChar[279]; - UndoChar_280 = undoChar[280]; - UndoChar_281 = undoChar[281]; - UndoChar_282 = undoChar[282]; - UndoChar_283 = undoChar[283]; - UndoChar_284 = undoChar[284]; - UndoChar_285 = undoChar[285]; - UndoChar_286 = undoChar[286]; - UndoChar_287 = undoChar[287]; - UndoChar_288 = undoChar[288]; - UndoChar_289 = undoChar[289]; - UndoChar_290 = undoChar[290]; - UndoChar_291 = undoChar[291]; - UndoChar_292 = undoChar[292]; - UndoChar_293 = undoChar[293]; - UndoChar_294 = undoChar[294]; - UndoChar_295 = undoChar[295]; - UndoChar_296 = undoChar[296]; - UndoChar_297 = undoChar[297]; - UndoChar_298 = undoChar[298]; - UndoChar_299 = undoChar[299]; - UndoChar_300 = undoChar[300]; - UndoChar_301 = undoChar[301]; - UndoChar_302 = undoChar[302]; - UndoChar_303 = undoChar[303]; - UndoChar_304 = undoChar[304]; - UndoChar_305 = undoChar[305]; - UndoChar_306 = undoChar[306]; - UndoChar_307 = undoChar[307]; - UndoChar_308 = undoChar[308]; - UndoChar_309 = undoChar[309]; - UndoChar_310 = undoChar[310]; - UndoChar_311 = undoChar[311]; - UndoChar_312 = undoChar[312]; - UndoChar_313 = undoChar[313]; - UndoChar_314 = undoChar[314]; - UndoChar_315 = undoChar[315]; - UndoChar_316 = undoChar[316]; - UndoChar_317 = undoChar[317]; - UndoChar_318 = undoChar[318]; - UndoChar_319 = undoChar[319]; - UndoChar_320 = undoChar[320]; - UndoChar_321 = undoChar[321]; - UndoChar_322 = undoChar[322]; - UndoChar_323 = undoChar[323]; - UndoChar_324 = undoChar[324]; - UndoChar_325 = undoChar[325]; - UndoChar_326 = undoChar[326]; - UndoChar_327 = undoChar[327]; - UndoChar_328 = undoChar[328]; - UndoChar_329 = undoChar[329]; - UndoChar_330 = undoChar[330]; - UndoChar_331 = undoChar[331]; - UndoChar_332 = undoChar[332]; - UndoChar_333 = undoChar[333]; - UndoChar_334 = undoChar[334]; - UndoChar_335 = undoChar[335]; - UndoChar_336 = undoChar[336]; - UndoChar_337 = undoChar[337]; - UndoChar_338 = undoChar[338]; - UndoChar_339 = undoChar[339]; - UndoChar_340 = undoChar[340]; - UndoChar_341 = undoChar[341]; - UndoChar_342 = undoChar[342]; - UndoChar_343 = undoChar[343]; - UndoChar_344 = undoChar[344]; - UndoChar_345 = undoChar[345]; - UndoChar_346 = undoChar[346]; - UndoChar_347 = undoChar[347]; - UndoChar_348 = undoChar[348]; - UndoChar_349 = undoChar[349]; - UndoChar_350 = undoChar[350]; - UndoChar_351 = undoChar[351]; - UndoChar_352 = undoChar[352]; - UndoChar_353 = undoChar[353]; - UndoChar_354 = undoChar[354]; - UndoChar_355 = undoChar[355]; - UndoChar_356 = undoChar[356]; - UndoChar_357 = undoChar[357]; - UndoChar_358 = undoChar[358]; - UndoChar_359 = undoChar[359]; - UndoChar_360 = undoChar[360]; - UndoChar_361 = undoChar[361]; - UndoChar_362 = undoChar[362]; - UndoChar_363 = undoChar[363]; - UndoChar_364 = undoChar[364]; - UndoChar_365 = undoChar[365]; - UndoChar_366 = undoChar[366]; - UndoChar_367 = undoChar[367]; - UndoChar_368 = undoChar[368]; - UndoChar_369 = undoChar[369]; - UndoChar_370 = undoChar[370]; - UndoChar_371 = undoChar[371]; - UndoChar_372 = undoChar[372]; - UndoChar_373 = undoChar[373]; - UndoChar_374 = undoChar[374]; - UndoChar_375 = undoChar[375]; - UndoChar_376 = undoChar[376]; - UndoChar_377 = undoChar[377]; - UndoChar_378 = undoChar[378]; - UndoChar_379 = undoChar[379]; - UndoChar_380 = undoChar[380]; - UndoChar_381 = undoChar[381]; - UndoChar_382 = undoChar[382]; - UndoChar_383 = undoChar[383]; - UndoChar_384 = undoChar[384]; - UndoChar_385 = undoChar[385]; - UndoChar_386 = undoChar[386]; - UndoChar_387 = undoChar[387]; - UndoChar_388 = undoChar[388]; - UndoChar_389 = undoChar[389]; - UndoChar_390 = undoChar[390]; - UndoChar_391 = undoChar[391]; - UndoChar_392 = undoChar[392]; - UndoChar_393 = undoChar[393]; - UndoChar_394 = undoChar[394]; - UndoChar_395 = undoChar[395]; - UndoChar_396 = undoChar[396]; - UndoChar_397 = undoChar[397]; - UndoChar_398 = undoChar[398]; - UndoChar_399 = undoChar[399]; - UndoChar_400 = undoChar[400]; - UndoChar_401 = undoChar[401]; - UndoChar_402 = undoChar[402]; - UndoChar_403 = undoChar[403]; - UndoChar_404 = undoChar[404]; - UndoChar_405 = undoChar[405]; - UndoChar_406 = undoChar[406]; - UndoChar_407 = undoChar[407]; - UndoChar_408 = undoChar[408]; - UndoChar_409 = undoChar[409]; - UndoChar_410 = undoChar[410]; - UndoChar_411 = undoChar[411]; - UndoChar_412 = undoChar[412]; - UndoChar_413 = undoChar[413]; - UndoChar_414 = undoChar[414]; - UndoChar_415 = undoChar[415]; - UndoChar_416 = undoChar[416]; - UndoChar_417 = undoChar[417]; - UndoChar_418 = undoChar[418]; - UndoChar_419 = undoChar[419]; - UndoChar_420 = undoChar[420]; - UndoChar_421 = undoChar[421]; - UndoChar_422 = undoChar[422]; - UndoChar_423 = undoChar[423]; - UndoChar_424 = undoChar[424]; - UndoChar_425 = undoChar[425]; - UndoChar_426 = undoChar[426]; - UndoChar_427 = undoChar[427]; - UndoChar_428 = undoChar[428]; - UndoChar_429 = undoChar[429]; - UndoChar_430 = undoChar[430]; - UndoChar_431 = undoChar[431]; - UndoChar_432 = undoChar[432]; - UndoChar_433 = undoChar[433]; - UndoChar_434 = undoChar[434]; - UndoChar_435 = undoChar[435]; - UndoChar_436 = undoChar[436]; - UndoChar_437 = undoChar[437]; - UndoChar_438 = undoChar[438]; - UndoChar_439 = undoChar[439]; - UndoChar_440 = undoChar[440]; - UndoChar_441 = undoChar[441]; - UndoChar_442 = undoChar[442]; - UndoChar_443 = undoChar[443]; - UndoChar_444 = undoChar[444]; - UndoChar_445 = undoChar[445]; - UndoChar_446 = undoChar[446]; - UndoChar_447 = undoChar[447]; - UndoChar_448 = undoChar[448]; - UndoChar_449 = undoChar[449]; - UndoChar_450 = undoChar[450]; - UndoChar_451 = undoChar[451]; - UndoChar_452 = undoChar[452]; - UndoChar_453 = undoChar[453]; - UndoChar_454 = undoChar[454]; - UndoChar_455 = undoChar[455]; - UndoChar_456 = undoChar[456]; - UndoChar_457 = undoChar[457]; - UndoChar_458 = undoChar[458]; - UndoChar_459 = undoChar[459]; - UndoChar_460 = undoChar[460]; - UndoChar_461 = undoChar[461]; - UndoChar_462 = undoChar[462]; - UndoChar_463 = undoChar[463]; - UndoChar_464 = undoChar[464]; - UndoChar_465 = undoChar[465]; - UndoChar_466 = undoChar[466]; - UndoChar_467 = undoChar[467]; - UndoChar_468 = undoChar[468]; - UndoChar_469 = undoChar[469]; - UndoChar_470 = undoChar[470]; - UndoChar_471 = undoChar[471]; - UndoChar_472 = undoChar[472]; - UndoChar_473 = undoChar[473]; - UndoChar_474 = undoChar[474]; - UndoChar_475 = undoChar[475]; - UndoChar_476 = undoChar[476]; - UndoChar_477 = undoChar[477]; - UndoChar_478 = undoChar[478]; - UndoChar_479 = undoChar[479]; - UndoChar_480 = undoChar[480]; - UndoChar_481 = undoChar[481]; - UndoChar_482 = undoChar[482]; - UndoChar_483 = undoChar[483]; - UndoChar_484 = undoChar[484]; - UndoChar_485 = undoChar[485]; - UndoChar_486 = undoChar[486]; - UndoChar_487 = undoChar[487]; - UndoChar_488 = undoChar[488]; - UndoChar_489 = undoChar[489]; - UndoChar_490 = undoChar[490]; - UndoChar_491 = undoChar[491]; - UndoChar_492 = undoChar[492]; - UndoChar_493 = undoChar[493]; - UndoChar_494 = undoChar[494]; - UndoChar_495 = undoChar[495]; - UndoChar_496 = undoChar[496]; - UndoChar_497 = undoChar[497]; - UndoChar_498 = undoChar[498]; - UndoChar_499 = undoChar[499]; - UndoChar_500 = undoChar[500]; - UndoChar_501 = undoChar[501]; - UndoChar_502 = undoChar[502]; - UndoChar_503 = undoChar[503]; - UndoChar_504 = undoChar[504]; - UndoChar_505 = undoChar[505]; - UndoChar_506 = undoChar[506]; - UndoChar_507 = undoChar[507]; - UndoChar_508 = undoChar[508]; - UndoChar_509 = undoChar[509]; - UndoChar_510 = undoChar[510]; - UndoChar_511 = undoChar[511]; - UndoChar_512 = undoChar[512]; - UndoChar_513 = undoChar[513]; - UndoChar_514 = undoChar[514]; - UndoChar_515 = undoChar[515]; - UndoChar_516 = undoChar[516]; - UndoChar_517 = undoChar[517]; - UndoChar_518 = undoChar[518]; - UndoChar_519 = undoChar[519]; - UndoChar_520 = undoChar[520]; - UndoChar_521 = undoChar[521]; - UndoChar_522 = undoChar[522]; - UndoChar_523 = undoChar[523]; - UndoChar_524 = undoChar[524]; - UndoChar_525 = undoChar[525]; - UndoChar_526 = undoChar[526]; - UndoChar_527 = undoChar[527]; - UndoChar_528 = undoChar[528]; - UndoChar_529 = undoChar[529]; - UndoChar_530 = undoChar[530]; - UndoChar_531 = undoChar[531]; - UndoChar_532 = undoChar[532]; - UndoChar_533 = undoChar[533]; - UndoChar_534 = undoChar[534]; - UndoChar_535 = undoChar[535]; - UndoChar_536 = undoChar[536]; - UndoChar_537 = undoChar[537]; - UndoChar_538 = undoChar[538]; - UndoChar_539 = undoChar[539]; - UndoChar_540 = undoChar[540]; - UndoChar_541 = undoChar[541]; - UndoChar_542 = undoChar[542]; - UndoChar_543 = undoChar[543]; - UndoChar_544 = undoChar[544]; - UndoChar_545 = undoChar[545]; - UndoChar_546 = undoChar[546]; - UndoChar_547 = undoChar[547]; - UndoChar_548 = undoChar[548]; - UndoChar_549 = undoChar[549]; - UndoChar_550 = undoChar[550]; - UndoChar_551 = undoChar[551]; - UndoChar_552 = undoChar[552]; - UndoChar_553 = undoChar[553]; - UndoChar_554 = undoChar[554]; - UndoChar_555 = undoChar[555]; - UndoChar_556 = undoChar[556]; - UndoChar_557 = undoChar[557]; - UndoChar_558 = undoChar[558]; - UndoChar_559 = undoChar[559]; - UndoChar_560 = undoChar[560]; - UndoChar_561 = undoChar[561]; - UndoChar_562 = undoChar[562]; - UndoChar_563 = undoChar[563]; - UndoChar_564 = undoChar[564]; - UndoChar_565 = undoChar[565]; - UndoChar_566 = undoChar[566]; - UndoChar_567 = undoChar[567]; - UndoChar_568 = undoChar[568]; - UndoChar_569 = undoChar[569]; - UndoChar_570 = undoChar[570]; - UndoChar_571 = undoChar[571]; - UndoChar_572 = undoChar[572]; - UndoChar_573 = undoChar[573]; - UndoChar_574 = undoChar[574]; - UndoChar_575 = undoChar[575]; - UndoChar_576 = undoChar[576]; - UndoChar_577 = undoChar[577]; - UndoChar_578 = undoChar[578]; - UndoChar_579 = undoChar[579]; - UndoChar_580 = undoChar[580]; - UndoChar_581 = undoChar[581]; - UndoChar_582 = undoChar[582]; - UndoChar_583 = undoChar[583]; - UndoChar_584 = undoChar[584]; - UndoChar_585 = undoChar[585]; - UndoChar_586 = undoChar[586]; - UndoChar_587 = undoChar[587]; - UndoChar_588 = undoChar[588]; - UndoChar_589 = undoChar[589]; - UndoChar_590 = undoChar[590]; - UndoChar_591 = undoChar[591]; - UndoChar_592 = undoChar[592]; - UndoChar_593 = undoChar[593]; - UndoChar_594 = undoChar[594]; - UndoChar_595 = undoChar[595]; - UndoChar_596 = undoChar[596]; - UndoChar_597 = undoChar[597]; - UndoChar_598 = undoChar[598]; - UndoChar_599 = undoChar[599]; - UndoChar_600 = undoChar[600]; - UndoChar_601 = undoChar[601]; - UndoChar_602 = undoChar[602]; - UndoChar_603 = undoChar[603]; - UndoChar_604 = undoChar[604]; - UndoChar_605 = undoChar[605]; - UndoChar_606 = undoChar[606]; - UndoChar_607 = undoChar[607]; - UndoChar_608 = undoChar[608]; - UndoChar_609 = undoChar[609]; - UndoChar_610 = undoChar[610]; - UndoChar_611 = undoChar[611]; - UndoChar_612 = undoChar[612]; - UndoChar_613 = undoChar[613]; - UndoChar_614 = undoChar[614]; - UndoChar_615 = undoChar[615]; - UndoChar_616 = undoChar[616]; - UndoChar_617 = undoChar[617]; - UndoChar_618 = undoChar[618]; - UndoChar_619 = undoChar[619]; - UndoChar_620 = undoChar[620]; - UndoChar_621 = undoChar[621]; - UndoChar_622 = undoChar[622]; - UndoChar_623 = undoChar[623]; - UndoChar_624 = undoChar[624]; - UndoChar_625 = undoChar[625]; - UndoChar_626 = undoChar[626]; - UndoChar_627 = undoChar[627]; - UndoChar_628 = undoChar[628]; - UndoChar_629 = undoChar[629]; - UndoChar_630 = undoChar[630]; - UndoChar_631 = undoChar[631]; - UndoChar_632 = undoChar[632]; - UndoChar_633 = undoChar[633]; - UndoChar_634 = undoChar[634]; - UndoChar_635 = undoChar[635]; - UndoChar_636 = undoChar[636]; - UndoChar_637 = undoChar[637]; - UndoChar_638 = undoChar[638]; - UndoChar_639 = undoChar[639]; - UndoChar_640 = undoChar[640]; - UndoChar_641 = undoChar[641]; - UndoChar_642 = undoChar[642]; - UndoChar_643 = undoChar[643]; - UndoChar_644 = undoChar[644]; - UndoChar_645 = undoChar[645]; - UndoChar_646 = undoChar[646]; - UndoChar_647 = undoChar[647]; - UndoChar_648 = undoChar[648]; - UndoChar_649 = undoChar[649]; - UndoChar_650 = undoChar[650]; - UndoChar_651 = undoChar[651]; - UndoChar_652 = undoChar[652]; - UndoChar_653 = undoChar[653]; - UndoChar_654 = undoChar[654]; - UndoChar_655 = undoChar[655]; - UndoChar_656 = undoChar[656]; - UndoChar_657 = undoChar[657]; - UndoChar_658 = undoChar[658]; - UndoChar_659 = undoChar[659]; - UndoChar_660 = undoChar[660]; - UndoChar_661 = undoChar[661]; - UndoChar_662 = undoChar[662]; - UndoChar_663 = undoChar[663]; - UndoChar_664 = undoChar[664]; - UndoChar_665 = undoChar[665]; - UndoChar_666 = undoChar[666]; - UndoChar_667 = undoChar[667]; - UndoChar_668 = undoChar[668]; - UndoChar_669 = undoChar[669]; - UndoChar_670 = undoChar[670]; - UndoChar_671 = undoChar[671]; - UndoChar_672 = undoChar[672]; - UndoChar_673 = undoChar[673]; - UndoChar_674 = undoChar[674]; - UndoChar_675 = undoChar[675]; - UndoChar_676 = undoChar[676]; - UndoChar_677 = undoChar[677]; - UndoChar_678 = undoChar[678]; - UndoChar_679 = undoChar[679]; - UndoChar_680 = undoChar[680]; - UndoChar_681 = undoChar[681]; - UndoChar_682 = undoChar[682]; - UndoChar_683 = undoChar[683]; - UndoChar_684 = undoChar[684]; - UndoChar_685 = undoChar[685]; - UndoChar_686 = undoChar[686]; - UndoChar_687 = undoChar[687]; - UndoChar_688 = undoChar[688]; - UndoChar_689 = undoChar[689]; - UndoChar_690 = undoChar[690]; - UndoChar_691 = undoChar[691]; - UndoChar_692 = undoChar[692]; - UndoChar_693 = undoChar[693]; - UndoChar_694 = undoChar[694]; - UndoChar_695 = undoChar[695]; - UndoChar_696 = undoChar[696]; - UndoChar_697 = undoChar[697]; - UndoChar_698 = undoChar[698]; - UndoChar_699 = undoChar[699]; - UndoChar_700 = undoChar[700]; - UndoChar_701 = undoChar[701]; - UndoChar_702 = undoChar[702]; - UndoChar_703 = undoChar[703]; - UndoChar_704 = undoChar[704]; - UndoChar_705 = undoChar[705]; - UndoChar_706 = undoChar[706]; - UndoChar_707 = undoChar[707]; - UndoChar_708 = undoChar[708]; - UndoChar_709 = undoChar[709]; - UndoChar_710 = undoChar[710]; - UndoChar_711 = undoChar[711]; - UndoChar_712 = undoChar[712]; - UndoChar_713 = undoChar[713]; - UndoChar_714 = undoChar[714]; - UndoChar_715 = undoChar[715]; - UndoChar_716 = undoChar[716]; - UndoChar_717 = undoChar[717]; - UndoChar_718 = undoChar[718]; - UndoChar_719 = undoChar[719]; - UndoChar_720 = undoChar[720]; - UndoChar_721 = undoChar[721]; - UndoChar_722 = undoChar[722]; - UndoChar_723 = undoChar[723]; - UndoChar_724 = undoChar[724]; - UndoChar_725 = undoChar[725]; - UndoChar_726 = undoChar[726]; - UndoChar_727 = undoChar[727]; - UndoChar_728 = undoChar[728]; - UndoChar_729 = undoChar[729]; - UndoChar_730 = undoChar[730]; - UndoChar_731 = undoChar[731]; - UndoChar_732 = undoChar[732]; - UndoChar_733 = undoChar[733]; - UndoChar_734 = undoChar[734]; - UndoChar_735 = undoChar[735]; - UndoChar_736 = undoChar[736]; - UndoChar_737 = undoChar[737]; - UndoChar_738 = undoChar[738]; - UndoChar_739 = undoChar[739]; - UndoChar_740 = undoChar[740]; - UndoChar_741 = undoChar[741]; - UndoChar_742 = undoChar[742]; - UndoChar_743 = undoChar[743]; - UndoChar_744 = undoChar[744]; - UndoChar_745 = undoChar[745]; - UndoChar_746 = undoChar[746]; - UndoChar_747 = undoChar[747]; - UndoChar_748 = undoChar[748]; - UndoChar_749 = undoChar[749]; - UndoChar_750 = undoChar[750]; - UndoChar_751 = undoChar[751]; - UndoChar_752 = undoChar[752]; - UndoChar_753 = undoChar[753]; - UndoChar_754 = undoChar[754]; - UndoChar_755 = undoChar[755]; - UndoChar_756 = undoChar[756]; - UndoChar_757 = undoChar[757]; - UndoChar_758 = undoChar[758]; - UndoChar_759 = undoChar[759]; - UndoChar_760 = undoChar[760]; - UndoChar_761 = undoChar[761]; - UndoChar_762 = undoChar[762]; - UndoChar_763 = undoChar[763]; - UndoChar_764 = undoChar[764]; - UndoChar_765 = undoChar[765]; - UndoChar_766 = undoChar[766]; - UndoChar_767 = undoChar[767]; - UndoChar_768 = undoChar[768]; - UndoChar_769 = undoChar[769]; - UndoChar_770 = undoChar[770]; - UndoChar_771 = undoChar[771]; - UndoChar_772 = undoChar[772]; - UndoChar_773 = undoChar[773]; - UndoChar_774 = undoChar[774]; - UndoChar_775 = undoChar[775]; - UndoChar_776 = undoChar[776]; - UndoChar_777 = undoChar[777]; - UndoChar_778 = undoChar[778]; - UndoChar_779 = undoChar[779]; - UndoChar_780 = undoChar[780]; - UndoChar_781 = undoChar[781]; - UndoChar_782 = undoChar[782]; - UndoChar_783 = undoChar[783]; - UndoChar_784 = undoChar[784]; - UndoChar_785 = undoChar[785]; - UndoChar_786 = undoChar[786]; - UndoChar_787 = undoChar[787]; - UndoChar_788 = undoChar[788]; - UndoChar_789 = undoChar[789]; - UndoChar_790 = undoChar[790]; - UndoChar_791 = undoChar[791]; - UndoChar_792 = undoChar[792]; - UndoChar_793 = undoChar[793]; - UndoChar_794 = undoChar[794]; - UndoChar_795 = undoChar[795]; - UndoChar_796 = undoChar[796]; - UndoChar_797 = undoChar[797]; - UndoChar_798 = undoChar[798]; - UndoChar_799 = undoChar[799]; - UndoChar_800 = undoChar[800]; - UndoChar_801 = undoChar[801]; - UndoChar_802 = undoChar[802]; - UndoChar_803 = undoChar[803]; - UndoChar_804 = undoChar[804]; - UndoChar_805 = undoChar[805]; - UndoChar_806 = undoChar[806]; - UndoChar_807 = undoChar[807]; - UndoChar_808 = undoChar[808]; - UndoChar_809 = undoChar[809]; - UndoChar_810 = undoChar[810]; - UndoChar_811 = undoChar[811]; - UndoChar_812 = undoChar[812]; - UndoChar_813 = undoChar[813]; - UndoChar_814 = undoChar[814]; - UndoChar_815 = undoChar[815]; - UndoChar_816 = undoChar[816]; - UndoChar_817 = undoChar[817]; - UndoChar_818 = undoChar[818]; - UndoChar_819 = undoChar[819]; - UndoChar_820 = undoChar[820]; - UndoChar_821 = undoChar[821]; - UndoChar_822 = undoChar[822]; - UndoChar_823 = undoChar[823]; - UndoChar_824 = undoChar[824]; - UndoChar_825 = undoChar[825]; - UndoChar_826 = undoChar[826]; - UndoChar_827 = undoChar[827]; - UndoChar_828 = undoChar[828]; - UndoChar_829 = undoChar[829]; - UndoChar_830 = undoChar[830]; - UndoChar_831 = undoChar[831]; - UndoChar_832 = undoChar[832]; - UndoChar_833 = undoChar[833]; - UndoChar_834 = undoChar[834]; - UndoChar_835 = undoChar[835]; - UndoChar_836 = undoChar[836]; - UndoChar_837 = undoChar[837]; - UndoChar_838 = undoChar[838]; - UndoChar_839 = undoChar[839]; - UndoChar_840 = undoChar[840]; - UndoChar_841 = undoChar[841]; - UndoChar_842 = undoChar[842]; - UndoChar_843 = undoChar[843]; - UndoChar_844 = undoChar[844]; - UndoChar_845 = undoChar[845]; - UndoChar_846 = undoChar[846]; - UndoChar_847 = undoChar[847]; - UndoChar_848 = undoChar[848]; - UndoChar_849 = undoChar[849]; - UndoChar_850 = undoChar[850]; - UndoChar_851 = undoChar[851]; - UndoChar_852 = undoChar[852]; - UndoChar_853 = undoChar[853]; - UndoChar_854 = undoChar[854]; - UndoChar_855 = undoChar[855]; - UndoChar_856 = undoChar[856]; - UndoChar_857 = undoChar[857]; - UndoChar_858 = undoChar[858]; - UndoChar_859 = undoChar[859]; - UndoChar_860 = undoChar[860]; - UndoChar_861 = undoChar[861]; - UndoChar_862 = undoChar[862]; - UndoChar_863 = undoChar[863]; - UndoChar_864 = undoChar[864]; - UndoChar_865 = undoChar[865]; - UndoChar_866 = undoChar[866]; - UndoChar_867 = undoChar[867]; - UndoChar_868 = undoChar[868]; - UndoChar_869 = undoChar[869]; - UndoChar_870 = undoChar[870]; - UndoChar_871 = undoChar[871]; - UndoChar_872 = undoChar[872]; - UndoChar_873 = undoChar[873]; - UndoChar_874 = undoChar[874]; - UndoChar_875 = undoChar[875]; - UndoChar_876 = undoChar[876]; - UndoChar_877 = undoChar[877]; - UndoChar_878 = undoChar[878]; - UndoChar_879 = undoChar[879]; - UndoChar_880 = undoChar[880]; - UndoChar_881 = undoChar[881]; - UndoChar_882 = undoChar[882]; - UndoChar_883 = undoChar[883]; - UndoChar_884 = undoChar[884]; - UndoChar_885 = undoChar[885]; - UndoChar_886 = undoChar[886]; - UndoChar_887 = undoChar[887]; - UndoChar_888 = undoChar[888]; - UndoChar_889 = undoChar[889]; - UndoChar_890 = undoChar[890]; - UndoChar_891 = undoChar[891]; - UndoChar_892 = undoChar[892]; - UndoChar_893 = undoChar[893]; - UndoChar_894 = undoChar[894]; - UndoChar_895 = undoChar[895]; - UndoChar_896 = undoChar[896]; - UndoChar_897 = undoChar[897]; - UndoChar_898 = undoChar[898]; - UndoChar_899 = undoChar[899]; - UndoChar_900 = undoChar[900]; - UndoChar_901 = undoChar[901]; - UndoChar_902 = undoChar[902]; - UndoChar_903 = undoChar[903]; - UndoChar_904 = undoChar[904]; - UndoChar_905 = undoChar[905]; - UndoChar_906 = undoChar[906]; - UndoChar_907 = undoChar[907]; - UndoChar_908 = undoChar[908]; - UndoChar_909 = undoChar[909]; - UndoChar_910 = undoChar[910]; - UndoChar_911 = undoChar[911]; - UndoChar_912 = undoChar[912]; - UndoChar_913 = undoChar[913]; - UndoChar_914 = undoChar[914]; - UndoChar_915 = undoChar[915]; - UndoChar_916 = undoChar[916]; - UndoChar_917 = undoChar[917]; - UndoChar_918 = undoChar[918]; - UndoChar_919 = undoChar[919]; - UndoChar_920 = undoChar[920]; - UndoChar_921 = undoChar[921]; - UndoChar_922 = undoChar[922]; - UndoChar_923 = undoChar[923]; - UndoChar_924 = undoChar[924]; - UndoChar_925 = undoChar[925]; - UndoChar_926 = undoChar[926]; - UndoChar_927 = undoChar[927]; - UndoChar_928 = undoChar[928]; - UndoChar_929 = undoChar[929]; - UndoChar_930 = undoChar[930]; - UndoChar_931 = undoChar[931]; - UndoChar_932 = undoChar[932]; - UndoChar_933 = undoChar[933]; - UndoChar_934 = undoChar[934]; - UndoChar_935 = undoChar[935]; - UndoChar_936 = undoChar[936]; - UndoChar_937 = undoChar[937]; - UndoChar_938 = undoChar[938]; - UndoChar_939 = undoChar[939]; - UndoChar_940 = undoChar[940]; - UndoChar_941 = undoChar[941]; - UndoChar_942 = undoChar[942]; - UndoChar_943 = undoChar[943]; - UndoChar_944 = undoChar[944]; - UndoChar_945 = undoChar[945]; - UndoChar_946 = undoChar[946]; - UndoChar_947 = undoChar[947]; - UndoChar_948 = undoChar[948]; - UndoChar_949 = undoChar[949]; - UndoChar_950 = undoChar[950]; - UndoChar_951 = undoChar[951]; - UndoChar_952 = undoChar[952]; - UndoChar_953 = undoChar[953]; - UndoChar_954 = undoChar[954]; - UndoChar_955 = undoChar[955]; - UndoChar_956 = undoChar[956]; - UndoChar_957 = undoChar[957]; - UndoChar_958 = undoChar[958]; - UndoChar_959 = undoChar[959]; - UndoChar_960 = undoChar[960]; - UndoChar_961 = undoChar[961]; - UndoChar_962 = undoChar[962]; - UndoChar_963 = undoChar[963]; - UndoChar_964 = undoChar[964]; - UndoChar_965 = undoChar[965]; - UndoChar_966 = undoChar[966]; - UndoChar_967 = undoChar[967]; - UndoChar_968 = undoChar[968]; - UndoChar_969 = undoChar[969]; - UndoChar_970 = undoChar[970]; - UndoChar_971 = undoChar[971]; - UndoChar_972 = undoChar[972]; - UndoChar_973 = undoChar[973]; - UndoChar_974 = undoChar[974]; - UndoChar_975 = undoChar[975]; - UndoChar_976 = undoChar[976]; - UndoChar_977 = undoChar[977]; - UndoChar_978 = undoChar[978]; - UndoChar_979 = undoChar[979]; - UndoChar_980 = undoChar[980]; - UndoChar_981 = undoChar[981]; - UndoChar_982 = undoChar[982]; - UndoChar_983 = undoChar[983]; - UndoChar_984 = undoChar[984]; - UndoChar_985 = undoChar[985]; - UndoChar_986 = undoChar[986]; - UndoChar_987 = undoChar[987]; - UndoChar_988 = undoChar[988]; - UndoChar_989 = undoChar[989]; - UndoChar_990 = undoChar[990]; - UndoChar_991 = undoChar[991]; - UndoChar_992 = undoChar[992]; - UndoChar_993 = undoChar[993]; - UndoChar_994 = undoChar[994]; - UndoChar_995 = undoChar[995]; - UndoChar_996 = undoChar[996]; - UndoChar_997 = undoChar[997]; - UndoChar_998 = undoChar[998]; - } - UndoPoint = undoPoint; - RedoPoint = redoPoint; - UndoCharPoint = undoCharPoint; - RedoCharPoint = redoCharPoint; - } - public unsafe StbUndoState(Span<StbUndoRecord> undoRec = default, Span<ushort> undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) - { - if (undoRec != default(Span<StbUndoRecord>)) - { - UndoRec_0 = undoRec[0]; - UndoRec_1 = undoRec[1]; - UndoRec_2 = undoRec[2]; - UndoRec_3 = undoRec[3]; - UndoRec_4 = undoRec[4]; - UndoRec_5 = undoRec[5]; - UndoRec_6 = undoRec[6]; - UndoRec_7 = undoRec[7]; - UndoRec_8 = undoRec[8]; - UndoRec_9 = undoRec[9]; - UndoRec_10 = undoRec[10]; - UndoRec_11 = undoRec[11]; - UndoRec_12 = undoRec[12]; - UndoRec_13 = undoRec[13]; - UndoRec_14 = undoRec[14]; - UndoRec_15 = undoRec[15]; - UndoRec_16 = undoRec[16]; - UndoRec_17 = undoRec[17]; - UndoRec_18 = undoRec[18]; - UndoRec_19 = undoRec[19]; - UndoRec_20 = undoRec[20]; - UndoRec_21 = undoRec[21]; - UndoRec_22 = undoRec[22]; - UndoRec_23 = undoRec[23]; - UndoRec_24 = undoRec[24]; - UndoRec_25 = undoRec[25]; - UndoRec_26 = undoRec[26]; - UndoRec_27 = undoRec[27]; - UndoRec_28 = undoRec[28]; - UndoRec_29 = undoRec[29]; - UndoRec_30 = undoRec[30]; - UndoRec_31 = undoRec[31]; - UndoRec_32 = undoRec[32]; - UndoRec_33 = undoRec[33]; - UndoRec_34 = undoRec[34]; - UndoRec_35 = undoRec[35]; - UndoRec_36 = undoRec[36]; - UndoRec_37 = undoRec[37]; - UndoRec_38 = undoRec[38]; - UndoRec_39 = undoRec[39]; - UndoRec_40 = undoRec[40]; - UndoRec_41 = undoRec[41]; - UndoRec_42 = undoRec[42]; - UndoRec_43 = undoRec[43]; - UndoRec_44 = undoRec[44]; - UndoRec_45 = undoRec[45]; - UndoRec_46 = undoRec[46]; - UndoRec_47 = undoRec[47]; - UndoRec_48 = undoRec[48]; - UndoRec_49 = undoRec[49]; - UndoRec_50 = undoRec[50]; - UndoRec_51 = undoRec[51]; - UndoRec_52 = undoRec[52]; - UndoRec_53 = undoRec[53]; - UndoRec_54 = undoRec[54]; - UndoRec_55 = undoRec[55]; - UndoRec_56 = undoRec[56]; - UndoRec_57 = undoRec[57]; - UndoRec_58 = undoRec[58]; - UndoRec_59 = undoRec[59]; - UndoRec_60 = undoRec[60]; - UndoRec_61 = undoRec[61]; - UndoRec_62 = undoRec[62]; - UndoRec_63 = undoRec[63]; - UndoRec_64 = undoRec[64]; - UndoRec_65 = undoRec[65]; - UndoRec_66 = undoRec[66]; - UndoRec_67 = undoRec[67]; - UndoRec_68 = undoRec[68]; - UndoRec_69 = undoRec[69]; - UndoRec_70 = undoRec[70]; - UndoRec_71 = undoRec[71]; - UndoRec_72 = undoRec[72]; - UndoRec_73 = undoRec[73]; - UndoRec_74 = undoRec[74]; - UndoRec_75 = undoRec[75]; - UndoRec_76 = undoRec[76]; - UndoRec_77 = undoRec[77]; - UndoRec_78 = undoRec[78]; - UndoRec_79 = undoRec[79]; - UndoRec_80 = undoRec[80]; - UndoRec_81 = undoRec[81]; - UndoRec_82 = undoRec[82]; - UndoRec_83 = undoRec[83]; - UndoRec_84 = undoRec[84]; - UndoRec_85 = undoRec[85]; - UndoRec_86 = undoRec[86]; - UndoRec_87 = undoRec[87]; - UndoRec_88 = undoRec[88]; - UndoRec_89 = undoRec[89]; - UndoRec_90 = undoRec[90]; - UndoRec_91 = undoRec[91]; - UndoRec_92 = undoRec[92]; - UndoRec_93 = undoRec[93]; - UndoRec_94 = undoRec[94]; - UndoRec_95 = undoRec[95]; - UndoRec_96 = undoRec[96]; - UndoRec_97 = undoRec[97]; - UndoRec_98 = undoRec[98]; - } - if (undoChar != default(Span<ushort>)) - { - UndoChar_0 = undoChar[0]; - UndoChar_1 = undoChar[1]; - UndoChar_2 = undoChar[2]; - UndoChar_3 = undoChar[3]; - UndoChar_4 = undoChar[4]; - UndoChar_5 = undoChar[5]; - UndoChar_6 = undoChar[6]; - UndoChar_7 = undoChar[7]; - UndoChar_8 = undoChar[8]; - UndoChar_9 = undoChar[9]; - UndoChar_10 = undoChar[10]; - UndoChar_11 = undoChar[11]; - UndoChar_12 = undoChar[12]; - UndoChar_13 = undoChar[13]; - UndoChar_14 = undoChar[14]; - UndoChar_15 = undoChar[15]; - UndoChar_16 = undoChar[16]; - UndoChar_17 = undoChar[17]; - UndoChar_18 = undoChar[18]; - UndoChar_19 = undoChar[19]; - UndoChar_20 = undoChar[20]; - UndoChar_21 = undoChar[21]; - UndoChar_22 = undoChar[22]; - UndoChar_23 = undoChar[23]; - UndoChar_24 = undoChar[24]; - UndoChar_25 = undoChar[25]; - UndoChar_26 = undoChar[26]; - UndoChar_27 = undoChar[27]; - UndoChar_28 = undoChar[28]; - UndoChar_29 = undoChar[29]; - UndoChar_30 = undoChar[30]; - UndoChar_31 = undoChar[31]; - UndoChar_32 = undoChar[32]; - UndoChar_33 = undoChar[33]; - UndoChar_34 = undoChar[34]; - UndoChar_35 = undoChar[35]; - UndoChar_36 = undoChar[36]; - UndoChar_37 = undoChar[37]; - UndoChar_38 = undoChar[38]; - UndoChar_39 = undoChar[39]; - UndoChar_40 = undoChar[40]; - UndoChar_41 = undoChar[41]; - UndoChar_42 = undoChar[42]; - UndoChar_43 = undoChar[43]; - UndoChar_44 = undoChar[44]; - UndoChar_45 = undoChar[45]; - UndoChar_46 = undoChar[46]; - UndoChar_47 = undoChar[47]; - UndoChar_48 = undoChar[48]; - UndoChar_49 = undoChar[49]; - UndoChar_50 = undoChar[50]; - UndoChar_51 = undoChar[51]; - UndoChar_52 = undoChar[52]; - UndoChar_53 = undoChar[53]; - UndoChar_54 = undoChar[54]; - UndoChar_55 = undoChar[55]; - UndoChar_56 = undoChar[56]; - UndoChar_57 = undoChar[57]; - UndoChar_58 = undoChar[58]; - UndoChar_59 = undoChar[59]; - UndoChar_60 = undoChar[60]; - UndoChar_61 = undoChar[61]; - UndoChar_62 = undoChar[62]; - UndoChar_63 = undoChar[63]; - UndoChar_64 = undoChar[64]; - UndoChar_65 = undoChar[65]; - UndoChar_66 = undoChar[66]; - UndoChar_67 = undoChar[67]; - UndoChar_68 = undoChar[68]; - UndoChar_69 = undoChar[69]; - UndoChar_70 = undoChar[70]; - UndoChar_71 = undoChar[71]; - UndoChar_72 = undoChar[72]; - UndoChar_73 = undoChar[73]; - UndoChar_74 = undoChar[74]; - UndoChar_75 = undoChar[75]; - UndoChar_76 = undoChar[76]; - UndoChar_77 = undoChar[77]; - UndoChar_78 = undoChar[78]; - UndoChar_79 = undoChar[79]; - UndoChar_80 = undoChar[80]; - UndoChar_81 = undoChar[81]; - UndoChar_82 = undoChar[82]; - UndoChar_83 = undoChar[83]; - UndoChar_84 = undoChar[84]; - UndoChar_85 = undoChar[85]; - UndoChar_86 = undoChar[86]; - UndoChar_87 = undoChar[87]; - UndoChar_88 = undoChar[88]; - UndoChar_89 = undoChar[89]; - UndoChar_90 = undoChar[90]; - UndoChar_91 = undoChar[91]; - UndoChar_92 = undoChar[92]; - UndoChar_93 = undoChar[93]; - UndoChar_94 = undoChar[94]; - UndoChar_95 = undoChar[95]; - UndoChar_96 = undoChar[96]; - UndoChar_97 = undoChar[97]; - UndoChar_98 = undoChar[98]; - UndoChar_99 = undoChar[99]; - UndoChar_100 = undoChar[100]; - UndoChar_101 = undoChar[101]; - UndoChar_102 = undoChar[102]; - UndoChar_103 = undoChar[103]; - UndoChar_104 = undoChar[104]; - UndoChar_105 = undoChar[105]; - UndoChar_106 = undoChar[106]; - UndoChar_107 = undoChar[107]; - UndoChar_108 = undoChar[108]; - UndoChar_109 = undoChar[109]; - UndoChar_110 = undoChar[110]; - UndoChar_111 = undoChar[111]; - UndoChar_112 = undoChar[112]; - UndoChar_113 = undoChar[113]; - UndoChar_114 = undoChar[114]; - UndoChar_115 = undoChar[115]; - UndoChar_116 = undoChar[116]; - UndoChar_117 = undoChar[117]; - UndoChar_118 = undoChar[118]; - UndoChar_119 = undoChar[119]; - UndoChar_120 = undoChar[120]; - UndoChar_121 = undoChar[121]; - UndoChar_122 = undoChar[122]; - UndoChar_123 = undoChar[123]; - UndoChar_124 = undoChar[124]; - UndoChar_125 = undoChar[125]; - UndoChar_126 = undoChar[126]; - UndoChar_127 = undoChar[127]; - UndoChar_128 = undoChar[128]; - UndoChar_129 = undoChar[129]; - UndoChar_130 = undoChar[130]; - UndoChar_131 = undoChar[131]; - UndoChar_132 = undoChar[132]; - UndoChar_133 = undoChar[133]; - UndoChar_134 = undoChar[134]; - UndoChar_135 = undoChar[135]; - UndoChar_136 = undoChar[136]; - UndoChar_137 = undoChar[137]; - UndoChar_138 = undoChar[138]; - UndoChar_139 = undoChar[139]; - UndoChar_140 = undoChar[140]; - UndoChar_141 = undoChar[141]; - UndoChar_142 = undoChar[142]; - UndoChar_143 = undoChar[143]; - UndoChar_144 = undoChar[144]; - UndoChar_145 = undoChar[145]; - UndoChar_146 = undoChar[146]; - UndoChar_147 = undoChar[147]; - UndoChar_148 = undoChar[148]; - UndoChar_149 = undoChar[149]; - UndoChar_150 = undoChar[150]; - UndoChar_151 = undoChar[151]; - UndoChar_152 = undoChar[152]; - UndoChar_153 = undoChar[153]; - UndoChar_154 = undoChar[154]; - UndoChar_155 = undoChar[155]; - UndoChar_156 = undoChar[156]; - UndoChar_157 = undoChar[157]; - UndoChar_158 = undoChar[158]; - UndoChar_159 = undoChar[159]; - UndoChar_160 = undoChar[160]; - UndoChar_161 = undoChar[161]; - UndoChar_162 = undoChar[162]; - UndoChar_163 = undoChar[163]; - UndoChar_164 = undoChar[164]; - UndoChar_165 = undoChar[165]; - UndoChar_166 = undoChar[166]; - UndoChar_167 = undoChar[167]; - UndoChar_168 = undoChar[168]; - UndoChar_169 = undoChar[169]; - UndoChar_170 = undoChar[170]; - UndoChar_171 = undoChar[171]; - UndoChar_172 = undoChar[172]; - UndoChar_173 = undoChar[173]; - UndoChar_174 = undoChar[174]; - UndoChar_175 = undoChar[175]; - UndoChar_176 = undoChar[176]; - UndoChar_177 = undoChar[177]; - UndoChar_178 = undoChar[178]; - UndoChar_179 = undoChar[179]; - UndoChar_180 = undoChar[180]; - UndoChar_181 = undoChar[181]; - UndoChar_182 = undoChar[182]; - UndoChar_183 = undoChar[183]; - UndoChar_184 = undoChar[184]; - UndoChar_185 = undoChar[185]; - UndoChar_186 = undoChar[186]; - UndoChar_187 = undoChar[187]; - UndoChar_188 = undoChar[188]; - UndoChar_189 = undoChar[189]; - UndoChar_190 = undoChar[190]; - UndoChar_191 = undoChar[191]; - UndoChar_192 = undoChar[192]; - UndoChar_193 = undoChar[193]; - UndoChar_194 = undoChar[194]; - UndoChar_195 = undoChar[195]; - UndoChar_196 = undoChar[196]; - UndoChar_197 = undoChar[197]; - UndoChar_198 = undoChar[198]; - UndoChar_199 = undoChar[199]; - UndoChar_200 = undoChar[200]; - UndoChar_201 = undoChar[201]; - UndoChar_202 = undoChar[202]; - UndoChar_203 = undoChar[203]; - UndoChar_204 = undoChar[204]; - UndoChar_205 = undoChar[205]; - UndoChar_206 = undoChar[206]; - UndoChar_207 = undoChar[207]; - UndoChar_208 = undoChar[208]; - UndoChar_209 = undoChar[209]; - UndoChar_210 = undoChar[210]; - UndoChar_211 = undoChar[211]; - UndoChar_212 = undoChar[212]; - UndoChar_213 = undoChar[213]; - UndoChar_214 = undoChar[214]; - UndoChar_215 = undoChar[215]; - UndoChar_216 = undoChar[216]; - UndoChar_217 = undoChar[217]; - UndoChar_218 = undoChar[218]; - UndoChar_219 = undoChar[219]; - UndoChar_220 = undoChar[220]; - UndoChar_221 = undoChar[221]; - UndoChar_222 = undoChar[222]; - UndoChar_223 = undoChar[223]; - UndoChar_224 = undoChar[224]; - UndoChar_225 = undoChar[225]; - UndoChar_226 = undoChar[226]; - UndoChar_227 = undoChar[227]; - UndoChar_228 = undoChar[228]; - UndoChar_229 = undoChar[229]; - UndoChar_230 = undoChar[230]; - UndoChar_231 = undoChar[231]; - UndoChar_232 = undoChar[232]; - UndoChar_233 = undoChar[233]; - UndoChar_234 = undoChar[234]; - UndoChar_235 = undoChar[235]; - UndoChar_236 = undoChar[236]; - UndoChar_237 = undoChar[237]; - UndoChar_238 = undoChar[238]; - UndoChar_239 = undoChar[239]; - UndoChar_240 = undoChar[240]; - UndoChar_241 = undoChar[241]; - UndoChar_242 = undoChar[242]; - UndoChar_243 = undoChar[243]; - UndoChar_244 = undoChar[244]; - UndoChar_245 = undoChar[245]; - UndoChar_246 = undoChar[246]; - UndoChar_247 = undoChar[247]; - UndoChar_248 = undoChar[248]; - UndoChar_249 = undoChar[249]; - UndoChar_250 = undoChar[250]; - UndoChar_251 = undoChar[251]; - UndoChar_252 = undoChar[252]; - UndoChar_253 = undoChar[253]; - UndoChar_254 = undoChar[254]; - UndoChar_255 = undoChar[255]; - UndoChar_256 = undoChar[256]; - UndoChar_257 = undoChar[257]; - UndoChar_258 = undoChar[258]; - UndoChar_259 = undoChar[259]; - UndoChar_260 = undoChar[260]; - UndoChar_261 = undoChar[261]; - UndoChar_262 = undoChar[262]; - UndoChar_263 = undoChar[263]; - UndoChar_264 = undoChar[264]; - UndoChar_265 = undoChar[265]; - UndoChar_266 = undoChar[266]; - UndoChar_267 = undoChar[267]; - UndoChar_268 = undoChar[268]; - UndoChar_269 = undoChar[269]; - UndoChar_270 = undoChar[270]; - UndoChar_271 = undoChar[271]; - UndoChar_272 = undoChar[272]; - UndoChar_273 = undoChar[273]; - UndoChar_274 = undoChar[274]; - UndoChar_275 = undoChar[275]; - UndoChar_276 = undoChar[276]; - UndoChar_277 = undoChar[277]; - UndoChar_278 = undoChar[278]; - UndoChar_279 = undoChar[279]; - UndoChar_280 = undoChar[280]; - UndoChar_281 = undoChar[281]; - UndoChar_282 = undoChar[282]; - UndoChar_283 = undoChar[283]; - UndoChar_284 = undoChar[284]; - UndoChar_285 = undoChar[285]; - UndoChar_286 = undoChar[286]; - UndoChar_287 = undoChar[287]; - UndoChar_288 = undoChar[288]; - UndoChar_289 = undoChar[289]; - UndoChar_290 = undoChar[290]; - UndoChar_291 = undoChar[291]; - UndoChar_292 = undoChar[292]; - UndoChar_293 = undoChar[293]; - UndoChar_294 = undoChar[294]; - UndoChar_295 = undoChar[295]; - UndoChar_296 = undoChar[296]; - UndoChar_297 = undoChar[297]; - UndoChar_298 = undoChar[298]; - UndoChar_299 = undoChar[299]; - UndoChar_300 = undoChar[300]; - UndoChar_301 = undoChar[301]; - UndoChar_302 = undoChar[302]; - UndoChar_303 = undoChar[303]; - UndoChar_304 = undoChar[304]; - UndoChar_305 = undoChar[305]; - UndoChar_306 = undoChar[306]; - UndoChar_307 = undoChar[307]; - UndoChar_308 = undoChar[308]; - UndoChar_309 = undoChar[309]; - UndoChar_310 = undoChar[310]; - UndoChar_311 = undoChar[311]; - UndoChar_312 = undoChar[312]; - UndoChar_313 = undoChar[313]; - UndoChar_314 = undoChar[314]; - UndoChar_315 = undoChar[315]; - UndoChar_316 = undoChar[316]; - UndoChar_317 = undoChar[317]; - UndoChar_318 = undoChar[318]; - UndoChar_319 = undoChar[319]; - UndoChar_320 = undoChar[320]; - UndoChar_321 = undoChar[321]; - UndoChar_322 = undoChar[322]; - UndoChar_323 = undoChar[323]; - UndoChar_324 = undoChar[324]; - UndoChar_325 = undoChar[325]; - UndoChar_326 = undoChar[326]; - UndoChar_327 = undoChar[327]; - UndoChar_328 = undoChar[328]; - UndoChar_329 = undoChar[329]; - UndoChar_330 = undoChar[330]; - UndoChar_331 = undoChar[331]; - UndoChar_332 = undoChar[332]; - UndoChar_333 = undoChar[333]; - UndoChar_334 = undoChar[334]; - UndoChar_335 = undoChar[335]; - UndoChar_336 = undoChar[336]; - UndoChar_337 = undoChar[337]; - UndoChar_338 = undoChar[338]; - UndoChar_339 = undoChar[339]; - UndoChar_340 = undoChar[340]; - UndoChar_341 = undoChar[341]; - UndoChar_342 = undoChar[342]; - UndoChar_343 = undoChar[343]; - UndoChar_344 = undoChar[344]; - UndoChar_345 = undoChar[345]; - UndoChar_346 = undoChar[346]; - UndoChar_347 = undoChar[347]; - UndoChar_348 = undoChar[348]; - UndoChar_349 = undoChar[349]; - UndoChar_350 = undoChar[350]; - UndoChar_351 = undoChar[351]; - UndoChar_352 = undoChar[352]; - UndoChar_353 = undoChar[353]; - UndoChar_354 = undoChar[354]; - UndoChar_355 = undoChar[355]; - UndoChar_356 = undoChar[356]; - UndoChar_357 = undoChar[357]; - UndoChar_358 = undoChar[358]; - UndoChar_359 = undoChar[359]; - UndoChar_360 = undoChar[360]; - UndoChar_361 = undoChar[361]; - UndoChar_362 = undoChar[362]; - UndoChar_363 = undoChar[363]; - UndoChar_364 = undoChar[364]; - UndoChar_365 = undoChar[365]; - UndoChar_366 = undoChar[366]; - UndoChar_367 = undoChar[367]; - UndoChar_368 = undoChar[368]; - UndoChar_369 = undoChar[369]; - UndoChar_370 = undoChar[370]; - UndoChar_371 = undoChar[371]; - UndoChar_372 = undoChar[372]; - UndoChar_373 = undoChar[373]; - UndoChar_374 = undoChar[374]; - UndoChar_375 = undoChar[375]; - UndoChar_376 = undoChar[376]; - UndoChar_377 = undoChar[377]; - UndoChar_378 = undoChar[378]; - UndoChar_379 = undoChar[379]; - UndoChar_380 = undoChar[380]; - UndoChar_381 = undoChar[381]; - UndoChar_382 = undoChar[382]; - UndoChar_383 = undoChar[383]; - UndoChar_384 = undoChar[384]; - UndoChar_385 = undoChar[385]; - UndoChar_386 = undoChar[386]; - UndoChar_387 = undoChar[387]; - UndoChar_388 = undoChar[388]; - UndoChar_389 = undoChar[389]; - UndoChar_390 = undoChar[390]; - UndoChar_391 = undoChar[391]; - UndoChar_392 = undoChar[392]; - UndoChar_393 = undoChar[393]; - UndoChar_394 = undoChar[394]; - UndoChar_395 = undoChar[395]; - UndoChar_396 = undoChar[396]; - UndoChar_397 = undoChar[397]; - UndoChar_398 = undoChar[398]; - UndoChar_399 = undoChar[399]; - UndoChar_400 = undoChar[400]; - UndoChar_401 = undoChar[401]; - UndoChar_402 = undoChar[402]; - UndoChar_403 = undoChar[403]; - UndoChar_404 = undoChar[404]; - UndoChar_405 = undoChar[405]; - UndoChar_406 = undoChar[406]; - UndoChar_407 = undoChar[407]; - UndoChar_408 = undoChar[408]; - UndoChar_409 = undoChar[409]; - UndoChar_410 = undoChar[410]; - UndoChar_411 = undoChar[411]; - UndoChar_412 = undoChar[412]; - UndoChar_413 = undoChar[413]; - UndoChar_414 = undoChar[414]; - UndoChar_415 = undoChar[415]; - UndoChar_416 = undoChar[416]; - UndoChar_417 = undoChar[417]; - UndoChar_418 = undoChar[418]; - UndoChar_419 = undoChar[419]; - UndoChar_420 = undoChar[420]; - UndoChar_421 = undoChar[421]; - UndoChar_422 = undoChar[422]; - UndoChar_423 = undoChar[423]; - UndoChar_424 = undoChar[424]; - UndoChar_425 = undoChar[425]; - UndoChar_426 = undoChar[426]; - UndoChar_427 = undoChar[427]; - UndoChar_428 = undoChar[428]; - UndoChar_429 = undoChar[429]; - UndoChar_430 = undoChar[430]; - UndoChar_431 = undoChar[431]; - UndoChar_432 = undoChar[432]; - UndoChar_433 = undoChar[433]; - UndoChar_434 = undoChar[434]; - UndoChar_435 = undoChar[435]; - UndoChar_436 = undoChar[436]; - UndoChar_437 = undoChar[437]; - UndoChar_438 = undoChar[438]; - UndoChar_439 = undoChar[439]; - UndoChar_440 = undoChar[440]; - UndoChar_441 = undoChar[441]; - UndoChar_442 = undoChar[442]; - UndoChar_443 = undoChar[443]; - UndoChar_444 = undoChar[444]; - UndoChar_445 = undoChar[445]; - UndoChar_446 = undoChar[446]; - UndoChar_447 = undoChar[447]; - UndoChar_448 = undoChar[448]; - UndoChar_449 = undoChar[449]; - UndoChar_450 = undoChar[450]; - UndoChar_451 = undoChar[451]; - UndoChar_452 = undoChar[452]; - UndoChar_453 = undoChar[453]; - UndoChar_454 = undoChar[454]; - UndoChar_455 = undoChar[455]; - UndoChar_456 = undoChar[456]; - UndoChar_457 = undoChar[457]; - UndoChar_458 = undoChar[458]; - UndoChar_459 = undoChar[459]; - UndoChar_460 = undoChar[460]; - UndoChar_461 = undoChar[461]; - UndoChar_462 = undoChar[462]; - UndoChar_463 = undoChar[463]; - UndoChar_464 = undoChar[464]; - UndoChar_465 = undoChar[465]; - UndoChar_466 = undoChar[466]; - UndoChar_467 = undoChar[467]; - UndoChar_468 = undoChar[468]; - UndoChar_469 = undoChar[469]; - UndoChar_470 = undoChar[470]; - UndoChar_471 = undoChar[471]; - UndoChar_472 = undoChar[472]; - UndoChar_473 = undoChar[473]; - UndoChar_474 = undoChar[474]; - UndoChar_475 = undoChar[475]; - UndoChar_476 = undoChar[476]; - UndoChar_477 = undoChar[477]; - UndoChar_478 = undoChar[478]; - UndoChar_479 = undoChar[479]; - UndoChar_480 = undoChar[480]; - UndoChar_481 = undoChar[481]; - UndoChar_482 = undoChar[482]; - UndoChar_483 = undoChar[483]; - UndoChar_484 = undoChar[484]; - UndoChar_485 = undoChar[485]; - UndoChar_486 = undoChar[486]; - UndoChar_487 = undoChar[487]; - UndoChar_488 = undoChar[488]; - UndoChar_489 = undoChar[489]; - UndoChar_490 = undoChar[490]; - UndoChar_491 = undoChar[491]; - UndoChar_492 = undoChar[492]; - UndoChar_493 = undoChar[493]; - UndoChar_494 = undoChar[494]; - UndoChar_495 = undoChar[495]; - UndoChar_496 = undoChar[496]; - UndoChar_497 = undoChar[497]; - UndoChar_498 = undoChar[498]; - UndoChar_499 = undoChar[499]; - UndoChar_500 = undoChar[500]; - UndoChar_501 = undoChar[501]; - UndoChar_502 = undoChar[502]; - UndoChar_503 = undoChar[503]; - UndoChar_504 = undoChar[504]; - UndoChar_505 = undoChar[505]; - UndoChar_506 = undoChar[506]; - UndoChar_507 = undoChar[507]; - UndoChar_508 = undoChar[508]; - UndoChar_509 = undoChar[509]; - UndoChar_510 = undoChar[510]; - UndoChar_511 = undoChar[511]; - UndoChar_512 = undoChar[512]; - UndoChar_513 = undoChar[513]; - UndoChar_514 = undoChar[514]; - UndoChar_515 = undoChar[515]; - UndoChar_516 = undoChar[516]; - UndoChar_517 = undoChar[517]; - UndoChar_518 = undoChar[518]; - UndoChar_519 = undoChar[519]; - UndoChar_520 = undoChar[520]; - UndoChar_521 = undoChar[521]; - UndoChar_522 = undoChar[522]; - UndoChar_523 = undoChar[523]; - UndoChar_524 = undoChar[524]; - UndoChar_525 = undoChar[525]; - UndoChar_526 = undoChar[526]; - UndoChar_527 = undoChar[527]; - UndoChar_528 = undoChar[528]; - UndoChar_529 = undoChar[529]; - UndoChar_530 = undoChar[530]; - UndoChar_531 = undoChar[531]; - UndoChar_532 = undoChar[532]; - UndoChar_533 = undoChar[533]; - UndoChar_534 = undoChar[534]; - UndoChar_535 = undoChar[535]; - UndoChar_536 = undoChar[536]; - UndoChar_537 = undoChar[537]; - UndoChar_538 = undoChar[538]; - UndoChar_539 = undoChar[539]; - UndoChar_540 = undoChar[540]; - UndoChar_541 = undoChar[541]; - UndoChar_542 = undoChar[542]; - UndoChar_543 = undoChar[543]; - UndoChar_544 = undoChar[544]; - UndoChar_545 = undoChar[545]; - UndoChar_546 = undoChar[546]; - UndoChar_547 = undoChar[547]; - UndoChar_548 = undoChar[548]; - UndoChar_549 = undoChar[549]; - UndoChar_550 = undoChar[550]; - UndoChar_551 = undoChar[551]; - UndoChar_552 = undoChar[552]; - UndoChar_553 = undoChar[553]; - UndoChar_554 = undoChar[554]; - UndoChar_555 = undoChar[555]; - UndoChar_556 = undoChar[556]; - UndoChar_557 = undoChar[557]; - UndoChar_558 = undoChar[558]; - UndoChar_559 = undoChar[559]; - UndoChar_560 = undoChar[560]; - UndoChar_561 = undoChar[561]; - UndoChar_562 = undoChar[562]; - UndoChar_563 = undoChar[563]; - UndoChar_564 = undoChar[564]; - UndoChar_565 = undoChar[565]; - UndoChar_566 = undoChar[566]; - UndoChar_567 = undoChar[567]; - UndoChar_568 = undoChar[568]; - UndoChar_569 = undoChar[569]; - UndoChar_570 = undoChar[570]; - UndoChar_571 = undoChar[571]; - UndoChar_572 = undoChar[572]; - UndoChar_573 = undoChar[573]; - UndoChar_574 = undoChar[574]; - UndoChar_575 = undoChar[575]; - UndoChar_576 = undoChar[576]; - UndoChar_577 = undoChar[577]; - UndoChar_578 = undoChar[578]; - UndoChar_579 = undoChar[579]; - UndoChar_580 = undoChar[580]; - UndoChar_581 = undoChar[581]; - UndoChar_582 = undoChar[582]; - UndoChar_583 = undoChar[583]; - UndoChar_584 = undoChar[584]; - UndoChar_585 = undoChar[585]; - UndoChar_586 = undoChar[586]; - UndoChar_587 = undoChar[587]; - UndoChar_588 = undoChar[588]; - UndoChar_589 = undoChar[589]; - UndoChar_590 = undoChar[590]; - UndoChar_591 = undoChar[591]; - UndoChar_592 = undoChar[592]; - UndoChar_593 = undoChar[593]; - UndoChar_594 = undoChar[594]; - UndoChar_595 = undoChar[595]; - UndoChar_596 = undoChar[596]; - UndoChar_597 = undoChar[597]; - UndoChar_598 = undoChar[598]; - UndoChar_599 = undoChar[599]; - UndoChar_600 = undoChar[600]; - UndoChar_601 = undoChar[601]; - UndoChar_602 = undoChar[602]; - UndoChar_603 = undoChar[603]; - UndoChar_604 = undoChar[604]; - UndoChar_605 = undoChar[605]; - UndoChar_606 = undoChar[606]; - UndoChar_607 = undoChar[607]; - UndoChar_608 = undoChar[608]; - UndoChar_609 = undoChar[609]; - UndoChar_610 = undoChar[610]; - UndoChar_611 = undoChar[611]; - UndoChar_612 = undoChar[612]; - UndoChar_613 = undoChar[613]; - UndoChar_614 = undoChar[614]; - UndoChar_615 = undoChar[615]; - UndoChar_616 = undoChar[616]; - UndoChar_617 = undoChar[617]; - UndoChar_618 = undoChar[618]; - UndoChar_619 = undoChar[619]; - UndoChar_620 = undoChar[620]; - UndoChar_621 = undoChar[621]; - UndoChar_622 = undoChar[622]; - UndoChar_623 = undoChar[623]; - UndoChar_624 = undoChar[624]; - UndoChar_625 = undoChar[625]; - UndoChar_626 = undoChar[626]; - UndoChar_627 = undoChar[627]; - UndoChar_628 = undoChar[628]; - UndoChar_629 = undoChar[629]; - UndoChar_630 = undoChar[630]; - UndoChar_631 = undoChar[631]; - UndoChar_632 = undoChar[632]; - UndoChar_633 = undoChar[633]; - UndoChar_634 = undoChar[634]; - UndoChar_635 = undoChar[635]; - UndoChar_636 = undoChar[636]; - UndoChar_637 = undoChar[637]; - UndoChar_638 = undoChar[638]; - UndoChar_639 = undoChar[639]; - UndoChar_640 = undoChar[640]; - UndoChar_641 = undoChar[641]; - UndoChar_642 = undoChar[642]; - UndoChar_643 = undoChar[643]; - UndoChar_644 = undoChar[644]; - UndoChar_645 = undoChar[645]; - UndoChar_646 = undoChar[646]; - UndoChar_647 = undoChar[647]; - UndoChar_648 = undoChar[648]; - UndoChar_649 = undoChar[649]; - UndoChar_650 = undoChar[650]; - UndoChar_651 = undoChar[651]; - UndoChar_652 = undoChar[652]; - UndoChar_653 = undoChar[653]; - UndoChar_654 = undoChar[654]; - UndoChar_655 = undoChar[655]; - UndoChar_656 = undoChar[656]; - UndoChar_657 = undoChar[657]; - UndoChar_658 = undoChar[658]; - UndoChar_659 = undoChar[659]; - UndoChar_660 = undoChar[660]; - UndoChar_661 = undoChar[661]; - UndoChar_662 = undoChar[662]; - UndoChar_663 = undoChar[663]; - UndoChar_664 = undoChar[664]; - UndoChar_665 = undoChar[665]; - UndoChar_666 = undoChar[666]; - UndoChar_667 = undoChar[667]; - UndoChar_668 = undoChar[668]; - UndoChar_669 = undoChar[669]; - UndoChar_670 = undoChar[670]; - UndoChar_671 = undoChar[671]; - UndoChar_672 = undoChar[672]; - UndoChar_673 = undoChar[673]; - UndoChar_674 = undoChar[674]; - UndoChar_675 = undoChar[675]; - UndoChar_676 = undoChar[676]; - UndoChar_677 = undoChar[677]; - UndoChar_678 = undoChar[678]; - UndoChar_679 = undoChar[679]; - UndoChar_680 = undoChar[680]; - UndoChar_681 = undoChar[681]; - UndoChar_682 = undoChar[682]; - UndoChar_683 = undoChar[683]; - UndoChar_684 = undoChar[684]; - UndoChar_685 = undoChar[685]; - UndoChar_686 = undoChar[686]; - UndoChar_687 = undoChar[687]; - UndoChar_688 = undoChar[688]; - UndoChar_689 = undoChar[689]; - UndoChar_690 = undoChar[690]; - UndoChar_691 = undoChar[691]; - UndoChar_692 = undoChar[692]; - UndoChar_693 = undoChar[693]; - UndoChar_694 = undoChar[694]; - UndoChar_695 = undoChar[695]; - UndoChar_696 = undoChar[696]; - UndoChar_697 = undoChar[697]; - UndoChar_698 = undoChar[698]; - UndoChar_699 = undoChar[699]; - UndoChar_700 = undoChar[700]; - UndoChar_701 = undoChar[701]; - UndoChar_702 = undoChar[702]; - UndoChar_703 = undoChar[703]; - UndoChar_704 = undoChar[704]; - UndoChar_705 = undoChar[705]; - UndoChar_706 = undoChar[706]; - UndoChar_707 = undoChar[707]; - UndoChar_708 = undoChar[708]; - UndoChar_709 = undoChar[709]; - UndoChar_710 = undoChar[710]; - UndoChar_711 = undoChar[711]; - UndoChar_712 = undoChar[712]; - UndoChar_713 = undoChar[713]; - UndoChar_714 = undoChar[714]; - UndoChar_715 = undoChar[715]; - UndoChar_716 = undoChar[716]; - UndoChar_717 = undoChar[717]; - UndoChar_718 = undoChar[718]; - UndoChar_719 = undoChar[719]; - UndoChar_720 = undoChar[720]; - UndoChar_721 = undoChar[721]; - UndoChar_722 = undoChar[722]; - UndoChar_723 = undoChar[723]; - UndoChar_724 = undoChar[724]; - UndoChar_725 = undoChar[725]; - UndoChar_726 = undoChar[726]; - UndoChar_727 = undoChar[727]; - UndoChar_728 = undoChar[728]; - UndoChar_729 = undoChar[729]; - UndoChar_730 = undoChar[730]; - UndoChar_731 = undoChar[731]; - UndoChar_732 = undoChar[732]; - UndoChar_733 = undoChar[733]; - UndoChar_734 = undoChar[734]; - UndoChar_735 = undoChar[735]; - UndoChar_736 = undoChar[736]; - UndoChar_737 = undoChar[737]; - UndoChar_738 = undoChar[738]; - UndoChar_739 = undoChar[739]; - UndoChar_740 = undoChar[740]; - UndoChar_741 = undoChar[741]; - UndoChar_742 = undoChar[742]; - UndoChar_743 = undoChar[743]; - UndoChar_744 = undoChar[744]; - UndoChar_745 = undoChar[745]; - UndoChar_746 = undoChar[746]; - UndoChar_747 = undoChar[747]; - UndoChar_748 = undoChar[748]; - UndoChar_749 = undoChar[749]; - UndoChar_750 = undoChar[750]; - UndoChar_751 = undoChar[751]; - UndoChar_752 = undoChar[752]; - UndoChar_753 = undoChar[753]; - UndoChar_754 = undoChar[754]; - UndoChar_755 = undoChar[755]; - UndoChar_756 = undoChar[756]; - UndoChar_757 = undoChar[757]; - UndoChar_758 = undoChar[758]; - UndoChar_759 = undoChar[759]; - UndoChar_760 = undoChar[760]; - UndoChar_761 = undoChar[761]; - UndoChar_762 = undoChar[762]; - UndoChar_763 = undoChar[763]; - UndoChar_764 = undoChar[764]; - UndoChar_765 = undoChar[765]; - UndoChar_766 = undoChar[766]; - UndoChar_767 = undoChar[767]; - UndoChar_768 = undoChar[768]; - UndoChar_769 = undoChar[769]; - UndoChar_770 = undoChar[770]; - UndoChar_771 = undoChar[771]; - UndoChar_772 = undoChar[772]; - UndoChar_773 = undoChar[773]; - UndoChar_774 = undoChar[774]; - UndoChar_775 = undoChar[775]; - UndoChar_776 = undoChar[776]; - UndoChar_777 = undoChar[777]; - UndoChar_778 = undoChar[778]; - UndoChar_779 = undoChar[779]; - UndoChar_780 = undoChar[780]; - UndoChar_781 = undoChar[781]; - UndoChar_782 = undoChar[782]; - UndoChar_783 = undoChar[783]; - UndoChar_784 = undoChar[784]; - UndoChar_785 = undoChar[785]; - UndoChar_786 = undoChar[786]; - UndoChar_787 = undoChar[787]; - UndoChar_788 = undoChar[788]; - UndoChar_789 = undoChar[789]; - UndoChar_790 = undoChar[790]; - UndoChar_791 = undoChar[791]; - UndoChar_792 = undoChar[792]; - UndoChar_793 = undoChar[793]; - UndoChar_794 = undoChar[794]; - UndoChar_795 = undoChar[795]; - UndoChar_796 = undoChar[796]; - UndoChar_797 = undoChar[797]; - UndoChar_798 = undoChar[798]; - UndoChar_799 = undoChar[799]; - UndoChar_800 = undoChar[800]; - UndoChar_801 = undoChar[801]; - UndoChar_802 = undoChar[802]; - UndoChar_803 = undoChar[803]; - UndoChar_804 = undoChar[804]; - UndoChar_805 = undoChar[805]; - UndoChar_806 = undoChar[806]; - UndoChar_807 = undoChar[807]; - UndoChar_808 = undoChar[808]; - UndoChar_809 = undoChar[809]; - UndoChar_810 = undoChar[810]; - UndoChar_811 = undoChar[811]; - UndoChar_812 = undoChar[812]; - UndoChar_813 = undoChar[813]; - UndoChar_814 = undoChar[814]; - UndoChar_815 = undoChar[815]; - UndoChar_816 = undoChar[816]; - UndoChar_817 = undoChar[817]; - UndoChar_818 = undoChar[818]; - UndoChar_819 = undoChar[819]; - UndoChar_820 = undoChar[820]; - UndoChar_821 = undoChar[821]; - UndoChar_822 = undoChar[822]; - UndoChar_823 = undoChar[823]; - UndoChar_824 = undoChar[824]; - UndoChar_825 = undoChar[825]; - UndoChar_826 = undoChar[826]; - UndoChar_827 = undoChar[827]; - UndoChar_828 = undoChar[828]; - UndoChar_829 = undoChar[829]; - UndoChar_830 = undoChar[830]; - UndoChar_831 = undoChar[831]; - UndoChar_832 = undoChar[832]; - UndoChar_833 = undoChar[833]; - UndoChar_834 = undoChar[834]; - UndoChar_835 = undoChar[835]; - UndoChar_836 = undoChar[836]; - UndoChar_837 = undoChar[837]; - UndoChar_838 = undoChar[838]; - UndoChar_839 = undoChar[839]; - UndoChar_840 = undoChar[840]; - UndoChar_841 = undoChar[841]; - UndoChar_842 = undoChar[842]; - UndoChar_843 = undoChar[843]; - UndoChar_844 = undoChar[844]; - UndoChar_845 = undoChar[845]; - UndoChar_846 = undoChar[846]; - UndoChar_847 = undoChar[847]; - UndoChar_848 = undoChar[848]; - UndoChar_849 = undoChar[849]; - UndoChar_850 = undoChar[850]; - UndoChar_851 = undoChar[851]; - UndoChar_852 = undoChar[852]; - UndoChar_853 = undoChar[853]; - UndoChar_854 = undoChar[854]; - UndoChar_855 = undoChar[855]; - UndoChar_856 = undoChar[856]; - UndoChar_857 = undoChar[857]; - UndoChar_858 = undoChar[858]; - UndoChar_859 = undoChar[859]; - UndoChar_860 = undoChar[860]; - UndoChar_861 = undoChar[861]; - UndoChar_862 = undoChar[862]; - UndoChar_863 = undoChar[863]; - UndoChar_864 = undoChar[864]; - UndoChar_865 = undoChar[865]; - UndoChar_866 = undoChar[866]; - UndoChar_867 = undoChar[867]; - UndoChar_868 = undoChar[868]; - UndoChar_869 = undoChar[869]; - UndoChar_870 = undoChar[870]; - UndoChar_871 = undoChar[871]; - UndoChar_872 = undoChar[872]; - UndoChar_873 = undoChar[873]; - UndoChar_874 = undoChar[874]; - UndoChar_875 = undoChar[875]; - UndoChar_876 = undoChar[876]; - UndoChar_877 = undoChar[877]; - UndoChar_878 = undoChar[878]; - UndoChar_879 = undoChar[879]; - UndoChar_880 = undoChar[880]; - UndoChar_881 = undoChar[881]; - UndoChar_882 = undoChar[882]; - UndoChar_883 = undoChar[883]; - UndoChar_884 = undoChar[884]; - UndoChar_885 = undoChar[885]; - UndoChar_886 = undoChar[886]; - UndoChar_887 = undoChar[887]; - UndoChar_888 = undoChar[888]; - UndoChar_889 = undoChar[889]; - UndoChar_890 = undoChar[890]; - UndoChar_891 = undoChar[891]; - UndoChar_892 = undoChar[892]; - UndoChar_893 = undoChar[893]; - UndoChar_894 = undoChar[894]; - UndoChar_895 = undoChar[895]; - UndoChar_896 = undoChar[896]; - UndoChar_897 = undoChar[897]; - UndoChar_898 = undoChar[898]; - UndoChar_899 = undoChar[899]; - UndoChar_900 = undoChar[900]; - UndoChar_901 = undoChar[901]; - UndoChar_902 = undoChar[902]; - UndoChar_903 = undoChar[903]; - UndoChar_904 = undoChar[904]; - UndoChar_905 = undoChar[905]; - UndoChar_906 = undoChar[906]; - UndoChar_907 = undoChar[907]; - UndoChar_908 = undoChar[908]; - UndoChar_909 = undoChar[909]; - UndoChar_910 = undoChar[910]; - UndoChar_911 = undoChar[911]; - UndoChar_912 = undoChar[912]; - UndoChar_913 = undoChar[913]; - UndoChar_914 = undoChar[914]; - UndoChar_915 = undoChar[915]; - UndoChar_916 = undoChar[916]; - UndoChar_917 = undoChar[917]; - UndoChar_918 = undoChar[918]; - UndoChar_919 = undoChar[919]; - UndoChar_920 = undoChar[920]; - UndoChar_921 = undoChar[921]; - UndoChar_922 = undoChar[922]; - UndoChar_923 = undoChar[923]; - UndoChar_924 = undoChar[924]; - UndoChar_925 = undoChar[925]; - UndoChar_926 = undoChar[926]; - UndoChar_927 = undoChar[927]; - UndoChar_928 = undoChar[928]; - UndoChar_929 = undoChar[929]; - UndoChar_930 = undoChar[930]; - UndoChar_931 = undoChar[931]; - UndoChar_932 = undoChar[932]; - UndoChar_933 = undoChar[933]; - UndoChar_934 = undoChar[934]; - UndoChar_935 = undoChar[935]; - UndoChar_936 = undoChar[936]; - UndoChar_937 = undoChar[937]; - UndoChar_938 = undoChar[938]; - UndoChar_939 = undoChar[939]; - UndoChar_940 = undoChar[940]; - UndoChar_941 = undoChar[941]; - UndoChar_942 = undoChar[942]; - UndoChar_943 = undoChar[943]; - UndoChar_944 = undoChar[944]; - UndoChar_945 = undoChar[945]; - UndoChar_946 = undoChar[946]; - UndoChar_947 = undoChar[947]; - UndoChar_948 = undoChar[948]; - UndoChar_949 = undoChar[949]; - UndoChar_950 = undoChar[950]; - UndoChar_951 = undoChar[951]; - UndoChar_952 = undoChar[952]; - UndoChar_953 = undoChar[953]; - UndoChar_954 = undoChar[954]; - UndoChar_955 = undoChar[955]; - UndoChar_956 = undoChar[956]; - UndoChar_957 = undoChar[957]; - UndoChar_958 = undoChar[958]; - UndoChar_959 = undoChar[959]; - UndoChar_960 = undoChar[960]; - UndoChar_961 = undoChar[961]; - UndoChar_962 = undoChar[962]; - UndoChar_963 = undoChar[963]; - UndoChar_964 = undoChar[964]; - UndoChar_965 = undoChar[965]; - UndoChar_966 = undoChar[966]; - UndoChar_967 = undoChar[967]; - UndoChar_968 = undoChar[968]; - UndoChar_969 = undoChar[969]; - UndoChar_970 = undoChar[970]; - UndoChar_971 = undoChar[971]; - UndoChar_972 = undoChar[972]; - UndoChar_973 = undoChar[973]; - UndoChar_974 = undoChar[974]; - UndoChar_975 = undoChar[975]; - UndoChar_976 = undoChar[976]; - UndoChar_977 = undoChar[977]; - UndoChar_978 = undoChar[978]; - UndoChar_979 = undoChar[979]; - UndoChar_980 = undoChar[980]; - UndoChar_981 = undoChar[981]; - UndoChar_982 = undoChar[982]; - UndoChar_983 = undoChar[983]; - UndoChar_984 = undoChar[984]; - UndoChar_985 = undoChar[985]; - UndoChar_986 = undoChar[986]; - UndoChar_987 = undoChar[987]; - UndoChar_988 = undoChar[988]; - UndoChar_989 = undoChar[989]; - UndoChar_990 = undoChar[990]; - UndoChar_991 = undoChar[991]; - UndoChar_992 = undoChar[992]; - UndoChar_993 = undoChar[993]; - UndoChar_994 = undoChar[994]; - UndoChar_995 = undoChar[995]; - UndoChar_996 = undoChar[996]; - UndoChar_997 = undoChar[997]; - UndoChar_998 = undoChar[998]; - } - UndoPoint = undoPoint; - RedoPoint = redoPoint; - UndoCharPoint = undoCharPoint; - RedoCharPoint = redoCharPoint; - } - public unsafe Span<StbUndoRecord> UndoRec - { - get - { - fixed (StbUndoRecord* p = &this.UndoRec_0) - { - return new Span<StbUndoRecord>(p, 99); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.gen.cs deleted file mode 100644 index 7ff9da775..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVector.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVector.gen.cs deleted file mode 100644 index e685b531e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVector.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImBitVector -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVectorPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVectorPtr.gen.cs deleted file mode 100644 index 48a258a96..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImBitVectorPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImBitVectorPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiTableSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiTableSettings.gen.cs deleted file mode 100644 index 1ee1487f2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiTableSettings.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImChunkStreamImGuiTableSettings -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiWindowSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiWindowSettings.gen.cs deleted file mode 100644 index 7120eb72f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImChunkStreamImGuiWindowSettings.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImChunkStreamImGuiWindowSettings -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColor.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColor.gen.cs deleted file mode 100644 index 1165e1fa5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColor.gen.cs +++ /dev/null @@ -1,49 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImColor -{ - public unsafe void Destroy() - { - fixed (ImColor* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe void HSV(float h, float s, float v, float a) - { - fixed (ImColor* @this = &this) - { - ImGuiNative.HSV(@this, h, s, v, a); - } - } - public unsafe void HSV(float h, float s, float v) - { - fixed (ImColor* @this = &this) - { - ImGuiNative.HSV(@this, h, s, v, (float)(1.0f)); - } - } - public unsafe void SetHSV(float h, float s, float v, float a) - { - fixed (ImColor* @this = &this) - { - ImGuiNative.SetHSV(@this, h, s, v, a); - } - } - public unsafe void SetHSV(float h, float s, float v) - { - fixed (ImColor* @this = &this) - { - ImGuiNative.SetHSV(@this, h, s, v, (float)(1.0f)); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColorPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColorPtr.gen.cs deleted file mode 100644 index 65a07e1b2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImColorPtr.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImColorPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe void HSV(float h, float s, float v, float a) - { - ImGuiNative.HSV(Handle, h, s, v, a); - } - public unsafe void HSV(float h, float s, float v) - { - ImGuiNative.HSV(Handle, h, s, v, (float)(1.0f)); - } - public unsafe void SetHSV(float h, float s, float v, float a) - { - ImGuiNative.SetHSV(Handle, h, s, v, a); - } - public unsafe void SetHSV(float h, float s, float v) - { - ImGuiNative.SetHSV(Handle, h, s, v, (float)(1.0f)); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannel.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannel.gen.cs deleted file mode 100644 index a188a6c30..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannel.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawChannel -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannelPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannelPtr.gen.cs deleted file mode 100644 index 950f370f1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawChannelPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawChannelPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmd.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmd.gen.cs deleted file mode 100644 index 1d62c7fb4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmd.gen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawCmd -{ - public unsafe void Destroy() - { - fixed (ImDrawCmd* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe ImTextureID GetTexID() - { - fixed (ImDrawCmd* @this = &this) - { - ImTextureID ret = ImGuiNative.GetTexID(@this); - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdHeader.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdHeader.gen.cs deleted file mode 100644 index cb06d8201..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdHeader.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawCmdHeader -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdPtr.gen.cs deleted file mode 100644 index a09491ded..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawCmdPtr.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawCmdPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe ImTextureID GetTexID() - { - ImTextureID ret = ImGuiNative.GetTexID(Handle); - return ret; - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawData.gen.cs deleted file mode 100644 index d4c0a3c5f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawData.gen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawData -{ - public unsafe void Clear() - { - fixed (ImDrawData* @this = &this) - { - ImGuiNative.Clear(@this); - } - } - public unsafe void DeIndexAllBuffers() - { - fixed (ImDrawData* @this = &this) - { - ImGuiNative.DeIndexAllBuffers(@this); - } - } - public unsafe void Destroy() - { - fixed (ImDrawData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe void ScaleClipRects(Vector2 fbScale) - { - fixed (ImDrawData* @this = &this) - { - ImGuiNative.ScaleClipRects(@this, fbScale); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilder.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilder.gen.cs deleted file mode 100644 index 756d111ba..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilder.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawDataBuilder -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilderPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilderPtr.gen.cs deleted file mode 100644 index d513628ff..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataBuilderPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawDataBuilderPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataPtr.gen.cs deleted file mode 100644 index 50b13808d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawDataPtr.gen.cs +++ /dev/null @@ -1,30 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawDataPtr -{ - public unsafe void Clear() - { - ImGuiNative.Clear(Handle); - } - public unsafe void DeIndexAllBuffers() - { - ImGuiNative.DeIndexAllBuffers(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe void ScaleClipRects(Vector2 fbScale) - { - ImGuiNative.ScaleClipRects(Handle, fbScale); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawList.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawList.gen.cs deleted file mode 100644 index 83fe8f18e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawList.gen.cs +++ /dev/null @@ -1,758 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawList -{ - public unsafe int _CalcCircleAutoSegmentCount(float radius) - { - fixed (ImDrawList* @this = &this) - { - int ret = ImGuiNative._CalcCircleAutoSegmentCount(@this, radius); - return ret; - } - } - public unsafe void _ClearFreeMemory() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._ClearFreeMemory(@this); - } - } - public unsafe void _OnChangedClipRect() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._OnChangedClipRect(@this); - } - } - public unsafe void _OnChangedTextureID() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._OnChangedTextureID(@this); - } - } - public unsafe void _OnChangedVtxOffset() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._OnChangedVtxOffset(@this); - } - } - public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._PathArcToFastEx(@this, center, radius, aMinSample, aMaxSample, aStep); - } - } - public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._PathArcToN(@this, center, radius, aMin, aMax, numSegments); - } - } - public unsafe void _PopUnusedDrawCmd() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._PopUnusedDrawCmd(@this); - } - } - public unsafe void _ResetForNewFrame() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._ResetForNewFrame(@this); - } - } - public unsafe void _TryMergeDrawCmds() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative._TryMergeDrawCmds(@this); - } - } - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddBezierCubic(@this, p1, p2, p3, p4, col, thickness, numSegments); - } - } - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddBezierCubic(@this, p1, p2, p3, p4, col, thickness, (int)(0)); - } - } - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddBezierQuadratic(@this, p1, p2, p3, col, thickness, numSegments); - } - } - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddBezierQuadratic(@this, p1, p2, p3, col, thickness, (int)(0)); - } - } - public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddCallback(@this, callback, callbackData); - } - } - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddCircle(@this, center, radius, col, numSegments, thickness); - } - } - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddCircle(@this, center, radius, col, numSegments, (float)(1.0f)); - } - } - public unsafe void AddCircle(Vector2 center, float radius, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddCircle(@this, center, radius, col, (int)(0), (float)(1.0f)); - } - } - public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddCircle(@this, center, radius, col, (int)(0), thickness); - } - } - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddCircleFilled(@this, center, radius, col, numSegments); - } - } - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddCircleFilled(@this, center, radius, col, (int)(0)); - } - } - public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddConvexPolyFilled(@this, points, numPoints, col); - } - } - public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddConvexPolyFilled(@this, (Vector2*)ppoints, numPoints, col); - } - } - } - public unsafe void AddDrawCmd() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddDrawCmd(@this); - } - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImage(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageQuad(@this, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageRounded(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - } - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddImageRounded(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - } - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddLine(@this, p1, p2, col, thickness); - } - } - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddLine(@this, p1, p2, col, (float)(1.0f)); - } - } - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddNgon(@this, center, radius, col, numSegments, thickness); - } - } - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddNgon(@this, center, radius, col, numSegments, (float)(1.0f)); - } - } - public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddNgonFilled(@this, center, radius, col, numSegments); - } - } - public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddPolyline(@this, points, numPoints, col, flags, thickness); - } - } - public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddPolyline(@this, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - } - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddQuad(@this, p1, p2, p3, p4, col, thickness); - } - } - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddQuad(@this, p1, p2, p3, p4, col, (float)(1.0f)); - } - } - public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddQuadFilled(@this, p1, p2, p3, p4, col); - } - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, flags, thickness); - } - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRect(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRect(@this, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRect(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRect(@this, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRectFilled(@this, pMin, pMax, col, rounding, flags); - } - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRectFilled(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRectFilled(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRectFilled(@this, pMin, pMax, col, (float)(0.0f), flags); - } - } - public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddRectFilledMultiColor(@this, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - } - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddTriangle(@this, p1, p2, p3, col, thickness); - } - } - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddTriangle(@this, p1, p2, p3, col, (float)(1.0f)); - } - } - public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.AddTriangleFilled(@this, p1, p2, p3, col); - } - } - public unsafe void ChannelsMerge() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.ChannelsMerge(@this); - } - } - public unsafe void ChannelsSetCurrent(int n) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.ChannelsSetCurrent(@this, n); - } - } - public unsafe void ChannelsSplit(int count) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.ChannelsSplit(@this, count); - } - } - public unsafe ImDrawList* CloneOutput() - { - fixed (ImDrawList* @this = &this) - { - ImDrawList* ret = ImGuiNative.CloneOutput(@this); - return ret; - } - } - public unsafe void Destroy() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathArcTo(@this, center, radius, aMin, aMax, numSegments); - } - } - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathArcTo(@this, center, radius, aMin, aMax, (int)(0)); - } - } - public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathArcToFast(@this, center, radius, aMinOf12, aMaxOf12); - } - } - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathBezierCubicCurveTo(@this, p2, p3, p4, numSegments); - } - } - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathBezierCubicCurveTo(@this, p2, p3, p4, (int)(0)); - } - } - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathBezierQuadraticCurveTo(@this, p2, p3, numSegments); - } - } - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathBezierQuadraticCurveTo(@this, p2, p3, (int)(0)); - } - } - public unsafe void PathClear() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathClear(@this); - } - } - public unsafe void PathFillConvex(uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathFillConvex(@this, col); - } - } - public unsafe void PathLineTo(Vector2 pos) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathLineTo(@this, pos); - } - } - public unsafe void PathLineToMergeDuplicate(Vector2 pos) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathLineToMergeDuplicate(@this, pos); - } - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathRect(@this, rectMin, rectMax, rounding, flags); - } - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathRect(@this, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathRect(@this, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathRect(@this, rectMin, rectMax, (float)(0.0f), flags); - } - } - public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathStroke(@this, col, flags, thickness); - } - } - public unsafe void PathStroke(uint col, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathStroke(@this, col, flags, (float)(1.0f)); - } - } - public unsafe void PathStroke(uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathStroke(@this, col, (ImDrawFlags)(0), (float)(1.0f)); - } - } - public unsafe void PathStroke(uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PathStroke(@this, col, (ImDrawFlags)(0), thickness); - } - } - public unsafe void PopClipRect() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PopClipRect(@this); - } - } - public unsafe void PopTextureID() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PopTextureID(@this); - } - } - public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimQuadUV(@this, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - } - public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimRect(@this, a, b, col); - } - } - public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimRectUV(@this, a, b, uvA, uvB, col); - } - } - public unsafe void PrimReserve(int idxCount, int vtxCount) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimReserve(@this, idxCount, vtxCount); - } - } - public unsafe void PrimUnreserve(int idxCount, int vtxCount) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimUnreserve(@this, idxCount, vtxCount); - } - } - public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimVtx(@this, pos, uv, col); - } - } - public unsafe void PrimWriteIdx(ushort idx) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimWriteIdx(@this, idx); - } - } - public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PrimWriteVtx(@this, pos, uv, col); - } - } - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PushClipRect(@this, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - } - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PushClipRect(@this, clipRectMin, clipRectMax, (byte)(0)); - } - } - public unsafe void PushClipRectFullScreen() - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PushClipRectFullScreen(@this); - } - } - public unsafe void PushTextureID(ImTextureID textureId) - { - fixed (ImDrawList* @this = &this) - { - ImGuiNative.PushTextureID(@this, textureId); - } - } -} -// DISCARDED: AddText diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtr.gen.cs deleted file mode 100644 index ef82004a4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtr.gen.cs +++ /dev/null @@ -1,443 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawListPtr -{ - public unsafe int _CalcCircleAutoSegmentCount(float radius) - { - int ret = ImGuiNative._CalcCircleAutoSegmentCount(Handle, radius); - return ret; - } - public unsafe void _ClearFreeMemory() - { - ImGuiNative._ClearFreeMemory(Handle); - } - public unsafe void _OnChangedClipRect() - { - ImGuiNative._OnChangedClipRect(Handle); - } - public unsafe void _OnChangedTextureID() - { - ImGuiNative._OnChangedTextureID(Handle); - } - public unsafe void _OnChangedVtxOffset() - { - ImGuiNative._OnChangedVtxOffset(Handle); - } - public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - ImGuiNative._PathArcToFastEx(Handle, center, radius, aMinSample, aMaxSample, aStep); - } - public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - ImGuiNative._PathArcToN(Handle, center, radius, aMin, aMax, numSegments); - } - public unsafe void _PopUnusedDrawCmd() - { - ImGuiNative._PopUnusedDrawCmd(Handle); - } - public unsafe void _ResetForNewFrame() - { - ImGuiNative._ResetForNewFrame(Handle); - } - public unsafe void _TryMergeDrawCmds() - { - ImGuiNative._TryMergeDrawCmds(Handle); - } - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - ImGuiNative.AddBezierCubic(Handle, p1, p2, p3, p4, col, thickness, numSegments); - } - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - ImGuiNative.AddBezierCubic(Handle, p1, p2, p3, p4, col, thickness, (int)(0)); - } - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - ImGuiNative.AddBezierQuadratic(Handle, p1, p2, p3, col, thickness, numSegments); - } - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - ImGuiNative.AddBezierQuadratic(Handle, p1, p2, p3, col, thickness, (int)(0)); - } - public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) - { - ImGuiNative.AddCallback(Handle, callback, callbackData); - } - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - ImGuiNative.AddCircle(Handle, center, radius, col, numSegments, thickness); - } - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddCircle(Handle, center, radius, col, numSegments, (float)(1.0f)); - } - public unsafe void AddCircle(Vector2 center, float radius, uint col) - { - ImGuiNative.AddCircle(Handle, center, radius, col, (int)(0), (float)(1.0f)); - } - public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) - { - ImGuiNative.AddCircle(Handle, center, radius, col, (int)(0), thickness); - } - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddCircleFilled(Handle, center, radius, col, numSegments); - } - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) - { - ImGuiNative.AddCircleFilled(Handle, center, radius, col, (int)(0)); - } - public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) - { - ImGuiNative.AddConvexPolyFilled(Handle, points, numPoints, col); - } - public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddConvexPolyFilled(Handle, (Vector2*)ppoints, numPoints, col); - } - } - public unsafe void AddDrawCmd() - { - ImGuiNative.AddDrawCmd(Handle); - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - ImGuiNative.AddImage(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGuiNative.AddImageQuad(Handle, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - ImGuiNative.AddImageRounded(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - ImGuiNative.AddImageRounded(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) - { - ImGuiNative.AddLine(Handle, p1, p2, col, thickness); - } - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) - { - ImGuiNative.AddLine(Handle, p1, p2, col, (float)(1.0f)); - } - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - ImGuiNative.AddNgon(Handle, center, radius, col, numSegments, thickness); - } - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddNgon(Handle, center, radius, col, numSegments, (float)(1.0f)); - } - public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) - { - ImGuiNative.AddNgonFilled(Handle, center, radius, col, numSegments); - } - public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - ImGuiNative.AddPolyline(Handle, points, numPoints, col, flags, thickness); - } - public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (Vector2* ppoints = &points) - { - ImGuiNative.AddPolyline(Handle, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - ImGuiNative.AddQuad(Handle, p1, p2, p3, p4, col, thickness); - } - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGuiNative.AddQuad(Handle, p1, p2, p3, p4, col, (float)(1.0f)); - } - public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGuiNative.AddQuadFilled(Handle, p1, p2, p3, p4, col); - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, flags, thickness); - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) - { - ImGuiNative.AddRect(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - ImGuiNative.AddRect(Handle, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - ImGuiNative.AddRect(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - ImGuiNative.AddRect(Handle, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, rounding, flags); - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) - { - ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - ImGuiNative.AddRectFilled(Handle, pMin, pMax, col, (float)(0.0f), flags); - } - public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - ImGuiNative.AddRectFilledMultiColor(Handle, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - ImGuiNative.AddTriangle(Handle, p1, p2, p3, col, thickness); - } - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - ImGuiNative.AddTriangle(Handle, p1, p2, p3, col, (float)(1.0f)); - } - public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - ImGuiNative.AddTriangleFilled(Handle, p1, p2, p3, col); - } - public unsafe void ChannelsMerge() - { - ImGuiNative.ChannelsMerge(Handle); - } - public unsafe void ChannelsSetCurrent(int n) - { - ImGuiNative.ChannelsSetCurrent(Handle, n); - } - public unsafe void ChannelsSplit(int count) - { - ImGuiNative.ChannelsSplit(Handle, count); - } - public unsafe ImDrawListPtr CloneOutput() - { - ImDrawListPtr ret = ImGuiNative.CloneOutput(Handle); - return ret; - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - ImGuiNative.PathArcTo(Handle, center, radius, aMin, aMax, numSegments); - } - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) - { - ImGuiNative.PathArcTo(Handle, center, radius, aMin, aMax, (int)(0)); - } - public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - ImGuiNative.PathArcToFast(Handle, center, radius, aMinOf12, aMaxOf12); - } - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - ImGuiNative.PathBezierCubicCurveTo(Handle, p2, p3, p4, numSegments); - } - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) - { - ImGuiNative.PathBezierCubicCurveTo(Handle, p2, p3, p4, (int)(0)); - } - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) - { - ImGuiNative.PathBezierQuadraticCurveTo(Handle, p2, p3, numSegments); - } - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) - { - ImGuiNative.PathBezierQuadraticCurveTo(Handle, p2, p3, (int)(0)); - } - public unsafe void PathClear() - { - ImGuiNative.PathClear(Handle); - } - public unsafe void PathFillConvex(uint col) - { - ImGuiNative.PathFillConvex(Handle, col); - } - public unsafe void PathLineTo(Vector2 pos) - { - ImGuiNative.PathLineTo(Handle, pos); - } - public unsafe void PathLineToMergeDuplicate(Vector2 pos) - { - ImGuiNative.PathLineToMergeDuplicate(Handle, pos); - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - ImGuiNative.PathRect(Handle, rectMin, rectMax, rounding, flags); - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) - { - ImGuiNative.PathRect(Handle, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) - { - ImGuiNative.PathRect(Handle, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - ImGuiNative.PathRect(Handle, rectMin, rectMax, (float)(0.0f), flags); - } - public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) - { - ImGuiNative.PathStroke(Handle, col, flags, thickness); - } - public unsafe void PathStroke(uint col, ImDrawFlags flags) - { - ImGuiNative.PathStroke(Handle, col, flags, (float)(1.0f)); - } - public unsafe void PathStroke(uint col) - { - ImGuiNative.PathStroke(Handle, col, (ImDrawFlags)(0), (float)(1.0f)); - } - public unsafe void PathStroke(uint col, float thickness) - { - ImGuiNative.PathStroke(Handle, col, (ImDrawFlags)(0), thickness); - } - public unsafe void PopClipRect() - { - ImGuiNative.PopClipRect(Handle); - } - public unsafe void PopTextureID() - { - ImGuiNative.PopTextureID(Handle); - } - public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - ImGuiNative.PrimQuadUV(Handle, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) - { - ImGuiNative.PrimRect(Handle, a, b, col); - } - public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - ImGuiNative.PrimRectUV(Handle, a, b, uvA, uvB, col); - } - public unsafe void PrimReserve(int idxCount, int vtxCount) - { - ImGuiNative.PrimReserve(Handle, idxCount, vtxCount); - } - public unsafe void PrimUnreserve(int idxCount, int vtxCount) - { - ImGuiNative.PrimUnreserve(Handle, idxCount, vtxCount); - } - public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) - { - ImGuiNative.PrimVtx(Handle, pos, uv, col); - } - public unsafe void PrimWriteIdx(ushort idx) - { - ImGuiNative.PrimWriteIdx(Handle, idx); - } - public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) - { - ImGuiNative.PrimWriteVtx(Handle, pos, uv, col); - } - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - ImGuiNative.PushClipRect(Handle, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) - { - ImGuiNative.PushClipRect(Handle, clipRectMin, clipRectMax, (byte)(0)); - } - public unsafe void PushClipRectFullScreen() - { - ImGuiNative.PushClipRectFullScreen(Handle); - } - public unsafe void PushTextureID(ImTextureID textureId) - { - ImGuiNative.PushTextureID(Handle, textureId); - } -} -// DISCARDED: AddText diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtrPtr.gen.cs deleted file mode 100644 index dc2d7dca1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListPtrPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawListPtrPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedData.gen.cs deleted file mode 100644 index d51b5fdc8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawListSharedData -{ - public unsafe void Destroy() - { - fixed (ImDrawListSharedData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedDataPtr.gen.cs deleted file mode 100644 index 2a4a3fd06..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSharedDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawListSharedDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitter.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitter.gen.cs deleted file mode 100644 index 569ccf345..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitter.gen.cs +++ /dev/null @@ -1,86 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawListSplitter -{ - public unsafe void Clear() - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGuiNative.Clear(@this); - } - } - public unsafe void ClearFreeMemory() - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGuiNative.ClearFreeMemory(@this); - } - } - public unsafe void Destroy() - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe void Merge(ImDrawListPtr drawList) - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGuiNative.Merge(@this, drawList); - } - } - public unsafe void Merge(ref ImDrawList drawList) - { - fixed (ImDrawListSplitter* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Merge(@this, (ImDrawList*)pdrawList); - } - } - } - public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGuiNative.SetCurrentChannel(@this, drawList, channelIdx); - } - } - public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawListSplitter* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.SetCurrentChannel(@this, (ImDrawList*)pdrawList, channelIdx); - } - } - } - public unsafe void Split(ImDrawListPtr drawList, int count) - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGuiNative.Split(@this, drawList, count); - } - } - public unsafe void Split(ref ImDrawList drawList, int count) - { - fixed (ImDrawListSplitter* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Split(@this, (ImDrawList*)pdrawList, count); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitterPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitterPtr.gen.cs deleted file mode 100644 index 60be9629f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawListSplitterPtr.gen.cs +++ /dev/null @@ -1,59 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawListSplitterPtr -{ - public unsafe void Clear() - { - ImGuiNative.Clear(Handle); - } - public unsafe void ClearFreeMemory() - { - ImGuiNative.ClearFreeMemory(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe void Merge(ImDrawListPtr drawList) - { - ImGuiNative.Merge(Handle, drawList); - } - public unsafe void Merge(ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Merge(Handle, (ImDrawList*)pdrawList); - } - } - public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) - { - ImGuiNative.SetCurrentChannel(Handle, drawList, channelIdx); - } - public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.SetCurrentChannel(Handle, (ImDrawList*)pdrawList, channelIdx); - } - } - public unsafe void Split(ImDrawListPtr drawList, int count) - { - ImGuiNative.Split(Handle, drawList, count); - } - public unsafe void Split(ref ImDrawList drawList, int count) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.Split(Handle, (ImDrawList*)pdrawList, count); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVert.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVert.gen.cs deleted file mode 100644 index e2ae605b5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVert.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawVert -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVertPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVertPtr.gen.cs deleted file mode 100644 index 909401d5d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImDrawVertPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawVertPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFont.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFont.gen.cs deleted file mode 100644 index 95a60e10b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFont.gen.cs +++ /dev/null @@ -1,176 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFont -{ - public unsafe void AddGlyph(ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* @this = &this) - { - ImGuiNative.AddGlyph(@this, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - public unsafe void AddGlyph(ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* @this = &this) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - ImGuiNative.AddGlyph(@this, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - } - public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) - { - fixed (ImFont* @this = &this) - { - ImGuiNative.AddKerningPair(@this, leftC, rightC, distanceAdjustment); - } - } - public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) - { - fixed (ImFont* @this = &this) - { - ImGuiNative.AddRemapChar(@this, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - } - public unsafe void AddRemapChar(ushort dst, ushort src) - { - fixed (ImFont* @this = &this) - { - ImGuiNative.AddRemapChar(@this, dst, src, (byte)(1)); - } - } - public unsafe void BuildLookupTable() - { - fixed (ImFont* @this = &this) - { - ImGuiNative.BuildLookupTable(@this); - } - } - public unsafe void ClearOutputData() - { - fixed (ImFont* @this = &this) - { - ImGuiNative.ClearOutputData(@this); - } - } - public unsafe void Destroy() - { - fixed (ImFont* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe ImFontGlyph* FindGlyph(ushort c) - { - fixed (ImFont* @this = &this) - { - ImFontGlyph* ret = ImGuiNative.FindGlyph(@this, c); - return ret; - } - } - public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) - { - fixed (ImFont* @this = &this) - { - ImFontGlyph* ret = ImGuiNative.FindGlyphNoFallback(@this, c); - return ret; - } - } - public unsafe float GetCharAdvance(ushort c) - { - fixed (ImFont* @this = &this) - { - float ret = ImGuiNative.GetCharAdvance(@this, c); - return ret; - } - } - public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) - { - fixed (ImFont* @this = &this) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPair(@this, leftC, rightC); - return ret; - } - } - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) - { - fixed (ImFont* @this = &this) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(@this, leftC, rightCInfo); - return ret; - } - } - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFont* @this = &this) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(@this, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - } - public unsafe void GrowIndex(int newSize) - { - fixed (ImFont* @this = &this) - { - ImGuiNative.GrowIndex(@this, newSize); - } - } - public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) - { - fixed (ImFont* @this = &this) - { - byte ret = ImGuiNative.IsGlyphRangeUnused(@this, cBegin, cLast); - return ret != 0; - } - } - public unsafe bool IsLoaded() - { - fixed (ImFont* @this = &this) - { - byte ret = ImGuiNative.IsLoaded(@this); - return ret != 0; - } - } - public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* @this = &this) - { - ImGuiNative.RenderChar(@this, drawList, size, pos, col, c); - } - } - public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.RenderChar(@this, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - } - public unsafe void SetGlyphVisible(ushort c, bool visible) - { - fixed (ImFont* @this = &this) - { - ImGuiNative.SetGlyphVisible(@this, c, visible ? (byte)1 : (byte)0); - } - } -} -// DISCARDED: CalcWordWrapPositionA -// DISCARDED: CalcWordWrapPositionAS -// DISCARDED: GetDebugName -// DISCARDED: GetDebugNameS -// DISCARDED: RenderText diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlas.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlas.gen.cs deleted file mode 100644 index bdee51eee..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlas.gen.cs +++ /dev/null @@ -1,1831 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontAtlas -{ - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* @this = &this) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(@this, font, id, width, height, advanceX, offset); - return ret; - } - } - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* @this = &this) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(@this, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(@this, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - } - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(@this, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - } - public unsafe int AddCustomRectRegular(int width, int height) - { - fixed (ImFontAtlas* @this = &this) - { - int ret = ImGuiNative.AddCustomRectRegular(@this, width, height); - return ret; - } - } - public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGuiNative.AddFont(@this, fontCfg); - return ret; - } - } - public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFont(@this, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(@this, fontCfg); - return ret; - } - } - public unsafe ImFontPtr AddFontDefault() - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(@this, (ImFontConfig*)(default)); - return ret; - } - } - public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(@this, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - public unsafe bool Build() - { - fixed (ImFontAtlas* @this = &this) - { - byte ret = ImGuiNative.Build(@this); - return ret != 0; - } - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.CalcCustomRectUV(@this, rect, outUvMin, outUvMax); - } - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV(@this, rect, (Vector2*)poutUvMin, outUvMax); - } - } - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(@this, rect, outUvMin, (Vector2*)poutUvMax); - } - } - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(@this, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - } - public unsafe void Clear() - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.Clear(@this); - } - } - public unsafe void ClearFonts() - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.ClearFonts(@this); - } - } - public unsafe void ClearInputData() - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.ClearInputData(@this); - } - } - public unsafe void ClearTexData() - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.ClearTexData(@this); - } - } - public unsafe void ClearTexID(ImTextureID nullId) - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.ClearTexID(@this, nullId); - } - } - public unsafe void Destroy() - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontAtlasCustomRect* ret = ImGuiNative.GetCustomRectByIndex(@this, index); - return ret; - } - } - public unsafe ushort* GetGlyphRangesChineseFull() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseFull(@this); - return ret; - } - } - public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon(@this); - return ret; - } - } - public unsafe ushort* GetGlyphRangesCyrillic() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesCyrillic(@this); - return ret; - } - } - public unsafe ushort* GetGlyphRangesDefault() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesDefault(@this); - return ret; - } - } - public unsafe ushort* GetGlyphRangesJapanese() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesJapanese(@this); - return ret; - } - } - public unsafe ushort* GetGlyphRangesKorean() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesKorean(@this); - return ret; - } - } - public unsafe ushort* GetGlyphRangesThai() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesThai(@this); - return ret; - } - } - public unsafe ushort* GetGlyphRangesVietnamese() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGuiNative.GetGlyphRangesVietnamese(@this); - return ret; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - public unsafe bool IsBuilt() - { - fixed (ImFontAtlas* @this = &this) - { - byte ret = ImGuiNative.IsBuilt(@this); - return ret != 0; - } - } - public unsafe void SetTexID(int textureIndex, ImTextureID id) - { - fixed (ImFontAtlas* @this = &this) - { - ImGuiNative.SetTexID(@this, textureIndex, id); - } - } -} -// DISCARDED: AddFontFromFileTTF -// DISCARDED: AddFontFromMemoryCompressedBase85TTF -// DISCARDED: AddFontFromMemoryCompressedTTF -// DISCARDED: AddFontFromMemoryTTF diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRect.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRect.gen.cs deleted file mode 100644 index 304b1c152..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRect.gen.cs +++ /dev/null @@ -1,29 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontAtlasCustomRect -{ - public unsafe void Destroy() - { - fixed (ImFontAtlasCustomRect* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe bool IsPacked() - { - fixed (ImFontAtlasCustomRect* @this = &this) - { - byte ret = ImGuiNative.IsPacked(@this); - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRectPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRectPtr.gen.cs deleted file mode 100644 index 2e4beafa0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasCustomRectPtr.gen.cs +++ /dev/null @@ -1,23 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontAtlasCustomRectPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe bool IsPacked() - { - byte ret = ImGuiNative.IsPacked(Handle); - return ret != 0; - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasPtr.gen.cs deleted file mode 100644 index 1ed50cbd9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasPtr.gen.cs +++ /dev/null @@ -1,1411 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontAtlasPtr -{ - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, font, id, width, height, advanceX, offset); - return ret; - } - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGuiNative.AddCustomRectFontGlyph(Handle, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - public unsafe int AddCustomRectRegular(int width, int height) - { - int ret = ImGuiNative.AddCustomRectRegular(Handle, width, height); - return ret; - } - public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFont(Handle, fontCfg); - return ret; - } - public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFont(Handle, (ImFontConfig*)pfontCfg); - return ret; - } - } - public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(Handle, fontCfg); - return ret; - } - public unsafe ImFontPtr AddFontDefault() - { - ImFontPtr ret = ImGuiNative.AddFontDefault(Handle, (ImFontConfig*)(default)); - return ret; - } - public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGuiNative.AddFontDefault(Handle, (ImFontConfig*)pfontCfg); - return ret; - } - } - public unsafe bool Build() - { - byte ret = ImGuiNative.Build(Handle); - return ret != 0; - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) - { - ImGuiNative.CalcCustomRectUV(Handle, rect, outUvMin, outUvMax); - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV(Handle, rect, (Vector2*)poutUvMin, outUvMax); - } - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(Handle, rect, outUvMin, (Vector2*)poutUvMax); - } - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(Handle, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGuiNative.CalcCustomRectUV(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - public unsafe void Clear() - { - ImGuiNative.Clear(Handle); - } - public unsafe void ClearFonts() - { - ImGuiNative.ClearFonts(Handle); - } - public unsafe void ClearInputData() - { - ImGuiNative.ClearInputData(Handle); - } - public unsafe void ClearTexData() - { - ImGuiNative.ClearTexData(Handle); - } - public unsafe void ClearTexID(ImTextureID nullId) - { - ImGuiNative.ClearTexID(Handle, nullId); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) - { - ImFontAtlasCustomRect* ret = ImGuiNative.GetCustomRectByIndex(Handle, index); - return ret; - } - public unsafe ushort* GetGlyphRangesChineseFull() - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseFull(Handle); - return ret; - } - public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() - { - ushort* ret = ImGuiNative.GetGlyphRangesChineseSimplifiedCommon(Handle); - return ret; - } - public unsafe ushort* GetGlyphRangesCyrillic() - { - ushort* ret = ImGuiNative.GetGlyphRangesCyrillic(Handle); - return ret; - } - public unsafe ushort* GetGlyphRangesDefault() - { - ushort* ret = ImGuiNative.GetGlyphRangesDefault(Handle); - return ret; - } - public unsafe ushort* GetGlyphRangesJapanese() - { - ushort* ret = ImGuiNative.GetGlyphRangesJapanese(Handle); - return ret; - } - public unsafe ushort* GetGlyphRangesKorean() - { - ushort* ret = ImGuiNative.GetGlyphRangesKorean(Handle); - return ret; - } - public unsafe ushort* GetGlyphRangesThai() - { - ushort* ret = ImGuiNative.GetGlyphRangesThai(Handle); - return ret; - } - public unsafe ushort* GetGlyphRangesVietnamese() - { - ushort* ret = ImGuiNative.GetGlyphRangesVietnamese(Handle); - return ret; - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGuiNative.GetMouseCursorTexData(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsAlpha8(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGuiNative.GetTexDataAsRGBA32(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - public unsafe bool IsBuilt() - { - byte ret = ImGuiNative.IsBuilt(Handle); - return ret != 0; - } - public unsafe void SetTexID(int textureIndex, ImTextureID id) - { - ImGuiNative.SetTexID(Handle, textureIndex, id); - } -} -// DISCARDED: AddFontFromFileTTF -// DISCARDED: AddFontFromMemoryCompressedBase85TTF -// DISCARDED: AddFontFromMemoryCompressedTTF -// DISCARDED: AddFontFromMemoryTTF diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexture.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexture.gen.cs deleted file mode 100644 index 865f5d198..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexture.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontAtlasTexture -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexturePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexturePtr.gen.cs deleted file mode 100644 index e20e544dd..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontAtlasTexturePtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontAtlasTexturePtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIO.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIO.gen.cs deleted file mode 100644 index b60374483..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIO.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontBuilderIO -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIOPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIOPtr.gen.cs deleted file mode 100644 index 2689d387c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontBuilderIOPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontBuilderIOPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfig.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfig.gen.cs deleted file mode 100644 index 00fa869a6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfig.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontConfig -{ - public unsafe void Destroy() - { - fixed (ImFontConfig* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfigPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfigPtr.gen.cs deleted file mode 100644 index f94d55372..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontConfigPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontConfigPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyph.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyph.gen.cs deleted file mode 100644 index ea4aa3a3f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyph.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontGlyph -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotData.gen.cs deleted file mode 100644 index 394e59ca4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontGlyphHotData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotDataPtr.gen.cs deleted file mode 100644 index 6cec98602..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphHotDataPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontGlyphHotDataPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphPtr.gen.cs deleted file mode 100644 index 34154ae42..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontGlyphPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilder.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilder.gen.cs deleted file mode 100644 index 384373475..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilder.gen.cs +++ /dev/null @@ -1,75 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontGlyphRangesBuilder -{ - public unsafe void AddChar(ushort c) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGuiNative.AddChar(@this, c); - } - } - public unsafe void AddRanges(ushort* ranges) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGuiNative.AddRanges(@this, ranges); - } - } - public unsafe void BuildRanges(ImVector<ushort>* outRanges) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGuiNative.BuildRanges(@this, outRanges); - } - } - public unsafe void BuildRanges(ref ImVector<ushort> outRanges) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - ImGuiNative.BuildRanges(@this, (ImVector<ushort>*)poutRanges); - } - } - } - public unsafe void Clear() - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGuiNative.Clear(@this); - } - } - public unsafe void Destroy() - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe bool GetBit(nuint n) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte ret = ImGuiNative.GetBit(@this, n); - return ret != 0; - } - } - public unsafe void SetBit(nuint n) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGuiNative.SetBit(@this, n); - } - } -} -// DISCARDED: AddText diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilderPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilderPtr.gen.cs deleted file mode 100644 index ddc37425b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontGlyphRangesBuilderPtr.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontGlyphRangesBuilderPtr -{ - public unsafe void AddChar(ushort c) - { - ImGuiNative.AddChar(Handle, c); - } - public unsafe void AddRanges(ushort* ranges) - { - ImGuiNative.AddRanges(Handle, ranges); - } - public unsafe void BuildRanges(ImVector<ushort>* outRanges) - { - ImGuiNative.BuildRanges(Handle, outRanges); - } - public unsafe void BuildRanges(ref ImVector<ushort> outRanges) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - ImGuiNative.BuildRanges(Handle, (ImVector<ushort>*)poutRanges); - } - } - public unsafe void Clear() - { - ImGuiNative.Clear(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe bool GetBit(nuint n) - { - byte ret = ImGuiNative.GetBit(Handle, n); - return ret != 0; - } - public unsafe void SetBit(nuint n) - { - ImGuiNative.SetBit(Handle, n); - } -} -// DISCARDED: AddText diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPair.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPair.gen.cs deleted file mode 100644 index 414af9aaa..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPair.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontKerningPair -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPairPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPairPtr.gen.cs deleted file mode 100644 index 3869c931a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontKerningPairPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontKerningPairPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtr.gen.cs deleted file mode 100644 index b5d92f0d9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtr.gen.cs +++ /dev/null @@ -1,116 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontPtr -{ - public unsafe void AddGlyph(ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - ImGuiNative.AddGlyph(Handle, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - public unsafe void AddGlyph(ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - ImGuiNative.AddGlyph(Handle, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) - { - ImGuiNative.AddKerningPair(Handle, leftC, rightC, distanceAdjustment); - } - public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) - { - ImGuiNative.AddRemapChar(Handle, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - public unsafe void AddRemapChar(ushort dst, ushort src) - { - ImGuiNative.AddRemapChar(Handle, dst, src, (byte)(1)); - } - public unsafe void BuildLookupTable() - { - ImGuiNative.BuildLookupTable(Handle); - } - public unsafe void ClearOutputData() - { - ImGuiNative.ClearOutputData(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe ImFontGlyph* FindGlyph(ushort c) - { - ImFontGlyph* ret = ImGuiNative.FindGlyph(Handle, c); - return ret; - } - public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) - { - ImFontGlyph* ret = ImGuiNative.FindGlyphNoFallback(Handle, c); - return ret; - } - public unsafe float GetCharAdvance(ushort c) - { - float ret = ImGuiNative.GetCharAdvance(Handle, c); - return ret; - } - public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPair(Handle, leftC, rightC); - return ret; - } - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(Handle, leftC, rightCInfo); - return ret; - } - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(Handle, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - public unsafe void GrowIndex(int newSize) - { - ImGuiNative.GrowIndex(Handle, newSize); - } - public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) - { - byte ret = ImGuiNative.IsGlyphRangeUnused(Handle, cBegin, cLast); - return ret != 0; - } - public unsafe bool IsLoaded() - { - byte ret = ImGuiNative.IsLoaded(Handle); - return ret != 0; - } - public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - ImGuiNative.RenderChar(Handle, drawList, size, pos, col, c); - } - public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiNative.RenderChar(Handle, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - public unsafe void SetGlyphVisible(ushort c, bool visible) - { - ImGuiNative.SetGlyphVisible(Handle, c, visible ? (byte)1 : (byte)0); - } -} -// DISCARDED: CalcWordWrapPositionA -// DISCARDED: CalcWordWrapPositionAS -// DISCARDED: GetDebugName -// DISCARDED: GetDebugNameS -// DISCARDED: RenderText diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtrPtr.gen.cs deleted file mode 100644 index a66bfcc49..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImFontPtrPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontPtrPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorMod.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorMod.gen.cs deleted file mode 100644 index 3dd326fb5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorMod.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiColorMod -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorModPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorModPtr.gen.cs deleted file mode 100644 index 53f953e56..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiColorModPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiColorModPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewData.gen.cs deleted file mode 100644 index b4ef07eef..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiComboPreviewData -{ - public unsafe void Destroy() - { - fixed (ImGuiComboPreviewData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewDataPtr.gen.cs deleted file mode 100644 index 4fee6be09..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiComboPreviewDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiComboPreviewDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContext.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContext.gen.cs deleted file mode 100644 index 65b415f74..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContext.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiContext -{ - public unsafe void Destroy() - { - fixed (ImGuiContext* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHook.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHook.gen.cs deleted file mode 100644 index 0b908eab4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHook.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiContextHook -{ - public unsafe void Destroy() - { - fixed (ImGuiContextHook* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHookPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHookPtr.gen.cs deleted file mode 100644 index 763d40454..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextHookPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiContextHookPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextPtr.gen.cs deleted file mode 100644 index 1893638a8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiContextPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiContextPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfo.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfo.gen.cs deleted file mode 100644 index 36274a032..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfo.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDataTypeInfo -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfoPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfoPtr.gen.cs deleted file mode 100644 index 17c27f6cb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeInfoPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDataTypeInfoPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeTempStorage.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeTempStorage.gen.cs deleted file mode 100644 index 9e377b29e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDataTypeTempStorage.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDataTypeTempStorage -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContext.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContext.gen.cs deleted file mode 100644 index 33947970b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContext.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockContext -{ - public unsafe void Destroy() - { - fixed (ImGuiDockContext* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContextPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContextPtr.gen.cs deleted file mode 100644 index 1d89e3d2c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockContextPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockContextPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNode.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNode.gen.cs deleted file mode 100644 index 225cbc3d6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNode.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockNode -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodePtr.gen.cs deleted file mode 100644 index da73730b7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodePtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockNodePtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettings.gen.cs deleted file mode 100644 index e4963e63e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettings.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockNodeSettings -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettingsPtr.gen.cs deleted file mode 100644 index 5334d4e01..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockNodeSettingsPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockNodeSettingsPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequest.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequest.gen.cs deleted file mode 100644 index de6349e85..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequest.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockRequest -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequestPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequestPtr.gen.cs deleted file mode 100644 index 9c3fc5498..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiDockRequestPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiDockRequestPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupData.gen.cs deleted file mode 100644 index 41f9becc0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiGroupData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupDataPtr.gen.cs deleted file mode 100644 index ddd0ff2c0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiGroupDataPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiGroupDataPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIO.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIO.gen.cs deleted file mode 100644 index 41f0bc505..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIO.gen.cs +++ /dev/null @@ -1,108 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiIO -{ - public unsafe void AddFocusEvent(bool focused) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.AddFocusEvent(@this, focused ? (byte)1 : (byte)0); - } - } - public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.AddKeyAnalogEvent(@this, key, down ? (byte)1 : (byte)0, v); - } - } - public unsafe void AddKeyEvent(ImGuiKey key, bool down) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.AddKeyEvent(@this, key, down ? (byte)1 : (byte)0); - } - } - public unsafe void AddMouseButtonEvent(int button, bool down) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.AddMouseButtonEvent(@this, button, down ? (byte)1 : (byte)0); - } - } - public unsafe void AddMousePosEvent(float x, float y) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.AddMousePosEvent(@this, x, y); - } - } - public unsafe void AddMouseViewportEvent(uint id) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.AddMouseViewportEvent(@this, id); - } - } - public unsafe void AddMouseWheelEvent(float whX, float whY) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.AddMouseWheelEvent(@this, whX, whY); - } - } - public unsafe void ClearInputCharacters() - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.ClearInputCharacters(@this); - } - } - public unsafe void ClearInputKeys() - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.ClearInputKeys(@this); - } - } - public unsafe void Destroy() - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe void SetAppAcceptingEvents(bool acceptingEvents) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.SetAppAcceptingEvents(@this, acceptingEvents ? (byte)1 : (byte)0); - } - } - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.SetKeyEventNativeData(@this, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - } - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) - { - fixed (ImGuiIO* @this = &this) - { - ImGuiNative.SetKeyEventNativeData(@this, key, nativeKeycode, nativeScancode, (int)(-1)); - } - } -} -// DISCARDED: AddInputCharacter -// DISCARDED: AddInputCharactersUTF8 -// DISCARDED: AddInputCharacterUTF16 diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIOPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIOPtr.gen.cs deleted file mode 100644 index e6368ff45..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiIOPtr.gen.cs +++ /dev/null @@ -1,69 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiIOPtr -{ - public unsafe void AddFocusEvent(bool focused) - { - ImGuiNative.AddFocusEvent(Handle, focused ? (byte)1 : (byte)0); - } - public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) - { - ImGuiNative.AddKeyAnalogEvent(Handle, key, down ? (byte)1 : (byte)0, v); - } - public unsafe void AddKeyEvent(ImGuiKey key, bool down) - { - ImGuiNative.AddKeyEvent(Handle, key, down ? (byte)1 : (byte)0); - } - public unsafe void AddMouseButtonEvent(int button, bool down) - { - ImGuiNative.AddMouseButtonEvent(Handle, button, down ? (byte)1 : (byte)0); - } - public unsafe void AddMousePosEvent(float x, float y) - { - ImGuiNative.AddMousePosEvent(Handle, x, y); - } - public unsafe void AddMouseViewportEvent(uint id) - { - ImGuiNative.AddMouseViewportEvent(Handle, id); - } - public unsafe void AddMouseWheelEvent(float whX, float whY) - { - ImGuiNative.AddMouseWheelEvent(Handle, whX, whY); - } - public unsafe void ClearInputCharacters() - { - ImGuiNative.ClearInputCharacters(Handle); - } - public unsafe void ClearInputKeys() - { - ImGuiNative.ClearInputKeys(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe void SetAppAcceptingEvents(bool acceptingEvents) - { - ImGuiNative.SetAppAcceptingEvents(Handle, acceptingEvents ? (byte)1 : (byte)0); - } - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - ImGuiNative.SetKeyEventNativeData(Handle, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) - { - ImGuiNative.SetKeyEventNativeData(Handle, key, nativeKeycode, nativeScancode, (int)(-1)); - } -} -// DISCARDED: AddInputCharacter -// DISCARDED: AddInputCharactersUTF8 -// DISCARDED: AddInputCharacterUTF16 diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEvent.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEvent.gen.cs deleted file mode 100644 index f92fb892d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEvent.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEvent -{ - public unsafe void Destroy() - { - fixed (ImGuiInputEvent* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventAppFocused.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventAppFocused.gen.cs deleted file mode 100644 index 1a6617da9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventAppFocused.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventAppFocused -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventKey.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventKey.gen.cs deleted file mode 100644 index 40e0e5413..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventKey.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventKey -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseButton.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseButton.gen.cs deleted file mode 100644 index 6abccd74b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseButton.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventMouseButton -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMousePos.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMousePos.gen.cs deleted file mode 100644 index 063eb235d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMousePos.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventMousePos -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseViewport.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseViewport.gen.cs deleted file mode 100644 index a6be31c99..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseViewport.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventMouseViewport -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseWheel.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseWheel.gen.cs deleted file mode 100644 index 982cb5f11..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventMouseWheel.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventMouseWheel -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventPtr.gen.cs deleted file mode 100644 index c7db8ae43..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventText.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventText.gen.cs deleted file mode 100644 index a4c919876..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputEventText.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputEventText -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackData.gen.cs deleted file mode 100644 index 4400d5842..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackData.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputTextCallbackData -{ - public unsafe void ClearSelection() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGuiNative.ClearSelection(@this); - } - } - public unsafe void DeleteChars(int pos, int bytesCount) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGuiNative.DeleteChars(@this, pos, bytesCount); - } - } - public unsafe void Destroy() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe bool HasSelection() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte ret = ImGuiNative.HasSelection(@this); - return ret != 0; - } - } - public unsafe void SelectAll() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGuiNative.SelectAll(@this); - } - } -} -// DISCARDED: InsertChars diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackDataPtr.gen.cs deleted file mode 100644 index 3938d873a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextCallbackDataPtr.gen.cs +++ /dev/null @@ -1,36 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputTextCallbackDataPtr -{ - public unsafe void ClearSelection() - { - ImGuiNative.ClearSelection(Handle); - } - public unsafe void DeleteChars(int pos, int bytesCount) - { - ImGuiNative.DeleteChars(Handle, pos, bytesCount); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe bool HasSelection() - { - byte ret = ImGuiNative.HasSelection(Handle); - return ret != 0; - } - public unsafe void SelectAll() - { - ImGuiNative.SelectAll(Handle); - } -} -// DISCARDED: InsertChars diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextState.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextState.gen.cs deleted file mode 100644 index e6af29db3..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextState.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputTextState -{ - public unsafe void Destroy() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextStatePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextStatePtr.gen.cs deleted file mode 100644 index 9419473a6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiInputTextStatePtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputTextStatePtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyData.gen.cs deleted file mode 100644 index 0cb17bf73..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiKeyData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyDataPtr.gen.cs deleted file mode 100644 index 2ee1fdc9b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiKeyDataPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiKeyDataPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemData.gen.cs deleted file mode 100644 index a389aa3f5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiLastItemData -{ - public unsafe void Destroy() - { - fixed (ImGuiLastItemData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemDataPtr.gen.cs deleted file mode 100644 index 28e37f5d4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiLastItemDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiLastItemDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipper.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipper.gen.cs deleted file mode 100644 index 2d49b94b1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipper.gen.cs +++ /dev/null @@ -1,57 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiListClipper -{ - public unsafe void Begin(int itemsCount, float itemsHeight) - { - fixed (ImGuiListClipper* @this = &this) - { - ImGuiNative.Begin(@this, itemsCount, itemsHeight); - } - } - public unsafe void Begin(int itemsCount) - { - fixed (ImGuiListClipper* @this = &this) - { - ImGuiNative.Begin(@this, itemsCount, (float)(-1.0f)); - } - } - public unsafe void Destroy() - { - fixed (ImGuiListClipper* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe void End() - { - fixed (ImGuiListClipper* @this = &this) - { - ImGuiNative.End(@this); - } - } - public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) - { - fixed (ImGuiListClipper* @this = &this) - { - ImGuiNative.ForceDisplayRangeByIndices(@this, itemMin, itemMax); - } - } - public unsafe bool Step() - { - fixed (ImGuiListClipper* @this = &this) - { - byte ret = ImGuiNative.Step(@this); - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperData.gen.cs deleted file mode 100644 index ee92dbd61..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiListClipperData -{ - public unsafe void Destroy() - { - fixed (ImGuiListClipperData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperDataPtr.gen.cs deleted file mode 100644 index 4b249f2dc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiListClipperDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperPtr.gen.cs deleted file mode 100644 index 6d04b48be..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperPtr.gen.cs +++ /dev/null @@ -1,39 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiListClipperPtr -{ - public unsafe void Begin(int itemsCount, float itemsHeight) - { - ImGuiNative.Begin(Handle, itemsCount, itemsHeight); - } - public unsafe void Begin(int itemsCount) - { - ImGuiNative.Begin(Handle, itemsCount, (float)(-1.0f)); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe void End() - { - ImGuiNative.End(Handle); - } - public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) - { - ImGuiNative.ForceDisplayRangeByIndices(Handle, itemMin, itemMax); - } - public unsafe bool Step() - { - byte ret = ImGuiNative.Step(Handle); - return ret != 0; - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRange.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRange.gen.cs deleted file mode 100644 index 5d9e1c544..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRange.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiListClipperRange -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRangePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRangePtr.gen.cs deleted file mode 100644 index bab538f31..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiListClipperRangePtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiListClipperRangePtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumns.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumns.gen.cs deleted file mode 100644 index 51aa6013a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumns.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiMenuColumns -{ - public unsafe void Destroy() - { - fixed (ImGuiMenuColumns* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumnsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumnsPtr.gen.cs deleted file mode 100644 index 86005fe6e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMenuColumnsPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiMenuColumnsPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfig.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfig.gen.cs deleted file mode 100644 index b7c3a5a12..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfig.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiMetricsConfig -{ - public unsafe void Destroy() - { - fixed (ImGuiMetricsConfig* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfigPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfigPtr.gen.cs deleted file mode 100644 index 45cfe2e98..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiMetricsConfigPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiMetricsConfigPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemData.gen.cs deleted file mode 100644 index 0bff7c9d0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiNavItemData -{ - public unsafe void Destroy() - { - fixed (ImGuiNavItemData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemDataPtr.gen.cs deleted file mode 100644 index d46aee8fe..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNavItemDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiNavItemDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemData.gen.cs deleted file mode 100644 index cc6c32cf0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiNextItemData -{ - public unsafe void Destroy() - { - fixed (ImGuiNextItemData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemDataPtr.gen.cs deleted file mode 100644 index 3e6e3fada..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextItemDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiNextItemDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowData.gen.cs deleted file mode 100644 index 5a06766e0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiNextWindowData -{ - public unsafe void Destroy() - { - fixed (ImGuiNextWindowData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowDataPtr.gen.cs deleted file mode 100644 index 56cf1555b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiNextWindowDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiNextWindowDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnData.gen.cs deleted file mode 100644 index 02b073645..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiOldColumnData -{ - public unsafe void Destroy() - { - fixed (ImGuiOldColumnData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnDataPtr.gen.cs deleted file mode 100644 index ef4bb0daf..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiOldColumnDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumns.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumns.gen.cs deleted file mode 100644 index 3cba17d3e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumns.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiOldColumns -{ - public unsafe void Destroy() - { - fixed (ImGuiOldColumns* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnsPtr.gen.cs deleted file mode 100644 index f0d82030d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOldColumnsPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiOldColumnsPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFrame.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFrame.gen.cs deleted file mode 100644 index 4e84c59f0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFrame.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiOnceUponAFrame -{ - public unsafe void Destroy() - { - fixed (ImGuiOnceUponAFrame* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFramePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFramePtr.gen.cs deleted file mode 100644 index 4853558f6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiOnceUponAFramePtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiOnceUponAFramePtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayload.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayload.gen.cs deleted file mode 100644 index e9adbcba0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayload.gen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPayload -{ - public unsafe void Clear() - { - fixed (ImGuiPayload* @this = &this) - { - ImGuiNative.Clear(@this); - } - } - public unsafe void Destroy() - { - fixed (ImGuiPayload* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe bool IsDelivery() - { - fixed (ImGuiPayload* @this = &this) - { - byte ret = ImGuiNative.IsDelivery(@this); - return ret != 0; - } - } - public unsafe bool IsPreview() - { - fixed (ImGuiPayload* @this = &this) - { - byte ret = ImGuiNative.IsPreview(@this); - return ret != 0; - } - } -} -// DISCARDED: IsDataType diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayloadPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayloadPtr.gen.cs deleted file mode 100644 index a010ff422..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPayloadPtr.gen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPayloadPtr -{ - public unsafe void Clear() - { - ImGuiNative.Clear(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe bool IsDelivery() - { - byte ret = ImGuiNative.IsDelivery(Handle); - return ret != 0; - } - public unsafe bool IsPreview() - { - byte ret = ImGuiNative.IsPreview(Handle); - return ret != 0; - } -} -// DISCARDED: IsDataType diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIO.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIO.gen.cs deleted file mode 100644 index a33681fdb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIO.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPlatformIO -{ - public unsafe void Destroy() - { - fixed (ImGuiPlatformIO* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIOPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIOPtr.gen.cs deleted file mode 100644 index a9ca00425..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformIOPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPlatformIOPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeData.gen.cs deleted file mode 100644 index 8728a5184..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPlatformImeData -{ - public unsafe void Destroy() - { - fixed (ImGuiPlatformImeData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeDataPtr.gen.cs deleted file mode 100644 index faf99c987..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformImeDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPlatformImeDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitor.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitor.gen.cs deleted file mode 100644 index 553d7f7d9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitor.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPlatformMonitor -{ - public unsafe void Destroy() - { - fixed (ImGuiPlatformMonitor* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitorPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitorPtr.gen.cs deleted file mode 100644 index 1cd0a5cae..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPlatformMonitorPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPlatformMonitorPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupData.gen.cs deleted file mode 100644 index b745cc947..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPopupData -{ - public unsafe void Destroy() - { - fixed (ImGuiPopupData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupDataPtr.gen.cs deleted file mode 100644 index de8330596..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPopupDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPopupDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndex.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndex.gen.cs deleted file mode 100644 index 2fc79140e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndex.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPtrOrIndex -{ - public unsafe void Destroy() - { - fixed (ImGuiPtrOrIndex* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndexPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndexPtr.gen.cs deleted file mode 100644 index 26c50dd84..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiPtrOrIndexPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPtrOrIndexPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandler.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandler.gen.cs deleted file mode 100644 index 90a498d31..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandler.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiSettingsHandler -{ - public unsafe void Destroy() - { - fixed (ImGuiSettingsHandler* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandlerPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandlerPtr.gen.cs deleted file mode 100644 index bfeea08f0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSettingsHandlerPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiSettingsHandlerPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItem.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItem.gen.cs deleted file mode 100644 index ec6c4569e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItem.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiShrinkWidthItem -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItemPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItemPtr.gen.cs deleted file mode 100644 index 167a472a2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiShrinkWidthItemPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiShrinkWidthItemPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSizeCallbackData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSizeCallbackData.gen.cs deleted file mode 100644 index 8b1bedb1d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiSizeCallbackData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiSizeCallbackData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfo.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfo.gen.cs deleted file mode 100644 index 61ee6e36e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfo.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStackLevelInfo -{ - public unsafe void Destroy() - { - fixed (ImGuiStackLevelInfo* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfoPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfoPtr.gen.cs deleted file mode 100644 index 9c3238033..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackLevelInfoPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStackLevelInfoPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizes.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizes.gen.cs deleted file mode 100644 index ccb69adda..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizes.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStackSizes -{ - public unsafe void Destroy() - { - fixed (ImGuiStackSizes* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizesPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizesPtr.gen.cs deleted file mode 100644 index 7e1454016..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackSizesPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStackSizesPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackTool.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackTool.gen.cs deleted file mode 100644 index 7f0c4d468..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackTool.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStackTool -{ - public unsafe void Destroy() - { - fixed (ImGuiStackTool* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackToolPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackToolPtr.gen.cs deleted file mode 100644 index 6fc491bc1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStackToolPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStackToolPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStorage.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStorage.gen.cs deleted file mode 100644 index 592d7d388..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStorage.gen.cs +++ /dev/null @@ -1,123 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStorage -{ - public unsafe void BuildSortByKey() - { - fixed (ImGuiStorage* @this = &this) - { - ImGuiNative.BuildSortByKey(@this); - } - } - public unsafe void Clear() - { - fixed (ImGuiStorage* @this = &this) - { - ImGuiNative.Clear(@this); - } - } - public unsafe bool GetBool(uint key, bool defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - byte ret = ImGuiNative.GetBool(@this, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - } - public unsafe bool GetBool(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - byte ret = ImGuiNative.GetBool(@this, key, (byte)(0)); - return ret != 0; - } - } - public unsafe float GetFloat(uint key, float defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - float ret = ImGuiNative.GetFloat(@this, key, defaultVal); - return ret; - } - } - public unsafe float GetFloat(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - float ret = ImGuiNative.GetFloat(@this, key, (float)(0.0f)); - return ret; - } - } - public unsafe int GetInt(uint key, int defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - int ret = ImGuiNative.GetInt(@this, key, defaultVal); - return ret; - } - } - public unsafe int GetInt(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - int ret = ImGuiNative.GetInt(@this, key, (int)(0)); - return ret; - } - } - public unsafe void* GetVoidPtr(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - void* ret = ImGuiNative.GetVoidPtr(@this, key); - return ret; - } - } - public unsafe void SetAllInt(int val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGuiNative.SetAllInt(@this, val); - } - } - public unsafe void SetBool(uint key, bool val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGuiNative.SetBool(@this, key, val ? (byte)1 : (byte)0); - } - } - public unsafe void SetFloat(uint key, float val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGuiNative.SetFloat(@this, key, val); - } - } - public unsafe void SetInt(uint key, int val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGuiNative.SetInt(@this, key, val); - } - } - public unsafe void SetVoidPtr(uint key, void* val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGuiNative.SetVoidPtr(@this, key, val); - } - } -} -// DISCARDED: GetBoolRef -// DISCARDED: GetFloatRef -// DISCARDED: GetIntRef -// DISCARDED: GetVoidPtrRef diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePair.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePair.gen.cs deleted file mode 100644 index 4bd1280cf..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePair.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStoragePair -{ - public unsafe void Destroy() - { - fixed (ImGuiStoragePair* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePairPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePairPtr.gen.cs deleted file mode 100644 index 92dbebcbd..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePairPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStoragePairPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePtr.gen.cs deleted file mode 100644 index 5ba04c913..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStoragePtr.gen.cs +++ /dev/null @@ -1,81 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStoragePtr -{ - public unsafe void BuildSortByKey() - { - ImGuiNative.BuildSortByKey(Handle); - } - public unsafe void Clear() - { - ImGuiNative.Clear(Handle); - } - public unsafe bool GetBool(uint key, bool defaultVal) - { - byte ret = ImGuiNative.GetBool(Handle, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - public unsafe bool GetBool(uint key) - { - byte ret = ImGuiNative.GetBool(Handle, key, (byte)(0)); - return ret != 0; - } - public unsafe float GetFloat(uint key, float defaultVal) - { - float ret = ImGuiNative.GetFloat(Handle, key, defaultVal); - return ret; - } - public unsafe float GetFloat(uint key) - { - float ret = ImGuiNative.GetFloat(Handle, key, (float)(0.0f)); - return ret; - } - public unsafe int GetInt(uint key, int defaultVal) - { - int ret = ImGuiNative.GetInt(Handle, key, defaultVal); - return ret; - } - public unsafe int GetInt(uint key) - { - int ret = ImGuiNative.GetInt(Handle, key, (int)(0)); - return ret; - } - public unsafe void* GetVoidPtr(uint key) - { - void* ret = ImGuiNative.GetVoidPtr(Handle, key); - return ret; - } - public unsafe void SetAllInt(int val) - { - ImGuiNative.SetAllInt(Handle, val); - } - public unsafe void SetBool(uint key, bool val) - { - ImGuiNative.SetBool(Handle, key, val ? (byte)1 : (byte)0); - } - public unsafe void SetFloat(uint key, float val) - { - ImGuiNative.SetFloat(Handle, key, val); - } - public unsafe void SetInt(uint key, int val) - { - ImGuiNative.SetInt(Handle, key, val); - } - public unsafe void SetVoidPtr(uint key, void* val) - { - ImGuiNative.SetVoidPtr(Handle, key, val); - } -} -// DISCARDED: GetBoolRef -// DISCARDED: GetFloatRef -// DISCARDED: GetIntRef -// DISCARDED: GetVoidPtrRef diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyle.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyle.gen.cs deleted file mode 100644 index ce7dbb0ca..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyle.gen.cs +++ /dev/null @@ -1,28 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStyle -{ - public unsafe void Destroy() - { - fixed (ImGuiStyle* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe void ScaleAllSizes(float scaleFactor) - { - fixed (ImGuiStyle* @this = &this) - { - ImGuiNative.ScaleAllSizes(@this, scaleFactor); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleMod.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleMod.gen.cs deleted file mode 100644 index 0376004f0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleMod.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStyleMod -{ - public unsafe void Destroy() - { - fixed (ImGuiStyleMod* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleModPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleModPtr.gen.cs deleted file mode 100644 index f76899c44..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStyleModPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStyleModPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStylePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStylePtr.gen.cs deleted file mode 100644 index d66d02583..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiStylePtr.gen.cs +++ /dev/null @@ -1,22 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStylePtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe void ScaleAllSizes(float scaleFactor) - { - ImGuiNative.ScaleAllSizes(Handle, scaleFactor); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBar.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBar.gen.cs deleted file mode 100644 index 673bc61e0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBar.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTabBar -{ - public unsafe void Destroy() - { - fixed (ImGuiTabBar* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBarPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBarPtr.gen.cs deleted file mode 100644 index fbcd4beee..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabBarPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTabBarPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItem.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItem.gen.cs deleted file mode 100644 index 17496ca38..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItem.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTabItem -{ - public unsafe void Destroy() - { - fixed (ImGuiTabItem* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItemPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItemPtr.gen.cs deleted file mode 100644 index e70f10d88..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTabItemPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTabItemPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTable.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTable.gen.cs deleted file mode 100644 index 151b6db34..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTable.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTable -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellData.gen.cs deleted file mode 100644 index 8b9462e0c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableCellData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellDataPtr.gen.cs deleted file mode 100644 index ff519a6e7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableCellDataPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableCellDataPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumn.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumn.gen.cs deleted file mode 100644 index 97ab4bdb8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumn.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableColumn -{ - public unsafe void Destroy() - { - fixed (ImGuiTableColumn* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnPtr.gen.cs deleted file mode 100644 index e82da10a4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableColumnPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettings.gen.cs deleted file mode 100644 index 1f4e8c606..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettings.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableColumnSettings -{ - public unsafe void Destroy() - { - fixed (ImGuiTableColumnSettings* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettingsPtr.gen.cs deleted file mode 100644 index 03a961781..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSettingsPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableColumnSettingsPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecs.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecs.gen.cs deleted file mode 100644 index bbe570f8d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecs.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableColumnSortSpecs -{ - public unsafe void Destroy() - { - fixed (ImGuiTableColumnSortSpecs* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecsPtr.gen.cs deleted file mode 100644 index 9c0773d8c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnSortSpecsPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableColumnSortSpecsPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnsSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnsSettings.gen.cs deleted file mode 100644 index d4c36b46d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableColumnsSettings.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableColumnsSettings -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceData.gen.cs deleted file mode 100644 index f66b1912c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableInstanceData -{ - public unsafe void Destroy() - { - fixed (ImGuiTableInstanceData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceDataPtr.gen.cs deleted file mode 100644 index 6d9420e8f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableInstanceDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableInstanceDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTablePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTablePtr.gen.cs deleted file mode 100644 index c8ce06302..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTablePtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTablePtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettings.gen.cs deleted file mode 100644 index bfc10e5c7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettings.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableSettings -{ - public unsafe void Destroy() - { - fixed (ImGuiTableSettings* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettingsPtr.gen.cs deleted file mode 100644 index b409b21fb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSettingsPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableSettingsPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecs.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecs.gen.cs deleted file mode 100644 index a26afca38..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecs.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableSortSpecs -{ - public unsafe void Destroy() - { - fixed (ImGuiTableSortSpecs* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecsPtr.gen.cs deleted file mode 100644 index da0273486..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableSortSpecsPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableSortSpecsPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempData.gen.cs deleted file mode 100644 index 207d45a38..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempData.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableTempData -{ - public unsafe void Destroy() - { - fixed (ImGuiTableTempData* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempDataPtr.gen.cs deleted file mode 100644 index 0a43ff19a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTableTempDataPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTableTempDataPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBuffer.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBuffer.gen.cs deleted file mode 100644 index 1a634a6fe..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBuffer.gen.cs +++ /dev/null @@ -1,60 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextBuffer -{ - public unsafe void clear() - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGuiNative.clear(@this); - } - } - public unsafe void Destroy() - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe bool empty() - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte ret = ImGuiNative.empty(@this); - return ret != 0; - } - } - public unsafe void reserve(int capacity) - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGuiNative.reserve(@this, capacity); - } - } - public unsafe int size() - { - fixed (ImGuiTextBuffer* @this = &this) - { - int ret = ImGuiNative.size(@this); - return ret; - } - } -} -// DISCARDED: append -// DISCARDED: appendf -// DISCARDED: appendfv -// DISCARDED: begin -// DISCARDED: beginS -// DISCARDED: c_str -// DISCARDED: c_strS -// DISCARDED: end -// DISCARDED: endS diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBufferPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBufferPtr.gen.cs deleted file mode 100644 index 4dab0fbcb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextBufferPtr.gen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextBufferPtr -{ - public unsafe void clear() - { - ImGuiNative.clear(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe bool empty() - { - byte ret = ImGuiNative.empty(Handle); - return ret != 0; - } - public unsafe void reserve(int capacity) - { - ImGuiNative.reserve(Handle, capacity); - } - public unsafe int size() - { - int ret = ImGuiNative.size(Handle); - return ret; - } -} -// DISCARDED: append -// DISCARDED: appendf -// DISCARDED: appendfv -// DISCARDED: begin -// DISCARDED: beginS -// DISCARDED: c_str -// DISCARDED: c_strS -// DISCARDED: end -// DISCARDED: endS diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilter.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilter.gen.cs deleted file mode 100644 index 8f0876285..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilter.gen.cs +++ /dev/null @@ -1,45 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextFilter -{ - public unsafe void Build() - { - fixed (ImGuiTextFilter* @this = &this) - { - ImGuiNative.Build(@this); - } - } - public unsafe void Clear() - { - fixed (ImGuiTextFilter* @this = &this) - { - ImGuiNative.Clear(@this); - } - } - public unsafe void Destroy() - { - fixed (ImGuiTextFilter* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe bool IsActive() - { - fixed (ImGuiTextFilter* @this = &this) - { - byte ret = ImGuiNative.IsActive(@this); - return ret != 0; - } - } -} -// DISCARDED: Draw -// DISCARDED: PassFilter diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilterPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilterPtr.gen.cs deleted file mode 100644 index b2d54c5f3..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextFilterPtr.gen.cs +++ /dev/null @@ -1,33 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextFilterPtr -{ - public unsafe void Build() - { - ImGuiNative.Build(Handle); - } - public unsafe void Clear() - { - ImGuiNative.Clear(Handle); - } - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe bool IsActive() - { - byte ret = ImGuiNative.IsActive(Handle); - return ret != 0; - } -} -// DISCARDED: Draw -// DISCARDED: PassFilter diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRange.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRange.gen.cs deleted file mode 100644 index 334e360b8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRange.gen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextRange -{ - public unsafe void Destroy() - { - fixed (ImGuiTextRange* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } - public unsafe bool empty() - { - fixed (ImGuiTextRange* @this = &this) - { - byte ret = ImGuiNative.empty(@this); - return ret != 0; - } - } - public unsafe void split(byte separator, ImVector<ImGuiTextRange>* output) - { - fixed (ImGuiTextRange* @this = &this) - { - ImGuiNative.split(@this, separator, output); - } - } - public unsafe void split(byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImGuiTextRange* @this = &this) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - ImGuiNative.split(@this, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRangePtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRangePtr.gen.cs deleted file mode 100644 index 0c5aa5703..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiTextRangePtr.gen.cs +++ /dev/null @@ -1,34 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextRangePtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } - public unsafe bool empty() - { - byte ret = ImGuiNative.empty(Handle); - return ret != 0; - } - public unsafe void split(byte separator, ImVector<ImGuiTextRange>* output) - { - ImGuiNative.split(Handle, separator, output); - } - public unsafe void split(byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - ImGuiNative.split(Handle, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewport.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewport.gen.cs deleted file mode 100644 index 485f94b88..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewport.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiViewport -{ - public unsafe void Destroy() - { - fixed (ImGuiViewport* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportP.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportP.gen.cs deleted file mode 100644 index 436ba290b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportP.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiViewportP -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtr.gen.cs deleted file mode 100644 index 4f9f7f755..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiViewportPPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtrPtr.gen.cs deleted file mode 100644 index 5b69bb805..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPPtrPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiViewportPPtrPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtr.gen.cs deleted file mode 100644 index bd7c55bc7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiViewportPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtrPtr.gen.cs deleted file mode 100644 index 1cffdfe55..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiViewportPtrPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiViewportPtrPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindow.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindow.gen.cs deleted file mode 100644 index b42187061..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindow.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindow -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClass.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClass.gen.cs deleted file mode 100644 index a001c98bf..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClass.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowClass -{ - public unsafe void Destroy() - { - fixed (ImGuiWindowClass* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClassPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClassPtr.gen.cs deleted file mode 100644 index c3867b206..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowClassPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowClassPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowDockStyle.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowDockStyle.gen.cs deleted file mode 100644 index 499a41947..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowDockStyle.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowDockStyle -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtr.gen.cs deleted file mode 100644 index 11a8f7b8d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtrPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtrPtr.gen.cs deleted file mode 100644 index 3e9395633..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowPtrPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowPtrPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettings.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettings.gen.cs deleted file mode 100644 index eb77df86f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettings.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowSettings -{ - public unsafe void Destroy() - { - fixed (ImGuiWindowSettings* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettingsPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettingsPtr.gen.cs deleted file mode 100644 index 9b04070a2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowSettingsPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowSettingsPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackData.gen.cs deleted file mode 100644 index c123470d4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowStackData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackDataPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackDataPtr.gen.cs deleted file mode 100644 index 15948461d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowStackDataPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowStackDataPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowTempData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowTempData.gen.cs deleted file mode 100644 index 5f56b954a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImGuiWindowTempData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindowTempData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTabBar.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTabBar.gen.cs deleted file mode 100644 index 6a8ed50b0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTabBar.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImPoolImGuiTabBar -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTable.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTable.gen.cs deleted file mode 100644 index 9058a29c8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImPoolImGuiTable.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImPoolImGuiTable -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRect.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRect.gen.cs deleted file mode 100644 index 9caacdf26..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRect.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImRect -{ - public unsafe void Destroy() - { - fixed (ImRect* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRectPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRectPtr.gen.cs deleted file mode 100644 index 32e743aa6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImRectPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImRectPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableCellData.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableCellData.gen.cs deleted file mode 100644 index 80cdff589..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableCellData.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImSpanImGuiTableCellData -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumn.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumn.gen.cs deleted file mode 100644 index c37d391a9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumn.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImSpanImGuiTableColumn -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumnIdx.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumnIdx.gen.cs deleted file mode 100644 index 6ebd9bdb6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImSpanImGuiTableColumnIdx.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImSpanImGuiTableColumnIdx -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1.gen.cs deleted file mode 100644 index 0f3f8d98d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImVec1 -{ - public unsafe void Destroy() - { - fixed (ImVec1* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1Ptr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1Ptr.gen.cs deleted file mode 100644 index f095da0be..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec1Ptr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImVec1Ptr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2Ih.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2Ih.gen.cs deleted file mode 100644 index 9aed95e7d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2Ih.gen.cs +++ /dev/null @@ -1,21 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImVec2Ih -{ - public unsafe void Destroy() - { - fixed (ImVec2Ih* @this = &this) - { - ImGuiNative.Destroy(@this); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2IhPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2IhPtr.gen.cs deleted file mode 100644 index a0432cbd8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/ImVec2IhPtr.gen.cs +++ /dev/null @@ -1,18 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImVec2IhPtr -{ - public unsafe void Destroy() - { - ImGuiNative.Destroy(Handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/STBTexteditState.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/STBTexteditState.gen.cs deleted file mode 100644 index 1cf81eaba..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/STBTexteditState.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct STBTexteditState -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbTexteditRow.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbTexteditRow.gen.cs deleted file mode 100644 index 574e7498d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbTexteditRow.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct StbTexteditRow -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoRecord.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoRecord.gen.cs deleted file mode 100644 index c1a39765e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoRecord.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct StbUndoRecord -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoState.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoState.gen.cs deleted file mode 100644 index 91c0fa2ef..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbUndoState.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct StbUndoState -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContext.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContext.gen.cs deleted file mode 100644 index 7d067c47f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContext.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct StbttPackContext -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContextPtr.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContextPtr.gen.cs deleted file mode 100644 index 8b4c5cab7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Generated/Structs/StbttPackContextPtr.gen.cs +++ /dev/null @@ -1,14 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct StbttPackContextPtr -{ -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs deleted file mode 100644 index 7c50bc4bc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs +++ /dev/null @@ -1,128 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -/* Functions.000.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.001.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.002.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.003.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.004.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.005.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.006.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.007.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.008.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.009.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.010.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.011.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.012.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.013.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.014.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.015.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} -/* Functions.016.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiP.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiP.gen.cs deleted file mode 100644 index bccfeb412..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiP.gen.cs +++ /dev/null @@ -1,6596 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGuiP -{ - public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*<void*, nuint, nuint, delegate*<void*, void*, int>, int> compareFunc) - { - ImGuiPNative.ImQsort(baseValue, count, sizeOfElement, compareFunc); - } - public static uint ImAlphaBlendColors(uint colA, uint colB) - { - uint ret = ImGuiPNative.ImAlphaBlendColors(colA, colB); - return ret; - } - public static bool ImIsPowerOfTwo(int v) - { - byte ret = ImGuiPNative.ImIsPowerOfTwo(v); - return ret != 0; - } - public static bool ImIsPowerOfTwo(ulong v) - { - byte ret = ImGuiPNative.ImIsPowerOfTwo(v); - return ret != 0; - } - public static int ImUpperPowerOfTwo(int v) - { - int ret = ImGuiPNative.ImUpperPowerOfTwo(v); - return ret; - } - public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin) - { - ushort* ret = ImGuiPNative.ImStrbolW(bufMidLine, bufBegin); - return ret; - } - public static bool ImCharIsBlankA(byte c) - { - byte ret = ImGuiPNative.ImCharIsBlankA(c); - return ret != 0; - } - public static bool ImCharIsBlankW(uint c) - { - byte ret = ImGuiPNative.ImCharIsBlankW(c); - return ret != 0; - } - public static int ImTextCountUtf8BytesFromStr(ushort* inText, ushort* inTextEnd) - { - int ret = ImGuiPNative.ImTextCountUtf8BytesFromStr(inText, inTextEnd); - return ret; - } - public static bool ImFileClose(ImFileHandle file) - { - byte ret = ImGuiPNative.ImFileClose(file); - return ret != 0; - } - public static ulong ImFileGetSize(ImFileHandle file) - { - ulong ret = ImGuiPNative.ImFileGetSize(file); - return ret; - } - public static ulong ImFileRead(void* data, ulong size, ulong count, ImFileHandle file) - { - ulong ret = ImGuiPNative.ImFileRead(data, size, count, file); - return ret; - } - public static ulong ImFileWrite(void* data, ulong size, ulong count, ImFileHandle file) - { - ulong ret = ImGuiPNative.ImFileWrite(data, size, count, file); - return ret; - } - public static float ImPow(float x, float y) - { - float ret = ImGuiPNative.ImPow(x, y); - return ret; - } - public static double ImPow(double x, double y) - { - double ret = ImGuiPNative.ImPow(x, y); - return ret; - } - public static float ImLog(float x) - { - float ret = ImGuiPNative.ImLog(x); - return ret; - } - public static double ImLog(double x) - { - double ret = ImGuiPNative.ImLog(x); - return ret; - } - public static int ImAbs(int x) - { - int ret = ImGuiPNative.ImAbs(x); - return ret; - } - public static float ImAbs(float x) - { - float ret = ImGuiPNative.ImAbs(x); - return ret; - } - public static double ImAbs(double x) - { - double ret = ImGuiPNative.ImAbs(x); - return ret; - } - public static float ImSign(float x) - { - float ret = ImGuiPNative.ImSign(x); - return ret; - } - public static double ImSign(double x) - { - double ret = ImGuiPNative.ImSign(x); - return ret; - } - public static float ImRsqrt(float x) - { - float ret = ImGuiPNative.ImRsqrt(x); - return ret; - } - public static double ImRsqrt(double x) - { - double ret = ImGuiPNative.ImRsqrt(x); - return ret; - } - public static Vector2 ImMin(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImGuiPNative.ImMin(&ret, lhs, rhs); - return ret; - } - public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImGuiPNative.ImMin(pOut, lhs, rhs); - } - public static void ImMin(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImMin((Vector2*)ppOut, lhs, rhs); - } - } - public static Vector2 ImMax(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImGuiPNative.ImMax(&ret, lhs, rhs); - return ret; - } - public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImGuiPNative.ImMax(pOut, lhs, rhs); - } - public static void ImMax(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImMax((Vector2*)ppOut, lhs, rhs); - } - } - public static Vector2 ImClamp(Vector2 v, Vector2 mn, Vector2 mx) - { - Vector2 ret; - ImGuiPNative.ImClamp(&ret, v, mn, mx); - return ret; - } - public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - ImGuiPNative.ImClamp(pOut, v, mn, mx); - } - public static void ImClamp(ref Vector2 pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImClamp((Vector2*)ppOut, v, mn, mx); - } - } - public static Vector2 ImLerp(Vector2 a, Vector2 b, float t) - { - Vector2 ret; - ImGuiPNative.ImLerp(&ret, a, b, t); - return ret; - } - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) - { - ImGuiPNative.ImLerp(pOut, a, b, t); - } - public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImLerp((Vector2*)ppOut, a, b, t); - } - } - public static Vector2 ImLerp(Vector2 a, Vector2 b, Vector2 t) - { - Vector2 ret; - ImGuiPNative.ImLerp(&ret, a, b, t); - return ret; - } - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) - { - ImGuiPNative.ImLerp(pOut, a, b, t); - } - public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 t) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImLerp((Vector2*)ppOut, a, b, t); - } - } - public static Vector4 ImLerp(Vector4 a, Vector4 b, float t) - { - Vector4 ret; - ImGuiPNative.ImLerp(&ret, a, b, t); - return ret; - } - public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) - { - ImGuiPNative.ImLerp(pOut, a, b, t); - } - public static void ImLerp(ref Vector4 pOut, Vector4 a, Vector4 b, float t) - { - fixed (Vector4* ppOut = &pOut) - { - ImGuiPNative.ImLerp((Vector4*)ppOut, a, b, t); - } - } - public static float ImSaturate(float f) - { - float ret = ImGuiPNative.ImSaturate(f); - return ret; - } - public static float ImLengthSqr(Vector2 lhs) - { - float ret = ImGuiPNative.ImLengthSqr(lhs); - return ret; - } - public static float ImLengthSqr(Vector4 lhs) - { - float ret = ImGuiPNative.ImLengthSqr(lhs); - return ret; - } - public static float ImInvLength(Vector2 lhs, float failValue) - { - float ret = ImGuiPNative.ImInvLength(lhs, failValue); - return ret; - } - public static float ImFloor(float f) - { - float ret = ImGuiPNative.ImFloor(f); - return ret; - } - public static Vector2 ImFloor(Vector2 v) - { - Vector2 ret; - ImGuiPNative.ImFloor(&ret, v); - return ret; - } - public static void ImFloor(Vector2* pOut, Vector2 v) - { - ImGuiPNative.ImFloor(pOut, v); - } - public static void ImFloor(ref Vector2 pOut, Vector2 v) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImFloor((Vector2*)ppOut, v); - } - } - public static float ImFloorSigned(float f) - { - float ret = ImGuiPNative.ImFloorSigned(f); - return ret; - } - public static Vector2 ImFloorSigned(Vector2 v) - { - Vector2 ret; - ImGuiPNative.ImFloorSigned(&ret, v); - return ret; - } - public static void ImFloorSigned(Vector2* pOut, Vector2 v) - { - ImGuiPNative.ImFloorSigned(pOut, v); - } - public static void ImFloorSigned(ref Vector2 pOut, Vector2 v) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImFloorSigned((Vector2*)ppOut, v); - } - } - public static int ImModPositive(int a, int b) - { - int ret = ImGuiPNative.ImModPositive(a, b); - return ret; - } - public static float ImDot(Vector2 a, Vector2 b) - { - float ret = ImGuiPNative.ImDot(a, b); - return ret; - } - public static Vector2 ImRotate(Vector2 v, float cosA, float sinA) - { - Vector2 ret; - ImGuiPNative.ImRotate(&ret, v, cosA, sinA); - return ret; - } - public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) - { - ImGuiPNative.ImRotate(pOut, v, cosA, sinA); - } - public static void ImRotate(ref Vector2 pOut, Vector2 v, float cosA, float sinA) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImRotate((Vector2*)ppOut, v, cosA, sinA); - } - } - public static float ImLinearSweep(float current, float target, float speed) - { - float ret = ImGuiPNative.ImLinearSweep(current, target, speed); - return ret; - } - public static Vector2 ImMul(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImGuiPNative.ImMul(&ret, lhs, rhs); - return ret; - } - public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImGuiPNative.ImMul(pOut, lhs, rhs); - } - public static void ImMul(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImMul((Vector2*)ppOut, lhs, rhs); - } - } - public static bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) - { - byte ret = ImGuiPNative.ImIsFloatAboveGuaranteedIntegerPrecision(f); - return ret != 0; - } - public static Vector2 ImBezierCubicCalc(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - Vector2 ret; - ImGuiPNative.ImBezierCubicCalc(&ret, p1, p2, p3, p4, t); - return ret; - } - public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - ImGuiPNative.ImBezierCubicCalc(pOut, p1, p2, p3, p4, t); - } - public static void ImBezierCubicCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImBezierCubicCalc((Vector2*)ppOut, p1, p2, p3, p4, t); - } - } - public static Vector2 ImBezierCubicClosestPoint(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - Vector2 ret; - ImGuiPNative.ImBezierCubicClosestPoint(&ret, p1, p2, p3, p4, p, numSegments); - return ret; - } - public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - ImGuiPNative.ImBezierCubicClosestPoint(pOut, p1, p2, p3, p4, p, numSegments); - } - public static void ImBezierCubicClosestPoint(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImBezierCubicClosestPoint((Vector2*)ppOut, p1, p2, p3, p4, p, numSegments); - } - } - public static Vector2 ImBezierCubicClosestPointCasteljau(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - Vector2 ret; - ImGuiPNative.ImBezierCubicClosestPointCasteljau(&ret, p1, p2, p3, p4, p, tessTol); - return ret; - } - public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - ImGuiPNative.ImBezierCubicClosestPointCasteljau(pOut, p1, p2, p3, p4, p, tessTol); - } - public static void ImBezierCubicClosestPointCasteljau(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImBezierCubicClosestPointCasteljau((Vector2*)ppOut, p1, p2, p3, p4, p, tessTol); - } - } - public static Vector2 ImBezierQuadraticCalc(Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - Vector2 ret; - ImGuiPNative.ImBezierQuadraticCalc(&ret, p1, p2, p3, t); - return ret; - } - public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - ImGuiPNative.ImBezierQuadraticCalc(pOut, p1, p2, p3, t); - } - public static void ImBezierQuadraticCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImBezierQuadraticCalc((Vector2*)ppOut, p1, p2, p3, t); - } - } - public static Vector2 ImLineClosestPoint(Vector2 a, Vector2 b, Vector2 p) - { - Vector2 ret; - ImGuiPNative.ImLineClosestPoint(&ret, a, b, p); - return ret; - } - public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) - { - ImGuiPNative.ImLineClosestPoint(pOut, a, b, p); - } - public static void ImLineClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 p) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImLineClosestPoint((Vector2*)ppOut, a, b, p); - } - } - public static bool ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - byte ret = ImGuiPNative.ImTriangleContainsPoint(a, b, c, p); - return ret != 0; - } - public static Vector2 ImTriangleClosestPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - Vector2 ret; - ImGuiPNative.ImTriangleClosestPoint(&ret, a, b, c, p); - return ret; - } - public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - ImGuiPNative.ImTriangleClosestPoint(pOut, a, b, c, p); - } - public static void ImTriangleClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ImTriangleClosestPoint((Vector2*)ppOut, a, b, c, p); - } - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, outV, outW); - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) - { - fixed (float* poutU = &outU) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, outV, outW); - } - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) - { - fixed (float* poutV = &outV) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, (float*)poutV, outW); - } - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, float* outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, (float*)poutV, outW); - } - } - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) - { - fixed (float* poutW = &outW) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, outV, (float*)poutW); - } - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, ref float outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutW = &outW) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, outV, (float*)poutW); - } - } - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, ref float outW) - { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, outU, (float*)poutV, (float*)poutW); - } - } - } - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, ref float outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImGuiPNative.ImTriangleBarycentricCoords(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); - } - } - } - } - public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) - { - float ret = ImGuiPNative.ImTriangleArea(a, b, c); - return ret; - } - public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) - { - ImGuiDir ret = ImGuiPNative.ImGetDirQuadrantFromDelta(dx, dy); - return ret; - } - public static ImVec1Ptr ImVec1() - { - ImVec1Ptr ret = ImGuiPNative.ImVec1(); - return ret; - } - public static ImVec1Ptr ImVec1(float x) - { - ImVec1Ptr ret = ImGuiPNative.ImVec1(x); - return ret; - } - public static ImVec2IhPtr ImVec2ih() - { - ImVec2IhPtr ret = ImGuiPNative.ImVec2ih(); - return ret; - } - public static ImVec2IhPtr ImVec2ih(short x, short y) - { - ImVec2IhPtr ret = ImGuiPNative.ImVec2ih(x, y); - return ret; - } - public static ImVec2IhPtr ImVec2ih(Vector2 rhs) - { - ImVec2IhPtr ret = ImGuiPNative.ImVec2ih(rhs); - return ret; - } - public static ImRectPtr ImRect() - { - ImRectPtr ret = ImGuiPNative.ImRect(); - return ret; - } - public static ImRectPtr ImRect(Vector2 min, Vector2 max) - { - ImRectPtr ret = ImGuiPNative.ImRect(min, max); - return ret; - } - public static ImRectPtr ImRect(Vector4 v) - { - ImRectPtr ret = ImGuiPNative.ImRect(v); - return ret; - } - public static ImRectPtr ImRect(float x1, float y1, float x2, float y2) - { - ImRectPtr ret = ImGuiPNative.ImRect(x1, y1, x2, y2); - return ret; - } - public static Vector2 GetCenter(this ImRectPtr self) - { - Vector2 ret; - ImGuiPNative.GetCenter(&ret, self); - return ret; - } - public static void GetCenter(Vector2* pOut, ImRectPtr self) - { - ImGuiPNative.GetCenter(pOut, self); - } - public static void GetCenter(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetCenter((Vector2*)ppOut, self); - } - } - public static Vector2 GetCenter(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - ImGuiPNative.GetCenter(&ret, (ImRect*)pself); - return ret; - } - } - public static void GetCenter(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetCenter(pOut, (ImRect*)pself); - } - } - public static void GetCenter(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetCenter((Vector2*)ppOut, (ImRect*)pself); - } - } - } - public static Vector2 GetSize(this ImRectPtr self) - { - Vector2 ret; - ImGuiPNative.GetSize(&ret, self); - return ret; - } - public static void GetSize(Vector2* pOut, ImRectPtr self) - { - ImGuiPNative.GetSize(pOut, self); - } - public static void GetSize(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetSize((Vector2*)ppOut, self); - } - } - public static Vector2 GetSize(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - ImGuiPNative.GetSize(&ret, (ImRect*)pself); - return ret; - } - } - public static void GetSize(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetSize(pOut, (ImRect*)pself); - } - } - public static void GetSize(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetSize((Vector2*)ppOut, (ImRect*)pself); - } - } - } - public static float GetWidth(this ImRectPtr self) - { - float ret = ImGuiPNative.GetWidth(self); - return ret; - } - public static float GetWidth(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = ImGuiPNative.GetWidth((ImRect*)pself); - return ret; - } - } - public static float GetHeight(this ImRectPtr self) - { - float ret = ImGuiPNative.GetHeight(self); - return ret; - } - public static float GetHeight(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = ImGuiPNative.GetHeight((ImRect*)pself); - return ret; - } - } - public static float GetArea(this ImRectPtr self) - { - float ret = ImGuiPNative.GetArea(self); - return ret; - } - public static float GetArea(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = ImGuiPNative.GetArea((ImRect*)pself); - return ret; - } - } - public static Vector2 GetTL(this ImRectPtr self) - { - Vector2 ret; - ImGuiPNative.GetTL(&ret, self); - return ret; - } - public static void GetTL(Vector2* pOut, ImRectPtr self) - { - ImGuiPNative.GetTL(pOut, self); - } - public static void GetTL(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetTL((Vector2*)ppOut, self); - } - } - public static Vector2 GetTL(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - ImGuiPNative.GetTL(&ret, (ImRect*)pself); - return ret; - } - } - public static void GetTL(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetTL(pOut, (ImRect*)pself); - } - } - public static void GetTL(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetTL((Vector2*)ppOut, (ImRect*)pself); - } - } - } - public static Vector2 GetTR(this ImRectPtr self) - { - Vector2 ret; - ImGuiPNative.GetTR(&ret, self); - return ret; - } - public static void GetTR(Vector2* pOut, ImRectPtr self) - { - ImGuiPNative.GetTR(pOut, self); - } - public static void GetTR(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetTR((Vector2*)ppOut, self); - } - } - public static Vector2 GetTR(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - ImGuiPNative.GetTR(&ret, (ImRect*)pself); - return ret; - } - } - public static void GetTR(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetTR(pOut, (ImRect*)pself); - } - } - public static void GetTR(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetTR((Vector2*)ppOut, (ImRect*)pself); - } - } - } - public static Vector2 GetBL(this ImRectPtr self) - { - Vector2 ret; - ImGuiPNative.GetBL(&ret, self); - return ret; - } - public static void GetBL(Vector2* pOut, ImRectPtr self) - { - ImGuiPNative.GetBL(pOut, self); - } - public static void GetBL(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetBL((Vector2*)ppOut, self); - } - } - public static Vector2 GetBL(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - ImGuiPNative.GetBL(&ret, (ImRect*)pself); - return ret; - } - } - public static void GetBL(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetBL(pOut, (ImRect*)pself); - } - } - public static void GetBL(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetBL((Vector2*)ppOut, (ImRect*)pself); - } - } - } - public static Vector2 GetBR(this ImRectPtr self) - { - Vector2 ret; - ImGuiPNative.GetBR(&ret, self); - return ret; - } - public static void GetBR(Vector2* pOut, ImRectPtr self) - { - ImGuiPNative.GetBR(pOut, self); - } - public static void GetBR(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetBR((Vector2*)ppOut, self); - } - } - public static Vector2 GetBR(this scoped in ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - ImGuiPNative.GetBR(&ret, (ImRect*)pself); - return ret; - } - } - public static void GetBR(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetBR(pOut, (ImRect*)pself); - } - } - public static void GetBR(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.GetBR((Vector2*)ppOut, (ImRect*)pself); - } - } - } - public static bool Contains(this ImRectPtr self, Vector2 p) - { - byte ret = ImGuiPNative.Contains(self, p); - return ret != 0; - } - public static bool Contains(this ref ImRect self, Vector2 p) - { - fixed (ImRect* pself = &self) - { - byte ret = ImGuiPNative.Contains((ImRect*)pself, p); - return ret != 0; - } - } - public static bool Contains(this ImRectPtr self, ImRect r) - { - byte ret = ImGuiPNative.Contains(self, r); - return ret != 0; - } - public static bool Contains(this ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - byte ret = ImGuiPNative.Contains((ImRect*)pself, r); - return ret != 0; - } - } - public static bool Overlaps(this ImRectPtr self, ImRect r) - { - byte ret = ImGuiPNative.Overlaps(self, r); - return ret != 0; - } - public static bool Overlaps(this ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - byte ret = ImGuiPNative.Overlaps((ImRect*)pself, r); - return ret != 0; - } - } - public static void Add(this ImRectPtr self, Vector2 p) - { - ImGuiPNative.Add(self, p); - } - public static void Add(this ref ImRect self, Vector2 p) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.Add((ImRect*)pself, p); - } - } - public static void Add(this ImRectPtr self, ImRect r) - { - ImGuiPNative.Add(self, r); - } - public static void Add(this ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.Add((ImRect*)pself, r); - } - } - public static void Expand(this ImRectPtr self, float amount) - { - ImGuiPNative.Expand(self, amount); - } - public static void Expand(this ref ImRect self, float amount) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.Expand((ImRect*)pself, amount); - } - } - public static void Expand(this ImRectPtr self, Vector2 amount) - { - ImGuiPNative.Expand(self, amount); - } - public static void Expand(this ref ImRect self, Vector2 amount) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.Expand((ImRect*)pself, amount); - } - } - public static void Translate(this ImRectPtr self, Vector2 d) - { - ImGuiPNative.Translate(self, d); - } - public static void Translate(this ref ImRect self, Vector2 d) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.Translate((ImRect*)pself, d); - } - } - public static void TranslateX(this ImRectPtr self, float dx) - { - ImGuiPNative.TranslateX(self, dx); - } - public static void TranslateX(this ref ImRect self, float dx) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.TranslateX((ImRect*)pself, dx); - } - } - public static void TranslateY(this ImRectPtr self, float dy) - { - ImGuiPNative.TranslateY(self, dy); - } - public static void TranslateY(this ref ImRect self, float dy) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.TranslateY((ImRect*)pself, dy); - } - } - public static void ClipWith(this ImRectPtr self, ImRect r) - { - ImGuiPNative.ClipWith(self, r); - } - public static void ClipWith(this ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.ClipWith((ImRect*)pself, r); - } - } - public static void ClipWithFull(this ImRectPtr self, ImRect r) - { - ImGuiPNative.ClipWithFull(self, r); - } - public static void ClipWithFull(this ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.ClipWithFull((ImRect*)pself, r); - } - } - public static void Floor(this ImRectPtr self) - { - ImGuiPNative.Floor(self); - } - public static void Floor(this ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.Floor((ImRect*)pself); - } - } - public static bool IsInverted(this ImRectPtr self) - { - byte ret = ImGuiPNative.IsInverted(self); - return ret != 0; - } - public static bool IsInverted(this ref ImRect self) - { - fixed (ImRect* pself = &self) - { - byte ret = ImGuiPNative.IsInverted((ImRect*)pself); - return ret != 0; - } - } - public static Vector4 ToVec4(this ImRectPtr self) - { - Vector4 ret; - ImGuiPNative.ToVec4(&ret, self); - return ret; - } - public static void ToVec4(Vector4* pOut, ImRectPtr self) - { - ImGuiPNative.ToVec4(pOut, self); - } - public static void ToVec4(ref Vector4 pOut, ImRectPtr self) - { - fixed (Vector4* ppOut = &pOut) - { - ImGuiPNative.ToVec4((Vector4*)ppOut, self); - } - } - public static Vector4 ToVec4(this ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector4 ret; - ImGuiPNative.ToVec4(&ret, (ImRect*)pself); - return ret; - } - } - public static void ToVec4(Vector4* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.ToVec4(pOut, (ImRect*)pself); - } - } - public static void ToVec4(ref Vector4 pOut, ref ImRect self) - { - fixed (Vector4* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ImGuiPNative.ToVec4((Vector4*)ppOut, (ImRect*)pself); - } - } - } - public static bool ImBitArrayTestBit(uint* arr, int n) - { - byte ret = ImGuiPNative.ImBitArrayTestBit(arr, n); - return ret != 0; - } - public static void ImBitArrayClearBit(uint* arr, int n) - { - ImGuiPNative.ImBitArrayClearBit(arr, n); - } - public static void ImBitArraySetBit(uint* arr, int n) - { - ImGuiPNative.ImBitArraySetBit(arr, n); - } - public static void ImBitArraySetBitRange(uint* arr, int n, int n2) - { - ImGuiPNative.ImBitArraySetBitRange(arr, n, n2); - } - public static void Create(this ImBitVectorPtr self, int sz) - { - ImGuiPNative.Create(self, sz); - } - public static void Create(this ref ImBitVector self, int sz) - { - fixed (ImBitVector* pself = &self) - { - ImGuiPNative.Create((ImBitVector*)pself, sz); - } - } - public static void Clear(this ImBitVectorPtr self) - { - ImGuiPNative.Clear(self); - } - public static void Clear(this ref ImBitVector self) - { - fixed (ImBitVector* pself = &self) - { - ImGuiPNative.Clear((ImBitVector*)pself); - } - } - public static void Clear(this ImDrawDataBuilderPtr self) - { - ImGuiPNative.Clear(self); - } - public static void Clear(this ref ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - ImGuiPNative.Clear((ImDrawDataBuilder*)pself); - } - } - public static void Clear(this ImGuiNavItemDataPtr self) - { - ImGuiPNative.Clear(self); - } - public static void Clear(this ref ImGuiNavItemData self) - { - fixed (ImGuiNavItemData* pself = &self) - { - ImGuiPNative.Clear((ImGuiNavItemData*)pself); - } - } - public static bool TestBit(this ImBitVectorPtr self, int n) - { - byte ret = ImGuiPNative.TestBit(self, n); - return ret != 0; - } - public static bool TestBit(this ref ImBitVector self, int n) - { - fixed (ImBitVector* pself = &self) - { - byte ret = ImGuiPNative.TestBit((ImBitVector*)pself, n); - return ret != 0; - } - } - public static void SetBit(this ImBitVectorPtr self, int n) - { - ImGuiPNative.SetBit(self, n); - } - public static void SetBit(this ref ImBitVector self, int n) - { - fixed (ImBitVector* pself = &self) - { - ImGuiPNative.SetBit((ImBitVector*)pself, n); - } - } - public static void ClearBit(this ImBitVectorPtr self, int n) - { - ImGuiPNative.ClearBit(self, n); - } - public static void ClearBit(this ref ImBitVector self, int n) - { - fixed (ImBitVector* pself = &self) - { - ImGuiPNative.ClearBit((ImBitVector*)pself, n); - } - } - public static ImDrawListSharedDataPtr ImDrawListSharedData() - { - ImDrawListSharedDataPtr ret = ImGuiPNative.ImDrawListSharedData(); - return ret; - } - public static void SetCircleTessellationMaxError(this ImDrawListSharedDataPtr self, float maxError) - { - ImGuiPNative.SetCircleTessellationMaxError(self, maxError); - } - public static void SetCircleTessellationMaxError(this ref ImDrawListSharedData self, float maxError) - { - fixed (ImDrawListSharedData* pself = &self) - { - ImGuiPNative.SetCircleTessellationMaxError((ImDrawListSharedData*)pself, maxError); - } - } - public static void ClearFreeMemory(this ImDrawDataBuilderPtr self) - { - ImGuiPNative.ClearFreeMemory(self); - } - public static void ClearFreeMemory(this ref ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - ImGuiPNative.ClearFreeMemory((ImDrawDataBuilder*)pself); - } - } - public static void ClearFreeMemory(this ImGuiInputTextStatePtr self) - { - ImGuiPNative.ClearFreeMemory(self); - } - public static void ClearFreeMemory(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiPNative.ClearFreeMemory((ImGuiInputTextState*)pself); - } - } - public static int GetDrawListCount(this ImDrawDataBuilderPtr self) - { - int ret = ImGuiPNative.GetDrawListCount(self); - return ret; - } - public static int GetDrawListCount(this scoped in ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - int ret = ImGuiPNative.GetDrawListCount((ImDrawDataBuilder*)pself); - return ret; - } - } - public static void FlattenIntoSingleLayer(this ImDrawDataBuilderPtr self) - { - ImGuiPNative.FlattenIntoSingleLayer(self); - } - public static void FlattenIntoSingleLayer(this ref ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - ImGuiPNative.FlattenIntoSingleLayer((ImDrawDataBuilder*)pself); - } - } - public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, int v) - { - ImGuiStyleModPtr ret = ImGuiPNative.ImGuiStyleMod(idx, v); - return ret; - } - public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, float v) - { - ImGuiStyleModPtr ret = ImGuiPNative.ImGuiStyleMod(idx, v); - return ret; - } - public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, Vector2 v) - { - ImGuiStyleModPtr ret = ImGuiPNative.ImGuiStyleMod(idx, v); - return ret; - } - public static ImGuiComboPreviewDataPtr ImGuiComboPreviewData() - { - ImGuiComboPreviewDataPtr ret = ImGuiPNative.ImGuiComboPreviewData(); - return ret; - } - public static ImGuiMenuColumnsPtr ImGuiMenuColumns() - { - ImGuiMenuColumnsPtr ret = ImGuiPNative.ImGuiMenuColumns(); - return ret; - } - public static void Update(this ImGuiMenuColumnsPtr self, float spacing, bool windowReappearing) - { - ImGuiPNative.Update(self, spacing, windowReappearing ? (byte)1 : (byte)0); - } - public static void Update(this ref ImGuiMenuColumns self, float spacing, bool windowReappearing) - { - fixed (ImGuiMenuColumns* pself = &self) - { - ImGuiPNative.Update((ImGuiMenuColumns*)pself, spacing, windowReappearing ? (byte)1 : (byte)0); - } - } - public static float DeclColumns(this ImGuiMenuColumnsPtr self, float wIcon, float wLabel, float wShortcut, float wMark) - { - float ret = ImGuiPNative.DeclColumns(self, wIcon, wLabel, wShortcut, wMark); - return ret; - } - public static float DeclColumns(this ref ImGuiMenuColumns self, float wIcon, float wLabel, float wShortcut, float wMark) - { - fixed (ImGuiMenuColumns* pself = &self) - { - float ret = ImGuiPNative.DeclColumns((ImGuiMenuColumns*)pself, wIcon, wLabel, wShortcut, wMark); - return ret; - } - } - public static void CalcNextTotalWidth(this ImGuiMenuColumnsPtr self, bool updateOffsets) - { - ImGuiPNative.CalcNextTotalWidth(self, updateOffsets ? (byte)1 : (byte)0); - } - public static void CalcNextTotalWidth(this ref ImGuiMenuColumns self, bool updateOffsets) - { - fixed (ImGuiMenuColumns* pself = &self) - { - ImGuiPNative.CalcNextTotalWidth((ImGuiMenuColumns*)pself, updateOffsets ? (byte)1 : (byte)0); - } - } - public static ImGuiInputTextStatePtr ImGuiInputTextState() - { - ImGuiInputTextStatePtr ret = ImGuiPNative.ImGuiInputTextState(); - return ret; - } - public static void ClearText(this ImGuiInputTextStatePtr self) - { - ImGuiPNative.ClearText(self); - } - public static void ClearText(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiPNative.ClearText((ImGuiInputTextState*)pself); - } - } - public static int GetUndoAvailCount(this ImGuiInputTextStatePtr self) - { - int ret = ImGuiPNative.GetUndoAvailCount(self); - return ret; - } - public static int GetUndoAvailCount(this scoped in ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = ImGuiPNative.GetUndoAvailCount((ImGuiInputTextState*)pself); - return ret; - } - } - public static int GetRedoAvailCount(this ImGuiInputTextStatePtr self) - { - int ret = ImGuiPNative.GetRedoAvailCount(self); - return ret; - } - public static int GetRedoAvailCount(this scoped in ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = ImGuiPNative.GetRedoAvailCount((ImGuiInputTextState*)pself); - return ret; - } - } - public static void OnKeyPressed(this ImGuiInputTextStatePtr self, int key) - { - ImGuiPNative.OnKeyPressed(self, key); - } - public static void OnKeyPressed(this ref ImGuiInputTextState self, int key) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiPNative.OnKeyPressed((ImGuiInputTextState*)pself, key); - } - } - public static void CursorAnimReset(this ImGuiInputTextStatePtr self) - { - ImGuiPNative.CursorAnimReset(self); - } - public static void CursorAnimReset(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiPNative.CursorAnimReset((ImGuiInputTextState*)pself); - } - } - public static void CursorClamp(this ImGuiInputTextStatePtr self) - { - ImGuiPNative.CursorClamp(self); - } - public static void CursorClamp(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiPNative.CursorClamp((ImGuiInputTextState*)pself); - } - } - public static bool HasSelection(this ImGuiInputTextStatePtr self) - { - byte ret = ImGuiPNative.HasSelection(self); - return ret != 0; - } - public static bool HasSelection(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - byte ret = ImGuiPNative.HasSelection((ImGuiInputTextState*)pself); - return ret != 0; - } - } - public static void ClearSelection(this ImGuiInputTextStatePtr self) - { - ImGuiPNative.ClearSelection(self); - } - public static void ClearSelection(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiPNative.ClearSelection((ImGuiInputTextState*)pself); - } - } - public static int GetCursorPos(this ImGuiInputTextStatePtr self) - { - int ret = ImGuiPNative.GetCursorPos(self); - return ret; - } - public static int GetCursorPos(this scoped in ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = ImGuiPNative.GetCursorPos((ImGuiInputTextState*)pself); - return ret; - } - } - public static int GetSelectionStart(this ImGuiInputTextStatePtr self) - { - int ret = ImGuiPNative.GetSelectionStart(self); - return ret; - } - public static int GetSelectionStart(this scoped in ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = ImGuiPNative.GetSelectionStart((ImGuiInputTextState*)pself); - return ret; - } - } - public static int GetSelectionEnd(this ImGuiInputTextStatePtr self) - { - int ret = ImGuiPNative.GetSelectionEnd(self); - return ret; - } - public static int GetSelectionEnd(this scoped in ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = ImGuiPNative.GetSelectionEnd((ImGuiInputTextState*)pself); - return ret; - } - } - public static void SelectAll(this ImGuiInputTextStatePtr self) - { - ImGuiPNative.SelectAll(self); - } - public static void SelectAll(this ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ImGuiPNative.SelectAll((ImGuiInputTextState*)pself); - } - } - public static ImGuiPopupDataPtr ImGuiPopupData() - { - ImGuiPopupDataPtr ret = ImGuiPNative.ImGuiPopupData(); - return ret; - } - public static ImGuiNextWindowDataPtr ImGuiNextWindowData() - { - ImGuiNextWindowDataPtr ret = ImGuiPNative.ImGuiNextWindowData(); - return ret; - } - public static void ClearFlags(this ImGuiNextWindowDataPtr self) - { - ImGuiPNative.ClearFlags(self); - } - public static void ClearFlags(this ref ImGuiNextWindowData self) - { - fixed (ImGuiNextWindowData* pself = &self) - { - ImGuiPNative.ClearFlags((ImGuiNextWindowData*)pself); - } - } - public static void ClearFlags(this ImGuiNextItemDataPtr self) - { - ImGuiPNative.ClearFlags(self); - } - public static void ClearFlags(this ref ImGuiNextItemData self) - { - fixed (ImGuiNextItemData* pself = &self) - { - ImGuiPNative.ClearFlags((ImGuiNextItemData*)pself); - } - } - public static ImGuiNextItemDataPtr ImGuiNextItemData() - { - ImGuiNextItemDataPtr ret = ImGuiPNative.ImGuiNextItemData(); - return ret; - } - public static ImGuiLastItemDataPtr ImGuiLastItemData() - { - ImGuiLastItemDataPtr ret = ImGuiPNative.ImGuiLastItemData(); - return ret; - } - public static ImGuiStackSizesPtr ImGuiStackSizes() - { - ImGuiStackSizesPtr ret = ImGuiPNative.ImGuiStackSizes(); - return ret; - } - public static void SetToCurrentState(this ImGuiStackSizesPtr self) - { - ImGuiPNative.SetToCurrentState(self); - } - public static void SetToCurrentState(this ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - ImGuiPNative.SetToCurrentState((ImGuiStackSizes*)pself); - } - } - public static void CompareWithCurrentState(this ImGuiStackSizesPtr self) - { - ImGuiPNative.CompareWithCurrentState(self); - } - public static void CompareWithCurrentState(this ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - ImGuiPNative.CompareWithCurrentState((ImGuiStackSizes*)pself); - } - } - public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(void* ptr) - { - ImGuiPtrOrIndexPtr ret = ImGuiPNative.ImGuiPtrOrIndex(ptr); - return ret; - } - public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(int index) - { - ImGuiPtrOrIndexPtr ret = ImGuiPNative.ImGuiPtrOrIndex(index); - return ret; - } - public static ImGuiInputEventPtr ImGuiInputEvent() - { - ImGuiInputEventPtr ret = ImGuiPNative.ImGuiInputEvent(); - return ret; - } - public static ImGuiListClipperRange FromIndices(int min, int max) - { - ImGuiListClipperRange ret = ImGuiPNative.FromIndices(min, max); - return ret; - } - public static ImGuiListClipperRange FromPositions(float y1, float y2, int offMin, int offMax) - { - ImGuiListClipperRange ret = ImGuiPNative.FromPositions(y1, y2, offMin, offMax); - return ret; - } - public static ImGuiListClipperDataPtr ImGuiListClipperData() - { - ImGuiListClipperDataPtr ret = ImGuiPNative.ImGuiListClipperData(); - return ret; - } - public static void Reset(this ImGuiListClipperDataPtr self, ImGuiListClipperPtr clipper) - { - ImGuiPNative.Reset(self, clipper); - } - public static void Reset(this ref ImGuiListClipperData self, ImGuiListClipperPtr clipper) - { - fixed (ImGuiListClipperData* pself = &self) - { - ImGuiPNative.Reset((ImGuiListClipperData*)pself, clipper); - } - } - public static void Reset(this ImGuiListClipperDataPtr self, ref ImGuiListClipper clipper) - { - fixed (ImGuiListClipper* pclipper = &clipper) - { - ImGuiPNative.Reset(self, (ImGuiListClipper*)pclipper); - } - } - public static void Reset(this ref ImGuiListClipperData self, ref ImGuiListClipper clipper) - { - fixed (ImGuiListClipperData* pself = &self) - { - fixed (ImGuiListClipper* pclipper = &clipper) - { - ImGuiPNative.Reset((ImGuiListClipperData*)pself, (ImGuiListClipper*)pclipper); - } - } - } - public static ImGuiNavItemDataPtr ImGuiNavItemData() - { - ImGuiNavItemDataPtr ret = ImGuiPNative.ImGuiNavItemData(); - return ret; - } - public static ImGuiOldColumnDataPtr ImGuiOldColumnData() - { - ImGuiOldColumnDataPtr ret = ImGuiPNative.ImGuiOldColumnData(); - return ret; - } - public static ImGuiOldColumnsPtr ImGuiOldColumns() - { - ImGuiOldColumnsPtr ret = ImGuiPNative.ImGuiOldColumns(); - return ret; - } - public static ImGuiDockNodePtr ImGuiDockNode(uint id) - { - ImGuiDockNodePtr ret = ImGuiPNative.ImGuiDockNode(id); - return ret; - } - public static void Destroy(this ImGuiDockNodePtr self) - { - ImGuiPNative.Destroy(self); - } - public static void Destroy(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - ImGuiPNative.Destroy((ImGuiDockNode*)pself); - } - } - public static void Destroy(this ImGuiViewportPPtr self) - { - ImGuiPNative.Destroy(self); - } - public static void Destroy(this ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.Destroy((ImGuiViewportP*)pself); - } - } - public static void Destroy(this ImGuiWindowPtr self) - { - ImGuiPNative.Destroy(self); - } - public static void Destroy(this ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImGuiPNative.Destroy((ImGuiWindow*)pself); - } - } - public static void Destroy(this ImGuiTablePtr self) - { - ImGuiPNative.Destroy(self); - } - public static void Destroy(this ref ImGuiTable self) - { - fixed (ImGuiTable* pself = &self) - { - ImGuiPNative.Destroy((ImGuiTable*)pself); - } - } - public static bool IsRootNode(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsRootNode(self); - return ret != 0; - } - public static bool IsRootNode(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsRootNode((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsDockSpace(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsDockSpace(self); - return ret != 0; - } - public static bool IsDockSpace(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsDockSpace((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsFloatingNode(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsFloatingNode(self); - return ret != 0; - } - public static bool IsFloatingNode(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsFloatingNode((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsCentralNode(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsCentralNode(self); - return ret != 0; - } - public static bool IsCentralNode(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsCentralNode((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsHiddenTabBar(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsHiddenTabBar(self); - return ret != 0; - } - public static bool IsHiddenTabBar(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsHiddenTabBar((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsNoTabBar(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsNoTabBar(self); - return ret != 0; - } - public static bool IsNoTabBar(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsNoTabBar((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsSplitNode(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsSplitNode(self); - return ret != 0; - } - public static bool IsSplitNode(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsSplitNode((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsLeafNode(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsLeafNode(self); - return ret != 0; - } - public static bool IsLeafNode(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsLeafNode((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static bool IsEmpty(this ImGuiDockNodePtr self) - { - byte ret = ImGuiPNative.IsEmpty(self); - return ret != 0; - } - public static bool IsEmpty(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = ImGuiPNative.IsEmpty((ImGuiDockNode*)pself); - return ret != 0; - } - } - public static ImRect Rect(this ImGuiDockNodePtr self) - { - ImRect ret; - ImGuiPNative.Rect(&ret, self); - return ret; - } - public static void Rect(ImRectPtr pOut, ImGuiDockNodePtr self) - { - ImGuiPNative.Rect(pOut, self); - } - public static void Rect(ref ImRect pOut, ImGuiDockNodePtr self) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.Rect((ImRect*)ppOut, self); - } - } - public static ImRect Rect(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - ImRect ret; - ImGuiPNative.Rect(&ret, (ImGuiDockNode*)pself); - return ret; - } - } - public static void Rect(ImRectPtr pOut, ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - ImGuiPNative.Rect(pOut, (ImGuiDockNode*)pself); - } - } - public static void Rect(ref ImRect pOut, ref ImGuiDockNode self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiDockNode* pself = &self) - { - ImGuiPNative.Rect((ImRect*)ppOut, (ImGuiDockNode*)pself); - } - } - } - public static ImRect Rect(this ImGuiWindowPtr self) - { - ImRect ret; - ImGuiPNative.Rect(&ret, self); - return ret; - } - public static void Rect(ImRectPtr pOut, ImGuiWindowPtr self) - { - ImGuiPNative.Rect(pOut, self); - } - public static void Rect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.Rect((ImRect*)ppOut, self); - } - } - public static ImRect Rect(this ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - ImGuiPNative.Rect(&ret, (ImGuiWindow*)pself); - return ret; - } - } - public static void Rect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImGuiPNative.Rect(pOut, (ImGuiWindow*)pself); - } - } - public static void Rect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - ImGuiPNative.Rect((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - public static void SetLocalFlags(this ImGuiDockNodePtr self, ImGuiDockNodeFlags flags) - { - ImGuiPNative.SetLocalFlags(self, flags); - } - public static void SetLocalFlags(this ref ImGuiDockNode self, ImGuiDockNodeFlags flags) - { - fixed (ImGuiDockNode* pself = &self) - { - ImGuiPNative.SetLocalFlags((ImGuiDockNode*)pself, flags); - } - } - public static void UpdateMergedFlags(this ImGuiDockNodePtr self) - { - ImGuiPNative.UpdateMergedFlags(self); - } - public static void UpdateMergedFlags(this ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - ImGuiPNative.UpdateMergedFlags((ImGuiDockNode*)pself); - } - } - public static ImGuiDockContextPtr ImGuiDockContext() - { - ImGuiDockContextPtr ret = ImGuiPNative.ImGuiDockContext(); - return ret; - } - public static ImGuiViewportPPtr ImGuiViewportP() - { - ImGuiViewportPPtr ret = ImGuiPNative.ImGuiViewportP(); - return ret; - } - public static void ClearRequestFlags(this ImGuiViewportPPtr self) - { - ImGuiPNative.ClearRequestFlags(self); - } - public static void ClearRequestFlags(this ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.ClearRequestFlags((ImGuiViewportP*)pself); - } - } - public static Vector2 CalcWorkRectPos(this ImGuiViewportPPtr self, Vector2 offMin) - { - Vector2 ret; - ImGuiPNative.CalcWorkRectPos(&ret, self, offMin); - return ret; - } - public static void CalcWorkRectPos(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin) - { - ImGuiPNative.CalcWorkRectPos(pOut, self, offMin); - } - public static void CalcWorkRectPos(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.CalcWorkRectPos((Vector2*)ppOut, self, offMin); - } - } - public static Vector2 CalcWorkRectPos(this ref ImGuiViewportP self, Vector2 offMin) - { - fixed (ImGuiViewportP* pself = &self) - { - Vector2 ret; - ImGuiPNative.CalcWorkRectPos(&ret, (ImGuiViewportP*)pself, offMin); - return ret; - } - } - public static void CalcWorkRectPos(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.CalcWorkRectPos(pOut, (ImGuiViewportP*)pself, offMin); - } - } - public static void CalcWorkRectPos(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.CalcWorkRectPos((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin); - } - } - } - public static Vector2 CalcWorkRectSize(this ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - Vector2 ret; - ImGuiPNative.CalcWorkRectSize(&ret, self, offMin, offMax); - return ret; - } - public static void CalcWorkRectSize(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - ImGuiPNative.CalcWorkRectSize(pOut, self, offMin, offMax); - } - public static void CalcWorkRectSize(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.CalcWorkRectSize((Vector2*)ppOut, self, offMin, offMax); - } - } - public static Vector2 CalcWorkRectSize(this ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (ImGuiViewportP* pself = &self) - { - Vector2 ret; - ImGuiPNative.CalcWorkRectSize(&ret, (ImGuiViewportP*)pself, offMin, offMax); - return ret; - } - } - public static void CalcWorkRectSize(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.CalcWorkRectSize(pOut, (ImGuiViewportP*)pself, offMin, offMax); - } - } - public static void CalcWorkRectSize(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.CalcWorkRectSize((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin, offMax); - } - } - } - public static void UpdateWorkRect(this ImGuiViewportPPtr self) - { - ImGuiPNative.UpdateWorkRect(self); - } - public static void UpdateWorkRect(this ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.UpdateWorkRect((ImGuiViewportP*)pself); - } - } - public static ImRect GetMainRect(this ImGuiViewportPPtr self) - { - ImRect ret; - ImGuiPNative.GetMainRect(&ret, self); - return ret; - } - public static void GetMainRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - ImGuiPNative.GetMainRect(pOut, self); - } - public static void GetMainRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.GetMainRect((ImRect*)ppOut, self); - } - } - public static ImRect GetMainRect(this scoped in ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - ImGuiPNative.GetMainRect(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - public static void GetMainRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.GetMainRect(pOut, (ImGuiViewportP*)pself); - } - } - public static void GetMainRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.GetMainRect((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - public static ImRect GetWorkRect(this ImGuiViewportPPtr self) - { - ImRect ret; - ImGuiPNative.GetWorkRect(&ret, self); - return ret; - } - public static void GetWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - ImGuiPNative.GetWorkRect(pOut, self); - } - public static void GetWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.GetWorkRect((ImRect*)ppOut, self); - } - } - public static ImRect GetWorkRect(this scoped in ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - ImGuiPNative.GetWorkRect(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - public static void GetWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.GetWorkRect(pOut, (ImGuiViewportP*)pself); - } - } - public static void GetWorkRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.GetWorkRect((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - public static ImRect GetBuildWorkRect(this ImGuiViewportPPtr self) - { - ImRect ret; - ImGuiPNative.GetBuildWorkRect(&ret, self); - return ret; - } - public static void GetBuildWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - ImGuiPNative.GetBuildWorkRect(pOut, self); - } - public static void GetBuildWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.GetBuildWorkRect((ImRect*)ppOut, self); - } - } - public static ImRect GetBuildWorkRect(this scoped in ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - ImGuiPNative.GetBuildWorkRect(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - public static void GetBuildWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.GetBuildWorkRect(pOut, (ImGuiViewportP*)pself); - } - } - public static void GetBuildWorkRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - ImGuiPNative.GetBuildWorkRect((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - public static ImGuiWindowSettingsPtr ImGuiWindowSettings() - { - ImGuiWindowSettingsPtr ret = ImGuiPNative.ImGuiWindowSettings(); - return ret; - } - public static ImGuiSettingsHandlerPtr ImGuiSettingsHandler() - { - ImGuiSettingsHandlerPtr ret = ImGuiPNative.ImGuiSettingsHandler(); - return ret; - } - public static ImGuiMetricsConfigPtr ImGuiMetricsConfig() - { - ImGuiMetricsConfigPtr ret = ImGuiPNative.ImGuiMetricsConfig(); - return ret; - } - public static ImGuiStackLevelInfoPtr ImGuiStackLevelInfo() - { - ImGuiStackLevelInfoPtr ret = ImGuiPNative.ImGuiStackLevelInfo(); - return ret; - } - public static ImGuiStackToolPtr ImGuiStackTool() - { - ImGuiStackToolPtr ret = ImGuiPNative.ImGuiStackTool(); - return ret; - } - public static ImGuiContextHookPtr ImGuiContextHook() - { - ImGuiContextHookPtr ret = ImGuiPNative.ImGuiContextHook(); - return ret; - } - public static ImGuiContextPtr ImGuiContext(ImFontAtlasPtr sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiPNative.ImGuiContext(sharedFontAtlas); - return ret; - } - public static ImGuiContextPtr ImGuiContext(ref ImFontAtlas sharedFontAtlas) - { - fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiPNative.ImGuiContext((ImFontAtlas*)psharedFontAtlas); - return ret; - } - } - public static uint GetIDFromRectangle(this ImGuiWindowPtr self, ImRect rAbs) - { - uint ret = ImGuiPNative.GetIDFromRectangle(self, rAbs); - return ret; - } - public static uint GetIDFromRectangle(this scoped in ImGuiWindow self, ImRect rAbs) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = ImGuiPNative.GetIDFromRectangle((ImGuiWindow*)pself, rAbs); - return ret; - } - } - public static float CalcFontSize(this ImGuiWindowPtr self) - { - float ret = ImGuiPNative.CalcFontSize(self); - return ret; - } - public static float CalcFontSize(this ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = ImGuiPNative.CalcFontSize((ImGuiWindow*)pself); - return ret; - } - } - public static float TitleBarHeight(this ImGuiWindowPtr self) - { - float ret = ImGuiPNative.TitleBarHeight(self); - return ret; - } - public static float TitleBarHeight(this ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = ImGuiPNative.TitleBarHeight((ImGuiWindow*)pself); - return ret; - } - } - public static ImRect TitleBarRect(this ImGuiWindowPtr self) - { - ImRect ret; - ImGuiPNative.TitleBarRect(&ret, self); - return ret; - } - public static void TitleBarRect(ImRectPtr pOut, ImGuiWindowPtr self) - { - ImGuiPNative.TitleBarRect(pOut, self); - } - public static void TitleBarRect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.TitleBarRect((ImRect*)ppOut, self); - } - } - public static ImRect TitleBarRect(this ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - ImGuiPNative.TitleBarRect(&ret, (ImGuiWindow*)pself); - return ret; - } - } - public static void TitleBarRect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImGuiPNative.TitleBarRect(pOut, (ImGuiWindow*)pself); - } - } - public static void TitleBarRect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - ImGuiPNative.TitleBarRect((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - public static float MenuBarHeight(this ImGuiWindowPtr self) - { - float ret = ImGuiPNative.MenuBarHeight(self); - return ret; - } - public static float MenuBarHeight(this ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = ImGuiPNative.MenuBarHeight((ImGuiWindow*)pself); - return ret; - } - } - public static ImRect MenuBarRect(this ImGuiWindowPtr self) - { - ImRect ret; - ImGuiPNative.MenuBarRect(&ret, self); - return ret; - } - public static void MenuBarRect(ImRectPtr pOut, ImGuiWindowPtr self) - { - ImGuiPNative.MenuBarRect(pOut, self); - } - public static void MenuBarRect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.MenuBarRect((ImRect*)ppOut, self); - } - } - public static ImRect MenuBarRect(this ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - ImGuiPNative.MenuBarRect(&ret, (ImGuiWindow*)pself); - return ret; - } - } - public static void MenuBarRect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImGuiPNative.MenuBarRect(pOut, (ImGuiWindow*)pself); - } - } - public static void MenuBarRect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - ImGuiPNative.MenuBarRect((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - public static ImGuiTabItemPtr ImGuiTabItem() - { - ImGuiTabItemPtr ret = ImGuiPNative.ImGuiTabItem(); - return ret; - } - public static ImGuiTabBarPtr ImGuiTabBar() - { - ImGuiTabBarPtr ret = ImGuiPNative.ImGuiTabBar(); - return ret; - } - public static int GetTabOrder(this ImGuiTabBarPtr self, ImGuiTabItemPtr tab) - { - int ret = ImGuiPNative.GetTabOrder(self, tab); - return ret; - } - public static int GetTabOrder(this scoped in ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* pself = &self) - { - int ret = ImGuiPNative.GetTabOrder((ImGuiTabBar*)pself, tab); - return ret; - } - } - public static int GetTabOrder(this ImGuiTabBarPtr self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = ImGuiPNative.GetTabOrder(self, (ImGuiTabItem*)ptab); - return ret; - } - } - public static int GetTabOrder(this scoped in ImGuiTabBar self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* pself = &self) - { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = ImGuiPNative.GetTabOrder((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); - return ret; - } - } - } - public static ImGuiTableColumnPtr ImGuiTableColumn() - { - ImGuiTableColumnPtr ret = ImGuiPNative.ImGuiTableColumn(); - return ret; - } - public static ImGuiTableInstanceDataPtr ImGuiTableInstanceData() - { - ImGuiTableInstanceDataPtr ret = ImGuiPNative.ImGuiTableInstanceData(); - return ret; - } - public static ImGuiTablePtr ImGuiTable() - { - ImGuiTablePtr ret = ImGuiPNative.ImGuiTable(); - return ret; - } - public static ImGuiTableTempDataPtr ImGuiTableTempData() - { - ImGuiTableTempDataPtr ret = ImGuiPNative.ImGuiTableTempData(); - return ret; - } - public static ImGuiTableColumnSettingsPtr ImGuiTableColumnSettings() - { - ImGuiTableColumnSettingsPtr ret = ImGuiPNative.ImGuiTableColumnSettings(); - return ret; - } - public static ImGuiTableSettingsPtr ImGuiTableSettings() - { - ImGuiTableSettingsPtr ret = ImGuiPNative.ImGuiTableSettings(); - return ret; - } - public static ImGuiTableColumnSettingsPtr GetColumnSettings(this ImGuiTableSettingsPtr self) - { - ImGuiTableColumnSettingsPtr ret = ImGuiPNative.GetColumnSettings(self); - return ret; - } - public static ImGuiTableColumnSettingsPtr GetColumnSettings(this scoped in ImGuiTableSettings self) - { - fixed (ImGuiTableSettings* pself = &self) - { - ImGuiTableColumnSettingsPtr ret = ImGuiPNative.GetColumnSettings((ImGuiTableSettings*)pself); - return ret; - } - } - public static ImGuiWindowPtr GetCurrentWindowRead() - { - ImGuiWindowPtr ret = ImGuiPNative.GetCurrentWindowRead(); - return ret; - } - public static ImGuiWindowPtr GetCurrentWindow() - { - ImGuiWindowPtr ret = ImGuiPNative.GetCurrentWindow(); - return ret; - } - public static ImGuiWindowPtr FindWindowByID(uint id) - { - ImGuiWindowPtr ret = ImGuiPNative.FindWindowByID(id); - return ret; - } - public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) - { - ImGuiPNative.UpdateWindowParentAndRootLinks(window, flags, parentWindow); - } - public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.UpdateWindowParentAndRootLinks((ImGuiWindow*)pwindow, flags, parentWindow); - } - } - public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) - { - fixed (ImGuiWindow* pparentWindow = &parentWindow) - { - ImGuiPNative.UpdateWindowParentAndRootLinks(window, flags, (ImGuiWindow*)pparentWindow); - } - } - public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* pparentWindow = &parentWindow) - { - ImGuiPNative.UpdateWindowParentAndRootLinks((ImGuiWindow*)pwindow, flags, (ImGuiWindow*)pparentWindow); - } - } - } - public static Vector2 CalcWindowNextAutoFitSize(ImGuiWindowPtr window) - { - Vector2 ret; - ImGuiPNative.CalcWindowNextAutoFitSize(&ret, window); - return ret; - } - public static void CalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindowPtr window) - { - ImGuiPNative.CalcWindowNextAutoFitSize(pOut, window); - } - public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ImGuiWindowPtr window) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.CalcWindowNextAutoFitSize((Vector2*)ppOut, window); - } - } - public static Vector2 CalcWindowNextAutoFitSize(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ImGuiPNative.CalcWindowNextAutoFitSize(&ret, (ImGuiWindow*)pwindow); - return ret; - } - } - public static void CalcWindowNextAutoFitSize(Vector2* pOut, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.CalcWindowNextAutoFitSize(pOut, (ImGuiWindow*)pwindow); - } - } - public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ref ImGuiWindow window) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.CalcWindowNextAutoFitSize((Vector2*)ppOut, (ImGuiWindow*)pwindow); - } - } - } - public static bool IsWindowChildOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) - { - byte ret = ImGuiPNative.IsWindowChildOf(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - public static bool IsWindowChildOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = ImGuiPNative.IsWindowChildOf((ImGuiWindow*)pwindow, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - } - public static bool IsWindowChildOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = ImGuiPNative.IsWindowChildOf(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - } - public static bool IsWindowChildOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = ImGuiPNative.IsWindowChildOf((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent) - { - byte ret = ImGuiPNative.IsWindowWithinBeginStackOf(window, potentialParent); - return ret != 0; - } - public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = ImGuiPNative.IsWindowWithinBeginStackOf((ImGuiWindow*)pwindow, potentialParent); - return ret != 0; - } - } - public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = ImGuiPNative.IsWindowWithinBeginStackOf(window, (ImGuiWindow*)ppotentialParent); - return ret != 0; - } - } - public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = ImGuiPNative.IsWindowWithinBeginStackOf((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent); - return ret != 0; - } - } - } - public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ImGuiWindowPtr potentialBelow) - { - byte ret = ImGuiPNative.IsWindowAbove(potentialAbove, potentialBelow); - return ret != 0; - } - public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ImGuiWindowPtr potentialBelow) - { - fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) - { - byte ret = ImGuiPNative.IsWindowAbove((ImGuiWindow*)ppotentialAbove, potentialBelow); - return ret != 0; - } - } - public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ref ImGuiWindow potentialBelow) - { - fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) - { - byte ret = ImGuiPNative.IsWindowAbove(potentialAbove, (ImGuiWindow*)ppotentialBelow); - return ret != 0; - } - } - public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ref ImGuiWindow potentialBelow) - { - fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) - { - fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) - { - byte ret = ImGuiPNative.IsWindowAbove((ImGuiWindow*)ppotentialAbove, (ImGuiWindow*)ppotentialBelow); - return ret != 0; - } - } - } - public static bool IsWindowNavFocusable(ImGuiWindowPtr window) - { - byte ret = ImGuiPNative.IsWindowNavFocusable(window); - return ret != 0; - } - public static bool IsWindowNavFocusable(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = ImGuiPNative.IsWindowNavFocusable((ImGuiWindow*)pwindow); - return ret != 0; - } - } - public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos, ImGuiCond cond) - { - ImGuiPNative.SetWindowPos(window, pos, cond); - } - public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos) - { - ImGuiPNative.SetWindowPos(window, pos, (ImGuiCond)(0)); - } - public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowPos((ImGuiWindow*)pwindow, pos, cond); - } - } - public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowPos((ImGuiWindow*)pwindow, pos, (ImGuiCond)(0)); - } - } - public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size, ImGuiCond cond) - { - ImGuiPNative.SetWindowSize(window, size, cond); - } - public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size) - { - ImGuiPNative.SetWindowSize(window, size, (ImGuiCond)(0)); - } - public static void SetWindowSize(ref ImGuiWindow window, Vector2 size, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowSize((ImGuiWindow*)pwindow, size, cond); - } - } - public static void SetWindowSize(ref ImGuiWindow window, Vector2 size) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowSize((ImGuiWindow*)pwindow, size, (ImGuiCond)(0)); - } - } - public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed, ImGuiCond cond) - { - ImGuiPNative.SetWindowCollapsed(window, collapsed ? (byte)1 : (byte)0, cond); - } - public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed) - { - ImGuiPNative.SetWindowCollapsed(window, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowCollapsed((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, cond); - } - } - public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowCollapsed((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - } - public static void SetWindowHitTestHole(ImGuiWindowPtr window, Vector2 pos, Vector2 size) - { - ImGuiPNative.SetWindowHitTestHole(window, pos, size); - } - public static void SetWindowHitTestHole(ref ImGuiWindow window, Vector2 pos, Vector2 size) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowHitTestHole((ImGuiWindow*)pwindow, pos, size); - } - } - public static ImRect WindowRectAbsToRel(ImGuiWindowPtr window, ImRect r) - { - ImRect ret; - ImGuiPNative.WindowRectAbsToRel(&ret, window, r); - return ret; - } - public static void WindowRectAbsToRel(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) - { - ImGuiPNative.WindowRectAbsToRel(pOut, window, r); - } - public static void WindowRectAbsToRel(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.WindowRectAbsToRel((ImRect*)ppOut, window, r); - } - } - public static ImRect WindowRectAbsToRel(ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - ImGuiPNative.WindowRectAbsToRel(&ret, (ImGuiWindow*)pwindow, r); - return ret; - } - } - public static void WindowRectAbsToRel(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.WindowRectAbsToRel(pOut, (ImGuiWindow*)pwindow, r); - } - } - public static void WindowRectAbsToRel(ref ImRect pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.WindowRectAbsToRel((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); - } - } - } - public static ImRect WindowRectRelToAbs(ImGuiWindowPtr window, ImRect r) - { - ImRect ret; - ImGuiPNative.WindowRectRelToAbs(&ret, window, r); - return ret; - } - public static void WindowRectRelToAbs(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) - { - ImGuiPNative.WindowRectRelToAbs(pOut, window, r); - } - public static void WindowRectRelToAbs(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.WindowRectRelToAbs((ImRect*)ppOut, window, r); - } - } - public static ImRect WindowRectRelToAbs(ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - ImGuiPNative.WindowRectRelToAbs(&ret, (ImGuiWindow*)pwindow, r); - return ret; - } - } - public static void WindowRectRelToAbs(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.WindowRectRelToAbs(pOut, (ImGuiWindow*)pwindow, r); - } - } - public static void WindowRectRelToAbs(ref ImRect pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.WindowRectRelToAbs((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); - } - } - } - public static void FocusWindow(ImGuiWindowPtr window) - { - ImGuiPNative.FocusWindow(window); - } - public static void FocusWindow(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.FocusWindow((ImGuiWindow*)pwindow); - } - } - public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ImGuiWindowPtr ignoreWindow) - { - ImGuiPNative.FocusTopMostWindowUnderOne(underThisWindow, ignoreWindow); - } - public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ImGuiWindowPtr ignoreWindow) - { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - ImGuiPNative.FocusTopMostWindowUnderOne((ImGuiWindow*)punderThisWindow, ignoreWindow); - } - } - public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ref ImGuiWindow ignoreWindow) - { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - ImGuiPNative.FocusTopMostWindowUnderOne(underThisWindow, (ImGuiWindow*)pignoreWindow); - } - } - public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ref ImGuiWindow ignoreWindow) - { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - ImGuiPNative.FocusTopMostWindowUnderOne((ImGuiWindow*)punderThisWindow, (ImGuiWindow*)pignoreWindow); - } - } - } - public static void BringWindowToFocusFront(ImGuiWindowPtr window) - { - ImGuiPNative.BringWindowToFocusFront(window); - } - public static void BringWindowToFocusFront(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.BringWindowToFocusFront((ImGuiWindow*)pwindow); - } - } - public static void BringWindowToDisplayFront(ImGuiWindowPtr window) - { - ImGuiPNative.BringWindowToDisplayFront(window); - } - public static void BringWindowToDisplayFront(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.BringWindowToDisplayFront((ImGuiWindow*)pwindow); - } - } - public static void BringWindowToDisplayBack(ImGuiWindowPtr window) - { - ImGuiPNative.BringWindowToDisplayBack(window); - } - public static void BringWindowToDisplayBack(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.BringWindowToDisplayBack((ImGuiWindow*)pwindow); - } - } - public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ImGuiWindowPtr aboveWindow) - { - ImGuiPNative.BringWindowToDisplayBehind(window, aboveWindow); - } - public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ImGuiWindowPtr aboveWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.BringWindowToDisplayBehind((ImGuiWindow*)pwindow, aboveWindow); - } - } - public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ref ImGuiWindow aboveWindow) - { - fixed (ImGuiWindow* paboveWindow = &aboveWindow) - { - ImGuiPNative.BringWindowToDisplayBehind(window, (ImGuiWindow*)paboveWindow); - } - } - public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ref ImGuiWindow aboveWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* paboveWindow = &aboveWindow) - { - ImGuiPNative.BringWindowToDisplayBehind((ImGuiWindow*)pwindow, (ImGuiWindow*)paboveWindow); - } - } - } - public static int FindWindowDisplayIndex(ImGuiWindowPtr window) - { - int ret = ImGuiPNative.FindWindowDisplayIndex(window); - return ret; - } - public static int FindWindowDisplayIndex(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - int ret = ImGuiPNative.FindWindowDisplayIndex((ImGuiWindow*)pwindow); - return ret; - } - } - public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindowPtr window) - { - ImGuiWindowPtr ret = ImGuiPNative.FindBottomMostVisibleWindowWithinBeginStack(window); - return ret; - } - public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiWindowPtr ret = ImGuiPNative.FindBottomMostVisibleWindowWithinBeginStack((ImGuiWindow*)pwindow); - return ret; - } - } - public static void SetCurrentFont(ImFontPtr font) - { - ImGuiPNative.SetCurrentFont(font); - } - public static void SetCurrentFont(ref ImFont font) - { - fixed (ImFont* pfont = &font) - { - ImGuiPNative.SetCurrentFont((ImFont*)pfont); - } - } - public static ImFontPtr GetDefaultFont() - { - ImFontPtr ret = ImGuiPNative.GetDefaultFont(); - return ret; - } - public static ImDrawListPtr GetForegroundDrawList(ImGuiWindowPtr window) - { - ImDrawListPtr ret = ImGuiPNative.GetForegroundDrawList(window); - return ret; - } - public static ImDrawListPtr GetForegroundDrawList(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImDrawListPtr ret = ImGuiPNative.GetForegroundDrawList((ImGuiWindow*)pwindow); - return ret; - } - } - public static void Initialize() - { - ImGuiPNative.Initialize(); - } - public static void Shutdown() - { - ImGuiPNative.Shutdown(); - } - public static void UpdateInputEvents(bool trickleFastInputs) - { - ImGuiPNative.UpdateInputEvents(trickleFastInputs ? (byte)1 : (byte)0); - } - public static void UpdateHoveredWindowAndCaptureFlags() - { - ImGuiPNative.UpdateHoveredWindowAndCaptureFlags(); - } - public static void StartMouseMovingWindow(ImGuiWindowPtr window) - { - ImGuiPNative.StartMouseMovingWindow(window); - } - public static void StartMouseMovingWindow(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.StartMouseMovingWindow((ImGuiWindow*)pwindow); - } - } - public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ImGuiDockNodePtr node, bool undockFloatingNode) - { - ImGuiPNative.StartMouseMovingWindowOrNode(window, node, undockFloatingNode ? (byte)1 : (byte)0); - } - public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ImGuiDockNodePtr node, bool undockFloatingNode) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.StartMouseMovingWindowOrNode((ImGuiWindow*)pwindow, node, undockFloatingNode ? (byte)1 : (byte)0); - } - } - public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ref ImGuiDockNode node, bool undockFloatingNode) - { - fixed (ImGuiDockNode* pnode = &node) - { - ImGuiPNative.StartMouseMovingWindowOrNode(window, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); - } - } - public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ref ImGuiDockNode node, bool undockFloatingNode) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiDockNode* pnode = &node) - { - ImGuiPNative.StartMouseMovingWindowOrNode((ImGuiWindow*)pwindow, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); - } - } - } - public static void UpdateMouseMovingWindowNewFrame() - { - ImGuiPNative.UpdateMouseMovingWindowNewFrame(); - } - public static void UpdateMouseMovingWindowEndFrame() - { - ImGuiPNative.UpdateMouseMovingWindowEndFrame(); - } - public static uint AddContextHook(ImGuiContextPtr context, ImGuiContextHookPtr hook) - { - uint ret = ImGuiPNative.AddContextHook(context, hook); - return ret; - } - public static uint AddContextHook(ref ImGuiContext context, ImGuiContextHookPtr hook) - { - fixed (ImGuiContext* pcontext = &context) - { - uint ret = ImGuiPNative.AddContextHook((ImGuiContext*)pcontext, hook); - return ret; - } - } - public static uint AddContextHook(ImGuiContextPtr context, ref ImGuiContextHook hook) - { - fixed (ImGuiContextHook* phook = &hook) - { - uint ret = ImGuiPNative.AddContextHook(context, (ImGuiContextHook*)phook); - return ret; - } - } - public static uint AddContextHook(ref ImGuiContext context, ref ImGuiContextHook hook) - { - fixed (ImGuiContext* pcontext = &context) - { - fixed (ImGuiContextHook* phook = &hook) - { - uint ret = ImGuiPNative.AddContextHook((ImGuiContext*)pcontext, (ImGuiContextHook*)phook); - return ret; - } - } - } - public static void RemoveContextHook(ImGuiContextPtr context, uint hookToRemove) - { - ImGuiPNative.RemoveContextHook(context, hookToRemove); - } - public static void RemoveContextHook(ref ImGuiContext context, uint hookToRemove) - { - fixed (ImGuiContext* pcontext = &context) - { - ImGuiPNative.RemoveContextHook((ImGuiContext*)pcontext, hookToRemove); - } - } - public static void CallContextHooks(ImGuiContextPtr context, ImGuiContextHookType type) - { - ImGuiPNative.CallContextHooks(context, type); - } - public static void CallContextHooks(ref ImGuiContext context, ImGuiContextHookType type) - { - fixed (ImGuiContext* pcontext = &context) - { - ImGuiPNative.CallContextHooks((ImGuiContext*)pcontext, type); - } - } - public static void TranslateWindowsInViewport(ImGuiViewportPPtr viewport, Vector2 oldPos, Vector2 newPos) - { - ImGuiPNative.TranslateWindowsInViewport(viewport, oldPos, newPos); - } - public static void TranslateWindowsInViewport(ref ImGuiViewportP viewport, Vector2 oldPos, Vector2 newPos) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.TranslateWindowsInViewport((ImGuiViewportP*)pviewport, oldPos, newPos); - } - } - public static void ScaleWindowsInViewport(ImGuiViewportPPtr viewport, float scale) - { - ImGuiPNative.ScaleWindowsInViewport(viewport, scale); - } - public static void ScaleWindowsInViewport(ref ImGuiViewportP viewport, float scale) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.ScaleWindowsInViewport((ImGuiViewportP*)pviewport, scale); - } - } - public static void DestroyPlatformWindow(ImGuiViewportPPtr viewport) - { - ImGuiPNative.DestroyPlatformWindow(viewport); - } - public static void DestroyPlatformWindow(ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.DestroyPlatformWindow((ImGuiViewportP*)pviewport); - } - } - public static void SetWindowViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) - { - ImGuiPNative.SetWindowViewport(window, viewport); - } - public static void SetWindowViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowViewport((ImGuiWindow*)pwindow, viewport); - } - } - public static void SetWindowViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.SetWindowViewport(window, (ImGuiViewportP*)pviewport); - } - } - public static void SetWindowViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.SetWindowViewport((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); - } - } - } - public static void SetCurrentViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) - { - ImGuiPNative.SetCurrentViewport(window, viewport); - } - public static void SetCurrentViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetCurrentViewport((ImGuiWindow*)pwindow, viewport); - } - } - public static void SetCurrentViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.SetCurrentViewport(window, (ImGuiViewportP*)pviewport); - } - } - public static void SetCurrentViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.SetCurrentViewport((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); - } - } - } - public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) - { - ImGuiPlatformMonitorPtr ret = ImGuiPNative.GetViewportPlatformMonitor(viewport); - return ret; - } - public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImGuiPlatformMonitorPtr ret = ImGuiPNative.GetViewportPlatformMonitor((ImGuiViewport*)pviewport); - return ret; - } - } - public static ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) - { - ImGuiViewportPPtr ret = ImGuiPNative.FindHoveredViewportFromPlatformWindowStack(mousePlatformPos); - return ret; - } - public static void MarkIniSettingsDirty() - { - ImGuiPNative.MarkIniSettingsDirty(); - } - public static void MarkIniSettingsDirty(ImGuiWindowPtr window) - { - ImGuiPNative.MarkIniSettingsDirty(window); - } - public static void MarkIniSettingsDirty(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.MarkIniSettingsDirty((ImGuiWindow*)pwindow); - } - } - public static void ClearIniSettings() - { - ImGuiPNative.ClearIniSettings(); - } - public static ImGuiWindowSettingsPtr FindWindowSettings(uint id) - { - ImGuiWindowSettingsPtr ret = ImGuiPNative.FindWindowSettings(id); - return ret; - } - public static void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) - { - ImGuiPNative.AddSettingsHandler(handler); - } - public static void AddSettingsHandler(ref ImGuiSettingsHandler handler) - { - fixed (ImGuiSettingsHandler* phandler = &handler) - { - ImGuiPNative.AddSettingsHandler((ImGuiSettingsHandler*)phandler); - } - } - public static void SetNextWindowScroll(Vector2 scroll) - { - ImGuiPNative.SetNextWindowScroll(scroll); - } - public static void SetScrollX(ImGuiWindowPtr window, float scrollX) - { - ImGuiPNative.SetScrollX(window, scrollX); - } - public static void SetScrollX(ref ImGuiWindow window, float scrollX) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetScrollX((ImGuiWindow*)pwindow, scrollX); - } - } - public static void SetScrollY(ImGuiWindowPtr window, float scrollY) - { - ImGuiPNative.SetScrollY(window, scrollY); - } - public static void SetScrollY(ref ImGuiWindow window, float scrollY) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetScrollY((ImGuiWindow*)pwindow, scrollY); - } - } - public static void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) - { - ImGuiPNative.SetScrollFromPosX(window, localX, centerXRatio); - } - public static void SetScrollFromPosX(ref ImGuiWindow window, float localX, float centerXRatio) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetScrollFromPosX((ImGuiWindow*)pwindow, localX, centerXRatio); - } - } - public static void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) - { - ImGuiPNative.SetScrollFromPosY(window, localY, centerYRatio); - } - public static void SetScrollFromPosY(ref ImGuiWindow window, float localY, float centerYRatio) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetScrollFromPosY((ImGuiWindow*)pwindow, localY, centerYRatio); - } - } - public static void ScrollToItem(ImGuiScrollFlags flags) - { - ImGuiPNative.ScrollToItem(flags); - } - public static void ScrollToItem() - { - ImGuiPNative.ScrollToItem((ImGuiScrollFlags)(0)); - } - public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - ImGuiPNative.ScrollToRect(window, rect, flags); - } - public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect) - { - ImGuiPNative.ScrollToRect(window, rect, (ImGuiScrollFlags)(0)); - } - public static void ScrollToRect(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.ScrollToRect((ImGuiWindow*)pwindow, rect, flags); - } - } - public static void ScrollToRect(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.ScrollToRect((ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect) - { - Vector2 ret; - ImGuiPNative.ScrollToRectEx(&ret, window, rect, (ImGuiScrollFlags)(0)); - return ret; - } - public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - Vector2 ret; - ImGuiPNative.ScrollToRectEx(&ret, window, rect, flags); - return ret; - } - public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - ImGuiPNative.ScrollToRectEx(pOut, window, rect, flags); - } - public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect) - { - ImGuiPNative.ScrollToRectEx(pOut, window, rect, (ImGuiScrollFlags)(0)); - } - public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, window, rect, flags); - } - } - public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, window, rect, (ImGuiScrollFlags)(0)); - } - } - public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ImGuiPNative.ScrollToRectEx(&ret, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - return ret; - } - } - public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ImGuiPNative.ScrollToRectEx(&ret, (ImGuiWindow*)pwindow, rect, flags); - return ret; - } - } - public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.ScrollToRectEx(pOut, (ImGuiWindow*)pwindow, rect, flags); - } - } - public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.ScrollToRectEx(pOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, flags); - } - } - } - public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.ScrollToRectEx((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - } - public static void ScrollToBringRectIntoView(ImGuiWindowPtr window, ImRect rect) - { - ImGuiPNative.ScrollToBringRectIntoView(window, rect); - } - public static void ScrollToBringRectIntoView(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.ScrollToBringRectIntoView((ImGuiWindow*)pwindow, rect); - } - } - public static uint GetItemID() - { - uint ret = ImGuiPNative.GetItemID(); - return ret; - } - public static ImGuiItemStatusFlags GetItemStatusFlags() - { - ImGuiItemStatusFlags ret = ImGuiPNative.GetItemStatusFlags(); - return ret; - } - public static ImGuiItemFlags GetItemFlags() - { - ImGuiItemFlags ret = ImGuiPNative.GetItemFlags(); - return ret; - } - public static uint GetActiveID() - { - uint ret = ImGuiPNative.GetActiveID(); - return ret; - } - public static uint GetFocusID() - { - uint ret = ImGuiPNative.GetFocusID(); - return ret; - } - public static void SetActiveID(uint id, ImGuiWindowPtr window) - { - ImGuiPNative.SetActiveID(id, window); - } - public static void SetActiveID(uint id, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetActiveID(id, (ImGuiWindow*)pwindow); - } - } - public static void SetFocusID(uint id, ImGuiWindowPtr window) - { - ImGuiPNative.SetFocusID(id, window); - } - public static void SetFocusID(uint id, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetFocusID(id, (ImGuiWindow*)pwindow); - } - } - public static void ClearActiveID() - { - ImGuiPNative.ClearActiveID(); - } - public static uint GetHoveredID() - { - uint ret = ImGuiPNative.GetHoveredID(); - return ret; - } - public static void SetHoveredID(uint id) - { - ImGuiPNative.SetHoveredID(id); - } - public static void KeepAliveID(uint id) - { - ImGuiPNative.KeepAliveID(id); - } - public static void MarkItemEdited(uint id) - { - ImGuiPNative.MarkItemEdited(id); - } - public static void PushOverrideID(uint id) - { - ImGuiPNative.PushOverrideID(id); - } - public static void ItemSize(Vector2 size, float textBaselineY) - { - ImGuiPNative.ItemSize(size, textBaselineY); - } - public static void ItemSize(Vector2 size) - { - ImGuiPNative.ItemSize(size, (float)(-1.0f)); - } - public static void ItemSize(ImRect bb, float textBaselineY) - { - ImGuiPNative.ItemSize(bb, textBaselineY); - } - public static void ItemSize(ImRect bb) - { - ImGuiPNative.ItemSize(bb, (float)(-1.0f)); - } - public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb, ImGuiItemFlags extraFlags) - { - byte ret = ImGuiPNative.ItemAdd(bb, id, navBb, extraFlags); - return ret != 0; - } - public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb) - { - byte ret = ImGuiPNative.ItemAdd(bb, id, navBb, (ImGuiItemFlags)(0)); - return ret != 0; - } - public static bool ItemAdd(ImRect bb, uint id) - { - byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)(default), (ImGuiItemFlags)(0)); - return ret != 0; - } - public static bool ItemAdd(ImRect bb, uint id, ImGuiItemFlags extraFlags) - { - byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)(default), extraFlags); - return ret != 0; - } - public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb, ImGuiItemFlags extraFlags) - { - fixed (ImRect* pnavBb = &navBb) - { - byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)pnavBb, extraFlags); - return ret != 0; - } - } - public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb) - { - fixed (ImRect* pnavBb = &navBb) - { - byte ret = ImGuiPNative.ItemAdd(bb, id, (ImRect*)pnavBb, (ImGuiItemFlags)(0)); - return ret != 0; - } - } - public static bool ItemHoverable(ImRect bb, uint id) - { - byte ret = ImGuiPNative.ItemHoverable(bb, id); - return ret != 0; - } - public static bool IsClippedEx(ImRect bb, uint id) - { - byte ret = ImGuiPNative.IsClippedEx(bb, id); - return ret != 0; - } - public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) - { - ImGuiPNative.SetLastItemData(itemId, inFlags, statusFlags, itemRect); - } - public static Vector2 CalcItemSize(Vector2 size, float defaultW, float defaultH) - { - Vector2 ret; - ImGuiPNative.CalcItemSize(&ret, size, defaultW, defaultH); - return ret; - } - public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) - { - ImGuiPNative.CalcItemSize(pOut, size, defaultW, defaultH); - } - public static void CalcItemSize(ref Vector2 pOut, Vector2 size, float defaultW, float defaultH) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.CalcItemSize((Vector2*)ppOut, size, defaultW, defaultH); - } - } - public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) - { - float ret = ImGuiPNative.CalcWrapWidthForPos(pos, wrapPosX); - return ret; - } - public static void PushMultiItemsWidths(int components, float widthFull) - { - ImGuiPNative.PushMultiItemsWidths(components, widthFull); - } - public static bool IsItemToggledSelection() - { - byte ret = ImGuiPNative.IsItemToggledSelection(); - return ret != 0; - } - public static Vector2 GetContentRegionMaxAbs() - { - Vector2 ret; - ImGuiPNative.GetContentRegionMaxAbs(&ret); - return ret; - } - public static void GetContentRegionMaxAbs(Vector2* pOut) - { - ImGuiPNative.GetContentRegionMaxAbs(pOut); - } - public static void GetContentRegionMaxAbs(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetContentRegionMaxAbs((Vector2*)ppOut); - } - } - public static void ShrinkWidths(ImGuiShrinkWidthItemPtr items, int count, float widthExcess) - { - ImGuiPNative.ShrinkWidths(items, count, widthExcess); - } - public static void ShrinkWidths(ref ImGuiShrinkWidthItem items, int count, float widthExcess) - { - fixed (ImGuiShrinkWidthItem* pitems = &items) - { - ImGuiPNative.ShrinkWidths((ImGuiShrinkWidthItem*)pitems, count, widthExcess); - } - } - public static void PushItemFlag(ImGuiItemFlags option, bool enabled) - { - ImGuiPNative.PushItemFlag(option, enabled ? (byte)1 : (byte)0); - } - public static void PopItemFlag() - { - ImGuiPNative.PopItemFlag(); - } - public static void LogBegin(ImGuiLogType type, int autoOpenDepth) - { - ImGuiPNative.LogBegin(type, autoOpenDepth); - } - public static void LogToBuffer(int autoOpenDepth) - { - ImGuiPNative.LogToBuffer(autoOpenDepth); - } - public static void LogToBuffer() - { - ImGuiPNative.LogToBuffer((int)(-1)); - } - public static void OpenPopupEx(uint id, ImGuiPopupFlags popupFlags) - { - ImGuiPNative.OpenPopupEx(id, popupFlags); - } - public static void OpenPopupEx(uint id) - { - ImGuiPNative.OpenPopupEx(id, (ImGuiPopupFlags)(ImGuiPopupFlags.None)); - } - public static void ClosePopupToLevel(int remaining, bool restoreFocusToWindowUnderPopup) - { - ImGuiPNative.ClosePopupToLevel(remaining, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } - public static void ClosePopupsOverWindow(ImGuiWindowPtr refWindow, bool restoreFocusToWindowUnderPopup) - { - ImGuiPNative.ClosePopupsOverWindow(refWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } - public static void ClosePopupsOverWindow(ref ImGuiWindow refWindow, bool restoreFocusToWindowUnderPopup) - { - fixed (ImGuiWindow* prefWindow = &refWindow) - { - ImGuiPNative.ClosePopupsOverWindow((ImGuiWindow*)prefWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } - } - public static void ClosePopupsExceptModals() - { - ImGuiPNative.ClosePopupsExceptModals(); - } - public static bool IsPopupOpen(uint id, ImGuiPopupFlags popupFlags) - { - byte ret = ImGuiPNative.IsPopupOpen(id, popupFlags); - return ret != 0; - } - public static bool BeginPopupEx(uint id, ImGuiWindowFlags extraFlags) - { - byte ret = ImGuiPNative.BeginPopupEx(id, extraFlags); - return ret != 0; - } - public static void BeginTooltipEx(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) - { - ImGuiPNative.BeginTooltipEx(tooltipFlags, extraWindowFlags); - } - public static ImRect GetPopupAllowedExtentRect(ImGuiWindowPtr window) - { - ImRect ret; - ImGuiPNative.GetPopupAllowedExtentRect(&ret, window); - return ret; - } - public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ImGuiWindowPtr window) - { - ImGuiPNative.GetPopupAllowedExtentRect(pOut, window); - } - public static void GetPopupAllowedExtentRect(ref ImRect pOut, ImGuiWindowPtr window) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.GetPopupAllowedExtentRect((ImRect*)ppOut, window); - } - } - public static ImRect GetPopupAllowedExtentRect(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - ImGuiPNative.GetPopupAllowedExtentRect(&ret, (ImGuiWindow*)pwindow); - return ret; - } - } - public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.GetPopupAllowedExtentRect(pOut, (ImGuiWindow*)pwindow); - } - } - public static void GetPopupAllowedExtentRect(ref ImRect pOut, ref ImGuiWindow window) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.GetPopupAllowedExtentRect((ImRect*)ppOut, (ImGuiWindow*)pwindow); - } - } - } - public static ImGuiWindowPtr GetTopMostPopupModal() - { - ImGuiWindowPtr ret = ImGuiPNative.GetTopMostPopupModal(); - return ret; - } - public static ImGuiWindowPtr GetTopMostAndVisiblePopupModal() - { - ImGuiWindowPtr ret = ImGuiPNative.GetTopMostAndVisiblePopupModal(); - return ret; - } - public static Vector2 FindBestWindowPosForPopup(ImGuiWindowPtr window) - { - Vector2 ret; - ImGuiPNative.FindBestWindowPosForPopup(&ret, window); - return ret; - } - public static void FindBestWindowPosForPopup(Vector2* pOut, ImGuiWindowPtr window) - { - ImGuiPNative.FindBestWindowPosForPopup(pOut, window); - } - public static void FindBestWindowPosForPopup(ref Vector2 pOut, ImGuiWindowPtr window) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.FindBestWindowPosForPopup((Vector2*)ppOut, window); - } - } - public static Vector2 FindBestWindowPosForPopup(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ImGuiPNative.FindBestWindowPosForPopup(&ret, (ImGuiWindow*)pwindow); - return ret; - } - } - public static void FindBestWindowPosForPopup(Vector2* pOut, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.FindBestWindowPosForPopup(pOut, (ImGuiWindow*)pwindow); - } - } - public static void FindBestWindowPosForPopup(ref Vector2 pOut, ref ImGuiWindow window) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.FindBestWindowPosForPopup((Vector2*)ppOut, (ImGuiWindow*)pwindow); - } - } - } - public static Vector2 FindBestWindowPosForPopupEx(Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - Vector2 ret; - ImGuiPNative.FindBestWindowPosForPopupEx(&ret, refPos, size, lastDir, rOuter, rAvoid, policy); - return ret; - } - public static void FindBestWindowPosForPopupEx(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - ImGuiPNative.FindBestWindowPosForPopupEx(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); - } - public static void FindBestWindowPosForPopupEx(ref Vector2 pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.FindBestWindowPosForPopupEx((Vector2*)ppOut, refPos, size, lastDir, rOuter, rAvoid, policy); - } - } - public static bool BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) - { - byte ret = ImGuiPNative.BeginComboPopup(popupId, bb, flags); - return ret != 0; - } - public static bool BeginComboPreview() - { - byte ret = ImGuiPNative.BeginComboPreview(); - return ret != 0; - } - public static void EndComboPreview() - { - ImGuiPNative.EndComboPreview(); - } - public static void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) - { - ImGuiPNative.NavInitWindow(window, forceReinit ? (byte)1 : (byte)0); - } - public static void NavInitWindow(ref ImGuiWindow window, bool forceReinit) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.NavInitWindow((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0); - } - } - public static void NavInitRequestApplyResult() - { - ImGuiPNative.NavInitRequestApplyResult(); - } - public static bool NavMoveRequestButNoResultYet() - { - byte ret = ImGuiPNative.NavMoveRequestButNoResultYet(); - return ret != 0; - } - public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - ImGuiPNative.NavMoveRequestSubmit(moveDir, clipDir, moveFlags, scrollFlags); - } - public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - ImGuiPNative.NavMoveRequestForward(moveDir, clipDir, moveFlags, scrollFlags); - } - public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) - { - ImGuiPNative.NavMoveRequestResolveWithLastItem(result); - } - public static void NavMoveRequestResolveWithLastItem(ref ImGuiNavItemData result) - { - fixed (ImGuiNavItemData* presult = &result) - { - ImGuiPNative.NavMoveRequestResolveWithLastItem((ImGuiNavItemData*)presult); - } - } - public static void NavMoveRequestCancel() - { - ImGuiPNative.NavMoveRequestCancel(); - } - public static void NavMoveRequestApplyResult() - { - ImGuiPNative.NavMoveRequestApplyResult(); - } - public static void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) - { - ImGuiPNative.NavMoveRequestTryWrapping(window, moveFlags); - } - public static void NavMoveRequestTryWrapping(ref ImGuiWindow window, ImGuiNavMoveFlags moveFlags) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.NavMoveRequestTryWrapping((ImGuiWindow*)pwindow, moveFlags); - } - } - public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) - { - float ret = ImGuiPNative.GetNavInputAmount(n, mode); - return ret; - } - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - Vector2 ret; - ImGuiPNative.GetNavInputAmount2d(&ret, dirSources, mode, (float)(0.0f), (float)(0.0f)); - return ret; - } - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - Vector2 ret; - ImGuiPNative.GetNavInputAmount2d(&ret, dirSources, mode, slowFactor, (float)(0.0f)); - return ret; - } - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - ImGuiPNative.GetNavInputAmount2d(pOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); - } - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - Vector2 ret; - ImGuiPNative.GetNavInputAmount2d(&ret, dirSources, mode, slowFactor, fastFactor); - return ret; - } - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - ImGuiPNative.GetNavInputAmount2d(pOut, dirSources, mode, slowFactor, fastFactor); - } - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - ImGuiPNative.GetNavInputAmount2d(pOut, dirSources, mode, slowFactor, (float)(0.0f)); - } - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetNavInputAmount2d((Vector2*)ppOut, dirSources, mode, slowFactor, fastFactor); - } - } - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetNavInputAmount2d((Vector2*)ppOut, dirSources, mode, slowFactor, (float)(0.0f)); - } - } - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - fixed (Vector2* ppOut = &pOut) - { - ImGuiPNative.GetNavInputAmount2d((Vector2*)ppOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); - } - } - public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) - { - int ret = ImGuiPNative.CalcTypematicRepeatAmount(t0, t1, repeatDelay, repeatRate); - return ret; - } - public static void ActivateItem(uint id) - { - ImGuiPNative.ActivateItem(id); - } - public static void SetNavWindow(ImGuiWindowPtr window) - { - ImGuiPNative.SetNavWindow(window); - } - public static void SetNavWindow(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetNavWindow((ImGuiWindow*)pwindow); - } - } - public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) - { - ImGuiPNative.SetNavID(id, navLayer, focusScopeId, rectRel); - } - public static void PushFocusScope(uint id) - { - ImGuiPNative.PushFocusScope(id); - } - public static void PopFocusScope() - { - ImGuiPNative.PopFocusScope(); - } - public static uint GetFocusedFocusScope() - { - uint ret = ImGuiPNative.GetFocusedFocusScope(); - return ret; - } - public static uint GetFocusScope() - { - uint ret = ImGuiPNative.GetFocusScope(); - return ret; - } - public static bool IsNamedKey(ImGuiKey key) - { - byte ret = ImGuiPNative.IsNamedKey(key); - return ret != 0; - } - public static bool IsLegacyKey(ImGuiKey key) - { - byte ret = ImGuiPNative.IsLegacyKey(key); - return ret != 0; - } - public static bool IsGamepadKey(ImGuiKey key) - { - byte ret = ImGuiPNative.IsGamepadKey(key); - return ret != 0; - } - public static ImGuiKeyDataPtr GetKeyData(ImGuiKey key) - { - ImGuiKeyDataPtr ret = ImGuiPNative.GetKeyData(key); - return ret; - } - public static void SetItemUsingMouseWheel() - { - ImGuiPNative.SetItemUsingMouseWheel(); - } - public static void SetActiveIdUsingNavAndKeys() - { - ImGuiPNative.SetActiveIdUsingNavAndKeys(); - } - public static bool IsActiveIdUsingNavDir(ImGuiDir dir) - { - byte ret = ImGuiPNative.IsActiveIdUsingNavDir(dir); - return ret != 0; - } - public static bool IsActiveIdUsingNavInput(ImGuiNavInput input) - { - byte ret = ImGuiPNative.IsActiveIdUsingNavInput(input); - return ret != 0; - } - public static bool IsActiveIdUsingKey(ImGuiKey key) - { - byte ret = ImGuiPNative.IsActiveIdUsingKey(key); - return ret != 0; - } - public static void SetActiveIdUsingKey(ImGuiKey key) - { - ImGuiPNative.SetActiveIdUsingKey(key); - } - public static bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) - { - byte ret = ImGuiPNative.IsMouseDragPastThreshold(button, lockThreshold); - return ret != 0; - } - public static bool IsMouseDragPastThreshold(ImGuiMouseButton button) - { - byte ret = ImGuiPNative.IsMouseDragPastThreshold(button, (float)(-1.0f)); - return ret != 0; - } - public static bool IsNavInputDown(ImGuiNavInput n) - { - byte ret = ImGuiPNative.IsNavInputDown(n); - return ret != 0; - } - public static bool IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) - { - byte ret = ImGuiPNative.IsNavInputTest(n, rm); - return ret != 0; - } - public static ImGuiModFlags GetMergedModFlags() - { - ImGuiModFlags ret = ImGuiPNative.GetMergedModFlags(); - return ret; - } - public static bool IsKeyPressedMap(ImGuiKey key, bool repeat) - { - byte ret = ImGuiPNative.IsKeyPressedMap(key, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - public static bool IsKeyPressedMap(ImGuiKey key) - { - byte ret = ImGuiPNative.IsKeyPressedMap(key, (byte)(1)); - return ret != 0; - } - public static void DockContextInitialize(ImGuiContextPtr ctx) - { - ImGuiPNative.DockContextInitialize(ctx); - } - public static void DockContextInitialize(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextInitialize((ImGuiContext*)pctx); - } - } - public static void DockContextShutdown(ImGuiContextPtr ctx) - { - ImGuiPNative.DockContextShutdown(ctx); - } - public static void DockContextShutdown(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextShutdown((ImGuiContext*)pctx); - } - } - public static void DockContextClearNodes(ImGuiContextPtr ctx, uint rootId, bool clearSettingsRefs) - { - ImGuiPNative.DockContextClearNodes(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); - } - public static void DockContextClearNodes(ref ImGuiContext ctx, uint rootId, bool clearSettingsRefs) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextClearNodes((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); - } - } - public static void DockContextRebuildNodes(ImGuiContextPtr ctx) - { - ImGuiPNative.DockContextRebuildNodes(ctx); - } - public static void DockContextRebuildNodes(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextRebuildNodes((ImGuiContext*)pctx); - } - } - public static void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) - { - ImGuiPNative.DockContextNewFrameUpdateUndocking(ctx); - } - public static void DockContextNewFrameUpdateUndocking(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextNewFrameUpdateUndocking((ImGuiContext*)pctx); - } - } - public static void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) - { - ImGuiPNative.DockContextNewFrameUpdateDocking(ctx); - } - public static void DockContextNewFrameUpdateDocking(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextNewFrameUpdateDocking((ImGuiContext*)pctx); - } - } - public static void DockContextEndFrame(ImGuiContextPtr ctx) - { - ImGuiPNative.DockContextEndFrame(ctx); - } - public static void DockContextEndFrame(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextEndFrame((ImGuiContext*)pctx); - } - } - public static uint DockContextGenNodeID(ImGuiContextPtr ctx) - { - uint ret = ImGuiPNative.DockContextGenNodeID(ctx); - return ret; - } - public static uint DockContextGenNodeID(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - uint ret = ImGuiPNative.DockContextGenNodeID((ImGuiContext*)pctx); - return ret; - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - ImGuiPNative.DockContextQueueDock(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - ImGuiPNative.DockContextQueueDock(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - ImGuiPNative.DockContextQueueDock((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - } - public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) - { - ImGuiPNative.DockContextQueueUndockWindow(ctx, window); - } - public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ImGuiWindowPtr window) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextQueueUndockWindow((ImGuiContext*)pctx, window); - } - } - public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.DockContextQueueUndockWindow(ctx, (ImGuiWindow*)pwindow); - } - } - public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ref ImGuiWindow window) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.DockContextQueueUndockWindow((ImGuiContext*)pctx, (ImGuiWindow*)pwindow); - } - } - } - public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) - { - ImGuiPNative.DockContextQueueUndockNode(ctx, node); - } - public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ImGuiDockNodePtr node) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiPNative.DockContextQueueUndockNode((ImGuiContext*)pctx, node); - } - } - public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - ImGuiPNative.DockContextQueueUndockNode(ctx, (ImGuiDockNode*)pnode); - } - } - public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ref ImGuiDockNode node) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* pnode = &node) - { - ImGuiPNative.DockContextQueueUndockNode((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); - } - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = ImGuiPNative.DockContextCalcDropPosForDocking((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - } - public static bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) - { - byte ret = ImGuiPNative.DockNodeBeginAmendTabBar(node); - return ret != 0; - } - public static bool DockNodeBeginAmendTabBar(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte ret = ImGuiPNative.DockNodeBeginAmendTabBar((ImGuiDockNode*)pnode); - return ret != 0; - } - } - public static void DockNodeEndAmendTabBar() - { - ImGuiPNative.DockNodeEndAmendTabBar(); - } - public static ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node) - { - ImGuiDockNodePtr ret = ImGuiPNative.DockNodeGetRootNode(node); - return ret; - } - public static ImGuiDockNodePtr DockNodeGetRootNode(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - ImGuiDockNodePtr ret = ImGuiPNative.DockNodeGetRootNode((ImGuiDockNode*)pnode); - return ret; - } - } - public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent) - { - byte ret = ImGuiPNative.DockNodeIsInHierarchyOf(node, parent); - return ret != 0; - } - public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ImGuiDockNodePtr parent) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte ret = ImGuiPNative.DockNodeIsInHierarchyOf((ImGuiDockNode*)pnode, parent); - return ret != 0; - } - } - public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ref ImGuiDockNode parent) - { - fixed (ImGuiDockNode* pparent = &parent) - { - byte ret = ImGuiPNative.DockNodeIsInHierarchyOf(node, (ImGuiDockNode*)pparent); - return ret != 0; - } - } - public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ref ImGuiDockNode parent) - { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (ImGuiDockNode* pparent = &parent) - { - byte ret = ImGuiPNative.DockNodeIsInHierarchyOf((ImGuiDockNode*)pnode, (ImGuiDockNode*)pparent); - return ret != 0; - } - } - } - public static int DockNodeGetDepth(ImGuiDockNodePtr node) - { - int ret = ImGuiPNative.DockNodeGetDepth(node); - return ret; - } - public static int DockNodeGetDepth(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - int ret = ImGuiPNative.DockNodeGetDepth((ImGuiDockNode*)pnode); - return ret; - } - } - public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node) - { - uint ret = ImGuiPNative.DockNodeGetWindowMenuButtonId(node); - return ret; - } - public static uint DockNodeGetWindowMenuButtonId(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - uint ret = ImGuiPNative.DockNodeGetWindowMenuButtonId((ImGuiDockNode*)pnode); - return ret; - } - } - public static ImGuiDockNodePtr GetWindowDockNode() - { - ImGuiDockNodePtr ret = ImGuiPNative.GetWindowDockNode(); - return ret; - } - public static bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window) - { - byte ret = ImGuiPNative.GetWindowAlwaysWantOwnTabBar(window); - return ret != 0; - } - public static bool GetWindowAlwaysWantOwnTabBar(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = ImGuiPNative.GetWindowAlwaysWantOwnTabBar((ImGuiWindow*)pwindow); - return ret != 0; - } - } - public static void BeginDocked(ImGuiWindowPtr window, bool* pOpen) - { - ImGuiPNative.BeginDocked(window, pOpen); - } - public static void BeginDocked(ref ImGuiWindow window, bool* pOpen) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.BeginDocked((ImGuiWindow*)pwindow, pOpen); - } - } - public static void BeginDocked(ImGuiWindowPtr window, ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ImGuiPNative.BeginDocked(window, (bool*)ppOpen); - } - } - public static void BeginDocked(ref ImGuiWindow window, ref bool pOpen) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (bool* ppOpen = &pOpen) - { - ImGuiPNative.BeginDocked((ImGuiWindow*)pwindow, (bool*)ppOpen); - } - } - } - public static void BeginDockableDragDropSource(ImGuiWindowPtr window) - { - ImGuiPNative.BeginDockableDragDropSource(window); - } - public static void BeginDockableDragDropSource(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.BeginDockableDragDropSource((ImGuiWindow*)pwindow); - } - } - public static void BeginDockableDragDropTarget(ImGuiWindowPtr window) - { - ImGuiPNative.BeginDockableDragDropTarget(window); - } - public static void BeginDockableDragDropTarget(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.BeginDockableDragDropTarget((ImGuiWindow*)pwindow); - } - } - public static void SetWindowDock(ImGuiWindowPtr window, uint dockId, ImGuiCond cond) - { - ImGuiPNative.SetWindowDock(window, dockId, cond); - } - public static void SetWindowDock(ref ImGuiWindow window, uint dockId, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowDock((ImGuiWindow*)pwindow, dockId, cond); - } - } - public static ImGuiDockNodePtr DockBuilderGetNode(uint nodeId) - { - ImGuiDockNodePtr ret = ImGuiPNative.DockBuilderGetNode(nodeId); - return ret; - } - public static ImGuiDockNodePtr DockBuilderGetCentralNode(uint nodeId) - { - ImGuiDockNodePtr ret = ImGuiPNative.DockBuilderGetCentralNode(nodeId); - return ret; - } - public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags) - { - uint ret = ImGuiPNative.DockBuilderAddNode(nodeId, flags); - return ret; - } - public static uint DockBuilderAddNode(uint nodeId) - { - uint ret = ImGuiPNative.DockBuilderAddNode(nodeId, (ImGuiDockNodeFlags)(0)); - return ret; - } - public static uint DockBuilderAddNode() - { - uint ret = ImGuiPNative.DockBuilderAddNode((uint)(0), (ImGuiDockNodeFlags)(0)); - return ret; - } - public static uint DockBuilderAddNode(ImGuiDockNodeFlags flags) - { - uint ret = ImGuiPNative.DockBuilderAddNode((uint)(0), flags); - return ret; - } - public static void DockBuilderRemoveNode(uint nodeId) - { - ImGuiPNative.DockBuilderRemoveNode(nodeId); - } - public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, bool clearSettingsRefs) - { - ImGuiPNative.DockBuilderRemoveNodeDockedWindows(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); - } - public static void DockBuilderRemoveNodeDockedWindows(uint nodeId) - { - ImGuiPNative.DockBuilderRemoveNodeDockedWindows(nodeId, (byte)(1)); - } - public static void DockBuilderRemoveNodeChildNodes(uint nodeId) - { - ImGuiPNative.DockBuilderRemoveNodeChildNodes(nodeId); - } - public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos) - { - ImGuiPNative.DockBuilderSetNodePos(nodeId, pos); - } - public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size) - { - ImGuiPNative.DockBuilderSetNodeSize(nodeId, size); - } - public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) - { - uint ret = ImGuiPNative.DockBuilderSplitNode(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); - return ret; - } - public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector<ConstPointer<byte>>* inWindowRemapPairs) - { - ImGuiPNative.DockBuilderCopyDockSpace(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); - } - public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ref ImVector<ConstPointer<byte>> inWindowRemapPairs) - { - fixed (ImVector<ConstPointer<byte>>* pinWindowRemapPairs = &inWindowRemapPairs) - { - ImGuiPNative.DockBuilderCopyDockSpace(srcDockspaceId, dstDockspaceId, (ImVector<ConstPointer<byte>>*)pinWindowRemapPairs); - } - } - public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector<uint>* outNodeRemapPairs) - { - ImGuiPNative.DockBuilderCopyNode(srcNodeId, dstNodeId, outNodeRemapPairs); - } - public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector<uint> outNodeRemapPairs) - { - fixed (ImVector<uint>* poutNodeRemapPairs = &outNodeRemapPairs) - { - ImGuiPNative.DockBuilderCopyNode(srcNodeId, dstNodeId, (ImVector<uint>*)poutNodeRemapPairs); - } - } - public static void DockBuilderFinish(uint nodeId) - { - ImGuiPNative.DockBuilderFinish(nodeId); - } - public static bool IsDragDropActive() - { - byte ret = ImGuiPNative.IsDragDropActive(); - return ret != 0; - } - public static bool BeginDragDropTargetCustom(ImRect bb, uint id) - { - byte ret = ImGuiPNative.BeginDragDropTargetCustom(bb, id); - return ret != 0; - } - public static void ClearDragDrop() - { - ImGuiPNative.ClearDragDrop(); - } - public static bool IsDragDropPayloadBeingAccepted() - { - byte ret = ImGuiPNative.IsDragDropPayloadBeingAccepted(); - return ret != 0; - } - public static void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, ImRect clipRect) - { - ImGuiPNative.SetWindowClipRectBeforeSetChannel(window, clipRect); - } - public static void SetWindowClipRectBeforeSetChannel(ref ImGuiWindow window, ImRect clipRect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.SetWindowClipRectBeforeSetChannel((ImGuiWindow*)pwindow, clipRect); - } - } - public static void EndColumns() - { - ImGuiPNative.EndColumns(); - } - public static void PushColumnClipRect(int columnIndex) - { - ImGuiPNative.PushColumnClipRect(columnIndex); - } - public static void PushColumnsBackground() - { - ImGuiPNative.PushColumnsBackground(); - } - public static void PopColumnsBackground() - { - ImGuiPNative.PopColumnsBackground(); - } - public static ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, uint id) - { - ImGuiOldColumnsPtr ret = ImGuiPNative.FindOrCreateColumns(window, id); - return ret; - } - public static ImGuiOldColumnsPtr FindOrCreateColumns(ref ImGuiWindow window, uint id) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiOldColumnsPtr ret = ImGuiPNative.FindOrCreateColumns((ImGuiWindow*)pwindow, id); - return ret; - } - } - public static float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm) - { - float ret = ImGuiPNative.GetColumnOffsetFromNorm(columns, offsetNorm); - return ret; - } - public static float GetColumnOffsetFromNorm(ref ImGuiOldColumns columns, float offsetNorm) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - float ret = ImGuiPNative.GetColumnOffsetFromNorm((ImGuiOldColumns*)pcolumns, offsetNorm); - return ret; - } - } - public static float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset) - { - float ret = ImGuiPNative.GetColumnNormFromOffset(columns, offset); - return ret; - } - public static float GetColumnNormFromOffset(ref ImGuiOldColumns columns, float offset) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - float ret = ImGuiPNative.GetColumnNormFromOffset((ImGuiOldColumns*)pcolumns, offset); - return ret; - } - } - public static void TableOpenContextMenu(int columnN) - { - ImGuiPNative.TableOpenContextMenu(columnN); - } - public static void TableOpenContextMenu() - { - ImGuiPNative.TableOpenContextMenu((int)(-1)); - } - public static void TableSetColumnWidth(int columnN, float width) - { - ImGuiPNative.TableSetColumnWidth(columnN, width); - } - public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, bool appendToSortSpecs) - { - ImGuiPNative.TableSetColumnSortDirection(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); - } - public static int TableGetHoveredColumn() - { - int ret = ImGuiPNative.TableGetHoveredColumn(); - return ret; - } - public static float TableGetHeaderRowHeight() - { - float ret = ImGuiPNative.TableGetHeaderRowHeight(); - return ret; - } - public static void TablePushBackgroundChannel() - { - ImGuiPNative.TablePushBackgroundChannel(); - } - public static void TablePopBackgroundChannel() - { - ImGuiPNative.TablePopBackgroundChannel(); - } - public static ImGuiTablePtr GetCurrentTable() - { - ImGuiTablePtr ret = ImGuiPNative.GetCurrentTable(); - return ret; - } - public static ImGuiTablePtr TableFindByID(uint id) - { - ImGuiTablePtr ret = ImGuiPNative.TableFindByID(id); - return ret; - } - public static void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) - { - ImGuiPNative.TableBeginInitMemory(table, columnsCount); - } - public static void TableBeginInitMemory(ref ImGuiTable table, int columnsCount) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableBeginInitMemory((ImGuiTable*)ptable, columnsCount); - } - } - public static void TableBeginApplyRequests(ImGuiTablePtr table) - { - ImGuiPNative.TableBeginApplyRequests(table); - } - public static void TableBeginApplyRequests(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableBeginApplyRequests((ImGuiTable*)ptable); - } - } - public static void TableSetupDrawChannels(ImGuiTablePtr table) - { - ImGuiPNative.TableSetupDrawChannels(table); - } - public static void TableSetupDrawChannels(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableSetupDrawChannels((ImGuiTable*)ptable); - } - } - public static void TableUpdateLayout(ImGuiTablePtr table) - { - ImGuiPNative.TableUpdateLayout(table); - } - public static void TableUpdateLayout(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableUpdateLayout((ImGuiTable*)ptable); - } - } - public static void TableUpdateBorders(ImGuiTablePtr table) - { - ImGuiPNative.TableUpdateBorders(table); - } - public static void TableUpdateBorders(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableUpdateBorders((ImGuiTable*)ptable); - } - } - public static void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) - { - ImGuiPNative.TableUpdateColumnsWeightFromWidth(table); - } - public static void TableUpdateColumnsWeightFromWidth(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableUpdateColumnsWeightFromWidth((ImGuiTable*)ptable); - } - } - public static void TableDrawBorders(ImGuiTablePtr table) - { - ImGuiPNative.TableDrawBorders(table); - } - public static void TableDrawBorders(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableDrawBorders((ImGuiTable*)ptable); - } - } - public static void TableDrawContextMenu(ImGuiTablePtr table) - { - ImGuiPNative.TableDrawContextMenu(table); - } - public static void TableDrawContextMenu(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableDrawContextMenu((ImGuiTable*)ptable); - } - } - public static void TableMergeDrawChannels(ImGuiTablePtr table) - { - ImGuiPNative.TableMergeDrawChannels(table); - } - public static void TableMergeDrawChannels(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableMergeDrawChannels((ImGuiTable*)ptable); - } - } - public static ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) - { - ImGuiTableInstanceDataPtr ret = ImGuiPNative.TableGetInstanceData(table, instanceNo); - return ret; - } - public static ImGuiTableInstanceDataPtr TableGetInstanceData(ref ImGuiTable table, int instanceNo) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiTableInstanceDataPtr ret = ImGuiPNative.TableGetInstanceData((ImGuiTable*)ptable, instanceNo); - return ret; - } - } - public static void TableSortSpecsSanitize(ImGuiTablePtr table) - { - ImGuiPNative.TableSortSpecsSanitize(table); - } - public static void TableSortSpecsSanitize(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableSortSpecsSanitize((ImGuiTable*)ptable); - } - } - public static void TableSortSpecsBuild(ImGuiTablePtr table) - { - ImGuiPNative.TableSortSpecsBuild(table); - } - public static void TableSortSpecsBuild(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableSortSpecsBuild((ImGuiTable*)ptable); - } - } - public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) - { - ImGuiSortDirection ret = ImGuiPNative.TableGetColumnNextSortDirection(column); - return ret; - } - public static ImGuiSortDirection TableGetColumnNextSortDirection(ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - ImGuiSortDirection ret = ImGuiPNative.TableGetColumnNextSortDirection((ImGuiTableColumn*)pcolumn); - return ret; - } - } - public static void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) - { - ImGuiPNative.TableFixColumnSortDirection(table, column); - } - public static void TableFixColumnSortDirection(ref ImGuiTable table, ImGuiTableColumnPtr column) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableFixColumnSortDirection((ImGuiTable*)ptable, column); - } - } - public static void TableFixColumnSortDirection(ImGuiTablePtr table, ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - ImGuiPNative.TableFixColumnSortDirection(table, (ImGuiTableColumn*)pcolumn); - } - } - public static void TableFixColumnSortDirection(ref ImGuiTable table, ref ImGuiTableColumn column) - { - fixed (ImGuiTable* ptable = &table) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - ImGuiPNative.TableFixColumnSortDirection((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); - } - } - } - public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) - { - float ret = ImGuiPNative.TableGetColumnWidthAuto(table, column); - return ret; - } - public static float TableGetColumnWidthAuto(ref ImGuiTable table, ImGuiTableColumnPtr column) - { - fixed (ImGuiTable* ptable = &table) - { - float ret = ImGuiPNative.TableGetColumnWidthAuto((ImGuiTable*)ptable, column); - return ret; - } - } - public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - float ret = ImGuiPNative.TableGetColumnWidthAuto(table, (ImGuiTableColumn*)pcolumn); - return ret; - } - } - public static float TableGetColumnWidthAuto(ref ImGuiTable table, ref ImGuiTableColumn column) - { - fixed (ImGuiTable* ptable = &table) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - float ret = ImGuiPNative.TableGetColumnWidthAuto((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); - return ret; - } - } - } - public static void TableBeginRow(ImGuiTablePtr table) - { - ImGuiPNative.TableBeginRow(table); - } - public static void TableBeginRow(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableBeginRow((ImGuiTable*)ptable); - } - } - public static void TableEndRow(ImGuiTablePtr table) - { - ImGuiPNative.TableEndRow(table); - } - public static void TableEndRow(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableEndRow((ImGuiTable*)ptable); - } - } - public static void TableBeginCell(ImGuiTablePtr table, int columnN) - { - ImGuiPNative.TableBeginCell(table, columnN); - } - public static void TableBeginCell(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableBeginCell((ImGuiTable*)ptable, columnN); - } - } - public static void TableEndCell(ImGuiTablePtr table) - { - ImGuiPNative.TableEndCell(table); - } - public static void TableEndCell(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableEndCell((ImGuiTable*)ptable); - } - } - public static ImRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) - { - ImRect ret; - ImGuiPNative.TableGetCellBgRect(&ret, table, columnN); - return ret; - } - public static void TableGetCellBgRect(ImRectPtr pOut, ImGuiTablePtr table, int columnN) - { - ImGuiPNative.TableGetCellBgRect(pOut, table, columnN); - } - public static void TableGetCellBgRect(ref ImRect pOut, ImGuiTablePtr table, int columnN) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.TableGetCellBgRect((ImRect*)ppOut, table, columnN); - } - } - public static ImRect TableGetCellBgRect(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - ImRect ret; - ImGuiPNative.TableGetCellBgRect(&ret, (ImGuiTable*)ptable, columnN); - return ret; - } - } - public static void TableGetCellBgRect(ImRectPtr pOut, ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableGetCellBgRect(pOut, (ImGuiTable*)ptable, columnN); - } - } - public static void TableGetCellBgRect(ref ImRect pOut, ref ImGuiTable table, int columnN) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableGetCellBgRect((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); - } - } - } - public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo) - { - uint ret = ImGuiPNative.TableGetColumnResizeID(table, columnN, instanceNo); - return ret; - } - public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN) - { - uint ret = ImGuiPNative.TableGetColumnResizeID(table, columnN, (int)(0)); - return ret; - } - public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN, int instanceNo) - { - fixed (ImGuiTable* ptable = &table) - { - uint ret = ImGuiPNative.TableGetColumnResizeID((ImGuiTable*)ptable, columnN, instanceNo); - return ret; - } - } - public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - uint ret = ImGuiPNative.TableGetColumnResizeID((ImGuiTable*)ptable, columnN, (int)(0)); - return ret; - } - } - public static float TableGetMaxColumnWidth(ImGuiTablePtr table, int columnN) - { - float ret = ImGuiPNative.TableGetMaxColumnWidth(table, columnN); - return ret; - } - public static float TableGetMaxColumnWidth(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - float ret = ImGuiPNative.TableGetMaxColumnWidth((ImGuiTable*)ptable, columnN); - return ret; - } - } - public static void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) - { - ImGuiPNative.TableSetColumnWidthAutoSingle(table, columnN); - } - public static void TableSetColumnWidthAutoSingle(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableSetColumnWidthAutoSingle((ImGuiTable*)ptable, columnN); - } - } - public static void TableSetColumnWidthAutoAll(ImGuiTablePtr table) - { - ImGuiPNative.TableSetColumnWidthAutoAll(table); - } - public static void TableSetColumnWidthAutoAll(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableSetColumnWidthAutoAll((ImGuiTable*)ptable); - } - } - public static void TableRemove(ImGuiTablePtr table) - { - ImGuiPNative.TableRemove(table); - } - public static void TableRemove(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableRemove((ImGuiTable*)ptable); - } - } - public static void TableGcCompactTransientBuffers(ImGuiTablePtr table) - { - ImGuiPNative.TableGcCompactTransientBuffers(table); - } - public static void TableGcCompactTransientBuffers(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableGcCompactTransientBuffers((ImGuiTable*)ptable); - } - } - public static void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) - { - ImGuiPNative.TableGcCompactTransientBuffers(table); - } - public static void TableGcCompactTransientBuffers(ref ImGuiTableTempData table) - { - fixed (ImGuiTableTempData* ptable = &table) - { - ImGuiPNative.TableGcCompactTransientBuffers((ImGuiTableTempData*)ptable); - } - } - public static void TableGcCompactSettings() - { - ImGuiPNative.TableGcCompactSettings(); - } - public static void TableLoadSettings(ImGuiTablePtr table) - { - ImGuiPNative.TableLoadSettings(table); - } - public static void TableLoadSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableLoadSettings((ImGuiTable*)ptable); - } - } - public static void TableSaveSettings(ImGuiTablePtr table) - { - ImGuiPNative.TableSaveSettings(table); - } - public static void TableSaveSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableSaveSettings((ImGuiTable*)ptable); - } - } - public static void TableResetSettings(ImGuiTablePtr table) - { - ImGuiPNative.TableResetSettings(table); - } - public static void TableResetSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.TableResetSettings((ImGuiTable*)ptable); - } - } - public static ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) - { - ImGuiTableSettingsPtr ret = ImGuiPNative.TableGetBoundSettings(table); - return ret; - } - public static ImGuiTableSettingsPtr TableGetBoundSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiTableSettingsPtr ret = ImGuiPNative.TableGetBoundSettings((ImGuiTable*)ptable); - return ret; - } - } - public static void TableSettingsAddSettingsHandler() - { - ImGuiPNative.TableSettingsAddSettingsHandler(); - } - public static ImGuiTableSettingsPtr TableSettingsCreate(uint id, int columnsCount) - { - ImGuiTableSettingsPtr ret = ImGuiPNative.TableSettingsCreate(id, columnsCount); - return ret; - } - public static ImGuiTableSettingsPtr TableSettingsFindByID(uint id) - { - ImGuiTableSettingsPtr ret = ImGuiPNative.TableSettingsFindByID(id); - return ret; - } - public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) - { - byte ret = ImGuiPNative.BeginTabBarEx(tabBar, bb, flags, dockNode); - return ret != 0; - } - public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = ImGuiPNative.BeginTabBarEx((ImGuiTabBar*)ptabBar, bb, flags, dockNode); - return ret != 0; - } - } - public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = ImGuiPNative.BeginTabBarEx(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = ImGuiPNative.BeginTabBarEx((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - } - public static ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, uint tabId) - { - ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindTabByID(tabBar, tabId); - return ret; - } - public static ImGuiTabItemPtr TabBarFindTabByID(ref ImGuiTabBar tabBar, uint tabId) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindTabByID((ImGuiTabBar*)ptabBar, tabId); - return ret; - } - } - public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBarPtr tabBar) - { - ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindMostRecentlySelectedTabForActiveWindow(tabBar); - return ret; - } - public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ref ImGuiTabBar tabBar) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItemPtr ret = ImGuiPNative.TabBarFindMostRecentlySelectedTabForActiveWindow((ImGuiTabBar*)ptabBar); - return ret; - } - } - public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) - { - ImGuiPNative.TabBarAddTab(tabBar, tabFlags, window); - } - public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiPNative.TabBarAddTab((ImGuiTabBar*)ptabBar, tabFlags, window); - } - } - public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.TabBarAddTab(tabBar, tabFlags, (ImGuiWindow*)pwindow); - } - } - public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.TabBarAddTab((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); - } - } - } - public static void TabBarRemoveTab(ImGuiTabBarPtr tabBar, uint tabId) - { - ImGuiPNative.TabBarRemoveTab(tabBar, tabId); - } - public static void TabBarRemoveTab(ref ImGuiTabBar tabBar, uint tabId) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiPNative.TabBarRemoveTab((ImGuiTabBar*)ptabBar, tabId); - } - } - public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) - { - ImGuiPNative.TabBarCloseTab(tabBar, tab); - } - public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiPNative.TabBarCloseTab((ImGuiTabBar*)ptabBar, tab); - } - } - public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - ImGuiPNative.TabBarCloseTab(tabBar, (ImGuiTabItem*)ptab); - } - } - public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - ImGuiPNative.TabBarCloseTab((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); - } - } - } - public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) - { - ImGuiPNative.TabBarQueueReorder(tabBar, tab, offset); - } - public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, int offset) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiPNative.TabBarQueueReorder((ImGuiTabBar*)ptabBar, tab, offset); - } - } - public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, int offset) - { - fixed (ImGuiTabItem* ptab = &tab) - { - ImGuiPNative.TabBarQueueReorder(tabBar, (ImGuiTabItem*)ptab, offset); - } - } - public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, int offset) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - ImGuiPNative.TabBarQueueReorder((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); - } - } - } - public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) - { - ImGuiPNative.TabBarQueueReorderFromMousePos(tabBar, tab, mousePos); - } - public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiPNative.TabBarQueueReorderFromMousePos((ImGuiTabBar*)ptabBar, tab, mousePos); - } - } - public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, Vector2 mousePos) - { - fixed (ImGuiTabItem* ptab = &tab) - { - ImGuiPNative.TabBarQueueReorderFromMousePos(tabBar, (ImGuiTabItem*)ptab, mousePos); - } - } - public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, Vector2 mousePos) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - ImGuiPNative.TabBarQueueReorderFromMousePos((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); - } - } - } - public static bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) - { - byte ret = ImGuiPNative.TabBarProcessReorder(tabBar); - return ret != 0; - } - public static bool TabBarProcessReorder(ref ImGuiTabBar tabBar) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = ImGuiPNative.TabBarProcessReorder((ImGuiTabBar*)ptabBar); - return ret != 0; - } - } - public static void TabItemBackground(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - ImGuiPNative.TabItemBackground(drawList, bb, flags, col); - } - public static void TabItemBackground(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.TabItemBackground((ImDrawList*)pdrawList, bb, flags, col); - } - } - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding) - { - ImGuiPNative.RenderFrame(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); - } - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border) - { - ImGuiPNative.RenderFrame(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, (float)(0.0f)); - } - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol) - { - ImGuiPNative.RenderFrame(pMin, pMax, fillCol, (byte)(1), (float)(0.0f)); - } - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, float rounding) - { - ImGuiPNative.RenderFrame(pMin, pMax, fillCol, (byte)(1), rounding); - } - public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding) - { - ImGuiPNative.RenderFrameBorder(pMin, pMax, rounding); - } - public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax) - { - ImGuiPNative.RenderFrameBorder(pMin, pMax, (float)(0.0f)); - } - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - } - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); - } - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); - } - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); - } - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - } - } - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); - } - } - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); - } - } - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderColorRectWithAlphaCheckerboard((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); - } - } - public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags) - { - ImGuiPNative.RenderNavHighlight(bb, id, flags); - } - public static void RenderNavHighlight(ImRect bb, uint id) - { - ImGuiPNative.RenderNavHighlight(bb, id, (ImGuiNavHighlightFlags)(ImGuiNavHighlightFlags.TypeDefault)); - } - public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) - { - ImGuiPNative.RenderMouseCursor(pos, scale, mouseCursor, colFill, colBorder, colShadow); - } - public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - ImGuiPNative.RenderArrow(drawList, pos, col, dir, scale); - } - public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir) - { - ImGuiPNative.RenderArrow(drawList, pos, col, dir, (float)(1.0f)); - } - public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderArrow((ImDrawList*)pdrawList, pos, col, dir, scale); - } - } - public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderArrow((ImDrawList*)pdrawList, pos, col, dir, (float)(1.0f)); - } - } - public static void RenderBullet(ImDrawListPtr drawList, Vector2 pos, uint col) - { - ImGuiPNative.RenderBullet(drawList, pos, col); - } - public static void RenderBullet(ref ImDrawList drawList, Vector2 pos, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderBullet((ImDrawList*)pdrawList, pos, col); - } - } - public static void RenderCheckMark(ImDrawListPtr drawList, Vector2 pos, uint col, float sz) - { - ImGuiPNative.RenderCheckMark(drawList, pos, col, sz); - } - public static void RenderCheckMark(ref ImDrawList drawList, Vector2 pos, uint col, float sz) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderCheckMark((ImDrawList*)pdrawList, pos, col, sz); - } - } - public static void RenderArrowPointingAt(ImDrawListPtr drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - ImGuiPNative.RenderArrowPointingAt(drawList, pos, halfSz, direction, col); - } - public static void RenderArrowPointingAt(ref ImDrawList drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderArrowPointingAt((ImDrawList*)pdrawList, pos, halfSz, direction, col); - } - } - public static void RenderArrowDockMenu(ImDrawListPtr drawList, Vector2 pMin, float sz, uint col) - { - ImGuiPNative.RenderArrowDockMenu(drawList, pMin, sz, col); - } - public static void RenderArrowDockMenu(ref ImDrawList drawList, Vector2 pMin, float sz, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderArrowDockMenu((ImDrawList*)pdrawList, pMin, sz, col); - } - } - public static void RenderRectFilledRangeH(ImDrawListPtr drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - ImGuiPNative.RenderRectFilledRangeH(drawList, rect, col, xStartNorm, xEndNorm, rounding); - } - public static void RenderRectFilledRangeH(ref ImDrawList drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderRectFilledRangeH((ImDrawList*)pdrawList, rect, col, xStartNorm, xEndNorm, rounding); - } - } - public static void RenderRectFilledWithHole(ImDrawListPtr drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - ImGuiPNative.RenderRectFilledWithHole(drawList, outer, inner, col, rounding); - } - public static void RenderRectFilledWithHole(ref ImDrawList drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.RenderRectFilledWithHole((ImDrawList*)pdrawList, outer, inner, col, rounding); - } - } - public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold) - { - ImDrawFlags ret = ImGuiPNative.CalcRoundingFlagsForRectInRect(rIn, rOuter, threshold); - return ret; - } - public static bool CloseButton(uint id, Vector2 pos) - { - byte ret = ImGuiPNative.CloseButton(id, pos); - return ret != 0; - } - public static bool CollapseButton(uint id, Vector2 pos, ImGuiDockNodePtr dockNode) - { - byte ret = ImGuiPNative.CollapseButton(id, pos, dockNode); - return ret != 0; - } - public static bool CollapseButton(uint id, Vector2 pos, ref ImGuiDockNode dockNode) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = ImGuiPNative.CollapseButton(id, pos, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - public static void Scrollbar(ImGuiAxis axis) - { - ImGuiPNative.Scrollbar(axis); - } - public static bool ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) - { - byte ret = ImGuiPNative.ScrollbarEx(bb, id, axis, pScrollV, availV, contentsV, flags); - return ret != 0; - } - public static bool ImageButtonEx(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImGuiPNative.ImageButtonEx(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); - return ret != 0; - } - public static ImRect GetWindowScrollbarRect(ImGuiWindowPtr window, ImGuiAxis axis) - { - ImRect ret; - ImGuiPNative.GetWindowScrollbarRect(&ret, window, axis); - return ret; - } - public static void GetWindowScrollbarRect(ImRectPtr pOut, ImGuiWindowPtr window, ImGuiAxis axis) - { - ImGuiPNative.GetWindowScrollbarRect(pOut, window, axis); - } - public static void GetWindowScrollbarRect(ref ImRect pOut, ImGuiWindowPtr window, ImGuiAxis axis) - { - fixed (ImRect* ppOut = &pOut) - { - ImGuiPNative.GetWindowScrollbarRect((ImRect*)ppOut, window, axis); - } - } - public static ImRect GetWindowScrollbarRect(ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - ImGuiPNative.GetWindowScrollbarRect(&ret, (ImGuiWindow*)pwindow, axis); - return ret; - } - } - public static void GetWindowScrollbarRect(ImRectPtr pOut, ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.GetWindowScrollbarRect(pOut, (ImGuiWindow*)pwindow, axis); - } - } - public static void GetWindowScrollbarRect(ref ImRect pOut, ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.GetWindowScrollbarRect((ImRect*)ppOut, (ImGuiWindow*)pwindow, axis); - } - } - } - public static uint GetWindowScrollbarID(ImGuiWindowPtr window, ImGuiAxis axis) - { - uint ret = ImGuiPNative.GetWindowScrollbarID(window, axis); - return ret; - } - public static uint GetWindowScrollbarID(ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImGuiWindow* pwindow = &window) - { - uint ret = ImGuiPNative.GetWindowScrollbarID((ImGuiWindow*)pwindow, axis); - return ret; - } - } - public static uint GetWindowResizeCornerID(ImGuiWindowPtr window, int n) - { - uint ret = ImGuiPNative.GetWindowResizeCornerID(window, n); - return ret; - } - public static uint GetWindowResizeCornerID(ref ImGuiWindow window, int n) - { - fixed (ImGuiWindow* pwindow = &window) - { - uint ret = ImGuiPNative.GetWindowResizeCornerID((ImGuiWindow*)pwindow, n); - return ret; - } - } - public static uint GetWindowResizeBorderID(ImGuiWindowPtr window, ImGuiDir dir) - { - uint ret = ImGuiPNative.GetWindowResizeBorderID(window, dir); - return ret; - } - public static uint GetWindowResizeBorderID(ref ImGuiWindow window, ImGuiDir dir) - { - fixed (ImGuiWindow* pwindow = &window) - { - uint ret = ImGuiPNative.GetWindowResizeBorderID((ImGuiWindow*)pwindow, dir); - return ret; - } - } - public static void SeparatorEx(ImGuiSeparatorFlags flags) - { - ImGuiPNative.SeparatorEx(flags); - } - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, outHeld, flags); - return ret != 0; - } - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, outHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld, ImGuiButtonFlags flags) - { - fixed (bool* poutHovered = &outHovered) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, outHeld, flags); - return ret != 0; - } - } - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld) - { - fixed (bool* poutHovered = &outHovered) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, outHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld, ImGuiButtonFlags flags) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, (bool*)poutHeld, flags); - return ret != 0; - } - } - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, outHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld, ImGuiButtonFlags flags) - { - fixed (bool* poutHovered = &outHovered) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, (bool*)poutHeld, flags); - return ret != 0; - } - } - } - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld) - { - fixed (bool* poutHovered = &outHovered) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ImGuiPNative.ButtonBehavior(bb, id, (bool*)poutHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, uint bgCol) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - fixed (float* psize1 = &size1) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - fixed (float* psize1 = &size1) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend) - { - fixed (float* psize1 = &size1) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2) - { - fixed (float* psize1 = &size1) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - fixed (float* psize1 = &size1) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, uint bgCol) - { - fixed (float* psize1 = &size1) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, uint bgCol) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - } - } - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, uint bgCol) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = ImGuiPNative.SplitterBehavior(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - } - } - public static bool TreeNodeBehaviorIsOpen(uint id, ImGuiTreeNodeFlags flags) - { - byte ret = ImGuiPNative.TreeNodeBehaviorIsOpen(id, flags); - return ret != 0; - } - public static bool TreeNodeBehaviorIsOpen(uint id) - { - byte ret = ImGuiPNative.TreeNodeBehaviorIsOpen(id, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - public static void TreePushOverrideID(uint id) - { - ImGuiPNative.TreePushOverrideID(id); - } - public static ImGuiDataTypeInfoPtr DataTypeGetInfo(ImGuiDataType dataType) - { - ImGuiDataTypeInfoPtr ret = ImGuiPNative.DataTypeGetInfo(dataType); - return ret; - } - public static void DataTypeApplyOp(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) - { - ImGuiPNative.DataTypeApplyOp(dataType, op, output, arg1, arg2); - } - public static int DataTypeCompare(ImGuiDataType dataType, void* arg1, void* arg2) - { - int ret = ImGuiPNative.DataTypeCompare(dataType, arg1, arg2); - return ret; - } - public static bool DataTypeClamp(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte ret = ImGuiPNative.DataTypeClamp(dataType, pData, pMin, pMax); - return ret != 0; - } - public static bool TempInputIsActive(uint id) - { - byte ret = ImGuiPNative.TempInputIsActive(id); - return ret != 0; - } - public static ImGuiInputTextStatePtr GetInputTextState(uint id) - { - ImGuiInputTextStatePtr ret = ImGuiPNative.GetInputTextState(id); - return ret; - } - public static void ShadeVertsLinearColorGradientKeepAlpha(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - ImGuiPNative.ShadeVertsLinearColorGradientKeepAlpha(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - } - public static void ShadeVertsLinearColorGradientKeepAlpha(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.ShadeVertsLinearColorGradientKeepAlpha((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - } - } - public static void ShadeVertsLinearUV(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) - { - ImGuiPNative.ShadeVertsLinearUV(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); - } - public static void ShadeVertsLinearUV(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.ShadeVertsLinearUV((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); - } - } - public static void GcCompactTransientMiscBuffers() - { - ImGuiPNative.GcCompactTransientMiscBuffers(); - } - public static void GcCompactTransientWindowBuffers(ImGuiWindowPtr window) - { - ImGuiPNative.GcCompactTransientWindowBuffers(window); - } - public static void GcCompactTransientWindowBuffers(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.GcCompactTransientWindowBuffers((ImGuiWindow*)pwindow); - } - } - public static void GcAwakeTransientWindowBuffers(ImGuiWindowPtr window) - { - ImGuiPNative.GcAwakeTransientWindowBuffers(window); - } - public static void GcAwakeTransientWindowBuffers(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiPNative.GcAwakeTransientWindowBuffers((ImGuiWindow*)pwindow); - } - } - public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - ImGuiPNative.ErrorCheckEndFrameRecover(logCallback, userData); - } - public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback) - { - ImGuiPNative.ErrorCheckEndFrameRecover(logCallback, (void*)(default)); - } - public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - ImGuiPNative.ErrorCheckEndWindowRecover(logCallback, userData); - } - public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback) - { - ImGuiPNative.ErrorCheckEndWindowRecover(logCallback, (void*)(default)); - } - public static void DebugDrawItemRect(uint col) - { - ImGuiPNative.DebugDrawItemRect(col); - } - public static void DebugDrawItemRect() - { - ImGuiPNative.DebugDrawItemRect((uint)(4278190335)); - } - public static void DebugStartItemPicker() - { - ImGuiPNative.DebugStartItemPicker(); - } - public static void ShowFontAtlas(ImFontAtlasPtr atlas) - { - ImGuiPNative.ShowFontAtlas(atlas); - } - public static void ShowFontAtlas(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImGuiPNative.ShowFontAtlas((ImFontAtlas*)patlas); - } - } - public static void DebugHookIdInfo(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) - { - ImGuiPNative.DebugHookIdInfo(id, dataType, dataId, dataIdEnd); - } - public static void DebugNodeColumns(ImGuiOldColumnsPtr columns) - { - ImGuiPNative.DebugNodeColumns(columns); - } - public static void DebugNodeColumns(ref ImGuiOldColumns columns) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - ImGuiPNative.DebugNodeColumns((ImGuiOldColumns*)pcolumns); - } - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox(outDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - ImGuiPNative.DebugNodeDrawCmdShowMeshAndBoundingBox((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - } - public static void DebugNodeFont(ImFontPtr font) - { - ImGuiPNative.DebugNodeFont(font); - } - public static void DebugNodeFont(ref ImFont font) - { - fixed (ImFont* pfont = &font) - { - ImGuiPNative.DebugNodeFont((ImFont*)pfont); - } - } - public static void DebugNodeFontGlyph(ImFontPtr font, ImFontGlyphPtr glyph) - { - ImGuiPNative.DebugNodeFontGlyph(font, glyph); - } - public static void DebugNodeFontGlyph(ref ImFont font, ImFontGlyphPtr glyph) - { - fixed (ImFont* pfont = &font) - { - ImGuiPNative.DebugNodeFontGlyph((ImFont*)pfont, glyph); - } - } - public static void DebugNodeFontGlyph(ImFontPtr font, ref ImFontGlyph glyph) - { - fixed (ImFontGlyph* pglyph = &glyph) - { - ImGuiPNative.DebugNodeFontGlyph(font, (ImFontGlyph*)pglyph); - } - } - public static void DebugNodeFontGlyph(ref ImFont font, ref ImFontGlyph glyph) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontGlyph* pglyph = &glyph) - { - ImGuiPNative.DebugNodeFontGlyph((ImFont*)pfont, (ImFontGlyph*)pglyph); - } - } - } - public static void DebugNodeTable(ImGuiTablePtr table) - { - ImGuiPNative.DebugNodeTable(table); - } - public static void DebugNodeTable(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiPNative.DebugNodeTable((ImGuiTable*)ptable); - } - } - public static void DebugNodeTableSettings(ImGuiTableSettingsPtr settings) - { - ImGuiPNative.DebugNodeTableSettings(settings); - } - public static void DebugNodeTableSettings(ref ImGuiTableSettings settings) - { - fixed (ImGuiTableSettings* psettings = &settings) - { - ImGuiPNative.DebugNodeTableSettings((ImGuiTableSettings*)psettings); - } - } - public static void DebugNodeInputTextState(ImGuiInputTextStatePtr state) - { - ImGuiPNative.DebugNodeInputTextState(state); - } - public static void DebugNodeInputTextState(ref ImGuiInputTextState state) - { - fixed (ImGuiInputTextState* pstate = &state) - { - ImGuiPNative.DebugNodeInputTextState((ImGuiInputTextState*)pstate); - } - } - public static void DebugNodeWindowSettings(ImGuiWindowSettingsPtr settings) - { - ImGuiPNative.DebugNodeWindowSettings(settings); - } - public static void DebugNodeWindowSettings(ref ImGuiWindowSettings settings) - { - fixed (ImGuiWindowSettings* psettings = &settings) - { - ImGuiPNative.DebugNodeWindowSettings((ImGuiWindowSettings*)psettings); - } - } - public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) - { - ImGuiPNative.DebugNodeWindowsListByBeginStackParent(windows, windowsSize, parentInBeginStack); - } - public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) - { - fixed (ImGuiWindow** pwindows = &windows) - { - ImGuiPNative.DebugNodeWindowsListByBeginStackParent((ImGuiWindow**)pwindows, windowsSize, parentInBeginStack); - } - } - public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ref ImGuiWindow parentInBeginStack) - { - fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) - { - ImGuiPNative.DebugNodeWindowsListByBeginStackParent(windows, windowsSize, (ImGuiWindow*)pparentInBeginStack); - } - } - public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ref ImGuiWindow parentInBeginStack) - { - fixed (ImGuiWindow** pwindows = &windows) - { - fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) - { - ImGuiPNative.DebugNodeWindowsListByBeginStackParent((ImGuiWindow**)pwindows, windowsSize, (ImGuiWindow*)pparentInBeginStack); - } - } - } - public static void DebugNodeViewport(ImGuiViewportPPtr viewport) - { - ImGuiPNative.DebugNodeViewport(viewport); - } - public static void DebugNodeViewport(ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.DebugNodeViewport((ImGuiViewportP*)pviewport); - } - } - public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ImGuiViewportPPtr viewport, ImRect bb) - { - ImGuiPNative.DebugRenderViewportThumbnail(drawList, viewport, bb); - } - public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ImGuiViewportPPtr viewport, ImRect bb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGuiPNative.DebugRenderViewportThumbnail((ImDrawList*)pdrawList, viewport, bb); - } - } - public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ref ImGuiViewportP viewport, ImRect bb) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.DebugRenderViewportThumbnail(drawList, (ImGuiViewportP*)pviewport, bb); - } - } - public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ref ImGuiViewportP viewport, ImRect bb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ImGuiPNative.DebugRenderViewportThumbnail((ImDrawList*)pdrawList, (ImGuiViewportP*)pviewport, bb); - } - } - } - public static ImFontBuilderIOPtr ImFontAtlasGetBuilderForStbTruetype() - { - ImFontBuilderIOPtr ret = ImGuiPNative.ImFontAtlasGetBuilderForStbTruetype(); - return ret; - } - public static void ImFontAtlasBuildInit(ImFontAtlasPtr atlas) - { - ImGuiPNative.ImFontAtlasBuildInit(atlas); - } - public static void ImFontAtlasBuildInit(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImGuiPNative.ImFontAtlasBuildInit((ImFontAtlas*)patlas); - } - } - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, font, fontConfig, ascent, descent); - } - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, font, fontConfig, ascent, descent); - } - } - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - fixed (ImFont* pfont = &font) - { - ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, (ImFont*)pfont, fontConfig, ascent, descent); - } - } - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFont* pfont = &font) - { - ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, (ImFont*)pfont, fontConfig, ascent, descent); - } - } - } - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, font, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, font, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImGuiPNative.ImFontAtlasBuildSetupFont(atlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImGuiPNative.ImFontAtlasBuildSetupFont((ImFontAtlas*)patlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - } - public static void ImFontAtlasBuildFinish(ImFontAtlasPtr atlas) - { - ImGuiPNative.ImFontAtlasBuildFinish(atlas); - } - public static void ImFontAtlasBuildFinish(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImGuiPNative.ImFontAtlasBuildFinish((ImFontAtlas*)patlas); - } - } - public static void ImFontAtlasBuildMultiplyCalcLookupTable(byte* outTable, float inMultiplyFactor, float gammaFactor) - { - ImGuiPNative.ImFontAtlasBuildMultiplyCalcLookupTable(outTable, inMultiplyFactor, gammaFactor); - } - public static void ImFontAtlasBuildMultiplyCalcLookupTable(ref byte outTable, float inMultiplyFactor, float gammaFactor) - { - fixed (byte* poutTable = &outTable) - { - ImGuiPNative.ImFontAtlasBuildMultiplyCalcLookupTable((byte*)poutTable, inMultiplyFactor, gammaFactor); - } - } - public static void ImFontAtlasBuildMultiplyCalcLookupTable(ReadOnlySpan<byte> outTable, float inMultiplyFactor, float gammaFactor) - { - fixed (byte* poutTable = outTable) - { - ImGuiPNative.ImFontAtlasBuildMultiplyCalcLookupTable((byte*)poutTable, inMultiplyFactor, gammaFactor); - } - } -} -// DISCARDED: internal static byte ArrowButtonExNative(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) -// DISCARDED: internal static byte BeginChildExNative(byte* name, uint id, Vector2 sizeArg, byte border, ImGuiWindowFlags flags) -// DISCARDED: internal static void BeginColumnsNative(byte* strId, int count, ImGuiOldColumnFlags flags) -// DISCARDED: internal static byte BeginMenuExNative(byte* label, byte* icon, byte enabled) -// DISCARDED: internal static byte BeginTableExNative(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) -// DISCARDED: internal static byte BeginViewportSideBarNative(byte* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) -// DISCARDED: internal static byte ButtonExNative(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) -// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, long* flags, long flagsValue) -// DISCARDED: internal static byte CheckboxFlagsNative(byte* label, ulong* flags, ulong flagsValue) -// DISCARDED: internal static void ColorEditOptionsPopupNative(float* col, ImGuiColorEditFlags flags) -// DISCARDED: internal static void ColorPickerOptionsPopupNative(float* refCol, ImGuiColorEditFlags flags) -// DISCARDED: internal static void ColorTooltipNative(byte* text, float* col, ImGuiColorEditFlags flags) -// DISCARDED: internal static ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name) -// DISCARDED: internal static void Custom_StbTextMakeUndoReplaceNative(ImGuiInputTextState* str, int where, int oldLength, int newLength) -// DISCARDED: internal static void Custom_StbTextUndoNative(ImGuiInputTextState* str) -// DISCARDED: internal static byte DataTypeApplyFromTextNative(byte* buf, ImGuiDataType dataType, void* pData, byte* format) -// DISCARDED: internal static void DebugLogNative(byte* fmt) -// DISCARDED: internal static void DebugLogVNative(byte* fmt, nuint args) -// DISCARDED: internal static void DebugNodeDockNodeNative(ImGuiDockNode* node, byte* label) -// DISCARDED: internal static void DebugNodeDrawListNative(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) -// DISCARDED: internal static void DebugNodeStorageNative(ImGuiStorage* storage, byte* label) -// DISCARDED: internal static void DebugNodeTabBarNative(ImGuiTabBar* tabBar, byte* label) -// DISCARDED: internal static void DebugNodeWindowNative(ImGuiWindow* window, byte* label) -// DISCARDED: internal static void DebugNodeWindowsListNative(ImVector<ImGuiWindowPtr>* windows, byte* label) -// DISCARDED: internal static void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName) -// DISCARDED: internal static void DockBuilderDockWindowNative(byte* windowName, uint nodeId) -// DISCARDED: internal static byte DragBehaviorNative(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) -// DISCARDED: internal static ImGuiWindowSettings* FindOrCreateWindowSettingsNative(byte* name) -// DISCARDED: internal static byte* FindRenderedTextEndNative(byte* text, byte* textEnd) -// DISCARDED: FindRenderedTextEndS -// DISCARDED: internal static ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName) -// DISCARDED: internal static ImGuiWindow* FindWindowByNameNative(byte* name) -// DISCARDED: internal static uint GetColumnsIDNative(byte* strId, int count) -// DISCARDED: internal static uint GetIDNative(ImGuiWindow* self, byte* str, byte* strEnd) -// DISCARDED: internal static uint GetIDNative(ImGuiWindow* self, void* ptr) -// DISCARDED: internal static uint GetIDNative(ImGuiWindow* self, int n) -// DISCARDED: internal static uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed) -// DISCARDED: internal static byte* GetNameNative(ImGuiWindowSettings* self) -// DISCARDED: GetNameS -// DISCARDED: internal static byte* GetNavInputNameNative(ImGuiNavInput n) -// DISCARDED: GetNavInputNameS -// DISCARDED: internal static byte* GetTabNameNative(ImGuiTabBar* self, ImGuiTabItem* tab) -// DISCARDED: GetTabNameS -// DISCARDED: internal static void* ImFileLoadToMemoryNative(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) -// DISCARDED: internal static ImFileHandle ImFileOpenNative(byte* filename, byte* mode) -// DISCARDED: internal static void ImFontAtlasBuildMultiplyRectAlpha8Native(byte* table, byte* pixels, int x, int y, int w, int h, int stride) -// DISCARDED: internal static void ImFontAtlasBuildRender32bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) -// DISCARDED: internal static void ImFontAtlasBuildRender8bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) -// DISCARDED: internal static void ImFormatStringToTempBufferNative(byte** outBuf, byte** outBufEnd, byte* fmt) -// DISCARDED: internal static void ImFormatStringToTempBufferVNative(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) -// DISCARDED: internal static ImGuiWindow* ImGuiWindowNative(ImGuiContext* context, byte* name) -// DISCARDED: internal static uint ImHashDataNative(void* data, nuint dataSize, uint seed) -// DISCARDED: internal static uint ImHashStrNative(byte* data, nuint dataSize, uint seed) -// DISCARDED: internal static byte* ImParseFormatFindEndNative(byte* format) -// DISCARDED: ImParseFormatFindEndS -// DISCARDED: internal static byte* ImParseFormatFindStartNative(byte* format) -// DISCARDED: ImParseFormatFindStartS -// DISCARDED: internal static int ImParseFormatPrecisionNative(byte* format, int defaultValue) -// DISCARDED: internal static void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) -// DISCARDED: internal static byte* ImParseFormatSanitizeForScanningNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) -// DISCARDED: ImParseFormatSanitizeForScanningS -// DISCARDED: internal static byte* ImStrchrRangeNative(byte* strBegin, byte* strEnd, byte c) -// DISCARDED: ImStrchrRangeS -// DISCARDED: internal static byte* ImStrdupNative(byte* str) -// DISCARDED: internal static byte* ImStrdupcpyNative(byte* dst, nuint* pDstSize, byte* str) -// DISCARDED: ImStrdupcpyS -// DISCARDED: ImStrdupS -// DISCARDED: internal static byte* ImStreolRangeNative(byte* str, byte* strEnd) -// DISCARDED: ImStreolRangeS -// DISCARDED: internal static int ImStricmpNative(byte* str1, byte* str2) -// DISCARDED: internal static byte* ImStristrNative(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) -// DISCARDED: ImStristrS -// DISCARDED: internal static int ImStrlenWNative(ushort* str) -// DISCARDED: internal static void ImStrncpyNative(byte* dst, byte* src, nuint count) -// DISCARDED: internal static int ImStrnicmpNative(byte* str1, byte* str2, nuint count) -// DISCARDED: internal static byte* ImStrSkipBlankNative(byte* str) -// DISCARDED: ImStrSkipBlankS -// DISCARDED: internal static void ImStrTrimBlanksNative(byte* str) -// DISCARDED: internal static int ImTextCharFromUtf8Native(uint* outChar, byte* inText, byte* inTextEnd) -// DISCARDED: internal static byte* ImTextCharToUtf8Native(byte* outBuf, uint c) -// DISCARDED: ImTextCharToUtf8S -// DISCARDED: internal static int ImTextCountCharsFromUtf8Native(byte* inText, byte* inTextEnd) -// DISCARDED: internal static int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd) -// DISCARDED: internal static void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd) -// DISCARDED: internal static void LogSetNextTextDecorationNative(byte* prefix, byte* suffix) -// DISCARDED: internal static byte MenuItemExNative(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled) -// DISCARDED: internal static int PlotExNative(ImGuiPlotType plotType, byte* label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) -// DISCARDED: internal static void RemoveSettingsHandlerNative(byte* typeName) -// DISCARDED: internal static void RenderTextNative(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash) -// DISCARDED: internal static void RenderTextClippedNative(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) -// DISCARDED: internal static void RenderTextClippedExNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) -// DISCARDED: internal static void RenderTextEllipsisNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) -// DISCARDED: internal static void RenderTextWrappedNative(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) -// DISCARDED: internal static byte SliderBehaviorNative(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRect* outGrabBb) -// DISCARDED: internal static void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButton) -// DISCARDED: internal static byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) -// DISCARDED: internal static void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) -// DISCARDED: internal static byte* TableGetColumnNameNative(ImGuiTable* table, int columnN) -// DISCARDED: TableGetColumnNameS -// DISCARDED: internal static byte TempInputScalarNative(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) -// DISCARDED: internal static void TextExNative(byte* text, byte* textEnd, ImGuiTextFlags flags) -// DISCARDED: internal static byte TreeNodeBehaviorNative(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiPNative.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiPNative.gen.cs deleted file mode 100644 index 8c21faf48..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions/ImGuiPNative.gen.cs +++ /dev/null @@ -1,4067 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGuiPNative -{ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint ImHashData(void* data, nuint dataSize, uint seed) - { - - return ((delegate* unmanaged[Cdecl]<void*, nuint, uint, uint>)ImGuiP.funcTable[688])(data, dataSize, seed); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint ImHashStr(byte* data, nuint dataSize, uint seed) - { - - return ((delegate* unmanaged[Cdecl]<byte*, nuint, uint, uint>)ImGuiP.funcTable[689])(data, dataSize, seed); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*<void*, nuint, nuint, delegate*<void*, void*, int>, int> compareFunc) - { - - ((delegate* unmanaged[Cdecl]<void*, nuint, nuint, delegate*<void*, nuint, nuint, delegate*<void*, void*, int>, int>, void>)ImGuiP.funcTable[690])(baseValue, count, sizeOfElement, compareFunc); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint ImAlphaBlendColors(uint colA, uint colB) - { - - return ((delegate* unmanaged[Cdecl]<uint, uint, uint>)ImGuiP.funcTable[691])(colA, colB); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImIsPowerOfTwo(int v) - { - - return ((delegate* unmanaged[Cdecl]<int, byte>)ImGuiP.funcTable[692])(v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImIsPowerOfTwo(ulong v) - { - - return ((delegate* unmanaged[Cdecl]<ulong, byte>)ImGuiP.funcTable[693])(v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImUpperPowerOfTwo(int v) - { - - return ((delegate* unmanaged[Cdecl]<int, int>)ImGuiP.funcTable[694])(v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImStricmp(byte* str1, byte* str2) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, int>)ImGuiP.funcTable[695])(str1, str2); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImStrnicmp(byte* str1, byte* str2, nuint count) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, int>)ImGuiP.funcTable[696])(str1, str2, count); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImStrncpy(byte* dst, byte* src, nuint count) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, void>)ImGuiP.funcTable[697])(dst, src, count); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImStrdup(byte* str) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)ImGuiP.funcTable[698])(str); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str) - { - - return ((delegate* unmanaged[Cdecl]<byte*, nuint*, byte*, byte*>)ImGuiP.funcTable[699])(dst, pDstSize, str); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImStrchrRange(byte* strBegin, byte* strEnd, byte c) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte, byte*>)ImGuiP.funcTable[700])(strBegin, strEnd, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImStrlenW(ushort* str) - { - - return ((delegate* unmanaged[Cdecl]<ushort*, int>)ImGuiP.funcTable[701])(str); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImStreolRange(byte* str, byte* strEnd) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*>)ImGuiP.funcTable[702])(str, strEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin) - { - - return ((delegate* unmanaged[Cdecl]<ushort*, ushort*, ushort*>)ImGuiP.funcTable[703])(bufMidLine, bufBegin); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, byte*, byte*>)ImGuiP.funcTable[704])(haystack, haystackEnd, needle, needleEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImStrTrimBlanks(byte* str) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGuiP.funcTable[705])(str); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImStrSkipBlank(byte* str) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)ImGuiP.funcTable[706])(str); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImCharIsBlankA(byte c) - { - - return ((delegate* unmanaged[Cdecl]<byte, byte>)ImGuiP.funcTable[707])(c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImCharIsBlankW(uint c) - { - - return ((delegate* unmanaged[Cdecl]<uint, byte>)ImGuiP.funcTable[708])(c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte**, byte**, byte*, void>)ImGuiP.funcTable[709])(outBuf, outBufEnd, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte**, byte**, byte*, nuint, void>)ImGuiP.funcTable[710])(outBuf, outBufEnd, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImParseFormatFindStart(byte* format) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)ImGuiP.funcTable[711])(format); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImParseFormatFindEnd(byte* format) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)ImGuiP.funcTable[712])(format); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, void>)ImGuiP.funcTable[713])(fmtIn, fmtOut, fmtOutSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, byte*>)ImGuiP.funcTable[714])(fmtIn, fmtOut, fmtOutSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImParseFormatPrecision(byte* format, int defaultValue) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int, int>)ImGuiP.funcTable[715])(format, defaultValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImTextCharToUtf8(byte* outBuf, uint c) - { - - return ((delegate* unmanaged[Cdecl]<byte*, uint, byte*>)ImGuiP.funcTable[716])(outBuf, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, byte* inTextEnd) - { - - return ((delegate* unmanaged[Cdecl]<uint*, byte*, byte*, int>)ImGuiP.funcTable[717])(outChar, inText, inTextEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImTextCountCharsFromUtf8(byte* inText, byte* inTextEnd) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, int>)ImGuiP.funcTable[718])(inText, inTextEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImTextCountUtf8BytesFromChar(byte* inText, byte* inTextEnd) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, int>)ImGuiP.funcTable[719])(inText, inTextEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImTextCountUtf8BytesFromStr(ushort* inText, ushort* inTextEnd) - { - - return ((delegate* unmanaged[Cdecl]<ushort*, ushort*, int>)ImGuiP.funcTable[720])(inText, inTextEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFileHandle ImFileOpen(byte* filename, byte* mode) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, ImFileHandle>)ImGuiP.funcTable[721])(filename, mode); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImFileClose(ImFileHandle file) - { - - return ((delegate* unmanaged[Cdecl]<ImFileHandle, byte>)ImGuiP.funcTable[722])(file); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong ImFileGetSize(ImFileHandle file) - { - - return ((delegate* unmanaged[Cdecl]<ImFileHandle, ulong>)ImGuiP.funcTable[723])(file); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong ImFileRead(void* data, ulong size, ulong count, ImFileHandle file) - { - - return ((delegate* unmanaged[Cdecl]<void*, ulong, ulong, ImFileHandle, ulong>)ImGuiP.funcTable[724])(data, size, count, file); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong ImFileWrite(void* data, ulong size, ulong count, ImFileHandle file) - { - - return ((delegate* unmanaged[Cdecl]<void*, ulong, ulong, ImFileHandle, ulong>)ImGuiP.funcTable[725])(data, size, count, file); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint*, int, void*>)ImGuiP.funcTable[726])(filename, mode, outFileSize, paddingBytes); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImPow(float x, float y) - { - - return ((delegate* unmanaged[Cdecl]<float, float, float>)ImGuiP.funcTable[727])(x, y); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double ImPow(double x, double y) - { - - return ((delegate* unmanaged[Cdecl]<double, double, double>)ImGuiP.funcTable[728])(x, y); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImLog(float x) - { - - return ((delegate* unmanaged[Cdecl]<float, float>)ImGuiP.funcTable[729])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double ImLog(double x) - { - - return ((delegate* unmanaged[Cdecl]<double, double>)ImGuiP.funcTable[730])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImAbs(int x) - { - - return ((delegate* unmanaged[Cdecl]<int, int>)ImGuiP.funcTable[731])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImAbs(float x) - { - - return ((delegate* unmanaged[Cdecl]<float, float>)ImGuiP.funcTable[732])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double ImAbs(double x) - { - - return ((delegate* unmanaged[Cdecl]<double, double>)ImGuiP.funcTable[733])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImSign(float x) - { - - return ((delegate* unmanaged[Cdecl]<float, float>)ImGuiP.funcTable[734])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double ImSign(double x) - { - - return ((delegate* unmanaged[Cdecl]<double, double>)ImGuiP.funcTable[735])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImRsqrt(float x) - { - - return ((delegate* unmanaged[Cdecl]<float, float>)ImGuiP.funcTable[736])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double ImRsqrt(double x) - { - - return ((delegate* unmanaged[Cdecl]<double, double>)ImGuiP.funcTable[737])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, void>)ImGuiP.funcTable[738])(pOut, lhs, rhs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, void>)ImGuiP.funcTable[739])(pOut, lhs, rhs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, void>)ImGuiP.funcTable[740])(pOut, v, mn, mx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, float, void>)ImGuiP.funcTable[741])(pOut, a, b, t); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, void>)ImGuiP.funcTable[742])(pOut, a, b, t); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) - { - - ((delegate* unmanaged[Cdecl]<Vector4*, Vector4, Vector4, float, void>)ImGuiP.funcTable[743])(pOut, a, b, t); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImSaturate(float f) - { - - return ((delegate* unmanaged[Cdecl]<float, float>)ImGuiP.funcTable[744])(f); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImLengthSqr(Vector2 lhs) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, float>)ImGuiP.funcTable[745])(lhs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImLengthSqr(Vector4 lhs) - { - - return ((delegate* unmanaged[Cdecl]<Vector4, float>)ImGuiP.funcTable[746])(lhs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImInvLength(Vector2 lhs, float failValue) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, float, float>)ImGuiP.funcTable[747])(lhs, failValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImFloor(float f) - { - - return ((delegate* unmanaged[Cdecl]<float, float>)ImGuiP.funcTable[748])(f); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFloor(Vector2* pOut, Vector2 v) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, void>)ImGuiP.funcTable[750])(pOut, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImFloorSigned(float f) - { - - return ((delegate* unmanaged[Cdecl]<float, float>)ImGuiP.funcTable[749])(f); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFloorSigned(Vector2* pOut, Vector2 v) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, void>)ImGuiP.funcTable[751])(pOut, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImModPositive(int a, int b) - { - - return ((delegate* unmanaged[Cdecl]<int, int, int>)ImGuiP.funcTable[752])(a, b); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImDot(Vector2 a, Vector2 b) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, float>)ImGuiP.funcTable[753])(a, b); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, float, float, void>)ImGuiP.funcTable[754])(pOut, v, cosA, sinA); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImLinearSweep(float current, float target, float speed) - { - - return ((delegate* unmanaged[Cdecl]<float, float, float, float>)ImGuiP.funcTable[755])(current, target, speed); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, void>)ImGuiP.funcTable[756])(pOut, lhs, rhs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImIsFloatAboveGuaranteedIntegerPrecision(float f) - { - - return ((delegate* unmanaged[Cdecl]<float, byte>)ImGuiP.funcTable[757])(f); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, float, void>)ImGuiP.funcTable[758])(pOut, p1, p2, p3, p4, t); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, Vector2, int, void>)ImGuiP.funcTable[759])(pOut, p1, p2, p3, p4, p, numSegments); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, Vector2, float, void>)ImGuiP.funcTable[760])(pOut, p1, p2, p3, p4, p, tessTol); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, float, void>)ImGuiP.funcTable[761])(pOut, p1, p2, p3, t); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, void>)ImGuiP.funcTable[762])(pOut, a, b, p); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, Vector2, byte>)ImGuiP.funcTable[763])(a, b, c, p); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, void>)ImGuiP.funcTable[764])(pOut, a, b, c, p); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) - { - - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, Vector2, float*, float*, float*, void>)ImGuiP.funcTable[765])(a, b, c, p, outU, outV, outW); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, float>)ImGuiP.funcTable[766])(a, b, c); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) - { - - return ((delegate* unmanaged[Cdecl]<float, float, ImGuiDir>)ImGuiP.funcTable[767])(dx, dy); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImVec1* ImVec1() - { - - return ((delegate* unmanaged[Cdecl]<ImVec1*>)ImGuiP.funcTable[768])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImVec1* ImVec1(float x) - { - - return ((delegate* unmanaged[Cdecl]<float, ImVec1*>)ImGuiP.funcTable[769])(x); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImVec2Ih* ImVec2ih() - { - - return ((delegate* unmanaged[Cdecl]<ImVec2Ih*>)ImGuiP.funcTable[770])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImVec2Ih* ImVec2ih(short x, short y) - { - - return ((delegate* unmanaged[Cdecl]<short, short, ImVec2Ih*>)ImGuiP.funcTable[771])(x, y); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImVec2Ih* ImVec2ih(Vector2 rhs) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, ImVec2Ih*>)ImGuiP.funcTable[772])(rhs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImRect* ImRect() - { - - return ((delegate* unmanaged[Cdecl]<ImRect*>)ImGuiP.funcTable[773])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImRect* ImRect(Vector2 min, Vector2 max) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, ImRect*>)ImGuiP.funcTable[774])(min, max); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImRect* ImRect(Vector4 v) - { - - return ((delegate* unmanaged[Cdecl]<Vector4, ImRect*>)ImGuiP.funcTable[775])(v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImRect* ImRect(float x1, float y1, float x2, float y2) - { - - return ((delegate* unmanaged[Cdecl]<float, float, float, float, ImRect*>)ImGuiP.funcTable[776])(x1, y1, x2, y2); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetCenter(Vector2* pOut, ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)ImGuiP.funcTable[777])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetSize(Vector2* pOut, ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)ImGuiP.funcTable[778])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetWidth(ImRect* self) - { - - return ((delegate* unmanaged[Cdecl]<ImRect*, float>)ImGuiP.funcTable[779])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetHeight(ImRect* self) - { - - return ((delegate* unmanaged[Cdecl]<ImRect*, float>)ImGuiP.funcTable[780])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetArea(ImRect* self) - { - - return ((delegate* unmanaged[Cdecl]<ImRect*, float>)ImGuiP.funcTable[781])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetTL(Vector2* pOut, ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)ImGuiP.funcTable[782])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetTR(Vector2* pOut, ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)ImGuiP.funcTable[783])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetBL(Vector2* pOut, ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)ImGuiP.funcTable[784])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetBR(Vector2* pOut, ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)ImGuiP.funcTable[785])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Contains(ImRect* self, Vector2 p) - { - - return ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, byte>)ImGuiP.funcTable[786])(self, p); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Contains(ImRect* self, ImRect r) - { - - return ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, byte>)ImGuiP.funcTable[787])(self, r); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte Overlaps(ImRect* self, ImRect r) - { - - return ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, byte>)ImGuiP.funcTable[788])(self, r); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Add(ImRect* self, Vector2 p) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, void>)ImGuiP.funcTable[789])(self, p); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Add(ImRect* self, ImRect r) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, void>)ImGuiP.funcTable[790])(self, r); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Expand(ImRect* self, float amount) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, float, void>)ImGuiP.funcTable[791])(self, amount); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Expand(ImRect* self, Vector2 amount) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, void>)ImGuiP.funcTable[792])(self, amount); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Translate(ImRect* self, Vector2 d) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, void>)ImGuiP.funcTable[793])(self, d); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TranslateX(ImRect* self, float dx) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, float, void>)ImGuiP.funcTable[794])(self, dx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TranslateY(ImRect* self, float dy) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, float, void>)ImGuiP.funcTable[795])(self, dy); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClipWith(ImRect* self, ImRect r) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, void>)ImGuiP.funcTable[796])(self, r); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClipWithFull(ImRect* self, ImRect r) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, void>)ImGuiP.funcTable[797])(self, r); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Floor(ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, void>)ImGuiP.funcTable[798])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsInverted(ImRect* self) - { - - return ((delegate* unmanaged[Cdecl]<ImRect*, byte>)ImGuiP.funcTable[799])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ToVec4(Vector4* pOut, ImRect* self) - { - - ((delegate* unmanaged[Cdecl]<Vector4*, ImRect*, void>)ImGuiP.funcTable[800])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImBitArrayTestBit(uint* arr, int n) - { - - return ((delegate* unmanaged[Cdecl]<uint*, int, byte>)ImGuiP.funcTable[801])(arr, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImBitArrayClearBit(uint* arr, int n) - { - - ((delegate* unmanaged[Cdecl]<uint*, int, void>)ImGuiP.funcTable[802])(arr, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImBitArraySetBit(uint* arr, int n) - { - - ((delegate* unmanaged[Cdecl]<uint*, int, void>)ImGuiP.funcTable[803])(arr, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImBitArraySetBitRange(uint* arr, int n, int n2) - { - - ((delegate* unmanaged[Cdecl]<uint*, int, int, void>)ImGuiP.funcTable[804])(arr, n, n2); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Create(ImBitVector* self, int sz) - { - - ((delegate* unmanaged[Cdecl]<ImBitVector*, int, void>)ImGuiP.funcTable[805])(self, sz); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImBitVector* self) - { - - ((delegate* unmanaged[Cdecl]<ImBitVector*, void>)ImGuiP.funcTable[806])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImDrawDataBuilder* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, void>)ImGuiP.funcTable[812])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Clear(ImGuiNavItemData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*, void>)ImGuiP.funcTable[855])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TestBit(ImBitVector* self, int n) - { - - return ((delegate* unmanaged[Cdecl]<ImBitVector*, int, byte>)ImGuiP.funcTable[807])(self, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetBit(ImBitVector* self, int n) - { - - ((delegate* unmanaged[Cdecl]<ImBitVector*, int, void>)ImGuiP.funcTable[808])(self, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearBit(ImBitVector* self, int n) - { - - ((delegate* unmanaged[Cdecl]<ImBitVector*, int, void>)ImGuiP.funcTable[809])(self, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawListSharedData* ImDrawListSharedData() - { - - return ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*>)ImGuiP.funcTable[810])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCircleTessellationMaxError(ImDrawListSharedData* self, float maxError) - { - - ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*, float, void>)ImGuiP.funcTable[811])(self, maxError); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearFreeMemory(ImDrawDataBuilder* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, void>)ImGuiP.funcTable[813])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearFreeMemory(ImGuiInputTextState* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[826])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetDrawListCount(ImDrawDataBuilder* self) - { - - return ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, int>)ImGuiP.funcTable[814])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void FlattenIntoSingleLayer(ImDrawDataBuilder* self) - { - - ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, void>)ImGuiP.funcTable[815])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStyleMod* ImGuiStyleMod(ImGuiStyleVar idx, int v) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, int, ImGuiStyleMod*>)ImGuiP.funcTable[816])(idx, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStyleMod* ImGuiStyleMod(ImGuiStyleVar idx, float v) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, float, ImGuiStyleMod*>)ImGuiP.funcTable[817])(idx, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStyleMod* ImGuiStyleMod(ImGuiStyleVar idx, Vector2 v) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, Vector2, ImGuiStyleMod*>)ImGuiP.funcTable[818])(idx, v); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiComboPreviewData* ImGuiComboPreviewData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiComboPreviewData*>)ImGuiP.funcTable[819])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiMenuColumns* ImGuiMenuColumns() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*>)ImGuiP.funcTable[820])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Update(ImGuiMenuColumns* self, float spacing, byte windowReappearing) - { - - ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, float, byte, void>)ImGuiP.funcTable[821])(self, spacing, windowReappearing); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float DeclColumns(ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, float, float, float, float, float>)ImGuiP.funcTable[822])(self, wIcon, wLabel, wShortcut, wMark); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcNextTotalWidth(ImGuiMenuColumns* self, byte updateOffsets) - { - - ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, byte, void>)ImGuiP.funcTable[823])(self, updateOffsets); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiInputTextState* ImGuiInputTextState() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*>)ImGuiP.funcTable[824])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearText(ImGuiInputTextState* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[825])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetUndoAvailCount(ImGuiInputTextState* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)ImGuiP.funcTable[827])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetRedoAvailCount(ImGuiInputTextState* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)ImGuiP.funcTable[828])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void OnKeyPressed(ImGuiInputTextState* self, int key) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int, void>)ImGuiP.funcTable[829])(self, key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CursorAnimReset(ImGuiInputTextState* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[830])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CursorClamp(ImGuiInputTextState* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[831])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte HasSelection(ImGuiInputTextState* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, byte>)ImGuiP.funcTable[832])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearSelection(ImGuiInputTextState* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[833])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetCursorPos(ImGuiInputTextState* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)ImGuiP.funcTable[834])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetSelectionStart(ImGuiInputTextState* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)ImGuiP.funcTable[835])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetSelectionEnd(ImGuiInputTextState* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)ImGuiP.funcTable[836])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SelectAll(ImGuiInputTextState* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[837])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPopupData* ImGuiPopupData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPopupData*>)ImGuiP.funcTable[838])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiNextWindowData* ImGuiNextWindowData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNextWindowData*>)ImGuiP.funcTable[839])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearFlags(ImGuiNextWindowData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiNextWindowData*, void>)ImGuiP.funcTable[840])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearFlags(ImGuiNextItemData* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiNextItemData*, void>)ImGuiP.funcTable[842])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiNextItemData* ImGuiNextItemData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNextItemData*>)ImGuiP.funcTable[841])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiLastItemData* ImGuiLastItemData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiLastItemData*>)ImGuiP.funcTable[843])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStackSizes* ImGuiStackSizes() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*>)ImGuiP.funcTable[844])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetToCurrentState(ImGuiStackSizes* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*, void>)ImGuiP.funcTable[845])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CompareWithCurrentState(ImGuiStackSizes* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*, void>)ImGuiP.funcTable[846])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPtrOrIndex* ImGuiPtrOrIndex(void* ptr) - { - - return ((delegate* unmanaged[Cdecl]<void*, ImGuiPtrOrIndex*>)ImGuiP.funcTable[847])(ptr); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPtrOrIndex* ImGuiPtrOrIndex(int index) - { - - return ((delegate* unmanaged[Cdecl]<int, ImGuiPtrOrIndex*>)ImGuiP.funcTable[848])(index); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiInputEvent* ImGuiInputEvent() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiInputEvent*>)ImGuiP.funcTable[849])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiListClipperRange FromIndices(int min, int max) - { - - return ((delegate* unmanaged[Cdecl]<int, int, ImGuiListClipperRange>)ImGuiP.funcTable[850])(min, max); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiListClipperRange FromPositions(float y1, float y2, int offMin, int offMax) - { - - return ((delegate* unmanaged[Cdecl]<float, float, int, int, ImGuiListClipperRange>)ImGuiP.funcTable[851])(y1, y2, offMin, offMax); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiListClipperData* ImGuiListClipperData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiListClipperData*>)ImGuiP.funcTable[852])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Reset(ImGuiListClipperData* self, ImGuiListClipper* clipper) - { - - ((delegate* unmanaged[Cdecl]<ImGuiListClipperData*, ImGuiListClipper*, void>)ImGuiP.funcTable[853])(self, clipper); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiNavItemData* ImGuiNavItemData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*>)ImGuiP.funcTable[854])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiOldColumnData* ImGuiOldColumnData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumnData*>)ImGuiP.funcTable[856])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiOldColumns* ImGuiOldColumns() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*>)ImGuiP.funcTable[857])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDockNode* ImGuiDockNode(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)ImGuiP.funcTable[858])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiDockNode* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, void>)ImGuiP.funcTable[859])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiViewportP* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)ImGuiP.funcTable[874])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiWindow* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[891])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Destroy(ImGuiTable* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[909])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsRootNode(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[860])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsDockSpace(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[861])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsFloatingNode(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[862])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsCentralNode(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[863])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsHiddenTabBar(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[864])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsNoTabBar(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[865])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsSplitNode(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[866])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsLeafNode(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[867])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsEmpty(ImGuiDockNode* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[868])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Rect(ImRect* pOut, ImGuiDockNode* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiDockNode*, void>)ImGuiP.funcTable[869])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Rect(ImRect* pOut, ImGuiWindow* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)ImGuiP.funcTable[896])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetLocalFlags(ImGuiDockNode* self, ImGuiDockNodeFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNodeFlags, void>)ImGuiP.funcTable[870])(self, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdateMergedFlags(ImGuiDockNode* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, void>)ImGuiP.funcTable[871])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDockContext* ImGuiDockContext() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockContext*>)ImGuiP.funcTable[872])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiViewportP* ImGuiViewportP() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewportP*>)ImGuiP.funcTable[873])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearRequestFlags(ImGuiViewportP* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)ImGuiP.funcTable[875])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcWorkRectPos(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportP*, Vector2, void>)ImGuiP.funcTable[876])(pOut, self, offMin); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcWorkRectSize(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportP*, Vector2, Vector2, void>)ImGuiP.funcTable[877])(pOut, self, offMin, offMax); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdateWorkRect(ImGuiViewportP* self) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)ImGuiP.funcTable[878])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetMainRect(ImRect* pOut, ImGuiViewportP* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiViewportP*, void>)ImGuiP.funcTable[879])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetWorkRect(ImRect* pOut, ImGuiViewportP* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiViewportP*, void>)ImGuiP.funcTable[880])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetBuildWorkRect(ImRect* pOut, ImGuiViewportP* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiViewportP*, void>)ImGuiP.funcTable[881])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindowSettings* ImGuiWindowSettings() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*>)ImGuiP.funcTable[882])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetName(ImGuiWindowSettings* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*, byte*>)ImGuiP.funcTable[883])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiSettingsHandler* ImGuiSettingsHandler() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiSettingsHandler*>)ImGuiP.funcTable[884])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiMetricsConfig* ImGuiMetricsConfig() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMetricsConfig*>)ImGuiP.funcTable[885])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStackLevelInfo* ImGuiStackLevelInfo() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStackLevelInfo*>)ImGuiP.funcTable[886])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiStackTool* ImGuiStackTool() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiStackTool*>)ImGuiP.funcTable[887])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiContextHook* ImGuiContextHook() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiContextHook*>)ImGuiP.funcTable[888])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiContext* ImGuiContext(ImFontAtlas* sharedFontAtlas) - { - - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImGuiContext*>)ImGuiP.funcTable[889])(sharedFontAtlas); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* ImGuiWindow(ImGuiContext* context, byte* name) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiContext*, byte*, ImGuiWindow*>)ImGuiP.funcTable[890])(context, name); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetID(ImGuiWindow* self, byte* str, byte* strEnd) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte*, byte*, uint>)ImGuiP.funcTable[892])(self, str, strEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetID(ImGuiWindow* self, void* ptr) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void*, uint>)ImGuiP.funcTable[893])(self, ptr); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetID(ImGuiWindow* self, int n) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, int, uint>)ImGuiP.funcTable[894])(self, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetIDFromRectangle(ImGuiWindow* self, ImRect rAbs) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, uint>)ImGuiP.funcTable[895])(self, rAbs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float CalcFontSize(ImGuiWindow* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float>)ImGuiP.funcTable[897])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float TitleBarHeight(ImGuiWindow* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float>)ImGuiP.funcTable[898])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TitleBarRect(ImRect* pOut, ImGuiWindow* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)ImGuiP.funcTable[899])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float MenuBarHeight(ImGuiWindow* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float>)ImGuiP.funcTable[900])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void MenuBarRect(ImRect* pOut, ImGuiWindow* self) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)ImGuiP.funcTable[901])(pOut, self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTabItem* ImGuiTabItem() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabItem*>)ImGuiP.funcTable[902])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTabBar* ImGuiTabBar() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*>)ImGuiP.funcTable[903])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int GetTabOrder(ImGuiTabBar* self, ImGuiTabItem* tab) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, int>)ImGuiP.funcTable[904])(self, tab); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetTabName(ImGuiTabBar* self, ImGuiTabItem* tab) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, byte*>)ImGuiP.funcTable[905])(self, tab); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableColumn* ImGuiTableColumn() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumn*>)ImGuiP.funcTable[906])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableInstanceData* ImGuiTableInstanceData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableInstanceData*>)ImGuiP.funcTable[907])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTable* ImGuiTable() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*>)ImGuiP.funcTable[908])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableTempData* ImGuiTableTempData() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableTempData*>)ImGuiP.funcTable[910])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableColumnSettings* ImGuiTableColumnSettings() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSettings*>)ImGuiP.funcTable[911])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableSettings* ImGuiTableSettings() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*>)ImGuiP.funcTable[912])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableColumnSettings* GetColumnSettings(ImGuiTableSettings* self) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*, ImGuiTableColumnSettings*>)ImGuiP.funcTable[913])(self); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* GetCurrentWindowRead() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)ImGuiP.funcTable[914])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* GetCurrentWindow() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)ImGuiP.funcTable[915])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* FindWindowByID(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiWindow*>)ImGuiP.funcTable[916])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* FindWindowByName(byte* name) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindow*>)ImGuiP.funcTable[917])(name); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parentWindow) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindowFlags, ImGuiWindow*, void>)ImGuiP.funcTable[918])(window, flags, parentWindow); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiWindow*, void>)ImGuiP.funcTable[919])(pOut, window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potentialParent, byte popupHierarchy, byte dockHierarchy) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, byte, byte, byte>)ImGuiP.funcTable[920])(window, potentialParent, popupHierarchy, dockHierarchy); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potentialParent) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, byte>)ImGuiP.funcTable[921])(window, potentialParent); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowAbove(ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, byte>)ImGuiP.funcTable[922])(potentialAbove, potentialBelow); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsWindowNavFocusable(ImGuiWindow* window) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte>)ImGuiP.funcTable[923])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowPos(ImGuiWindow* window, Vector2 pos, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, Vector2, ImGuiCond, void>)ImGuiP.funcTable[924])(window, pos, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowSize(ImGuiWindow* window, Vector2 size, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, Vector2, ImGuiCond, void>)ImGuiP.funcTable[925])(window, size, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowCollapsed(ImGuiWindow* window, byte collapsed, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte, ImGuiCond, void>)ImGuiP.funcTable[926])(window, collapsed, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowHitTestHole(ImGuiWindow* window, Vector2 pos, Vector2 size) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, Vector2, Vector2, void>)ImGuiP.funcTable[927])(window, pos, size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void WindowRectAbsToRel(ImRect* pOut, ImGuiWindow* window, ImRect r) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, ImRect, void>)ImGuiP.funcTable[928])(pOut, window, r); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void WindowRectRelToAbs(ImRect* pOut, ImGuiWindow* window, ImRect r) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, ImRect, void>)ImGuiP.funcTable[929])(pOut, window, r); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void FocusWindow(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[930])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void FocusTopMostWindowUnderOne(ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, void>)ImGuiP.funcTable[931])(underThisWindow, ignoreWindow); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BringWindowToFocusFront(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[932])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BringWindowToDisplayFront(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[933])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BringWindowToDisplayBack(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[934])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* aboveWindow) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, void>)ImGuiP.funcTable[935])(window, aboveWindow); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int FindWindowDisplayIndex(ImGuiWindow* window) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, int>)ImGuiP.funcTable[936])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*>)ImGuiP.funcTable[937])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCurrentFont(ImFont* font) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, void>)ImGuiP.funcTable[938])(font); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFont* GetDefaultFont() - { - - return ((delegate* unmanaged[Cdecl]<ImFont*>)ImGuiP.funcTable[939])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawList* GetForegroundDrawList(ImGuiWindow* window) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImDrawList*>)ImGuiP.funcTable[940])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Initialize() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[941])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Shutdown() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[942])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdateInputEvents(byte trickleFastInputs) - { - - ((delegate* unmanaged[Cdecl]<byte, void>)ImGuiP.funcTable[943])(trickleFastInputs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdateHoveredWindowAndCaptureFlags() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[944])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void StartMouseMovingWindow(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[945])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, byte undockFloatingNode) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiDockNode*, byte, void>)ImGuiP.funcTable[946])(window, node, undockFloatingNode); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdateMouseMovingWindowNewFrame() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[947])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void UpdateMouseMovingWindowEndFrame() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[948])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint AddContextHook(ImGuiContext* context, ImGuiContextHook* hook) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiContextHook*, uint>)ImGuiP.funcTable[949])(context, hook); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RemoveContextHook(ImGuiContext* context, uint hookToRemove) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, uint, void>)ImGuiP.funcTable[950])(context, hookToRemove); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiContextHookType, void>)ImGuiP.funcTable[951])(context, type); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TranslateWindowsInViewport(ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, Vector2, Vector2, void>)ImGuiP.funcTable[952])(viewport, oldPos, newPos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, float, void>)ImGuiP.funcTable[953])(viewport, scale); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DestroyPlatformWindow(ImGuiViewportP* viewport) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)ImGuiP.funcTable[954])(viewport); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiViewportP*, void>)ImGuiP.funcTable[955])(window, viewport); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiViewportP*, void>)ImGuiP.funcTable[956])(window, viewport); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImGuiPlatformMonitor*>)ImGuiP.funcTable[957])(viewport); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, ImGuiViewportP*>)ImGuiP.funcTable[958])(mousePlatformPos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void MarkIniSettingsDirty() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[959])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void MarkIniSettingsDirty(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[960])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearIniSettings() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[961])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindowSettings* CreateNewWindowSettings(byte* name) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindowSettings*>)ImGuiP.funcTable[962])(name); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindowSettings* FindWindowSettings(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiWindowSettings*>)ImGuiP.funcTable[963])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindowSettings* FindOrCreateWindowSettings(byte* name) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindowSettings*>)ImGuiP.funcTable[964])(name); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void AddSettingsHandler(ImGuiSettingsHandler* handler) - { - - ((delegate* unmanaged[Cdecl]<ImGuiSettingsHandler*, void>)ImGuiP.funcTable[965])(handler); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RemoveSettingsHandler(byte* typeName) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGuiP.funcTable[966])(typeName); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiSettingsHandler* FindSettingsHandler(byte* typeName) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiSettingsHandler*>)ImGuiP.funcTable[967])(typeName); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNextWindowScroll(Vector2 scroll) - { - - ((delegate* unmanaged[Cdecl]<Vector2, void>)ImGuiP.funcTable[968])(scroll); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollX(ImGuiWindow* window, float scrollX) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, void>)ImGuiP.funcTable[969])(window, scrollX); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollY(ImGuiWindow* window, float scrollY) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, void>)ImGuiP.funcTable[970])(window, scrollY); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollFromPosX(ImGuiWindow* window, float localX, float centerXRatio) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, float, void>)ImGuiP.funcTable[971])(window, localX, centerXRatio); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetScrollFromPosY(ImGuiWindow* window, float localY, float centerYRatio) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, float, void>)ImGuiP.funcTable[972])(window, localY, centerYRatio); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ScrollToItem(ImGuiScrollFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiScrollFlags, void>)ImGuiP.funcTable[973])(flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ScrollToRect(ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, ImGuiScrollFlags, void>)ImGuiP.funcTable[974])(window, rect, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ScrollToRectEx(Vector2* pOut, ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiWindow*, ImRect, ImGuiScrollFlags, void>)ImGuiP.funcTable[975])(pOut, window, rect, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ScrollToBringRectIntoView(ImGuiWindow* window, ImRect rect) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, void>)ImGuiP.funcTable[976])(window, rect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetItemID() - { - - return ((delegate* unmanaged[Cdecl]<uint>)ImGuiP.funcTable[977])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiItemStatusFlags GetItemStatusFlags() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiItemStatusFlags>)ImGuiP.funcTable[978])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiItemFlags GetItemFlags() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiItemFlags>)ImGuiP.funcTable[979])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetActiveID() - { - - return ((delegate* unmanaged[Cdecl]<uint>)ImGuiP.funcTable[980])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetFocusID() - { - - return ((delegate* unmanaged[Cdecl]<uint>)ImGuiP.funcTable[981])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetActiveID(uint id, ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiWindow*, void>)ImGuiP.funcTable[982])(id, window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetFocusID(uint id, ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiWindow*, void>)ImGuiP.funcTable[983])(id, window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearActiveID() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[984])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetHoveredID() - { - - return ((delegate* unmanaged[Cdecl]<uint>)ImGuiP.funcTable[985])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetHoveredID(uint id) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[986])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void KeepAliveID(uint id) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[987])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void MarkItemEdited(uint id) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[988])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushOverrideID(uint id) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[989])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetIDWithSeed(byte* strIdBegin, byte* strIdEnd, uint seed) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, uint, uint>)ImGuiP.funcTable[990])(strIdBegin, strIdEnd, seed); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ItemSize(Vector2 size, float textBaselineY) - { - - ((delegate* unmanaged[Cdecl]<Vector2, float, void>)ImGuiP.funcTable[991])(size, textBaselineY); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ItemSize(ImRect bb, float textBaselineY) - { - - ((delegate* unmanaged[Cdecl]<ImRect, float, void>)ImGuiP.funcTable[992])(bb, textBaselineY); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ItemAdd(ImRect bb, uint id, ImRect* navBb, ImGuiItemFlags extraFlags) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImRect*, ImGuiItemFlags, byte>)ImGuiP.funcTable[993])(bb, id, navBb, extraFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ItemHoverable(ImRect bb, uint id) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)ImGuiP.funcTable[994])(bb, id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsClippedEx(ImRect bb, uint id) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)ImGuiP.funcTable[995])(bb, id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiItemFlags, ImGuiItemStatusFlags, ImRect, void>)ImGuiP.funcTable[996])(itemId, inFlags, statusFlags, itemRect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, float, float, void>)ImGuiP.funcTable[997])(pOut, size, defaultW, defaultH); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) - { - - return ((delegate* unmanaged[Cdecl]<Vector2, float, float>)ImGuiP.funcTable[998])(pos, wrapPosX); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushMultiItemsWidths(int components, float widthFull) - { - - ((delegate* unmanaged[Cdecl]<int, float, void>)ImGuiP.funcTable[999])(components, widthFull); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsItemToggledSelection() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGuiP.funcTable[1000])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetContentRegionMaxAbs(Vector2* pOut) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, void>)ImGuiP.funcTable[1001])(pOut); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float widthExcess) - { - - ((delegate* unmanaged[Cdecl]<ImGuiShrinkWidthItem*, int, float, void>)ImGuiP.funcTable[1002])(items, count, widthExcess); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushItemFlag(ImGuiItemFlags option, byte enabled) - { - - ((delegate* unmanaged[Cdecl]<ImGuiItemFlags, byte, void>)ImGuiP.funcTable[1003])(option, enabled); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopItemFlag() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1004])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogBegin(ImGuiLogType type, int autoOpenDepth) - { - - ((delegate* unmanaged[Cdecl]<ImGuiLogType, int, void>)ImGuiP.funcTable[1005])(type, autoOpenDepth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogToBuffer(int autoOpenDepth) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGuiP.funcTable[1006])(autoOpenDepth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogRenderedText(Vector2* refPos, byte* text, byte* textEnd) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, byte*, byte*, void>)ImGuiP.funcTable[1007])(refPos, text, textEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)ImGuiP.funcTable[1008])(prefix, suffix); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginChildEx(byte* name, uint id, Vector2 sizeArg, byte border, ImGuiWindowFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, uint, Vector2, byte, ImGuiWindowFlags, byte>)ImGuiP.funcTable[1009])(name, id, sizeArg, border, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void OpenPopupEx(uint id, ImGuiPopupFlags popupFlags) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, void>)ImGuiP.funcTable[1010])(id, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClosePopupToLevel(int remaining, byte restoreFocusToWindowUnderPopup) - { - - ((delegate* unmanaged[Cdecl]<int, byte, void>)ImGuiP.funcTable[1011])(remaining, restoreFocusToWindowUnderPopup); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClosePopupsOverWindow(ImGuiWindow* refWindow, byte restoreFocusToWindowUnderPopup) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte, void>)ImGuiP.funcTable[1012])(refWindow, restoreFocusToWindowUnderPopup); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClosePopupsExceptModals() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1013])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsPopupOpen(uint id, ImGuiPopupFlags popupFlags) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, byte>)ImGuiP.funcTable[1014])(id, popupFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginPopupEx(uint id, ImGuiWindowFlags extraFlags) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiWindowFlags, byte>)ImGuiP.funcTable[1015])(id, extraFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginTooltipEx(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTooltipFlags, ImGuiWindowFlags, void>)ImGuiP.funcTable[1016])(tooltipFlags, extraWindowFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetPopupAllowedExtentRect(ImRect* pOut, ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)ImGuiP.funcTable[1017])(pOut, window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* GetTopMostPopupModal() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)ImGuiP.funcTable[1018])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiWindow* GetTopMostAndVisiblePopupModal() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)ImGuiP.funcTable[1019])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void FindBestWindowPosForPopup(Vector2* pOut, ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiWindow*, void>)ImGuiP.funcTable[1020])(pOut, window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void FindBestWindowPosForPopupEx(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, ImGuiDir*, ImRect, ImRect, ImGuiPopupPositionPolicy, void>)ImGuiP.funcTable[1021])(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginViewportSideBar(byte* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiViewport*, ImGuiDir, float, ImGuiWindowFlags, byte>)ImGuiP.funcTable[1022])(name, viewport, dir, size, windowFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginMenuEx(byte* label, byte* icon, byte enabled) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte, byte>)ImGuiP.funcTable[1023])(label, icon, enabled); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte MenuItemEx(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, byte, byte, byte>)ImGuiP.funcTable[1024])(label, icon, shortcut, selected, enabled); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImRect, ImGuiComboFlags, byte>)ImGuiP.funcTable[1025])(popupId, bb, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginComboPreview() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGuiP.funcTable[1026])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndComboPreview() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1027])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavInitWindow(ImGuiWindow* window, byte forceReinit) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte, void>)ImGuiP.funcTable[1028])(window, forceReinit); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavInitRequestApplyResult() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1029])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte NavMoveRequestButNoResultYet() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGuiP.funcTable[1030])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)ImGuiP.funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)ImGuiP.funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) - { - - ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*, void>)ImGuiP.funcTable[1033])(result); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavMoveRequestCancel() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1034])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavMoveRequestApplyResult() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1035])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags moveFlags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiNavMoveFlags, void>)ImGuiP.funcTable[1036])(window, moveFlags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* GetNavInputName(ImGuiNavInput n) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte*>)ImGuiP.funcTable[1037])(n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, float>)ImGuiP.funcTable[1038])(n, mode); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiNavDirSourceFlags, ImGuiNavReadMode, float, float, void>)ImGuiP.funcTable[1039])(pOut, dirSources, mode, slowFactor, fastFactor); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) - { - - return ((delegate* unmanaged[Cdecl]<float, float, float, float, int>)ImGuiP.funcTable[1040])(t0, t1, repeatDelay, repeatRate); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ActivateItem(uint id) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[1041])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNavWindow(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[1042])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiNavLayer, uint, ImRect, void>)ImGuiP.funcTable[1043])(id, navLayer, focusScopeId, rectRel); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushFocusScope(uint id) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[1044])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopFocusScope() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1045])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetFocusedFocusScope() - { - - return ((delegate* unmanaged[Cdecl]<uint>)ImGuiP.funcTable[1046])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetFocusScope() - { - - return ((delegate* unmanaged[Cdecl]<uint>)ImGuiP.funcTable[1047])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsNamedKey(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)ImGuiP.funcTable[1048])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsLegacyKey(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)ImGuiP.funcTable[1049])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsGamepadKey(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)ImGuiP.funcTable[1050])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiKeyData* GetKeyData(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, ImGuiKeyData*>)ImGuiP.funcTable[1051])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetItemUsingMouseWheel() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1052])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetActiveIdUsingNavAndKeys() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1053])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsActiveIdUsingNavDir(ImGuiDir dir) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDir, byte>)ImGuiP.funcTable[1054])(dir); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsActiveIdUsingNavInput(ImGuiNavInput input) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)ImGuiP.funcTable[1055])(input); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsActiveIdUsingKey(ImGuiKey key) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)ImGuiP.funcTable[1056])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetActiveIdUsingKey(ImGuiKey key) - { - - ((delegate* unmanaged[Cdecl]<ImGuiKey, void>)ImGuiP.funcTable[1057])(key); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)ImGuiP.funcTable[1058])(button, lockThreshold); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsNavInputDown(ImGuiNavInput n) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)ImGuiP.funcTable[1059])(n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, byte>)ImGuiP.funcTable[1060])(n, rm); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiModFlags GetMergedModFlags() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiModFlags>)ImGuiP.funcTable[1061])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsKeyPressedMap(ImGuiKey key, byte repeat) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)ImGuiP.funcTable[1062])(key, repeat); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextInitialize(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGuiP.funcTable[1063])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextShutdown(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGuiP.funcTable[1064])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextClearNodes(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, uint, byte, void>)ImGuiP.funcTable[1065])(ctx, rootId, clearSettingsRefs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextRebuildNodes(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGuiP.funcTable[1066])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextNewFrameUpdateUndocking(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGuiP.funcTable[1067])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextNewFrameUpdateDocking(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGuiP.funcTable[1068])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextEndFrame(ImGuiContext* ctx) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)ImGuiP.funcTable[1069])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint DockContextGenNodeID(ImGuiContext* ctx) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiContext*, uint>)ImGuiP.funcTable[1070])(ctx); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, float splitRatio, byte splitOuter) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiWindow*, ImGuiDockNode*, ImGuiWindow*, ImGuiDir, float, byte, void>)ImGuiP.funcTable[1071])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiWindow*, void>)ImGuiP.funcTable[1072])(ctx, window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) - { - - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiDockNode*, void>)ImGuiP.funcTable[1073])(ctx, node); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, byte splitOuter, Vector2* outPos) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiDockNode*, ImGuiWindow*, ImGuiDir, byte, Vector2*, byte>)ImGuiP.funcTable[1074])(target, targetNode, payload, splitDir, splitOuter, outPos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DockNodeBeginAmendTabBar(ImGuiDockNode* node) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)ImGuiP.funcTable[1075])(node); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockNodeEndAmendTabBar() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1076])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNode*>)ImGuiP.funcTable[1077])(node); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNode*, byte>)ImGuiP.funcTable[1078])(node, parent); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int DockNodeGetDepth(ImGuiDockNode* node) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, int>)ImGuiP.funcTable[1079])(node); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNode* node) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, uint>)ImGuiP.funcTable[1080])(node); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDockNode* GetWindowDockNode() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*>)ImGuiP.funcTable[1081])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte>)ImGuiP.funcTable[1082])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginDocked(ImGuiWindow* window, bool* pOpen) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, bool*, void>)ImGuiP.funcTable[1083])(window, pOpen); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginDockableDragDropSource(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[1084])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginDockableDragDropTarget(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[1085])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowDock(ImGuiWindow* window, uint dockId, ImGuiCond cond) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, uint, ImGuiCond, void>)ImGuiP.funcTable[1086])(window, dockId, cond); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderDockWindow(byte* windowName, uint nodeId) - { - - ((delegate* unmanaged[Cdecl]<byte*, uint, void>)ImGuiP.funcTable[1087])(windowName, nodeId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDockNode* DockBuilderGetNode(uint nodeId) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)ImGuiP.funcTable[1088])(nodeId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDockNode* DockBuilderGetCentralNode(uint nodeId) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)ImGuiP.funcTable[1089])(nodeId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNodeFlags, uint>)ImGuiP.funcTable[1090])(nodeId, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderRemoveNode(uint nodeId) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[1091])(nodeId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, byte clearSettingsRefs) - { - - ((delegate* unmanaged[Cdecl]<uint, byte, void>)ImGuiP.funcTable[1092])(nodeId, clearSettingsRefs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderRemoveNodeChildNodes(uint nodeId) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[1093])(nodeId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos) - { - - ((delegate* unmanaged[Cdecl]<uint, Vector2, void>)ImGuiP.funcTable[1094])(nodeId, pos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size) - { - - ((delegate* unmanaged[Cdecl]<uint, Vector2, void>)ImGuiP.funcTable[1095])(nodeId, size); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDir, float, uint*, uint*, uint>)ImGuiP.funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector<ConstPointer<byte>>* inWindowRemapPairs) - { - - ((delegate* unmanaged[Cdecl]<uint, uint, ImVector<ConstPointer<byte>>*, void>)ImGuiP.funcTable[1097])(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector<uint>* outNodeRemapPairs) - { - - ((delegate* unmanaged[Cdecl]<uint, uint, ImVector<uint>*, void>)ImGuiP.funcTable[1098])(srcNodeId, dstNodeId, outNodeRemapPairs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderCopyWindowSettings(byte* srcName, byte* dstName) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)ImGuiP.funcTable[1099])(srcName, dstName); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DockBuilderFinish(uint nodeId) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[1100])(nodeId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsDragDropActive() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGuiP.funcTable[1101])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginDragDropTargetCustom(ImRect bb, uint id) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)ImGuiP.funcTable[1102])(bb, id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ClearDragDrop() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1103])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte IsDragDropPayloadBeingAccepted() - { - - return ((delegate* unmanaged[Cdecl]<byte>)ImGuiP.funcTable[1104])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, ImRect clipRect) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, void>)ImGuiP.funcTable[1105])(window, clipRect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void BeginColumns(byte* strId, int count, ImGuiOldColumnFlags flags) - { - - ((delegate* unmanaged[Cdecl]<byte*, int, ImGuiOldColumnFlags, void>)ImGuiP.funcTable[1106])(strId, count, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void EndColumns() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1107])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushColumnClipRect(int columnIndex) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGuiP.funcTable[1108])(columnIndex); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PushColumnsBackground() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1109])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void PopColumnsBackground() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1110])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetColumnsID(byte* strId, int count) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int, uint>)ImGuiP.funcTable[1111])(strId, count); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, uint id) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, uint, ImGuiOldColumns*>)ImGuiP.funcTable[1112])(window, id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetColumnOffsetFromNorm(ImGuiOldColumns* columns, float offsetNorm) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, float, float>)ImGuiP.funcTable[1113])(columns, offsetNorm); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float GetColumnNormFromOffset(ImGuiOldColumns* columns, float offset) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, float, float>)ImGuiP.funcTable[1114])(columns, offset); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableOpenContextMenu(int columnN) - { - - ((delegate* unmanaged[Cdecl]<int, void>)ImGuiP.funcTable[1115])(columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetColumnWidth(int columnN, float width) - { - - ((delegate* unmanaged[Cdecl]<int, float, void>)ImGuiP.funcTable[1116])(columnN, width); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, byte appendToSortSpecs) - { - - ((delegate* unmanaged[Cdecl]<int, ImGuiSortDirection, byte, void>)ImGuiP.funcTable[1117])(columnN, sortDirection, appendToSortSpecs); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int TableGetHoveredColumn() - { - - return ((delegate* unmanaged[Cdecl]<int>)ImGuiP.funcTable[1118])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float TableGetHeaderRowHeight() - { - - return ((delegate* unmanaged[Cdecl]<float>)ImGuiP.funcTable[1119])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TablePushBackgroundChannel() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1120])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TablePopBackgroundChannel() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1121])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTable* GetCurrentTable() - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*>)ImGuiP.funcTable[1122])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTable* TableFindByID(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTable*>)ImGuiP.funcTable[1123])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - - return ((delegate* unmanaged[Cdecl]<byte*, uint, int, ImGuiTableFlags, Vector2, float, byte>)ImGuiP.funcTable[1124])(name, id, columnsCount, flags, outerSize, innerWidth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableBeginInitMemory(ImGuiTable* table, int columnsCount) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, void>)ImGuiP.funcTable[1125])(table, columnsCount); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableBeginApplyRequests(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1126])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetupDrawChannels(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1127])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableUpdateLayout(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1128])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableUpdateBorders(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1129])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableUpdateColumnsWeightFromWidth(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1130])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableDrawBorders(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1131])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableDrawContextMenu(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1132])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableMergeDrawChannels(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1133])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instanceNo) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, ImGuiTableInstanceData*>)ImGuiP.funcTable[1134])(table, instanceNo); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSortSpecsSanitize(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1135])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSortSpecsBuild(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1136])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumn*, ImGuiSortDirection>)ImGuiP.funcTable[1137])(column); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, ImGuiTableColumn*, void>)ImGuiP.funcTable[1138])(table, column); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, ImGuiTableColumn*, float>)ImGuiP.funcTable[1139])(table, column); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableBeginRow(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1140])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableEndRow(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1141])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableBeginCell(ImGuiTable* table, int columnN) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, void>)ImGuiP.funcTable[1142])(table, columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableEndCell(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1143])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableGetCellBgRect(ImRect* pOut, ImGuiTable* table, int columnN) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiTable*, int, void>)ImGuiP.funcTable[1144])(pOut, table, columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* TableGetColumnName(ImGuiTable* table, int columnN) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, byte*>)ImGuiP.funcTable[1145])(table, columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint TableGetColumnResizeID(ImGuiTable* table, int columnN, int instanceNo) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, int, uint>)ImGuiP.funcTable[1146])(table, columnN, instanceNo); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float TableGetMaxColumnWidth(ImGuiTable* table, int columnN) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, float>)ImGuiP.funcTable[1147])(table, columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetColumnWidthAutoSingle(ImGuiTable* table, int columnN) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, void>)ImGuiP.funcTable[1148])(table, columnN); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSetColumnWidthAutoAll(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1149])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableRemove(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1150])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableGcCompactTransientBuffers(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1151])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableGcCompactTransientBuffers(ImGuiTableTempData* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableTempData*, void>)ImGuiP.funcTable[1152])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableGcCompactSettings() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1153])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableLoadSettings(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1154])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSaveSettings(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1155])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableResetSettings(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1156])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, ImGuiTableSettings*>)ImGuiP.funcTable[1157])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TableSettingsAddSettingsHandler() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1158])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableSettings* TableSettingsCreate(uint id, int columnsCount) - { - - return ((delegate* unmanaged[Cdecl]<uint, int, ImGuiTableSettings*>)ImGuiP.funcTable[1159])(id, columnsCount); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTableSettings* TableSettingsFindByID(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTableSettings*>)ImGuiP.funcTable[1160])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte BeginTabBarEx(ImGuiTabBar* tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dockNode) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImRect, ImGuiTabBarFlags, ImGuiDockNode*, byte>)ImGuiP.funcTable[1161])(tabBar, bb, flags, dockNode); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tabBar, uint tabId) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, uint, ImGuiTabItem*>)ImGuiP.funcTable[1162])(tabBar, tabId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tabBar) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*>)ImGuiP.funcTable[1163])(tabBar); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabBarAddTab(ImGuiTabBar* tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItemFlags, ImGuiWindow*, void>)ImGuiP.funcTable[1164])(tabBar, tabFlags, window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabBarRemoveTab(ImGuiTabBar* tabBar, uint tabId) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, uint, void>)ImGuiP.funcTable[1165])(tabBar, tabId); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabBarCloseTab(ImGuiTabBar* tabBar, ImGuiTabItem* tab) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, void>)ImGuiP.funcTable[1166])(tabBar, tab); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabBarQueueReorder(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, int, void>)ImGuiP.funcTable[1167])(tabBar, tab, offset); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabBarQueueReorderFromMousePos(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, Vector2, void>)ImGuiP.funcTable[1168])(tabBar, tab, mousePos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TabBarProcessReorder(ImGuiTabBar* tabBar) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, byte>)ImGuiP.funcTable[1169])(tabBar); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TabItemEx(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, byte*, bool*, ImGuiTabItemFlags, ImGuiWindow*, byte>)ImGuiP.funcTable[1170])(tabBar, label, pOpen, flags, dockedWindow); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabItemCalcSize(Vector2* pOut, byte* label, byte hasCloseButton) - { - - ((delegate* unmanaged[Cdecl]<Vector2*, byte*, byte, void>)ImGuiP.funcTable[1171])(pOut, label, hasCloseButton); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabItemBackground(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, ImGuiTabItemFlags, uint, void>)ImGuiP.funcTable[1172])(drawList, bb, flags, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TabItemLabelAndCloseButton(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, ImGuiTabItemFlags, Vector2, byte*, uint, uint, byte, bool*, bool*, void>)ImGuiP.funcTable[1173])(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible, outJustClosed, outTextClipped); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderText(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash) - { - - ((delegate* unmanaged[Cdecl]<Vector2, byte*, byte*, byte, void>)ImGuiP.funcTable[1174])(pos, text, textEnd, hideTextAfterHash); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderTextWrapped(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) - { - - ((delegate* unmanaged[Cdecl]<Vector2, byte*, byte*, float, void>)ImGuiP.funcTable[1175])(pos, text, textEnd, wrapWidth); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) - { - - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte*, byte*, Vector2*, Vector2, ImRect*, void>)ImGuiP.funcTable[1176])(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderTextClippedEx(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, byte*, byte*, Vector2*, Vector2, ImRect*, void>)ImGuiP.funcTable[1177])(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderTextEllipsis(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, float, float, byte*, byte*, Vector2*, void>)ImGuiP.funcTable[1178])(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding) - { - - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, uint, byte, float, void>)ImGuiP.funcTable[1179])(pMin, pMax, fillCol, border, rounding); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding) - { - - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, float, void>)ImGuiP.funcTable[1180])(pMin, pMax, rounding); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderColorRectWithAlphaCheckerboard(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, Vector2, float, ImDrawFlags, void>)ImGuiP.funcTable[1181])(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiNavHighlightFlags, void>)ImGuiP.funcTable[1182])(bb, id, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* FindRenderedTextEnd(byte* text, byte* textEnd) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*>)ImGuiP.funcTable[1183])(text, textEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) - { - - ((delegate* unmanaged[Cdecl]<Vector2, float, ImGuiMouseCursor, uint, uint, uint, void>)ImGuiP.funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderArrow(ImDrawList* drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, ImGuiDir, float, void>)ImGuiP.funcTable[1185])(drawList, pos, col, dir, scale); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderBullet(ImDrawList* drawList, Vector2 pos, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, void>)ImGuiP.funcTable[1186])(drawList, pos, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderCheckMark(ImDrawList* drawList, Vector2 pos, uint col, float sz) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, float, void>)ImGuiP.funcTable[1187])(drawList, pos, col, sz); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderArrowPointingAt(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, ImGuiDir, uint, void>)ImGuiP.funcTable[1188])(drawList, pos, halfSz, direction, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderArrowDockMenu(ImDrawList* drawList, Vector2 pMin, float sz, uint col) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, void>)ImGuiP.funcTable[1189])(drawList, pMin, sz, col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderRectFilledRangeH(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, uint, float, float, float, void>)ImGuiP.funcTable[1190])(drawList, rect, col, xStartNorm, xEndNorm, rounding); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void RenderRectFilledWithHole(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, ImRect, uint, float, void>)ImGuiP.funcTable[1191])(drawList, outer, inner, col, rounding); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, ImRect, float, ImDrawFlags>)ImGuiP.funcTable[1192])(rIn, rOuter, threshold); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TextEx(byte* text, byte* textEnd, ImGuiTextFlags flags) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, ImGuiTextFlags, void>)ImGuiP.funcTable[1193])(text, textEnd, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ButtonEx(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiButtonFlags, byte>)ImGuiP.funcTable[1194])(label, sizeArg, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CloseButton(uint id, Vector2 pos) - { - - return ((delegate* unmanaged[Cdecl]<uint, Vector2, byte>)ImGuiP.funcTable[1195])(id, pos); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CollapseButton(uint id, Vector2 pos, ImGuiDockNode* dockNode) - { - - return ((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiDockNode*, byte>)ImGuiP.funcTable[1196])(id, pos, dockNode); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDir, Vector2, ImGuiButtonFlags, byte>)ImGuiP.funcTable[1197])(strId, dir, sizeArg, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Scrollbar(ImGuiAxis axis) - { - - ((delegate* unmanaged[Cdecl]<ImGuiAxis, void>)ImGuiP.funcTable[1198])(axis); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, long*, long, long, ImDrawFlags, byte>)ImGuiP.funcTable[1199])(bb, id, axis, pScrollV, availV, contentsV, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ImageButtonEx(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector4, Vector4, byte>)ImGuiP.funcTable[1200])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GetWindowScrollbarRect(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis) - { - - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, ImGuiAxis, void>)ImGuiP.funcTable[1201])(pOut, window, axis); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiAxis, uint>)ImGuiP.funcTable[1202])(window, axis); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetWindowResizeCornerID(ImGuiWindow* window, int n) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, int, uint>)ImGuiP.funcTable[1203])(window, n); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiDir, uint>)ImGuiP.funcTable[1204])(window, dir); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SeparatorEx(ImGuiSeparatorFlags flags) - { - - ((delegate* unmanaged[Cdecl]<ImGuiSeparatorFlags, void>)ImGuiP.funcTable[1205])(flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CheckboxFlags(byte* label, long* flags, long flagsValue) - { - - return ((delegate* unmanaged[Cdecl]<byte*, long*, long, byte>)ImGuiP.funcTable[1206])(label, flags, flagsValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte CheckboxFlags(byte* label, ulong* flags, ulong flagsValue) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong, byte>)ImGuiP.funcTable[1207])(label, flags, flagsValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, bool*, bool*, ImGuiButtonFlags, byte>)ImGuiP.funcTable[1208])(bb, id, outHovered, outHeld, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, void*, float, void*, void*, byte*, ImGuiSliderFlags, byte>)ImGuiP.funcTable[1209])(id, dataType, pV, vSpeed, pMin, pMax, format, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRect* outGrabBb) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiDataType, void*, void*, void*, byte*, ImGuiSliderFlags, ImRect*, byte>)ImGuiP.funcTable[1210])(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, float*, float*, float, float, float, float, uint, byte>)ImGuiP.funcTable[1211])(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, byte*, byte*, byte>)ImGuiP.funcTable[1212])(id, flags, label, labelEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TreeNodeBehaviorIsOpen(uint id, ImGuiTreeNodeFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, byte>)ImGuiP.funcTable[1213])(id, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void TreePushOverrideID(uint id) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[1214])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType dataType) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDataType, ImGuiDataTypeInfo*>)ImGuiP.funcTable[1215])(dataType); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DataTypeApplyOp(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDataType, int, void*, void*, void*, void>)ImGuiP.funcTable[1216])(dataType, op, output, arg1, arg2); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, byte* format) - { - - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, byte*, byte>)ImGuiP.funcTable[1217])(buf, dataType, pData, format); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int DataTypeCompare(ImGuiDataType dataType, void* arg1, void* arg2) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDataType, void*, void*, int>)ImGuiP.funcTable[1218])(dataType, arg1, arg2); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte DataTypeClamp(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiDataType, void*, void*, void*, byte>)ImGuiP.funcTable[1219])(dataType, pData, pMin, pMax); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte*, ImGuiDataType, void*, byte*, void*, void*, byte>)ImGuiP.funcTable[1220])(bb, id, label, dataType, pData, format, pClampMin, pClampMax); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TempInputIsActive(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, byte>)ImGuiP.funcTable[1221])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImGuiInputTextState* GetInputTextState(uint id) - { - - return ((delegate* unmanaged[Cdecl]<uint, ImGuiInputTextState*>)ImGuiP.funcTable[1222])(id); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Custom_StbTextMakeUndoReplace(ImGuiInputTextState* str, int where, int oldLength, int newLength) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int, int, int, void>)ImGuiP.funcTable[1223])(str, where, oldLength, newLength); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Custom_StbTextUndo(ImGuiInputTextState* str) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[1224])(str); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ColorTooltip(byte* text, float* col, ImGuiColorEditFlags flags) - { - - ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, void>)ImGuiP.funcTable[1225])(text, col, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ColorEditOptionsPopup(float* col, ImGuiColorEditFlags flags) - { - - ((delegate* unmanaged[Cdecl]<float*, ImGuiColorEditFlags, void>)ImGuiP.funcTable[1226])(col, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ColorPickerOptionsPopup(float* refCol, ImGuiColorEditFlags flags) - { - - ((delegate* unmanaged[Cdecl]<float*, ImGuiColorEditFlags, void>)ImGuiP.funcTable[1227])(refCol, flags); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - - return ((delegate* unmanaged[Cdecl]<ImGuiPlotType, byte*, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, int>)ImGuiP.funcTable[1228])(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, Vector2, Vector2, uint, uint, void>)ImGuiP.funcTable[1229])(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShadeVertsLinearUV(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, byte clamp) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, Vector2, Vector2, Vector2, Vector2, byte, void>)ImGuiP.funcTable[1230])(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GcCompactTransientMiscBuffers() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1231])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GcCompactTransientWindowBuffers(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[1232])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void GcAwakeTransientWindowBuffers(ImGuiWindow* window) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)ImGuiP.funcTable[1233])(window); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugLog(byte* fmt) - { - - ((delegate* unmanaged[Cdecl]<byte*, void>)ImGuiP.funcTable[1234])(fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugLogV(byte* fmt, nuint args) - { - - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)ImGuiP.funcTable[1235])(fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - - ((delegate* unmanaged[Cdecl]<delegate*<void*, byte*, void>, void*, void>)ImGuiP.funcTable[1236])((delegate*<void*, byte*, void>)Utils.GetFunctionPointerForDelegate(logCallback), userData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - - ((delegate* unmanaged[Cdecl]<delegate*<void*, byte*, void>, void*, void>)ImGuiP.funcTable[1237])((delegate*<void*, byte*, void>)Utils.GetFunctionPointerForDelegate(logCallback), userData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugDrawItemRect(uint col) - { - - ((delegate* unmanaged[Cdecl]<uint, void>)ImGuiP.funcTable[1238])(col); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugStartItemPicker() - { - - ((delegate* unmanaged[Cdecl]<void>)ImGuiP.funcTable[1239])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ShowFontAtlas(ImFontAtlas* atlas) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGuiP.funcTable[1240])(atlas); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugHookIdInfo(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) - { - - ((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, void*, void*, void>)ImGuiP.funcTable[1241])(id, dataType, dataId, dataIdEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeColumns(ImGuiOldColumns* columns) - { - - ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, void>)ImGuiP.funcTable[1242])(columns); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeDockNode(ImGuiDockNode* node, byte* label) - { - - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte*, void>)ImGuiP.funcTable[1243])(node, label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiViewportP*, ImDrawList*, byte*, void>)ImGuiP.funcTable[1244])(window, viewport, drawList, label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, byte showMesh, byte showAabb) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImDrawList*, ImDrawCmd*, byte, byte, void>)ImGuiP.funcTable[1245])(outDrawList, drawList, drawCmd, showMesh, showAabb); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeFont(ImFont* font) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, void>)ImGuiP.funcTable[1246])(font); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeFontGlyph(ImFont* font, ImFontGlyph* glyph) - { - - ((delegate* unmanaged[Cdecl]<ImFont*, ImFontGlyph*, void>)ImGuiP.funcTable[1247])(font, glyph); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeStorage(ImGuiStorage* storage, byte* label) - { - - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, byte*, void>)ImGuiP.funcTable[1248])(storage, label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeTabBar(ImGuiTabBar* tabBar, byte* label) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, byte*, void>)ImGuiP.funcTable[1249])(tabBar, label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeTable(ImGuiTable* table) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)ImGuiP.funcTable[1250])(table); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeTableSettings(ImGuiTableSettings* settings) - { - - ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*, void>)ImGuiP.funcTable[1251])(settings); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeInputTextState(ImGuiInputTextState* state) - { - - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)ImGuiP.funcTable[1252])(state); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeWindow(ImGuiWindow* window, byte* label) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte*, void>)ImGuiP.funcTable[1253])(window, label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeWindowSettings(ImGuiWindowSettings* settings) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*, void>)ImGuiP.funcTable[1254])(settings); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeWindowsList(ImVector<ImGuiWindowPtr>* windows, byte* label) - { - - ((delegate* unmanaged[Cdecl]<ImVector<ImGuiWindowPtr>*, byte*, void>)ImGuiP.funcTable[1255])(windows, label); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack) - { - - ((delegate* unmanaged[Cdecl]<ImGuiWindow**, int, ImGuiWindow*, void>)ImGuiP.funcTable[1256])(windows, windowsSize, parentInBeginStack); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugNodeViewport(ImGuiViewportP* viewport) - { - - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)ImGuiP.funcTable[1257])(viewport); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void DebugRenderViewportThumbnail(ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb) - { - - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImGuiViewportP*, ImRect, void>)ImGuiP.funcTable[1258])(drawList, viewport, bb); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() - { - - return ((delegate* unmanaged[Cdecl]<ImFontBuilderIO*>)ImGuiP.funcTable[1259])(); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFontAtlasBuildInit(ImFontAtlas* atlas) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGuiP.funcTable[1260])(atlas); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFont*, ImFontConfig*, float, float, void>)ImGuiP.funcTable[1261])(atlas, font, fontConfig, ascent, descent); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFontAtlasBuildFinish(ImFontAtlas* atlas) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)ImGuiP.funcTable[1263])(atlas); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, int, int, int, int, byte*, byte, byte, void>)ImGuiP.funcTable[1264])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, int, int, int, int, byte*, byte, uint, void>)ImGuiP.funcTable[1265])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFontAtlasBuildMultiplyCalcLookupTable(byte* outTable, float inMultiplyFactor, float gammaFactor) - { - - ((delegate* unmanaged[Cdecl]<byte*, float, float, void>)ImGuiP.funcTable[1266])(outTable, inMultiplyFactor, gammaFactor); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, byte* pixels, int x, int y, int w, int h, int stride) - { - - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, int, int, int, int, void>)ImGuiP.funcTable[1267])(table, pixels, x, y, w, h, stride); - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions.gen.cs deleted file mode 100644 index aa67c41a1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions.gen.cs +++ /dev/null @@ -1,51 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -/* Functions.000.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.001.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.002.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.003.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.004.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} -/* Functions.005.cs */ -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGui.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGui.gen.cs deleted file mode 100644 index f4a51c35f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGui.gen.cs +++ /dev/null @@ -1,26 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGui -{ -} -// DISCARDED: internal static int DataTypeFormatStringNative(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) -// DISCARDED: internal static int ImFormatStringNative(byte* buf, nuint bufSize, byte* fmt) -// DISCARDED: internal static int ImFormatStringVNative(byte* buf, nuint bufSize, byte* fmt, nuint args) -// DISCARDED: internal static byte* ImParseFormatTrimDecorationsNative(byte* format, byte* buf, nuint bufSize) -// DISCARDED: ImParseFormatTrimDecorationsS -// DISCARDED: internal static int ImTextStrFromUtf8Native(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) -// DISCARDED: internal static int ImTextStrToUtf8Native(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) -// DISCARDED: internal static byte InputTextNative(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) -// DISCARDED: internal static byte InputTextExNative(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) -// DISCARDED: internal static byte InputTextMultilineNative(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) -// DISCARDED: internal static byte InputTextWithHintNative(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) -// DISCARDED: internal static byte TempInputTextNative(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGuiNative.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGuiNative.gen.cs deleted file mode 100644 index 04c166e66..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Manual/Functions/ImGuiNative.gen.cs +++ /dev/null @@ -1,91 +0,0 @@ -// <auto-generated/> - -using HexaGen.Runtime; -using System; -using System.Diagnostics; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGuiNative -{ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)ImGui.funcTable[1268])(label, buf, bufSize, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, Vector2, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)ImGui.funcTable[1269])(label, buf, bufSize, size, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, nuint, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)ImGui.funcTable[1270])(label, hint, buf, bufSize, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImFormatString(byte* buf, nuint bufSize, byte* fmt) - { - - return ((delegate* unmanaged[Cdecl]<byte*, nuint, byte*, int>)ImGui.funcTable[1271])(buf, bufSize, fmt); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImFormatStringV(byte* buf, nuint bufSize, byte* fmt, nuint args) - { - - return ((delegate* unmanaged[Cdecl]<byte*, nuint, byte*, nuint, int>)ImGui.funcTable[1272])(buf, bufSize, fmt, args); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte* ImParseFormatTrimDecorations(byte* format, byte* buf, nuint bufSize) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, byte*>)ImGui.funcTable[1273])(format, buf, bufSize); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int, ushort*, ushort*, int>)ImGui.funcTable[1274])(outBuf, outBufSize, inText, inTextEnd); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) - { - - return ((delegate* unmanaged[Cdecl]<ushort*, int, byte*, byte*, byte**, int>)ImGui.funcTable[1275])(outBuf, outBufSize, inText, inTextEnd, inRemaining); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - - return ((delegate* unmanaged[Cdecl]<byte*, int, ImGuiDataType, void*, byte*, int>)ImGui.funcTable[1276])(buf, bufSize, dataType, pData, format); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, Vector2, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)ImGui.funcTable[1277])(label, hint, buf, bufSize, sizeArg, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static byte TempInputText(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte*, byte*, int, ImGuiInputTextFlags, byte>)ImGui.funcTable[1278])(bb, id, label, buf, bufSize, flags); - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawCallbackEnum.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawCallbackEnum.cs deleted file mode 100644 index 732cd3c71..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawCallbackEnum.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public enum ImDrawCallbackEnum : long -{ - Empty, - - /// <summary> - /// Special Draw callback value to request renderer backend to reset the graphics/render state. - /// The renderer backend needs to handle this special value, otherwise it will crash trying to call a function at - /// this address. This is useful for example if you submitted callbacks which you know have altered the render - /// state, and you want it to be restored. It is not done by default because they are many perfectly useful way of - /// altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). - /// </summary> - ResetRenderState = ImGui.ImDrawCallbackResetRenderState, -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawList.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawList.Custom.cs deleted file mode 100644 index 97087aa82..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImDrawList.Custom.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System.Numerics; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImDrawList -{ - public void AddText(Vector2 pos, uint col, ImU8String text) - { - fixed (ImDrawList* thisPtr = &this) - ImGui.AddText(thisPtr, pos, col, text); - } - - public void AddText( - ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth, - scoped in Vector4 cpuFineClipRect) - { - fixed (ImDrawList* thisPtr = &this) - ImGui.AddText(thisPtr, font, fontSize, pos, col, text, wrapWidth, cpuFineClipRect); - } - - public void AddText( - ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth = 0f) - { - fixed (ImDrawList* thisPtr = &this) - ImGui.AddText(thisPtr, font, fontSize, pos, col, text, wrapWidth); - } -} - -public partial struct ImDrawListPtr -{ - public void AddText(Vector2 pos, uint col, ImU8String text) => ImGui.AddText(this, pos, col, text); - - public void AddText( - ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth, - scoped in Vector4 cpuFineClipRect) => ImGui.AddText( - this, - font, - fontSize, - pos, - col, - text, - wrapWidth, - cpuFineClipRect); - - public void AddText( - ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth = 0f) => - ImGui.AddText(this, font, fontSize, pos, col, text, wrapWidth); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImFont.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImFont.Custom.cs deleted file mode 100644 index 4d0368018..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImFont.Custom.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Numerics; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFont -{ - public readonly int CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, float wrapWidth) - { - fixed (ImFont* thisPtr = &this) return ImGui.CalcWordWrapPositionA(thisPtr, scale, text, wrapWidth); - } - - public readonly void RenderText( - ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ImU8String text, - float wrapWidth = 0.0f, bool cpuFineClip = false) - { - fixed (ImFont* thisPtr = - &this) ImGui.RenderText(thisPtr, drawList, size, pos, col, clipRect, text, wrapWidth, cpuFineClip); - } -} - -public partial struct ImFontPtr -{ - public readonly int CalcWordWrapPositionA(float scale, ImU8String text, float wrapWidth) => - ImGui.CalcWordWrapPositionA(this, scale, text, wrapWidth); - - public readonly void RenderText( - ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ImU8String text, - float wrapWidth = 0.0f, bool cpuFineClip = false) => ImGui.RenderText( - this, - drawList, - size, - pos, - col, - clipRect, - text, - wrapWidth, - cpuFineClip); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImFontAtlas.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImFontAtlas.Custom.cs deleted file mode 100644 index f6295ccd5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImFontAtlas.Custom.cs +++ /dev/null @@ -1,78 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontAtlas -{ - public ImFontPtr AddFontFromFileTTF( - ImU8String filename, float sizePixels, ImFontConfigPtr fontCfg = default, ushort* glyphRanges = null) - { - fixed (ImFontAtlas* thisPtr = &this) - return ImGui.AddFontFromFileTTF(thisPtr, filename, sizePixels, fontCfg, glyphRanges); - } - - public ImFontPtr AddFontFromMemoryCompressedBase85TTF( - ImU8String compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) - { - fixed (ImFontAtlas* thisPtr = &this) - { - return ImGui.AddFontFromMemoryCompressedBase85TTF( - thisPtr, - compressedFontDatabase85, - sizePixels, - fontCfg, - glyphRanges); - } - } - - public ImFontPtr AddFontFromMemoryCompressedTTF( - ReadOnlySpan<byte> compressedFontData, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) - { - fixed (ImFontAtlas* thisPtr = &this) - { - return ImGui.AddFontFromMemoryCompressedTTF( - thisPtr, - compressedFontData, - sizePixels, - fontCfg, - glyphRanges); - } - } - - public ImFontPtr AddFontFromMemoryTTF( - ReadOnlySpan<byte> fontData, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) - { - fixed (ImFontAtlas* thisPtr = &this) - { - return ImGui.AddFontFromMemoryTTF( - thisPtr, - fontData, - sizePixels, - fontCfg, - glyphRanges); - } - } -} - -public unsafe partial struct ImFontAtlasPtr -{ - public ImFontPtr AddFontFromFileTTF( - ImU8String filename, float sizePixels, ImFontConfigPtr fontCfg = default, ushort* glyphRanges = null) => - ImGui.AddFontFromFileTTF(this, filename, sizePixels, fontCfg, glyphRanges); - - public ImFontPtr AddFontFromMemoryCompressedBase85TTF( - ImU8String compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) => - ImGui.AddFontFromMemoryCompressedBase85TTF(this, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - - public ImFontPtr AddFontFromMemoryCompressedTTF( - ReadOnlySpan<byte> compressedFontData, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) => - ImGui.AddFontFromMemoryCompressedTTF(this, compressedFontData, sizePixels, fontCfg, glyphRanges); - - public ImFontPtr AddFontFromMemoryTTF( - ReadOnlySpan<byte> fontData, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) => - ImGui.AddFontFromMemoryTTF(this, fontData, sizePixels, fontCfg, glyphRanges); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImFontGlyphRangesBuilder.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImFontGlyphRangesBuilder.Custom.cs deleted file mode 100644 index 196a61c76..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImFontGlyphRangesBuilder.Custom.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImFontGlyphRangesBuilder -{ - public void AddText(ImU8String text) - { - fixed (ImFontGlyphRangesBuilder* thisPtr = &this) ImGui.AddText(thisPtr, text); - } -} - -public partial struct ImFontGlyphRangesBuilderPtr -{ - public void AddText(ImU8String text) => ImGui.AddText(this, text); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ColorEditPicker.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ColorEditPicker.cs deleted file mode 100644 index 9cfdd970c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ColorEditPicker.cs +++ /dev/null @@ -1,81 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public static bool ColorEdit3( - ImU8String label, scoped ref Vector3 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (Vector3* colPtr = &col) - { - var res = ImGuiNative.ColorEdit3(labelPtr, &colPtr->X, flags) != 0; - label.Recycle(); - return res; - } - } - - public static bool ColorEdit4( - ImU8String label, scoped ref Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (Vector4* colPtr = &col) - { - var res = ImGuiNative.ColorEdit4(labelPtr, &colPtr->X, flags) != 0; - label.Recycle(); - return res; - } - } - - public static bool ColorPicker3( - ImU8String label, scoped ref Vector3 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (Vector3* colPtr = &col) - { - var res = ImGuiNative.ColorPicker3(labelPtr, &colPtr->X, flags) != 0; - label.Recycle(); - return res; - } - } - - public static bool ColorPicker4( - ImU8String label, scoped ref Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (Vector4* colPtr = &col) - { - var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, flags, null) != 0; - label.Recycle(); - return res; - } - } - - public static bool ColorPicker4( - ImU8String label, scoped ref Vector4 col, ImGuiColorEditFlags flags, scoped in Vector4 refCol) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (Vector4* colPtr = &col) - fixed (Vector4* refColPtr = &refCol) - { - var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, flags, &refColPtr->X) != 0; - label.Recycle(); - return res; - } - } - - public static bool ColorPicker4(ImU8String label, scoped ref Vector4 col, scoped in Vector4 refCol) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (Vector4* colPtr = &col) - fixed (Vector4* refColPtr = &refCol) - { - var res = ImGuiNative.ColorPicker4(labelPtr, &colPtr->X, ImGuiColorEditFlags.None, &refColPtr->X) != 0; - label.Recycle(); - return res; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ComboAndList.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ComboAndList.cs deleted file mode 100644 index ed261a694..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.ComboAndList.cs +++ /dev/null @@ -1,384 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public delegate ImU8String PopulateAutoUtf8BufferDelegate(int index); - - public delegate ImU8String PopulateAutoUtf8BufferInContextDelegate<T>(scoped in T context, int index) - where T : allows ref struct; - - public delegate ImU8String PopulateAutoUtf8BufferRefContextDelegate<T>(scoped ref T context, int index) - where T : allows ref struct; - - [OverloadResolutionPriority(8)] - public static bool Combo( - ImU8String label, ref int currentItem, ImU8String itemsSeparatedByZeros, int popupMaxHeightInItems = -1) - { - if (!itemsSeparatedByZeros.Span.EndsWith("\0\0"u8)) - itemsSeparatedByZeros.AppendFormatted("\0\0"u8); - - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* currentItemPtr = ¤tItem) - fixed (byte* itemsSeparatedByZerosPtr = itemsSeparatedByZeros) - { - var r = ImGuiNative.Combo(labelPtr, currentItemPtr, itemsSeparatedByZerosPtr, popupMaxHeightInItems) != 0; - label.Recycle(); - itemsSeparatedByZeros.Recycle(); - return r; - } - } - - [OverloadResolutionPriority(7)] - public static bool Combo( - ImU8String label, ref int currentItem, ReadOnlySpan<string> items, int popupMaxHeightInItems = -1) => - Combo( - label, - ref currentItem, - static (scoped in ReadOnlySpan<string> items, int index) => items[index], - items, - items.Length, - popupMaxHeightInItems); - - [OverloadResolutionPriority(6)] - public static bool Combo<T>( - ImU8String label, ref int currentItem, scoped in T items, int popupMaxHeightInItems = -1) - where T : IList<string> => - Combo( - label, - ref currentItem, - static (scoped in T items, int index) => items[index], - items, - items.Count, - popupMaxHeightInItems); - - [OverloadResolutionPriority(5)] - public static bool Combo( - ImU8String label, ref int currentItem, IReadOnlyList<string> items, int popupMaxHeightInItems = -1) => - Combo( - label, - ref currentItem, - static (scoped in IReadOnlyList<string> items, int index) => items[index], - items, - items.Count, - popupMaxHeightInItems); - - [OverloadResolutionPriority(4)] - public static bool Combo<T>( - ImU8String label, ref int currentItem, ReadOnlySpan<T> items, Func<T, string> toString, - int popupMaxHeightInItems = -1) - { - var tmp = PointerTuple.CreateFixed(ref items, ref toString); - return Combo( - label, - ref currentItem, - static (scoped in PointerTuple<ReadOnlySpan<T>, Func<T, string>> items, int index) => - items.Item2(items.Item1[index]), - tmp, - items.Length, - popupMaxHeightInItems); - } - - [OverloadResolutionPriority(3)] - public static bool Combo<T, TList>( - ImU8String label, ref int currentItem, scoped in TList items, Func<T, string> toString, - int popupMaxHeightInItems = -1) - where TList : IList<T> => - Combo( - label, - ref currentItem, - static (scoped in (TList, Func<T, string>) items, int index) => items.Item2(items.Item1[index]), - (items, toString), - items.Count, - popupMaxHeightInItems); - - [OverloadResolutionPriority(2)] - public static bool Combo<T>( - ImU8String label, ref int currentItem, IReadOnlyList<T> items, Func<T, string> toString, - int popupMaxHeightInItems = -1) => - Combo( - label, - ref currentItem, - static (scoped in (IReadOnlyList<T>, Func<T, string>) items, int index) => items.Item2(items.Item1[index]), - (items, toString), - items.Count, - popupMaxHeightInItems); - - public static bool Combo<TContext>( - ImU8String label, ref int currentItem, PopulateAutoUtf8BufferInContextDelegate<TContext> itemsGetter, - scoped in TContext context, int itemsCount, int popupMaxHeightInItems = -1) - where TContext : allows ref struct - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* currentItemPtr = ¤tItem) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - ImU8String textBuffer = default; - var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.Combo( - labelPtr, - currentItemPtr, - (delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>) - (nint)(delegate* unmanaged<void*, int, byte**, bool>)&PopulateUtf8BufferInContextStatic, - &dataBuffer, - itemsCount, - popupMaxHeightInItems) != 0; - label.Recycle(); - textBuffer.Recycle(); - return r; - } - } - - public static bool Combo<TContext>( - ImU8String label, ref int currentItem, PopulateAutoUtf8BufferRefContextDelegate<TContext> itemsGetter, - scoped ref TContext context, int itemsCount, int popupMaxHeightInItems = -1) - where TContext : allows ref struct - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* currentItemPtr = ¤tItem) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - ImU8String textBuffer = default; - var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.Combo( - labelPtr, - currentItemPtr, - (delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>) - (nint)(delegate* unmanaged<void*, int, byte**, bool>)&PopulateUtf8BufferRefContextStatic, - &dataBuffer, - itemsCount, - popupMaxHeightInItems) != 0; - label.Recycle(); - textBuffer.Recycle(); - return r; - } - } - - public static bool Combo( - ImU8String label, ref int currentItem, PopulateAutoUtf8BufferDelegate itemsGetter, int itemsCount, - int popupMaxHeightInItems = -1) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* currentItemPtr = ¤tItem) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - { - ImU8String textBuffer = default; - var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.Combo( - labelPtr, - currentItemPtr, - (delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>) - (nint)(delegate* unmanaged<void*, int, byte**, bool>)&PopulateUtf8BufferStatic, - &dataBuffer, - itemsCount, - popupMaxHeightInItems) != 0; - label.Recycle(); - textBuffer.Recycle(); - return r; - } - } - - [OverloadResolutionPriority(2)] - public static bool ListBox( - ImU8String label, ref int currentItem, ReadOnlySpan<string> items, int heightInItems = -1) => - ListBox( - label, - ref currentItem, - static (scoped in ReadOnlySpan<string> items, int index) => items[index], - items, - items.Length, - heightInItems); - - [OverloadResolutionPriority(3)] - public static bool ListBox<T>(ImU8String label, ref int currentItem, scoped in T items, int heightInItems = -1) - where T : IList<string> => - ListBox( - label, - ref currentItem, - static (scoped in T items, int index) => items[index], - items, - items.Count, - heightInItems); - - [OverloadResolutionPriority(4)] - public static bool ListBox( - ImU8String label, ref int currentItem, IReadOnlyList<string> items, int heightInItems = -1) => - ListBox( - label, - ref currentItem, - static (scoped in IReadOnlyList<string> items, int index) => items[index], - items, - items.Count, - heightInItems); - - [OverloadResolutionPriority(5)] - public static bool ListBox<T>( - ImU8String label, ref int currentItem, ReadOnlySpan<T> items, Func<T, string> toString, - int heightInItems = -1) - { - var tmp = PointerTuple.CreateFixed(ref items, ref toString); - return ListBox( - label, - ref currentItem, - static (scoped in PointerTuple<ReadOnlySpan<T>, Func<T, string>> items, int index) => - items.Item2(items.Item1[index]), - tmp, - items.Length, - heightInItems); - } - - [OverloadResolutionPriority(6)] - public static bool ListBox<T, TList>( - ImU8String label, ref int currentItem, scoped in TList items, Func<T, string> toString, - int heightInItems = -1) - where TList : IList<T> => - ListBox( - label, - ref currentItem, - static (scoped in (TList, Func<T, string>) items, int index) => items.Item2(items.Item1[index]), - (items, toString), - items.Count, - heightInItems); - - [OverloadResolutionPriority(7)] - public static bool ListBox<T>( - ImU8String label, ref int currentItem, IReadOnlyList<T> items, Func<T, string> toString, - int heightInItems = -1) => - ListBox( - label, - ref currentItem, - static (scoped in (IReadOnlyList<T>, Func<T, string>) items, int index) => items.Item2(items.Item1[index]), - (items, toString), - items.Count, - heightInItems); - - public static bool ListBox<TContext>( - ImU8String label, ref int currentItem, PopulateAutoUtf8BufferRefContextDelegate<TContext> itemsGetter, - scoped ref TContext context, int itemsCount, int heightInItems = -1) - where TContext : allows ref struct - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* currentItemPtr = ¤tItem) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - ImU8String textBuffer = default; - var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.ListBox( - labelPtr, - currentItemPtr, - (delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>) - (nint)(delegate* unmanaged<void*, int, byte**, bool>)&PopulateUtf8BufferRefContextStatic, - &dataBuffer, - itemsCount, - heightInItems) != 0; - label.Recycle(); - textBuffer.Recycle(); - return r; - } - } - - public static bool ListBox<TContext>( - ImU8String label, ref int currentItem, PopulateAutoUtf8BufferInContextDelegate<TContext> itemsGetter, - scoped in TContext context, int itemsCount, int heightInItems = -1) - where TContext : allows ref struct - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* currentItemPtr = ¤tItem) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - ImU8String textBuffer = default; - var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.ListBox( - labelPtr, - currentItemPtr, - (delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>) - (nint)(delegate* unmanaged<void*, int, byte**, bool>)&PopulateUtf8BufferInContextStatic, - &dataBuffer, - itemsCount, - heightInItems) != 0; - label.Recycle(); - textBuffer.Recycle(); - return r; - } - } - - public static bool ListBox( - ImU8String label, ref int currentItem, PopulateAutoUtf8BufferDelegate itemsGetter, int itemsCount, - int heightInItems = -1) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* currentItemPtr = ¤tItem) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - { - ImU8String textBuffer = default; - var dataBuffer = PointerTuple.Create(&itemsGetter, &textBuffer); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.ListBox( - labelPtr, - currentItemPtr, - (delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>) - (nint)(delegate* unmanaged<void*, int, byte**, bool>)&PopulateUtf8BufferStatic, - &dataBuffer, - itemsCount, - heightInItems) != 0; - label.Recycle(); - textBuffer.Recycle(); - return r; - } - } - - [UnmanagedCallersOnly] - private static bool PopulateUtf8BufferRefContextStatic(void* data, int index, byte** text) - { -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ref var s = ref PointerTuple.From<PopulateAutoUtf8BufferRefContextDelegate<object>, ImU8String, object>(data); - s.Item2.Recycle(); - s.Item2 = s.Item1.Invoke(ref s.Item3, index); - if (s.Item2.IsNull) - return false; - *text = (byte*)Unsafe.AsPointer(ref Unsafe.AsRef(in s.Item2.GetPinnableNullTerminatedReference())); - return true; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - } - - [UnmanagedCallersOnly] - private static bool PopulateUtf8BufferInContextStatic(void* data, int index, byte** text) - { -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ref var s = ref PointerTuple.From<PopulateAutoUtf8BufferInContextDelegate<object>, ImU8String, object>(data); - s.Item2.Recycle(); - s.Item2 = s.Item1.Invoke(s.Item3, index); - if (s.Item2.IsNull) - return false; - *text = (byte*)Unsafe.AsPointer(ref Unsafe.AsRef(in s.Item2.GetPinnableNullTerminatedReference())); - return true; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - } - - [UnmanagedCallersOnly] - private static bool PopulateUtf8BufferStatic(void* data, int index, byte** text) - { -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ref var s = ref PointerTuple.From<PopulateAutoUtf8BufferDelegate, ImU8String>(data); - s.Item2.Recycle(); - s.Item2 = s.Item1.Invoke(index); - if (s.Item2.IsNull) - return false; - *text = (byte*)Unsafe.AsPointer(ref Unsafe.AsRef(in s.Item2.GetPinnableNullTerminatedReference())); - return true; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Custom.cs deleted file mode 100644 index 6e3420f49..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Custom.cs +++ /dev/null @@ -1,66 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGui -{ - public static int GetImGuiDataTypeSize(ImGuiDataType dataType) => dataType switch - { - ImGuiDataType.S8 => sizeof(sbyte), - ImGuiDataType.U8 => sizeof(byte), - ImGuiDataType.S16 => sizeof(short), - ImGuiDataType.U16 => sizeof(ushort), - ImGuiDataType.S32 => sizeof(int), - ImGuiDataType.U32 => sizeof(uint), - ImGuiDataType.S64 => sizeof(long), - ImGuiDataType.U64 => sizeof(ulong), - ImGuiDataType.Float => sizeof(float), - ImGuiDataType.Double => sizeof(double), - _ => throw new ArgumentOutOfRangeException(nameof(dataType), dataType, null) - }; - - public static ImGuiDataType GetImGuiDataType(Type type) - { - if (type == typeof(sbyte)) return ImGuiDataType.S8; - if (type == typeof(byte)) return ImGuiDataType.U8; - if (type == typeof(short)) return ImGuiDataType.S16; - if (type == typeof(ushort)) return ImGuiDataType.U16; - if (type == typeof(int)) return ImGuiDataType.S32; - if (type == typeof(uint)) return ImGuiDataType.U32; - if (type == typeof(long)) return ImGuiDataType.S64; - if (type == typeof(ulong)) return ImGuiDataType.U64; - if (type == typeof(float)) return ImGuiDataType.Float; - if (type == typeof(double)) return ImGuiDataType.Double; - throw new ArgumentOutOfRangeException(nameof(type), type, null); - } - - public static ImGuiDataType GetImGuiDataType<T>() => GetImGuiDataType(typeof(T)); - - public static string GetFormatSpecifier(ImGuiDataType dataType) => dataType switch - { - ImGuiDataType.S8 => "%hhd", - ImGuiDataType.U8 => "%hhu", - ImGuiDataType.S16 => "%hd", - ImGuiDataType.U16 => "%hu", - ImGuiDataType.S32 => "%d", - ImGuiDataType.U32 => "%u", - ImGuiDataType.S64 => "%I64d", - ImGuiDataType.U64 => "%I64u", - ImGuiDataType.Float => "%f", - ImGuiDataType.Double => "%lf", - _ => throw new ArgumentOutOfRangeException(nameof(dataType), dataType, null) - }; - - public static ReadOnlySpan<byte> GetFormatSpecifierU8(ImGuiDataType dataType) => dataType switch - { - ImGuiDataType.S8 => "%hhd"u8, - ImGuiDataType.U8 => "%hhu"u8, - ImGuiDataType.S16 => "%hd"u8, - ImGuiDataType.U16 => "%hu"u8, - ImGuiDataType.S32 => "%d"u8, - ImGuiDataType.U32 => "%u"u8, - ImGuiDataType.S64 => "%I64d"u8, - ImGuiDataType.U64 => "%I64u"u8, - ImGuiDataType.Float => "%f"u8, - ImGuiDataType.Double => "%lf"u8, - _ => throw new ArgumentOutOfRangeException(nameof(dataType), dataType, null) - }; -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.DragScalar.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.DragScalar.cs deleted file mode 100644 index 3cf20bb30..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.DragScalar.cs +++ /dev/null @@ -1,457 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public static bool DragSByte( - ImU8String label, scoped ref sbyte v, float vSpeed = 1.0f, sbyte vMin = 0, sbyte vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S8, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hhd"u8), - flags); - - public static bool DragSByte( - ImU8String label, Span<sbyte> v, float vSpeed = 1.0f, sbyte vMin = 0, sbyte vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S8, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hhd"u8), - flags); - - public static bool DragByte( - ImU8String label, scoped ref byte v, float vSpeed = 1.0f, byte vMin = 0, byte vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U8, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hhu"u8), - flags); - - public static bool DragByte( - ImU8String label, Span<byte> v, float vSpeed = 1.0f, byte vMin = 0, byte vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U8, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hhu"u8), - flags); - - public static bool DragShort( - ImU8String label, scoped ref short v, float vSpeed = 1.0f, short vMin = 0, short vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S16, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hd"u8), - flags); - - public static bool DragShort( - ImU8String label, Span<short> v, float vSpeed = 1.0f, short vMin = 0, short vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S16, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hd"u8), - flags); - - public static bool DragUShort( - ImU8String label, scoped ref ushort v, float vSpeed = 1.0f, ushort vMin = 0, ushort vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U16, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hu"u8), - flags); - - public static bool DragUShort( - ImU8String label, Span<ushort> v, float vSpeed = 1.0f, ushort vMin = 0, ushort vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U16, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%hu"u8), - flags); - - public static bool DragInt( - ImU8String label, scoped ref int v, float vSpeed = 1.0f, int vMin = 0, int vMax = 0, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S32, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%d"u8), - flags); - - public static bool DragInt( - ImU8String label, Span<int> v, float vSpeed = 1.0f, int vMin = 0, - int vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S32, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%d"u8), - flags); - - public static bool DragUInt( - ImU8String label, scoped ref uint v, float vSpeed = 1.0f, uint vMin = 0, - uint vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U32, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%u"u8), - flags); - - public static bool DragUInt( - ImU8String label, Span<uint> v, float vSpeed = 1.0f, uint vMin = 0, - uint vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U32, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%u"u8), - flags); - - public static bool DragLong( - ImU8String label, scoped ref long v, float vSpeed = 1.0f, long vMin = 0, - long vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S64, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%I64d"u8), - flags); - - public static bool DragLong( - ImU8String label, Span<long> v, float vSpeed = 1.0f, long vMin = 0, - long vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.S64, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%I64d"u8), - flags); - - public static bool DragULong( - ImU8String label, scoped ref ulong v, float vSpeed = 1.0f, - ulong vMin = 0, ulong vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U64, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%I64u"u8), - flags); - - public static bool DragULong( - ImU8String label, Span<ulong> v, float vSpeed = 1.0f, ulong vMin = 0, - ulong vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.U64, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%I64u"u8), - flags); - - public static bool DragFloat( - ImU8String label, scoped ref float v, float vSpeed = 1.0f, - float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.Float, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool DragFloat( - ImU8String label, Span<float> v, float vSpeed = 1.0f, float vMin = 0.0f, - float vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.Float, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool DragFloat2( - ImU8String label, scoped ref Vector2 v, float vSpeed = 1.0f, - float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector2, float>(new Span<Vector2>(ref v)), - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool DragFloat3( - ImU8String label, scoped ref Vector3 v, float vSpeed = 1.0f, - float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector3, float>(new Span<Vector3>(ref v)), - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool DragFloat4( - ImU8String label, scoped ref Vector4 v, float vSpeed = 1.0f, - float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector4, float>(new Span<Vector4>(ref v)), - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool DragDouble( - ImU8String label, scoped ref double v, float vSpeed = 1.0f, - double vMin = 0.0f, double vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.Double, - ref v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool DragDouble( - ImU8String label, Span<double> v, float vSpeed = 1.0f, - double vMin = 0.0f, double vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => DragScalar( - label, - ImGuiDataType.Double, - v, - vSpeed, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool DragScalar<T>( - ImU8String label, ImGuiDataType dataType, scoped ref T v, float vSpeed, - scoped in T vMin, scoped in T vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = &v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.DragScalar(labelPtr, dataType, vPtr, vSpeed, vMinPtr, vMaxPtr, formatPtr, flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool DragScalar<T>( - ImU8String label, ImGuiDataType dataType, Span<T> v, float vSpeed, - scoped in T vMin, scoped in T vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.DragScalarN( - labelPtr, - dataType, - vPtr, - v.Length, - vSpeed, - vMinPtr, - vMaxPtr, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool DragScalar<T>( - ImU8String label, scoped ref T v, float vSpeed, - scoped in T vMin, scoped in T vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = &v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.DragScalar( - labelPtr, - GetImGuiDataType<T>(), - vPtr, - vSpeed, - vMinPtr, - vMaxPtr, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool DragScalar<T>( - ImU8String label, Span<T> v, float vSpeed, - scoped in T vMin, scoped in T vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.DragScalarN( - labelPtr, - GetImGuiDataType<T>(), - vPtr, - v.Length, - vSpeed, - vMinPtr, - vMaxPtr, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool DragFloatRange2( - ImU8String label, scoped ref float vCurrentMin, - scoped ref float vCurrentMax, float vSpeed = 1.0f, float vMin = 0.0f, float vMax = 0.0f, - ImU8String format = default, - ImU8String formatMax = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (float* vCurrentMinPtr = &vCurrentMin) - fixed (float* vCurrentMaxPtr = &vCurrentMax) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference("%.3f"u8)) - fixed (byte* formatMaxPtr = &formatMax.GetPinnableNullTerminatedReference()) - { - var res = ImGuiNative.DragFloatRange2( - labelPtr, - vCurrentMinPtr, - vCurrentMaxPtr, - vSpeed, - vMin, - vMax, - formatPtr, - formatMaxPtr, - flags); - label.Recycle(); - format.Recycle(); - formatMax.Recycle(); - return res != 0; - } - } - - public static bool DragIntRange2( - ImU8String label, scoped ref int vCurrentMin, - scoped ref int vCurrentMax, float vSpeed = 1.0f, int vMin = 0, int vMax = 0, - ImU8String format = default, - ImU8String formatMax = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (int* vCurrentMinPtr = &vCurrentMin) - fixed (int* vCurrentMaxPtr = &vCurrentMax) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference("%d"u8)) - fixed (byte* formatMaxPtr = &formatMax.GetPinnableNullTerminatedReference()) - { - var res = ImGuiNative.DragIntRange2( - labelPtr, - vCurrentMinPtr, - vCurrentMaxPtr, - vSpeed, - vMin, - vMax, - formatPtr, - formatMaxPtr, - flags); - label.Recycle(); - format.Recycle(); - formatMax.Recycle(); - return res != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs deleted file mode 100644 index 5881ac462..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs +++ /dev/null @@ -1,365 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public static bool InputSByte( - ImU8String label, scoped ref sbyte data, sbyte step = 0, sbyte stepFast = 0, - ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S8, - ref data, - step, - stepFast, - format.MoveOrDefault("%hhd"u8), - flags); - - public static bool InputSByte( - ImU8String label, Span<sbyte> data, sbyte step = 0, sbyte stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S8, - data, - step, - stepFast, - format.MoveOrDefault("%hhd"u8), - flags); - - public static bool InputByte( - ImU8String label, scoped ref byte data, byte step = 0, byte stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U8, - ref data, - step, - stepFast, - format.MoveOrDefault("%hhu"u8), - flags); - - public static bool InputByte( - ImU8String label, Span<byte> data, byte step = 0, byte stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U8, - data, - step, - stepFast, - format.MoveOrDefault("%hhu"u8), - flags); - - public static bool InputShort( - ImU8String label, scoped ref short data, short step = 0, short stepFast = 0, - ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S16, - ref data, - step, - stepFast, - format.MoveOrDefault("%hd"u8), - flags); - - public static bool InputShort( - ImU8String label, Span<short> data, short step = 0, short stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S16, - data, - step, - stepFast, - format.MoveOrDefault("%hd"u8), - flags); - - public static bool InputUShort( - ImU8String label, scoped ref ushort data, ushort step = 0, ushort stepFast = 0, - ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U16, - ref data, - step, - stepFast, - format.MoveOrDefault("%hu"u8), - flags); - - public static bool InputUShort( - ImU8String label, Span<ushort> data, ushort step = 0, ushort stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U16, - data, - step, - stepFast, - format.MoveOrDefault("%hu"u8), - flags); - - public static bool InputInt( - ImU8String label, scoped ref int data, int step = 0, int stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S32, - ref data, - step, - stepFast, - format.MoveOrDefault("%d"u8), - flags); - - public static bool InputInt( - ImU8String label, Span<int> data, int step = 0, int stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S32, - data, - step, - stepFast, - format.MoveOrDefault("%d"u8), - flags); - - public static bool InputUInt( - ImU8String label, scoped ref uint data, uint step = 0, uint stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U32, - ref data, - step, - stepFast, - format.MoveOrDefault("%u"u8), - flags); - - public static bool InputUInt( - ImU8String label, Span<uint> data, uint step = 0, uint stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U32, - data, - step, - stepFast, - format.MoveOrDefault("%u"u8), - flags); - - public static bool InputLong( - ImU8String label, scoped ref long data, long step = 0, long stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S64, - ref data, - step, - stepFast, - format.MoveOrDefault("%I64d"u8), - flags); - - public static bool InputLong( - ImU8String label, Span<long> data, long step = 0, long stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.S64, - data, - step, - stepFast, - format.MoveOrDefault("%I64d"u8), - flags); - - public static bool InputULong( - ImU8String label, scoped ref ulong data, ulong step = 0, ulong stepFast = 0, - ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U64, - ref data, - step, - stepFast, - format.MoveOrDefault("%I64u"u8), - flags); - - public static bool InputULong( - ImU8String label, Span<ulong> data, ulong step = 0, ulong stepFast = 0, ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar( - label, - ImGuiDataType.U64, - data, - step, - stepFast, - format.MoveOrDefault("%I64u"u8), - flags); - - public static bool InputFloat( - ImU8String label, scoped ref float data, float step = 0.0f, - float stepFast = 0.0f, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => - InputScalar(label, ImGuiDataType.Float, ref data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); - - public static bool InputFloat( - ImU8String label, Span<float> data, float step = 0.0f, - float stepFast = 0.0f, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => - InputScalar(label, ImGuiDataType.Float, data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); - - public static bool InputFloat2( - ImU8String label, scoped ref Vector2 data, float step = 0.0f, - float stepFast = 0.0f, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => - InputScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector2, float>(new Span<Vector2>(ref data)), - step, - stepFast, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool InputFloat3( - ImU8String label, scoped ref Vector3 data, float step = 0.0f, - float stepFast = 0.0f, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => - InputScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector3, float>(new Span<Vector3>(ref data)), - step, - stepFast, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool InputFloat4( - ImU8String label, scoped ref Vector4 data, float step = 0.0f, - float stepFast = 0.0f, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => - InputScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector4, float>(new Span<Vector4>(ref data)), - step, - stepFast, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool InputDouble( - ImU8String label, scoped ref double data, double step = 0.0f, - double stepFast = 0.0f, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => - InputScalar(label, ImGuiDataType.Double, ref data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); - - public static bool InputDouble( - ImU8String label, Span<double> data, double step = 0.0f, - double stepFast = 0.0f, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => - InputScalar(label, ImGuiDataType.Double, data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags); - - public static bool InputScalar<T>( - ImU8String label, ImGuiDataType dataType, scoped ref T data, - scoped in T step, scoped in T stepFast, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* dataPtr = &data) - fixed (T* stepPtr = &step) - fixed (T* stepFastPtr = &stepFast) - { - var res = ImGuiNative.InputScalar( - labelPtr, - dataType, - dataPtr, - step > T.Zero ? stepPtr : null, - stepFast > T.Zero ? stepFastPtr : null, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool InputScalar<T>( - ImU8String label, ImGuiDataType dataType, Span<T> data, - scoped in T step, scoped in T stepFast, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* dataPtr = data) - fixed (T* stepPtr = &step) - fixed (T* stepFastPtr = &stepFast) - { - var res = ImGuiNative.InputScalarN( - labelPtr, - dataType, - dataPtr, - data.Length, - step > T.Zero ? stepPtr : null, - stepFast > T.Zero ? stepFastPtr : null, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool InputScalar<T>( - ImU8String label, scoped ref T data, - scoped in T step, scoped in T stepFast, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* dataPtr = &data) - fixed (T* stepPtr = &step) - fixed (T* stepFastPtr = &stepFast) - { - var res = ImGuiNative.InputScalar( - labelPtr, - GetImGuiDataType<T>(), - dataPtr, - step > T.Zero ? stepPtr : null, - stepFast > T.Zero ? stepFastPtr : null, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool InputScalar<T>( - ImU8String label, Span<T> data, - scoped in T step, scoped in T stepFast, - ImU8String format = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* dataPtr = data) - fixed (T* stepPtr = &step) - fixed (T* stepFastPtr = &stepFast) - { - var res = ImGuiNative.InputScalarN( - labelPtr, - GetImGuiDataType<T>(), - dataPtr, - data.Length, - step > T.Zero ? stepPtr : null, - stepFast > T.Zero ? stepFastPtr : null, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Manual.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Manual.cs deleted file mode 100644 index e455e0778..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Manual.cs +++ /dev/null @@ -1,679 +0,0 @@ -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Text; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGui -{ - public static Span<byte> DataTypeFormatString<T>( - Span<byte> buf, ImGuiDataType dataType, T data, ImU8String format = default) - where T : unmanaged, IBinaryNumber<T> - { - if (format.IsEmpty) - format = GetFormatSpecifierU8(dataType); - - if (sizeof(T) != GetImGuiDataTypeSize(dataType)) - { - throw new ArgumentOutOfRangeException( - nameof(dataType), - dataType, - $"Type indicated by {nameof(dataType)} does not match the type of {nameof(data)}."); - } - - fixed (byte* bufPtr = buf) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - { - var len = ImGuiNative.DataTypeFormatString(bufPtr, buf.Length, dataType, &data, formatPtr); - format.Recycle(); - return buf[..len]; - } - } - - public static Span<byte> DataTypeFormatString<T>(Span<byte> buf, T data, ImU8String format = default) - where T : unmanaged, IBinaryNumber<T> => DataTypeFormatString(buf, GetImGuiDataType<T>(), data, format); - - public static Span<byte> ImParseFormatTrimDecorations(ImU8String format, Span<byte> buf) - { - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (byte* bufPtr = buf) - ImGuiNative.ImParseFormatTrimDecorations(formatPtr, bufPtr, (nuint)buf.Length); - format.Recycle(); - var nul = buf.IndexOf((byte)0); - return nul == -1 ? buf : buf[..nul]; - } - - public static int ImTextStrFromUtf8( - Span<char> outBuf, ReadOnlySpan<byte> inText, out ReadOnlySpan<byte> inRemaining) - { - fixed (char* outBufPtr = outBuf) - fixed (byte* inTextPtr = inText) - { - byte* inRemainingPtr; - var r = ImGuiNative.ImTextStrFromUtf8( - (ushort*)outBufPtr, - outBuf.Length, - inTextPtr, - inTextPtr + inText.Length, - &inRemainingPtr); - inRemaining = inText[(int)(inRemainingPtr - inTextPtr)..]; - return r; - } - } - - public static Span<byte> ImTextStrToUtf8(Span<byte> outBuf, ReadOnlySpan<char> inText) - { - fixed (byte* outBufPtr = outBuf) - fixed (char* inTextPtr = inText) - { - return outBuf[..ImGuiNative.ImTextStrToUtf8( - outBufPtr, - outBuf.Length, - (ushort*)inTextPtr, - (ushort*)inTextPtr + inText.Length)]; - } - } - - public delegate int ImGuiInputTextCallbackDelegate(scoped ref ImGuiInputTextCallbackData data); - - public delegate int ImGuiInputTextCallbackPtrDelegate(ImGuiInputTextCallbackDataPtr data); - - public delegate int ImGuiInputTextCallbackRefContextDelegate<TContext>( - scoped ref ImGuiInputTextCallbackData data, scoped ref TContext context); - - public delegate int ImGuiInputTextCallbackInContextDelegate<TContext>( - scoped ref ImGuiInputTextCallbackData data, scoped in TContext context); - - public static bool InputText( - ImU8String label, Span<byte> buf, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, - ImGuiInputTextCallbackDelegate? callback = null) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, default, buf, default, flags, callback); - } - - public static bool InputText( - ImU8String label, Span<byte> buf, ImGuiInputTextFlags flags, ImGuiInputTextCallbackPtrDelegate? callback) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, default, buf, default, flags, callback); - } - - public static bool InputText<TContext>( - ImU8String label, Span<byte> buf, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, default, buf, default, flags, callback, ref context); - } - - public static bool InputText<TContext>( - ImU8String label, Span<byte> buf, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, default, buf, default, flags, callback, in context); - } - - public static bool InputText( - ImU8String label, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, ImGuiInputTextCallbackDelegate? callback = null) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputText(label, t.Buffer[..(maxLength + 1)], flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputText( - ImU8String label, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackPtrDelegate? callback) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputText(label, t.Buffer[..(maxLength + 1)], flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputText<TContext>( - ImU8String label, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputText(label, t.Buffer[..(maxLength + 1)], flags, callback, ref context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputText<TContext>( - ImU8String label, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputText(label, t.Buffer[..(maxLength + 1)], flags, callback, in context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextEx( - ImU8String label, ImU8String hint, Span<byte> buf, Vector2 sizeArg = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, ImGuiInputTextCallbackDelegate? callback = null) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* hintPtr = &hint.GetPinnableNullTerminatedReference()) - fixed (byte* bufPtr = buf) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - { - var dataBuffer = PointerTuple.Create(&callback); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.InputTextEx( - labelPtr, - hintPtr, - bufPtr, - buf.Length, - sizeArg, - flags, - callback == null ? null : &InputTextCallbackStatic, - callback == null ? null : &dataBuffer) != 0; - label.Recycle(); - hint.Recycle(); - return r; - } - } - - public static bool InputTextEx( - ImU8String label, ImU8String hint, Span<byte> buf, Vector2 sizeArg, - ImGuiInputTextFlags flags, ImGuiInputTextCallbackPtrDelegate? callback) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* hintPtr = &hint.GetPinnableNullTerminatedReference()) - fixed (byte* bufPtr = buf) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - { - var dataBuffer = PointerTuple.Create(&callback); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.InputTextEx( - labelPtr, - hintPtr, - bufPtr, - buf.Length, - sizeArg, - flags, - callback == null ? null : &InputTextCallbackPtrStatic, - callback == null ? null : &dataBuffer) != 0; - label.Recycle(); - hint.Recycle(); - return r; - } - } - - public static bool InputTextEx<TContext>( - ImU8String label, ImU8String hint, Span<byte> buf, Vector2 sizeArg, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* hintPtr = &hint.GetPinnableNullTerminatedReference()) - fixed (byte* bufPtr = buf) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - var dataBuffer = PointerTuple.Create(&callback, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.InputTextEx( - labelPtr, - hintPtr, - bufPtr, - buf.Length, - sizeArg, - flags, - &InputTextCallbackRefContextStatic, - &dataBuffer) != 0; - label.Recycle(); - hint.Recycle(); - return r; - } - } - - public static bool InputTextEx<TContext>( - ImU8String label, ImU8String hint, Span<byte> buf, Vector2 sizeArg, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* hintPtr = &hint.GetPinnableNullTerminatedReference()) - fixed (byte* bufPtr = buf) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - var dataBuffer = PointerTuple.Create(&callback, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiNative.InputTextEx( - labelPtr, - hintPtr, - bufPtr, - buf.Length, - sizeArg, - flags, - &InputTextCallbackInContextStatic, - &dataBuffer) != 0; - label.Recycle(); - hint.Recycle(); - return r; - } - } - - public static bool InputTextEx( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, - Vector2 sizeArg = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, - ImGuiInputTextCallbackDelegate? callback = null) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextEx(label, hint, t.Buffer[..(maxLength + 1)], sizeArg, flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextEx( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, Vector2 sizeArg, - ImGuiInputTextFlags flags, ImGuiInputTextCallbackPtrDelegate? callback) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextEx(label, hint, t.Buffer[..(maxLength + 1)], sizeArg, flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextEx<TContext>( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, Vector2 sizeArg, - ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextEx(label, hint, t.Buffer[..(maxLength + 1)], sizeArg, flags, callback, ref context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextEx<TContext>( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, Vector2 sizeArg, - ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextEx(label, hint, t.Buffer[..(maxLength + 1)], sizeArg, flags, callback, in context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextMultiline( - ImU8String label, Span<byte> buf, Vector2 size = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, - ImGuiInputTextCallbackDelegate? callback = null) => - InputTextEx( - label, - default, - buf, - size, - flags | (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline, - callback); - - public static bool InputTextMultiline( - ImU8String label, Span<byte> buf, Vector2 size, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackPtrDelegate? callback) => - InputTextEx( - label, - default, - buf, - size, - flags | (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline, - callback); - - public static bool InputTextMultiline<TContext>( - ImU8String label, Span<byte> buf, Vector2 size, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) => - InputTextEx( - label, - default, - buf, - size, - flags | (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline, - callback, - ref context); - - public static bool InputTextMultiline<TContext>( - ImU8String label, Span<byte> buf, Vector2 size, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) => - InputTextEx( - label, - default, - buf, - size, - flags | (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline, - callback, - in context); - - public static bool InputTextMultiline( - ImU8String label, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, Vector2 size = default, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, - ImGuiInputTextCallbackDelegate? callback = null) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextMultiline(label, t.Buffer[..(maxLength + 1)], size, flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextMultiline( - ImU8String label, scoped ref string buf, int maxLength, Vector2 size, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackPtrDelegate? callback) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextMultiline(label, t.Buffer[..(maxLength + 1)], size, flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextMultiline<TContext>( - ImU8String label, scoped ref string buf, int maxLength, Vector2 size, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextMultiline(label, t.Buffer[..(maxLength + 1)], size, flags, callback, ref context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextMultiline<TContext>( - ImU8String label, scoped ref string buf, int maxLength, Vector2 size, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextMultiline(label, t.Buffer[..(maxLength + 1)], size, flags, callback, in context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextWithHint( - ImU8String label, ImU8String hint, Span<byte> buf, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, - ImGuiInputTextCallbackDelegate? callback = null) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, hint, buf, default, flags, callback); - } - - public static bool InputTextWithHint( - ImU8String label, ImU8String hint, Span<byte> buf, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackPtrDelegate? callback) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, hint, buf, default, flags, callback); - } - - public static bool InputTextWithHint<TContext>( - ImU8String label, ImU8String hint, Span<byte> buf, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, hint, buf, default, flags, callback, ref context); - } - - public static bool InputTextWithHint<TContext>( - ImU8String label, ImU8String hint, Span<byte> buf, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) - { - if ((flags & (ImGuiInputTextFlags)ImGuiInputTextFlagsPrivate.Multiline) != ImGuiInputTextFlags.None) - throw new ArgumentOutOfRangeException(nameof(flags), flags, "Multiline must not be set"); - return InputTextEx(label, hint, buf, default, flags, callback, in context); - } - - public static bool InputTextWithHint( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, - ImGuiInputTextCallbackDelegate? callback = null) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextWithHint(label, hint, t.Buffer[..(maxLength + 1)], flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextWithHint( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackPtrDelegate? callback) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextWithHint(label, hint, t.Buffer[..(maxLength + 1)], flags, callback); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextWithHint<TContext>( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackRefContextDelegate<TContext> callback, scoped ref TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextWithHint(label, hint, t.Buffer[..(maxLength + 1)], flags, callback, ref context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool InputTextWithHint<TContext>( - ImU8String label, ImU8String hint, scoped ref string buf, int maxLength, ImGuiInputTextFlags flags, - ImGuiInputTextCallbackInContextDelegate<TContext> callback, scoped in TContext context) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = InputTextWithHint(label, hint, t.Buffer[..(maxLength + 1)], flags, callback, in context); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - public static bool TempInputText( - ImRect bb, uint id, ImU8String label, Span<byte> buf, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* bufPtr = buf) - { - var r = ImGuiNative.TempInputText(bb, id, labelPtr, bufPtr, buf.Length, flags) != 0; - label.Recycle(); - return r; - } - } - - public static bool TempInputText( - ImRect bb, uint id, ImU8String label, scoped ref string buf, int maxLength = ImU8String.AllocFreeBufferSize, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) - { - var t = new ImU8String(buf); - t.Reserve(maxLength + 1); - var r = TempInputText(bb, id, label, t.Buffer[..(maxLength + 1)], flags); - - var e = (flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0; - if (r | e) - { - var i = t.Buffer.IndexOf((byte)0); - buf = Encoding.UTF8.GetString(i == -1 ? t.Buffer : t.Buffer[..i]); - } - - t.Recycle(); - return r; - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static int InputTextCallbackStatic(ImGuiInputTextCallbackData* data) - { - ref var dvps = ref PointerTuple.From<ImGuiInputTextCallbackDelegate>(data->UserData); - return dvps.Item1.Invoke(ref *data); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static int InputTextCallbackPtrStatic(ImGuiInputTextCallbackData* data) - { - ref var dvps = ref PointerTuple.From<ImGuiInputTextCallbackPtrDelegate>(data->UserData); - return dvps.Item1.Invoke(data); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static int InputTextCallbackRefContextStatic(ImGuiInputTextCallbackData* data) - { - ref var dvps = ref PointerTuple.From<ImGuiInputTextCallbackRefContextDelegate<object>, object>(data->UserData); - return dvps.Item1.Invoke(ref *data, ref dvps.Item2); - } - - [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])] - private static int InputTextCallbackInContextStatic(ImGuiInputTextCallbackData* data) - { - ref var dvps = ref PointerTuple.From<ImGuiInputTextCallbackInContextDelegate<object>, object>(data->UserData); - return dvps.Item1.Invoke(ref *data, in dvps.Item2); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Misc.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Misc.cs deleted file mode 100644 index e7aa6cc4a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Misc.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Text; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public static void AddCallback( - ImDrawListPtr self, delegate*<ImDrawListPtr, ImDrawCmdPtr, void> callback, void* callbackData = null) => - ImGuiNative.AddCallback(self, (delegate*<ImDrawList*, ImDrawCmd*, void>)callback, callbackData); - - public static void AddCallback( - ImDrawListPtr self, delegate*<ref ImDrawList, ref ImDrawCmd, void> callback, void* callbackData = null) => - ImGuiNative.AddCallback(self, (delegate*<ImDrawList*, ImDrawCmd*, void>)callback, callbackData); - - public static void AddCallback(ImDrawListPtr self, ImDrawCallbackEnum presetCallback) - { - if (!Enum.IsDefined(presetCallback)) - throw new ArgumentOutOfRangeException(nameof(presetCallback), presetCallback, null); - ImGuiNative.AddCallback(self, (delegate*<ImDrawList*, ImDrawCmd*, void>)(nint)presetCallback); - } - - public static ImGuiPayloadPtr AcceptDragDropPayload( - ImU8String type, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) - { - fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.AcceptDragDropPayload(typePtr, flags); - type.Recycle(); - return r; - } - } - - public static ImFontPtr AddFontFromFileTTF( - ImFontAtlasPtr self, ImU8String filename, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) - { - fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.AddFontFromFileTTF(self, filenamePtr, sizePixels, fontCfg, glyphRanges); - filename.Recycle(); - return r; - } - } - - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF( - ImFontAtlasPtr self, ImU8String compressedFontDatabase85, float sizePixels, - ImFontConfigPtr fontCfg = default, ushort* glyphRanges = null) - { - fixed (byte* compressedFontDatabase85Ptr = &compressedFontDatabase85.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.AddFontFromMemoryCompressedBase85TTF( - self, - compressedFontDatabase85Ptr, - sizePixels, - fontCfg, - glyphRanges); - compressedFontDatabase85.Recycle(); - return r; - } - } - - public static ImFontPtr AddFontFromMemoryCompressedTTF( - ImFontAtlasPtr self, ReadOnlySpan<byte> compressedFontData, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) - { - fixed (byte* compressedFontPtr = compressedFontData) - return ImGuiNative.AddFontFromMemoryCompressedTTF( - self, - compressedFontPtr, - compressedFontData.Length, - sizePixels, - fontCfg, - glyphRanges); - } - - public static ImFontPtr AddFontFromMemoryTTF( - ImFontAtlasPtr self, ReadOnlySpan<byte> fontData, float sizePixels, ImFontConfigPtr fontCfg = default, - ushort* glyphRanges = null) - { - fixed (byte* fontDataPtr = fontData) - return ImGuiNative.AddFontFromMemoryTTF( - self, - fontDataPtr, - fontData.Length, - sizePixels, - fontCfg, - glyphRanges); - } - - public static void AddInputCharacter(ImGuiIOPtr self, char c) => ImGuiNative.AddInputCharacter(self, c); - public static void AddInputCharacter(ImGuiIOPtr self, Rune c) => ImGuiNative.AddInputCharacter(self, (uint)c.Value); - - public static void AddInputCharacters(ImGuiIOPtr self, ImU8String str) - { - fixed (byte* strPtr = &str.GetPinnableNullTerminatedReference()) - ImGuiNative.AddInputCharactersUTF8(self.Handle, strPtr); - str.Recycle(); - } - - public static ref bool GetBoolRef(ImGuiStoragePtr self, uint key, bool defaultValue = false) => - ref *ImGuiNative.GetBoolRef(self.Handle, key, defaultValue ? (byte)1 : (byte)0); - - public static ref float GetFloatRef(ImGuiStoragePtr self, uint key, float defaultValue = 0.0f) => - ref *ImGuiNative.GetFloatRef(self.Handle, key, defaultValue); - - public static ref int GetIntRef(ImGuiStoragePtr self, uint key, int defaultValue = 0) => - ref *ImGuiNative.GetIntRef(self.Handle, key, defaultValue); - - public static ref void* GetVoidPtrRef(ImGuiStoragePtr self, uint key, void* defaultValue = null) => - ref *ImGuiNative.GetVoidPtrRef(self.Handle, key, defaultValue); - - public static ref T* GetPtrRef<T>(ImGuiStoragePtr self, uint key, T* defaultValue = null) where T : unmanaged => - ref *(T**)ImGuiNative.GetVoidPtrRef(self.Handle, key, defaultValue); - - public static ref T GetRef<T>(ImGuiStoragePtr self, uint key, T defaultValue = default) where T : unmanaged - { - if (sizeof(T) > sizeof(void*)) throw new ArgumentOutOfRangeException(nameof(T), typeof(T), null); - return ref *(T*)ImGuiNative.GetVoidPtrRef(self.Handle, key, *(void**)&defaultValue); - } - - public static uint GetID(ImU8String strId) - { - fixed (byte* strIdPtr = strId) - { - var r = ImGuiNative.GetID(strIdPtr, strIdPtr + strId.Length); - strId.Recycle(); - return r; - } - } - - public static uint GetID(nint ptrId) => ImGuiNative.GetID((void*)ptrId); - public static uint GetID(nuint ptrId) => ImGuiNative.GetID((void*)ptrId); - public static uint GetID(void* ptrId) => ImGuiNative.GetID(ptrId); - - public static void PushID(ImU8String strId) - { - fixed (byte* strIdPtr = strId) - { - ImGuiNative.PushID(strIdPtr, strIdPtr + strId.Length); - strId.Recycle(); - } - } - - public static void PushID(nint ptrId) => ImGuiNative.PushID((void*)ptrId); - public static void PushID(nuint ptrId) => ImGuiNative.PushID((void*)ptrId); - - public static void PushID(void* ptrId) => - ImGuiNative.PushID(ptrId); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Plot.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Plot.cs deleted file mode 100644 index d2662238c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Plot.cs +++ /dev/null @@ -1,268 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public delegate float GetFloatDelegate(int index); - - public delegate float GetFloatInContextDelegate<T>(scoped in T context, int index) where T : allows ref struct; - - public delegate float GetFloatRefContextDelegate<T>(scoped ref T context, int index) where T : allows ref struct; - - public static void PlotHistogram( - ImU8String label, ReadOnlySpan<float> values, int valuesOffset = 0, ImU8String overlayText = default, - float scaleMin = float.MaxValue, float scaleMax = float.MaxValue, Vector2 graphSize = default, - int stride = sizeof(float)) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (float* valuesPtr = values) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) - { - ImGuiNative.PlotHistogram( - labelPtr, - valuesPtr, - values.Length, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize, - stride); - } - - label.Recycle(); - overlayText.Recycle(); - } - - public static void PlotHistogram<TContext>( - ImU8String label, GetFloatRefContextDelegate<TContext> valuesGetter, scoped ref TContext context, - int valuesCount, - int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, - float scaleMax = float.MaxValue, Vector2 graphSize = default) - { - var dataBuffer = stackalloc void*[2]; - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - dataBuffer[0] = &valuesGetter; - dataBuffer[1] = contextPtr; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ImGuiNative.PlotHistogram( - labelPtr, - (delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&GetFloatRefContextStatic, - dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize); - } - - label.Recycle(); - overlayText.Recycle(); - } - - public static void PlotHistogram<TContext>( - ImU8String label, GetFloatInContextDelegate<TContext> valuesGetter, scoped in TContext context, int valuesCount, - int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, - float scaleMax = float.MaxValue, Vector2 graphSize = default) - { - var dataBuffer = stackalloc void*[2]; - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - dataBuffer[0] = &valuesGetter; - dataBuffer[1] = contextPtr; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ImGuiNative.PlotHistogram( - labelPtr, - (delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&GetFloatInContextStatic, - dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize); - } - - label.Recycle(); - overlayText.Recycle(); - } - - public static void PlotHistogram( - ImU8String label, GetFloatDelegate valuesGetter, int valuesCount, - int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, - float scaleMax = float.MaxValue, Vector2 graphSize = default) - { - var dataBuffer = stackalloc void*[1]; - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - { - dataBuffer[0] = &valuesGetter; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ImGuiNative.PlotHistogram( - labelPtr, - (delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&GetFloatStatic, - dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize); - } - - label.Recycle(); - overlayText.Recycle(); - } - - public static void PlotLines( - ImU8String label, ReadOnlySpan<float> values, int valuesOffset = 0, ImU8String overlayText = default, - float scaleMin = float.MaxValue, float scaleMax = float.MaxValue, Vector2 graphSize = default, - int stride = sizeof(float)) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (float* valuesPtr = values) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) - { - ImGuiNative.PlotLines( - labelPtr, - valuesPtr, - values.Length, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize, - stride); - } - - label.Recycle(); - overlayText.Recycle(); - } - - public static void PlotLines<TContext>( - ImU8String label, GetFloatInContextDelegate<TContext> valuesGetter, scoped in TContext context, int valuesCount, - int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, - float scaleMax = float.MaxValue, Vector2 graphSize = default) - { - var dataBuffer = stackalloc void*[2]; - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - dataBuffer[0] = &valuesGetter; - dataBuffer[1] = contextPtr; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ImGuiNative.PlotLines( - labelPtr, - (delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&GetFloatInContextStatic, - dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize); - } - - label.Recycle(); - overlayText.Recycle(); - } - - public static void PlotLines<TContext>( - ImU8String label, GetFloatRefContextDelegate<TContext> valuesGetter, scoped in TContext context, - int valuesCount, - int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, - float scaleMax = float.MaxValue, Vector2 graphSize = default) - { - var dataBuffer = stackalloc void*[2]; - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - dataBuffer[0] = &valuesGetter; - dataBuffer[1] = contextPtr; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ImGuiNative.PlotLines( - labelPtr, - (delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&GetFloatRefContextStatic, - dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize); - } - - label.Recycle(); - overlayText.Recycle(); - } - - public static void PlotLines( - ImU8String label, GetFloatDelegate valuesGetter, int valuesCount, - int valuesOffset = 0, ImU8String overlayText = default, float scaleMin = float.MaxValue, - float scaleMax = float.MaxValue, Vector2 graphSize = default) - { - var dataBuffer = stackalloc void*[1]; - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - { - dataBuffer[0] = &valuesGetter; -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - ImGuiNative.PlotLines( - labelPtr, - (delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&GetFloatStatic, - dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - graphSize); - } - - label.Recycle(); - overlayText.Recycle(); - } - -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - [UnmanagedCallersOnly] - internal static float GetFloatRefContextStatic(void* data, int index) - { - ref var pt = ref PointerTuple.From<GetFloatRefContextDelegate<object>, object>(data); - return pt.Item1.Invoke(ref pt.Item2, index); - } - - [UnmanagedCallersOnly] - internal static float GetFloatInContextStatic(void* data, int index) - { - ref var pt = ref PointerTuple.From<GetFloatInContextDelegate<object>, object>(data); - return pt.Item1.Invoke(pt.Item2, index); - } - - [UnmanagedCallersOnly] - internal static float GetFloatStatic(void* data, int index) => - PointerTuple.From<GetFloatDelegate>(data).Item1.Invoke(index); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.SliderScalar.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.SliderScalar.cs deleted file mode 100644 index b0c4b7c79..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.SliderScalar.cs +++ /dev/null @@ -1,474 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public static bool SliderSByte( - ImU8String label, scoped ref sbyte v, sbyte vMin = 0, sbyte vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S8, - ref v, - vMin, - vMax, - format.MoveOrDefault("%hhd"u8), - flags); - - public static bool SliderSByte( - ImU8String label, Span<sbyte> v, sbyte vMin = 0, sbyte vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S8, - v, - vMin, - vMax, - format.MoveOrDefault("%hhd"u8), - flags); - - public static bool SliderByte( - ImU8String label, scoped ref byte v, byte vMin = 0, byte vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U8, - ref v, - vMin, - vMax, - format.MoveOrDefault("%hhu"u8), - flags); - - public static bool SliderByte( - ImU8String label, Span<byte> v, byte vMin = 0, byte vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U8, - v, - vMin, - vMax, - format.MoveOrDefault("%hhu"u8), - flags); - - public static bool SliderShort( - ImU8String label, scoped ref short v, short vMin = 0, short vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S16, - ref v, - vMin, - vMax, - format.MoveOrDefault("%hd"u8), - flags); - - public static bool SliderShort( - ImU8String label, Span<short> v, short vMin = 0, short vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S16, - v, - vMin, - vMax, - format.MoveOrDefault("%hd"u8), - flags); - - public static bool SliderUShort( - ImU8String label, scoped ref ushort v, ushort vMin = 0, ushort vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U16, - ref v, - vMin, - vMax, - format.MoveOrDefault("%hu"u8), - flags); - - public static bool SliderUShort( - ImU8String label, Span<ushort> v, ushort vMin = 0, ushort vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U16, - v, - vMin, - vMax, - format.MoveOrDefault("%hu"u8), - flags); - - public static bool SliderInt( - ImU8String label, scoped ref int v, int vMin = 0, int vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S32, - ref v, - vMin, - vMax, - format.MoveOrDefault("%d"u8), - flags); - - public static bool SliderInt( - ImU8String label, Span<int> v, int vMin = 0, int vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S32, - v, - vMin, - vMax, - format.MoveOrDefault("%d"u8), - flags); - - public static bool SliderUInt( - ImU8String label, scoped ref uint v, uint vMin = 0, uint vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U32, - ref v, - vMin, - vMax, - format.MoveOrDefault("%u"u8), - flags); - - public static bool SliderUInt( - ImU8String label, Span<uint> v, uint vMin = 0, uint vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U32, - v, - vMin, - vMax, - format.MoveOrDefault("%u"u8), - flags); - - public static bool SliderLong( - ImU8String label, scoped ref long v, long vMin = 0, long vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S64, - ref v, - vMin, - vMax, - format.MoveOrDefault("%I64d"u8), - flags); - - public static bool SliderLong( - ImU8String label, Span<long> v, long vMin = 0, long vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.S64, - v, - vMin, - vMax, - format.MoveOrDefault("%I64d"u8), - flags); - - public static bool SliderULong( - ImU8String label, scoped ref ulong v, ulong vMin = 0, ulong vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U64, - ref v, - vMin, - vMax, - format.MoveOrDefault("%I64u"u8), - flags); - - public static bool SliderULong( - ImU8String label, Span<ulong> v, ulong vMin = 0, ulong vMax = 0, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.U64, - v, - vMin, - vMax, - format.MoveOrDefault("%I64u"u8), - flags); - - public static bool SliderFloat( - ImU8String label, scoped ref float v, float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.Float, - ref v, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool SliderFloat( - ImU8String label, Span<float> v, float vMin = 0.0f, float vMax = 0.0f, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.Float, - v, - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool SliderFloat2( - ImU8String label, scoped ref Vector2 v, float vMin = 0.0f, float vMax = 0.0f, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => SliderScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector2, float>(new Span<Vector2>(ref v)), - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool SliderFloat3( - ImU8String label, scoped ref Vector3 v, float vMin = 0.0f, float vMax = 0.0f, - ImU8String format = default, ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - SliderScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector3, float>(new Span<Vector3>(ref v)), - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool SliderFloat4( - ImU8String label, scoped ref Vector4 v, float vMin = 0.0f, - float vMax = 0.0f, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - SliderScalar( - label, - ImGuiDataType.Float, - MemoryMarshal.Cast<Vector4, float>(new Span<Vector4>(ref v)), - vMin, - vMax, - format.MoveOrDefault("%.3f"u8), - flags); - - public static bool SliderDouble( - ImU8String label, scoped ref double v, double vMin = 0.0f, - double vMax = 0.0f, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - SliderScalar(label, ImGuiDataType.Double, ref v, vMin, vMax, format.MoveOrDefault("%.3f"u8), flags); - - public static bool SliderDouble( - ImU8String label, Span<double> v, double vMin = 0.0f, - double vMax = 0.0f, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - SliderScalar(label, ImGuiDataType.Double, v, vMin, vMax, format.MoveOrDefault("%.3f"u8), flags); - - public static bool SliderScalar<T>( - ImU8String label, ImGuiDataType dataType, scoped ref T v, - scoped in T vMin, scoped in T vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = &v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.SliderScalar( - labelPtr, - dataType, - vPtr, - vMinPtr, - vMaxPtr, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool SliderScalar<T>( - ImU8String label, ImGuiDataType dataType, Span<T> v, scoped in T vMin, - scoped in T vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - where T : unmanaged, INumber<T>, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.SliderScalarN( - labelPtr, - dataType, - vPtr, - v.Length, - vMinPtr, - vMaxPtr, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool SliderScalar<T>( - ImU8String label, scoped ref T v, - scoped in T vMin, scoped in T vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = &v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.SliderScalar( - labelPtr, - GetImGuiDataType<T>(), - vPtr, - vMinPtr, - vMaxPtr, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool SliderScalar<T>( - ImU8String label, Span<T> v, scoped in T vMin, - scoped in T vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - where T : unmanaged, INumber<T>, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* vPtr = v) - fixed (T* vMinPtr = &vMin) - fixed (T* vMaxPtr = &vMax) - { - var res = ImGuiNative.SliderScalarN( - labelPtr, - GetImGuiDataType<T>(), - vPtr, - v.Length, - vMinPtr, - vMaxPtr, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool SliderAngle( - ImU8String label, ref float vRad, float vDegreesMin = -360.0f, - float vDegreesMax = +360.0f, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference("%.0f deg"u8)) - fixed (float* vRadPtr = &vRad) - { - var res = ImGuiNative.SliderAngle( - labelPtr, - vRadPtr, - vDegreesMin, - vDegreesMax, - formatPtr, - flags) != 0; - label.Recycle(); - format.Recycle(); - return res; - } - } - - public static bool VSliderSByte( - ImU8String label, Vector2 size, scoped ref sbyte v, sbyte vMin, - sbyte vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.S8, ref v, vMin, vMax, format.MoveOrDefault("%hhd"), flags); - - public static bool VSliderByte( - ImU8String label, Vector2 size, scoped ref byte v, byte vMin, byte vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.U8, ref v, vMin, vMax, format.MoveOrDefault("%hhu"), flags); - - public static bool VSliderShort( - ImU8String label, Vector2 size, scoped ref short v, short vMin, - short vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.S16, ref v, vMin, vMax, format.MoveOrDefault("%hd"), flags); - - public static bool VSliderUShort( - ImU8String label, Vector2 size, scoped ref ushort v, ushort vMin, - ushort vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.U16, ref v, vMin, vMax, format.MoveOrDefault("%hu"), flags); - - public static bool VSliderInt( - ImU8String label, Vector2 size, scoped ref int v, int vMin, int vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.S32, ref v, vMin, vMax, format.MoveOrDefault("%d"), flags); - - public static bool VSliderUInt( - ImU8String label, Vector2 size, scoped ref uint v, uint vMin, uint vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.U32, ref v, vMin, vMax, format.MoveOrDefault("%u"), flags); - - public static bool VSliderLong( - ImU8String label, Vector2 size, scoped ref long v, long vMin, long vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.S32, ref v, vMin, vMax, format.MoveOrDefault("%I64d"), flags); - - public static bool VSliderULong( - ImU8String label, Vector2 size, scoped ref ulong v, ulong vMin, - ulong vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.U32, ref v, vMin, vMax, format.MoveOrDefault("%I64u"), flags); - - public static bool VSliderFloat( - ImU8String label, Vector2 size, scoped ref float v, float vMin, - float vMax, ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.Float, ref v, vMin, vMax, format.MoveOrDefault("%.03f"), flags); - - public static bool VSliderDouble( - ImU8String label, Vector2 size, scoped ref double v, double vMin, - double vMax, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) => - VSliderScalar(label, size, ImGuiDataType.Double, ref v, vMin, vMax, format.MoveOrDefault("%.03f"), flags); - - public static bool VSliderScalar<T>( - ImU8String label, Vector2 size, ImGuiDataType dataType, - scoped ref T data, scoped in T min, scoped in T max, - ImU8String format = default, - ImGuiSliderFlags flags = ImGuiSliderFlags.None) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* dataPtr = &data) - fixed (T* minPtr = &min) - fixed (T* maxPtr = &max) - { - var res = ImGuiNative.VSliderScalar(labelPtr, size, dataType, dataPtr, minPtr, maxPtr, formatPtr, flags) != - 0; - label.Recycle(); - format.Recycle(); - return res; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.StringReturns.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.StringReturns.cs deleted file mode 100644 index c6ba44ac1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.StringReturns.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; -using System.Text; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public unsafe partial class ImGui -{ - public static ReadOnlySpan<byte> GetVersionU8() => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetVersion()); - - public static ReadOnlySpan<byte> TableGetColumnNameU8(int columnN = -1) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.TableGetColumnName(columnN)); - - public static ReadOnlySpan<byte> GetStyleColorNameU8(this ImGuiCol idx) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetStyleColorName(idx)); - - public static ReadOnlySpan<byte> GetKeyNameU8(this ImGuiKey key) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetKeyName(key)); - - public static ReadOnlySpan<byte> GetClipboardTextU8() => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetClipboardText()); - - public static ReadOnlySpan<byte> SaveIniSettingsToMemoryU8() - { - nuint len; - var ptr = ImGuiNative.SaveIniSettingsToMemory(&len); - return new(ptr, (int)len); - } - - public static ref byte begin(this ImGuiTextBufferPtr self) => ref *ImGuiNative.begin(self.Handle); - - public static ref byte begin(this in ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* selfPtr = &self) - return ref *ImGuiNative.begin(selfPtr); - } - - public static ref byte end(this ImGuiTextBufferPtr self) => ref *ImGuiNative.end(self.Handle); - - public static ref byte end(this in ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* selfPtr = &self) - return ref *ImGuiNative.end(selfPtr); - } - - public static ReadOnlySpan<byte> c_str(this ImGuiTextBufferPtr self) => self.Handle->c_str(); - - public static ReadOnlySpan<byte> c_str(this scoped in ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* selfPtr = &self) - return MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.c_str(selfPtr)); - } - - public static ReadOnlySpan<byte> GetDebugNameU8(this ImFontPtr self) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetDebugName(self.Handle)); - - public static ReadOnlySpan<byte> GetDebugNameU8(this scoped in ImFont self) - { - fixed (ImFont* selfPtr = &self) - return MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiNative.GetDebugName(selfPtr)); - } - - public static string GetVersion() => Encoding.UTF8.GetString(GetVersionU8()); - public static string TableGetColumnName(int columnN = -1) => Encoding.UTF8.GetString(TableGetColumnNameU8(columnN)); - public static string GetStyleColorName(this ImGuiCol idx) => Encoding.UTF8.GetString(GetStyleColorNameU8(idx)); - public static string GetKeyName(this ImGuiKey key) => Encoding.UTF8.GetString(GetKeyNameU8(key)); - public static string GetClipboardText() => Encoding.UTF8.GetString(GetClipboardTextU8()); - public static string SaveIniSettingsToMemory() => Encoding.UTF8.GetString(SaveIniSettingsToMemoryU8()); - public static string GetDebugName(this ImFontPtr self) => Encoding.UTF8.GetString(GetDebugNameU8(self)); - public static string GetDebugName(this scoped in ImFont self) => Encoding.UTF8.GetString(GetDebugNameU8(self)); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs deleted file mode 100644 index 284475824..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs +++ /dev/null @@ -1,350 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public static void AddText(ImFontGlyphRangesBuilderPtr self, ImU8String text) - { - fixed (byte* textPtr = text) - ImGuiNative.AddText(self.Handle, textPtr, textPtr + text.Length); - text.Recycle(); - } - - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ImU8String text) - { - fixed (byte* textPtr = text) - ImGuiNative.AddText(self.Handle, pos, col, textPtr, textPtr + text.Length); - text.Recycle(); - } - - public static void AddText( - ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, float wrapWidth, - scoped in Vector4 cpuFineClipRect) - { - fixed (byte* textPtr = text) - fixed (Vector4* cpuFineClipRectPtr = &cpuFineClipRect) - ImGuiNative.AddText( - self.Handle, - font, - fontSize, - pos, - col, - textPtr, - textPtr + text.Length, - wrapWidth, - cpuFineClipRectPtr); - text.Recycle(); - } - - public static void AddText( - ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ImU8String text, - float wrapWidth = 0f) - { - fixed (byte* textPtr = text) - ImGuiNative.AddText(self.Handle, font, fontSize, pos, col, textPtr, textPtr + text.Length, wrapWidth, null); - text.Recycle(); - } - - public static void append(this ImGuiTextBufferPtr self, ImU8String str) - { - fixed (byte* strPtr = str) - ImGuiNative.append(self.Handle, strPtr, strPtr + str.Length); - str.Recycle(); - } - - public static void BulletText(ImU8String text) - { - ImGuiWindow* window = ImGuiP.GetCurrentWindow(); - if (window->SkipItems != 0) return; - scoped ref var g = ref *GetCurrentContext().Handle; - scoped ref readonly var style = ref g.Style; - var labelSize = CalcTextSize(text.Span); - var totalSize = new Vector2( - g.FontSize + (labelSize.X > 0.0f ? (labelSize.X + style.FramePadding.X * 2) : 0.0f), - labelSize.Y); // Empty text doesn't add padding - var pos = window->DC.CursorPos; - pos.Y += window->DC.CurrLineTextBaseOffset; - ImGuiP.ItemSize(totalSize, 0.0f); - var bb = new ImRect(pos, pos + totalSize); - if (!ImGuiP.ItemAdd(bb, 0)) - return; - - // Render - var textCol = GetColorU32(ImGuiCol.Text); - ImGuiP.RenderBullet( - window->DrawList, - bb.Min + new Vector2(style.FramePadding.X + g.FontSize * 0.5f, g.FontSize * 0.5f), - textCol); - ImGuiP.RenderText(bb.Min + new Vector2(g.FontSize + style.FramePadding.X * 2, 0.0f), text.Span, false); - } - - public static Vector2 CalcTextSize( - ImU8String text, bool hideTextAfterDoubleHash = false, float wrapWidth = -1.0f) - { - var @out = Vector2.Zero; - fixed (byte* textPtr = text) - ImGuiNative.CalcTextSize( - &@out, - textPtr, - textPtr + text.Length, - hideTextAfterDoubleHash ? (byte)1 : (byte)0, - wrapWidth); - text.Recycle(); - return @out; - } - - public static Vector2 CalcTextSizeA( - ImFontPtr self, float size, float maxWidth, float wrapWidth, ImU8String text, out int remaining) - { - var @out = Vector2.Zero; - fixed (byte* textPtr = text) - { - byte* remainingPtr = null; - ImGuiNative.CalcTextSizeA( - &@out, - self.Handle, - size, - maxWidth, - wrapWidth, - textPtr, - textPtr + text.Length, - &remainingPtr); - remaining = (int)(remainingPtr - textPtr); - } - - text.Recycle(); - return @out; - } - - public static int CalcWordWrapPositionA( - ImFontPtr font, float scale, ImU8String text, float wrapWidth) - { - fixed (byte* ptr = text) - { - var r = - (int)(ImGuiNative.CalcWordWrapPositionA(font.Handle, scale, ptr, ptr + text.Length, wrapWidth) - ptr); - text.Recycle(); - return r; - } - } - - public static void InsertChars( - ImGuiInputTextCallbackDataPtr self, int pos, ImU8String text) - { - fixed (byte* ptr = text) - ImGuiNative.InsertChars(self.Handle, pos, ptr, ptr + text.Length); - text.Recycle(); - } - - public static void LabelText( - ImU8String label, - ImU8String text) - { - var window = ImGuiP.GetCurrentWindow().Handle; - if (window->SkipItems != 0) - { - label.Recycle(); - text.Recycle(); - return; - } - - scoped ref var g = ref *GetCurrentContext().Handle; - scoped ref readonly var style = ref g.Style; - var w = CalcItemWidth(); - - var valueSize = CalcTextSize(text); - var labelSize = CalcTextSize(label, true); - - var pos = window->DC.CursorPos; - var valueBb = new ImRect(pos, pos + new Vector2(w, valueSize.Y + style.FramePadding.Y * 2)); - var totalBb = new ImRect( - pos, - pos + new Vector2( - w + (labelSize.X > 0.0f ? style.ItemInnerSpacing.X + labelSize.X : 0.0f), - Math.Max(valueSize.Y, labelSize.Y) + style.FramePadding.Y * 2)); - ImGuiP.ItemSize(totalBb, style.FramePadding.Y); - if (!ImGuiP.ItemAdd(totalBb, 0)) - { - label.Recycle(); - text.Recycle(); - return; - } - - // Render - ImGuiP.RenderTextClipped(valueBb.Min + style.FramePadding, valueBb.Max, text.Span, valueSize, new(0.0f, 0.0f)); - if (labelSize.X > 0.0f) - { - ImGuiP.RenderText( - new(valueBb.Max.X + style.ItemInnerSpacing.X, valueBb.Min.Y + style.FramePadding.Y), - label.Span); - } - - label.Recycle(); - text.Recycle(); - } - - public static void LogText(ImU8String text) - { - var g = GetCurrentContext(); - if (!g.LogFile.IsNull) - { - g.LogBuffer.Buf.Resize(0); - append(&g.Handle->LogBuffer, text.Span); - fixed (byte* textPtr = text) - ImGuiPNative.ImFileWrite(textPtr, 1, (ulong)text.Length, g.LogFile); - } - else - { - append(&g.Handle->LogBuffer, text); - } - - text.Recycle(); - } - - public static bool PassFilter(ImGuiTextFilterPtr self, ImU8String text) - { - fixed (byte* textPtr = text) - { - var r = ImGuiNative.PassFilter(self.Handle, textPtr, textPtr + text.Length) != 0; - text.Recycle(); - return r; - } - } - - public static void RenderText( - ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, - ImU8String text, float wrapWidth = 0.0f, bool cpuFineClip = false) - { - fixed (byte* textPtr = text) - ImGuiNative.RenderText( - self, - drawList, - size, - pos, - col, - clipRect, - textPtr, - textPtr + text.Length, - wrapWidth, - cpuFineClip ? (byte)1 : (byte)0); - text.Recycle(); - } - - public static void SetTooltip(ImU8String text) - { - ImGuiP.BeginTooltipEx(ImGuiTooltipFlags.OverridePreviousTooltip, ImGuiWindowFlags.None); - Text(text.Span); - EndTooltip(); - text.Recycle(); - } - - public static void Text(ImU8String text) - { - fixed (byte* ptr = text) - ImGuiNative.TextUnformatted(ptr, ptr + text.Length); - text.Recycle(); - } - - public static void TextColored(uint col, ImU8String text) - { - PushStyleColor(ImGuiCol.Text, col); - Text(text.Span); - PopStyleColor(); - text.Recycle(); - } - - public static void TextColored(scoped in Vector4 col, ImU8String text) - { - PushStyleColor(ImGuiCol.Text, col); - Text(text.Span); - PopStyleColor(); - text.Recycle(); - } - - public static void TextDisabled(ImU8String text) - { - TextColored(*GetStyleColorVec4(ImGuiCol.TextDisabled), text.Span); - text.Recycle(); - } - - public static void TextUnformatted(ImU8String text) - { - Text(text.Span); - text.Recycle(); - } - - public static void TextWrapped(ImU8String text) - { - scoped ref var g = ref *GetCurrentContext().Handle; - var needBackup = g.CurrentWindow->DC.TextWrapPos < 0.0f; // Keep existing wrap position if one is already set - if (needBackup) - PushTextWrapPos(0.0f); - Text(text.Span); - if (needBackup) - PopTextWrapPos(); - text.Recycle(); - } - - public static void TextColoredWrapped(uint col, ImU8String text) - { - PushStyleColor(ImGuiCol.Text, col); - TextWrapped(text.Span); - PopStyleColor(); - text.Recycle(); - } - - public static void TextColoredWrapped(scoped in Vector4 col, ImU8String text) - { - PushStyleColor(ImGuiCol.Text, col); - TextWrapped(text.Span); - PopStyleColor(); - text.Recycle(); - } - - public static bool TreeNode(ImU8String label) - { - var window = ImGuiP.GetCurrentWindow(); - if (window.SkipItems) - { - label.Recycle(); - return false; - } - - var res = ImGuiP.TreeNodeBehavior( - window.Handle->GetID(label.Span), - ImGuiTreeNodeFlags.None, - label.Span[..ImGuiP.FindRenderedTextEnd(label.Span, out _, out _)]); - label.Recycle(); - return res; - } - - public static bool TreeNodeEx( - ImU8String id, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None, - ImU8String label = default) - { - var window = ImGuiP.GetCurrentWindow(); - bool res; - if (window.SkipItems) - { - res = false; - } - else if (label.IsNull) - { - res = ImGuiP.TreeNodeBehavior( - window.Handle->GetID(id.Span), - flags, - id.Span[..ImGuiP.FindRenderedTextEnd(id.Span, out _, out _)]); - } - else - { - res = ImGuiP.TreeNodeBehavior(window.Handle->GetID(id.Span), flags, label.Span[..label.Length]); - } - - id.Recycle(); - label.Recycle(); - return res; - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Widgets.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Widgets.cs deleted file mode 100644 index 889824f43..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Widgets.cs +++ /dev/null @@ -1,699 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGui -{ - public static bool ArrowButton(ImU8String strId, ImGuiDir dir) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.ArrowButton(strIdPtr, dir) != 0; - strId.Recycle(); - return r; - } - } - - public static bool Begin(ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - fixed (bool* openPtr = &open) - { - var r = ImGuiNative.Begin(namePtr, openPtr, flags) != 0; - name.Recycle(); - return r; - } - } - - public static bool Begin(ImU8String name, ImGuiWindowFlags flags = ImGuiWindowFlags.None) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.Begin(namePtr, null, flags) != 0; - name.Recycle(); - return r; - } - } - - public static bool BeginChild( - ImU8String strId, Vector2 size = default, bool border = false, ImGuiWindowFlags flags = ImGuiWindowFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginChild(strIdPtr, size, border ? (byte)1 : (byte)0, flags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool BeginChild( - uint id, Vector2 size = default, bool border = false, ImGuiWindowFlags flags = ImGuiWindowFlags.None) => - ImGuiNative.BeginChild(id, size, border ? (byte)1 : (byte)0, flags) != 0; - - public static bool BeginCombo( - ImU8String label, ImU8String previewValue, ImGuiComboFlags flags = ImGuiComboFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* previewValuePtr = &previewValue.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginCombo(labelPtr, previewValuePtr, flags) != 0; - label.Recycle(); - previewValue.Recycle(); - return r; - } - } - - public static bool BeginListBox(ImU8String label, Vector2 size = default) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginListBox(labelPtr, size) != 0; - label.Recycle(); - return r; - } - } - - public static bool BeginMenu(ImU8String label, bool enabled = true) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginMenu(labelPtr, enabled ? (byte)1 : (byte)0) != 0; - label.Recycle(); - return r; - } - } - - public static bool BeginPopup(ImU8String strId, ImGuiWindowFlags flags = ImGuiWindowFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginPopup(strIdPtr, flags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool BeginPopupContextItem( - ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginPopupContextItem(strIdPtr, popupFlags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool BeginPopupContextWindow( - ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginPopupContextWindow(strIdPtr, popupFlags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool BeginPopupContextVoid( - ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginPopupContextVoid(strIdPtr, popupFlags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool BeginPopupModal( - ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - fixed (bool* openPtr = &open) - { - var r = ImGuiNative.BeginPopupModal(namePtr, openPtr, flags) != 0; - name.Recycle(); - return r; - } - } - - public static bool BeginPopupModal(ImU8String name, ImGuiWindowFlags flags = ImGuiWindowFlags.None) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginPopupModal(namePtr, null, flags) != 0; - name.Recycle(); - return r; - } - } - - public static bool BeginTabBar(ImU8String strId, ImGuiTabBarFlags flags = ImGuiTabBarFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginTabBar(strIdPtr, flags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool BeginTabItem( - ImU8String label, ref bool pOpen, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (bool* pOpenPtr = &pOpen) - { - var r = ImGuiNative.BeginTabItem(labelPtr, pOpenPtr, flags) != 0; - label.Recycle(); - return r; - } - } - - public static bool BeginTabItem(ImU8String label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginTabItem(labelPtr, null, flags) != 0; - label.Recycle(); - return r; - } - } - - public static bool BeginTable( - ImU8String strId, int column, ImGuiTableFlags flags = ImGuiTableFlags.None, Vector2 outerSize = default, - float innerWidth = 0.0f) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.BeginTable(strIdPtr, column, flags, outerSize, innerWidth) != 0; - strId.Recycle(); - return r; - } - } - - public static bool Button(ImU8String label, Vector2 size = default) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.Button(labelPtr, size) != 0; - label.Recycle(); - return r; - } - } - - public static bool Checkbox(ImU8String label, ref bool v) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (bool* vPtr = &v) - { - var r = ImGuiNative.Checkbox(labelPtr, vPtr) != 0; - label.Recycle(); - return r; - } - } - - public static bool CheckboxFlags<T>(ImU8String label, ref T flags, T flagsValue) - where T : IBinaryInteger<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var allOn = (flags & flagsValue) == flagsValue; - var anyOn = !T.IsZero(flags & flagsValue); - bool pressed; - if (!allOn && anyOn) - { - var g = GetCurrentContext(); - var backupItemFlags = g.CurrentItemFlags; - g.CurrentItemFlags |= ImGuiItemFlags.MixedValue; - pressed = ImGuiNative.Checkbox(labelPtr, &allOn) != 0; - g.CurrentItemFlags = backupItemFlags; - } - else - { - pressed = ImGuiNative.Checkbox(labelPtr, &allOn) != 0; - } - - if (pressed) - { - if (allOn) - flags |= flagsValue; - else - flags &= ~flagsValue; - } - - label.Recycle(); - return pressed; - } - } - - public static bool CollapsingHeader( - ImU8String label, ref bool visible, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (bool* visiblePtr = &visible) - { - var r = ImGuiNative.CollapsingHeader(labelPtr, visiblePtr, flags) != 0; - label.Recycle(); - return r; - } - } - - public static bool CollapsingHeader(ImU8String label, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.CollapsingHeader(labelPtr, null, flags) != 0; - label.Recycle(); - return r; - } - } - - public static bool ColorButton( - ImU8String descId, in Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None, - Vector2 size = default) - { - fixed (byte* descIdPtr = &descId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.ColorButton(descIdPtr, col, flags, size) != 0; - descId.Recycle(); - return r; - } - } - - public static void Columns(int count = 1, ImU8String id = default, bool border = true) - { - fixed (byte* idPtr = &id.GetPinnableNullTerminatedReference()) - ImGuiNative.Columns(count, idPtr, border ? (byte)1 : (byte)0); - id.Recycle(); - } - - public static bool DebugCheckVersionAndDataLayout( - ImU8String versionStr, nuint szIo, nuint szStyle, nuint szVec2, nuint szVec4, nuint szDrawVert, - nuint szDrawIdx) - { - fixed (byte* versionPtr = &versionStr.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.DebugCheckVersionAndDataLayout( - versionPtr, - szIo, - szStyle, - szVec2, - szVec4, - szDrawVert, - szDrawIdx) != 0; - versionStr.Recycle(); - return r; - } - } - - public static void DebugTextEncoding(ImU8String text) - { - fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference()) - { - ImGuiNative.DebugTextEncoding(textPtr); - text.Recycle(); - } - } - - public static bool Draw(ImGuiTextFilterPtr self, ImU8String label = default, float width = 0.0f) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference("Filter (inc,-exc)"u8)) - { - var r = ImGuiNative.Draw(self.Handle, labelPtr, width) != 0; - label.Recycle(); - return r; - } - } - - public static ImGuiTextFilterPtr ImGuiTextFilter(ImU8String defaultFilter = default) - { - fixed (byte* defaultFilterPtr = &defaultFilter.GetPinnableNullTerminatedReference("\0"u8)) - { - var r = ImGuiNative.ImGuiTextFilter(defaultFilterPtr); - defaultFilter.Recycle(); - return r; - } - } - - public static ImGuiTextRangePtr ImGuiTextRange() => ImGuiNative.ImGuiTextRange(); - - public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan<byte> text) - { - fixed (byte* textPtr = text) - return ImGuiNative.ImGuiTextRange(textPtr, textPtr + text.Length); - } - - public static bool InvisibleButton( - ImU8String strId, Vector2 size, ImGuiButtonFlags flags = ImGuiButtonFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.InvisibleButton(strIdPtr, size, flags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool IsDataType(ImGuiPayloadPtr self, ImU8String type) - { - fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.IsDataType(self.Handle, typePtr) != 0; - type.Recycle(); - return r; - } - } - - public static bool IsPopupOpen(ImU8String strId, ImGuiPopupFlags flags = ImGuiPopupFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.IsPopupOpen(strIdPtr, flags) != 0; - strId.Recycle(); - return r; - } - } - - public static void LoadIniSettingsFromDisk(ImU8String iniFilename) - { - fixed (byte* iniFilenamePtr = &iniFilename.GetPinnableNullTerminatedReference()) - ImGuiNative.LoadIniSettingsFromDisk(iniFilenamePtr); - iniFilename.Recycle(); - } - - public static void LoadIniSettingsFromMemory(ImU8String iniData) - { - fixed (byte* iniDataPtr = iniData) - ImGuiNative.LoadIniSettingsFromMemory(iniDataPtr, (nuint)iniData.Length); - iniData.Recycle(); - } - - public static void LogToFile(int autoOpenDepth = -1, ImU8String filename = default) - { - fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) - ImGuiNative.LogToFile(autoOpenDepth, filenamePtr); - filename.Recycle(); - } - - public static bool MenuItem( - ImU8String label, ImU8String shortcut, bool selected = false, bool enabled = true) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.MenuItem( - labelPtr, - shortcutPtr, - selected ? (byte)1 : (byte)0, - enabled ? (byte)1 : (byte)0) != 0; - label.Recycle(); - shortcut.Recycle(); - return r; - } - } - - public static bool MenuItem(ImU8String label, ImU8String shortcut, ref bool selected, bool enabled = true) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference()) - fixed (bool* selectedPtr = &selected) - { - var r = ImGuiNative.MenuItem(labelPtr, shortcutPtr, selectedPtr, enabled ? (byte)1 : (byte)0) != 0; - label.Recycle(); - shortcut.Recycle(); - return r; - } - } - - public static bool MenuItem(ImU8String label, ref bool selected, bool enabled = true) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (bool* selectedPtr = &selected) - { - var r = ImGuiNative.MenuItem(labelPtr, null, selectedPtr, enabled ? (byte)1 : (byte)0) != 0; - label.Recycle(); - return r; - } - } - - public static bool MenuItem(ImU8String label, bool selected = false, bool enabled = true) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.MenuItem( - labelPtr, - null, - selected ? (byte)1 : (byte)0, - enabled ? (byte)1 : (byte)0) != 0; - label.Recycle(); - return r; - } - } - - public static void OpenPopup(ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - ImGuiNative.OpenPopup(strIdPtr, popupFlags); - strId.Recycle(); - } - - public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.None) => - ImGuiNative.OpenPopup(id, popupFlags); - - public static void OpenPopupOnItemClick( - ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - ImGuiNative.OpenPopupOnItemClick(strIdPtr, popupFlags); - strId.Recycle(); - } - - public static void ProgressBar(float fraction, Vector2 sizeArg, ImU8String overlay = default) - { - fixed (byte* overlayPtr = &overlay.GetPinnableNullTerminatedReference()) - ImGuiNative.ProgressBar(fraction, sizeArg, overlayPtr); - overlay.Recycle(); - } - - public static void ProgressBar(float fraction, ImU8String overlay = default) - { - fixed (byte* overlayPtr = &overlay.GetPinnableNullTerminatedReference()) - ImGuiNative.ProgressBar(fraction, new(-float.MinValue, 0), overlayPtr); - overlay.Recycle(); - } - - public static bool RadioButton(ImU8String label, bool active) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.RadioButton(labelPtr, active ? (byte)1 : (byte)0) != 0; - label.Recycle(); - return r; - } - } - - public static bool RadioButton<T>(ImU8String label, ref T v, T vButton) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var pressed = ImGuiNative.RadioButton( - labelPtr, - EqualityComparer<T>.Default.Equals(v, vButton) ? (byte)1 : (byte)0) != 0; - if (pressed) - v = vButton; - return pressed; - } - } - - public static void SaveIniSettingsToDisk(ImU8String iniFilename) - { - fixed (byte* iniPtr = &iniFilename.GetPinnableNullTerminatedReference()) - ImGuiNative.SaveIniSettingsToDisk(iniPtr); - } - - public static bool Selectable( - ImU8String label, bool selected = false, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, - Vector2 size = default) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.Selectable(labelPtr, selected ? (byte)1 : (byte)0, flags, size) != 0; - label.Recycle(); - return r; - } - } - - public static bool Selectable( - ImU8String label, ref bool selected, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, - Vector2 size = default) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (bool* selectedPtr = &selected) - { - var r = ImGuiNative.Selectable(labelPtr, selectedPtr, flags, size) != 0; - label.Recycle(); - return r; - } - } - - public static void SetClipboardText(ImU8String text) - { - fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference()) - ImGuiNative.SetClipboardText(textPtr); - text.Recycle(); - } - - public static bool SetDragDropPayload(ImU8String type, ReadOnlySpan<byte> data, ImGuiCond cond = ImGuiCond.None) - { - fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference()) - fixed (byte* dataPtr = data) - { - var r = ImGuiNative.SetDragDropPayload(typePtr, dataPtr, (nuint)data.Length, cond) != 0; - type.Recycle(); - return r; - } - } - - public static void SetTabItemClosed(ImU8String tabOrDockedWindowLabel) - { - fixed (byte* tabItemPtr = &tabOrDockedWindowLabel.GetPinnableNullTerminatedReference()) - ImGuiNative.SetTabItemClosed(tabItemPtr); - tabOrDockedWindowLabel.Recycle(); - } - - public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond = ImGuiCond.None) => - ImGuiNative.SetWindowCollapsed(collapsed ? (byte)1 : (byte)0, cond); - - public static void SetWindowCollapsed(ImU8String name, bool collapsed, ImGuiCond cond = ImGuiCond.None) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - ImGuiNative.SetWindowCollapsed(namePtr, collapsed ? (byte)1 : (byte)0, cond); - name.Recycle(); - } - - /// <summary>Sets the current window to be focused / top-most.</summary> - /// <remarks>Prefer using <see cref="SetNextWindowFocus"/>.</remarks> - public static void SetWindowFocus() => ImGuiNative.SetWindowFocus(); - - /// <summary>Sets a named window to be focused / top-most.</summary> - /// <param name="name">Name of the window to focus. Use <c>default</c> to remove focus.</param> - public static void SetWindowFocus(ImU8String name) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - ImGuiNative.SetWindowFocus(namePtr); - name.Recycle(); - } - - /// <summary>Removes focus from any window.</summary> - public static void ClearWindowFocus() => ImGuiNative.SetWindowFocus(null); - - public static void SetWindowPos(Vector2 pos, ImGuiCond cond = ImGuiCond.None) => - ImGuiNative.SetWindowPos(pos, cond); - - public static void SetWindowPos(ImU8String name, Vector2 pos, ImGuiCond cond = ImGuiCond.None) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - ImGuiNative.SetWindowPos(namePtr, pos, cond); - name.Recycle(); - } - - public static void SetWindowSize(Vector2 size, ImGuiCond cond = ImGuiCond.None) => - ImGuiNative.SetWindowSize(size, cond); - - public static void SetWindowSize(ImU8String name, Vector2 size, ImGuiCond cond = ImGuiCond.None) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - ImGuiNative.SetWindowSize(namePtr, size, cond); - name.Recycle(); - } - - public static void ShowFontSelector(ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiNative.ShowFontSelector(labelPtr); - label.Recycle(); - } - - public static bool ShowStyleSelector(ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.ShowStyleSelector(labelPtr) != 0; - label.Recycle(); - return r; - } - } - - public static bool SmallButton(ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.SmallButton(labelPtr) != 0; - label.Recycle(); - return r; - } - } - - public static bool TabItemButton(ImU8String label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiNative.TabItemButton(labelPtr, flags) != 0; - label.Recycle(); - return r; - } - } - - public static void TableHeader(ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiNative.TableHeader(labelPtr); - label.Recycle(); - } - - public static void TableSetupColumn( - ImU8String label, ImGuiTableColumnFlags flags = ImGuiTableColumnFlags.None, float initWidthOrWeight = 0.0f, - uint userId = 0) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiNative.TableSetupColumn(labelPtr, flags, initWidthOrWeight, userId); - label.Recycle(); - } - - public static void TreePush(ImU8String strId) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - ImGuiNative.TreePush(strIdPtr); - strId.Recycle(); - } - - public static void TreePush(nint ptrId) => ImGuiNative.TreePush((void*)ptrId); - public static void TreePush(void* ptrId) => ImGuiNative.TreePush(ptrId); - - public static void Value<T>(ImU8String prefix, in T value) - { - prefix.AppendLiteral(": "); - prefix.AppendFormatted(value); - fixed (byte* prefixPtr = prefix) - { - ImGuiNative.TextUnformatted(prefixPtr, prefixPtr + prefix.Length); - prefix.Recycle(); - } - } - - // public static void Value(AutoUtf8Buffer prefix, float value) => Value(prefix, value, default); - - public static void Value(ImU8String prefix, float value, ImU8String floatFormat = default) - { - fixed (byte* prefixPtr = &prefix.GetPinnableNullTerminatedReference()) - fixed (byte* floatPtr = &floatFormat.GetPinnableNullTerminatedReference()) - { - ImGuiNative.Value(prefixPtr, value, floatPtr); - prefix.Recycle(); - floatFormat.Recycle(); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs deleted file mode 100644 index 12e623eeb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Text; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiIO -{ - public void AddInputCharacter(char c) - { - fixed (ImGuiIO* thisPtr = &this) - ImGui.AddInputCharacter(thisPtr, c); - } - - public void AddInputCharacter(Rune c) - { - fixed (ImGuiIO* thisPtr = &this) - ImGui.AddInputCharacter(thisPtr, c); - } - - public void AddInputCharacters(ImU8String str) - { - fixed (ImGuiIO* thisPtr = &this) - ImGui.AddInputCharacters(thisPtr, str); - } -} - -public partial struct ImGuiIOPtr -{ - public void AddInputCharacter(char c) => ImGui.AddInputCharacter(this, c); - - public void AddInputCharacter(Rune c) => ImGui.AddInputCharacter(this, c); - - public void AddInputCharacters(ImU8String str) => ImGui.AddInputCharacters(this, str); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiInputTextCallbackData.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiInputTextCallbackData.Custom.cs deleted file mode 100644 index ee90e3b82..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiInputTextCallbackData.Custom.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiInputTextCallbackData -{ - public readonly Span<byte> BufSpan => new(this.Buf, this.BufSize); - - public readonly Span<byte> BufTextSpan => new(this.Buf, this.BufTextLen); - - public void InsertChars(int pos, ImU8String text) - { - fixed (ImGuiInputTextCallbackData* thisPtr = &this) - ImGui.InsertChars(thisPtr, pos, text); - } -} - -public unsafe partial struct ImGuiInputTextCallbackDataPtr -{ - public readonly Span<byte> BufSpan => this.Handle->BufSpan; - - public readonly Span<byte> BufTextSpan => this.Handle->BufTextSpan; - - public void InsertChars(int pos, ImU8String text) => ImGui.InsertChars(this, pos, text); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiNative.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiNative.Custom.cs deleted file mode 100644 index 62d351993..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiNative.Custom.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -public static unsafe partial class ImGuiNative -{ - private const string LibraryName = "cimgui"; - - static ImGuiNative() - { - if (LibraryName != ImGui.GetLibraryName()) - { - throw new( - $"{nameof(LibraryName)}(={LibraryName})" + - $" does not match " + - $"{nameof(ImGui)}.{nameof(ImGui.GetLibraryName)}(={ImGui.GetLibraryName()})"); - } - } - - [LibraryImport(LibraryName, EntryPoint = "ImDrawList_AddCallback")] - [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] - public static partial void AddCallback( - ImDrawList* self, - delegate*<ImDrawList*, ImDrawCmd*, void> callback, - void* callbackData = null); - - [LibraryImport(LibraryName, EntryPoint = "igInputTextEx")] - [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] - public static partial byte InputTextEx( - byte* label, - byte* hint, - byte* buf, - int bufSize, - Vector2 sizeArg, - ImGuiInputTextFlags flags = ImGuiInputTextFlags.None, - delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, int> callback = null, - void* userData = null); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Misc.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Misc.cs deleted file mode 100644 index 3947d18d2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Misc.cs +++ /dev/null @@ -1,496 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public unsafe partial class ImGuiP -{ - public static bool ArrowButtonEx( - ImU8String strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags = ImGuiButtonFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.ArrowButtonEx(strIdPtr, dir, sizeArg, flags) != 0; - strId.Recycle(); - return r; - } - } - - public static bool BeginChildEx(ImU8String name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.BeginChildEx(namePtr, id, sizeArg, border ? (byte)1 : (byte)0, flags) != 0; - name.Recycle(); - return r; - } - } - - public static void BeginColumns(ImU8String strId, int count, ImGuiOldColumnFlags flags = ImGuiOldColumnFlags.None) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - ImGuiPNative.BeginColumns(strIdPtr, count, flags); - strId.Recycle(); - } - - public static bool BeginMenuEx(ImU8String label, ImU8String icon = default, bool enabled = true) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* iconPtr = &icon.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.BeginMenuEx(labelPtr, iconPtr, enabled ? (byte)1 : (byte)0) != 0; - label.Recycle(); - icon.Recycle(); - return r; - } - } - - public static bool BeginTableEx( - ImU8String name, uint id, int columnsCount, ImGuiTableFlags flags = ImGuiTableFlags.None, - Vector2 outerSize = default, float innerWidth = 0.0f) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.BeginTableEx(namePtr, id, columnsCount, flags, outerSize, innerWidth) != 0; - name.Recycle(); - return r; - } - } - - public static bool BeginViewportSideBar( - ImU8String name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.BeginViewportSideBar(namePtr, viewport, dir, size, windowFlags) != 0; - name.Recycle(); - return r; - } - } - - public static bool ButtonEx( - ImU8String label, Vector2 sizeArg = default, ImGuiButtonFlags flags = ImGuiButtonFlags.None) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.ButtonEx(labelPtr, sizeArg, flags) != 0; - label.Recycle(); - return r; - } - } - - public static void ColorEditOptionsPopup(ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (float* colPtr = col) - ImGuiPNative.ColorEditOptionsPopup(colPtr, flags); - } - - public static void ColorPickerOptionsPopup(ReadOnlySpan<float> refCol, ImGuiColorEditFlags flags) - { - fixed (float* refColPtr = refCol) - ImGuiPNative.ColorPickerOptionsPopup(refColPtr, flags); - } - - public static void ColorTooltip(ImU8String text, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference()) - fixed (float* colPtr = col) - ImGuiPNative.ColorTooltip(textPtr, colPtr, flags); - text.Recycle(); - } - - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ImU8String name) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.CreateNewWindowSettings(namePtr); - name.Recycle(); - return r; - } - } - - public static void Custom_StbTextMakeUndoReplace( - ImGuiInputTextStatePtr str, int where, int oldLength, int newLength) => - ImGuiPNative.Custom_StbTextMakeUndoReplace(str, where, oldLength, newLength); - - public static void Custom_StbTextUndo(ImGuiInputTextStatePtr str) => ImGuiPNative.Custom_StbTextUndo(str); - - public static bool DataTypeApplyFromText<T>(ImU8String buf, ImGuiDataType dataType, T data, ImU8String format) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* bufPtr = &buf.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.DataTypeApplyFromText(bufPtr, dataType, &data, formatPtr) != 0; - format.Recycle(); - buf.Recycle(); - return r; - } - } - - public static void DebugNodeDockNode(ImGuiDockNodePtr node, ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiPNative.DebugNodeDockNode(node, labelPtr); - label.Recycle(); - } - - public static void DebugNodeDrawList( - ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiPNative.DebugNodeDrawList(window, viewport, drawList, labelPtr); - label.Recycle(); - } - - public static void DebugNodeStorage(ImGuiStoragePtr storage, ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiPNative.DebugNodeStorage(storage, labelPtr); - label.Recycle(); - } - - public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiPNative.DebugNodeTabBar(tabBar, labelPtr); - label.Recycle(); - } - - public static void DebugNodeWindow(ImGuiWindowPtr window, ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiPNative.DebugNodeWindow(window, labelPtr); - label.Recycle(); - } - - public static void DebugNodeWindowsList(scoped in ImVector<ImGuiWindowPtr> windows, ImU8String label) - { - fixed (ImVector<ImGuiWindowPtr>* windowsPtr = &windows) - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - ImGuiPNative.DebugNodeWindowsList(windowsPtr, labelPtr); - label.Recycle(); - } - - public static void DockBuilderCopyWindowSettings(ImU8String srcName, ImU8String dstName) - { - fixed (byte* srcNamePtr = &srcName.GetPinnableNullTerminatedReference()) - fixed (byte* dstNamePtr = &dstName.GetPinnableNullTerminatedReference()) - ImGuiPNative.DockBuilderCopyWindowSettings(srcNamePtr, dstNamePtr); - srcName.Recycle(); - dstName.Recycle(); - } - - public static void DockBuilderDockWindow(ImU8String windowName, uint nodeId) - { - fixed (byte* windowNamePtr = &windowName.GetPinnableNullTerminatedReference()) - ImGuiPNative.DockBuilderDockWindow(windowNamePtr, nodeId); - windowName.Recycle(); - } - - public static bool DragBehavior( - uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ImU8String format, - ImGuiSliderFlags flags) - { - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.DragBehavior(id, dataType, pV, vSpeed, pMin, pMax, formatPtr, flags) != 0; - format.Recycle(); - return r; - } - } - - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ImU8String name) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.FindOrCreateWindowSettings(namePtr); - name.Recycle(); - return r; - } - } - - public static ImGuiSettingsHandlerPtr FindSettingsHandler(ImU8String typeName) - { - fixed (byte* typeNamePtr = &typeName.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.FindSettingsHandler(typeNamePtr); - typeName.Recycle(); - return r; - } - } - - public static ImGuiWindowPtr FindWindowByName(ImU8String name) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.FindWindowByName(namePtr); - name.Recycle(); - return r; - } - } - - public static uint GetColumnsID(ImU8String strId, int count) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.GetColumnsID(strIdPtr, count); - strId.Recycle(); - return r; - } - } - - public static uint GetIDWithSeed(ImU8String strId, uint seed) - { - fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.GetIDWithSeed(strIdPtr, strIdPtr + strId.Length, seed); - strId.Recycle(); - return r; - } - } - - public static void* ImFileLoadToMemory( - ImU8String filename, ImU8String mode, out nuint outFileSize, int paddingBytes = 0) - { - fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) - fixed (byte* modePtr = &mode.GetPinnableNullTerminatedReference()) - fixed (nuint* outFileSizePtr = &outFileSize) - { - var r = ImGuiPNative.ImFileLoadToMemory(filenamePtr, modePtr, outFileSizePtr, paddingBytes); - filename.Recycle(); - mode.Recycle(); - return r; - } - } - - public static void* ImFileLoadToMemory(ImU8String filename, ImU8String mode, int paddingBytes = 0) - { - fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) - fixed (byte* modePtr = &mode.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.ImFileLoadToMemory(filenamePtr, modePtr, null, paddingBytes); - filename.Recycle(); - mode.Recycle(); - return r; - } - } - - public static ImFileHandle ImFileOpen(ImU8String filename, ImU8String mode) - { - fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference()) - fixed (byte* modePtr = &mode.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.ImFileOpen(filenamePtr, modePtr); - filename.Recycle(); - mode.Recycle(); - return r; - } - } - - public static void ImFontAtlasBuildMultiplyRectAlpha8( - ReadOnlySpan<byte> table, ReadOnlySpan<byte> pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* tablePtr = table) - fixed (byte* pixelsPtr = pixels) - ImGuiPNative.ImFontAtlasBuildMultiplyRectAlpha8(tablePtr, pixelsPtr, x, y, w, h, stride); - } - - public static void ImFontAtlasBuildRender32bppRectFromString( - ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan<byte> inStr, byte inMarkerChar, - uint inMarkerPixelValue) - { - fixed (byte* inStrPtr = inStr) - { - ImGuiPNative.ImFontAtlasBuildRender32bppRectFromString( - atlas, - textureIndex, - x, - y, - w, - h, - inStrPtr, - inMarkerChar, - inMarkerPixelValue); - } - } - - public static void ImFontAtlasBuildRender8bppRectFromString( - ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan<byte> inStr, byte inMarkerChar, - byte inMarkerPixelValue) - { - fixed (byte* inStrPtr = inStr) - { - ImGuiPNative.ImFontAtlasBuildRender8bppRectFromString( - atlas, - textureIndex, - x, - y, - w, - h, - inStrPtr, - inMarkerChar, - inMarkerPixelValue); - } - } - - public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, ImU8String fmt) - { - fixed (byte* fmtPtr = &fmt.GetPinnableNullTerminatedReference()) - ImGuiPNative.ImFormatStringToTempBuffer(outBuf, outBufEnd, fmtPtr); - fmt.Recycle(); - } - - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ImU8String name) - { - fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.ImGuiWindow(context, namePtr); - name.Recycle(); - return r; - } - } - - // public static byte* ImParseFormatFindEnd(byte* format) - // public static byte* ImParseFormatFindStart(byte* format) - // public static int ImParseFormatPrecision(byte* format, int defaultValue) - // public static byte* ImStrchrRange(byte* strBegin, byte* strEnd, byte c) - // public static byte* ImStrdup(byte* str) - // public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str) - // public static int ImStricmp(byte* str1, byte* str2) - // public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - // public static int ImStrlenW(ushort* str) - // public static void ImStrncpy(byte* dst, byte* src, nuint count) - // public static int ImStrnicmp(byte* str1, byte* str2, nuint count) - // public static byte* ImStrSkipBlank(byte* str) - // public static void ImStrTrimBlanks(byte* str) - // public static int ImTextCharFromUtf8(uint* outChar, byte* inText, byte* inTextEnd) - // public static int ImTextCountCharsFromUtf8(byte* inText, byte* inTextEnd) - // public static int ImTextCountUtf8BytesFromChar(byte* inText, byte* inTextEnd) - - public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) => - ImGuiPNative.LogSetNextTextDecoration(prefix, suffix); - - public static bool MenuItemEx( - ImU8String label, ImU8String icon = default, ImU8String shortcut = default, bool selected = false, - bool enabled = true) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* iconPtr = &icon.GetPinnableNullTerminatedReference()) - fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.MenuItemEx( - labelPtr, - iconPtr, - shortcutPtr, - selected ? (byte)1 : (byte)0, - enabled ? (byte)1 : (byte)0) != 0; - label.Recycle(); - icon.Recycle(); - shortcut.Recycle(); - return r; - } - } - - public static void RemoveSettingsHandler(ImU8String typeName) - { - fixed (byte* typeNamePtr = &typeName.GetPinnableNullTerminatedReference()) - ImGuiPNative.RemoveSettingsHandler(typeNamePtr); - typeName.Recycle(); - } - - public static bool SliderBehavior<T>( - ImRect bb, uint id, ImGuiDataType dataType, scoped ref T value, T min, T max, ImU8String format, - ImGuiSliderFlags flags, ImRectPtr outGrabBb) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* valuePtr = &value) - { - var r = ImGuiPNative.SliderBehavior( - bb, - id, - dataType, - valuePtr, - &min, - &max, - formatPtr, - flags, - outGrabBb) != 0; - format.Recycle(); - return r; - } - } - - public static Vector2 TabItemCalcSize(ImU8String label, bool hasCloseButton) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - Vector2 v; - ImGuiPNative.TabItemCalcSize(&v, labelPtr, hasCloseButton ? (byte)1 : (byte)0); - return v; - } - } - - public static bool TabItemEx( - ImGuiTabBarPtr tabBar, ImU8String label, ref bool open, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (bool* openPtr = &open) - { - var r = ImGuiPNative.TabItemEx(tabBar, labelPtr, openPtr, flags, dockedWindow) != 0; - label.Recycle(); - return r; - } - } - - public static void TabItemLabelAndCloseButton( - ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ImU8String label, uint tabId, - uint closeButtonId, bool isContentsVisible, out bool justClosed, out bool textClipped) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (bool* justClosedPtr = &justClosed) - fixed (bool* textClippedPtr = &textClipped) - { - ImGuiPNative.TabItemLabelAndCloseButton( - drawList, - bb, - flags, - framePadding, - labelPtr, - tabId, - closeButtonId, - isContentsVisible ? (byte)1 : (byte)0, - justClosedPtr, - textClippedPtr); - } - - label.Recycle(); - } - - public static bool TempInputScalar<T>( - ImRect bb, uint id, ImU8String label, ImGuiDataType dataType, scoped ref T data, ImU8String format, T min, - T max) - where T : unmanaged, IBinaryNumber<T> - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* formatPtr = &format.GetPinnableNullTerminatedReference()) - fixed (T* dataPtr = &data) - { - var r = ImGuiPNative.TempInputScalar(bb, id, labelPtr, dataType, dataPtr, formatPtr, &min, &max) != 0; - label.Recycle(); - return r; - } - } - - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ImU8String label) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - { - var r = ImGuiPNative.TreeNodeBehavior(id, flags, labelPtr, labelPtr + label.Length) != 0; - label.Recycle(); - return r; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Plot.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Plot.cs deleted file mode 100644 index aab161b9c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Plot.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Diagnostics.CodeAnalysis; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui; - -[SuppressMessage("ReSharper", "InconsistentNaming")] -public static unsafe partial class ImGuiP -{ - public static int PlotEx( - ImGuiPlotType plotType, ImU8String label, ImGui.GetFloatDelegate valuesGetter, - int valuesCount, int valuesOffset, ImU8String overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) - { - var dataBuffer = PointerTuple.CreateFixed(ref valuesGetter); - var r = ImGuiPNative.PlotEx( - plotType, - labelPtr, - (delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, - Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&ImGui.GetFloatStatic, - &dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - frameSize); - label.Recycle(); - overlayText.Recycle(); - return r; - } - } - - public static int PlotEx<TContext>( - ImGuiPlotType plotType, ImU8String label, ImGui.GetFloatInContextDelegate<TContext> valuesGetter, - scoped in TContext context, - int valuesCount, int valuesOffset, ImU8String overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - where TContext : allows ref struct - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - var dataBuffer = PointerTuple.Create(&valuesGetter, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiPNative.PlotEx( - plotType, - labelPtr, - (delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, - Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&ImGui.GetFloatInContextStatic, - &dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - frameSize); - label.Recycle(); - overlayText.Recycle(); - return r; - } - } - - public static int PlotEx<TContext>( - ImGuiPlotType plotType, ImU8String label, ImGui.GetFloatRefContextDelegate<TContext> valuesGetter, - scoped in TContext context, - int valuesCount, int valuesOffset, ImU8String overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - where TContext : allows ref struct - { - fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference()) - fixed (byte* overlayTextPtr = &overlayText.GetPinnableNullTerminatedReference()) -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - fixed (TContext* contextPtr = &context) - { - var dataBuffer = PointerTuple.Create(&valuesGetter, contextPtr); -#pragma warning restore CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type - var r = ImGuiPNative.PlotEx( - plotType, - labelPtr, - (delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, - Vector2, float>) - (nint)(delegate* unmanaged<void*, int, float>)&ImGui.GetFloatRefContextStatic, - &dataBuffer, - valuesCount, - valuesOffset, - overlayTextPtr, - scaleMin, - scaleMax, - frameSize); - label.Recycle(); - overlayText.Recycle(); - return r; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.StringReturns.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.StringReturns.cs deleted file mode 100644 index b16843f55..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.StringReturns.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System.Runtime.InteropServices; -using System.Text; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial class ImGuiP -{ - public static Span<byte> ImTextCharToUtf8(Span<byte> buf, char c) => ImTextCharToUtf8(buf, (uint)c); - - public static Span<byte> ImTextCharToUtf8(Span<byte> buf, int c) => ImTextCharToUtf8(buf, (uint)c); - - public static Span<byte> ImTextCharToUtf8(Span<byte> buf, uint c) - { - if (!new Rune(c).TryEncodeToUtf8(buf, out var len)) - throw new ArgumentException("Buffer is too small.", nameof(buf)); - return buf[..len]; - } - - public static ReadOnlySpan<byte> GetNameU8(this ImGuiWindowSettingsPtr self) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.GetName(self.Handle)); - - public static ReadOnlySpan<byte> GetTabNameU8(this ImGuiTabBarPtr self, ImGuiTabItemPtr tab) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.GetTabName(self.Handle, tab.Handle)); - - public static ReadOnlySpan<byte> GetNavInputNameU8(this ImGuiNavInput n) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.GetNavInputName(n)); - - public static ReadOnlySpan<byte> TableGetColumnNameU8(this ImGuiTablePtr table, int columnN) => - MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ImGuiPNative.TableGetColumnName(table.Handle, columnN)); - - public static ReadOnlySpan<byte> GetNameU8(this in ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* selfPtr = &self) - return GetNameU8(selfPtr); - } - - public static ReadOnlySpan<byte> GetTabNameU8(ImGuiTabBarPtr self, in ImGuiTabItem tab) - { - fixed (ImGuiTabItem* tabPtr = &tab) - return GetTabNameU8(self, tabPtr); - } - - public static ReadOnlySpan<byte> GetTabNameU8(this in ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* selfPtr = &self) - return GetTabNameU8(selfPtr, tab); - } - - public static ReadOnlySpan<byte> GetTabNameU8(this in ImGuiTabBar self, in ImGuiTabItem tab) - { - fixed (ImGuiTabBar* selfPtr = &self) - fixed (ImGuiTabItem* tabPtr = &tab) - return GetTabNameU8(selfPtr, tabPtr); - } - - public static ReadOnlySpan<byte> TableGetColumnNameU8(this in ImGuiTable table, int columnN) - { - fixed (ImGuiTable* tablePtr = &table) - return TableGetColumnNameU8(tablePtr, columnN); - } - - public static string GetName(this ImGuiWindowSettingsPtr self) => Encoding.UTF8.GetString(GetNameU8(self)); - - public static string GetTabName(this ImGuiTabBarPtr self, ImGuiTabItemPtr tab) => - Encoding.UTF8.GetString(GetTabNameU8(self, tab)); - - public static string GetTabName(this ImGuiTabBarPtr self, in ImGuiTabItem tab) => - Encoding.UTF8.GetString(GetTabNameU8(self, tab)); - - public static string GetNavInputName(this ImGuiNavInput n) => Encoding.UTF8.GetString(GetNavInputNameU8(n)); - - public static string TableGetColumnName(this ImGuiTablePtr table, int columnN) => - Encoding.UTF8.GetString(TableGetColumnNameU8(table, columnN)); - - public static string GetName(this in ImGuiWindowSettings self) => Encoding.UTF8.GetString(GetNameU8(self)); - - public static string GetTabName(this in ImGuiTabBar self, ImGuiTabItemPtr tab) => - Encoding.UTF8.GetString(GetTabNameU8(self, tab)); - - public static string GetTabName(this in ImGuiTabBar self, in ImGuiTabItem tab) => - Encoding.UTF8.GetString(GetTabNameU8(self, tab)); - - public static string TableGetColumnName(this in ImGuiTable table, int columnN) => - Encoding.UTF8.GetString(TableGetColumnNameU8(table, columnN)); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Text.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Text.cs deleted file mode 100644 index c4a2a48a9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiP.Text.cs +++ /dev/null @@ -1,218 +0,0 @@ -using System.Diagnostics; -using System.Numerics; -using System.Text; - -namespace Dalamud.Bindings.ImGui; - -public static unsafe partial class ImGuiP -{ - public static void DebugLog(ImU8String text) - { - var g = ImGui.GetCurrentContext().Handle; - ImGui.append(&g->DebugLogBuf, $"[{g->FrameCount:00000}] "); - ImGui.append(&g->DebugLogBuf, text.Span); - if ((g->DebugLogFlags & ImGuiDebugLogFlags.OutputToTty) != ImGuiDebugLogFlags.None) - Debug.Write(text.ToString()); - text.Recycle(); - } - - public static int FindRenderedTextEnd( - ReadOnlySpan<byte> text, out ReadOnlySpan<byte> before, out ReadOnlySpan<byte> after) - { - fixed (byte* ptr = text) - { - var r = (int)(ImGuiPNative.FindRenderedTextEnd(ptr, ptr + text.Length) - ptr); - before = text[..r]; - after = text[r..]; - return r; - } - } - - public static int FindRenderedTextEnd( - ReadOnlySpan<char> text, out ReadOnlySpan<char> before, out ReadOnlySpan<char> after) - { - var textBuf = new ImU8String(text); - FindRenderedTextEnd(textBuf.Span, out var beforeBytes, out var afterBytes); - before = text[..Encoding.UTF8.GetCharCount(beforeBytes)]; - after = text[before.Length..]; - textBuf.Recycle(); - return before.Length; - } - - public static uint GetID(ImGuiWindowPtr self, ImU8String str) - { - fixed (byte* strPtr = str) - { - var seed = *self.IDStack.Back; - var id = ImGuiPNative.ImHashStr(strPtr, (nuint)str.Length, seed); - var g = ImGui.GetCurrentContext(); - if (g.DebugHookIdInfo == id) - DebugHookIdInfo(id, (ImGuiDataType)ImGuiDataTypePrivate.String, strPtr, strPtr + str.Length); - str.Recycle(); - return id; - } - } - - public static uint GetID(ImGuiWindowPtr self, void* ptr) => ImGuiPNative.GetID(self.Handle, ptr); - public static uint GetID(ImGuiWindowPtr self, int n) => ImGuiPNative.GetID(self.Handle, n); - - public static uint ImHashData(ReadOnlySpan<byte> data, uint seed = 0) - { - fixed (byte* ptr = data) return ImGuiPNative.ImHashData(ptr, (nuint)data.Length, seed); - } - - public static uint ImHashStr(ImU8String data, uint seed = 0) - { - fixed (byte* ptr = data) - { - var res = ImGuiPNative.ImHashStr(ptr, (nuint)data.Length, seed); - data.Recycle(); - return res; - } - } - - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan<byte> fmtIn, Span<byte> fmtOut) - { - fixed (byte* fmtInPtr = fmtIn) - fixed (byte* fmtOutPtr = fmtOut) - ImGuiPNative.ImParseFormatSanitizeForPrinting(fmtInPtr, fmtOutPtr, (nuint)fmtOut.Length); - } - - public static void ImParseFormatSanitizeForScanning(ReadOnlySpan<byte> fmtIn, Span<byte> fmtOut) - { - fixed (byte* fmtInPtr = fmtIn) - fixed (byte* fmtOutPtr = fmtOut) - ImGuiPNative.ImParseFormatSanitizeForScanning(fmtInPtr, fmtOutPtr, (nuint)fmtOut.Length); - } - - public static int ImStrchrRange<T>(ReadOnlySpan<T> str, T c, out ReadOnlySpan<T> before, out ReadOnlySpan<T> after) - where T : unmanaged, IEquatable<T> - { - var i = str.IndexOf(c); - if (i < 0) - { - before = after = default; - return -1; - } - - before = str[..i]; - after = str[i..]; - return i; - } - - public static int ImStreolRange( - ReadOnlySpan<byte> str, byte c, out ReadOnlySpan<byte> before, out ReadOnlySpan<byte> after) - { - var i = str.IndexOf((byte)'\n'); - if (i < 0) - { - before = after = default; - return -1; - } - - before = str[..i]; - after = str[i..]; - return i; - } - - public static int ImStreolRange( - ReadOnlySpan<char> str, char c, out ReadOnlySpan<char> before, out ReadOnlySpan<char> after) - { - var i = str.IndexOf('\n'); - if (i < 0) - { - before = after = default; - return -1; - } - - before = str[..i]; - after = str[i..]; - return i; - } - - public static void LogRenderedText(scoped in Vector2 refPos, ImU8String text) - { - fixed (Vector2* refPosPtr = &refPos) - fixed (byte* textPtr = text) - ImGuiPNative.LogRenderedText(refPosPtr, textPtr, textPtr + text.Length); - text.Recycle(); - } - - public static void RenderText(Vector2 pos, ImU8String text, bool hideTextAfterHash = true) - { - fixed (byte* textPtr = text) - ImGuiPNative.RenderText(pos, textPtr, textPtr + text.Length, hideTextAfterHash ? (byte)1 : (byte)0); - text.Recycle(); - } - - public static void RenderTextWrapped( - Vector2 pos, ImU8String text, float wrapWidth) - { - fixed (byte* textPtr = text) - ImGuiPNative.RenderTextWrapped(pos, textPtr, textPtr + text.Length, wrapWidth); - text.Recycle(); - } - - public static void RenderTextClipped( - scoped in Vector2 posMin, scoped in Vector2 posMax, ImU8String text, - scoped in Vector2? textSizeIfKnown = null, - scoped in Vector2 align = default, scoped in ImRect? clipRect = null) - { - var textSizeIfKnownOrDefault = textSizeIfKnown ?? default; - var clipRectOrDefault = clipRect ?? default; - fixed (byte* textPtr = text) - ImGuiPNative.RenderTextClipped( - posMin, - posMax, - textPtr, - textPtr + text.Length, - textSizeIfKnown.HasValue ? &textSizeIfKnownOrDefault : null, - align, - clipRect.HasValue ? &clipRectOrDefault : null); - text.Recycle(); - } - - public static void RenderTextClippedEx( - ImDrawListPtr drawList, scoped in Vector2 posMin, scoped in Vector2 posMax, - ImU8String text, - scoped in Vector2? textSizeIfKnown = null, scoped in Vector2 align = default, scoped in ImRect? clipRect = null) - { - var textSizeIfKnownOrDefault = textSizeIfKnown ?? default; - var clipRectOrDefault = clipRect ?? default; - fixed (byte* textPtr = text) - ImGuiPNative.RenderTextClippedEx( - drawList.Handle, - posMin, - posMax, - textPtr, - textPtr + text.Length, - textSizeIfKnown.HasValue ? &textSizeIfKnownOrDefault : null, - align, - clipRect.HasValue ? &clipRectOrDefault : null); - text.Recycle(); - } - - public static void RenderTextEllipsis( - ImDrawListPtr drawList, scoped in Vector2 posMin, scoped in Vector2 posMax, float clipMaxX, float ellipsisMaxX, - ImU8String text, scoped in Vector2? textSizeIfKnown = null) - { - var textSizeIfKnownOrDefault = textSizeIfKnown ?? default; - fixed (byte* textPtr = text) - ImGuiPNative.RenderTextEllipsis( - drawList.Handle, - posMin, - posMax, - clipMaxX, - ellipsisMaxX, - textPtr, - textPtr + text.Length, - textSizeIfKnown.HasValue ? &textSizeIfKnownOrDefault : null); - text.Recycle(); - } - - public static void TextEx(ReadOnlySpan<byte> text, ImGuiTextFlags flags) - { - fixed (byte* textPtr = text) - ImGuiPNative.TextEx(textPtr, textPtr + text.Length, flags); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPNative.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPNative.Custom.cs deleted file mode 100644 index 8d4c25202..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPNative.Custom.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public static partial class ImGuiPNative; diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs deleted file mode 100644 index 48819292d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiPayload -{ - public readonly Span<byte> DataSpan => new(this.Data, this.DataSize); - - public readonly bool IsDataType(ImU8String type) - { - fixed (ImGuiPayload* ptr = &this) - return ImGui.IsDataType(ptr, type); - } -} - -public partial struct ImGuiPayloadPtr -{ - public readonly bool IsDataType(ImU8String type) => ImGui.IsDataType(this, type); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiStorage.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiStorage.Custom.cs deleted file mode 100644 index aacd78d9f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiStorage.Custom.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiStorage -{ - public readonly ref bool GetBoolRef(uint key, bool defaultValue = false) - { - fixed (ImGuiStorage* thisPtr = &this) - return ref ImGui.GetBoolRef(thisPtr, key, defaultValue); - } - - public readonly ref float GetFloatRef(uint key, float defaultValue = 0.0f) - { - fixed (ImGuiStorage* thisPtr = &this) - return ref ImGui.GetFloatRef(thisPtr, key, defaultValue); - } - - public readonly ref int GetIntRef(uint key, int defaultValue = 0) - { - fixed (ImGuiStorage* thisPtr = &this) - return ref ImGui.GetIntRef(thisPtr, key, defaultValue); - } - - public readonly ref void* GetVoidPtrRef(uint key, void* defaultValue = null) - { - fixed (ImGuiStorage* thisPtr = &this) - return ref ImGui.GetVoidPtrRef(thisPtr, key, defaultValue); - } - - public readonly ref T* GetPtrRef<T>(uint key, T* defaultValue = null) where T : unmanaged - { - fixed (ImGuiStorage* thisPtr = &this) - return ref ImGui.GetPtrRef(thisPtr, key, defaultValue); - } - - public readonly ref T GetRef<T>(uint key, T defaultValue = default) where T : unmanaged - { - fixed (ImGuiStorage* thisPtr = &this) - return ref ImGui.GetRef(thisPtr, key, defaultValue); - } -} - -public unsafe partial struct ImGuiStoragePtr -{ - public readonly ref bool GetBoolRef(uint key, bool defaultValue = false) => - ref ImGui.GetBoolRef(this, key, defaultValue); - - public readonly ref float GetFloatRef(uint key, float defaultValue = 0.0f) => - ref ImGui.GetFloatRef(this, key, defaultValue); - - public readonly ref int GetIntRef(uint key, int defaultValue = 0) => ref ImGui.GetIntRef(this, key, defaultValue); - - public readonly ref void* GetVoidPtrRef(uint key, void* defaultValue = null) => - ref ImGui.GetVoidPtrRef(this, key, defaultValue); - - public readonly ref T* GetPtrRef<T>(uint key, T* defaultValue = null) where T : unmanaged => - ref ImGui.GetPtrRef(this, key, defaultValue); - - public readonly ref T GetRef<T>(uint key, T defaultValue = default) where T : unmanaged => - ref ImGui.GetRef(this, key, defaultValue); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextBuffer.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextBuffer.Custom.cs deleted file mode 100644 index 49a1abbe4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextBuffer.Custom.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Text; - -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextBuffer -{ - public readonly Span<byte> Span => new(this.Buf.Data, this.Buf.Size); - - public override readonly string ToString() => Encoding.UTF8.GetString(this.Span); - - public void append(ImU8String str) - { - fixed (ImGuiTextBuffer* thisPtr = &this) - ImGui.append(thisPtr, str); - } -} - -public unsafe partial struct ImGuiTextBufferPtr -{ - public readonly Span<byte> Span => new(Unsafe.AsRef(in this).Buf.Data, Unsafe.AsRef(in this).Buf.Size); - - public override readonly string ToString() => Encoding.UTF8.GetString(this.Span); - - public void append(ImU8String str) => ImGui.append(this, str); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextFilter.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextFilter.Custom.cs deleted file mode 100644 index 4ef7042eb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiTextFilter.Custom.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiTextFilter -{ - public bool Draw(ImU8String label = default, float width = 0.0f) - { - fixed (ImGuiTextFilter* thisPtr = &this) - return ImGui.Draw(thisPtr, label, width); - } - - public bool PassFilter(ImU8String text) - { - fixed (ImGuiTextFilter* thisPtr = &this) - return ImGui.PassFilter(thisPtr, text); - } -} - -public partial struct ImGuiTextFilterPtr -{ - public bool Draw(ImU8String label = default, float width = 0.0f) => ImGui.Draw(this, label, width); - public bool PassFilter(ImU8String text) => ImGui.PassFilter(this, text); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiWindow.Custom.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiWindow.Custom.cs deleted file mode 100644 index b80ca9c0b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiWindow.Custom.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace Dalamud.Bindings.ImGui; - -public unsafe partial struct ImGuiWindow -{ - public readonly uint GetID(ImU8String str) - { - fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, str); - } - - public readonly uint GetID(void* ptr) - { - fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, ptr); - } - - public readonly uint GetID(int n) - { - fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, n); - } -} - -public unsafe partial struct ImGuiWindowPtr -{ - public readonly uint GetID(ImU8String str) => ImGuiP.GetID(this.Handle, str); - public readonly uint GetID(void* ptr) => ImGuiP.GetID(this.Handle, ptr); - public readonly uint GetID(int n) => ImGuiP.GetID(this.Handle, n); -} diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/PointerTuple.cs b/imgui/Dalamud.Bindings.ImGui/Custom/PointerTuple.cs deleted file mode 100644 index 096ec47ce..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Custom/PointerTuple.cs +++ /dev/null @@ -1,116 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -#pragma warning disable CS8500 // This takes the address of, gets the size of, or declares a pointer to a managed type -internal static unsafe class PointerTuple -{ - public static ref PointerTuple<T1> From<T1>(void* ptr) - where T1 : allows ref struct - => ref *(PointerTuple<T1>*)ptr; - - public static PointerTuple<T1> Create<T1>(T1* item1Ptr) - where T1 : allows ref struct - => new() - { - Item1Ptr = item1Ptr, - }; - - public static PointerTuple<T1> CreateFixed<T1>(ref T1 item1) - where T1 : allows ref struct - => new() - { - Item1Ptr = (T1*)Unsafe.AsPointer(ref item1), - }; - - public static ref PointerTuple<T1, T2> From<T1, T2>(void* ptr) - where T1 : allows ref struct - where T2 : allows ref struct - => ref *(PointerTuple<T1, T2>*)ptr; - - public static PointerTuple<T1, T2> Create<T1, T2>(T1* item1Ptr, T2* item2Ptr) - where T1 : allows ref struct - where T2 : allows ref struct - => new() - { - Item1Ptr = item1Ptr, - Item2Ptr = item2Ptr, - }; - - public static PointerTuple<T1, T2> CreateFixed<T1, T2>(ref T1 item1, ref T2 item2) - where T1 : allows ref struct - where T2 : allows ref struct - => new() - { - Item1Ptr = (T1*)Unsafe.AsPointer(ref item1), - Item2Ptr = (T2*)Unsafe.AsPointer(ref item2), - }; - - public static ref PointerTuple<T1, T2, T3> From<T1, T2, T3>(void* ptr) - where T1 : allows ref struct - where T2 : allows ref struct - where T3 : allows ref struct - => ref *(PointerTuple<T1, T2, T3>*)ptr; - - public static PointerTuple<T1, T2, T3> Create<T1, T2, T3>(T1* item1Ptr, T2* item2Ptr, T3* item3Ptr) - where T1 : allows ref struct - where T2 : allows ref struct - where T3 : allows ref struct - => new() - { - Item1Ptr = item1Ptr, - Item2Ptr = item2Ptr, - Item3Ptr = item3Ptr, - }; - - public static PointerTuple<T1, T2, T3> CreateFixed<T1, T2, T3>(ref T1 item1, ref T2 item2, ref T3 item3) - where T1 : allows ref struct - where T2 : allows ref struct - where T3 : allows ref struct - => new() - { - Item1Ptr = (T1*)Unsafe.AsPointer(ref item1), - Item2Ptr = (T2*)Unsafe.AsPointer(ref item2), - Item3Ptr = (T3*)Unsafe.AsPointer(ref item3), - }; -} - -[StructLayout(LayoutKind.Sequential)] -internal unsafe struct PointerTuple<T1> - where T1 : allows ref struct -{ - public T1* Item1Ptr; - - public readonly ref T1 Item1 => ref *this.Item1Ptr; -} - -[StructLayout(LayoutKind.Sequential)] -internal unsafe struct PointerTuple<T1, T2> - where T1 : allows ref struct - where T2 : allows ref struct -{ - public T1* Item1Ptr; - public T2* Item2Ptr; - - public readonly ref T1 Item1 => ref *this.Item1Ptr; - - public readonly ref T2 Item2 => ref *this.Item2Ptr; -} - -[StructLayout(LayoutKind.Sequential)] -internal unsafe struct PointerTuple<T1, T2, T3> - where T1 : allows ref struct - where T2 : allows ref struct - where T3 : allows ref struct -{ - public T1* Item1Ptr; - public T2* Item2Ptr; - public T3* Item3Ptr; - - public readonly ref T1 Item1 => ref *this.Item1Ptr; - - public readonly ref T2 Item2 => ref *this.Item2Ptr; - - public readonly ref T3 Item3 => ref *this.Item3Ptr; -} diff --git a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj deleted file mode 100644 index 8668e9b8f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj +++ /dev/null @@ -1,41 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <ImplicitUsings>enable</ImplicitUsings> - <Nullable>enable</Nullable> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - - <DisableRuntimeMarshalling>true</DisableRuntimeMarshalling> - </PropertyGroup> - - <ItemGroup> - <PackageReference Include="HexaGen.Runtime" /> - </ItemGroup> - - <ItemGroup> - <Compile Remove="Generated\Functions\**" /> - <Compile Remove="Generated\Structs\**" /> - <Compile Remove="Internals\Functions\**" /> - <Compile Remove="Manual\Functions\**" /> - </ItemGroup> - - <ItemGroup> - <EmbeddedResource Remove="Generated\Functions\**" /> - <EmbeddedResource Remove="Generated\Structs\**" /> - <EmbeddedResource Remove="Internals\Functions\**" /> - <EmbeddedResource Remove="Manual\Functions\**" /> - </ItemGroup> - - <ItemGroup> - <None Remove="Generated\Functions\**" /> - <None Remove="Generated\Structs\**" /> - <None Remove="Internals\Functions\**" /> - <None Remove="Manual\Functions\**" /> - </ItemGroup> - - <ItemGroup> - <Folder Include="Internals\" /> - <Folder Include="Manual\" /> - </ItemGroup> - -</Project> diff --git a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj.DotSettings b/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj.DotSettings deleted file mode 100644 index 06f483845..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Dalamud.Bindings.ImGui.csproj.DotSettings +++ /dev/null @@ -1,2 +0,0 @@ -<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> - <s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=custom/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs deleted file mode 100644 index 8186adec9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Constants/Constants.000.cs +++ /dev/null @@ -1,29 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - public const int CIMGUI_VARGS0 = 1; - - public const int IMGUI_USE_WCHAR32 = 1; - - public const int IMGUI_ENABLE_FREETYPE = 1; - - public const int CIMGUI_DEFINE_ENUMS_AND_STRUCTS = 1; - - public const int IMGUI_HAS_DOCK = 1; - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs deleted file mode 100644 index f2e7d16e8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Delegates/Delegates.000.cs +++ /dev/null @@ -1,707 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void UserCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* cmd); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void UserCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] nint parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] nint cmd); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte FontBuilderBuild([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte FontBuilderBuild([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] nint atlas); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte* GetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate nint GetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] nint text); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SetPlatformImeDataFn([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] ImGuiPlatformImeData* data); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SetPlatformImeDataFn([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint viewport, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] nint data); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformShowWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformShowWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowPos([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowPos([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate Vector2* PlatformGetWindowPos(Vector2* pos, ImGuiViewport* viewport); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate Vector2* PlatformGetWindowPos(Vector2* pos, ImGuiViewport* viewport); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate Vector2* PlatformGetWindowSize(Vector2* size, ImGuiViewport* viewport); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate Vector2* PlatformGetWindowSize(Vector2* size, ImGuiViewport* viewport); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte PlatformGetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte PlatformGetWindowFocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte PlatformGetWindowMinimized([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte PlatformGetWindowMinimized([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowTitle([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowTitle([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] nint str); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowAlpha([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "float")] float alpha); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetWindowAlpha([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "float")] float alpha); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformUpdateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformUpdateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate float PlatformGetWindowDpiScale([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate float PlatformGetWindowDpiScale([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformOnChangedViewport([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformOnChangedViewport([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int PlatformCreateVkSurface([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "vk_inst")] [NativeName(NativeNameType.Type, "ImU64")] ulong vkInst, [NativeName(NativeNameType.Param, "vk_allocators")] [NativeName(NativeNameType.Type, "const void*")] void* vkAllocators, [NativeName(NativeNameType.Param, "out_vk_surface")] [NativeName(NativeNameType.Type, "ImU64*")] ulong* outVkSurface); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int PlatformCreateVkSurface([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "vk_inst")] [NativeName(NativeNameType.Type, "ImU64")] ulong vkInst, [NativeName(NativeNameType.Param, "vk_allocators")] [NativeName(NativeNameType.Type, "const void*")] nint vkAllocators, [NativeName(NativeNameType.Param, "out_vk_surface")] [NativeName(NativeNameType.Type, "ImU64*")] nint outVkSurface); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererCreateWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererDestroyWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererSetWindowSize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererRenderWindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererSwapBuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] nint vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] nint renderArg); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] ImGuiSizeCallbackData* data); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] nint data); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ClearAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ClearAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ReadInitFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ReadInitFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void* ReadOpenFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate nint ReadOpenFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] nint name); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ReadLineFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "entry")] [NativeName(NativeNameType.Type, "void*")] void* entry, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] byte* line); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ReadLineFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler, [NativeName(NativeNameType.Param, "entry")] [NativeName(NativeNameType.Type, "void*")] nint entry, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] nint line); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ApplyAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ApplyAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void WriteAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* outBuf); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void WriteAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] nint handler, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] nint outBuf); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void Callback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* hook); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void Callback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] nint hook); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImDrawCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* cmd); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImDrawCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] nint parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] nint cmd); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiSizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] ImGuiSizeCallbackData* data); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiSizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] nint data); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiContextHookCallback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* hook); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiContextHookCallback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] nint ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] nint hook); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int ImGuiInputTextCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* data); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int ImGuiInputTextCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] nint data); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void* ImGuiMemAllocFunc([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate nint ImGuiMemAllocFunc([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiMemFreeFunc([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] void* ptr, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiMemFreeFunc([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] nint ptr, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiErrorLogCallback([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiErrorLogCallback([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] nint fmt); - - #endif - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs deleted file mode 100644 index e6c17d87e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawFlags.cs +++ /dev/null @@ -1,92 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImDrawFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Closed = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersTopLeft = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersTopRight = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersBottomLeft = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersBottomRight = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersNone = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersTop = unchecked(48), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersBottom = unchecked(192), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersLeft = unchecked(80), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersRight = unchecked(160), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersAll = unchecked(240), - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersDefault = RoundCornersAll, - - /// <summary> - /// To be documented. - /// </summary> - RoundCornersMask = unchecked(496), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs deleted file mode 100644 index efcf4cb9b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImDrawListFlags.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImDrawListFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - AntiAliasedLines = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - AntiAliasedLinesUseTex = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - AntiAliasedFill = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - AllowVtxOffset = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs deleted file mode 100644 index 43ee3b150..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImFontAtlasFlags.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImFontAtlasFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoPowerOfTwoHeight = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoMouseCursors = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoBakedLines = unchecked(4), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs deleted file mode 100644 index c1e45671b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiActivateFlags.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiActivateFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - PreferInput = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - PreferTweak = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - TryToPreserveState = unchecked(4), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiAxis.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiAxis.cs deleted file mode 100644 index 445564e38..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiAxis.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiAxis : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(-1), - - /// <summary> - /// To be documented. - /// </summary> - X = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Y = unchecked(1), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs deleted file mode 100644 index d777cedf1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiBackendFlags.cs +++ /dev/null @@ -1,62 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiBackendFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - HasGamepad = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - HasMouseCursors = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - HasSetMousePos = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - RendererHasVtxOffset = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - PlatformHasViewports = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - HasMouseHoveredViewport = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - RendererHasViewports = unchecked(4096), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs deleted file mode 100644 index 640e8158d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlags.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiButtonFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonLeft = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonRight = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonMiddle = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonMask = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonDefault = MouseButtonLeft, - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs deleted file mode 100644 index 5e864c855..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiButtonFlagsPrivate.cs +++ /dev/null @@ -1,107 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiButtonFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - PressedOnClick = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - PressedOnClickRelease = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - PressedOnClickReleaseAnywhere = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - PressedOnRelease = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - PressedOnDoubleClick = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - PressedOnDragDropHold = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - Repeat = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - FlattenChildren = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - AllowItemOverlap = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - DontClosePopups = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - AlignTextBaseLine = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - NoKeyModifiers = unchecked(65536), - - /// <summary> - /// To be documented. - /// </summary> - NoHoldingActiveId = unchecked(131072), - - /// <summary> - /// To be documented. - /// </summary> - NoNavFocus = unchecked(262144), - - /// <summary> - /// To be documented. - /// </summary> - NoHoveredOnFocus = unchecked(524288), - - /// <summary> - /// To be documented. - /// </summary> - PressedOnMask = unchecked(1008), - - /// <summary> - /// To be documented. - /// </summary> - PressedOnDefault = PressedOnClickRelease, - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs deleted file mode 100644 index 166f451a1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCol.cs +++ /dev/null @@ -1,302 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiCol : int - { - /// <summary> - /// To be documented. - /// </summary> - Text = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - TextDisabled = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - WindowBg = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - ChildBg = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - PopupBg = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Border = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - BorderShadow = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - FrameBg = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - FrameBgHovered = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - FrameBgActive = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - TitleBg = unchecked(10), - - /// <summary> - /// To be documented. - /// </summary> - TitleBgActive = unchecked(11), - - /// <summary> - /// To be documented. - /// </summary> - TitleBgCollapsed = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - MenuBarBg = unchecked(13), - - /// <summary> - /// To be documented. - /// </summary> - ScrollbarBg = unchecked(14), - - /// <summary> - /// To be documented. - /// </summary> - ScrollbarGrab = unchecked(15), - - /// <summary> - /// To be documented. - /// </summary> - ScrollbarGrabHovered = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - ScrollbarGrabActive = unchecked(17), - - /// <summary> - /// To be documented. - /// </summary> - CheckMark = unchecked(18), - - /// <summary> - /// To be documented. - /// </summary> - SliderGrab = unchecked(19), - - /// <summary> - /// To be documented. - /// </summary> - SliderGrabActive = unchecked(20), - - /// <summary> - /// To be documented. - /// </summary> - Button = unchecked(21), - - /// <summary> - /// To be documented. - /// </summary> - ButtonHovered = unchecked(22), - - /// <summary> - /// To be documented. - /// </summary> - ButtonActive = unchecked(23), - - /// <summary> - /// To be documented. - /// </summary> - Header = unchecked(24), - - /// <summary> - /// To be documented. - /// </summary> - HeaderHovered = unchecked(25), - - /// <summary> - /// To be documented. - /// </summary> - HeaderActive = unchecked(26), - - /// <summary> - /// To be documented. - /// </summary> - Separator = unchecked(27), - - /// <summary> - /// To be documented. - /// </summary> - SeparatorHovered = unchecked(28), - - /// <summary> - /// To be documented. - /// </summary> - SeparatorActive = unchecked(29), - - /// <summary> - /// To be documented. - /// </summary> - ResizeGrip = unchecked(30), - - /// <summary> - /// To be documented. - /// </summary> - ResizeGripHovered = unchecked(31), - - /// <summary> - /// To be documented. - /// </summary> - ResizeGripActive = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - Tab = unchecked(33), - - /// <summary> - /// To be documented. - /// </summary> - TabHovered = unchecked(34), - - /// <summary> - /// To be documented. - /// </summary> - TabActive = unchecked(35), - - /// <summary> - /// To be documented. - /// </summary> - TabUnfocused = unchecked(36), - - /// <summary> - /// To be documented. - /// </summary> - TabUnfocusedActive = unchecked(37), - - /// <summary> - /// To be documented. - /// </summary> - DockingPreview = unchecked(38), - - /// <summary> - /// To be documented. - /// </summary> - DockingEmptyBg = unchecked(39), - - /// <summary> - /// To be documented. - /// </summary> - PlotLines = unchecked(40), - - /// <summary> - /// To be documented. - /// </summary> - PlotLinesHovered = unchecked(41), - - /// <summary> - /// To be documented. - /// </summary> - PlotHistogram = unchecked(42), - - /// <summary> - /// To be documented. - /// </summary> - PlotHistogramHovered = unchecked(43), - - /// <summary> - /// To be documented. - /// </summary> - TableHeaderBg = unchecked(44), - - /// <summary> - /// To be documented. - /// </summary> - TableBorderStrong = unchecked(45), - - /// <summary> - /// To be documented. - /// </summary> - TableBorderLight = unchecked(46), - - /// <summary> - /// To be documented. - /// </summary> - TableRowBg = unchecked(47), - - /// <summary> - /// To be documented. - /// </summary> - TableRowBgAlt = unchecked(48), - - /// <summary> - /// To be documented. - /// </summary> - TextSelectedBg = unchecked(49), - - /// <summary> - /// To be documented. - /// </summary> - DragDropTarget = unchecked(50), - - /// <summary> - /// To be documented. - /// </summary> - NavHighlight = unchecked(51), - - /// <summary> - /// To be documented. - /// </summary> - NavWindowingHighlight = unchecked(52), - - /// <summary> - /// To be documented. - /// </summary> - NavWindowingDimBg = unchecked(53), - - /// <summary> - /// To be documented. - /// </summary> - ModalWindowDimBg = unchecked(54), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(55), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs deleted file mode 100644 index 5d1fc4cfb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiColorEditFlags.cs +++ /dev/null @@ -1,172 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiColorEditFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoAlpha = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoPicker = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoOptions = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoSmallPreview = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoInputs = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoTooltip = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - NoLabel = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - NoSidePreview = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - NoDragDrop = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - NoBorder = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - AlphaBar = unchecked(65536), - - /// <summary> - /// To be documented. - /// </summary> - AlphaPreview = unchecked(131072), - - /// <summary> - /// To be documented. - /// </summary> - AlphaPreviewHalf = unchecked(262144), - - /// <summary> - /// To be documented. - /// </summary> - Hdr = unchecked(524288), - - /// <summary> - /// To be documented. - /// </summary> - DisplayRgb = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - DisplayHsv = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - DisplayHex = unchecked(4194304), - - /// <summary> - /// To be documented. - /// </summary> - Uint8 = unchecked(8388608), - - /// <summary> - /// To be documented. - /// </summary> - Float = unchecked(16777216), - - /// <summary> - /// To be documented. - /// </summary> - PickerHueBar = unchecked(33554432), - - /// <summary> - /// To be documented. - /// </summary> - PickerHueWheel = unchecked(67108864), - - /// <summary> - /// To be documented. - /// </summary> - InputRgb = unchecked(134217728), - - /// <summary> - /// To be documented. - /// </summary> - InputHsv = unchecked(268435456), - - /// <summary> - /// To be documented. - /// </summary> - OptionsDefault = unchecked(177209344), - - /// <summary> - /// To be documented. - /// </summary> - DefaultOptions = unchecked(177209344), - - /// <summary> - /// To be documented. - /// </summary> - DisplayMask = unchecked(7340032), - - /// <summary> - /// To be documented. - /// </summary> - DataTypeMask = unchecked(25165824), - - /// <summary> - /// To be documented. - /// </summary> - PickerMask = unchecked(100663296), - - /// <summary> - /// To be documented. - /// </summary> - InputMask = unchecked(402653184), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs deleted file mode 100644 index feb5b1eb6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlags.cs +++ /dev/null @@ -1,67 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiComboFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - PopupAlignLeft = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - HeightSmall = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - HeightRegular = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - HeightLarge = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - HeightLargest = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoArrowButton = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoPreview = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - HeightMask = unchecked(30), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs deleted file mode 100644 index 94372eef4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiComboFlagsPrivate.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiComboFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - CustomPreview = unchecked(1048576), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs deleted file mode 100644 index 911c40740..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiCond.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiCond : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Always = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Once = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - FirstUseEver = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Appearing = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs deleted file mode 100644 index 0c388559a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiConfigFlags.cs +++ /dev/null @@ -1,92 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiConfigFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NavEnableKeyboard = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NavEnableGamepad = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NavEnableSetMousePos = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NavNoCaptureKeyboard = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoMouse = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoMouseCursorChange = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoKerning = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - DockingEnable = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - ViewportsEnable = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - DpiEnableScaleViewports = unchecked(16384), - - /// <summary> - /// To be documented. - /// </summary> - DpiEnableScaleFonts = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - IsSrgb = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - IsTouchScreen = unchecked(2097152), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiContextHookType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiContextHookType.cs deleted file mode 100644 index 0ca5d3e79..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiContextHookType.cs +++ /dev/null @@ -1,62 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiContextHookType : int - { - /// <summary> - /// To be documented. - /// </summary> - NewFramePre = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NewFramePost = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - EndFramePre = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - EndFramePost = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - RenderPre = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - RenderPost = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Shutdown = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - PendingRemoval = unchecked(7), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataAuthority.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataAuthority.cs deleted file mode 100644 index fb09b1d8a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataAuthority.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDataAuthority : int - { - /// <summary> - /// To be documented. - /// </summary> - Auto = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - DockNode = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Window = unchecked(2), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs deleted file mode 100644 index c93c08984..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataType.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDataType : int - { - /// <summary> - /// To be documented. - /// </summary> - S8 = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - U8 = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - S16 = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - U16 = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - S32 = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - U32 = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - S64 = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - U64 = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - Float = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - Double = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(10), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataTypePrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataTypePrivate.cs deleted file mode 100644 index 4b129b69d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDataTypePrivate.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDataTypePrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - String = unchecked(11), - - /// <summary> - /// To be documented. - /// </summary> - Pointer = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - Id = unchecked(13), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs deleted file mode 100644 index f8f6eac3e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDebugLogFlags.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDebugLogFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - EventActiveId = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - EventFocus = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - EventPopup = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - EventNav = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - EventIo = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - EventDocking = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - EventViewport = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - EventMask = unchecked(127), - - /// <summary> - /// To be documented. - /// </summary> - OutputToTty = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDir.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDir.cs deleted file mode 100644 index 2a6bde5d0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDir.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDir : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(-1), - - /// <summary> - /// To be documented. - /// </summary> - Left = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Right = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Up = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Down = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(4), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs deleted file mode 100644 index fc3d6603a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlags.cs +++ /dev/null @@ -1,57 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDockNodeFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - KeepAliveOnly = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoDockingInCentralNode = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - PassthruCentralNode = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoSplit = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoResize = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - AutoHideTabBar = unchecked(64), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs deleted file mode 100644 index fa79a6484..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeFlagsPrivate.cs +++ /dev/null @@ -1,117 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDockNodeFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - Space = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - CentralNode = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - NoTabBar = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - HiddenTabBar = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - NoWindowMenuButton = unchecked(16384), - - /// <summary> - /// To be documented. - /// </summary> - NoCloseButton = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - NoDocking = unchecked(65536), - - /// <summary> - /// To be documented. - /// </summary> - NoDockingSplitMe = unchecked(131072), - - /// <summary> - /// To be documented. - /// </summary> - NoDockingSplitOther = unchecked(262144), - - /// <summary> - /// To be documented. - /// </summary> - NoDockingOverMe = unchecked(524288), - - /// <summary> - /// To be documented. - /// </summary> - NoDockingOverOther = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - NoDockingOverEmpty = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - NoResizeX = unchecked(4194304), - - /// <summary> - /// To be documented. - /// </summary> - NoResizeY = unchecked(8388608), - - /// <summary> - /// To be documented. - /// </summary> - SharedFlagsInheritMask = unchecked(-1), - - /// <summary> - /// To be documented. - /// </summary> - NoResizeFlagsMask = unchecked(12582944), - - /// <summary> - /// To be documented. - /// </summary> - LocalFlagsMask = unchecked(12713072), - - /// <summary> - /// To be documented. - /// </summary> - LocalFlagsTransferMask = unchecked(12712048), - - /// <summary> - /// To be documented. - /// </summary> - SavedFlagsMask = unchecked(12712992), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeState.cs deleted file mode 100644 index dddb81bcc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDockNodeState.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDockNodeState : int - { - /// <summary> - /// To be documented. - /// </summary> - Unknown = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - HostWindowHiddenBecauseSingleWindow = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - HostWindowHiddenBecauseWindowsAreResizing = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - HostWindowVisible = unchecked(3), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs deleted file mode 100644 index a52fdefed..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiDragDropFlags.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiDragDropFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - SourceNoPreviewTooltip = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - SourceNoDisableHover = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - SourceNoHoldToOpenOthers = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - SourceAllowNullId = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - SourceExtern = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - SourceAutoExpirePayload = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - AcceptBeforeDelivery = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - AcceptNoDrawDefaultRect = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - AcceptNoPreviewTooltip = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - AcceptPeekOnly = unchecked(3072), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs deleted file mode 100644 index 06d80a6df..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiFocusedFlags.cs +++ /dev/null @@ -1,57 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiFocusedFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - ChildWindows = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - RootWindow = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - AnyWindow = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoPopupHierarchy = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - DockHierarchy = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - RootAndChildWindows = unchecked(3), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs deleted file mode 100644 index 58ec185e1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiHoveredFlags.cs +++ /dev/null @@ -1,87 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiHoveredFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - ChildWindows = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - RootWindow = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - AnyWindow = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - AllowWhenBlockedByPopup = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - AllowWhenBlockedByActiveItem = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - AllowWhenOverlapped = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - AllowWhenDisabled = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - NoNavOverride = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - RectOnly = unchecked(104), - - /// <summary> - /// To be documented. - /// </summary> - RootAndChildWindows = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - NoPopupHierarchy = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - DockHierarchy = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputEventType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputEventType.cs deleted file mode 100644 index 9bd6f16b4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputEventType.cs +++ /dev/null @@ -1,67 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiInputEventType : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - MousePos = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - MouseWheel = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - MouseButton = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - MouseViewport = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Key = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Text = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - Focus = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs deleted file mode 100644 index 81a4dc705..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputSource.cs +++ /dev/null @@ -1,57 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiInputSource : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Mouse = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Keyboard = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Gamepad = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Clipboard = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Nav = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(6), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs deleted file mode 100644 index 73139b785..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlags.cs +++ /dev/null @@ -1,127 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiInputTextFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - CharsDecimal = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - CharsHexadecimal = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - CharsUppercase = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - CharsNoBlank = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - AutoSelectAll = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - EnterReturnsTrue = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - CallbackCompletion = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - CallbackHistory = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - CallbackAlways = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - CallbackCharFilter = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - AllowTabInput = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - CtrlEnterForNewLine = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - NoHorizontalScroll = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysOverwrite = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - ReadOnly = unchecked(16384), - - /// <summary> - /// To be documented. - /// </summary> - Password = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - NoUndoRedo = unchecked(65536), - - /// <summary> - /// To be documented. - /// </summary> - CharsScientific = unchecked(131072), - - /// <summary> - /// To be documented. - /// </summary> - CallbackResize = unchecked(262144), - - /// <summary> - /// To be documented. - /// </summary> - CallbackEdit = unchecked(524288), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs deleted file mode 100644 index 48996a695..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiInputTextFlagsPrivate.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiInputTextFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - Multiline = unchecked(67108864), - - /// <summary> - /// To be documented. - /// </summary> - NoMarkEdited = unchecked(134217728), - - /// <summary> - /// To be documented. - /// </summary> - MergedItem = unchecked(268435456), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs deleted file mode 100644 index 437d81ffd..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemFlags.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiItemFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoTabStop = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - ButtonRepeat = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Disabled = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoNav = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoNavDefaultFocus = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - SelectableDontClosePopup = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - MixedValue = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - ReadOnly = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - Inputable = unchecked(256), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs deleted file mode 100644 index d091d4f76..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiItemStatusFlags.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiItemStatusFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - HoveredRect = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - HasDisplayRect = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Edited = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - ToggledSelection = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - ToggledOpen = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - HasDeactivated = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - Deactivated = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - HoveredWindow = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - FocusedByTabbing = unchecked(256), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKey.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKey.cs deleted file mode 100644 index 19e08b98c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKey.cs +++ /dev/null @@ -1,722 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiKey : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Tab = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - LeftArrow = unchecked(513), - - /// <summary> - /// To be documented. - /// </summary> - RightArrow = unchecked(514), - - /// <summary> - /// To be documented. - /// </summary> - UpArrow = unchecked(515), - - /// <summary> - /// To be documented. - /// </summary> - DownArrow = unchecked(516), - - /// <summary> - /// To be documented. - /// </summary> - PageUp = unchecked(517), - - /// <summary> - /// To be documented. - /// </summary> - PageDown = unchecked(518), - - /// <summary> - /// To be documented. - /// </summary> - Home = unchecked(519), - - /// <summary> - /// To be documented. - /// </summary> - End = unchecked(520), - - /// <summary> - /// To be documented. - /// </summary> - Insert = unchecked(521), - - /// <summary> - /// To be documented. - /// </summary> - Delete = unchecked(522), - - /// <summary> - /// To be documented. - /// </summary> - Backspace = unchecked(523), - - /// <summary> - /// To be documented. - /// </summary> - Space = unchecked(524), - - /// <summary> - /// To be documented. - /// </summary> - Enter = unchecked(525), - - /// <summary> - /// To be documented. - /// </summary> - Escape = unchecked(526), - - /// <summary> - /// To be documented. - /// </summary> - LeftCtrl = unchecked(527), - - /// <summary> - /// To be documented. - /// </summary> - LeftShift = unchecked(528), - - /// <summary> - /// To be documented. - /// </summary> - LeftAlt = unchecked(529), - - /// <summary> - /// To be documented. - /// </summary> - LeftSuper = unchecked(530), - - /// <summary> - /// To be documented. - /// </summary> - RightCtrl = unchecked(531), - - /// <summary> - /// To be documented. - /// </summary> - RightShift = unchecked(532), - - /// <summary> - /// To be documented. - /// </summary> - RightAlt = unchecked(533), - - /// <summary> - /// To be documented. - /// </summary> - RightSuper = unchecked(534), - - /// <summary> - /// To be documented. - /// </summary> - Menu = unchecked(535), - - /// <summary> - /// To be documented. - /// </summary> - Key0 = unchecked(536), - - /// <summary> - /// To be documented. - /// </summary> - Key1 = unchecked(537), - - /// <summary> - /// To be documented. - /// </summary> - Key2 = unchecked(538), - - /// <summary> - /// To be documented. - /// </summary> - Key3 = unchecked(539), - - /// <summary> - /// To be documented. - /// </summary> - Key4 = unchecked(540), - - /// <summary> - /// To be documented. - /// </summary> - Key5 = unchecked(541), - - /// <summary> - /// To be documented. - /// </summary> - Key6 = unchecked(542), - - /// <summary> - /// To be documented. - /// </summary> - Key7 = unchecked(543), - - /// <summary> - /// To be documented. - /// </summary> - Key8 = unchecked(544), - - /// <summary> - /// To be documented. - /// </summary> - Key9 = unchecked(545), - - /// <summary> - /// To be documented. - /// </summary> - A = unchecked(546), - - /// <summary> - /// To be documented. - /// </summary> - B = unchecked(547), - - /// <summary> - /// To be documented. - /// </summary> - C = unchecked(548), - - /// <summary> - /// To be documented. - /// </summary> - D = unchecked(549), - - /// <summary> - /// To be documented. - /// </summary> - E = unchecked(550), - - /// <summary> - /// To be documented. - /// </summary> - F = unchecked(551), - - /// <summary> - /// To be documented. - /// </summary> - G = unchecked(552), - - /// <summary> - /// To be documented. - /// </summary> - H = unchecked(553), - - /// <summary> - /// To be documented. - /// </summary> - I = unchecked(554), - - /// <summary> - /// To be documented. - /// </summary> - J = unchecked(555), - - /// <summary> - /// To be documented. - /// </summary> - K = unchecked(556), - - /// <summary> - /// To be documented. - /// </summary> - L = unchecked(557), - - /// <summary> - /// To be documented. - /// </summary> - M = unchecked(558), - - /// <summary> - /// To be documented. - /// </summary> - N = unchecked(559), - - /// <summary> - /// To be documented. - /// </summary> - O = unchecked(560), - - /// <summary> - /// To be documented. - /// </summary> - P = unchecked(561), - - /// <summary> - /// To be documented. - /// </summary> - Q = unchecked(562), - - /// <summary> - /// To be documented. - /// </summary> - R = unchecked(563), - - /// <summary> - /// To be documented. - /// </summary> - S = unchecked(564), - - /// <summary> - /// To be documented. - /// </summary> - T = unchecked(565), - - /// <summary> - /// To be documented. - /// </summary> - U = unchecked(566), - - /// <summary> - /// To be documented. - /// </summary> - V = unchecked(567), - - /// <summary> - /// To be documented. - /// </summary> - W = unchecked(568), - - /// <summary> - /// To be documented. - /// </summary> - X = unchecked(569), - - /// <summary> - /// To be documented. - /// </summary> - Y = unchecked(570), - - /// <summary> - /// To be documented. - /// </summary> - Z = unchecked(571), - - /// <summary> - /// To be documented. - /// </summary> - F1 = unchecked(572), - - /// <summary> - /// To be documented. - /// </summary> - F2 = unchecked(573), - - /// <summary> - /// To be documented. - /// </summary> - F3 = unchecked(574), - - /// <summary> - /// To be documented. - /// </summary> - F4 = unchecked(575), - - /// <summary> - /// To be documented. - /// </summary> - F5 = unchecked(576), - - /// <summary> - /// To be documented. - /// </summary> - F6 = unchecked(577), - - /// <summary> - /// To be documented. - /// </summary> - F7 = unchecked(578), - - /// <summary> - /// To be documented. - /// </summary> - F8 = unchecked(579), - - /// <summary> - /// To be documented. - /// </summary> - F9 = unchecked(580), - - /// <summary> - /// To be documented. - /// </summary> - F10 = unchecked(581), - - /// <summary> - /// To be documented. - /// </summary> - F11 = unchecked(582), - - /// <summary> - /// To be documented. - /// </summary> - F12 = unchecked(583), - - /// <summary> - /// To be documented. - /// </summary> - Apostrophe = unchecked(584), - - /// <summary> - /// To be documented. - /// </summary> - Comma = unchecked(585), - - /// <summary> - /// To be documented. - /// </summary> - Minus = unchecked(586), - - /// <summary> - /// To be documented. - /// </summary> - Period = unchecked(587), - - /// <summary> - /// To be documented. - /// </summary> - Slash = unchecked(588), - - /// <summary> - /// To be documented. - /// </summary> - Semicolon = unchecked(589), - - /// <summary> - /// To be documented. - /// </summary> - Equal = unchecked(590), - - /// <summary> - /// To be documented. - /// </summary> - LeftBracket = unchecked(591), - - /// <summary> - /// To be documented. - /// </summary> - Backslash = unchecked(592), - - /// <summary> - /// To be documented. - /// </summary> - RightBracket = unchecked(593), - - /// <summary> - /// To be documented. - /// </summary> - GraveAccent = unchecked(594), - - /// <summary> - /// To be documented. - /// </summary> - CapsLock = unchecked(595), - - /// <summary> - /// To be documented. - /// </summary> - ScrollLock = unchecked(596), - - /// <summary> - /// To be documented. - /// </summary> - NumLock = unchecked(597), - - /// <summary> - /// To be documented. - /// </summary> - PrintScreen = unchecked(598), - - /// <summary> - /// To be documented. - /// </summary> - Pause = unchecked(599), - - /// <summary> - /// To be documented. - /// </summary> - Keypad0 = unchecked(600), - - /// <summary> - /// To be documented. - /// </summary> - Keypad1 = unchecked(601), - - /// <summary> - /// To be documented. - /// </summary> - Keypad2 = unchecked(602), - - /// <summary> - /// To be documented. - /// </summary> - Keypad3 = unchecked(603), - - /// <summary> - /// To be documented. - /// </summary> - Keypad4 = unchecked(604), - - /// <summary> - /// To be documented. - /// </summary> - Keypad5 = unchecked(605), - - /// <summary> - /// To be documented. - /// </summary> - Keypad6 = unchecked(606), - - /// <summary> - /// To be documented. - /// </summary> - Keypad7 = unchecked(607), - - /// <summary> - /// To be documented. - /// </summary> - Keypad8 = unchecked(608), - - /// <summary> - /// To be documented. - /// </summary> - Keypad9 = unchecked(609), - - /// <summary> - /// To be documented. - /// </summary> - KeypadDecimal = unchecked(610), - - /// <summary> - /// To be documented. - /// </summary> - KeypadDivide = unchecked(611), - - /// <summary> - /// To be documented. - /// </summary> - KeypadMultiply = unchecked(612), - - /// <summary> - /// To be documented. - /// </summary> - KeypadSubtract = unchecked(613), - - /// <summary> - /// To be documented. - /// </summary> - KeypadAdd = unchecked(614), - - /// <summary> - /// To be documented. - /// </summary> - KeypadEnter = unchecked(615), - - /// <summary> - /// To be documented. - /// </summary> - KeypadEqual = unchecked(616), - - /// <summary> - /// To be documented. - /// </summary> - GamepadStart = unchecked(617), - - /// <summary> - /// To be documented. - /// </summary> - GamepadBack = unchecked(618), - - /// <summary> - /// To be documented. - /// </summary> - GamepadFaceUp = unchecked(619), - - /// <summary> - /// To be documented. - /// </summary> - GamepadFaceDown = unchecked(620), - - /// <summary> - /// To be documented. - /// </summary> - GamepadFaceLeft = unchecked(621), - - /// <summary> - /// To be documented. - /// </summary> - GamepadFaceRight = unchecked(622), - - /// <summary> - /// To be documented. - /// </summary> - GamepadDpadUp = unchecked(623), - - /// <summary> - /// To be documented. - /// </summary> - GamepadDpadDown = unchecked(624), - - /// <summary> - /// To be documented. - /// </summary> - GamepadDpadLeft = unchecked(625), - - /// <summary> - /// To be documented. - /// </summary> - GamepadDpadRight = unchecked(626), - - /// <summary> - /// To be documented. - /// </summary> - GamepadL1 = unchecked(627), - - /// <summary> - /// To be documented. - /// </summary> - GamepadR1 = unchecked(628), - - /// <summary> - /// To be documented. - /// </summary> - GamepadL2 = unchecked(629), - - /// <summary> - /// To be documented. - /// </summary> - GamepadR2 = unchecked(630), - - /// <summary> - /// To be documented. - /// </summary> - GamepadL3 = unchecked(631), - - /// <summary> - /// To be documented. - /// </summary> - GamepadR3 = unchecked(632), - - /// <summary> - /// To be documented. - /// </summary> - GamepadLStickUp = unchecked(633), - - /// <summary> - /// To be documented. - /// </summary> - GamepadLStickDown = unchecked(634), - - /// <summary> - /// To be documented. - /// </summary> - GamepadLStickLeft = unchecked(635), - - /// <summary> - /// To be documented. - /// </summary> - GamepadLStickRight = unchecked(636), - - /// <summary> - /// To be documented. - /// </summary> - GamepadRStickUp = unchecked(637), - - /// <summary> - /// To be documented. - /// </summary> - GamepadRStickDown = unchecked(638), - - /// <summary> - /// To be documented. - /// </summary> - GamepadRStickLeft = unchecked(639), - - /// <summary> - /// To be documented. - /// </summary> - GamepadRStickRight = unchecked(640), - - /// <summary> - /// To be documented. - /// </summary> - ModCtrl = unchecked(641), - - /// <summary> - /// To be documented. - /// </summary> - ModShift = unchecked(642), - - /// <summary> - /// To be documented. - /// </summary> - ModAlt = unchecked(643), - - /// <summary> - /// To be documented. - /// </summary> - ModSuper = unchecked(644), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(645), - - /// <summary> - /// To be documented. - /// </summary> - NamedKeyBegin = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - NamedKeyEnd = Count, - - /// <summary> - /// To be documented. - /// </summary> - NamedKeyCount = unchecked(133), - - /// <summary> - /// To be documented. - /// </summary> - KeysDataSize = Count, - - /// <summary> - /// To be documented. - /// </summary> - KeysDataOffset = unchecked(0), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKeyPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKeyPrivate.cs deleted file mode 100644 index 80a76c38a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiKeyPrivate.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiKeyPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - LegacyNativeKeyBegin = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - LegacyNativeKeyEnd = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - GamepadBegin = unchecked((int)ImGuiKey.GamepadStart), - - /// <summary> - /// To be documented. - /// </summary> - GamepadEnd = unchecked(641), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLayoutType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLayoutType.cs deleted file mode 100644 index 01076a708..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLayoutType.cs +++ /dev/null @@ -1,32 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiLayoutType : int - { - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Vertical = unchecked(1), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLogType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLogType.cs deleted file mode 100644 index 2b4b55a32..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiLogType.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiLogType : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Tty = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - File = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Buffer = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Clipboard = unchecked(4), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiModFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiModFlags.cs deleted file mode 100644 index c7f183079..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiModFlags.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiModFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Ctrl = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Shift = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Alt = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Super = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseButton.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseButton.cs deleted file mode 100644 index 75193a596..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseButton.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiMouseButton : int - { - /// <summary> - /// To be documented. - /// </summary> - Left = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Right = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Middle = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(5), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs deleted file mode 100644 index 59650ffcc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiMouseCursor.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiMouseCursor : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(-1), - - /// <summary> - /// To be documented. - /// </summary> - Arrow = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - TextInput = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - ResizeAll = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - ResizeNs = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - ResizeEw = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - ResizeNesw = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - ResizeNwse = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - Hand = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - NotAllowed = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(9), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavDirSourceFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavDirSourceFlags.cs deleted file mode 100644 index e4af0bad5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavDirSourceFlags.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNavDirSourceFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - RawKeyboard = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Keyboard = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - PadDPad = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - PadLStick = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavHighlightFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavHighlightFlags.cs deleted file mode 100644 index e3a9652e0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavHighlightFlags.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNavHighlightFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - TypeDefault = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - TypeThin = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysDraw = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoRounding = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavInput.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavInput.cs deleted file mode 100644 index 8d7e68fae..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavInput.cs +++ /dev/null @@ -1,132 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNavInput : int - { - /// <summary> - /// To be documented. - /// </summary> - Activate = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Cancel = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Input = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Menu = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - DpadLeft = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - DpadRight = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - DpadUp = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - DpadDown = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - LStickLeft = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - LStickRight = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - LStickUp = unchecked(10), - - /// <summary> - /// To be documented. - /// </summary> - LStickDown = unchecked(11), - - /// <summary> - /// To be documented. - /// </summary> - FocusPrev = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - FocusNext = unchecked(13), - - /// <summary> - /// To be documented. - /// </summary> - TweakSlow = unchecked(14), - - /// <summary> - /// To be documented. - /// </summary> - TweakFast = unchecked(15), - - /// <summary> - /// To be documented. - /// </summary> - KeyMenu = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - KeyLeft = unchecked(17), - - /// <summary> - /// To be documented. - /// </summary> - KeyRight = unchecked(18), - - /// <summary> - /// To be documented. - /// </summary> - KeyUp = unchecked(19), - - /// <summary> - /// To be documented. - /// </summary> - KeyDown = unchecked(20), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(21), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs deleted file mode 100644 index 122da9008..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavLayer.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNavLayer : int - { - /// <summary> - /// To be documented. - /// </summary> - Main = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Menu = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(2), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs deleted file mode 100644 index ff1d9f99b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavMoveFlags.cs +++ /dev/null @@ -1,92 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNavMoveFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - LoopX = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - LoopY = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - WrapX = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - WrapY = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - AllowCurrentNavId = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - AlsoScoreVisibleSet = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - ScrollToEdgeY = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - Forwarded = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - DebugNoResult = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - FocusApi = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - Tabbing = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - Activate = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - DontSetNavHighlight = unchecked(4096), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavReadMode.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavReadMode.cs deleted file mode 100644 index 987db0f8b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNavReadMode.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNavReadMode : int - { - /// <summary> - /// To be documented. - /// </summary> - Down = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Pressed = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Released = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Repeat = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - RepeatSlow = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - RepeatFast = unchecked(5), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextItemDataFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextItemDataFlags.cs deleted file mode 100644 index 436d1ae04..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextItemDataFlags.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNextItemDataFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - HasWidth = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - HasOpen = unchecked(2), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextWindowDataFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextWindowDataFlags.cs deleted file mode 100644 index 974ed620e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiNextWindowDataFlags.cs +++ /dev/null @@ -1,82 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiNextWindowDataFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - HasPos = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - HasSize = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - HasContentSize = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - HasCollapsed = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - HasSizeConstraint = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - HasFocus = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - HasBgAlpha = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - HasScroll = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - HasViewport = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - HasDock = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - HasWindowClass = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs deleted file mode 100644 index 0aeb1977e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiOldColumnFlags.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiOldColumnFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoBorder = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoResize = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoPreserveWidths = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoForceWithinWindow = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - GrowParentContentsSize = unchecked(16), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPlotType.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPlotType.cs deleted file mode 100644 index 2532cb33b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPlotType.cs +++ /dev/null @@ -1,32 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiPlotType : int - { - /// <summary> - /// To be documented. - /// </summary> - Lines = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Histogram = unchecked(1), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs deleted file mode 100644 index 5af9be620..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupFlags.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiPopupFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonLeft = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonRight = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonMiddle = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonMask = unchecked(31), - - /// <summary> - /// To be documented. - /// </summary> - MouseButtonDefault = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoOpenOverExistingPopup = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoOpenOverItems = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - AnyPopupId = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - AnyPopupLevel = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - AnyPopup = unchecked(384), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupPositionPolicy.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupPositionPolicy.cs deleted file mode 100644 index a562cd657..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiPopupPositionPolicy.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiPopupPositionPolicy : int - { - /// <summary> - /// To be documented. - /// </summary> - Default = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - ComboBox = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Tooltip = unchecked(2), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs deleted file mode 100644 index 61b6d0df6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiScrollFlags.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiScrollFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - KeepVisibleEdgeX = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - KeepVisibleEdgeY = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - KeepVisibleCenterX = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - KeepVisibleCenterY = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysCenterX = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysCenterY = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoScrollParent = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - MaskX = unchecked(21), - - /// <summary> - /// To be documented. - /// </summary> - MaskY = unchecked(42), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs deleted file mode 100644 index 886ba11d7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlags.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiSelectableFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - DontClosePopups = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - SpanAllColumns = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - AllowDoubleClick = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Disabled = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - AllowItemOverlap = unchecked(16), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs deleted file mode 100644 index 3f02166cf..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSelectableFlagsPrivate.cs +++ /dev/null @@ -1,62 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiSelectableFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - NoHoldingActiveId = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - SelectOnNav = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - SelectOnClick = unchecked(4194304), - - /// <summary> - /// To be documented. - /// </summary> - SelectOnRelease = unchecked(8388608), - - /// <summary> - /// To be documented. - /// </summary> - SpanAvailWidth = unchecked(16777216), - - /// <summary> - /// To be documented. - /// </summary> - DrawHoveredWhenHeld = unchecked(33554432), - - /// <summary> - /// To be documented. - /// </summary> - SetNavIdOnHover = unchecked(67108864), - - /// <summary> - /// To be documented. - /// </summary> - NoPadWithHalfSpacing = unchecked(134217728), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs deleted file mode 100644 index 3b439f8cc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSeparatorFlags.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiSeparatorFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Vertical = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - SpanAllColumns = unchecked(4), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs deleted file mode 100644 index 1c586de61..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlags.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiSliderFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysClamp = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - Logarithmic = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoRoundToFormat = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - NoInput = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - InvalidMask = unchecked(1879048207), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs deleted file mode 100644 index d02d4d214..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSliderFlagsPrivate.cs +++ /dev/null @@ -1,32 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiSliderFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - Vertical = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - ReadOnly = unchecked(2097152), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSortDirection.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSortDirection.cs deleted file mode 100644 index 13c321528..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiSortDirection.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiSortDirection : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Ascending = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Descending = unchecked(2), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs deleted file mode 100644 index 415b46b94..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiStyleVar.cs +++ /dev/null @@ -1,152 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiStyleVar : int - { - /// <summary> - /// To be documented. - /// </summary> - Alpha = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - WindowPadding = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - WindowRounding = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - WindowBorderSize = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - WindowMinSize = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - WindowTitleAlign = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - ChildRounding = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - ChildBorderSize = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - PopupRounding = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - PopupBorderSize = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - FramePadding = unchecked(10), - - /// <summary> - /// To be documented. - /// </summary> - FrameRounding = unchecked(11), - - /// <summary> - /// To be documented. - /// </summary> - FrameBorderSize = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - ItemSpacing = unchecked(13), - - /// <summary> - /// To be documented. - /// </summary> - ItemInnerSpacing = unchecked(14), - - /// <summary> - /// To be documented. - /// </summary> - IndentSpacing = unchecked(15), - - /// <summary> - /// To be documented. - /// </summary> - CellPadding = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - ScrollbarSize = unchecked(17), - - /// <summary> - /// To be documented. - /// </summary> - ScrollbarRounding = unchecked(18), - - /// <summary> - /// To be documented. - /// </summary> - GrabMinSize = unchecked(19), - - /// <summary> - /// To be documented. - /// </summary> - GrabRounding = unchecked(20), - - /// <summary> - /// To be documented. - /// </summary> - TabRounding = unchecked(21), - - /// <summary> - /// To be documented. - /// </summary> - ButtonTextAlign = unchecked(22), - - /// <summary> - /// To be documented. - /// </summary> - SelectableTextAlign = unchecked(23), - - /// <summary> - /// To be documented. - /// </summary> - DisabledAlpha = unchecked(24), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(25), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs deleted file mode 100644 index aa1da59b8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlags.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTabBarFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Reorderable = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - AutoSelectNewTabs = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - ListPopupButton = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoCloseWithMiddleMouseButton = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoTabListScrollingButtons = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoTooltip = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - FittingPolicyResizeDown = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - FittingPolicyScroll = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - FittingPolicyMask = unchecked(192), - - /// <summary> - /// To be documented. - /// </summary> - FittingPolicyDefault = FittingPolicyResizeDown, - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs deleted file mode 100644 index 24c15aba9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabBarFlagsPrivate.cs +++ /dev/null @@ -1,37 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTabBarFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - DockNode = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - IsFocused = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - SaveSettings = unchecked(4194304), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs deleted file mode 100644 index 377e93497..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlags.cs +++ /dev/null @@ -1,67 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTabItemFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - UnsavedDocument = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - SetSelected = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoCloseWithMiddleMouseButton = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoPushId = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoTooltip = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoReorder = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - Leading = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - Trailing = unchecked(128), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs deleted file mode 100644 index 49bde3c37..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTabItemFlagsPrivate.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTabItemFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - SectionMask = unchecked(192), - - /// <summary> - /// To be documented. - /// </summary> - NoCloseButton = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - Button = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - Unsorted = unchecked(4194304), - - /// <summary> - /// To be documented. - /// </summary> - Preview = unchecked(8388608), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs deleted file mode 100644 index 52c3162ef..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableBgTarget.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTableBgTarget : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - RowBg0 = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - RowBg1 = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - CellBg = unchecked(3), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs deleted file mode 100644 index 8b5233368..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableColumnFlags.cs +++ /dev/null @@ -1,157 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTableColumnFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - DefaultHide = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - DefaultSort = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - WidthStretch = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - WidthFixed = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoResize = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoReorder = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoHide = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - NoClip = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - NoSort = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - NoSortAscending = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - NoSortDescending = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - NoHeaderWidth = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - PreferSortAscending = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - PreferSortDescending = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - IndentEnable = unchecked(16384), - - /// <summary> - /// To be documented. - /// </summary> - IndentDisable = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - IsEnabled = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - IsVisible = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - IsSorted = unchecked(4194304), - - /// <summary> - /// To be documented. - /// </summary> - IsHovered = unchecked(8388608), - - /// <summary> - /// To be documented. - /// </summary> - Disabled = unchecked(65536), - - /// <summary> - /// To be documented. - /// </summary> - NoHeaderLabel = unchecked(131072), - - /// <summary> - /// To be documented. - /// </summary> - WidthMask = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - IndentMask = unchecked(49152), - - /// <summary> - /// To be documented. - /// </summary> - StatusMask = unchecked(15728640), - - /// <summary> - /// To be documented. - /// </summary> - NoDirectResize = unchecked(1073741824), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs deleted file mode 100644 index 87996f640..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableFlags.cs +++ /dev/null @@ -1,202 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTableFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Resizable = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Reorderable = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Hideable = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Sortable = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoSavedSettings = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - ContextMenuInBody = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - RowBg = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - BordersInnerH = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - BordersOuterH = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - BordersInnerV = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - BordersOuterV = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - BordersH = unchecked(384), - - /// <summary> - /// To be documented. - /// </summary> - BordersV = unchecked(1536), - - /// <summary> - /// To be documented. - /// </summary> - BordersInner = unchecked(640), - - /// <summary> - /// To be documented. - /// </summary> - BordersOuter = unchecked(1280), - - /// <summary> - /// To be documented. - /// </summary> - Borders = unchecked(1920), - - /// <summary> - /// To be documented. - /// </summary> - NoBordersInBody = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - NoBordersInBodyUntilResize = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - SizingFixedFit = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - SizingFixedSame = unchecked(16384), - - /// <summary> - /// To be documented. - /// </summary> - SizingStretchProp = unchecked(24576), - - /// <summary> - /// To be documented. - /// </summary> - SizingStretchSame = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - NoHostExtendX = unchecked(65536), - - /// <summary> - /// To be documented. - /// </summary> - NoHostExtendY = unchecked(131072), - - /// <summary> - /// To be documented. - /// </summary> - NoKeepColumnsVisible = unchecked(262144), - - /// <summary> - /// To be documented. - /// </summary> - PreciseWidths = unchecked(524288), - - /// <summary> - /// To be documented. - /// </summary> - NoClip = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - PadOuterX = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - NoPadOuterX = unchecked(4194304), - - /// <summary> - /// To be documented. - /// </summary> - NoPadInnerX = unchecked(8388608), - - /// <summary> - /// To be documented. - /// </summary> - ScrollX = unchecked(16777216), - - /// <summary> - /// To be documented. - /// </summary> - ScrollY = unchecked(33554432), - - /// <summary> - /// To be documented. - /// </summary> - SortMulti = unchecked(67108864), - - /// <summary> - /// To be documented. - /// </summary> - SortTristate = unchecked(134217728), - - /// <summary> - /// To be documented. - /// </summary> - SizingMask = unchecked(57344), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs deleted file mode 100644 index c37c23e60..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTableRowFlags.cs +++ /dev/null @@ -1,32 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTableRowFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Headers = unchecked(1), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTextFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTextFlags.cs deleted file mode 100644 index 41d6d1918..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTextFlags.cs +++ /dev/null @@ -1,32 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTextFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoWidthForLargeClippedText = unchecked(1), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTooltipFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTooltipFlags.cs deleted file mode 100644 index 6c45ad173..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTooltipFlags.cs +++ /dev/null @@ -1,32 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTooltipFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - OverridePreviousTooltip = unchecked(1), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs deleted file mode 100644 index 91e6eaaf4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlags.cs +++ /dev/null @@ -1,102 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTreeNodeFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Selected = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Framed = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - AllowItemOverlap = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoTreePushOnOpen = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoAutoOpenOnLog = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - DefaultOpen = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - OpenOnDoubleClick = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - OpenOnArrow = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - Leaf = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - Bullet = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - FramePadding = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - SpanAvailWidth = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - SpanFullWidth = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - NavLeftJumpsBackHere = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - CollapsingHeader = unchecked(26), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs deleted file mode 100644 index 3ae0f77ca..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiTreeNodeFlagsPrivate.cs +++ /dev/null @@ -1,27 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiTreeNodeFlagsPrivate : int - { - /// <summary> - /// To be documented. - /// </summary> - ClipLabelForTrailingButton = unchecked(1048576), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs deleted file mode 100644 index d07f954d4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiViewportFlags.cs +++ /dev/null @@ -1,92 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiViewportFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - IsPlatformWindow = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - IsPlatformMonitor = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - OwnedByApp = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoDecoration = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoTaskBarIcon = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoFocusOnAppearing = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoFocusOnClick = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - NoInputs = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - NoRendererClear = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - TopMost = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - Minimized = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - NoAutoMerge = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - CanHostOtherWindows = unchecked(4096), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowDockStyleCol.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowDockStyleCol.cs deleted file mode 100644 index 9eaac1467..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowDockStyleCol.cs +++ /dev/null @@ -1,57 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiWindowDockStyleCol : int - { - /// <summary> - /// To be documented. - /// </summary> - Text = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Tab = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - TabHovered = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - TabActive = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - TabUnfocused = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - TabUnfocusedActive = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(6), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs deleted file mode 100644 index 6129b8ed2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Enums/ImGuiWindowFlags.cs +++ /dev/null @@ -1,182 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuiWindowFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoTitleBar = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoResize = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoMove = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoScrollbar = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoScrollWithMouse = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoCollapse = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysAutoResize = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - NoBackground = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - NoSavedSettings = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - NoMouseInputs = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - MenuBar = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - HorizontalScrollbar = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - NoFocusOnAppearing = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - NoBringToFrontOnFocus = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysVerticalScrollbar = unchecked(16384), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysHorizontalScrollbar = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - AlwaysUseWindowPadding = unchecked(65536), - - /// <summary> - /// To be documented. - /// </summary> - NoNavInputs = unchecked(262144), - - /// <summary> - /// To be documented. - /// </summary> - NoNavFocus = unchecked(524288), - - /// <summary> - /// To be documented. - /// </summary> - UnsavedDocument = unchecked(1048576), - - /// <summary> - /// To be documented. - /// </summary> - NoDocking = unchecked(2097152), - - /// <summary> - /// To be documented. - /// </summary> - NoNav = unchecked(786432), - - /// <summary> - /// To be documented. - /// </summary> - NoDecoration = unchecked(43), - - /// <summary> - /// To be documented. - /// </summary> - NoInputs = unchecked(786944), - - /// <summary> - /// To be documented. - /// </summary> - NavFlattened = unchecked(8388608), - - /// <summary> - /// To be documented. - /// </summary> - ChildWindow = unchecked(16777216), - - /// <summary> - /// To be documented. - /// </summary> - Tooltip = unchecked(33554432), - - /// <summary> - /// To be documented. - /// </summary> - Popup = unchecked(67108864), - - /// <summary> - /// To be documented. - /// </summary> - Modal = unchecked(134217728), - - /// <summary> - /// To be documented. - /// </summary> - ChildMenu = unchecked(268435456), - - /// <summary> - /// To be documented. - /// </summary> - DockNodeHost = unchecked(536870912), - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs deleted file mode 100644 index 2c929ccc9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/FunctionTable.cs +++ /dev/null @@ -1,1314 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - internal static FunctionTable funcTable; - - /// <summary> - /// Initializes the function table, automatically called. Do not call manually, only after <see cref="FreeApi"/>. - /// </summary> - public static void InitApi(INativeContext context) - { - funcTable = new FunctionTable(context, 1279); - funcTable.Load(0, "ImVec2_ImVec2_Nil"); - funcTable.Load(1, "ImVec2_destroy"); - funcTable.Load(2, "ImVec2_ImVec2_Float"); - funcTable.Load(3, "ImVec4_ImVec4_Nil"); - funcTable.Load(4, "ImVec4_destroy"); - funcTable.Load(5, "ImVec4_ImVec4_Float"); - funcTable.Load(6, "igCreateContext"); - funcTable.Load(7, "igDestroyContext"); - funcTable.Load(8, "igGetCurrentContext"); - funcTable.Load(9, "igSetCurrentContext"); - funcTable.Load(10, "igGetIO"); - funcTable.Load(11, "igGetStyle"); - funcTable.Load(12, "igNewFrame"); - funcTable.Load(13, "igEndFrame"); - funcTable.Load(14, "igRender"); - funcTable.Load(15, "igGetDrawData"); - funcTable.Load(16, "igShowDemoWindow"); - funcTable.Load(17, "igShowMetricsWindow"); - funcTable.Load(18, "igShowDebugLogWindow"); - funcTable.Load(19, "igShowStackToolWindow"); - funcTable.Load(20, "igShowAboutWindow"); - funcTable.Load(21, "igShowStyleEditor"); - funcTable.Load(22, "igShowStyleSelector"); - funcTable.Load(23, "igShowFontSelector"); - funcTable.Load(24, "igShowUserGuide"); - funcTable.Load(25, "igGetVersion"); - funcTable.Load(26, "igStyleColorsDark"); - funcTable.Load(27, "igStyleColorsLight"); - funcTable.Load(28, "igStyleColorsClassic"); - funcTable.Load(29, "igBegin"); - funcTable.Load(30, "igEnd"); - funcTable.Load(31, "igBeginChild_Str"); - funcTable.Load(32, "igBeginChild_ID"); - funcTable.Load(33, "igEndChild"); - funcTable.Load(34, "igIsWindowAppearing"); - funcTable.Load(35, "igIsWindowCollapsed"); - funcTable.Load(36, "igIsWindowFocused"); - funcTable.Load(37, "igIsWindowHovered"); - funcTable.Load(38, "igGetWindowDrawList"); - funcTable.Load(39, "igGetWindowDpiScale"); - funcTable.Load(40, "igGetWindowPos"); - funcTable.Load(41, "igGetWindowSize"); - funcTable.Load(42, "igGetWindowWidth"); - funcTable.Load(43, "igGetWindowHeight"); - funcTable.Load(44, "igGetWindowViewport"); - funcTable.Load(45, "igSetNextWindowPos"); - funcTable.Load(46, "igSetNextWindowSize"); - funcTable.Load(47, "igSetNextWindowSizeConstraints"); - funcTable.Load(48, "igSetNextWindowContentSize"); - funcTable.Load(49, "igSetNextWindowCollapsed"); - funcTable.Load(50, "igSetNextWindowFocus"); - funcTable.Load(51, "igSetNextWindowBgAlpha"); - funcTable.Load(52, "igSetNextWindowViewport"); - funcTable.Load(53, "igSetWindowPos_Vec2"); - funcTable.Load(54, "igSetWindowSize_Vec2"); - funcTable.Load(55, "igSetWindowCollapsed_Bool"); - funcTable.Load(56, "igSetWindowFocus_Nil"); - funcTable.Load(57, "igSetWindowFontScale"); - funcTable.Load(58, "igSetWindowPos_Str"); - funcTable.Load(59, "igSetWindowSize_Str"); - funcTable.Load(60, "igSetWindowCollapsed_Str"); - funcTable.Load(61, "igSetWindowFocus_Str"); - funcTable.Load(62, "igGetContentRegionAvail"); - funcTable.Load(63, "igGetContentRegionMax"); - funcTable.Load(64, "igGetWindowContentRegionMin"); - funcTable.Load(65, "igGetWindowContentRegionMax"); - funcTable.Load(66, "igGetScrollX"); - funcTable.Load(67, "igGetScrollY"); - funcTable.Load(68, "igSetScrollX_Float"); - funcTable.Load(69, "igSetScrollY_Float"); - funcTable.Load(70, "igGetScrollMaxX"); - funcTable.Load(71, "igGetScrollMaxY"); - funcTable.Load(72, "igSetScrollHereX"); - funcTable.Load(73, "igSetScrollHereY"); - funcTable.Load(74, "igSetScrollFromPosX_Float"); - funcTable.Load(75, "igSetScrollFromPosY_Float"); - funcTable.Load(76, "igPushFont"); - funcTable.Load(77, "igPopFont"); - funcTable.Load(78, "igPushStyleColor_U32"); - funcTable.Load(79, "igPushStyleColor_Vec4"); - funcTable.Load(80, "igPopStyleColor"); - funcTable.Load(81, "igPushStyleVar_Float"); - funcTable.Load(82, "igPushStyleVar_Vec2"); - funcTable.Load(83, "igPopStyleVar"); - funcTable.Load(84, "igPushAllowKeyboardFocus"); - funcTable.Load(85, "igPopAllowKeyboardFocus"); - funcTable.Load(86, "igPushButtonRepeat"); - funcTable.Load(87, "igPopButtonRepeat"); - funcTable.Load(88, "igPushItemWidth"); - funcTable.Load(89, "igPopItemWidth"); - funcTable.Load(90, "igSetNextItemWidth"); - funcTable.Load(91, "igCalcItemWidth"); - funcTable.Load(92, "igPushTextWrapPos"); - funcTable.Load(93, "igPopTextWrapPos"); - funcTable.Load(94, "igGetFont"); - funcTable.Load(95, "igGetFontSize"); - funcTable.Load(96, "igGetFontTexIdWhitePixel"); - funcTable.Load(97, "igGetFontTexUvWhitePixel"); - funcTable.Load(98, "igGetColorU32_Col"); - funcTable.Load(99, "igGetColorU32_Vec4"); - funcTable.Load(100, "igGetColorU32_U32"); - funcTable.Load(101, "igGetStyleColorVec4"); - funcTable.Load(102, "igSeparator"); - funcTable.Load(103, "igSameLine"); - funcTable.Load(104, "igNewLine"); - funcTable.Load(105, "igSpacing"); - funcTable.Load(106, "igDummy"); - funcTable.Load(107, "igIndent"); - funcTable.Load(108, "igUnindent"); - funcTable.Load(109, "igBeginGroup"); - funcTable.Load(110, "igEndGroup"); - funcTable.Load(111, "igGetCursorPos"); - funcTable.Load(112, "igGetCursorPosX"); - funcTable.Load(113, "igGetCursorPosY"); - funcTable.Load(114, "igSetCursorPos"); - funcTable.Load(115, "igSetCursorPosX"); - funcTable.Load(116, "igSetCursorPosY"); - funcTable.Load(117, "igGetCursorStartPos"); - funcTable.Load(118, "igGetCursorScreenPos"); - funcTable.Load(119, "igSetCursorScreenPos"); - funcTable.Load(120, "igAlignTextToFramePadding"); - funcTable.Load(121, "igGetTextLineHeight"); - funcTable.Load(122, "igGetTextLineHeightWithSpacing"); - funcTable.Load(123, "igGetFrameHeight"); - funcTable.Load(124, "igGetFrameHeightWithSpacing"); - funcTable.Load(125, "igPushID_Str"); - funcTable.Load(126, "igPushID_StrStr"); - funcTable.Load(127, "igPushID_Ptr"); - funcTable.Load(128, "igPushID_Int"); - funcTable.Load(129, "igPopID"); - funcTable.Load(130, "igGetID_Str"); - funcTable.Load(131, "igGetID_StrStr"); - funcTable.Load(132, "igGetID_Ptr"); - funcTable.Load(133, "igTextUnformatted"); - funcTable.Load(134, "igText"); - funcTable.Load(135, "igTextV"); - funcTable.Load(136, "igTextColored"); - funcTable.Load(137, "igTextColoredV"); - funcTable.Load(138, "igTextDisabled"); - funcTable.Load(139, "igTextDisabledV"); - funcTable.Load(140, "igTextWrapped"); - funcTable.Load(141, "igTextWrappedV"); - funcTable.Load(142, "igLabelText"); - funcTable.Load(143, "igLabelTextV"); - funcTable.Load(144, "igBulletText"); - funcTable.Load(145, "igBulletTextV"); - funcTable.Load(146, "igButton"); - funcTable.Load(147, "igSmallButton"); - funcTable.Load(148, "igInvisibleButton"); - funcTable.Load(149, "igArrowButton"); - funcTable.Load(150, "igImage"); - funcTable.Load(151, "igImageButton"); - funcTable.Load(152, "igCheckbox"); - funcTable.Load(153, "igCheckboxFlags_IntPtr"); - funcTable.Load(154, "igCheckboxFlags_UintPtr"); - funcTable.Load(155, "igRadioButton_Bool"); - funcTable.Load(156, "igRadioButton_IntPtr"); - funcTable.Load(157, "igProgressBar"); - funcTable.Load(158, "igBullet"); - funcTable.Load(159, "igBeginCombo"); - funcTable.Load(160, "igEndCombo"); - funcTable.Load(161, "igCombo_Str_arr"); - funcTable.Load(162, "igCombo_Str"); - funcTable.Load(163, "igCombo_FnBoolPtr"); - funcTable.Load(164, "igDragFloat"); - funcTable.Load(165, "igDragFloat2"); - funcTable.Load(166, "igDragFloat3"); - funcTable.Load(167, "igDragFloat4"); - funcTable.Load(168, "igDragFloatRange2"); - funcTable.Load(169, "igDragInt"); - funcTable.Load(170, "igDragInt2"); - funcTable.Load(171, "igDragInt3"); - funcTable.Load(172, "igDragInt4"); - funcTable.Load(173, "igDragIntRange2"); - funcTable.Load(174, "igDragScalar"); - funcTable.Load(175, "igDragScalarN"); - funcTable.Load(176, "igSliderFloat"); - funcTable.Load(177, "igSliderFloat2"); - funcTable.Load(178, "igSliderFloat3"); - funcTable.Load(179, "igSliderFloat4"); - funcTable.Load(180, "igSliderAngle"); - funcTable.Load(181, "igSliderInt"); - funcTable.Load(182, "igSliderInt2"); - funcTable.Load(183, "igSliderInt3"); - funcTable.Load(184, "igSliderInt4"); - funcTable.Load(185, "igSliderScalar"); - funcTable.Load(186, "igSliderScalarN"); - funcTable.Load(187, "igVSliderFloat"); - funcTable.Load(188, "igVSliderInt"); - funcTable.Load(189, "igVSliderScalar"); - funcTable.Load(190, "igInputFloat"); - funcTable.Load(191, "igInputFloat2"); - funcTable.Load(192, "igInputFloat3"); - funcTable.Load(193, "igInputFloat4"); - funcTable.Load(194, "igInputInt"); - funcTable.Load(195, "igInputInt2"); - funcTable.Load(196, "igInputInt3"); - funcTable.Load(197, "igInputInt4"); - funcTable.Load(198, "igInputDouble"); - funcTable.Load(199, "igInputScalar"); - funcTable.Load(200, "igInputScalarN"); - funcTable.Load(201, "igColorEdit3"); - funcTable.Load(202, "igColorEdit4"); - funcTable.Load(203, "igColorPicker3"); - funcTable.Load(204, "igColorPicker4"); - funcTable.Load(205, "igColorButton"); - funcTable.Load(206, "igSetColorEditOptions"); - funcTable.Load(207, "igTreeNode_Str"); - funcTable.Load(208, "igTreeNode_StrStr"); - funcTable.Load(209, "igTreeNode_Ptr"); - funcTable.Load(210, "igTreeNodeV_Str"); - funcTable.Load(211, "igTreeNodeV_Ptr"); - funcTable.Load(212, "igTreeNodeEx_Str"); - funcTable.Load(213, "igTreeNodeEx_StrStr"); - funcTable.Load(214, "igTreeNodeEx_Ptr"); - funcTable.Load(215, "igTreeNodeExV_Str"); - funcTable.Load(216, "igTreeNodeExV_Ptr"); - funcTable.Load(217, "igTreePush_Str"); - funcTable.Load(218, "igTreePush_Ptr"); - funcTable.Load(219, "igTreePop"); - funcTable.Load(220, "igGetTreeNodeToLabelSpacing"); - funcTable.Load(221, "igCollapsingHeader_TreeNodeFlags"); - funcTable.Load(222, "igCollapsingHeader_BoolPtr"); - funcTable.Load(223, "igSetNextItemOpen"); - funcTable.Load(224, "igSelectable_Bool"); - funcTable.Load(225, "igSelectable_BoolPtr"); - funcTable.Load(226, "igBeginListBox"); - funcTable.Load(227, "igEndListBox"); - funcTable.Load(228, "igListBox_Str_arr"); - funcTable.Load(229, "igListBox_FnBoolPtr"); - funcTable.Load(230, "igPlotLines_FloatPtr"); - funcTable.Load(231, "igPlotLines_FnFloatPtr"); - funcTable.Load(232, "igPlotHistogram_FloatPtr"); - funcTable.Load(233, "igPlotHistogram_FnFloatPtr"); - funcTable.Load(234, "igValue_Bool"); - funcTable.Load(235, "igValue_Int"); - funcTable.Load(236, "igValue_Uint"); - funcTable.Load(237, "igValue_Float"); - funcTable.Load(238, "igBeginMenuBar"); - funcTable.Load(239, "igEndMenuBar"); - funcTable.Load(240, "igBeginMainMenuBar"); - funcTable.Load(241, "igEndMainMenuBar"); - funcTable.Load(242, "igBeginMenu"); - funcTable.Load(243, "igEndMenu"); - funcTable.Load(244, "igMenuItem_Bool"); - funcTable.Load(245, "igMenuItem_BoolPtr"); - funcTable.Load(246, "igBeginTooltip"); - funcTable.Load(247, "igEndTooltip"); - funcTable.Load(248, "igSetTooltip"); - funcTable.Load(249, "igSetTooltipV"); - funcTable.Load(250, "igBeginPopup"); - funcTable.Load(251, "igBeginPopupModal"); - funcTable.Load(252, "igEndPopup"); - funcTable.Load(253, "igOpenPopup_Str"); - funcTable.Load(254, "igOpenPopup_ID"); - funcTable.Load(255, "igOpenPopupOnItemClick"); - funcTable.Load(256, "igCloseCurrentPopup"); - funcTable.Load(257, "igBeginPopupContextItem"); - funcTable.Load(258, "igBeginPopupContextWindow"); - funcTable.Load(259, "igBeginPopupContextVoid"); - funcTable.Load(260, "igIsPopupOpen_Str"); - funcTable.Load(261, "igBeginTable"); - funcTable.Load(262, "igEndTable"); - funcTable.Load(263, "igTableNextRow"); - funcTable.Load(264, "igTableNextColumn"); - funcTable.Load(265, "igTableSetColumnIndex"); - funcTable.Load(266, "igTableSetupColumn"); - funcTable.Load(267, "igTableSetupScrollFreeze"); - funcTable.Load(268, "igTableHeadersRow"); - funcTable.Load(269, "igTableHeader"); - funcTable.Load(270, "igTableGetSortSpecs"); - funcTable.Load(271, "igTableGetColumnCount"); - funcTable.Load(272, "igTableGetColumnIndex"); - funcTable.Load(273, "igTableGetRowIndex"); - funcTable.Load(274, "igTableGetColumnName_Int"); - funcTable.Load(275, "igTableGetColumnFlags"); - funcTable.Load(276, "igTableSetColumnEnabled"); - funcTable.Load(277, "igTableSetBgColor"); - funcTable.Load(278, "igColumns"); - funcTable.Load(279, "igNextColumn"); - funcTable.Load(280, "igGetColumnIndex"); - funcTable.Load(281, "igGetColumnWidth"); - funcTable.Load(282, "igSetColumnWidth"); - funcTable.Load(283, "igGetColumnOffset"); - funcTable.Load(284, "igSetColumnOffset"); - funcTable.Load(285, "igGetColumnsCount"); - funcTable.Load(286, "igBeginTabBar"); - funcTable.Load(287, "igEndTabBar"); - funcTable.Load(288, "igBeginTabItem"); - funcTable.Load(289, "igEndTabItem"); - funcTable.Load(290, "igTabItemButton"); - funcTable.Load(291, "igSetTabItemClosed"); - funcTable.Load(292, "igDockSpace"); - funcTable.Load(293, "igDockSpaceOverViewport"); - funcTable.Load(294, "igSetNextWindowDockID"); - funcTable.Load(295, "igSetNextWindowClass"); - funcTable.Load(296, "igGetWindowDockID"); - funcTable.Load(297, "igIsWindowDocked"); - funcTable.Load(298, "igLogToTTY"); - funcTable.Load(299, "igLogToFile"); - funcTable.Load(300, "igLogToClipboard"); - funcTable.Load(301, "igLogFinish"); - funcTable.Load(302, "igLogButtons"); - funcTable.Load(303, "igLogTextV"); - funcTable.Load(304, "igBeginDragDropSource"); - funcTable.Load(305, "igSetDragDropPayload"); - funcTable.Load(306, "igEndDragDropSource"); - funcTable.Load(307, "igBeginDragDropTarget"); - funcTable.Load(308, "igAcceptDragDropPayload"); - funcTable.Load(309, "igEndDragDropTarget"); - funcTable.Load(310, "igGetDragDropPayload"); - funcTable.Load(311, "igBeginDisabled"); - funcTable.Load(312, "igEndDisabled"); - funcTable.Load(313, "igPushClipRect"); - funcTable.Load(314, "igPopClipRect"); - funcTable.Load(315, "igSetItemDefaultFocus"); - funcTable.Load(316, "igSetKeyboardFocusHere"); - funcTable.Load(317, "igIsItemHovered"); - funcTable.Load(318, "igIsItemActive"); - funcTable.Load(319, "igIsItemFocused"); - funcTable.Load(320, "igIsItemClicked"); - funcTable.Load(321, "igIsItemVisible"); - funcTable.Load(322, "igIsItemEdited"); - funcTable.Load(323, "igIsItemActivated"); - funcTable.Load(324, "igIsItemDeactivated"); - funcTable.Load(325, "igIsItemDeactivatedAfterEdit"); - funcTable.Load(326, "igIsItemToggledOpen"); - funcTable.Load(327, "igIsAnyItemHovered"); - funcTable.Load(328, "igIsAnyItemActive"); - funcTable.Load(329, "igIsAnyItemFocused"); - funcTable.Load(330, "igGetItemRectMin"); - funcTable.Load(331, "igGetItemRectMax"); - funcTable.Load(332, "igGetItemRectSize"); - funcTable.Load(333, "igSetItemAllowOverlap"); - funcTable.Load(334, "igGetMainViewport"); - funcTable.Load(335, "igGetBackgroundDrawList_Nil"); - funcTable.Load(336, "igGetForegroundDrawList_Nil"); - funcTable.Load(337, "igGetBackgroundDrawList_ViewportPtr"); - funcTable.Load(338, "igGetForegroundDrawList_ViewportPtr"); - funcTable.Load(339, "igIsRectVisible_Nil"); - funcTable.Load(340, "igIsRectVisible_Vec2"); - funcTable.Load(341, "igGetTime"); - funcTable.Load(342, "igGetFrameCount"); - funcTable.Load(343, "igGetDrawListSharedData"); - funcTable.Load(344, "igGetStyleColorName"); - funcTable.Load(345, "igSetStateStorage"); - funcTable.Load(346, "igGetStateStorage"); - funcTable.Load(347, "igBeginChildFrame"); - funcTable.Load(348, "igEndChildFrame"); - funcTable.Load(349, "igCalcTextSize"); - funcTable.Load(350, "igColorConvertU32ToFloat4"); - funcTable.Load(351, "igColorConvertFloat4ToU32"); - funcTable.Load(352, "igColorConvertRGBtoHSV"); - funcTable.Load(353, "igColorConvertHSVtoRGB"); - funcTable.Load(354, "igIsKeyDown"); - funcTable.Load(355, "igIsKeyPressed"); - funcTable.Load(356, "igIsKeyReleased"); - funcTable.Load(357, "igGetKeyPressedAmount"); - funcTable.Load(358, "igGetKeyName"); - funcTable.Load(359, "igSetNextFrameWantCaptureKeyboard"); - funcTable.Load(360, "igIsMouseDown"); - funcTable.Load(361, "igIsMouseClicked"); - funcTable.Load(362, "igIsMouseReleased"); - funcTable.Load(363, "igIsMouseDoubleClicked"); - funcTable.Load(364, "igGetMouseClickedCount"); - funcTable.Load(365, "igIsMouseHoveringRect"); - funcTable.Load(366, "igIsMousePosValid"); - funcTable.Load(367, "igIsAnyMouseDown"); - funcTable.Load(368, "igGetMousePos"); - funcTable.Load(369, "igGetMousePosOnOpeningCurrentPopup"); - funcTable.Load(370, "igIsMouseDragging"); - funcTable.Load(371, "igGetMouseDragDelta"); - funcTable.Load(372, "igResetMouseDragDelta"); - funcTable.Load(373, "igGetMouseCursor"); - funcTable.Load(374, "igSetMouseCursor"); - funcTable.Load(375, "igSetNextFrameWantCaptureMouse"); - funcTable.Load(376, "igGetClipboardText"); - funcTable.Load(377, "igSetClipboardText"); - funcTable.Load(378, "igLoadIniSettingsFromDisk"); - funcTable.Load(379, "igLoadIniSettingsFromMemory"); - funcTable.Load(380, "igSaveIniSettingsToDisk"); - funcTable.Load(381, "igSaveIniSettingsToMemory"); - funcTable.Load(382, "igDebugTextEncoding"); - funcTable.Load(383, "igDebugCheckVersionAndDataLayout"); - funcTable.Load(384, "igSetAllocatorFunctions"); - funcTable.Load(385, "igGetAllocatorFunctions"); - funcTable.Load(386, "igMemAlloc"); - funcTable.Load(387, "igMemFree"); - funcTable.Load(388, "igGetPlatformIO"); - funcTable.Load(389, "igUpdatePlatformWindows"); - funcTable.Load(390, "igRenderPlatformWindowsDefault"); - funcTable.Load(391, "igDestroyPlatformWindows"); - funcTable.Load(392, "igFindViewportByID"); - funcTable.Load(393, "igFindViewportByPlatformHandle"); - funcTable.Load(394, "ImGuiStyle_ImGuiStyle"); - funcTable.Load(395, "ImGuiStyle_destroy"); - funcTable.Load(396, "ImGuiStyle_ScaleAllSizes"); - funcTable.Load(397, "ImGuiIO_AddKeyEvent"); - funcTable.Load(398, "ImGuiIO_AddKeyAnalogEvent"); - funcTable.Load(399, "ImGuiIO_AddMousePosEvent"); - funcTable.Load(400, "ImGuiIO_AddMouseButtonEvent"); - funcTable.Load(401, "ImGuiIO_AddMouseWheelEvent"); - funcTable.Load(402, "ImGuiIO_AddMouseViewportEvent"); - funcTable.Load(403, "ImGuiIO_AddFocusEvent"); - funcTable.Load(404, "ImGuiIO_AddInputCharacter"); - funcTable.Load(405, "ImGuiIO_AddInputCharacterUTF16"); - funcTable.Load(406, "ImGuiIO_AddInputCharactersUTF8"); - funcTable.Load(407, "ImGuiIO_SetKeyEventNativeData"); - funcTable.Load(408, "ImGuiIO_SetAppAcceptingEvents"); - funcTable.Load(409, "ImGuiIO_ClearInputCharacters"); - funcTable.Load(410, "ImGuiIO_ClearInputKeys"); - funcTable.Load(411, "ImGuiIO_ImGuiIO"); - funcTable.Load(412, "ImGuiIO_destroy"); - funcTable.Load(413, "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData"); - funcTable.Load(414, "ImGuiInputTextCallbackData_destroy"); - funcTable.Load(415, "ImGuiInputTextCallbackData_DeleteChars"); - funcTable.Load(416, "ImGuiInputTextCallbackData_InsertChars"); - funcTable.Load(417, "ImGuiInputTextCallbackData_SelectAll"); - funcTable.Load(418, "ImGuiInputTextCallbackData_ClearSelection"); - funcTable.Load(419, "ImGuiInputTextCallbackData_HasSelection"); - funcTable.Load(420, "ImGuiWindowClass_ImGuiWindowClass"); - funcTable.Load(421, "ImGuiWindowClass_destroy"); - funcTable.Load(422, "ImGuiPayload_ImGuiPayload"); - funcTable.Load(423, "ImGuiPayload_destroy"); - funcTable.Load(424, "ImGuiPayload_Clear"); - funcTable.Load(425, "ImGuiPayload_IsDataType"); - funcTable.Load(426, "ImGuiPayload_IsPreview"); - funcTable.Load(427, "ImGuiPayload_IsDelivery"); - funcTable.Load(428, "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs"); - funcTable.Load(429, "ImGuiTableColumnSortSpecs_destroy"); - funcTable.Load(430, "ImGuiTableSortSpecs_ImGuiTableSortSpecs"); - funcTable.Load(431, "ImGuiTableSortSpecs_destroy"); - funcTable.Load(432, "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame"); - funcTable.Load(433, "ImGuiOnceUponAFrame_destroy"); - funcTable.Load(434, "ImGuiTextFilter_ImGuiTextFilter"); - funcTable.Load(435, "ImGuiTextFilter_destroy"); - funcTable.Load(436, "ImGuiTextFilter_Draw"); - funcTable.Load(437, "ImGuiTextFilter_PassFilter"); - funcTable.Load(438, "ImGuiTextFilter_Build"); - funcTable.Load(439, "ImGuiTextFilter_Clear"); - funcTable.Load(440, "ImGuiTextFilter_IsActive"); - funcTable.Load(441, "ImGuiTextRange_ImGuiTextRange_Nil"); - funcTable.Load(442, "ImGuiTextRange_destroy"); - funcTable.Load(443, "ImGuiTextRange_ImGuiTextRange_Str"); - funcTable.Load(444, "ImGuiTextRange_empty"); - funcTable.Load(445, "ImGuiTextRange_split"); - funcTable.Load(446, "ImGuiTextBuffer_ImGuiTextBuffer"); - funcTable.Load(447, "ImGuiTextBuffer_destroy"); - funcTable.Load(448, "ImGuiTextBuffer_begin"); - funcTable.Load(449, "ImGuiTextBuffer_end"); - funcTable.Load(450, "ImGuiTextBuffer_size"); - funcTable.Load(451, "ImGuiTextBuffer_empty"); - funcTable.Load(452, "ImGuiTextBuffer_clear"); - funcTable.Load(453, "ImGuiTextBuffer_reserve"); - funcTable.Load(454, "ImGuiTextBuffer_c_str"); - funcTable.Load(455, "ImGuiTextBuffer_append"); - funcTable.Load(456, "ImGuiTextBuffer_appendfv"); - funcTable.Load(457, "ImGuiStoragePair_ImGuiStoragePair_Int"); - funcTable.Load(458, "ImGuiStoragePair_destroy"); - funcTable.Load(459, "ImGuiStoragePair_ImGuiStoragePair_Float"); - funcTable.Load(460, "ImGuiStoragePair_ImGuiStoragePair_Ptr"); - funcTable.Load(461, "ImGuiStorage_Clear"); - funcTable.Load(462, "ImGuiStorage_GetInt"); - funcTable.Load(463, "ImGuiStorage_SetInt"); - funcTable.Load(464, "ImGuiStorage_GetBool"); - funcTable.Load(465, "ImGuiStorage_SetBool"); - funcTable.Load(466, "ImGuiStorage_GetFloat"); - funcTable.Load(467, "ImGuiStorage_SetFloat"); - funcTable.Load(468, "ImGuiStorage_GetVoidPtr"); - funcTable.Load(469, "ImGuiStorage_SetVoidPtr"); - funcTable.Load(470, "ImGuiStorage_GetIntRef"); - funcTable.Load(471, "ImGuiStorage_GetBoolRef"); - funcTable.Load(472, "ImGuiStorage_GetFloatRef"); - funcTable.Load(473, "ImGuiStorage_GetVoidPtrRef"); - funcTable.Load(474, "ImGuiStorage_SetAllInt"); - funcTable.Load(475, "ImGuiStorage_BuildSortByKey"); - funcTable.Load(476, "ImGuiListClipper_ImGuiListClipper"); - funcTable.Load(477, "ImGuiListClipper_destroy"); - funcTable.Load(478, "ImGuiListClipper_Begin"); - funcTable.Load(479, "ImGuiListClipper_End"); - funcTable.Load(480, "ImGuiListClipper_Step"); - funcTable.Load(481, "ImGuiListClipper_ForceDisplayRangeByIndices"); - funcTable.Load(482, "ImColor_ImColor_Nil"); - funcTable.Load(483, "ImColor_destroy"); - funcTable.Load(484, "ImColor_ImColor_Float"); - funcTable.Load(485, "ImColor_ImColor_Vec4"); - funcTable.Load(486, "ImColor_ImColor_Int"); - funcTable.Load(487, "ImColor_ImColor_U32"); - funcTable.Load(488, "ImColor_SetHSV"); - funcTable.Load(489, "ImColor_HSV"); - funcTable.Load(490, "ImDrawCmd_ImDrawCmd"); - funcTable.Load(491, "ImDrawCmd_destroy"); - funcTable.Load(492, "ImDrawCmd_GetTexID"); - funcTable.Load(493, "ImDrawListSplitter_ImDrawListSplitter"); - funcTable.Load(494, "ImDrawListSplitter_destroy"); - funcTable.Load(495, "ImDrawListSplitter_Clear"); - funcTable.Load(496, "ImDrawListSplitter_ClearFreeMemory"); - funcTable.Load(497, "ImDrawListSplitter_Split"); - funcTable.Load(498, "ImDrawListSplitter_Merge"); - funcTable.Load(499, "ImDrawListSplitter_SetCurrentChannel"); - funcTable.Load(500, "ImDrawList_ImDrawList"); - funcTable.Load(501, "ImDrawList_destroy"); - funcTable.Load(502, "ImDrawList_PushClipRect"); - funcTable.Load(503, "ImDrawList_PushClipRectFullScreen"); - funcTable.Load(504, "ImDrawList_PopClipRect"); - funcTable.Load(505, "ImDrawList_PushTextureID"); - funcTable.Load(506, "ImDrawList_PopTextureID"); - funcTable.Load(507, "ImDrawList_GetClipRectMin"); - funcTable.Load(508, "ImDrawList_GetClipRectMax"); - funcTable.Load(509, "ImDrawList_AddLine"); - funcTable.Load(510, "ImDrawList_AddRect"); - funcTable.Load(511, "ImDrawList_AddRectFilled"); - funcTable.Load(512, "ImDrawList_AddRectFilledMultiColor"); - funcTable.Load(513, "ImDrawList_AddQuad"); - funcTable.Load(514, "ImDrawList_AddQuadFilled"); - funcTable.Load(515, "ImDrawList_AddTriangle"); - funcTable.Load(516, "ImDrawList_AddTriangleFilled"); - funcTable.Load(517, "ImDrawList_AddCircle"); - funcTable.Load(518, "ImDrawList_AddCircleFilled"); - funcTable.Load(519, "ImDrawList_AddNgon"); - funcTable.Load(520, "ImDrawList_AddNgonFilled"); - funcTable.Load(521, "ImDrawList_AddText_Vec2"); - funcTable.Load(522, "ImDrawList_AddText_FontPtr"); - funcTable.Load(523, "ImDrawList_AddPolyline"); - funcTable.Load(524, "ImDrawList_AddConvexPolyFilled"); - funcTable.Load(525, "ImDrawList_AddBezierCubic"); - funcTable.Load(526, "ImDrawList_AddBezierQuadratic"); - funcTable.Load(527, "ImDrawList_AddImage"); - funcTable.Load(528, "ImDrawList_AddImageQuad"); - funcTable.Load(529, "ImDrawList_AddImageRounded"); - funcTable.Load(530, "ImDrawList_PathClear"); - funcTable.Load(531, "ImDrawList_PathLineTo"); - funcTable.Load(532, "ImDrawList_PathLineToMergeDuplicate"); - funcTable.Load(533, "ImDrawList_PathFillConvex"); - funcTable.Load(534, "ImDrawList_PathStroke"); - funcTable.Load(535, "ImDrawList_PathArcTo"); - funcTable.Load(536, "ImDrawList_PathArcToFast"); - funcTable.Load(537, "ImDrawList_PathBezierCubicCurveTo"); - funcTable.Load(538, "ImDrawList_PathBezierQuadraticCurveTo"); - funcTable.Load(539, "ImDrawList_PathRect"); - funcTable.Load(540, "ImDrawList_AddCallback"); - funcTable.Load(541, "ImDrawList_AddDrawCmd"); - funcTable.Load(542, "ImDrawList_CloneOutput"); - funcTable.Load(543, "ImDrawList_ChannelsSplit"); - funcTable.Load(544, "ImDrawList_ChannelsMerge"); - funcTable.Load(545, "ImDrawList_ChannelsSetCurrent"); - funcTable.Load(546, "ImDrawList_PrimReserve"); - funcTable.Load(547, "ImDrawList_PrimUnreserve"); - funcTable.Load(548, "ImDrawList_PrimRect"); - funcTable.Load(549, "ImDrawList_PrimRectUV"); - funcTable.Load(550, "ImDrawList_PrimQuadUV"); - funcTable.Load(551, "ImDrawList_PrimWriteVtx"); - funcTable.Load(552, "ImDrawList_PrimWriteIdx"); - funcTable.Load(553, "ImDrawList_PrimVtx"); - funcTable.Load(554, "ImDrawList__ResetForNewFrame"); - funcTable.Load(555, "ImDrawList__ClearFreeMemory"); - funcTable.Load(556, "ImDrawList__PopUnusedDrawCmd"); - funcTable.Load(557, "ImDrawList__TryMergeDrawCmds"); - funcTable.Load(558, "ImDrawList__OnChangedClipRect"); - funcTable.Load(559, "ImDrawList__OnChangedTextureID"); - funcTable.Load(560, "ImDrawList__OnChangedVtxOffset"); - funcTable.Load(561, "ImDrawList__CalcCircleAutoSegmentCount"); - funcTable.Load(562, "ImDrawList__PathArcToFastEx"); - funcTable.Load(563, "ImDrawList__PathArcToN"); - funcTable.Load(564, "ImDrawData_ImDrawData"); - funcTable.Load(565, "ImDrawData_destroy"); - funcTable.Load(566, "ImDrawData_Clear"); - funcTable.Load(567, "ImDrawData_DeIndexAllBuffers"); - funcTable.Load(568, "ImDrawData_ScaleClipRects"); - funcTable.Load(569, "ImFontConfig_ImFontConfig"); - funcTable.Load(570, "ImFontConfig_destroy"); - funcTable.Load(571, "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder"); - funcTable.Load(572, "ImFontGlyphRangesBuilder_destroy"); - funcTable.Load(573, "ImFontGlyphRangesBuilder_Clear"); - funcTable.Load(574, "ImFontGlyphRangesBuilder_GetBit"); - funcTable.Load(575, "ImFontGlyphRangesBuilder_SetBit"); - funcTable.Load(576, "ImFontGlyphRangesBuilder_AddChar"); - funcTable.Load(577, "ImFontGlyphRangesBuilder_AddText"); - funcTable.Load(578, "ImFontGlyphRangesBuilder_AddRanges"); - funcTable.Load(579, "ImFontGlyphRangesBuilder_BuildRanges"); - funcTable.Load(580, "ImFontAtlasCustomRect_ImFontAtlasCustomRect"); - funcTable.Load(581, "ImFontAtlasCustomRect_destroy"); - funcTable.Load(582, "ImFontAtlasCustomRect_IsPacked"); - funcTable.Load(583, "ImFontAtlas_ImFontAtlas"); - funcTable.Load(584, "ImFontAtlas_destroy"); - funcTable.Load(585, "ImFontAtlas_AddFont"); - funcTable.Load(586, "ImFontAtlas_AddFontDefault"); - funcTable.Load(587, "ImFontAtlas_AddFontFromFileTTF"); - funcTable.Load(588, "ImFontAtlas_AddFontFromMemoryTTF"); - funcTable.Load(589, "ImFontAtlas_AddFontFromMemoryCompressedTTF"); - funcTable.Load(590, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF"); - funcTable.Load(591, "ImFontAtlas_ClearInputData"); - funcTable.Load(592, "ImFontAtlas_ClearTexData"); - funcTable.Load(593, "ImFontAtlas_ClearFonts"); - funcTable.Load(594, "ImFontAtlas_Clear"); - funcTable.Load(595, "ImFontAtlas_Build"); - funcTable.Load(596, "ImFontAtlas_GetTexDataAsAlpha8"); - funcTable.Load(597, "ImFontAtlas_GetTexDataAsRGBA32"); - funcTable.Load(598, "ImFontAtlas_IsBuilt"); - funcTable.Load(599, "ImFontAtlas_SetTexID"); - funcTable.Load(600, "ImFontAtlas_ClearTexID"); - funcTable.Load(601, "ImFontAtlas_GetGlyphRangesDefault"); - funcTable.Load(602, "ImFontAtlas_GetGlyphRangesKorean"); - funcTable.Load(603, "ImFontAtlas_GetGlyphRangesJapanese"); - funcTable.Load(604, "ImFontAtlas_GetGlyphRangesChineseFull"); - funcTable.Load(605, "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon"); - funcTable.Load(606, "ImFontAtlas_GetGlyphRangesCyrillic"); - funcTable.Load(607, "ImFontAtlas_GetGlyphRangesThai"); - funcTable.Load(608, "ImFontAtlas_GetGlyphRangesVietnamese"); - funcTable.Load(609, "ImFontAtlas_AddCustomRectRegular"); - funcTable.Load(610, "ImFontAtlas_AddCustomRectFontGlyph"); - funcTable.Load(611, "ImFontAtlas_GetCustomRectByIndex"); - funcTable.Load(612, "ImFontAtlas_CalcCustomRectUV"); - funcTable.Load(613, "ImFontAtlas_GetMouseCursorTexData"); - funcTable.Load(614, "ImFont_ImFont"); - funcTable.Load(615, "ImFont_destroy"); - funcTable.Load(616, "ImFont_FindGlyph"); - funcTable.Load(617, "ImFont_FindGlyphNoFallback"); - funcTable.Load(618, "ImFont_GetDistanceAdjustmentForPair"); - funcTable.Load(619, "ImFont_GetCharAdvance"); - funcTable.Load(620, "ImFont_IsLoaded"); - funcTable.Load(621, "ImFont_GetDebugName"); - funcTable.Load(622, "ImFont_CalcTextSizeA"); - funcTable.Load(623, "ImFont_CalcWordWrapPositionA"); - funcTable.Load(624, "ImFont_RenderChar"); - funcTable.Load(625, "ImFont_RenderText"); - funcTable.Load(626, "ImFont_BuildLookupTable"); - funcTable.Load(627, "ImFont_ClearOutputData"); - funcTable.Load(628, "ImFont_GrowIndex"); - funcTable.Load(629, "ImFont_AddGlyph"); - funcTable.Load(630, "ImFont_AddRemapChar"); - funcTable.Load(631, "ImFont_SetGlyphVisible"); - funcTable.Load(632, "ImFont_IsGlyphRangeUnused"); - funcTable.Load(633, "ImFont_AddKerningPair"); - funcTable.Load(634, "ImFont_GetDistanceAdjustmentForPairFromHotData"); - funcTable.Load(635, "ImGuiViewport_ImGuiViewport"); - funcTable.Load(636, "ImGuiViewport_destroy"); - funcTable.Load(637, "ImGuiViewport_GetCenter"); - funcTable.Load(638, "ImGuiViewport_GetWorkCenter"); - funcTable.Load(639, "ImGuiPlatformIO_ImGuiPlatformIO"); - funcTable.Load(640, "ImGuiPlatformIO_destroy"); - funcTable.Load(641, "ImGuiPlatformMonitor_ImGuiPlatformMonitor"); - funcTable.Load(642, "ImGuiPlatformMonitor_destroy"); - funcTable.Load(643, "ImGuiPlatformImeData_ImGuiPlatformImeData"); - funcTable.Load(644, "ImGuiPlatformImeData_destroy"); - funcTable.Load(645, "igGetKeyIndex"); - funcTable.Load(646, "ImVec1_destroy"); - funcTable.Load(647, "ImVec2ih_destroy"); - funcTable.Load(648, "ImRect_destroy"); - funcTable.Load(649, "ImDrawListSharedData_destroy"); - funcTable.Load(650, "ImGuiStyleMod_destroy"); - funcTable.Load(651, "ImGuiComboPreviewData_destroy"); - funcTable.Load(652, "ImGuiMenuColumns_destroy"); - funcTable.Load(653, "ImGuiInputTextState_destroy"); - funcTable.Load(654, "ImGuiPopupData_destroy"); - funcTable.Load(655, "ImGuiNextWindowData_destroy"); - funcTable.Load(656, "ImGuiNextItemData_destroy"); - funcTable.Load(657, "ImGuiLastItemData_destroy"); - funcTable.Load(658, "ImGuiStackSizes_destroy"); - funcTable.Load(659, "ImGuiPtrOrIndex_destroy"); - funcTable.Load(660, "ImGuiInputEvent_destroy"); - funcTable.Load(661, "ImGuiListClipperData_destroy"); - funcTable.Load(662, "ImGuiNavItemData_destroy"); - funcTable.Load(663, "ImGuiOldColumnData_destroy"); - funcTable.Load(664, "ImGuiOldColumns_destroy"); - funcTable.Load(665, "ImGuiDockContext_destroy"); - funcTable.Load(666, "ImGuiWindowSettings_destroy"); - funcTable.Load(667, "ImGuiSettingsHandler_destroy"); - funcTable.Load(668, "ImGuiMetricsConfig_destroy"); - funcTable.Load(669, "ImGuiStackLevelInfo_destroy"); - funcTable.Load(670, "ImGuiStackTool_destroy"); - funcTable.Load(671, "ImGuiContextHook_destroy"); - funcTable.Load(672, "ImGuiContext_destroy"); - funcTable.Load(673, "ImGuiTabItem_destroy"); - funcTable.Load(674, "ImGuiTabBar_destroy"); - funcTable.Load(675, "ImGuiTableColumn_destroy"); - funcTable.Load(676, "ImGuiTableInstanceData_destroy"); - funcTable.Load(677, "ImGuiTableTempData_destroy"); - funcTable.Load(678, "ImGuiTableColumnSettings_destroy"); - funcTable.Load(679, "ImGuiTableSettings_destroy"); - funcTable.Load(680, "igLogText"); - funcTable.Load(681, "ImGuiTextBuffer_appendf"); - funcTable.Load(682, "igGET_FLT_MAX"); - funcTable.Load(683, "igGET_FLT_MIN"); - funcTable.Load(684, "ImVector_ImWchar_create"); - funcTable.Load(685, "ImVector_ImWchar_destroy"); - funcTable.Load(686, "ImVector_ImWchar_Init"); - funcTable.Load(687, "ImVector_ImWchar_UnInit"); - funcTable.Load(688, "igImHashData"); - funcTable.Load(689, "igImHashStr"); - funcTable.Load(690, "igImQsort"); - funcTable.Load(691, "igImAlphaBlendColors"); - funcTable.Load(692, "igImIsPowerOfTwo_Int"); - funcTable.Load(693, "igImIsPowerOfTwo_U64"); - funcTable.Load(694, "igImUpperPowerOfTwo"); - funcTable.Load(695, "igImStricmp"); - funcTable.Load(696, "igImStrnicmp"); - funcTable.Load(697, "igImStrncpy"); - funcTable.Load(698, "igImStrdup"); - funcTable.Load(699, "igImStrdupcpy"); - funcTable.Load(700, "igImStrchrRange"); - funcTable.Load(701, "igImStrlenW"); - funcTable.Load(702, "igImStreolRange"); - funcTable.Load(703, "igImStrbolW"); - funcTable.Load(704, "igImStristr"); - funcTable.Load(705, "igImStrTrimBlanks"); - funcTable.Load(706, "igImStrSkipBlank"); - funcTable.Load(707, "igImCharIsBlankA"); - funcTable.Load(708, "igImCharIsBlankW"); - funcTable.Load(709, "igImFormatStringToTempBuffer"); - funcTable.Load(710, "igImFormatStringToTempBufferV"); - funcTable.Load(711, "igImParseFormatFindStart"); - funcTable.Load(712, "igImParseFormatFindEnd"); - funcTable.Load(713, "igImParseFormatSanitizeForPrinting"); - funcTable.Load(714, "igImParseFormatSanitizeForScanning"); - funcTable.Load(715, "igImParseFormatPrecision"); - funcTable.Load(716, "igImTextCharToUtf8"); - funcTable.Load(717, "igImTextCharFromUtf8"); - funcTable.Load(718, "igImTextCountCharsFromUtf8"); - funcTable.Load(719, "igImTextCountUtf8BytesFromChar"); - funcTable.Load(720, "igImTextCountUtf8BytesFromStr"); - funcTable.Load(721, "igImFileOpen"); - funcTable.Load(722, "igImFileClose"); - funcTable.Load(723, "igImFileGetSize"); - funcTable.Load(724, "igImFileRead"); - funcTable.Load(725, "igImFileWrite"); - funcTable.Load(726, "igImFileLoadToMemory"); - funcTable.Load(727, "igImPow_Float"); - funcTable.Load(728, "igImPow_double"); - funcTable.Load(729, "igImLog_Float"); - funcTable.Load(730, "igImLog_double"); - funcTable.Load(731, "igImAbs_Int"); - funcTable.Load(732, "igImAbs_Float"); - funcTable.Load(733, "igImAbs_double"); - funcTable.Load(734, "igImSign_Float"); - funcTable.Load(735, "igImSign_double"); - funcTable.Load(736, "igImRsqrt_Float"); - funcTable.Load(737, "igImRsqrt_double"); - funcTable.Load(738, "igImMin"); - funcTable.Load(739, "igImMax"); - funcTable.Load(740, "igImClamp"); - funcTable.Load(741, "igImLerp_Vec2Float"); - funcTable.Load(742, "igImLerp_Vec2Vec2"); - funcTable.Load(743, "igImLerp_Vec4"); - funcTable.Load(744, "igImSaturate"); - funcTable.Load(745, "igImLengthSqr_Vec2"); - funcTable.Load(746, "igImLengthSqr_Vec4"); - funcTable.Load(747, "igImInvLength"); - funcTable.Load(748, "igImFloor_Float"); - funcTable.Load(749, "igImFloorSigned_Float"); - funcTable.Load(750, "igImFloor_Vec2"); - funcTable.Load(751, "igImFloorSigned_Vec2"); - funcTable.Load(752, "igImModPositive"); - funcTable.Load(753, "igImDot"); - funcTable.Load(754, "igImRotate"); - funcTable.Load(755, "igImLinearSweep"); - funcTable.Load(756, "igImMul"); - funcTable.Load(757, "igImIsFloatAboveGuaranteedIntegerPrecision"); - funcTable.Load(758, "igImBezierCubicCalc"); - funcTable.Load(759, "igImBezierCubicClosestPoint"); - funcTable.Load(760, "igImBezierCubicClosestPointCasteljau"); - funcTable.Load(761, "igImBezierQuadraticCalc"); - funcTable.Load(762, "igImLineClosestPoint"); - funcTable.Load(763, "igImTriangleContainsPoint"); - funcTable.Load(764, "igImTriangleClosestPoint"); - funcTable.Load(765, "igImTriangleBarycentricCoords"); - funcTable.Load(766, "igImTriangleArea"); - funcTable.Load(767, "igImGetDirQuadrantFromDelta"); - funcTable.Load(768, "ImVec1_ImVec1_Nil"); - funcTable.Load(769, "ImVec1_ImVec1_Float"); - funcTable.Load(770, "ImVec2ih_ImVec2ih_Nil"); - funcTable.Load(771, "ImVec2ih_ImVec2ih_short"); - funcTable.Load(772, "ImVec2ih_ImVec2ih_Vec2"); - funcTable.Load(773, "ImRect_ImRect_Nil"); - funcTable.Load(774, "ImRect_ImRect_Vec2"); - funcTable.Load(775, "ImRect_ImRect_Vec4"); - funcTable.Load(776, "ImRect_ImRect_Float"); - funcTable.Load(777, "ImRect_GetCenter"); - funcTable.Load(778, "ImRect_GetSize"); - funcTable.Load(779, "ImRect_GetWidth"); - funcTable.Load(780, "ImRect_GetHeight"); - funcTable.Load(781, "ImRect_GetArea"); - funcTable.Load(782, "ImRect_GetTL"); - funcTable.Load(783, "ImRect_GetTR"); - funcTable.Load(784, "ImRect_GetBL"); - funcTable.Load(785, "ImRect_GetBR"); - funcTable.Load(786, "ImRect_Contains_Vec2"); - funcTable.Load(787, "ImRect_Contains_Rect"); - funcTable.Load(788, "ImRect_Overlaps"); - funcTable.Load(789, "ImRect_Add_Vec2"); - funcTable.Load(790, "ImRect_Add_Rect"); - funcTable.Load(791, "ImRect_Expand_Float"); - funcTable.Load(792, "ImRect_Expand_Vec2"); - funcTable.Load(793, "ImRect_Translate"); - funcTable.Load(794, "ImRect_TranslateX"); - funcTable.Load(795, "ImRect_TranslateY"); - funcTable.Load(796, "ImRect_ClipWith"); - funcTable.Load(797, "ImRect_ClipWithFull"); - funcTable.Load(798, "ImRect_Floor"); - funcTable.Load(799, "ImRect_IsInverted"); - funcTable.Load(800, "ImRect_ToVec4"); - funcTable.Load(801, "igImBitArrayTestBit"); - funcTable.Load(802, "igImBitArrayClearBit"); - funcTable.Load(803, "igImBitArraySetBit"); - funcTable.Load(804, "igImBitArraySetBitRange"); - funcTable.Load(805, "ImBitVector_Create"); - funcTable.Load(806, "ImBitVector_Clear"); - funcTable.Load(807, "ImBitVector_TestBit"); - funcTable.Load(808, "ImBitVector_SetBit"); - funcTable.Load(809, "ImBitVector_ClearBit"); - funcTable.Load(810, "ImDrawListSharedData_ImDrawListSharedData"); - funcTable.Load(811, "ImDrawListSharedData_SetCircleTessellationMaxError"); - funcTable.Load(812, "ImDrawDataBuilder_Clear"); - funcTable.Load(813, "ImDrawDataBuilder_ClearFreeMemory"); - funcTable.Load(814, "ImDrawDataBuilder_GetDrawListCount"); - funcTable.Load(815, "ImDrawDataBuilder_FlattenIntoSingleLayer"); - funcTable.Load(816, "ImGuiStyleMod_ImGuiStyleMod_Int"); - funcTable.Load(817, "ImGuiStyleMod_ImGuiStyleMod_Float"); - funcTable.Load(818, "ImGuiStyleMod_ImGuiStyleMod_Vec2"); - funcTable.Load(819, "ImGuiComboPreviewData_ImGuiComboPreviewData"); - funcTable.Load(820, "ImGuiMenuColumns_ImGuiMenuColumns"); - funcTable.Load(821, "ImGuiMenuColumns_Update"); - funcTable.Load(822, "ImGuiMenuColumns_DeclColumns"); - funcTable.Load(823, "ImGuiMenuColumns_CalcNextTotalWidth"); - funcTable.Load(824, "ImGuiInputTextState_ImGuiInputTextState"); - funcTable.Load(825, "ImGuiInputTextState_ClearText"); - funcTable.Load(826, "ImGuiInputTextState_ClearFreeMemory"); - funcTable.Load(827, "ImGuiInputTextState_GetUndoAvailCount"); - funcTable.Load(828, "ImGuiInputTextState_GetRedoAvailCount"); - funcTable.Load(829, "ImGuiInputTextState_OnKeyPressed"); - funcTable.Load(830, "ImGuiInputTextState_CursorAnimReset"); - funcTable.Load(831, "ImGuiInputTextState_CursorClamp"); - funcTable.Load(832, "ImGuiInputTextState_HasSelection"); - funcTable.Load(833, "ImGuiInputTextState_ClearSelection"); - funcTable.Load(834, "ImGuiInputTextState_GetCursorPos"); - funcTable.Load(835, "ImGuiInputTextState_GetSelectionStart"); - funcTable.Load(836, "ImGuiInputTextState_GetSelectionEnd"); - funcTable.Load(837, "ImGuiInputTextState_SelectAll"); - funcTable.Load(838, "ImGuiPopupData_ImGuiPopupData"); - funcTable.Load(839, "ImGuiNextWindowData_ImGuiNextWindowData"); - funcTable.Load(840, "ImGuiNextWindowData_ClearFlags"); - funcTable.Load(841, "ImGuiNextItemData_ImGuiNextItemData"); - funcTable.Load(842, "ImGuiNextItemData_ClearFlags"); - funcTable.Load(843, "ImGuiLastItemData_ImGuiLastItemData"); - funcTable.Load(844, "ImGuiStackSizes_ImGuiStackSizes"); - funcTable.Load(845, "ImGuiStackSizes_SetToCurrentState"); - funcTable.Load(846, "ImGuiStackSizes_CompareWithCurrentState"); - funcTable.Load(847, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr"); - funcTable.Load(848, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int"); - funcTable.Load(849, "ImGuiInputEvent_ImGuiInputEvent"); - funcTable.Load(850, "ImGuiListClipperRange_FromIndices"); - funcTable.Load(851, "ImGuiListClipperRange_FromPositions"); - funcTable.Load(852, "ImGuiListClipperData_ImGuiListClipperData"); - funcTable.Load(853, "ImGuiListClipperData_Reset"); - funcTable.Load(854, "ImGuiNavItemData_ImGuiNavItemData"); - funcTable.Load(855, "ImGuiNavItemData_Clear"); - funcTable.Load(856, "ImGuiOldColumnData_ImGuiOldColumnData"); - funcTable.Load(857, "ImGuiOldColumns_ImGuiOldColumns"); - funcTable.Load(858, "ImGuiDockNode_ImGuiDockNode"); - funcTable.Load(859, "ImGuiDockNode_destroy"); - funcTable.Load(860, "ImGuiDockNode_IsRootNode"); - funcTable.Load(861, "ImGuiDockNode_IsDockSpace"); - funcTable.Load(862, "ImGuiDockNode_IsFloatingNode"); - funcTable.Load(863, "ImGuiDockNode_IsCentralNode"); - funcTable.Load(864, "ImGuiDockNode_IsHiddenTabBar"); - funcTable.Load(865, "ImGuiDockNode_IsNoTabBar"); - funcTable.Load(866, "ImGuiDockNode_IsSplitNode"); - funcTable.Load(867, "ImGuiDockNode_IsLeafNode"); - funcTable.Load(868, "ImGuiDockNode_IsEmpty"); - funcTable.Load(869, "ImGuiDockNode_Rect"); - funcTable.Load(870, "ImGuiDockNode_SetLocalFlags"); - funcTable.Load(871, "ImGuiDockNode_UpdateMergedFlags"); - funcTable.Load(872, "ImGuiDockContext_ImGuiDockContext"); - funcTable.Load(873, "ImGuiViewportP_ImGuiViewportP"); - funcTable.Load(874, "ImGuiViewportP_destroy"); - funcTable.Load(875, "ImGuiViewportP_ClearRequestFlags"); - funcTable.Load(876, "ImGuiViewportP_CalcWorkRectPos"); - funcTable.Load(877, "ImGuiViewportP_CalcWorkRectSize"); - funcTable.Load(878, "ImGuiViewportP_UpdateWorkRect"); - funcTable.Load(879, "ImGuiViewportP_GetMainRect"); - funcTable.Load(880, "ImGuiViewportP_GetWorkRect"); - funcTable.Load(881, "ImGuiViewportP_GetBuildWorkRect"); - funcTable.Load(882, "ImGuiWindowSettings_ImGuiWindowSettings"); - funcTable.Load(883, "ImGuiWindowSettings_GetName"); - funcTable.Load(884, "ImGuiSettingsHandler_ImGuiSettingsHandler"); - funcTable.Load(885, "ImGuiMetricsConfig_ImGuiMetricsConfig"); - funcTable.Load(886, "ImGuiStackLevelInfo_ImGuiStackLevelInfo"); - funcTable.Load(887, "ImGuiStackTool_ImGuiStackTool"); - funcTable.Load(888, "ImGuiContextHook_ImGuiContextHook"); - funcTable.Load(889, "ImGuiContext_ImGuiContext"); - funcTable.Load(890, "ImGuiWindow_ImGuiWindow"); - funcTable.Load(891, "ImGuiWindow_destroy"); - funcTable.Load(892, "ImGuiWindow_GetID_Str"); - funcTable.Load(893, "ImGuiWindow_GetID_Ptr"); - funcTable.Load(894, "ImGuiWindow_GetID_Int"); - funcTable.Load(895, "ImGuiWindow_GetIDFromRectangle"); - funcTable.Load(896, "ImGuiWindow_Rect"); - funcTable.Load(897, "ImGuiWindow_CalcFontSize"); - funcTable.Load(898, "ImGuiWindow_TitleBarHeight"); - funcTable.Load(899, "ImGuiWindow_TitleBarRect"); - funcTable.Load(900, "ImGuiWindow_MenuBarHeight"); - funcTable.Load(901, "ImGuiWindow_MenuBarRect"); - funcTable.Load(902, "ImGuiTabItem_ImGuiTabItem"); - funcTable.Load(903, "ImGuiTabBar_ImGuiTabBar"); - funcTable.Load(904, "ImGuiTabBar_GetTabOrder"); - funcTable.Load(905, "ImGuiTabBar_GetTabName"); - funcTable.Load(906, "ImGuiTableColumn_ImGuiTableColumn"); - funcTable.Load(907, "ImGuiTableInstanceData_ImGuiTableInstanceData"); - funcTable.Load(908, "ImGuiTable_ImGuiTable"); - funcTable.Load(909, "ImGuiTable_destroy"); - funcTable.Load(910, "ImGuiTableTempData_ImGuiTableTempData"); - funcTable.Load(911, "ImGuiTableColumnSettings_ImGuiTableColumnSettings"); - funcTable.Load(912, "ImGuiTableSettings_ImGuiTableSettings"); - funcTable.Load(913, "ImGuiTableSettings_GetColumnSettings"); - funcTable.Load(914, "igGetCurrentWindowRead"); - funcTable.Load(915, "igGetCurrentWindow"); - funcTable.Load(916, "igFindWindowByID"); - funcTable.Load(917, "igFindWindowByName"); - funcTable.Load(918, "igUpdateWindowParentAndRootLinks"); - funcTable.Load(919, "igCalcWindowNextAutoFitSize"); - funcTable.Load(920, "igIsWindowChildOf"); - funcTable.Load(921, "igIsWindowWithinBeginStackOf"); - funcTable.Load(922, "igIsWindowAbove"); - funcTable.Load(923, "igIsWindowNavFocusable"); - funcTable.Load(924, "igSetWindowPos_WindowPtr"); - funcTable.Load(925, "igSetWindowSize_WindowPtr"); - funcTable.Load(926, "igSetWindowCollapsed_WindowPtr"); - funcTable.Load(927, "igSetWindowHitTestHole"); - funcTable.Load(928, "igWindowRectAbsToRel"); - funcTable.Load(929, "igWindowRectRelToAbs"); - funcTable.Load(930, "igFocusWindow"); - funcTable.Load(931, "igFocusTopMostWindowUnderOne"); - funcTable.Load(932, "igBringWindowToFocusFront"); - funcTable.Load(933, "igBringWindowToDisplayFront"); - funcTable.Load(934, "igBringWindowToDisplayBack"); - funcTable.Load(935, "igBringWindowToDisplayBehind"); - funcTable.Load(936, "igFindWindowDisplayIndex"); - funcTable.Load(937, "igFindBottomMostVisibleWindowWithinBeginStack"); - funcTable.Load(938, "igSetCurrentFont"); - funcTable.Load(939, "igGetDefaultFont"); - funcTable.Load(940, "igGetForegroundDrawList_WindowPtr"); - funcTable.Load(941, "igInitialize"); - funcTable.Load(942, "igShutdown"); - funcTable.Load(943, "igUpdateInputEvents"); - funcTable.Load(944, "igUpdateHoveredWindowAndCaptureFlags"); - funcTable.Load(945, "igStartMouseMovingWindow"); - funcTable.Load(946, "igStartMouseMovingWindowOrNode"); - funcTable.Load(947, "igUpdateMouseMovingWindowNewFrame"); - funcTable.Load(948, "igUpdateMouseMovingWindowEndFrame"); - funcTable.Load(949, "igAddContextHook"); - funcTable.Load(950, "igRemoveContextHook"); - funcTable.Load(951, "igCallContextHooks"); - funcTable.Load(952, "igTranslateWindowsInViewport"); - funcTable.Load(953, "igScaleWindowsInViewport"); - funcTable.Load(954, "igDestroyPlatformWindow"); - funcTable.Load(955, "igSetWindowViewport"); - funcTable.Load(956, "igSetCurrentViewport"); - funcTable.Load(957, "igGetViewportPlatformMonitor"); - funcTable.Load(958, "igFindHoveredViewportFromPlatformWindowStack"); - funcTable.Load(959, "igMarkIniSettingsDirty_Nil"); - funcTable.Load(960, "igMarkIniSettingsDirty_WindowPtr"); - funcTable.Load(961, "igClearIniSettings"); - funcTable.Load(962, "igCreateNewWindowSettings"); - funcTable.Load(963, "igFindWindowSettings"); - funcTable.Load(964, "igFindOrCreateWindowSettings"); - funcTable.Load(965, "igAddSettingsHandler"); - funcTable.Load(966, "igRemoveSettingsHandler"); - funcTable.Load(967, "igFindSettingsHandler"); - funcTable.Load(968, "igSetNextWindowScroll"); - funcTable.Load(969, "igSetScrollX_WindowPtr"); - funcTable.Load(970, "igSetScrollY_WindowPtr"); - funcTable.Load(971, "igSetScrollFromPosX_WindowPtr"); - funcTable.Load(972, "igSetScrollFromPosY_WindowPtr"); - funcTable.Load(973, "igScrollToItem"); - funcTable.Load(974, "igScrollToRect"); - funcTable.Load(975, "igScrollToRectEx"); - funcTable.Load(976, "igScrollToBringRectIntoView"); - funcTable.Load(977, "igGetItemID"); - funcTable.Load(978, "igGetItemStatusFlags"); - funcTable.Load(979, "igGetItemFlags"); - funcTable.Load(980, "igGetActiveID"); - funcTable.Load(981, "igGetFocusID"); - funcTable.Load(982, "igSetActiveID"); - funcTable.Load(983, "igSetFocusID"); - funcTable.Load(984, "igClearActiveID"); - funcTable.Load(985, "igGetHoveredID"); - funcTable.Load(986, "igSetHoveredID"); - funcTable.Load(987, "igKeepAliveID"); - funcTable.Load(988, "igMarkItemEdited"); - funcTable.Load(989, "igPushOverrideID"); - funcTable.Load(990, "igGetIDWithSeed"); - funcTable.Load(991, "igItemSize_Vec2"); - funcTable.Load(992, "igItemSize_Rect"); - funcTable.Load(993, "igItemAdd"); - funcTable.Load(994, "igItemHoverable"); - funcTable.Load(995, "igIsClippedEx"); - funcTable.Load(996, "igSetLastItemData"); - funcTable.Load(997, "igCalcItemSize"); - funcTable.Load(998, "igCalcWrapWidthForPos"); - funcTable.Load(999, "igPushMultiItemsWidths"); - funcTable.Load(1000, "igIsItemToggledSelection"); - funcTable.Load(1001, "igGetContentRegionMaxAbs"); - funcTable.Load(1002, "igShrinkWidths"); - funcTable.Load(1003, "igPushItemFlag"); - funcTable.Load(1004, "igPopItemFlag"); - funcTable.Load(1005, "igLogBegin"); - funcTable.Load(1006, "igLogToBuffer"); - funcTable.Load(1007, "igLogRenderedText"); - funcTable.Load(1008, "igLogSetNextTextDecoration"); - funcTable.Load(1009, "igBeginChildEx"); - funcTable.Load(1010, "igOpenPopupEx"); - funcTable.Load(1011, "igClosePopupToLevel"); - funcTable.Load(1012, "igClosePopupsOverWindow"); - funcTable.Load(1013, "igClosePopupsExceptModals"); - funcTable.Load(1014, "igIsPopupOpen_ID"); - funcTable.Load(1015, "igBeginPopupEx"); - funcTable.Load(1016, "igBeginTooltipEx"); - funcTable.Load(1017, "igGetPopupAllowedExtentRect"); - funcTable.Load(1018, "igGetTopMostPopupModal"); - funcTable.Load(1019, "igGetTopMostAndVisiblePopupModal"); - funcTable.Load(1020, "igFindBestWindowPosForPopup"); - funcTable.Load(1021, "igFindBestWindowPosForPopupEx"); - funcTable.Load(1022, "igBeginViewportSideBar"); - funcTable.Load(1023, "igBeginMenuEx"); - funcTable.Load(1024, "igMenuItemEx"); - funcTable.Load(1025, "igBeginComboPopup"); - funcTable.Load(1026, "igBeginComboPreview"); - funcTable.Load(1027, "igEndComboPreview"); - funcTable.Load(1028, "igNavInitWindow"); - funcTable.Load(1029, "igNavInitRequestApplyResult"); - funcTable.Load(1030, "igNavMoveRequestButNoResultYet"); - funcTable.Load(1031, "igNavMoveRequestSubmit"); - funcTable.Load(1032, "igNavMoveRequestForward"); - funcTable.Load(1033, "igNavMoveRequestResolveWithLastItem"); - funcTable.Load(1034, "igNavMoveRequestCancel"); - funcTable.Load(1035, "igNavMoveRequestApplyResult"); - funcTable.Load(1036, "igNavMoveRequestTryWrapping"); - funcTable.Load(1037, "igGetNavInputName"); - funcTable.Load(1038, "igGetNavInputAmount"); - funcTable.Load(1039, "igGetNavInputAmount2d"); - funcTable.Load(1040, "igCalcTypematicRepeatAmount"); - funcTable.Load(1041, "igActivateItem"); - funcTable.Load(1042, "igSetNavWindow"); - funcTable.Load(1043, "igSetNavID"); - funcTable.Load(1044, "igPushFocusScope"); - funcTable.Load(1045, "igPopFocusScope"); - funcTable.Load(1046, "igGetFocusedFocusScope"); - funcTable.Load(1047, "igGetFocusScope"); - funcTable.Load(1048, "igIsNamedKey"); - funcTable.Load(1049, "igIsLegacyKey"); - funcTable.Load(1050, "igIsGamepadKey"); - funcTable.Load(1051, "igGetKeyData"); - funcTable.Load(1052, "igSetItemUsingMouseWheel"); - funcTable.Load(1053, "igSetActiveIdUsingNavAndKeys"); - funcTable.Load(1054, "igIsActiveIdUsingNavDir"); - funcTable.Load(1055, "igIsActiveIdUsingNavInput"); - funcTable.Load(1056, "igIsActiveIdUsingKey"); - funcTable.Load(1057, "igSetActiveIdUsingKey"); - funcTable.Load(1058, "igIsMouseDragPastThreshold"); - funcTable.Load(1059, "igIsNavInputDown"); - funcTable.Load(1060, "igIsNavInputTest"); - funcTable.Load(1061, "igGetMergedModFlags"); - funcTable.Load(1062, "igIsKeyPressedMap"); - funcTable.Load(1063, "igDockContextInitialize"); - funcTable.Load(1064, "igDockContextShutdown"); - funcTable.Load(1065, "igDockContextClearNodes"); - funcTable.Load(1066, "igDockContextRebuildNodes"); - funcTable.Load(1067, "igDockContextNewFrameUpdateUndocking"); - funcTable.Load(1068, "igDockContextNewFrameUpdateDocking"); - funcTable.Load(1069, "igDockContextEndFrame"); - funcTable.Load(1070, "igDockContextGenNodeID"); - funcTable.Load(1071, "igDockContextQueueDock"); - funcTable.Load(1072, "igDockContextQueueUndockWindow"); - funcTable.Load(1073, "igDockContextQueueUndockNode"); - funcTable.Load(1074, "igDockContextCalcDropPosForDocking"); - funcTable.Load(1075, "igDockNodeBeginAmendTabBar"); - funcTable.Load(1076, "igDockNodeEndAmendTabBar"); - funcTable.Load(1077, "igDockNodeGetRootNode"); - funcTable.Load(1078, "igDockNodeIsInHierarchyOf"); - funcTable.Load(1079, "igDockNodeGetDepth"); - funcTable.Load(1080, "igDockNodeGetWindowMenuButtonId"); - funcTable.Load(1081, "igGetWindowDockNode"); - funcTable.Load(1082, "igGetWindowAlwaysWantOwnTabBar"); - funcTable.Load(1083, "igBeginDocked"); - funcTable.Load(1084, "igBeginDockableDragDropSource"); - funcTable.Load(1085, "igBeginDockableDragDropTarget"); - funcTable.Load(1086, "igSetWindowDock"); - funcTable.Load(1087, "igDockBuilderDockWindow"); - funcTable.Load(1088, "igDockBuilderGetNode"); - funcTable.Load(1089, "igDockBuilderGetCentralNode"); - funcTable.Load(1090, "igDockBuilderAddNode"); - funcTable.Load(1091, "igDockBuilderRemoveNode"); - funcTable.Load(1092, "igDockBuilderRemoveNodeDockedWindows"); - funcTable.Load(1093, "igDockBuilderRemoveNodeChildNodes"); - funcTable.Load(1094, "igDockBuilderSetNodePos"); - funcTable.Load(1095, "igDockBuilderSetNodeSize"); - funcTable.Load(1096, "igDockBuilderSplitNode"); - funcTable.Load(1097, "igDockBuilderCopyDockSpace"); - funcTable.Load(1098, "igDockBuilderCopyNode"); - funcTable.Load(1099, "igDockBuilderCopyWindowSettings"); - funcTable.Load(1100, "igDockBuilderFinish"); - funcTable.Load(1101, "igIsDragDropActive"); - funcTable.Load(1102, "igBeginDragDropTargetCustom"); - funcTable.Load(1103, "igClearDragDrop"); - funcTable.Load(1104, "igIsDragDropPayloadBeingAccepted"); - funcTable.Load(1105, "igSetWindowClipRectBeforeSetChannel"); - funcTable.Load(1106, "igBeginColumns"); - funcTable.Load(1107, "igEndColumns"); - funcTable.Load(1108, "igPushColumnClipRect"); - funcTable.Load(1109, "igPushColumnsBackground"); - funcTable.Load(1110, "igPopColumnsBackground"); - funcTable.Load(1111, "igGetColumnsID"); - funcTable.Load(1112, "igFindOrCreateColumns"); - funcTable.Load(1113, "igGetColumnOffsetFromNorm"); - funcTable.Load(1114, "igGetColumnNormFromOffset"); - funcTable.Load(1115, "igTableOpenContextMenu"); - funcTable.Load(1116, "igTableSetColumnWidth"); - funcTable.Load(1117, "igTableSetColumnSortDirection"); - funcTable.Load(1118, "igTableGetHoveredColumn"); - funcTable.Load(1119, "igTableGetHeaderRowHeight"); - funcTable.Load(1120, "igTablePushBackgroundChannel"); - funcTable.Load(1121, "igTablePopBackgroundChannel"); - funcTable.Load(1122, "igGetCurrentTable"); - funcTable.Load(1123, "igTableFindByID"); - funcTable.Load(1124, "igBeginTableEx"); - funcTable.Load(1125, "igTableBeginInitMemory"); - funcTable.Load(1126, "igTableBeginApplyRequests"); - funcTable.Load(1127, "igTableSetupDrawChannels"); - funcTable.Load(1128, "igTableUpdateLayout"); - funcTable.Load(1129, "igTableUpdateBorders"); - funcTable.Load(1130, "igTableUpdateColumnsWeightFromWidth"); - funcTable.Load(1131, "igTableDrawBorders"); - funcTable.Load(1132, "igTableDrawContextMenu"); - funcTable.Load(1133, "igTableMergeDrawChannels"); - funcTable.Load(1134, "igTableGetInstanceData"); - funcTable.Load(1135, "igTableSortSpecsSanitize"); - funcTable.Load(1136, "igTableSortSpecsBuild"); - funcTable.Load(1137, "igTableGetColumnNextSortDirection"); - funcTable.Load(1138, "igTableFixColumnSortDirection"); - funcTable.Load(1139, "igTableGetColumnWidthAuto"); - funcTable.Load(1140, "igTableBeginRow"); - funcTable.Load(1141, "igTableEndRow"); - funcTable.Load(1142, "igTableBeginCell"); - funcTable.Load(1143, "igTableEndCell"); - funcTable.Load(1144, "igTableGetCellBgRect"); - funcTable.Load(1145, "igTableGetColumnName_TablePtr"); - funcTable.Load(1146, "igTableGetColumnResizeID"); - funcTable.Load(1147, "igTableGetMaxColumnWidth"); - funcTable.Load(1148, "igTableSetColumnWidthAutoSingle"); - funcTable.Load(1149, "igTableSetColumnWidthAutoAll"); - funcTable.Load(1150, "igTableRemove"); - funcTable.Load(1151, "igTableGcCompactTransientBuffers_TablePtr"); - funcTable.Load(1152, "igTableGcCompactTransientBuffers_TableTempDataPtr"); - funcTable.Load(1153, "igTableGcCompactSettings"); - funcTable.Load(1154, "igTableLoadSettings"); - funcTable.Load(1155, "igTableSaveSettings"); - funcTable.Load(1156, "igTableResetSettings"); - funcTable.Load(1157, "igTableGetBoundSettings"); - funcTable.Load(1158, "igTableSettingsAddSettingsHandler"); - funcTable.Load(1159, "igTableSettingsCreate"); - funcTable.Load(1160, "igTableSettingsFindByID"); - funcTable.Load(1161, "igBeginTabBarEx"); - funcTable.Load(1162, "igTabBarFindTabByID"); - funcTable.Load(1163, "igTabBarFindMostRecentlySelectedTabForActiveWindow"); - funcTable.Load(1164, "igTabBarAddTab"); - funcTable.Load(1165, "igTabBarRemoveTab"); - funcTable.Load(1166, "igTabBarCloseTab"); - funcTable.Load(1167, "igTabBarQueueReorder"); - funcTable.Load(1168, "igTabBarQueueReorderFromMousePos"); - funcTable.Load(1169, "igTabBarProcessReorder"); - funcTable.Load(1170, "igTabItemEx"); - funcTable.Load(1171, "igTabItemCalcSize"); - funcTable.Load(1172, "igTabItemBackground"); - funcTable.Load(1173, "igTabItemLabelAndCloseButton"); - funcTable.Load(1174, "igRenderText"); - funcTable.Load(1175, "igRenderTextWrapped"); - funcTable.Load(1176, "igRenderTextClipped"); - funcTable.Load(1177, "igRenderTextClippedEx"); - funcTable.Load(1178, "igRenderTextEllipsis"); - funcTable.Load(1179, "igRenderFrame"); - funcTable.Load(1180, "igRenderFrameBorder"); - funcTable.Load(1181, "igRenderColorRectWithAlphaCheckerboard"); - funcTable.Load(1182, "igRenderNavHighlight"); - funcTable.Load(1183, "igFindRenderedTextEnd"); - funcTable.Load(1184, "igRenderMouseCursor"); - funcTable.Load(1185, "igRenderArrow"); - funcTable.Load(1186, "igRenderBullet"); - funcTable.Load(1187, "igRenderCheckMark"); - funcTable.Load(1188, "igRenderArrowPointingAt"); - funcTable.Load(1189, "igRenderArrowDockMenu"); - funcTable.Load(1190, "igRenderRectFilledRangeH"); - funcTable.Load(1191, "igRenderRectFilledWithHole"); - funcTable.Load(1192, "igCalcRoundingFlagsForRectInRect"); - funcTable.Load(1193, "igTextEx"); - funcTable.Load(1194, "igButtonEx"); - funcTable.Load(1195, "igCloseButton"); - funcTable.Load(1196, "igCollapseButton"); - funcTable.Load(1197, "igArrowButtonEx"); - funcTable.Load(1198, "igScrollbar"); - funcTable.Load(1199, "igScrollbarEx"); - funcTable.Load(1200, "igImageButtonEx"); - funcTable.Load(1201, "igGetWindowScrollbarRect"); - funcTable.Load(1202, "igGetWindowScrollbarID"); - funcTable.Load(1203, "igGetWindowResizeCornerID"); - funcTable.Load(1204, "igGetWindowResizeBorderID"); - funcTable.Load(1205, "igSeparatorEx"); - funcTable.Load(1206, "igCheckboxFlags_S64Ptr"); - funcTable.Load(1207, "igCheckboxFlags_U64Ptr"); - funcTable.Load(1208, "igButtonBehavior"); - funcTable.Load(1209, "igDragBehavior"); - funcTable.Load(1210, "igSliderBehavior"); - funcTable.Load(1211, "igSplitterBehavior"); - funcTable.Load(1212, "igTreeNodeBehavior"); - funcTable.Load(1213, "igTreeNodeBehaviorIsOpen"); - funcTable.Load(1214, "igTreePushOverrideID"); - funcTable.Load(1215, "igDataTypeGetInfo"); - funcTable.Load(1216, "igDataTypeApplyOp"); - funcTable.Load(1217, "igDataTypeApplyFromText"); - funcTable.Load(1218, "igDataTypeCompare"); - funcTable.Load(1219, "igDataTypeClamp"); - funcTable.Load(1220, "igTempInputScalar"); - funcTable.Load(1221, "igTempInputIsActive"); - funcTable.Load(1222, "igGetInputTextState"); - funcTable.Load(1223, "igCustom_StbTextMakeUndoReplace"); - funcTable.Load(1224, "igCustom_StbTextUndo"); - funcTable.Load(1225, "igColorTooltip"); - funcTable.Load(1226, "igColorEditOptionsPopup"); - funcTable.Load(1227, "igColorPickerOptionsPopup"); - funcTable.Load(1228, "igPlotEx"); - funcTable.Load(1229, "igShadeVertsLinearColorGradientKeepAlpha"); - funcTable.Load(1230, "igShadeVertsLinearUV"); - funcTable.Load(1231, "igGcCompactTransientMiscBuffers"); - funcTable.Load(1232, "igGcCompactTransientWindowBuffers"); - funcTable.Load(1233, "igGcAwakeTransientWindowBuffers"); - funcTable.Load(1234, "igDebugLog"); - funcTable.Load(1235, "igDebugLogV"); - funcTable.Load(1236, "igErrorCheckEndFrameRecover"); - funcTable.Load(1237, "igErrorCheckEndWindowRecover"); - funcTable.Load(1238, "igDebugDrawItemRect"); - funcTable.Load(1239, "igDebugStartItemPicker"); - funcTable.Load(1240, "igShowFontAtlas"); - funcTable.Load(1241, "igDebugHookIdInfo"); - funcTable.Load(1242, "igDebugNodeColumns"); - funcTable.Load(1243, "igDebugNodeDockNode"); - funcTable.Load(1244, "igDebugNodeDrawList"); - funcTable.Load(1245, "igDebugNodeDrawCmdShowMeshAndBoundingBox"); - funcTable.Load(1246, "igDebugNodeFont"); - funcTable.Load(1247, "igDebugNodeFontGlyph"); - funcTable.Load(1248, "igDebugNodeStorage"); - funcTable.Load(1249, "igDebugNodeTabBar"); - funcTable.Load(1250, "igDebugNodeTable"); - funcTable.Load(1251, "igDebugNodeTableSettings"); - funcTable.Load(1252, "igDebugNodeInputTextState"); - funcTable.Load(1253, "igDebugNodeWindow"); - funcTable.Load(1254, "igDebugNodeWindowSettings"); - funcTable.Load(1255, "igDebugNodeWindowsList"); - funcTable.Load(1256, "igDebugNodeWindowsListByBeginStackParent"); - funcTable.Load(1257, "igDebugNodeViewport"); - funcTable.Load(1258, "igDebugRenderViewportThumbnail"); - funcTable.Load(1259, "igImFontAtlasGetBuilderForStbTruetype"); - funcTable.Load(1260, "igImFontAtlasBuildInit"); - funcTable.Load(1261, "igImFontAtlasBuildSetupFont"); - funcTable.Load(1262, "igImFontAtlasBuildPackCustomRects"); - funcTable.Load(1263, "igImFontAtlasBuildFinish"); - funcTable.Load(1264, "igImFontAtlasBuildRender8bppRectFromString"); - funcTable.Load(1265, "igImFontAtlasBuildRender32bppRectFromString"); - funcTable.Load(1266, "igImFontAtlasBuildMultiplyCalcLookupTable"); - funcTable.Load(1267, "igImFontAtlasBuildMultiplyRectAlpha8"); - funcTable.Load(1268, "igInputText"); - funcTable.Load(1269, "igInputTextMultiline"); - funcTable.Load(1270, "igInputTextWithHint"); - funcTable.Load(1271, "igImFormatString"); - funcTable.Load(1272, "igImFormatStringV"); - funcTable.Load(1273, "igImParseFormatTrimDecorations"); - funcTable.Load(1274, "igImTextStrToUtf8"); - funcTable.Load(1275, "igImTextStrFromUtf8"); - funcTable.Load(1276, "igDataTypeFormatString"); - funcTable.Load(1277, "igInputTextEx"); - funcTable.Load(1278, "igTempInputText"); - } - - public static void FreeApi() - { - funcTable.Free(); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.000.cs deleted file mode 100644 index e621892ee..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.000.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Vector2* ImVec2Native() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2*>)funcTable[0])(); - #else - return (Vector2*)((delegate* unmanaged[Cdecl]<nint>)funcTable[0])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2* ImVec2() - { - Vector2* ret = ImVec2Native(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(Vector2* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[1])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(Vector2* self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref Vector2 self) - { - fixed (Vector2* pself = &self) - { - DestroyNative((Vector2*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Vector2* ImVec2Native(float x, float y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, Vector2*>)funcTable[2])(x, y); - #else - return (Vector2*)((delegate* unmanaged[Cdecl]<float, float, nint>)funcTable[2])(x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2* ImVec2(float x, float y) - { - Vector2* ret = ImVec2Native(x, y); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Vector4* ImVec4Native() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4*>)funcTable[3])(); - #else - return (Vector4*)((delegate* unmanaged[Cdecl]<nint>)funcTable[3])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4* ImVec4() - { - Vector4* ret = ImVec4Native(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(Vector4* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, void>)funcTable[4])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[4])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(Vector4* self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref Vector4 self) - { - fixed (Vector4* pself = &self) - { - DestroyNative((Vector4*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Vector4* ImVec4Native(float x, float y, float z, float w) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float, Vector4*>)funcTable[5])(x, y, z, w); - #else - return (Vector4*)((delegate* unmanaged[Cdecl]<float, float, float, float, nint>)funcTable[5])(x, y, z, w); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4* ImVec4(float x, float y, float z, float w) - { - Vector4* ret = ImVec4Native(x, y, z, w); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiContext* CreateContextNative(ImFontAtlas* sharedFontAtlas) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImGuiContext*>)funcTable[6])(sharedFontAtlas); - #else - return (ImGuiContext*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[6])((nint)sharedFontAtlas); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiContextPtr CreateContext(ImFontAtlasPtr sharedFontAtlas) - { - ImGuiContextPtr ret = CreateContextNative(sharedFontAtlas); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiContextPtr CreateContext() - { - ImGuiContextPtr ret = CreateContextNative((ImFontAtlas*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiContextPtr CreateContext(ref ImFontAtlas sharedFontAtlas) - { - fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) - { - ImGuiContextPtr ret = CreateContextNative((ImFontAtlas*)psharedFontAtlas); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyContextNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[7])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[7])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyContext(ImGuiContextPtr ctx) - { - DestroyContextNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyContext() - { - DestroyContextNative((ImGuiContext*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyContext(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DestroyContextNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiContext* GetCurrentContextNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiContext*>)funcTable[8])(); - #else - return (ImGuiContext*)((delegate* unmanaged[Cdecl]<nint>)funcTable[8])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiContextPtr GetCurrentContext() - { - ImGuiContextPtr ret = GetCurrentContextNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCurrentContextNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[9])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[9])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentContext(ImGuiContextPtr ctx) - { - SetCurrentContextNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentContext(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - SetCurrentContextNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiIO* GetIONative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiIO*>)funcTable[10])(); - #else - return (ImGuiIO*)((delegate* unmanaged[Cdecl]<nint>)funcTable[10])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiIOPtr GetIO() - { - ImGuiIOPtr ret = GetIONative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStyle* GetStyleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStyle*>)funcTable[11])(); - #else - return (ImGuiStyle*)((delegate* unmanaged[Cdecl]<nint>)funcTable[11])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStylePtr GetStyle() - { - ImGuiStylePtr ret = GetStyleNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NewFrameNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[12])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[12])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NewFrame() - { - NewFrameNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndFrameNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[13])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[13])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndFrame() - { - EndFrameNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[14])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[14])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Render() - { - RenderNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawData* GetDrawDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawData*>)funcTable[15])(); - #else - return (ImDrawData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[15])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawDataPtr GetDrawData() - { - ImDrawDataPtr ret = GetDrawDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowDemoWindowNative(bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<bool*, void>)funcTable[16])(pOpen); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[16])((nint)pOpen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDemoWindow(bool* pOpen) - { - ShowDemoWindowNative(pOpen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDemoWindow() - { - ShowDemoWindowNative((bool*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDemoWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ShowDemoWindowNative((bool*)ppOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowMetricsWindowNative(bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<bool*, void>)funcTable[17])(pOpen); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[17])((nint)pOpen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowMetricsWindow(bool* pOpen) - { - ShowMetricsWindowNative(pOpen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowMetricsWindow() - { - ShowMetricsWindowNative((bool*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowMetricsWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ShowMetricsWindowNative((bool*)ppOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowDebugLogWindowNative(bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<bool*, void>)funcTable[18])(pOpen); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[18])((nint)pOpen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDebugLogWindow(bool* pOpen) - { - ShowDebugLogWindowNative(pOpen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDebugLogWindow() - { - ShowDebugLogWindowNative((bool*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDebugLogWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ShowDebugLogWindowNative((bool*)ppOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowStackToolWindowNative(bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<bool*, void>)funcTable[19])(pOpen); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[19])((nint)pOpen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStackToolWindow(bool* pOpen) - { - ShowStackToolWindowNative(pOpen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStackToolWindow() - { - ShowStackToolWindowNative((bool*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStackToolWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ShowStackToolWindowNative((bool*)ppOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowAboutWindowNative(bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<bool*, void>)funcTable[20])(pOpen); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[20])((nint)pOpen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAboutWindow(bool* pOpen) - { - ShowAboutWindowNative(pOpen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAboutWindow() - { - ShowAboutWindowNative((bool*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAboutWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ShowAboutWindowNative((bool*)ppOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowStyleEditorNative(ImGuiStyle* reference) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)funcTable[21])(reference); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[21])((nint)reference); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStyleEditor(ImGuiStylePtr reference) - { - ShowStyleEditorNative(reference); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStyleEditor() - { - ShowStyleEditorNative((ImGuiStyle*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStyleEditor(ref ImGuiStyle reference) - { - fixed (ImGuiStyle* preference = &reference) - { - ShowStyleEditorNative((ImGuiStyle*)preference); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowStyleSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte>)funcTable[22])(label); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[22])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(byte* label) - { - byte ret = ShowStyleSelectorNative(label); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowStyleSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ShowStyleSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowStyleSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowFontSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[23])(label); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[23])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowFontSelector(byte* label) - { - ShowFontSelectorNative(label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowFontSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - ShowFontSelectorNative((byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowFontSelector(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - ShowFontSelectorNative((byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowFontSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowFontSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowUserGuideNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[24])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[24])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowUserGuide() - { - ShowUserGuideNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetVersionNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*>)funcTable[25])(); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint>)funcTable[25])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetVersion() - { - byte* ret = GetVersionNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetVersionS() - { - string ret = Utils.DecodeStringUTF8(GetVersionNative()); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsDarkNative(ImGuiStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)funcTable[26])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[26])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsDark(ImGuiStylePtr dst) - { - StyleColorsDarkNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsDark() - { - StyleColorsDarkNative((ImGuiStyle*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsDark(ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - StyleColorsDarkNative((ImGuiStyle*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsLightNative(ImGuiStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)funcTable[27])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[27])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsLight(ImGuiStylePtr dst) - { - StyleColorsLightNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsLight() - { - StyleColorsLightNative((ImGuiStyle*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsLight(ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - StyleColorsLightNative((ImGuiStyle*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsClassicNative(ImGuiStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)funcTable[28])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[28])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsClassic(ImGuiStylePtr dst) - { - StyleColorsClassicNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsClassic() - { - StyleColorsClassicNative((ImGuiStyle*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsClassic(ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - StyleColorsClassicNative((ImGuiStyle*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiWindowFlags, byte>)funcTable[29])(name, pOpen, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiWindowFlags, byte>)funcTable[29])((nint)name, (nint)pOpen, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(byte* name, bool* pOpen, ImGuiWindowFlags flags) - { - byte ret = BeginNative(name, pOpen, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(byte* name, bool* pOpen) - { - byte ret = BeginNative(name, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(byte* name) - { - byte ret = BeginNative(name, (bool*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(byte* name, ImGuiWindowFlags flags) - { - byte ret = BeginNative(name, (bool*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ref byte name, bool* pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginNative((byte*)pname, pOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ref byte name, bool* pOpen) - { - fixed (byte* pname = &name) - { - byte ret = BeginNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ref byte name) - { - fixed (byte* pname = &name) - { - byte ret = BeginNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ref byte name, ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginNative((byte*)pname, (bool*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ReadOnlySpan<byte> name, bool* pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = name) - { - byte ret = BeginNative((byte*)pname, pOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ReadOnlySpan<byte> name, bool* pOpen) - { - fixed (byte* pname = name) - { - byte ret = BeginNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - byte ret = BeginNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ReadOnlySpan<byte> name, ImGuiWindowFlags flags) - { - fixed (byte* pname = name) - { - byte ret = BeginNative((byte*)pname, (bool*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(string name, bool* pOpen, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, pOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(string name, bool* pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, (bool*)(default), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(string name, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, (bool*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(byte* name, ref bool pOpen, ImGuiWindowFlags flags) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative(name, (bool*)ppOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(byte* name, ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative(name, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ref byte name, ref bool pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative((byte*)pname, (bool*)ppOpen, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ref byte name, ref bool pOpen) - { - fixed (byte* pname = &name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ReadOnlySpan<byte> name, ref bool pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative((byte*)pname, (bool*)ppOpen, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(ReadOnlySpan<byte> name, ref bool pOpen) - { - fixed (byte* pname = name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(string name, ref bool pOpen, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative(pStr0, (bool*)ppOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Begin(string name, ref bool pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginNative(pStr0, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[30])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[30])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void End() - { - EndNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginChildNative(byte* strId, Vector2 size, byte border, ImGuiWindowFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, byte, ImGuiWindowFlags, byte>)funcTable[31])(strId, size, border, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, byte, ImGuiWindowFlags, byte>)funcTable[31])((nint)strId, size, border, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId, Vector2 size, bool border, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId, Vector2 size, bool border) - { - byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId, Vector2 size) - { - byte ret = BeginChildNative(strId, size, (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId) - { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId, bool border) - { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId, Vector2 size, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(strId, size, (byte)(0), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(byte* strId, bool border, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId, Vector2 size, bool border, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId, Vector2 size, bool border) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId, Vector2 size) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId, bool border) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId, Vector2 size, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ref byte strId, bool border, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId, Vector2 size, bool border, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId, Vector2 size, bool border) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId, Vector2 size) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId, bool border) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId, Vector2 size, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(ReadOnlySpan<byte> strId, bool border, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId, Vector2 size, bool border, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId, Vector2 size, bool border) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, (byte)(0), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId, bool border) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId, Vector2 size, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, (byte)(0), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(string strId, bool border, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginChildNative(uint id, Vector2 size, byte border, ImGuiWindowFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, Vector2, byte, ImGuiWindowFlags, byte>)funcTable[32])(id, size, border, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, Vector2, byte, ImGuiWindowFlags, byte>)funcTable[32])(id, size, border, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id, Vector2 size, bool border, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id, Vector2 size, bool border) - { - byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id, Vector2 size) - { - byte ret = BeginChildNative(id, size, (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id) - { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id, bool border) - { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id, Vector2 size, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(id, size, (byte)(0), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChild(uint id, bool border, ImGuiWindowFlags flags) - { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndChildNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[33])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[33])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndChild() - { - EndChildNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowAppearingNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[34])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[34])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowAppearing() - { - byte ret = IsWindowAppearingNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowCollapsedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[35])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[35])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowCollapsed() - { - byte ret = IsWindowCollapsedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowFocusedNative(ImGuiFocusedFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiFocusedFlags, byte>)funcTable[36])(flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiFocusedFlags, byte>)funcTable[36])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowFocused(ImGuiFocusedFlags flags) - { - byte ret = IsWindowFocusedNative(flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowFocused() - { - byte ret = IsWindowFocusedNative((ImGuiFocusedFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowHoveredNative(ImGuiHoveredFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiHoveredFlags, byte>)funcTable[37])(flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiHoveredFlags, byte>)funcTable[37])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowHovered(ImGuiHoveredFlags flags) - { - byte ret = IsWindowHoveredNative(flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowHovered() - { - byte ret = IsWindowHoveredNative((ImGuiHoveredFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetWindowDrawListNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawList*>)funcTable[38])(); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint>)funcTable[38])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetWindowDrawList() - { - ImDrawListPtr ret = GetWindowDrawListNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetWindowDpiScaleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[39])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[39])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetWindowDpiScale() - { - float ret = GetWindowDpiScaleNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWindowPosNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[40])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[40])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetWindowPos() - { - Vector2 ret; - GetWindowPosNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowPos(Vector2* pOut) - { - GetWindowPosNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetWindowPosNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWindowSizeNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[41])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[41])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetWindowSize() - { - Vector2 ret; - GetWindowSizeNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowSize(Vector2* pOut) - { - GetWindowSizeNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowSize(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetWindowSizeNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetWindowWidthNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[42])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[42])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetWindowWidth() - { - float ret = GetWindowWidthNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetWindowHeightNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[43])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[43])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetWindowHeight() - { - float ret = GetWindowHeightNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* GetWindowViewportNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*>)funcTable[44])(); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl]<nint>)funcTable[44])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiViewportPtr GetWindowViewport() - { - ImGuiViewportPtr ret = GetWindowViewportNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowPosNative(Vector2 pos, ImGuiCond cond, Vector2 pivot) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, Vector2, void>)funcTable[45])(pos, cond, pivot); - #else - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, Vector2, void>)funcTable[45])(pos, cond, pivot); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot) - { - SetNextWindowPosNative(pos, cond, pivot); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowPos(Vector2 pos, ImGuiCond cond) - { - SetNextWindowPosNative(pos, cond, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowPos(Vector2 pos) - { - SetNextWindowPosNative(pos, (ImGuiCond)(0), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowPos(Vector2 pos, Vector2 pivot) - { - SetNextWindowPosNative(pos, (ImGuiCond)(0), pivot); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowSizeNative(Vector2 size, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)funcTable[46])(size, cond); - #else - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)funcTable[46])(size, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowSize(Vector2 size, ImGuiCond cond) - { - SetNextWindowSizeNative(size, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowSize(Vector2 size) - { - SetNextWindowSizeNative(size, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowSizeConstraintsNative(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, delegate*<ImGuiSizeCallbackData*, void>, void*, void>)funcTable[47])(sizeMin, sizeMax, (delegate*<ImGuiSizeCallbackData*, void>)Utils.GetFunctionPointerForDelegate(customCallback), customCallbackData); - #else - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, nint, nint, void>)funcTable[47])(sizeMin, sizeMax, (nint)Utils.GetFunctionPointerForDelegate(customCallback), (nint)customCallbackData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) - { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, customCallbackData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback) - { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, (void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax) - { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowSizeConstraints(Vector2 sizeMin, Vector2 sizeMax, void* customCallbackData) - { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowContentSizeNative(Vector2 size) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[48])(size); - #else - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[48])(size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowContentSize(Vector2 size) - { - SetNextWindowContentSizeNative(size); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowCollapsedNative(byte collapsed, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)funcTable[49])(collapsed, cond); - #else - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)funcTable[49])(collapsed, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) - { - SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowCollapsed(bool collapsed) - { - SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowFocusNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[50])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[50])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowFocus() - { - SetNextWindowFocusNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowBgAlphaNative(float alpha) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[51])(alpha); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[51])(alpha); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowBgAlpha(float alpha) - { - SetNextWindowBgAlphaNative(alpha); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowViewportNative(uint viewportId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[52])(viewportId); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[52])(viewportId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowViewport(uint viewportId) - { - SetNextWindowViewportNative(viewportId); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowPosNative(Vector2 pos, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)funcTable[53])(pos, cond); - #else - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)funcTable[53])(pos, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(Vector2 pos, ImGuiCond cond) - { - SetWindowPosNative(pos, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(Vector2 pos) - { - SetWindowPosNative(pos, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowSizeNative(Vector2 size, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)funcTable[54])(size, cond); - #else - ((delegate* unmanaged[Cdecl]<Vector2, ImGuiCond, void>)funcTable[54])(size, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(Vector2 size, ImGuiCond cond) - { - SetWindowSizeNative(size, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(Vector2 size) - { - SetWindowSizeNative(size, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowCollapsedNative(byte collapsed, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)funcTable[55])(collapsed, cond); - #else - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)funcTable[55])(collapsed, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond) - { - SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(bool collapsed) - { - SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowFocusNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[56])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[56])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowFocus() - { - SetWindowFocusNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowFontScaleNative(float scale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[57])(scale); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[57])(scale); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowFontScale(float scale) - { - SetWindowFontScaleNative(scale); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowPosNative(byte* name, Vector2 pos, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiCond, void>)funcTable[58])(name, pos, cond); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiCond, void>)funcTable[58])((nint)name, pos, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(byte* name, Vector2 pos, ImGuiCond cond) - { - SetWindowPosNative(name, pos, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(byte* name, Vector2 pos) - { - SetWindowPosNative(name, pos, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ref byte name, Vector2 pos, ImGuiCond cond) - { - fixed (byte* pname = &name) - { - SetWindowPosNative((byte*)pname, pos, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ref byte name, Vector2 pos) - { - fixed (byte* pname = &name) - { - SetWindowPosNative((byte*)pname, pos, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ReadOnlySpan<byte> name, Vector2 pos, ImGuiCond cond) - { - fixed (byte* pname = name) - { - SetWindowPosNative((byte*)pname, pos, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ReadOnlySpan<byte> name, Vector2 pos) - { - fixed (byte* pname = name) - { - SetWindowPosNative((byte*)pname, pos, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(string name, Vector2 pos, ImGuiCond cond) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowPosNative(pStr0, pos, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(string name, Vector2 pos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowPosNative(pStr0, pos, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowSizeNative(byte* name, Vector2 size, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiCond, void>)funcTable[59])(name, size, cond); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiCond, void>)funcTable[59])((nint)name, size, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(byte* name, Vector2 size, ImGuiCond cond) - { - SetWindowSizeNative(name, size, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(byte* name, Vector2 size) - { - SetWindowSizeNative(name, size, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ref byte name, Vector2 size, ImGuiCond cond) - { - fixed (byte* pname = &name) - { - SetWindowSizeNative((byte*)pname, size, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ref byte name, Vector2 size) - { - fixed (byte* pname = &name) - { - SetWindowSizeNative((byte*)pname, size, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ReadOnlySpan<byte> name, Vector2 size, ImGuiCond cond) - { - fixed (byte* pname = name) - { - SetWindowSizeNative((byte*)pname, size, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ReadOnlySpan<byte> name, Vector2 size) - { - fixed (byte* pname = name) - { - SetWindowSizeNative((byte*)pname, size, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(string name, Vector2 size, ImGuiCond cond) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowSizeNative(pStr0, size, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(string name, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowSizeNative(pStr0, size, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowCollapsedNative(byte* name, byte collapsed, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte, ImGuiCond, void>)funcTable[60])(name, collapsed, cond); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, ImGuiCond, void>)funcTable[60])((nint)name, collapsed, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(byte* name, bool collapsed, ImGuiCond cond) - { - SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(byte* name, bool collapsed) - { - SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ref byte name, bool collapsed, ImGuiCond cond) - { - fixed (byte* pname = &name) - { - SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ref byte name, bool collapsed) - { - fixed (byte* pname = &name) - { - SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ReadOnlySpan<byte> name, bool collapsed, ImGuiCond cond) - { - fixed (byte* pname = name) - { - SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ReadOnlySpan<byte> name, bool collapsed) - { - fixed (byte* pname = name) - { - SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(string name, bool collapsed, ImGuiCond cond) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(string name, bool collapsed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowFocusNative(byte* name) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[61])(name); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[61])((nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowFocus(byte* name) - { - SetWindowFocusNative(name); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowFocus(ref byte name) - { - fixed (byte* pname = &name) - { - SetWindowFocusNative((byte*)pname); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowFocus(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - SetWindowFocusNative((byte*)pname); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowFocus(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowFocusNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetContentRegionAvailNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[62])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[62])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetContentRegionAvail() - { - Vector2 ret; - GetContentRegionAvailNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetContentRegionAvail(Vector2* pOut) - { - GetContentRegionAvailNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetContentRegionAvail(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetContentRegionAvailNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetContentRegionMaxNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[63])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[63])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetContentRegionMax() - { - Vector2 ret; - GetContentRegionMaxNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetContentRegionMax(Vector2* pOut) - { - GetContentRegionMaxNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetContentRegionMax(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetContentRegionMaxNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWindowContentRegionMinNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[64])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[64])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetWindowContentRegionMin() - { - Vector2 ret; - GetWindowContentRegionMinNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowContentRegionMin(Vector2* pOut) - { - GetWindowContentRegionMinNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowContentRegionMin(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetWindowContentRegionMinNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWindowContentRegionMaxNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[65])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[65])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetWindowContentRegionMax() - { - Vector2 ret; - GetWindowContentRegionMaxNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowContentRegionMax(Vector2* pOut) - { - GetWindowContentRegionMaxNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowContentRegionMax(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetWindowContentRegionMaxNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetScrollXNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[66])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[66])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetScrollX() - { - float ret = GetScrollXNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetScrollYNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[67])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[67])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetScrollY() - { - float ret = GetScrollYNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollXNative(float scrollX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[68])(scrollX); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[68])(scrollX); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollX(float scrollX) - { - SetScrollXNative(scrollX); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollYNative(float scrollY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[69])(scrollY); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[69])(scrollY); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollY(float scrollY) - { - SetScrollYNative(scrollY); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetScrollMaxXNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[70])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[70])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetScrollMaxX() - { - float ret = GetScrollMaxXNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetScrollMaxYNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[71])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[71])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetScrollMaxY() - { - float ret = GetScrollMaxYNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollHereXNative(float centerXRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[72])(centerXRatio); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[72])(centerXRatio); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollHereX(float centerXRatio) - { - SetScrollHereXNative(centerXRatio); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollHereX() - { - SetScrollHereXNative((float)(0.5f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollHereYNative(float centerYRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[73])(centerYRatio); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[73])(centerYRatio); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollHereY(float centerYRatio) - { - SetScrollHereYNative(centerYRatio); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollHereY() - { - SetScrollHereYNative((float)(0.5f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollFromPosXNative(float localX, float centerXRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, float, void>)funcTable[74])(localX, centerXRatio); - #else - ((delegate* unmanaged[Cdecl]<float, float, void>)funcTable[74])(localX, centerXRatio); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosX(float localX, float centerXRatio) - { - SetScrollFromPosXNative(localX, centerXRatio); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosX(float localX) - { - SetScrollFromPosXNative(localX, (float)(0.5f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollFromPosYNative(float localY, float centerYRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, float, void>)funcTable[75])(localY, centerYRatio); - #else - ((delegate* unmanaged[Cdecl]<float, float, void>)funcTable[75])(localY, centerYRatio); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosY(float localY, float centerYRatio) - { - SetScrollFromPosYNative(localY, centerYRatio); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosY(float localY) - { - SetScrollFromPosYNative(localY, (float)(0.5f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushFontNative(ImFont* font) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, void>)funcTable[76])(font); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[76])((nint)font); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushFont(ImFontPtr font) - { - PushFontNative(font); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushFont(ref ImFont font) - { - fixed (ImFont* pfont = &font) - { - PushFontNative((ImFont*)pfont); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopFontNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[77])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[77])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopFont() - { - PopFontNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleColorNative(ImGuiCol idx, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiCol, uint, void>)funcTable[78])(idx, col); - #else - ((delegate* unmanaged[Cdecl]<ImGuiCol, uint, void>)funcTable[78])(idx, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleColor(ImGuiCol idx, uint col) - { - PushStyleColorNative(idx, col); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleColorNative(ImGuiCol idx, Vector4 col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiCol, Vector4, void>)funcTable[79])(idx, col); - #else - ((delegate* unmanaged[Cdecl]<ImGuiCol, Vector4, void>)funcTable[79])(idx, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleColor(ImGuiCol idx, Vector4 col) - { - PushStyleColorNative(idx, col); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopStyleColorNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[80])(count); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[80])(count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleColor(int count) - { - PopStyleColorNative(count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleColor() - { - PopStyleColorNative((int)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImGuiStyleVar idx, float val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, float, void>)funcTable[81])(idx, val); - #else - ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, float, void>)funcTable[81])(idx, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleVar(ImGuiStyleVar idx, float val) - { - PushStyleVarNative(idx, val); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImGuiStyleVar idx, Vector2 val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, Vector2, void>)funcTable[82])(idx, val); - #else - ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, Vector2, void>)funcTable[82])(idx, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val) - { - PushStyleVarNative(idx, val); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopStyleVarNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[83])(count); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[83])(count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleVar(int count) - { - PopStyleVarNative(count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleVar() - { - PopStyleVarNative((int)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushAllowKeyboardFocusNative(byte allowKeyboardFocus) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[84])(allowKeyboardFocus); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[84])(allowKeyboardFocus); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushAllowKeyboardFocus(bool allowKeyboardFocus) - { - PushAllowKeyboardFocusNative(allowKeyboardFocus ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopAllowKeyboardFocusNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[85])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[85])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopAllowKeyboardFocus() - { - PopAllowKeyboardFocusNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushButtonRepeatNative(byte repeat) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[86])(repeat); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[86])(repeat); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushButtonRepeat(bool repeat) - { - PushButtonRepeatNative(repeat ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopButtonRepeatNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[87])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[87])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopButtonRepeat() - { - PopButtonRepeatNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushItemWidthNative(float itemWidth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[88])(itemWidth); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[88])(itemWidth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushItemWidth(float itemWidth) - { - PushItemWidthNative(itemWidth); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopItemWidthNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[89])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[89])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopItemWidth() - { - PopItemWidthNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextItemWidthNative(float itemWidth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[90])(itemWidth); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[90])(itemWidth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextItemWidth(float itemWidth) - { - SetNextItemWidthNative(itemWidth); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float CalcItemWidthNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[91])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[91])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float CalcItemWidth() - { - float ret = CalcItemWidthNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushTextWrapPosNative(float wrapLocalPosX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[92])(wrapLocalPosX); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[92])(wrapLocalPosX); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushTextWrapPos(float wrapLocalPosX) - { - PushTextWrapPosNative(wrapLocalPosX); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushTextWrapPos() - { - PushTextWrapPosNative((float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopTextWrapPosNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[93])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[93])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopTextWrapPos() - { - PopTextWrapPosNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* GetFontNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*>)funcTable[94])(); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint>)funcTable[94])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr GetFont() - { - ImFontPtr ret = GetFontNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetFontSizeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[95])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[95])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetFontSize() - { - float ret = GetFontSizeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImTextureID GetFontTexIdWhitePixelNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImTextureID>)funcTable[96])(); - #else - return (ImTextureID)((delegate* unmanaged[Cdecl]<ImTextureID>)funcTable[96])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImTextureID GetFontTexIdWhitePixel() - { - ImTextureID ret = GetFontTexIdWhitePixelNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetFontTexUvWhitePixelNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[97])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[97])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetFontTexUvWhitePixel() - { - Vector2 ret; - GetFontTexUvWhitePixelNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetFontTexUvWhitePixel(Vector2* pOut) - { - GetFontTexUvWhitePixelNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetFontTexUvWhitePixel(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetFontTexUvWhitePixelNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetColorU32Native(ImGuiCol idx, float alphaMul) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiCol, float, uint>)funcTable[98])(idx, alphaMul); - #else - return (uint)((delegate* unmanaged[Cdecl]<ImGuiCol, float, uint>)funcTable[98])(idx, alphaMul); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColorU32(ImGuiCol idx, float alphaMul) - { - uint ret = GetColorU32Native(idx, alphaMul); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColorU32(ImGuiCol idx) - { - uint ret = GetColorU32Native(idx, (float)(1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetColorU32Native(Vector4 col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4, uint>)funcTable[99])(col); - #else - return (uint)((delegate* unmanaged[Cdecl]<Vector4, uint>)funcTable[99])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColorU32(Vector4 col) - { - uint ret = GetColorU32Native(col); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetColorU32Native(uint col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint>)funcTable[100])(col); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, uint>)funcTable[100])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColorU32(uint col) - { - uint ret = GetColorU32Native(col); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Vector4* GetStyleColorVec4Native(ImGuiCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiCol, Vector4*>)funcTable[101])(idx); - #else - return (Vector4*)((delegate* unmanaged[Cdecl]<ImGuiCol, nint>)funcTable[101])(idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4* GetStyleColorVec4(ImGuiCol idx) - { - Vector4* ret = GetStyleColorVec4Native(idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SeparatorNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[102])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[102])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Separator() - { - SeparatorNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SameLineNative(float offsetFromStartX, float spacing) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, float, void>)funcTable[103])(offsetFromStartX, spacing); - #else - ((delegate* unmanaged[Cdecl]<float, float, void>)funcTable[103])(offsetFromStartX, spacing); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SameLine(float offsetFromStartX, float spacing) - { - SameLineNative(offsetFromStartX, spacing); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SameLine(float offsetFromStartX) - { - SameLineNative(offsetFromStartX, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SameLine() - { - SameLineNative((float)(0.0f), (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NewLineNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[104])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[104])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NewLine() - { - NewLineNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SpacingNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[105])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[105])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Spacing() - { - SpacingNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DummyNative(Vector2 size) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[106])(size); - #else - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[106])(size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Dummy(Vector2 size) - { - DummyNative(size); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void IndentNative(float indentW) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[107])(indentW); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[107])(indentW); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Indent(float indentW) - { - IndentNative(indentW); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Indent() - { - IndentNative((float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UnindentNative(float indentW) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[108])(indentW); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[108])(indentW); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Unindent(float indentW) - { - UnindentNative(indentW); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Unindent() - { - UnindentNative((float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginGroupNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[109])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[109])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginGroup() - { - BeginGroupNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndGroupNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[110])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[110])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndGroup() - { - EndGroupNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetCursorPosNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[111])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[111])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetCursorPos() - { - Vector2 ret; - GetCursorPosNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCursorPos(Vector2* pOut) - { - GetCursorPosNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCursorPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetCursorPosNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetCursorPosXNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[112])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[112])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetCursorPosX() - { - float ret = GetCursorPosXNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetCursorPosYNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[113])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[113])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetCursorPosY() - { - float ret = GetCursorPosYNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCursorPosNative(Vector2 localPos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[114])(localPos); - #else - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[114])(localPos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCursorPos(Vector2 localPos) - { - SetCursorPosNative(localPos); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCursorPosXNative(float localX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[115])(localX); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[115])(localX); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCursorPosX(float localX) - { - SetCursorPosXNative(localX); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCursorPosYNative(float localY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[116])(localY); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[116])(localY); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCursorPosY(float localY) - { - SetCursorPosYNative(localY); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetCursorStartPosNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[117])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[117])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetCursorStartPos() - { - Vector2 ret; - GetCursorStartPosNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCursorStartPos(Vector2* pOut) - { - GetCursorStartPosNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCursorStartPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetCursorStartPosNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetCursorScreenPosNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[118])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[118])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetCursorScreenPos() - { - Vector2 ret; - GetCursorScreenPosNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCursorScreenPos(Vector2* pOut) - { - GetCursorScreenPosNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCursorScreenPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetCursorScreenPosNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCursorScreenPosNative(Vector2 pos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[119])(pos); - #else - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[119])(pos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCursorScreenPos(Vector2 pos) - { - SetCursorScreenPosNative(pos); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AlignTextToFramePaddingNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[120])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[120])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AlignTextToFramePadding() - { - AlignTextToFramePaddingNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetTextLineHeightNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[121])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[121])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetTextLineHeight() - { - float ret = GetTextLineHeightNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetTextLineHeightWithSpacingNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[122])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[122])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetTextLineHeightWithSpacing() - { - float ret = GetTextLineHeightWithSpacingNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetFrameHeightNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[123])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[123])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetFrameHeight() - { - float ret = GetFrameHeightNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetFrameHeightWithSpacingNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[124])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[124])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetFrameHeightWithSpacing() - { - float ret = GetFrameHeightWithSpacingNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushIDNative(byte* strId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[125])(strId); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[125])((nint)strId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(byte* strId) - { - PushIDNative(strId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - PushIDNative((byte*)pstrId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - PushIDNative((byte*)pstrId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushIDNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushIDNative(byte* strIdBegin, byte* strIdEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)funcTable[126])(strIdBegin, strIdEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[126])((nint)strIdBegin, (nint)strIdEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(byte* strIdBegin, byte* strIdEnd) - { - PushIDNative(strIdBegin, strIdEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ref byte strIdBegin, byte* strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - PushIDNative((byte*)pstrIdBegin, strIdEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ReadOnlySpan<byte> strIdBegin, byte* strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - PushIDNative((byte*)pstrIdBegin, strIdEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(string strIdBegin, byte* strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushIDNative(pStr0, strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(byte* strIdBegin, ref byte strIdEnd) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - PushIDNative(strIdBegin, (byte*)pstrIdEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(byte* strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - PushIDNative(strIdBegin, (byte*)pstrIdEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(byte* strIdBegin, string strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushIDNative(strIdBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ref byte strIdBegin, ref byte strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ReadOnlySpan<byte> strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.001.cs deleted file mode 100644 index 802511d7d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.001.cs +++ /dev/null @@ -1,5042 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(string strIdBegin, string strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strIdEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PushIDNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ref byte strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ref byte strIdBegin, string strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushIDNative((byte*)pstrIdBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ReadOnlySpan<byte> strIdBegin, ref byte strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(ReadOnlySpan<byte> strIdBegin, string strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushIDNative((byte*)pstrIdBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(string strIdBegin, ref byte strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = &strIdEnd) - { - PushIDNative(pStr0, (byte*)pstrIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(string strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = strIdEnd) - { - PushIDNative(pStr0, (byte*)pstrIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushIDNative(void* ptrId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void*, void>)funcTable[127])(ptrId); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[127])((nint)ptrId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(void* ptrId) - { - PushIDNative(ptrId); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushIDNative(int intId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[128])(intId); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[128])(intId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushID(int intId) - { - PushIDNative(intId); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopIDNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[129])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[129])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopID() - { - PopIDNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(byte* strId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint>)funcTable[130])(strId); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, uint>)funcTable[130])((nint)strId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(byte* strId) - { - uint ret = GetIDNative(strId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - uint ret = GetIDNative((byte*)pstrId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - uint ret = GetIDNative((byte*)pstrId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(byte* strIdBegin, byte* strIdEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, uint>)funcTable[131])(strIdBegin, strIdEnd); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nint, uint>)funcTable[131])((nint)strIdBegin, (nint)strIdEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(byte* strIdBegin, byte* strIdEnd) - { - uint ret = GetIDNative(strIdBegin, strIdEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref byte strIdBegin, byte* strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - uint ret = GetIDNative((byte*)pstrIdBegin, strIdEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ReadOnlySpan<byte> strIdBegin, byte* strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - uint ret = GetIDNative((byte*)pstrIdBegin, strIdEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(string strIdBegin, byte* strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(pStr0, strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(byte* strIdBegin, ref byte strIdEnd) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(byte* strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(byte* strIdBegin, string strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(strIdBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref byte strIdBegin, ref byte strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ReadOnlySpan<byte> strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(string strIdBegin, string strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strIdEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - uint ret = GetIDNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref byte strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref byte strIdBegin, string strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((byte*)pstrIdBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ReadOnlySpan<byte> strIdBegin, ref byte strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ReadOnlySpan<byte> strIdBegin, string strIdEnd) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((byte*)pstrIdBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(string strIdBegin, ref byte strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDNative(pStr0, (byte*)pstrIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(string strIdBegin, ReadOnlySpan<byte> strIdEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDNative(pStr0, (byte*)pstrIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(void* ptrId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, uint>)funcTable[132])(ptrId); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, uint>)funcTable[132])((nint)ptrId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(void* ptrId) - { - uint ret = GetIDNative(ptrId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextUnformattedNative(byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)funcTable[133])(text, textEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[133])((nint)text, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(byte* text, byte* textEnd) - { - TextUnformattedNative(text, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(byte* text) - { - TextUnformattedNative(text, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - TextUnformattedNative((byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ref byte text) - { - fixed (byte* ptext = &text) - { - TextUnformattedNative((byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - TextUnformattedNative((byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - TextUnformattedNative((byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextUnformattedNative(pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextUnformattedNative(pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - TextUnformattedNative(text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - TextUnformattedNative(text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextUnformattedNative(text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextUnformattedNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextUnformattedNative((byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextUnformattedNative((byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - TextUnformattedNative(pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextUnformatted(string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - TextUnformattedNative(pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[134])(fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[134])((nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Text(byte* fmt) - { - TextNative(fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Text(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TextNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Text(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - TextNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Text(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[135])(fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[135])((nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextV(byte* fmt, nuint args) - { - TextVNative(fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TextVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextV(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TextVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextColoredNative(Vector4 col, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4, byte*, void>)funcTable[136])(col, fmt); - #else - ((delegate* unmanaged[Cdecl]<Vector4, nint, void>)funcTable[136])(col, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColored(Vector4 col, byte* fmt) - { - TextColoredNative(col, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColored(Vector4 col, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TextColoredNative(col, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColored(Vector4 col, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - TextColoredNative(col, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColored(Vector4 col, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextColoredNative(col, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextColoredVNative(Vector4 col, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4, byte*, nuint, void>)funcTable[137])(col, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<Vector4, nint, nuint, void>)funcTable[137])(col, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColoredV(Vector4 col, byte* fmt, nuint args) - { - TextColoredVNative(col, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColoredV(Vector4 col, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TextColoredVNative(col, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColoredV(Vector4 col, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TextColoredVNative(col, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextColoredV(Vector4 col, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextColoredVNative(col, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextDisabledNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[138])(fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[138])((nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabled(byte* fmt) - { - TextDisabledNative(fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabled(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TextDisabledNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabled(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - TextDisabledNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabled(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextDisabledNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextDisabledVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[139])(fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[139])((nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabledV(byte* fmt, nuint args) - { - TextDisabledVNative(fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabledV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TextDisabledVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabledV(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TextDisabledVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextDisabledV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextDisabledVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextWrappedNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[140])(fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[140])((nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrapped(byte* fmt) - { - TextWrappedNative(fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrapped(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TextWrappedNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrapped(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - TextWrappedNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrapped(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextWrappedNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextWrappedVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[141])(fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[141])((nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrappedV(byte* fmt, nuint args) - { - TextWrappedVNative(fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrappedV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TextWrappedVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrappedV(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TextWrappedVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextWrappedV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextWrappedVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LabelTextNative(byte* label, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)funcTable[142])(label, fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[142])((nint)label, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(byte* label, byte* fmt) - { - LabelTextNative(label, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ref byte label, byte* fmt) - { - fixed (byte* plabel = &label) - { - LabelTextNative((byte*)plabel, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ReadOnlySpan<byte> label, byte* fmt) - { - fixed (byte* plabel = label) - { - LabelTextNative((byte*)plabel, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(string label, byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextNative(pStr0, fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(byte* label, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - LabelTextNative(label, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(byte* label, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - LabelTextNative(label, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(byte* label, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextNative(label, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ref byte label, ref byte fmt) - { - fixed (byte* plabel = &label) - { - fixed (byte* pfmt = &fmt) - { - LabelTextNative((byte*)plabel, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ReadOnlySpan<byte> label, ReadOnlySpan<byte> fmt) - { - fixed (byte* plabel = label) - { - fixed (byte* pfmt = fmt) - { - LabelTextNative((byte*)plabel, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(string label, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LabelTextNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ref byte label, ReadOnlySpan<byte> fmt) - { - fixed (byte* plabel = &label) - { - fixed (byte* pfmt = fmt) - { - LabelTextNative((byte*)plabel, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ref byte label, string fmt) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextNative((byte*)plabel, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ReadOnlySpan<byte> label, ref byte fmt) - { - fixed (byte* plabel = label) - { - fixed (byte* pfmt = &fmt) - { - LabelTextNative((byte*)plabel, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(ReadOnlySpan<byte> label, string fmt) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextNative((byte*)plabel, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(string label, ref byte fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - LabelTextNative(pStr0, (byte*)pfmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelText(string label, ReadOnlySpan<byte> fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - LabelTextNative(pStr0, (byte*)pfmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LabelTextVNative(byte* label, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, void>)funcTable[143])(label, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nuint, void>)funcTable[143])((nint)label, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(byte* label, byte* fmt, nuint args) - { - LabelTextVNative(label, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ref byte label, byte* fmt, nuint args) - { - fixed (byte* plabel = &label) - { - LabelTextVNative((byte*)plabel, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ReadOnlySpan<byte> label, byte* fmt, nuint args) - { - fixed (byte* plabel = label) - { - LabelTextVNative((byte*)plabel, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(string label, byte* fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextVNative(pStr0, fmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(byte* label, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - LabelTextVNative(label, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(byte* label, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - LabelTextVNative(label, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(byte* label, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextVNative(label, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ref byte label, ref byte fmt, nuint args) - { - fixed (byte* plabel = &label) - { - fixed (byte* pfmt = &fmt) - { - LabelTextVNative((byte*)plabel, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ReadOnlySpan<byte> label, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* plabel = label) - { - fixed (byte* pfmt = fmt) - { - LabelTextVNative((byte*)plabel, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(string label, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LabelTextVNative(pStr0, pStr1, args); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ref byte label, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* plabel = &label) - { - fixed (byte* pfmt = fmt) - { - LabelTextVNative((byte*)plabel, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ref byte label, string fmt, nuint args) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextVNative((byte*)plabel, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ReadOnlySpan<byte> label, ref byte fmt, nuint args) - { - fixed (byte* plabel = label) - { - fixed (byte* pfmt = &fmt) - { - LabelTextVNative((byte*)plabel, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(ReadOnlySpan<byte> label, string fmt, nuint args) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelTextVNative((byte*)plabel, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(string label, ref byte fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - LabelTextVNative(pStr0, (byte*)pfmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelTextV(string label, ReadOnlySpan<byte> fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - LabelTextVNative(pStr0, (byte*)pfmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BulletTextNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[144])(fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[144])((nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletText(byte* fmt) - { - BulletTextNative(fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletText(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - BulletTextNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletText(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - BulletTextNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletText(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - BulletTextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BulletTextVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[145])(fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[145])((nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletTextV(byte* fmt, nuint args) - { - BulletTextVNative(fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletTextV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - BulletTextVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletTextV(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - BulletTextVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BulletTextV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - BulletTextVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ButtonNative(byte* label, Vector2 size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, byte>)funcTable[146])(label, size); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, byte>)funcTable[146])((nint)label, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(byte* label, Vector2 size) - { - byte ret = ButtonNative(label, size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(byte* label) - { - byte ret = ButtonNative(label, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(ref byte label, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonNative((byte*)plabel, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(ReadOnlySpan<byte> label, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = ButtonNative((byte*)plabel, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(string label, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonNative(pStr0, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Button(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonNative(pStr0, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SmallButtonNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte>)funcTable[147])(label); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[147])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SmallButton(byte* label) - { - byte ret = SmallButtonNative(label); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SmallButton(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = SmallButtonNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SmallButton(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = SmallButtonNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SmallButton(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SmallButtonNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InvisibleButtonNative(byte* strId, Vector2 size, ImGuiButtonFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiButtonFlags, byte>)funcTable[148])(strId, size, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiButtonFlags, byte>)funcTable[148])((nint)strId, size, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(byte* strId, Vector2 size, ImGuiButtonFlags flags) - { - byte ret = InvisibleButtonNative(strId, size, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(byte* strId, Vector2 size) - { - byte ret = InvisibleButtonNative(strId, size, (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(ref byte strId, Vector2 size, ImGuiButtonFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = InvisibleButtonNative((byte*)pstrId, size, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(ref byte strId, Vector2 size) - { - fixed (byte* pstrId = &strId) - { - byte ret = InvisibleButtonNative((byte*)pstrId, size, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(ReadOnlySpan<byte> strId, Vector2 size, ImGuiButtonFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = InvisibleButtonNative((byte*)pstrId, size, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(ReadOnlySpan<byte> strId, Vector2 size) - { - fixed (byte* pstrId = strId) - { - byte ret = InvisibleButtonNative((byte*)pstrId, size, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(string strId, Vector2 size, ImGuiButtonFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InvisibleButtonNative(pStr0, size, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InvisibleButton(string strId, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InvisibleButtonNative(pStr0, size, (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ArrowButtonNative(byte* strId, ImGuiDir dir) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDir, byte>)funcTable[149])(strId, dir); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDir, byte>)funcTable[149])((nint)strId, dir); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButton(byte* strId, ImGuiDir dir) - { - byte ret = ArrowButtonNative(strId, dir); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButton(ref byte strId, ImGuiDir dir) - { - fixed (byte* pstrId = &strId) - { - byte ret = ArrowButtonNative((byte*)pstrId, dir); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButton(ReadOnlySpan<byte> strId, ImGuiDir dir) - { - fixed (byte* pstrId = strId) - { - byte ret = ArrowButtonNative((byte*)pstrId, dir); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButton(string strId, ImGuiDir dir) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ArrowButtonNative(pStr0, dir); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImageNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImTextureID, Vector2, Vector2, Vector2, Vector4, Vector4, void>)funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); - #else - ((delegate* unmanaged[Cdecl]<ImTextureID, Vector2, Vector2, Vector2, Vector4, Vector4, void>)funcTable[150])(userTextureId, size, uv0, uv1, tintCol, borderCol); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) - { - ImageNative(userTextureId, size, uv0, uv1, tintCol, borderCol); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - ImageNative(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) - { - ImageNative(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0) - { - ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size) - { - ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol) - { - ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol) - { - ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol, Vector4 borderCol) - { - ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Image(ImTextureID userTextureId, Vector2 size, Vector4 tintCol, Vector4 borderCol) - { - ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImageButtonNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImTextureID, Vector2, Vector2, Vector2, int, Vector4, Vector4, byte>)funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImTextureID, Vector2, Vector2, Vector2, int, Vector4, Vector4, byte>)funcTable[151])(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, bgCol, tintCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding, Vector4 bgCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, int framePadding) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size) - { - byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding) - { - byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol) - { - byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol) - { - byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, uv1, (int)(-1), bgCol, tintCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (int)(-1), bgCol, tintCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, Vector2 uv0, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImageButtonNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButton(ImTextureID userTextureId, Vector2 size, int framePadding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImageButtonNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), framePadding, bgCol, tintCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CheckboxNative(byte* label, bool* v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, bool*, byte>)funcTable[152])(label, v); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[152])((nint)label, (nint)v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(byte* label, bool* v) - { - byte ret = CheckboxNative(label, v); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(ref byte label, bool* v) - { - fixed (byte* plabel = &label) - { - byte ret = CheckboxNative((byte*)plabel, v); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(ReadOnlySpan<byte> label, bool* v) - { - fixed (byte* plabel = label) - { - byte ret = CheckboxNative((byte*)plabel, v); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(string label, bool* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxNative(pStr0, v); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(byte* label, ref bool v) - { - fixed (bool* pv = &v) - { - byte ret = CheckboxNative(label, (bool*)pv); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(ref byte label, ref bool v) - { - fixed (byte* plabel = &label) - { - fixed (bool* pv = &v) - { - byte ret = CheckboxNative((byte*)plabel, (bool*)pv); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(ReadOnlySpan<byte> label, ref bool v) - { - fixed (byte* plabel = label) - { - fixed (bool* pv = &v) - { - byte ret = CheckboxNative((byte*)plabel, (bool*)pv); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Checkbox(string label, ref bool v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* pv = &v) - { - byte ret = CheckboxNative(pStr0, (bool*)pv); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CheckboxFlagsNative(byte* label, int* flags, int flagsValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, byte>)funcTable[153])(label, flags, flagsValue); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, int, byte>)funcTable[153])((nint)label, (nint)flags, flagsValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(byte* label, int* flags, int flagsValue) - { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ref byte label, int* flags, int flagsValue) - { - fixed (byte* plabel = &label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ReadOnlySpan<byte> label, int* flags, int flagsValue) - { - fixed (byte* plabel = label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(string label, int* flags, int flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(byte* label, ref int flags, int flagsValue) - { - fixed (int* pflags = &flags) - { - byte ret = CheckboxFlagsNative(label, (int*)pflags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ref byte label, ref int flags, int flagsValue) - { - fixed (byte* plabel = &label) - { - fixed (int* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (int*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ReadOnlySpan<byte> label, ref int flags, int flagsValue) - { - fixed (byte* plabel = label) - { - fixed (int* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (int*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(string label, ref int flags, int flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pflags = &flags) - { - byte ret = CheckboxFlagsNative(pStr0, (int*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CheckboxFlagsNative(byte* label, uint* flags, uint flagsValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint*, uint, byte>)funcTable[154])(label, flags, flagsValue); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, uint, byte>)funcTable[154])((nint)label, (nint)flags, flagsValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(byte* label, uint* flags, uint flagsValue) - { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ref byte label, uint* flags, uint flagsValue) - { - fixed (byte* plabel = &label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ReadOnlySpan<byte> label, uint* flags, uint flagsValue) - { - fixed (byte* plabel = label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(string label, uint* flags, uint flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(byte* label, ref uint flags, uint flagsValue) - { - fixed (uint* pflags = &flags) - { - byte ret = CheckboxFlagsNative(label, (uint*)pflags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ref byte label, ref uint flags, uint flagsValue) - { - fixed (byte* plabel = &label) - { - fixed (uint* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (uint*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ReadOnlySpan<byte> label, ref uint flags, uint flagsValue) - { - fixed (byte* plabel = label) - { - fixed (uint* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (uint*)pflags, flagsValue); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(string label, ref uint flags, uint flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (uint* pflags = &flags) - { - byte ret = CheckboxFlagsNative(pStr0, (uint*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte RadioButtonNative(byte* label, byte active) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte, byte>)funcTable[155])(label, active); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte, byte>)funcTable[155])((nint)label, active); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(byte* label, bool active) - { - byte ret = RadioButtonNative(label, active ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(ref byte label, bool active) - { - fixed (byte* plabel = &label) - { - byte ret = RadioButtonNative((byte*)plabel, active ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(ReadOnlySpan<byte> label, bool active) - { - fixed (byte* plabel = label) - { - byte ret = RadioButtonNative((byte*)plabel, active ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(string label, bool active) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = RadioButtonNative(pStr0, active ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte RadioButtonNative(byte* label, int* v, int vButton) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, byte>)funcTable[156])(label, v, vButton); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, int, byte>)funcTable[156])((nint)label, (nint)v, vButton); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(byte* label, int* v, int vButton) - { - byte ret = RadioButtonNative(label, v, vButton); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(ref byte label, int* v, int vButton) - { - fixed (byte* plabel = &label) - { - byte ret = RadioButtonNative((byte*)plabel, v, vButton); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(ReadOnlySpan<byte> label, int* v, int vButton) - { - fixed (byte* plabel = label) - { - byte ret = RadioButtonNative((byte*)plabel, v, vButton); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(string label, int* v, int vButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = RadioButtonNative(pStr0, v, vButton); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(byte* label, ref int v, int vButton) - { - fixed (int* pv = &v) - { - byte ret = RadioButtonNative(label, (int*)pv, vButton); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(ref byte label, ref int v, int vButton) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = RadioButtonNative((byte*)plabel, (int*)pv, vButton); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(ReadOnlySpan<byte> label, ref int v, int vButton) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = RadioButtonNative((byte*)plabel, (int*)pv, vButton); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RadioButton(string label, ref int v, int vButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = RadioButtonNative(pStr0, (int*)pv, vButton); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ProgressBarNative(float fraction, Vector2 sizeArg, byte* overlay) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, Vector2, byte*, void>)funcTable[157])(fraction, sizeArg, overlay); - #else - ((delegate* unmanaged[Cdecl]<float, Vector2, nint, void>)funcTable[157])(fraction, sizeArg, (nint)overlay); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, Vector2 sizeArg, byte* overlay) - { - ProgressBarNative(fraction, sizeArg, overlay); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, Vector2 sizeArg) - { - ProgressBarNative(fraction, sizeArg, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction) - { - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, byte* overlay) - { - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), overlay); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, Vector2 sizeArg, ref byte overlay) - { - fixed (byte* poverlay = &overlay) - { - ProgressBarNative(fraction, sizeArg, (byte*)poverlay); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, ref byte overlay) - { - fixed (byte* poverlay = &overlay) - { - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, Vector2 sizeArg, ReadOnlySpan<byte> overlay) - { - fixed (byte* poverlay = overlay) - { - ProgressBarNative(fraction, sizeArg, (byte*)poverlay); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, ReadOnlySpan<byte> overlay) - { - fixed (byte* poverlay = overlay) - { - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, Vector2 sizeArg, string overlay) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlay != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlay); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ProgressBarNative(fraction, sizeArg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ProgressBar(float fraction, string overlay) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlay != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlay); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BulletNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[158])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[158])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Bullet() - { - BulletNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginComboNative(byte* label, byte* previewValue, ImGuiComboFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, ImGuiComboFlags, byte>)funcTable[159])(label, previewValue, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiComboFlags, byte>)funcTable[159])((nint)label, (nint)previewValue, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, byte* previewValue, ImGuiComboFlags flags) - { - byte ret = BeginComboNative(label, previewValue, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, byte* previewValue) - { - byte ret = BeginComboNative(label, previewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, byte* previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = BeginComboNative((byte*)plabel, previewValue, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, byte* previewValue) - { - fixed (byte* plabel = &label) - { - byte ret = BeginComboNative((byte*)plabel, previewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, byte* previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = BeginComboNative((byte*)plabel, previewValue, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, byte* previewValue) - { - fixed (byte* plabel = label) - { - byte ret = BeginComboNative((byte*)plabel, previewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, byte* previewValue, ImGuiComboFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative(pStr0, previewValue, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, byte* previewValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative(pStr0, previewValue, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, ref byte previewValue, ImGuiComboFlags flags) - { - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, ref byte previewValue) - { - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative(label, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, ReadOnlySpan<byte> previewValue, ImGuiComboFlags flags) - { - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, ReadOnlySpan<byte> previewValue) - { - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative(label, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, string previewValue, ImGuiComboFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative(label, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(byte* label, string previewValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative(label, pStr0, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, ref byte previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, ref byte previewValue) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, ReadOnlySpan<byte> previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, ReadOnlySpan<byte> previewValue) - { - fixed (byte* plabel = label) - { - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, string previewValue, ImGuiComboFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (previewValue != null) - { - pStrSize1 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginComboNative(pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, string previewValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (previewValue != null) - { - pStrSize1 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginComboNative(pStr0, pStr1, (ImGuiComboFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, ReadOnlySpan<byte> previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, ReadOnlySpan<byte> previewValue) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, string previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative((byte*)plabel, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ref byte label, string previewValue) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative((byte*)plabel, pStr0, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, ref byte previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, ref byte previewValue) - { - fixed (byte* plabel = label) - { - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, string previewValue, ImGuiComboFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative((byte*)plabel, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(ReadOnlySpan<byte> label, string previewValue) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative((byte*)plabel, pStr0, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, ref byte previewValue, ImGuiComboFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, ref byte previewValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppreviewValue = &previewValue) - { - byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, ReadOnlySpan<byte> previewValue, ImGuiComboFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginCombo(string label, ReadOnlySpan<byte> previewValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppreviewValue = previewValue) - { - byte ret = BeginComboNative(pStr0, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndComboNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[160])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[160])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndCombo() - { - EndComboNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ComboNative(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, byte**, int, int, byte>)funcTable[161])(label, currentItem, items, itemsCount, popupMaxHeightInItems); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, byte>)funcTable[161])((nint)label, (nint)currentItem, (nint)items, itemsCount, popupMaxHeightInItems); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - byte ret = ComboNative(label, currentItem, items, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, byte** items, int itemsCount) - { - byte ret = ComboNative(label, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = label) - { - byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, items, itemsCount, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, byte** items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.002.cs deleted file mode 100644 index ef419aeab..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.002.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, byte** items, int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, byte** items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, string[] items, int itemsCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(pStr0, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, string[] items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(pStr0, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, string[] items, int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, string[] items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ComboNative(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, byte*, int, byte>)funcTable[162])(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, byte>)funcTable[162])((nint)label, (nint)currentItem, (nint)itemsSeparatedByZeros, popupMaxHeightInItems); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, byte* itemsSeparatedByZeros) - { - byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, byte* itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, byte* itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, byte* itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, itemsSeparatedByZeros, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, byte* itemsSeparatedByZeros) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, byte* itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, byte* itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, byte* itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, ref byte itemsSeparatedByZeros) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(label, currentItem, pStr0, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, string itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(label, currentItem, pStr0, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, ref byte itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, currentItem, pStr1, popupMaxHeightInItems); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, string itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, currentItem, pStr1, (int)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, currentItem, pStr0, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, string itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, currentItem, pStr0, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, ref byte itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, currentItem, pStr0, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, string itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, currentItem, pStr0, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, ref byte itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, ref byte itemsSeparatedByZeros) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, string itemsSeparatedByZeros) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, ref byte itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStr1, popupMaxHeightInItems); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, string itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStr1, (int)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, string itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, ref byte itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, string itemsSeparatedByZeros) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) - { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, pStr0, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, ref byte itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, ReadOnlySpan<byte> itemsSeparatedByZeros) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = itemsSeparatedByZeros) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ComboNative(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>, void*, int, int, byte>)funcTable[163])(label, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, int, byte>)funcTable[163])((nint)label, (nint)currentItem, (nint)itemsGetter, (nint)data, itemsCount, popupMaxHeightInItems); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - byte ret = ComboNative(label, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - byte ret = ComboNative(label, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(byte* label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ref byte label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(ReadOnlySpan<byte> label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Combo(string label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragFloatNative(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[164])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, float, nint, ImGuiSliderFlags, byte>)funcTable[164])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax) - { - bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin) - { - bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed) - { - bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v) - { - bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, byte* format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, byte* format) - { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, byte* format) - { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, ImGuiSliderFlags flags) - { - bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.003.cs deleted file mode 100644 index 55fe51cd2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.003.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(byte* label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ref byte label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(ReadOnlySpan<byte> label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat(string label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragFloat2Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[165])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, float, nint, ImGuiSliderFlags, byte>)funcTable[165])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed) - { - bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v) - { - bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, byte* format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, byte* format) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, byte* format) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.004.cs deleted file mode 100644 index 5dcd62653..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.004.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.005.cs deleted file mode 100644 index 83c463f32..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.005.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref Vector2 v, string format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(byte* label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref Vector2 v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ref byte label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(ReadOnlySpan<byte> label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat2(string label, ref float v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragFloat3Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[166])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, float, nint, ImGuiSliderFlags, byte>)funcTable[166])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed) - { - bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v) - { - bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, byte* format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, byte* format) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, byte* format) - { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat3(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.006.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.006.cs deleted file mode 100644 index 4c6e00a26..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.006.cs +++ /dev/null @@ -1,5052 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.007.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.007.cs deleted file mode 100644 index ac357a46b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.007.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref Vector3 v, string format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(byte* label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref Vector3 v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ref byte label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(ReadOnlySpan<byte> label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat3(string label, ref float v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragFloat4Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[167])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, float, nint, ImGuiSliderFlags, byte>)funcTable[167])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax) - { - bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin) - { - bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed) - { - bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v) - { - bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, byte* format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, byte* format) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, byte* format) - { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, ImGuiSliderFlags flags) - { - bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat4(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, byte* format) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.008.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.008.cs deleted file mode 100644 index 9afd36d0b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.008.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, float* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, float* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref Vector4 v, string format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(byte* label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.009.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.009.cs deleted file mode 100644 index 51ccc2022..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.009.cs +++ /dev/null @@ -1,5035 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref Vector4 v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ref byte label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(ReadOnlySpan<byte> label, ref float v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloat4(string label, ref float v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragFloatRange2Native(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float*, float, float, float, byte*, byte*, ImGuiSliderFlags, byte>)funcTable[168])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, float, float, float, nint, nint, ImGuiSliderFlags, byte>)funcTable[168])((nint)label, (nint)vCurrentMin, (nint)vCurrentMax, vSpeed, vMin, vMax, (nint)format, (nint)formatMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.010.cs deleted file mode 100644 index a8b281f57..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.010.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.011.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.011.cs deleted file mode 100644 index 69bddbacc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.011.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.012.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.012.cs deleted file mode 100644 index c8f5a60a3..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.012.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.013.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.013.cs deleted file mode 100644 index 4406c8c35..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.013.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.014.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.014.cs deleted file mode 100644 index 50cafdd04..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.014.cs +++ /dev/null @@ -1,5049 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.015.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.015.cs deleted file mode 100644 index c236a100a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.015.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.016.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.016.cs deleted file mode 100644 index 0b7320f8e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.016.cs +++ /dev/null @@ -1,5055 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.017.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.017.cs deleted file mode 100644 index 83455d0b6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.017.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.018.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.018.cs deleted file mode 100644 index 315438676..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.018.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.019.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.019.cs deleted file mode 100644 index 7c3600fc5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.019.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.020.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.020.cs deleted file mode 100644 index 534f3f04a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.020.cs +++ /dev/null @@ -1,5055 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.021.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.021.cs deleted file mode 100644 index 9b3c2a49e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.021.cs +++ /dev/null @@ -1,5070 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, float* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.022.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.022.cs deleted file mode 100644 index b399d7276..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.022.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.023.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.023.cs deleted file mode 100644 index ba08d3b40..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.023.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, float* vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.024.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.024.cs deleted file mode 100644 index e17d7b88e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.024.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ref byte label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.025.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.025.cs deleted file mode 100644 index e8fa9de84..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.025.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(ReadOnlySpan<byte> label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragFloatRange2(string label, ref float vCurrentMin, ref float vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragIntNative(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[169])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, int, int, nint, ImGuiSliderFlags, byte>)funcTable[169])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax) - { - bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin) - { - bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed) - { - bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v) - { - bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, byte* format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, byte* format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, byte* format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, byte* format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.026.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.026.cs deleted file mode 100644 index 13fe574fb..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.026.cs +++ /dev/null @@ -1,5046 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.027.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.027.cs deleted file mode 100644 index 25c283442..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.027.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragInt2Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[170])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, int, int, nint, ImGuiSliderFlags, byte>)funcTable[170])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax) - { - bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin) - { - bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed) - { - bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v) - { - bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, byte* format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, byte* format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, byte* format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, byte* format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.028.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.028.cs deleted file mode 100644 index 44e790633..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.028.cs +++ /dev/null @@ -1,5055 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.029.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.029.cs deleted file mode 100644 index 6c0907127..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.029.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.030.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.030.cs deleted file mode 100644 index 8aa47663b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.030.cs +++ /dev/null @@ -1,5041 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt2(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragInt3Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[171])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, int, int, nint, ImGuiSliderFlags, byte>)funcTable[171])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax) - { - bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin) - { - bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed) - { - bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v) - { - bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, byte* format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, byte* format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, byte* format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, byte* format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.031.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.031.cs deleted file mode 100644 index d0808309d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.031.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.032.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.032.cs deleted file mode 100644 index a76981b47..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.032.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt3(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragInt4Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, float, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[172])(label, v, vSpeed, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, int, int, nint, ImGuiSliderFlags, byte>)funcTable[172])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax) - { - bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin) - { - bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed) - { - bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v) - { - bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, byte* format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, byte* format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, byte* format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, byte* format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.033.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.033.cs deleted file mode 100644 index 5665093dc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.033.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.034.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.034.cs deleted file mode 100644 index 56500bdce..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.034.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.035.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.035.cs deleted file mode 100644 index e927d8082..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.035.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragInt4(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragIntRange2Native(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int*, float, int, int, byte*, byte*, ImGuiSliderFlags, byte>)funcTable[173])(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, float, int, int, nint, nint, ImGuiSliderFlags, byte>)funcTable[173])((nint)label, (nint)vCurrentMin, (nint)vCurrentMax, vSpeed, vMin, vMax, (nint)format, (nint)formatMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.036.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.036.cs deleted file mode 100644 index 21deff228..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.036.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.037.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.037.cs deleted file mode 100644 index ddc929b65..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.037.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.038.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.038.cs deleted file mode 100644 index d9174e662..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.038.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.039.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.039.cs deleted file mode 100644 index 8e4ba485c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.039.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.040.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.040.cs deleted file mode 100644 index 6f42a126e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.040.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.041.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.041.cs deleted file mode 100644 index 4e6be1620..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.041.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.042.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.042.cs deleted file mode 100644 index adf4493f6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.042.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.043.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.043.cs deleted file mode 100644 index 2b588b10f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.043.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, byte* formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.044.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.044.cs deleted file mode 100644 index 49d765f5d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.044.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.045.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.045.cs deleted file mode 100644 index 3b5225a10..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.045.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.046.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.046.cs deleted file mode 100644 index b6dc4b42b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.046.cs +++ /dev/null @@ -1,5061 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.047.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.047.cs deleted file mode 100644 index 7137bd220..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.047.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.048.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.048.cs deleted file mode 100644 index 8352132ae..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.048.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.049.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.049.cs deleted file mode 100644 index 961696389..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.049.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.050.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.050.cs deleted file mode 100644 index 0e9df3685..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.050.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.051.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.051.cs deleted file mode 100644 index d83b9ff8f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.051.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.052.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.052.cs deleted file mode 100644 index 7e48a4952..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.052.cs +++ /dev/null @@ -1,5067 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.053.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.053.cs deleted file mode 100644 index 80fe0728b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.053.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.054.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.054.cs deleted file mode 100644 index 072fc48f6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.054.cs +++ /dev/null @@ -1,5067 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.055.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.055.cs deleted file mode 100644 index 83ecf762d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.055.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.056.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.056.cs deleted file mode 100644 index 6b011fb40..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.056.cs +++ /dev/null @@ -1,5091 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.057.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.057.cs deleted file mode 100644 index d782d04e0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.057.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ref byte label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.058.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.058.cs deleted file mode 100644 index d5cd11b61..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.058.cs +++ /dev/null @@ -1,5055 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(ReadOnlySpan<byte> label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.059.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.059.cs deleted file mode 100644 index a0a10ad1b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.059.cs +++ /dev/null @@ -1,5044 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ReadOnlySpan<byte> format, string formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = format) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ref byte formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragIntRange2(string label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, ReadOnlySpan<byte> formatMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pformatMax = formatMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)pformatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragScalarNative(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, float, void*, void*, byte*, ImGuiSliderFlags, byte>)funcTable[174])(label, dataType, pData, vSpeed, pMin, pMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDataType, nint, float, nint, nint, nint, ImGuiSliderFlags, byte>)funcTable[174])((nint)label, dataType, (nint)pData, vSpeed, (nint)pMin, (nint)pMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.060.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.060.cs deleted file mode 100644 index 2caa743e9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.060.cs +++ /dev/null @@ -1,5059 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, int, float, void*, void*, byte*, ImGuiSliderFlags, byte>)funcTable[175])(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDataType, nint, int, float, nint, nint, nint, ImGuiSliderFlags, byte>)funcTable[175])((nint)label, dataType, (nint)pData, components, vSpeed, (nint)pMin, (nint)pMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.061.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.061.cs deleted file mode 100644 index 549bd11ab..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.061.cs +++ /dev/null @@ -1,5036 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, float vSpeed, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, float vSpeed, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderFloatNative(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[176])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, nint, ImGuiSliderFlags, byte>)funcTable[176])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, byte* format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax) - { - bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(byte* label, ref float v, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ref byte label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderFloat2Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[177])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, nint, ImGuiSliderFlags, byte>)funcTable[177])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, byte* format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax) - { - bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat2(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat2(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format) - { - fixed (float* pv = v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ReadOnlySpan<float> v, float vMin, float vMax) - { - fixed (float* pv = v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax) - { - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.062.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.062.cs deleted file mode 100644 index 3a4924846..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.062.cs +++ /dev/null @@ -1,5063 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref Vector2 v, float vMin, float vMax, string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(byte* label, ref float v, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref Vector2 v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ref byte label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat2(string label, ref float v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderFloat3Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[178])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, nint, ImGuiSliderFlags, byte>)funcTable[178])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, byte* format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax) - { - bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat3(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat3(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format) - { - fixed (float* pv = v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ReadOnlySpan<float> v, float vMin, float vMax) - { - fixed (float* pv = v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax) - { - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref Vector3 v, float vMin, float vMax, string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(byte* label, ref float v, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref Vector3 v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ref byte label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat3(string label, ref float v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderFloat4Native(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[179])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, nint, ImGuiSliderFlags, byte>)funcTable[179])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, byte* format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax) - { - bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat4(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat4(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format) - { - fixed (float* pv = v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ReadOnlySpan<float> v, float vMin, float vMax) - { - fixed (float* pv = v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax) - { - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.063.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.063.cs deleted file mode 100644 index b402f476a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.063.cs +++ /dev/null @@ -1,5047 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref Vector4 v, float vMin, float vMax, string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(byte* label, ref float v, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref Vector4 v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ref byte label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(ReadOnlySpan<byte> label, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderFloat4(string label, ref float v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderAngleNative(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[180])(label, vRad, vDegreesMin, vDegreesMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, nint, ImGuiSliderFlags, byte>)funcTable[180])((nint)label, (nint)vRad, vDegreesMin, vDegreesMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad) - { - bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, byte* format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, byte* format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, ImGuiSliderFlags flags) - { - bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin) - { - fixed (byte* plabel = label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad) - { - fixed (byte* plabel = label) - { - bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, byte* format) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, byte* format) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, float* vRad, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, float vDegreesMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, float* vRad, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, float vDegreesMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, float* vRad, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, float* vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ref byte format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, ref byte format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, ReadOnlySpan<byte> format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, string format) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, string format) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.064.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.064.cs deleted file mode 100644 index 37831b3c6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.064.cs +++ /dev/null @@ -1,5048 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(byte* label, ref float vRad, string format, ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ref byte label, ref float vRad, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, float vDegreesMin, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(ReadOnlySpan<byte> label, ref float vRad, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, float vDegreesMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, float vDegreesMin, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderAngle(string label, ref float vRad, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = format) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderIntNative(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[181])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, int, int, nint, ImGuiSliderFlags, byte>)funcTable[181])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderIntNative(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax) - { - bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderInt2Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[182])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, int, int, nint, ImGuiSliderFlags, byte>)funcTable[182])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax) - { - bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt2(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt2(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt2(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt2(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.065.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.065.cs deleted file mode 100644 index 02748639e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.065.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt2(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderInt3Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[183])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, int, int, nint, ImGuiSliderFlags, byte>)funcTable[183])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax) - { - bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt3(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt3(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt3(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt3(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt3(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderInt4Native(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[184])(label, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, int, int, nint, ImGuiSliderFlags, byte>)funcTable[184])((nint)label, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, byte* format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax) - { - bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt4(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt4(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (int* pv = v) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (int* pv = v) - { - bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt4(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt4(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(byte* label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ref byte label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(ReadOnlySpan<byte> label, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderInt4(string label, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, void*, void*, byte*, ImGuiSliderFlags, byte>)funcTable[185])(label, dataType, pData, pMin, pMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDataType, nint, nint, nint, nint, ImGuiSliderFlags, byte>)funcTable[185])((nint)label, dataType, (nint)pData, (nint)pMin, (nint)pMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(byte* label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.066.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.066.cs deleted file mode 100644 index 976d82f2d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.066.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalar(string label, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, int, void*, void*, byte*, ImGuiSliderFlags, byte>)funcTable[186])(label, dataType, pData, components, pMin, pMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDataType, nint, int, nint, nint, nint, ImGuiSliderFlags, byte>)funcTable[186])((nint)label, dataType, (nint)pData, components, (nint)pMin, (nint)pMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte VSliderFloatNative(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, float*, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[187])(label, size, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, nint, float, float, nint, ImGuiSliderFlags, byte>)funcTable[187])((nint)label, size, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax) - { - bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderFloat(pStr0, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderFloat(pStr0, size, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = VSliderFloat(pStr0, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = VSliderFloat(pStr0, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, float* v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, float* v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(byte* label, Vector2 size, ref float v, float vMin, float vMax, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ref byte label, Vector2 size, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(ReadOnlySpan<byte> label, Vector2 size, ref float v, float vMin, float vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderFloat(string label, Vector2 size, ref float v, float vMin, float vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte VSliderIntNative(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, int*, int, int, byte*, ImGuiSliderFlags, byte>)funcTable[188])(label, size, v, vMin, vMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, nint, int, int, nint, ImGuiSliderFlags, byte>)funcTable[188])((nint)label, size, (nint)v, vMin, vMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax) - { - bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderInt(pStr0, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderInt(pStr0, size, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, byte* format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = VSliderInt(pStr0, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = VSliderInt(pStr0, size, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, int* v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, int* v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(byte* label, Vector2 size, ref int v, int vMin, int vMax, string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ref byte label, Vector2 size, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(ReadOnlySpan<byte> label, Vector2 size, ref int v, int vMin, int vMax, string format) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderInt(string label, Vector2 size, ref int v, int vMin, int vMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte VSliderScalarNative(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiDataType, void*, void*, void*, byte*, ImGuiSliderFlags, byte>)funcTable[189])(label, size, dataType, pData, pMin, pMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiDataType, nint, nint, nint, nint, ImGuiSliderFlags, byte>)funcTable[189])((nint)label, size, dataType, (nint)pData, (nint)pMin, (nint)pMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - fixed (byte* plabel = label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.067.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.067.cs deleted file mode 100644 index 326a92c51..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.067.cs +++ /dev/null @@ -1,5044 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ref byte label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(ReadOnlySpan<byte> label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool VSliderScalar(string label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputFloatNative(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, byte*, ImGuiInputTextFlags, byte>)funcTable[190])(label, v, step, stepFast, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, nint, ImGuiInputTextFlags, byte>)funcTable[190])((nint)label, (nint)v, step, stepFast, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputFloatNative(label, v, step, stepFast, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, byte* format) - { - byte ret = InputFloatNative(label, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast) - { - bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step) - { - bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v) - { - bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, byte* format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, byte* format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, ImGuiInputTextFlags flags) - { - bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, ImGuiInputTextFlags flags) - { - bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, ImGuiInputTextFlags flags) - { - bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, stepFast, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, stepFast, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, float stepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, float step, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, float stepFast, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, float step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, float stepFast, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, float step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, float stepFast, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, float stepFast, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, float step, string format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(byte* label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.068.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.068.cs deleted file mode 100644 index 5c2296c12..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.068.cs +++ /dev/null @@ -1,5027 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, float stepFast, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, float step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, float stepFast, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, float step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(ReadOnlySpan<byte> label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, float stepFast, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, float step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat(string label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputFloat2Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, byte*, ImGuiInputTextFlags, byte>)funcTable[191])(label, v, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, ImGuiInputTextFlags, byte>)funcTable[191])((nint)label, (nint)v, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputFloat2Native(label, v, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, byte* format) - { - byte ret = InputFloat2Native(label, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v) - { - bool ret = InputFloat2(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, ImGuiInputTextFlags flags) - { - bool ret = InputFloat2(label, v, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat2Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat2Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputFloat2Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputFloat2Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(pStr0, v, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat2(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat2(pStr0, v, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ReadOnlySpan<float> v, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ReadOnlySpan<float> v, byte* format) - { - fixed (float* pv = v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ReadOnlySpan<float> v) - { - fixed (float* pv = v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ReadOnlySpan<float> v, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref Vector2 v, byte* format, ImGuiInputTextFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref Vector2 v, byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref Vector2 v) - { - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref Vector2 v, ImGuiInputTextFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref Vector2 v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref Vector2 v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref Vector2 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref Vector2 v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, v, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(pStr0, v, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(pStr0, v, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref Vector2 v, string format, ImGuiInputTextFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref Vector2 v, string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref Vector2 v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref Vector2 v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat2(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputFloat3Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, byte*, ImGuiInputTextFlags, byte>)funcTable[192])(label, v, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, ImGuiInputTextFlags, byte>)funcTable[192])((nint)label, (nint)v, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputFloat3Native(label, v, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, byte* format) - { - byte ret = InputFloat3Native(label, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v) - { - bool ret = InputFloat3(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, ImGuiInputTextFlags flags) - { - bool ret = InputFloat3(label, v, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat3Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat3Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputFloat3Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputFloat3Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(pStr0, v, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat3(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat3(pStr0, v, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ReadOnlySpan<float> v, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ReadOnlySpan<float> v, byte* format) - { - fixed (float* pv = v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ReadOnlySpan<float> v) - { - fixed (float* pv = v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ReadOnlySpan<float> v, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref Vector3 v, byte* format, ImGuiInputTextFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref Vector3 v, byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref Vector3 v) - { - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref Vector3 v, ImGuiInputTextFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref Vector3 v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref Vector3 v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref Vector3 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref Vector3 v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, v, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(pStr0, v, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(pStr0, v, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref Vector3 v, string format, ImGuiInputTextFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref Vector3 v, string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.069.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.069.cs deleted file mode 100644 index 3c04206a6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.069.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref Vector3 v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref Vector3 v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat3(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputFloat4Native(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, byte*, ImGuiInputTextFlags, byte>)funcTable[193])(label, v, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, ImGuiInputTextFlags, byte>)funcTable[193])((nint)label, (nint)v, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputFloat4Native(label, v, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, byte* format) - { - byte ret = InputFloat4Native(label, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v) - { - bool ret = InputFloat4(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, ImGuiInputTextFlags flags) - { - bool ret = InputFloat4(label, v, (string)"%.3f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat4Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat4Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputFloat4Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputFloat4Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(pStr0, v, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat4(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat4(pStr0, v, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ReadOnlySpan<float> v, byte* format, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ReadOnlySpan<float> v, byte* format) - { - fixed (float* pv = v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ReadOnlySpan<float> v) - { - fixed (float* pv = v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ReadOnlySpan<float> v, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref Vector4 v, byte* format, ImGuiInputTextFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref Vector4 v, byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref Vector4 v) - { - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref Vector4 v, ImGuiInputTextFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref Vector4 v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref Vector4 v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref Vector4 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref Vector4 v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, v, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, float* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, float* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(pStr0, v, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(pStr0, v, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, float* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(pStr0, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref Vector4 v, string format, ImGuiInputTextFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref Vector4 v, string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, ReadOnlySpan<byte> format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(byte* label, ref float v, string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ReadOnlySpan<float> v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref Vector4 v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref Vector4 v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ref byte label, ref float v, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(ReadOnlySpan<byte> label, ref float v, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputFloat4(string label, ref float v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputIntNative(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, ImGuiInputTextFlags, byte>)funcTable[194])(label, v, step, stepFast, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, int, int, ImGuiInputTextFlags, byte>)funcTable[194])((nint)label, (nint)v, step, stepFast, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) - { - byte ret = InputIntNative(label, v, step, stepFast, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, int* v, int step, int stepFast) - { - byte ret = InputIntNative(label, v, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, int* v, int step) - { - byte ret = InputIntNative(label, v, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, int* v) - { - byte ret = InputIntNative(label, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, int* v, int step, ImGuiInputTextFlags flags) - { - byte ret = InputIntNative(label, v, step, (int)(100), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, int* v, ImGuiInputTextFlags flags) - { - byte ret = InputIntNative(label, v, (int)(1), (int)(100), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, stepFast, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, int* v, int step, int stepFast) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, int* v, int step) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, int* v, int step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputIntNative((byte*)plabel, v, step, stepFast, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, int* v, int step, int stepFast) - { - fixed (byte* plabel = label) - { - byte ret = InputIntNative((byte*)plabel, v, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, int* v, int step) - { - fixed (byte* plabel = label) - { - byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, int* v, int step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, int* v, int step, int stepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, stepFast, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, int* v, int step, int stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, stepFast, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, int* v, int step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, int* v, int step, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, int* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, (int)(1), (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, ref int v, int step, int stepFast, ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, stepFast, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, ref int v, int step, int stepFast) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, ref int v, int step) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, ref int v, int step, ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, (int)(100), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(byte* label, ref int v, ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, ref int v, int step, int stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, ref int v, int step, int stepFast) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, ref int v, int step) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, ref int v, int step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ref byte label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, ref int v, int step, int stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, ref int v, int step, int stepFast) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, ref int v, int step) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, ref int v, int step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(ReadOnlySpan<byte> label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, ref int v, int step, int stepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, stepFast, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, ref int v, int step, int stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, ref int v, int step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, ref int v, int step, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt(string label, ref int v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, (int)(1), (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputInt2Native(byte* label, int* v, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, ImGuiInputTextFlags, byte>)funcTable[195])(label, v, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiInputTextFlags, byte>)funcTable[195])((nint)label, (nint)v, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(byte* label, int* v, ImGuiInputTextFlags flags) - { - byte ret = InputInt2Native(label, v, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(byte* label, int* v) - { - byte ret = InputInt2Native(label, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ref byte label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt2Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt2Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ReadOnlySpan<byte> label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputInt2Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - byte ret = InputInt2Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(string label, int* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt2Native(pStr0, v, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt2Native(pStr0, v, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(byte* label, ref int v, ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native(label, (int*)pv, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(byte* label, ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(byte* label, ReadOnlySpan<int> v, ImGuiInputTextFlags flags) - { - fixed (int* pv = v) - { - byte ret = InputInt2Native(label, (int*)pv, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(byte* label, ReadOnlySpan<int> v) - { - fixed (int* pv = v) - { - byte ret = InputInt2Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ref byte label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ReadOnlySpan<byte> label, ReadOnlySpan<int> v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(string label, ref int v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt2Native(pStr0, (int*)pv, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt2Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ReadOnlySpan<byte> label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt2(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputInt3Native(byte* label, int* v, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, ImGuiInputTextFlags, byte>)funcTable[196])(label, v, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiInputTextFlags, byte>)funcTable[196])((nint)label, (nint)v, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(byte* label, int* v, ImGuiInputTextFlags flags) - { - byte ret = InputInt3Native(label, v, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(byte* label, int* v) - { - byte ret = InputInt3Native(label, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ref byte label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt3Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt3Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ReadOnlySpan<byte> label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputInt3Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - byte ret = InputInt3Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(string label, int* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt3Native(pStr0, v, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt3Native(pStr0, v, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(byte* label, ref int v, ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native(label, (int*)pv, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(byte* label, ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(byte* label, ReadOnlySpan<int> v, ImGuiInputTextFlags flags) - { - fixed (int* pv = v) - { - byte ret = InputInt3Native(label, (int*)pv, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(byte* label, ReadOnlySpan<int> v) - { - fixed (int* pv = v) - { - byte ret = InputInt3Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ref byte label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ReadOnlySpan<byte> label, ReadOnlySpan<int> v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(string label, ref int v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt3Native(pStr0, (int*)pv, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt3Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ReadOnlySpan<byte> label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt3(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputInt4Native(byte* label, int* v, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, ImGuiInputTextFlags, byte>)funcTable[197])(label, v, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiInputTextFlags, byte>)funcTable[197])((nint)label, (nint)v, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(byte* label, int* v, ImGuiInputTextFlags flags) - { - byte ret = InputInt4Native(label, v, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(byte* label, int* v) - { - byte ret = InputInt4Native(label, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ref byte label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt4Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ref byte label, int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt4Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ReadOnlySpan<byte> label, int* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputInt4Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ReadOnlySpan<byte> label, int* v) - { - fixed (byte* plabel = label) - { - byte ret = InputInt4Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(string label, int* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt4Native(pStr0, v, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(string label, int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt4Native(pStr0, v, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(byte* label, ref int v, ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native(label, (int*)pv, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(byte* label, ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(byte* label, ReadOnlySpan<int> v, ImGuiInputTextFlags flags) - { - fixed (int* pv = v) - { - byte ret = InputInt4Native(label, (int*)pv, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(byte* label, ReadOnlySpan<int> v) - { - fixed (int* pv = v) - { - byte ret = InputInt4Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ref byte label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ref byte label, ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ReadOnlySpan<byte> label, ReadOnlySpan<int> v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(string label, ref int v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt4Native(pStr0, (int*)pv, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(string label, ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt4Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ReadOnlySpan<byte> label, ref int v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputInt4(ReadOnlySpan<byte> label, ref int v) - { - fixed (byte* plabel = label) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.070.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.070.cs deleted file mode 100644 index a01e0c39b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.070.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputDoubleNative(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, double*, double, double, byte*, ImGuiInputTextFlags, byte>)funcTable[198])(label, v, step, stepFast, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, double, double, nint, ImGuiInputTextFlags, byte>)funcTable[198])((nint)label, (nint)v, step, stepFast, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputDoubleNative(label, v, step, stepFast, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, byte* format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast) - { - bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step) - { - bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v) - { - bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, byte* format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, byte* format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, ImGuiInputTextFlags flags) - { - bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, ImGuiInputTextFlags flags) - { - bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, ImGuiInputTextFlags flags) - { - bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast) - { - fixed (byte* plabel = label) - { - bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step) - { - fixed (byte* plabel = label) - { - bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v) - { - fixed (byte* plabel = label) - { - bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, stepFast, (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, byte* format) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, byte* format) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, byte* format) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, byte* format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, byte* format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, byte* format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, byte* format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, byte* format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, stepFast, (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, double stepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, double step, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, double* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, double stepFast, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, double step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, double* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, double stepFast, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, double step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, double* v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, double stepFast, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, double* v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ref byte format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, ref byte format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, ref byte format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, ReadOnlySpan<byte> format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, ReadOnlySpan<byte> format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, double stepFast, string format) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, string format) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, string format) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, double step, string format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(byte* label, ref double v, string format, ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, double stepFast, string format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, string format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, string format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, double step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ref byte label, ref double v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, double stepFast, string format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, string format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, string format) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, double step, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(ReadOnlySpan<byte> label, ref double v, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.071.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.071.cs deleted file mode 100644 index 626b44154..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.071.cs +++ /dev/null @@ -1,5027 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, double stepFast, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, double step, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputDouble(string label, ref double v, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - fixed (byte* pformat = format) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputScalarNative(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, void*, void*, byte*, ImGuiInputTextFlags, byte>)funcTable[199])(label, dataType, pData, pStep, pStepFast, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDataType, nint, nint, nint, nint, ImGuiInputTextFlags, byte>)funcTable[199])((nint)label, dataType, (nint)pData, (nint)pStep, (nint)pStepFast, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, byte* format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, void* pStep, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(byte* label, ImGuiDataType dataType, void* pData, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, void* pStep, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ref byte label, ImGuiDataType dataType, void* pData, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, void* pStep, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalar(string label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputScalarNNative(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, int, void*, void*, byte*, ImGuiInputTextFlags, byte>)funcTable[200])(label, dataType, pData, components, pStep, pStepFast, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDataType, nint, int, nint, nint, nint, ImGuiInputTextFlags, byte>)funcTable[200])((nint)label, dataType, (nint)pData, components, (nint)pStep, (nint)pStepFast, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, byte* format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(byte* label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ref byte label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.072.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.072.cs deleted file mode 100644 index 8f7315bc7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.072.cs +++ /dev/null @@ -1,5041 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, void* pStep, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, int components, string format, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ref byte format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, void* pStepFast, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, void* pStep, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputScalarN(string label, ImGuiDataType dataType, void* pData, int components, ReadOnlySpan<byte> format, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColorEdit3Native(byte* label, float* col, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, byte>)funcTable[201])(label, col, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiColorEditFlags, byte>)funcTable[201])((nint)label, (nint)col, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, float* col, ImGuiColorEditFlags flags) - { - byte ret = ColorEdit3Native(label, col, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, float* col) - { - byte ret = ColorEdit3Native(label, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ref byte label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit3Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ref byte label, float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ReadOnlySpan<byte> label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = ColorEdit3Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ReadOnlySpan<byte> label, float* col) - { - fixed (byte* plabel = label) - { - byte ret = ColorEdit3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(string label, float* col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit3Native(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(string label, float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit3Native(pStr0, col, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, ReadOnlySpan<float> col) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, ref Vector3 col, ImGuiColorEditFlags flags) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(byte* label, ref Vector3 col) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ref byte label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ref byte label, ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ReadOnlySpan<byte> label, ReadOnlySpan<float> col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(string label, ref Vector3 col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(string label, ref Vector3 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ReadOnlySpan<byte> label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(ReadOnlySpan<byte> label, ref float col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(string label, ref float col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit3(string label, ref float col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColorEdit4Native(byte* label, float* col, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, byte>)funcTable[202])(label, col, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiColorEditFlags, byte>)funcTable[202])((nint)label, (nint)col, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, float* col, ImGuiColorEditFlags flags) - { - byte ret = ColorEdit4Native(label, col, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, float* col) - { - byte ret = ColorEdit4Native(label, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ref byte label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit4Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ref byte label, float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ReadOnlySpan<byte> label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = ColorEdit4Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ReadOnlySpan<byte> label, float* col) - { - fixed (byte* plabel = label) - { - byte ret = ColorEdit4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(string label, float* col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit4Native(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(string label, float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit4Native(pStr0, col, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, ReadOnlySpan<float> col) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(byte* label, ref Vector4 col) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ref byte label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ref byte label, ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(string label, ref Vector4 col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(string label, ref Vector4 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ReadOnlySpan<byte> label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(ReadOnlySpan<byte> label, ref float col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(string label, ref float col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorEdit4(string label, ref float col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColorPicker3Native(byte* label, float* col, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, byte>)funcTable[203])(label, col, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiColorEditFlags, byte>)funcTable[203])((nint)label, (nint)col, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, float* col, ImGuiColorEditFlags flags) - { - byte ret = ColorPicker3Native(label, col, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, float* col) - { - byte ret = ColorPicker3Native(label, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ref byte label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker3Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ref byte label, float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ReadOnlySpan<byte> label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = ColorPicker3Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ReadOnlySpan<byte> label, float* col) - { - fixed (byte* plabel = label) - { - byte ret = ColorPicker3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(string label, float* col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker3Native(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(string label, float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker3Native(pStr0, col, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, ReadOnlySpan<float> col) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, ref Vector3 col, ImGuiColorEditFlags flags) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(byte* label, ref Vector3 col) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ref byte label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ref byte label, ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ReadOnlySpan<byte> label, ReadOnlySpan<float> col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(string label, ref Vector3 col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(string label, ref Vector3 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ReadOnlySpan<byte> label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(ReadOnlySpan<byte> label, ref float col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(string label, ref float col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker3(string label, ref float col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColorPicker4Native(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, float*, byte>)funcTable[204])(label, col, flags, refCol); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiColorEditFlags, nint, byte>)funcTable[204])((nint)label, (nint)col, flags, (nint)refCol); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, float* refCol) - { - byte ret = ColorPicker4Native(label, col, flags, refCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags) - { - byte ret = ColorPicker4Native(label, col, flags, (float*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, float* col) - { - byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, float* col, float* refCol) - { - byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, float* col, float* refCol) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, float* col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (byte* plabel = label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, float* col) - { - fixed (byte* plabel = label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, float* col, float* refCol) - { - fixed (byte* plabel = label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags, float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, flags, refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, flags, (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, float* col, float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref float col, float* refCol) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ReadOnlySpan<float> col) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ReadOnlySpan<float> col, float* refCol) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref Vector4 col) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref Vector4 col, float* refCol) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, ref float col, float* refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, float* refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags, float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref Vector4 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref Vector4 col, float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ref float col, ImGuiColorEditFlags flags, float* refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ref float col) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ref float col, float* refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags, float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref float col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref float col, float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, float* col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, col, flags, (float*)prefCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, float* col, ref float refCol) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, float* col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, float* col, ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, float* col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (byte* plabel = label) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, float* col, ref float refCol) - { - fixed (byte* plabel = label) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, float* col, ImGuiColorEditFlags flags, ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, col, flags, (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, float* col, ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref float col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref float col, ref float refCol) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (float* pcol = col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ReadOnlySpan<float> col, ref float refCol) - { - fixed (float* pcol = col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref Vector4 col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(byte* label, ref Vector4 col, ref float refCol) - { - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, ref float col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ref byte label, ref float col, ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ReadOnlySpan<float> col, ref float refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref Vector4 col, ImGuiColorEditFlags flags, ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref Vector4 col, ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ref float col, ImGuiColorEditFlags flags, ref float refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(ReadOnlySpan<byte> label, ref float col, ref float refCol) - { - fixed (byte* plabel = label) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref float col, ImGuiColorEditFlags flags, ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorPicker4(string label, ref float col, ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColorButtonNative(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector4, ImGuiColorEditFlags, Vector2, byte>)funcTable[205])(descId, col, flags, size); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector4, ImGuiColorEditFlags, Vector2, byte>)funcTable[205])((nint)descId, col, flags, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) - { - byte ret = ColorButtonNative(descId, col, flags, size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(byte* descId, Vector4 col, ImGuiColorEditFlags flags) - { - byte ret = ColorButtonNative(descId, col, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(byte* descId, Vector4 col) - { - byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(byte* descId, Vector4 col, Vector2 size) - { - byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ref byte descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ref byte descId, Vector4 col, ImGuiColorEditFlags flags) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ref byte descId, Vector4 col) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ref byte descId, Vector4 col, Vector2 size) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ReadOnlySpan<byte> descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) - { - fixed (byte* pdescId = descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ReadOnlySpan<byte> descId, Vector4 col, ImGuiColorEditFlags flags) - { - fixed (byte* pdescId = descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ReadOnlySpan<byte> descId, Vector4 col) - { - fixed (byte* pdescId = descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(ReadOnlySpan<byte> descId, Vector4 col, Vector2 size) - { - fixed (byte* pdescId = descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(string descId, Vector4 col, ImGuiColorEditFlags flags, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(string descId, Vector4 col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(string descId, Vector4 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColorButton(string descId, Vector4 col, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetColorEditOptionsNative(ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiColorEditFlags, void>)funcTable[206])(flags); - #else - ((delegate* unmanaged[Cdecl]<ImGuiColorEditFlags, void>)funcTable[206])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetColorEditOptions(ImGuiColorEditFlags flags) - { - SetColorEditOptionsNative(flags); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte>)funcTable[207])(label); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[207])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(byte* label) - { - byte ret = TreeNodeNative(label); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = TreeNodeNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeNative(byte* strId, byte* fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte>)funcTable[208])(strId, fmt); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[208])((nint)strId, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(byte* strId, byte* fmt) - { - byte ret = TreeNodeNative(strId, fmt); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ref byte strId, byte* fmt) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeNative((byte*)pstrId, fmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ReadOnlySpan<byte> strId, byte* fmt) - { - fixed (byte* pstrId = strId) - { - byte ret = TreeNodeNative((byte*)pstrId, fmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(string strId, byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(pStr0, fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(byte* strId, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative(strId, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(byte* strId, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeNative(strId, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(byte* strId, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(strId, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ref byte strId, ref byte fmt) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ReadOnlySpan<byte> strId, ReadOnlySpan<byte> fmt) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(string strId, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ref byte strId, ReadOnlySpan<byte> fmt) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ref byte strId, string fmt) - { - fixed (byte* pstrId = &strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative((byte*)pstrId, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ReadOnlySpan<byte> strId, ref byte fmt) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(ReadOnlySpan<byte> strId, string fmt) - { - fixed (byte* pstrId = strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative((byte*)pstrId, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(string strId, ref byte fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative(pStr0, (byte*)pfmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(string strId, ReadOnlySpan<byte> fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeNative(pStr0, (byte*)pfmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeNative(void* ptrId, byte* fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, byte*, byte>)funcTable[209])(ptrId, fmt); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[209])((nint)ptrId, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(void* ptrId, byte* fmt) - { - byte ret = TreeNodeNative(ptrId, fmt); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(void* ptrId, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative(ptrId, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(void* ptrId, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeNative(ptrId, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNode(void* ptrId, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(ptrId, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeVNative(byte* strId, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, byte>)funcTable[210])(strId, fmt, args); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nuint, byte>)funcTable[210])((nint)strId, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(byte* strId, byte* fmt, nuint args) - { - byte ret = TreeNodeVNative(strId, fmt, args); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ref byte strId, byte* fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeVNative((byte*)pstrId, fmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ReadOnlySpan<byte> strId, byte* fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - byte ret = TreeNodeVNative((byte*)pstrId, fmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(string strId, byte* fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative(pStr0, fmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(byte* strId, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(byte* strId, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(byte* strId, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative(strId, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ref byte strId, ref byte fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ReadOnlySpan<byte> strId, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(string strId, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeVNative(pStr0, pStr1, args); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ref byte strId, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ref byte strId, string fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative((byte*)pstrId, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ReadOnlySpan<byte> strId, ref byte fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(ReadOnlySpan<byte> strId, string fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative((byte*)pstrId, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(string strId, ref byte fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative(pStr0, (byte*)pfmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(string strId, ReadOnlySpan<byte> fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeVNative(pStr0, (byte*)pfmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeVNative(void* ptrId, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, byte*, nuint, byte>)funcTable[211])(ptrId, fmt, args); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nuint, byte>)funcTable[211])((nint)ptrId, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(void* ptrId, byte* fmt, nuint args) - { - byte ret = TreeNodeVNative(ptrId, fmt, args); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(void* ptrId, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative(ptrId, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(void* ptrId, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeVNative(ptrId, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeV(void* ptrId, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative(ptrId, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeExNative(byte* label, ImGuiTreeNodeFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte>)funcTable[212])(label, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTreeNodeFlags, byte>)funcTable[212])((nint)label, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(byte* label, ImGuiTreeNodeFlags flags) - { - byte ret = TreeNodeExNative(label, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(byte* label) - { - byte ret = TreeNodeExNative(label, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ref byte label, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeExNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeExNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ReadOnlySpan<byte> label, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = TreeNodeExNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = TreeNodeExNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(string label, ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(pStr0, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeExNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte*, byte>)funcTable[213])(strId, flags, fmt); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTreeNodeFlags, nint, byte>)funcTable[213])((nint)strId, flags, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt) - { - byte ret = TreeNodeExNative(strId, flags, fmt); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, byte* fmt) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, fmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, byte* fmt) - { - fixed (byte* pstrId = strId) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, fmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(pStr0, flags, fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(byte* strId, ImGuiTreeNodeFlags flags, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(strId, flags, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, ref byte fmt) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeExNative(pStr0, flags, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ref byte strId, ImGuiTreeNodeFlags flags, string fmt) - { - fixed (byte* pstrId = &strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative((byte*)pstrId, flags, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, ref byte fmt) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, string fmt) - { - fixed (byte* pstrId = strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative((byte*)pstrId, flags, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, ref byte fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative(pStr0, flags, (byte*)pfmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(string strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExNative(pStr0, flags, (byte*)pfmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeExNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, ImGuiTreeNodeFlags, byte*, byte>)funcTable[214])(ptrId, flags, fmt); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTreeNodeFlags, nint, byte>)funcTable[214])((nint)ptrId, flags, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt) - { - byte ret = TreeNodeExNative(ptrId, flags, fmt); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative(ptrId, flags, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExNative(ptrId, flags, (byte*)pfmt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeEx(void* ptrId, ImGuiTreeNodeFlags flags, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(ptrId, flags, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.073.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.073.cs deleted file mode 100644 index 6db5329e7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.073.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeExVNative(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte*, nuint, byte>)funcTable[215])(strId, flags, fmt, args); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTreeNodeFlags, nint, nuint, byte>)funcTable[215])((nint)strId, flags, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - byte ret = TreeNodeExVNative(strId, flags, fmt, args); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, fmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, fmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative(pStr0, flags, fmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative(strId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExVNative(strId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(byte* strId, ImGuiTreeNodeFlags flags, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative(strId, flags, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeExVNative(pStr0, flags, pStr1, args); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ref byte strId, ImGuiTreeNodeFlags flags, string fmt, nuint args) - { - fixed (byte* pstrId = &strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative((byte*)pstrId, flags, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(ReadOnlySpan<byte> strId, ImGuiTreeNodeFlags flags, string fmt, nuint args) - { - fixed (byte* pstrId = strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative((byte*)pstrId, flags, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative(pStr0, flags, (byte*)pfmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(string strId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExVNative(pStr0, flags, (byte*)pfmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeExVNative(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, ImGuiTreeNodeFlags, byte*, nuint, byte>)funcTable[216])(ptrId, flags, fmt, args); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTreeNodeFlags, nint, nuint, byte>)funcTable[216])((nint)ptrId, flags, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, byte* fmt, nuint args) - { - byte ret = TreeNodeExVNative(ptrId, flags, fmt, args); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative(ptrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - byte ret = TreeNodeExVNative(ptrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeExV(void* ptrId, ImGuiTreeNodeFlags flags, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative(ptrId, flags, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TreePushNative(byte* strId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[217])(strId); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[217])((nint)strId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePush(byte* strId) - { - TreePushNative(strId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePush(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - TreePushNative((byte*)pstrId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePush(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - TreePushNative((byte*)pstrId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePush(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TreePushNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TreePushNative(void* ptrId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void*, void>)funcTable[218])(ptrId); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[218])((nint)ptrId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePush(void* ptrId) - { - TreePushNative(ptrId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePush() - { - TreePushNative((void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TreePopNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[219])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[219])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePop() - { - TreePopNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetTreeNodeToLabelSpacingNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[220])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[220])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetTreeNodeToLabelSpacing() - { - float ret = GetTreeNodeToLabelSpacingNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CollapsingHeaderNative(byte* label, ImGuiTreeNodeFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTreeNodeFlags, byte>)funcTable[221])(label, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTreeNodeFlags, byte>)funcTable[221])((nint)label, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(byte* label, ImGuiTreeNodeFlags flags) - { - byte ret = CollapsingHeaderNative(label, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(byte* label) - { - byte ret = CollapsingHeaderNative(label, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ref byte label, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ReadOnlySpan<byte> label, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(string label, ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CollapsingHeaderNative(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiTreeNodeFlags, byte>)funcTable[222])(label, pVisible, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiTreeNodeFlags, byte>)funcTable[222])((nint)label, (nint)pVisible, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(byte* label, bool* pVisible, ImGuiTreeNodeFlags flags) - { - byte ret = CollapsingHeaderNative(label, pVisible, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(byte* label, bool* pVisible) - { - byte ret = CollapsingHeaderNative(label, pVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ref byte label, bool* pVisible, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ref byte label, bool* pVisible) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ReadOnlySpan<byte> label, bool* pVisible, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ReadOnlySpan<byte> label, bool* pVisible) - { - fixed (byte* plabel = label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(string label, bool* pVisible, ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, pVisible, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(string label, bool* pVisible) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, pVisible, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(byte* label, ref bool pVisible, ImGuiTreeNodeFlags flags) - { - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(label, (bool*)ppVisible, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(byte* label, ref bool pVisible) - { - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(label, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ref byte label, ref bool pVisible, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ref byte label, ref bool pVisible) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ReadOnlySpan<byte> label, ref bool pVisible, ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = label) - { - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(ReadOnlySpan<byte> label, ref bool pVisible) - { - fixed (byte* plabel = label) - { - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(string label, ref bool pVisible, ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(pStr0, (bool*)ppVisible, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapsingHeader(string label, ref bool pVisible) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(pStr0, (bool*)ppVisible, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextItemOpenNative(byte isOpen, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)funcTable[223])(isOpen, cond); - #else - ((delegate* unmanaged[Cdecl]<byte, ImGuiCond, void>)funcTable[223])(isOpen, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextItemOpen(bool isOpen, ImGuiCond cond) - { - SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextItemOpen(bool isOpen) - { - SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SelectableNative(byte* label, byte selected, ImGuiSelectableFlags flags, Vector2 size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte, ImGuiSelectableFlags, Vector2, byte>)funcTable[224])(label, selected, flags, size); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte, ImGuiSelectableFlags, Vector2, byte>)funcTable[224])((nint)label, selected, flags, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool selected, ImGuiSelectableFlags flags, Vector2 size) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool selected, ImGuiSelectableFlags flags) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool selected) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label) - { - byte ret = SelectableNative(label, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, ImGuiSelectableFlags flags) - { - byte ret = SelectableNative(label, (byte)(0), flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool selected, Vector2 size) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, Vector2 size) - { - byte ret = SelectableNative(label, (byte)(0), (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, ImGuiSelectableFlags flags, Vector2 size) - { - byte ret = SelectableNative(label, (byte)(0), flags, size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool selected, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool selected, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool selected, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool selected, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool selected, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool selected) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool selected, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool selected, ImGuiSelectableFlags flags, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool selected, ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool selected, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, ImGuiSelectableFlags flags, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SelectableNative(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiSelectableFlags, Vector2, byte>)funcTable[225])(label, pSelected, flags, size); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiSelectableFlags, Vector2, byte>)funcTable[225])((nint)label, (nint)pSelected, flags, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - byte ret = SelectableNative(label, pSelected, flags, size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool* pSelected, ImGuiSelectableFlags flags) - { - byte ret = SelectableNative(label, pSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool* pSelected) - { - byte ret = SelectableNative(label, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, bool* pSelected, Vector2 size) - { - byte ret = SelectableNative(label, pSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool* pSelected, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool* pSelected) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, bool* pSelected, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool* pSelected, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool* pSelected) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, bool* pSelected, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool* pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool* pSelected, ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, bool* pSelected, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, ref bool pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (bool*)ppSelected, flags, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, ref bool pSelected, ImGuiSelectableFlags flags) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, ref bool pSelected) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(byte* label, ref bool pSelected, Vector2 size) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, ref bool pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, size); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, ref bool pSelected, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, ref bool pSelected) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ref byte label, ref bool pSelected, Vector2 size) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, ref bool pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - fixed (byte* plabel = label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, size); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, ref bool pSelected, ImGuiSelectableFlags flags) - { - fixed (byte* plabel = label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, ref bool pSelected) - { - fixed (byte* plabel = label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(ReadOnlySpan<byte> label, ref bool pSelected, Vector2 size) - { - fixed (byte* plabel = label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, ref bool pSelected, ImGuiSelectableFlags flags, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (bool*)ppSelected, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, ref bool pSelected, ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (bool*)ppSelected, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, ref bool pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (bool*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Selectable(string label, ref bool pSelected, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (bool*)ppSelected, (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginListBoxNative(byte* label, Vector2 size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, byte>)funcTable[226])(label, size); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, byte>)funcTable[226])((nint)label, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(byte* label, Vector2 size) - { - byte ret = BeginListBoxNative(label, size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(byte* label) - { - byte ret = BeginListBoxNative(label, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(ref byte label, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = BeginListBoxNative((byte*)plabel, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = BeginListBoxNative((byte*)plabel, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(ReadOnlySpan<byte> label, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = BeginListBoxNative((byte*)plabel, size); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = BeginListBoxNative((byte*)plabel, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(string label, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginListBoxNative(pStr0, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginListBox(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginListBoxNative(pStr0, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndListBoxNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[227])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[227])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndListBox() - { - EndListBoxNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ListBoxNative(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, byte**, int, int, byte>)funcTable[228])(label, currentItem, items, itemsCount, heightInItems); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, byte>)funcTable[228])((nint)label, (nint)currentItem, (nint)items, itemsCount, heightInItems); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) - { - byte ret = ListBoxNative(label, currentItem, items, itemsCount, heightInItems); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, int* currentItem, byte** items, int itemsCount) - { - byte ret = ListBoxNative(label, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, int* currentItem, byte** items, int itemsCount, int heightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, int* currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, int* currentItem, byte** items, int itemsCount, int heightInItems) - { - fixed (byte* plabel = label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, int* currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, int* currentItem, byte** items, int itemsCount, int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, items, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, int* currentItem, byte** items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, ref int currentItem, byte** items, int itemsCount, int heightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, ref int currentItem, byte** items, int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, ref int currentItem, byte** items, int itemsCount, int heightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, ref int currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, ref int currentItem, byte** items, int itemsCount, int heightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, ref int currentItem, byte** items, int itemsCount) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, ref int currentItem, byte** items, int itemsCount, int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, items, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, ref int currentItem, byte** items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, int* currentItem, string[] items, int itemsCount, int heightInItems) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, int* currentItem, string[] items, int itemsCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, int* currentItem, string[] items, int itemsCount, int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, currentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, int* currentItem, string[] items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, ref int currentItem, string[] items, int itemsCount, int heightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, ref int currentItem, string[] items, int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, ref int currentItem, string[] items, int itemsCount, int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, ref int currentItem, string[] items, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ListBoxNative(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool>, void*, int, int, byte>)funcTable[229])(label, currentItem, itemsGetter, data, itemsCount, heightInItems); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, int, byte>)funcTable[229])((nint)label, (nint)currentItem, (nint)itemsGetter, (nint)data, itemsCount, heightInItems); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - byte ret = ListBoxNative(label, currentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - byte ret = ListBoxNative(label, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - fixed (byte* plabel = label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, itemsGetter, data, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, int* currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(byte* label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ref byte label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(ReadOnlySpan<byte> label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - fixed (byte* plabel = label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount, int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ListBox(string label, ref int currentItem, delegate*<byte*, int*, delegate*<void*, int, byte**, bool>, void*, int, int, bool> itemsGetter, void* data, int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLinesNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, int, byte*, float, float, Vector2, int, void>)funcTable[230])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, nint, float, float, Vector2, int, void>)funcTable[230])((nint)label, (nint)values, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.074.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.074.cs deleted file mode 100644 index 42b353de9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.074.cs +++ /dev/null @@ -1,5046 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.075.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.075.cs deleted file mode 100644 index 92299675a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.075.cs +++ /dev/null @@ -1,5036 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.076.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.076.cs deleted file mode 100644 index 9fc4436d9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.076.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.077.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.077.cs deleted file mode 100644 index adb20d774..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.077.cs +++ /dev/null @@ -1,5042 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLinesNative(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)funcTable[231])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, nint, float, float, Vector2, void>)funcTable[231])((nint)label, (nint)valuesGetter, (nint)data, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.078.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.078.cs deleted file mode 100644 index ce322e404..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.078.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLines(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHistogramNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, int, byte*, float, float, Vector2, int, void>)funcTable[232])(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, nint, float, float, Vector2, int, void>)funcTable[232])((nint)label, (nint)values, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.079.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.079.cs deleted file mode 100644 index 0ca617f07..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.079.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.080.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.080.cs deleted file mode 100644 index d80364a26..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.080.cs +++ /dev/null @@ -1,5052 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.081.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.081.cs deleted file mode 100644 index ad883522c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.081.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, float* values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.082.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.082.cs deleted file mode 100644 index e0afd447f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.082.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - fixed (byte* plabel = label) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, ref float values, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHistogramNative(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, void>)funcTable[233])(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, nint, float, float, Vector2, void>)funcTable[233])((nint)label, (nint)valuesGetter, (nint)data, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, graphSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.083.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.083.cs deleted file mode 100644 index bc9395e89..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.083.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(byte* label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ref byte label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(ReadOnlySpan<byte> label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHistogram(string label, delegate*<byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ValueNative(byte* prefix, byte b) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte, void>)funcTable[234])(prefix, b); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, void>)funcTable[234])((nint)prefix, b); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, bool b) - { - ValueNative(prefix, b ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, bool b) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, b ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, bool b) - { - fixed (byte* pprefix = prefix) - { - ValueNative((byte*)pprefix, b ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, bool b) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, b ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ValueNative(byte* prefix, int v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int, void>)funcTable[235])(prefix, v); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[235])((nint)prefix, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, int v) - { - ValueNative(prefix, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, int v) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, int v) - { - fixed (byte* pprefix = prefix) - { - ValueNative((byte*)pprefix, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ValueNative(byte* prefix, uint v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint, void>)funcTable[236])(prefix, v); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[236])((nint)prefix, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, uint v) - { - ValueNative(prefix, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, uint v) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, uint v) - { - fixed (byte* pprefix = prefix) - { - ValueNative((byte*)pprefix, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, uint v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ValueNative(byte* prefix, float v, byte* floatFormat) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float, byte*, void>)funcTable[237])(prefix, v, floatFormat); - #else - ((delegate* unmanaged[Cdecl]<nint, float, nint, void>)funcTable[237])((nint)prefix, v, (nint)floatFormat); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, float v, byte* floatFormat) - { - ValueNative(prefix, v, floatFormat); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, float v) - { - ValueNative(prefix, v, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, float v, byte* floatFormat) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v, floatFormat); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, float v) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, float v, byte* floatFormat) - { - fixed (byte* pprefix = prefix) - { - ValueNative((byte*)pprefix, v, floatFormat); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, float v) - { - fixed (byte* pprefix = prefix) - { - ValueNative((byte*)pprefix, v, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, float v, byte* floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v, floatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, float v, ref byte floatFormat) - { - fixed (byte* pfloatFormat = &floatFormat) - { - ValueNative(prefix, v, (byte*)pfloatFormat); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, float v, ReadOnlySpan<byte> floatFormat) - { - fixed (byte* pfloatFormat = floatFormat) - { - ValueNative(prefix, v, (byte*)pfloatFormat); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(byte* prefix, float v, string floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (floatFormat != null) - { - pStrSize0 = Utils.GetByteCountUTF8(floatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(prefix, v, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, float v, ref byte floatFormat) - { - fixed (byte* pprefix = &prefix) - { - fixed (byte* pfloatFormat = &floatFormat) - { - ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, float v, ReadOnlySpan<byte> floatFormat) - { - fixed (byte* pprefix = prefix) - { - fixed (byte* pfloatFormat = floatFormat) - { - ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, float v, string floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (floatFormat != null) - { - pStrSize1 = Utils.GetByteCountUTF8(floatFormat); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(floatFormat, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ValueNative(pStr0, v, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, float v, ReadOnlySpan<byte> floatFormat) - { - fixed (byte* pprefix = &prefix) - { - fixed (byte* pfloatFormat = floatFormat) - { - ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ref byte prefix, float v, string floatFormat) - { - fixed (byte* pprefix = &prefix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (floatFormat != null) - { - pStrSize0 = Utils.GetByteCountUTF8(floatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative((byte*)pprefix, v, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, float v, ref byte floatFormat) - { - fixed (byte* pprefix = prefix) - { - fixed (byte* pfloatFormat = &floatFormat) - { - ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(ReadOnlySpan<byte> prefix, float v, string floatFormat) - { - fixed (byte* pprefix = prefix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (floatFormat != null) - { - pStrSize0 = Utils.GetByteCountUTF8(floatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative((byte*)pprefix, v, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, float v, ref byte floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfloatFormat = &floatFormat) - { - ValueNative(pStr0, v, (byte*)pfloatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Value(string prefix, float v, ReadOnlySpan<byte> floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfloatFormat = floatFormat) - { - ValueNative(pStr0, v, (byte*)pfloatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginMenuBarNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[238])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[238])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuBar() - { - byte ret = BeginMenuBarNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndMenuBarNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[239])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[239])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndMenuBar() - { - EndMenuBarNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginMainMenuBarNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[240])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[240])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMainMenuBar() - { - byte ret = BeginMainMenuBarNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndMainMenuBarNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[241])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[241])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndMainMenuBar() - { - EndMainMenuBarNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginMenuNative(byte* label, byte enabled) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte, byte>)funcTable[242])(label, enabled); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte, byte>)funcTable[242])((nint)label, enabled); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(byte* label, bool enabled) - { - byte ret = BeginMenuNative(label, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(byte* label) - { - byte ret = BeginMenuNative(label, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(ref byte label, bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = BeginMenuNative((byte*)plabel, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = BeginMenuNative((byte*)plabel, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(ReadOnlySpan<byte> label, bool enabled) - { - fixed (byte* plabel = label) - { - byte ret = BeginMenuNative((byte*)plabel, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = BeginMenuNative((byte*)plabel, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(string label, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuNative(pStr0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenu(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuNative(pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndMenuNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[243])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[243])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndMenu() - { - EndMenuNative(); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.084.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.084.cs deleted file mode 100644 index d65e8e7a1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.084.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte MenuItemNative(byte* label, byte* shortcut, byte selected, byte enabled) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte, byte, byte>)funcTable[244])(label, shortcut, selected, enabled); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte, byte, byte>)funcTable[244])((nint)label, (nint)shortcut, selected, enabled); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, byte* shortcut, bool selected, bool enabled) - { - byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, byte* shortcut, bool selected) - { - byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, byte* shortcut) - { - byte ret = MenuItemNative(label, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label) - { - byte ret = MenuItemNative(label, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, bool selected) - { - byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, bool selected, bool enabled) - { - byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, byte* shortcut) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, byte* shortcut) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, bool selected) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ref byte shortcut, bool selected) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ref byte shortcut) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ReadOnlySpan<byte> shortcut) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ref byte shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ref byte shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, string shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, string shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ref byte shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ref byte shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, string shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, string shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ReadOnlySpan<byte> shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ReadOnlySpan<byte> shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte MenuItemNative(byte* label, byte* shortcut, bool* pSelected, byte enabled) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, bool*, byte, byte>)funcTable[245])(label, shortcut, pSelected, enabled); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, byte, byte>)funcTable[245])((nint)label, (nint)shortcut, (nint)pSelected, enabled); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, byte* shortcut, bool* pSelected, bool enabled) - { - byte ret = MenuItemNative(label, shortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, byte* shortcut, bool* pSelected) - { - byte ret = MenuItemNative(label, shortcut, pSelected, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, byte* shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, byte* shortcut, bool* pSelected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, byte* shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, byte* shortcut, bool* pSelected) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, byte* shortcut, bool* pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, byte* shortcut, bool* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ref byte shortcut, bool* pSelected, bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ref byte shortcut, bool* pSelected) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ReadOnlySpan<byte> shortcut, bool* pSelected, bool enabled) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ReadOnlySpan<byte> shortcut, bool* pSelected) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, string shortcut, bool* pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, string shortcut, bool* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ref byte shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ref byte shortcut, bool* pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ReadOnlySpan<byte> shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ReadOnlySpan<byte> shortcut, bool* pSelected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, string shortcut, bool* pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, string shortcut, bool* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, pSelected, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ReadOnlySpan<byte> shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ReadOnlySpan<byte> shortcut, bool* pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, string shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, string shortcut, bool* pSelected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ref byte shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ref byte shortcut, bool* pSelected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, string shortcut, bool* pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, string shortcut, bool* pSelected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative((byte*)plabel, pStr0, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ref byte shortcut, bool* pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ref byte shortcut, bool* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ReadOnlySpan<byte> shortcut, bool* pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ReadOnlySpan<byte> shortcut, bool* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, byte* shortcut, ref bool pSelected, bool enabled) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, byte* shortcut, ref bool pSelected) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, shortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, byte* shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, byte* shortcut, ref bool pSelected) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, byte* shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, byte* shortcut, ref bool pSelected) - { - fixed (byte* plabel = label) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, byte* shortcut, ref bool pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, shortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, byte* shortcut, ref bool pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, shortcut, (bool*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ref byte shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ref byte shortcut, ref bool pSelected) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ReadOnlySpan<byte> shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, ReadOnlySpan<byte> shortcut, ref bool pSelected) - { - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, string shortcut, ref bool pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(byte* label, string shortcut, ref bool pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, pStr0, (bool*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ref byte shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ref byte shortcut, ref bool pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ReadOnlySpan<byte> shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ReadOnlySpan<byte> shortcut, ref bool pSelected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, string shortcut, ref bool pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, pStr1, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, string shortcut, ref bool pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, pStr1, (bool*)ppSelected, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ReadOnlySpan<byte> shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, ReadOnlySpan<byte> shortcut, ref bool pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, string shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ref byte label, string shortcut, ref bool pSelected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ref byte shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, ref byte shortcut, ref bool pSelected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, string shortcut, ref bool pSelected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(ReadOnlySpan<byte> label, string shortcut, ref bool pSelected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, pStr0, (bool*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ref byte shortcut, ref bool pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ref byte shortcut, ref bool pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ReadOnlySpan<byte> shortcut, ref bool pSelected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItem(string label, ReadOnlySpan<byte> shortcut, ref bool pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - fixed (bool* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, (byte*)pshortcut, (bool*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginTooltipNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[246])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[246])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginTooltip() - { - BeginTooltipNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndTooltipNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[247])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[247])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndTooltip() - { - EndTooltipNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetTooltipNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[248])(fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[248])((nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltip(byte* fmt) - { - SetTooltipNative(fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltip(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - SetTooltipNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltip(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - SetTooltipNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltip(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTooltipNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetTooltipVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[249])(fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[249])((nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltipV(byte* fmt, nuint args) - { - SetTooltipVNative(fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltipV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - SetTooltipVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltipV(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - SetTooltipVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTooltipV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTooltipVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginPopupNative(byte* strId, ImGuiWindowFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindowFlags, byte>)funcTable[250])(strId, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiWindowFlags, byte>)funcTable[250])((nint)strId, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(byte* strId, ImGuiWindowFlags flags) - { - byte ret = BeginPopupNative(strId, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(byte* strId) - { - byte ret = BeginPopupNative(strId, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(ref byte strId, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupNative((byte*)pstrId, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(ReadOnlySpan<byte> strId, ImGuiWindowFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupNative((byte*)pstrId, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(string strId, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopup(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupNative(pStr0, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginPopupModalNative(byte* name, bool* pOpen, ImGuiWindowFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiWindowFlags, byte>)funcTable[251])(name, pOpen, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiWindowFlags, byte>)funcTable[251])((nint)name, (nint)pOpen, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(byte* name, bool* pOpen, ImGuiWindowFlags flags) - { - byte ret = BeginPopupModalNative(name, pOpen, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(byte* name, bool* pOpen) - { - byte ret = BeginPopupModalNative(name, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(byte* name) - { - byte ret = BeginPopupModalNative(name, (bool*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(byte* name, ImGuiWindowFlags flags) - { - byte ret = BeginPopupModalNative(name, (bool*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ref byte name, bool* pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, pOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ref byte name, bool* pOpen) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ref byte name) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ref byte name, ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ReadOnlySpan<byte> name, bool* pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = name) - { - byte ret = BeginPopupModalNative((byte*)pname, pOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ReadOnlySpan<byte> name, bool* pOpen) - { - fixed (byte* pname = name) - { - byte ret = BeginPopupModalNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ReadOnlySpan<byte> name, ImGuiWindowFlags flags) - { - fixed (byte* pname = name) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(string name, bool* pOpen, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, pOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(string name, bool* pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, (bool*)(default), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(string name, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, (bool*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(byte* name, ref bool pOpen, ImGuiWindowFlags flags) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(name, (bool*)ppOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(byte* name, ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(name, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ref byte name, ref bool pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ref byte name, ref bool pOpen) - { - fixed (byte* pname = &name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ReadOnlySpan<byte> name, ref bool pOpen, ImGuiWindowFlags flags) - { - fixed (byte* pname = name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(ReadOnlySpan<byte> name, ref bool pOpen) - { - fixed (byte* pname = name) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative((byte*)pname, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(string name, ref bool pOpen, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(pStr0, (bool*)ppOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupModal(string name, ref bool pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(pStr0, (bool*)ppOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndPopupNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[252])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[252])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndPopup() - { - EndPopupNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void OpenPopupNative(byte* strId, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, void>)funcTable[253])(strId, popupFlags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiPopupFlags, void>)funcTable[253])((nint)strId, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(byte* strId, ImGuiPopupFlags popupFlags) - { - OpenPopupNative(strId, popupFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(byte* strId) - { - OpenPopupNative(strId, (ImGuiPopupFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(ref byte strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - OpenPopupNative((byte*)pstrId, popupFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - OpenPopupNative((byte*)pstrId, (ImGuiPopupFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(ReadOnlySpan<byte> strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = strId) - { - OpenPopupNative((byte*)pstrId, popupFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - OpenPopupNative((byte*)pstrId, (ImGuiPopupFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(string strId, ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupNative(pStr0, (ImGuiPopupFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void OpenPopupNative(uint id, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, void>)funcTable[254])(id, popupFlags); - #else - ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, void>)funcTable[254])(id, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags) - { - OpenPopupNative(id, popupFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopup(uint id) - { - OpenPopupNative(id, (ImGuiPopupFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void OpenPopupOnItemClickNative(byte* strId, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, void>)funcTable[255])(strId, popupFlags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiPopupFlags, void>)funcTable[255])((nint)strId, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(byte* strId, ImGuiPopupFlags popupFlags) - { - OpenPopupOnItemClickNative(strId, popupFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(byte* strId) - { - OpenPopupOnItemClickNative(strId, (ImGuiPopupFlags)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick() - { - OpenPopupOnItemClickNative((byte*)(default), (ImGuiPopupFlags)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(ImGuiPopupFlags popupFlags) - { - OpenPopupOnItemClickNative((byte*)(default), popupFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(ref byte strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - OpenPopupOnItemClickNative((byte*)pstrId, popupFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - OpenPopupOnItemClickNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(ReadOnlySpan<byte> strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = strId) - { - OpenPopupOnItemClickNative((byte*)pstrId, popupFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - OpenPopupOnItemClickNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(string strId, ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupOnItemClickNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupOnItemClick(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupOnItemClickNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CloseCurrentPopupNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[256])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[256])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CloseCurrentPopup() - { - CloseCurrentPopupNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginPopupContextItemNative(byte* strId, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)funcTable[257])(strId, popupFlags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiPopupFlags, byte>)funcTable[257])((nint)strId, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(byte* strId, ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextItemNative(strId, popupFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(byte* strId) - { - byte ret = BeginPopupContextItemNative(strId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem() - { - byte ret = BeginPopupContextItemNative((byte*)(default), (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextItemNative((byte*)(default), popupFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(ref byte strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextItemNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextItemNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(ReadOnlySpan<byte> strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupContextItemNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupContextItemNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(string strId, ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextItemNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextItem(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextItemNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginPopupContextWindowNative(byte* strId, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)funcTable[258])(strId, popupFlags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiPopupFlags, byte>)funcTable[258])((nint)strId, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(byte* strId, ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextWindowNative(strId, popupFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(byte* strId) - { - byte ret = BeginPopupContextWindowNative(strId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow() - { - byte ret = BeginPopupContextWindowNative((byte*)(default), (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextWindowNative((byte*)(default), popupFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(ref byte strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextWindowNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextWindowNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(ReadOnlySpan<byte> strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupContextWindowNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupContextWindowNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(string strId, ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextWindowNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextWindow(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextWindowNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginPopupContextVoidNative(byte* strId, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)funcTable[259])(strId, popupFlags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiPopupFlags, byte>)funcTable[259])((nint)strId, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(byte* strId, ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextVoidNative(strId, popupFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(byte* strId) - { - byte ret = BeginPopupContextVoidNative(strId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid() - { - byte ret = BeginPopupContextVoidNative((byte*)(default), (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextVoidNative((byte*)(default), popupFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(ref byte strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextVoidNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextVoidNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(ReadOnlySpan<byte> strId, ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupContextVoidNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginPopupContextVoidNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(string strId, ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextVoidNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupContextVoid(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextVoidNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPopupOpenNative(byte* strId, ImGuiPopupFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiPopupFlags, byte>)funcTable[260])(strId, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiPopupFlags, byte>)funcTable[260])((nint)strId, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(byte* strId, ImGuiPopupFlags flags) - { - byte ret = IsPopupOpenNative(strId, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(byte* strId) - { - byte ret = IsPopupOpenNative(strId, (ImGuiPopupFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(ref byte strId, ImGuiPopupFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = IsPopupOpenNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = IsPopupOpenNative((byte*)pstrId, (ImGuiPopupFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(ReadOnlySpan<byte> strId, ImGuiPopupFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = IsPopupOpenNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - byte ret = IsPopupOpenNative((byte*)pstrId, (ImGuiPopupFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(string strId, ImGuiPopupFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsPopupOpenNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsPopupOpenNative(pStr0, (ImGuiPopupFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginTableNative(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, ImGuiTableFlags, Vector2, float, byte>)funcTable[261])(strId, column, flags, outerSize, innerWidth); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, ImGuiTableFlags, Vector2, float, byte>)funcTable[261])((nint)strId, column, flags, outerSize, innerWidth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - byte ret = BeginTableNative(strId, column, flags, outerSize, innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, Vector2 outerSize) - { - byte ret = BeginTableNative(strId, column, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags) - { - byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column, Vector2 outerSize) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column, ImGuiTableFlags flags, float innerWidth) - { - byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column, float innerWidth) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(byte* strId, int column, Vector2 outerSize, float innerWidth) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, Vector2 outerSize) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column, Vector2 outerSize) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column, ImGuiTableFlags flags, float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column, float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ref byte strId, int column, Vector2 outerSize, float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column, ImGuiTableFlags flags, Vector2 outerSize) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column, ImGuiTableFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column, Vector2 outerSize) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column, ImGuiTableFlags flags, float innerWidth) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column, float innerWidth) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(ReadOnlySpan<byte> strId, int column, Vector2 outerSize, float innerWidth) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column, ImGuiTableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column, Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column, ImGuiTableFlags flags, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs deleted file mode 100644 index 53742fa7f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.085.cs +++ /dev/null @@ -1,5035 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTable(string strId, int column, Vector2 outerSize, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndTableNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[262])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[262])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndTable() - { - EndTableNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableNextRowNative(ImGuiTableRowFlags rowFlags, float minRowHeight) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableRowFlags, float, void>)funcTable[263])(rowFlags, minRowHeight); - #else - ((delegate* unmanaged[Cdecl]<ImGuiTableRowFlags, float, void>)funcTable[263])(rowFlags, minRowHeight); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableNextRow(ImGuiTableRowFlags rowFlags, float minRowHeight) - { - TableNextRowNative(rowFlags, minRowHeight); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableNextRow(ImGuiTableRowFlags rowFlags) - { - TableNextRowNative(rowFlags, (float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableNextRow() - { - TableNextRowNative((ImGuiTableRowFlags)(0), (float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableNextRow(float minRowHeight) - { - TableNextRowNative((ImGuiTableRowFlags)(0), minRowHeight); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TableNextColumnNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[264])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[264])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TableNextColumn() - { - byte ret = TableNextColumnNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TableSetColumnIndexNative(int columnN) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, byte>)funcTable[265])(columnN); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, byte>)funcTable[265])(columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TableSetColumnIndex(int columnN) - { - byte ret = TableSetColumnIndexNative(columnN); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetupColumnNative(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ImGuiTableColumnFlags, float, uint, void>)funcTable[266])(label, flags, initWidthOrWeight, userId); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiTableColumnFlags, float, uint, void>)funcTable[266])((nint)label, flags, initWidthOrWeight, userId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) - { - TableSetupColumnNative(label, flags, initWidthOrWeight, userId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, float initWidthOrWeight) - { - TableSetupColumnNative(label, flags, initWidthOrWeight, (uint)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags) - { - TableSetupColumnNative(label, flags, (float)(0.0f), (uint)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label, float initWidthOrWeight) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label, ImGuiTableColumnFlags flags, uint userId) - { - TableSetupColumnNative(label, flags, (float)(0.0f), userId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label, uint userId) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(byte* label, float initWidthOrWeight, uint userId) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, float initWidthOrWeight) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label, float initWidthOrWeight) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label, ImGuiTableColumnFlags flags, uint userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label, uint userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ref byte label, float initWidthOrWeight, uint userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label, ImGuiTableColumnFlags flags, float initWidthOrWeight) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label, ImGuiTableColumnFlags flags) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label, float initWidthOrWeight) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label, ImGuiTableColumnFlags flags, uint userId) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label, uint userId) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(ReadOnlySpan<byte> label, float initWidthOrWeight, uint userId) - { - fixed (byte* plabel = label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, float initWidthOrWeight, uint userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, initWidthOrWeight, userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, float initWidthOrWeight) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, initWidthOrWeight, (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, (float)(0.0f), (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label, float initWidthOrWeight) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label, ImGuiTableColumnFlags flags, uint userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, (float)(0.0f), userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label, uint userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupColumn(string label, float initWidthOrWeight, uint userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetupScrollFreezeNative(int cols, int rows) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, int, void>)funcTable[267])(cols, rows); - #else - ((delegate* unmanaged[Cdecl]<int, int, void>)funcTable[267])(cols, rows); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupScrollFreeze(int cols, int rows) - { - TableSetupScrollFreezeNative(cols, rows); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableHeadersRowNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[268])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[268])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableHeadersRow() - { - TableHeadersRowNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableHeaderNative(byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[269])(label); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[269])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableHeader(byte* label) - { - TableHeaderNative(label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableHeader(ref byte label) - { - fixed (byte* plabel = &label) - { - TableHeaderNative((byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableHeader(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - TableHeaderNative((byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableHeader(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableHeaderNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSortSpecs* TableGetSortSpecsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableSortSpecs*>)funcTable[270])(); - #else - return (ImGuiTableSortSpecs*)((delegate* unmanaged[Cdecl]<nint>)funcTable[270])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableSortSpecsPtr TableGetSortSpecs() - { - ImGuiTableSortSpecsPtr ret = TableGetSortSpecsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int TableGetColumnCountNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[271])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[271])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int TableGetColumnCount() - { - int ret = TableGetColumnCountNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int TableGetColumnIndexNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[272])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[272])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int TableGetColumnIndex() - { - int ret = TableGetColumnIndexNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int TableGetRowIndexNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[273])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[273])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int TableGetRowIndex() - { - int ret = TableGetRowIndexNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* TableGetColumnNameNative(int columnN) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, byte*>)funcTable[274])(columnN); - #else - return (byte*)((delegate* unmanaged[Cdecl]<int, nint>)funcTable[274])(columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* TableGetColumnName(int columnN) - { - byte* ret = TableGetColumnNameNative(columnN); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* TableGetColumnName() - { - byte* ret = TableGetColumnNameNative((int)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string TableGetColumnNameS() - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((int)(-1))); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string TableGetColumnNameS(int columnN) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(columnN)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumnFlags TableGetColumnFlagsNative(int columnN) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, ImGuiTableColumnFlags>)funcTable[275])(columnN); - #else - return (ImGuiTableColumnFlags)((delegate* unmanaged[Cdecl]<int, ImGuiTableColumnFlags>)funcTable[275])(columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableColumnFlags TableGetColumnFlags(int columnN) - { - ImGuiTableColumnFlags ret = TableGetColumnFlagsNative(columnN); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableColumnFlags TableGetColumnFlags() - { - ImGuiTableColumnFlags ret = TableGetColumnFlagsNative((int)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetColumnEnabledNative(int columnN, byte v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, byte, void>)funcTable[276])(columnN, v); - #else - ((delegate* unmanaged[Cdecl]<int, byte, void>)funcTable[276])(columnN, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetColumnEnabled(int columnN, bool v) - { - TableSetColumnEnabledNative(columnN, v ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetBgColorNative(ImGuiTableBgTarget target, uint color, int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableBgTarget, uint, int, void>)funcTable[277])(target, color, columnN); - #else - ((delegate* unmanaged[Cdecl]<ImGuiTableBgTarget, uint, int, void>)funcTable[277])(target, color, columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetBgColor(ImGuiTableBgTarget target, uint color, int columnN) - { - TableSetBgColorNative(target, color, columnN); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetBgColor(ImGuiTableBgTarget target, uint color) - { - TableSetBgColorNative(target, color, (int)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColumnsNative(int count, byte* id, byte border) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, byte*, byte, void>)funcTable[278])(count, id, border); - #else - ((delegate* unmanaged[Cdecl]<int, nint, byte, void>)funcTable[278])(count, (nint)id, border); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, byte* id, bool border) - { - ColumnsNative(count, id, border ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, byte* id) - { - ColumnsNative(count, id, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count) - { - ColumnsNative(count, (byte*)(default), (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns() - { - ColumnsNative((int)(1), (byte*)(default), (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(byte* id) - { - ColumnsNative((int)(1), id, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, bool border) - { - ColumnsNative(count, (byte*)(default), border ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(bool border) - { - ColumnsNative((int)(1), (byte*)(default), border ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(byte* id, bool border) - { - ColumnsNative((int)(1), id, border ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, ref byte id, bool border) - { - fixed (byte* pid = &id) - { - ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, ref byte id) - { - fixed (byte* pid = &id) - { - ColumnsNative(count, (byte*)pid, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(ref byte id) - { - fixed (byte* pid = &id) - { - ColumnsNative((int)(1), (byte*)pid, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(ref byte id, bool border) - { - fixed (byte* pid = &id) - { - ColumnsNative((int)(1), (byte*)pid, border ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, ReadOnlySpan<byte> id, bool border) - { - fixed (byte* pid = id) - { - ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, ReadOnlySpan<byte> id) - { - fixed (byte* pid = id) - { - ColumnsNative(count, (byte*)pid, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(ReadOnlySpan<byte> id) - { - fixed (byte* pid = id) - { - ColumnsNative((int)(1), (byte*)pid, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(ReadOnlySpan<byte> id, bool border) - { - fixed (byte* pid = id) - { - ColumnsNative((int)(1), (byte*)pid, border ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, string id, bool border) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative(count, pStr0, border ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(int count, string id) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative(count, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(string id) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative((int)(1), pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Columns(string id, bool border) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative((int)(1), pStr0, border ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NextColumnNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[279])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[279])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NextColumn() - { - NextColumnNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetColumnIndexNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[280])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[280])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetColumnIndex() - { - int ret = GetColumnIndexNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetColumnWidthNative(int columnIndex) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, float>)funcTable[281])(columnIndex); - #else - return (float)((delegate* unmanaged[Cdecl]<int, float>)funcTable[281])(columnIndex); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnWidth(int columnIndex) - { - float ret = GetColumnWidthNative(columnIndex); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnWidth() - { - float ret = GetColumnWidthNative((int)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetColumnWidthNative(int columnIndex, float width) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[282])(columnIndex, width); - #else - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[282])(columnIndex, width); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetColumnWidth(int columnIndex, float width) - { - SetColumnWidthNative(columnIndex, width); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetColumnOffsetNative(int columnIndex) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, float>)funcTable[283])(columnIndex); - #else - return (float)((delegate* unmanaged[Cdecl]<int, float>)funcTable[283])(columnIndex); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnOffset(int columnIndex) - { - float ret = GetColumnOffsetNative(columnIndex); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnOffset() - { - float ret = GetColumnOffsetNative((int)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetColumnOffsetNative(int columnIndex, float offsetX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[284])(columnIndex, offsetX); - #else - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[284])(columnIndex, offsetX); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetColumnOffset(int columnIndex, float offsetX) - { - SetColumnOffsetNative(columnIndex, offsetX); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetColumnsCountNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[285])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[285])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetColumnsCount() - { - int ret = GetColumnsCountNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginTabBarNative(byte* strId, ImGuiTabBarFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTabBarFlags, byte>)funcTable[286])(strId, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTabBarFlags, byte>)funcTable[286])((nint)strId, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(byte* strId, ImGuiTabBarFlags flags) - { - byte ret = BeginTabBarNative(strId, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(byte* strId) - { - byte ret = BeginTabBarNative(strId, (ImGuiTabBarFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(ref byte strId, ImGuiTabBarFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTabBarNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTabBarNative((byte*)pstrId, (ImGuiTabBarFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(ReadOnlySpan<byte> strId, ImGuiTabBarFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTabBarNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(ReadOnlySpan<byte> strId) - { - fixed (byte* pstrId = strId) - { - byte ret = BeginTabBarNative((byte*)pstrId, (ImGuiTabBarFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(string strId, ImGuiTabBarFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabBarNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBar(string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabBarNative(pStr0, (ImGuiTabBarFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndTabBarNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[287])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[287])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndTabBar() - { - EndTabBarNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginTabItemNative(byte* label, bool* pOpen, ImGuiTabItemFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, bool*, ImGuiTabItemFlags, byte>)funcTable[288])(label, pOpen, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiTabItemFlags, byte>)funcTable[288])((nint)label, (nint)pOpen, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(byte* label, bool* pOpen, ImGuiTabItemFlags flags) - { - byte ret = BeginTabItemNative(label, pOpen, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(byte* label, bool* pOpen) - { - byte ret = BeginTabItemNative(label, pOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(byte* label) - { - byte ret = BeginTabItemNative(label, (bool*)(default), (ImGuiTabItemFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(byte* label, ImGuiTabItemFlags flags) - { - byte ret = BeginTabItemNative(label, (bool*)(default), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ref byte label, bool* pOpen, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, pOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ref byte label, bool* pOpen) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, pOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ref byte label, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ReadOnlySpan<byte> label, bool* pOpen, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = BeginTabItemNative((byte*)plabel, pOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ReadOnlySpan<byte> label, bool* pOpen) - { - fixed (byte* plabel = label) - { - byte ret = BeginTabItemNative((byte*)plabel, pOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ReadOnlySpan<byte> label, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)(default), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(string label, bool* pOpen, ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, pOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(string label, bool* pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, pOpen, (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, (bool*)(default), (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(string label, ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, (bool*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(byte* label, ref bool pOpen, ImGuiTabItemFlags flags) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(label, (bool*)ppOpen, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(byte* label, ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(label, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ref byte label, ref bool pOpen, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ref byte label, ref bool pOpen) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ReadOnlySpan<byte> label, ref bool pOpen, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(ReadOnlySpan<byte> label, ref bool pOpen) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative((byte*)plabel, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(string label, ref bool pOpen, ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(pStr0, (bool*)ppOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabItem(string label, ref bool pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(pStr0, (bool*)ppOpen, (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndTabItemNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[289])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[289])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndTabItem() - { - EndTabItemNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TabItemButtonNative(byte* label, ImGuiTabItemFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTabItemFlags, byte>)funcTable[290])(label, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiTabItemFlags, byte>)funcTable[290])((nint)label, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(byte* label, ImGuiTabItemFlags flags) - { - byte ret = TabItemButtonNative(label, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(byte* label) - { - byte ret = TabItemButtonNative(label, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(ref byte label, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemButtonNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemButtonNative((byte*)plabel, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(ReadOnlySpan<byte> label, ImGuiTabItemFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = TabItemButtonNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = TabItemButtonNative((byte*)plabel, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(string label, ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemButtonNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemButton(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemButtonNative(pStr0, (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetTabItemClosedNative(byte* tabOrDockedWindowLabel) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[291])(tabOrDockedWindowLabel); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[291])((nint)tabOrDockedWindowLabel); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTabItemClosed(byte* tabOrDockedWindowLabel) - { - SetTabItemClosedNative(tabOrDockedWindowLabel); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTabItemClosed(ref byte tabOrDockedWindowLabel) - { - fixed (byte* ptabOrDockedWindowLabel = &tabOrDockedWindowLabel) - { - SetTabItemClosedNative((byte*)ptabOrDockedWindowLabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTabItemClosed(ReadOnlySpan<byte> tabOrDockedWindowLabel) - { - fixed (byte* ptabOrDockedWindowLabel = tabOrDockedWindowLabel) - { - SetTabItemClosedNative((byte*)ptabOrDockedWindowLabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTabItemClosed(string tabOrDockedWindowLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (tabOrDockedWindowLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(tabOrDockedWindowLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(tabOrDockedWindowLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTabItemClosedNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint DockSpaceNative(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiDockNodeFlags, ImGuiWindowClass*, uint>)funcTable[292])(id, size, flags, windowClass); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiDockNodeFlags, nint, uint>)funcTable[292])(id, size, flags, (nint)windowClass); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceNative(id, size, flags, windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags) - { - uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, Vector2 size) - { - uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id) - { - uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, ImGuiDockNodeFlags flags) - { - uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, Vector2 size, ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, Vector2 size, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpace(uint id, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint DockSpaceOverViewportNative(ImGuiViewport* viewport, ImGuiDockNodeFlags flags, ImGuiWindowClass* windowClass) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImGuiDockNodeFlags, ImGuiWindowClass*, uint>)funcTable[293])(viewport, flags, windowClass); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, ImGuiDockNodeFlags, nint, uint>)funcTable[293])((nint)viewport, flags, (nint)windowClass); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceOverViewportNative(viewport, flags, windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags) - { - uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport) - { - uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport() - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, windowClass); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, windowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiWindowClassPtr windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiViewportPtr viewport, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ImGuiDockNodeFlags flags, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockSpaceOverViewport(ref ImGuiViewport viewport, ref ImGuiWindowClass windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - uint ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowDockIDNative(uint dockId, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiCond, void>)funcTable[294])(dockId, cond); - #else - ((delegate* unmanaged[Cdecl]<uint, ImGuiCond, void>)funcTable[294])(dockId, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowDockID(uint dockId, ImGuiCond cond) - { - SetNextWindowDockIDNative(dockId, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowDockID(uint dockId) - { - SetNextWindowDockIDNative(dockId, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowClassNative(ImGuiWindowClass* windowClass) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindowClass*, void>)funcTable[295])(windowClass); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[295])((nint)windowClass); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowClass(ImGuiWindowClassPtr windowClass) - { - SetNextWindowClassNative(windowClass); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowClass(ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - SetNextWindowClassNative((ImGuiWindowClass*)pwindowClass); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetWindowDockIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[296])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[296])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetWindowDockID() - { - uint ret = GetWindowDockIDNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowDockedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[297])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[297])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowDocked() - { - byte ret = IsWindowDockedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogToTTYNative(int autoOpenDepth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[298])(autoOpenDepth); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[298])(autoOpenDepth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToTTY(int autoOpenDepth) - { - LogToTTYNative(autoOpenDepth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToTTY() - { - LogToTTYNative((int)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogToFileNative(int autoOpenDepth, byte* filename) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, byte*, void>)funcTable[299])(autoOpenDepth, filename); - #else - ((delegate* unmanaged[Cdecl]<int, nint, void>)funcTable[299])(autoOpenDepth, (nint)filename); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(int autoOpenDepth, byte* filename) - { - LogToFileNative(autoOpenDepth, filename); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(int autoOpenDepth) - { - LogToFileNative(autoOpenDepth, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile() - { - LogToFileNative((int)(-1), (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(byte* filename) - { - LogToFileNative((int)(-1), filename); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(int autoOpenDepth, ref byte filename) - { - fixed (byte* pfilename = &filename) - { - LogToFileNative(autoOpenDepth, (byte*)pfilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(ref byte filename) - { - fixed (byte* pfilename = &filename) - { - LogToFileNative((int)(-1), (byte*)pfilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(int autoOpenDepth, ReadOnlySpan<byte> filename) - { - fixed (byte* pfilename = filename) - { - LogToFileNative(autoOpenDepth, (byte*)pfilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(ReadOnlySpan<byte> filename) - { - fixed (byte* pfilename = filename) - { - LogToFileNative((int)(-1), (byte*)pfilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(int autoOpenDepth, string filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogToFileNative(autoOpenDepth, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToFile(string filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogToFileNative((int)(-1), pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogToClipboardNative(int autoOpenDepth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[300])(autoOpenDepth); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[300])(autoOpenDepth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToClipboard(int autoOpenDepth) - { - LogToClipboardNative(autoOpenDepth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToClipboard() - { - LogToClipboardNative((int)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogFinishNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[301])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[301])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogFinish() - { - LogFinishNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogButtonsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[302])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[302])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogButtons() - { - LogButtonsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogTextVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[303])(fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[303])((nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogTextV(byte* fmt, nuint args) - { - LogTextVNative(fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogTextV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - LogTextVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogTextV(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - LogTextVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogTextV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogTextVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropSourceNative(ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDragDropFlags, byte>)funcTable[304])(flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiDragDropFlags, byte>)funcTable[304])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSource(ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourceNative(flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSource() - { - byte ret = BeginDragDropSourceNative((ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SetDragDropPayloadNative(byte* type, void* data, nuint sz, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, void*, nuint, ImGuiCond, byte>)funcTable[305])(type, data, sz, cond); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nuint, ImGuiCond, byte>)funcTable[305])((nint)type, (nint)data, sz, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(byte* type, void* data, nuint sz, ImGuiCond cond) - { - byte ret = SetDragDropPayloadNative(type, data, sz, cond); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(byte* type, void* data, nuint sz) - { - byte ret = SetDragDropPayloadNative(type, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(ref byte type, void* data, nuint sz, ImGuiCond cond) - { - fixed (byte* ptype = &type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, cond); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(ref byte type, void* data, nuint sz) - { - fixed (byte* ptype = &type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(ReadOnlySpan<byte> type, void* data, nuint sz, ImGuiCond cond) - { - fixed (byte* ptype = type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, cond); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(ReadOnlySpan<byte> type, void* data, nuint sz) - { - fixed (byte* ptype = type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(string type, void* data, nuint sz, ImGuiCond cond) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SetDragDropPayloadNative(pStr0, data, sz, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetDragDropPayload(string type, void* data, nuint sz) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SetDragDropPayloadNative(pStr0, data, sz, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndDragDropSourceNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[306])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[306])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndDragDropSource() - { - EndDragDropSourceNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[307])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[307])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropTarget() - { - byte ret = BeginDragDropTargetNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPayload* AcceptDragDropPayloadNative(byte* type, ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDragDropFlags, ImGuiPayload*>)funcTable[308])(type, flags); - #else - return (ImGuiPayload*)((delegate* unmanaged[Cdecl]<nint, ImGuiDragDropFlags, nint>)funcTable[308])((nint)type, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(byte* type, ImGuiDragDropFlags flags) - { - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(type, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(byte* type) - { - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(type, (ImGuiDragDropFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(ref byte type, ImGuiDragDropFlags flags) - { - fixed (byte* ptype = &type) - { - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(ref byte type) - { - fixed (byte* ptype = &type) - { - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, (ImGuiDragDropFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(ReadOnlySpan<byte> type, ImGuiDragDropFlags flags) - { - fixed (byte* ptype = type) - { - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(ReadOnlySpan<byte> type) - { - fixed (byte* ptype = type) - { - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative((byte*)ptype, (ImGuiDragDropFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(string type, ImGuiDragDropFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr AcceptDragDropPayload(string type) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiPayloadPtr ret = AcceptDragDropPayloadNative(pStr0, (ImGuiDragDropFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndDragDropTargetNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[309])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[309])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndDragDropTarget() - { - EndDragDropTargetNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPayload* GetDragDropPayloadNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*>)funcTable[310])(); - #else - return (ImGuiPayload*)((delegate* unmanaged[Cdecl]<nint>)funcTable[310])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr GetDragDropPayload() - { - ImGuiPayloadPtr ret = GetDragDropPayloadNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginDisabledNative(byte disabled) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[311])(disabled); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[311])(disabled); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDisabled(bool disabled) - { - BeginDisabledNative(disabled ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDisabled() - { - BeginDisabledNative((byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndDisabledNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[312])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[312])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndDisabled() - { - EndDisabledNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushClipRectNative(Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte, void>)funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); - #else - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte, void>)funcTable[313])(clipRectMin, clipRectMax, intersectWithCurrentClipRect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - PushClipRectNative(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopClipRectNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[314])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[314])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopClipRect() - { - PopClipRectNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetItemDefaultFocusNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[315])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[315])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetItemDefaultFocus() - { - SetItemDefaultFocusNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetKeyboardFocusHereNative(int offset) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[316])(offset); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[316])(offset); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyboardFocusHere(int offset) - { - SetKeyboardFocusHereNative(offset); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyboardFocusHere() - { - SetKeyboardFocusHereNative((int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemHoveredNative(ImGuiHoveredFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiHoveredFlags, byte>)funcTable[317])(flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiHoveredFlags, byte>)funcTable[317])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemHovered(ImGuiHoveredFlags flags) - { - byte ret = IsItemHoveredNative(flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemHovered() - { - byte ret = IsItemHoveredNative((ImGuiHoveredFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemActiveNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[318])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[318])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemActive() - { - byte ret = IsItemActiveNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemFocusedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[319])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[319])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemFocused() - { - byte ret = IsItemFocusedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemClickedNative(ImGuiMouseButton mouseButton) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[320])(mouseButton); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[320])(mouseButton); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemClicked(ImGuiMouseButton mouseButton) - { - byte ret = IsItemClickedNative(mouseButton); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemClicked() - { - byte ret = IsItemClickedNative((ImGuiMouseButton)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemVisibleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[321])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[321])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemVisible() - { - byte ret = IsItemVisibleNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemEditedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[322])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[322])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemEdited() - { - byte ret = IsItemEditedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemActivatedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[323])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[323])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemActivated() - { - byte ret = IsItemActivatedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemDeactivatedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[324])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[324])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemDeactivated() - { - byte ret = IsItemDeactivatedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemDeactivatedAfterEditNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[325])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[325])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemDeactivatedAfterEdit() - { - byte ret = IsItemDeactivatedAfterEditNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemToggledOpenNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[326])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[326])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemToggledOpen() - { - byte ret = IsItemToggledOpenNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAnyItemHoveredNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[327])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[327])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsAnyItemHovered() - { - byte ret = IsAnyItemHoveredNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAnyItemActiveNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[328])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[328])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsAnyItemActive() - { - byte ret = IsAnyItemActiveNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAnyItemFocusedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[329])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[329])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsAnyItemFocused() - { - byte ret = IsAnyItemFocusedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetItemRectMinNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[330])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[330])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetItemRectMin() - { - Vector2 ret; - GetItemRectMinNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetItemRectMin(Vector2* pOut) - { - GetItemRectMinNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetItemRectMin(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetItemRectMinNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetItemRectMaxNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[331])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[331])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetItemRectMax() - { - Vector2 ret; - GetItemRectMaxNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetItemRectMax(Vector2* pOut) - { - GetItemRectMaxNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetItemRectMax(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetItemRectMaxNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetItemRectSizeNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[332])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[332])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetItemRectSize() - { - Vector2 ret; - GetItemRectSizeNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetItemRectSize(Vector2* pOut) - { - GetItemRectSizeNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetItemRectSize(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetItemRectSizeNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetItemAllowOverlapNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[333])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[333])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetItemAllowOverlap() - { - SetItemAllowOverlapNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* GetMainViewportNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*>)funcTable[334])(); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl]<nint>)funcTable[334])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiViewportPtr GetMainViewport() - { - ImGuiViewportPtr ret = GetMainViewportNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetBackgroundDrawListNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawList*>)funcTable[335])(); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint>)funcTable[335])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetBackgroundDrawList() - { - ImDrawListPtr ret = GetBackgroundDrawListNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetForegroundDrawListNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawList*>)funcTable[336])(); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint>)funcTable[336])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetForegroundDrawList() - { - ImDrawListPtr ret = GetForegroundDrawListNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetBackgroundDrawListNative(ImGuiViewport* viewport) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImDrawList*>)funcTable[337])(viewport); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[337])((nint)viewport); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetBackgroundDrawList(ImGuiViewportPtr viewport) - { - ImDrawListPtr ret = GetBackgroundDrawListNative(viewport); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetBackgroundDrawList(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImDrawListPtr ret = GetBackgroundDrawListNative((ImGuiViewport*)pviewport); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetForegroundDrawListNative(ImGuiViewport* viewport) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImDrawList*>)funcTable[338])(viewport); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[338])((nint)viewport); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetForegroundDrawList(ImGuiViewportPtr viewport) - { - ImDrawListPtr ret = GetForegroundDrawListNative(viewport); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetForegroundDrawList(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImDrawListPtr ret = GetForegroundDrawListNative((ImGuiViewport*)pviewport); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsRectVisibleNative(Vector2 size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, byte>)funcTable[339])(size); - #else - return (byte)((delegate* unmanaged[Cdecl]<Vector2, byte>)funcTable[339])(size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsRectVisible(Vector2 size) - { - byte ret = IsRectVisibleNative(size); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsRectVisibleNative(Vector2 rectMin, Vector2 rectMax) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte>)funcTable[340])(rectMin, rectMax); - #else - return (byte)((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte>)funcTable[340])(rectMin, rectMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsRectVisible(Vector2 rectMin, Vector2 rectMax) - { - byte ret = IsRectVisibleNative(rectMin, rectMax); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double GetTimeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double>)funcTable[341])(); - #else - return (double)((delegate* unmanaged[Cdecl]<double>)funcTable[341])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double GetTime() - { - double ret = GetTimeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetFrameCountNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[342])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[342])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetFrameCount() - { - int ret = GetFrameCountNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawListSharedData* GetDrawListSharedDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*>)funcTable[343])(); - #else - return (ImDrawListSharedData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[343])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListSharedDataPtr GetDrawListSharedData() - { - ImDrawListSharedDataPtr ret = GetDrawListSharedDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetStyleColorNameNative(ImGuiCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiCol, byte*>)funcTable[344])(idx); - #else - return (byte*)((delegate* unmanaged[Cdecl]<ImGuiCol, nint>)funcTable[344])(idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetStyleColorName(ImGuiCol idx) - { - byte* ret = GetStyleColorNameNative(idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetStyleColorNameS(ImGuiCol idx) - { - string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetStateStorageNative(ImGuiStorage* storage) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, void>)funcTable[345])(storage); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[345])((nint)storage); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetStateStorage(ImGuiStoragePtr storage) - { - SetStateStorageNative(storage); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetStateStorage(ref ImGuiStorage storage) - { - fixed (ImGuiStorage* pstorage = &storage) - { - SetStateStorageNative((ImGuiStorage*)pstorage); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStorage* GetStateStorageNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*>)funcTable[346])(); - #else - return (ImGuiStorage*)((delegate* unmanaged[Cdecl]<nint>)funcTable[346])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStoragePtr GetStateStorage() - { - ImGuiStoragePtr ret = GetStateStorageNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginChildFrameNative(uint id, Vector2 size, ImGuiWindowFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiWindowFlags, byte>)funcTable[347])(id, size, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiWindowFlags, byte>)funcTable[347])(id, size, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChildFrame(uint id, Vector2 size, ImGuiWindowFlags flags) - { - byte ret = BeginChildFrameNative(id, size, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChildFrame(uint id, Vector2 size) - { - byte ret = BeginChildFrameNative(id, size, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndChildFrameNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[348])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[348])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndChildFrame() - { - EndChildFrameNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcTextSizeNative(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, byte*, byte*, byte, float, void>)funcTable[349])(pOut, text, textEnd, hideTextAfterDoubleHash, wrapWidth); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, byte, float, void>)funcTable[349])((nint)pOut, (nint)text, (nint)textEnd, hideTextAfterDoubleHash, wrapWidth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)(default), (byte)(0), (float)(-1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, byte* textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, textEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text) - { - CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, bool hideTextAfterDoubleHash) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, byte* textEnd, bool hideTextAfterDoubleHash) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd) - { - CalcTextSizeNative(pOut, text, textEnd, (byte)(0), (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, float wrapWidth) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)(default), (byte)(0), wrapWidth); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, byte* textEnd, float wrapWidth) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, textEnd, (byte)(0), wrapWidth); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, bool hideTextAfterDoubleHash) - { - CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, float wrapWidth) - { - CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), wrapWidth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, bool hideTextAfterDoubleHash, float wrapWidth) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) - { - CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, byte* textEnd, float wrapWidth) - { - CalcTextSizeNative(pOut, text, textEnd, (byte)(0), wrapWidth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) - { - CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, byte* textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, float wrapWidth) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, float wrapWidth) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, float wrapWidth) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, textEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs deleted file mode 100644 index 03da217ab..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.086.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, byte* textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)(default), (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, textEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, byte* textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, text, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, string textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, text, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(byte* text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, byte* text, string textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, pStr1, (byte)(0), (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, string textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, pStr1, (byte)(0), wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ref byte text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(ReadOnlySpan<byte> text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeNative(&ret, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSize(string text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeNative(&ret, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, string textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, (byte)(0), wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ref byte text, string textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ref byte textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(ref Vector2 pOut, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, byte* textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, string textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, string textEnd, bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, (byte*)ptext, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ref byte textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ReadOnlySpan<byte> textEnd, bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSize(Vector2* pOut, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeNative(pOut, pStr0, (byte*)ptextEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorConvertU32ToFloat4Native(Vector4* pOut, uint input) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, uint, void>)funcTable[350])(pOut, input); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[350])((nint)pOut, input); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 ColorConvertU32ToFloat4(uint input) - { - Vector4 ret; - ColorConvertU32ToFloat4Native(&ret, input); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertU32ToFloat4(Vector4* pOut, uint input) - { - ColorConvertU32ToFloat4Native(pOut, input); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertU32ToFloat4(ref Vector4 pOut, uint input) - { - fixed (Vector4* ppOut = &pOut) - { - ColorConvertU32ToFloat4Native((Vector4*)ppOut, input); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ColorConvertFloat4ToU32Native(Vector4 input) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4, uint>)funcTable[351])(input); - #else - return (uint)((delegate* unmanaged[Cdecl]<Vector4, uint>)funcTable[351])(input); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ColorConvertFloat4ToU32(Vector4 input) - { - uint ret = ColorConvertFloat4ToU32Native(input); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorConvertRGBtoHSVNative(float r, float g, float b, float* outH, float* outS, float* outV) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, float, float, float*, float*, float*, void>)funcTable[352])(r, g, b, outH, outS, outV); - #else - ((delegate* unmanaged[Cdecl]<float, float, float, nint, nint, nint, void>)funcTable[352])(r, g, b, (nint)outH, (nint)outS, (nint)outV); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, float* outV) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, outS, outV); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, float* outV) - { - fixed (float* poutH = &outH) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, outV); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, float* outV) - { - fixed (float* poutS = &outS) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, outV); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, float* outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutS = &outS) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, outV); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, float* outS, ref float outV) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, outS, (float*)poutV); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, float* outS, ref float outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, (float*)poutV); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, float* outH, ref float outS, ref float outV) - { - fixed (float* poutS = &outS) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, (float*)poutV); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertRGBtoHSV(float r, float g, float b, ref float outH, ref float outS, ref float outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutS = &outS) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, (float*)poutV); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorConvertHSVtoRGBNative(float h, float s, float v, float* outR, float* outG, float* outB) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, float, float, float*, float*, float*, void>)funcTable[353])(h, s, v, outR, outG, outB); - #else - ((delegate* unmanaged[Cdecl]<float, float, float, nint, nint, nint, void>)funcTable[353])(h, s, v, (nint)outR, (nint)outG, (nint)outB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, float* outB) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, outG, outB); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, float* outB) - { - fixed (float* poutR = &outR) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, outB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, float* outB) - { - fixed (float* poutG = &outG) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, outB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, float* outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutG = &outG) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, outB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, float* outG, ref float outB) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, outG, (float*)poutB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, float* outG, ref float outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, (float*)poutB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, float* outR, ref float outG, ref float outB) - { - fixed (float* poutG = &outG) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, (float*)poutB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorConvertHSVtoRGB(float h, float s, float v, ref float outR, ref float outG, ref float outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutG = &outG) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, (float*)poutB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyDownNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[354])(key); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[354])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsKeyDown(ImGuiKey key) - { - byte ret = IsKeyDownNative(key); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyPressedNative(ImGuiKey key, byte repeat) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)funcTable[355])(key, repeat); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)funcTable[355])(key, repeat); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsKeyPressed(ImGuiKey key, bool repeat) - { - byte ret = IsKeyPressedNative(key, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsKeyPressed(ImGuiKey key) - { - byte ret = IsKeyPressedNative(key, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyReleasedNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[356])(key); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[356])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsKeyReleased(ImGuiKey key) - { - byte ret = IsKeyReleasedNative(key); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetKeyPressedAmountNative(ImGuiKey key, float repeatDelay, float rate) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, float, float, int>)funcTable[357])(key, repeatDelay, rate); - #else - return (int)((delegate* unmanaged[Cdecl]<ImGuiKey, float, float, int>)funcTable[357])(key, repeatDelay, rate); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetKeyPressedAmount(ImGuiKey key, float repeatDelay, float rate) - { - int ret = GetKeyPressedAmountNative(key, repeatDelay, rate); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetKeyNameNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte*>)funcTable[358])(key); - #else - return (byte*)((delegate* unmanaged[Cdecl]<ImGuiKey, nint>)funcTable[358])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetKeyName(ImGuiKey key) - { - byte* ret = GetKeyNameNative(key); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetKeyNameS(ImGuiKey key) - { - string ret = Utils.DecodeStringUTF8(GetKeyNameNative(key)); - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs deleted file mode 100644 index a87351fac..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.087.cs +++ /dev/null @@ -1,5040 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextFrameWantCaptureKeyboardNative(byte wantCaptureKeyboard) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[359])(wantCaptureKeyboard); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[359])(wantCaptureKeyboard); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextFrameWantCaptureKeyboard(bool wantCaptureKeyboard) - { - SetNextFrameWantCaptureKeyboardNative(wantCaptureKeyboard ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseDownNative(ImGuiMouseButton button) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[360])(button); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[360])(button); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseDown(ImGuiMouseButton button) - { - byte ret = IsMouseDownNative(button); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseClickedNative(ImGuiMouseButton button, byte repeat) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte, byte>)funcTable[361])(button, repeat); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte, byte>)funcTable[361])(button, repeat); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseClicked(ImGuiMouseButton button, bool repeat) - { - byte ret = IsMouseClickedNative(button, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseClicked(ImGuiMouseButton button) - { - byte ret = IsMouseClickedNative(button, (byte)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseReleasedNative(ImGuiMouseButton button) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[362])(button); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[362])(button); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseReleased(ImGuiMouseButton button) - { - byte ret = IsMouseReleasedNative(button); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseDoubleClickedNative(ImGuiMouseButton button) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[363])(button); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, byte>)funcTable[363])(button); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseDoubleClicked(ImGuiMouseButton button) - { - byte ret = IsMouseDoubleClickedNative(button); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetMouseClickedCountNative(ImGuiMouseButton button) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, int>)funcTable[364])(button); - #else - return (int)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, int>)funcTable[364])(button); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetMouseClickedCount(ImGuiMouseButton button) - { - int ret = GetMouseClickedCountNative(button); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseHoveringRectNative(Vector2 rMin, Vector2 rMax, byte clip) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte, byte>)funcTable[365])(rMin, rMax, clip); - #else - return (byte)((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte, byte>)funcTable[365])(rMin, rMax, clip); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax, bool clip) - { - byte ret = IsMouseHoveringRectNative(rMin, rMax, clip ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseHoveringRect(Vector2 rMin, Vector2 rMax) - { - byte ret = IsMouseHoveringRectNative(rMin, rMax, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMousePosValidNative(Vector2* mousePos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2*, byte>)funcTable[366])(mousePos); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[366])((nint)mousePos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMousePosValid(Vector2* mousePos) - { - byte ret = IsMousePosValidNative(mousePos); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMousePosValid() - { - byte ret = IsMousePosValidNative((Vector2*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMousePosValid(ref Vector2 mousePos) - { - fixed (Vector2* pmousePos = &mousePos) - { - byte ret = IsMousePosValidNative((Vector2*)pmousePos); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAnyMouseDownNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[367])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[367])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsAnyMouseDown() - { - byte ret = IsAnyMouseDownNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetMousePosNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[368])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[368])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetMousePos() - { - Vector2 ret; - GetMousePosNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMousePos(Vector2* pOut) - { - GetMousePosNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMousePos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetMousePosNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetMousePosOnOpeningCurrentPopupNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[369])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[369])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetMousePosOnOpeningCurrentPopup() - { - Vector2 ret; - GetMousePosOnOpeningCurrentPopupNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMousePosOnOpeningCurrentPopup(Vector2* pOut) - { - GetMousePosOnOpeningCurrentPopupNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMousePosOnOpeningCurrentPopup(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetMousePosOnOpeningCurrentPopupNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseDraggingNative(ImGuiMouseButton button, float lockThreshold) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)funcTable[370])(button, lockThreshold); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)funcTable[370])(button, lockThreshold); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseDragging(ImGuiMouseButton button, float lockThreshold) - { - byte ret = IsMouseDraggingNative(button, lockThreshold); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseDragging(ImGuiMouseButton button) - { - byte ret = IsMouseDraggingNative(button, (float)(-1.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetMouseDragDeltaNative(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiMouseButton, float, void>)funcTable[371])(pOut, button, lockThreshold); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiMouseButton, float, void>)funcTable[371])((nint)pOut, button, lockThreshold); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetMouseDragDelta() - { - Vector2 ret; - GetMouseDragDeltaNative(&ret, (ImGuiMouseButton)(0), (float)(-1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetMouseDragDelta(ImGuiMouseButton button) - { - Vector2 ret; - GetMouseDragDeltaNative(&ret, button, (float)(-1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(Vector2* pOut) - { - GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetMouseDragDelta(float lockThreshold) - { - Vector2 ret; - GetMouseDragDeltaNative(&ret, (ImGuiMouseButton)(0), lockThreshold); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetMouseDragDelta(ImGuiMouseButton button, float lockThreshold) - { - Vector2 ret; - GetMouseDragDeltaNative(&ret, button, lockThreshold); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lockThreshold) - { - GetMouseDragDeltaNative(pOut, button, lockThreshold); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button) - { - GetMouseDragDeltaNative(pOut, button, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(Vector2* pOut, float lockThreshold) - { - GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), lockThreshold); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button, float lockThreshold) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, button, lockThreshold); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(ref Vector2 pOut, ImGuiMouseButton button) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, button, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMouseDragDelta(ref Vector2 pOut, float lockThreshold) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), lockThreshold); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetMouseDragDeltaNative(ImGuiMouseButton button) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, void>)funcTable[372])(button); - #else - ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, void>)funcTable[372])(button); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetMouseDragDelta(ImGuiMouseButton button) - { - ResetMouseDragDeltaNative(button); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetMouseDragDelta() - { - ResetMouseDragDeltaNative((ImGuiMouseButton)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiMouseCursor GetMouseCursorNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseCursor>)funcTable[373])(); - #else - return (ImGuiMouseCursor)((delegate* unmanaged[Cdecl]<ImGuiMouseCursor>)funcTable[373])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiMouseCursor GetMouseCursor() - { - ImGuiMouseCursor ret = GetMouseCursorNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetMouseCursorNative(ImGuiMouseCursor cursorType) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiMouseCursor, void>)funcTable[374])(cursorType); - #else - ((delegate* unmanaged[Cdecl]<ImGuiMouseCursor, void>)funcTable[374])(cursorType); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetMouseCursor(ImGuiMouseCursor cursorType) - { - SetMouseCursorNative(cursorType); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextFrameWantCaptureMouseNative(byte wantCaptureMouse) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[375])(wantCaptureMouse); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[375])(wantCaptureMouse); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextFrameWantCaptureMouse(bool wantCaptureMouse) - { - SetNextFrameWantCaptureMouseNative(wantCaptureMouse ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetClipboardTextNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*>)funcTable[376])(); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint>)funcTable[376])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetClipboardText() - { - byte* ret = GetClipboardTextNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetClipboardTextS() - { - string ret = Utils.DecodeStringUTF8(GetClipboardTextNative()); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetClipboardTextNative(byte* text) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[377])(text); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[377])((nint)text); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetClipboardText(byte* text) - { - SetClipboardTextNative(text); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetClipboardText(ref byte text) - { - fixed (byte* ptext = &text) - { - SetClipboardTextNative((byte*)ptext); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetClipboardText(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - SetClipboardTextNative((byte*)ptext); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetClipboardText(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetClipboardTextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LoadIniSettingsFromDiskNative(byte* iniFilename) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[378])(iniFilename); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[378])((nint)iniFilename); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromDisk(byte* iniFilename) - { - LoadIniSettingsFromDiskNative(iniFilename); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromDisk(ref byte iniFilename) - { - fixed (byte* piniFilename = &iniFilename) - { - LoadIniSettingsFromDiskNative((byte*)piniFilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromDisk(ReadOnlySpan<byte> iniFilename) - { - fixed (byte* piniFilename = iniFilename) - { - LoadIniSettingsFromDiskNative((byte*)piniFilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromDisk(string iniFilename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniFilename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniFilename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LoadIniSettingsFromDiskNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LoadIniSettingsFromMemoryNative(byte* iniData, nuint iniSize) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[379])(iniData, iniSize); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[379])((nint)iniData, iniSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(byte* iniData, nuint iniSize) - { - LoadIniSettingsFromMemoryNative(iniData, iniSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(byte* iniData) - { - LoadIniSettingsFromMemoryNative(iniData, (nuint)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(ref byte iniData, nuint iniSize) - { - fixed (byte* piniData = &iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, iniSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(ref byte iniData) - { - fixed (byte* piniData = &iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(ReadOnlySpan<byte> iniData, nuint iniSize) - { - fixed (byte* piniData = iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, iniSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(ReadOnlySpan<byte> iniData) - { - fixed (byte* piniData = iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(string iniData, nuint iniSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniData != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LoadIniSettingsFromMemoryNative(pStr0, iniSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LoadIniSettingsFromMemory(string iniData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniData != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LoadIniSettingsFromMemoryNative(pStr0, (nuint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SaveIniSettingsToDiskNative(byte* iniFilename) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[380])(iniFilename); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[380])((nint)iniFilename); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SaveIniSettingsToDisk(byte* iniFilename) - { - SaveIniSettingsToDiskNative(iniFilename); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SaveIniSettingsToDisk(ref byte iniFilename) - { - fixed (byte* piniFilename = &iniFilename) - { - SaveIniSettingsToDiskNative((byte*)piniFilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SaveIniSettingsToDisk(ReadOnlySpan<byte> iniFilename) - { - fixed (byte* piniFilename = iniFilename) - { - SaveIniSettingsToDiskNative((byte*)piniFilename); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SaveIniSettingsToDisk(string iniFilename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniFilename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniFilename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SaveIniSettingsToDiskNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* SaveIniSettingsToMemoryNative(nuint* outIniSize) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<nuint*, byte*>)funcTable[381])(outIniSize); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[381])((nint)outIniSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* SaveIniSettingsToMemory(nuint* outIniSize) - { - byte* ret = SaveIniSettingsToMemoryNative(outIniSize); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* SaveIniSettingsToMemory() - { - byte* ret = SaveIniSettingsToMemoryNative((nuint*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string SaveIniSettingsToMemoryS() - { - string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((nuint*)(default))); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string SaveIniSettingsToMemoryS(nuint* outIniSize) - { - string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative(outIniSize)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugTextEncodingNative(byte* text) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[382])(text); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[382])((nint)text); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugTextEncoding(byte* text) - { - DebugTextEncodingNative(text); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugTextEncoding(ref byte text) - { - fixed (byte* ptext = &text) - { - DebugTextEncodingNative((byte*)ptext); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugTextEncoding(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - DebugTextEncodingNative((byte*)ptext); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugTextEncoding(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugTextEncodingNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, nuint, nuint, nuint, nuint, nuint, nuint, byte>)funcTable[383])(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nuint, nuint, nuint, nuint, nuint, nuint, byte>)funcTable[383])((nint)versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DebugCheckVersionAndDataLayout(byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DebugCheckVersionAndDataLayout(ref byte versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DebugCheckVersionAndDataLayout(ReadOnlySpan<byte> versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - fixed (byte* pversionStr = versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DebugCheckVersionAndDataLayout(string versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAllocatorFunctionsNative(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<delegate*<nuint, void*, void*>, delegate*<void*, void*, void>, void*, void>)funcTable[384])((delegate*<nuint, void*, void*>)Utils.GetFunctionPointerForDelegate(allocFunc), (delegate*<void*, void*, void>)Utils.GetFunctionPointerForDelegate(freeFunc), userData); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[384])((nint)Utils.GetFunctionPointerForDelegate(allocFunc), (nint)Utils.GetFunctionPointerForDelegate(freeFunc), (nint)userData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) - { - SetAllocatorFunctionsNative(allocFunc, freeFunc, userData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAllocatorFunctions(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc) - { - SetAllocatorFunctionsNative(allocFunc, freeFunc, (void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetAllocatorFunctionsNative(delegate*<nuint, void*, void*>* pAllocFunc, delegate*<void*, void*, void>* pFreeFunc, void** pUserData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<delegate*<nuint, void*, void*>*, delegate*<void*, void*, void>*, void**, void>)funcTable[385])(pAllocFunc, pFreeFunc, pUserData); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[385])((nint)pAllocFunc, (nint)pFreeFunc, (nint)pUserData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetAllocatorFunctions(delegate*<nuint, void*, void*>* pAllocFunc, delegate*<void*, void*, void>* pFreeFunc, void** pUserData) - { - GetAllocatorFunctionsNative(pAllocFunc, pFreeFunc, pUserData); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void* MemAllocNative(nuint size) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<nuint, void*>)funcTable[386])(size); - #else - return (void*)((delegate* unmanaged[Cdecl]<nuint, nint>)funcTable[386])(size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* MemAlloc(nuint size) - { - void* ret = MemAllocNative(size); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MemFreeNative(void* ptr) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void*, void>)funcTable[387])(ptr); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[387])((nint)ptr); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MemFree(void* ptr) - { - MemFreeNative(ptr); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformIO* GetPlatformIONative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformIO*>)funcTable[388])(); - #else - return (ImGuiPlatformIO*)((delegate* unmanaged[Cdecl]<nint>)funcTable[388])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPlatformIOPtr GetPlatformIO() - { - ImGuiPlatformIOPtr ret = GetPlatformIONative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdatePlatformWindowsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[389])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[389])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdatePlatformWindows() - { - UpdatePlatformWindowsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderPlatformWindowsDefaultNative(void* platformRenderArg, void* rendererRenderArg) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void*, void*, void>)funcTable[390])(platformRenderArg, rendererRenderArg); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[390])((nint)platformRenderArg, (nint)rendererRenderArg); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderPlatformWindowsDefault(void* platformRenderArg, void* rendererRenderArg) - { - RenderPlatformWindowsDefaultNative(platformRenderArg, rendererRenderArg); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderPlatformWindowsDefault(void* platformRenderArg) - { - RenderPlatformWindowsDefaultNative(platformRenderArg, (void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderPlatformWindowsDefault() - { - RenderPlatformWindowsDefaultNative((void*)(default), (void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyPlatformWindowsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[391])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[391])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyPlatformWindows() - { - DestroyPlatformWindowsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* FindViewportByIDNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiViewport*>)funcTable[392])(id); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[392])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiViewportPtr FindViewportByID(uint id) - { - ImGuiViewportPtr ret = FindViewportByIDNative(id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* FindViewportByPlatformHandleNative(void* platformHandle) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, ImGuiViewport*>)funcTable[393])(platformHandle); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[393])((nint)platformHandle); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiViewportPtr FindViewportByPlatformHandle(void* platformHandle) - { - ImGuiViewportPtr ret = FindViewportByPlatformHandleNative(platformHandle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStyle* ImGuiStyleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStyle*>)funcTable[394])(); - #else - return (ImGuiStyle*)((delegate* unmanaged[Cdecl]<nint>)funcTable[394])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStylePtr ImGuiStyle() - { - ImGuiStylePtr ret = ImGuiStyleNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStyle* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, void>)funcTable[395])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[395])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiStylePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiStyle self) - { - fixed (ImGuiStyle* pself = &self) - { - DestroyNative((ImGuiStyle*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScaleAllSizesNative(ImGuiStyle* self, float scaleFactor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyle*, float, void>)funcTable[396])(self, scaleFactor); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[396])((nint)self, scaleFactor); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScaleAllSizes(ImGuiStylePtr self, float scaleFactor) - { - ScaleAllSizesNative(self, scaleFactor); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScaleAllSizes(ref ImGuiStyle self, float scaleFactor) - { - fixed (ImGuiStyle* pself = &self) - { - ScaleAllSizesNative((ImGuiStyle*)pself, scaleFactor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddKeyEventNative(ImGuiIO* self, ImGuiKey key, byte down) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ImGuiKey, byte, void>)funcTable[397])(self, key, down); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiKey, byte, void>)funcTable[397])((nint)self, key, down); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddKeyEvent(ImGuiIOPtr self, ImGuiKey key, bool down) - { - AddKeyEventNative(self, key, down ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddKeyEvent(ref ImGuiIO self, ImGuiKey key, bool down) - { - fixed (ImGuiIO* pself = &self) - { - AddKeyEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddKeyAnalogEventNative(ImGuiIO* self, ImGuiKey key, byte down, float v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ImGuiKey, byte, float, void>)funcTable[398])(self, key, down, v); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiKey, byte, float, void>)funcTable[398])((nint)self, key, down, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddKeyAnalogEvent(ImGuiIOPtr self, ImGuiKey key, bool down, float v) - { - AddKeyAnalogEventNative(self, key, down ? (byte)1 : (byte)0, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddKeyAnalogEvent(ref ImGuiIO self, ImGuiKey key, bool down, float v) - { - fixed (ImGuiIO* pself = &self) - { - AddKeyAnalogEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMousePosEventNative(ImGuiIO* self, float x, float y) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, float, float, void>)funcTable[399])(self, x, y); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, void>)funcTable[399])((nint)self, x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMousePosEvent(ImGuiIOPtr self, float x, float y) - { - AddMousePosEventNative(self, x, y); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMousePosEvent(ref ImGuiIO self, float x, float y) - { - fixed (ImGuiIO* pself = &self) - { - AddMousePosEventNative((ImGuiIO*)pself, x, y); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMouseButtonEventNative(ImGuiIO* self, int button, byte down) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, int, byte, void>)funcTable[400])(self, button, down); - #else - ((delegate* unmanaged[Cdecl]<nint, int, byte, void>)funcTable[400])((nint)self, button, down); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMouseButtonEvent(ImGuiIOPtr self, int button, bool down) - { - AddMouseButtonEventNative(self, button, down ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMouseButtonEvent(ref ImGuiIO self, int button, bool down) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseButtonEventNative((ImGuiIO*)pself, button, down ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMouseWheelEventNative(ImGuiIO* self, float whX, float whY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, float, float, void>)funcTable[401])(self, whX, whY); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, void>)funcTable[401])((nint)self, whX, whY); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMouseWheelEvent(ImGuiIOPtr self, float whX, float whY) - { - AddMouseWheelEventNative(self, whX, whY); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMouseWheelEvent(ref ImGuiIO self, float whX, float whY) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseWheelEventNative((ImGuiIO*)pself, whX, whY); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddMouseViewportEventNative(ImGuiIO* self, uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, uint, void>)funcTable[402])(self, id); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[402])((nint)self, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMouseViewportEvent(ImGuiIOPtr self, uint id) - { - AddMouseViewportEventNative(self, id); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddMouseViewportEvent(ref ImGuiIO self, uint id) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseViewportEventNative((ImGuiIO*)pself, id); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddFocusEventNative(ImGuiIO* self, byte focused) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, byte, void>)funcTable[403])(self, focused); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, void>)funcTable[403])((nint)self, focused); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddFocusEvent(ImGuiIOPtr self, bool focused) - { - AddFocusEventNative(self, focused ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddFocusEvent(ref ImGuiIO self, bool focused) - { - fixed (ImGuiIO* pself = &self) - { - AddFocusEventNative((ImGuiIO*)pself, focused ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddInputCharacterNative(ImGuiIO* self, uint c) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, uint, void>)funcTable[404])(self, c); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[404])((nint)self, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharacter(ImGuiIOPtr self, uint c) - { - AddInputCharacterNative(self, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharacter(ref ImGuiIO self, uint c) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharacterNative((ImGuiIO*)pself, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ushort, void>)funcTable[405])(self, c); - #else - ((delegate* unmanaged[Cdecl]<nint, ushort, void>)funcTable[405])((nint)self, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharacterUTF16(ImGuiIOPtr self, ushort c) - { - AddInputCharacterUTF16Native(self, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharacterUTF16(ref ImGuiIO self, ushort c) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharacterUTF16Native((ImGuiIO*)pself, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, byte*, void>)funcTable[406])(self, str); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[406])((nint)self, (nint)str); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ImGuiIOPtr self, byte* str) - { - AddInputCharactersUTF8Native(self, str); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ref ImGuiIO self, byte* str) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, str); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ImGuiIOPtr self, ref byte str) - { - fixed (byte* pstr = &str) - { - AddInputCharactersUTF8Native(self, (byte*)pstr); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ImGuiIOPtr self, ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - AddInputCharactersUTF8Native(self, (byte*)pstr); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ImGuiIOPtr self, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddInputCharactersUTF8Native(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ref ImGuiIO self, ref byte str) - { - fixed (ImGuiIO* pself = &self) - { - fixed (byte* pstr = &str) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ref ImGuiIO self, ReadOnlySpan<byte> str) - { - fixed (ImGuiIO* pself = &self) - { - fixed (byte* pstr = str) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddInputCharactersUTF8(ref ImGuiIO self, string str) - { - fixed (ImGuiIO* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddInputCharactersUTF8Native((ImGuiIO*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetKeyEventNativeDataNative(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, ImGuiKey, int, int, int, void>)funcTable[407])(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiKey, int, int, int, void>)funcTable[407])((nint)self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyEventNativeData(ImGuiIOPtr self, ImGuiKey key, int nativeKeycode, int nativeScancode) - { - SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, (int)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - fixed (ImGuiIO* pself = &self) - { - SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyEventNativeData(ref ImGuiIO self, ImGuiKey key, int nativeKeycode, int nativeScancode) - { - fixed (ImGuiIO* pself = &self) - { - SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, (int)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAppAcceptingEventsNative(ImGuiIO* self, byte acceptingEvents) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, byte, void>)funcTable[408])(self, acceptingEvents); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, void>)funcTable[408])((nint)self, acceptingEvents); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAppAcceptingEvents(ImGuiIOPtr self, bool acceptingEvents) - { - SetAppAcceptingEventsNative(self, acceptingEvents ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAppAcceptingEvents(ref ImGuiIO self, bool acceptingEvents) - { - fixed (ImGuiIO* pself = &self) - { - SetAppAcceptingEventsNative((ImGuiIO*)pself, acceptingEvents ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearInputCharactersNative(ImGuiIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, void>)funcTable[409])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[409])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearInputCharacters(ImGuiIOPtr self) - { - ClearInputCharactersNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearInputCharacters(ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ClearInputCharactersNative((ImGuiIO*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearInputKeysNative(ImGuiIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, void>)funcTable[410])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[410])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearInputKeys(ImGuiIOPtr self) - { - ClearInputKeysNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearInputKeys(ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ClearInputKeysNative((ImGuiIO*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiIO* ImGuiIONative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiIO*>)funcTable[411])(); - #else - return (ImGuiIO*)((delegate* unmanaged[Cdecl]<nint>)funcTable[411])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiIOPtr ImGuiIO() - { - ImGuiIOPtr ret = ImGuiIONative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiIO*, void>)funcTable[412])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[412])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiIOPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - DestroyNative((ImGuiIO*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiInputTextCallbackData* ImGuiInputTextCallbackDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*>)funcTable[413])(); - #else - return (ImGuiInputTextCallbackData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[413])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiInputTextCallbackDataPtr ImGuiInputTextCallbackData() - { - ImGuiInputTextCallbackDataPtr ret = ImGuiInputTextCallbackDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, void>)funcTable[414])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[414])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiInputTextCallbackDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - DestroyNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DeleteCharsNative(ImGuiInputTextCallbackData* self, int pos, int bytesCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, int, int, void>)funcTable[415])(self, pos, bytesCount); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, void>)funcTable[415])((nint)self, pos, bytesCount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DeleteChars(ImGuiInputTextCallbackDataPtr self, int pos, int bytesCount) - { - DeleteCharsNative(self, pos, bytesCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DeleteChars(ref ImGuiInputTextCallbackData self, int pos, int bytesCount) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - DeleteCharsNative((ImGuiInputTextCallbackData*)pself, pos, bytesCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, int, byte*, byte*, void>)funcTable[416])(self, pos, text, textEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[416])((nint)self, pos, (nint)text, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, byte* textEnd) - { - InsertCharsNative(self, pos, text, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text) - { - InsertCharsNative(self, pos, text, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - InsertCharsNative(self, pos, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text) - { - fixed (byte* ptext = &text) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - InsertCharsNative(self, pos, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan<byte> text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, byte* text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - InsertCharsNative(self, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ImGuiInputTextCallbackDataPtr self, int pos, string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative(self, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ref byte text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, ReadOnlySpan<byte> text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void InsertChars(ref ImGuiInputTextCallbackData self, int pos, string text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SelectAllNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, void>)funcTable[417])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[417])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SelectAll(ImGuiInputTextCallbackDataPtr self) - { - SelectAllNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SelectAll(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - SelectAllNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearSelectionNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, void>)funcTable[418])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[418])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearSelection(ImGuiInputTextCallbackDataPtr self) - { - ClearSelectionNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearSelection(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - ClearSelectionNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasSelectionNative(ImGuiInputTextCallbackData* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextCallbackData*, byte>)funcTable[419])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[419])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasSelection(ImGuiInputTextCallbackDataPtr self) - { - byte ret = HasSelectionNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasSelection(ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte ret = HasSelectionNative((ImGuiInputTextCallbackData*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowClass* ImGuiWindowClassNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindowClass*>)funcTable[420])(); - #else - return (ImGuiWindowClass*)((delegate* unmanaged[Cdecl]<nint>)funcTable[420])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowClassPtr ImGuiWindowClass() - { - ImGuiWindowClassPtr ret = ImGuiWindowClassNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiWindowClass* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindowClass*, void>)funcTable[421])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[421])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiWindowClassPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiWindowClass self) - { - fixed (ImGuiWindowClass* pself = &self) - { - DestroyNative((ImGuiWindowClass*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPayload* ImGuiPayloadNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*>)funcTable[422])(); - #else - return (ImGuiPayload*)((delegate* unmanaged[Cdecl]<nint>)funcTable[422])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPayloadPtr ImGuiPayload() - { - ImGuiPayloadPtr ret = ImGuiPayloadNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiPayload*, void>)funcTable[423])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[423])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiPayloadPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - DestroyNative((ImGuiPayload*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiPayload*, void>)funcTable[424])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[424])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImGuiPayloadPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - ClearNative((ImGuiPayload*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDataTypeNative(ImGuiPayload* self, byte* type) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*, byte*, byte>)funcTable[425])(self, type); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[425])((nint)self, (nint)type); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ImGuiPayloadPtr self, byte* type) - { - byte ret = IsDataTypeNative(self, type); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ref ImGuiPayload self, byte* type) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, type); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ImGuiPayloadPtr self, ref byte type) - { - fixed (byte* ptype = &type) - { - byte ret = IsDataTypeNative(self, (byte*)ptype); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ImGuiPayloadPtr self, ReadOnlySpan<byte> type) - { - fixed (byte* ptype = type) - { - byte ret = IsDataTypeNative(self, (byte*)ptype); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ImGuiPayloadPtr self, string type) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsDataTypeNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ref ImGuiPayload self, ref byte type) - { - fixed (ImGuiPayload* pself = &self) - { - fixed (byte* ptype = &type) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ref ImGuiPayload self, ReadOnlySpan<byte> type) - { - fixed (ImGuiPayload* pself = &self) - { - fixed (byte* ptype = type) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDataType(ref ImGuiPayload self, string type) - { - fixed (ImGuiPayload* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsDataTypeNative((ImGuiPayload*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPreviewNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*, byte>)funcTable[426])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[426])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPreview(ImGuiPayloadPtr self) - { - byte ret = IsPreviewNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPreview(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsPreviewNative((ImGuiPayload*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDeliveryNative(ImGuiPayload* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPayload*, byte>)funcTable[427])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[427])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDelivery(ImGuiPayloadPtr self) - { - byte ret = IsDeliveryNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDelivery(ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsDeliveryNative((ImGuiPayload*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSortSpecs*>)funcTable[428])(); - #else - return (ImGuiTableColumnSortSpecs*)((delegate* unmanaged[Cdecl]<nint>)funcTable[428])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableColumnSortSpecsPtr ImGuiTableColumnSortSpecs() - { - ImGuiTableColumnSortSpecsPtr ret = ImGuiTableColumnSortSpecsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableColumnSortSpecs* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSortSpecs*, void>)funcTable[429])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[429])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTableColumnSortSpecsPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTableColumnSortSpecs self) - { - fixed (ImGuiTableColumnSortSpecs* pself = &self) - { - DestroyNative((ImGuiTableColumnSortSpecs*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSortSpecs* ImGuiTableSortSpecsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableSortSpecs*>)funcTable[430])(); - #else - return (ImGuiTableSortSpecs*)((delegate* unmanaged[Cdecl]<nint>)funcTable[430])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableSortSpecsPtr ImGuiTableSortSpecs() - { - ImGuiTableSortSpecsPtr ret = ImGuiTableSortSpecsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableSortSpecs* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableSortSpecs*, void>)funcTable[431])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[431])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTableSortSpecsPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTableSortSpecs self) - { - fixed (ImGuiTableSortSpecs* pself = &self) - { - DestroyNative((ImGuiTableSortSpecs*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiOnceUponAFrame* ImGuiOnceUponAFrameNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiOnceUponAFrame*>)funcTable[432])(); - #else - return (ImGuiOnceUponAFrame*)((delegate* unmanaged[Cdecl]<nint>)funcTable[432])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiOnceUponAFramePtr ImGuiOnceUponAFrame() - { - ImGuiOnceUponAFramePtr ret = ImGuiOnceUponAFrameNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiOnceUponAFrame* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiOnceUponAFrame*, void>)funcTable[433])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[433])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiOnceUponAFramePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiOnceUponAFrame self) - { - fixed (ImGuiOnceUponAFrame* pself = &self) - { - DestroyNative((ImGuiOnceUponAFrame*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiTextFilter*>)funcTable[434])(defaultFilter); - #else - return (ImGuiTextFilter*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[434])((nint)defaultFilter); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextFilterPtr ImGuiTextFilter(byte* defaultFilter) - { - ImGuiTextFilterPtr ret = ImGuiTextFilterNative(defaultFilter); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextFilterPtr ImGuiTextFilter() - { - ImGuiTextFilterPtr ret = ImGuiTextFilter((string)""); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextFilterPtr ImGuiTextFilter(ref byte defaultFilter) - { - fixed (byte* pdefaultFilter = &defaultFilter) - { - ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextFilterPtr ImGuiTextFilter(ReadOnlySpan<byte> defaultFilter) - { - fixed (byte* pdefaultFilter = defaultFilter) - { - ImGuiTextFilterPtr ret = ImGuiTextFilterNative((byte*)pdefaultFilter); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextFilterPtr ImGuiTextFilter(string defaultFilter) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (defaultFilter != null) - { - pStrSize0 = Utils.GetByteCountUTF8(defaultFilter); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(defaultFilter, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextFilterPtr ret = ImGuiTextFilterNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTextFilter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, void>)funcTable[435])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[435])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTextFilterPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - DestroyNative((ImGuiTextFilter*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DrawNative(ImGuiTextFilter* self, byte* label, float width) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, byte*, float, byte>)funcTable[436])(self, label, width); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, byte>)funcTable[436])((nint)self, (nint)label, width); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, byte* label, float width) - { - byte ret = DrawNative(self, label, width); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, byte* label) - { - byte ret = DrawNative(self, label, (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self) - { - bool ret = Draw(self, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, float width) - { - bool ret = Draw(self, (string)"Filter(inc,-exc)", width); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, byte* label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, label, width); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, byte* label) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, label, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", width); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, ref byte label, float width) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative(self, (byte*)plabel, width); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan<byte> label, float width) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative(self, (byte*)plabel, width); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, string label, float width) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative(self, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ImGuiTextFilterPtr self, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative(self, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, ref byte label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, ref byte label) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan<byte> label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, ReadOnlySpan<byte> label) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, string label, float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Draw(ref ImGuiTextFilter self, string label) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, byte*, byte*, byte>)funcTable[437])(self, text, textEnd); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, byte>)funcTable[437])((nint)self, (nint)text, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, byte* textEnd) - { - byte ret = PassFilterNative(self, text, textEnd); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text) - { - byte ret = PassFilterNative(self, text, (byte*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, textEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, byte* text) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative(self, (byte*)ptext, textEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative(self, (byte*)ptext, textEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan<byte> text) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, string text, byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, string text) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, text, (byte*)ptextEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, text, (byte*)ptextEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, byte* text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = PassFilterNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ImGuiTextFilterPtr self, string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, string text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ref byte text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, ReadOnlySpan<byte> text, string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, string text, ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs deleted file mode 100644 index af94b80dc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.088.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool PassFilter(ref ImGuiTextFilter self, string text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BuildNative(ImGuiTextFilter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, void>)funcTable[438])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[438])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Build(ImGuiTextFilterPtr self) - { - BuildNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Build(ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - BuildNative((ImGuiTextFilter*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImGuiTextFilter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, void>)funcTable[439])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[439])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImGuiTextFilterPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - ClearNative((ImGuiTextFilter*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsActiveNative(ImGuiTextFilter* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextFilter*, byte>)funcTable[440])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[440])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsActive(ImGuiTextFilterPtr self) - { - byte ret = IsActiveNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsActive(ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = IsActiveNative((ImGuiTextFilter*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTextRange* ImGuiTextRangeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextRange*>)funcTable[441])(); - #else - return (ImGuiTextRange*)((delegate* unmanaged[Cdecl]<nint>)funcTable[441])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange() - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTextRange* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextRange*, void>)funcTable[442])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[442])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTextRangePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTextRange self) - { - fixed (ImGuiTextRange* pself = &self) - { - DestroyNative((ImGuiTextRange*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTextRange* ImGuiTextRangeNative(byte* b, byte* e) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, ImGuiTextRange*>)funcTable[443])(b, e); - #else - return (ImGuiTextRange*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[443])((nint)b, (nint)e); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(byte* b, byte* e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, e); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, byte* e) - { - fixed (byte* pb = &b) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, e); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan<byte> b, byte* e) - { - fixed (byte* pb = b) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, e); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(string b, byte* e) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (b != null) - { - pStrSize0 = Utils.GetByteCountUTF8(b); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, e); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(byte* b, ref byte e) - { - fixed (byte* pe = &e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, (byte*)pe); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(byte* b, ReadOnlySpan<byte> e) - { - fixed (byte* pe = e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, (byte*)pe); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(byte* b, string e) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (e != null) - { - pStrSize0 = Utils.GetByteCountUTF8(e); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextRangePtr ret = ImGuiTextRangeNative(b, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, ref byte e) - { - fixed (byte* pb = &b) - { - fixed (byte* pe = &e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan<byte> b, ReadOnlySpan<byte> e) - { - fixed (byte* pb = b) - { - fixed (byte* pe = e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(string b, string e) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (b != null) - { - pStrSize0 = Utils.GetByteCountUTF8(b); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (e != null) - { - pStrSize1 = Utils.GetByteCountUTF8(e); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(e, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, ReadOnlySpan<byte> e) - { - fixed (byte* pb = &b) - { - fixed (byte* pe = e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ref byte b, string e) - { - fixed (byte* pb = &b) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (e != null) - { - pStrSize0 = Utils.GetByteCountUTF8(e); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan<byte> b, ref byte e) - { - fixed (byte* pb = b) - { - fixed (byte* pe = &e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, (byte*)pe); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(ReadOnlySpan<byte> b, string e) - { - fixed (byte* pb = b) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (e != null) - { - pStrSize0 = Utils.GetByteCountUTF8(e); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(e, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextRangePtr ret = ImGuiTextRangeNative((byte*)pb, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(string b, ref byte e) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (b != null) - { - pStrSize0 = Utils.GetByteCountUTF8(b); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pe = &e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, (byte*)pe); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextRangePtr ImGuiTextRange(string b, ReadOnlySpan<byte> e) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (b != null) - { - pStrSize0 = Utils.GetByteCountUTF8(b); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(b, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pe = e) - { - ImGuiTextRangePtr ret = ImGuiTextRangeNative(pStr0, (byte*)pe); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte emptyNative(ImGuiTextRange* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextRange*, byte>)funcTable[444])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[444])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool empty(ImGuiTextRangePtr self) - { - byte ret = emptyNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool empty(ref ImGuiTextRange self) - { - fixed (ImGuiTextRange* pself = &self) - { - byte ret = emptyNative((ImGuiTextRange*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void splitNative(ImGuiTextRange* self, byte separator, ImVector<ImGuiTextRange>* output) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextRange*, byte, ImVector<ImGuiTextRange>*, void>)funcTable[445])(self, separator, output); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, nint, void>)funcTable[445])((nint)self, separator, (nint)output); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void split(ImGuiTextRangePtr self, byte separator, ImVector<ImGuiTextRange>* output) - { - splitNative(self, separator, output); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void split(ref ImGuiTextRange self, byte separator, ImVector<ImGuiTextRange>* output) - { - fixed (ImGuiTextRange* pself = &self) - { - splitNative((ImGuiTextRange*)pself, separator, output); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void split(ImGuiTextRangePtr self, byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - splitNative(self, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void split(ref ImGuiTextRange self, byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImGuiTextRange* pself = &self) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - splitNative((ImGuiTextRange*)pself, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTextBuffer* ImGuiTextBufferNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*>)funcTable[446])(); - #else - return (ImGuiTextBuffer*)((delegate* unmanaged[Cdecl]<nint>)funcTable[446])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTextBufferPtr ImGuiTextBuffer() - { - ImGuiTextBufferPtr ret = ImGuiTextBufferNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, void>)funcTable[447])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[447])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTextBufferPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - DestroyNative((ImGuiTextBuffer*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* beginNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*>)funcTable[448])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[448])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* begin(ImGuiTextBufferPtr self) - { - byte* ret = beginNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string beginS(ImGuiTextBufferPtr self) - { - string ret = Utils.DecodeStringUTF8(beginNative(self)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* begin(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* ret = beginNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string beginS(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - string ret = Utils.DecodeStringUTF8(beginNative((ImGuiTextBuffer*)pself)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* endNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*>)funcTable[449])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[449])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* end(ImGuiTextBufferPtr self) - { - byte* ret = endNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string endS(ImGuiTextBufferPtr self) - { - string ret = Utils.DecodeStringUTF8(endNative(self)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* end(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* ret = endNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string endS(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - string ret = Utils.DecodeStringUTF8(endNative((ImGuiTextBuffer*)pself)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int sizeNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, int>)funcTable[450])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[450])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int size(ImGuiTextBufferPtr self) - { - int ret = sizeNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int size(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - int ret = sizeNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte emptyNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte>)funcTable[451])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[451])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool empty(ImGuiTextBufferPtr self) - { - byte ret = emptyNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool empty(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte ret = emptyNative((ImGuiTextBuffer*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void clearNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, void>)funcTable[452])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[452])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void clear(ImGuiTextBufferPtr self) - { - clearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void clear(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - clearNative((ImGuiTextBuffer*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void reserveNative(ImGuiTextBuffer* self, int capacity) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, int, void>)funcTable[453])(self, capacity); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[453])((nint)self, capacity); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void reserve(ImGuiTextBufferPtr self, int capacity) - { - reserveNative(self, capacity); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void reserve(ref ImGuiTextBuffer self, int capacity) - { - fixed (ImGuiTextBuffer* pself = &self) - { - reserveNative((ImGuiTextBuffer*)pself, capacity); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* c_strNative(ImGuiTextBuffer* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*>)funcTable[454])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[454])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* c_str(ImGuiTextBufferPtr self) - { - byte* ret = c_strNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string c_strS(ImGuiTextBufferPtr self) - { - string ret = Utils.DecodeStringUTF8(c_strNative(self)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* c_str(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* ret = c_strNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string c_strS(ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - string ret = Utils.DecodeStringUTF8(c_strNative((ImGuiTextBuffer*)pself)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void appendNative(ImGuiTextBuffer* self, byte* str, byte* strEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*, byte*, void>)funcTable[455])(self, str, strEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[455])((nint)self, (nint)str, (nint)strEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, byte* str, byte* strEnd) - { - appendNative(self, str, strEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, byte* str) - { - appendNative(self, str, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, byte* str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendNative((ImGuiTextBuffer*)pself, str, strEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, byte* str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ref byte str, byte* strEnd) - { - fixed (byte* pstr = &str) - { - appendNative(self, (byte*)pstr, strEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ref byte str) - { - fixed (byte* pstr = &str) - { - appendNative(self, (byte*)pstr, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (byte* pstr = str) - { - appendNative(self, (byte*)pstr, strEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - appendNative(self, (byte*)pstr, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, string str, byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ref byte str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, strEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ref byte str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, strEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan<byte> str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, string str, byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, string str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, byte* str, ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, str, (byte*)pstrEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, str, (byte*)pstrEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, byte* str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, byte* str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, byte* str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ref byte str, ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, string str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - appendNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ref byte str, string strEnd) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, ReadOnlySpan<byte> str, string strEnd) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ImGuiTextBufferPtr self, string str, ReadOnlySpan<byte> strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - appendNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ref byte str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, string str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ref byte str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, ReadOnlySpan<byte> str, string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, string str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void append(ref ImGuiTextBuffer self, string str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void appendfvNative(ImGuiTextBuffer* self, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*, nuint, void>)funcTable[456])(self, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nuint, void>)funcTable[456])((nint)self, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ImGuiTextBufferPtr self, byte* fmt, nuint args) - { - appendfvNative(self, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ref ImGuiTextBuffer self, byte* fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendfvNative((ImGuiTextBuffer*)pself, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ImGuiTextBufferPtr self, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - appendfvNative(self, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ImGuiTextBufferPtr self, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - appendfvNative(self, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ImGuiTextBufferPtr self, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfvNative(self, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ref ImGuiTextBuffer self, ref byte fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - appendfvNative((ImGuiTextBuffer*)pself, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ref ImGuiTextBuffer self, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pfmt = fmt) - { - appendfvNative((ImGuiTextBuffer*)pself, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void appendfv(ref ImGuiTextBuffer self, string fmt, nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfvNative((ImGuiTextBuffer*)pself, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, int valI) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, int, ImGuiStoragePair*>)funcTable[457])(key, valI); - #else - return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl]<uint, int, nint>)funcTable[457])(key, valI); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, int valI) - { - ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valI); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStoragePair* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStoragePair*, void>)funcTable[458])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[458])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiStoragePairPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiStoragePair self) - { - fixed (ImGuiStoragePair* pself = &self) - { - DestroyNative((ImGuiStoragePair*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, float valF) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, float, ImGuiStoragePair*>)funcTable[459])(key, valF); - #else - return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl]<uint, float, nint>)funcTable[459])(key, valF); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, float valF) - { - ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valF); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStoragePair* ImGuiStoragePairNative(uint key, void* valP) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, void*, ImGuiStoragePair*>)funcTable[460])(key, valP); - #else - return (ImGuiStoragePair*)((delegate* unmanaged[Cdecl]<uint, nint, nint>)funcTable[460])(key, (nint)valP); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStoragePairPtr ImGuiStoragePair(uint key, void* valP) - { - ImGuiStoragePairPtr ret = ImGuiStoragePairNative(key, valP); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImGuiStorage* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, void>)funcTable[461])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[461])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImGuiStoragePtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - ClearNative((ImGuiStorage*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetIntNative(ImGuiStorage* self, uint key, int defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, int, int>)funcTable[462])(self, key, defaultVal); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, uint, int, int>)funcTable[462])((nint)self, key, defaultVal); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetInt(ImGuiStoragePtr self, uint key, int defaultVal) - { - int ret = GetIntNative(self, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetInt(ImGuiStoragePtr self, uint key) - { - int ret = GetIntNative(self, key, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetInt(ref ImGuiStorage self, uint key, int defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = GetIntNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetInt(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = GetIntNative((ImGuiStorage*)pself, key, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetIntNative(ImGuiStorage* self, uint key, int val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, int, void>)funcTable[463])(self, key, val); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, int, void>)funcTable[463])((nint)self, key, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetInt(ImGuiStoragePtr self, uint key, int val) - { - SetIntNative(self, key, val); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetInt(ref ImGuiStorage self, uint key, int val) - { - fixed (ImGuiStorage* pself = &self) - { - SetIntNative((ImGuiStorage*)pself, key, val); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetBoolNative(ImGuiStorage* self, uint key, byte defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, byte, byte>)funcTable[464])(self, key, defaultVal); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, uint, byte, byte>)funcTable[464])((nint)self, key, defaultVal); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetBool(ImGuiStoragePtr self, uint key, bool defaultVal) - { - byte ret = GetBoolNative(self, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetBool(ImGuiStoragePtr self, uint key) - { - byte ret = GetBoolNative(self, key, (byte)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetBool(ref ImGuiStorage self, uint key, bool defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = GetBoolNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetBool(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = GetBoolNative((ImGuiStorage*)pself, key, (byte)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetBoolNative(ImGuiStorage* self, uint key, byte val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, byte, void>)funcTable[465])(self, key, val); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, byte, void>)funcTable[465])((nint)self, key, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetBool(ImGuiStoragePtr self, uint key, bool val) - { - SetBoolNative(self, key, val ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetBool(ref ImGuiStorage self, uint key, bool val) - { - fixed (ImGuiStorage* pself = &self) - { - SetBoolNative((ImGuiStorage*)pself, key, val ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetFloatNative(ImGuiStorage* self, uint key, float defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, float, float>)funcTable[466])(self, key, defaultVal); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, uint, float, float>)funcTable[466])((nint)self, key, defaultVal); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetFloat(ImGuiStoragePtr self, uint key, float defaultVal) - { - float ret = GetFloatNative(self, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetFloat(ImGuiStoragePtr self, uint key) - { - float ret = GetFloatNative(self, key, (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetFloat(ref ImGuiStorage self, uint key, float defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = GetFloatNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetFloat(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = GetFloatNative((ImGuiStorage*)pself, key, (float)(0.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetFloatNative(ImGuiStorage* self, uint key, float val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, float, void>)funcTable[467])(self, key, val); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, float, void>)funcTable[467])((nint)self, key, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetFloat(ImGuiStoragePtr self, uint key, float val) - { - SetFloatNative(self, key, val); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetFloat(ref ImGuiStorage self, uint key, float val) - { - fixed (ImGuiStorage* pself = &self) - { - SetFloatNative((ImGuiStorage*)pself, key, val); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void* GetVoidPtrNative(ImGuiStorage* self, uint key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, void*>)funcTable[468])(self, key); - #else - return (void*)((delegate* unmanaged[Cdecl]<nint, uint, nint>)funcTable[468])((nint)self, key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* GetVoidPtr(ImGuiStoragePtr self, uint key) - { - void* ret = GetVoidPtrNative(self, key); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* GetVoidPtr(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - void* ret = GetVoidPtrNative((ImGuiStorage*)pself, key); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetVoidPtrNative(ImGuiStorage* self, uint key, void* val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, void*, void>)funcTable[469])(self, key, val); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, nint, void>)funcTable[469])((nint)self, key, (nint)val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetVoidPtr(ImGuiStoragePtr self, uint key, void* val) - { - SetVoidPtrNative(self, key, val); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetVoidPtr(ref ImGuiStorage self, uint key, void* val) - { - fixed (ImGuiStorage* pself = &self) - { - SetVoidPtrNative((ImGuiStorage*)pself, key, val); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int* GetIntRefNative(ImGuiStorage* self, uint key, int defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, int, int*>)funcTable[470])(self, key, defaultVal); - #else - return (int*)((delegate* unmanaged[Cdecl]<nint, uint, int, nint>)funcTable[470])((nint)self, key, defaultVal); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int* GetIntRef(ImGuiStoragePtr self, uint key, int defaultVal) - { - int* ret = GetIntRefNative(self, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int* GetIntRef(ImGuiStoragePtr self, uint key) - { - int* ret = GetIntRefNative(self, key, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int* GetIntRef(ref ImGuiStorage self, uint key, int defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - int* ret = GetIntRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int* GetIntRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - int* ret = GetIntRefNative((ImGuiStorage*)pself, key, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static bool* GetBoolRefNative(ImGuiStorage* self, uint key, byte defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, byte, bool*>)funcTable[471])(self, key, defaultVal); - #else - return (bool*)((delegate* unmanaged[Cdecl]<nint, uint, byte, nint>)funcTable[471])((nint)self, key, defaultVal); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool* GetBoolRef(ImGuiStoragePtr self, uint key, bool defaultVal) - { - bool* ret = GetBoolRefNative(self, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool* GetBoolRef(ImGuiStoragePtr self, uint key) - { - bool* ret = GetBoolRefNative(self, key, (byte)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool* GetBoolRef(ref ImGuiStorage self, uint key, bool defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - bool* ret = GetBoolRefNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool* GetBoolRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - bool* ret = GetBoolRefNative((ImGuiStorage*)pself, key, (byte)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float* GetFloatRefNative(ImGuiStorage* self, uint key, float defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, float, float*>)funcTable[472])(self, key, defaultVal); - #else - return (float*)((delegate* unmanaged[Cdecl]<nint, uint, float, nint>)funcTable[472])((nint)self, key, defaultVal); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float* GetFloatRef(ImGuiStoragePtr self, uint key, float defaultVal) - { - float* ret = GetFloatRefNative(self, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float* GetFloatRef(ImGuiStoragePtr self, uint key) - { - float* ret = GetFloatRefNative(self, key, (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float* GetFloatRef(ref ImGuiStorage self, uint key, float defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static float* GetFloatRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, (float)(0.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void** GetVoidPtrRefNative(ImGuiStorage* self, uint key, void* defaultVal) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStorage*, uint, void*, void**>)funcTable[473])(self, key, defaultVal); - #else - return (void**)((delegate* unmanaged[Cdecl]<nint, uint, nint, nint>)funcTable[473])((nint)self, key, (nint)defaultVal); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void** GetVoidPtrRef(ImGuiStoragePtr self, uint key, void* defaultVal) - { - void** ret = GetVoidPtrRefNative(self, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void** GetVoidPtrRef(ImGuiStoragePtr self, uint key) - { - void** ret = GetVoidPtrRefNative(self, key, (void*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void** GetVoidPtrRef(ref ImGuiStorage self, uint key, void* defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void** GetVoidPtrRef(ref ImGuiStorage self, uint key) - { - fixed (ImGuiStorage* pself = &self) - { - void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, (void*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAllIntNative(ImGuiStorage* self, int val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, int, void>)funcTable[474])(self, val); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[474])((nint)self, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAllInt(ImGuiStoragePtr self, int val) - { - SetAllIntNative(self, val); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAllInt(ref ImGuiStorage self, int val) - { - fixed (ImGuiStorage* pself = &self) - { - SetAllIntNative((ImGuiStorage*)pself, val); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BuildSortByKeyNative(ImGuiStorage* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, void>)funcTable[475])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[475])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildSortByKey(ImGuiStoragePtr self) - { - BuildSortByKeyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildSortByKey(ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - BuildSortByKeyNative((ImGuiStorage*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiListClipper* ImGuiListClipperNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiListClipper*>)funcTable[476])(); - #else - return (ImGuiListClipper*)((delegate* unmanaged[Cdecl]<nint>)funcTable[476])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiListClipperPtr ImGuiListClipper() - { - ImGuiListClipperPtr ret = ImGuiListClipperNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiListClipper* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, void>)funcTable[477])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[477])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiListClipperPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - DestroyNative((ImGuiListClipper*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginNative(ImGuiListClipper* self, int itemsCount, float itemsHeight) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, int, float, void>)funcTable[478])(self, itemsCount, itemsHeight); - #else - ((delegate* unmanaged[Cdecl]<nint, int, float, void>)funcTable[478])((nint)self, itemsCount, itemsHeight); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Begin(ImGuiListClipperPtr self, int itemsCount, float itemsHeight) - { - BeginNative(self, itemsCount, itemsHeight); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Begin(ImGuiListClipperPtr self, int itemsCount) - { - BeginNative(self, itemsCount, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Begin(ref ImGuiListClipper self, int itemsCount, float itemsHeight) - { - fixed (ImGuiListClipper* pself = &self) - { - BeginNative((ImGuiListClipper*)pself, itemsCount, itemsHeight); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Begin(ref ImGuiListClipper self, int itemsCount) - { - fixed (ImGuiListClipper* pself = &self) - { - BeginNative((ImGuiListClipper*)pself, itemsCount, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndNative(ImGuiListClipper* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, void>)funcTable[479])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[479])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void End(ImGuiListClipperPtr self) - { - EndNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void End(ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - EndNative((ImGuiListClipper*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte StepNative(ImGuiListClipper* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, byte>)funcTable[480])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[480])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Step(ImGuiListClipperPtr self) - { - byte ret = StepNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Step(ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - byte ret = StepNative((ImGuiListClipper*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ForceDisplayRangeByIndicesNative(ImGuiListClipper* self, int itemMin, int itemMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiListClipper*, int, int, void>)funcTable[481])(self, itemMin, itemMax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, void>)funcTable[481])((nint)self, itemMin, itemMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ForceDisplayRangeByIndices(ImGuiListClipperPtr self, int itemMin, int itemMax) - { - ForceDisplayRangeByIndicesNative(self, itemMin, itemMax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ForceDisplayRangeByIndices(ref ImGuiListClipper self, int itemMin, int itemMax) - { - fixed (ImGuiListClipper* pself = &self) - { - ForceDisplayRangeByIndicesNative((ImGuiListClipper*)pself, itemMin, itemMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImColor*>)funcTable[482])(); - #else - return (ImColor*)((delegate* unmanaged[Cdecl]<nint>)funcTable[482])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColorPtr ImColor() - { - ImColorPtr ret = ImColorNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImColor* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImColor*, void>)funcTable[483])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[483])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImColorPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImColor self) - { - fixed (ImColor* pself = &self) - { - DestroyNative((ImColor*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(float r, float g, float b, float a) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float, ImColor*>)funcTable[484])(r, g, b, a); - #else - return (ImColor*)((delegate* unmanaged[Cdecl]<float, float, float, float, nint>)funcTable[484])(r, g, b, a); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColorPtr ImColor(float r, float g, float b, float a) - { - ImColorPtr ret = ImColorNative(r, g, b, a); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColorPtr ImColor(float r, float g, float b) - { - ImColorPtr ret = ImColorNative(r, g, b, (float)(1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(Vector4 col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4, ImColor*>)funcTable[485])(col); - #else - return (ImColor*)((delegate* unmanaged[Cdecl]<Vector4, nint>)funcTable[485])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColorPtr ImColor(Vector4 col) - { - ImColorPtr ret = ImColorNative(col); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(int r, int g, int b, int a) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, int, int, ImColor*>)funcTable[486])(r, g, b, a); - #else - return (ImColor*)((delegate* unmanaged[Cdecl]<int, int, int, int, nint>)funcTable[486])(r, g, b, a); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColorPtr ImColor(int r, int g, int b, int a) - { - ImColorPtr ret = ImColorNative(r, g, b, a); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColorPtr ImColor(int r, int g, int b) - { - ImColorPtr ret = ImColorNative(r, g, b, (int)(255)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImColor* ImColorNative(uint rgba) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImColor*>)funcTable[487])(rgba); - #else - return (ImColor*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[487])(rgba); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColorPtr ImColor(uint rgba) - { - ImColorPtr ret = ImColorNative(rgba); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetHSVNative(ImColor* self, float h, float s, float v, float a) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImColor*, float, float, float, float, void>)funcTable[488])(self, h, s, v, a); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, float, float, void>)funcTable[488])((nint)self, h, s, v, a); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetHSV(ImColorPtr self, float h, float s, float v, float a) - { - SetHSVNative(self, h, s, v, a); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetHSV(ImColorPtr self, float h, float s, float v) - { - SetHSVNative(self, h, s, v, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetHSV(ref ImColor self, float h, float s, float v, float a) - { - fixed (ImColor* pself = &self) - { - SetHSVNative((ImColor*)pself, h, s, v, a); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetHSV(ref ImColor self, float h, float s, float v) - { - fixed (ImColor* pself = &self) - { - SetHSVNative((ImColor*)pself, h, s, v, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void HSVNative(ImColor* pOut, float h, float s, float v, float a) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImColor*, float, float, float, float, void>)funcTable[489])(pOut, h, s, v, a); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, float, float, void>)funcTable[489])((nint)pOut, h, s, v, a); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColor HSV(float h, float s, float v) - { - ImColor ret; - HSVNative(&ret, h, s, v, (float)(1.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImColor HSV(float h, float s, float v, float a) - { - ImColor ret; - HSVNative(&ret, h, s, v, a); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HSV(ImColorPtr pOut, float h, float s, float v, float a) - { - HSVNative(pOut, h, s, v, a); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HSV(ImColorPtr pOut, float h, float s, float v) - { - HSVNative(pOut, h, s, v, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HSV(ref ImColor pOut, float h, float s, float v, float a) - { - fixed (ImColor* ppOut = &pOut) - { - HSVNative((ImColor*)ppOut, h, s, v, a); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HSV(ref ImColor pOut, float h, float s, float v) - { - fixed (ImColor* ppOut = &pOut) - { - HSVNative((ImColor*)ppOut, h, s, v, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawCmd* ImDrawCmdNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawCmd*>)funcTable[490])(); - #else - return (ImDrawCmd*)((delegate* unmanaged[Cdecl]<nint>)funcTable[490])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawCmdPtr ImDrawCmd() - { - ImDrawCmdPtr ret = ImDrawCmdNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawCmd* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawCmd*, void>)funcTable[491])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[491])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImDrawCmdPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - DestroyNative((ImDrawCmd*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImTextureID GetTexIDNative(ImDrawCmd* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawCmd*, ImTextureID>)funcTable[492])(self); - #else - return (ImTextureID)((delegate* unmanaged[Cdecl]<nint, ImTextureID>)funcTable[492])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImTextureID GetTexID(ImDrawCmdPtr self) - { - ImTextureID ret = GetTexIDNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImTextureID GetTexID(ref ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - ImTextureID ret = GetTexIDNative((ImDrawCmd*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawListSplitter* ImDrawListSplitterNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*>)funcTable[493])(); - #else - return (ImDrawListSplitter*)((delegate* unmanaged[Cdecl]<nint>)funcTable[493])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListSplitterPtr ImDrawListSplitter() - { - ImDrawListSplitterPtr ret = ImDrawListSplitterNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawListSplitter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, void>)funcTable[494])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[494])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImDrawListSplitterPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - DestroyNative((ImDrawListSplitter*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImDrawListSplitter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, void>)funcTable[495])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[495])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImDrawListSplitterPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ClearNative((ImDrawListSplitter*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFreeMemoryNative(ImDrawListSplitter* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, void>)funcTable[496])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[496])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFreeMemory(ImDrawListSplitterPtr self) - { - ClearFreeMemoryNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFreeMemory(ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ClearFreeMemoryNative((ImDrawListSplitter*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SplitNative(ImDrawListSplitter* self, ImDrawList* drawList, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, ImDrawList*, int, void>)funcTable[497])(self, drawList, count); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, void>)funcTable[497])((nint)self, (nint)drawList, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Split(ImDrawListSplitterPtr self, ImDrawListPtr drawList, int count) - { - SplitNative(self, drawList, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Split(ref ImDrawListSplitter self, ImDrawListPtr drawList, int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - SplitNative((ImDrawListSplitter*)pself, drawList, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Split(ImDrawListSplitterPtr self, ref ImDrawList drawList, int count) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SplitNative(self, (ImDrawList*)pdrawList, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Split(ref ImDrawListSplitter self, ref ImDrawList drawList, int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SplitNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, count); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MergeNative(ImDrawListSplitter* self, ImDrawList* drawList) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, ImDrawList*, void>)funcTable[498])(self, drawList); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[498])((nint)self, (nint)drawList); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Merge(ImDrawListSplitterPtr self, ImDrawListPtr drawList) - { - MergeNative(self, drawList); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Merge(ref ImDrawListSplitter self, ImDrawListPtr drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - MergeNative((ImDrawListSplitter*)pself, drawList); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Merge(ImDrawListSplitterPtr self, ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - MergeNative(self, (ImDrawList*)pdrawList); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Merge(ref ImDrawListSplitter self, ref ImDrawList drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - MergeNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCurrentChannelNative(ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSplitter*, ImDrawList*, int, void>)funcTable[499])(self, drawList, channelIdx); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, void>)funcTable[499])((nint)self, (nint)drawList, channelIdx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentChannel(ImDrawListSplitterPtr self, ImDrawListPtr drawList, int channelIdx) - { - SetCurrentChannelNative(self, drawList, channelIdx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentChannel(ref ImDrawListSplitter self, ImDrawListPtr drawList, int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - SetCurrentChannelNative((ImDrawListSplitter*)pself, drawList, channelIdx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentChannel(ImDrawListSplitterPtr self, ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SetCurrentChannelNative(self, (ImDrawList*)pdrawList, channelIdx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentChannel(ref ImDrawListSplitter self, ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SetCurrentChannelNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, channelIdx); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* ImDrawListNative(ImDrawListSharedData* sharedData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*, ImDrawList*>)funcTable[500])(sharedData); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[500])((nint)sharedData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr ImDrawList(ImDrawListSharedDataPtr sharedData) - { - ImDrawListPtr ret = ImDrawListNative(sharedData); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr ImDrawList(ref ImDrawListSharedData sharedData) - { - fixed (ImDrawListSharedData* psharedData = &sharedData) - { - ImDrawListPtr ret = ImDrawListNative((ImDrawListSharedData*)psharedData); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[501])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[501])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImDrawListPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - DestroyNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushClipRectNative(ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, byte, void>)funcTable[502])(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, byte, void>)funcTable[502])((nint)self, clipRectMin, clipRectMax, intersectWithCurrentClipRect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushClipRect(ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - PushClipRectNative(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushClipRect(ImDrawListPtr self, Vector2 clipRectMin, Vector2 clipRectMax) - { - PushClipRectNative(self, clipRectMin, clipRectMax, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushClipRect(ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushClipRect(ref ImDrawList self, Vector2 clipRectMin, Vector2 clipRectMax) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushClipRectFullScreenNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[503])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[503])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushClipRectFullScreen(ImDrawListPtr self) - { - PushClipRectFullScreenNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushClipRectFullScreen(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectFullScreenNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopClipRectNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[504])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[504])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopClipRect(ImDrawListPtr self) - { - PopClipRectNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopClipRect(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PopClipRectNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushTextureIDNative(ImDrawList* self, ImTextureID textureId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, void>)funcTable[505])(self, textureId); - #else - ((delegate* unmanaged[Cdecl]<nint, ImTextureID, void>)funcTable[505])((nint)self, textureId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushTextureID(ImDrawListPtr self, ImTextureID textureId) - { - PushTextureIDNative(self, textureId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushTextureID(ref ImDrawList self, ImTextureID textureId) - { - fixed (ImDrawList* pself = &self) - { - PushTextureIDNative((ImDrawList*)pself, textureId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopTextureIDNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[506])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[506])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopTextureID(ImDrawListPtr self) - { - PopTextureIDNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopTextureID(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PopTextureIDNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetClipRectMinNative(Vector2* pOut, ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImDrawList*, void>)funcTable[507])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[507])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetClipRectMin(ImDrawListPtr self) - { - Vector2 ret; - GetClipRectMinNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMin(Vector2* pOut, ImDrawListPtr self) - { - GetClipRectMinNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMin(ref Vector2 pOut, ImDrawListPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetClipRectMinNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetClipRectMin(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - Vector2 ret; - GetClipRectMinNative(&ret, (ImDrawList*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMin(Vector2* pOut, ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMinNative(pOut, (ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMin(ref Vector2 pOut, ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMinNative((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetClipRectMaxNative(Vector2* pOut, ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImDrawList*, void>)funcTable[508])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[508])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetClipRectMax(ImDrawListPtr self) - { - Vector2 ret; - GetClipRectMaxNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMax(Vector2* pOut, ImDrawListPtr self) - { - GetClipRectMaxNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMax(ref Vector2 pOut, ImDrawListPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetClipRectMaxNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetClipRectMax(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - Vector2 ret; - GetClipRectMaxNative(&ret, (ImDrawList*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMax(Vector2* pOut, ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMaxNative(pOut, (ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetClipRectMax(ref Vector2 pOut, ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMaxNative((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddLineNative(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, void>)funcTable[509])(self, p1, p2, col, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, float, void>)funcTable[509])((nint)self, p1, p2, col, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddLine(ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - AddLineNative(self, p1, p2, col, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddLine(ImDrawListPtr self, Vector2 p1, Vector2 p2, uint col) - { - AddLineNative(self, p1, p2, col, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddLine(ref ImDrawList self, Vector2 p1, Vector2 p2, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddLineNative((ImDrawList*)pself, p1, p2, col, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddLine(ref ImDrawList self, Vector2 p1, Vector2 p2, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddLineNative((ImDrawList*)pself, p1, p2, col, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRectNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, ImDrawFlags, float, void>)funcTable[510])(self, pMin, pMax, col, rounding, flags, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, float, ImDrawFlags, float, void>)funcTable[510])((nint)self, pMin, pMax, col, rounding, flags, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - AddRectNative(self, pMin, pMax, col, rounding, flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - AddRectNative(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRect(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRectFilledNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, ImDrawFlags, void>)funcTable[511])(self, pMin, pMax, col, rounding, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, float, ImDrawFlags, void>)funcTable[511])((nint)self, pMin, pMax, col, rounding, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - AddRectFilledNative(self, pMin, pMax, col, rounding, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - AddRectFilledNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col) - { - AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilled(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRectFilledMultiColorNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, uint, uint, uint, void>)funcTable[512])(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, uint, uint, uint, void>)funcTable[512])((nint)self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilledMultiColor(ImDrawListPtr self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - AddRectFilledMultiColorNative(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRectFilledMultiColor(ref ImDrawList self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledMultiColorNative((ImDrawList*)pself, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddQuadNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, float, void>)funcTable[513])(self, p1, p2, p3, p4, col, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, uint, float, void>)funcTable[513])((nint)self, p1, p2, p3, p4, col, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddQuad(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - AddQuadNative(self, p1, p2, p3, p4, col, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddQuad(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - AddQuadNative(self, p1, p2, p3, p4, col, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddQuad(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddQuad(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddQuadFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[514])(self, p1, p2, p3, p4, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[514])((nint)self, p1, p2, p3, p4, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddQuadFilled(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - AddQuadFilledNative(self, p1, p2, p3, p4, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddQuadFilled(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddQuadFilledNative((ImDrawList*)pself, p1, p2, p3, p4, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTriangleNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, uint, float, void>)funcTable[515])(self, p1, p2, p3, col, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, uint, float, void>)funcTable[515])((nint)self, p1, p2, p3, col, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTriangle(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - AddTriangleNative(self, p1, p2, p3, col, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTriangle(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - AddTriangleNative(self, p1, p2, p3, col, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTriangle(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTriangle(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTriangleFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, uint, void>)funcTable[516])(self, p1, p2, p3, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, uint, void>)funcTable[516])((nint)self, p1, p2, p3, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTriangleFilled(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - AddTriangleFilledNative(self, p1, p2, p3, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTriangleFilled(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleFilledNative((ImDrawList*)pself, p1, p2, p3, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCircleNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, float, void>)funcTable[517])(self, center, radius, col, numSegments, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, uint, int, float, void>)funcTable[517])((nint)self, center, radius, col, numSegments, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - AddCircleNative(self, center, radius, col, numSegments, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddCircleNative(self, center, radius, col, numSegments, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col) - { - AddCircleNative(self, center, radius, col, (int)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ImDrawListPtr self, Vector2 center, float radius, uint col, float thickness) - { - AddCircleNative(self, center, radius, col, (int)(0), thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircle(ref ImDrawList self, Vector2 center, float radius, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCircleFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, void>)funcTable[518])(self, center, radius, col, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, uint, int, void>)funcTable[518])((nint)self, center, radius, col, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircleFilled(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddCircleFilledNative(self, center, radius, col, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircleFilled(ImDrawListPtr self, Vector2 center, float radius, uint col) - { - AddCircleFilledNative(self, center, radius, col, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircleFilled(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddCircleFilledNative((ImDrawList*)pself, center, radius, col, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCircleFilled(ref ImDrawList self, Vector2 center, float radius, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddCircleFilledNative((ImDrawList*)pself, center, radius, col, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNgonNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, float, void>)funcTable[519])(self, center, radius, col, numSegments, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, uint, int, float, void>)funcTable[519])((nint)self, center, radius, col, numSegments, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddNgon(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - AddNgonNative(self, center, radius, col, numSegments, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddNgon(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddNgonNative(self, center, radius, col, numSegments, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddNgon(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddNgon(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNgonFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, int, void>)funcTable[520])(self, center, radius, col, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, uint, int, void>)funcTable[520])((nint)self, center, radius, col, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddNgonFilled(ImDrawListPtr self, Vector2 center, float radius, uint col, int numSegments) - { - AddNgonFilledNative(self, center, radius, col, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddNgonFilled(ref ImDrawList self, Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddNgonFilledNative((ImDrawList*)pself, center, radius, col, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextNative(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, byte*, byte*, void>)funcTable[521])(self, pos, col, textBegin, textEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, uint, nint, nint, void>)funcTable[521])((nint)self, pos, col, (nint)textBegin, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - AddTextNative(self, pos, col, textBegin, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin) - { - AddTextNative(self, pos, col, textBegin, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs deleted file mode 100644 index f96378d21..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.089.cs +++ /dev/null @@ -1,5050 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextNative(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImFont*, float, Vector2, uint, byte*, byte*, float, Vector4*, void>)funcTable[522])(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, float, Vector2, uint, nint, nint, float, nint, void>)funcTable[522])((nint)self, (nint)font, fontSize, pos, col, (nint)textBegin, (nint)textEnd, wrapWidth, (nint)cpuFineClipRect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs deleted file mode 100644 index d92aff9e9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.090.cs +++ /dev/null @@ -1,5073 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs deleted file mode 100644 index f2226190c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.091.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImDrawListPtr self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImDrawList self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddPolylineNative(ImDrawList* self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2*, int, uint, ImDrawFlags, float, void>)funcTable[523])(self, points, numPoints, col, flags, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, uint, ImDrawFlags, float, void>)funcTable[523])((nint)self, (nint)points, numPoints, col, flags, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddPolyline(ImDrawListPtr self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - AddPolylineNative(self, points, numPoints, col, flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddPolyline(ref ImDrawList self, Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddPolylineNative((ImDrawList*)pself, points, numPoints, col, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddPolyline(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (Vector2* ppoints = &points) - { - AddPolylineNative(self, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddPolyline(ref ImDrawList self, ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - AddPolylineNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddConvexPolyFilledNative(ImDrawList* self, Vector2* points, int numPoints, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2*, int, uint, void>)funcTable[524])(self, points, numPoints, col); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, uint, void>)funcTable[524])((nint)self, (nint)points, numPoints, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddConvexPolyFilled(ImDrawListPtr self, Vector2* points, int numPoints, uint col) - { - AddConvexPolyFilledNative(self, points, numPoints, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddConvexPolyFilled(ref ImDrawList self, Vector2* points, int numPoints, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddConvexPolyFilledNative((ImDrawList*)pself, points, numPoints, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddConvexPolyFilled(ImDrawListPtr self, ref Vector2 points, int numPoints, uint col) - { - fixed (Vector2* ppoints = &points) - { - AddConvexPolyFilledNative(self, (Vector2*)ppoints, numPoints, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddConvexPolyFilled(ref ImDrawList self, ref Vector2 points, int numPoints, uint col) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - AddConvexPolyFilledNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddBezierCubicNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, float, int, void>)funcTable[525])(self, p1, p2, p3, p4, col, thickness, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, uint, float, int, void>)funcTable[525])((nint)self, p1, p2, p3, p4, col, thickness, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierCubic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierCubic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddBezierQuadraticNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, uint, float, int, void>)funcTable[526])(self, p1, p2, p3, col, thickness, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, uint, float, int, void>)funcTable[526])((nint)self, p1, p2, p3, col, thickness, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierQuadratic(ImDrawListPtr self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddBezierQuadratic(ref ImDrawList self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddImageNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[527])(self, userTextureId, pMin, pMax, uvMin, uvMax, col); - #else - ((delegate* unmanaged[Cdecl]<nint, ImTextureID, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[527])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImage(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddImageQuadNative(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[528])(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - #else - ((delegate* unmanaged[Cdecl]<nint, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[528])((nint)self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ImDrawListPtr self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageQuad(ref ImDrawList self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddImageRoundedNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImTextureID, Vector2, Vector2, Vector2, Vector2, uint, float, ImDrawFlags, void>)funcTable[529])(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImTextureID, Vector2, Vector2, Vector2, Vector2, uint, float, ImDrawFlags, void>)funcTable[529])((nint)self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageRounded(ImDrawListPtr self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddImageRounded(ref ImDrawList self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathClearNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[530])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[530])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathClear(ImDrawListPtr self) - { - PathClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathClear(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PathClearNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathLineToNative(ImDrawList* self, Vector2 pos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, void>)funcTable[531])(self, pos); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[531])((nint)self, pos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathLineTo(ImDrawListPtr self, Vector2 pos) - { - PathLineToNative(self, pos); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathLineTo(ref ImDrawList self, Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - PathLineToNative((ImDrawList*)pself, pos); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathLineToMergeDuplicateNative(ImDrawList* self, Vector2 pos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, void>)funcTable[532])(self, pos); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[532])((nint)self, pos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathLineToMergeDuplicate(ImDrawListPtr self, Vector2 pos) - { - PathLineToMergeDuplicateNative(self, pos); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathLineToMergeDuplicate(ref ImDrawList self, Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - PathLineToMergeDuplicateNative((ImDrawList*)pself, pos); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathFillConvexNative(ImDrawList* self, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, uint, void>)funcTable[533])(self, col); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[533])((nint)self, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathFillConvex(ImDrawListPtr self, uint col) - { - PathFillConvexNative(self, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathFillConvex(ref ImDrawList self, uint col) - { - fixed (ImDrawList* pself = &self) - { - PathFillConvexNative((ImDrawList*)pself, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathStrokeNative(ImDrawList* self, uint col, ImDrawFlags flags, float thickness) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, uint, ImDrawFlags, float, void>)funcTable[534])(self, col, flags, thickness); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, ImDrawFlags, float, void>)funcTable[534])((nint)self, col, flags, thickness); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags, float thickness) - { - PathStrokeNative(self, col, flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ImDrawListPtr self, uint col, ImDrawFlags flags) - { - PathStrokeNative(self, col, flags, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ImDrawListPtr self, uint col) - { - PathStrokeNative(self, col, (ImDrawFlags)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ImDrawListPtr self, uint col, float thickness) - { - PathStrokeNative(self, col, (ImDrawFlags)(0), thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ref ImDrawList self, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, flags, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ref ImDrawList self, uint col) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathStroke(ref ImDrawList self, uint col, float thickness) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathArcToNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, float, float, int, void>)funcTable[535])(self, center, radius, aMin, aMax, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, float, float, int, void>)funcTable[535])((nint)self, center, radius, aMin, aMax, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - PathArcToNative(self, center, radius, aMin, aMax, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathArcTo(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax) - { - PathArcToNative(self, center, radius, aMin, aMax, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathArcTo(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax) - { - fixed (ImDrawList* pself = &self) - { - PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathArcToFastNative(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, int, int, void>)funcTable[536])(self, center, radius, aMinOf12, aMaxOf12); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, int, int, void>)funcTable[536])((nint)self, center, radius, aMinOf12, aMaxOf12); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathArcToFast(ImDrawListPtr self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - PathArcToFastNative(self, center, radius, aMinOf12, aMaxOf12); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathArcToFast(ref ImDrawList self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - fixed (ImDrawList* pself = &self) - { - PathArcToFastNative((ImDrawList*)pself, center, radius, aMinOf12, aMaxOf12); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathBezierCubicCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, int, void>)funcTable[537])(self, p2, p3, p4, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, int, void>)funcTable[537])((nint)self, p2, p3, p4, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - PathBezierCubicCurveToNative(self, p2, p3, p4, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierCubicCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, Vector2 p4) - { - PathBezierCubicCurveToNative(self, p2, p3, p4, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierCubicCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathBezierQuadraticCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, int, void>)funcTable[538])(self, p2, p3, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, int, void>)funcTable[538])((nint)self, p2, p3, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3, int numSegments) - { - PathBezierQuadraticCurveToNative(self, p2, p3, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierQuadraticCurveTo(ImDrawListPtr self, Vector2 p2, Vector2 p3) - { - PathBezierQuadraticCurveToNative(self, p2, p3, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathBezierQuadraticCurveTo(ref ImDrawList self, Vector2 p2, Vector2 p3) - { - fixed (ImDrawList* pself = &self) - { - PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PathRectNative(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, float, ImDrawFlags, void>)funcTable[539])(self, rectMin, rectMax, rounding, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, float, ImDrawFlags, void>)funcTable[539])((nint)self, rectMin, rectMax, rounding, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - PathRectNative(self, rectMin, rectMax, rounding, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, float rounding) - { - PathRectNative(self, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax) - { - PathRectNative(self, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ImDrawListPtr self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - PathRectNative(self, rectMin, rectMax, (float)(0.0f), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, float rounding) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PathRect(ref ImDrawList self, Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCallbackNative(ImDrawList* self, ImDrawCallback callback, void* callbackData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, delegate*<ImDrawList*, ImDrawCmd*, void>, void*, void>)funcTable[540])(self, (delegate*<ImDrawList*, ImDrawCmd*, void>)Utils.GetFunctionPointerForDelegate(callback), callbackData); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[540])((nint)self, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)callbackData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCallback(ImDrawListPtr self, ImDrawCallback callback, void* callbackData) - { - AddCallbackNative(self, callback, callbackData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddCallback(ref ImDrawList self, ImDrawCallback callback, void* callbackData) - { - fixed (ImDrawList* pself = &self) - { - AddCallbackNative((ImDrawList*)pself, callback, callbackData); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddDrawCmdNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[541])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[541])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddDrawCmd(ImDrawListPtr self) - { - AddDrawCmdNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddDrawCmd(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - AddDrawCmdNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* CloneOutputNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawList*, ImDrawList*>)funcTable[542])(self); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[542])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr CloneOutput(ImDrawListPtr self) - { - ImDrawListPtr ret = CloneOutputNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr CloneOutput(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImDrawListPtr ret = CloneOutputNative((ImDrawList*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ChannelsSplitNative(ImDrawList* self, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, void>)funcTable[543])(self, count); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[543])((nint)self, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ChannelsSplit(ImDrawListPtr self, int count) - { - ChannelsSplitNative(self, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ChannelsSplit(ref ImDrawList self, int count) - { - fixed (ImDrawList* pself = &self) - { - ChannelsSplitNative((ImDrawList*)pself, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ChannelsMergeNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[544])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[544])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ChannelsMerge(ImDrawListPtr self) - { - ChannelsMergeNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ChannelsMerge(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ChannelsMergeNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ChannelsSetCurrentNative(ImDrawList* self, int n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, void>)funcTable[545])(self, n); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[545])((nint)self, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ChannelsSetCurrent(ImDrawListPtr self, int n) - { - ChannelsSetCurrentNative(self, n); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ChannelsSetCurrent(ref ImDrawList self, int n) - { - fixed (ImDrawList* pself = &self) - { - ChannelsSetCurrentNative((ImDrawList*)pself, n); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimReserveNative(ImDrawList* self, int idxCount, int vtxCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, void>)funcTable[546])(self, idxCount, vtxCount); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, void>)funcTable[546])((nint)self, idxCount, vtxCount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimReserve(ImDrawListPtr self, int idxCount, int vtxCount) - { - PrimReserveNative(self, idxCount, vtxCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimReserve(ref ImDrawList self, int idxCount, int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - PrimReserveNative((ImDrawList*)pself, idxCount, vtxCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimUnreserveNative(ImDrawList* self, int idxCount, int vtxCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, void>)funcTable[547])(self, idxCount, vtxCount); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, void>)funcTable[547])((nint)self, idxCount, vtxCount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimUnreserve(ImDrawListPtr self, int idxCount, int vtxCount) - { - PrimUnreserveNative(self, idxCount, vtxCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimUnreserve(ref ImDrawList self, int idxCount, int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - PrimUnreserveNative((ImDrawList*)pself, idxCount, vtxCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimRectNative(ImDrawList* self, Vector2 a, Vector2 b, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, void>)funcTable[548])(self, a, b, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, void>)funcTable[548])((nint)self, a, b, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimRect(ImDrawListPtr self, Vector2 a, Vector2 b, uint col) - { - PrimRectNative(self, a, b, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimRect(ref ImDrawList self, Vector2 a, Vector2 b, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimRectNative((ImDrawList*)pself, a, b, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimRectUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[549])(self, a, b, uvA, uvB, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[549])((nint)self, a, b, uvA, uvB, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimRectUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - PrimRectUVNative(self, a, b, uvA, uvB, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimRectUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimRectUVNative((ImDrawList*)pself, a, b, uvA, uvB, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimQuadUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[550])(self, a, b, c, d, uvA, uvB, uvC, uvD, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2, uint, void>)funcTable[550])((nint)self, a, b, c, d, uvA, uvB, uvC, uvD, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimQuadUV(ImDrawListPtr self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - PrimQuadUVNative(self, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimQuadUV(ref ImDrawList self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimQuadUVNative((ImDrawList*)pself, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimWriteVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, void>)funcTable[551])(self, pos, uv, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, void>)funcTable[551])((nint)self, pos, uv, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimWriteVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) - { - PrimWriteVtxNative(self, pos, uv, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimWriteVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimWriteVtxNative((ImDrawList*)pself, pos, uv, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimWriteIdxNative(ImDrawList* self, ushort idx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ushort, void>)funcTable[552])(self, idx); - #else - ((delegate* unmanaged[Cdecl]<nint, ushort, void>)funcTable[552])((nint)self, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimWriteIdx(ImDrawListPtr self, ushort idx) - { - PrimWriteIdxNative(self, idx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimWriteIdx(ref ImDrawList self, ushort idx) - { - fixed (ImDrawList* pself = &self) - { - PrimWriteIdxNative((ImDrawList*)pself, idx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PrimVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, void>)funcTable[553])(self, pos, uv, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, void>)funcTable[553])((nint)self, pos, uv, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimVtx(ImDrawListPtr self, Vector2 pos, Vector2 uv, uint col) - { - PrimVtxNative(self, pos, uv, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PrimVtx(ref ImDrawList self, Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimVtxNative((ImDrawList*)pself, pos, uv, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _ResetForNewFrameNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[554])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[554])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _ResetForNewFrame(ImDrawListPtr self) - { - _ResetForNewFrameNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _ResetForNewFrame(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _ResetForNewFrameNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _ClearFreeMemoryNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[555])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[555])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _ClearFreeMemory(ImDrawListPtr self) - { - _ClearFreeMemoryNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _ClearFreeMemory(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _ClearFreeMemoryNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _PopUnusedDrawCmdNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[556])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[556])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _PopUnusedDrawCmd(ImDrawListPtr self) - { - _PopUnusedDrawCmdNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _PopUnusedDrawCmd(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _PopUnusedDrawCmdNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _TryMergeDrawCmdsNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[557])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[557])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _TryMergeDrawCmds(ImDrawListPtr self) - { - _TryMergeDrawCmdsNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _TryMergeDrawCmds(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _TryMergeDrawCmdsNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _OnChangedClipRectNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[558])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[558])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _OnChangedClipRect(ImDrawListPtr self) - { - _OnChangedClipRectNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _OnChangedClipRect(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedClipRectNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _OnChangedTextureIDNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[559])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[559])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _OnChangedTextureID(ImDrawListPtr self) - { - _OnChangedTextureIDNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _OnChangedTextureID(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedTextureIDNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _OnChangedVtxOffsetNative(ImDrawList* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[560])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[560])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _OnChangedVtxOffset(ImDrawListPtr self) - { - _OnChangedVtxOffsetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _OnChangedVtxOffset(ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedVtxOffsetNative((ImDrawList*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int _CalcCircleAutoSegmentCountNative(ImDrawList* self, float radius) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawList*, float, int>)funcTable[561])(self, radius); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, float, int>)funcTable[561])((nint)self, radius); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int _CalcCircleAutoSegmentCount(ImDrawListPtr self, float radius) - { - int ret = _CalcCircleAutoSegmentCountNative(self, radius); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int _CalcCircleAutoSegmentCount(ref ImDrawList self, float radius) - { - fixed (ImDrawList* pself = &self) - { - int ret = _CalcCircleAutoSegmentCountNative((ImDrawList*)pself, radius); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _PathArcToFastExNative(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, int, int, int, void>)funcTable[562])(self, center, radius, aMinSample, aMaxSample, aStep); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, int, int, int, void>)funcTable[562])((nint)self, center, radius, aMinSample, aMaxSample, aStep); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _PathArcToFastEx(ImDrawListPtr self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - _PathArcToFastExNative(self, center, radius, aMinSample, aMaxSample, aStep); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _PathArcToFastEx(ref ImDrawList self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - fixed (ImDrawList* pself = &self) - { - _PathArcToFastExNative((ImDrawList*)pself, center, radius, aMinSample, aMaxSample, aStep); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _PathArcToNNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, float, float, int, void>)funcTable[563])(self, center, radius, aMin, aMax, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, float, float, int, void>)funcTable[563])((nint)self, center, radius, aMin, aMax, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _PathArcToN(ImDrawListPtr self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - _PathArcToNNative(self, center, radius, aMin, aMax, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _PathArcToN(ref ImDrawList self, Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* pself = &self) - { - _PathArcToNNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawData* ImDrawDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawData*>)funcTable[564])(); - #else - return (ImDrawData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[564])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawDataPtr ImDrawData() - { - ImDrawDataPtr ret = ImDrawDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawData*, void>)funcTable[565])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[565])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImDrawDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - DestroyNative((ImDrawData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImDrawData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawData*, void>)funcTable[566])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[566])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImDrawDataPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - ClearNative((ImDrawData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DeIndexAllBuffersNative(ImDrawData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawData*, void>)funcTable[567])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[567])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DeIndexAllBuffers(ImDrawDataPtr self) - { - DeIndexAllBuffersNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DeIndexAllBuffers(ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - DeIndexAllBuffersNative((ImDrawData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScaleClipRectsNative(ImDrawData* self, Vector2 fbScale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawData*, Vector2, void>)funcTable[568])(self, fbScale); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[568])((nint)self, fbScale); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScaleClipRects(ImDrawDataPtr self, Vector2 fbScale) - { - ScaleClipRectsNative(self, fbScale); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScaleClipRects(ref ImDrawData self, Vector2 fbScale) - { - fixed (ImDrawData* pself = &self) - { - ScaleClipRectsNative((ImDrawData*)pself, fbScale); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontConfig* ImFontConfigNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontConfig*>)funcTable[569])(); - #else - return (ImFontConfig*)((delegate* unmanaged[Cdecl]<nint>)funcTable[569])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontConfigPtr ImFontConfig() - { - ImFontConfigPtr ret = ImFontConfigNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFontConfig* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontConfig*, void>)funcTable[570])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[570])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImFontConfigPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImFontConfig self) - { - fixed (ImFontConfig* pself = &self) - { - DestroyNative((ImFontConfig*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilderNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*>)funcTable[571])(); - #else - return (ImFontGlyphRangesBuilder*)((delegate* unmanaged[Cdecl]<nint>)funcTable[571])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontGlyphRangesBuilderPtr ImFontGlyphRangesBuilder() - { - ImFontGlyphRangesBuilderPtr ret = ImFontGlyphRangesBuilderNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFontGlyphRangesBuilder* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, void>)funcTable[572])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[572])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImFontGlyphRangesBuilderPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - DestroyNative((ImFontGlyphRangesBuilder*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImFontGlyphRangesBuilder* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, void>)funcTable[573])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[573])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImFontGlyphRangesBuilderPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ClearNative((ImFontGlyphRangesBuilder*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetBitNative(ImFontGlyphRangesBuilder* self, nuint n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, nuint, byte>)funcTable[574])(self, n); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nuint, byte>)funcTable[574])((nint)self, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetBit(ImFontGlyphRangesBuilderPtr self, nuint n) - { - byte ret = GetBitNative(self, n); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetBit(ref ImFontGlyphRangesBuilder self, nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte ret = GetBitNative((ImFontGlyphRangesBuilder*)pself, n); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetBitNative(ImFontGlyphRangesBuilder* self, nuint n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, nuint, void>)funcTable[575])(self, n); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[575])((nint)self, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetBit(ImFontGlyphRangesBuilderPtr self, nuint n) - { - SetBitNative(self, n); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetBit(ref ImFontGlyphRangesBuilder self, nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - SetBitNative((ImFontGlyphRangesBuilder*)pself, n); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddCharNative(ImFontGlyphRangesBuilder* self, ushort c) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, ushort, void>)funcTable[576])(self, c); - #else - ((delegate* unmanaged[Cdecl]<nint, ushort, void>)funcTable[576])((nint)self, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddChar(ImFontGlyphRangesBuilderPtr self, ushort c) - { - AddCharNative(self, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddChar(ref ImFontGlyphRangesBuilder self, ushort c) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddCharNative((ImFontGlyphRangesBuilder*)pself, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, byte*, byte*, void>)funcTable[577])(self, text, textEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[577])((nint)self, (nint)text, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, byte* textEnd) - { - AddTextNative(self, text, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text) - { - AddTextNative(self, text, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - AddTextNative(self, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text) - { - fixed (byte* ptext = &text) - { - AddTextNative(self, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - AddTextNative(self, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - AddTextNative(self, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan<byte> text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, string text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, string text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, byte* text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ImFontGlyphRangesBuilderPtr self, string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative(self, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs deleted file mode 100644 index 108b26583..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.092.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, string text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ref byte text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, ReadOnlySpan<byte> text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, string text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddText(ref ImFontGlyphRangesBuilder self, string text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRangesNative(ImFontGlyphRangesBuilder* self, ushort* ranges) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, ushort*, void>)funcTable[578])(self, ranges); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[578])((nint)self, (nint)ranges); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRanges(ImFontGlyphRangesBuilderPtr self, ushort* ranges) - { - AddRangesNative(self, ranges); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRanges(ref ImFontGlyphRangesBuilder self, ushort* ranges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddRangesNative((ImFontGlyphRangesBuilder*)pself, ranges); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BuildRangesNative(ImFontGlyphRangesBuilder* self, ImVector<ushort>* outRanges) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontGlyphRangesBuilder*, ImVector<ushort>*, void>)funcTable[579])(self, outRanges); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[579])((nint)self, (nint)outRanges); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildRanges(ImFontGlyphRangesBuilderPtr self, ImVector<ushort>* outRanges) - { - BuildRangesNative(self, outRanges); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildRanges(ref ImFontGlyphRangesBuilder self, ImVector<ushort>* outRanges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - BuildRangesNative((ImFontGlyphRangesBuilder*)pself, outRanges); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildRanges(ImFontGlyphRangesBuilderPtr self, ref ImVector<ushort> outRanges) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - BuildRangesNative(self, (ImVector<ushort>*)poutRanges); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildRanges(ref ImFontGlyphRangesBuilder self, ref ImVector<ushort> outRanges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - BuildRangesNative((ImFontGlyphRangesBuilder*)pself, (ImVector<ushort>*)poutRanges); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontAtlasCustomRect* ImFontAtlasCustomRectNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlasCustomRect*>)funcTable[580])(); - #else - return (ImFontAtlasCustomRect*)((delegate* unmanaged[Cdecl]<nint>)funcTable[580])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontAtlasCustomRectPtr ImFontAtlasCustomRect() - { - ImFontAtlasCustomRectPtr ret = ImFontAtlasCustomRectNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFontAtlasCustomRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlasCustomRect*, void>)funcTable[581])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[581])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImFontAtlasCustomRectPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImFontAtlasCustomRect self) - { - fixed (ImFontAtlasCustomRect* pself = &self) - { - DestroyNative((ImFontAtlasCustomRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPackedNative(ImFontAtlasCustomRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlasCustomRect*, byte>)funcTable[582])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[582])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPacked(ImFontAtlasCustomRectPtr self) - { - byte ret = IsPackedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPacked(ref ImFontAtlasCustomRect self) - { - fixed (ImFontAtlasCustomRect* pself = &self) - { - byte ret = IsPackedNative((ImFontAtlasCustomRect*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontAtlas* ImFontAtlasNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*>)funcTable[583])(); - #else - return (ImFontAtlas*)((delegate* unmanaged[Cdecl]<nint>)funcTable[583])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontAtlasPtr ImFontAtlas() - { - ImFontAtlasPtr ret = ImFontAtlasNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[584])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[584])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImFontAtlasPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - DestroyNative((ImFontAtlas*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontNative(ImFontAtlas* self, ImFontConfig* fontCfg) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFontConfig*, ImFont*>)funcTable[585])(self, fontCfg); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[585])((nint)self, (nint)fontCfg); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFont(ImFontAtlasPtr self, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontNative(self, fontCfg); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFont(ref ImFontAtlas self, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontNative((ImFontAtlas*)pself, fontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFont(ImFontAtlasPtr self, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontNative(self, (ImFontConfig*)pfontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFont(ref ImFontAtlas self, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontNative((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontDefaultNative(ImFontAtlas* self, ImFontConfig* fontCfg) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFontConfig*, ImFont*>)funcTable[586])(self, fontCfg); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[586])((nint)self, (nint)fontCfg); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontDefault(ImFontAtlasPtr self, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontDefaultNative(self, fontCfg); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontDefault(ImFontAtlasPtr self) - { - ImFontPtr ret = AddFontDefaultNative(self, (ImFontConfig*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontDefault(ref ImFontAtlas self, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontDefaultNative((ImFontAtlas*)pself, fontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontDefault(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontDefaultNative((ImFontAtlas*)pself, (ImFontConfig*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontDefault(ImFontAtlasPtr self, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontDefaultNative(self, (ImFontConfig*)pfontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontDefault(ref ImFontAtlas self, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontDefaultNative((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontFromFileTTFNative(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte*, float, ImFontConfig*, ushort*, ImFont*>)funcTable[587])(self, filename, sizePixels, fontCfg, glyphRanges); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint, nint, float, nint, nint, nint>)funcTable[587])((nint)self, (nint)filename, sizePixels, (nint)fontCfg, (nint)glyphRanges); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan<byte> filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan<byte> filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan<byte> filename, float sizePixels) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan<byte> filename, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ImFontConfigPtr fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan<byte> filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan<byte> filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan<byte> filename, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan<byte> filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ImFontAtlasPtr self, string filename, float sizePixels, ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromFileTTF(ref ImFontAtlas self, string filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void*, int, float, ImFontConfig*, ushort*, ImFont*>)funcTable[588])(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint, nint, int, float, nint, nint, nint>)funcTable[588])((nint)self, (nint)fontData, fontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ImFontAtlasPtr self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryTTF(ref ImFontAtlas self, void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void*, int, float, ImFontConfig*, ushort*, ImFont*>)funcTable[589])(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint, nint, int, float, nint, nint, nint>)funcTable[589])((nint)self, (nint)compressedFontData, compressedFontSize, sizePixels, (nint)fontCfg, (nint)glyphRanges); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ImFontAtlasPtr self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedTTF(ref ImFontAtlas self, void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte*, float, ImFontConfig*, ushort*, ImFont*>)funcTable[590])(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint, nint, float, nint, nint, nint>)funcTable[590])((nint)self, (nint)compressedFontDatabase85, sizePixels, (nint)fontCfg, (nint)glyphRanges); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ImFontConfigPtr fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ImFontAtlasPtr self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref ImFontAtlas self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearInputDataNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[591])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[591])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearInputData(ImFontAtlasPtr self) - { - ClearInputDataNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearInputData(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearInputDataNative((ImFontAtlas*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearTexDataNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[592])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[592])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearTexData(ImFontAtlasPtr self) - { - ClearTexDataNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearTexData(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearTexDataNative((ImFontAtlas*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFontsNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[593])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[593])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFonts(ImFontAtlasPtr self) - { - ClearFontsNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFonts(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearFontsNative((ImFontAtlas*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[594])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[594])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImFontAtlasPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearNative((ImFontAtlas*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BuildNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte>)funcTable[595])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[595])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Build(ImFontAtlasPtr self) - { - byte ret = BuildNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Build(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = BuildNative((ImFontAtlas*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTexDataAsAlpha8Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, byte**, int*, int*, int*, void>)funcTable[596])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, nint, nint, void>)funcTable[596])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsAlpha8(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTexDataAsRGBA32Native(ImFontAtlas* self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, byte**, int*, int*, int*, void>)funcTable[597])(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, nint, nint, void>)funcTable[597])((nint)self, textureIndex, (nint)outPixels, (nint)outWidth, (nint)outHeight, (nint)outBytesPerPixel); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ImFontAtlasPtr self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTexDataAsRGBA32(ref ImFontAtlas self, int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsBuiltNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, byte>)funcTable[598])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[598])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsBuilt(ImFontAtlasPtr self) - { - byte ret = IsBuiltNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsBuilt(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = IsBuiltNative((ImFontAtlas*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetTexIDNative(ImFontAtlas* self, int textureIndex, ImTextureID id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, ImTextureID, void>)funcTable[599])(self, textureIndex, id); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImTextureID, void>)funcTable[599])((nint)self, textureIndex, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTexID(ImFontAtlasPtr self, int textureIndex, ImTextureID id) - { - SetTexIDNative(self, textureIndex, id); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTexID(ref ImFontAtlas self, int textureIndex, ImTextureID id) - { - fixed (ImFontAtlas* pself = &self) - { - SetTexIDNative((ImFontAtlas*)pself, textureIndex, id); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearTexIDNative(ImFontAtlas* self, ImTextureID nullId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImTextureID, void>)funcTable[600])(self, nullId); - #else - ((delegate* unmanaged[Cdecl]<nint, ImTextureID, void>)funcTable[600])((nint)self, nullId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearTexID(ImFontAtlasPtr self, ImTextureID nullId) - { - ClearTexIDNative(self, nullId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearTexID(ref ImFontAtlas self, ImTextureID nullId) - { - fixed (ImFontAtlas* pself = &self) - { - ClearTexIDNative((ImFontAtlas*)pself, nullId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesDefaultNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[601])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[601])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesDefault(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesDefaultNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesDefault(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesDefaultNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesKoreanNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[602])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[602])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesKorean(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesKoreanNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesKorean(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesKoreanNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesJapaneseNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[603])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[603])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesJapanese(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesJapaneseNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesJapanese(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesJapaneseNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesChineseFullNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[604])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[604])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesChineseFull(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesChineseFullNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesChineseFull(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesChineseFullNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesChineseSimplifiedCommonNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[605])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[605])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesChineseSimplifiedCommon(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesChineseSimplifiedCommonNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesChineseSimplifiedCommon(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesChineseSimplifiedCommonNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesCyrillicNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[606])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[606])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesCyrillic(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesCyrillicNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesCyrillic(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesCyrillicNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesThaiNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[607])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[607])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesThai(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesThaiNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesThai(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesThaiNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* GetGlyphRangesVietnameseNative(ImFontAtlas* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ushort*>)funcTable[608])(self); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[608])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesVietnamese(ImFontAtlasPtr self) - { - ushort* ret = GetGlyphRangesVietnameseNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* GetGlyphRangesVietnamese(ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ushort* ret = GetGlyphRangesVietnameseNative((ImFontAtlas*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int AddCustomRectRegularNative(ImFontAtlas* self, int width, int height) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, int, int>)funcTable[609])(self, width, height); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, int, int>)funcTable[609])((nint)self, width, height); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectRegular(ImFontAtlasPtr self, int width, int height) - { - int ret = AddCustomRectRegularNative(self, width, height); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectRegular(ref ImFontAtlas self, int width, int height) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectRegularNative((ImFontAtlas*)pself, width, height); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int AddCustomRectFontGlyphNative(ImFontAtlas* self, ImFont* font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFont*, ushort, int, int, float, Vector2, int>)funcTable[610])(self, font, id, width, height, advanceX, offset); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, ushort, int, int, float, Vector2, int>)funcTable[610])((nint)self, (nint)font, id, width, height, advanceX, offset); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, offset); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ImFontPtr font, ushort id, int width, int height, float advanceX) - { - int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, offset); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ImFontPtr font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ImFontAtlasPtr self, ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int AddCustomRectFontGlyph(ref ImFontAtlas self, ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontAtlasCustomRect* GetCustomRectByIndexNative(ImFontAtlas* self, int index) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, ImFontAtlasCustomRect*>)funcTable[611])(self, index); - #else - return (ImFontAtlasCustomRect*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[611])((nint)self, index); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(ImFontAtlasPtr self, int index) - { - ImFontAtlasCustomRectPtr ret = GetCustomRectByIndexNative(self, index); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontAtlasCustomRectPtr GetCustomRectByIndex(ref ImFontAtlas self, int index) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontAtlasCustomRectPtr ret = GetCustomRectByIndexNative((ImFontAtlas*)pself, index); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcCustomRectUVNative(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFontAtlasCustomRect*, Vector2*, Vector2*, void>)funcTable[612])(self, rect, outUvMin, outUvMax); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, void>)funcTable[612])((nint)self, (nint)rect, (nint)outUvMin, (nint)outUvMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) - { - CalcCustomRectUVNative(self, rect, outUvMin, outUvMax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, outUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, outUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, rect, outUvMin, (Vector2*)poutUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, (Vector2*)poutUvMax); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs deleted file mode 100644 index 4fbd264fa..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.093.cs +++ /dev/null @@ -1,5051 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ImFontAtlasCustomRectPtr rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ImFontAtlasPtr self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcCustomRectUV(ref ImFontAtlas self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetMouseCursorTexDataNative(ImFontAtlas* self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImGuiMouseCursor, Vector2*, Vector2*, Vector2*, Vector2*, int*, byte>)funcTable[613])(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiMouseCursor, nint, nint, nint, nint, nint, byte>)funcTable[613])((nint)self, cursor, (nint)outOffset, (nint)outSize, (nint)outUvBorder, (nint)outUvFill, (nint)textureIndex); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ImFontAtlasPtr self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetMouseCursorTexData(ref ImFontAtlas self, ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* ImFontNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*>)funcTable[614])(); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint>)funcTable[614])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr ImFont() - { - ImFontPtr ret = ImFontNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImFont* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, void>)funcTable[615])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[615])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImFontPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - DestroyNative((ImFont*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontGlyph* FindGlyphNative(ImFont* self, ushort c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ImFontGlyph*>)funcTable[616])(self, c); - #else - return (ImFontGlyph*)((delegate* unmanaged[Cdecl]<nint, ushort, nint>)funcTable[616])((nint)self, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontGlyphPtr FindGlyph(ImFontPtr self, ushort c) - { - ImFontGlyphPtr ret = FindGlyphNative(self, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontGlyphPtr FindGlyph(ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyphPtr ret = FindGlyphNative((ImFont*)pself, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontGlyph* FindGlyphNoFallbackNative(ImFont* self, ushort c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ImFontGlyph*>)funcTable[617])(self, c); - #else - return (ImFontGlyph*)((delegate* unmanaged[Cdecl]<nint, ushort, nint>)funcTable[617])((nint)self, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontGlyphPtr FindGlyphNoFallback(ImFontPtr self, ushort c) - { - ImFontGlyphPtr ret = FindGlyphNoFallbackNative(self, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontGlyphPtr FindGlyphNoFallback(ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyphPtr ret = FindGlyphNoFallbackNative((ImFont*)pself, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetDistanceAdjustmentForPairNative(ImFont* self, ushort leftC, ushort rightC) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ushort, float>)funcTable[618])(self, leftC, rightC); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, ushort, ushort, float>)funcTable[618])((nint)self, leftC, rightC); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetDistanceAdjustmentForPair(ImFontPtr self, ushort leftC, ushort rightC) - { - float ret = GetDistanceAdjustmentForPairNative(self, leftC, rightC); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetDistanceAdjustmentForPair(ref ImFont self, ushort leftC, ushort rightC) - { - fixed (ImFont* pself = &self) - { - float ret = GetDistanceAdjustmentForPairNative((ImFont*)pself, leftC, rightC); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetCharAdvanceNative(ImFont* self, ushort c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, float>)funcTable[619])(self, c); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, ushort, float>)funcTable[619])((nint)self, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetCharAdvance(ImFontPtr self, ushort c) - { - float ret = GetCharAdvanceNative(self, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetCharAdvance(ref ImFont self, ushort c) - { - fixed (ImFont* pself = &self) - { - float ret = GetCharAdvanceNative((ImFont*)pself, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLoadedNative(ImFont* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, byte>)funcTable[620])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[620])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLoaded(ImFontPtr self) - { - byte ret = IsLoadedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLoaded(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - byte ret = IsLoadedNative((ImFont*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetDebugNameNative(ImFont* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, byte*>)funcTable[621])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[621])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetDebugName(ImFontPtr self) - { - byte* ret = GetDebugNameNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetDebugNameS(ImFontPtr self) - { - string ret = Utils.DecodeStringUTF8(GetDebugNameNative(self)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetDebugName(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - byte* ret = GetDebugNameNative((ImFont*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetDebugNameS(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetDebugNameNative((ImFont*)pself)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcTextSizeANative(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImFont*, float, float, float, byte*, byte*, byte**, void>)funcTable[622])(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, float, float, float, nint, nint, nint, void>)funcTable[622])((nint)pOut, (nint)self, size, maxWidth, wrapWidth, (nint)textBegin, (nint)textEnd, (nint)remaining); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs deleted file mode 100644 index 6cf409e14..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.094.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, byte** remaining) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs deleted file mode 100644 index 48aa04e39..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.095.cs +++ /dev/null @@ -1,5068 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeA(ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - Vector2 ret; - CalcTextSizeANative(&ret, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(ref Vector2 pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, ref byte* remaining) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ImFontPtr self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ReadOnlySpan<byte> textBegin, string textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeA(Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ReadOnlySpan<byte> textEnd, ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)ptextEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* CalcWordWrapPositionANative(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, float, byte*, byte*, float, byte*>)funcTable[623])(self, scale, text, textEnd, wrapWidth); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, float, nint, nint, float, nint>)funcTable[623])((nint)self, scale, (nint)text, (nint)textEnd, wrapWidth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, byte* text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, byte* text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ImFontPtr self, float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ImFontPtr self, float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* CalcWordWrapPositionA(ref ImFont self, float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string CalcWordWrapPositionAS(ref ImFont self, float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderCharNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, ushort c) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, ImDrawList*, float, Vector2, uint, ushort, void>)funcTable[624])(self, drawList, size, pos, col, c); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, float, Vector2, uint, ushort, void>)funcTable[624])((nint)self, (nint)drawList, size, pos, col, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderChar(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - RenderCharNative(self, drawList, size, pos, col, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderChar(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* pself = &self) - { - RenderCharNative((ImFont*)pself, drawList, size, pos, col, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderChar(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderCharNative(self, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderChar(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderCharNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, ImDrawList*, float, Vector2, uint, Vector4, byte*, byte*, float, byte, void>)funcTable[625])(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, float, Vector2, uint, Vector4, nint, nint, float, byte, void>)funcTable[625])((nint)self, (nint)drawList, size, pos, col, clipRect, (nint)textBegin, (nint)textEnd, wrapWidth, cpuFineClip); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs deleted file mode 100644 index 5335f6ec9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.096.cs +++ /dev/null @@ -1,5033 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ImFontPtr self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(ref ImFont self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BuildLookupTableNative(ImFont* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, void>)funcTable[626])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[626])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildLookupTable(ImFontPtr self) - { - BuildLookupTableNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BuildLookupTable(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - BuildLookupTableNative((ImFont*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearOutputDataNative(ImFont* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, void>)funcTable[627])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[627])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearOutputData(ImFontPtr self) - { - ClearOutputDataNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearOutputData(ref ImFont self) - { - fixed (ImFont* pself = &self) - { - ClearOutputDataNative((ImFont*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GrowIndexNative(ImFont* self, int newSize) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, int, void>)funcTable[628])(self, newSize); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[628])((nint)self, newSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GrowIndex(ImFontPtr self, int newSize) - { - GrowIndexNative(self, newSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GrowIndex(ref ImFont self, int newSize) - { - fixed (ImFont* pself = &self) - { - GrowIndexNative((ImFont*)pself, newSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddGlyphNative(ImFont* self, ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, ImFontConfig*, ushort, int, float, float, float, float, float, float, float, float, float, void>)funcTable[629])(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ushort, int, float, float, float, float, float, float, float, float, float, void>)funcTable[629])((nint)self, (nint)srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddGlyph(ImFontPtr self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - AddGlyphNative(self, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddGlyph(ref ImFont self, ImFontConfigPtr srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* pself = &self) - { - AddGlyphNative((ImFont*)pself, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddGlyph(ImFontPtr self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - AddGlyphNative(self, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddGlyph(ref ImFont self, ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* pself = &self) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - AddGlyphNative((ImFont*)pself, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddRemapCharNative(ImFont* self, ushort dst, ushort src, byte overwriteDst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ushort, byte, void>)funcTable[630])(self, dst, src, overwriteDst); - #else - ((delegate* unmanaged[Cdecl]<nint, ushort, ushort, byte, void>)funcTable[630])((nint)self, dst, src, overwriteDst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRemapChar(ImFontPtr self, ushort dst, ushort src, bool overwriteDst) - { - AddRemapCharNative(self, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRemapChar(ImFontPtr self, ushort dst, ushort src) - { - AddRemapCharNative(self, dst, src, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRemapChar(ref ImFont self, ushort dst, ushort src, bool overwriteDst) - { - fixed (ImFont* pself = &self) - { - AddRemapCharNative((ImFont*)pself, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddRemapChar(ref ImFont self, ushort dst, ushort src) - { - fixed (ImFont* pself = &self) - { - AddRemapCharNative((ImFont*)pself, dst, src, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetGlyphVisibleNative(ImFont* self, ushort c, byte visible) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, ushort, byte, void>)funcTable[631])(self, c, visible); - #else - ((delegate* unmanaged[Cdecl]<nint, ushort, byte, void>)funcTable[631])((nint)self, c, visible); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetGlyphVisible(ImFontPtr self, ushort c, bool visible) - { - SetGlyphVisibleNative(self, c, visible ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetGlyphVisible(ref ImFont self, ushort c, bool visible) - { - fixed (ImFont* pself = &self) - { - SetGlyphVisibleNative((ImFont*)pself, c, visible ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsGlyphRangeUnusedNative(ImFont* self, uint cBegin, uint cLast) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, uint, uint, byte>)funcTable[632])(self, cBegin, cLast); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, uint, uint, byte>)funcTable[632])((nint)self, cBegin, cLast); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsGlyphRangeUnused(ImFontPtr self, uint cBegin, uint cLast) - { - byte ret = IsGlyphRangeUnusedNative(self, cBegin, cLast); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsGlyphRangeUnused(ref ImFont self, uint cBegin, uint cLast) - { - fixed (ImFont* pself = &self) - { - byte ret = IsGlyphRangeUnusedNative((ImFont*)pself, cBegin, cLast); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddKerningPairNative(ImFont* self, ushort leftC, ushort rightC, float distanceAdjustment) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ushort, float, void>)funcTable[633])(self, leftC, rightC, distanceAdjustment); - #else - ((delegate* unmanaged[Cdecl]<nint, ushort, ushort, float, void>)funcTable[633])((nint)self, leftC, rightC, distanceAdjustment); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddKerningPair(ImFontPtr self, ushort leftC, ushort rightC, float distanceAdjustment) - { - AddKerningPairNative(self, leftC, rightC, distanceAdjustment); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddKerningPair(ref ImFont self, ushort leftC, ushort rightC, float distanceAdjustment) - { - fixed (ImFont* pself = &self) - { - AddKerningPairNative((ImFont*)pself, leftC, rightC, distanceAdjustment); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetDistanceAdjustmentForPairFromHotDataNative(ImFont* self, ushort leftC, ImFontGlyphHotData* rightCInfo) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*, ushort, ImFontGlyphHotData*, float>)funcTable[634])(self, leftC, rightCInfo); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, ushort, nint, float>)funcTable[634])((nint)self, leftC, (nint)rightCInfo); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetDistanceAdjustmentForPairFromHotData(ImFontPtr self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative(self, leftC, rightCInfo); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetDistanceAdjustmentForPairFromHotData(ref ImFont self, ushort leftC, ImFontGlyphHotDataPtr rightCInfo) - { - fixed (ImFont* pself = &self) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative((ImFont*)pself, leftC, rightCInfo); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetDistanceAdjustmentForPairFromHotData(ImFontPtr self, ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative(self, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetDistanceAdjustmentForPairFromHotData(ref ImFont self, ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFont* pself = &self) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = GetDistanceAdjustmentForPairFromHotDataNative((ImFont*)pself, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewport* ImGuiViewportNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*>)funcTable[635])(); - #else - return (ImGuiViewport*)((delegate* unmanaged[Cdecl]<nint>)funcTable[635])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiViewportPtr ImGuiViewport() - { - ImGuiViewportPtr ret = ImGuiViewportNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiViewport* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewport*, void>)funcTable[636])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[636])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiViewportPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - DestroyNative((ImGuiViewport*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetCenterNative(Vector2* pOut, ImGuiViewport* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewport*, void>)funcTable[637])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[637])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetCenter(ImGuiViewportPtr self) - { - Vector2 ret; - GetCenterNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(Vector2* pOut, ImGuiViewportPtr self) - { - GetCenterNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(ref Vector2 pOut, ImGuiViewportPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetCenterNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetCenter(ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - Vector2 ret; - GetCenterNative(&ret, (ImGuiViewport*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(Vector2* pOut, ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - GetCenterNative(pOut, (ImGuiViewport*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(ref Vector2 pOut, ref ImGuiViewport self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewport* pself = &self) - { - GetCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWorkCenterNative(Vector2* pOut, ImGuiViewport* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewport*, void>)funcTable[638])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[638])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetWorkCenter(ImGuiViewportPtr self) - { - Vector2 ret; - GetWorkCenterNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkCenter(Vector2* pOut, ImGuiViewportPtr self) - { - GetWorkCenterNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkCenter(ref Vector2 pOut, ImGuiViewportPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetWorkCenterNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetWorkCenter(ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - Vector2 ret; - GetWorkCenterNative(&ret, (ImGuiViewport*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkCenter(Vector2* pOut, ref ImGuiViewport self) - { - fixed (ImGuiViewport* pself = &self) - { - GetWorkCenterNative(pOut, (ImGuiViewport*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkCenter(ref Vector2 pOut, ref ImGuiViewport self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewport* pself = &self) - { - GetWorkCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformIO* ImGuiPlatformIONative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformIO*>)funcTable[639])(); - #else - return (ImGuiPlatformIO*)((delegate* unmanaged[Cdecl]<nint>)funcTable[639])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPlatformIOPtr ImGuiPlatformIO() - { - ImGuiPlatformIOPtr ret = ImGuiPlatformIONative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPlatformIO* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiPlatformIO*, void>)funcTable[640])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[640])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiPlatformIOPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiPlatformIO self) - { - fixed (ImGuiPlatformIO* pself = &self) - { - DestroyNative((ImGuiPlatformIO*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformMonitor* ImGuiPlatformMonitorNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformMonitor*>)funcTable[641])(); - #else - return (ImGuiPlatformMonitor*)((delegate* unmanaged[Cdecl]<nint>)funcTable[641])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPlatformMonitorPtr ImGuiPlatformMonitor() - { - ImGuiPlatformMonitorPtr ret = ImGuiPlatformMonitorNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPlatformMonitor* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiPlatformMonitor*, void>)funcTable[642])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[642])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiPlatformMonitorPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiPlatformMonitor self) - { - fixed (ImGuiPlatformMonitor* pself = &self) - { - DestroyNative((ImGuiPlatformMonitor*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformImeData* ImGuiPlatformImeDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPlatformImeData*>)funcTable[643])(); - #else - return (ImGuiPlatformImeData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[643])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPlatformImeDataPtr ImGuiPlatformImeData() - { - ImGuiPlatformImeDataPtr ret = ImGuiPlatformImeDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPlatformImeData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiPlatformImeData*, void>)funcTable[644])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[644])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiPlatformImeDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiPlatformImeData self) - { - fixed (ImGuiPlatformImeData* pself = &self) - { - DestroyNative((ImGuiPlatformImeData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetKeyIndexNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, int>)funcTable[645])(key); - #else - return (int)((delegate* unmanaged[Cdecl]<ImGuiKey, int>)funcTable[645])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetKeyIndex(ImGuiKey key) - { - int ret = GetKeyIndexNative(key); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImVec1* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVec1*, void>)funcTable[646])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[646])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImVec1Ptr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImVec1 self) - { - fixed (ImVec1* pself = &self) - { - DestroyNative((ImVec1*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImVec2Ih* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVec2Ih*, void>)funcTable[647])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[647])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImVec2IhPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImVec2Ih self) - { - fixed (ImVec2Ih* pself = &self) - { - DestroyNative((ImVec2Ih*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, void>)funcTable[648])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[648])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImRectPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - DestroyNative((ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImDrawListSharedData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*, void>)funcTable[649])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[649])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImDrawListSharedDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImDrawListSharedData self) - { - fixed (ImDrawListSharedData* pself = &self) - { - DestroyNative((ImDrawListSharedData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStyleMod* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStyleMod*, void>)funcTable[650])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[650])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiStyleModPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiStyleMod self) - { - fixed (ImGuiStyleMod* pself = &self) - { - DestroyNative((ImGuiStyleMod*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiComboPreviewData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiComboPreviewData*, void>)funcTable[651])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[651])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiComboPreviewDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiComboPreviewData self) - { - fixed (ImGuiComboPreviewData* pself = &self) - { - DestroyNative((ImGuiComboPreviewData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiMenuColumns* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, void>)funcTable[652])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[652])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiMenuColumnsPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiMenuColumns self) - { - fixed (ImGuiMenuColumns* pself = &self) - { - DestroyNative((ImGuiMenuColumns*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[653])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[653])((nint)self); - #endif - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs deleted file mode 100644 index d92677067..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Functions/Functions.097.cs +++ /dev/null @@ -1,1255 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiInputTextStatePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - DestroyNative((ImGuiInputTextState*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPopupData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiPopupData*, void>)funcTable[654])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[654])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiPopupDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiPopupData self) - { - fixed (ImGuiPopupData* pself = &self) - { - DestroyNative((ImGuiPopupData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiNextWindowData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiNextWindowData*, void>)funcTable[655])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[655])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiNextWindowDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiNextWindowData self) - { - fixed (ImGuiNextWindowData* pself = &self) - { - DestroyNative((ImGuiNextWindowData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiNextItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiNextItemData*, void>)funcTable[656])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[656])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiNextItemDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiNextItemData self) - { - fixed (ImGuiNextItemData* pself = &self) - { - DestroyNative((ImGuiNextItemData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiLastItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiLastItemData*, void>)funcTable[657])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[657])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiLastItemDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiLastItemData self) - { - fixed (ImGuiLastItemData* pself = &self) - { - DestroyNative((ImGuiLastItemData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStackSizes* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*, void>)funcTable[658])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[658])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiStackSizesPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - DestroyNative((ImGuiStackSizes*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiPtrOrIndex* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiPtrOrIndex*, void>)funcTable[659])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[659])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiPtrOrIndexPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiPtrOrIndex self) - { - fixed (ImGuiPtrOrIndex* pself = &self) - { - DestroyNative((ImGuiPtrOrIndex*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiInputEvent* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputEvent*, void>)funcTable[660])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[660])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiInputEventPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiInputEvent self) - { - fixed (ImGuiInputEvent* pself = &self) - { - DestroyNative((ImGuiInputEvent*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiListClipperData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiListClipperData*, void>)funcTable[661])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[661])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiListClipperDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiListClipperData self) - { - fixed (ImGuiListClipperData* pself = &self) - { - DestroyNative((ImGuiListClipperData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiNavItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*, void>)funcTable[662])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[662])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiNavItemDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiNavItemData self) - { - fixed (ImGuiNavItemData* pself = &self) - { - DestroyNative((ImGuiNavItemData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiOldColumnData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiOldColumnData*, void>)funcTable[663])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[663])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiOldColumnDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiOldColumnData self) - { - fixed (ImGuiOldColumnData* pself = &self) - { - DestroyNative((ImGuiOldColumnData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiOldColumns* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, void>)funcTable[664])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[664])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiOldColumnsPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiOldColumns self) - { - fixed (ImGuiOldColumns* pself = &self) - { - DestroyNative((ImGuiOldColumns*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiDockContext* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDockContext*, void>)funcTable[665])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[665])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiDockContextPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiDockContext self) - { - fixed (ImGuiDockContext* pself = &self) - { - DestroyNative((ImGuiDockContext*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiWindowSettings* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*, void>)funcTable[666])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[666])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiWindowSettingsPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* pself = &self) - { - DestroyNative((ImGuiWindowSettings*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiSettingsHandler* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiSettingsHandler*, void>)funcTable[667])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[667])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiSettingsHandlerPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiSettingsHandler self) - { - fixed (ImGuiSettingsHandler* pself = &self) - { - DestroyNative((ImGuiSettingsHandler*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiMetricsConfig* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiMetricsConfig*, void>)funcTable[668])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[668])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiMetricsConfigPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiMetricsConfig self) - { - fixed (ImGuiMetricsConfig* pself = &self) - { - DestroyNative((ImGuiMetricsConfig*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStackLevelInfo* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStackLevelInfo*, void>)funcTable[669])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[669])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiStackLevelInfoPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiStackLevelInfo self) - { - fixed (ImGuiStackLevelInfo* pself = &self) - { - DestroyNative((ImGuiStackLevelInfo*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiStackTool* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStackTool*, void>)funcTable[670])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[670])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiStackToolPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiStackTool self) - { - fixed (ImGuiStackTool* pself = &self) - { - DestroyNative((ImGuiStackTool*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiContextHook* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContextHook*, void>)funcTable[671])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[671])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiContextHookPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiContextHook self) - { - fixed (ImGuiContextHook* pself = &self) - { - DestroyNative((ImGuiContextHook*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiContext* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[672])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[672])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiContextPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiContext self) - { - fixed (ImGuiContext* pself = &self) - { - DestroyNative((ImGuiContext*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTabItem* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabItem*, void>)funcTable[673])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[673])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTabItemPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTabItem self) - { - fixed (ImGuiTabItem* pself = &self) - { - DestroyNative((ImGuiTabItem*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTabBar* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, void>)funcTable[674])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[674])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTabBarPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTabBar self) - { - fixed (ImGuiTabBar* pself = &self) - { - DestroyNative((ImGuiTabBar*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableColumn* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableColumn*, void>)funcTable[675])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[675])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTableColumnPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTableColumn self) - { - fixed (ImGuiTableColumn* pself = &self) - { - DestroyNative((ImGuiTableColumn*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableInstanceData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableInstanceData*, void>)funcTable[676])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[676])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTableInstanceDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTableInstanceData self) - { - fixed (ImGuiTableInstanceData* pself = &self) - { - DestroyNative((ImGuiTableInstanceData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableTempData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableTempData*, void>)funcTable[677])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[677])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTableTempDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTableTempData self) - { - fixed (ImGuiTableTempData* pself = &self) - { - DestroyNative((ImGuiTableTempData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableColumnSettings* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSettings*, void>)funcTable[678])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[678])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTableColumnSettingsPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTableColumnSettings self) - { - fixed (ImGuiTableColumnSettings* pself = &self) - { - DestroyNative((ImGuiTableColumnSettings*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTableSettings* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*, void>)funcTable[679])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[679])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTableSettingsPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTableSettings self) - { - fixed (ImGuiTableSettings* pself = &self) - { - DestroyNative((ImGuiTableSettings*)pself); - } - } - - /// <summary> - /// //////////////////////hand written functions<br/> - /// no LogTextV<br/> - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogTextNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[680])(fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[680])((nint)fmt); - #endif - } - - /// <summary> - /// //////////////////////hand written functions<br/> - /// no LogTextV<br/> - /// </summary> - public static void LogText(byte* fmt) - { - LogTextNative(fmt); - } - - /// <summary> - /// //////////////////////hand written functions<br/> - /// no LogTextV<br/> - /// </summary> - public static void LogText(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - LogTextNative((byte*)pfmt); - } - } - - /// <summary> - /// //////////////////////hand written functions<br/> - /// no LogTextV<br/> - /// </summary> - public static void LogText(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - LogTextNative((byte*)pfmt); - } - } - - /// <summary> - /// //////////////////////hand written functions<br/> - /// no LogTextV<br/> - /// </summary> - public static void LogText(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogTextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void appendfNative(ImGuiTextBuffer* buffer, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTextBuffer*, byte*, void>)funcTable[681])(buffer, fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[681])((nint)buffer, (nint)fmt); - #endif - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ImGuiTextBufferPtr buffer, byte* fmt) - { - appendfNative(buffer, fmt); - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ref ImGuiTextBuffer buffer, byte* fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - appendfNative((ImGuiTextBuffer*)pbuffer, fmt); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ImGuiTextBufferPtr buffer, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - appendfNative(buffer, (byte*)pfmt); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ImGuiTextBufferPtr buffer, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - appendfNative(buffer, (byte*)pfmt); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ImGuiTextBufferPtr buffer, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfNative(buffer, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ref ImGuiTextBuffer buffer, ref byte fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - fixed (byte* pfmt = &fmt) - { - appendfNative((ImGuiTextBuffer*)pbuffer, (byte*)pfmt); - } - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ref ImGuiTextBuffer buffer, ReadOnlySpan<byte> fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - fixed (byte* pfmt = fmt) - { - appendfNative((ImGuiTextBuffer*)pbuffer, (byte*)pfmt); - } - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public static void appendf(ref ImGuiTextBuffer buffer, string fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfNative((ImGuiTextBuffer*)pbuffer, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// for getting FLT_MAX in bindings<br/> - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GETFLTMAXNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[682])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[682])(); - #endif - } - - /// <summary> - /// for getting FLT_MAX in bindings<br/> - /// </summary> - public static float GETFLTMAX() - { - float ret = GETFLTMAXNative(); - return ret; - } - - /// <summary> - /// for getting FLT_MIN in bindings<br/> - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GETFLTMINNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[683])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[683])(); - #endif - } - - /// <summary> - /// for getting FLT_MIN in bindings<br/> - /// </summary> - public static float GETFLTMIN() - { - float ret = GETFLTMINNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVector<ushort>* ImVectorImWcharCreateNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImVector<ushort>*>)funcTable[684])(); - #else - return (ImVector<ushort>*)((delegate* unmanaged[Cdecl]<nint>)funcTable[684])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImVector<ushort>* ImVectorImWcharCreate() - { - ImVector<ushort>* ret = ImVectorImWcharCreateNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImVectorImWcharDestroyNative(ImVector<ushort>* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<ushort>*, void>)funcTable[685])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[685])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImVectorImWcharDestroy(ImVector<ushort>* self) - { - ImVectorImWcharDestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImVectorImWcharDestroy(ref ImVector<ushort> self) - { - fixed (ImVector<ushort>* pself = &self) - { - ImVectorImWcharDestroyNative((ImVector<ushort>*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImVectorImWcharInitNative(ImVector<ushort>* p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<ushort>*, void>)funcTable[686])(p); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[686])((nint)p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImVectorImWcharInit(ImVector<ushort>* p) - { - ImVectorImWcharInitNative(p); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImVectorImWcharInit(ref ImVector<ushort> p) - { - fixed (ImVector<ushort>* pp = &p) - { - ImVectorImWcharInitNative((ImVector<ushort>*)pp); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImVectorImWcharUnInitNative(ImVector<ushort>* p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<ushort>*, void>)funcTable[687])(p); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[687])((nint)p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImVectorImWcharUnInit(ImVector<ushort>* p) - { - ImVectorImWcharUnInitNative(p); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImVectorImWcharUnInit(ref ImVector<ushort> p) - { - fixed (ImVector<ushort>* pp = &p) - { - ImVectorImWcharUnInitNative((ImVector<ushort>*)pp); - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Handles/ImFileHandle.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Handles/ImFileHandle.cs deleted file mode 100644 index 709f7b546..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Handles/ImFileHandle.cs +++ /dev/null @@ -1,44 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public readonly partial struct ImFileHandle : IEquatable<ImFileHandle> - { - public ImFileHandle(nint handle) { Handle = handle; } - public nint Handle { get; } - public bool IsNull => Handle == 0; - public static ImFileHandle Null => new ImFileHandle(0); - public static implicit operator ImFileHandle(nint handle) => new ImFileHandle(handle); - public static bool operator ==(ImFileHandle left, ImFileHandle right) => left.Handle == right.Handle; - public static bool operator !=(ImFileHandle left, ImFileHandle right) => left.Handle != right.Handle; - public static bool operator ==(ImFileHandle left, nint right) => left.Handle == right; - public static bool operator !=(ImFileHandle left, nint right) => left.Handle != right; - public bool Equals(ImFileHandle other) => Handle == other.Handle; - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFileHandle handle && Equals(handle); - /// <inheritdoc/> - public override int GetHashCode() => Handle.GetHashCode(); - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFileHandle [0x{0}]", Handle.ToString("X")); - #endif - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs deleted file mode 100644 index 94a5fbdba..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN - { - /// <summary> - /// To be documented. - /// </summary> - public uint Storage_0; - public uint Storage_1; - public uint Storage_2; - public uint Storage_3; - public uint Storage_4; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(uint* storage = default) - { - if (storage != default(uint*)) - { - Storage_0 = storage[0]; - Storage_1 = storage[1]; - Storage_2 = storage[2]; - Storage_3 = storage[3]; - Storage_4 = storage[4]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(Span<uint> storage = default) - { - if (storage != default(Span<uint>)) - { - Storage_0 = storage[0]; - Storage_1 = storage[1]; - Storage_2 = storage[2]; - Storage_3 = storage[3]; - Storage_4 = storage[4]; - } - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs deleted file mode 100644 index df34d1705..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImBitVector.cs +++ /dev/null @@ -1,89 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImBitVector - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<uint> Storage; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImBitVector(ImVector<uint> storage = default) - { - Storage = storage; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImBitVectorPtr : IEquatable<ImBitVectorPtr> - { - public ImBitVectorPtr(ImBitVector* handle) { Handle = handle; } - - public ImBitVector* Handle; - - public bool IsNull => Handle == null; - - public static ImBitVectorPtr Null => new ImBitVectorPtr(null); - - public ImBitVector this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImBitVectorPtr(ImBitVector* handle) => new ImBitVectorPtr(handle); - - public static implicit operator ImBitVector*(ImBitVectorPtr handle) => handle.Handle; - - public static bool operator ==(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImBitVectorPtr left, ImBitVectorPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImBitVectorPtr left, ImBitVector* right) => left.Handle == right; - - public static bool operator !=(ImBitVectorPtr left, ImBitVector* right) => left.Handle != right; - - public bool Equals(ImBitVectorPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImBitVectorPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImBitVectorPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<uint> Storage => ref Unsafe.AsRef<ImVector<uint>>(&Handle->Storage); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiTableSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiTableSettings.cs deleted file mode 100644 index a8ec1d70b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiTableSettings.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImChunkStreamImGuiTableSettings - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> Buf; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImChunkStreamImGuiTableSettings(ImVector<byte> buf = default) - { - Buf = buf; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiWindowSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiWindowSettings.cs deleted file mode 100644 index 952c2250a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImChunkStreamImGuiWindowSettings.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImChunkStreamImGuiWindowSettings - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> Buf; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImChunkStreamImGuiWindowSettings(ImVector<byte> buf = default) - { - Buf = buf; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs deleted file mode 100644 index 3edcd3c9b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImColor.cs +++ /dev/null @@ -1,184 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImColor - { - /// <summary> - /// To be documented. - /// </summary> - public Vector4 Value; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImColor(Vector4 value = default) - { - Value = value; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImColor* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void HSV(float h, float s, float v, float a) - { - fixed (ImColor* @this = &this) - { - ImGui.HSVNative(@this, h, s, v, a); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void HSV(float h, float s, float v) - { - fixed (ImColor* @this = &this) - { - ImGui.HSVNative(@this, h, s, v, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetHSV(float h, float s, float v, float a) - { - fixed (ImColor* @this = &this) - { - ImGui.SetHSVNative(@this, h, s, v, a); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetHSV(float h, float s, float v) - { - fixed (ImColor* @this = &this) - { - ImGui.SetHSVNative(@this, h, s, v, (float)(1.0f)); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImColorPtr : IEquatable<ImColorPtr> - { - public ImColorPtr(ImColor* handle) { Handle = handle; } - - public ImColor* Handle; - - public bool IsNull => Handle == null; - - public static ImColorPtr Null => new ImColorPtr(null); - - public ImColor this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImColorPtr(ImColor* handle) => new ImColorPtr(handle); - - public static implicit operator ImColor*(ImColorPtr handle) => handle.Handle; - - public static bool operator ==(ImColorPtr left, ImColorPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImColorPtr left, ImColorPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImColorPtr left, ImColor* right) => left.Handle == right; - - public static bool operator !=(ImColorPtr left, ImColor* right) => left.Handle != right; - - public bool Equals(ImColorPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImColorPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImColorPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref Vector4 Value => ref Unsafe.AsRef<Vector4>(&Handle->Value); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void HSV(float h, float s, float v, float a) - { - ImGui.HSVNative(Handle, h, s, v, a); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void HSV(float h, float s, float v) - { - ImGui.HSVNative(Handle, h, s, v, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetHSV(float h, float s, float v, float a) - { - ImGui.SetHSVNative(Handle, h, s, v, a); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetHSV(float h, float s, float v) - { - ImGui.SetHSVNative(Handle, h, s, v, (float)(1.0f)); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs deleted file mode 100644 index b2495dff2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawChannel.cs +++ /dev/null @@ -1,99 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawChannel - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImDrawCmd> CmdBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ushort> IdxBuffer; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawChannel(ImVector<ImDrawCmd> cmdBuffer = default, ImVector<ushort> idxBuffer = default) - { - CmdBuffer = cmdBuffer; - IdxBuffer = idxBuffer; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawChannelPtr : IEquatable<ImDrawChannelPtr> - { - public ImDrawChannelPtr(ImDrawChannel* handle) { Handle = handle; } - - public ImDrawChannel* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawChannelPtr Null => new ImDrawChannelPtr(null); - - public ImDrawChannel this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawChannelPtr(ImDrawChannel* handle) => new ImDrawChannelPtr(handle); - - public static implicit operator ImDrawChannel*(ImDrawChannelPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawChannelPtr left, ImDrawChannelPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle == right; - - public static bool operator !=(ImDrawChannelPtr left, ImDrawChannel* right) => left.Handle != right; - - public bool Equals(ImDrawChannelPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawChannelPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawChannelPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImDrawCmd> CmdBuffer => ref Unsafe.AsRef<ImVector<ImDrawCmd>>(&Handle->CmdBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ushort> IdxBuffer => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->IdxBuffer); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs deleted file mode 100644 index 84094be46..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmd.cs +++ /dev/null @@ -1,188 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawCmd - { - /// <summary> - /// To be documented. - /// </summary> - public Vector4 ClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImTextureID TextureId; - - /// <summary> - /// To be documented. - /// </summary> - public uint VtxOffset; - - /// <summary> - /// To be documented. - /// </summary> - public uint IdxOffset; - - /// <summary> - /// To be documented. - /// </summary> - public uint ElemCount; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserCallback; - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserCallbackData; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawCmd(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default, uint idxOffset = default, uint elemCount = default, ImDrawCallback userCallback = default, void* userCallbackData = default) - { - ClipRect = clipRect; - TextureId = textureId; - VtxOffset = vtxOffset; - IdxOffset = idxOffset; - ElemCount = elemCount; - UserCallback = (void*)Marshal.GetFunctionPointerForDelegate(userCallback); - UserCallbackData = userCallbackData; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImDrawCmd* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImTextureID GetTexID() - { - fixed (ImDrawCmd* @this = &this) - { - ImTextureID ret = ImGui.GetTexIDNative(@this); - return ret; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawCmdPtr : IEquatable<ImDrawCmdPtr> - { - public ImDrawCmdPtr(ImDrawCmd* handle) { Handle = handle; } - - public ImDrawCmd* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawCmdPtr Null => new ImDrawCmdPtr(null); - - public ImDrawCmd this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawCmdPtr(ImDrawCmd* handle) => new ImDrawCmdPtr(handle); - - public static implicit operator ImDrawCmd*(ImDrawCmdPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawCmdPtr left, ImDrawCmdPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle == right; - - public static bool operator !=(ImDrawCmdPtr left, ImDrawCmd* right) => left.Handle != right; - - public bool Equals(ImDrawCmdPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawCmdPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawCmdPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref Vector4 ClipRect => ref Unsafe.AsRef<Vector4>(&Handle->ClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImTextureID TextureId => ref Unsafe.AsRef<ImTextureID>(&Handle->TextureId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint VtxOffset => ref Unsafe.AsRef<uint>(&Handle->VtxOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref uint IdxOffset => ref Unsafe.AsRef<uint>(&Handle->IdxOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ElemCount => ref Unsafe.AsRef<uint>(&Handle->ElemCount); - /// <summary> - /// To be documented. - /// </summary> - public void* UserCallback { get => Handle->UserCallback; set => Handle->UserCallback = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* UserCallbackData { get => Handle->UserCallbackData; set => Handle->UserCallbackData = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImTextureID GetTexID() - { - ImTextureID ret = ImGui.GetTexIDNative(Handle); - return ret; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs deleted file mode 100644 index 1bc35e4c1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawCmdHeader.cs +++ /dev/null @@ -1,54 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawCmdHeader - { - /// <summary> - /// To be documented. - /// </summary> - public Vector4 ClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImTextureID TextureId; - - /// <summary> - /// To be documented. - /// </summary> - public uint VtxOffset; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawCmdHeader(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default) - { - ClipRect = clipRect; - TextureId = textureId; - VtxOffset = vtxOffset; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs deleted file mode 100644 index 9d32ddbf7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawData.cs +++ /dev/null @@ -1,245 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawData - { - /// <summary> - /// To be documented. - /// </summary> - public byte Valid; - - /// <summary> - /// To be documented. - /// </summary> - public int CmdListsCount; - - /// <summary> - /// To be documented. - /// </summary> - public int TotalIdxCount; - - /// <summary> - /// To be documented. - /// </summary> - public int TotalVtxCount; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawList** CmdLists; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 DisplayPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 DisplaySize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 FramebufferScale; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewport* OwnerViewport; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawData(bool valid = default, int cmdListsCount = default, int totalIdxCount = default, int totalVtxCount = default, ImDrawListPtrPtr cmdLists = default, Vector2 displayPos = default, Vector2 displaySize = default, Vector2 framebufferScale = default, ImGuiViewport* ownerViewport = default) - { - Valid = valid ? (byte)1 : (byte)0; - CmdListsCount = cmdListsCount; - TotalIdxCount = totalIdxCount; - TotalVtxCount = totalVtxCount; - CmdLists = cmdLists; - DisplayPos = displayPos; - DisplaySize = displaySize; - FramebufferScale = framebufferScale; - OwnerViewport = ownerViewport; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - fixed (ImDrawData* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void DeIndexAllBuffers() - { - fixed (ImDrawData* @this = &this) - { - ImGui.DeIndexAllBuffersNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImDrawData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ScaleClipRects(Vector2 fbScale) - { - fixed (ImDrawData* @this = &this) - { - ImGui.ScaleClipRectsNative(@this, fbScale); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawDataPtr : IEquatable<ImDrawDataPtr> - { - public ImDrawDataPtr(ImDrawData* handle) { Handle = handle; } - - public ImDrawData* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawDataPtr Null => new ImDrawDataPtr(null); - - public ImDrawData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawDataPtr(ImDrawData* handle) => new ImDrawDataPtr(handle); - - public static implicit operator ImDrawData*(ImDrawDataPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawDataPtr left, ImDrawDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawDataPtr left, ImDrawData* right) => left.Handle == right; - - public static bool operator !=(ImDrawDataPtr left, ImDrawData* right) => left.Handle != right; - - public bool Equals(ImDrawDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref bool Valid => ref Unsafe.AsRef<bool>(&Handle->Valid); - /// <summary> - /// To be documented. - /// </summary> - public ref int CmdListsCount => ref Unsafe.AsRef<int>(&Handle->CmdListsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref int TotalIdxCount => ref Unsafe.AsRef<int>(&Handle->TotalIdxCount); - /// <summary> - /// To be documented. - /// </summary> - public ref int TotalVtxCount => ref Unsafe.AsRef<int>(&Handle->TotalVtxCount); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListPtrPtr CmdLists => ref Unsafe.AsRef<ImDrawListPtrPtr>(&Handle->CmdLists); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 DisplayPos => ref Unsafe.AsRef<Vector2>(&Handle->DisplayPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 DisplaySize => ref Unsafe.AsRef<Vector2>(&Handle->DisplaySize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 FramebufferScale => ref Unsafe.AsRef<Vector2>(&Handle->FramebufferScale); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportPtr OwnerViewport => ref Unsafe.AsRef<ImGuiViewportPtr>(&Handle->OwnerViewport); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - ImGui.ClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void DeIndexAllBuffers() - { - ImGui.DeIndexAllBuffersNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ScaleClipRects(Vector2 fbScale) - { - ImGui.ScaleClipRectsNative(Handle, fbScale); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawDataBuilder.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawDataBuilder.cs deleted file mode 100644 index 616b34a3e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawDataBuilder.cs +++ /dev/null @@ -1,127 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawDataBuilder - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImDrawListPtr> Layers_0; - public ImVector<ImDrawListPtr> Layers_1; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawDataBuilder(ImVector<ImDrawListPtr>* layers = default) - { - if (layers != default(ImVector<ImDrawListPtr>*)) - { - Layers_0 = layers[0]; - Layers_1 = layers[1]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawDataBuilder(Span<ImVector<ImDrawListPtr>> layers = default) - { - if (layers != default(Span<ImVector<ImDrawListPtr>>)) - { - Layers_0 = layers[0]; - Layers_1 = layers[1]; - } - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImVector<ImDrawListPtr>> Layers - - { - get - { - fixed (ImVector<ImDrawListPtr>* p = &this.Layers_0) - { - return new Span<ImVector<ImDrawListPtr>>(p, 2); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawDataBuilderPtr : IEquatable<ImDrawDataBuilderPtr> - { - public ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) { Handle = handle; } - - public ImDrawDataBuilder* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawDataBuilderPtr Null => new ImDrawDataBuilderPtr(null); - - public ImDrawDataBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawDataBuilderPtr(ImDrawDataBuilder* handle) => new ImDrawDataBuilderPtr(handle); - - public static implicit operator ImDrawDataBuilder*(ImDrawDataBuilderPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilderPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle == right; - - public static bool operator !=(ImDrawDataBuilderPtr left, ImDrawDataBuilder* right) => left.Handle != right; - - public bool Equals(ImDrawDataBuilderPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawDataBuilderPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawDataBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImVector<ImDrawListPtr>> Layers - - { - get - { - return new Span<ImVector<ImDrawListPtr>>(&Handle->Layers_0, 2); - } - } - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs deleted file mode 100644 index c5a444006..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawList.cs +++ /dev/null @@ -1,14741 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawList - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImDrawCmd> CmdBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ushort> IdxBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImDrawVert> VtxBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawListFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public uint VtxCurrentIdx; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawListSharedData* Data; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* OwnerName; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawVert* VtxWritePtr; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* IdxWritePtr; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<Vector4> ClipRectStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImTextureID> TextureIdStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<Vector2> Path; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawCmdHeader CmdHeader; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawListSplitter Splitter; - - /// <summary> - /// To be documented. - /// </summary> - public float FringeScale; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawList(ImVector<ImDrawCmd> cmdBuffer = default, ImVector<ushort> idxBuffer = default, ImVector<ImDrawVert> vtxBuffer = default, ImDrawListFlags flags = default, uint vtxCurrentIdx = default, ImDrawListSharedData* data = default, byte* ownerName = default, ImDrawVert* vtxWritePtr = default, ushort* idxWritePtr = default, ImVector<Vector4> clipRectStack = default, ImVector<ImTextureID> textureIdStack = default, ImVector<Vector2> path = default, ImDrawCmdHeader cmdHeader = default, ImDrawListSplitter splitter = default, float fringeScale = default) - { - CmdBuffer = cmdBuffer; - IdxBuffer = idxBuffer; - VtxBuffer = vtxBuffer; - Flags = flags; - VtxCurrentIdx = vtxCurrentIdx; - Data = data; - OwnerName = ownerName; - VtxWritePtr = vtxWritePtr; - IdxWritePtr = idxWritePtr; - ClipRectStack = clipRectStack; - TextureIdStack = textureIdStack; - Path = path; - CmdHeader = cmdHeader; - Splitter = splitter; - FringeScale = fringeScale; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int _CalcCircleAutoSegmentCount(float radius) - { - fixed (ImDrawList* @this = &this) - { - int ret = ImGui._CalcCircleAutoSegmentCountNative(@this, radius); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _ClearFreeMemory() - { - fixed (ImDrawList* @this = &this) - { - ImGui._ClearFreeMemoryNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _OnChangedClipRect() - { - fixed (ImDrawList* @this = &this) - { - ImGui._OnChangedClipRectNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _OnChangedTextureID() - { - fixed (ImDrawList* @this = &this) - { - ImGui._OnChangedTextureIDNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _OnChangedVtxOffset() - { - fixed (ImDrawList* @this = &this) - { - ImGui._OnChangedVtxOffsetNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - fixed (ImDrawList* @this = &this) - { - ImGui._PathArcToFastExNative(@this, center, radius, aMinSample, aMaxSample, aStep); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui._PathArcToNNative(@this, center, radius, aMin, aMax, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _PopUnusedDrawCmd() - { - fixed (ImDrawList* @this = &this) - { - ImGui._PopUnusedDrawCmdNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _ResetForNewFrame() - { - fixed (ImDrawList* @this = &this) - { - ImGui._ResetForNewFrameNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _TryMergeDrawCmds() - { - fixed (ImDrawList* @this = &this) - { - ImGui._TryMergeDrawCmdsNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddBezierCubicNative(@this, p1, p2, p3, p4, col, thickness, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddBezierCubicNative(@this, p1, p2, p3, p4, col, thickness, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddBezierQuadraticNative(@this, p1, p2, p3, col, thickness, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddBezierQuadraticNative(@this, p1, p2, p3, col, thickness, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddCallbackNative(@this, callback, callbackData); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddCircleNative(@this, center, radius, col, numSegments, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddCircleNative(@this, center, radius, col, numSegments, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddCircleNative(@this, center, radius, col, (int)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddCircleNative(@this, center, radius, col, (int)(0), thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddCircleFilledNative(@this, center, radius, col, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddCircleFilledNative(@this, center, radius, col, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddConvexPolyFilledNative(@this, points, numPoints, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector2* ppoints = &points) - { - ImGui.AddConvexPolyFilledNative(@this, (Vector2*)ppoints, numPoints, col); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddDrawCmd() - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddDrawCmdNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageNative(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageNative(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddLineNative(@this, p1, p2, col, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddLineNative(@this, p1, p2, col, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddNgonNative(@this, center, radius, col, numSegments, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddNgonNative(@this, center, radius, col, numSegments, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddNgonFilledNative(@this, center, radius, col, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddPolylineNative(@this, points, numPoints, col, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector2* ppoints = &points) - { - ImGui.AddPolylineNative(@this, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddQuadNative(@this, p1, p2, p3, p4, col, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddQuadNative(@this, p1, p2, p3, p4, col, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddQuadFilledNative(@this, p1, p2, p3, p4, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectNative(@this, pMin, pMax, col, rounding, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectNative(@this, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddRectFilledMultiColorNative(@this, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, pos, col, textBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* @this = &this) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTriangleNative(@this, p1, p2, p3, col, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTriangleNative(@this, p1, p2, p3, col, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.AddTriangleFilledNative(@this, p1, p2, p3, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ChannelsMerge() - { - fixed (ImDrawList* @this = &this) - { - ImGui.ChannelsMergeNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ChannelsSetCurrent(int n) - { - fixed (ImDrawList* @this = &this) - { - ImGui.ChannelsSetCurrentNative(@this, n); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ChannelsSplit(int count) - { - fixed (ImDrawList* @this = &this) - { - ImGui.ChannelsSplitNative(@this, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawList* CloneOutput() - { - fixed (ImDrawList* @this = &this) - { - ImDrawList* ret = ImGui.CloneOutputNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImDrawList* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathArcToNative(@this, center, radius, aMin, aMax, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathArcToNative(@this, center, radius, aMin, aMax, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathArcToFastNative(@this, center, radius, aMinOf12, aMaxOf12); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathBezierCubicCurveToNative(@this, p2, p3, p4, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathBezierCubicCurveToNative(@this, p2, p3, p4, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathBezierQuadraticCurveToNative(@this, p2, p3, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathBezierQuadraticCurveToNative(@this, p2, p3, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathClear() - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathFillConvex(uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathFillConvexNative(@this, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathLineTo(Vector2 pos) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathLineToNative(@this, pos); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathLineToMergeDuplicate(Vector2 pos) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathLineToMergeDuplicateNative(@this, pos); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathRectNative(@this, rectMin, rectMax, rounding, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathRectNative(@this, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathStrokeNative(@this, col, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col, ImDrawFlags flags) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathStrokeNative(@this, col, flags, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathStrokeNative(@this, col, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col, float thickness) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PathStrokeNative(@this, col, (ImDrawFlags)(0), thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PopClipRect() - { - fixed (ImDrawList* @this = &this) - { - ImGui.PopClipRectNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PopTextureID() - { - fixed (ImDrawList* @this = &this) - { - ImGui.PopTextureIDNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimQuadUVNative(@this, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimRectNative(@this, a, b, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimRectUVNative(@this, a, b, uvA, uvB, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimReserve(int idxCount, int vtxCount) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimReserveNative(@this, idxCount, vtxCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimUnreserve(int idxCount, int vtxCount) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimUnreserveNative(@this, idxCount, vtxCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimVtxNative(@this, pos, uv, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimWriteIdx(ushort idx) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimWriteIdxNative(@this, idx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PrimWriteVtxNative(@this, pos, uv, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PushClipRectNative(@this, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PushClipRectNative(@this, clipRectMin, clipRectMax, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushClipRectFullScreen() - { - fixed (ImDrawList* @this = &this) - { - ImGui.PushClipRectFullScreenNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushTextureID(ImTextureID textureId) - { - fixed (ImDrawList* @this = &this) - { - ImGui.PushTextureIDNative(@this, textureId); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawListPtr : IEquatable<ImDrawListPtr> - { - public ImDrawListPtr(ImDrawList* handle) { Handle = handle; } - - public ImDrawList* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawListPtr Null => new ImDrawListPtr(null); - - public ImDrawList this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawListPtr(ImDrawList* handle) => new ImDrawListPtr(handle); - - public static implicit operator ImDrawList*(ImDrawListPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawListPtr left, ImDrawListPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawListPtr left, ImDrawListPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawListPtr left, ImDrawList* right) => left.Handle == right; - - public static bool operator !=(ImDrawListPtr left, ImDrawList* right) => left.Handle != right; - - public bool Equals(ImDrawListPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawListPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawListPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImDrawCmd> CmdBuffer => ref Unsafe.AsRef<ImVector<ImDrawCmd>>(&Handle->CmdBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ushort> IdxBuffer => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->IdxBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImDrawVert> VtxBuffer => ref Unsafe.AsRef<ImVector<ImDrawVert>>(&Handle->VtxBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListFlags Flags => ref Unsafe.AsRef<ImDrawListFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref uint VtxCurrentIdx => ref Unsafe.AsRef<uint>(&Handle->VtxCurrentIdx); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListSharedDataPtr Data => ref Unsafe.AsRef<ImDrawListSharedDataPtr>(&Handle->Data); - /// <summary> - /// To be documented. - /// </summary> - public byte* OwnerName { get => Handle->OwnerName; set => Handle->OwnerName = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawVertPtr VtxWritePtr => ref Unsafe.AsRef<ImDrawVertPtr>(&Handle->VtxWritePtr); - /// <summary> - /// To be documented. - /// </summary> - public ushort* IdxWritePtr { get => Handle->IdxWritePtr; set => Handle->IdxWritePtr = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<Vector4> ClipRectStack => ref Unsafe.AsRef<ImVector<Vector4>>(&Handle->ClipRectStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImTextureID> TextureIdStack => ref Unsafe.AsRef<ImVector<ImTextureID>>(&Handle->TextureIdStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<Vector2> Path => ref Unsafe.AsRef<ImVector<Vector2>>(&Handle->Path); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawCmdHeader CmdHeader => ref Unsafe.AsRef<ImDrawCmdHeader>(&Handle->CmdHeader); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef<ImDrawListSplitter>(&Handle->Splitter); - /// <summary> - /// To be documented. - /// </summary> - public ref float FringeScale => ref Unsafe.AsRef<float>(&Handle->FringeScale); - /// <summary> - /// To be documented. - /// </summary> - public unsafe int _CalcCircleAutoSegmentCount(float radius) - { - int ret = ImGui._CalcCircleAutoSegmentCountNative(Handle, radius); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _ClearFreeMemory() - { - ImGui._ClearFreeMemoryNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _OnChangedClipRect() - { - ImGui._OnChangedClipRectNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _OnChangedTextureID() - { - ImGui._OnChangedTextureIDNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _OnChangedVtxOffset() - { - ImGui._OnChangedVtxOffsetNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _PathArcToFastEx(Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) - { - ImGui._PathArcToFastExNative(Handle, center, radius, aMinSample, aMaxSample, aStep); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _PathArcToN(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - ImGui._PathArcToNNative(Handle, center, radius, aMin, aMax, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _PopUnusedDrawCmd() - { - ImGui._PopUnusedDrawCmdNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _ResetForNewFrame() - { - ImGui._ResetForNewFrameNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _TryMergeDrawCmds() - { - ImGui._TryMergeDrawCmdsNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) - { - ImGui.AddBezierCubicNative(Handle, p1, p2, p3, p4, col, thickness, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierCubic(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - ImGui.AddBezierCubicNative(Handle, p1, p2, p3, p4, col, thickness, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) - { - ImGui.AddBezierQuadraticNative(Handle, p1, p2, p3, col, thickness, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddBezierQuadratic(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - ImGui.AddBezierQuadraticNative(Handle, p1, p2, p3, col, thickness, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCallback(ImDrawCallback callback, void* callbackData) - { - ImGui.AddCallbackNative(Handle, callback, callbackData); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - ImGui.AddCircleNative(Handle, center, radius, col, numSegments, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col, int numSegments) - { - ImGui.AddCircleNative(Handle, center, radius, col, numSegments, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col) - { - ImGui.AddCircleNative(Handle, center, radius, col, (int)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircle(Vector2 center, float radius, uint col, float thickness) - { - ImGui.AddCircleNative(Handle, center, radius, col, (int)(0), thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col, int numSegments) - { - ImGui.AddCircleFilledNative(Handle, center, radius, col, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddCircleFilled(Vector2 center, float radius, uint col) - { - ImGui.AddCircleFilledNative(Handle, center, radius, col, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddConvexPolyFilled(Vector2* points, int numPoints, uint col) - { - ImGui.AddConvexPolyFilledNative(Handle, points, numPoints, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddConvexPolyFilled(ref Vector2 points, int numPoints, uint col) - { - fixed (Vector2* ppoints = &points) - { - ImGui.AddConvexPolyFilledNative(Handle, (Vector2*)ppoints, numPoints, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddDrawCmd() - { - ImGui.AddDrawCmdNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) - { - ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) - { - ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) - { - ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) - { - ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) - { - ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImage(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) - { - ImGui.AddImageNative(Handle, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageQuad(ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGui.AddImageQuadNative(Handle, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, ImDrawFlags flags) - { - ImGui.AddImageRoundedNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddImageRounded(ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) - { - ImGui.AddImageRoundedNative(Handle, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col, float thickness) - { - ImGui.AddLineNative(Handle, p1, p2, col, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddLine(Vector2 p1, Vector2 p2, uint col) - { - ImGui.AddLineNative(Handle, p1, p2, col, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments, float thickness) - { - ImGui.AddNgonNative(Handle, center, radius, col, numSegments, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddNgon(Vector2 center, float radius, uint col, int numSegments) - { - ImGui.AddNgonNative(Handle, center, radius, col, numSegments, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddNgonFilled(Vector2 center, float radius, uint col, int numSegments) - { - ImGui.AddNgonFilledNative(Handle, center, radius, col, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddPolyline(Vector2* points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - ImGui.AddPolylineNative(Handle, points, numPoints, col, flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddPolyline(ref Vector2 points, int numPoints, uint col, ImDrawFlags flags, float thickness) - { - fixed (Vector2* ppoints = &points) - { - ImGui.AddPolylineNative(Handle, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) - { - ImGui.AddQuadNative(Handle, p1, p2, p3, p4, col, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddQuad(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGui.AddQuadNative(Handle, p1, p2, p3, p4, col, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddQuadFilled(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) - { - ImGui.AddQuadFilledNative(Handle, p1, p2, p3, p4, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags, float thickness) - { - ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col) - { - ImGui.AddRectNative(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - ImGui.AddRectNative(Handle, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) - { - ImGui.AddRectNative(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRect(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags, float thickness) - { - ImGui.AddRectNative(Handle, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding, ImDrawFlags flags) - { - ImGui.AddRectFilledNative(Handle, pMin, pMax, col, rounding, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, float rounding) - { - ImGui.AddRectFilledNative(Handle, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col) - { - ImGui.AddRectFilledNative(Handle, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilled(Vector2 pMin, Vector2 pMax, uint col, ImDrawFlags flags) - { - ImGui.AddRectFilledNative(Handle, pMin, pMax, col, (float)(0.0f), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRectFilledMultiColor(Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) - { - ImGui.AddRectFilledMultiColorNative(Handle, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - ImGui.AddTextNative(Handle, pos, col, textBegin, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin) - { - ImGui.AddTextNative(Handle, pos, col, textBegin, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, font, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd, ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - ImGui.AddTextNative(Handle, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) - { - ImGui.AddTriangleNative(Handle, p1, p2, p3, col, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddTriangle(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - ImGui.AddTriangleNative(Handle, p1, p2, p3, col, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddTriangleFilled(Vector2 p1, Vector2 p2, Vector2 p3, uint col) - { - ImGui.AddTriangleFilledNative(Handle, p1, p2, p3, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ChannelsMerge() - { - ImGui.ChannelsMergeNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ChannelsSetCurrent(int n) - { - ImGui.ChannelsSetCurrentNative(Handle, n); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ChannelsSplit(int count) - { - ImGui.ChannelsSplitNative(Handle, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawListPtr CloneOutput() - { - ImDrawListPtr ret = ImGui.CloneOutputNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax, int numSegments) - { - ImGui.PathArcToNative(Handle, center, radius, aMin, aMax, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathArcTo(Vector2 center, float radius, float aMin, float aMax) - { - ImGui.PathArcToNative(Handle, center, radius, aMin, aMax, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathArcToFast(Vector2 center, float radius, int aMinOf12, int aMaxOf12) - { - ImGui.PathArcToFastNative(Handle, center, radius, aMinOf12, aMaxOf12); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) - { - ImGui.PathBezierCubicCurveToNative(Handle, p2, p3, p4, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierCubicCurveTo(Vector2 p2, Vector2 p3, Vector2 p4) - { - ImGui.PathBezierCubicCurveToNative(Handle, p2, p3, p4, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3, int numSegments) - { - ImGui.PathBezierQuadraticCurveToNative(Handle, p2, p3, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathBezierQuadraticCurveTo(Vector2 p2, Vector2 p3) - { - ImGui.PathBezierQuadraticCurveToNative(Handle, p2, p3, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathClear() - { - ImGui.PathClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathFillConvex(uint col) - { - ImGui.PathFillConvexNative(Handle, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathLineTo(Vector2 pos) - { - ImGui.PathLineToNative(Handle, pos); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathLineToMergeDuplicate(Vector2 pos) - { - ImGui.PathLineToMergeDuplicateNative(Handle, pos); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding, ImDrawFlags flags) - { - ImGui.PathRectNative(Handle, rectMin, rectMax, rounding, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, float rounding) - { - ImGui.PathRectNative(Handle, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax) - { - ImGui.PathRectNative(Handle, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathRect(Vector2 rectMin, Vector2 rectMax, ImDrawFlags flags) - { - ImGui.PathRectNative(Handle, rectMin, rectMax, (float)(0.0f), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col, ImDrawFlags flags, float thickness) - { - ImGui.PathStrokeNative(Handle, col, flags, thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col, ImDrawFlags flags) - { - ImGui.PathStrokeNative(Handle, col, flags, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col) - { - ImGui.PathStrokeNative(Handle, col, (ImDrawFlags)(0), (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PathStroke(uint col, float thickness) - { - ImGui.PathStrokeNative(Handle, col, (ImDrawFlags)(0), thickness); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PopClipRect() - { - ImGui.PopClipRectNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PopTextureID() - { - ImGui.PopTextureIDNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimQuadUV(Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) - { - ImGui.PrimQuadUVNative(Handle, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimRect(Vector2 a, Vector2 b, uint col) - { - ImGui.PrimRectNative(Handle, a, b, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimRectUV(Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) - { - ImGui.PrimRectUVNative(Handle, a, b, uvA, uvB, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimReserve(int idxCount, int vtxCount) - { - ImGui.PrimReserveNative(Handle, idxCount, vtxCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimUnreserve(int idxCount, int vtxCount) - { - ImGui.PrimUnreserveNative(Handle, idxCount, vtxCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimVtx(Vector2 pos, Vector2 uv, uint col) - { - ImGui.PrimVtxNative(Handle, pos, uv, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimWriteIdx(ushort idx) - { - ImGui.PrimWriteIdxNative(Handle, idx); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PrimWriteVtx(Vector2 pos, Vector2 uv, uint col) - { - ImGui.PrimWriteVtxNative(Handle, pos, uv, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) - { - ImGui.PushClipRectNative(Handle, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushClipRect(Vector2 clipRectMin, Vector2 clipRectMax) - { - ImGui.PushClipRectNative(Handle, clipRectMin, clipRectMax, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushClipRectFullScreen() - { - ImGui.PushClipRectFullScreenNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushTextureID(ImTextureID textureId) - { - ImGui.PushTextureIDNative(Handle, textureId); - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawListPtrPtr : IEquatable<ImDrawListPtrPtr> - { - public ImDrawListPtrPtr(ImDrawList** handle) { Handle = handle; } - - public ImDrawList** Handle; - - public bool IsNull => Handle == null; - - public static ImDrawListPtrPtr Null => new ImDrawListPtrPtr(null); - - public ImDrawList* this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawListPtrPtr(ImDrawList** handle) => new ImDrawListPtrPtr(handle); - - public static implicit operator ImDrawList**(ImDrawListPtrPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawListPtrPtr left, ImDrawListPtrPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle == right; - - public static bool operator !=(ImDrawListPtrPtr left, ImDrawList** right) => left.Handle != right; - - public bool Equals(ImDrawListPtrPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawListPtrPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawListPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs deleted file mode 100644 index 43a947209..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSharedData.cs +++ /dev/null @@ -1,607 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawListSharedData - { - /// <summary> - /// To be documented. - /// </summary> - public ImTextureID TexIdCommon; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 TexUvWhitePixel; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFont* Font; - - /// <summary> - /// To be documented. - /// </summary> - public float FontSize; - - /// <summary> - /// To be documented. - /// </summary> - public float CurveTessellationTol; - - /// <summary> - /// To be documented. - /// </summary> - public float CircleSegmentMaxError; - - /// <summary> - /// To be documented. - /// </summary> - public Vector4 ClipRectFullscreen; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawListFlags InitialFlags; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ArcFastVtx_0; - public Vector2 ArcFastVtx_1; - public Vector2 ArcFastVtx_2; - public Vector2 ArcFastVtx_3; - public Vector2 ArcFastVtx_4; - public Vector2 ArcFastVtx_5; - public Vector2 ArcFastVtx_6; - public Vector2 ArcFastVtx_7; - public Vector2 ArcFastVtx_8; - public Vector2 ArcFastVtx_9; - public Vector2 ArcFastVtx_10; - public Vector2 ArcFastVtx_11; - public Vector2 ArcFastVtx_12; - public Vector2 ArcFastVtx_13; - public Vector2 ArcFastVtx_14; - public Vector2 ArcFastVtx_15; - public Vector2 ArcFastVtx_16; - public Vector2 ArcFastVtx_17; - public Vector2 ArcFastVtx_18; - public Vector2 ArcFastVtx_19; - public Vector2 ArcFastVtx_20; - public Vector2 ArcFastVtx_21; - public Vector2 ArcFastVtx_22; - public Vector2 ArcFastVtx_23; - public Vector2 ArcFastVtx_24; - public Vector2 ArcFastVtx_25; - public Vector2 ArcFastVtx_26; - public Vector2 ArcFastVtx_27; - public Vector2 ArcFastVtx_28; - public Vector2 ArcFastVtx_29; - public Vector2 ArcFastVtx_30; - public Vector2 ArcFastVtx_31; - public Vector2 ArcFastVtx_32; - public Vector2 ArcFastVtx_33; - public Vector2 ArcFastVtx_34; - public Vector2 ArcFastVtx_35; - public Vector2 ArcFastVtx_36; - public Vector2 ArcFastVtx_37; - public Vector2 ArcFastVtx_38; - public Vector2 ArcFastVtx_39; - public Vector2 ArcFastVtx_40; - public Vector2 ArcFastVtx_41; - public Vector2 ArcFastVtx_42; - public Vector2 ArcFastVtx_43; - public Vector2 ArcFastVtx_44; - public Vector2 ArcFastVtx_45; - public Vector2 ArcFastVtx_46; - public Vector2 ArcFastVtx_47; - - /// <summary> - /// To be documented. - /// </summary> - public float ArcFastRadiusCutoff; - - /// <summary> - /// To be documented. - /// </summary> - public byte CircleSegmentCounts_0; - public byte CircleSegmentCounts_1; - public byte CircleSegmentCounts_2; - public byte CircleSegmentCounts_3; - public byte CircleSegmentCounts_4; - public byte CircleSegmentCounts_5; - public byte CircleSegmentCounts_6; - public byte CircleSegmentCounts_7; - public byte CircleSegmentCounts_8; - public byte CircleSegmentCounts_9; - public byte CircleSegmentCounts_10; - public byte CircleSegmentCounts_11; - public byte CircleSegmentCounts_12; - public byte CircleSegmentCounts_13; - public byte CircleSegmentCounts_14; - public byte CircleSegmentCounts_15; - public byte CircleSegmentCounts_16; - public byte CircleSegmentCounts_17; - public byte CircleSegmentCounts_18; - public byte CircleSegmentCounts_19; - public byte CircleSegmentCounts_20; - public byte CircleSegmentCounts_21; - public byte CircleSegmentCounts_22; - public byte CircleSegmentCounts_23; - public byte CircleSegmentCounts_24; - public byte CircleSegmentCounts_25; - public byte CircleSegmentCounts_26; - public byte CircleSegmentCounts_27; - public byte CircleSegmentCounts_28; - public byte CircleSegmentCounts_29; - public byte CircleSegmentCounts_30; - public byte CircleSegmentCounts_31; - public byte CircleSegmentCounts_32; - public byte CircleSegmentCounts_33; - public byte CircleSegmentCounts_34; - public byte CircleSegmentCounts_35; - public byte CircleSegmentCounts_36; - public byte CircleSegmentCounts_37; - public byte CircleSegmentCounts_38; - public byte CircleSegmentCounts_39; - public byte CircleSegmentCounts_40; - public byte CircleSegmentCounts_41; - public byte CircleSegmentCounts_42; - public byte CircleSegmentCounts_43; - public byte CircleSegmentCounts_44; - public byte CircleSegmentCounts_45; - public byte CircleSegmentCounts_46; - public byte CircleSegmentCounts_47; - public byte CircleSegmentCounts_48; - public byte CircleSegmentCounts_49; - public byte CircleSegmentCounts_50; - public byte CircleSegmentCounts_51; - public byte CircleSegmentCounts_52; - public byte CircleSegmentCounts_53; - public byte CircleSegmentCounts_54; - public byte CircleSegmentCounts_55; - public byte CircleSegmentCounts_56; - public byte CircleSegmentCounts_57; - public byte CircleSegmentCounts_58; - public byte CircleSegmentCounts_59; - public byte CircleSegmentCounts_60; - public byte CircleSegmentCounts_61; - public byte CircleSegmentCounts_62; - public byte CircleSegmentCounts_63; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Vector4* TexUvLines; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Vector2* arcFastVtx = default, float arcFastRadiusCutoff = default, byte* circleSegmentCounts = default, Vector4* texUvLines = default) - { - TexIdCommon = texIdCommon; - TexUvWhitePixel = texUvWhitePixel; - Font = font; - FontSize = fontSize; - CurveTessellationTol = curveTessellationTol; - CircleSegmentMaxError = circleSegmentMaxError; - ClipRectFullscreen = clipRectFullscreen; - InitialFlags = initialFlags; - if (arcFastVtx != default(Vector2*)) - { - ArcFastVtx_0 = arcFastVtx[0]; - ArcFastVtx_1 = arcFastVtx[1]; - ArcFastVtx_2 = arcFastVtx[2]; - ArcFastVtx_3 = arcFastVtx[3]; - ArcFastVtx_4 = arcFastVtx[4]; - ArcFastVtx_5 = arcFastVtx[5]; - ArcFastVtx_6 = arcFastVtx[6]; - ArcFastVtx_7 = arcFastVtx[7]; - ArcFastVtx_8 = arcFastVtx[8]; - ArcFastVtx_9 = arcFastVtx[9]; - ArcFastVtx_10 = arcFastVtx[10]; - ArcFastVtx_11 = arcFastVtx[11]; - ArcFastVtx_12 = arcFastVtx[12]; - ArcFastVtx_13 = arcFastVtx[13]; - ArcFastVtx_14 = arcFastVtx[14]; - ArcFastVtx_15 = arcFastVtx[15]; - ArcFastVtx_16 = arcFastVtx[16]; - ArcFastVtx_17 = arcFastVtx[17]; - ArcFastVtx_18 = arcFastVtx[18]; - ArcFastVtx_19 = arcFastVtx[19]; - ArcFastVtx_20 = arcFastVtx[20]; - ArcFastVtx_21 = arcFastVtx[21]; - ArcFastVtx_22 = arcFastVtx[22]; - ArcFastVtx_23 = arcFastVtx[23]; - ArcFastVtx_24 = arcFastVtx[24]; - ArcFastVtx_25 = arcFastVtx[25]; - ArcFastVtx_26 = arcFastVtx[26]; - ArcFastVtx_27 = arcFastVtx[27]; - ArcFastVtx_28 = arcFastVtx[28]; - ArcFastVtx_29 = arcFastVtx[29]; - ArcFastVtx_30 = arcFastVtx[30]; - ArcFastVtx_31 = arcFastVtx[31]; - ArcFastVtx_32 = arcFastVtx[32]; - ArcFastVtx_33 = arcFastVtx[33]; - ArcFastVtx_34 = arcFastVtx[34]; - ArcFastVtx_35 = arcFastVtx[35]; - ArcFastVtx_36 = arcFastVtx[36]; - ArcFastVtx_37 = arcFastVtx[37]; - ArcFastVtx_38 = arcFastVtx[38]; - ArcFastVtx_39 = arcFastVtx[39]; - ArcFastVtx_40 = arcFastVtx[40]; - ArcFastVtx_41 = arcFastVtx[41]; - ArcFastVtx_42 = arcFastVtx[42]; - ArcFastVtx_43 = arcFastVtx[43]; - ArcFastVtx_44 = arcFastVtx[44]; - ArcFastVtx_45 = arcFastVtx[45]; - ArcFastVtx_46 = arcFastVtx[46]; - ArcFastVtx_47 = arcFastVtx[47]; - } - ArcFastRadiusCutoff = arcFastRadiusCutoff; - if (circleSegmentCounts != default(byte*)) - { - CircleSegmentCounts_0 = circleSegmentCounts[0]; - CircleSegmentCounts_1 = circleSegmentCounts[1]; - CircleSegmentCounts_2 = circleSegmentCounts[2]; - CircleSegmentCounts_3 = circleSegmentCounts[3]; - CircleSegmentCounts_4 = circleSegmentCounts[4]; - CircleSegmentCounts_5 = circleSegmentCounts[5]; - CircleSegmentCounts_6 = circleSegmentCounts[6]; - CircleSegmentCounts_7 = circleSegmentCounts[7]; - CircleSegmentCounts_8 = circleSegmentCounts[8]; - CircleSegmentCounts_9 = circleSegmentCounts[9]; - CircleSegmentCounts_10 = circleSegmentCounts[10]; - CircleSegmentCounts_11 = circleSegmentCounts[11]; - CircleSegmentCounts_12 = circleSegmentCounts[12]; - CircleSegmentCounts_13 = circleSegmentCounts[13]; - CircleSegmentCounts_14 = circleSegmentCounts[14]; - CircleSegmentCounts_15 = circleSegmentCounts[15]; - CircleSegmentCounts_16 = circleSegmentCounts[16]; - CircleSegmentCounts_17 = circleSegmentCounts[17]; - CircleSegmentCounts_18 = circleSegmentCounts[18]; - CircleSegmentCounts_19 = circleSegmentCounts[19]; - CircleSegmentCounts_20 = circleSegmentCounts[20]; - CircleSegmentCounts_21 = circleSegmentCounts[21]; - CircleSegmentCounts_22 = circleSegmentCounts[22]; - CircleSegmentCounts_23 = circleSegmentCounts[23]; - CircleSegmentCounts_24 = circleSegmentCounts[24]; - CircleSegmentCounts_25 = circleSegmentCounts[25]; - CircleSegmentCounts_26 = circleSegmentCounts[26]; - CircleSegmentCounts_27 = circleSegmentCounts[27]; - CircleSegmentCounts_28 = circleSegmentCounts[28]; - CircleSegmentCounts_29 = circleSegmentCounts[29]; - CircleSegmentCounts_30 = circleSegmentCounts[30]; - CircleSegmentCounts_31 = circleSegmentCounts[31]; - CircleSegmentCounts_32 = circleSegmentCounts[32]; - CircleSegmentCounts_33 = circleSegmentCounts[33]; - CircleSegmentCounts_34 = circleSegmentCounts[34]; - CircleSegmentCounts_35 = circleSegmentCounts[35]; - CircleSegmentCounts_36 = circleSegmentCounts[36]; - CircleSegmentCounts_37 = circleSegmentCounts[37]; - CircleSegmentCounts_38 = circleSegmentCounts[38]; - CircleSegmentCounts_39 = circleSegmentCounts[39]; - CircleSegmentCounts_40 = circleSegmentCounts[40]; - CircleSegmentCounts_41 = circleSegmentCounts[41]; - CircleSegmentCounts_42 = circleSegmentCounts[42]; - CircleSegmentCounts_43 = circleSegmentCounts[43]; - CircleSegmentCounts_44 = circleSegmentCounts[44]; - CircleSegmentCounts_45 = circleSegmentCounts[45]; - CircleSegmentCounts_46 = circleSegmentCounts[46]; - CircleSegmentCounts_47 = circleSegmentCounts[47]; - CircleSegmentCounts_48 = circleSegmentCounts[48]; - CircleSegmentCounts_49 = circleSegmentCounts[49]; - CircleSegmentCounts_50 = circleSegmentCounts[50]; - CircleSegmentCounts_51 = circleSegmentCounts[51]; - CircleSegmentCounts_52 = circleSegmentCounts[52]; - CircleSegmentCounts_53 = circleSegmentCounts[53]; - CircleSegmentCounts_54 = circleSegmentCounts[54]; - CircleSegmentCounts_55 = circleSegmentCounts[55]; - CircleSegmentCounts_56 = circleSegmentCounts[56]; - CircleSegmentCounts_57 = circleSegmentCounts[57]; - CircleSegmentCounts_58 = circleSegmentCounts[58]; - CircleSegmentCounts_59 = circleSegmentCounts[59]; - CircleSegmentCounts_60 = circleSegmentCounts[60]; - CircleSegmentCounts_61 = circleSegmentCounts[61]; - CircleSegmentCounts_62 = circleSegmentCounts[62]; - CircleSegmentCounts_63 = circleSegmentCounts[63]; - } - TexUvLines = texUvLines; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawListSharedData(ImTextureID texIdCommon = default, Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, ImDrawListFlags initialFlags = default, Span<Vector2> arcFastVtx = default, float arcFastRadiusCutoff = default, Span<byte> circleSegmentCounts = default, Vector4* texUvLines = default) - { - TexIdCommon = texIdCommon; - TexUvWhitePixel = texUvWhitePixel; - Font = font; - FontSize = fontSize; - CurveTessellationTol = curveTessellationTol; - CircleSegmentMaxError = circleSegmentMaxError; - ClipRectFullscreen = clipRectFullscreen; - InitialFlags = initialFlags; - if (arcFastVtx != default(Span<Vector2>)) - { - ArcFastVtx_0 = arcFastVtx[0]; - ArcFastVtx_1 = arcFastVtx[1]; - ArcFastVtx_2 = arcFastVtx[2]; - ArcFastVtx_3 = arcFastVtx[3]; - ArcFastVtx_4 = arcFastVtx[4]; - ArcFastVtx_5 = arcFastVtx[5]; - ArcFastVtx_6 = arcFastVtx[6]; - ArcFastVtx_7 = arcFastVtx[7]; - ArcFastVtx_8 = arcFastVtx[8]; - ArcFastVtx_9 = arcFastVtx[9]; - ArcFastVtx_10 = arcFastVtx[10]; - ArcFastVtx_11 = arcFastVtx[11]; - ArcFastVtx_12 = arcFastVtx[12]; - ArcFastVtx_13 = arcFastVtx[13]; - ArcFastVtx_14 = arcFastVtx[14]; - ArcFastVtx_15 = arcFastVtx[15]; - ArcFastVtx_16 = arcFastVtx[16]; - ArcFastVtx_17 = arcFastVtx[17]; - ArcFastVtx_18 = arcFastVtx[18]; - ArcFastVtx_19 = arcFastVtx[19]; - ArcFastVtx_20 = arcFastVtx[20]; - ArcFastVtx_21 = arcFastVtx[21]; - ArcFastVtx_22 = arcFastVtx[22]; - ArcFastVtx_23 = arcFastVtx[23]; - ArcFastVtx_24 = arcFastVtx[24]; - ArcFastVtx_25 = arcFastVtx[25]; - ArcFastVtx_26 = arcFastVtx[26]; - ArcFastVtx_27 = arcFastVtx[27]; - ArcFastVtx_28 = arcFastVtx[28]; - ArcFastVtx_29 = arcFastVtx[29]; - ArcFastVtx_30 = arcFastVtx[30]; - ArcFastVtx_31 = arcFastVtx[31]; - ArcFastVtx_32 = arcFastVtx[32]; - ArcFastVtx_33 = arcFastVtx[33]; - ArcFastVtx_34 = arcFastVtx[34]; - ArcFastVtx_35 = arcFastVtx[35]; - ArcFastVtx_36 = arcFastVtx[36]; - ArcFastVtx_37 = arcFastVtx[37]; - ArcFastVtx_38 = arcFastVtx[38]; - ArcFastVtx_39 = arcFastVtx[39]; - ArcFastVtx_40 = arcFastVtx[40]; - ArcFastVtx_41 = arcFastVtx[41]; - ArcFastVtx_42 = arcFastVtx[42]; - ArcFastVtx_43 = arcFastVtx[43]; - ArcFastVtx_44 = arcFastVtx[44]; - ArcFastVtx_45 = arcFastVtx[45]; - ArcFastVtx_46 = arcFastVtx[46]; - ArcFastVtx_47 = arcFastVtx[47]; - } - ArcFastRadiusCutoff = arcFastRadiusCutoff; - if (circleSegmentCounts != default(Span<byte>)) - { - CircleSegmentCounts_0 = circleSegmentCounts[0]; - CircleSegmentCounts_1 = circleSegmentCounts[1]; - CircleSegmentCounts_2 = circleSegmentCounts[2]; - CircleSegmentCounts_3 = circleSegmentCounts[3]; - CircleSegmentCounts_4 = circleSegmentCounts[4]; - CircleSegmentCounts_5 = circleSegmentCounts[5]; - CircleSegmentCounts_6 = circleSegmentCounts[6]; - CircleSegmentCounts_7 = circleSegmentCounts[7]; - CircleSegmentCounts_8 = circleSegmentCounts[8]; - CircleSegmentCounts_9 = circleSegmentCounts[9]; - CircleSegmentCounts_10 = circleSegmentCounts[10]; - CircleSegmentCounts_11 = circleSegmentCounts[11]; - CircleSegmentCounts_12 = circleSegmentCounts[12]; - CircleSegmentCounts_13 = circleSegmentCounts[13]; - CircleSegmentCounts_14 = circleSegmentCounts[14]; - CircleSegmentCounts_15 = circleSegmentCounts[15]; - CircleSegmentCounts_16 = circleSegmentCounts[16]; - CircleSegmentCounts_17 = circleSegmentCounts[17]; - CircleSegmentCounts_18 = circleSegmentCounts[18]; - CircleSegmentCounts_19 = circleSegmentCounts[19]; - CircleSegmentCounts_20 = circleSegmentCounts[20]; - CircleSegmentCounts_21 = circleSegmentCounts[21]; - CircleSegmentCounts_22 = circleSegmentCounts[22]; - CircleSegmentCounts_23 = circleSegmentCounts[23]; - CircleSegmentCounts_24 = circleSegmentCounts[24]; - CircleSegmentCounts_25 = circleSegmentCounts[25]; - CircleSegmentCounts_26 = circleSegmentCounts[26]; - CircleSegmentCounts_27 = circleSegmentCounts[27]; - CircleSegmentCounts_28 = circleSegmentCounts[28]; - CircleSegmentCounts_29 = circleSegmentCounts[29]; - CircleSegmentCounts_30 = circleSegmentCounts[30]; - CircleSegmentCounts_31 = circleSegmentCounts[31]; - CircleSegmentCounts_32 = circleSegmentCounts[32]; - CircleSegmentCounts_33 = circleSegmentCounts[33]; - CircleSegmentCounts_34 = circleSegmentCounts[34]; - CircleSegmentCounts_35 = circleSegmentCounts[35]; - CircleSegmentCounts_36 = circleSegmentCounts[36]; - CircleSegmentCounts_37 = circleSegmentCounts[37]; - CircleSegmentCounts_38 = circleSegmentCounts[38]; - CircleSegmentCounts_39 = circleSegmentCounts[39]; - CircleSegmentCounts_40 = circleSegmentCounts[40]; - CircleSegmentCounts_41 = circleSegmentCounts[41]; - CircleSegmentCounts_42 = circleSegmentCounts[42]; - CircleSegmentCounts_43 = circleSegmentCounts[43]; - CircleSegmentCounts_44 = circleSegmentCounts[44]; - CircleSegmentCounts_45 = circleSegmentCounts[45]; - CircleSegmentCounts_46 = circleSegmentCounts[46]; - CircleSegmentCounts_47 = circleSegmentCounts[47]; - CircleSegmentCounts_48 = circleSegmentCounts[48]; - CircleSegmentCounts_49 = circleSegmentCounts[49]; - CircleSegmentCounts_50 = circleSegmentCounts[50]; - CircleSegmentCounts_51 = circleSegmentCounts[51]; - CircleSegmentCounts_52 = circleSegmentCounts[52]; - CircleSegmentCounts_53 = circleSegmentCounts[53]; - CircleSegmentCounts_54 = circleSegmentCounts[54]; - CircleSegmentCounts_55 = circleSegmentCounts[55]; - CircleSegmentCounts_56 = circleSegmentCounts[56]; - CircleSegmentCounts_57 = circleSegmentCounts[57]; - CircleSegmentCounts_58 = circleSegmentCounts[58]; - CircleSegmentCounts_59 = circleSegmentCounts[59]; - CircleSegmentCounts_60 = circleSegmentCounts[60]; - CircleSegmentCounts_61 = circleSegmentCounts[61]; - CircleSegmentCounts_62 = circleSegmentCounts[62]; - CircleSegmentCounts_63 = circleSegmentCounts[63]; - } - TexUvLines = texUvLines; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector2> ArcFastVtx - - { - get - { - fixed (Vector2* p = &this.ArcFastVtx_0) - { - return new Span<Vector2>(p, 48); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImDrawListSharedData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawListSharedDataPtr : IEquatable<ImDrawListSharedDataPtr> - { - public ImDrawListSharedDataPtr(ImDrawListSharedData* handle) { Handle = handle; } - - public ImDrawListSharedData* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawListSharedDataPtr Null => new ImDrawListSharedDataPtr(null); - - public ImDrawListSharedData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawListSharedDataPtr(ImDrawListSharedData* handle) => new ImDrawListSharedDataPtr(handle); - - public static implicit operator ImDrawListSharedData*(ImDrawListSharedDataPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle == right; - - public static bool operator !=(ImDrawListSharedDataPtr left, ImDrawListSharedData* right) => left.Handle != right; - - public bool Equals(ImDrawListSharedDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawListSharedDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawListSharedDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImTextureID TexIdCommon => ref Unsafe.AsRef<ImTextureID>(&Handle->TexIdCommon); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef<Vector2>(&Handle->TexUvWhitePixel); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontPtr Font => ref Unsafe.AsRef<ImFontPtr>(&Handle->Font); - /// <summary> - /// To be documented. - /// </summary> - public ref float FontSize => ref Unsafe.AsRef<float>(&Handle->FontSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float CurveTessellationTol => ref Unsafe.AsRef<float>(&Handle->CurveTessellationTol); - /// <summary> - /// To be documented. - /// </summary> - public ref float CircleSegmentMaxError => ref Unsafe.AsRef<float>(&Handle->CircleSegmentMaxError); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector4 ClipRectFullscreen => ref Unsafe.AsRef<Vector4>(&Handle->ClipRectFullscreen); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListFlags InitialFlags => ref Unsafe.AsRef<ImDrawListFlags>(&Handle->InitialFlags); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector2> ArcFastVtx - - { - get - { - return new Span<Vector2>(&Handle->ArcFastVtx_0, 48); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref float ArcFastRadiusCutoff => ref Unsafe.AsRef<float>(&Handle->ArcFastRadiusCutoff); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> CircleSegmentCounts - - { - get - { - return new Span<byte>(&Handle->CircleSegmentCounts_0, 64); - } - } - /// <summary> - /// To be documented. - /// </summary> - public Vector4* TexUvLines { get => Handle->TexUvLines; set => Handle->TexUvLines = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs deleted file mode 100644 index 3b3c5f827..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawListSplitter.cs +++ /dev/null @@ -1,298 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawListSplitter - { - /// <summary> - /// To be documented. - /// </summary> - public int Current; - - /// <summary> - /// To be documented. - /// </summary> - public int Count; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImDrawChannel> Channels; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawListSplitter(int current = default, int count = default, ImVector<ImDrawChannel> channels = default) - { - Current = current; - Count = count; - Channels = channels; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearFreeMemory() - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGui.ClearFreeMemoryNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Merge(ImDrawListPtr drawList) - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGui.MergeNative(@this, drawList); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Merge(ref ImDrawList drawList) - { - fixed (ImDrawListSplitter* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.MergeNative(@this, (ImDrawList*)pdrawList); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGui.SetCurrentChannelNative(@this, drawList, channelIdx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawListSplitter* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.SetCurrentChannelNative(@this, (ImDrawList*)pdrawList, channelIdx); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Split(ImDrawListPtr drawList, int count) - { - fixed (ImDrawListSplitter* @this = &this) - { - ImGui.SplitNative(@this, drawList, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Split(ref ImDrawList drawList, int count) - { - fixed (ImDrawListSplitter* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.SplitNative(@this, (ImDrawList*)pdrawList, count); - } - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawListSplitterPtr : IEquatable<ImDrawListSplitterPtr> - { - public ImDrawListSplitterPtr(ImDrawListSplitter* handle) { Handle = handle; } - - public ImDrawListSplitter* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawListSplitterPtr Null => new ImDrawListSplitterPtr(null); - - public ImDrawListSplitter this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawListSplitterPtr(ImDrawListSplitter* handle) => new ImDrawListSplitterPtr(handle); - - public static implicit operator ImDrawListSplitter*(ImDrawListSplitterPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitterPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle == right; - - public static bool operator !=(ImDrawListSplitterPtr left, ImDrawListSplitter* right) => left.Handle != right; - - public bool Equals(ImDrawListSplitterPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawListSplitterPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawListSplitterPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref int Current => ref Unsafe.AsRef<int>(&Handle->Current); - /// <summary> - /// To be documented. - /// </summary> - public ref int Count => ref Unsafe.AsRef<int>(&Handle->Count); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImDrawChannel> Channels => ref Unsafe.AsRef<ImVector<ImDrawChannel>>(&Handle->Channels); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - ImGui.ClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearFreeMemory() - { - ImGui.ClearFreeMemoryNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Merge(ImDrawListPtr drawList) - { - ImGui.MergeNative(Handle, drawList); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Merge(ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.MergeNative(Handle, (ImDrawList*)pdrawList); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetCurrentChannel(ImDrawListPtr drawList, int channelIdx) - { - ImGui.SetCurrentChannelNative(Handle, drawList, channelIdx); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetCurrentChannel(ref ImDrawList drawList, int channelIdx) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.SetCurrentChannelNative(Handle, (ImDrawList*)pdrawList, channelIdx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Split(ImDrawListPtr drawList, int count) - { - ImGui.SplitNative(Handle, drawList, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Split(ref ImDrawList drawList, int count) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.SplitNative(Handle, (ImDrawList*)pdrawList, count); - } - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawVert.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawVert.cs deleted file mode 100644 index cb482eb52..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImDrawVert.cs +++ /dev/null @@ -1,109 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImDrawVert - { - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Pos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Uv; - - /// <summary> - /// To be documented. - /// </summary> - public uint Col; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawVert(Vector2 pos = default, Vector2 uv = default, uint col = default) - { - Pos = pos; - Uv = uv; - Col = col; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImDrawVertPtr : IEquatable<ImDrawVertPtr> - { - public ImDrawVertPtr(ImDrawVert* handle) { Handle = handle; } - - public ImDrawVert* Handle; - - public bool IsNull => Handle == null; - - public static ImDrawVertPtr Null => new ImDrawVertPtr(null); - - public ImDrawVert this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImDrawVertPtr(ImDrawVert* handle) => new ImDrawVertPtr(handle); - - public static implicit operator ImDrawVert*(ImDrawVertPtr handle) => handle.Handle; - - public static bool operator ==(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImDrawVertPtr left, ImDrawVertPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImDrawVertPtr left, ImDrawVert* right) => left.Handle == right; - - public static bool operator !=(ImDrawVertPtr left, ImDrawVert* right) => left.Handle != right; - - public bool Equals(ImDrawVertPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImDrawVertPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImDrawVertPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Uv => ref Unsafe.AsRef<Vector2>(&Handle->Uv); - /// <summary> - /// To be documented. - /// </summary> - public ref uint Col => ref Unsafe.AsRef<uint>(&Handle->Col); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs deleted file mode 100644 index 4f6afb82c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFont.cs +++ /dev/null @@ -1,8629 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFont - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontGlyphHotData> IndexedHotData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<float> FrequentKerningPairs; - - /// <summary> - /// To be documented. - /// </summary> - public float FontSize; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ushort> IndexLookup; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontGlyph> Glyphs; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyph* FallbackGlyph; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyphHotData* FallbackHotData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontKerningPair> KerningPairs; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlas* ContainerAtlas; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontConfig* ConfigData; - - /// <summary> - /// To be documented. - /// </summary> - public short ConfigDataCount; - - /// <summary> - /// To be documented. - /// </summary> - public ushort FallbackChar; - - /// <summary> - /// To be documented. - /// </summary> - public ushort EllipsisChar; - - /// <summary> - /// To be documented. - /// </summary> - public ushort DotChar; - - /// <summary> - /// To be documented. - /// </summary> - public byte DirtyLookupTables; - - /// <summary> - /// To be documented. - /// </summary> - public float Scale; - - /// <summary> - /// To be documented. - /// </summary> - public float Ascent; - - /// <summary> - /// To be documented. - /// </summary> - public float Descent; - - /// <summary> - /// To be documented. - /// </summary> - public int MetricsTotalSurface; - - /// <summary> - /// To be documented. - /// </summary> - public byte Used4kPagesMap_0; - public byte Used4kPagesMap_1; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFont(ImVector<ImFontGlyphHotData> indexedHotData = default, ImVector<float> frequentKerningPairs = default, float fontSize = default, ImVector<ushort> indexLookup = default, ImVector<ImFontGlyph> glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector<ImFontKerningPair> kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, byte* used4KPagesMap = default) - { - IndexedHotData = indexedHotData; - FrequentKerningPairs = frequentKerningPairs; - FontSize = fontSize; - IndexLookup = indexLookup; - Glyphs = glyphs; - FallbackGlyph = fallbackGlyph; - FallbackHotData = fallbackHotData; - KerningPairs = kerningPairs; - ContainerAtlas = containerAtlas; - ConfigData = configData; - ConfigDataCount = configDataCount; - FallbackChar = fallbackChar; - EllipsisChar = ellipsisChar; - DotChar = dotChar; - DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; - Scale = scale; - Ascent = ascent; - Descent = descent; - MetricsTotalSurface = metricsTotalSurface; - if (used4KPagesMap != default(byte*)) - { - Used4kPagesMap_0 = used4KPagesMap[0]; - Used4kPagesMap_1 = used4KPagesMap[1]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFont(ImVector<ImFontGlyphHotData> indexedHotData = default, ImVector<float> frequentKerningPairs = default, float fontSize = default, ImVector<ushort> indexLookup = default, ImVector<ImFontGlyph> glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontGlyphHotData* fallbackHotData = default, ImVector<ImFontKerningPair> kerningPairs = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, ushort dotChar = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, Span<byte> used4KPagesMap = default) - { - IndexedHotData = indexedHotData; - FrequentKerningPairs = frequentKerningPairs; - FontSize = fontSize; - IndexLookup = indexLookup; - Glyphs = glyphs; - FallbackGlyph = fallbackGlyph; - FallbackHotData = fallbackHotData; - KerningPairs = kerningPairs; - ContainerAtlas = containerAtlas; - ConfigData = configData; - ConfigDataCount = configDataCount; - FallbackChar = fallbackChar; - EllipsisChar = ellipsisChar; - DotChar = dotChar; - DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; - Scale = scale; - Ascent = ascent; - Descent = descent; - MetricsTotalSurface = metricsTotalSurface; - if (used4KPagesMap != default(Span<byte>)) - { - Used4kPagesMap_0 = used4KPagesMap[0]; - Used4kPagesMap_1 = used4KPagesMap[1]; - } - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddGlyph(ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* @this = &this) - { - ImGui.AddGlyphNative(@this, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddGlyph(ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFont* @this = &this) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - ImGui.AddGlyphNative(@this, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) - { - fixed (ImFont* @this = &this) - { - ImGui.AddKerningPairNative(@this, leftC, rightC, distanceAdjustment); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) - { - fixed (ImFont* @this = &this) - { - ImGui.AddRemapCharNative(@this, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRemapChar(ushort dst, ushort src) - { - fixed (ImFont* @this = &this) - { - ImGui.AddRemapCharNative(@this, dst, src, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildLookupTable() - { - fixed (ImFont* @this = &this) - { - ImGui.BuildLookupTableNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, textEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, textEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearOutputData() - { - fixed (ImFont* @this = &this) - { - ImGui.ClearOutputDataNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImFont* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyph* FindGlyph(ushort c) - { - fixed (ImFont* @this = &this) - { - ImFontGlyph* ret = ImGui.FindGlyphNative(@this, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) - { - fixed (ImFont* @this = &this) - { - ImFontGlyph* ret = ImGui.FindGlyphNoFallbackNative(@this, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetCharAdvance(ushort c) - { - fixed (ImFont* @this = &this) - { - float ret = ImGui.GetCharAdvanceNative(@this, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetDebugName() - { - fixed (ImFont* @this = &this) - { - byte* ret = ImGui.GetDebugNameNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetDebugNameS() - { - fixed (ImFont* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.GetDebugNameNative(@this)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) - { - fixed (ImFont* @this = &this) - { - float ret = ImGui.GetDistanceAdjustmentForPairNative(@this, leftC, rightC); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) - { - fixed (ImFont* @this = &this) - { - float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(@this, leftC, rightCInfo); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFont* @this = &this) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(@this, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GrowIndex(int newSize) - { - fixed (ImFont* @this = &this) - { - ImGui.GrowIndexNative(@this, newSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) - { - fixed (ImFont* @this = &this) - { - byte ret = ImGui.IsGlyphRangeUnusedNative(@this, cBegin, cLast); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLoaded() - { - fixed (ImFont* @this = &this) - { - byte ret = ImGui.IsLoadedNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* @this = &this) - { - ImGui.RenderCharNative(@this, drawList, size, pos, col, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderCharNative(@this, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImFont* @this = &this) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetGlyphVisible(ushort c, bool visible) - { - fixed (ImFont* @this = &this) - { - ImGui.SetGlyphVisibleNative(@this, c, visible ? (byte)1 : (byte)0); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontPtr : IEquatable<ImFontPtr> - { - public ImFontPtr(ImFont* handle) { Handle = handle; } - - public ImFont* Handle; - - public bool IsNull => Handle == null; - - public static ImFontPtr Null => new ImFontPtr(null); - - public ImFont this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontPtr(ImFont* handle) => new ImFontPtr(handle); - - public static implicit operator ImFont*(ImFontPtr handle) => handle.Handle; - - public static bool operator ==(ImFontPtr left, ImFontPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontPtr left, ImFontPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontPtr left, ImFont* right) => left.Handle == right; - - public static bool operator !=(ImFontPtr left, ImFont* right) => left.Handle != right; - - public bool Equals(ImFontPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontGlyphHotData> IndexedHotData => ref Unsafe.AsRef<ImVector<ImFontGlyphHotData>>(&Handle->IndexedHotData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<float> FrequentKerningPairs => ref Unsafe.AsRef<ImVector<float>>(&Handle->FrequentKerningPairs); - /// <summary> - /// To be documented. - /// </summary> - public ref float FontSize => ref Unsafe.AsRef<float>(&Handle->FontSize); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ushort> IndexLookup => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->IndexLookup); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontGlyph> Glyphs => ref Unsafe.AsRef<ImVector<ImFontGlyph>>(&Handle->Glyphs); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontGlyphPtr FallbackGlyph => ref Unsafe.AsRef<ImFontGlyphPtr>(&Handle->FallbackGlyph); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontGlyphHotDataPtr FallbackHotData => ref Unsafe.AsRef<ImFontGlyphHotDataPtr>(&Handle->FallbackHotData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontKerningPair> KerningPairs => ref Unsafe.AsRef<ImVector<ImFontKerningPair>>(&Handle->KerningPairs); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontAtlasPtr ContainerAtlas => ref Unsafe.AsRef<ImFontAtlasPtr>(&Handle->ContainerAtlas); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontConfigPtr ConfigData => ref Unsafe.AsRef<ImFontConfigPtr>(&Handle->ConfigData); - /// <summary> - /// To be documented. - /// </summary> - public ref short ConfigDataCount => ref Unsafe.AsRef<short>(&Handle->ConfigDataCount); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort FallbackChar => ref Unsafe.AsRef<ushort>(&Handle->FallbackChar); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort EllipsisChar => ref Unsafe.AsRef<ushort>(&Handle->EllipsisChar); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort DotChar => ref Unsafe.AsRef<ushort>(&Handle->DotChar); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DirtyLookupTables => ref Unsafe.AsRef<bool>(&Handle->DirtyLookupTables); - /// <summary> - /// To be documented. - /// </summary> - public ref float Scale => ref Unsafe.AsRef<float>(&Handle->Scale); - /// <summary> - /// To be documented. - /// </summary> - public ref float Ascent => ref Unsafe.AsRef<float>(&Handle->Ascent); - /// <summary> - /// To be documented. - /// </summary> - public ref float Descent => ref Unsafe.AsRef<float>(&Handle->Descent); - /// <summary> - /// To be documented. - /// </summary> - public ref int MetricsTotalSurface => ref Unsafe.AsRef<int>(&Handle->MetricsTotalSurface); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> Used4kPagesMap - - { - get - { - return new Span<byte>(&Handle->Used4kPagesMap_0, 2); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddGlyph(ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - ImGui.AddGlyphNative(Handle, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddGlyph(ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) - { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - ImGui.AddGlyphNative(Handle, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment) - { - ImGui.AddKerningPairNative(Handle, leftC, rightC, distanceAdjustment); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst) - { - ImGui.AddRemapCharNative(Handle, dst, src, overwriteDst ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRemapChar(ushort dst, ushort src) - { - ImGui.AddRemapCharNative(Handle, dst, src, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildLookupTable() - { - ImGui.BuildLookupTableNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, byte* textEnd, float wrapWidth) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, text, textEnd, wrapWidth); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, byte* textEnd, float wrapWidth) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, text, textEnd, wrapWidth)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, (byte*)ptext, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* CalcWordWrapPositionA(float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string CalcWordWrapPositionAS(float scale, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(Handle, scale, pStr0, (byte*)ptextEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearOutputData() - { - ImGui.ClearOutputDataNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyph* FindGlyph(ushort c) - { - ImFontGlyph* ret = ImGui.FindGlyphNative(Handle, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c) - { - ImFontGlyph* ret = ImGui.FindGlyphNoFallbackNative(Handle, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetCharAdvance(ushort c) - { - float ret = ImGui.GetCharAdvanceNative(Handle, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetDebugName() - { - byte* ret = ImGui.GetDebugNameNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetDebugNameS() - { - string ret = Utils.DecodeStringUTF8(ImGui.GetDebugNameNative(Handle)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC) - { - float ret = ImGui.GetDistanceAdjustmentForPairNative(Handle, leftC, rightC); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo) - { - float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(Handle, leftC, rightCInfo); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo) - { - fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo) - { - float ret = ImGui.GetDistanceAdjustmentForPairFromHotDataNative(Handle, leftC, (ImFontGlyphHotData*)prightCInfo); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GrowIndex(int newSize) - { - ImGui.GrowIndexNative(Handle, newSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast) - { - byte ret = ImGui.IsGlyphRangeUnusedNative(Handle, cBegin, cLast); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLoaded() - { - byte ret = ImGui.IsLoadedNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c) - { - ImGui.RenderCharNative(Handle, drawList, size, pos, col, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderCharNative(Handle, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, drawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ReadOnlySpan<byte> textBegin, string textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ref byte textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RenderText(ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, ReadOnlySpan<byte> textEnd, bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.RenderTextNative(Handle, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetGlyphVisible(ushort c, bool visible) - { - ImGui.SetGlyphVisibleNative(Handle, c, visible ? (byte)1 : (byte)0); - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontPtrPtr : IEquatable<ImFontPtrPtr> - { - public ImFontPtrPtr(ImFont** handle) { Handle = handle; } - - public ImFont** Handle; - - public bool IsNull => Handle == null; - - public static ImFontPtrPtr Null => new ImFontPtrPtr(null); - - public ImFont* this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontPtrPtr(ImFont** handle) => new ImFontPtrPtr(handle); - - public static implicit operator ImFont**(ImFontPtrPtr handle) => handle.Handle; - - public static bool operator ==(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontPtrPtr left, ImFontPtrPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontPtrPtr left, ImFont** right) => left.Handle == right; - - public static bool operator !=(ImFontPtrPtr left, ImFont** right) => left.Handle != right; - - public bool Equals(ImFontPtrPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontPtrPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs deleted file mode 100644 index faf7bc68c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlas.cs +++ /dev/null @@ -1,6898 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontAtlas - { - /// <summary> - /// To be documented. - /// </summary> - public ImFontAtlasFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontAtlasTexture> Textures; - - /// <summary> - /// To be documented. - /// </summary> - public int TexDesiredWidth; - - /// <summary> - /// To be documented. - /// </summary> - public int TexDesiredHeight; - - /// <summary> - /// To be documented. - /// </summary> - public int TexGlyphPadding; - - /// <summary> - /// To be documented. - /// </summary> - public byte Locked; - - /// <summary> - /// To be documented. - /// </summary> - public byte TexReady; - - /// <summary> - /// To be documented. - /// </summary> - public byte TexPixelsUseColors; - - /// <summary> - /// To be documented. - /// </summary> - public int TexWidth; - - /// <summary> - /// To be documented. - /// </summary> - public int TexHeight; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 TexUvScale; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 TexUvWhitePixel; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontPtr> Fonts; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontAtlasCustomRect> CustomRects; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontConfig> ConfigData; - - /// <summary> - /// To be documented. - /// </summary> - public Vector4 TexUvLines_0; - public Vector4 TexUvLines_1; - public Vector4 TexUvLines_2; - public Vector4 TexUvLines_3; - public Vector4 TexUvLines_4; - public Vector4 TexUvLines_5; - public Vector4 TexUvLines_6; - public Vector4 TexUvLines_7; - public Vector4 TexUvLines_8; - public Vector4 TexUvLines_9; - public Vector4 TexUvLines_10; - public Vector4 TexUvLines_11; - public Vector4 TexUvLines_12; - public Vector4 TexUvLines_13; - public Vector4 TexUvLines_14; - public Vector4 TexUvLines_15; - public Vector4 TexUvLines_16; - public Vector4 TexUvLines_17; - public Vector4 TexUvLines_18; - public Vector4 TexUvLines_19; - public Vector4 TexUvLines_20; - public Vector4 TexUvLines_21; - public Vector4 TexUvLines_22; - public Vector4 TexUvLines_23; - public Vector4 TexUvLines_24; - public Vector4 TexUvLines_25; - public Vector4 TexUvLines_26; - public Vector4 TexUvLines_27; - public Vector4 TexUvLines_28; - public Vector4 TexUvLines_29; - public Vector4 TexUvLines_30; - public Vector4 TexUvLines_31; - public Vector4 TexUvLines_32; - public Vector4 TexUvLines_33; - public Vector4 TexUvLines_34; - public Vector4 TexUvLines_35; - public Vector4 TexUvLines_36; - public Vector4 TexUvLines_37; - public Vector4 TexUvLines_38; - public Vector4 TexUvLines_39; - public Vector4 TexUvLines_40; - public Vector4 TexUvLines_41; - public Vector4 TexUvLines_42; - public Vector4 TexUvLines_43; - public Vector4 TexUvLines_44; - public Vector4 TexUvLines_45; - public Vector4 TexUvLines_46; - public Vector4 TexUvLines_47; - public Vector4 TexUvLines_48; - public Vector4 TexUvLines_49; - public Vector4 TexUvLines_50; - public Vector4 TexUvLines_51; - public Vector4 TexUvLines_52; - public Vector4 TexUvLines_53; - public Vector4 TexUvLines_54; - public Vector4 TexUvLines_55; - public Vector4 TexUvLines_56; - public Vector4 TexUvLines_57; - public Vector4 TexUvLines_58; - public Vector4 TexUvLines_59; - public Vector4 TexUvLines_60; - public Vector4 TexUvLines_61; - public Vector4 TexUvLines_62; - public Vector4 TexUvLines_63; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontBuilderIO* FontBuilderIO; - - /// <summary> - /// To be documented. - /// </summary> - public uint FontBuilderFlags; - - /// <summary> - /// To be documented. - /// </summary> - public int TextureIndexCommon; - - /// <summary> - /// To be documented. - /// </summary> - public int PackIdCommon; - - /// <summary> - /// To be documented. - /// </summary> - public ImFontAtlasCustomRect RectMouseCursors; - - /// <summary> - /// To be documented. - /// </summary> - public ImFontAtlasCustomRect RectLines; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector<ImFontAtlasTexture> textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector<ImFontPtr> fonts = default, ImVector<ImFontAtlasCustomRect> customRects = default, ImVector<ImFontConfig> configData = default, Vector4* texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) - { - Flags = flags; - Textures = textures; - TexDesiredWidth = texDesiredWidth; - TexDesiredHeight = texDesiredHeight; - TexGlyphPadding = texGlyphPadding; - Locked = locked ? (byte)1 : (byte)0; - TexReady = texReady ? (byte)1 : (byte)0; - TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; - TexWidth = texWidth; - TexHeight = texHeight; - TexUvScale = texUvScale; - TexUvWhitePixel = texUvWhitePixel; - Fonts = fonts; - CustomRects = customRects; - ConfigData = configData; - if (texUvLines != default(Vector4*)) - { - TexUvLines_0 = texUvLines[0]; - TexUvLines_1 = texUvLines[1]; - TexUvLines_2 = texUvLines[2]; - TexUvLines_3 = texUvLines[3]; - TexUvLines_4 = texUvLines[4]; - TexUvLines_5 = texUvLines[5]; - TexUvLines_6 = texUvLines[6]; - TexUvLines_7 = texUvLines[7]; - TexUvLines_8 = texUvLines[8]; - TexUvLines_9 = texUvLines[9]; - TexUvLines_10 = texUvLines[10]; - TexUvLines_11 = texUvLines[11]; - TexUvLines_12 = texUvLines[12]; - TexUvLines_13 = texUvLines[13]; - TexUvLines_14 = texUvLines[14]; - TexUvLines_15 = texUvLines[15]; - TexUvLines_16 = texUvLines[16]; - TexUvLines_17 = texUvLines[17]; - TexUvLines_18 = texUvLines[18]; - TexUvLines_19 = texUvLines[19]; - TexUvLines_20 = texUvLines[20]; - TexUvLines_21 = texUvLines[21]; - TexUvLines_22 = texUvLines[22]; - TexUvLines_23 = texUvLines[23]; - TexUvLines_24 = texUvLines[24]; - TexUvLines_25 = texUvLines[25]; - TexUvLines_26 = texUvLines[26]; - TexUvLines_27 = texUvLines[27]; - TexUvLines_28 = texUvLines[28]; - TexUvLines_29 = texUvLines[29]; - TexUvLines_30 = texUvLines[30]; - TexUvLines_31 = texUvLines[31]; - TexUvLines_32 = texUvLines[32]; - TexUvLines_33 = texUvLines[33]; - TexUvLines_34 = texUvLines[34]; - TexUvLines_35 = texUvLines[35]; - TexUvLines_36 = texUvLines[36]; - TexUvLines_37 = texUvLines[37]; - TexUvLines_38 = texUvLines[38]; - TexUvLines_39 = texUvLines[39]; - TexUvLines_40 = texUvLines[40]; - TexUvLines_41 = texUvLines[41]; - TexUvLines_42 = texUvLines[42]; - TexUvLines_43 = texUvLines[43]; - TexUvLines_44 = texUvLines[44]; - TexUvLines_45 = texUvLines[45]; - TexUvLines_46 = texUvLines[46]; - TexUvLines_47 = texUvLines[47]; - TexUvLines_48 = texUvLines[48]; - TexUvLines_49 = texUvLines[49]; - TexUvLines_50 = texUvLines[50]; - TexUvLines_51 = texUvLines[51]; - TexUvLines_52 = texUvLines[52]; - TexUvLines_53 = texUvLines[53]; - TexUvLines_54 = texUvLines[54]; - TexUvLines_55 = texUvLines[55]; - TexUvLines_56 = texUvLines[56]; - TexUvLines_57 = texUvLines[57]; - TexUvLines_58 = texUvLines[58]; - TexUvLines_59 = texUvLines[59]; - TexUvLines_60 = texUvLines[60]; - TexUvLines_61 = texUvLines[61]; - TexUvLines_62 = texUvLines[62]; - TexUvLines_63 = texUvLines[63]; - } - FontBuilderIO = fontBuilderIo; - FontBuilderFlags = fontBuilderFlags; - TextureIndexCommon = textureIndexCommon; - PackIdCommon = packIdCommon; - RectMouseCursors = rectMouseCursors; - RectLines = rectLines; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlas(ImFontAtlasFlags flags = default, ImVector<ImFontAtlasTexture> textures = default, int texDesiredWidth = default, int texDesiredHeight = default, int texGlyphPadding = default, bool locked = default, bool texReady = default, bool texPixelsUseColors = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVector<ImFontPtr> fonts = default, ImVector<ImFontAtlasCustomRect> customRects = default, ImVector<ImFontConfig> configData = default, Span<Vector4> texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int textureIndexCommon = default, int packIdCommon = default, ImFontAtlasCustomRect rectMouseCursors = default, ImFontAtlasCustomRect rectLines = default) - { - Flags = flags; - Textures = textures; - TexDesiredWidth = texDesiredWidth; - TexDesiredHeight = texDesiredHeight; - TexGlyphPadding = texGlyphPadding; - Locked = locked ? (byte)1 : (byte)0; - TexReady = texReady ? (byte)1 : (byte)0; - TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; - TexWidth = texWidth; - TexHeight = texHeight; - TexUvScale = texUvScale; - TexUvWhitePixel = texUvWhitePixel; - Fonts = fonts; - CustomRects = customRects; - ConfigData = configData; - if (texUvLines != default(Span<Vector4>)) - { - TexUvLines_0 = texUvLines[0]; - TexUvLines_1 = texUvLines[1]; - TexUvLines_2 = texUvLines[2]; - TexUvLines_3 = texUvLines[3]; - TexUvLines_4 = texUvLines[4]; - TexUvLines_5 = texUvLines[5]; - TexUvLines_6 = texUvLines[6]; - TexUvLines_7 = texUvLines[7]; - TexUvLines_8 = texUvLines[8]; - TexUvLines_9 = texUvLines[9]; - TexUvLines_10 = texUvLines[10]; - TexUvLines_11 = texUvLines[11]; - TexUvLines_12 = texUvLines[12]; - TexUvLines_13 = texUvLines[13]; - TexUvLines_14 = texUvLines[14]; - TexUvLines_15 = texUvLines[15]; - TexUvLines_16 = texUvLines[16]; - TexUvLines_17 = texUvLines[17]; - TexUvLines_18 = texUvLines[18]; - TexUvLines_19 = texUvLines[19]; - TexUvLines_20 = texUvLines[20]; - TexUvLines_21 = texUvLines[21]; - TexUvLines_22 = texUvLines[22]; - TexUvLines_23 = texUvLines[23]; - TexUvLines_24 = texUvLines[24]; - TexUvLines_25 = texUvLines[25]; - TexUvLines_26 = texUvLines[26]; - TexUvLines_27 = texUvLines[27]; - TexUvLines_28 = texUvLines[28]; - TexUvLines_29 = texUvLines[29]; - TexUvLines_30 = texUvLines[30]; - TexUvLines_31 = texUvLines[31]; - TexUvLines_32 = texUvLines[32]; - TexUvLines_33 = texUvLines[33]; - TexUvLines_34 = texUvLines[34]; - TexUvLines_35 = texUvLines[35]; - TexUvLines_36 = texUvLines[36]; - TexUvLines_37 = texUvLines[37]; - TexUvLines_38 = texUvLines[38]; - TexUvLines_39 = texUvLines[39]; - TexUvLines_40 = texUvLines[40]; - TexUvLines_41 = texUvLines[41]; - TexUvLines_42 = texUvLines[42]; - TexUvLines_43 = texUvLines[43]; - TexUvLines_44 = texUvLines[44]; - TexUvLines_45 = texUvLines[45]; - TexUvLines_46 = texUvLines[46]; - TexUvLines_47 = texUvLines[47]; - TexUvLines_48 = texUvLines[48]; - TexUvLines_49 = texUvLines[49]; - TexUvLines_50 = texUvLines[50]; - TexUvLines_51 = texUvLines[51]; - TexUvLines_52 = texUvLines[52]; - TexUvLines_53 = texUvLines[53]; - TexUvLines_54 = texUvLines[54]; - TexUvLines_55 = texUvLines[55]; - TexUvLines_56 = texUvLines[56]; - TexUvLines_57 = texUvLines[57]; - TexUvLines_58 = texUvLines[58]; - TexUvLines_59 = texUvLines[59]; - TexUvLines_60 = texUvLines[60]; - TexUvLines_61 = texUvLines[61]; - TexUvLines_62 = texUvLines[62]; - TexUvLines_63 = texUvLines[63]; - } - FontBuilderIO = fontBuilderIo; - FontBuilderFlags = fontBuilderFlags; - TextureIndexCommon = textureIndexCommon; - PackIdCommon = packIdCommon; - RectMouseCursors = rectMouseCursors; - RectLines = rectLines; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> TexUvLines - - { - get - { - fixed (Vector4* p = &this.TexUvLines_0) - { - return new Span<Vector4>(p, 64); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* @this = &this) - { - int ret = ImGui.AddCustomRectFontGlyphNative(@this, font, id, width, height, advanceX, offset); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* @this = &this) - { - int ret = ImGui.AddCustomRectFontGlyphNative(@this, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGui.AddCustomRectFontGlyphNative(@this, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGui.AddCustomRectFontGlyphNative(@this, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectRegular(int width, int height) - { - fixed (ImFontAtlas* @this = &this) - { - int ret = ImGui.AddCustomRectRegularNative(@this, width, height); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontNative(@this, fontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontNative(@this, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontDefaultNative(@this, fontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontDefault() - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontDefaultNative(@this, (ImFontConfig*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontDefaultNative(@this, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Build() - { - fixed (ImFontAtlas* @this = &this) - { - byte ret = ImGui.BuildNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.CalcCustomRectUVNative(@this, rect, outUvMin, outUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGui.CalcCustomRectUVNative(@this, rect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(@this, rect, outUvMin, (Vector2*)poutUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(@this, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearFonts() - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.ClearFontsNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearInputData() - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.ClearInputDataNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearTexData() - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.ClearTexDataNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearTexID(ImTextureID nullId) - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.ClearTexIDNative(@this, nullId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) - { - fixed (ImFontAtlas* @this = &this) - { - ImFontAtlasCustomRect* ret = ImGui.GetCustomRectByIndexNative(@this, index); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesChineseFull() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesChineseFullNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesChineseSimplifiedCommonNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesCyrillic() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesCyrillicNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesDefault() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesDefaultNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesJapanese() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesJapaneseNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesKorean() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesKoreanNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesThai() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesThaiNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesVietnamese() - { - fixed (ImFontAtlas* @this = &this) - { - ushort* ret = ImGui.GetGlyphRangesVietnameseNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (ImFontAtlas* @this = &this) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(@this, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsBuilt() - { - fixed (ImFontAtlas* @this = &this) - { - byte ret = ImGui.IsBuiltNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTexID(int textureIndex, ImTextureID id) - { - fixed (ImFontAtlas* @this = &this) - { - ImGui.SetTexIDNative(@this, textureIndex, id); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontAtlasPtr : IEquatable<ImFontAtlasPtr> - { - public ImFontAtlasPtr(ImFontAtlas* handle) { Handle = handle; } - - public ImFontAtlas* Handle; - - public bool IsNull => Handle == null; - - public static ImFontAtlasPtr Null => new ImFontAtlasPtr(null); - - public ImFontAtlas this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontAtlasPtr(ImFontAtlas* handle) => new ImFontAtlasPtr(handle); - - public static implicit operator ImFontAtlas*(ImFontAtlasPtr handle) => handle.Handle; - - public static bool operator ==(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontAtlasPtr left, ImFontAtlasPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle == right; - - public static bool operator !=(ImFontAtlasPtr left, ImFontAtlas* right) => left.Handle != right; - - public bool Equals(ImFontAtlasPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontAtlasPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontAtlasPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontAtlasFlags Flags => ref Unsafe.AsRef<ImFontAtlasFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontAtlasTexture> Textures => ref Unsafe.AsRef<ImVector<ImFontAtlasTexture>>(&Handle->Textures); - /// <summary> - /// To be documented. - /// </summary> - public ref int TexDesiredWidth => ref Unsafe.AsRef<int>(&Handle->TexDesiredWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref int TexDesiredHeight => ref Unsafe.AsRef<int>(&Handle->TexDesiredHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref int TexGlyphPadding => ref Unsafe.AsRef<int>(&Handle->TexGlyphPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Locked => ref Unsafe.AsRef<bool>(&Handle->Locked); - /// <summary> - /// To be documented. - /// </summary> - public ref bool TexReady => ref Unsafe.AsRef<bool>(&Handle->TexReady); - /// <summary> - /// To be documented. - /// </summary> - public ref bool TexPixelsUseColors => ref Unsafe.AsRef<bool>(&Handle->TexPixelsUseColors); - /// <summary> - /// To be documented. - /// </summary> - public ref int TexWidth => ref Unsafe.AsRef<int>(&Handle->TexWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref int TexHeight => ref Unsafe.AsRef<int>(&Handle->TexHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 TexUvScale => ref Unsafe.AsRef<Vector2>(&Handle->TexUvScale); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 TexUvWhitePixel => ref Unsafe.AsRef<Vector2>(&Handle->TexUvWhitePixel); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontPtr> Fonts => ref Unsafe.AsRef<ImVector<ImFontPtr>>(&Handle->Fonts); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontAtlasCustomRect> CustomRects => ref Unsafe.AsRef<ImVector<ImFontAtlasCustomRect>>(&Handle->CustomRects); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontConfig> ConfigData => ref Unsafe.AsRef<ImVector<ImFontConfig>>(&Handle->ConfigData); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> TexUvLines - - { - get - { - return new Span<Vector4>(&Handle->TexUvLines_0, 64); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontBuilderIOPtr FontBuilderIO => ref Unsafe.AsRef<ImFontBuilderIOPtr>(&Handle->FontBuilderIO); - /// <summary> - /// To be documented. - /// </summary> - public ref uint FontBuilderFlags => ref Unsafe.AsRef<uint>(&Handle->FontBuilderFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref int TextureIndexCommon => ref Unsafe.AsRef<int>(&Handle->TextureIndexCommon); - /// <summary> - /// To be documented. - /// </summary> - public ref int PackIdCommon => ref Unsafe.AsRef<int>(&Handle->PackIdCommon); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontAtlasCustomRect RectMouseCursors => ref Unsafe.AsRef<ImFontAtlasCustomRect>(&Handle->RectMouseCursors); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontAtlasCustomRect RectLines => ref Unsafe.AsRef<ImFontAtlasCustomRect>(&Handle->RectLines); - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - int ret = ImGui.AddCustomRectFontGlyphNative(Handle, font, id, width, height, advanceX, offset); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ImFontPtr font, ushort id, int width, int height, float advanceX) - { - int ret = ImGui.AddCustomRectFontGlyphNative(Handle, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX, Vector2 offset) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGui.AddCustomRectFontGlyphNative(Handle, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectFontGlyph(ref ImFont font, ushort id, int width, int height, float advanceX) - { - fixed (ImFont* pfont = &font) - { - int ret = ImGui.AddCustomRectFontGlyphNative(Handle, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int AddCustomRectRegular(int width, int height) - { - int ret = ImGui.AddCustomRectRegularNative(Handle, width, height); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFont(ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGui.AddFontNative(Handle, fontCfg); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFont(ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontNative(Handle, (ImFontConfig*)pfontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontDefault(ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGui.AddFontDefaultNative(Handle, fontCfg); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontDefault() - { - ImFontPtr ret = ImGui.AddFontDefaultNative(Handle, (ImFontConfig*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontDefault(ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontDefaultNative(Handle, (ImFontConfig*)pfontCfg); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ImFontConfig* fontCfg) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ImFontConfig* fontCfg) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ImFontConfig* fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(byte* filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, filename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ref byte filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(ReadOnlySpan<byte> filename, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pfilename = filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromFileTTF(string filename, float sizePixels, ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromFileTTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, fontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(ReadOnlySpan<byte> compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (byte* pcompressedFontDatabase85 = compressedFontDatabase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedBase85TTF(string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDatabase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(Handle, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryCompressedTTF(void* compressedFontData, int compressedFontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryCompressedTTFNative(Handle, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ImFontConfig* fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, fontCfg, (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (ushort*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ushort* glyphRanges) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg, ushort* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontPtr AddFontFromMemoryTTF(void* fontData, int fontSize, float sizePixels, ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFontPtr ret = ImGui.AddFontFromMemoryTTFNative(Handle, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (ushort*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Build() - { - byte ret = ImGui.BuildNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) - { - ImGui.CalcCustomRectUVNative(Handle, rect, outUvMin, outUvMax); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGui.CalcCustomRectUVNative(Handle, rect, (Vector2*)poutUvMin, outUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(Handle, rect, outUvMin, (Vector2*)poutUvMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(Handle, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void CalcCustomRectUV(ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - ImGui.CalcCustomRectUVNative(Handle, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - ImGui.ClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearFonts() - { - ImGui.ClearFontsNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearInputData() - { - ImGui.ClearInputDataNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearTexData() - { - ImGui.ClearTexDataNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearTexID(ImTextureID nullId) - { - ImGui.ClearTexIDNative(Handle, nullId); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex(int index) - { - ImFontAtlasCustomRect* ret = ImGui.GetCustomRectByIndexNative(Handle, index); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesChineseFull() - { - ushort* ret = ImGui.GetGlyphRangesChineseFullNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesChineseSimplifiedCommon() - { - ushort* ret = ImGui.GetGlyphRangesChineseSimplifiedCommonNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesCyrillic() - { - ushort* ret = ImGui.GetGlyphRangesCyrillicNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesDefault() - { - ushort* ret = ImGui.GetGlyphRangesDefaultNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesJapanese() - { - ushort* ret = ImGui.GetGlyphRangesJapaneseNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesKorean() - { - ushort* ret = ImGui.GetGlyphRangesKoreanNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesThai() - { - ushort* ret = ImGui.GetGlyphRangesThaiNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GetGlyphRangesVietnamese() - { - ushort* ret = ImGui.GetGlyphRangesVietnameseNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, int* textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, textureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, Vector2* outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, Vector2* outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, Vector2* outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ref Vector2 outOffset, ref Vector2 outSize, ReadOnlySpan<Vector2> outUvBorder, ReadOnlySpan<Vector2> outUvFill, ref int textureIndex) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = outUvBorder) - { - fixed (Vector2* poutUvFill = outUvFill) - { - fixed (int* ptextureIndex = &textureIndex) - { - byte ret = ImGui.GetMouseCursorTexDataNative(Handle, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill, (int*)ptextureIndex); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsAlpha8(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsAlpha8Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, outHeight, outBytesPerPixel); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void GetTexDataAsRGBA32(int textureIndex, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - ImGui.GetTexDataAsRGBA32Native(Handle, textureIndex, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsBuilt() - { - byte ret = ImGui.IsBuiltNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTexID(int textureIndex, ImTextureID id) - { - ImGui.SetTexIDNative(Handle, textureIndex, id); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs deleted file mode 100644 index 7fdea287f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasCustomRect.cs +++ /dev/null @@ -1,211 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontAtlasCustomRect - { - /// <summary> - /// To be documented. - /// </summary> - public ushort Width; - - /// <summary> - /// To be documented. - /// </summary> - public ushort Height; - - /// <summary> - /// To be documented. - /// </summary> - public ushort X; - - /// <summary> - /// To be documented. - /// </summary> - public ushort Y; - - public uint RawBits0; - /// <summary> - /// To be documented. - /// </summary> - public float GlyphAdvanceX; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 GlyphOffset; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFont* Font; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlasCustomRect(ushort width = default, ushort height = default, ushort x = default, ushort y = default, uint reserved = default, uint textureIndex = default, uint glyphId = default, float glyphAdvanceX = default, Vector2 glyphOffset = default, ImFontPtr font = default) - { - Width = width; - Height = height; - X = x; - Y = y; - Reserved = reserved; - TextureIndex = textureIndex; - GlyphID = glyphId; - GlyphAdvanceX = glyphAdvanceX; - GlyphOffset = glyphOffset; - Font = font; - } - - - public uint Reserved { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } - - public uint TextureIndex { get => Bitfield.Get(RawBits0, 2, 9); set => Bitfield.Set(ref RawBits0, value, 2, 9); } - - public uint GlyphID { get => Bitfield.Get(RawBits0, 11, 21); set => Bitfield.Set(ref RawBits0, value, 11, 21); } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImFontAtlasCustomRect* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsPacked() - { - fixed (ImFontAtlasCustomRect* @this = &this) - { - byte ret = ImGui.IsPackedNative(@this); - return ret != 0; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontAtlasCustomRectPtr : IEquatable<ImFontAtlasCustomRectPtr> - { - public ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) { Handle = handle; } - - public ImFontAtlasCustomRect* Handle; - - public bool IsNull => Handle == null; - - public static ImFontAtlasCustomRectPtr Null => new ImFontAtlasCustomRectPtr(null); - - public ImFontAtlasCustomRect this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontAtlasCustomRectPtr(ImFontAtlasCustomRect* handle) => new ImFontAtlasCustomRectPtr(handle); - - public static implicit operator ImFontAtlasCustomRect*(ImFontAtlasCustomRectPtr handle) => handle.Handle; - - public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRectPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle == right; - - public static bool operator !=(ImFontAtlasCustomRectPtr left, ImFontAtlasCustomRect* right) => left.Handle != right; - - public bool Equals(ImFontAtlasCustomRectPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontAtlasCustomRectPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontAtlasCustomRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ushort Width => ref Unsafe.AsRef<ushort>(&Handle->Width); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort Height => ref Unsafe.AsRef<ushort>(&Handle->Height); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort X => ref Unsafe.AsRef<ushort>(&Handle->X); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort Y => ref Unsafe.AsRef<ushort>(&Handle->Y); - /// <summary> - /// To be documented. - /// </summary> - public uint Reserved { get => Handle->Reserved; set => Handle->Reserved = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint GlyphID { get => Handle->GlyphID; set => Handle->GlyphID = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref float GlyphAdvanceX => ref Unsafe.AsRef<float>(&Handle->GlyphAdvanceX); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 GlyphOffset => ref Unsafe.AsRef<Vector2>(&Handle->GlyphOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontPtr Font => ref Unsafe.AsRef<ImFontPtr>(&Handle->Font); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsPacked() - { - byte ret = ImGui.IsPackedNative(Handle); - return ret != 0; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasTexture.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasTexture.cs deleted file mode 100644 index 3111f28b5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontAtlasTexture.cs +++ /dev/null @@ -1,109 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontAtlasTexture - { - /// <summary> - /// To be documented. - /// </summary> - public ImTextureID TexID; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* TexPixelsAlpha8; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint* TexPixelsRGBA32; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlasTexture(ImTextureID texId = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default) - { - TexID = texId; - TexPixelsAlpha8 = texPixelsAlpha8; - TexPixelsRGBA32 = texPixelsRgba32; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontAtlasTexturePtr : IEquatable<ImFontAtlasTexturePtr> - { - public ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) { Handle = handle; } - - public ImFontAtlasTexture* Handle; - - public bool IsNull => Handle == null; - - public static ImFontAtlasTexturePtr Null => new ImFontAtlasTexturePtr(null); - - public ImFontAtlasTexture this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontAtlasTexturePtr(ImFontAtlasTexture* handle) => new ImFontAtlasTexturePtr(handle); - - public static implicit operator ImFontAtlasTexture*(ImFontAtlasTexturePtr handle) => handle.Handle; - - public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexturePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle == right; - - public static bool operator !=(ImFontAtlasTexturePtr left, ImFontAtlasTexture* right) => left.Handle != right; - - public bool Equals(ImFontAtlasTexturePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontAtlasTexturePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontAtlasTexturePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImTextureID TexID => ref Unsafe.AsRef<ImTextureID>(&Handle->TexID); - /// <summary> - /// To be documented. - /// </summary> - public byte* TexPixelsAlpha8 { get => Handle->TexPixelsAlpha8; set => Handle->TexPixelsAlpha8 = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint* TexPixelsRGBA32 { get => Handle->TexPixelsRGBA32; set => Handle->TexPixelsRGBA32 = value; } - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs deleted file mode 100644 index 2255c9782..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontBuilderIO.cs +++ /dev/null @@ -1,89 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontBuilderIO - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* FontBuilderBuild; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontBuilderIO(delegate*<ImFontAtlas*, bool> fontbuilderBuild = default) - { - FontBuilderBuild = (void*)fontbuilderBuild; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontBuilderIOPtr : IEquatable<ImFontBuilderIOPtr> - { - public ImFontBuilderIOPtr(ImFontBuilderIO* handle) { Handle = handle; } - - public ImFontBuilderIO* Handle; - - public bool IsNull => Handle == null; - - public static ImFontBuilderIOPtr Null => new ImFontBuilderIOPtr(null); - - public ImFontBuilderIO this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontBuilderIOPtr(ImFontBuilderIO* handle) => new ImFontBuilderIOPtr(handle); - - public static implicit operator ImFontBuilderIO*(ImFontBuilderIOPtr handle) => handle.Handle; - - public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIOPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle == right; - - public static bool operator !=(ImFontBuilderIOPtr left, ImFontBuilderIO* right) => left.Handle != right; - - public bool Equals(ImFontBuilderIOPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontBuilderIOPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontBuilderIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public void* FontBuilderBuild { get => Handle->FontBuilderBuild; set => Handle->FontBuilderBuild = value; } - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs deleted file mode 100644 index d83585a93..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontConfig.cs +++ /dev/null @@ -1,455 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontConfig - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* FontData; - - /// <summary> - /// To be documented. - /// </summary> - public int FontDataSize; - - /// <summary> - /// To be documented. - /// </summary> - public byte FontDataOwnedByAtlas; - - /// <summary> - /// To be documented. - /// </summary> - public int FontNo; - - /// <summary> - /// To be documented. - /// </summary> - public float SizePixels; - - /// <summary> - /// To be documented. - /// </summary> - public int OversampleH; - - /// <summary> - /// To be documented. - /// </summary> - public int OversampleV; - - /// <summary> - /// To be documented. - /// </summary> - public byte PixelSnapH; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 GlyphExtraSpacing; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 GlyphOffset; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ushort* GlyphRanges; - - /// <summary> - /// To be documented. - /// </summary> - public float GlyphMinAdvanceX; - - /// <summary> - /// To be documented. - /// </summary> - public float GlyphMaxAdvanceX; - - /// <summary> - /// To be documented. - /// </summary> - public byte MergeMode; - - /// <summary> - /// To be documented. - /// </summary> - public uint FontBuilderFlags; - - /// <summary> - /// To be documented. - /// </summary> - public float RasterizerMultiply; - - /// <summary> - /// To be documented. - /// </summary> - public float RasterizerGamma; - - /// <summary> - /// To be documented. - /// </summary> - public ushort EllipsisChar; - - /// <summary> - /// To be documented. - /// </summary> - public byte Name_0; - public byte Name_1; - public byte Name_2; - public byte Name_3; - public byte Name_4; - public byte Name_5; - public byte Name_6; - public byte Name_7; - public byte Name_8; - public byte Name_9; - public byte Name_10; - public byte Name_11; - public byte Name_12; - public byte Name_13; - public byte Name_14; - public byte Name_15; - public byte Name_16; - public byte Name_17; - public byte Name_18; - public byte Name_19; - public byte Name_20; - public byte Name_21; - public byte Name_22; - public byte Name_23; - public byte Name_24; - public byte Name_25; - public byte Name_26; - public byte Name_27; - public byte Name_28; - public byte Name_29; - public byte Name_30; - public byte Name_31; - public byte Name_32; - public byte Name_33; - public byte Name_34; - public byte Name_35; - public byte Name_36; - public byte Name_37; - public byte Name_38; - public byte Name_39; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFont* DstFont; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, byte* name = default, ImFontPtr dstFont = default) - { - FontData = fontData; - FontDataSize = fontDataSize; - FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; - FontNo = fontNo; - SizePixels = sizePixels; - OversampleH = oversampleH; - OversampleV = oversampleV; - PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; - GlyphExtraSpacing = glyphExtraSpacing; - GlyphOffset = glyphOffset; - GlyphRanges = glyphRanges; - GlyphMinAdvanceX = glyphMinAdvanceX; - GlyphMaxAdvanceX = glyphMaxAdvanceX; - MergeMode = mergeMode ? (byte)1 : (byte)0; - FontBuilderFlags = fontBuilderFlags; - RasterizerMultiply = rasterizerMultiply; - RasterizerGamma = rasterizerGamma; - EllipsisChar = ellipsisChar; - if (name != default(byte*)) - { - Name_0 = name[0]; - Name_1 = name[1]; - Name_2 = name[2]; - Name_3 = name[3]; - Name_4 = name[4]; - Name_5 = name[5]; - Name_6 = name[6]; - Name_7 = name[7]; - Name_8 = name[8]; - Name_9 = name[9]; - Name_10 = name[10]; - Name_11 = name[11]; - Name_12 = name[12]; - Name_13 = name[13]; - Name_14 = name[14]; - Name_15 = name[15]; - Name_16 = name[16]; - Name_17 = name[17]; - Name_18 = name[18]; - Name_19 = name[19]; - Name_20 = name[20]; - Name_21 = name[21]; - Name_22 = name[22]; - Name_23 = name[23]; - Name_24 = name[24]; - Name_25 = name[25]; - Name_26 = name[26]; - Name_27 = name[27]; - Name_28 = name[28]; - Name_29 = name[29]; - Name_30 = name[30]; - Name_31 = name[31]; - Name_32 = name[32]; - Name_33 = name[33]; - Name_34 = name[34]; - Name_35 = name[35]; - Name_36 = name[36]; - Name_37 = name[37]; - Name_38 = name[38]; - Name_39 = name[39]; - } - DstFont = dstFont; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, float rasterizerGamma = default, ushort ellipsisChar = default, Span<byte> name = default, ImFontPtr dstFont = default) - { - FontData = fontData; - FontDataSize = fontDataSize; - FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; - FontNo = fontNo; - SizePixels = sizePixels; - OversampleH = oversampleH; - OversampleV = oversampleV; - PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; - GlyphExtraSpacing = glyphExtraSpacing; - GlyphOffset = glyphOffset; - GlyphRanges = glyphRanges; - GlyphMinAdvanceX = glyphMinAdvanceX; - GlyphMaxAdvanceX = glyphMaxAdvanceX; - MergeMode = mergeMode ? (byte)1 : (byte)0; - FontBuilderFlags = fontBuilderFlags; - RasterizerMultiply = rasterizerMultiply; - RasterizerGamma = rasterizerGamma; - EllipsisChar = ellipsisChar; - if (name != default(Span<byte>)) - { - Name_0 = name[0]; - Name_1 = name[1]; - Name_2 = name[2]; - Name_3 = name[3]; - Name_4 = name[4]; - Name_5 = name[5]; - Name_6 = name[6]; - Name_7 = name[7]; - Name_8 = name[8]; - Name_9 = name[9]; - Name_10 = name[10]; - Name_11 = name[11]; - Name_12 = name[12]; - Name_13 = name[13]; - Name_14 = name[14]; - Name_15 = name[15]; - Name_16 = name[16]; - Name_17 = name[17]; - Name_18 = name[18]; - Name_19 = name[19]; - Name_20 = name[20]; - Name_21 = name[21]; - Name_22 = name[22]; - Name_23 = name[23]; - Name_24 = name[24]; - Name_25 = name[25]; - Name_26 = name[26]; - Name_27 = name[27]; - Name_28 = name[28]; - Name_29 = name[29]; - Name_30 = name[30]; - Name_31 = name[31]; - Name_32 = name[32]; - Name_33 = name[33]; - Name_34 = name[34]; - Name_35 = name[35]; - Name_36 = name[36]; - Name_37 = name[37]; - Name_38 = name[38]; - Name_39 = name[39]; - } - DstFont = dstFont; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImFontConfig* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontConfigPtr : IEquatable<ImFontConfigPtr> - { - public ImFontConfigPtr(ImFontConfig* handle) { Handle = handle; } - - public ImFontConfig* Handle; - - public bool IsNull => Handle == null; - - public static ImFontConfigPtr Null => new ImFontConfigPtr(null); - - public ImFontConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontConfigPtr(ImFontConfig* handle) => new ImFontConfigPtr(handle); - - public static implicit operator ImFontConfig*(ImFontConfigPtr handle) => handle.Handle; - - public static bool operator ==(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontConfigPtr left, ImFontConfigPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontConfigPtr left, ImFontConfig* right) => left.Handle == right; - - public static bool operator !=(ImFontConfigPtr left, ImFontConfig* right) => left.Handle != right; - - public bool Equals(ImFontConfigPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontConfigPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public void* FontData { get => Handle->FontData; set => Handle->FontData = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref int FontDataSize => ref Unsafe.AsRef<int>(&Handle->FontDataSize); - /// <summary> - /// To be documented. - /// </summary> - public ref bool FontDataOwnedByAtlas => ref Unsafe.AsRef<bool>(&Handle->FontDataOwnedByAtlas); - /// <summary> - /// To be documented. - /// </summary> - public ref int FontNo => ref Unsafe.AsRef<int>(&Handle->FontNo); - /// <summary> - /// To be documented. - /// </summary> - public ref float SizePixels => ref Unsafe.AsRef<float>(&Handle->SizePixels); - /// <summary> - /// To be documented. - /// </summary> - public ref int OversampleH => ref Unsafe.AsRef<int>(&Handle->OversampleH); - /// <summary> - /// To be documented. - /// </summary> - public ref int OversampleV => ref Unsafe.AsRef<int>(&Handle->OversampleV); - /// <summary> - /// To be documented. - /// </summary> - public ref bool PixelSnapH => ref Unsafe.AsRef<bool>(&Handle->PixelSnapH); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 GlyphExtraSpacing => ref Unsafe.AsRef<Vector2>(&Handle->GlyphExtraSpacing); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 GlyphOffset => ref Unsafe.AsRef<Vector2>(&Handle->GlyphOffset); - /// <summary> - /// To be documented. - /// </summary> - public ushort* GlyphRanges { get => Handle->GlyphRanges; set => Handle->GlyphRanges = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref float GlyphMinAdvanceX => ref Unsafe.AsRef<float>(&Handle->GlyphMinAdvanceX); - /// <summary> - /// To be documented. - /// </summary> - public ref float GlyphMaxAdvanceX => ref Unsafe.AsRef<float>(&Handle->GlyphMaxAdvanceX); - /// <summary> - /// To be documented. - /// </summary> - public ref bool MergeMode => ref Unsafe.AsRef<bool>(&Handle->MergeMode); - /// <summary> - /// To be documented. - /// </summary> - public ref uint FontBuilderFlags => ref Unsafe.AsRef<uint>(&Handle->FontBuilderFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref float RasterizerMultiply => ref Unsafe.AsRef<float>(&Handle->RasterizerMultiply); - /// <summary> - /// To be documented. - /// </summary> - public ref float RasterizerGamma => ref Unsafe.AsRef<float>(&Handle->RasterizerGamma); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort EllipsisChar => ref Unsafe.AsRef<ushort>(&Handle->EllipsisChar); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> Name - - { - get - { - return new Span<byte>(&Handle->Name_0, 40); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontPtr DstFont => ref Unsafe.AsRef<ImFontPtr>(&Handle->DstFont); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs deleted file mode 100644 index ba0305be6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyph.cs +++ /dev/null @@ -1,198 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontGlyph - { - public uint RawBits0; - /// <summary> - /// To be documented. - /// </summary> - public float AdvanceX; - - /// <summary> - /// To be documented. - /// </summary> - public float X0; - - /// <summary> - /// To be documented. - /// </summary> - public float Y0; - - /// <summary> - /// To be documented. - /// </summary> - public float X1; - - /// <summary> - /// To be documented. - /// </summary> - public float Y1; - - /// <summary> - /// To be documented. - /// </summary> - public float U0; - - /// <summary> - /// To be documented. - /// </summary> - public float V0; - - /// <summary> - /// To be documented. - /// </summary> - public float U1; - - /// <summary> - /// To be documented. - /// </summary> - public float V1; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyph(uint colored = default, uint visible = default, uint textureIndex = default, uint codepoint = default, float advanceX = default, float x0 = default, float y0 = default, float x1 = default, float y1 = default, float u0 = default, float v0 = default, float u1 = default, float v1 = default) - { - Colored = colored; - Visible = visible; - TextureIndex = textureIndex; - Codepoint = codepoint; - AdvanceX = advanceX; - X0 = x0; - Y0 = y0; - X1 = x1; - Y1 = y1; - U0 = u0; - V0 = v0; - U1 = u1; - V1 = v1; - } - - - public uint Colored { get => Bitfield.Get(RawBits0, 0, 1); set => Bitfield.Set(ref RawBits0, value, 0, 1); } - - public uint Visible { get => Bitfield.Get(RawBits0, 1, 1); set => Bitfield.Set(ref RawBits0, value, 1, 1); } - - public uint TextureIndex { get => Bitfield.Get(RawBits0, 2, 9); set => Bitfield.Set(ref RawBits0, value, 2, 9); } - - public uint Codepoint { get => Bitfield.Get(RawBits0, 11, 21); set => Bitfield.Set(ref RawBits0, value, 11, 21); } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontGlyphPtr : IEquatable<ImFontGlyphPtr> - { - public ImFontGlyphPtr(ImFontGlyph* handle) { Handle = handle; } - - public ImFontGlyph* Handle; - - public bool IsNull => Handle == null; - - public static ImFontGlyphPtr Null => new ImFontGlyphPtr(null); - - public ImFontGlyph this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontGlyphPtr(ImFontGlyph* handle) => new ImFontGlyphPtr(handle); - - public static implicit operator ImFontGlyph*(ImFontGlyphPtr handle) => handle.Handle; - - public static bool operator ==(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontGlyphPtr left, ImFontGlyphPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle == right; - - public static bool operator !=(ImFontGlyphPtr left, ImFontGlyph* right) => left.Handle != right; - - public bool Equals(ImFontGlyphPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontGlyphPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontGlyphPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public uint Colored { get => Handle->Colored; set => Handle->Colored = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint Visible { get => Handle->Visible; set => Handle->Visible = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint TextureIndex { get => Handle->TextureIndex; set => Handle->TextureIndex = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint Codepoint { get => Handle->Codepoint; set => Handle->Codepoint = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref float AdvanceX => ref Unsafe.AsRef<float>(&Handle->AdvanceX); - /// <summary> - /// To be documented. - /// </summary> - public ref float X0 => ref Unsafe.AsRef<float>(&Handle->X0); - /// <summary> - /// To be documented. - /// </summary> - public ref float Y0 => ref Unsafe.AsRef<float>(&Handle->Y0); - /// <summary> - /// To be documented. - /// </summary> - public ref float X1 => ref Unsafe.AsRef<float>(&Handle->X1); - /// <summary> - /// To be documented. - /// </summary> - public ref float Y1 => ref Unsafe.AsRef<float>(&Handle->Y1); - /// <summary> - /// To be documented. - /// </summary> - public ref float U0 => ref Unsafe.AsRef<float>(&Handle->U0); - /// <summary> - /// To be documented. - /// </summary> - public ref float V0 => ref Unsafe.AsRef<float>(&Handle->V0); - /// <summary> - /// To be documented. - /// </summary> - public ref float U1 => ref Unsafe.AsRef<float>(&Handle->U1); - /// <summary> - /// To be documented. - /// </summary> - public ref float V1 => ref Unsafe.AsRef<float>(&Handle->V1); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs deleted file mode 100644 index c1ce2d80d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphHotData.cs +++ /dev/null @@ -1,121 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontGlyphHotData - { - /// <summary> - /// To be documented. - /// </summary> - public float AdvanceX; - - /// <summary> - /// To be documented. - /// </summary> - public float OccupiedWidth; - - public uint RawBits0; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyphHotData(float advanceX = default, float occupiedWidth = default, uint kerningPairUseBisect = default, uint kerningPairOffset = default, uint kerningPairCount = default) - { - AdvanceX = advanceX; - OccupiedWidth = occupiedWidth; - KerningPairUseBisect = kerningPairUseBisect; - KerningPairOffset = kerningPairOffset; - KerningPairCount = kerningPairCount; - } - - - public uint KerningPairUseBisect { get => Bitfield.Get(RawBits0, 0, 1); set => Bitfield.Set(ref RawBits0, value, 0, 1); } - - public uint KerningPairOffset { get => Bitfield.Get(RawBits0, 1, 19); set => Bitfield.Set(ref RawBits0, value, 1, 19); } - - public uint KerningPairCount { get => Bitfield.Get(RawBits0, 20, 12); set => Bitfield.Set(ref RawBits0, value, 20, 12); } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontGlyphHotDataPtr : IEquatable<ImFontGlyphHotDataPtr> - { - public ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) { Handle = handle; } - - public ImFontGlyphHotData* Handle; - - public bool IsNull => Handle == null; - - public static ImFontGlyphHotDataPtr Null => new ImFontGlyphHotDataPtr(null); - - public ImFontGlyphHotData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontGlyphHotDataPtr(ImFontGlyphHotData* handle) => new ImFontGlyphHotDataPtr(handle); - - public static implicit operator ImFontGlyphHotData*(ImFontGlyphHotDataPtr handle) => handle.Handle; - - public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle == right; - - public static bool operator !=(ImFontGlyphHotDataPtr left, ImFontGlyphHotData* right) => left.Handle != right; - - public bool Equals(ImFontGlyphHotDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontGlyphHotDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontGlyphHotDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref float AdvanceX => ref Unsafe.AsRef<float>(&Handle->AdvanceX); - /// <summary> - /// To be documented. - /// </summary> - public ref float OccupiedWidth => ref Unsafe.AsRef<float>(&Handle->OccupiedWidth); - /// <summary> - /// To be documented. - /// </summary> - public uint KerningPairUseBisect { get => Handle->KerningPairUseBisect; set => Handle->KerningPairUseBisect = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint KerningPairOffset { get => Handle->KerningPairOffset; set => Handle->KerningPairOffset = value; } - /// <summary> - /// To be documented. - /// </summary> - public uint KerningPairCount { get => Handle->KerningPairCount; set => Handle->KerningPairCount = value; } - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs deleted file mode 100644 index b738aa74e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontGlyphRangesBuilder.cs +++ /dev/null @@ -1,1115 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontGlyphRangesBuilder - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<uint> UsedChars; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontGlyphRangesBuilder(ImVector<uint> usedChars = default) - { - UsedChars = usedChars; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddChar(ushort c) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.AddCharNative(@this, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRanges(ushort* ranges) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.AddRangesNative(@this, ranges); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.AddTextNative(@this, text, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.AddTextNative(@this, text, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = &text) - { - ImGui.AddTextNative(@this, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = &text) - { - ImGui.AddTextNative(@this, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = text) - { - ImGui.AddTextNative(@this, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = text) - { - ImGui.AddTextNative(@this, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(@this, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, string textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(@this, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(@this, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, ReadOnlySpan<byte> textEnd) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(@this, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildRanges(ImVector<ushort>* outRanges) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.BuildRangesNative(@this, outRanges); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildRanges(ref ImVector<ushort> outRanges) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - ImGui.BuildRangesNative(@this, (ImVector<ushort>*)poutRanges); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetBit(nuint n) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - byte ret = ImGui.GetBitNative(@this, n); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetBit(nuint n) - { - fixed (ImFontGlyphRangesBuilder* @this = &this) - { - ImGui.SetBitNative(@this, n); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontGlyphRangesBuilderPtr : IEquatable<ImFontGlyphRangesBuilderPtr> - { - public ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) { Handle = handle; } - - public ImFontGlyphRangesBuilder* Handle; - - public bool IsNull => Handle == null; - - public static ImFontGlyphRangesBuilderPtr Null => new ImFontGlyphRangesBuilderPtr(null); - - public ImFontGlyphRangesBuilder this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* handle) => new ImFontGlyphRangesBuilderPtr(handle); - - public static implicit operator ImFontGlyphRangesBuilder*(ImFontGlyphRangesBuilderPtr handle) => handle.Handle; - - public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilderPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle == right; - - public static bool operator !=(ImFontGlyphRangesBuilderPtr left, ImFontGlyphRangesBuilder* right) => left.Handle != right; - - public bool Equals(ImFontGlyphRangesBuilderPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontGlyphRangesBuilderPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontGlyphRangesBuilderPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<uint> UsedChars => ref Unsafe.AsRef<ImVector<uint>>(&Handle->UsedChars); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddChar(ushort c) - { - ImGui.AddCharNative(Handle, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddRanges(ushort* ranges) - { - ImGui.AddRangesNative(Handle, ranges); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, byte* textEnd) - { - ImGui.AddTextNative(Handle, text, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text) - { - ImGui.AddTextNative(Handle, text, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - ImGui.AddTextNative(Handle, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text) - { - fixed (byte* ptext = &text) - { - ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - ImGui.AddTextNative(Handle, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.AddTextNative(Handle, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddTextNative(Handle, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.AddTextNative(Handle, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddText(string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.AddTextNative(Handle, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildRanges(ImVector<ushort>* outRanges) - { - ImGui.BuildRangesNative(Handle, outRanges); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildRanges(ref ImVector<ushort> outRanges) - { - fixed (ImVector<ushort>* poutRanges = &outRanges) - { - ImGui.BuildRangesNative(Handle, (ImVector<ushort>*)poutRanges); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - ImGui.ClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetBit(nuint n) - { - byte ret = ImGui.GetBitNative(Handle, n); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetBit(nuint n) - { - ImGui.SetBitNative(Handle, n); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontKerningPair.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontKerningPair.cs deleted file mode 100644 index 36e316fe3..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImFontKerningPair.cs +++ /dev/null @@ -1,109 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImFontKerningPair - { - /// <summary> - /// To be documented. - /// </summary> - public ushort Left; - - /// <summary> - /// To be documented. - /// </summary> - public ushort Right; - - /// <summary> - /// To be documented. - /// </summary> - public float AdvanceXAdjustment; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontKerningPair(ushort left = default, ushort right = default, float advanceXAdjustment = default) - { - Left = left; - Right = right; - AdvanceXAdjustment = advanceXAdjustment; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImFontKerningPairPtr : IEquatable<ImFontKerningPairPtr> - { - public ImFontKerningPairPtr(ImFontKerningPair* handle) { Handle = handle; } - - public ImFontKerningPair* Handle; - - public bool IsNull => Handle == null; - - public static ImFontKerningPairPtr Null => new ImFontKerningPairPtr(null); - - public ImFontKerningPair this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImFontKerningPairPtr(ImFontKerningPair* handle) => new ImFontKerningPairPtr(handle); - - public static implicit operator ImFontKerningPair*(ImFontKerningPairPtr handle) => handle.Handle; - - public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPairPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle == right; - - public static bool operator !=(ImFontKerningPairPtr left, ImFontKerningPair* right) => left.Handle != right; - - public bool Equals(ImFontKerningPairPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImFontKerningPairPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImFontKerningPairPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ushort Left => ref Unsafe.AsRef<ushort>(&Handle->Left); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort Right => ref Unsafe.AsRef<ushort>(&Handle->Right); - /// <summary> - /// To be documented. - /// </summary> - public ref float AdvanceXAdjustment => ref Unsafe.AsRef<float>(&Handle->AdvanceXAdjustment); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs deleted file mode 100644 index bcefa2cd2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiColorMod.cs +++ /dev/null @@ -1,99 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiColorMod - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCol Col; - - /// <summary> - /// To be documented. - /// </summary> - public Vector4 BackupValue; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiColorMod(ImGuiCol col = default, Vector4 backupValue = default) - { - Col = col; - BackupValue = backupValue; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiColorModPtr : IEquatable<ImGuiColorModPtr> - { - public ImGuiColorModPtr(ImGuiColorMod* handle) { Handle = handle; } - - public ImGuiColorMod* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiColorModPtr Null => new ImGuiColorModPtr(null); - - public ImGuiColorMod this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiColorModPtr(ImGuiColorMod* handle) => new ImGuiColorModPtr(handle); - - public static implicit operator ImGuiColorMod*(ImGuiColorModPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiColorModPtr left, ImGuiColorModPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle == right; - - public static bool operator !=(ImGuiColorModPtr left, ImGuiColorMod* right) => left.Handle != right; - - public bool Equals(ImGuiColorModPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiColorModPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiColorModPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiCol Col => ref Unsafe.AsRef<ImGuiCol>(&Handle->Col); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector4 BackupValue => ref Unsafe.AsRef<Vector4>(&Handle->BackupValue); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs deleted file mode 100644 index 037aa2705..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiComboPreviewData.cs +++ /dev/null @@ -1,158 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiComboPreviewData - { - /// <summary> - /// To be documented. - /// </summary> - public ImRect PreviewRect; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BackupCursorPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BackupCursorMaxPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BackupCursorPosPrevLine; - - /// <summary> - /// To be documented. - /// </summary> - public float BackupPrevLineTextBaseOffset; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiLayoutType BackupLayout; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiComboPreviewData(ImRect previewRect = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, float backupPrevLineTextBaseOffset = default, ImGuiLayoutType backupLayout = default) - { - PreviewRect = previewRect; - BackupCursorPos = backupCursorPos; - BackupCursorMaxPos = backupCursorMaxPos; - BackupCursorPosPrevLine = backupCursorPosPrevLine; - BackupPrevLineTextBaseOffset = backupPrevLineTextBaseOffset; - BackupLayout = backupLayout; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiComboPreviewData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiComboPreviewDataPtr : IEquatable<ImGuiComboPreviewDataPtr> - { - public ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) { Handle = handle; } - - public ImGuiComboPreviewData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiComboPreviewDataPtr Null => new ImGuiComboPreviewDataPtr(null); - - public ImGuiComboPreviewData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiComboPreviewDataPtr(ImGuiComboPreviewData* handle) => new ImGuiComboPreviewDataPtr(handle); - - public static implicit operator ImGuiComboPreviewData*(ImGuiComboPreviewDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle == right; - - public static bool operator !=(ImGuiComboPreviewDataPtr left, ImGuiComboPreviewData* right) => left.Handle != right; - - public bool Equals(ImGuiComboPreviewDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiComboPreviewDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiComboPreviewDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect PreviewRect => ref Unsafe.AsRef<ImRect>(&Handle->PreviewRect); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BackupCursorPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorMaxPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BackupCursorPosPrevLine => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPosPrevLine); - /// <summary> - /// To be documented. - /// </summary> - public ref float BackupPrevLineTextBaseOffset => ref Unsafe.AsRef<float>(&Handle->BackupPrevLineTextBaseOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiLayoutType BackupLayout => ref Unsafe.AsRef<ImGuiLayoutType>(&Handle->BackupLayout); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs deleted file mode 100644 index 1990fe6d5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContext.cs +++ /dev/null @@ -1,3085 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiContext - { - /// <summary> - /// To be documented. - /// </summary> - public byte Initialized; - - /// <summary> - /// To be documented. - /// </summary> - public byte FontAtlasOwnedByContext; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiIO IO; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiPlatformIO PlatformIO; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiInputEvent> InputEventsQueue; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiInputEvent> InputEventsTrail; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStyle Style; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiConfigFlags ConfigFlagsCurrFrame; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiConfigFlags ConfigFlagsLastFrame; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFont* Font; - - /// <summary> - /// To be documented. - /// </summary> - public float FontSize; - - /// <summary> - /// To be documented. - /// </summary> - public float FontBaseSize; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawListSharedData DrawListSharedData; - - /// <summary> - /// To be documented. - /// </summary> - public double Time; - - /// <summary> - /// To be documented. - /// </summary> - public int FrameCount; - - /// <summary> - /// To be documented. - /// </summary> - public int FrameCountEnded; - - /// <summary> - /// To be documented. - /// </summary> - public int FrameCountPlatformEnded; - - /// <summary> - /// To be documented. - /// </summary> - public int FrameCountRendered; - - /// <summary> - /// To be documented. - /// </summary> - public byte WithinFrameScope; - - /// <summary> - /// To be documented. - /// </summary> - public byte WithinFrameScopeWithImplicitWindow; - - /// <summary> - /// To be documented. - /// </summary> - public byte WithinEndChild; - - /// <summary> - /// To be documented. - /// </summary> - public byte GcCompactAll; - - /// <summary> - /// To be documented. - /// </summary> - public byte TestEngineHookItems; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* TestEngine; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiWindowPtr> Windows; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiWindowPtr> WindowsFocusOrder; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiWindowPtr> WindowsTempSortBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiWindowStackData> CurrentWindowStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage WindowsById; - - /// <summary> - /// To be documented. - /// </summary> - public int WindowsActiveCount; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WindowsHoverPadding; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* CurrentWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* HoveredWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* HoveredWindowUnderMovingWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode* HoveredDockNode; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* MovingWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* WheelingWindow; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WheelingWindowRefMousePos; - - /// <summary> - /// To be documented. - /// </summary> - public float WheelingWindowTimer; - - /// <summary> - /// To be documented. - /// </summary> - public uint DebugHookIdInfo; - - /// <summary> - /// To be documented. - /// </summary> - public uint HoveredId; - - /// <summary> - /// To be documented. - /// </summary> - public uint HoveredIdPreviousFrame; - - /// <summary> - /// To be documented. - /// </summary> - public byte HoveredIdAllowOverlap; - - /// <summary> - /// To be documented. - /// </summary> - public byte HoveredIdUsingMouseWheel; - - /// <summary> - /// To be documented. - /// </summary> - public byte HoveredIdPreviousFrameUsingMouseWheel; - - /// <summary> - /// To be documented. - /// </summary> - public byte HoveredIdDisabled; - - /// <summary> - /// To be documented. - /// </summary> - public float HoveredIdTimer; - - /// <summary> - /// To be documented. - /// </summary> - public float HoveredIdNotActiveTimer; - - /// <summary> - /// To be documented. - /// </summary> - public uint ActiveId; - - /// <summary> - /// To be documented. - /// </summary> - public uint ActiveIdIsAlive; - - /// <summary> - /// To be documented. - /// </summary> - public float ActiveIdTimer; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdIsJustActivated; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdAllowOverlap; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdNoClearOnFocusLoss; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdHasBeenPressedBefore; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdHasBeenEditedBefore; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdHasBeenEditedThisFrame; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ActiveIdClickOffset; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* ActiveIdWindow; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputSource ActiveIdSource; - - /// <summary> - /// To be documented. - /// </summary> - public int ActiveIdMouseButton; - - /// <summary> - /// To be documented. - /// </summary> - public uint ActiveIdPreviousFrame; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdPreviousFrameIsAlive; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdPreviousFrameHasBeenEditedBefore; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* ActiveIdPreviousFrameWindow; - - /// <summary> - /// To be documented. - /// </summary> - public uint LastActiveId; - - /// <summary> - /// To be documented. - /// </summary> - public float LastActiveIdTimer; - - /// <summary> - /// To be documented. - /// </summary> - public byte ActiveIdUsingMouseWheel; - - /// <summary> - /// To be documented. - /// </summary> - public uint ActiveIdUsingNavDirMask; - - /// <summary> - /// To be documented. - /// </summary> - public uint ActiveIdUsingNavInputMask; - - /// <summary> - /// To be documented. - /// </summary> - public nuint ActiveIdUsingKeyInputMask; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiItemFlags CurrentItemFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNextItemData NextItemData; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiLastItemData LastItemData; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNextWindowData NextWindowData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiColorMod> ColorStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiStyleMod> StyleVarStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImFontPtr> FontStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<uint> FocusScopeStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiItemFlags> ItemFlagsStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiGroupData> GroupStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiPopupData> OpenPopupStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiPopupData> BeginPopupStack; - - /// <summary> - /// To be documented. - /// </summary> - public int BeginMenuCount; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiViewportPPtr> Viewports; - - /// <summary> - /// To be documented. - /// </summary> - public float CurrentDpiScale; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewportP* CurrentViewport; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewportP* MouseViewport; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewportP* MouseLastHoveredViewport; - - /// <summary> - /// To be documented. - /// </summary> - public uint PlatformLastFocusedViewportId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiPlatformMonitor FallbackMonitor; - - /// <summary> - /// To be documented. - /// </summary> - public int ViewportFrontMostStampCount; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* NavWindow; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavId; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavFocusScopeId; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavActivateId; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavActivateDownId; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavActivatePressedId; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavActivateInputId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiActivateFlags NavActivateFlags; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavJustMovedToId; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavJustMovedToFocusScopeId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags NavJustMovedToKeyMods; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavNextActivateId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiActivateFlags NavNextActivateFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputSource NavInputSource; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNavLayer NavLayer; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavIdIsAlive; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavMousePosDirty; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavDisableHighlight; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavDisableMouseHover; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavAnyRequest; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavInitRequest; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavInitRequestFromMove; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavInitResultId; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect NavInitResultRectRel; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavMoveSubmitted; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavMoveScoringItems; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavMoveForwardToNextFrame; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNavMoveFlags NavMoveFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiScrollFlags NavMoveScrollFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags NavMoveKeyMods; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDir NavMoveDir; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDir NavMoveDirForDebug; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDir NavMoveClipDir; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect NavScoringRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect NavScoringNoClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public int NavScoringDebugCount; - - /// <summary> - /// To be documented. - /// </summary> - public int NavTabbingDir; - - /// <summary> - /// To be documented. - /// </summary> - public int NavTabbingCounter; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNavItemData NavMoveResultLocal; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNavItemData NavMoveResultLocalVisible; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNavItemData NavMoveResultOther; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNavItemData NavTabbingResultFirst; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* NavWindowingTarget; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* NavWindowingTargetAnim; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* NavWindowingListWindow; - - /// <summary> - /// To be documented. - /// </summary> - public float NavWindowingTimer; - - /// <summary> - /// To be documented. - /// </summary> - public float NavWindowingHighlightAlpha; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavWindowingToggleLayer; - - /// <summary> - /// To be documented. - /// </summary> - public float DimBgRatio; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMouseCursor MouseCursor; - - /// <summary> - /// To be documented. - /// </summary> - public byte DragDropActive; - - /// <summary> - /// To be documented. - /// </summary> - public byte DragDropWithinSource; - - /// <summary> - /// To be documented. - /// </summary> - public byte DragDropWithinTarget; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDragDropFlags DragDropSourceFlags; - - /// <summary> - /// To be documented. - /// </summary> - public int DragDropSourceFrameCount; - - /// <summary> - /// To be documented. - /// </summary> - public int DragDropMouseButton; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiPayload DragDropPayload; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect DragDropTargetRect; - - /// <summary> - /// To be documented. - /// </summary> - public uint DragDropTargetId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDragDropFlags DragDropAcceptFlags; - - /// <summary> - /// To be documented. - /// </summary> - public float DragDropAcceptIdCurrRectSurface; - - /// <summary> - /// To be documented. - /// </summary> - public uint DragDropAcceptIdCurr; - - /// <summary> - /// To be documented. - /// </summary> - public uint DragDropAcceptIdPrev; - - /// <summary> - /// To be documented. - /// </summary> - public int DragDropAcceptFrameCount; - - /// <summary> - /// To be documented. - /// </summary> - public uint DragDropHoldJustPressedId; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> DragDropPayloadBufHeap; - - /// <summary> - /// To be documented. - /// </summary> - public byte DragDropPayloadBufLocal_0; - public byte DragDropPayloadBufLocal_1; - public byte DragDropPayloadBufLocal_2; - public byte DragDropPayloadBufLocal_3; - public byte DragDropPayloadBufLocal_4; - public byte DragDropPayloadBufLocal_5; - public byte DragDropPayloadBufLocal_6; - public byte DragDropPayloadBufLocal_7; - public byte DragDropPayloadBufLocal_8; - public byte DragDropPayloadBufLocal_9; - public byte DragDropPayloadBufLocal_10; - public byte DragDropPayloadBufLocal_11; - public byte DragDropPayloadBufLocal_12; - public byte DragDropPayloadBufLocal_13; - public byte DragDropPayloadBufLocal_14; - public byte DragDropPayloadBufLocal_15; - - /// <summary> - /// To be documented. - /// </summary> - public int ClipperTempDataStacked; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiListClipperData> ClipperTempData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTable* CurrentTable; - - /// <summary> - /// To be documented. - /// </summary> - public int TablesTempDataStacked; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiTableTempData> TablesTempData; - - /// <summary> - /// To be documented. - /// </summary> - public ImPoolImGuiTable Tables; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<float> TablesLastTimeActive; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImDrawChannel> DrawChannelsTempMergeBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTabBar* CurrentTabBar; - - /// <summary> - /// To be documented. - /// </summary> - public ImPoolImGuiTabBar TabBars; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiPtrOrIndex> CurrentTabBarStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiShrinkWidthItem> ShrinkWidthBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MouseLastValidPos; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputTextState InputTextState; - - /// <summary> - /// To be documented. - /// </summary> - public ImFont InputTextPasswordFont; - - /// <summary> - /// To be documented. - /// </summary> - public uint TempInputId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiColorEditFlags ColorEditOptions; - - /// <summary> - /// To be documented. - /// </summary> - public float ColorEditLastHue; - - /// <summary> - /// To be documented. - /// </summary> - public float ColorEditLastSat; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorEditLastColor; - - /// <summary> - /// To be documented. - /// </summary> - public Vector4 ColorPickerRef; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiComboPreviewData ComboPreviewData; - - /// <summary> - /// To be documented. - /// </summary> - public float SliderGrabClickOffset; - - /// <summary> - /// To be documented. - /// </summary> - public float SliderCurrentAccum; - - /// <summary> - /// To be documented. - /// </summary> - public byte SliderCurrentAccumDirty; - - /// <summary> - /// To be documented. - /// </summary> - public byte DragCurrentAccumDirty; - - /// <summary> - /// To be documented. - /// </summary> - public float DragCurrentAccum; - - /// <summary> - /// To be documented. - /// </summary> - public float DragSpeedDefaultRatio; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollbarClickDeltaToGrabCenter; - - /// <summary> - /// To be documented. - /// </summary> - public float DisabledAlphaBackup; - - /// <summary> - /// To be documented. - /// </summary> - public short DisabledStackSize; - - /// <summary> - /// To be documented. - /// </summary> - public short TooltipOverrideCount; - - /// <summary> - /// To be documented. - /// </summary> - public float TooltipSlowDelay; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> ClipboardHandlerData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<uint> MenusIdSubmittedThisFrame; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiPlatformImeData PlatformImeData; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiPlatformImeData PlatformImeDataPrev; - - /// <summary> - /// To be documented. - /// </summary> - public uint PlatformImeViewport; - - /// <summary> - /// To be documented. - /// </summary> - public byte PlatformLocaleDecimalPoint; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDockContext DockContext; - - /// <summary> - /// To be documented. - /// </summary> - public byte SettingsLoaded; - - /// <summary> - /// To be documented. - /// </summary> - public float SettingsDirtyTimer; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer SettingsIniData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiSettingsHandler> SettingsHandlers; - - /// <summary> - /// To be documented. - /// </summary> - public ImChunkStreamImGuiWindowSettings SettingsWindows; - - /// <summary> - /// To be documented. - /// </summary> - public ImChunkStreamImGuiTableSettings SettingsTables; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiContextHook> Hooks; - - /// <summary> - /// To be documented. - /// </summary> - public uint HookIdNext; - - /// <summary> - /// To be documented. - /// </summary> - public byte LogEnabled; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiLogType LogType; - - /// <summary> - /// To be documented. - /// </summary> - public ImFileHandle LogFile; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer LogBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* LogNextPrefix; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* LogNextSuffix; - - /// <summary> - /// To be documented. - /// </summary> - public float LogLinePosY; - - /// <summary> - /// To be documented. - /// </summary> - public byte LogLineFirstItem; - - /// <summary> - /// To be documented. - /// </summary> - public int LogDepthRef; - - /// <summary> - /// To be documented. - /// </summary> - public int LogDepthToExpand; - - /// <summary> - /// To be documented. - /// </summary> - public int LogDepthToExpandDefault; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDebugLogFlags DebugLogFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer DebugLogBuf; - - /// <summary> - /// To be documented. - /// </summary> - public byte DebugItemPickerActive; - - /// <summary> - /// To be documented. - /// </summary> - public uint DebugItemPickerBreakId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMetricsConfig DebugMetricsConfig; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStackTool DebugStackTool; - - /// <summary> - /// To be documented. - /// </summary> - public float FramerateSecPerFrame_0; - public float FramerateSecPerFrame_1; - public float FramerateSecPerFrame_2; - public float FramerateSecPerFrame_3; - public float FramerateSecPerFrame_4; - public float FramerateSecPerFrame_5; - public float FramerateSecPerFrame_6; - public float FramerateSecPerFrame_7; - public float FramerateSecPerFrame_8; - public float FramerateSecPerFrame_9; - public float FramerateSecPerFrame_10; - public float FramerateSecPerFrame_11; - public float FramerateSecPerFrame_12; - public float FramerateSecPerFrame_13; - public float FramerateSecPerFrame_14; - public float FramerateSecPerFrame_15; - public float FramerateSecPerFrame_16; - public float FramerateSecPerFrame_17; - public float FramerateSecPerFrame_18; - public float FramerateSecPerFrame_19; - public float FramerateSecPerFrame_20; - public float FramerateSecPerFrame_21; - public float FramerateSecPerFrame_22; - public float FramerateSecPerFrame_23; - public float FramerateSecPerFrame_24; - public float FramerateSecPerFrame_25; - public float FramerateSecPerFrame_26; - public float FramerateSecPerFrame_27; - public float FramerateSecPerFrame_28; - public float FramerateSecPerFrame_29; - public float FramerateSecPerFrame_30; - public float FramerateSecPerFrame_31; - public float FramerateSecPerFrame_32; - public float FramerateSecPerFrame_33; - public float FramerateSecPerFrame_34; - public float FramerateSecPerFrame_35; - public float FramerateSecPerFrame_36; - public float FramerateSecPerFrame_37; - public float FramerateSecPerFrame_38; - public float FramerateSecPerFrame_39; - public float FramerateSecPerFrame_40; - public float FramerateSecPerFrame_41; - public float FramerateSecPerFrame_42; - public float FramerateSecPerFrame_43; - public float FramerateSecPerFrame_44; - public float FramerateSecPerFrame_45; - public float FramerateSecPerFrame_46; - public float FramerateSecPerFrame_47; - public float FramerateSecPerFrame_48; - public float FramerateSecPerFrame_49; - public float FramerateSecPerFrame_50; - public float FramerateSecPerFrame_51; - public float FramerateSecPerFrame_52; - public float FramerateSecPerFrame_53; - public float FramerateSecPerFrame_54; - public float FramerateSecPerFrame_55; - public float FramerateSecPerFrame_56; - public float FramerateSecPerFrame_57; - public float FramerateSecPerFrame_58; - public float FramerateSecPerFrame_59; - public float FramerateSecPerFrame_60; - public float FramerateSecPerFrame_61; - public float FramerateSecPerFrame_62; - public float FramerateSecPerFrame_63; - public float FramerateSecPerFrame_64; - public float FramerateSecPerFrame_65; - public float FramerateSecPerFrame_66; - public float FramerateSecPerFrame_67; - public float FramerateSecPerFrame_68; - public float FramerateSecPerFrame_69; - public float FramerateSecPerFrame_70; - public float FramerateSecPerFrame_71; - public float FramerateSecPerFrame_72; - public float FramerateSecPerFrame_73; - public float FramerateSecPerFrame_74; - public float FramerateSecPerFrame_75; - public float FramerateSecPerFrame_76; - public float FramerateSecPerFrame_77; - public float FramerateSecPerFrame_78; - public float FramerateSecPerFrame_79; - public float FramerateSecPerFrame_80; - public float FramerateSecPerFrame_81; - public float FramerateSecPerFrame_82; - public float FramerateSecPerFrame_83; - public float FramerateSecPerFrame_84; - public float FramerateSecPerFrame_85; - public float FramerateSecPerFrame_86; - public float FramerateSecPerFrame_87; - public float FramerateSecPerFrame_88; - public float FramerateSecPerFrame_89; - public float FramerateSecPerFrame_90; - public float FramerateSecPerFrame_91; - public float FramerateSecPerFrame_92; - public float FramerateSecPerFrame_93; - public float FramerateSecPerFrame_94; - public float FramerateSecPerFrame_95; - public float FramerateSecPerFrame_96; - public float FramerateSecPerFrame_97; - public float FramerateSecPerFrame_98; - public float FramerateSecPerFrame_99; - public float FramerateSecPerFrame_100; - public float FramerateSecPerFrame_101; - public float FramerateSecPerFrame_102; - public float FramerateSecPerFrame_103; - public float FramerateSecPerFrame_104; - public float FramerateSecPerFrame_105; - public float FramerateSecPerFrame_106; - public float FramerateSecPerFrame_107; - public float FramerateSecPerFrame_108; - public float FramerateSecPerFrame_109; - public float FramerateSecPerFrame_110; - public float FramerateSecPerFrame_111; - public float FramerateSecPerFrame_112; - public float FramerateSecPerFrame_113; - public float FramerateSecPerFrame_114; - public float FramerateSecPerFrame_115; - public float FramerateSecPerFrame_116; - public float FramerateSecPerFrame_117; - public float FramerateSecPerFrame_118; - public float FramerateSecPerFrame_119; - - /// <summary> - /// To be documented. - /// </summary> - public int FramerateSecPerFrameIdx; - - /// <summary> - /// To be documented. - /// </summary> - public int FramerateSecPerFrameCount; - - /// <summary> - /// To be documented. - /// </summary> - public float FramerateSecPerFrameAccum; - - /// <summary> - /// To be documented. - /// </summary> - public int WantCaptureMouseNextFrame; - - /// <summary> - /// To be documented. - /// </summary> - public int WantCaptureKeyboardNextFrame; - - /// <summary> - /// To be documented. - /// </summary> - public int WantTextInputNextFrame; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> TempBuffer; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector<ImGuiInputEvent> inputEventsQueue = default, ImVector<ImGuiInputEvent> inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector<ImGuiWindowPtr> windows = default, ImVector<ImGuiWindowPtr> windowsFocusOrder = default, ImVector<ImGuiWindowPtr> windowsTempSortBuffer = default, ImVector<ImGuiWindowStackData> currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, nuint activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector<ImGuiColorMod> colorStack = default, ImVector<ImGuiStyleMod> styleVarStack = default, ImVector<ImFontPtr> fontStack = default, ImVector<uint> focusScopeStack = default, ImVector<ImGuiItemFlags> itemFlagsStack = default, ImVector<ImGuiGroupData> groupStack = default, ImVector<ImGuiPopupData> openPopupStack = default, ImVector<ImGuiPopupData> beginPopupStack = default, int beginMenuCount = default, ImVector<ImGuiViewportPPtr> viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector<byte> dragDropPayloadBufHeap = default, byte* dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector<ImGuiListClipperData> clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector<ImGuiTableTempData> tablesTempData = default, ImPoolImGuiTable tables = default, ImVector<float> tablesLastTimeActive = default, ImVector<ImDrawChannel> drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector<ImGuiPtrOrIndex> currentTabBarStack = default, ImVector<ImGuiShrinkWidthItem> shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector<byte> clipboardHandlerData = default, ImVector<uint> menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector<ImGuiSettingsHandler> settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector<ImGuiContextHook> hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, float* framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector<byte> tempBuffer = default) - { - Initialized = initialized ? (byte)1 : (byte)0; - FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; - IO = io; - PlatformIO = platformIo; - InputEventsQueue = inputEventsQueue; - InputEventsTrail = inputEventsTrail; - Style = style; - ConfigFlagsCurrFrame = configFlagsCurrFrame; - ConfigFlagsLastFrame = configFlagsLastFrame; - Font = font; - FontSize = fontSize; - FontBaseSize = fontBaseSize; - DrawListSharedData = drawListSharedData; - Time = time; - FrameCount = frameCount; - FrameCountEnded = frameCountEnded; - FrameCountPlatformEnded = frameCountPlatformEnded; - FrameCountRendered = frameCountRendered; - WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; - WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; - WithinEndChild = withinEndChild ? (byte)1 : (byte)0; - GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; - TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; - TestEngine = testEngine; - Windows = windows; - WindowsFocusOrder = windowsFocusOrder; - WindowsTempSortBuffer = windowsTempSortBuffer; - CurrentWindowStack = currentWindowStack; - WindowsById = windowsById; - WindowsActiveCount = windowsActiveCount; - WindowsHoverPadding = windowsHoverPadding; - CurrentWindow = currentWindow; - HoveredWindow = hoveredWindow; - HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; - HoveredDockNode = hoveredDockNode; - MovingWindow = movingWindow; - WheelingWindow = wheelingWindow; - WheelingWindowRefMousePos = wheelingWindowRefMousePos; - WheelingWindowTimer = wheelingWindowTimer; - DebugHookIdInfo = debugHookIdInfo; - HoveredId = hoveredId; - HoveredIdPreviousFrame = hoveredIdPreviousFrame; - HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; - HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; - HoveredIdTimer = hoveredIdTimer; - HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; - ActiveId = activeId; - ActiveIdIsAlive = activeIdIsAlive; - ActiveIdTimer = activeIdTimer; - ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; - ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; - ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; - ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; - ActiveIdClickOffset = activeIdClickOffset; - ActiveIdWindow = activeIdWindow; - ActiveIdSource = activeIdSource; - ActiveIdMouseButton = activeIdMouseButton; - ActiveIdPreviousFrame = activeIdPreviousFrame; - ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; - ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; - LastActiveId = lastActiveId; - LastActiveIdTimer = lastActiveIdTimer; - ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; - ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; - ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; - ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; - CurrentItemFlags = currentItemFlags; - NextItemData = nextItemData; - LastItemData = lastItemData; - NextWindowData = nextWindowData; - ColorStack = colorStack; - StyleVarStack = styleVarStack; - FontStack = fontStack; - FocusScopeStack = focusScopeStack; - ItemFlagsStack = itemFlagsStack; - GroupStack = groupStack; - OpenPopupStack = openPopupStack; - BeginPopupStack = beginPopupStack; - BeginMenuCount = beginMenuCount; - Viewports = viewports; - CurrentDpiScale = currentDpiScale; - CurrentViewport = currentViewport; - MouseViewport = mouseViewport; - MouseLastHoveredViewport = mouseLastHoveredViewport; - PlatformLastFocusedViewportId = platformLastFocusedViewportId; - FallbackMonitor = fallbackMonitor; - ViewportFrontMostStampCount = viewportFrontMostStampCount; - NavWindow = navWindow; - NavId = navId; - NavFocusScopeId = navFocusScopeId; - NavActivateId = navActivateId; - NavActivateDownId = navActivateDownId; - NavActivatePressedId = navActivatePressedId; - NavActivateInputId = navActivateInputId; - NavActivateFlags = navActivateFlags; - NavJustMovedToId = navJustMovedToId; - NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; - NavJustMovedToKeyMods = navJustMovedToKeyMods; - NavNextActivateId = navNextActivateId; - NavNextActivateFlags = navNextActivateFlags; - NavInputSource = navInputSource; - NavLayer = navLayer; - NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; - NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; - NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; - NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; - NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; - NavInitRequest = navInitRequest ? (byte)1 : (byte)0; - NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; - NavInitResultId = navInitResultId; - NavInitResultRectRel = navInitResultRectRel; - NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; - NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; - NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; - NavMoveFlags = navMoveFlags; - NavMoveScrollFlags = navMoveScrollFlags; - NavMoveKeyMods = navMoveKeyMods; - NavMoveDir = navMoveDir; - NavMoveDirForDebug = navMoveDirForDebug; - NavMoveClipDir = navMoveClipDir; - NavScoringRect = navScoringRect; - NavScoringNoClipRect = navScoringNoClipRect; - NavScoringDebugCount = navScoringDebugCount; - NavTabbingDir = navTabbingDir; - NavTabbingCounter = navTabbingCounter; - NavMoveResultLocal = navMoveResultLocal; - NavMoveResultLocalVisible = navMoveResultLocalVisible; - NavMoveResultOther = navMoveResultOther; - NavTabbingResultFirst = navTabbingResultFirst; - NavWindowingTarget = navWindowingTarget; - NavWindowingTargetAnim = navWindowingTargetAnim; - NavWindowingListWindow = navWindowingListWindow; - NavWindowingTimer = navWindowingTimer; - NavWindowingHighlightAlpha = navWindowingHighlightAlpha; - NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; - DimBgRatio = dimBgRatio; - MouseCursor = mouseCursor; - DragDropActive = dragDropActive ? (byte)1 : (byte)0; - DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; - DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; - DragDropSourceFlags = dragDropSourceFlags; - DragDropSourceFrameCount = dragDropSourceFrameCount; - DragDropMouseButton = dragDropMouseButton; - DragDropPayload = dragDropPayload; - DragDropTargetRect = dragDropTargetRect; - DragDropTargetId = dragDropTargetId; - DragDropAcceptFlags = dragDropAcceptFlags; - DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; - DragDropAcceptIdCurr = dragDropAcceptIdCurr; - DragDropAcceptIdPrev = dragDropAcceptIdPrev; - DragDropAcceptFrameCount = dragDropAcceptFrameCount; - DragDropHoldJustPressedId = dragDropHoldJustPressedId; - DragDropPayloadBufHeap = dragDropPayloadBufHeap; - if (dragDropPayloadBufLocal != default(byte*)) - { - DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; - DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; - DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; - DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; - DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; - DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; - DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; - DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; - DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; - DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; - DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; - DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; - DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; - DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; - DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; - DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; - } - ClipperTempDataStacked = clipperTempDataStacked; - ClipperTempData = clipperTempData; - CurrentTable = currentTable; - TablesTempDataStacked = tablesTempDataStacked; - TablesTempData = tablesTempData; - Tables = tables; - TablesLastTimeActive = tablesLastTimeActive; - DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; - CurrentTabBar = currentTabBar; - TabBars = tabBars; - CurrentTabBarStack = currentTabBarStack; - ShrinkWidthBuffer = shrinkWidthBuffer; - MouseLastValidPos = mouseLastValidPos; - InputTextState = inputTextState; - InputTextPasswordFont = inputTextPasswordFont; - TempInputId = tempInputId; - ColorEditOptions = colorEditOptions; - ColorEditLastHue = colorEditLastHue; - ColorEditLastSat = colorEditLastSat; - ColorEditLastColor = colorEditLastColor; - ColorPickerRef = colorPickerRef; - ComboPreviewData = comboPreviewData; - SliderGrabClickOffset = sliderGrabClickOffset; - SliderCurrentAccum = sliderCurrentAccum; - SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccum = dragCurrentAccum; - DragSpeedDefaultRatio = dragSpeedDefaultRatio; - ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; - DisabledAlphaBackup = disabledAlphaBackup; - DisabledStackSize = disabledStackSize; - TooltipOverrideCount = tooltipOverrideCount; - TooltipSlowDelay = tooltipSlowDelay; - ClipboardHandlerData = clipboardHandlerData; - MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; - PlatformImeData = platformImeData; - PlatformImeDataPrev = platformImeDataPrev; - PlatformImeViewport = platformImeViewport; - PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; - DockContext = dockContext; - SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; - SettingsDirtyTimer = settingsDirtyTimer; - SettingsIniData = settingsIniData; - SettingsHandlers = settingsHandlers; - SettingsWindows = settingsWindows; - SettingsTables = settingsTables; - Hooks = hooks; - HookIdNext = hookIdNext; - LogEnabled = logEnabled ? (byte)1 : (byte)0; - LogType = logType; - LogFile = logFile; - LogBuffer = logBuffer; - LogNextPrefix = logNextPrefix; - LogNextSuffix = logNextSuffix; - LogLinePosY = logLinePosY; - LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; - LogDepthRef = logDepthRef; - LogDepthToExpand = logDepthToExpand; - LogDepthToExpandDefault = logDepthToExpandDefault; - DebugLogFlags = debugLogFlags; - DebugLogBuf = debugLogBuf; - DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; - DebugItemPickerBreakId = debugItemPickerBreakId; - DebugMetricsConfig = debugMetricsConfig; - DebugStackTool = debugStackTool; - if (framerateSecPerFrame != default(float*)) - { - FramerateSecPerFrame_0 = framerateSecPerFrame[0]; - FramerateSecPerFrame_1 = framerateSecPerFrame[1]; - FramerateSecPerFrame_2 = framerateSecPerFrame[2]; - FramerateSecPerFrame_3 = framerateSecPerFrame[3]; - FramerateSecPerFrame_4 = framerateSecPerFrame[4]; - FramerateSecPerFrame_5 = framerateSecPerFrame[5]; - FramerateSecPerFrame_6 = framerateSecPerFrame[6]; - FramerateSecPerFrame_7 = framerateSecPerFrame[7]; - FramerateSecPerFrame_8 = framerateSecPerFrame[8]; - FramerateSecPerFrame_9 = framerateSecPerFrame[9]; - FramerateSecPerFrame_10 = framerateSecPerFrame[10]; - FramerateSecPerFrame_11 = framerateSecPerFrame[11]; - FramerateSecPerFrame_12 = framerateSecPerFrame[12]; - FramerateSecPerFrame_13 = framerateSecPerFrame[13]; - FramerateSecPerFrame_14 = framerateSecPerFrame[14]; - FramerateSecPerFrame_15 = framerateSecPerFrame[15]; - FramerateSecPerFrame_16 = framerateSecPerFrame[16]; - FramerateSecPerFrame_17 = framerateSecPerFrame[17]; - FramerateSecPerFrame_18 = framerateSecPerFrame[18]; - FramerateSecPerFrame_19 = framerateSecPerFrame[19]; - FramerateSecPerFrame_20 = framerateSecPerFrame[20]; - FramerateSecPerFrame_21 = framerateSecPerFrame[21]; - FramerateSecPerFrame_22 = framerateSecPerFrame[22]; - FramerateSecPerFrame_23 = framerateSecPerFrame[23]; - FramerateSecPerFrame_24 = framerateSecPerFrame[24]; - FramerateSecPerFrame_25 = framerateSecPerFrame[25]; - FramerateSecPerFrame_26 = framerateSecPerFrame[26]; - FramerateSecPerFrame_27 = framerateSecPerFrame[27]; - FramerateSecPerFrame_28 = framerateSecPerFrame[28]; - FramerateSecPerFrame_29 = framerateSecPerFrame[29]; - FramerateSecPerFrame_30 = framerateSecPerFrame[30]; - FramerateSecPerFrame_31 = framerateSecPerFrame[31]; - FramerateSecPerFrame_32 = framerateSecPerFrame[32]; - FramerateSecPerFrame_33 = framerateSecPerFrame[33]; - FramerateSecPerFrame_34 = framerateSecPerFrame[34]; - FramerateSecPerFrame_35 = framerateSecPerFrame[35]; - FramerateSecPerFrame_36 = framerateSecPerFrame[36]; - FramerateSecPerFrame_37 = framerateSecPerFrame[37]; - FramerateSecPerFrame_38 = framerateSecPerFrame[38]; - FramerateSecPerFrame_39 = framerateSecPerFrame[39]; - FramerateSecPerFrame_40 = framerateSecPerFrame[40]; - FramerateSecPerFrame_41 = framerateSecPerFrame[41]; - FramerateSecPerFrame_42 = framerateSecPerFrame[42]; - FramerateSecPerFrame_43 = framerateSecPerFrame[43]; - FramerateSecPerFrame_44 = framerateSecPerFrame[44]; - FramerateSecPerFrame_45 = framerateSecPerFrame[45]; - FramerateSecPerFrame_46 = framerateSecPerFrame[46]; - FramerateSecPerFrame_47 = framerateSecPerFrame[47]; - FramerateSecPerFrame_48 = framerateSecPerFrame[48]; - FramerateSecPerFrame_49 = framerateSecPerFrame[49]; - FramerateSecPerFrame_50 = framerateSecPerFrame[50]; - FramerateSecPerFrame_51 = framerateSecPerFrame[51]; - FramerateSecPerFrame_52 = framerateSecPerFrame[52]; - FramerateSecPerFrame_53 = framerateSecPerFrame[53]; - FramerateSecPerFrame_54 = framerateSecPerFrame[54]; - FramerateSecPerFrame_55 = framerateSecPerFrame[55]; - FramerateSecPerFrame_56 = framerateSecPerFrame[56]; - FramerateSecPerFrame_57 = framerateSecPerFrame[57]; - FramerateSecPerFrame_58 = framerateSecPerFrame[58]; - FramerateSecPerFrame_59 = framerateSecPerFrame[59]; - FramerateSecPerFrame_60 = framerateSecPerFrame[60]; - FramerateSecPerFrame_61 = framerateSecPerFrame[61]; - FramerateSecPerFrame_62 = framerateSecPerFrame[62]; - FramerateSecPerFrame_63 = framerateSecPerFrame[63]; - FramerateSecPerFrame_64 = framerateSecPerFrame[64]; - FramerateSecPerFrame_65 = framerateSecPerFrame[65]; - FramerateSecPerFrame_66 = framerateSecPerFrame[66]; - FramerateSecPerFrame_67 = framerateSecPerFrame[67]; - FramerateSecPerFrame_68 = framerateSecPerFrame[68]; - FramerateSecPerFrame_69 = framerateSecPerFrame[69]; - FramerateSecPerFrame_70 = framerateSecPerFrame[70]; - FramerateSecPerFrame_71 = framerateSecPerFrame[71]; - FramerateSecPerFrame_72 = framerateSecPerFrame[72]; - FramerateSecPerFrame_73 = framerateSecPerFrame[73]; - FramerateSecPerFrame_74 = framerateSecPerFrame[74]; - FramerateSecPerFrame_75 = framerateSecPerFrame[75]; - FramerateSecPerFrame_76 = framerateSecPerFrame[76]; - FramerateSecPerFrame_77 = framerateSecPerFrame[77]; - FramerateSecPerFrame_78 = framerateSecPerFrame[78]; - FramerateSecPerFrame_79 = framerateSecPerFrame[79]; - FramerateSecPerFrame_80 = framerateSecPerFrame[80]; - FramerateSecPerFrame_81 = framerateSecPerFrame[81]; - FramerateSecPerFrame_82 = framerateSecPerFrame[82]; - FramerateSecPerFrame_83 = framerateSecPerFrame[83]; - FramerateSecPerFrame_84 = framerateSecPerFrame[84]; - FramerateSecPerFrame_85 = framerateSecPerFrame[85]; - FramerateSecPerFrame_86 = framerateSecPerFrame[86]; - FramerateSecPerFrame_87 = framerateSecPerFrame[87]; - FramerateSecPerFrame_88 = framerateSecPerFrame[88]; - FramerateSecPerFrame_89 = framerateSecPerFrame[89]; - FramerateSecPerFrame_90 = framerateSecPerFrame[90]; - FramerateSecPerFrame_91 = framerateSecPerFrame[91]; - FramerateSecPerFrame_92 = framerateSecPerFrame[92]; - FramerateSecPerFrame_93 = framerateSecPerFrame[93]; - FramerateSecPerFrame_94 = framerateSecPerFrame[94]; - FramerateSecPerFrame_95 = framerateSecPerFrame[95]; - FramerateSecPerFrame_96 = framerateSecPerFrame[96]; - FramerateSecPerFrame_97 = framerateSecPerFrame[97]; - FramerateSecPerFrame_98 = framerateSecPerFrame[98]; - FramerateSecPerFrame_99 = framerateSecPerFrame[99]; - FramerateSecPerFrame_100 = framerateSecPerFrame[100]; - FramerateSecPerFrame_101 = framerateSecPerFrame[101]; - FramerateSecPerFrame_102 = framerateSecPerFrame[102]; - FramerateSecPerFrame_103 = framerateSecPerFrame[103]; - FramerateSecPerFrame_104 = framerateSecPerFrame[104]; - FramerateSecPerFrame_105 = framerateSecPerFrame[105]; - FramerateSecPerFrame_106 = framerateSecPerFrame[106]; - FramerateSecPerFrame_107 = framerateSecPerFrame[107]; - FramerateSecPerFrame_108 = framerateSecPerFrame[108]; - FramerateSecPerFrame_109 = framerateSecPerFrame[109]; - FramerateSecPerFrame_110 = framerateSecPerFrame[110]; - FramerateSecPerFrame_111 = framerateSecPerFrame[111]; - FramerateSecPerFrame_112 = framerateSecPerFrame[112]; - FramerateSecPerFrame_113 = framerateSecPerFrame[113]; - FramerateSecPerFrame_114 = framerateSecPerFrame[114]; - FramerateSecPerFrame_115 = framerateSecPerFrame[115]; - FramerateSecPerFrame_116 = framerateSecPerFrame[116]; - FramerateSecPerFrame_117 = framerateSecPerFrame[117]; - FramerateSecPerFrame_118 = framerateSecPerFrame[118]; - FramerateSecPerFrame_119 = framerateSecPerFrame[119]; - } - FramerateSecPerFrameIdx = framerateSecPerFrameIdx; - FramerateSecPerFrameCount = framerateSecPerFrameCount; - FramerateSecPerFrameAccum = framerateSecPerFrameAccum; - WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; - WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; - WantTextInputNextFrame = wantTextInputNextFrame; - TempBuffer = tempBuffer; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImVector<ImGuiInputEvent> inputEventsQueue = default, ImVector<ImGuiInputEvent> inputEventsTrail = default, ImGuiStyle style = default, ImGuiConfigFlags configFlagsCurrFrame = default, ImGuiConfigFlags configFlagsLastFrame = default, ImFontPtr font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVector<ImGuiWindowPtr> windows = default, ImVector<ImGuiWindowPtr> windowsFocusOrder = default, ImVector<ImGuiWindowPtr> windowsTempSortBuffer = default, ImVector<ImGuiWindowStackData> currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiDockNode* hoveredDockNode = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, float wheelingWindowTimer = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdUsingMouseWheel = default, bool hoveredIdPreviousFrameUsingMouseWheel = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, bool activeIdUsingMouseWheel = default, uint activeIdUsingNavDirMask = default, uint activeIdUsingNavInputMask = default, nuint activeIdUsingKeyInputMask = default, ImGuiItemFlags currentItemFlags = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, ImVector<ImGuiColorMod> colorStack = default, ImVector<ImGuiStyleMod> styleVarStack = default, ImVector<ImFontPtr> fontStack = default, ImVector<uint> focusScopeStack = default, ImVector<ImGuiItemFlags> itemFlagsStack = default, ImVector<ImGuiGroupData> groupStack = default, ImVector<ImGuiPopupData> openPopupStack = default, ImVector<ImGuiPopupData> beginPopupStack = default, int beginMenuCount = default, ImVector<ImGuiViewportPPtr> viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportFrontMostStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, uint navActivateInputId = default, ImGuiActivateFlags navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, ImGuiModFlags navJustMovedToKeyMods = default, uint navNextActivateId = default, ImGuiActivateFlags navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, uint navInitResultId = default, ImRect navInitResultRectRel = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, ImGuiNavMoveFlags navMoveFlags = default, ImGuiScrollFlags navMoveScrollFlags = default, ImGuiModFlags navMoveKeyMods = default, ImGuiDir navMoveDir = default, ImGuiDir navMoveDirForDebug = default, ImGuiDir navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, float dimBgRatio = default, ImGuiMouseCursor mouseCursor = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, ImGuiDragDropFlags dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, ImGuiDragDropFlags dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVector<byte> dragDropPayloadBufHeap = default, Span<byte> dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVector<ImGuiListClipperData> clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVector<ImGuiTableTempData> tablesTempData = default, ImPoolImGuiTable tables = default, ImVector<float> tablesLastTimeActive = default, ImVector<ImDrawChannel> drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVector<ImGuiPtrOrIndex> currentTabBarStack = default, ImVector<ImGuiShrinkWidthItem> shrinkWidthBuffer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, ImGuiColorEditFlags colorEditOptions = default, float colorEditLastHue = default, float colorEditLastSat = default, uint colorEditLastColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short tooltipOverrideCount = default, float tooltipSlowDelay = default, ImVector<byte> clipboardHandlerData = default, ImVector<uint> menusIdSubmittedThisFrame = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, byte platformLocaleDecimalPoint = default, ImGuiDockContext dockContext = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVector<ImGuiSettingsHandler> settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVector<ImGuiContextHook> hooks = default, uint hookIdNext = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, ImGuiDebugLogFlags debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, bool debugItemPickerActive = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiStackTool debugStackTool = default, Span<float> framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVector<byte> tempBuffer = default) - { - Initialized = initialized ? (byte)1 : (byte)0; - FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; - IO = io; - PlatformIO = platformIo; - InputEventsQueue = inputEventsQueue; - InputEventsTrail = inputEventsTrail; - Style = style; - ConfigFlagsCurrFrame = configFlagsCurrFrame; - ConfigFlagsLastFrame = configFlagsLastFrame; - Font = font; - FontSize = fontSize; - FontBaseSize = fontBaseSize; - DrawListSharedData = drawListSharedData; - Time = time; - FrameCount = frameCount; - FrameCountEnded = frameCountEnded; - FrameCountPlatformEnded = frameCountPlatformEnded; - FrameCountRendered = frameCountRendered; - WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; - WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; - WithinEndChild = withinEndChild ? (byte)1 : (byte)0; - GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; - TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; - TestEngine = testEngine; - Windows = windows; - WindowsFocusOrder = windowsFocusOrder; - WindowsTempSortBuffer = windowsTempSortBuffer; - CurrentWindowStack = currentWindowStack; - WindowsById = windowsById; - WindowsActiveCount = windowsActiveCount; - WindowsHoverPadding = windowsHoverPadding; - CurrentWindow = currentWindow; - HoveredWindow = hoveredWindow; - HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; - HoveredDockNode = hoveredDockNode; - MovingWindow = movingWindow; - WheelingWindow = wheelingWindow; - WheelingWindowRefMousePos = wheelingWindowRefMousePos; - WheelingWindowTimer = wheelingWindowTimer; - DebugHookIdInfo = debugHookIdInfo; - HoveredId = hoveredId; - HoveredIdPreviousFrame = hoveredIdPreviousFrame; - HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; - HoveredIdUsingMouseWheel = hoveredIdUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdPreviousFrameUsingMouseWheel = hoveredIdPreviousFrameUsingMouseWheel ? (byte)1 : (byte)0; - HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; - HoveredIdTimer = hoveredIdTimer; - HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; - ActiveId = activeId; - ActiveIdIsAlive = activeIdIsAlive; - ActiveIdTimer = activeIdTimer; - ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; - ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; - ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; - ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; - ActiveIdClickOffset = activeIdClickOffset; - ActiveIdWindow = activeIdWindow; - ActiveIdSource = activeIdSource; - ActiveIdMouseButton = activeIdMouseButton; - ActiveIdPreviousFrame = activeIdPreviousFrame; - ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; - ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; - ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; - LastActiveId = lastActiveId; - LastActiveIdTimer = lastActiveIdTimer; - ActiveIdUsingMouseWheel = activeIdUsingMouseWheel ? (byte)1 : (byte)0; - ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; - ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; - ActiveIdUsingKeyInputMask = activeIdUsingKeyInputMask; - CurrentItemFlags = currentItemFlags; - NextItemData = nextItemData; - LastItemData = lastItemData; - NextWindowData = nextWindowData; - ColorStack = colorStack; - StyleVarStack = styleVarStack; - FontStack = fontStack; - FocusScopeStack = focusScopeStack; - ItemFlagsStack = itemFlagsStack; - GroupStack = groupStack; - OpenPopupStack = openPopupStack; - BeginPopupStack = beginPopupStack; - BeginMenuCount = beginMenuCount; - Viewports = viewports; - CurrentDpiScale = currentDpiScale; - CurrentViewport = currentViewport; - MouseViewport = mouseViewport; - MouseLastHoveredViewport = mouseLastHoveredViewport; - PlatformLastFocusedViewportId = platformLastFocusedViewportId; - FallbackMonitor = fallbackMonitor; - ViewportFrontMostStampCount = viewportFrontMostStampCount; - NavWindow = navWindow; - NavId = navId; - NavFocusScopeId = navFocusScopeId; - NavActivateId = navActivateId; - NavActivateDownId = navActivateDownId; - NavActivatePressedId = navActivatePressedId; - NavActivateInputId = navActivateInputId; - NavActivateFlags = navActivateFlags; - NavJustMovedToId = navJustMovedToId; - NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; - NavJustMovedToKeyMods = navJustMovedToKeyMods; - NavNextActivateId = navNextActivateId; - NavNextActivateFlags = navNextActivateFlags; - NavInputSource = navInputSource; - NavLayer = navLayer; - NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; - NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; - NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; - NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; - NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; - NavInitRequest = navInitRequest ? (byte)1 : (byte)0; - NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; - NavInitResultId = navInitResultId; - NavInitResultRectRel = navInitResultRectRel; - NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; - NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; - NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; - NavMoveFlags = navMoveFlags; - NavMoveScrollFlags = navMoveScrollFlags; - NavMoveKeyMods = navMoveKeyMods; - NavMoveDir = navMoveDir; - NavMoveDirForDebug = navMoveDirForDebug; - NavMoveClipDir = navMoveClipDir; - NavScoringRect = navScoringRect; - NavScoringNoClipRect = navScoringNoClipRect; - NavScoringDebugCount = navScoringDebugCount; - NavTabbingDir = navTabbingDir; - NavTabbingCounter = navTabbingCounter; - NavMoveResultLocal = navMoveResultLocal; - NavMoveResultLocalVisible = navMoveResultLocalVisible; - NavMoveResultOther = navMoveResultOther; - NavTabbingResultFirst = navTabbingResultFirst; - NavWindowingTarget = navWindowingTarget; - NavWindowingTargetAnim = navWindowingTargetAnim; - NavWindowingListWindow = navWindowingListWindow; - NavWindowingTimer = navWindowingTimer; - NavWindowingHighlightAlpha = navWindowingHighlightAlpha; - NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; - DimBgRatio = dimBgRatio; - MouseCursor = mouseCursor; - DragDropActive = dragDropActive ? (byte)1 : (byte)0; - DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; - DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; - DragDropSourceFlags = dragDropSourceFlags; - DragDropSourceFrameCount = dragDropSourceFrameCount; - DragDropMouseButton = dragDropMouseButton; - DragDropPayload = dragDropPayload; - DragDropTargetRect = dragDropTargetRect; - DragDropTargetId = dragDropTargetId; - DragDropAcceptFlags = dragDropAcceptFlags; - DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; - DragDropAcceptIdCurr = dragDropAcceptIdCurr; - DragDropAcceptIdPrev = dragDropAcceptIdPrev; - DragDropAcceptFrameCount = dragDropAcceptFrameCount; - DragDropHoldJustPressedId = dragDropHoldJustPressedId; - DragDropPayloadBufHeap = dragDropPayloadBufHeap; - if (dragDropPayloadBufLocal != default(Span<byte>)) - { - DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; - DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; - DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; - DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; - DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; - DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; - DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; - DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; - DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; - DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; - DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; - DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; - DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; - DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; - DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; - DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; - } - ClipperTempDataStacked = clipperTempDataStacked; - ClipperTempData = clipperTempData; - CurrentTable = currentTable; - TablesTempDataStacked = tablesTempDataStacked; - TablesTempData = tablesTempData; - Tables = tables; - TablesLastTimeActive = tablesLastTimeActive; - DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; - CurrentTabBar = currentTabBar; - TabBars = tabBars; - CurrentTabBarStack = currentTabBarStack; - ShrinkWidthBuffer = shrinkWidthBuffer; - MouseLastValidPos = mouseLastValidPos; - InputTextState = inputTextState; - InputTextPasswordFont = inputTextPasswordFont; - TempInputId = tempInputId; - ColorEditOptions = colorEditOptions; - ColorEditLastHue = colorEditLastHue; - ColorEditLastSat = colorEditLastSat; - ColorEditLastColor = colorEditLastColor; - ColorPickerRef = colorPickerRef; - ComboPreviewData = comboPreviewData; - SliderGrabClickOffset = sliderGrabClickOffset; - SliderCurrentAccum = sliderCurrentAccum; - SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; - DragCurrentAccum = dragCurrentAccum; - DragSpeedDefaultRatio = dragSpeedDefaultRatio; - ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; - DisabledAlphaBackup = disabledAlphaBackup; - DisabledStackSize = disabledStackSize; - TooltipOverrideCount = tooltipOverrideCount; - TooltipSlowDelay = tooltipSlowDelay; - ClipboardHandlerData = clipboardHandlerData; - MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; - PlatformImeData = platformImeData; - PlatformImeDataPrev = platformImeDataPrev; - PlatformImeViewport = platformImeViewport; - PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; - DockContext = dockContext; - SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; - SettingsDirtyTimer = settingsDirtyTimer; - SettingsIniData = settingsIniData; - SettingsHandlers = settingsHandlers; - SettingsWindows = settingsWindows; - SettingsTables = settingsTables; - Hooks = hooks; - HookIdNext = hookIdNext; - LogEnabled = logEnabled ? (byte)1 : (byte)0; - LogType = logType; - LogFile = logFile; - LogBuffer = logBuffer; - LogNextPrefix = logNextPrefix; - LogNextSuffix = logNextSuffix; - LogLinePosY = logLinePosY; - LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; - LogDepthRef = logDepthRef; - LogDepthToExpand = logDepthToExpand; - LogDepthToExpandDefault = logDepthToExpandDefault; - DebugLogFlags = debugLogFlags; - DebugLogBuf = debugLogBuf; - DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; - DebugItemPickerBreakId = debugItemPickerBreakId; - DebugMetricsConfig = debugMetricsConfig; - DebugStackTool = debugStackTool; - if (framerateSecPerFrame != default(Span<float>)) - { - FramerateSecPerFrame_0 = framerateSecPerFrame[0]; - FramerateSecPerFrame_1 = framerateSecPerFrame[1]; - FramerateSecPerFrame_2 = framerateSecPerFrame[2]; - FramerateSecPerFrame_3 = framerateSecPerFrame[3]; - FramerateSecPerFrame_4 = framerateSecPerFrame[4]; - FramerateSecPerFrame_5 = framerateSecPerFrame[5]; - FramerateSecPerFrame_6 = framerateSecPerFrame[6]; - FramerateSecPerFrame_7 = framerateSecPerFrame[7]; - FramerateSecPerFrame_8 = framerateSecPerFrame[8]; - FramerateSecPerFrame_9 = framerateSecPerFrame[9]; - FramerateSecPerFrame_10 = framerateSecPerFrame[10]; - FramerateSecPerFrame_11 = framerateSecPerFrame[11]; - FramerateSecPerFrame_12 = framerateSecPerFrame[12]; - FramerateSecPerFrame_13 = framerateSecPerFrame[13]; - FramerateSecPerFrame_14 = framerateSecPerFrame[14]; - FramerateSecPerFrame_15 = framerateSecPerFrame[15]; - FramerateSecPerFrame_16 = framerateSecPerFrame[16]; - FramerateSecPerFrame_17 = framerateSecPerFrame[17]; - FramerateSecPerFrame_18 = framerateSecPerFrame[18]; - FramerateSecPerFrame_19 = framerateSecPerFrame[19]; - FramerateSecPerFrame_20 = framerateSecPerFrame[20]; - FramerateSecPerFrame_21 = framerateSecPerFrame[21]; - FramerateSecPerFrame_22 = framerateSecPerFrame[22]; - FramerateSecPerFrame_23 = framerateSecPerFrame[23]; - FramerateSecPerFrame_24 = framerateSecPerFrame[24]; - FramerateSecPerFrame_25 = framerateSecPerFrame[25]; - FramerateSecPerFrame_26 = framerateSecPerFrame[26]; - FramerateSecPerFrame_27 = framerateSecPerFrame[27]; - FramerateSecPerFrame_28 = framerateSecPerFrame[28]; - FramerateSecPerFrame_29 = framerateSecPerFrame[29]; - FramerateSecPerFrame_30 = framerateSecPerFrame[30]; - FramerateSecPerFrame_31 = framerateSecPerFrame[31]; - FramerateSecPerFrame_32 = framerateSecPerFrame[32]; - FramerateSecPerFrame_33 = framerateSecPerFrame[33]; - FramerateSecPerFrame_34 = framerateSecPerFrame[34]; - FramerateSecPerFrame_35 = framerateSecPerFrame[35]; - FramerateSecPerFrame_36 = framerateSecPerFrame[36]; - FramerateSecPerFrame_37 = framerateSecPerFrame[37]; - FramerateSecPerFrame_38 = framerateSecPerFrame[38]; - FramerateSecPerFrame_39 = framerateSecPerFrame[39]; - FramerateSecPerFrame_40 = framerateSecPerFrame[40]; - FramerateSecPerFrame_41 = framerateSecPerFrame[41]; - FramerateSecPerFrame_42 = framerateSecPerFrame[42]; - FramerateSecPerFrame_43 = framerateSecPerFrame[43]; - FramerateSecPerFrame_44 = framerateSecPerFrame[44]; - FramerateSecPerFrame_45 = framerateSecPerFrame[45]; - FramerateSecPerFrame_46 = framerateSecPerFrame[46]; - FramerateSecPerFrame_47 = framerateSecPerFrame[47]; - FramerateSecPerFrame_48 = framerateSecPerFrame[48]; - FramerateSecPerFrame_49 = framerateSecPerFrame[49]; - FramerateSecPerFrame_50 = framerateSecPerFrame[50]; - FramerateSecPerFrame_51 = framerateSecPerFrame[51]; - FramerateSecPerFrame_52 = framerateSecPerFrame[52]; - FramerateSecPerFrame_53 = framerateSecPerFrame[53]; - FramerateSecPerFrame_54 = framerateSecPerFrame[54]; - FramerateSecPerFrame_55 = framerateSecPerFrame[55]; - FramerateSecPerFrame_56 = framerateSecPerFrame[56]; - FramerateSecPerFrame_57 = framerateSecPerFrame[57]; - FramerateSecPerFrame_58 = framerateSecPerFrame[58]; - FramerateSecPerFrame_59 = framerateSecPerFrame[59]; - FramerateSecPerFrame_60 = framerateSecPerFrame[60]; - FramerateSecPerFrame_61 = framerateSecPerFrame[61]; - FramerateSecPerFrame_62 = framerateSecPerFrame[62]; - FramerateSecPerFrame_63 = framerateSecPerFrame[63]; - FramerateSecPerFrame_64 = framerateSecPerFrame[64]; - FramerateSecPerFrame_65 = framerateSecPerFrame[65]; - FramerateSecPerFrame_66 = framerateSecPerFrame[66]; - FramerateSecPerFrame_67 = framerateSecPerFrame[67]; - FramerateSecPerFrame_68 = framerateSecPerFrame[68]; - FramerateSecPerFrame_69 = framerateSecPerFrame[69]; - FramerateSecPerFrame_70 = framerateSecPerFrame[70]; - FramerateSecPerFrame_71 = framerateSecPerFrame[71]; - FramerateSecPerFrame_72 = framerateSecPerFrame[72]; - FramerateSecPerFrame_73 = framerateSecPerFrame[73]; - FramerateSecPerFrame_74 = framerateSecPerFrame[74]; - FramerateSecPerFrame_75 = framerateSecPerFrame[75]; - FramerateSecPerFrame_76 = framerateSecPerFrame[76]; - FramerateSecPerFrame_77 = framerateSecPerFrame[77]; - FramerateSecPerFrame_78 = framerateSecPerFrame[78]; - FramerateSecPerFrame_79 = framerateSecPerFrame[79]; - FramerateSecPerFrame_80 = framerateSecPerFrame[80]; - FramerateSecPerFrame_81 = framerateSecPerFrame[81]; - FramerateSecPerFrame_82 = framerateSecPerFrame[82]; - FramerateSecPerFrame_83 = framerateSecPerFrame[83]; - FramerateSecPerFrame_84 = framerateSecPerFrame[84]; - FramerateSecPerFrame_85 = framerateSecPerFrame[85]; - FramerateSecPerFrame_86 = framerateSecPerFrame[86]; - FramerateSecPerFrame_87 = framerateSecPerFrame[87]; - FramerateSecPerFrame_88 = framerateSecPerFrame[88]; - FramerateSecPerFrame_89 = framerateSecPerFrame[89]; - FramerateSecPerFrame_90 = framerateSecPerFrame[90]; - FramerateSecPerFrame_91 = framerateSecPerFrame[91]; - FramerateSecPerFrame_92 = framerateSecPerFrame[92]; - FramerateSecPerFrame_93 = framerateSecPerFrame[93]; - FramerateSecPerFrame_94 = framerateSecPerFrame[94]; - FramerateSecPerFrame_95 = framerateSecPerFrame[95]; - FramerateSecPerFrame_96 = framerateSecPerFrame[96]; - FramerateSecPerFrame_97 = framerateSecPerFrame[97]; - FramerateSecPerFrame_98 = framerateSecPerFrame[98]; - FramerateSecPerFrame_99 = framerateSecPerFrame[99]; - FramerateSecPerFrame_100 = framerateSecPerFrame[100]; - FramerateSecPerFrame_101 = framerateSecPerFrame[101]; - FramerateSecPerFrame_102 = framerateSecPerFrame[102]; - FramerateSecPerFrame_103 = framerateSecPerFrame[103]; - FramerateSecPerFrame_104 = framerateSecPerFrame[104]; - FramerateSecPerFrame_105 = framerateSecPerFrame[105]; - FramerateSecPerFrame_106 = framerateSecPerFrame[106]; - FramerateSecPerFrame_107 = framerateSecPerFrame[107]; - FramerateSecPerFrame_108 = framerateSecPerFrame[108]; - FramerateSecPerFrame_109 = framerateSecPerFrame[109]; - FramerateSecPerFrame_110 = framerateSecPerFrame[110]; - FramerateSecPerFrame_111 = framerateSecPerFrame[111]; - FramerateSecPerFrame_112 = framerateSecPerFrame[112]; - FramerateSecPerFrame_113 = framerateSecPerFrame[113]; - FramerateSecPerFrame_114 = framerateSecPerFrame[114]; - FramerateSecPerFrame_115 = framerateSecPerFrame[115]; - FramerateSecPerFrame_116 = framerateSecPerFrame[116]; - FramerateSecPerFrame_117 = framerateSecPerFrame[117]; - FramerateSecPerFrame_118 = framerateSecPerFrame[118]; - FramerateSecPerFrame_119 = framerateSecPerFrame[119]; - } - FramerateSecPerFrameIdx = framerateSecPerFrameIdx; - FramerateSecPerFrameCount = framerateSecPerFrameCount; - FramerateSecPerFrameAccum = framerateSecPerFrameAccum; - WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; - WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; - WantTextInputNextFrame = wantTextInputNextFrame; - TempBuffer = tempBuffer; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiContext* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiContextPtr : IEquatable<ImGuiContextPtr> - { - public ImGuiContextPtr(ImGuiContext* handle) { Handle = handle; } - - public ImGuiContext* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiContextPtr Null => new ImGuiContextPtr(null); - - public ImGuiContext this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiContextPtr(ImGuiContext* handle) => new ImGuiContextPtr(handle); - - public static implicit operator ImGuiContext*(ImGuiContextPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiContextPtr left, ImGuiContextPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiContextPtr left, ImGuiContext* right) => left.Handle == right; - - public static bool operator !=(ImGuiContextPtr left, ImGuiContext* right) => left.Handle != right; - - public bool Equals(ImGuiContextPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiContextPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref bool Initialized => ref Unsafe.AsRef<bool>(&Handle->Initialized); - /// <summary> - /// To be documented. - /// </summary> - public ref bool FontAtlasOwnedByContext => ref Unsafe.AsRef<bool>(&Handle->FontAtlasOwnedByContext); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiIO IO => ref Unsafe.AsRef<ImGuiIO>(&Handle->IO); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiPlatformIO PlatformIO => ref Unsafe.AsRef<ImGuiPlatformIO>(&Handle->PlatformIO); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiInputEvent> InputEventsQueue => ref Unsafe.AsRef<ImVector<ImGuiInputEvent>>(&Handle->InputEventsQueue); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiInputEvent> InputEventsTrail => ref Unsafe.AsRef<ImVector<ImGuiInputEvent>>(&Handle->InputEventsTrail); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStyle Style => ref Unsafe.AsRef<ImGuiStyle>(&Handle->Style); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiConfigFlags ConfigFlagsCurrFrame => ref Unsafe.AsRef<ImGuiConfigFlags>(&Handle->ConfigFlagsCurrFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiConfigFlags ConfigFlagsLastFrame => ref Unsafe.AsRef<ImGuiConfigFlags>(&Handle->ConfigFlagsLastFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontPtr Font => ref Unsafe.AsRef<ImFontPtr>(&Handle->Font); - /// <summary> - /// To be documented. - /// </summary> - public ref float FontSize => ref Unsafe.AsRef<float>(&Handle->FontSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float FontBaseSize => ref Unsafe.AsRef<float>(&Handle->FontBaseSize); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListSharedData DrawListSharedData => ref Unsafe.AsRef<ImDrawListSharedData>(&Handle->DrawListSharedData); - /// <summary> - /// To be documented. - /// </summary> - public ref double Time => ref Unsafe.AsRef<double>(&Handle->Time); - /// <summary> - /// To be documented. - /// </summary> - public ref int FrameCount => ref Unsafe.AsRef<int>(&Handle->FrameCount); - /// <summary> - /// To be documented. - /// </summary> - public ref int FrameCountEnded => ref Unsafe.AsRef<int>(&Handle->FrameCountEnded); - /// <summary> - /// To be documented. - /// </summary> - public ref int FrameCountPlatformEnded => ref Unsafe.AsRef<int>(&Handle->FrameCountPlatformEnded); - /// <summary> - /// To be documented. - /// </summary> - public ref int FrameCountRendered => ref Unsafe.AsRef<int>(&Handle->FrameCountRendered); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WithinFrameScope => ref Unsafe.AsRef<bool>(&Handle->WithinFrameScope); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WithinFrameScopeWithImplicitWindow => ref Unsafe.AsRef<bool>(&Handle->WithinFrameScopeWithImplicitWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WithinEndChild => ref Unsafe.AsRef<bool>(&Handle->WithinEndChild); - /// <summary> - /// To be documented. - /// </summary> - public ref bool GcCompactAll => ref Unsafe.AsRef<bool>(&Handle->GcCompactAll); - /// <summary> - /// To be documented. - /// </summary> - public ref bool TestEngineHookItems => ref Unsafe.AsRef<bool>(&Handle->TestEngineHookItems); - /// <summary> - /// To be documented. - /// </summary> - public void* TestEngine { get => Handle->TestEngine; set => Handle->TestEngine = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiWindowPtr> Windows => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->Windows); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiWindowPtr> WindowsFocusOrder => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->WindowsFocusOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiWindowPtr> WindowsTempSortBuffer => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->WindowsTempSortBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiWindowStackData> CurrentWindowStack => ref Unsafe.AsRef<ImVector<ImGuiWindowStackData>>(&Handle->CurrentWindowStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStorage WindowsById => ref Unsafe.AsRef<ImGuiStorage>(&Handle->WindowsById); - /// <summary> - /// To be documented. - /// </summary> - public ref int WindowsActiveCount => ref Unsafe.AsRef<int>(&Handle->WindowsActiveCount); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WindowsHoverPadding => ref Unsafe.AsRef<Vector2>(&Handle->WindowsHoverPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr CurrentWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->CurrentWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr HoveredWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->HoveredWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr HoveredWindowUnderMovingWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->HoveredWindowUnderMovingWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodePtr HoveredDockNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->HoveredDockNode); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr MovingWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->MovingWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr WheelingWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->WheelingWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WheelingWindowRefMousePos => ref Unsafe.AsRef<Vector2>(&Handle->WheelingWindowRefMousePos); - /// <summary> - /// To be documented. - /// </summary> - public ref float WheelingWindowTimer => ref Unsafe.AsRef<float>(&Handle->WheelingWindowTimer); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DebugHookIdInfo => ref Unsafe.AsRef<uint>(&Handle->DebugHookIdInfo); - /// <summary> - /// To be documented. - /// </summary> - public ref uint HoveredId => ref Unsafe.AsRef<uint>(&Handle->HoveredId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint HoveredIdPreviousFrame => ref Unsafe.AsRef<uint>(&Handle->HoveredIdPreviousFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HoveredIdAllowOverlap => ref Unsafe.AsRef<bool>(&Handle->HoveredIdAllowOverlap); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HoveredIdUsingMouseWheel => ref Unsafe.AsRef<bool>(&Handle->HoveredIdUsingMouseWheel); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HoveredIdPreviousFrameUsingMouseWheel => ref Unsafe.AsRef<bool>(&Handle->HoveredIdPreviousFrameUsingMouseWheel); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HoveredIdDisabled => ref Unsafe.AsRef<bool>(&Handle->HoveredIdDisabled); - /// <summary> - /// To be documented. - /// </summary> - public ref float HoveredIdTimer => ref Unsafe.AsRef<float>(&Handle->HoveredIdTimer); - /// <summary> - /// To be documented. - /// </summary> - public ref float HoveredIdNotActiveTimer => ref Unsafe.AsRef<float>(&Handle->HoveredIdNotActiveTimer); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ActiveId => ref Unsafe.AsRef<uint>(&Handle->ActiveId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ActiveIdIsAlive => ref Unsafe.AsRef<uint>(&Handle->ActiveIdIsAlive); - /// <summary> - /// To be documented. - /// </summary> - public ref float ActiveIdTimer => ref Unsafe.AsRef<float>(&Handle->ActiveIdTimer); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdIsJustActivated => ref Unsafe.AsRef<bool>(&Handle->ActiveIdIsJustActivated); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdAllowOverlap => ref Unsafe.AsRef<bool>(&Handle->ActiveIdAllowOverlap); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdNoClearOnFocusLoss => ref Unsafe.AsRef<bool>(&Handle->ActiveIdNoClearOnFocusLoss); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdHasBeenPressedBefore => ref Unsafe.AsRef<bool>(&Handle->ActiveIdHasBeenPressedBefore); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdHasBeenEditedBefore => ref Unsafe.AsRef<bool>(&Handle->ActiveIdHasBeenEditedBefore); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdHasBeenEditedThisFrame => ref Unsafe.AsRef<bool>(&Handle->ActiveIdHasBeenEditedThisFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ActiveIdClickOffset => ref Unsafe.AsRef<Vector2>(&Handle->ActiveIdClickOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr ActiveIdWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ActiveIdWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputSource ActiveIdSource => ref Unsafe.AsRef<ImGuiInputSource>(&Handle->ActiveIdSource); - /// <summary> - /// To be documented. - /// </summary> - public ref int ActiveIdMouseButton => ref Unsafe.AsRef<int>(&Handle->ActiveIdMouseButton); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ActiveIdPreviousFrame => ref Unsafe.AsRef<uint>(&Handle->ActiveIdPreviousFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef<bool>(&Handle->ActiveIdPreviousFrameIsAlive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdPreviousFrameHasBeenEditedBefore => ref Unsafe.AsRef<bool>(&Handle->ActiveIdPreviousFrameHasBeenEditedBefore); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr ActiveIdPreviousFrameWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ActiveIdPreviousFrameWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref uint LastActiveId => ref Unsafe.AsRef<uint>(&Handle->LastActiveId); - /// <summary> - /// To be documented. - /// </summary> - public ref float LastActiveIdTimer => ref Unsafe.AsRef<float>(&Handle->LastActiveIdTimer); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ActiveIdUsingMouseWheel => ref Unsafe.AsRef<bool>(&Handle->ActiveIdUsingMouseWheel); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ActiveIdUsingNavDirMask => ref Unsafe.AsRef<uint>(&Handle->ActiveIdUsingNavDirMask); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ActiveIdUsingNavInputMask => ref Unsafe.AsRef<uint>(&Handle->ActiveIdUsingNavInputMask); - /// <summary> - /// To be documented. - /// </summary> - public ref nuint ActiveIdUsingKeyInputMask => ref Unsafe.AsRef<nuint>(&Handle->ActiveIdUsingKeyInputMask); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiItemFlags CurrentItemFlags => ref Unsafe.AsRef<ImGuiItemFlags>(&Handle->CurrentItemFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNextItemData NextItemData => ref Unsafe.AsRef<ImGuiNextItemData>(&Handle->NextItemData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiLastItemData LastItemData => ref Unsafe.AsRef<ImGuiLastItemData>(&Handle->LastItemData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNextWindowData NextWindowData => ref Unsafe.AsRef<ImGuiNextWindowData>(&Handle->NextWindowData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiColorMod> ColorStack => ref Unsafe.AsRef<ImVector<ImGuiColorMod>>(&Handle->ColorStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiStyleMod> StyleVarStack => ref Unsafe.AsRef<ImVector<ImGuiStyleMod>>(&Handle->StyleVarStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImFontPtr> FontStack => ref Unsafe.AsRef<ImVector<ImFontPtr>>(&Handle->FontStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<uint> FocusScopeStack => ref Unsafe.AsRef<ImVector<uint>>(&Handle->FocusScopeStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiItemFlags> ItemFlagsStack => ref Unsafe.AsRef<ImVector<ImGuiItemFlags>>(&Handle->ItemFlagsStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiGroupData> GroupStack => ref Unsafe.AsRef<ImVector<ImGuiGroupData>>(&Handle->GroupStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiPopupData> OpenPopupStack => ref Unsafe.AsRef<ImVector<ImGuiPopupData>>(&Handle->OpenPopupStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiPopupData> BeginPopupStack => ref Unsafe.AsRef<ImVector<ImGuiPopupData>>(&Handle->BeginPopupStack); - /// <summary> - /// To be documented. - /// </summary> - public ref int BeginMenuCount => ref Unsafe.AsRef<int>(&Handle->BeginMenuCount); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiViewportPPtr> Viewports => ref Unsafe.AsRef<ImVector<ImGuiViewportPPtr>>(&Handle->Viewports); - /// <summary> - /// To be documented. - /// </summary> - public ref float CurrentDpiScale => ref Unsafe.AsRef<float>(&Handle->CurrentDpiScale); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportPPtr CurrentViewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->CurrentViewport); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportPPtr MouseViewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->MouseViewport); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportPPtr MouseLastHoveredViewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->MouseLastHoveredViewport); - /// <summary> - /// To be documented. - /// </summary> - public ref uint PlatformLastFocusedViewportId => ref Unsafe.AsRef<uint>(&Handle->PlatformLastFocusedViewportId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiPlatformMonitor FallbackMonitor => ref Unsafe.AsRef<ImGuiPlatformMonitor>(&Handle->FallbackMonitor); - /// <summary> - /// To be documented. - /// </summary> - public ref int ViewportFrontMostStampCount => ref Unsafe.AsRef<int>(&Handle->ViewportFrontMostStampCount); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr NavWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavId => ref Unsafe.AsRef<uint>(&Handle->NavId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavFocusScopeId => ref Unsafe.AsRef<uint>(&Handle->NavFocusScopeId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavActivateId => ref Unsafe.AsRef<uint>(&Handle->NavActivateId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavActivateDownId => ref Unsafe.AsRef<uint>(&Handle->NavActivateDownId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavActivatePressedId => ref Unsafe.AsRef<uint>(&Handle->NavActivatePressedId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavActivateInputId => ref Unsafe.AsRef<uint>(&Handle->NavActivateInputId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiActivateFlags NavActivateFlags => ref Unsafe.AsRef<ImGuiActivateFlags>(&Handle->NavActivateFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavJustMovedToId => ref Unsafe.AsRef<uint>(&Handle->NavJustMovedToId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavJustMovedToFocusScopeId => ref Unsafe.AsRef<uint>(&Handle->NavJustMovedToFocusScopeId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags NavJustMovedToKeyMods => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->NavJustMovedToKeyMods); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavNextActivateId => ref Unsafe.AsRef<uint>(&Handle->NavNextActivateId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiActivateFlags NavNextActivateFlags => ref Unsafe.AsRef<ImGuiActivateFlags>(&Handle->NavNextActivateFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputSource NavInputSource => ref Unsafe.AsRef<ImGuiInputSource>(&Handle->NavInputSource); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNavLayer NavLayer => ref Unsafe.AsRef<ImGuiNavLayer>(&Handle->NavLayer); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavIdIsAlive => ref Unsafe.AsRef<bool>(&Handle->NavIdIsAlive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavMousePosDirty => ref Unsafe.AsRef<bool>(&Handle->NavMousePosDirty); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavDisableHighlight => ref Unsafe.AsRef<bool>(&Handle->NavDisableHighlight); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavDisableMouseHover => ref Unsafe.AsRef<bool>(&Handle->NavDisableMouseHover); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavAnyRequest => ref Unsafe.AsRef<bool>(&Handle->NavAnyRequest); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavInitRequest => ref Unsafe.AsRef<bool>(&Handle->NavInitRequest); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavInitRequestFromMove => ref Unsafe.AsRef<bool>(&Handle->NavInitRequestFromMove); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NavInitResultId => ref Unsafe.AsRef<uint>(&Handle->NavInitResultId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect NavInitResultRectRel => ref Unsafe.AsRef<ImRect>(&Handle->NavInitResultRectRel); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavMoveSubmitted => ref Unsafe.AsRef<bool>(&Handle->NavMoveSubmitted); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavMoveScoringItems => ref Unsafe.AsRef<bool>(&Handle->NavMoveScoringItems); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavMoveForwardToNextFrame => ref Unsafe.AsRef<bool>(&Handle->NavMoveForwardToNextFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNavMoveFlags NavMoveFlags => ref Unsafe.AsRef<ImGuiNavMoveFlags>(&Handle->NavMoveFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiScrollFlags NavMoveScrollFlags => ref Unsafe.AsRef<ImGuiScrollFlags>(&Handle->NavMoveScrollFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags NavMoveKeyMods => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->NavMoveKeyMods); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDir NavMoveDir => ref Unsafe.AsRef<ImGuiDir>(&Handle->NavMoveDir); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDir NavMoveDirForDebug => ref Unsafe.AsRef<ImGuiDir>(&Handle->NavMoveDirForDebug); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDir NavMoveClipDir => ref Unsafe.AsRef<ImGuiDir>(&Handle->NavMoveClipDir); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect NavScoringRect => ref Unsafe.AsRef<ImRect>(&Handle->NavScoringRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect NavScoringNoClipRect => ref Unsafe.AsRef<ImRect>(&Handle->NavScoringNoClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref int NavScoringDebugCount => ref Unsafe.AsRef<int>(&Handle->NavScoringDebugCount); - /// <summary> - /// To be documented. - /// </summary> - public ref int NavTabbingDir => ref Unsafe.AsRef<int>(&Handle->NavTabbingDir); - /// <summary> - /// To be documented. - /// </summary> - public ref int NavTabbingCounter => ref Unsafe.AsRef<int>(&Handle->NavTabbingCounter); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNavItemData NavMoveResultLocal => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavMoveResultLocal); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNavItemData NavMoveResultLocalVisible => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavMoveResultLocalVisible); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNavItemData NavMoveResultOther => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavMoveResultOther); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNavItemData NavTabbingResultFirst => ref Unsafe.AsRef<ImGuiNavItemData>(&Handle->NavTabbingResultFirst); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr NavWindowingTarget => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindowingTarget); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr NavWindowingTargetAnim => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindowingTargetAnim); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr NavWindowingListWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavWindowingListWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref float NavWindowingTimer => ref Unsafe.AsRef<float>(&Handle->NavWindowingTimer); - /// <summary> - /// To be documented. - /// </summary> - public ref float NavWindowingHighlightAlpha => ref Unsafe.AsRef<float>(&Handle->NavWindowingHighlightAlpha); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavWindowingToggleLayer => ref Unsafe.AsRef<bool>(&Handle->NavWindowingToggleLayer); - /// <summary> - /// To be documented. - /// </summary> - public ref float DimBgRatio => ref Unsafe.AsRef<float>(&Handle->DimBgRatio); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiMouseCursor MouseCursor => ref Unsafe.AsRef<ImGuiMouseCursor>(&Handle->MouseCursor); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DragDropActive => ref Unsafe.AsRef<bool>(&Handle->DragDropActive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DragDropWithinSource => ref Unsafe.AsRef<bool>(&Handle->DragDropWithinSource); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DragDropWithinTarget => ref Unsafe.AsRef<bool>(&Handle->DragDropWithinTarget); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDragDropFlags DragDropSourceFlags => ref Unsafe.AsRef<ImGuiDragDropFlags>(&Handle->DragDropSourceFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref int DragDropSourceFrameCount => ref Unsafe.AsRef<int>(&Handle->DragDropSourceFrameCount); - /// <summary> - /// To be documented. - /// </summary> - public ref int DragDropMouseButton => ref Unsafe.AsRef<int>(&Handle->DragDropMouseButton); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiPayload DragDropPayload => ref Unsafe.AsRef<ImGuiPayload>(&Handle->DragDropPayload); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect DragDropTargetRect => ref Unsafe.AsRef<ImRect>(&Handle->DragDropTargetRect); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DragDropTargetId => ref Unsafe.AsRef<uint>(&Handle->DragDropTargetId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDragDropFlags DragDropAcceptFlags => ref Unsafe.AsRef<ImGuiDragDropFlags>(&Handle->DragDropAcceptFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref float DragDropAcceptIdCurrRectSurface => ref Unsafe.AsRef<float>(&Handle->DragDropAcceptIdCurrRectSurface); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DragDropAcceptIdCurr => ref Unsafe.AsRef<uint>(&Handle->DragDropAcceptIdCurr); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DragDropAcceptIdPrev => ref Unsafe.AsRef<uint>(&Handle->DragDropAcceptIdPrev); - /// <summary> - /// To be documented. - /// </summary> - public ref int DragDropAcceptFrameCount => ref Unsafe.AsRef<int>(&Handle->DragDropAcceptFrameCount); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DragDropHoldJustPressedId => ref Unsafe.AsRef<uint>(&Handle->DragDropHoldJustPressedId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<byte> DragDropPayloadBufHeap => ref Unsafe.AsRef<ImVector<byte>>(&Handle->DragDropPayloadBufHeap); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> DragDropPayloadBufLocal - - { - get - { - return new Span<byte>(&Handle->DragDropPayloadBufLocal_0, 16); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref int ClipperTempDataStacked => ref Unsafe.AsRef<int>(&Handle->ClipperTempDataStacked); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiListClipperData> ClipperTempData => ref Unsafe.AsRef<ImVector<ImGuiListClipperData>>(&Handle->ClipperTempData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTablePtr CurrentTable => ref Unsafe.AsRef<ImGuiTablePtr>(&Handle->CurrentTable); - /// <summary> - /// To be documented. - /// </summary> - public ref int TablesTempDataStacked => ref Unsafe.AsRef<int>(&Handle->TablesTempDataStacked); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiTableTempData> TablesTempData => ref Unsafe.AsRef<ImVector<ImGuiTableTempData>>(&Handle->TablesTempData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPoolImGuiTable Tables => ref Unsafe.AsRef<ImPoolImGuiTable>(&Handle->Tables); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<float> TablesLastTimeActive => ref Unsafe.AsRef<ImVector<float>>(&Handle->TablesLastTimeActive); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImDrawChannel> DrawChannelsTempMergeBuffer => ref Unsafe.AsRef<ImVector<ImDrawChannel>>(&Handle->DrawChannelsTempMergeBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTabBarPtr CurrentTabBar => ref Unsafe.AsRef<ImGuiTabBarPtr>(&Handle->CurrentTabBar); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPoolImGuiTabBar TabBars => ref Unsafe.AsRef<ImPoolImGuiTabBar>(&Handle->TabBars); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiPtrOrIndex> CurrentTabBarStack => ref Unsafe.AsRef<ImVector<ImGuiPtrOrIndex>>(&Handle->CurrentTabBarStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiShrinkWidthItem> ShrinkWidthBuffer => ref Unsafe.AsRef<ImVector<ImGuiShrinkWidthItem>>(&Handle->ShrinkWidthBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MouseLastValidPos => ref Unsafe.AsRef<Vector2>(&Handle->MouseLastValidPos); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputTextState InputTextState => ref Unsafe.AsRef<ImGuiInputTextState>(&Handle->InputTextState); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFont InputTextPasswordFont => ref Unsafe.AsRef<ImFont>(&Handle->InputTextPasswordFont); - /// <summary> - /// To be documented. - /// </summary> - public ref uint TempInputId => ref Unsafe.AsRef<uint>(&Handle->TempInputId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiColorEditFlags ColorEditOptions => ref Unsafe.AsRef<ImGuiColorEditFlags>(&Handle->ColorEditOptions); - /// <summary> - /// To be documented. - /// </summary> - public ref float ColorEditLastHue => ref Unsafe.AsRef<float>(&Handle->ColorEditLastHue); - /// <summary> - /// To be documented. - /// </summary> - public ref float ColorEditLastSat => ref Unsafe.AsRef<float>(&Handle->ColorEditLastSat); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorEditLastColor => ref Unsafe.AsRef<uint>(&Handle->ColorEditLastColor); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector4 ColorPickerRef => ref Unsafe.AsRef<Vector4>(&Handle->ColorPickerRef); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiComboPreviewData ComboPreviewData => ref Unsafe.AsRef<ImGuiComboPreviewData>(&Handle->ComboPreviewData); - /// <summary> - /// To be documented. - /// </summary> - public ref float SliderGrabClickOffset => ref Unsafe.AsRef<float>(&Handle->SliderGrabClickOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref float SliderCurrentAccum => ref Unsafe.AsRef<float>(&Handle->SliderCurrentAccum); - /// <summary> - /// To be documented. - /// </summary> - public ref bool SliderCurrentAccumDirty => ref Unsafe.AsRef<bool>(&Handle->SliderCurrentAccumDirty); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DragCurrentAccumDirty => ref Unsafe.AsRef<bool>(&Handle->DragCurrentAccumDirty); - /// <summary> - /// To be documented. - /// </summary> - public ref float DragCurrentAccum => ref Unsafe.AsRef<float>(&Handle->DragCurrentAccum); - /// <summary> - /// To be documented. - /// </summary> - public ref float DragSpeedDefaultRatio => ref Unsafe.AsRef<float>(&Handle->DragSpeedDefaultRatio); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollbarClickDeltaToGrabCenter => ref Unsafe.AsRef<float>(&Handle->ScrollbarClickDeltaToGrabCenter); - /// <summary> - /// To be documented. - /// </summary> - public ref float DisabledAlphaBackup => ref Unsafe.AsRef<float>(&Handle->DisabledAlphaBackup); - /// <summary> - /// To be documented. - /// </summary> - public ref short DisabledStackSize => ref Unsafe.AsRef<short>(&Handle->DisabledStackSize); - /// <summary> - /// To be documented. - /// </summary> - public ref short TooltipOverrideCount => ref Unsafe.AsRef<short>(&Handle->TooltipOverrideCount); - /// <summary> - /// To be documented. - /// </summary> - public ref float TooltipSlowDelay => ref Unsafe.AsRef<float>(&Handle->TooltipSlowDelay); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<byte> ClipboardHandlerData => ref Unsafe.AsRef<ImVector<byte>>(&Handle->ClipboardHandlerData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<uint> MenusIdSubmittedThisFrame => ref Unsafe.AsRef<ImVector<uint>>(&Handle->MenusIdSubmittedThisFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiPlatformImeData PlatformImeData => ref Unsafe.AsRef<ImGuiPlatformImeData>(&Handle->PlatformImeData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiPlatformImeData PlatformImeDataPrev => ref Unsafe.AsRef<ImGuiPlatformImeData>(&Handle->PlatformImeDataPrev); - /// <summary> - /// To be documented. - /// </summary> - public ref uint PlatformImeViewport => ref Unsafe.AsRef<uint>(&Handle->PlatformImeViewport); - /// <summary> - /// To be documented. - /// </summary> - public ref byte PlatformLocaleDecimalPoint => ref Unsafe.AsRef<byte>(&Handle->PlatformLocaleDecimalPoint); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockContext DockContext => ref Unsafe.AsRef<ImGuiDockContext>(&Handle->DockContext); - /// <summary> - /// To be documented. - /// </summary> - public ref bool SettingsLoaded => ref Unsafe.AsRef<bool>(&Handle->SettingsLoaded); - /// <summary> - /// To be documented. - /// </summary> - public ref float SettingsDirtyTimer => ref Unsafe.AsRef<float>(&Handle->SettingsDirtyTimer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer SettingsIniData => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->SettingsIniData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiSettingsHandler> SettingsHandlers => ref Unsafe.AsRef<ImVector<ImGuiSettingsHandler>>(&Handle->SettingsHandlers); - /// <summary> - /// To be documented. - /// </summary> - public ref ImChunkStreamImGuiWindowSettings SettingsWindows => ref Unsafe.AsRef<ImChunkStreamImGuiWindowSettings>(&Handle->SettingsWindows); - /// <summary> - /// To be documented. - /// </summary> - public ref ImChunkStreamImGuiTableSettings SettingsTables => ref Unsafe.AsRef<ImChunkStreamImGuiTableSettings>(&Handle->SettingsTables); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiContextHook> Hooks => ref Unsafe.AsRef<ImVector<ImGuiContextHook>>(&Handle->Hooks); - /// <summary> - /// To be documented. - /// </summary> - public ref uint HookIdNext => ref Unsafe.AsRef<uint>(&Handle->HookIdNext); - /// <summary> - /// To be documented. - /// </summary> - public ref bool LogEnabled => ref Unsafe.AsRef<bool>(&Handle->LogEnabled); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiLogType LogType => ref Unsafe.AsRef<ImGuiLogType>(&Handle->LogType); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFileHandle LogFile => ref Unsafe.AsRef<ImFileHandle>(&Handle->LogFile); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer LogBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->LogBuffer); - /// <summary> - /// To be documented. - /// </summary> - public byte* LogNextPrefix { get => Handle->LogNextPrefix; set => Handle->LogNextPrefix = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte* LogNextSuffix { get => Handle->LogNextSuffix; set => Handle->LogNextSuffix = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref float LogLinePosY => ref Unsafe.AsRef<float>(&Handle->LogLinePosY); - /// <summary> - /// To be documented. - /// </summary> - public ref bool LogLineFirstItem => ref Unsafe.AsRef<bool>(&Handle->LogLineFirstItem); - /// <summary> - /// To be documented. - /// </summary> - public ref int LogDepthRef => ref Unsafe.AsRef<int>(&Handle->LogDepthRef); - /// <summary> - /// To be documented. - /// </summary> - public ref int LogDepthToExpand => ref Unsafe.AsRef<int>(&Handle->LogDepthToExpand); - /// <summary> - /// To be documented. - /// </summary> - public ref int LogDepthToExpandDefault => ref Unsafe.AsRef<int>(&Handle->LogDepthToExpandDefault); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDebugLogFlags DebugLogFlags => ref Unsafe.AsRef<ImGuiDebugLogFlags>(&Handle->DebugLogFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer DebugLogBuf => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->DebugLogBuf); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DebugItemPickerActive => ref Unsafe.AsRef<bool>(&Handle->DebugItemPickerActive); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DebugItemPickerBreakId => ref Unsafe.AsRef<uint>(&Handle->DebugItemPickerBreakId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiMetricsConfig DebugMetricsConfig => ref Unsafe.AsRef<ImGuiMetricsConfig>(&Handle->DebugMetricsConfig); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStackTool DebugStackTool => ref Unsafe.AsRef<ImGuiStackTool>(&Handle->DebugStackTool); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> FramerateSecPerFrame - - { - get - { - return new Span<float>(&Handle->FramerateSecPerFrame_0, 120); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref int FramerateSecPerFrameIdx => ref Unsafe.AsRef<int>(&Handle->FramerateSecPerFrameIdx); - /// <summary> - /// To be documented. - /// </summary> - public ref int FramerateSecPerFrameCount => ref Unsafe.AsRef<int>(&Handle->FramerateSecPerFrameCount); - /// <summary> - /// To be documented. - /// </summary> - public ref float FramerateSecPerFrameAccum => ref Unsafe.AsRef<float>(&Handle->FramerateSecPerFrameAccum); - /// <summary> - /// To be documented. - /// </summary> - public ref int WantCaptureMouseNextFrame => ref Unsafe.AsRef<int>(&Handle->WantCaptureMouseNextFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref int WantCaptureKeyboardNextFrame => ref Unsafe.AsRef<int>(&Handle->WantCaptureKeyboardNextFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref int WantTextInputNextFrame => ref Unsafe.AsRef<int>(&Handle->WantTextInputNextFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<byte> TempBuffer => ref Unsafe.AsRef<ImVector<byte>>(&Handle->TempBuffer); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContextHook.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContextHook.cs deleted file mode 100644 index 912a5e472..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiContextHook.cs +++ /dev/null @@ -1,147 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiContextHook - { - /// <summary> - /// To be documented. - /// </summary> - public uint HookId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiContextHookType Type; - - /// <summary> - /// To be documented. - /// </summary> - public uint Owner; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* Callback; - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserData; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiContextHook(uint hookId = default, ImGuiContextHookType type = default, uint owner = default, ImGuiContextHookCallback callback = default, void* userData = default) - { - HookId = hookId; - Type = type; - Owner = owner; - Callback = (void*)Marshal.GetFunctionPointerForDelegate(callback); - UserData = userData; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiContextHook* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiContextHookPtr : IEquatable<ImGuiContextHookPtr> - { - public ImGuiContextHookPtr(ImGuiContextHook* handle) { Handle = handle; } - - public ImGuiContextHook* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiContextHookPtr Null => new ImGuiContextHookPtr(null); - - public ImGuiContextHook this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiContextHookPtr(ImGuiContextHook* handle) => new ImGuiContextHookPtr(handle); - - public static implicit operator ImGuiContextHook*(ImGuiContextHookPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHookPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle == right; - - public static bool operator !=(ImGuiContextHookPtr left, ImGuiContextHook* right) => left.Handle != right; - - public bool Equals(ImGuiContextHookPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiContextHookPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiContextHookPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint HookId => ref Unsafe.AsRef<uint>(&Handle->HookId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiContextHookType Type => ref Unsafe.AsRef<ImGuiContextHookType>(&Handle->Type); - /// <summary> - /// To be documented. - /// </summary> - public ref uint Owner => ref Unsafe.AsRef<uint>(&Handle->Owner); - /// <summary> - /// To be documented. - /// </summary> - public void* Callback { get => Handle->Callback; set => Handle->Callback = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs deleted file mode 100644 index b00de782b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeInfo.cs +++ /dev/null @@ -1,119 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDataTypeInfo - { - /// <summary> - /// To be documented. - /// </summary> - public nuint Size; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* Name; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* PrintFmt; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* ScanFmt; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDataTypeInfo(nuint size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) - { - Size = size; - Name = name; - PrintFmt = printFmt; - ScanFmt = scanFmt; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiDataTypeInfoPtr : IEquatable<ImGuiDataTypeInfoPtr> - { - public ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) { Handle = handle; } - - public ImGuiDataTypeInfo* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiDataTypeInfoPtr Null => new ImGuiDataTypeInfoPtr(null); - - public ImGuiDataTypeInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiDataTypeInfoPtr(ImGuiDataTypeInfo* handle) => new ImGuiDataTypeInfoPtr(handle); - - public static implicit operator ImGuiDataTypeInfo*(ImGuiDataTypeInfoPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfoPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle == right; - - public static bool operator !=(ImGuiDataTypeInfoPtr left, ImGuiDataTypeInfo* right) => left.Handle != right; - - public bool Equals(ImGuiDataTypeInfoPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiDataTypeInfoPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiDataTypeInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref nuint Size => ref Unsafe.AsRef<nuint>(&Handle->Size); - /// <summary> - /// To be documented. - /// </summary> - public byte* Name { get => Handle->Name; set => Handle->Name = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte* PrintFmt { get => Handle->PrintFmt; set => Handle->PrintFmt = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte* ScanFmt { get => Handle->ScanFmt; set => Handle->ScanFmt = value; } - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeTempStorage.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeTempStorage.cs deleted file mode 100644 index 7eae28810..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDataTypeTempStorage.cs +++ /dev/null @@ -1,77 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDataTypeTempStorage - { - /// <summary> - /// To be documented. - /// </summary> - public byte Data_0; - public byte Data_1; - public byte Data_2; - public byte Data_3; - public byte Data_4; - public byte Data_5; - public byte Data_6; - public byte Data_7; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDataTypeTempStorage(byte* data = default) - { - if (data != default(byte*)) - { - Data_0 = data[0]; - Data_1 = data[1]; - Data_2 = data[2]; - Data_3 = data[3]; - Data_4 = data[4]; - Data_5 = data[5]; - Data_6 = data[6]; - Data_7 = data[7]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDataTypeTempStorage(Span<byte> data = default) - { - if (data != default(Span<byte>)) - { - Data_0 = data[0]; - Data_1 = data[1]; - Data_2 = data[2]; - Data_3 = data[3]; - Data_4 = data[4]; - Data_5 = data[5]; - Data_6 = data[6]; - Data_7 = data[7]; - } - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockContext.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockContext.cs deleted file mode 100644 index 2595634e9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockContext.cs +++ /dev/null @@ -1,138 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockContext - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Nodes; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiDockRequest> Requests; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiDockNodeSettings> NodesSettings; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantFullRebuild; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockContext(ImGuiStorage nodes = default, ImVector<ImGuiDockRequest> requests = default, ImVector<ImGuiDockNodeSettings> nodesSettings = default, bool wantFullRebuild = default) - { - Nodes = nodes; - Requests = requests; - NodesSettings = nodesSettings; - WantFullRebuild = wantFullRebuild ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiDockContext* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiDockContextPtr : IEquatable<ImGuiDockContextPtr> - { - public ImGuiDockContextPtr(ImGuiDockContext* handle) { Handle = handle; } - - public ImGuiDockContext* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiDockContextPtr Null => new ImGuiDockContextPtr(null); - - public ImGuiDockContext this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiDockContextPtr(ImGuiDockContext* handle) => new ImGuiDockContextPtr(handle); - - public static implicit operator ImGuiDockContext*(ImGuiDockContextPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContextPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle == right; - - public static bool operator !=(ImGuiDockContextPtr left, ImGuiDockContext* right) => left.Handle != right; - - public bool Equals(ImGuiDockContextPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiDockContextPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiDockContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStorage Nodes => ref Unsafe.AsRef<ImGuiStorage>(&Handle->Nodes); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiDockRequest> Requests => ref Unsafe.AsRef<ImVector<ImGuiDockRequest>>(&Handle->Requests); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiDockNodeSettings> NodesSettings => ref Unsafe.AsRef<ImVector<ImGuiDockNodeSettings>>(&Handle->NodesSettings); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantFullRebuild => ref Unsafe.AsRef<bool>(&Handle->WantFullRebuild); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs deleted file mode 100644 index 664194eb7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNode.cs +++ /dev/null @@ -1,520 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockNode - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDockNodeFlags SharedFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDockNodeFlags LocalFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDockNodeFlags LocalFlagsInWindows; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDockNodeFlags MergedFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDockNodeState State; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode* ParentNode; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode* ChildNodes_0; - public unsafe ImGuiDockNode* ChildNodes_1; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiWindowPtr> Windows; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTabBar* TabBar; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Pos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Size; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 SizeRef; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiAxis SplitAxis; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiWindowClass WindowClass; - - /// <summary> - /// To be documented. - /// </summary> - public uint LastBgColor; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* HostWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* VisibleWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode* CentralNode; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode* OnlyNodeWithWindows; - - /// <summary> - /// To be documented. - /// </summary> - public int CountNodeWithWindows; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameAlive; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameActive; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameFocused; - - /// <summary> - /// To be documented. - /// </summary> - public uint LastFocusedNodeId; - - /// <summary> - /// To be documented. - /// </summary> - public uint SelectedTabId; - - /// <summary> - /// To be documented. - /// </summary> - public uint WantCloseTabId; - - public ImGuiDataAuthority RawBits0; - public bool RawBits1; - public bool RawBits2; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, ImGuiDockNode** childNodes = default, ImVector<ImGuiWindowPtr> windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) - { - ID = id; - SharedFlags = sharedFlags; - LocalFlags = localFlags; - LocalFlagsInWindows = localFlagsInWindows; - MergedFlags = mergedFlags; - State = state; - ParentNode = parentNode; - if (childNodes != default(ImGuiDockNode**)) - { - ChildNodes_0 = childNodes[0]; - ChildNodes_1 = childNodes[1]; - } - Windows = windows; - TabBar = tabBar; - Pos = pos; - Size = size; - SizeRef = sizeRef; - SplitAxis = splitAxis; - WindowClass = windowClass; - LastBgColor = lastBgColor; - HostWindow = hostWindow; - VisibleWindow = visibleWindow; - CentralNode = centralNode; - OnlyNodeWithWindows = onlyNodeWithWindows; - CountNodeWithWindows = countNodeWithWindows; - LastFrameAlive = lastFrameAlive; - LastFrameActive = lastFrameActive; - LastFrameFocused = lastFrameFocused; - LastFocusedNodeId = lastFocusedNodeId; - SelectedTabId = selectedTabId; - WantCloseTabId = wantCloseTabId; - AuthorityForPos = authorityForPos; - AuthorityForSize = authorityForSize; - AuthorityForViewport = authorityForViewport; - IsVisible = isVisible; - IsFocused = isFocused; - IsBgDrawnThisFrame = isBgDrawnThisFrame; - HasCloseButton = hasCloseButton; - HasWindowMenuButton = hasWindowMenuButton; - HasCentralNodeChild = hasCentralNodeChild; - WantCloseAll = wantCloseAll; - WantLockSizeOnce = wantLockSizeOnce; - WantMouseMove = wantMouseMove; - WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; - WantHiddenTabBarToggle = wantHiddenTabBarToggle; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode(uint id = default, ImGuiDockNodeFlags sharedFlags = default, ImGuiDockNodeFlags localFlags = default, ImGuiDockNodeFlags localFlagsInWindows = default, ImGuiDockNodeFlags mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, Span<Pointer<ImGuiDockNode>> childNodes = default, ImVector<ImGuiWindowPtr> windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindowPtr hostWindow = default, ImGuiWindowPtr visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, ImGuiDataAuthority authorityForPos = default, ImGuiDataAuthority authorityForSize = default, ImGuiDataAuthority authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) - { - ID = id; - SharedFlags = sharedFlags; - LocalFlags = localFlags; - LocalFlagsInWindows = localFlagsInWindows; - MergedFlags = mergedFlags; - State = state; - ParentNode = parentNode; - if (childNodes != default(Span<Pointer<ImGuiDockNode>>)) - { - ChildNodes_0 = childNodes[0]; - ChildNodes_1 = childNodes[1]; - } - Windows = windows; - TabBar = tabBar; - Pos = pos; - Size = size; - SizeRef = sizeRef; - SplitAxis = splitAxis; - WindowClass = windowClass; - LastBgColor = lastBgColor; - HostWindow = hostWindow; - VisibleWindow = visibleWindow; - CentralNode = centralNode; - OnlyNodeWithWindows = onlyNodeWithWindows; - CountNodeWithWindows = countNodeWithWindows; - LastFrameAlive = lastFrameAlive; - LastFrameActive = lastFrameActive; - LastFrameFocused = lastFrameFocused; - LastFocusedNodeId = lastFocusedNodeId; - SelectedTabId = selectedTabId; - WantCloseTabId = wantCloseTabId; - AuthorityForPos = authorityForPos; - AuthorityForSize = authorityForSize; - AuthorityForViewport = authorityForViewport; - IsVisible = isVisible; - IsFocused = isFocused; - IsBgDrawnThisFrame = isBgDrawnThisFrame; - HasCloseButton = hasCloseButton; - HasWindowMenuButton = hasWindowMenuButton; - HasCentralNodeChild = hasCentralNodeChild; - WantCloseAll = wantCloseAll; - WantLockSizeOnce = wantLockSizeOnce; - WantMouseMove = wantMouseMove; - WantHiddenTabBarUpdate = wantHiddenTabBarUpdate; - WantHiddenTabBarToggle = wantHiddenTabBarToggle; - } - - - public ImGuiDataAuthority AuthorityForPos { get => Bitfield.Get(RawBits0, 0, 3); set => Bitfield.Set(ref RawBits0, value, 0, 3); } - - public ImGuiDataAuthority AuthorityForSize { get => Bitfield.Get(RawBits0, 3, 3); set => Bitfield.Set(ref RawBits0, value, 3, 3); } - - public ImGuiDataAuthority AuthorityForViewport { get => Bitfield.Get(RawBits0, 6, 3); set => Bitfield.Set(ref RawBits0, value, 6, 3); } - - public bool IsVisible { get => Bitfield.Get(RawBits1, 0, 1); set => Bitfield.Set(ref RawBits1, value, 0, 1); } - - public bool IsFocused { get => Bitfield.Get(RawBits1, 1, 1); set => Bitfield.Set(ref RawBits1, value, 1, 1); } - - public bool IsBgDrawnThisFrame { get => Bitfield.Get(RawBits1, 2, 1); set => Bitfield.Set(ref RawBits1, value, 2, 1); } - - public bool HasCloseButton { get => Bitfield.Get(RawBits1, 3, 1); set => Bitfield.Set(ref RawBits1, value, 3, 1); } - - public bool HasWindowMenuButton { get => Bitfield.Get(RawBits1, 4, 1); set => Bitfield.Set(ref RawBits1, value, 4, 1); } - - public bool HasCentralNodeChild { get => Bitfield.Get(RawBits1, 5, 1); set => Bitfield.Set(ref RawBits1, value, 5, 1); } - - public bool WantCloseAll { get => Bitfield.Get(RawBits1, 6, 1); set => Bitfield.Set(ref RawBits1, value, 6, 1); } - - public bool WantLockSizeOnce { get => Bitfield.Get(RawBits1, 7, 1); set => Bitfield.Set(ref RawBits1, value, 7, 1); } - - public bool WantMouseMove { get => Bitfield.Get(RawBits2, 0, 1); set => Bitfield.Set(ref RawBits2, value, 0, 1); } - - public bool WantHiddenTabBarUpdate { get => Bitfield.Get(RawBits2, 1, 1); set => Bitfield.Set(ref RawBits2, value, 1, 1); } - - public bool WantHiddenTabBarToggle { get => Bitfield.Get(RawBits2, 2, 1); set => Bitfield.Set(ref RawBits2, value, 2, 1); } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Pointer<ImGuiDockNode>> ChildNodes - - { - get - { - fixed (ImGuiDockNode** p = &this.ChildNodes_0) - { - return new Span<Pointer<ImGuiDockNode>>(p, 2); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiDockNodePtr : IEquatable<ImGuiDockNodePtr> - { - public ImGuiDockNodePtr(ImGuiDockNode* handle) { Handle = handle; } - - public ImGuiDockNode* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiDockNodePtr Null => new ImGuiDockNodePtr(null); - - public ImGuiDockNode this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiDockNodePtr(ImGuiDockNode* handle) => new ImGuiDockNodePtr(handle); - - public static implicit operator ImGuiDockNode*(ImGuiDockNodePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNodePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle == right; - - public static bool operator !=(ImGuiDockNodePtr left, ImGuiDockNode* right) => left.Handle != right; - - public bool Equals(ImGuiDockNodePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiDockNodePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiDockNodePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodeFlags SharedFlags => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->SharedFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodeFlags LocalFlags => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->LocalFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodeFlags LocalFlagsInWindows => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->LocalFlagsInWindows); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodeFlags MergedFlags => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->MergedFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodeState State => ref Unsafe.AsRef<ImGuiDockNodeState>(&Handle->State); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodePtr ParentNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->ParentNode); - /// <summary> - /// To be documented. - /// </summary> - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiWindowPtr> Windows => ref Unsafe.AsRef<ImVector<ImGuiWindowPtr>>(&Handle->Windows); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTabBarPtr TabBar => ref Unsafe.AsRef<ImGuiTabBarPtr>(&Handle->TabBar); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Size => ref Unsafe.AsRef<Vector2>(&Handle->Size); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 SizeRef => ref Unsafe.AsRef<Vector2>(&Handle->SizeRef); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiAxis SplitAxis => ref Unsafe.AsRef<ImGuiAxis>(&Handle->SplitAxis); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef<ImGuiWindowClass>(&Handle->WindowClass); - /// <summary> - /// To be documented. - /// </summary> - public ref uint LastBgColor => ref Unsafe.AsRef<uint>(&Handle->LastBgColor); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr HostWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->HostWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr VisibleWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->VisibleWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodePtr CentralNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->CentralNode); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodePtr OnlyNodeWithWindows => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->OnlyNodeWithWindows); - /// <summary> - /// To be documented. - /// </summary> - public ref int CountNodeWithWindows => ref Unsafe.AsRef<int>(&Handle->CountNodeWithWindows); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameAlive => ref Unsafe.AsRef<int>(&Handle->LastFrameAlive); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameFocused => ref Unsafe.AsRef<int>(&Handle->LastFrameFocused); - /// <summary> - /// To be documented. - /// </summary> - public ref uint LastFocusedNodeId => ref Unsafe.AsRef<uint>(&Handle->LastFocusedNodeId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint SelectedTabId => ref Unsafe.AsRef<uint>(&Handle->SelectedTabId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint WantCloseTabId => ref Unsafe.AsRef<uint>(&Handle->WantCloseTabId); - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDataAuthority AuthorityForPos { get => Handle->AuthorityForPos; set => Handle->AuthorityForPos = value; } - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDataAuthority AuthorityForSize { get => Handle->AuthorityForSize; set => Handle->AuthorityForSize = value; } - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDataAuthority AuthorityForViewport { get => Handle->AuthorityForViewport; set => Handle->AuthorityForViewport = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool IsVisible { get => Handle->IsVisible; set => Handle->IsVisible = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool IsFocused { get => Handle->IsFocused; set => Handle->IsFocused = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool IsBgDrawnThisFrame { get => Handle->IsBgDrawnThisFrame; set => Handle->IsBgDrawnThisFrame = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool HasCloseButton { get => Handle->HasCloseButton; set => Handle->HasCloseButton = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool HasWindowMenuButton { get => Handle->HasWindowMenuButton; set => Handle->HasWindowMenuButton = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool HasCentralNodeChild { get => Handle->HasCentralNodeChild; set => Handle->HasCentralNodeChild = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool WantCloseAll { get => Handle->WantCloseAll; set => Handle->WantCloseAll = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool WantLockSizeOnce { get => Handle->WantLockSizeOnce; set => Handle->WantLockSizeOnce = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool WantMouseMove { get => Handle->WantMouseMove; set => Handle->WantMouseMove = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool WantHiddenTabBarUpdate { get => Handle->WantHiddenTabBarUpdate; set => Handle->WantHiddenTabBarUpdate = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool WantHiddenTabBarToggle { get => Handle->WantHiddenTabBarToggle; set => Handle->WantHiddenTabBarToggle = value; } - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNodeSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNodeSettings.cs deleted file mode 100644 index a608287a9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockNodeSettings.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockNodeSettings - { - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiDockNodeSettingsPtr : IEquatable<ImGuiDockNodeSettingsPtr> - { - public ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) { Handle = handle; } - - public ImGuiDockNodeSettings* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiDockNodeSettingsPtr Null => new ImGuiDockNodeSettingsPtr(null); - - public ImGuiDockNodeSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiDockNodeSettingsPtr(ImGuiDockNodeSettings* handle) => new ImGuiDockNodeSettingsPtr(handle); - - public static implicit operator ImGuiDockNodeSettings*(ImGuiDockNodeSettingsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettingsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle == right; - - public static bool operator !=(ImGuiDockNodeSettingsPtr left, ImGuiDockNodeSettings* right) => left.Handle != right; - - public bool Equals(ImGuiDockNodeSettingsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiDockNodeSettingsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiDockNodeSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockRequest.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockRequest.cs deleted file mode 100644 index 99f6fef29..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiDockRequest.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiDockRequest - { - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiDockRequestPtr : IEquatable<ImGuiDockRequestPtr> - { - public ImGuiDockRequestPtr(ImGuiDockRequest* handle) { Handle = handle; } - - public ImGuiDockRequest* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiDockRequestPtr Null => new ImGuiDockRequestPtr(null); - - public ImGuiDockRequest this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiDockRequestPtr(ImGuiDockRequest* handle) => new ImGuiDockRequestPtr(handle); - - public static implicit operator ImGuiDockRequest*(ImGuiDockRequestPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequestPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle == right; - - public static bool operator !=(ImGuiDockRequestPtr left, ImGuiDockRequest* right) => left.Handle != right; - - public bool Equals(ImGuiDockRequestPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiDockRequestPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiDockRequestPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs deleted file mode 100644 index a20ac3662..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiGroupData.cs +++ /dev/null @@ -1,189 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiGroupData - { - /// <summary> - /// To be documented. - /// </summary> - public uint WindowID; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BackupCursorPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BackupCursorMaxPos; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec1 BackupIndent; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec1 BackupGroupOffset; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BackupCurrLineSize; - - /// <summary> - /// To be documented. - /// </summary> - public float BackupCurrLineTextBaseOffset; - - /// <summary> - /// To be documented. - /// </summary> - public uint BackupActiveIdIsAlive; - - /// <summary> - /// To be documented. - /// </summary> - public byte BackupActiveIdPreviousFrameIsAlive; - - /// <summary> - /// To be documented. - /// </summary> - public byte BackupHoveredIdIsAlive; - - /// <summary> - /// To be documented. - /// </summary> - public byte EmitItem; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiGroupData(uint windowId = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, ImVec1 backupIndent = default, ImVec1 backupGroupOffset = default, Vector2 backupCurrLineSize = default, float backupCurrLineTextBaseOffset = default, uint backupActiveIdIsAlive = default, bool backupActiveIdPreviousFrameIsAlive = default, bool backupHoveredIdIsAlive = default, bool emitItem = default) - { - WindowID = windowId; - BackupCursorPos = backupCursorPos; - BackupCursorMaxPos = backupCursorMaxPos; - BackupIndent = backupIndent; - BackupGroupOffset = backupGroupOffset; - BackupCurrLineSize = backupCurrLineSize; - BackupCurrLineTextBaseOffset = backupCurrLineTextBaseOffset; - BackupActiveIdIsAlive = backupActiveIdIsAlive; - BackupActiveIdPreviousFrameIsAlive = backupActiveIdPreviousFrameIsAlive ? (byte)1 : (byte)0; - BackupHoveredIdIsAlive = backupHoveredIdIsAlive ? (byte)1 : (byte)0; - EmitItem = emitItem ? (byte)1 : (byte)0; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiGroupDataPtr : IEquatable<ImGuiGroupDataPtr> - { - public ImGuiGroupDataPtr(ImGuiGroupData* handle) { Handle = handle; } - - public ImGuiGroupData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiGroupDataPtr Null => new ImGuiGroupDataPtr(null); - - public ImGuiGroupData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiGroupDataPtr(ImGuiGroupData* handle) => new ImGuiGroupDataPtr(handle); - - public static implicit operator ImGuiGroupData*(ImGuiGroupDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle == right; - - public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle != right; - - public bool Equals(ImGuiGroupDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiGroupDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiGroupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint WindowID => ref Unsafe.AsRef<uint>(&Handle->WindowID); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BackupCursorPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorMaxPos); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec1 BackupIndent => ref Unsafe.AsRef<ImVec1>(&Handle->BackupIndent); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec1 BackupGroupOffset => ref Unsafe.AsRef<ImVec1>(&Handle->BackupGroupOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BackupCurrLineSize => ref Unsafe.AsRef<Vector2>(&Handle->BackupCurrLineSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float BackupCurrLineTextBaseOffset => ref Unsafe.AsRef<float>(&Handle->BackupCurrLineTextBaseOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref uint BackupActiveIdIsAlive => ref Unsafe.AsRef<uint>(&Handle->BackupActiveIdIsAlive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool BackupActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef<bool>(&Handle->BackupActiveIdPreviousFrameIsAlive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool BackupHoveredIdIsAlive => ref Unsafe.AsRef<bool>(&Handle->BackupHoveredIdIsAlive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool EmitItem => ref Unsafe.AsRef<bool>(&Handle->EmitItem); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs deleted file mode 100644 index 2513b6370..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiIO.cs +++ /dev/null @@ -1,8003 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiIO - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiConfigFlags ConfigFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiBackendFlags BackendFlags; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 DisplaySize; - - /// <summary> - /// To be documented. - /// </summary> - public float DeltaTime; - - /// <summary> - /// To be documented. - /// </summary> - public float IniSavingRate; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* IniFilename; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* LogFilename; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseDoubleClickTime; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseDoubleClickMaxDist; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseDragThreshold; - - /// <summary> - /// To be documented. - /// </summary> - public float KeyRepeatDelay; - - /// <summary> - /// To be documented. - /// </summary> - public float KeyRepeatRate; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFontAtlas* Fonts; - - /// <summary> - /// To be documented. - /// </summary> - public float FontGlobalScale; - - /// <summary> - /// To be documented. - /// </summary> - public byte FontAllowUserScaling; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImFont* FontDefault; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 DisplayFramebufferScale; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigDockingNoSplit; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigDockingWithShift; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigDockingAlwaysTabBar; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigDockingTransparentPayload; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigViewportsNoAutoMerge; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigViewportsNoTaskBarIcon; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigViewportsNoDecoration; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigViewportsNoDefaultParent; - - /// <summary> - /// To be documented. - /// </summary> - public byte MouseDrawCursor; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigMacOSXBehaviors; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigInputTrickleEventQueue; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigInputTextCursorBlink; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigDragClickToInputText; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigWindowsResizeFromEdges; - - /// <summary> - /// To be documented. - /// </summary> - public byte ConfigWindowsMoveFromTitleBarOnly; - - /// <summary> - /// To be documented. - /// </summary> - public float ConfigMemoryCompactTimer; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* BackendPlatformName; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* BackendRendererName; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* BackendPlatformUserData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* BackendRendererUserData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* BackendLanguageUserData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* GetClipboardTextFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* SetClipboardTextFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* ClipboardUserData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* SetPlatformImeDataFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UnusedPadding; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantCaptureMouse; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantCaptureKeyboard; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantTextInput; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantSetMousePos; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantSaveIniSettings; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavActive; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavVisible; - - /// <summary> - /// To be documented. - /// </summary> - public float Framerate; - - /// <summary> - /// To be documented. - /// </summary> - public int MetricsRenderVertices; - - /// <summary> - /// To be documented. - /// </summary> - public int MetricsRenderIndices; - - /// <summary> - /// To be documented. - /// </summary> - public int MetricsRenderWindows; - - /// <summary> - /// To be documented. - /// </summary> - public int MetricsActiveWindows; - - /// <summary> - /// To be documented. - /// </summary> - public int MetricsActiveAllocations; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MouseDelta; - - /// <summary> - /// To be documented. - /// </summary> - public int KeyMap_0; - public int KeyMap_1; - public int KeyMap_2; - public int KeyMap_3; - public int KeyMap_4; - public int KeyMap_5; - public int KeyMap_6; - public int KeyMap_7; - public int KeyMap_8; - public int KeyMap_9; - public int KeyMap_10; - public int KeyMap_11; - public int KeyMap_12; - public int KeyMap_13; - public int KeyMap_14; - public int KeyMap_15; - public int KeyMap_16; - public int KeyMap_17; - public int KeyMap_18; - public int KeyMap_19; - public int KeyMap_20; - public int KeyMap_21; - public int KeyMap_22; - public int KeyMap_23; - public int KeyMap_24; - public int KeyMap_25; - public int KeyMap_26; - public int KeyMap_27; - public int KeyMap_28; - public int KeyMap_29; - public int KeyMap_30; - public int KeyMap_31; - public int KeyMap_32; - public int KeyMap_33; - public int KeyMap_34; - public int KeyMap_35; - public int KeyMap_36; - public int KeyMap_37; - public int KeyMap_38; - public int KeyMap_39; - public int KeyMap_40; - public int KeyMap_41; - public int KeyMap_42; - public int KeyMap_43; - public int KeyMap_44; - public int KeyMap_45; - public int KeyMap_46; - public int KeyMap_47; - public int KeyMap_48; - public int KeyMap_49; - public int KeyMap_50; - public int KeyMap_51; - public int KeyMap_52; - public int KeyMap_53; - public int KeyMap_54; - public int KeyMap_55; - public int KeyMap_56; - public int KeyMap_57; - public int KeyMap_58; - public int KeyMap_59; - public int KeyMap_60; - public int KeyMap_61; - public int KeyMap_62; - public int KeyMap_63; - public int KeyMap_64; - public int KeyMap_65; - public int KeyMap_66; - public int KeyMap_67; - public int KeyMap_68; - public int KeyMap_69; - public int KeyMap_70; - public int KeyMap_71; - public int KeyMap_72; - public int KeyMap_73; - public int KeyMap_74; - public int KeyMap_75; - public int KeyMap_76; - public int KeyMap_77; - public int KeyMap_78; - public int KeyMap_79; - public int KeyMap_80; - public int KeyMap_81; - public int KeyMap_82; - public int KeyMap_83; - public int KeyMap_84; - public int KeyMap_85; - public int KeyMap_86; - public int KeyMap_87; - public int KeyMap_88; - public int KeyMap_89; - public int KeyMap_90; - public int KeyMap_91; - public int KeyMap_92; - public int KeyMap_93; - public int KeyMap_94; - public int KeyMap_95; - public int KeyMap_96; - public int KeyMap_97; - public int KeyMap_98; - public int KeyMap_99; - public int KeyMap_100; - public int KeyMap_101; - public int KeyMap_102; - public int KeyMap_103; - public int KeyMap_104; - public int KeyMap_105; - public int KeyMap_106; - public int KeyMap_107; - public int KeyMap_108; - public int KeyMap_109; - public int KeyMap_110; - public int KeyMap_111; - public int KeyMap_112; - public int KeyMap_113; - public int KeyMap_114; - public int KeyMap_115; - public int KeyMap_116; - public int KeyMap_117; - public int KeyMap_118; - public int KeyMap_119; - public int KeyMap_120; - public int KeyMap_121; - public int KeyMap_122; - public int KeyMap_123; - public int KeyMap_124; - public int KeyMap_125; - public int KeyMap_126; - public int KeyMap_127; - public int KeyMap_128; - public int KeyMap_129; - public int KeyMap_130; - public int KeyMap_131; - public int KeyMap_132; - public int KeyMap_133; - public int KeyMap_134; - public int KeyMap_135; - public int KeyMap_136; - public int KeyMap_137; - public int KeyMap_138; - public int KeyMap_139; - public int KeyMap_140; - public int KeyMap_141; - public int KeyMap_142; - public int KeyMap_143; - public int KeyMap_144; - public int KeyMap_145; - public int KeyMap_146; - public int KeyMap_147; - public int KeyMap_148; - public int KeyMap_149; - public int KeyMap_150; - public int KeyMap_151; - public int KeyMap_152; - public int KeyMap_153; - public int KeyMap_154; - public int KeyMap_155; - public int KeyMap_156; - public int KeyMap_157; - public int KeyMap_158; - public int KeyMap_159; - public int KeyMap_160; - public int KeyMap_161; - public int KeyMap_162; - public int KeyMap_163; - public int KeyMap_164; - public int KeyMap_165; - public int KeyMap_166; - public int KeyMap_167; - public int KeyMap_168; - public int KeyMap_169; - public int KeyMap_170; - public int KeyMap_171; - public int KeyMap_172; - public int KeyMap_173; - public int KeyMap_174; - public int KeyMap_175; - public int KeyMap_176; - public int KeyMap_177; - public int KeyMap_178; - public int KeyMap_179; - public int KeyMap_180; - public int KeyMap_181; - public int KeyMap_182; - public int KeyMap_183; - public int KeyMap_184; - public int KeyMap_185; - public int KeyMap_186; - public int KeyMap_187; - public int KeyMap_188; - public int KeyMap_189; - public int KeyMap_190; - public int KeyMap_191; - public int KeyMap_192; - public int KeyMap_193; - public int KeyMap_194; - public int KeyMap_195; - public int KeyMap_196; - public int KeyMap_197; - public int KeyMap_198; - public int KeyMap_199; - public int KeyMap_200; - public int KeyMap_201; - public int KeyMap_202; - public int KeyMap_203; - public int KeyMap_204; - public int KeyMap_205; - public int KeyMap_206; - public int KeyMap_207; - public int KeyMap_208; - public int KeyMap_209; - public int KeyMap_210; - public int KeyMap_211; - public int KeyMap_212; - public int KeyMap_213; - public int KeyMap_214; - public int KeyMap_215; - public int KeyMap_216; - public int KeyMap_217; - public int KeyMap_218; - public int KeyMap_219; - public int KeyMap_220; - public int KeyMap_221; - public int KeyMap_222; - public int KeyMap_223; - public int KeyMap_224; - public int KeyMap_225; - public int KeyMap_226; - public int KeyMap_227; - public int KeyMap_228; - public int KeyMap_229; - public int KeyMap_230; - public int KeyMap_231; - public int KeyMap_232; - public int KeyMap_233; - public int KeyMap_234; - public int KeyMap_235; - public int KeyMap_236; - public int KeyMap_237; - public int KeyMap_238; - public int KeyMap_239; - public int KeyMap_240; - public int KeyMap_241; - public int KeyMap_242; - public int KeyMap_243; - public int KeyMap_244; - public int KeyMap_245; - public int KeyMap_246; - public int KeyMap_247; - public int KeyMap_248; - public int KeyMap_249; - public int KeyMap_250; - public int KeyMap_251; - public int KeyMap_252; - public int KeyMap_253; - public int KeyMap_254; - public int KeyMap_255; - public int KeyMap_256; - public int KeyMap_257; - public int KeyMap_258; - public int KeyMap_259; - public int KeyMap_260; - public int KeyMap_261; - public int KeyMap_262; - public int KeyMap_263; - public int KeyMap_264; - public int KeyMap_265; - public int KeyMap_266; - public int KeyMap_267; - public int KeyMap_268; - public int KeyMap_269; - public int KeyMap_270; - public int KeyMap_271; - public int KeyMap_272; - public int KeyMap_273; - public int KeyMap_274; - public int KeyMap_275; - public int KeyMap_276; - public int KeyMap_277; - public int KeyMap_278; - public int KeyMap_279; - public int KeyMap_280; - public int KeyMap_281; - public int KeyMap_282; - public int KeyMap_283; - public int KeyMap_284; - public int KeyMap_285; - public int KeyMap_286; - public int KeyMap_287; - public int KeyMap_288; - public int KeyMap_289; - public int KeyMap_290; - public int KeyMap_291; - public int KeyMap_292; - public int KeyMap_293; - public int KeyMap_294; - public int KeyMap_295; - public int KeyMap_296; - public int KeyMap_297; - public int KeyMap_298; - public int KeyMap_299; - public int KeyMap_300; - public int KeyMap_301; - public int KeyMap_302; - public int KeyMap_303; - public int KeyMap_304; - public int KeyMap_305; - public int KeyMap_306; - public int KeyMap_307; - public int KeyMap_308; - public int KeyMap_309; - public int KeyMap_310; - public int KeyMap_311; - public int KeyMap_312; - public int KeyMap_313; - public int KeyMap_314; - public int KeyMap_315; - public int KeyMap_316; - public int KeyMap_317; - public int KeyMap_318; - public int KeyMap_319; - public int KeyMap_320; - public int KeyMap_321; - public int KeyMap_322; - public int KeyMap_323; - public int KeyMap_324; - public int KeyMap_325; - public int KeyMap_326; - public int KeyMap_327; - public int KeyMap_328; - public int KeyMap_329; - public int KeyMap_330; - public int KeyMap_331; - public int KeyMap_332; - public int KeyMap_333; - public int KeyMap_334; - public int KeyMap_335; - public int KeyMap_336; - public int KeyMap_337; - public int KeyMap_338; - public int KeyMap_339; - public int KeyMap_340; - public int KeyMap_341; - public int KeyMap_342; - public int KeyMap_343; - public int KeyMap_344; - public int KeyMap_345; - public int KeyMap_346; - public int KeyMap_347; - public int KeyMap_348; - public int KeyMap_349; - public int KeyMap_350; - public int KeyMap_351; - public int KeyMap_352; - public int KeyMap_353; - public int KeyMap_354; - public int KeyMap_355; - public int KeyMap_356; - public int KeyMap_357; - public int KeyMap_358; - public int KeyMap_359; - public int KeyMap_360; - public int KeyMap_361; - public int KeyMap_362; - public int KeyMap_363; - public int KeyMap_364; - public int KeyMap_365; - public int KeyMap_366; - public int KeyMap_367; - public int KeyMap_368; - public int KeyMap_369; - public int KeyMap_370; - public int KeyMap_371; - public int KeyMap_372; - public int KeyMap_373; - public int KeyMap_374; - public int KeyMap_375; - public int KeyMap_376; - public int KeyMap_377; - public int KeyMap_378; - public int KeyMap_379; - public int KeyMap_380; - public int KeyMap_381; - public int KeyMap_382; - public int KeyMap_383; - public int KeyMap_384; - public int KeyMap_385; - public int KeyMap_386; - public int KeyMap_387; - public int KeyMap_388; - public int KeyMap_389; - public int KeyMap_390; - public int KeyMap_391; - public int KeyMap_392; - public int KeyMap_393; - public int KeyMap_394; - public int KeyMap_395; - public int KeyMap_396; - public int KeyMap_397; - public int KeyMap_398; - public int KeyMap_399; - public int KeyMap_400; - public int KeyMap_401; - public int KeyMap_402; - public int KeyMap_403; - public int KeyMap_404; - public int KeyMap_405; - public int KeyMap_406; - public int KeyMap_407; - public int KeyMap_408; - public int KeyMap_409; - public int KeyMap_410; - public int KeyMap_411; - public int KeyMap_412; - public int KeyMap_413; - public int KeyMap_414; - public int KeyMap_415; - public int KeyMap_416; - public int KeyMap_417; - public int KeyMap_418; - public int KeyMap_419; - public int KeyMap_420; - public int KeyMap_421; - public int KeyMap_422; - public int KeyMap_423; - public int KeyMap_424; - public int KeyMap_425; - public int KeyMap_426; - public int KeyMap_427; - public int KeyMap_428; - public int KeyMap_429; - public int KeyMap_430; - public int KeyMap_431; - public int KeyMap_432; - public int KeyMap_433; - public int KeyMap_434; - public int KeyMap_435; - public int KeyMap_436; - public int KeyMap_437; - public int KeyMap_438; - public int KeyMap_439; - public int KeyMap_440; - public int KeyMap_441; - public int KeyMap_442; - public int KeyMap_443; - public int KeyMap_444; - public int KeyMap_445; - public int KeyMap_446; - public int KeyMap_447; - public int KeyMap_448; - public int KeyMap_449; - public int KeyMap_450; - public int KeyMap_451; - public int KeyMap_452; - public int KeyMap_453; - public int KeyMap_454; - public int KeyMap_455; - public int KeyMap_456; - public int KeyMap_457; - public int KeyMap_458; - public int KeyMap_459; - public int KeyMap_460; - public int KeyMap_461; - public int KeyMap_462; - public int KeyMap_463; - public int KeyMap_464; - public int KeyMap_465; - public int KeyMap_466; - public int KeyMap_467; - public int KeyMap_468; - public int KeyMap_469; - public int KeyMap_470; - public int KeyMap_471; - public int KeyMap_472; - public int KeyMap_473; - public int KeyMap_474; - public int KeyMap_475; - public int KeyMap_476; - public int KeyMap_477; - public int KeyMap_478; - public int KeyMap_479; - public int KeyMap_480; - public int KeyMap_481; - public int KeyMap_482; - public int KeyMap_483; - public int KeyMap_484; - public int KeyMap_485; - public int KeyMap_486; - public int KeyMap_487; - public int KeyMap_488; - public int KeyMap_489; - public int KeyMap_490; - public int KeyMap_491; - public int KeyMap_492; - public int KeyMap_493; - public int KeyMap_494; - public int KeyMap_495; - public int KeyMap_496; - public int KeyMap_497; - public int KeyMap_498; - public int KeyMap_499; - public int KeyMap_500; - public int KeyMap_501; - public int KeyMap_502; - public int KeyMap_503; - public int KeyMap_504; - public int KeyMap_505; - public int KeyMap_506; - public int KeyMap_507; - public int KeyMap_508; - public int KeyMap_509; - public int KeyMap_510; - public int KeyMap_511; - public int KeyMap_512; - public int KeyMap_513; - public int KeyMap_514; - public int KeyMap_515; - public int KeyMap_516; - public int KeyMap_517; - public int KeyMap_518; - public int KeyMap_519; - public int KeyMap_520; - public int KeyMap_521; - public int KeyMap_522; - public int KeyMap_523; - public int KeyMap_524; - public int KeyMap_525; - public int KeyMap_526; - public int KeyMap_527; - public int KeyMap_528; - public int KeyMap_529; - public int KeyMap_530; - public int KeyMap_531; - public int KeyMap_532; - public int KeyMap_533; - public int KeyMap_534; - public int KeyMap_535; - public int KeyMap_536; - public int KeyMap_537; - public int KeyMap_538; - public int KeyMap_539; - public int KeyMap_540; - public int KeyMap_541; - public int KeyMap_542; - public int KeyMap_543; - public int KeyMap_544; - public int KeyMap_545; - public int KeyMap_546; - public int KeyMap_547; - public int KeyMap_548; - public int KeyMap_549; - public int KeyMap_550; - public int KeyMap_551; - public int KeyMap_552; - public int KeyMap_553; - public int KeyMap_554; - public int KeyMap_555; - public int KeyMap_556; - public int KeyMap_557; - public int KeyMap_558; - public int KeyMap_559; - public int KeyMap_560; - public int KeyMap_561; - public int KeyMap_562; - public int KeyMap_563; - public int KeyMap_564; - public int KeyMap_565; - public int KeyMap_566; - public int KeyMap_567; - public int KeyMap_568; - public int KeyMap_569; - public int KeyMap_570; - public int KeyMap_571; - public int KeyMap_572; - public int KeyMap_573; - public int KeyMap_574; - public int KeyMap_575; - public int KeyMap_576; - public int KeyMap_577; - public int KeyMap_578; - public int KeyMap_579; - public int KeyMap_580; - public int KeyMap_581; - public int KeyMap_582; - public int KeyMap_583; - public int KeyMap_584; - public int KeyMap_585; - public int KeyMap_586; - public int KeyMap_587; - public int KeyMap_588; - public int KeyMap_589; - public int KeyMap_590; - public int KeyMap_591; - public int KeyMap_592; - public int KeyMap_593; - public int KeyMap_594; - public int KeyMap_595; - public int KeyMap_596; - public int KeyMap_597; - public int KeyMap_598; - public int KeyMap_599; - public int KeyMap_600; - public int KeyMap_601; - public int KeyMap_602; - public int KeyMap_603; - public int KeyMap_604; - public int KeyMap_605; - public int KeyMap_606; - public int KeyMap_607; - public int KeyMap_608; - public int KeyMap_609; - public int KeyMap_610; - public int KeyMap_611; - public int KeyMap_612; - public int KeyMap_613; - public int KeyMap_614; - public int KeyMap_615; - public int KeyMap_616; - public int KeyMap_617; - public int KeyMap_618; - public int KeyMap_619; - public int KeyMap_620; - public int KeyMap_621; - public int KeyMap_622; - public int KeyMap_623; - public int KeyMap_624; - public int KeyMap_625; - public int KeyMap_626; - public int KeyMap_627; - public int KeyMap_628; - public int KeyMap_629; - public int KeyMap_630; - public int KeyMap_631; - public int KeyMap_632; - public int KeyMap_633; - public int KeyMap_634; - public int KeyMap_635; - public int KeyMap_636; - public int KeyMap_637; - public int KeyMap_638; - public int KeyMap_639; - public int KeyMap_640; - public int KeyMap_641; - public int KeyMap_642; - public int KeyMap_643; - public int KeyMap_644; - - /// <summary> - /// To be documented. - /// </summary> - public bool KeysDown_0; - public bool KeysDown_1; - public bool KeysDown_2; - public bool KeysDown_3; - public bool KeysDown_4; - public bool KeysDown_5; - public bool KeysDown_6; - public bool KeysDown_7; - public bool KeysDown_8; - public bool KeysDown_9; - public bool KeysDown_10; - public bool KeysDown_11; - public bool KeysDown_12; - public bool KeysDown_13; - public bool KeysDown_14; - public bool KeysDown_15; - public bool KeysDown_16; - public bool KeysDown_17; - public bool KeysDown_18; - public bool KeysDown_19; - public bool KeysDown_20; - public bool KeysDown_21; - public bool KeysDown_22; - public bool KeysDown_23; - public bool KeysDown_24; - public bool KeysDown_25; - public bool KeysDown_26; - public bool KeysDown_27; - public bool KeysDown_28; - public bool KeysDown_29; - public bool KeysDown_30; - public bool KeysDown_31; - public bool KeysDown_32; - public bool KeysDown_33; - public bool KeysDown_34; - public bool KeysDown_35; - public bool KeysDown_36; - public bool KeysDown_37; - public bool KeysDown_38; - public bool KeysDown_39; - public bool KeysDown_40; - public bool KeysDown_41; - public bool KeysDown_42; - public bool KeysDown_43; - public bool KeysDown_44; - public bool KeysDown_45; - public bool KeysDown_46; - public bool KeysDown_47; - public bool KeysDown_48; - public bool KeysDown_49; - public bool KeysDown_50; - public bool KeysDown_51; - public bool KeysDown_52; - public bool KeysDown_53; - public bool KeysDown_54; - public bool KeysDown_55; - public bool KeysDown_56; - public bool KeysDown_57; - public bool KeysDown_58; - public bool KeysDown_59; - public bool KeysDown_60; - public bool KeysDown_61; - public bool KeysDown_62; - public bool KeysDown_63; - public bool KeysDown_64; - public bool KeysDown_65; - public bool KeysDown_66; - public bool KeysDown_67; - public bool KeysDown_68; - public bool KeysDown_69; - public bool KeysDown_70; - public bool KeysDown_71; - public bool KeysDown_72; - public bool KeysDown_73; - public bool KeysDown_74; - public bool KeysDown_75; - public bool KeysDown_76; - public bool KeysDown_77; - public bool KeysDown_78; - public bool KeysDown_79; - public bool KeysDown_80; - public bool KeysDown_81; - public bool KeysDown_82; - public bool KeysDown_83; - public bool KeysDown_84; - public bool KeysDown_85; - public bool KeysDown_86; - public bool KeysDown_87; - public bool KeysDown_88; - public bool KeysDown_89; - public bool KeysDown_90; - public bool KeysDown_91; - public bool KeysDown_92; - public bool KeysDown_93; - public bool KeysDown_94; - public bool KeysDown_95; - public bool KeysDown_96; - public bool KeysDown_97; - public bool KeysDown_98; - public bool KeysDown_99; - public bool KeysDown_100; - public bool KeysDown_101; - public bool KeysDown_102; - public bool KeysDown_103; - public bool KeysDown_104; - public bool KeysDown_105; - public bool KeysDown_106; - public bool KeysDown_107; - public bool KeysDown_108; - public bool KeysDown_109; - public bool KeysDown_110; - public bool KeysDown_111; - public bool KeysDown_112; - public bool KeysDown_113; - public bool KeysDown_114; - public bool KeysDown_115; - public bool KeysDown_116; - public bool KeysDown_117; - public bool KeysDown_118; - public bool KeysDown_119; - public bool KeysDown_120; - public bool KeysDown_121; - public bool KeysDown_122; - public bool KeysDown_123; - public bool KeysDown_124; - public bool KeysDown_125; - public bool KeysDown_126; - public bool KeysDown_127; - public bool KeysDown_128; - public bool KeysDown_129; - public bool KeysDown_130; - public bool KeysDown_131; - public bool KeysDown_132; - public bool KeysDown_133; - public bool KeysDown_134; - public bool KeysDown_135; - public bool KeysDown_136; - public bool KeysDown_137; - public bool KeysDown_138; - public bool KeysDown_139; - public bool KeysDown_140; - public bool KeysDown_141; - public bool KeysDown_142; - public bool KeysDown_143; - public bool KeysDown_144; - public bool KeysDown_145; - public bool KeysDown_146; - public bool KeysDown_147; - public bool KeysDown_148; - public bool KeysDown_149; - public bool KeysDown_150; - public bool KeysDown_151; - public bool KeysDown_152; - public bool KeysDown_153; - public bool KeysDown_154; - public bool KeysDown_155; - public bool KeysDown_156; - public bool KeysDown_157; - public bool KeysDown_158; - public bool KeysDown_159; - public bool KeysDown_160; - public bool KeysDown_161; - public bool KeysDown_162; - public bool KeysDown_163; - public bool KeysDown_164; - public bool KeysDown_165; - public bool KeysDown_166; - public bool KeysDown_167; - public bool KeysDown_168; - public bool KeysDown_169; - public bool KeysDown_170; - public bool KeysDown_171; - public bool KeysDown_172; - public bool KeysDown_173; - public bool KeysDown_174; - public bool KeysDown_175; - public bool KeysDown_176; - public bool KeysDown_177; - public bool KeysDown_178; - public bool KeysDown_179; - public bool KeysDown_180; - public bool KeysDown_181; - public bool KeysDown_182; - public bool KeysDown_183; - public bool KeysDown_184; - public bool KeysDown_185; - public bool KeysDown_186; - public bool KeysDown_187; - public bool KeysDown_188; - public bool KeysDown_189; - public bool KeysDown_190; - public bool KeysDown_191; - public bool KeysDown_192; - public bool KeysDown_193; - public bool KeysDown_194; - public bool KeysDown_195; - public bool KeysDown_196; - public bool KeysDown_197; - public bool KeysDown_198; - public bool KeysDown_199; - public bool KeysDown_200; - public bool KeysDown_201; - public bool KeysDown_202; - public bool KeysDown_203; - public bool KeysDown_204; - public bool KeysDown_205; - public bool KeysDown_206; - public bool KeysDown_207; - public bool KeysDown_208; - public bool KeysDown_209; - public bool KeysDown_210; - public bool KeysDown_211; - public bool KeysDown_212; - public bool KeysDown_213; - public bool KeysDown_214; - public bool KeysDown_215; - public bool KeysDown_216; - public bool KeysDown_217; - public bool KeysDown_218; - public bool KeysDown_219; - public bool KeysDown_220; - public bool KeysDown_221; - public bool KeysDown_222; - public bool KeysDown_223; - public bool KeysDown_224; - public bool KeysDown_225; - public bool KeysDown_226; - public bool KeysDown_227; - public bool KeysDown_228; - public bool KeysDown_229; - public bool KeysDown_230; - public bool KeysDown_231; - public bool KeysDown_232; - public bool KeysDown_233; - public bool KeysDown_234; - public bool KeysDown_235; - public bool KeysDown_236; - public bool KeysDown_237; - public bool KeysDown_238; - public bool KeysDown_239; - public bool KeysDown_240; - public bool KeysDown_241; - public bool KeysDown_242; - public bool KeysDown_243; - public bool KeysDown_244; - public bool KeysDown_245; - public bool KeysDown_246; - public bool KeysDown_247; - public bool KeysDown_248; - public bool KeysDown_249; - public bool KeysDown_250; - public bool KeysDown_251; - public bool KeysDown_252; - public bool KeysDown_253; - public bool KeysDown_254; - public bool KeysDown_255; - public bool KeysDown_256; - public bool KeysDown_257; - public bool KeysDown_258; - public bool KeysDown_259; - public bool KeysDown_260; - public bool KeysDown_261; - public bool KeysDown_262; - public bool KeysDown_263; - public bool KeysDown_264; - public bool KeysDown_265; - public bool KeysDown_266; - public bool KeysDown_267; - public bool KeysDown_268; - public bool KeysDown_269; - public bool KeysDown_270; - public bool KeysDown_271; - public bool KeysDown_272; - public bool KeysDown_273; - public bool KeysDown_274; - public bool KeysDown_275; - public bool KeysDown_276; - public bool KeysDown_277; - public bool KeysDown_278; - public bool KeysDown_279; - public bool KeysDown_280; - public bool KeysDown_281; - public bool KeysDown_282; - public bool KeysDown_283; - public bool KeysDown_284; - public bool KeysDown_285; - public bool KeysDown_286; - public bool KeysDown_287; - public bool KeysDown_288; - public bool KeysDown_289; - public bool KeysDown_290; - public bool KeysDown_291; - public bool KeysDown_292; - public bool KeysDown_293; - public bool KeysDown_294; - public bool KeysDown_295; - public bool KeysDown_296; - public bool KeysDown_297; - public bool KeysDown_298; - public bool KeysDown_299; - public bool KeysDown_300; - public bool KeysDown_301; - public bool KeysDown_302; - public bool KeysDown_303; - public bool KeysDown_304; - public bool KeysDown_305; - public bool KeysDown_306; - public bool KeysDown_307; - public bool KeysDown_308; - public bool KeysDown_309; - public bool KeysDown_310; - public bool KeysDown_311; - public bool KeysDown_312; - public bool KeysDown_313; - public bool KeysDown_314; - public bool KeysDown_315; - public bool KeysDown_316; - public bool KeysDown_317; - public bool KeysDown_318; - public bool KeysDown_319; - public bool KeysDown_320; - public bool KeysDown_321; - public bool KeysDown_322; - public bool KeysDown_323; - public bool KeysDown_324; - public bool KeysDown_325; - public bool KeysDown_326; - public bool KeysDown_327; - public bool KeysDown_328; - public bool KeysDown_329; - public bool KeysDown_330; - public bool KeysDown_331; - public bool KeysDown_332; - public bool KeysDown_333; - public bool KeysDown_334; - public bool KeysDown_335; - public bool KeysDown_336; - public bool KeysDown_337; - public bool KeysDown_338; - public bool KeysDown_339; - public bool KeysDown_340; - public bool KeysDown_341; - public bool KeysDown_342; - public bool KeysDown_343; - public bool KeysDown_344; - public bool KeysDown_345; - public bool KeysDown_346; - public bool KeysDown_347; - public bool KeysDown_348; - public bool KeysDown_349; - public bool KeysDown_350; - public bool KeysDown_351; - public bool KeysDown_352; - public bool KeysDown_353; - public bool KeysDown_354; - public bool KeysDown_355; - public bool KeysDown_356; - public bool KeysDown_357; - public bool KeysDown_358; - public bool KeysDown_359; - public bool KeysDown_360; - public bool KeysDown_361; - public bool KeysDown_362; - public bool KeysDown_363; - public bool KeysDown_364; - public bool KeysDown_365; - public bool KeysDown_366; - public bool KeysDown_367; - public bool KeysDown_368; - public bool KeysDown_369; - public bool KeysDown_370; - public bool KeysDown_371; - public bool KeysDown_372; - public bool KeysDown_373; - public bool KeysDown_374; - public bool KeysDown_375; - public bool KeysDown_376; - public bool KeysDown_377; - public bool KeysDown_378; - public bool KeysDown_379; - public bool KeysDown_380; - public bool KeysDown_381; - public bool KeysDown_382; - public bool KeysDown_383; - public bool KeysDown_384; - public bool KeysDown_385; - public bool KeysDown_386; - public bool KeysDown_387; - public bool KeysDown_388; - public bool KeysDown_389; - public bool KeysDown_390; - public bool KeysDown_391; - public bool KeysDown_392; - public bool KeysDown_393; - public bool KeysDown_394; - public bool KeysDown_395; - public bool KeysDown_396; - public bool KeysDown_397; - public bool KeysDown_398; - public bool KeysDown_399; - public bool KeysDown_400; - public bool KeysDown_401; - public bool KeysDown_402; - public bool KeysDown_403; - public bool KeysDown_404; - public bool KeysDown_405; - public bool KeysDown_406; - public bool KeysDown_407; - public bool KeysDown_408; - public bool KeysDown_409; - public bool KeysDown_410; - public bool KeysDown_411; - public bool KeysDown_412; - public bool KeysDown_413; - public bool KeysDown_414; - public bool KeysDown_415; - public bool KeysDown_416; - public bool KeysDown_417; - public bool KeysDown_418; - public bool KeysDown_419; - public bool KeysDown_420; - public bool KeysDown_421; - public bool KeysDown_422; - public bool KeysDown_423; - public bool KeysDown_424; - public bool KeysDown_425; - public bool KeysDown_426; - public bool KeysDown_427; - public bool KeysDown_428; - public bool KeysDown_429; - public bool KeysDown_430; - public bool KeysDown_431; - public bool KeysDown_432; - public bool KeysDown_433; - public bool KeysDown_434; - public bool KeysDown_435; - public bool KeysDown_436; - public bool KeysDown_437; - public bool KeysDown_438; - public bool KeysDown_439; - public bool KeysDown_440; - public bool KeysDown_441; - public bool KeysDown_442; - public bool KeysDown_443; - public bool KeysDown_444; - public bool KeysDown_445; - public bool KeysDown_446; - public bool KeysDown_447; - public bool KeysDown_448; - public bool KeysDown_449; - public bool KeysDown_450; - public bool KeysDown_451; - public bool KeysDown_452; - public bool KeysDown_453; - public bool KeysDown_454; - public bool KeysDown_455; - public bool KeysDown_456; - public bool KeysDown_457; - public bool KeysDown_458; - public bool KeysDown_459; - public bool KeysDown_460; - public bool KeysDown_461; - public bool KeysDown_462; - public bool KeysDown_463; - public bool KeysDown_464; - public bool KeysDown_465; - public bool KeysDown_466; - public bool KeysDown_467; - public bool KeysDown_468; - public bool KeysDown_469; - public bool KeysDown_470; - public bool KeysDown_471; - public bool KeysDown_472; - public bool KeysDown_473; - public bool KeysDown_474; - public bool KeysDown_475; - public bool KeysDown_476; - public bool KeysDown_477; - public bool KeysDown_478; - public bool KeysDown_479; - public bool KeysDown_480; - public bool KeysDown_481; - public bool KeysDown_482; - public bool KeysDown_483; - public bool KeysDown_484; - public bool KeysDown_485; - public bool KeysDown_486; - public bool KeysDown_487; - public bool KeysDown_488; - public bool KeysDown_489; - public bool KeysDown_490; - public bool KeysDown_491; - public bool KeysDown_492; - public bool KeysDown_493; - public bool KeysDown_494; - public bool KeysDown_495; - public bool KeysDown_496; - public bool KeysDown_497; - public bool KeysDown_498; - public bool KeysDown_499; - public bool KeysDown_500; - public bool KeysDown_501; - public bool KeysDown_502; - public bool KeysDown_503; - public bool KeysDown_504; - public bool KeysDown_505; - public bool KeysDown_506; - public bool KeysDown_507; - public bool KeysDown_508; - public bool KeysDown_509; - public bool KeysDown_510; - public bool KeysDown_511; - public bool KeysDown_512; - public bool KeysDown_513; - public bool KeysDown_514; - public bool KeysDown_515; - public bool KeysDown_516; - public bool KeysDown_517; - public bool KeysDown_518; - public bool KeysDown_519; - public bool KeysDown_520; - public bool KeysDown_521; - public bool KeysDown_522; - public bool KeysDown_523; - public bool KeysDown_524; - public bool KeysDown_525; - public bool KeysDown_526; - public bool KeysDown_527; - public bool KeysDown_528; - public bool KeysDown_529; - public bool KeysDown_530; - public bool KeysDown_531; - public bool KeysDown_532; - public bool KeysDown_533; - public bool KeysDown_534; - public bool KeysDown_535; - public bool KeysDown_536; - public bool KeysDown_537; - public bool KeysDown_538; - public bool KeysDown_539; - public bool KeysDown_540; - public bool KeysDown_541; - public bool KeysDown_542; - public bool KeysDown_543; - public bool KeysDown_544; - public bool KeysDown_545; - public bool KeysDown_546; - public bool KeysDown_547; - public bool KeysDown_548; - public bool KeysDown_549; - public bool KeysDown_550; - public bool KeysDown_551; - public bool KeysDown_552; - public bool KeysDown_553; - public bool KeysDown_554; - public bool KeysDown_555; - public bool KeysDown_556; - public bool KeysDown_557; - public bool KeysDown_558; - public bool KeysDown_559; - public bool KeysDown_560; - public bool KeysDown_561; - public bool KeysDown_562; - public bool KeysDown_563; - public bool KeysDown_564; - public bool KeysDown_565; - public bool KeysDown_566; - public bool KeysDown_567; - public bool KeysDown_568; - public bool KeysDown_569; - public bool KeysDown_570; - public bool KeysDown_571; - public bool KeysDown_572; - public bool KeysDown_573; - public bool KeysDown_574; - public bool KeysDown_575; - public bool KeysDown_576; - public bool KeysDown_577; - public bool KeysDown_578; - public bool KeysDown_579; - public bool KeysDown_580; - public bool KeysDown_581; - public bool KeysDown_582; - public bool KeysDown_583; - public bool KeysDown_584; - public bool KeysDown_585; - public bool KeysDown_586; - public bool KeysDown_587; - public bool KeysDown_588; - public bool KeysDown_589; - public bool KeysDown_590; - public bool KeysDown_591; - public bool KeysDown_592; - public bool KeysDown_593; - public bool KeysDown_594; - public bool KeysDown_595; - public bool KeysDown_596; - public bool KeysDown_597; - public bool KeysDown_598; - public bool KeysDown_599; - public bool KeysDown_600; - public bool KeysDown_601; - public bool KeysDown_602; - public bool KeysDown_603; - public bool KeysDown_604; - public bool KeysDown_605; - public bool KeysDown_606; - public bool KeysDown_607; - public bool KeysDown_608; - public bool KeysDown_609; - public bool KeysDown_610; - public bool KeysDown_611; - public bool KeysDown_612; - public bool KeysDown_613; - public bool KeysDown_614; - public bool KeysDown_615; - public bool KeysDown_616; - public bool KeysDown_617; - public bool KeysDown_618; - public bool KeysDown_619; - public bool KeysDown_620; - public bool KeysDown_621; - public bool KeysDown_622; - public bool KeysDown_623; - public bool KeysDown_624; - public bool KeysDown_625; - public bool KeysDown_626; - public bool KeysDown_627; - public bool KeysDown_628; - public bool KeysDown_629; - public bool KeysDown_630; - public bool KeysDown_631; - public bool KeysDown_632; - public bool KeysDown_633; - public bool KeysDown_634; - public bool KeysDown_635; - public bool KeysDown_636; - public bool KeysDown_637; - public bool KeysDown_638; - public bool KeysDown_639; - public bool KeysDown_640; - public bool KeysDown_641; - public bool KeysDown_642; - public bool KeysDown_643; - public bool KeysDown_644; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MousePos; - - /// <summary> - /// To be documented. - /// </summary> - public bool MouseDown_0; - public bool MouseDown_1; - public bool MouseDown_2; - public bool MouseDown_3; - public bool MouseDown_4; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseWheel; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseWheelH; - - /// <summary> - /// To be documented. - /// </summary> - public uint MouseHoveredViewport; - - /// <summary> - /// To be documented. - /// </summary> - public byte KeyCtrl; - - /// <summary> - /// To be documented. - /// </summary> - public byte KeyShift; - - /// <summary> - /// To be documented. - /// </summary> - public byte KeyAlt; - - /// <summary> - /// To be documented. - /// </summary> - public byte KeySuper; - - /// <summary> - /// To be documented. - /// </summary> - public float NavInputs_0; - public float NavInputs_1; - public float NavInputs_2; - public float NavInputs_3; - public float NavInputs_4; - public float NavInputs_5; - public float NavInputs_6; - public float NavInputs_7; - public float NavInputs_8; - public float NavInputs_9; - public float NavInputs_10; - public float NavInputs_11; - public float NavInputs_12; - public float NavInputs_13; - public float NavInputs_14; - public float NavInputs_15; - public float NavInputs_16; - public float NavInputs_17; - public float NavInputs_18; - public float NavInputs_19; - public float NavInputs_20; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags KeyMods; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiKeyData KeysData_0; - public ImGuiKeyData KeysData_1; - public ImGuiKeyData KeysData_2; - public ImGuiKeyData KeysData_3; - public ImGuiKeyData KeysData_4; - public ImGuiKeyData KeysData_5; - public ImGuiKeyData KeysData_6; - public ImGuiKeyData KeysData_7; - public ImGuiKeyData KeysData_8; - public ImGuiKeyData KeysData_9; - public ImGuiKeyData KeysData_10; - public ImGuiKeyData KeysData_11; - public ImGuiKeyData KeysData_12; - public ImGuiKeyData KeysData_13; - public ImGuiKeyData KeysData_14; - public ImGuiKeyData KeysData_15; - public ImGuiKeyData KeysData_16; - public ImGuiKeyData KeysData_17; - public ImGuiKeyData KeysData_18; - public ImGuiKeyData KeysData_19; - public ImGuiKeyData KeysData_20; - public ImGuiKeyData KeysData_21; - public ImGuiKeyData KeysData_22; - public ImGuiKeyData KeysData_23; - public ImGuiKeyData KeysData_24; - public ImGuiKeyData KeysData_25; - public ImGuiKeyData KeysData_26; - public ImGuiKeyData KeysData_27; - public ImGuiKeyData KeysData_28; - public ImGuiKeyData KeysData_29; - public ImGuiKeyData KeysData_30; - public ImGuiKeyData KeysData_31; - public ImGuiKeyData KeysData_32; - public ImGuiKeyData KeysData_33; - public ImGuiKeyData KeysData_34; - public ImGuiKeyData KeysData_35; - public ImGuiKeyData KeysData_36; - public ImGuiKeyData KeysData_37; - public ImGuiKeyData KeysData_38; - public ImGuiKeyData KeysData_39; - public ImGuiKeyData KeysData_40; - public ImGuiKeyData KeysData_41; - public ImGuiKeyData KeysData_42; - public ImGuiKeyData KeysData_43; - public ImGuiKeyData KeysData_44; - public ImGuiKeyData KeysData_45; - public ImGuiKeyData KeysData_46; - public ImGuiKeyData KeysData_47; - public ImGuiKeyData KeysData_48; - public ImGuiKeyData KeysData_49; - public ImGuiKeyData KeysData_50; - public ImGuiKeyData KeysData_51; - public ImGuiKeyData KeysData_52; - public ImGuiKeyData KeysData_53; - public ImGuiKeyData KeysData_54; - public ImGuiKeyData KeysData_55; - public ImGuiKeyData KeysData_56; - public ImGuiKeyData KeysData_57; - public ImGuiKeyData KeysData_58; - public ImGuiKeyData KeysData_59; - public ImGuiKeyData KeysData_60; - public ImGuiKeyData KeysData_61; - public ImGuiKeyData KeysData_62; - public ImGuiKeyData KeysData_63; - public ImGuiKeyData KeysData_64; - public ImGuiKeyData KeysData_65; - public ImGuiKeyData KeysData_66; - public ImGuiKeyData KeysData_67; - public ImGuiKeyData KeysData_68; - public ImGuiKeyData KeysData_69; - public ImGuiKeyData KeysData_70; - public ImGuiKeyData KeysData_71; - public ImGuiKeyData KeysData_72; - public ImGuiKeyData KeysData_73; - public ImGuiKeyData KeysData_74; - public ImGuiKeyData KeysData_75; - public ImGuiKeyData KeysData_76; - public ImGuiKeyData KeysData_77; - public ImGuiKeyData KeysData_78; - public ImGuiKeyData KeysData_79; - public ImGuiKeyData KeysData_80; - public ImGuiKeyData KeysData_81; - public ImGuiKeyData KeysData_82; - public ImGuiKeyData KeysData_83; - public ImGuiKeyData KeysData_84; - public ImGuiKeyData KeysData_85; - public ImGuiKeyData KeysData_86; - public ImGuiKeyData KeysData_87; - public ImGuiKeyData KeysData_88; - public ImGuiKeyData KeysData_89; - public ImGuiKeyData KeysData_90; - public ImGuiKeyData KeysData_91; - public ImGuiKeyData KeysData_92; - public ImGuiKeyData KeysData_93; - public ImGuiKeyData KeysData_94; - public ImGuiKeyData KeysData_95; - public ImGuiKeyData KeysData_96; - public ImGuiKeyData KeysData_97; - public ImGuiKeyData KeysData_98; - public ImGuiKeyData KeysData_99; - public ImGuiKeyData KeysData_100; - public ImGuiKeyData KeysData_101; - public ImGuiKeyData KeysData_102; - public ImGuiKeyData KeysData_103; - public ImGuiKeyData KeysData_104; - public ImGuiKeyData KeysData_105; - public ImGuiKeyData KeysData_106; - public ImGuiKeyData KeysData_107; - public ImGuiKeyData KeysData_108; - public ImGuiKeyData KeysData_109; - public ImGuiKeyData KeysData_110; - public ImGuiKeyData KeysData_111; - public ImGuiKeyData KeysData_112; - public ImGuiKeyData KeysData_113; - public ImGuiKeyData KeysData_114; - public ImGuiKeyData KeysData_115; - public ImGuiKeyData KeysData_116; - public ImGuiKeyData KeysData_117; - public ImGuiKeyData KeysData_118; - public ImGuiKeyData KeysData_119; - public ImGuiKeyData KeysData_120; - public ImGuiKeyData KeysData_121; - public ImGuiKeyData KeysData_122; - public ImGuiKeyData KeysData_123; - public ImGuiKeyData KeysData_124; - public ImGuiKeyData KeysData_125; - public ImGuiKeyData KeysData_126; - public ImGuiKeyData KeysData_127; - public ImGuiKeyData KeysData_128; - public ImGuiKeyData KeysData_129; - public ImGuiKeyData KeysData_130; - public ImGuiKeyData KeysData_131; - public ImGuiKeyData KeysData_132; - public ImGuiKeyData KeysData_133; - public ImGuiKeyData KeysData_134; - public ImGuiKeyData KeysData_135; - public ImGuiKeyData KeysData_136; - public ImGuiKeyData KeysData_137; - public ImGuiKeyData KeysData_138; - public ImGuiKeyData KeysData_139; - public ImGuiKeyData KeysData_140; - public ImGuiKeyData KeysData_141; - public ImGuiKeyData KeysData_142; - public ImGuiKeyData KeysData_143; - public ImGuiKeyData KeysData_144; - public ImGuiKeyData KeysData_145; - public ImGuiKeyData KeysData_146; - public ImGuiKeyData KeysData_147; - public ImGuiKeyData KeysData_148; - public ImGuiKeyData KeysData_149; - public ImGuiKeyData KeysData_150; - public ImGuiKeyData KeysData_151; - public ImGuiKeyData KeysData_152; - public ImGuiKeyData KeysData_153; - public ImGuiKeyData KeysData_154; - public ImGuiKeyData KeysData_155; - public ImGuiKeyData KeysData_156; - public ImGuiKeyData KeysData_157; - public ImGuiKeyData KeysData_158; - public ImGuiKeyData KeysData_159; - public ImGuiKeyData KeysData_160; - public ImGuiKeyData KeysData_161; - public ImGuiKeyData KeysData_162; - public ImGuiKeyData KeysData_163; - public ImGuiKeyData KeysData_164; - public ImGuiKeyData KeysData_165; - public ImGuiKeyData KeysData_166; - public ImGuiKeyData KeysData_167; - public ImGuiKeyData KeysData_168; - public ImGuiKeyData KeysData_169; - public ImGuiKeyData KeysData_170; - public ImGuiKeyData KeysData_171; - public ImGuiKeyData KeysData_172; - public ImGuiKeyData KeysData_173; - public ImGuiKeyData KeysData_174; - public ImGuiKeyData KeysData_175; - public ImGuiKeyData KeysData_176; - public ImGuiKeyData KeysData_177; - public ImGuiKeyData KeysData_178; - public ImGuiKeyData KeysData_179; - public ImGuiKeyData KeysData_180; - public ImGuiKeyData KeysData_181; - public ImGuiKeyData KeysData_182; - public ImGuiKeyData KeysData_183; - public ImGuiKeyData KeysData_184; - public ImGuiKeyData KeysData_185; - public ImGuiKeyData KeysData_186; - public ImGuiKeyData KeysData_187; - public ImGuiKeyData KeysData_188; - public ImGuiKeyData KeysData_189; - public ImGuiKeyData KeysData_190; - public ImGuiKeyData KeysData_191; - public ImGuiKeyData KeysData_192; - public ImGuiKeyData KeysData_193; - public ImGuiKeyData KeysData_194; - public ImGuiKeyData KeysData_195; - public ImGuiKeyData KeysData_196; - public ImGuiKeyData KeysData_197; - public ImGuiKeyData KeysData_198; - public ImGuiKeyData KeysData_199; - public ImGuiKeyData KeysData_200; - public ImGuiKeyData KeysData_201; - public ImGuiKeyData KeysData_202; - public ImGuiKeyData KeysData_203; - public ImGuiKeyData KeysData_204; - public ImGuiKeyData KeysData_205; - public ImGuiKeyData KeysData_206; - public ImGuiKeyData KeysData_207; - public ImGuiKeyData KeysData_208; - public ImGuiKeyData KeysData_209; - public ImGuiKeyData KeysData_210; - public ImGuiKeyData KeysData_211; - public ImGuiKeyData KeysData_212; - public ImGuiKeyData KeysData_213; - public ImGuiKeyData KeysData_214; - public ImGuiKeyData KeysData_215; - public ImGuiKeyData KeysData_216; - public ImGuiKeyData KeysData_217; - public ImGuiKeyData KeysData_218; - public ImGuiKeyData KeysData_219; - public ImGuiKeyData KeysData_220; - public ImGuiKeyData KeysData_221; - public ImGuiKeyData KeysData_222; - public ImGuiKeyData KeysData_223; - public ImGuiKeyData KeysData_224; - public ImGuiKeyData KeysData_225; - public ImGuiKeyData KeysData_226; - public ImGuiKeyData KeysData_227; - public ImGuiKeyData KeysData_228; - public ImGuiKeyData KeysData_229; - public ImGuiKeyData KeysData_230; - public ImGuiKeyData KeysData_231; - public ImGuiKeyData KeysData_232; - public ImGuiKeyData KeysData_233; - public ImGuiKeyData KeysData_234; - public ImGuiKeyData KeysData_235; - public ImGuiKeyData KeysData_236; - public ImGuiKeyData KeysData_237; - public ImGuiKeyData KeysData_238; - public ImGuiKeyData KeysData_239; - public ImGuiKeyData KeysData_240; - public ImGuiKeyData KeysData_241; - public ImGuiKeyData KeysData_242; - public ImGuiKeyData KeysData_243; - public ImGuiKeyData KeysData_244; - public ImGuiKeyData KeysData_245; - public ImGuiKeyData KeysData_246; - public ImGuiKeyData KeysData_247; - public ImGuiKeyData KeysData_248; - public ImGuiKeyData KeysData_249; - public ImGuiKeyData KeysData_250; - public ImGuiKeyData KeysData_251; - public ImGuiKeyData KeysData_252; - public ImGuiKeyData KeysData_253; - public ImGuiKeyData KeysData_254; - public ImGuiKeyData KeysData_255; - public ImGuiKeyData KeysData_256; - public ImGuiKeyData KeysData_257; - public ImGuiKeyData KeysData_258; - public ImGuiKeyData KeysData_259; - public ImGuiKeyData KeysData_260; - public ImGuiKeyData KeysData_261; - public ImGuiKeyData KeysData_262; - public ImGuiKeyData KeysData_263; - public ImGuiKeyData KeysData_264; - public ImGuiKeyData KeysData_265; - public ImGuiKeyData KeysData_266; - public ImGuiKeyData KeysData_267; - public ImGuiKeyData KeysData_268; - public ImGuiKeyData KeysData_269; - public ImGuiKeyData KeysData_270; - public ImGuiKeyData KeysData_271; - public ImGuiKeyData KeysData_272; - public ImGuiKeyData KeysData_273; - public ImGuiKeyData KeysData_274; - public ImGuiKeyData KeysData_275; - public ImGuiKeyData KeysData_276; - public ImGuiKeyData KeysData_277; - public ImGuiKeyData KeysData_278; - public ImGuiKeyData KeysData_279; - public ImGuiKeyData KeysData_280; - public ImGuiKeyData KeysData_281; - public ImGuiKeyData KeysData_282; - public ImGuiKeyData KeysData_283; - public ImGuiKeyData KeysData_284; - public ImGuiKeyData KeysData_285; - public ImGuiKeyData KeysData_286; - public ImGuiKeyData KeysData_287; - public ImGuiKeyData KeysData_288; - public ImGuiKeyData KeysData_289; - public ImGuiKeyData KeysData_290; - public ImGuiKeyData KeysData_291; - public ImGuiKeyData KeysData_292; - public ImGuiKeyData KeysData_293; - public ImGuiKeyData KeysData_294; - public ImGuiKeyData KeysData_295; - public ImGuiKeyData KeysData_296; - public ImGuiKeyData KeysData_297; - public ImGuiKeyData KeysData_298; - public ImGuiKeyData KeysData_299; - public ImGuiKeyData KeysData_300; - public ImGuiKeyData KeysData_301; - public ImGuiKeyData KeysData_302; - public ImGuiKeyData KeysData_303; - public ImGuiKeyData KeysData_304; - public ImGuiKeyData KeysData_305; - public ImGuiKeyData KeysData_306; - public ImGuiKeyData KeysData_307; - public ImGuiKeyData KeysData_308; - public ImGuiKeyData KeysData_309; - public ImGuiKeyData KeysData_310; - public ImGuiKeyData KeysData_311; - public ImGuiKeyData KeysData_312; - public ImGuiKeyData KeysData_313; - public ImGuiKeyData KeysData_314; - public ImGuiKeyData KeysData_315; - public ImGuiKeyData KeysData_316; - public ImGuiKeyData KeysData_317; - public ImGuiKeyData KeysData_318; - public ImGuiKeyData KeysData_319; - public ImGuiKeyData KeysData_320; - public ImGuiKeyData KeysData_321; - public ImGuiKeyData KeysData_322; - public ImGuiKeyData KeysData_323; - public ImGuiKeyData KeysData_324; - public ImGuiKeyData KeysData_325; - public ImGuiKeyData KeysData_326; - public ImGuiKeyData KeysData_327; - public ImGuiKeyData KeysData_328; - public ImGuiKeyData KeysData_329; - public ImGuiKeyData KeysData_330; - public ImGuiKeyData KeysData_331; - public ImGuiKeyData KeysData_332; - public ImGuiKeyData KeysData_333; - public ImGuiKeyData KeysData_334; - public ImGuiKeyData KeysData_335; - public ImGuiKeyData KeysData_336; - public ImGuiKeyData KeysData_337; - public ImGuiKeyData KeysData_338; - public ImGuiKeyData KeysData_339; - public ImGuiKeyData KeysData_340; - public ImGuiKeyData KeysData_341; - public ImGuiKeyData KeysData_342; - public ImGuiKeyData KeysData_343; - public ImGuiKeyData KeysData_344; - public ImGuiKeyData KeysData_345; - public ImGuiKeyData KeysData_346; - public ImGuiKeyData KeysData_347; - public ImGuiKeyData KeysData_348; - public ImGuiKeyData KeysData_349; - public ImGuiKeyData KeysData_350; - public ImGuiKeyData KeysData_351; - public ImGuiKeyData KeysData_352; - public ImGuiKeyData KeysData_353; - public ImGuiKeyData KeysData_354; - public ImGuiKeyData KeysData_355; - public ImGuiKeyData KeysData_356; - public ImGuiKeyData KeysData_357; - public ImGuiKeyData KeysData_358; - public ImGuiKeyData KeysData_359; - public ImGuiKeyData KeysData_360; - public ImGuiKeyData KeysData_361; - public ImGuiKeyData KeysData_362; - public ImGuiKeyData KeysData_363; - public ImGuiKeyData KeysData_364; - public ImGuiKeyData KeysData_365; - public ImGuiKeyData KeysData_366; - public ImGuiKeyData KeysData_367; - public ImGuiKeyData KeysData_368; - public ImGuiKeyData KeysData_369; - public ImGuiKeyData KeysData_370; - public ImGuiKeyData KeysData_371; - public ImGuiKeyData KeysData_372; - public ImGuiKeyData KeysData_373; - public ImGuiKeyData KeysData_374; - public ImGuiKeyData KeysData_375; - public ImGuiKeyData KeysData_376; - public ImGuiKeyData KeysData_377; - public ImGuiKeyData KeysData_378; - public ImGuiKeyData KeysData_379; - public ImGuiKeyData KeysData_380; - public ImGuiKeyData KeysData_381; - public ImGuiKeyData KeysData_382; - public ImGuiKeyData KeysData_383; - public ImGuiKeyData KeysData_384; - public ImGuiKeyData KeysData_385; - public ImGuiKeyData KeysData_386; - public ImGuiKeyData KeysData_387; - public ImGuiKeyData KeysData_388; - public ImGuiKeyData KeysData_389; - public ImGuiKeyData KeysData_390; - public ImGuiKeyData KeysData_391; - public ImGuiKeyData KeysData_392; - public ImGuiKeyData KeysData_393; - public ImGuiKeyData KeysData_394; - public ImGuiKeyData KeysData_395; - public ImGuiKeyData KeysData_396; - public ImGuiKeyData KeysData_397; - public ImGuiKeyData KeysData_398; - public ImGuiKeyData KeysData_399; - public ImGuiKeyData KeysData_400; - public ImGuiKeyData KeysData_401; - public ImGuiKeyData KeysData_402; - public ImGuiKeyData KeysData_403; - public ImGuiKeyData KeysData_404; - public ImGuiKeyData KeysData_405; - public ImGuiKeyData KeysData_406; - public ImGuiKeyData KeysData_407; - public ImGuiKeyData KeysData_408; - public ImGuiKeyData KeysData_409; - public ImGuiKeyData KeysData_410; - public ImGuiKeyData KeysData_411; - public ImGuiKeyData KeysData_412; - public ImGuiKeyData KeysData_413; - public ImGuiKeyData KeysData_414; - public ImGuiKeyData KeysData_415; - public ImGuiKeyData KeysData_416; - public ImGuiKeyData KeysData_417; - public ImGuiKeyData KeysData_418; - public ImGuiKeyData KeysData_419; - public ImGuiKeyData KeysData_420; - public ImGuiKeyData KeysData_421; - public ImGuiKeyData KeysData_422; - public ImGuiKeyData KeysData_423; - public ImGuiKeyData KeysData_424; - public ImGuiKeyData KeysData_425; - public ImGuiKeyData KeysData_426; - public ImGuiKeyData KeysData_427; - public ImGuiKeyData KeysData_428; - public ImGuiKeyData KeysData_429; - public ImGuiKeyData KeysData_430; - public ImGuiKeyData KeysData_431; - public ImGuiKeyData KeysData_432; - public ImGuiKeyData KeysData_433; - public ImGuiKeyData KeysData_434; - public ImGuiKeyData KeysData_435; - public ImGuiKeyData KeysData_436; - public ImGuiKeyData KeysData_437; - public ImGuiKeyData KeysData_438; - public ImGuiKeyData KeysData_439; - public ImGuiKeyData KeysData_440; - public ImGuiKeyData KeysData_441; - public ImGuiKeyData KeysData_442; - public ImGuiKeyData KeysData_443; - public ImGuiKeyData KeysData_444; - public ImGuiKeyData KeysData_445; - public ImGuiKeyData KeysData_446; - public ImGuiKeyData KeysData_447; - public ImGuiKeyData KeysData_448; - public ImGuiKeyData KeysData_449; - public ImGuiKeyData KeysData_450; - public ImGuiKeyData KeysData_451; - public ImGuiKeyData KeysData_452; - public ImGuiKeyData KeysData_453; - public ImGuiKeyData KeysData_454; - public ImGuiKeyData KeysData_455; - public ImGuiKeyData KeysData_456; - public ImGuiKeyData KeysData_457; - public ImGuiKeyData KeysData_458; - public ImGuiKeyData KeysData_459; - public ImGuiKeyData KeysData_460; - public ImGuiKeyData KeysData_461; - public ImGuiKeyData KeysData_462; - public ImGuiKeyData KeysData_463; - public ImGuiKeyData KeysData_464; - public ImGuiKeyData KeysData_465; - public ImGuiKeyData KeysData_466; - public ImGuiKeyData KeysData_467; - public ImGuiKeyData KeysData_468; - public ImGuiKeyData KeysData_469; - public ImGuiKeyData KeysData_470; - public ImGuiKeyData KeysData_471; - public ImGuiKeyData KeysData_472; - public ImGuiKeyData KeysData_473; - public ImGuiKeyData KeysData_474; - public ImGuiKeyData KeysData_475; - public ImGuiKeyData KeysData_476; - public ImGuiKeyData KeysData_477; - public ImGuiKeyData KeysData_478; - public ImGuiKeyData KeysData_479; - public ImGuiKeyData KeysData_480; - public ImGuiKeyData KeysData_481; - public ImGuiKeyData KeysData_482; - public ImGuiKeyData KeysData_483; - public ImGuiKeyData KeysData_484; - public ImGuiKeyData KeysData_485; - public ImGuiKeyData KeysData_486; - public ImGuiKeyData KeysData_487; - public ImGuiKeyData KeysData_488; - public ImGuiKeyData KeysData_489; - public ImGuiKeyData KeysData_490; - public ImGuiKeyData KeysData_491; - public ImGuiKeyData KeysData_492; - public ImGuiKeyData KeysData_493; - public ImGuiKeyData KeysData_494; - public ImGuiKeyData KeysData_495; - public ImGuiKeyData KeysData_496; - public ImGuiKeyData KeysData_497; - public ImGuiKeyData KeysData_498; - public ImGuiKeyData KeysData_499; - public ImGuiKeyData KeysData_500; - public ImGuiKeyData KeysData_501; - public ImGuiKeyData KeysData_502; - public ImGuiKeyData KeysData_503; - public ImGuiKeyData KeysData_504; - public ImGuiKeyData KeysData_505; - public ImGuiKeyData KeysData_506; - public ImGuiKeyData KeysData_507; - public ImGuiKeyData KeysData_508; - public ImGuiKeyData KeysData_509; - public ImGuiKeyData KeysData_510; - public ImGuiKeyData KeysData_511; - public ImGuiKeyData KeysData_512; - public ImGuiKeyData KeysData_513; - public ImGuiKeyData KeysData_514; - public ImGuiKeyData KeysData_515; - public ImGuiKeyData KeysData_516; - public ImGuiKeyData KeysData_517; - public ImGuiKeyData KeysData_518; - public ImGuiKeyData KeysData_519; - public ImGuiKeyData KeysData_520; - public ImGuiKeyData KeysData_521; - public ImGuiKeyData KeysData_522; - public ImGuiKeyData KeysData_523; - public ImGuiKeyData KeysData_524; - public ImGuiKeyData KeysData_525; - public ImGuiKeyData KeysData_526; - public ImGuiKeyData KeysData_527; - public ImGuiKeyData KeysData_528; - public ImGuiKeyData KeysData_529; - public ImGuiKeyData KeysData_530; - public ImGuiKeyData KeysData_531; - public ImGuiKeyData KeysData_532; - public ImGuiKeyData KeysData_533; - public ImGuiKeyData KeysData_534; - public ImGuiKeyData KeysData_535; - public ImGuiKeyData KeysData_536; - public ImGuiKeyData KeysData_537; - public ImGuiKeyData KeysData_538; - public ImGuiKeyData KeysData_539; - public ImGuiKeyData KeysData_540; - public ImGuiKeyData KeysData_541; - public ImGuiKeyData KeysData_542; - public ImGuiKeyData KeysData_543; - public ImGuiKeyData KeysData_544; - public ImGuiKeyData KeysData_545; - public ImGuiKeyData KeysData_546; - public ImGuiKeyData KeysData_547; - public ImGuiKeyData KeysData_548; - public ImGuiKeyData KeysData_549; - public ImGuiKeyData KeysData_550; - public ImGuiKeyData KeysData_551; - public ImGuiKeyData KeysData_552; - public ImGuiKeyData KeysData_553; - public ImGuiKeyData KeysData_554; - public ImGuiKeyData KeysData_555; - public ImGuiKeyData KeysData_556; - public ImGuiKeyData KeysData_557; - public ImGuiKeyData KeysData_558; - public ImGuiKeyData KeysData_559; - public ImGuiKeyData KeysData_560; - public ImGuiKeyData KeysData_561; - public ImGuiKeyData KeysData_562; - public ImGuiKeyData KeysData_563; - public ImGuiKeyData KeysData_564; - public ImGuiKeyData KeysData_565; - public ImGuiKeyData KeysData_566; - public ImGuiKeyData KeysData_567; - public ImGuiKeyData KeysData_568; - public ImGuiKeyData KeysData_569; - public ImGuiKeyData KeysData_570; - public ImGuiKeyData KeysData_571; - public ImGuiKeyData KeysData_572; - public ImGuiKeyData KeysData_573; - public ImGuiKeyData KeysData_574; - public ImGuiKeyData KeysData_575; - public ImGuiKeyData KeysData_576; - public ImGuiKeyData KeysData_577; - public ImGuiKeyData KeysData_578; - public ImGuiKeyData KeysData_579; - public ImGuiKeyData KeysData_580; - public ImGuiKeyData KeysData_581; - public ImGuiKeyData KeysData_582; - public ImGuiKeyData KeysData_583; - public ImGuiKeyData KeysData_584; - public ImGuiKeyData KeysData_585; - public ImGuiKeyData KeysData_586; - public ImGuiKeyData KeysData_587; - public ImGuiKeyData KeysData_588; - public ImGuiKeyData KeysData_589; - public ImGuiKeyData KeysData_590; - public ImGuiKeyData KeysData_591; - public ImGuiKeyData KeysData_592; - public ImGuiKeyData KeysData_593; - public ImGuiKeyData KeysData_594; - public ImGuiKeyData KeysData_595; - public ImGuiKeyData KeysData_596; - public ImGuiKeyData KeysData_597; - public ImGuiKeyData KeysData_598; - public ImGuiKeyData KeysData_599; - public ImGuiKeyData KeysData_600; - public ImGuiKeyData KeysData_601; - public ImGuiKeyData KeysData_602; - public ImGuiKeyData KeysData_603; - public ImGuiKeyData KeysData_604; - public ImGuiKeyData KeysData_605; - public ImGuiKeyData KeysData_606; - public ImGuiKeyData KeysData_607; - public ImGuiKeyData KeysData_608; - public ImGuiKeyData KeysData_609; - public ImGuiKeyData KeysData_610; - public ImGuiKeyData KeysData_611; - public ImGuiKeyData KeysData_612; - public ImGuiKeyData KeysData_613; - public ImGuiKeyData KeysData_614; - public ImGuiKeyData KeysData_615; - public ImGuiKeyData KeysData_616; - public ImGuiKeyData KeysData_617; - public ImGuiKeyData KeysData_618; - public ImGuiKeyData KeysData_619; - public ImGuiKeyData KeysData_620; - public ImGuiKeyData KeysData_621; - public ImGuiKeyData KeysData_622; - public ImGuiKeyData KeysData_623; - public ImGuiKeyData KeysData_624; - public ImGuiKeyData KeysData_625; - public ImGuiKeyData KeysData_626; - public ImGuiKeyData KeysData_627; - public ImGuiKeyData KeysData_628; - public ImGuiKeyData KeysData_629; - public ImGuiKeyData KeysData_630; - public ImGuiKeyData KeysData_631; - public ImGuiKeyData KeysData_632; - public ImGuiKeyData KeysData_633; - public ImGuiKeyData KeysData_634; - public ImGuiKeyData KeysData_635; - public ImGuiKeyData KeysData_636; - public ImGuiKeyData KeysData_637; - public ImGuiKeyData KeysData_638; - public ImGuiKeyData KeysData_639; - public ImGuiKeyData KeysData_640; - public ImGuiKeyData KeysData_641; - public ImGuiKeyData KeysData_642; - public ImGuiKeyData KeysData_643; - public ImGuiKeyData KeysData_644; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantCaptureMouseUnlessPopupClose; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MousePosPrev; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MouseClickedPos_0; - public Vector2 MouseClickedPos_1; - public Vector2 MouseClickedPos_2; - public Vector2 MouseClickedPos_3; - public Vector2 MouseClickedPos_4; - - /// <summary> - /// To be documented. - /// </summary> - public double MouseClickedTime_0; - public double MouseClickedTime_1; - public double MouseClickedTime_2; - public double MouseClickedTime_3; - public double MouseClickedTime_4; - - /// <summary> - /// To be documented. - /// </summary> - public bool MouseClicked_0; - public bool MouseClicked_1; - public bool MouseClicked_2; - public bool MouseClicked_3; - public bool MouseClicked_4; - - /// <summary> - /// To be documented. - /// </summary> - public bool MouseDoubleClicked_0; - public bool MouseDoubleClicked_1; - public bool MouseDoubleClicked_2; - public bool MouseDoubleClicked_3; - public bool MouseDoubleClicked_4; - - /// <summary> - /// To be documented. - /// </summary> - public ushort MouseClickedCount_0; - public ushort MouseClickedCount_1; - public ushort MouseClickedCount_2; - public ushort MouseClickedCount_3; - public ushort MouseClickedCount_4; - - /// <summary> - /// To be documented. - /// </summary> - public ushort MouseClickedLastCount_0; - public ushort MouseClickedLastCount_1; - public ushort MouseClickedLastCount_2; - public ushort MouseClickedLastCount_3; - public ushort MouseClickedLastCount_4; - - /// <summary> - /// To be documented. - /// </summary> - public bool MouseReleased_0; - public bool MouseReleased_1; - public bool MouseReleased_2; - public bool MouseReleased_3; - public bool MouseReleased_4; - - /// <summary> - /// To be documented. - /// </summary> - public bool MouseDownOwned_0; - public bool MouseDownOwned_1; - public bool MouseDownOwned_2; - public bool MouseDownOwned_3; - public bool MouseDownOwned_4; - - /// <summary> - /// To be documented. - /// </summary> - public bool MouseDownOwnedUnlessPopupClose_0; - public bool MouseDownOwnedUnlessPopupClose_1; - public bool MouseDownOwnedUnlessPopupClose_2; - public bool MouseDownOwnedUnlessPopupClose_3; - public bool MouseDownOwnedUnlessPopupClose_4; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseDownDuration_0; - public float MouseDownDuration_1; - public float MouseDownDuration_2; - public float MouseDownDuration_3; - public float MouseDownDuration_4; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseDownDurationPrev_0; - public float MouseDownDurationPrev_1; - public float MouseDownDurationPrev_2; - public float MouseDownDurationPrev_3; - public float MouseDownDurationPrev_4; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MouseDragMaxDistanceAbs_0; - public Vector2 MouseDragMaxDistanceAbs_1; - public Vector2 MouseDragMaxDistanceAbs_2; - public Vector2 MouseDragMaxDistanceAbs_3; - public Vector2 MouseDragMaxDistanceAbs_4; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseDragMaxDistanceSqr_0; - public float MouseDragMaxDistanceSqr_1; - public float MouseDragMaxDistanceSqr_2; - public float MouseDragMaxDistanceSqr_3; - public float MouseDragMaxDistanceSqr_4; - - /// <summary> - /// To be documented. - /// </summary> - public float NavInputsDownDuration_0; - public float NavInputsDownDuration_1; - public float NavInputsDownDuration_2; - public float NavInputsDownDuration_3; - public float NavInputsDownDuration_4; - public float NavInputsDownDuration_5; - public float NavInputsDownDuration_6; - public float NavInputsDownDuration_7; - public float NavInputsDownDuration_8; - public float NavInputsDownDuration_9; - public float NavInputsDownDuration_10; - public float NavInputsDownDuration_11; - public float NavInputsDownDuration_12; - public float NavInputsDownDuration_13; - public float NavInputsDownDuration_14; - public float NavInputsDownDuration_15; - public float NavInputsDownDuration_16; - public float NavInputsDownDuration_17; - public float NavInputsDownDuration_18; - public float NavInputsDownDuration_19; - public float NavInputsDownDuration_20; - - /// <summary> - /// To be documented. - /// </summary> - public float NavInputsDownDurationPrev_0; - public float NavInputsDownDurationPrev_1; - public float NavInputsDownDurationPrev_2; - public float NavInputsDownDurationPrev_3; - public float NavInputsDownDurationPrev_4; - public float NavInputsDownDurationPrev_5; - public float NavInputsDownDurationPrev_6; - public float NavInputsDownDurationPrev_7; - public float NavInputsDownDurationPrev_8; - public float NavInputsDownDurationPrev_9; - public float NavInputsDownDurationPrev_10; - public float NavInputsDownDurationPrev_11; - public float NavInputsDownDurationPrev_12; - public float NavInputsDownDurationPrev_13; - public float NavInputsDownDurationPrev_14; - public float NavInputsDownDurationPrev_15; - public float NavInputsDownDurationPrev_16; - public float NavInputsDownDurationPrev_17; - public float NavInputsDownDurationPrev_18; - public float NavInputsDownDurationPrev_19; - public float NavInputsDownDurationPrev_20; - - /// <summary> - /// To be documented. - /// </summary> - public float PenPressure; - - /// <summary> - /// To be documented. - /// </summary> - public byte AppFocusLost; - - /// <summary> - /// To be documented. - /// </summary> - public byte AppAcceptingEvents; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte BackendUsingLegacyKeyArrays; - - /// <summary> - /// To be documented. - /// </summary> - public byte BackendUsingLegacyNavInputArray; - - /// <summary> - /// To be documented. - /// </summary> - public ushort InputQueueSurrogate; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ushort> InputQueueCharacters; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate*<void*, byte*> getClipboardTextFn = default, delegate*<void*, byte*, void> setClipboardTextFn = default, void* clipboardUserData = default, delegate*<ImGuiViewport*, ImGuiPlatformImeData*, void> setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, int* keyMap = default, bool* keysDown = default, Vector2 mousePos = default, bool* mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, float* navInputs = default, ImGuiModFlags keyMods = default, ImGuiKeyData* keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Vector2* mouseClickedPos = default, double* mouseClickedTime = default, bool* mouseClicked = default, bool* mouseDoubleClicked = default, ushort* mouseClickedCount = default, ushort* mouseClickedLastCount = default, bool* mouseReleased = default, bool* mouseDownOwned = default, bool* mouseDownOwnedUnlessPopupClose = default, float* mouseDownDuration = default, float* mouseDownDurationPrev = default, Vector2* mouseDragMaxDistanceAbs = default, float* mouseDragMaxDistanceSqr = default, float* navInputsDownDuration = default, float* navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector<ushort> inputQueueCharacters = default) - { - ConfigFlags = configFlags; - BackendFlags = backendFlags; - DisplaySize = displaySize; - DeltaTime = deltaTime; - IniSavingRate = iniSavingRate; - IniFilename = iniFilename; - LogFilename = logFilename; - MouseDoubleClickTime = mouseDoubleClickTime; - MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; - MouseDragThreshold = mouseDragThreshold; - KeyRepeatDelay = keyRepeatDelay; - KeyRepeatRate = keyRepeatRate; - UserData = userData; - Fonts = fonts; - FontGlobalScale = fontGlobalScale; - FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; - FontDefault = fontDefault; - DisplayFramebufferScale = displayFramebufferScale; - ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; - ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; - ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; - ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; - ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; - ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; - ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; - ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; - MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; - ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; - ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; - ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; - ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; - ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; - ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; - ConfigMemoryCompactTimer = configMemoryCompactTimer; - BackendPlatformName = backendPlatformName; - BackendRendererName = backendRendererName; - BackendPlatformUserData = backendPlatformUserData; - BackendRendererUserData = backendRendererUserData; - BackendLanguageUserData = backendLanguageUserData; - GetClipboardTextFn = (void*)getClipboardTextFn; - SetClipboardTextFn = (void*)setClipboardTextFn; - ClipboardUserData = clipboardUserData; - SetPlatformImeDataFn = (void*)setPlatformImeDataFn; - UnusedPadding = unusedPadding; - WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; - WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; - WantTextInput = wantTextInput ? (byte)1 : (byte)0; - WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; - WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; - NavActive = navActive ? (byte)1 : (byte)0; - NavVisible = navVisible ? (byte)1 : (byte)0; - Framerate = framerate; - MetricsRenderVertices = metricsRenderVertices; - MetricsRenderIndices = metricsRenderIndices; - MetricsRenderWindows = metricsRenderWindows; - MetricsActiveWindows = metricsActiveWindows; - MetricsActiveAllocations = metricsActiveAllocations; - MouseDelta = mouseDelta; - if (keyMap != default(int*)) - { - KeyMap_0 = keyMap[0]; - KeyMap_1 = keyMap[1]; - KeyMap_2 = keyMap[2]; - KeyMap_3 = keyMap[3]; - KeyMap_4 = keyMap[4]; - KeyMap_5 = keyMap[5]; - KeyMap_6 = keyMap[6]; - KeyMap_7 = keyMap[7]; - KeyMap_8 = keyMap[8]; - KeyMap_9 = keyMap[9]; - KeyMap_10 = keyMap[10]; - KeyMap_11 = keyMap[11]; - KeyMap_12 = keyMap[12]; - KeyMap_13 = keyMap[13]; - KeyMap_14 = keyMap[14]; - KeyMap_15 = keyMap[15]; - KeyMap_16 = keyMap[16]; - KeyMap_17 = keyMap[17]; - KeyMap_18 = keyMap[18]; - KeyMap_19 = keyMap[19]; - KeyMap_20 = keyMap[20]; - KeyMap_21 = keyMap[21]; - KeyMap_22 = keyMap[22]; - KeyMap_23 = keyMap[23]; - KeyMap_24 = keyMap[24]; - KeyMap_25 = keyMap[25]; - KeyMap_26 = keyMap[26]; - KeyMap_27 = keyMap[27]; - KeyMap_28 = keyMap[28]; - KeyMap_29 = keyMap[29]; - KeyMap_30 = keyMap[30]; - KeyMap_31 = keyMap[31]; - KeyMap_32 = keyMap[32]; - KeyMap_33 = keyMap[33]; - KeyMap_34 = keyMap[34]; - KeyMap_35 = keyMap[35]; - KeyMap_36 = keyMap[36]; - KeyMap_37 = keyMap[37]; - KeyMap_38 = keyMap[38]; - KeyMap_39 = keyMap[39]; - KeyMap_40 = keyMap[40]; - KeyMap_41 = keyMap[41]; - KeyMap_42 = keyMap[42]; - KeyMap_43 = keyMap[43]; - KeyMap_44 = keyMap[44]; - KeyMap_45 = keyMap[45]; - KeyMap_46 = keyMap[46]; - KeyMap_47 = keyMap[47]; - KeyMap_48 = keyMap[48]; - KeyMap_49 = keyMap[49]; - KeyMap_50 = keyMap[50]; - KeyMap_51 = keyMap[51]; - KeyMap_52 = keyMap[52]; - KeyMap_53 = keyMap[53]; - KeyMap_54 = keyMap[54]; - KeyMap_55 = keyMap[55]; - KeyMap_56 = keyMap[56]; - KeyMap_57 = keyMap[57]; - KeyMap_58 = keyMap[58]; - KeyMap_59 = keyMap[59]; - KeyMap_60 = keyMap[60]; - KeyMap_61 = keyMap[61]; - KeyMap_62 = keyMap[62]; - KeyMap_63 = keyMap[63]; - KeyMap_64 = keyMap[64]; - KeyMap_65 = keyMap[65]; - KeyMap_66 = keyMap[66]; - KeyMap_67 = keyMap[67]; - KeyMap_68 = keyMap[68]; - KeyMap_69 = keyMap[69]; - KeyMap_70 = keyMap[70]; - KeyMap_71 = keyMap[71]; - KeyMap_72 = keyMap[72]; - KeyMap_73 = keyMap[73]; - KeyMap_74 = keyMap[74]; - KeyMap_75 = keyMap[75]; - KeyMap_76 = keyMap[76]; - KeyMap_77 = keyMap[77]; - KeyMap_78 = keyMap[78]; - KeyMap_79 = keyMap[79]; - KeyMap_80 = keyMap[80]; - KeyMap_81 = keyMap[81]; - KeyMap_82 = keyMap[82]; - KeyMap_83 = keyMap[83]; - KeyMap_84 = keyMap[84]; - KeyMap_85 = keyMap[85]; - KeyMap_86 = keyMap[86]; - KeyMap_87 = keyMap[87]; - KeyMap_88 = keyMap[88]; - KeyMap_89 = keyMap[89]; - KeyMap_90 = keyMap[90]; - KeyMap_91 = keyMap[91]; - KeyMap_92 = keyMap[92]; - KeyMap_93 = keyMap[93]; - KeyMap_94 = keyMap[94]; - KeyMap_95 = keyMap[95]; - KeyMap_96 = keyMap[96]; - KeyMap_97 = keyMap[97]; - KeyMap_98 = keyMap[98]; - KeyMap_99 = keyMap[99]; - KeyMap_100 = keyMap[100]; - KeyMap_101 = keyMap[101]; - KeyMap_102 = keyMap[102]; - KeyMap_103 = keyMap[103]; - KeyMap_104 = keyMap[104]; - KeyMap_105 = keyMap[105]; - KeyMap_106 = keyMap[106]; - KeyMap_107 = keyMap[107]; - KeyMap_108 = keyMap[108]; - KeyMap_109 = keyMap[109]; - KeyMap_110 = keyMap[110]; - KeyMap_111 = keyMap[111]; - KeyMap_112 = keyMap[112]; - KeyMap_113 = keyMap[113]; - KeyMap_114 = keyMap[114]; - KeyMap_115 = keyMap[115]; - KeyMap_116 = keyMap[116]; - KeyMap_117 = keyMap[117]; - KeyMap_118 = keyMap[118]; - KeyMap_119 = keyMap[119]; - KeyMap_120 = keyMap[120]; - KeyMap_121 = keyMap[121]; - KeyMap_122 = keyMap[122]; - KeyMap_123 = keyMap[123]; - KeyMap_124 = keyMap[124]; - KeyMap_125 = keyMap[125]; - KeyMap_126 = keyMap[126]; - KeyMap_127 = keyMap[127]; - KeyMap_128 = keyMap[128]; - KeyMap_129 = keyMap[129]; - KeyMap_130 = keyMap[130]; - KeyMap_131 = keyMap[131]; - KeyMap_132 = keyMap[132]; - KeyMap_133 = keyMap[133]; - KeyMap_134 = keyMap[134]; - KeyMap_135 = keyMap[135]; - KeyMap_136 = keyMap[136]; - KeyMap_137 = keyMap[137]; - KeyMap_138 = keyMap[138]; - KeyMap_139 = keyMap[139]; - KeyMap_140 = keyMap[140]; - KeyMap_141 = keyMap[141]; - KeyMap_142 = keyMap[142]; - KeyMap_143 = keyMap[143]; - KeyMap_144 = keyMap[144]; - KeyMap_145 = keyMap[145]; - KeyMap_146 = keyMap[146]; - KeyMap_147 = keyMap[147]; - KeyMap_148 = keyMap[148]; - KeyMap_149 = keyMap[149]; - KeyMap_150 = keyMap[150]; - KeyMap_151 = keyMap[151]; - KeyMap_152 = keyMap[152]; - KeyMap_153 = keyMap[153]; - KeyMap_154 = keyMap[154]; - KeyMap_155 = keyMap[155]; - KeyMap_156 = keyMap[156]; - KeyMap_157 = keyMap[157]; - KeyMap_158 = keyMap[158]; - KeyMap_159 = keyMap[159]; - KeyMap_160 = keyMap[160]; - KeyMap_161 = keyMap[161]; - KeyMap_162 = keyMap[162]; - KeyMap_163 = keyMap[163]; - KeyMap_164 = keyMap[164]; - KeyMap_165 = keyMap[165]; - KeyMap_166 = keyMap[166]; - KeyMap_167 = keyMap[167]; - KeyMap_168 = keyMap[168]; - KeyMap_169 = keyMap[169]; - KeyMap_170 = keyMap[170]; - KeyMap_171 = keyMap[171]; - KeyMap_172 = keyMap[172]; - KeyMap_173 = keyMap[173]; - KeyMap_174 = keyMap[174]; - KeyMap_175 = keyMap[175]; - KeyMap_176 = keyMap[176]; - KeyMap_177 = keyMap[177]; - KeyMap_178 = keyMap[178]; - KeyMap_179 = keyMap[179]; - KeyMap_180 = keyMap[180]; - KeyMap_181 = keyMap[181]; - KeyMap_182 = keyMap[182]; - KeyMap_183 = keyMap[183]; - KeyMap_184 = keyMap[184]; - KeyMap_185 = keyMap[185]; - KeyMap_186 = keyMap[186]; - KeyMap_187 = keyMap[187]; - KeyMap_188 = keyMap[188]; - KeyMap_189 = keyMap[189]; - KeyMap_190 = keyMap[190]; - KeyMap_191 = keyMap[191]; - KeyMap_192 = keyMap[192]; - KeyMap_193 = keyMap[193]; - KeyMap_194 = keyMap[194]; - KeyMap_195 = keyMap[195]; - KeyMap_196 = keyMap[196]; - KeyMap_197 = keyMap[197]; - KeyMap_198 = keyMap[198]; - KeyMap_199 = keyMap[199]; - KeyMap_200 = keyMap[200]; - KeyMap_201 = keyMap[201]; - KeyMap_202 = keyMap[202]; - KeyMap_203 = keyMap[203]; - KeyMap_204 = keyMap[204]; - KeyMap_205 = keyMap[205]; - KeyMap_206 = keyMap[206]; - KeyMap_207 = keyMap[207]; - KeyMap_208 = keyMap[208]; - KeyMap_209 = keyMap[209]; - KeyMap_210 = keyMap[210]; - KeyMap_211 = keyMap[211]; - KeyMap_212 = keyMap[212]; - KeyMap_213 = keyMap[213]; - KeyMap_214 = keyMap[214]; - KeyMap_215 = keyMap[215]; - KeyMap_216 = keyMap[216]; - KeyMap_217 = keyMap[217]; - KeyMap_218 = keyMap[218]; - KeyMap_219 = keyMap[219]; - KeyMap_220 = keyMap[220]; - KeyMap_221 = keyMap[221]; - KeyMap_222 = keyMap[222]; - KeyMap_223 = keyMap[223]; - KeyMap_224 = keyMap[224]; - KeyMap_225 = keyMap[225]; - KeyMap_226 = keyMap[226]; - KeyMap_227 = keyMap[227]; - KeyMap_228 = keyMap[228]; - KeyMap_229 = keyMap[229]; - KeyMap_230 = keyMap[230]; - KeyMap_231 = keyMap[231]; - KeyMap_232 = keyMap[232]; - KeyMap_233 = keyMap[233]; - KeyMap_234 = keyMap[234]; - KeyMap_235 = keyMap[235]; - KeyMap_236 = keyMap[236]; - KeyMap_237 = keyMap[237]; - KeyMap_238 = keyMap[238]; - KeyMap_239 = keyMap[239]; - KeyMap_240 = keyMap[240]; - KeyMap_241 = keyMap[241]; - KeyMap_242 = keyMap[242]; - KeyMap_243 = keyMap[243]; - KeyMap_244 = keyMap[244]; - KeyMap_245 = keyMap[245]; - KeyMap_246 = keyMap[246]; - KeyMap_247 = keyMap[247]; - KeyMap_248 = keyMap[248]; - KeyMap_249 = keyMap[249]; - KeyMap_250 = keyMap[250]; - KeyMap_251 = keyMap[251]; - KeyMap_252 = keyMap[252]; - KeyMap_253 = keyMap[253]; - KeyMap_254 = keyMap[254]; - KeyMap_255 = keyMap[255]; - KeyMap_256 = keyMap[256]; - KeyMap_257 = keyMap[257]; - KeyMap_258 = keyMap[258]; - KeyMap_259 = keyMap[259]; - KeyMap_260 = keyMap[260]; - KeyMap_261 = keyMap[261]; - KeyMap_262 = keyMap[262]; - KeyMap_263 = keyMap[263]; - KeyMap_264 = keyMap[264]; - KeyMap_265 = keyMap[265]; - KeyMap_266 = keyMap[266]; - KeyMap_267 = keyMap[267]; - KeyMap_268 = keyMap[268]; - KeyMap_269 = keyMap[269]; - KeyMap_270 = keyMap[270]; - KeyMap_271 = keyMap[271]; - KeyMap_272 = keyMap[272]; - KeyMap_273 = keyMap[273]; - KeyMap_274 = keyMap[274]; - KeyMap_275 = keyMap[275]; - KeyMap_276 = keyMap[276]; - KeyMap_277 = keyMap[277]; - KeyMap_278 = keyMap[278]; - KeyMap_279 = keyMap[279]; - KeyMap_280 = keyMap[280]; - KeyMap_281 = keyMap[281]; - KeyMap_282 = keyMap[282]; - KeyMap_283 = keyMap[283]; - KeyMap_284 = keyMap[284]; - KeyMap_285 = keyMap[285]; - KeyMap_286 = keyMap[286]; - KeyMap_287 = keyMap[287]; - KeyMap_288 = keyMap[288]; - KeyMap_289 = keyMap[289]; - KeyMap_290 = keyMap[290]; - KeyMap_291 = keyMap[291]; - KeyMap_292 = keyMap[292]; - KeyMap_293 = keyMap[293]; - KeyMap_294 = keyMap[294]; - KeyMap_295 = keyMap[295]; - KeyMap_296 = keyMap[296]; - KeyMap_297 = keyMap[297]; - KeyMap_298 = keyMap[298]; - KeyMap_299 = keyMap[299]; - KeyMap_300 = keyMap[300]; - KeyMap_301 = keyMap[301]; - KeyMap_302 = keyMap[302]; - KeyMap_303 = keyMap[303]; - KeyMap_304 = keyMap[304]; - KeyMap_305 = keyMap[305]; - KeyMap_306 = keyMap[306]; - KeyMap_307 = keyMap[307]; - KeyMap_308 = keyMap[308]; - KeyMap_309 = keyMap[309]; - KeyMap_310 = keyMap[310]; - KeyMap_311 = keyMap[311]; - KeyMap_312 = keyMap[312]; - KeyMap_313 = keyMap[313]; - KeyMap_314 = keyMap[314]; - KeyMap_315 = keyMap[315]; - KeyMap_316 = keyMap[316]; - KeyMap_317 = keyMap[317]; - KeyMap_318 = keyMap[318]; - KeyMap_319 = keyMap[319]; - KeyMap_320 = keyMap[320]; - KeyMap_321 = keyMap[321]; - KeyMap_322 = keyMap[322]; - KeyMap_323 = keyMap[323]; - KeyMap_324 = keyMap[324]; - KeyMap_325 = keyMap[325]; - KeyMap_326 = keyMap[326]; - KeyMap_327 = keyMap[327]; - KeyMap_328 = keyMap[328]; - KeyMap_329 = keyMap[329]; - KeyMap_330 = keyMap[330]; - KeyMap_331 = keyMap[331]; - KeyMap_332 = keyMap[332]; - KeyMap_333 = keyMap[333]; - KeyMap_334 = keyMap[334]; - KeyMap_335 = keyMap[335]; - KeyMap_336 = keyMap[336]; - KeyMap_337 = keyMap[337]; - KeyMap_338 = keyMap[338]; - KeyMap_339 = keyMap[339]; - KeyMap_340 = keyMap[340]; - KeyMap_341 = keyMap[341]; - KeyMap_342 = keyMap[342]; - KeyMap_343 = keyMap[343]; - KeyMap_344 = keyMap[344]; - KeyMap_345 = keyMap[345]; - KeyMap_346 = keyMap[346]; - KeyMap_347 = keyMap[347]; - KeyMap_348 = keyMap[348]; - KeyMap_349 = keyMap[349]; - KeyMap_350 = keyMap[350]; - KeyMap_351 = keyMap[351]; - KeyMap_352 = keyMap[352]; - KeyMap_353 = keyMap[353]; - KeyMap_354 = keyMap[354]; - KeyMap_355 = keyMap[355]; - KeyMap_356 = keyMap[356]; - KeyMap_357 = keyMap[357]; - KeyMap_358 = keyMap[358]; - KeyMap_359 = keyMap[359]; - KeyMap_360 = keyMap[360]; - KeyMap_361 = keyMap[361]; - KeyMap_362 = keyMap[362]; - KeyMap_363 = keyMap[363]; - KeyMap_364 = keyMap[364]; - KeyMap_365 = keyMap[365]; - KeyMap_366 = keyMap[366]; - KeyMap_367 = keyMap[367]; - KeyMap_368 = keyMap[368]; - KeyMap_369 = keyMap[369]; - KeyMap_370 = keyMap[370]; - KeyMap_371 = keyMap[371]; - KeyMap_372 = keyMap[372]; - KeyMap_373 = keyMap[373]; - KeyMap_374 = keyMap[374]; - KeyMap_375 = keyMap[375]; - KeyMap_376 = keyMap[376]; - KeyMap_377 = keyMap[377]; - KeyMap_378 = keyMap[378]; - KeyMap_379 = keyMap[379]; - KeyMap_380 = keyMap[380]; - KeyMap_381 = keyMap[381]; - KeyMap_382 = keyMap[382]; - KeyMap_383 = keyMap[383]; - KeyMap_384 = keyMap[384]; - KeyMap_385 = keyMap[385]; - KeyMap_386 = keyMap[386]; - KeyMap_387 = keyMap[387]; - KeyMap_388 = keyMap[388]; - KeyMap_389 = keyMap[389]; - KeyMap_390 = keyMap[390]; - KeyMap_391 = keyMap[391]; - KeyMap_392 = keyMap[392]; - KeyMap_393 = keyMap[393]; - KeyMap_394 = keyMap[394]; - KeyMap_395 = keyMap[395]; - KeyMap_396 = keyMap[396]; - KeyMap_397 = keyMap[397]; - KeyMap_398 = keyMap[398]; - KeyMap_399 = keyMap[399]; - KeyMap_400 = keyMap[400]; - KeyMap_401 = keyMap[401]; - KeyMap_402 = keyMap[402]; - KeyMap_403 = keyMap[403]; - KeyMap_404 = keyMap[404]; - KeyMap_405 = keyMap[405]; - KeyMap_406 = keyMap[406]; - KeyMap_407 = keyMap[407]; - KeyMap_408 = keyMap[408]; - KeyMap_409 = keyMap[409]; - KeyMap_410 = keyMap[410]; - KeyMap_411 = keyMap[411]; - KeyMap_412 = keyMap[412]; - KeyMap_413 = keyMap[413]; - KeyMap_414 = keyMap[414]; - KeyMap_415 = keyMap[415]; - KeyMap_416 = keyMap[416]; - KeyMap_417 = keyMap[417]; - KeyMap_418 = keyMap[418]; - KeyMap_419 = keyMap[419]; - KeyMap_420 = keyMap[420]; - KeyMap_421 = keyMap[421]; - KeyMap_422 = keyMap[422]; - KeyMap_423 = keyMap[423]; - KeyMap_424 = keyMap[424]; - KeyMap_425 = keyMap[425]; - KeyMap_426 = keyMap[426]; - KeyMap_427 = keyMap[427]; - KeyMap_428 = keyMap[428]; - KeyMap_429 = keyMap[429]; - KeyMap_430 = keyMap[430]; - KeyMap_431 = keyMap[431]; - KeyMap_432 = keyMap[432]; - KeyMap_433 = keyMap[433]; - KeyMap_434 = keyMap[434]; - KeyMap_435 = keyMap[435]; - KeyMap_436 = keyMap[436]; - KeyMap_437 = keyMap[437]; - KeyMap_438 = keyMap[438]; - KeyMap_439 = keyMap[439]; - KeyMap_440 = keyMap[440]; - KeyMap_441 = keyMap[441]; - KeyMap_442 = keyMap[442]; - KeyMap_443 = keyMap[443]; - KeyMap_444 = keyMap[444]; - KeyMap_445 = keyMap[445]; - KeyMap_446 = keyMap[446]; - KeyMap_447 = keyMap[447]; - KeyMap_448 = keyMap[448]; - KeyMap_449 = keyMap[449]; - KeyMap_450 = keyMap[450]; - KeyMap_451 = keyMap[451]; - KeyMap_452 = keyMap[452]; - KeyMap_453 = keyMap[453]; - KeyMap_454 = keyMap[454]; - KeyMap_455 = keyMap[455]; - KeyMap_456 = keyMap[456]; - KeyMap_457 = keyMap[457]; - KeyMap_458 = keyMap[458]; - KeyMap_459 = keyMap[459]; - KeyMap_460 = keyMap[460]; - KeyMap_461 = keyMap[461]; - KeyMap_462 = keyMap[462]; - KeyMap_463 = keyMap[463]; - KeyMap_464 = keyMap[464]; - KeyMap_465 = keyMap[465]; - KeyMap_466 = keyMap[466]; - KeyMap_467 = keyMap[467]; - KeyMap_468 = keyMap[468]; - KeyMap_469 = keyMap[469]; - KeyMap_470 = keyMap[470]; - KeyMap_471 = keyMap[471]; - KeyMap_472 = keyMap[472]; - KeyMap_473 = keyMap[473]; - KeyMap_474 = keyMap[474]; - KeyMap_475 = keyMap[475]; - KeyMap_476 = keyMap[476]; - KeyMap_477 = keyMap[477]; - KeyMap_478 = keyMap[478]; - KeyMap_479 = keyMap[479]; - KeyMap_480 = keyMap[480]; - KeyMap_481 = keyMap[481]; - KeyMap_482 = keyMap[482]; - KeyMap_483 = keyMap[483]; - KeyMap_484 = keyMap[484]; - KeyMap_485 = keyMap[485]; - KeyMap_486 = keyMap[486]; - KeyMap_487 = keyMap[487]; - KeyMap_488 = keyMap[488]; - KeyMap_489 = keyMap[489]; - KeyMap_490 = keyMap[490]; - KeyMap_491 = keyMap[491]; - KeyMap_492 = keyMap[492]; - KeyMap_493 = keyMap[493]; - KeyMap_494 = keyMap[494]; - KeyMap_495 = keyMap[495]; - KeyMap_496 = keyMap[496]; - KeyMap_497 = keyMap[497]; - KeyMap_498 = keyMap[498]; - KeyMap_499 = keyMap[499]; - KeyMap_500 = keyMap[500]; - KeyMap_501 = keyMap[501]; - KeyMap_502 = keyMap[502]; - KeyMap_503 = keyMap[503]; - KeyMap_504 = keyMap[504]; - KeyMap_505 = keyMap[505]; - KeyMap_506 = keyMap[506]; - KeyMap_507 = keyMap[507]; - KeyMap_508 = keyMap[508]; - KeyMap_509 = keyMap[509]; - KeyMap_510 = keyMap[510]; - KeyMap_511 = keyMap[511]; - KeyMap_512 = keyMap[512]; - KeyMap_513 = keyMap[513]; - KeyMap_514 = keyMap[514]; - KeyMap_515 = keyMap[515]; - KeyMap_516 = keyMap[516]; - KeyMap_517 = keyMap[517]; - KeyMap_518 = keyMap[518]; - KeyMap_519 = keyMap[519]; - KeyMap_520 = keyMap[520]; - KeyMap_521 = keyMap[521]; - KeyMap_522 = keyMap[522]; - KeyMap_523 = keyMap[523]; - KeyMap_524 = keyMap[524]; - KeyMap_525 = keyMap[525]; - KeyMap_526 = keyMap[526]; - KeyMap_527 = keyMap[527]; - KeyMap_528 = keyMap[528]; - KeyMap_529 = keyMap[529]; - KeyMap_530 = keyMap[530]; - KeyMap_531 = keyMap[531]; - KeyMap_532 = keyMap[532]; - KeyMap_533 = keyMap[533]; - KeyMap_534 = keyMap[534]; - KeyMap_535 = keyMap[535]; - KeyMap_536 = keyMap[536]; - KeyMap_537 = keyMap[537]; - KeyMap_538 = keyMap[538]; - KeyMap_539 = keyMap[539]; - KeyMap_540 = keyMap[540]; - KeyMap_541 = keyMap[541]; - KeyMap_542 = keyMap[542]; - KeyMap_543 = keyMap[543]; - KeyMap_544 = keyMap[544]; - KeyMap_545 = keyMap[545]; - KeyMap_546 = keyMap[546]; - KeyMap_547 = keyMap[547]; - KeyMap_548 = keyMap[548]; - KeyMap_549 = keyMap[549]; - KeyMap_550 = keyMap[550]; - KeyMap_551 = keyMap[551]; - KeyMap_552 = keyMap[552]; - KeyMap_553 = keyMap[553]; - KeyMap_554 = keyMap[554]; - KeyMap_555 = keyMap[555]; - KeyMap_556 = keyMap[556]; - KeyMap_557 = keyMap[557]; - KeyMap_558 = keyMap[558]; - KeyMap_559 = keyMap[559]; - KeyMap_560 = keyMap[560]; - KeyMap_561 = keyMap[561]; - KeyMap_562 = keyMap[562]; - KeyMap_563 = keyMap[563]; - KeyMap_564 = keyMap[564]; - KeyMap_565 = keyMap[565]; - KeyMap_566 = keyMap[566]; - KeyMap_567 = keyMap[567]; - KeyMap_568 = keyMap[568]; - KeyMap_569 = keyMap[569]; - KeyMap_570 = keyMap[570]; - KeyMap_571 = keyMap[571]; - KeyMap_572 = keyMap[572]; - KeyMap_573 = keyMap[573]; - KeyMap_574 = keyMap[574]; - KeyMap_575 = keyMap[575]; - KeyMap_576 = keyMap[576]; - KeyMap_577 = keyMap[577]; - KeyMap_578 = keyMap[578]; - KeyMap_579 = keyMap[579]; - KeyMap_580 = keyMap[580]; - KeyMap_581 = keyMap[581]; - KeyMap_582 = keyMap[582]; - KeyMap_583 = keyMap[583]; - KeyMap_584 = keyMap[584]; - KeyMap_585 = keyMap[585]; - KeyMap_586 = keyMap[586]; - KeyMap_587 = keyMap[587]; - KeyMap_588 = keyMap[588]; - KeyMap_589 = keyMap[589]; - KeyMap_590 = keyMap[590]; - KeyMap_591 = keyMap[591]; - KeyMap_592 = keyMap[592]; - KeyMap_593 = keyMap[593]; - KeyMap_594 = keyMap[594]; - KeyMap_595 = keyMap[595]; - KeyMap_596 = keyMap[596]; - KeyMap_597 = keyMap[597]; - KeyMap_598 = keyMap[598]; - KeyMap_599 = keyMap[599]; - KeyMap_600 = keyMap[600]; - KeyMap_601 = keyMap[601]; - KeyMap_602 = keyMap[602]; - KeyMap_603 = keyMap[603]; - KeyMap_604 = keyMap[604]; - KeyMap_605 = keyMap[605]; - KeyMap_606 = keyMap[606]; - KeyMap_607 = keyMap[607]; - KeyMap_608 = keyMap[608]; - KeyMap_609 = keyMap[609]; - KeyMap_610 = keyMap[610]; - KeyMap_611 = keyMap[611]; - KeyMap_612 = keyMap[612]; - KeyMap_613 = keyMap[613]; - KeyMap_614 = keyMap[614]; - KeyMap_615 = keyMap[615]; - KeyMap_616 = keyMap[616]; - KeyMap_617 = keyMap[617]; - KeyMap_618 = keyMap[618]; - KeyMap_619 = keyMap[619]; - KeyMap_620 = keyMap[620]; - KeyMap_621 = keyMap[621]; - KeyMap_622 = keyMap[622]; - KeyMap_623 = keyMap[623]; - KeyMap_624 = keyMap[624]; - KeyMap_625 = keyMap[625]; - KeyMap_626 = keyMap[626]; - KeyMap_627 = keyMap[627]; - KeyMap_628 = keyMap[628]; - KeyMap_629 = keyMap[629]; - KeyMap_630 = keyMap[630]; - KeyMap_631 = keyMap[631]; - KeyMap_632 = keyMap[632]; - KeyMap_633 = keyMap[633]; - KeyMap_634 = keyMap[634]; - KeyMap_635 = keyMap[635]; - KeyMap_636 = keyMap[636]; - KeyMap_637 = keyMap[637]; - KeyMap_638 = keyMap[638]; - KeyMap_639 = keyMap[639]; - KeyMap_640 = keyMap[640]; - KeyMap_641 = keyMap[641]; - KeyMap_642 = keyMap[642]; - KeyMap_643 = keyMap[643]; - KeyMap_644 = keyMap[644]; - } - if (keysDown != default(bool*)) - { - KeysDown_0 = keysDown[0]; - KeysDown_1 = keysDown[1]; - KeysDown_2 = keysDown[2]; - KeysDown_3 = keysDown[3]; - KeysDown_4 = keysDown[4]; - KeysDown_5 = keysDown[5]; - KeysDown_6 = keysDown[6]; - KeysDown_7 = keysDown[7]; - KeysDown_8 = keysDown[8]; - KeysDown_9 = keysDown[9]; - KeysDown_10 = keysDown[10]; - KeysDown_11 = keysDown[11]; - KeysDown_12 = keysDown[12]; - KeysDown_13 = keysDown[13]; - KeysDown_14 = keysDown[14]; - KeysDown_15 = keysDown[15]; - KeysDown_16 = keysDown[16]; - KeysDown_17 = keysDown[17]; - KeysDown_18 = keysDown[18]; - KeysDown_19 = keysDown[19]; - KeysDown_20 = keysDown[20]; - KeysDown_21 = keysDown[21]; - KeysDown_22 = keysDown[22]; - KeysDown_23 = keysDown[23]; - KeysDown_24 = keysDown[24]; - KeysDown_25 = keysDown[25]; - KeysDown_26 = keysDown[26]; - KeysDown_27 = keysDown[27]; - KeysDown_28 = keysDown[28]; - KeysDown_29 = keysDown[29]; - KeysDown_30 = keysDown[30]; - KeysDown_31 = keysDown[31]; - KeysDown_32 = keysDown[32]; - KeysDown_33 = keysDown[33]; - KeysDown_34 = keysDown[34]; - KeysDown_35 = keysDown[35]; - KeysDown_36 = keysDown[36]; - KeysDown_37 = keysDown[37]; - KeysDown_38 = keysDown[38]; - KeysDown_39 = keysDown[39]; - KeysDown_40 = keysDown[40]; - KeysDown_41 = keysDown[41]; - KeysDown_42 = keysDown[42]; - KeysDown_43 = keysDown[43]; - KeysDown_44 = keysDown[44]; - KeysDown_45 = keysDown[45]; - KeysDown_46 = keysDown[46]; - KeysDown_47 = keysDown[47]; - KeysDown_48 = keysDown[48]; - KeysDown_49 = keysDown[49]; - KeysDown_50 = keysDown[50]; - KeysDown_51 = keysDown[51]; - KeysDown_52 = keysDown[52]; - KeysDown_53 = keysDown[53]; - KeysDown_54 = keysDown[54]; - KeysDown_55 = keysDown[55]; - KeysDown_56 = keysDown[56]; - KeysDown_57 = keysDown[57]; - KeysDown_58 = keysDown[58]; - KeysDown_59 = keysDown[59]; - KeysDown_60 = keysDown[60]; - KeysDown_61 = keysDown[61]; - KeysDown_62 = keysDown[62]; - KeysDown_63 = keysDown[63]; - KeysDown_64 = keysDown[64]; - KeysDown_65 = keysDown[65]; - KeysDown_66 = keysDown[66]; - KeysDown_67 = keysDown[67]; - KeysDown_68 = keysDown[68]; - KeysDown_69 = keysDown[69]; - KeysDown_70 = keysDown[70]; - KeysDown_71 = keysDown[71]; - KeysDown_72 = keysDown[72]; - KeysDown_73 = keysDown[73]; - KeysDown_74 = keysDown[74]; - KeysDown_75 = keysDown[75]; - KeysDown_76 = keysDown[76]; - KeysDown_77 = keysDown[77]; - KeysDown_78 = keysDown[78]; - KeysDown_79 = keysDown[79]; - KeysDown_80 = keysDown[80]; - KeysDown_81 = keysDown[81]; - KeysDown_82 = keysDown[82]; - KeysDown_83 = keysDown[83]; - KeysDown_84 = keysDown[84]; - KeysDown_85 = keysDown[85]; - KeysDown_86 = keysDown[86]; - KeysDown_87 = keysDown[87]; - KeysDown_88 = keysDown[88]; - KeysDown_89 = keysDown[89]; - KeysDown_90 = keysDown[90]; - KeysDown_91 = keysDown[91]; - KeysDown_92 = keysDown[92]; - KeysDown_93 = keysDown[93]; - KeysDown_94 = keysDown[94]; - KeysDown_95 = keysDown[95]; - KeysDown_96 = keysDown[96]; - KeysDown_97 = keysDown[97]; - KeysDown_98 = keysDown[98]; - KeysDown_99 = keysDown[99]; - KeysDown_100 = keysDown[100]; - KeysDown_101 = keysDown[101]; - KeysDown_102 = keysDown[102]; - KeysDown_103 = keysDown[103]; - KeysDown_104 = keysDown[104]; - KeysDown_105 = keysDown[105]; - KeysDown_106 = keysDown[106]; - KeysDown_107 = keysDown[107]; - KeysDown_108 = keysDown[108]; - KeysDown_109 = keysDown[109]; - KeysDown_110 = keysDown[110]; - KeysDown_111 = keysDown[111]; - KeysDown_112 = keysDown[112]; - KeysDown_113 = keysDown[113]; - KeysDown_114 = keysDown[114]; - KeysDown_115 = keysDown[115]; - KeysDown_116 = keysDown[116]; - KeysDown_117 = keysDown[117]; - KeysDown_118 = keysDown[118]; - KeysDown_119 = keysDown[119]; - KeysDown_120 = keysDown[120]; - KeysDown_121 = keysDown[121]; - KeysDown_122 = keysDown[122]; - KeysDown_123 = keysDown[123]; - KeysDown_124 = keysDown[124]; - KeysDown_125 = keysDown[125]; - KeysDown_126 = keysDown[126]; - KeysDown_127 = keysDown[127]; - KeysDown_128 = keysDown[128]; - KeysDown_129 = keysDown[129]; - KeysDown_130 = keysDown[130]; - KeysDown_131 = keysDown[131]; - KeysDown_132 = keysDown[132]; - KeysDown_133 = keysDown[133]; - KeysDown_134 = keysDown[134]; - KeysDown_135 = keysDown[135]; - KeysDown_136 = keysDown[136]; - KeysDown_137 = keysDown[137]; - KeysDown_138 = keysDown[138]; - KeysDown_139 = keysDown[139]; - KeysDown_140 = keysDown[140]; - KeysDown_141 = keysDown[141]; - KeysDown_142 = keysDown[142]; - KeysDown_143 = keysDown[143]; - KeysDown_144 = keysDown[144]; - KeysDown_145 = keysDown[145]; - KeysDown_146 = keysDown[146]; - KeysDown_147 = keysDown[147]; - KeysDown_148 = keysDown[148]; - KeysDown_149 = keysDown[149]; - KeysDown_150 = keysDown[150]; - KeysDown_151 = keysDown[151]; - KeysDown_152 = keysDown[152]; - KeysDown_153 = keysDown[153]; - KeysDown_154 = keysDown[154]; - KeysDown_155 = keysDown[155]; - KeysDown_156 = keysDown[156]; - KeysDown_157 = keysDown[157]; - KeysDown_158 = keysDown[158]; - KeysDown_159 = keysDown[159]; - KeysDown_160 = keysDown[160]; - KeysDown_161 = keysDown[161]; - KeysDown_162 = keysDown[162]; - KeysDown_163 = keysDown[163]; - KeysDown_164 = keysDown[164]; - KeysDown_165 = keysDown[165]; - KeysDown_166 = keysDown[166]; - KeysDown_167 = keysDown[167]; - KeysDown_168 = keysDown[168]; - KeysDown_169 = keysDown[169]; - KeysDown_170 = keysDown[170]; - KeysDown_171 = keysDown[171]; - KeysDown_172 = keysDown[172]; - KeysDown_173 = keysDown[173]; - KeysDown_174 = keysDown[174]; - KeysDown_175 = keysDown[175]; - KeysDown_176 = keysDown[176]; - KeysDown_177 = keysDown[177]; - KeysDown_178 = keysDown[178]; - KeysDown_179 = keysDown[179]; - KeysDown_180 = keysDown[180]; - KeysDown_181 = keysDown[181]; - KeysDown_182 = keysDown[182]; - KeysDown_183 = keysDown[183]; - KeysDown_184 = keysDown[184]; - KeysDown_185 = keysDown[185]; - KeysDown_186 = keysDown[186]; - KeysDown_187 = keysDown[187]; - KeysDown_188 = keysDown[188]; - KeysDown_189 = keysDown[189]; - KeysDown_190 = keysDown[190]; - KeysDown_191 = keysDown[191]; - KeysDown_192 = keysDown[192]; - KeysDown_193 = keysDown[193]; - KeysDown_194 = keysDown[194]; - KeysDown_195 = keysDown[195]; - KeysDown_196 = keysDown[196]; - KeysDown_197 = keysDown[197]; - KeysDown_198 = keysDown[198]; - KeysDown_199 = keysDown[199]; - KeysDown_200 = keysDown[200]; - KeysDown_201 = keysDown[201]; - KeysDown_202 = keysDown[202]; - KeysDown_203 = keysDown[203]; - KeysDown_204 = keysDown[204]; - KeysDown_205 = keysDown[205]; - KeysDown_206 = keysDown[206]; - KeysDown_207 = keysDown[207]; - KeysDown_208 = keysDown[208]; - KeysDown_209 = keysDown[209]; - KeysDown_210 = keysDown[210]; - KeysDown_211 = keysDown[211]; - KeysDown_212 = keysDown[212]; - KeysDown_213 = keysDown[213]; - KeysDown_214 = keysDown[214]; - KeysDown_215 = keysDown[215]; - KeysDown_216 = keysDown[216]; - KeysDown_217 = keysDown[217]; - KeysDown_218 = keysDown[218]; - KeysDown_219 = keysDown[219]; - KeysDown_220 = keysDown[220]; - KeysDown_221 = keysDown[221]; - KeysDown_222 = keysDown[222]; - KeysDown_223 = keysDown[223]; - KeysDown_224 = keysDown[224]; - KeysDown_225 = keysDown[225]; - KeysDown_226 = keysDown[226]; - KeysDown_227 = keysDown[227]; - KeysDown_228 = keysDown[228]; - KeysDown_229 = keysDown[229]; - KeysDown_230 = keysDown[230]; - KeysDown_231 = keysDown[231]; - KeysDown_232 = keysDown[232]; - KeysDown_233 = keysDown[233]; - KeysDown_234 = keysDown[234]; - KeysDown_235 = keysDown[235]; - KeysDown_236 = keysDown[236]; - KeysDown_237 = keysDown[237]; - KeysDown_238 = keysDown[238]; - KeysDown_239 = keysDown[239]; - KeysDown_240 = keysDown[240]; - KeysDown_241 = keysDown[241]; - KeysDown_242 = keysDown[242]; - KeysDown_243 = keysDown[243]; - KeysDown_244 = keysDown[244]; - KeysDown_245 = keysDown[245]; - KeysDown_246 = keysDown[246]; - KeysDown_247 = keysDown[247]; - KeysDown_248 = keysDown[248]; - KeysDown_249 = keysDown[249]; - KeysDown_250 = keysDown[250]; - KeysDown_251 = keysDown[251]; - KeysDown_252 = keysDown[252]; - KeysDown_253 = keysDown[253]; - KeysDown_254 = keysDown[254]; - KeysDown_255 = keysDown[255]; - KeysDown_256 = keysDown[256]; - KeysDown_257 = keysDown[257]; - KeysDown_258 = keysDown[258]; - KeysDown_259 = keysDown[259]; - KeysDown_260 = keysDown[260]; - KeysDown_261 = keysDown[261]; - KeysDown_262 = keysDown[262]; - KeysDown_263 = keysDown[263]; - KeysDown_264 = keysDown[264]; - KeysDown_265 = keysDown[265]; - KeysDown_266 = keysDown[266]; - KeysDown_267 = keysDown[267]; - KeysDown_268 = keysDown[268]; - KeysDown_269 = keysDown[269]; - KeysDown_270 = keysDown[270]; - KeysDown_271 = keysDown[271]; - KeysDown_272 = keysDown[272]; - KeysDown_273 = keysDown[273]; - KeysDown_274 = keysDown[274]; - KeysDown_275 = keysDown[275]; - KeysDown_276 = keysDown[276]; - KeysDown_277 = keysDown[277]; - KeysDown_278 = keysDown[278]; - KeysDown_279 = keysDown[279]; - KeysDown_280 = keysDown[280]; - KeysDown_281 = keysDown[281]; - KeysDown_282 = keysDown[282]; - KeysDown_283 = keysDown[283]; - KeysDown_284 = keysDown[284]; - KeysDown_285 = keysDown[285]; - KeysDown_286 = keysDown[286]; - KeysDown_287 = keysDown[287]; - KeysDown_288 = keysDown[288]; - KeysDown_289 = keysDown[289]; - KeysDown_290 = keysDown[290]; - KeysDown_291 = keysDown[291]; - KeysDown_292 = keysDown[292]; - KeysDown_293 = keysDown[293]; - KeysDown_294 = keysDown[294]; - KeysDown_295 = keysDown[295]; - KeysDown_296 = keysDown[296]; - KeysDown_297 = keysDown[297]; - KeysDown_298 = keysDown[298]; - KeysDown_299 = keysDown[299]; - KeysDown_300 = keysDown[300]; - KeysDown_301 = keysDown[301]; - KeysDown_302 = keysDown[302]; - KeysDown_303 = keysDown[303]; - KeysDown_304 = keysDown[304]; - KeysDown_305 = keysDown[305]; - KeysDown_306 = keysDown[306]; - KeysDown_307 = keysDown[307]; - KeysDown_308 = keysDown[308]; - KeysDown_309 = keysDown[309]; - KeysDown_310 = keysDown[310]; - KeysDown_311 = keysDown[311]; - KeysDown_312 = keysDown[312]; - KeysDown_313 = keysDown[313]; - KeysDown_314 = keysDown[314]; - KeysDown_315 = keysDown[315]; - KeysDown_316 = keysDown[316]; - KeysDown_317 = keysDown[317]; - KeysDown_318 = keysDown[318]; - KeysDown_319 = keysDown[319]; - KeysDown_320 = keysDown[320]; - KeysDown_321 = keysDown[321]; - KeysDown_322 = keysDown[322]; - KeysDown_323 = keysDown[323]; - KeysDown_324 = keysDown[324]; - KeysDown_325 = keysDown[325]; - KeysDown_326 = keysDown[326]; - KeysDown_327 = keysDown[327]; - KeysDown_328 = keysDown[328]; - KeysDown_329 = keysDown[329]; - KeysDown_330 = keysDown[330]; - KeysDown_331 = keysDown[331]; - KeysDown_332 = keysDown[332]; - KeysDown_333 = keysDown[333]; - KeysDown_334 = keysDown[334]; - KeysDown_335 = keysDown[335]; - KeysDown_336 = keysDown[336]; - KeysDown_337 = keysDown[337]; - KeysDown_338 = keysDown[338]; - KeysDown_339 = keysDown[339]; - KeysDown_340 = keysDown[340]; - KeysDown_341 = keysDown[341]; - KeysDown_342 = keysDown[342]; - KeysDown_343 = keysDown[343]; - KeysDown_344 = keysDown[344]; - KeysDown_345 = keysDown[345]; - KeysDown_346 = keysDown[346]; - KeysDown_347 = keysDown[347]; - KeysDown_348 = keysDown[348]; - KeysDown_349 = keysDown[349]; - KeysDown_350 = keysDown[350]; - KeysDown_351 = keysDown[351]; - KeysDown_352 = keysDown[352]; - KeysDown_353 = keysDown[353]; - KeysDown_354 = keysDown[354]; - KeysDown_355 = keysDown[355]; - KeysDown_356 = keysDown[356]; - KeysDown_357 = keysDown[357]; - KeysDown_358 = keysDown[358]; - KeysDown_359 = keysDown[359]; - KeysDown_360 = keysDown[360]; - KeysDown_361 = keysDown[361]; - KeysDown_362 = keysDown[362]; - KeysDown_363 = keysDown[363]; - KeysDown_364 = keysDown[364]; - KeysDown_365 = keysDown[365]; - KeysDown_366 = keysDown[366]; - KeysDown_367 = keysDown[367]; - KeysDown_368 = keysDown[368]; - KeysDown_369 = keysDown[369]; - KeysDown_370 = keysDown[370]; - KeysDown_371 = keysDown[371]; - KeysDown_372 = keysDown[372]; - KeysDown_373 = keysDown[373]; - KeysDown_374 = keysDown[374]; - KeysDown_375 = keysDown[375]; - KeysDown_376 = keysDown[376]; - KeysDown_377 = keysDown[377]; - KeysDown_378 = keysDown[378]; - KeysDown_379 = keysDown[379]; - KeysDown_380 = keysDown[380]; - KeysDown_381 = keysDown[381]; - KeysDown_382 = keysDown[382]; - KeysDown_383 = keysDown[383]; - KeysDown_384 = keysDown[384]; - KeysDown_385 = keysDown[385]; - KeysDown_386 = keysDown[386]; - KeysDown_387 = keysDown[387]; - KeysDown_388 = keysDown[388]; - KeysDown_389 = keysDown[389]; - KeysDown_390 = keysDown[390]; - KeysDown_391 = keysDown[391]; - KeysDown_392 = keysDown[392]; - KeysDown_393 = keysDown[393]; - KeysDown_394 = keysDown[394]; - KeysDown_395 = keysDown[395]; - KeysDown_396 = keysDown[396]; - KeysDown_397 = keysDown[397]; - KeysDown_398 = keysDown[398]; - KeysDown_399 = keysDown[399]; - KeysDown_400 = keysDown[400]; - KeysDown_401 = keysDown[401]; - KeysDown_402 = keysDown[402]; - KeysDown_403 = keysDown[403]; - KeysDown_404 = keysDown[404]; - KeysDown_405 = keysDown[405]; - KeysDown_406 = keysDown[406]; - KeysDown_407 = keysDown[407]; - KeysDown_408 = keysDown[408]; - KeysDown_409 = keysDown[409]; - KeysDown_410 = keysDown[410]; - KeysDown_411 = keysDown[411]; - KeysDown_412 = keysDown[412]; - KeysDown_413 = keysDown[413]; - KeysDown_414 = keysDown[414]; - KeysDown_415 = keysDown[415]; - KeysDown_416 = keysDown[416]; - KeysDown_417 = keysDown[417]; - KeysDown_418 = keysDown[418]; - KeysDown_419 = keysDown[419]; - KeysDown_420 = keysDown[420]; - KeysDown_421 = keysDown[421]; - KeysDown_422 = keysDown[422]; - KeysDown_423 = keysDown[423]; - KeysDown_424 = keysDown[424]; - KeysDown_425 = keysDown[425]; - KeysDown_426 = keysDown[426]; - KeysDown_427 = keysDown[427]; - KeysDown_428 = keysDown[428]; - KeysDown_429 = keysDown[429]; - KeysDown_430 = keysDown[430]; - KeysDown_431 = keysDown[431]; - KeysDown_432 = keysDown[432]; - KeysDown_433 = keysDown[433]; - KeysDown_434 = keysDown[434]; - KeysDown_435 = keysDown[435]; - KeysDown_436 = keysDown[436]; - KeysDown_437 = keysDown[437]; - KeysDown_438 = keysDown[438]; - KeysDown_439 = keysDown[439]; - KeysDown_440 = keysDown[440]; - KeysDown_441 = keysDown[441]; - KeysDown_442 = keysDown[442]; - KeysDown_443 = keysDown[443]; - KeysDown_444 = keysDown[444]; - KeysDown_445 = keysDown[445]; - KeysDown_446 = keysDown[446]; - KeysDown_447 = keysDown[447]; - KeysDown_448 = keysDown[448]; - KeysDown_449 = keysDown[449]; - KeysDown_450 = keysDown[450]; - KeysDown_451 = keysDown[451]; - KeysDown_452 = keysDown[452]; - KeysDown_453 = keysDown[453]; - KeysDown_454 = keysDown[454]; - KeysDown_455 = keysDown[455]; - KeysDown_456 = keysDown[456]; - KeysDown_457 = keysDown[457]; - KeysDown_458 = keysDown[458]; - KeysDown_459 = keysDown[459]; - KeysDown_460 = keysDown[460]; - KeysDown_461 = keysDown[461]; - KeysDown_462 = keysDown[462]; - KeysDown_463 = keysDown[463]; - KeysDown_464 = keysDown[464]; - KeysDown_465 = keysDown[465]; - KeysDown_466 = keysDown[466]; - KeysDown_467 = keysDown[467]; - KeysDown_468 = keysDown[468]; - KeysDown_469 = keysDown[469]; - KeysDown_470 = keysDown[470]; - KeysDown_471 = keysDown[471]; - KeysDown_472 = keysDown[472]; - KeysDown_473 = keysDown[473]; - KeysDown_474 = keysDown[474]; - KeysDown_475 = keysDown[475]; - KeysDown_476 = keysDown[476]; - KeysDown_477 = keysDown[477]; - KeysDown_478 = keysDown[478]; - KeysDown_479 = keysDown[479]; - KeysDown_480 = keysDown[480]; - KeysDown_481 = keysDown[481]; - KeysDown_482 = keysDown[482]; - KeysDown_483 = keysDown[483]; - KeysDown_484 = keysDown[484]; - KeysDown_485 = keysDown[485]; - KeysDown_486 = keysDown[486]; - KeysDown_487 = keysDown[487]; - KeysDown_488 = keysDown[488]; - KeysDown_489 = keysDown[489]; - KeysDown_490 = keysDown[490]; - KeysDown_491 = keysDown[491]; - KeysDown_492 = keysDown[492]; - KeysDown_493 = keysDown[493]; - KeysDown_494 = keysDown[494]; - KeysDown_495 = keysDown[495]; - KeysDown_496 = keysDown[496]; - KeysDown_497 = keysDown[497]; - KeysDown_498 = keysDown[498]; - KeysDown_499 = keysDown[499]; - KeysDown_500 = keysDown[500]; - KeysDown_501 = keysDown[501]; - KeysDown_502 = keysDown[502]; - KeysDown_503 = keysDown[503]; - KeysDown_504 = keysDown[504]; - KeysDown_505 = keysDown[505]; - KeysDown_506 = keysDown[506]; - KeysDown_507 = keysDown[507]; - KeysDown_508 = keysDown[508]; - KeysDown_509 = keysDown[509]; - KeysDown_510 = keysDown[510]; - KeysDown_511 = keysDown[511]; - KeysDown_512 = keysDown[512]; - KeysDown_513 = keysDown[513]; - KeysDown_514 = keysDown[514]; - KeysDown_515 = keysDown[515]; - KeysDown_516 = keysDown[516]; - KeysDown_517 = keysDown[517]; - KeysDown_518 = keysDown[518]; - KeysDown_519 = keysDown[519]; - KeysDown_520 = keysDown[520]; - KeysDown_521 = keysDown[521]; - KeysDown_522 = keysDown[522]; - KeysDown_523 = keysDown[523]; - KeysDown_524 = keysDown[524]; - KeysDown_525 = keysDown[525]; - KeysDown_526 = keysDown[526]; - KeysDown_527 = keysDown[527]; - KeysDown_528 = keysDown[528]; - KeysDown_529 = keysDown[529]; - KeysDown_530 = keysDown[530]; - KeysDown_531 = keysDown[531]; - KeysDown_532 = keysDown[532]; - KeysDown_533 = keysDown[533]; - KeysDown_534 = keysDown[534]; - KeysDown_535 = keysDown[535]; - KeysDown_536 = keysDown[536]; - KeysDown_537 = keysDown[537]; - KeysDown_538 = keysDown[538]; - KeysDown_539 = keysDown[539]; - KeysDown_540 = keysDown[540]; - KeysDown_541 = keysDown[541]; - KeysDown_542 = keysDown[542]; - KeysDown_543 = keysDown[543]; - KeysDown_544 = keysDown[544]; - KeysDown_545 = keysDown[545]; - KeysDown_546 = keysDown[546]; - KeysDown_547 = keysDown[547]; - KeysDown_548 = keysDown[548]; - KeysDown_549 = keysDown[549]; - KeysDown_550 = keysDown[550]; - KeysDown_551 = keysDown[551]; - KeysDown_552 = keysDown[552]; - KeysDown_553 = keysDown[553]; - KeysDown_554 = keysDown[554]; - KeysDown_555 = keysDown[555]; - KeysDown_556 = keysDown[556]; - KeysDown_557 = keysDown[557]; - KeysDown_558 = keysDown[558]; - KeysDown_559 = keysDown[559]; - KeysDown_560 = keysDown[560]; - KeysDown_561 = keysDown[561]; - KeysDown_562 = keysDown[562]; - KeysDown_563 = keysDown[563]; - KeysDown_564 = keysDown[564]; - KeysDown_565 = keysDown[565]; - KeysDown_566 = keysDown[566]; - KeysDown_567 = keysDown[567]; - KeysDown_568 = keysDown[568]; - KeysDown_569 = keysDown[569]; - KeysDown_570 = keysDown[570]; - KeysDown_571 = keysDown[571]; - KeysDown_572 = keysDown[572]; - KeysDown_573 = keysDown[573]; - KeysDown_574 = keysDown[574]; - KeysDown_575 = keysDown[575]; - KeysDown_576 = keysDown[576]; - KeysDown_577 = keysDown[577]; - KeysDown_578 = keysDown[578]; - KeysDown_579 = keysDown[579]; - KeysDown_580 = keysDown[580]; - KeysDown_581 = keysDown[581]; - KeysDown_582 = keysDown[582]; - KeysDown_583 = keysDown[583]; - KeysDown_584 = keysDown[584]; - KeysDown_585 = keysDown[585]; - KeysDown_586 = keysDown[586]; - KeysDown_587 = keysDown[587]; - KeysDown_588 = keysDown[588]; - KeysDown_589 = keysDown[589]; - KeysDown_590 = keysDown[590]; - KeysDown_591 = keysDown[591]; - KeysDown_592 = keysDown[592]; - KeysDown_593 = keysDown[593]; - KeysDown_594 = keysDown[594]; - KeysDown_595 = keysDown[595]; - KeysDown_596 = keysDown[596]; - KeysDown_597 = keysDown[597]; - KeysDown_598 = keysDown[598]; - KeysDown_599 = keysDown[599]; - KeysDown_600 = keysDown[600]; - KeysDown_601 = keysDown[601]; - KeysDown_602 = keysDown[602]; - KeysDown_603 = keysDown[603]; - KeysDown_604 = keysDown[604]; - KeysDown_605 = keysDown[605]; - KeysDown_606 = keysDown[606]; - KeysDown_607 = keysDown[607]; - KeysDown_608 = keysDown[608]; - KeysDown_609 = keysDown[609]; - KeysDown_610 = keysDown[610]; - KeysDown_611 = keysDown[611]; - KeysDown_612 = keysDown[612]; - KeysDown_613 = keysDown[613]; - KeysDown_614 = keysDown[614]; - KeysDown_615 = keysDown[615]; - KeysDown_616 = keysDown[616]; - KeysDown_617 = keysDown[617]; - KeysDown_618 = keysDown[618]; - KeysDown_619 = keysDown[619]; - KeysDown_620 = keysDown[620]; - KeysDown_621 = keysDown[621]; - KeysDown_622 = keysDown[622]; - KeysDown_623 = keysDown[623]; - KeysDown_624 = keysDown[624]; - KeysDown_625 = keysDown[625]; - KeysDown_626 = keysDown[626]; - KeysDown_627 = keysDown[627]; - KeysDown_628 = keysDown[628]; - KeysDown_629 = keysDown[629]; - KeysDown_630 = keysDown[630]; - KeysDown_631 = keysDown[631]; - KeysDown_632 = keysDown[632]; - KeysDown_633 = keysDown[633]; - KeysDown_634 = keysDown[634]; - KeysDown_635 = keysDown[635]; - KeysDown_636 = keysDown[636]; - KeysDown_637 = keysDown[637]; - KeysDown_638 = keysDown[638]; - KeysDown_639 = keysDown[639]; - KeysDown_640 = keysDown[640]; - KeysDown_641 = keysDown[641]; - KeysDown_642 = keysDown[642]; - KeysDown_643 = keysDown[643]; - KeysDown_644 = keysDown[644]; - } - MousePos = mousePos; - if (mouseDown != default(bool*)) - { - MouseDown_0 = mouseDown[0]; - MouseDown_1 = mouseDown[1]; - MouseDown_2 = mouseDown[2]; - MouseDown_3 = mouseDown[3]; - MouseDown_4 = mouseDown[4]; - } - MouseWheel = mouseWheel; - MouseWheelH = mouseWheelH; - MouseHoveredViewport = mouseHoveredViewport; - KeyCtrl = keyCtrl ? (byte)1 : (byte)0; - KeyShift = keyShift ? (byte)1 : (byte)0; - KeyAlt = keyAlt ? (byte)1 : (byte)0; - KeySuper = keySuper ? (byte)1 : (byte)0; - if (navInputs != default(float*)) - { - NavInputs_0 = navInputs[0]; - NavInputs_1 = navInputs[1]; - NavInputs_2 = navInputs[2]; - NavInputs_3 = navInputs[3]; - NavInputs_4 = navInputs[4]; - NavInputs_5 = navInputs[5]; - NavInputs_6 = navInputs[6]; - NavInputs_7 = navInputs[7]; - NavInputs_8 = navInputs[8]; - NavInputs_9 = navInputs[9]; - NavInputs_10 = navInputs[10]; - NavInputs_11 = navInputs[11]; - NavInputs_12 = navInputs[12]; - NavInputs_13 = navInputs[13]; - NavInputs_14 = navInputs[14]; - NavInputs_15 = navInputs[15]; - NavInputs_16 = navInputs[16]; - NavInputs_17 = navInputs[17]; - NavInputs_18 = navInputs[18]; - NavInputs_19 = navInputs[19]; - NavInputs_20 = navInputs[20]; - } - KeyMods = keyMods; - if (keysData != default(ImGuiKeyData*)) - { - KeysData_0 = keysData[0]; - KeysData_1 = keysData[1]; - KeysData_2 = keysData[2]; - KeysData_3 = keysData[3]; - KeysData_4 = keysData[4]; - KeysData_5 = keysData[5]; - KeysData_6 = keysData[6]; - KeysData_7 = keysData[7]; - KeysData_8 = keysData[8]; - KeysData_9 = keysData[9]; - KeysData_10 = keysData[10]; - KeysData_11 = keysData[11]; - KeysData_12 = keysData[12]; - KeysData_13 = keysData[13]; - KeysData_14 = keysData[14]; - KeysData_15 = keysData[15]; - KeysData_16 = keysData[16]; - KeysData_17 = keysData[17]; - KeysData_18 = keysData[18]; - KeysData_19 = keysData[19]; - KeysData_20 = keysData[20]; - KeysData_21 = keysData[21]; - KeysData_22 = keysData[22]; - KeysData_23 = keysData[23]; - KeysData_24 = keysData[24]; - KeysData_25 = keysData[25]; - KeysData_26 = keysData[26]; - KeysData_27 = keysData[27]; - KeysData_28 = keysData[28]; - KeysData_29 = keysData[29]; - KeysData_30 = keysData[30]; - KeysData_31 = keysData[31]; - KeysData_32 = keysData[32]; - KeysData_33 = keysData[33]; - KeysData_34 = keysData[34]; - KeysData_35 = keysData[35]; - KeysData_36 = keysData[36]; - KeysData_37 = keysData[37]; - KeysData_38 = keysData[38]; - KeysData_39 = keysData[39]; - KeysData_40 = keysData[40]; - KeysData_41 = keysData[41]; - KeysData_42 = keysData[42]; - KeysData_43 = keysData[43]; - KeysData_44 = keysData[44]; - KeysData_45 = keysData[45]; - KeysData_46 = keysData[46]; - KeysData_47 = keysData[47]; - KeysData_48 = keysData[48]; - KeysData_49 = keysData[49]; - KeysData_50 = keysData[50]; - KeysData_51 = keysData[51]; - KeysData_52 = keysData[52]; - KeysData_53 = keysData[53]; - KeysData_54 = keysData[54]; - KeysData_55 = keysData[55]; - KeysData_56 = keysData[56]; - KeysData_57 = keysData[57]; - KeysData_58 = keysData[58]; - KeysData_59 = keysData[59]; - KeysData_60 = keysData[60]; - KeysData_61 = keysData[61]; - KeysData_62 = keysData[62]; - KeysData_63 = keysData[63]; - KeysData_64 = keysData[64]; - KeysData_65 = keysData[65]; - KeysData_66 = keysData[66]; - KeysData_67 = keysData[67]; - KeysData_68 = keysData[68]; - KeysData_69 = keysData[69]; - KeysData_70 = keysData[70]; - KeysData_71 = keysData[71]; - KeysData_72 = keysData[72]; - KeysData_73 = keysData[73]; - KeysData_74 = keysData[74]; - KeysData_75 = keysData[75]; - KeysData_76 = keysData[76]; - KeysData_77 = keysData[77]; - KeysData_78 = keysData[78]; - KeysData_79 = keysData[79]; - KeysData_80 = keysData[80]; - KeysData_81 = keysData[81]; - KeysData_82 = keysData[82]; - KeysData_83 = keysData[83]; - KeysData_84 = keysData[84]; - KeysData_85 = keysData[85]; - KeysData_86 = keysData[86]; - KeysData_87 = keysData[87]; - KeysData_88 = keysData[88]; - KeysData_89 = keysData[89]; - KeysData_90 = keysData[90]; - KeysData_91 = keysData[91]; - KeysData_92 = keysData[92]; - KeysData_93 = keysData[93]; - KeysData_94 = keysData[94]; - KeysData_95 = keysData[95]; - KeysData_96 = keysData[96]; - KeysData_97 = keysData[97]; - KeysData_98 = keysData[98]; - KeysData_99 = keysData[99]; - KeysData_100 = keysData[100]; - KeysData_101 = keysData[101]; - KeysData_102 = keysData[102]; - KeysData_103 = keysData[103]; - KeysData_104 = keysData[104]; - KeysData_105 = keysData[105]; - KeysData_106 = keysData[106]; - KeysData_107 = keysData[107]; - KeysData_108 = keysData[108]; - KeysData_109 = keysData[109]; - KeysData_110 = keysData[110]; - KeysData_111 = keysData[111]; - KeysData_112 = keysData[112]; - KeysData_113 = keysData[113]; - KeysData_114 = keysData[114]; - KeysData_115 = keysData[115]; - KeysData_116 = keysData[116]; - KeysData_117 = keysData[117]; - KeysData_118 = keysData[118]; - KeysData_119 = keysData[119]; - KeysData_120 = keysData[120]; - KeysData_121 = keysData[121]; - KeysData_122 = keysData[122]; - KeysData_123 = keysData[123]; - KeysData_124 = keysData[124]; - KeysData_125 = keysData[125]; - KeysData_126 = keysData[126]; - KeysData_127 = keysData[127]; - KeysData_128 = keysData[128]; - KeysData_129 = keysData[129]; - KeysData_130 = keysData[130]; - KeysData_131 = keysData[131]; - KeysData_132 = keysData[132]; - KeysData_133 = keysData[133]; - KeysData_134 = keysData[134]; - KeysData_135 = keysData[135]; - KeysData_136 = keysData[136]; - KeysData_137 = keysData[137]; - KeysData_138 = keysData[138]; - KeysData_139 = keysData[139]; - KeysData_140 = keysData[140]; - KeysData_141 = keysData[141]; - KeysData_142 = keysData[142]; - KeysData_143 = keysData[143]; - KeysData_144 = keysData[144]; - KeysData_145 = keysData[145]; - KeysData_146 = keysData[146]; - KeysData_147 = keysData[147]; - KeysData_148 = keysData[148]; - KeysData_149 = keysData[149]; - KeysData_150 = keysData[150]; - KeysData_151 = keysData[151]; - KeysData_152 = keysData[152]; - KeysData_153 = keysData[153]; - KeysData_154 = keysData[154]; - KeysData_155 = keysData[155]; - KeysData_156 = keysData[156]; - KeysData_157 = keysData[157]; - KeysData_158 = keysData[158]; - KeysData_159 = keysData[159]; - KeysData_160 = keysData[160]; - KeysData_161 = keysData[161]; - KeysData_162 = keysData[162]; - KeysData_163 = keysData[163]; - KeysData_164 = keysData[164]; - KeysData_165 = keysData[165]; - KeysData_166 = keysData[166]; - KeysData_167 = keysData[167]; - KeysData_168 = keysData[168]; - KeysData_169 = keysData[169]; - KeysData_170 = keysData[170]; - KeysData_171 = keysData[171]; - KeysData_172 = keysData[172]; - KeysData_173 = keysData[173]; - KeysData_174 = keysData[174]; - KeysData_175 = keysData[175]; - KeysData_176 = keysData[176]; - KeysData_177 = keysData[177]; - KeysData_178 = keysData[178]; - KeysData_179 = keysData[179]; - KeysData_180 = keysData[180]; - KeysData_181 = keysData[181]; - KeysData_182 = keysData[182]; - KeysData_183 = keysData[183]; - KeysData_184 = keysData[184]; - KeysData_185 = keysData[185]; - KeysData_186 = keysData[186]; - KeysData_187 = keysData[187]; - KeysData_188 = keysData[188]; - KeysData_189 = keysData[189]; - KeysData_190 = keysData[190]; - KeysData_191 = keysData[191]; - KeysData_192 = keysData[192]; - KeysData_193 = keysData[193]; - KeysData_194 = keysData[194]; - KeysData_195 = keysData[195]; - KeysData_196 = keysData[196]; - KeysData_197 = keysData[197]; - KeysData_198 = keysData[198]; - KeysData_199 = keysData[199]; - KeysData_200 = keysData[200]; - KeysData_201 = keysData[201]; - KeysData_202 = keysData[202]; - KeysData_203 = keysData[203]; - KeysData_204 = keysData[204]; - KeysData_205 = keysData[205]; - KeysData_206 = keysData[206]; - KeysData_207 = keysData[207]; - KeysData_208 = keysData[208]; - KeysData_209 = keysData[209]; - KeysData_210 = keysData[210]; - KeysData_211 = keysData[211]; - KeysData_212 = keysData[212]; - KeysData_213 = keysData[213]; - KeysData_214 = keysData[214]; - KeysData_215 = keysData[215]; - KeysData_216 = keysData[216]; - KeysData_217 = keysData[217]; - KeysData_218 = keysData[218]; - KeysData_219 = keysData[219]; - KeysData_220 = keysData[220]; - KeysData_221 = keysData[221]; - KeysData_222 = keysData[222]; - KeysData_223 = keysData[223]; - KeysData_224 = keysData[224]; - KeysData_225 = keysData[225]; - KeysData_226 = keysData[226]; - KeysData_227 = keysData[227]; - KeysData_228 = keysData[228]; - KeysData_229 = keysData[229]; - KeysData_230 = keysData[230]; - KeysData_231 = keysData[231]; - KeysData_232 = keysData[232]; - KeysData_233 = keysData[233]; - KeysData_234 = keysData[234]; - KeysData_235 = keysData[235]; - KeysData_236 = keysData[236]; - KeysData_237 = keysData[237]; - KeysData_238 = keysData[238]; - KeysData_239 = keysData[239]; - KeysData_240 = keysData[240]; - KeysData_241 = keysData[241]; - KeysData_242 = keysData[242]; - KeysData_243 = keysData[243]; - KeysData_244 = keysData[244]; - KeysData_245 = keysData[245]; - KeysData_246 = keysData[246]; - KeysData_247 = keysData[247]; - KeysData_248 = keysData[248]; - KeysData_249 = keysData[249]; - KeysData_250 = keysData[250]; - KeysData_251 = keysData[251]; - KeysData_252 = keysData[252]; - KeysData_253 = keysData[253]; - KeysData_254 = keysData[254]; - KeysData_255 = keysData[255]; - KeysData_256 = keysData[256]; - KeysData_257 = keysData[257]; - KeysData_258 = keysData[258]; - KeysData_259 = keysData[259]; - KeysData_260 = keysData[260]; - KeysData_261 = keysData[261]; - KeysData_262 = keysData[262]; - KeysData_263 = keysData[263]; - KeysData_264 = keysData[264]; - KeysData_265 = keysData[265]; - KeysData_266 = keysData[266]; - KeysData_267 = keysData[267]; - KeysData_268 = keysData[268]; - KeysData_269 = keysData[269]; - KeysData_270 = keysData[270]; - KeysData_271 = keysData[271]; - KeysData_272 = keysData[272]; - KeysData_273 = keysData[273]; - KeysData_274 = keysData[274]; - KeysData_275 = keysData[275]; - KeysData_276 = keysData[276]; - KeysData_277 = keysData[277]; - KeysData_278 = keysData[278]; - KeysData_279 = keysData[279]; - KeysData_280 = keysData[280]; - KeysData_281 = keysData[281]; - KeysData_282 = keysData[282]; - KeysData_283 = keysData[283]; - KeysData_284 = keysData[284]; - KeysData_285 = keysData[285]; - KeysData_286 = keysData[286]; - KeysData_287 = keysData[287]; - KeysData_288 = keysData[288]; - KeysData_289 = keysData[289]; - KeysData_290 = keysData[290]; - KeysData_291 = keysData[291]; - KeysData_292 = keysData[292]; - KeysData_293 = keysData[293]; - KeysData_294 = keysData[294]; - KeysData_295 = keysData[295]; - KeysData_296 = keysData[296]; - KeysData_297 = keysData[297]; - KeysData_298 = keysData[298]; - KeysData_299 = keysData[299]; - KeysData_300 = keysData[300]; - KeysData_301 = keysData[301]; - KeysData_302 = keysData[302]; - KeysData_303 = keysData[303]; - KeysData_304 = keysData[304]; - KeysData_305 = keysData[305]; - KeysData_306 = keysData[306]; - KeysData_307 = keysData[307]; - KeysData_308 = keysData[308]; - KeysData_309 = keysData[309]; - KeysData_310 = keysData[310]; - KeysData_311 = keysData[311]; - KeysData_312 = keysData[312]; - KeysData_313 = keysData[313]; - KeysData_314 = keysData[314]; - KeysData_315 = keysData[315]; - KeysData_316 = keysData[316]; - KeysData_317 = keysData[317]; - KeysData_318 = keysData[318]; - KeysData_319 = keysData[319]; - KeysData_320 = keysData[320]; - KeysData_321 = keysData[321]; - KeysData_322 = keysData[322]; - KeysData_323 = keysData[323]; - KeysData_324 = keysData[324]; - KeysData_325 = keysData[325]; - KeysData_326 = keysData[326]; - KeysData_327 = keysData[327]; - KeysData_328 = keysData[328]; - KeysData_329 = keysData[329]; - KeysData_330 = keysData[330]; - KeysData_331 = keysData[331]; - KeysData_332 = keysData[332]; - KeysData_333 = keysData[333]; - KeysData_334 = keysData[334]; - KeysData_335 = keysData[335]; - KeysData_336 = keysData[336]; - KeysData_337 = keysData[337]; - KeysData_338 = keysData[338]; - KeysData_339 = keysData[339]; - KeysData_340 = keysData[340]; - KeysData_341 = keysData[341]; - KeysData_342 = keysData[342]; - KeysData_343 = keysData[343]; - KeysData_344 = keysData[344]; - KeysData_345 = keysData[345]; - KeysData_346 = keysData[346]; - KeysData_347 = keysData[347]; - KeysData_348 = keysData[348]; - KeysData_349 = keysData[349]; - KeysData_350 = keysData[350]; - KeysData_351 = keysData[351]; - KeysData_352 = keysData[352]; - KeysData_353 = keysData[353]; - KeysData_354 = keysData[354]; - KeysData_355 = keysData[355]; - KeysData_356 = keysData[356]; - KeysData_357 = keysData[357]; - KeysData_358 = keysData[358]; - KeysData_359 = keysData[359]; - KeysData_360 = keysData[360]; - KeysData_361 = keysData[361]; - KeysData_362 = keysData[362]; - KeysData_363 = keysData[363]; - KeysData_364 = keysData[364]; - KeysData_365 = keysData[365]; - KeysData_366 = keysData[366]; - KeysData_367 = keysData[367]; - KeysData_368 = keysData[368]; - KeysData_369 = keysData[369]; - KeysData_370 = keysData[370]; - KeysData_371 = keysData[371]; - KeysData_372 = keysData[372]; - KeysData_373 = keysData[373]; - KeysData_374 = keysData[374]; - KeysData_375 = keysData[375]; - KeysData_376 = keysData[376]; - KeysData_377 = keysData[377]; - KeysData_378 = keysData[378]; - KeysData_379 = keysData[379]; - KeysData_380 = keysData[380]; - KeysData_381 = keysData[381]; - KeysData_382 = keysData[382]; - KeysData_383 = keysData[383]; - KeysData_384 = keysData[384]; - KeysData_385 = keysData[385]; - KeysData_386 = keysData[386]; - KeysData_387 = keysData[387]; - KeysData_388 = keysData[388]; - KeysData_389 = keysData[389]; - KeysData_390 = keysData[390]; - KeysData_391 = keysData[391]; - KeysData_392 = keysData[392]; - KeysData_393 = keysData[393]; - KeysData_394 = keysData[394]; - KeysData_395 = keysData[395]; - KeysData_396 = keysData[396]; - KeysData_397 = keysData[397]; - KeysData_398 = keysData[398]; - KeysData_399 = keysData[399]; - KeysData_400 = keysData[400]; - KeysData_401 = keysData[401]; - KeysData_402 = keysData[402]; - KeysData_403 = keysData[403]; - KeysData_404 = keysData[404]; - KeysData_405 = keysData[405]; - KeysData_406 = keysData[406]; - KeysData_407 = keysData[407]; - KeysData_408 = keysData[408]; - KeysData_409 = keysData[409]; - KeysData_410 = keysData[410]; - KeysData_411 = keysData[411]; - KeysData_412 = keysData[412]; - KeysData_413 = keysData[413]; - KeysData_414 = keysData[414]; - KeysData_415 = keysData[415]; - KeysData_416 = keysData[416]; - KeysData_417 = keysData[417]; - KeysData_418 = keysData[418]; - KeysData_419 = keysData[419]; - KeysData_420 = keysData[420]; - KeysData_421 = keysData[421]; - KeysData_422 = keysData[422]; - KeysData_423 = keysData[423]; - KeysData_424 = keysData[424]; - KeysData_425 = keysData[425]; - KeysData_426 = keysData[426]; - KeysData_427 = keysData[427]; - KeysData_428 = keysData[428]; - KeysData_429 = keysData[429]; - KeysData_430 = keysData[430]; - KeysData_431 = keysData[431]; - KeysData_432 = keysData[432]; - KeysData_433 = keysData[433]; - KeysData_434 = keysData[434]; - KeysData_435 = keysData[435]; - KeysData_436 = keysData[436]; - KeysData_437 = keysData[437]; - KeysData_438 = keysData[438]; - KeysData_439 = keysData[439]; - KeysData_440 = keysData[440]; - KeysData_441 = keysData[441]; - KeysData_442 = keysData[442]; - KeysData_443 = keysData[443]; - KeysData_444 = keysData[444]; - KeysData_445 = keysData[445]; - KeysData_446 = keysData[446]; - KeysData_447 = keysData[447]; - KeysData_448 = keysData[448]; - KeysData_449 = keysData[449]; - KeysData_450 = keysData[450]; - KeysData_451 = keysData[451]; - KeysData_452 = keysData[452]; - KeysData_453 = keysData[453]; - KeysData_454 = keysData[454]; - KeysData_455 = keysData[455]; - KeysData_456 = keysData[456]; - KeysData_457 = keysData[457]; - KeysData_458 = keysData[458]; - KeysData_459 = keysData[459]; - KeysData_460 = keysData[460]; - KeysData_461 = keysData[461]; - KeysData_462 = keysData[462]; - KeysData_463 = keysData[463]; - KeysData_464 = keysData[464]; - KeysData_465 = keysData[465]; - KeysData_466 = keysData[466]; - KeysData_467 = keysData[467]; - KeysData_468 = keysData[468]; - KeysData_469 = keysData[469]; - KeysData_470 = keysData[470]; - KeysData_471 = keysData[471]; - KeysData_472 = keysData[472]; - KeysData_473 = keysData[473]; - KeysData_474 = keysData[474]; - KeysData_475 = keysData[475]; - KeysData_476 = keysData[476]; - KeysData_477 = keysData[477]; - KeysData_478 = keysData[478]; - KeysData_479 = keysData[479]; - KeysData_480 = keysData[480]; - KeysData_481 = keysData[481]; - KeysData_482 = keysData[482]; - KeysData_483 = keysData[483]; - KeysData_484 = keysData[484]; - KeysData_485 = keysData[485]; - KeysData_486 = keysData[486]; - KeysData_487 = keysData[487]; - KeysData_488 = keysData[488]; - KeysData_489 = keysData[489]; - KeysData_490 = keysData[490]; - KeysData_491 = keysData[491]; - KeysData_492 = keysData[492]; - KeysData_493 = keysData[493]; - KeysData_494 = keysData[494]; - KeysData_495 = keysData[495]; - KeysData_496 = keysData[496]; - KeysData_497 = keysData[497]; - KeysData_498 = keysData[498]; - KeysData_499 = keysData[499]; - KeysData_500 = keysData[500]; - KeysData_501 = keysData[501]; - KeysData_502 = keysData[502]; - KeysData_503 = keysData[503]; - KeysData_504 = keysData[504]; - KeysData_505 = keysData[505]; - KeysData_506 = keysData[506]; - KeysData_507 = keysData[507]; - KeysData_508 = keysData[508]; - KeysData_509 = keysData[509]; - KeysData_510 = keysData[510]; - KeysData_511 = keysData[511]; - KeysData_512 = keysData[512]; - KeysData_513 = keysData[513]; - KeysData_514 = keysData[514]; - KeysData_515 = keysData[515]; - KeysData_516 = keysData[516]; - KeysData_517 = keysData[517]; - KeysData_518 = keysData[518]; - KeysData_519 = keysData[519]; - KeysData_520 = keysData[520]; - KeysData_521 = keysData[521]; - KeysData_522 = keysData[522]; - KeysData_523 = keysData[523]; - KeysData_524 = keysData[524]; - KeysData_525 = keysData[525]; - KeysData_526 = keysData[526]; - KeysData_527 = keysData[527]; - KeysData_528 = keysData[528]; - KeysData_529 = keysData[529]; - KeysData_530 = keysData[530]; - KeysData_531 = keysData[531]; - KeysData_532 = keysData[532]; - KeysData_533 = keysData[533]; - KeysData_534 = keysData[534]; - KeysData_535 = keysData[535]; - KeysData_536 = keysData[536]; - KeysData_537 = keysData[537]; - KeysData_538 = keysData[538]; - KeysData_539 = keysData[539]; - KeysData_540 = keysData[540]; - KeysData_541 = keysData[541]; - KeysData_542 = keysData[542]; - KeysData_543 = keysData[543]; - KeysData_544 = keysData[544]; - KeysData_545 = keysData[545]; - KeysData_546 = keysData[546]; - KeysData_547 = keysData[547]; - KeysData_548 = keysData[548]; - KeysData_549 = keysData[549]; - KeysData_550 = keysData[550]; - KeysData_551 = keysData[551]; - KeysData_552 = keysData[552]; - KeysData_553 = keysData[553]; - KeysData_554 = keysData[554]; - KeysData_555 = keysData[555]; - KeysData_556 = keysData[556]; - KeysData_557 = keysData[557]; - KeysData_558 = keysData[558]; - KeysData_559 = keysData[559]; - KeysData_560 = keysData[560]; - KeysData_561 = keysData[561]; - KeysData_562 = keysData[562]; - KeysData_563 = keysData[563]; - KeysData_564 = keysData[564]; - KeysData_565 = keysData[565]; - KeysData_566 = keysData[566]; - KeysData_567 = keysData[567]; - KeysData_568 = keysData[568]; - KeysData_569 = keysData[569]; - KeysData_570 = keysData[570]; - KeysData_571 = keysData[571]; - KeysData_572 = keysData[572]; - KeysData_573 = keysData[573]; - KeysData_574 = keysData[574]; - KeysData_575 = keysData[575]; - KeysData_576 = keysData[576]; - KeysData_577 = keysData[577]; - KeysData_578 = keysData[578]; - KeysData_579 = keysData[579]; - KeysData_580 = keysData[580]; - KeysData_581 = keysData[581]; - KeysData_582 = keysData[582]; - KeysData_583 = keysData[583]; - KeysData_584 = keysData[584]; - KeysData_585 = keysData[585]; - KeysData_586 = keysData[586]; - KeysData_587 = keysData[587]; - KeysData_588 = keysData[588]; - KeysData_589 = keysData[589]; - KeysData_590 = keysData[590]; - KeysData_591 = keysData[591]; - KeysData_592 = keysData[592]; - KeysData_593 = keysData[593]; - KeysData_594 = keysData[594]; - KeysData_595 = keysData[595]; - KeysData_596 = keysData[596]; - KeysData_597 = keysData[597]; - KeysData_598 = keysData[598]; - KeysData_599 = keysData[599]; - KeysData_600 = keysData[600]; - KeysData_601 = keysData[601]; - KeysData_602 = keysData[602]; - KeysData_603 = keysData[603]; - KeysData_604 = keysData[604]; - KeysData_605 = keysData[605]; - KeysData_606 = keysData[606]; - KeysData_607 = keysData[607]; - KeysData_608 = keysData[608]; - KeysData_609 = keysData[609]; - KeysData_610 = keysData[610]; - KeysData_611 = keysData[611]; - KeysData_612 = keysData[612]; - KeysData_613 = keysData[613]; - KeysData_614 = keysData[614]; - KeysData_615 = keysData[615]; - KeysData_616 = keysData[616]; - KeysData_617 = keysData[617]; - KeysData_618 = keysData[618]; - KeysData_619 = keysData[619]; - KeysData_620 = keysData[620]; - KeysData_621 = keysData[621]; - KeysData_622 = keysData[622]; - KeysData_623 = keysData[623]; - KeysData_624 = keysData[624]; - KeysData_625 = keysData[625]; - KeysData_626 = keysData[626]; - KeysData_627 = keysData[627]; - KeysData_628 = keysData[628]; - KeysData_629 = keysData[629]; - KeysData_630 = keysData[630]; - KeysData_631 = keysData[631]; - KeysData_632 = keysData[632]; - KeysData_633 = keysData[633]; - KeysData_634 = keysData[634]; - KeysData_635 = keysData[635]; - KeysData_636 = keysData[636]; - KeysData_637 = keysData[637]; - KeysData_638 = keysData[638]; - KeysData_639 = keysData[639]; - KeysData_640 = keysData[640]; - KeysData_641 = keysData[641]; - KeysData_642 = keysData[642]; - KeysData_643 = keysData[643]; - KeysData_644 = keysData[644]; - } - WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; - MousePosPrev = mousePosPrev; - if (mouseClickedPos != default(Vector2*)) - { - MouseClickedPos_0 = mouseClickedPos[0]; - MouseClickedPos_1 = mouseClickedPos[1]; - MouseClickedPos_2 = mouseClickedPos[2]; - MouseClickedPos_3 = mouseClickedPos[3]; - MouseClickedPos_4 = mouseClickedPos[4]; - } - if (mouseClickedTime != default(double*)) - { - MouseClickedTime_0 = mouseClickedTime[0]; - MouseClickedTime_1 = mouseClickedTime[1]; - MouseClickedTime_2 = mouseClickedTime[2]; - MouseClickedTime_3 = mouseClickedTime[3]; - MouseClickedTime_4 = mouseClickedTime[4]; - } - if (mouseClicked != default(bool*)) - { - MouseClicked_0 = mouseClicked[0]; - MouseClicked_1 = mouseClicked[1]; - MouseClicked_2 = mouseClicked[2]; - MouseClicked_3 = mouseClicked[3]; - MouseClicked_4 = mouseClicked[4]; - } - if (mouseDoubleClicked != default(bool*)) - { - MouseDoubleClicked_0 = mouseDoubleClicked[0]; - MouseDoubleClicked_1 = mouseDoubleClicked[1]; - MouseDoubleClicked_2 = mouseDoubleClicked[2]; - MouseDoubleClicked_3 = mouseDoubleClicked[3]; - MouseDoubleClicked_4 = mouseDoubleClicked[4]; - } - if (mouseClickedCount != default(ushort*)) - { - MouseClickedCount_0 = mouseClickedCount[0]; - MouseClickedCount_1 = mouseClickedCount[1]; - MouseClickedCount_2 = mouseClickedCount[2]; - MouseClickedCount_3 = mouseClickedCount[3]; - MouseClickedCount_4 = mouseClickedCount[4]; - } - if (mouseClickedLastCount != default(ushort*)) - { - MouseClickedLastCount_0 = mouseClickedLastCount[0]; - MouseClickedLastCount_1 = mouseClickedLastCount[1]; - MouseClickedLastCount_2 = mouseClickedLastCount[2]; - MouseClickedLastCount_3 = mouseClickedLastCount[3]; - MouseClickedLastCount_4 = mouseClickedLastCount[4]; - } - if (mouseReleased != default(bool*)) - { - MouseReleased_0 = mouseReleased[0]; - MouseReleased_1 = mouseReleased[1]; - MouseReleased_2 = mouseReleased[2]; - MouseReleased_3 = mouseReleased[3]; - MouseReleased_4 = mouseReleased[4]; - } - if (mouseDownOwned != default(bool*)) - { - MouseDownOwned_0 = mouseDownOwned[0]; - MouseDownOwned_1 = mouseDownOwned[1]; - MouseDownOwned_2 = mouseDownOwned[2]; - MouseDownOwned_3 = mouseDownOwned[3]; - MouseDownOwned_4 = mouseDownOwned[4]; - } - if (mouseDownOwnedUnlessPopupClose != default(bool*)) - { - MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; - MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; - MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; - MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; - MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; - } - if (mouseDownDuration != default(float*)) - { - MouseDownDuration_0 = mouseDownDuration[0]; - MouseDownDuration_1 = mouseDownDuration[1]; - MouseDownDuration_2 = mouseDownDuration[2]; - MouseDownDuration_3 = mouseDownDuration[3]; - MouseDownDuration_4 = mouseDownDuration[4]; - } - if (mouseDownDurationPrev != default(float*)) - { - MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; - MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; - MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; - MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; - MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; - } - if (mouseDragMaxDistanceAbs != default(Vector2*)) - { - MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; - MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; - MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; - MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; - MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; - } - if (mouseDragMaxDistanceSqr != default(float*)) - { - MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; - MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; - MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; - MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; - MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; - } - if (navInputsDownDuration != default(float*)) - { - NavInputsDownDuration_0 = navInputsDownDuration[0]; - NavInputsDownDuration_1 = navInputsDownDuration[1]; - NavInputsDownDuration_2 = navInputsDownDuration[2]; - NavInputsDownDuration_3 = navInputsDownDuration[3]; - NavInputsDownDuration_4 = navInputsDownDuration[4]; - NavInputsDownDuration_5 = navInputsDownDuration[5]; - NavInputsDownDuration_6 = navInputsDownDuration[6]; - NavInputsDownDuration_7 = navInputsDownDuration[7]; - NavInputsDownDuration_8 = navInputsDownDuration[8]; - NavInputsDownDuration_9 = navInputsDownDuration[9]; - NavInputsDownDuration_10 = navInputsDownDuration[10]; - NavInputsDownDuration_11 = navInputsDownDuration[11]; - NavInputsDownDuration_12 = navInputsDownDuration[12]; - NavInputsDownDuration_13 = navInputsDownDuration[13]; - NavInputsDownDuration_14 = navInputsDownDuration[14]; - NavInputsDownDuration_15 = navInputsDownDuration[15]; - NavInputsDownDuration_16 = navInputsDownDuration[16]; - NavInputsDownDuration_17 = navInputsDownDuration[17]; - NavInputsDownDuration_18 = navInputsDownDuration[18]; - NavInputsDownDuration_19 = navInputsDownDuration[19]; - NavInputsDownDuration_20 = navInputsDownDuration[20]; - } - if (navInputsDownDurationPrev != default(float*)) - { - NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; - NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; - NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; - NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; - NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; - NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; - NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; - NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; - NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; - NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; - NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; - NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; - NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; - NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; - NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; - NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; - NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; - NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; - NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; - NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; - NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; - } - PenPressure = penPressure; - AppFocusLost = appFocusLost ? (byte)1 : (byte)0; - AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; - BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; - BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; - InputQueueSurrogate = inputQueueSurrogate; - InputQueueCharacters = inputQueueCharacters; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiIO(ImGuiConfigFlags configFlags = default, ImGuiBackendFlags backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, void* userData = default, ImFontAtlasPtr fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFontPtr fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate*<void*, byte*> getClipboardTextFn = default, delegate*<void*, byte*, void> setClipboardTextFn = default, void* clipboardUserData = default, delegate*<ImGuiViewport*, ImGuiPlatformImeData*, void> setPlatformImeDataFn = default, void* unusedPadding = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, int metricsActiveAllocations = default, Vector2 mouseDelta = default, Span<int> keyMap = default, Span<bool> keysDown = default, Vector2 mousePos = default, Span<bool> mouseDown = default, float mouseWheel = default, float mouseWheelH = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, Span<float> navInputs = default, ImGuiModFlags keyMods = default, Span<ImGuiKeyData> keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Span<Vector2> mouseClickedPos = default, Span<double> mouseClickedTime = default, Span<bool> mouseClicked = default, Span<bool> mouseDoubleClicked = default, Span<ushort> mouseClickedCount = default, Span<ushort> mouseClickedLastCount = default, Span<bool> mouseReleased = default, Span<bool> mouseDownOwned = default, Span<bool> mouseDownOwnedUnlessPopupClose = default, Span<float> mouseDownDuration = default, Span<float> mouseDownDurationPrev = default, Span<Vector2> mouseDragMaxDistanceAbs = default, Span<float> mouseDragMaxDistanceSqr = default, Span<float> navInputsDownDuration = default, Span<float> navInputsDownDurationPrev = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, sbyte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVector<ushort> inputQueueCharacters = default) - { - ConfigFlags = configFlags; - BackendFlags = backendFlags; - DisplaySize = displaySize; - DeltaTime = deltaTime; - IniSavingRate = iniSavingRate; - IniFilename = iniFilename; - LogFilename = logFilename; - MouseDoubleClickTime = mouseDoubleClickTime; - MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; - MouseDragThreshold = mouseDragThreshold; - KeyRepeatDelay = keyRepeatDelay; - KeyRepeatRate = keyRepeatRate; - UserData = userData; - Fonts = fonts; - FontGlobalScale = fontGlobalScale; - FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; - FontDefault = fontDefault; - DisplayFramebufferScale = displayFramebufferScale; - ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; - ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; - ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; - ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; - ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; - ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; - ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; - ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; - MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; - ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; - ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; - ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; - ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; - ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; - ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; - ConfigMemoryCompactTimer = configMemoryCompactTimer; - BackendPlatformName = backendPlatformName; - BackendRendererName = backendRendererName; - BackendPlatformUserData = backendPlatformUserData; - BackendRendererUserData = backendRendererUserData; - BackendLanguageUserData = backendLanguageUserData; - GetClipboardTextFn = (void*)getClipboardTextFn; - SetClipboardTextFn = (void*)setClipboardTextFn; - ClipboardUserData = clipboardUserData; - SetPlatformImeDataFn = (void*)setPlatformImeDataFn; - UnusedPadding = unusedPadding; - WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; - WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; - WantTextInput = wantTextInput ? (byte)1 : (byte)0; - WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; - WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; - NavActive = navActive ? (byte)1 : (byte)0; - NavVisible = navVisible ? (byte)1 : (byte)0; - Framerate = framerate; - MetricsRenderVertices = metricsRenderVertices; - MetricsRenderIndices = metricsRenderIndices; - MetricsRenderWindows = metricsRenderWindows; - MetricsActiveWindows = metricsActiveWindows; - MetricsActiveAllocations = metricsActiveAllocations; - MouseDelta = mouseDelta; - if (keyMap != default(Span<int>)) - { - KeyMap_0 = keyMap[0]; - KeyMap_1 = keyMap[1]; - KeyMap_2 = keyMap[2]; - KeyMap_3 = keyMap[3]; - KeyMap_4 = keyMap[4]; - KeyMap_5 = keyMap[5]; - KeyMap_6 = keyMap[6]; - KeyMap_7 = keyMap[7]; - KeyMap_8 = keyMap[8]; - KeyMap_9 = keyMap[9]; - KeyMap_10 = keyMap[10]; - KeyMap_11 = keyMap[11]; - KeyMap_12 = keyMap[12]; - KeyMap_13 = keyMap[13]; - KeyMap_14 = keyMap[14]; - KeyMap_15 = keyMap[15]; - KeyMap_16 = keyMap[16]; - KeyMap_17 = keyMap[17]; - KeyMap_18 = keyMap[18]; - KeyMap_19 = keyMap[19]; - KeyMap_20 = keyMap[20]; - KeyMap_21 = keyMap[21]; - KeyMap_22 = keyMap[22]; - KeyMap_23 = keyMap[23]; - KeyMap_24 = keyMap[24]; - KeyMap_25 = keyMap[25]; - KeyMap_26 = keyMap[26]; - KeyMap_27 = keyMap[27]; - KeyMap_28 = keyMap[28]; - KeyMap_29 = keyMap[29]; - KeyMap_30 = keyMap[30]; - KeyMap_31 = keyMap[31]; - KeyMap_32 = keyMap[32]; - KeyMap_33 = keyMap[33]; - KeyMap_34 = keyMap[34]; - KeyMap_35 = keyMap[35]; - KeyMap_36 = keyMap[36]; - KeyMap_37 = keyMap[37]; - KeyMap_38 = keyMap[38]; - KeyMap_39 = keyMap[39]; - KeyMap_40 = keyMap[40]; - KeyMap_41 = keyMap[41]; - KeyMap_42 = keyMap[42]; - KeyMap_43 = keyMap[43]; - KeyMap_44 = keyMap[44]; - KeyMap_45 = keyMap[45]; - KeyMap_46 = keyMap[46]; - KeyMap_47 = keyMap[47]; - KeyMap_48 = keyMap[48]; - KeyMap_49 = keyMap[49]; - KeyMap_50 = keyMap[50]; - KeyMap_51 = keyMap[51]; - KeyMap_52 = keyMap[52]; - KeyMap_53 = keyMap[53]; - KeyMap_54 = keyMap[54]; - KeyMap_55 = keyMap[55]; - KeyMap_56 = keyMap[56]; - KeyMap_57 = keyMap[57]; - KeyMap_58 = keyMap[58]; - KeyMap_59 = keyMap[59]; - KeyMap_60 = keyMap[60]; - KeyMap_61 = keyMap[61]; - KeyMap_62 = keyMap[62]; - KeyMap_63 = keyMap[63]; - KeyMap_64 = keyMap[64]; - KeyMap_65 = keyMap[65]; - KeyMap_66 = keyMap[66]; - KeyMap_67 = keyMap[67]; - KeyMap_68 = keyMap[68]; - KeyMap_69 = keyMap[69]; - KeyMap_70 = keyMap[70]; - KeyMap_71 = keyMap[71]; - KeyMap_72 = keyMap[72]; - KeyMap_73 = keyMap[73]; - KeyMap_74 = keyMap[74]; - KeyMap_75 = keyMap[75]; - KeyMap_76 = keyMap[76]; - KeyMap_77 = keyMap[77]; - KeyMap_78 = keyMap[78]; - KeyMap_79 = keyMap[79]; - KeyMap_80 = keyMap[80]; - KeyMap_81 = keyMap[81]; - KeyMap_82 = keyMap[82]; - KeyMap_83 = keyMap[83]; - KeyMap_84 = keyMap[84]; - KeyMap_85 = keyMap[85]; - KeyMap_86 = keyMap[86]; - KeyMap_87 = keyMap[87]; - KeyMap_88 = keyMap[88]; - KeyMap_89 = keyMap[89]; - KeyMap_90 = keyMap[90]; - KeyMap_91 = keyMap[91]; - KeyMap_92 = keyMap[92]; - KeyMap_93 = keyMap[93]; - KeyMap_94 = keyMap[94]; - KeyMap_95 = keyMap[95]; - KeyMap_96 = keyMap[96]; - KeyMap_97 = keyMap[97]; - KeyMap_98 = keyMap[98]; - KeyMap_99 = keyMap[99]; - KeyMap_100 = keyMap[100]; - KeyMap_101 = keyMap[101]; - KeyMap_102 = keyMap[102]; - KeyMap_103 = keyMap[103]; - KeyMap_104 = keyMap[104]; - KeyMap_105 = keyMap[105]; - KeyMap_106 = keyMap[106]; - KeyMap_107 = keyMap[107]; - KeyMap_108 = keyMap[108]; - KeyMap_109 = keyMap[109]; - KeyMap_110 = keyMap[110]; - KeyMap_111 = keyMap[111]; - KeyMap_112 = keyMap[112]; - KeyMap_113 = keyMap[113]; - KeyMap_114 = keyMap[114]; - KeyMap_115 = keyMap[115]; - KeyMap_116 = keyMap[116]; - KeyMap_117 = keyMap[117]; - KeyMap_118 = keyMap[118]; - KeyMap_119 = keyMap[119]; - KeyMap_120 = keyMap[120]; - KeyMap_121 = keyMap[121]; - KeyMap_122 = keyMap[122]; - KeyMap_123 = keyMap[123]; - KeyMap_124 = keyMap[124]; - KeyMap_125 = keyMap[125]; - KeyMap_126 = keyMap[126]; - KeyMap_127 = keyMap[127]; - KeyMap_128 = keyMap[128]; - KeyMap_129 = keyMap[129]; - KeyMap_130 = keyMap[130]; - KeyMap_131 = keyMap[131]; - KeyMap_132 = keyMap[132]; - KeyMap_133 = keyMap[133]; - KeyMap_134 = keyMap[134]; - KeyMap_135 = keyMap[135]; - KeyMap_136 = keyMap[136]; - KeyMap_137 = keyMap[137]; - KeyMap_138 = keyMap[138]; - KeyMap_139 = keyMap[139]; - KeyMap_140 = keyMap[140]; - KeyMap_141 = keyMap[141]; - KeyMap_142 = keyMap[142]; - KeyMap_143 = keyMap[143]; - KeyMap_144 = keyMap[144]; - KeyMap_145 = keyMap[145]; - KeyMap_146 = keyMap[146]; - KeyMap_147 = keyMap[147]; - KeyMap_148 = keyMap[148]; - KeyMap_149 = keyMap[149]; - KeyMap_150 = keyMap[150]; - KeyMap_151 = keyMap[151]; - KeyMap_152 = keyMap[152]; - KeyMap_153 = keyMap[153]; - KeyMap_154 = keyMap[154]; - KeyMap_155 = keyMap[155]; - KeyMap_156 = keyMap[156]; - KeyMap_157 = keyMap[157]; - KeyMap_158 = keyMap[158]; - KeyMap_159 = keyMap[159]; - KeyMap_160 = keyMap[160]; - KeyMap_161 = keyMap[161]; - KeyMap_162 = keyMap[162]; - KeyMap_163 = keyMap[163]; - KeyMap_164 = keyMap[164]; - KeyMap_165 = keyMap[165]; - KeyMap_166 = keyMap[166]; - KeyMap_167 = keyMap[167]; - KeyMap_168 = keyMap[168]; - KeyMap_169 = keyMap[169]; - KeyMap_170 = keyMap[170]; - KeyMap_171 = keyMap[171]; - KeyMap_172 = keyMap[172]; - KeyMap_173 = keyMap[173]; - KeyMap_174 = keyMap[174]; - KeyMap_175 = keyMap[175]; - KeyMap_176 = keyMap[176]; - KeyMap_177 = keyMap[177]; - KeyMap_178 = keyMap[178]; - KeyMap_179 = keyMap[179]; - KeyMap_180 = keyMap[180]; - KeyMap_181 = keyMap[181]; - KeyMap_182 = keyMap[182]; - KeyMap_183 = keyMap[183]; - KeyMap_184 = keyMap[184]; - KeyMap_185 = keyMap[185]; - KeyMap_186 = keyMap[186]; - KeyMap_187 = keyMap[187]; - KeyMap_188 = keyMap[188]; - KeyMap_189 = keyMap[189]; - KeyMap_190 = keyMap[190]; - KeyMap_191 = keyMap[191]; - KeyMap_192 = keyMap[192]; - KeyMap_193 = keyMap[193]; - KeyMap_194 = keyMap[194]; - KeyMap_195 = keyMap[195]; - KeyMap_196 = keyMap[196]; - KeyMap_197 = keyMap[197]; - KeyMap_198 = keyMap[198]; - KeyMap_199 = keyMap[199]; - KeyMap_200 = keyMap[200]; - KeyMap_201 = keyMap[201]; - KeyMap_202 = keyMap[202]; - KeyMap_203 = keyMap[203]; - KeyMap_204 = keyMap[204]; - KeyMap_205 = keyMap[205]; - KeyMap_206 = keyMap[206]; - KeyMap_207 = keyMap[207]; - KeyMap_208 = keyMap[208]; - KeyMap_209 = keyMap[209]; - KeyMap_210 = keyMap[210]; - KeyMap_211 = keyMap[211]; - KeyMap_212 = keyMap[212]; - KeyMap_213 = keyMap[213]; - KeyMap_214 = keyMap[214]; - KeyMap_215 = keyMap[215]; - KeyMap_216 = keyMap[216]; - KeyMap_217 = keyMap[217]; - KeyMap_218 = keyMap[218]; - KeyMap_219 = keyMap[219]; - KeyMap_220 = keyMap[220]; - KeyMap_221 = keyMap[221]; - KeyMap_222 = keyMap[222]; - KeyMap_223 = keyMap[223]; - KeyMap_224 = keyMap[224]; - KeyMap_225 = keyMap[225]; - KeyMap_226 = keyMap[226]; - KeyMap_227 = keyMap[227]; - KeyMap_228 = keyMap[228]; - KeyMap_229 = keyMap[229]; - KeyMap_230 = keyMap[230]; - KeyMap_231 = keyMap[231]; - KeyMap_232 = keyMap[232]; - KeyMap_233 = keyMap[233]; - KeyMap_234 = keyMap[234]; - KeyMap_235 = keyMap[235]; - KeyMap_236 = keyMap[236]; - KeyMap_237 = keyMap[237]; - KeyMap_238 = keyMap[238]; - KeyMap_239 = keyMap[239]; - KeyMap_240 = keyMap[240]; - KeyMap_241 = keyMap[241]; - KeyMap_242 = keyMap[242]; - KeyMap_243 = keyMap[243]; - KeyMap_244 = keyMap[244]; - KeyMap_245 = keyMap[245]; - KeyMap_246 = keyMap[246]; - KeyMap_247 = keyMap[247]; - KeyMap_248 = keyMap[248]; - KeyMap_249 = keyMap[249]; - KeyMap_250 = keyMap[250]; - KeyMap_251 = keyMap[251]; - KeyMap_252 = keyMap[252]; - KeyMap_253 = keyMap[253]; - KeyMap_254 = keyMap[254]; - KeyMap_255 = keyMap[255]; - KeyMap_256 = keyMap[256]; - KeyMap_257 = keyMap[257]; - KeyMap_258 = keyMap[258]; - KeyMap_259 = keyMap[259]; - KeyMap_260 = keyMap[260]; - KeyMap_261 = keyMap[261]; - KeyMap_262 = keyMap[262]; - KeyMap_263 = keyMap[263]; - KeyMap_264 = keyMap[264]; - KeyMap_265 = keyMap[265]; - KeyMap_266 = keyMap[266]; - KeyMap_267 = keyMap[267]; - KeyMap_268 = keyMap[268]; - KeyMap_269 = keyMap[269]; - KeyMap_270 = keyMap[270]; - KeyMap_271 = keyMap[271]; - KeyMap_272 = keyMap[272]; - KeyMap_273 = keyMap[273]; - KeyMap_274 = keyMap[274]; - KeyMap_275 = keyMap[275]; - KeyMap_276 = keyMap[276]; - KeyMap_277 = keyMap[277]; - KeyMap_278 = keyMap[278]; - KeyMap_279 = keyMap[279]; - KeyMap_280 = keyMap[280]; - KeyMap_281 = keyMap[281]; - KeyMap_282 = keyMap[282]; - KeyMap_283 = keyMap[283]; - KeyMap_284 = keyMap[284]; - KeyMap_285 = keyMap[285]; - KeyMap_286 = keyMap[286]; - KeyMap_287 = keyMap[287]; - KeyMap_288 = keyMap[288]; - KeyMap_289 = keyMap[289]; - KeyMap_290 = keyMap[290]; - KeyMap_291 = keyMap[291]; - KeyMap_292 = keyMap[292]; - KeyMap_293 = keyMap[293]; - KeyMap_294 = keyMap[294]; - KeyMap_295 = keyMap[295]; - KeyMap_296 = keyMap[296]; - KeyMap_297 = keyMap[297]; - KeyMap_298 = keyMap[298]; - KeyMap_299 = keyMap[299]; - KeyMap_300 = keyMap[300]; - KeyMap_301 = keyMap[301]; - KeyMap_302 = keyMap[302]; - KeyMap_303 = keyMap[303]; - KeyMap_304 = keyMap[304]; - KeyMap_305 = keyMap[305]; - KeyMap_306 = keyMap[306]; - KeyMap_307 = keyMap[307]; - KeyMap_308 = keyMap[308]; - KeyMap_309 = keyMap[309]; - KeyMap_310 = keyMap[310]; - KeyMap_311 = keyMap[311]; - KeyMap_312 = keyMap[312]; - KeyMap_313 = keyMap[313]; - KeyMap_314 = keyMap[314]; - KeyMap_315 = keyMap[315]; - KeyMap_316 = keyMap[316]; - KeyMap_317 = keyMap[317]; - KeyMap_318 = keyMap[318]; - KeyMap_319 = keyMap[319]; - KeyMap_320 = keyMap[320]; - KeyMap_321 = keyMap[321]; - KeyMap_322 = keyMap[322]; - KeyMap_323 = keyMap[323]; - KeyMap_324 = keyMap[324]; - KeyMap_325 = keyMap[325]; - KeyMap_326 = keyMap[326]; - KeyMap_327 = keyMap[327]; - KeyMap_328 = keyMap[328]; - KeyMap_329 = keyMap[329]; - KeyMap_330 = keyMap[330]; - KeyMap_331 = keyMap[331]; - KeyMap_332 = keyMap[332]; - KeyMap_333 = keyMap[333]; - KeyMap_334 = keyMap[334]; - KeyMap_335 = keyMap[335]; - KeyMap_336 = keyMap[336]; - KeyMap_337 = keyMap[337]; - KeyMap_338 = keyMap[338]; - KeyMap_339 = keyMap[339]; - KeyMap_340 = keyMap[340]; - KeyMap_341 = keyMap[341]; - KeyMap_342 = keyMap[342]; - KeyMap_343 = keyMap[343]; - KeyMap_344 = keyMap[344]; - KeyMap_345 = keyMap[345]; - KeyMap_346 = keyMap[346]; - KeyMap_347 = keyMap[347]; - KeyMap_348 = keyMap[348]; - KeyMap_349 = keyMap[349]; - KeyMap_350 = keyMap[350]; - KeyMap_351 = keyMap[351]; - KeyMap_352 = keyMap[352]; - KeyMap_353 = keyMap[353]; - KeyMap_354 = keyMap[354]; - KeyMap_355 = keyMap[355]; - KeyMap_356 = keyMap[356]; - KeyMap_357 = keyMap[357]; - KeyMap_358 = keyMap[358]; - KeyMap_359 = keyMap[359]; - KeyMap_360 = keyMap[360]; - KeyMap_361 = keyMap[361]; - KeyMap_362 = keyMap[362]; - KeyMap_363 = keyMap[363]; - KeyMap_364 = keyMap[364]; - KeyMap_365 = keyMap[365]; - KeyMap_366 = keyMap[366]; - KeyMap_367 = keyMap[367]; - KeyMap_368 = keyMap[368]; - KeyMap_369 = keyMap[369]; - KeyMap_370 = keyMap[370]; - KeyMap_371 = keyMap[371]; - KeyMap_372 = keyMap[372]; - KeyMap_373 = keyMap[373]; - KeyMap_374 = keyMap[374]; - KeyMap_375 = keyMap[375]; - KeyMap_376 = keyMap[376]; - KeyMap_377 = keyMap[377]; - KeyMap_378 = keyMap[378]; - KeyMap_379 = keyMap[379]; - KeyMap_380 = keyMap[380]; - KeyMap_381 = keyMap[381]; - KeyMap_382 = keyMap[382]; - KeyMap_383 = keyMap[383]; - KeyMap_384 = keyMap[384]; - KeyMap_385 = keyMap[385]; - KeyMap_386 = keyMap[386]; - KeyMap_387 = keyMap[387]; - KeyMap_388 = keyMap[388]; - KeyMap_389 = keyMap[389]; - KeyMap_390 = keyMap[390]; - KeyMap_391 = keyMap[391]; - KeyMap_392 = keyMap[392]; - KeyMap_393 = keyMap[393]; - KeyMap_394 = keyMap[394]; - KeyMap_395 = keyMap[395]; - KeyMap_396 = keyMap[396]; - KeyMap_397 = keyMap[397]; - KeyMap_398 = keyMap[398]; - KeyMap_399 = keyMap[399]; - KeyMap_400 = keyMap[400]; - KeyMap_401 = keyMap[401]; - KeyMap_402 = keyMap[402]; - KeyMap_403 = keyMap[403]; - KeyMap_404 = keyMap[404]; - KeyMap_405 = keyMap[405]; - KeyMap_406 = keyMap[406]; - KeyMap_407 = keyMap[407]; - KeyMap_408 = keyMap[408]; - KeyMap_409 = keyMap[409]; - KeyMap_410 = keyMap[410]; - KeyMap_411 = keyMap[411]; - KeyMap_412 = keyMap[412]; - KeyMap_413 = keyMap[413]; - KeyMap_414 = keyMap[414]; - KeyMap_415 = keyMap[415]; - KeyMap_416 = keyMap[416]; - KeyMap_417 = keyMap[417]; - KeyMap_418 = keyMap[418]; - KeyMap_419 = keyMap[419]; - KeyMap_420 = keyMap[420]; - KeyMap_421 = keyMap[421]; - KeyMap_422 = keyMap[422]; - KeyMap_423 = keyMap[423]; - KeyMap_424 = keyMap[424]; - KeyMap_425 = keyMap[425]; - KeyMap_426 = keyMap[426]; - KeyMap_427 = keyMap[427]; - KeyMap_428 = keyMap[428]; - KeyMap_429 = keyMap[429]; - KeyMap_430 = keyMap[430]; - KeyMap_431 = keyMap[431]; - KeyMap_432 = keyMap[432]; - KeyMap_433 = keyMap[433]; - KeyMap_434 = keyMap[434]; - KeyMap_435 = keyMap[435]; - KeyMap_436 = keyMap[436]; - KeyMap_437 = keyMap[437]; - KeyMap_438 = keyMap[438]; - KeyMap_439 = keyMap[439]; - KeyMap_440 = keyMap[440]; - KeyMap_441 = keyMap[441]; - KeyMap_442 = keyMap[442]; - KeyMap_443 = keyMap[443]; - KeyMap_444 = keyMap[444]; - KeyMap_445 = keyMap[445]; - KeyMap_446 = keyMap[446]; - KeyMap_447 = keyMap[447]; - KeyMap_448 = keyMap[448]; - KeyMap_449 = keyMap[449]; - KeyMap_450 = keyMap[450]; - KeyMap_451 = keyMap[451]; - KeyMap_452 = keyMap[452]; - KeyMap_453 = keyMap[453]; - KeyMap_454 = keyMap[454]; - KeyMap_455 = keyMap[455]; - KeyMap_456 = keyMap[456]; - KeyMap_457 = keyMap[457]; - KeyMap_458 = keyMap[458]; - KeyMap_459 = keyMap[459]; - KeyMap_460 = keyMap[460]; - KeyMap_461 = keyMap[461]; - KeyMap_462 = keyMap[462]; - KeyMap_463 = keyMap[463]; - KeyMap_464 = keyMap[464]; - KeyMap_465 = keyMap[465]; - KeyMap_466 = keyMap[466]; - KeyMap_467 = keyMap[467]; - KeyMap_468 = keyMap[468]; - KeyMap_469 = keyMap[469]; - KeyMap_470 = keyMap[470]; - KeyMap_471 = keyMap[471]; - KeyMap_472 = keyMap[472]; - KeyMap_473 = keyMap[473]; - KeyMap_474 = keyMap[474]; - KeyMap_475 = keyMap[475]; - KeyMap_476 = keyMap[476]; - KeyMap_477 = keyMap[477]; - KeyMap_478 = keyMap[478]; - KeyMap_479 = keyMap[479]; - KeyMap_480 = keyMap[480]; - KeyMap_481 = keyMap[481]; - KeyMap_482 = keyMap[482]; - KeyMap_483 = keyMap[483]; - KeyMap_484 = keyMap[484]; - KeyMap_485 = keyMap[485]; - KeyMap_486 = keyMap[486]; - KeyMap_487 = keyMap[487]; - KeyMap_488 = keyMap[488]; - KeyMap_489 = keyMap[489]; - KeyMap_490 = keyMap[490]; - KeyMap_491 = keyMap[491]; - KeyMap_492 = keyMap[492]; - KeyMap_493 = keyMap[493]; - KeyMap_494 = keyMap[494]; - KeyMap_495 = keyMap[495]; - KeyMap_496 = keyMap[496]; - KeyMap_497 = keyMap[497]; - KeyMap_498 = keyMap[498]; - KeyMap_499 = keyMap[499]; - KeyMap_500 = keyMap[500]; - KeyMap_501 = keyMap[501]; - KeyMap_502 = keyMap[502]; - KeyMap_503 = keyMap[503]; - KeyMap_504 = keyMap[504]; - KeyMap_505 = keyMap[505]; - KeyMap_506 = keyMap[506]; - KeyMap_507 = keyMap[507]; - KeyMap_508 = keyMap[508]; - KeyMap_509 = keyMap[509]; - KeyMap_510 = keyMap[510]; - KeyMap_511 = keyMap[511]; - KeyMap_512 = keyMap[512]; - KeyMap_513 = keyMap[513]; - KeyMap_514 = keyMap[514]; - KeyMap_515 = keyMap[515]; - KeyMap_516 = keyMap[516]; - KeyMap_517 = keyMap[517]; - KeyMap_518 = keyMap[518]; - KeyMap_519 = keyMap[519]; - KeyMap_520 = keyMap[520]; - KeyMap_521 = keyMap[521]; - KeyMap_522 = keyMap[522]; - KeyMap_523 = keyMap[523]; - KeyMap_524 = keyMap[524]; - KeyMap_525 = keyMap[525]; - KeyMap_526 = keyMap[526]; - KeyMap_527 = keyMap[527]; - KeyMap_528 = keyMap[528]; - KeyMap_529 = keyMap[529]; - KeyMap_530 = keyMap[530]; - KeyMap_531 = keyMap[531]; - KeyMap_532 = keyMap[532]; - KeyMap_533 = keyMap[533]; - KeyMap_534 = keyMap[534]; - KeyMap_535 = keyMap[535]; - KeyMap_536 = keyMap[536]; - KeyMap_537 = keyMap[537]; - KeyMap_538 = keyMap[538]; - KeyMap_539 = keyMap[539]; - KeyMap_540 = keyMap[540]; - KeyMap_541 = keyMap[541]; - KeyMap_542 = keyMap[542]; - KeyMap_543 = keyMap[543]; - KeyMap_544 = keyMap[544]; - KeyMap_545 = keyMap[545]; - KeyMap_546 = keyMap[546]; - KeyMap_547 = keyMap[547]; - KeyMap_548 = keyMap[548]; - KeyMap_549 = keyMap[549]; - KeyMap_550 = keyMap[550]; - KeyMap_551 = keyMap[551]; - KeyMap_552 = keyMap[552]; - KeyMap_553 = keyMap[553]; - KeyMap_554 = keyMap[554]; - KeyMap_555 = keyMap[555]; - KeyMap_556 = keyMap[556]; - KeyMap_557 = keyMap[557]; - KeyMap_558 = keyMap[558]; - KeyMap_559 = keyMap[559]; - KeyMap_560 = keyMap[560]; - KeyMap_561 = keyMap[561]; - KeyMap_562 = keyMap[562]; - KeyMap_563 = keyMap[563]; - KeyMap_564 = keyMap[564]; - KeyMap_565 = keyMap[565]; - KeyMap_566 = keyMap[566]; - KeyMap_567 = keyMap[567]; - KeyMap_568 = keyMap[568]; - KeyMap_569 = keyMap[569]; - KeyMap_570 = keyMap[570]; - KeyMap_571 = keyMap[571]; - KeyMap_572 = keyMap[572]; - KeyMap_573 = keyMap[573]; - KeyMap_574 = keyMap[574]; - KeyMap_575 = keyMap[575]; - KeyMap_576 = keyMap[576]; - KeyMap_577 = keyMap[577]; - KeyMap_578 = keyMap[578]; - KeyMap_579 = keyMap[579]; - KeyMap_580 = keyMap[580]; - KeyMap_581 = keyMap[581]; - KeyMap_582 = keyMap[582]; - KeyMap_583 = keyMap[583]; - KeyMap_584 = keyMap[584]; - KeyMap_585 = keyMap[585]; - KeyMap_586 = keyMap[586]; - KeyMap_587 = keyMap[587]; - KeyMap_588 = keyMap[588]; - KeyMap_589 = keyMap[589]; - KeyMap_590 = keyMap[590]; - KeyMap_591 = keyMap[591]; - KeyMap_592 = keyMap[592]; - KeyMap_593 = keyMap[593]; - KeyMap_594 = keyMap[594]; - KeyMap_595 = keyMap[595]; - KeyMap_596 = keyMap[596]; - KeyMap_597 = keyMap[597]; - KeyMap_598 = keyMap[598]; - KeyMap_599 = keyMap[599]; - KeyMap_600 = keyMap[600]; - KeyMap_601 = keyMap[601]; - KeyMap_602 = keyMap[602]; - KeyMap_603 = keyMap[603]; - KeyMap_604 = keyMap[604]; - KeyMap_605 = keyMap[605]; - KeyMap_606 = keyMap[606]; - KeyMap_607 = keyMap[607]; - KeyMap_608 = keyMap[608]; - KeyMap_609 = keyMap[609]; - KeyMap_610 = keyMap[610]; - KeyMap_611 = keyMap[611]; - KeyMap_612 = keyMap[612]; - KeyMap_613 = keyMap[613]; - KeyMap_614 = keyMap[614]; - KeyMap_615 = keyMap[615]; - KeyMap_616 = keyMap[616]; - KeyMap_617 = keyMap[617]; - KeyMap_618 = keyMap[618]; - KeyMap_619 = keyMap[619]; - KeyMap_620 = keyMap[620]; - KeyMap_621 = keyMap[621]; - KeyMap_622 = keyMap[622]; - KeyMap_623 = keyMap[623]; - KeyMap_624 = keyMap[624]; - KeyMap_625 = keyMap[625]; - KeyMap_626 = keyMap[626]; - KeyMap_627 = keyMap[627]; - KeyMap_628 = keyMap[628]; - KeyMap_629 = keyMap[629]; - KeyMap_630 = keyMap[630]; - KeyMap_631 = keyMap[631]; - KeyMap_632 = keyMap[632]; - KeyMap_633 = keyMap[633]; - KeyMap_634 = keyMap[634]; - KeyMap_635 = keyMap[635]; - KeyMap_636 = keyMap[636]; - KeyMap_637 = keyMap[637]; - KeyMap_638 = keyMap[638]; - KeyMap_639 = keyMap[639]; - KeyMap_640 = keyMap[640]; - KeyMap_641 = keyMap[641]; - KeyMap_642 = keyMap[642]; - KeyMap_643 = keyMap[643]; - KeyMap_644 = keyMap[644]; - } - if (keysDown != default(Span<bool>)) - { - KeysDown_0 = keysDown[0]; - KeysDown_1 = keysDown[1]; - KeysDown_2 = keysDown[2]; - KeysDown_3 = keysDown[3]; - KeysDown_4 = keysDown[4]; - KeysDown_5 = keysDown[5]; - KeysDown_6 = keysDown[6]; - KeysDown_7 = keysDown[7]; - KeysDown_8 = keysDown[8]; - KeysDown_9 = keysDown[9]; - KeysDown_10 = keysDown[10]; - KeysDown_11 = keysDown[11]; - KeysDown_12 = keysDown[12]; - KeysDown_13 = keysDown[13]; - KeysDown_14 = keysDown[14]; - KeysDown_15 = keysDown[15]; - KeysDown_16 = keysDown[16]; - KeysDown_17 = keysDown[17]; - KeysDown_18 = keysDown[18]; - KeysDown_19 = keysDown[19]; - KeysDown_20 = keysDown[20]; - KeysDown_21 = keysDown[21]; - KeysDown_22 = keysDown[22]; - KeysDown_23 = keysDown[23]; - KeysDown_24 = keysDown[24]; - KeysDown_25 = keysDown[25]; - KeysDown_26 = keysDown[26]; - KeysDown_27 = keysDown[27]; - KeysDown_28 = keysDown[28]; - KeysDown_29 = keysDown[29]; - KeysDown_30 = keysDown[30]; - KeysDown_31 = keysDown[31]; - KeysDown_32 = keysDown[32]; - KeysDown_33 = keysDown[33]; - KeysDown_34 = keysDown[34]; - KeysDown_35 = keysDown[35]; - KeysDown_36 = keysDown[36]; - KeysDown_37 = keysDown[37]; - KeysDown_38 = keysDown[38]; - KeysDown_39 = keysDown[39]; - KeysDown_40 = keysDown[40]; - KeysDown_41 = keysDown[41]; - KeysDown_42 = keysDown[42]; - KeysDown_43 = keysDown[43]; - KeysDown_44 = keysDown[44]; - KeysDown_45 = keysDown[45]; - KeysDown_46 = keysDown[46]; - KeysDown_47 = keysDown[47]; - KeysDown_48 = keysDown[48]; - KeysDown_49 = keysDown[49]; - KeysDown_50 = keysDown[50]; - KeysDown_51 = keysDown[51]; - KeysDown_52 = keysDown[52]; - KeysDown_53 = keysDown[53]; - KeysDown_54 = keysDown[54]; - KeysDown_55 = keysDown[55]; - KeysDown_56 = keysDown[56]; - KeysDown_57 = keysDown[57]; - KeysDown_58 = keysDown[58]; - KeysDown_59 = keysDown[59]; - KeysDown_60 = keysDown[60]; - KeysDown_61 = keysDown[61]; - KeysDown_62 = keysDown[62]; - KeysDown_63 = keysDown[63]; - KeysDown_64 = keysDown[64]; - KeysDown_65 = keysDown[65]; - KeysDown_66 = keysDown[66]; - KeysDown_67 = keysDown[67]; - KeysDown_68 = keysDown[68]; - KeysDown_69 = keysDown[69]; - KeysDown_70 = keysDown[70]; - KeysDown_71 = keysDown[71]; - KeysDown_72 = keysDown[72]; - KeysDown_73 = keysDown[73]; - KeysDown_74 = keysDown[74]; - KeysDown_75 = keysDown[75]; - KeysDown_76 = keysDown[76]; - KeysDown_77 = keysDown[77]; - KeysDown_78 = keysDown[78]; - KeysDown_79 = keysDown[79]; - KeysDown_80 = keysDown[80]; - KeysDown_81 = keysDown[81]; - KeysDown_82 = keysDown[82]; - KeysDown_83 = keysDown[83]; - KeysDown_84 = keysDown[84]; - KeysDown_85 = keysDown[85]; - KeysDown_86 = keysDown[86]; - KeysDown_87 = keysDown[87]; - KeysDown_88 = keysDown[88]; - KeysDown_89 = keysDown[89]; - KeysDown_90 = keysDown[90]; - KeysDown_91 = keysDown[91]; - KeysDown_92 = keysDown[92]; - KeysDown_93 = keysDown[93]; - KeysDown_94 = keysDown[94]; - KeysDown_95 = keysDown[95]; - KeysDown_96 = keysDown[96]; - KeysDown_97 = keysDown[97]; - KeysDown_98 = keysDown[98]; - KeysDown_99 = keysDown[99]; - KeysDown_100 = keysDown[100]; - KeysDown_101 = keysDown[101]; - KeysDown_102 = keysDown[102]; - KeysDown_103 = keysDown[103]; - KeysDown_104 = keysDown[104]; - KeysDown_105 = keysDown[105]; - KeysDown_106 = keysDown[106]; - KeysDown_107 = keysDown[107]; - KeysDown_108 = keysDown[108]; - KeysDown_109 = keysDown[109]; - KeysDown_110 = keysDown[110]; - KeysDown_111 = keysDown[111]; - KeysDown_112 = keysDown[112]; - KeysDown_113 = keysDown[113]; - KeysDown_114 = keysDown[114]; - KeysDown_115 = keysDown[115]; - KeysDown_116 = keysDown[116]; - KeysDown_117 = keysDown[117]; - KeysDown_118 = keysDown[118]; - KeysDown_119 = keysDown[119]; - KeysDown_120 = keysDown[120]; - KeysDown_121 = keysDown[121]; - KeysDown_122 = keysDown[122]; - KeysDown_123 = keysDown[123]; - KeysDown_124 = keysDown[124]; - KeysDown_125 = keysDown[125]; - KeysDown_126 = keysDown[126]; - KeysDown_127 = keysDown[127]; - KeysDown_128 = keysDown[128]; - KeysDown_129 = keysDown[129]; - KeysDown_130 = keysDown[130]; - KeysDown_131 = keysDown[131]; - KeysDown_132 = keysDown[132]; - KeysDown_133 = keysDown[133]; - KeysDown_134 = keysDown[134]; - KeysDown_135 = keysDown[135]; - KeysDown_136 = keysDown[136]; - KeysDown_137 = keysDown[137]; - KeysDown_138 = keysDown[138]; - KeysDown_139 = keysDown[139]; - KeysDown_140 = keysDown[140]; - KeysDown_141 = keysDown[141]; - KeysDown_142 = keysDown[142]; - KeysDown_143 = keysDown[143]; - KeysDown_144 = keysDown[144]; - KeysDown_145 = keysDown[145]; - KeysDown_146 = keysDown[146]; - KeysDown_147 = keysDown[147]; - KeysDown_148 = keysDown[148]; - KeysDown_149 = keysDown[149]; - KeysDown_150 = keysDown[150]; - KeysDown_151 = keysDown[151]; - KeysDown_152 = keysDown[152]; - KeysDown_153 = keysDown[153]; - KeysDown_154 = keysDown[154]; - KeysDown_155 = keysDown[155]; - KeysDown_156 = keysDown[156]; - KeysDown_157 = keysDown[157]; - KeysDown_158 = keysDown[158]; - KeysDown_159 = keysDown[159]; - KeysDown_160 = keysDown[160]; - KeysDown_161 = keysDown[161]; - KeysDown_162 = keysDown[162]; - KeysDown_163 = keysDown[163]; - KeysDown_164 = keysDown[164]; - KeysDown_165 = keysDown[165]; - KeysDown_166 = keysDown[166]; - KeysDown_167 = keysDown[167]; - KeysDown_168 = keysDown[168]; - KeysDown_169 = keysDown[169]; - KeysDown_170 = keysDown[170]; - KeysDown_171 = keysDown[171]; - KeysDown_172 = keysDown[172]; - KeysDown_173 = keysDown[173]; - KeysDown_174 = keysDown[174]; - KeysDown_175 = keysDown[175]; - KeysDown_176 = keysDown[176]; - KeysDown_177 = keysDown[177]; - KeysDown_178 = keysDown[178]; - KeysDown_179 = keysDown[179]; - KeysDown_180 = keysDown[180]; - KeysDown_181 = keysDown[181]; - KeysDown_182 = keysDown[182]; - KeysDown_183 = keysDown[183]; - KeysDown_184 = keysDown[184]; - KeysDown_185 = keysDown[185]; - KeysDown_186 = keysDown[186]; - KeysDown_187 = keysDown[187]; - KeysDown_188 = keysDown[188]; - KeysDown_189 = keysDown[189]; - KeysDown_190 = keysDown[190]; - KeysDown_191 = keysDown[191]; - KeysDown_192 = keysDown[192]; - KeysDown_193 = keysDown[193]; - KeysDown_194 = keysDown[194]; - KeysDown_195 = keysDown[195]; - KeysDown_196 = keysDown[196]; - KeysDown_197 = keysDown[197]; - KeysDown_198 = keysDown[198]; - KeysDown_199 = keysDown[199]; - KeysDown_200 = keysDown[200]; - KeysDown_201 = keysDown[201]; - KeysDown_202 = keysDown[202]; - KeysDown_203 = keysDown[203]; - KeysDown_204 = keysDown[204]; - KeysDown_205 = keysDown[205]; - KeysDown_206 = keysDown[206]; - KeysDown_207 = keysDown[207]; - KeysDown_208 = keysDown[208]; - KeysDown_209 = keysDown[209]; - KeysDown_210 = keysDown[210]; - KeysDown_211 = keysDown[211]; - KeysDown_212 = keysDown[212]; - KeysDown_213 = keysDown[213]; - KeysDown_214 = keysDown[214]; - KeysDown_215 = keysDown[215]; - KeysDown_216 = keysDown[216]; - KeysDown_217 = keysDown[217]; - KeysDown_218 = keysDown[218]; - KeysDown_219 = keysDown[219]; - KeysDown_220 = keysDown[220]; - KeysDown_221 = keysDown[221]; - KeysDown_222 = keysDown[222]; - KeysDown_223 = keysDown[223]; - KeysDown_224 = keysDown[224]; - KeysDown_225 = keysDown[225]; - KeysDown_226 = keysDown[226]; - KeysDown_227 = keysDown[227]; - KeysDown_228 = keysDown[228]; - KeysDown_229 = keysDown[229]; - KeysDown_230 = keysDown[230]; - KeysDown_231 = keysDown[231]; - KeysDown_232 = keysDown[232]; - KeysDown_233 = keysDown[233]; - KeysDown_234 = keysDown[234]; - KeysDown_235 = keysDown[235]; - KeysDown_236 = keysDown[236]; - KeysDown_237 = keysDown[237]; - KeysDown_238 = keysDown[238]; - KeysDown_239 = keysDown[239]; - KeysDown_240 = keysDown[240]; - KeysDown_241 = keysDown[241]; - KeysDown_242 = keysDown[242]; - KeysDown_243 = keysDown[243]; - KeysDown_244 = keysDown[244]; - KeysDown_245 = keysDown[245]; - KeysDown_246 = keysDown[246]; - KeysDown_247 = keysDown[247]; - KeysDown_248 = keysDown[248]; - KeysDown_249 = keysDown[249]; - KeysDown_250 = keysDown[250]; - KeysDown_251 = keysDown[251]; - KeysDown_252 = keysDown[252]; - KeysDown_253 = keysDown[253]; - KeysDown_254 = keysDown[254]; - KeysDown_255 = keysDown[255]; - KeysDown_256 = keysDown[256]; - KeysDown_257 = keysDown[257]; - KeysDown_258 = keysDown[258]; - KeysDown_259 = keysDown[259]; - KeysDown_260 = keysDown[260]; - KeysDown_261 = keysDown[261]; - KeysDown_262 = keysDown[262]; - KeysDown_263 = keysDown[263]; - KeysDown_264 = keysDown[264]; - KeysDown_265 = keysDown[265]; - KeysDown_266 = keysDown[266]; - KeysDown_267 = keysDown[267]; - KeysDown_268 = keysDown[268]; - KeysDown_269 = keysDown[269]; - KeysDown_270 = keysDown[270]; - KeysDown_271 = keysDown[271]; - KeysDown_272 = keysDown[272]; - KeysDown_273 = keysDown[273]; - KeysDown_274 = keysDown[274]; - KeysDown_275 = keysDown[275]; - KeysDown_276 = keysDown[276]; - KeysDown_277 = keysDown[277]; - KeysDown_278 = keysDown[278]; - KeysDown_279 = keysDown[279]; - KeysDown_280 = keysDown[280]; - KeysDown_281 = keysDown[281]; - KeysDown_282 = keysDown[282]; - KeysDown_283 = keysDown[283]; - KeysDown_284 = keysDown[284]; - KeysDown_285 = keysDown[285]; - KeysDown_286 = keysDown[286]; - KeysDown_287 = keysDown[287]; - KeysDown_288 = keysDown[288]; - KeysDown_289 = keysDown[289]; - KeysDown_290 = keysDown[290]; - KeysDown_291 = keysDown[291]; - KeysDown_292 = keysDown[292]; - KeysDown_293 = keysDown[293]; - KeysDown_294 = keysDown[294]; - KeysDown_295 = keysDown[295]; - KeysDown_296 = keysDown[296]; - KeysDown_297 = keysDown[297]; - KeysDown_298 = keysDown[298]; - KeysDown_299 = keysDown[299]; - KeysDown_300 = keysDown[300]; - KeysDown_301 = keysDown[301]; - KeysDown_302 = keysDown[302]; - KeysDown_303 = keysDown[303]; - KeysDown_304 = keysDown[304]; - KeysDown_305 = keysDown[305]; - KeysDown_306 = keysDown[306]; - KeysDown_307 = keysDown[307]; - KeysDown_308 = keysDown[308]; - KeysDown_309 = keysDown[309]; - KeysDown_310 = keysDown[310]; - KeysDown_311 = keysDown[311]; - KeysDown_312 = keysDown[312]; - KeysDown_313 = keysDown[313]; - KeysDown_314 = keysDown[314]; - KeysDown_315 = keysDown[315]; - KeysDown_316 = keysDown[316]; - KeysDown_317 = keysDown[317]; - KeysDown_318 = keysDown[318]; - KeysDown_319 = keysDown[319]; - KeysDown_320 = keysDown[320]; - KeysDown_321 = keysDown[321]; - KeysDown_322 = keysDown[322]; - KeysDown_323 = keysDown[323]; - KeysDown_324 = keysDown[324]; - KeysDown_325 = keysDown[325]; - KeysDown_326 = keysDown[326]; - KeysDown_327 = keysDown[327]; - KeysDown_328 = keysDown[328]; - KeysDown_329 = keysDown[329]; - KeysDown_330 = keysDown[330]; - KeysDown_331 = keysDown[331]; - KeysDown_332 = keysDown[332]; - KeysDown_333 = keysDown[333]; - KeysDown_334 = keysDown[334]; - KeysDown_335 = keysDown[335]; - KeysDown_336 = keysDown[336]; - KeysDown_337 = keysDown[337]; - KeysDown_338 = keysDown[338]; - KeysDown_339 = keysDown[339]; - KeysDown_340 = keysDown[340]; - KeysDown_341 = keysDown[341]; - KeysDown_342 = keysDown[342]; - KeysDown_343 = keysDown[343]; - KeysDown_344 = keysDown[344]; - KeysDown_345 = keysDown[345]; - KeysDown_346 = keysDown[346]; - KeysDown_347 = keysDown[347]; - KeysDown_348 = keysDown[348]; - KeysDown_349 = keysDown[349]; - KeysDown_350 = keysDown[350]; - KeysDown_351 = keysDown[351]; - KeysDown_352 = keysDown[352]; - KeysDown_353 = keysDown[353]; - KeysDown_354 = keysDown[354]; - KeysDown_355 = keysDown[355]; - KeysDown_356 = keysDown[356]; - KeysDown_357 = keysDown[357]; - KeysDown_358 = keysDown[358]; - KeysDown_359 = keysDown[359]; - KeysDown_360 = keysDown[360]; - KeysDown_361 = keysDown[361]; - KeysDown_362 = keysDown[362]; - KeysDown_363 = keysDown[363]; - KeysDown_364 = keysDown[364]; - KeysDown_365 = keysDown[365]; - KeysDown_366 = keysDown[366]; - KeysDown_367 = keysDown[367]; - KeysDown_368 = keysDown[368]; - KeysDown_369 = keysDown[369]; - KeysDown_370 = keysDown[370]; - KeysDown_371 = keysDown[371]; - KeysDown_372 = keysDown[372]; - KeysDown_373 = keysDown[373]; - KeysDown_374 = keysDown[374]; - KeysDown_375 = keysDown[375]; - KeysDown_376 = keysDown[376]; - KeysDown_377 = keysDown[377]; - KeysDown_378 = keysDown[378]; - KeysDown_379 = keysDown[379]; - KeysDown_380 = keysDown[380]; - KeysDown_381 = keysDown[381]; - KeysDown_382 = keysDown[382]; - KeysDown_383 = keysDown[383]; - KeysDown_384 = keysDown[384]; - KeysDown_385 = keysDown[385]; - KeysDown_386 = keysDown[386]; - KeysDown_387 = keysDown[387]; - KeysDown_388 = keysDown[388]; - KeysDown_389 = keysDown[389]; - KeysDown_390 = keysDown[390]; - KeysDown_391 = keysDown[391]; - KeysDown_392 = keysDown[392]; - KeysDown_393 = keysDown[393]; - KeysDown_394 = keysDown[394]; - KeysDown_395 = keysDown[395]; - KeysDown_396 = keysDown[396]; - KeysDown_397 = keysDown[397]; - KeysDown_398 = keysDown[398]; - KeysDown_399 = keysDown[399]; - KeysDown_400 = keysDown[400]; - KeysDown_401 = keysDown[401]; - KeysDown_402 = keysDown[402]; - KeysDown_403 = keysDown[403]; - KeysDown_404 = keysDown[404]; - KeysDown_405 = keysDown[405]; - KeysDown_406 = keysDown[406]; - KeysDown_407 = keysDown[407]; - KeysDown_408 = keysDown[408]; - KeysDown_409 = keysDown[409]; - KeysDown_410 = keysDown[410]; - KeysDown_411 = keysDown[411]; - KeysDown_412 = keysDown[412]; - KeysDown_413 = keysDown[413]; - KeysDown_414 = keysDown[414]; - KeysDown_415 = keysDown[415]; - KeysDown_416 = keysDown[416]; - KeysDown_417 = keysDown[417]; - KeysDown_418 = keysDown[418]; - KeysDown_419 = keysDown[419]; - KeysDown_420 = keysDown[420]; - KeysDown_421 = keysDown[421]; - KeysDown_422 = keysDown[422]; - KeysDown_423 = keysDown[423]; - KeysDown_424 = keysDown[424]; - KeysDown_425 = keysDown[425]; - KeysDown_426 = keysDown[426]; - KeysDown_427 = keysDown[427]; - KeysDown_428 = keysDown[428]; - KeysDown_429 = keysDown[429]; - KeysDown_430 = keysDown[430]; - KeysDown_431 = keysDown[431]; - KeysDown_432 = keysDown[432]; - KeysDown_433 = keysDown[433]; - KeysDown_434 = keysDown[434]; - KeysDown_435 = keysDown[435]; - KeysDown_436 = keysDown[436]; - KeysDown_437 = keysDown[437]; - KeysDown_438 = keysDown[438]; - KeysDown_439 = keysDown[439]; - KeysDown_440 = keysDown[440]; - KeysDown_441 = keysDown[441]; - KeysDown_442 = keysDown[442]; - KeysDown_443 = keysDown[443]; - KeysDown_444 = keysDown[444]; - KeysDown_445 = keysDown[445]; - KeysDown_446 = keysDown[446]; - KeysDown_447 = keysDown[447]; - KeysDown_448 = keysDown[448]; - KeysDown_449 = keysDown[449]; - KeysDown_450 = keysDown[450]; - KeysDown_451 = keysDown[451]; - KeysDown_452 = keysDown[452]; - KeysDown_453 = keysDown[453]; - KeysDown_454 = keysDown[454]; - KeysDown_455 = keysDown[455]; - KeysDown_456 = keysDown[456]; - KeysDown_457 = keysDown[457]; - KeysDown_458 = keysDown[458]; - KeysDown_459 = keysDown[459]; - KeysDown_460 = keysDown[460]; - KeysDown_461 = keysDown[461]; - KeysDown_462 = keysDown[462]; - KeysDown_463 = keysDown[463]; - KeysDown_464 = keysDown[464]; - KeysDown_465 = keysDown[465]; - KeysDown_466 = keysDown[466]; - KeysDown_467 = keysDown[467]; - KeysDown_468 = keysDown[468]; - KeysDown_469 = keysDown[469]; - KeysDown_470 = keysDown[470]; - KeysDown_471 = keysDown[471]; - KeysDown_472 = keysDown[472]; - KeysDown_473 = keysDown[473]; - KeysDown_474 = keysDown[474]; - KeysDown_475 = keysDown[475]; - KeysDown_476 = keysDown[476]; - KeysDown_477 = keysDown[477]; - KeysDown_478 = keysDown[478]; - KeysDown_479 = keysDown[479]; - KeysDown_480 = keysDown[480]; - KeysDown_481 = keysDown[481]; - KeysDown_482 = keysDown[482]; - KeysDown_483 = keysDown[483]; - KeysDown_484 = keysDown[484]; - KeysDown_485 = keysDown[485]; - KeysDown_486 = keysDown[486]; - KeysDown_487 = keysDown[487]; - KeysDown_488 = keysDown[488]; - KeysDown_489 = keysDown[489]; - KeysDown_490 = keysDown[490]; - KeysDown_491 = keysDown[491]; - KeysDown_492 = keysDown[492]; - KeysDown_493 = keysDown[493]; - KeysDown_494 = keysDown[494]; - KeysDown_495 = keysDown[495]; - KeysDown_496 = keysDown[496]; - KeysDown_497 = keysDown[497]; - KeysDown_498 = keysDown[498]; - KeysDown_499 = keysDown[499]; - KeysDown_500 = keysDown[500]; - KeysDown_501 = keysDown[501]; - KeysDown_502 = keysDown[502]; - KeysDown_503 = keysDown[503]; - KeysDown_504 = keysDown[504]; - KeysDown_505 = keysDown[505]; - KeysDown_506 = keysDown[506]; - KeysDown_507 = keysDown[507]; - KeysDown_508 = keysDown[508]; - KeysDown_509 = keysDown[509]; - KeysDown_510 = keysDown[510]; - KeysDown_511 = keysDown[511]; - KeysDown_512 = keysDown[512]; - KeysDown_513 = keysDown[513]; - KeysDown_514 = keysDown[514]; - KeysDown_515 = keysDown[515]; - KeysDown_516 = keysDown[516]; - KeysDown_517 = keysDown[517]; - KeysDown_518 = keysDown[518]; - KeysDown_519 = keysDown[519]; - KeysDown_520 = keysDown[520]; - KeysDown_521 = keysDown[521]; - KeysDown_522 = keysDown[522]; - KeysDown_523 = keysDown[523]; - KeysDown_524 = keysDown[524]; - KeysDown_525 = keysDown[525]; - KeysDown_526 = keysDown[526]; - KeysDown_527 = keysDown[527]; - KeysDown_528 = keysDown[528]; - KeysDown_529 = keysDown[529]; - KeysDown_530 = keysDown[530]; - KeysDown_531 = keysDown[531]; - KeysDown_532 = keysDown[532]; - KeysDown_533 = keysDown[533]; - KeysDown_534 = keysDown[534]; - KeysDown_535 = keysDown[535]; - KeysDown_536 = keysDown[536]; - KeysDown_537 = keysDown[537]; - KeysDown_538 = keysDown[538]; - KeysDown_539 = keysDown[539]; - KeysDown_540 = keysDown[540]; - KeysDown_541 = keysDown[541]; - KeysDown_542 = keysDown[542]; - KeysDown_543 = keysDown[543]; - KeysDown_544 = keysDown[544]; - KeysDown_545 = keysDown[545]; - KeysDown_546 = keysDown[546]; - KeysDown_547 = keysDown[547]; - KeysDown_548 = keysDown[548]; - KeysDown_549 = keysDown[549]; - KeysDown_550 = keysDown[550]; - KeysDown_551 = keysDown[551]; - KeysDown_552 = keysDown[552]; - KeysDown_553 = keysDown[553]; - KeysDown_554 = keysDown[554]; - KeysDown_555 = keysDown[555]; - KeysDown_556 = keysDown[556]; - KeysDown_557 = keysDown[557]; - KeysDown_558 = keysDown[558]; - KeysDown_559 = keysDown[559]; - KeysDown_560 = keysDown[560]; - KeysDown_561 = keysDown[561]; - KeysDown_562 = keysDown[562]; - KeysDown_563 = keysDown[563]; - KeysDown_564 = keysDown[564]; - KeysDown_565 = keysDown[565]; - KeysDown_566 = keysDown[566]; - KeysDown_567 = keysDown[567]; - KeysDown_568 = keysDown[568]; - KeysDown_569 = keysDown[569]; - KeysDown_570 = keysDown[570]; - KeysDown_571 = keysDown[571]; - KeysDown_572 = keysDown[572]; - KeysDown_573 = keysDown[573]; - KeysDown_574 = keysDown[574]; - KeysDown_575 = keysDown[575]; - KeysDown_576 = keysDown[576]; - KeysDown_577 = keysDown[577]; - KeysDown_578 = keysDown[578]; - KeysDown_579 = keysDown[579]; - KeysDown_580 = keysDown[580]; - KeysDown_581 = keysDown[581]; - KeysDown_582 = keysDown[582]; - KeysDown_583 = keysDown[583]; - KeysDown_584 = keysDown[584]; - KeysDown_585 = keysDown[585]; - KeysDown_586 = keysDown[586]; - KeysDown_587 = keysDown[587]; - KeysDown_588 = keysDown[588]; - KeysDown_589 = keysDown[589]; - KeysDown_590 = keysDown[590]; - KeysDown_591 = keysDown[591]; - KeysDown_592 = keysDown[592]; - KeysDown_593 = keysDown[593]; - KeysDown_594 = keysDown[594]; - KeysDown_595 = keysDown[595]; - KeysDown_596 = keysDown[596]; - KeysDown_597 = keysDown[597]; - KeysDown_598 = keysDown[598]; - KeysDown_599 = keysDown[599]; - KeysDown_600 = keysDown[600]; - KeysDown_601 = keysDown[601]; - KeysDown_602 = keysDown[602]; - KeysDown_603 = keysDown[603]; - KeysDown_604 = keysDown[604]; - KeysDown_605 = keysDown[605]; - KeysDown_606 = keysDown[606]; - KeysDown_607 = keysDown[607]; - KeysDown_608 = keysDown[608]; - KeysDown_609 = keysDown[609]; - KeysDown_610 = keysDown[610]; - KeysDown_611 = keysDown[611]; - KeysDown_612 = keysDown[612]; - KeysDown_613 = keysDown[613]; - KeysDown_614 = keysDown[614]; - KeysDown_615 = keysDown[615]; - KeysDown_616 = keysDown[616]; - KeysDown_617 = keysDown[617]; - KeysDown_618 = keysDown[618]; - KeysDown_619 = keysDown[619]; - KeysDown_620 = keysDown[620]; - KeysDown_621 = keysDown[621]; - KeysDown_622 = keysDown[622]; - KeysDown_623 = keysDown[623]; - KeysDown_624 = keysDown[624]; - KeysDown_625 = keysDown[625]; - KeysDown_626 = keysDown[626]; - KeysDown_627 = keysDown[627]; - KeysDown_628 = keysDown[628]; - KeysDown_629 = keysDown[629]; - KeysDown_630 = keysDown[630]; - KeysDown_631 = keysDown[631]; - KeysDown_632 = keysDown[632]; - KeysDown_633 = keysDown[633]; - KeysDown_634 = keysDown[634]; - KeysDown_635 = keysDown[635]; - KeysDown_636 = keysDown[636]; - KeysDown_637 = keysDown[637]; - KeysDown_638 = keysDown[638]; - KeysDown_639 = keysDown[639]; - KeysDown_640 = keysDown[640]; - KeysDown_641 = keysDown[641]; - KeysDown_642 = keysDown[642]; - KeysDown_643 = keysDown[643]; - KeysDown_644 = keysDown[644]; - } - MousePos = mousePos; - if (mouseDown != default(Span<bool>)) - { - MouseDown_0 = mouseDown[0]; - MouseDown_1 = mouseDown[1]; - MouseDown_2 = mouseDown[2]; - MouseDown_3 = mouseDown[3]; - MouseDown_4 = mouseDown[4]; - } - MouseWheel = mouseWheel; - MouseWheelH = mouseWheelH; - MouseHoveredViewport = mouseHoveredViewport; - KeyCtrl = keyCtrl ? (byte)1 : (byte)0; - KeyShift = keyShift ? (byte)1 : (byte)0; - KeyAlt = keyAlt ? (byte)1 : (byte)0; - KeySuper = keySuper ? (byte)1 : (byte)0; - if (navInputs != default(Span<float>)) - { - NavInputs_0 = navInputs[0]; - NavInputs_1 = navInputs[1]; - NavInputs_2 = navInputs[2]; - NavInputs_3 = navInputs[3]; - NavInputs_4 = navInputs[4]; - NavInputs_5 = navInputs[5]; - NavInputs_6 = navInputs[6]; - NavInputs_7 = navInputs[7]; - NavInputs_8 = navInputs[8]; - NavInputs_9 = navInputs[9]; - NavInputs_10 = navInputs[10]; - NavInputs_11 = navInputs[11]; - NavInputs_12 = navInputs[12]; - NavInputs_13 = navInputs[13]; - NavInputs_14 = navInputs[14]; - NavInputs_15 = navInputs[15]; - NavInputs_16 = navInputs[16]; - NavInputs_17 = navInputs[17]; - NavInputs_18 = navInputs[18]; - NavInputs_19 = navInputs[19]; - NavInputs_20 = navInputs[20]; - } - KeyMods = keyMods; - if (keysData != default(Span<ImGuiKeyData>)) - { - KeysData_0 = keysData[0]; - KeysData_1 = keysData[1]; - KeysData_2 = keysData[2]; - KeysData_3 = keysData[3]; - KeysData_4 = keysData[4]; - KeysData_5 = keysData[5]; - KeysData_6 = keysData[6]; - KeysData_7 = keysData[7]; - KeysData_8 = keysData[8]; - KeysData_9 = keysData[9]; - KeysData_10 = keysData[10]; - KeysData_11 = keysData[11]; - KeysData_12 = keysData[12]; - KeysData_13 = keysData[13]; - KeysData_14 = keysData[14]; - KeysData_15 = keysData[15]; - KeysData_16 = keysData[16]; - KeysData_17 = keysData[17]; - KeysData_18 = keysData[18]; - KeysData_19 = keysData[19]; - KeysData_20 = keysData[20]; - KeysData_21 = keysData[21]; - KeysData_22 = keysData[22]; - KeysData_23 = keysData[23]; - KeysData_24 = keysData[24]; - KeysData_25 = keysData[25]; - KeysData_26 = keysData[26]; - KeysData_27 = keysData[27]; - KeysData_28 = keysData[28]; - KeysData_29 = keysData[29]; - KeysData_30 = keysData[30]; - KeysData_31 = keysData[31]; - KeysData_32 = keysData[32]; - KeysData_33 = keysData[33]; - KeysData_34 = keysData[34]; - KeysData_35 = keysData[35]; - KeysData_36 = keysData[36]; - KeysData_37 = keysData[37]; - KeysData_38 = keysData[38]; - KeysData_39 = keysData[39]; - KeysData_40 = keysData[40]; - KeysData_41 = keysData[41]; - KeysData_42 = keysData[42]; - KeysData_43 = keysData[43]; - KeysData_44 = keysData[44]; - KeysData_45 = keysData[45]; - KeysData_46 = keysData[46]; - KeysData_47 = keysData[47]; - KeysData_48 = keysData[48]; - KeysData_49 = keysData[49]; - KeysData_50 = keysData[50]; - KeysData_51 = keysData[51]; - KeysData_52 = keysData[52]; - KeysData_53 = keysData[53]; - KeysData_54 = keysData[54]; - KeysData_55 = keysData[55]; - KeysData_56 = keysData[56]; - KeysData_57 = keysData[57]; - KeysData_58 = keysData[58]; - KeysData_59 = keysData[59]; - KeysData_60 = keysData[60]; - KeysData_61 = keysData[61]; - KeysData_62 = keysData[62]; - KeysData_63 = keysData[63]; - KeysData_64 = keysData[64]; - KeysData_65 = keysData[65]; - KeysData_66 = keysData[66]; - KeysData_67 = keysData[67]; - KeysData_68 = keysData[68]; - KeysData_69 = keysData[69]; - KeysData_70 = keysData[70]; - KeysData_71 = keysData[71]; - KeysData_72 = keysData[72]; - KeysData_73 = keysData[73]; - KeysData_74 = keysData[74]; - KeysData_75 = keysData[75]; - KeysData_76 = keysData[76]; - KeysData_77 = keysData[77]; - KeysData_78 = keysData[78]; - KeysData_79 = keysData[79]; - KeysData_80 = keysData[80]; - KeysData_81 = keysData[81]; - KeysData_82 = keysData[82]; - KeysData_83 = keysData[83]; - KeysData_84 = keysData[84]; - KeysData_85 = keysData[85]; - KeysData_86 = keysData[86]; - KeysData_87 = keysData[87]; - KeysData_88 = keysData[88]; - KeysData_89 = keysData[89]; - KeysData_90 = keysData[90]; - KeysData_91 = keysData[91]; - KeysData_92 = keysData[92]; - KeysData_93 = keysData[93]; - KeysData_94 = keysData[94]; - KeysData_95 = keysData[95]; - KeysData_96 = keysData[96]; - KeysData_97 = keysData[97]; - KeysData_98 = keysData[98]; - KeysData_99 = keysData[99]; - KeysData_100 = keysData[100]; - KeysData_101 = keysData[101]; - KeysData_102 = keysData[102]; - KeysData_103 = keysData[103]; - KeysData_104 = keysData[104]; - KeysData_105 = keysData[105]; - KeysData_106 = keysData[106]; - KeysData_107 = keysData[107]; - KeysData_108 = keysData[108]; - KeysData_109 = keysData[109]; - KeysData_110 = keysData[110]; - KeysData_111 = keysData[111]; - KeysData_112 = keysData[112]; - KeysData_113 = keysData[113]; - KeysData_114 = keysData[114]; - KeysData_115 = keysData[115]; - KeysData_116 = keysData[116]; - KeysData_117 = keysData[117]; - KeysData_118 = keysData[118]; - KeysData_119 = keysData[119]; - KeysData_120 = keysData[120]; - KeysData_121 = keysData[121]; - KeysData_122 = keysData[122]; - KeysData_123 = keysData[123]; - KeysData_124 = keysData[124]; - KeysData_125 = keysData[125]; - KeysData_126 = keysData[126]; - KeysData_127 = keysData[127]; - KeysData_128 = keysData[128]; - KeysData_129 = keysData[129]; - KeysData_130 = keysData[130]; - KeysData_131 = keysData[131]; - KeysData_132 = keysData[132]; - KeysData_133 = keysData[133]; - KeysData_134 = keysData[134]; - KeysData_135 = keysData[135]; - KeysData_136 = keysData[136]; - KeysData_137 = keysData[137]; - KeysData_138 = keysData[138]; - KeysData_139 = keysData[139]; - KeysData_140 = keysData[140]; - KeysData_141 = keysData[141]; - KeysData_142 = keysData[142]; - KeysData_143 = keysData[143]; - KeysData_144 = keysData[144]; - KeysData_145 = keysData[145]; - KeysData_146 = keysData[146]; - KeysData_147 = keysData[147]; - KeysData_148 = keysData[148]; - KeysData_149 = keysData[149]; - KeysData_150 = keysData[150]; - KeysData_151 = keysData[151]; - KeysData_152 = keysData[152]; - KeysData_153 = keysData[153]; - KeysData_154 = keysData[154]; - KeysData_155 = keysData[155]; - KeysData_156 = keysData[156]; - KeysData_157 = keysData[157]; - KeysData_158 = keysData[158]; - KeysData_159 = keysData[159]; - KeysData_160 = keysData[160]; - KeysData_161 = keysData[161]; - KeysData_162 = keysData[162]; - KeysData_163 = keysData[163]; - KeysData_164 = keysData[164]; - KeysData_165 = keysData[165]; - KeysData_166 = keysData[166]; - KeysData_167 = keysData[167]; - KeysData_168 = keysData[168]; - KeysData_169 = keysData[169]; - KeysData_170 = keysData[170]; - KeysData_171 = keysData[171]; - KeysData_172 = keysData[172]; - KeysData_173 = keysData[173]; - KeysData_174 = keysData[174]; - KeysData_175 = keysData[175]; - KeysData_176 = keysData[176]; - KeysData_177 = keysData[177]; - KeysData_178 = keysData[178]; - KeysData_179 = keysData[179]; - KeysData_180 = keysData[180]; - KeysData_181 = keysData[181]; - KeysData_182 = keysData[182]; - KeysData_183 = keysData[183]; - KeysData_184 = keysData[184]; - KeysData_185 = keysData[185]; - KeysData_186 = keysData[186]; - KeysData_187 = keysData[187]; - KeysData_188 = keysData[188]; - KeysData_189 = keysData[189]; - KeysData_190 = keysData[190]; - KeysData_191 = keysData[191]; - KeysData_192 = keysData[192]; - KeysData_193 = keysData[193]; - KeysData_194 = keysData[194]; - KeysData_195 = keysData[195]; - KeysData_196 = keysData[196]; - KeysData_197 = keysData[197]; - KeysData_198 = keysData[198]; - KeysData_199 = keysData[199]; - KeysData_200 = keysData[200]; - KeysData_201 = keysData[201]; - KeysData_202 = keysData[202]; - KeysData_203 = keysData[203]; - KeysData_204 = keysData[204]; - KeysData_205 = keysData[205]; - KeysData_206 = keysData[206]; - KeysData_207 = keysData[207]; - KeysData_208 = keysData[208]; - KeysData_209 = keysData[209]; - KeysData_210 = keysData[210]; - KeysData_211 = keysData[211]; - KeysData_212 = keysData[212]; - KeysData_213 = keysData[213]; - KeysData_214 = keysData[214]; - KeysData_215 = keysData[215]; - KeysData_216 = keysData[216]; - KeysData_217 = keysData[217]; - KeysData_218 = keysData[218]; - KeysData_219 = keysData[219]; - KeysData_220 = keysData[220]; - KeysData_221 = keysData[221]; - KeysData_222 = keysData[222]; - KeysData_223 = keysData[223]; - KeysData_224 = keysData[224]; - KeysData_225 = keysData[225]; - KeysData_226 = keysData[226]; - KeysData_227 = keysData[227]; - KeysData_228 = keysData[228]; - KeysData_229 = keysData[229]; - KeysData_230 = keysData[230]; - KeysData_231 = keysData[231]; - KeysData_232 = keysData[232]; - KeysData_233 = keysData[233]; - KeysData_234 = keysData[234]; - KeysData_235 = keysData[235]; - KeysData_236 = keysData[236]; - KeysData_237 = keysData[237]; - KeysData_238 = keysData[238]; - KeysData_239 = keysData[239]; - KeysData_240 = keysData[240]; - KeysData_241 = keysData[241]; - KeysData_242 = keysData[242]; - KeysData_243 = keysData[243]; - KeysData_244 = keysData[244]; - KeysData_245 = keysData[245]; - KeysData_246 = keysData[246]; - KeysData_247 = keysData[247]; - KeysData_248 = keysData[248]; - KeysData_249 = keysData[249]; - KeysData_250 = keysData[250]; - KeysData_251 = keysData[251]; - KeysData_252 = keysData[252]; - KeysData_253 = keysData[253]; - KeysData_254 = keysData[254]; - KeysData_255 = keysData[255]; - KeysData_256 = keysData[256]; - KeysData_257 = keysData[257]; - KeysData_258 = keysData[258]; - KeysData_259 = keysData[259]; - KeysData_260 = keysData[260]; - KeysData_261 = keysData[261]; - KeysData_262 = keysData[262]; - KeysData_263 = keysData[263]; - KeysData_264 = keysData[264]; - KeysData_265 = keysData[265]; - KeysData_266 = keysData[266]; - KeysData_267 = keysData[267]; - KeysData_268 = keysData[268]; - KeysData_269 = keysData[269]; - KeysData_270 = keysData[270]; - KeysData_271 = keysData[271]; - KeysData_272 = keysData[272]; - KeysData_273 = keysData[273]; - KeysData_274 = keysData[274]; - KeysData_275 = keysData[275]; - KeysData_276 = keysData[276]; - KeysData_277 = keysData[277]; - KeysData_278 = keysData[278]; - KeysData_279 = keysData[279]; - KeysData_280 = keysData[280]; - KeysData_281 = keysData[281]; - KeysData_282 = keysData[282]; - KeysData_283 = keysData[283]; - KeysData_284 = keysData[284]; - KeysData_285 = keysData[285]; - KeysData_286 = keysData[286]; - KeysData_287 = keysData[287]; - KeysData_288 = keysData[288]; - KeysData_289 = keysData[289]; - KeysData_290 = keysData[290]; - KeysData_291 = keysData[291]; - KeysData_292 = keysData[292]; - KeysData_293 = keysData[293]; - KeysData_294 = keysData[294]; - KeysData_295 = keysData[295]; - KeysData_296 = keysData[296]; - KeysData_297 = keysData[297]; - KeysData_298 = keysData[298]; - KeysData_299 = keysData[299]; - KeysData_300 = keysData[300]; - KeysData_301 = keysData[301]; - KeysData_302 = keysData[302]; - KeysData_303 = keysData[303]; - KeysData_304 = keysData[304]; - KeysData_305 = keysData[305]; - KeysData_306 = keysData[306]; - KeysData_307 = keysData[307]; - KeysData_308 = keysData[308]; - KeysData_309 = keysData[309]; - KeysData_310 = keysData[310]; - KeysData_311 = keysData[311]; - KeysData_312 = keysData[312]; - KeysData_313 = keysData[313]; - KeysData_314 = keysData[314]; - KeysData_315 = keysData[315]; - KeysData_316 = keysData[316]; - KeysData_317 = keysData[317]; - KeysData_318 = keysData[318]; - KeysData_319 = keysData[319]; - KeysData_320 = keysData[320]; - KeysData_321 = keysData[321]; - KeysData_322 = keysData[322]; - KeysData_323 = keysData[323]; - KeysData_324 = keysData[324]; - KeysData_325 = keysData[325]; - KeysData_326 = keysData[326]; - KeysData_327 = keysData[327]; - KeysData_328 = keysData[328]; - KeysData_329 = keysData[329]; - KeysData_330 = keysData[330]; - KeysData_331 = keysData[331]; - KeysData_332 = keysData[332]; - KeysData_333 = keysData[333]; - KeysData_334 = keysData[334]; - KeysData_335 = keysData[335]; - KeysData_336 = keysData[336]; - KeysData_337 = keysData[337]; - KeysData_338 = keysData[338]; - KeysData_339 = keysData[339]; - KeysData_340 = keysData[340]; - KeysData_341 = keysData[341]; - KeysData_342 = keysData[342]; - KeysData_343 = keysData[343]; - KeysData_344 = keysData[344]; - KeysData_345 = keysData[345]; - KeysData_346 = keysData[346]; - KeysData_347 = keysData[347]; - KeysData_348 = keysData[348]; - KeysData_349 = keysData[349]; - KeysData_350 = keysData[350]; - KeysData_351 = keysData[351]; - KeysData_352 = keysData[352]; - KeysData_353 = keysData[353]; - KeysData_354 = keysData[354]; - KeysData_355 = keysData[355]; - KeysData_356 = keysData[356]; - KeysData_357 = keysData[357]; - KeysData_358 = keysData[358]; - KeysData_359 = keysData[359]; - KeysData_360 = keysData[360]; - KeysData_361 = keysData[361]; - KeysData_362 = keysData[362]; - KeysData_363 = keysData[363]; - KeysData_364 = keysData[364]; - KeysData_365 = keysData[365]; - KeysData_366 = keysData[366]; - KeysData_367 = keysData[367]; - KeysData_368 = keysData[368]; - KeysData_369 = keysData[369]; - KeysData_370 = keysData[370]; - KeysData_371 = keysData[371]; - KeysData_372 = keysData[372]; - KeysData_373 = keysData[373]; - KeysData_374 = keysData[374]; - KeysData_375 = keysData[375]; - KeysData_376 = keysData[376]; - KeysData_377 = keysData[377]; - KeysData_378 = keysData[378]; - KeysData_379 = keysData[379]; - KeysData_380 = keysData[380]; - KeysData_381 = keysData[381]; - KeysData_382 = keysData[382]; - KeysData_383 = keysData[383]; - KeysData_384 = keysData[384]; - KeysData_385 = keysData[385]; - KeysData_386 = keysData[386]; - KeysData_387 = keysData[387]; - KeysData_388 = keysData[388]; - KeysData_389 = keysData[389]; - KeysData_390 = keysData[390]; - KeysData_391 = keysData[391]; - KeysData_392 = keysData[392]; - KeysData_393 = keysData[393]; - KeysData_394 = keysData[394]; - KeysData_395 = keysData[395]; - KeysData_396 = keysData[396]; - KeysData_397 = keysData[397]; - KeysData_398 = keysData[398]; - KeysData_399 = keysData[399]; - KeysData_400 = keysData[400]; - KeysData_401 = keysData[401]; - KeysData_402 = keysData[402]; - KeysData_403 = keysData[403]; - KeysData_404 = keysData[404]; - KeysData_405 = keysData[405]; - KeysData_406 = keysData[406]; - KeysData_407 = keysData[407]; - KeysData_408 = keysData[408]; - KeysData_409 = keysData[409]; - KeysData_410 = keysData[410]; - KeysData_411 = keysData[411]; - KeysData_412 = keysData[412]; - KeysData_413 = keysData[413]; - KeysData_414 = keysData[414]; - KeysData_415 = keysData[415]; - KeysData_416 = keysData[416]; - KeysData_417 = keysData[417]; - KeysData_418 = keysData[418]; - KeysData_419 = keysData[419]; - KeysData_420 = keysData[420]; - KeysData_421 = keysData[421]; - KeysData_422 = keysData[422]; - KeysData_423 = keysData[423]; - KeysData_424 = keysData[424]; - KeysData_425 = keysData[425]; - KeysData_426 = keysData[426]; - KeysData_427 = keysData[427]; - KeysData_428 = keysData[428]; - KeysData_429 = keysData[429]; - KeysData_430 = keysData[430]; - KeysData_431 = keysData[431]; - KeysData_432 = keysData[432]; - KeysData_433 = keysData[433]; - KeysData_434 = keysData[434]; - KeysData_435 = keysData[435]; - KeysData_436 = keysData[436]; - KeysData_437 = keysData[437]; - KeysData_438 = keysData[438]; - KeysData_439 = keysData[439]; - KeysData_440 = keysData[440]; - KeysData_441 = keysData[441]; - KeysData_442 = keysData[442]; - KeysData_443 = keysData[443]; - KeysData_444 = keysData[444]; - KeysData_445 = keysData[445]; - KeysData_446 = keysData[446]; - KeysData_447 = keysData[447]; - KeysData_448 = keysData[448]; - KeysData_449 = keysData[449]; - KeysData_450 = keysData[450]; - KeysData_451 = keysData[451]; - KeysData_452 = keysData[452]; - KeysData_453 = keysData[453]; - KeysData_454 = keysData[454]; - KeysData_455 = keysData[455]; - KeysData_456 = keysData[456]; - KeysData_457 = keysData[457]; - KeysData_458 = keysData[458]; - KeysData_459 = keysData[459]; - KeysData_460 = keysData[460]; - KeysData_461 = keysData[461]; - KeysData_462 = keysData[462]; - KeysData_463 = keysData[463]; - KeysData_464 = keysData[464]; - KeysData_465 = keysData[465]; - KeysData_466 = keysData[466]; - KeysData_467 = keysData[467]; - KeysData_468 = keysData[468]; - KeysData_469 = keysData[469]; - KeysData_470 = keysData[470]; - KeysData_471 = keysData[471]; - KeysData_472 = keysData[472]; - KeysData_473 = keysData[473]; - KeysData_474 = keysData[474]; - KeysData_475 = keysData[475]; - KeysData_476 = keysData[476]; - KeysData_477 = keysData[477]; - KeysData_478 = keysData[478]; - KeysData_479 = keysData[479]; - KeysData_480 = keysData[480]; - KeysData_481 = keysData[481]; - KeysData_482 = keysData[482]; - KeysData_483 = keysData[483]; - KeysData_484 = keysData[484]; - KeysData_485 = keysData[485]; - KeysData_486 = keysData[486]; - KeysData_487 = keysData[487]; - KeysData_488 = keysData[488]; - KeysData_489 = keysData[489]; - KeysData_490 = keysData[490]; - KeysData_491 = keysData[491]; - KeysData_492 = keysData[492]; - KeysData_493 = keysData[493]; - KeysData_494 = keysData[494]; - KeysData_495 = keysData[495]; - KeysData_496 = keysData[496]; - KeysData_497 = keysData[497]; - KeysData_498 = keysData[498]; - KeysData_499 = keysData[499]; - KeysData_500 = keysData[500]; - KeysData_501 = keysData[501]; - KeysData_502 = keysData[502]; - KeysData_503 = keysData[503]; - KeysData_504 = keysData[504]; - KeysData_505 = keysData[505]; - KeysData_506 = keysData[506]; - KeysData_507 = keysData[507]; - KeysData_508 = keysData[508]; - KeysData_509 = keysData[509]; - KeysData_510 = keysData[510]; - KeysData_511 = keysData[511]; - KeysData_512 = keysData[512]; - KeysData_513 = keysData[513]; - KeysData_514 = keysData[514]; - KeysData_515 = keysData[515]; - KeysData_516 = keysData[516]; - KeysData_517 = keysData[517]; - KeysData_518 = keysData[518]; - KeysData_519 = keysData[519]; - KeysData_520 = keysData[520]; - KeysData_521 = keysData[521]; - KeysData_522 = keysData[522]; - KeysData_523 = keysData[523]; - KeysData_524 = keysData[524]; - KeysData_525 = keysData[525]; - KeysData_526 = keysData[526]; - KeysData_527 = keysData[527]; - KeysData_528 = keysData[528]; - KeysData_529 = keysData[529]; - KeysData_530 = keysData[530]; - KeysData_531 = keysData[531]; - KeysData_532 = keysData[532]; - KeysData_533 = keysData[533]; - KeysData_534 = keysData[534]; - KeysData_535 = keysData[535]; - KeysData_536 = keysData[536]; - KeysData_537 = keysData[537]; - KeysData_538 = keysData[538]; - KeysData_539 = keysData[539]; - KeysData_540 = keysData[540]; - KeysData_541 = keysData[541]; - KeysData_542 = keysData[542]; - KeysData_543 = keysData[543]; - KeysData_544 = keysData[544]; - KeysData_545 = keysData[545]; - KeysData_546 = keysData[546]; - KeysData_547 = keysData[547]; - KeysData_548 = keysData[548]; - KeysData_549 = keysData[549]; - KeysData_550 = keysData[550]; - KeysData_551 = keysData[551]; - KeysData_552 = keysData[552]; - KeysData_553 = keysData[553]; - KeysData_554 = keysData[554]; - KeysData_555 = keysData[555]; - KeysData_556 = keysData[556]; - KeysData_557 = keysData[557]; - KeysData_558 = keysData[558]; - KeysData_559 = keysData[559]; - KeysData_560 = keysData[560]; - KeysData_561 = keysData[561]; - KeysData_562 = keysData[562]; - KeysData_563 = keysData[563]; - KeysData_564 = keysData[564]; - KeysData_565 = keysData[565]; - KeysData_566 = keysData[566]; - KeysData_567 = keysData[567]; - KeysData_568 = keysData[568]; - KeysData_569 = keysData[569]; - KeysData_570 = keysData[570]; - KeysData_571 = keysData[571]; - KeysData_572 = keysData[572]; - KeysData_573 = keysData[573]; - KeysData_574 = keysData[574]; - KeysData_575 = keysData[575]; - KeysData_576 = keysData[576]; - KeysData_577 = keysData[577]; - KeysData_578 = keysData[578]; - KeysData_579 = keysData[579]; - KeysData_580 = keysData[580]; - KeysData_581 = keysData[581]; - KeysData_582 = keysData[582]; - KeysData_583 = keysData[583]; - KeysData_584 = keysData[584]; - KeysData_585 = keysData[585]; - KeysData_586 = keysData[586]; - KeysData_587 = keysData[587]; - KeysData_588 = keysData[588]; - KeysData_589 = keysData[589]; - KeysData_590 = keysData[590]; - KeysData_591 = keysData[591]; - KeysData_592 = keysData[592]; - KeysData_593 = keysData[593]; - KeysData_594 = keysData[594]; - KeysData_595 = keysData[595]; - KeysData_596 = keysData[596]; - KeysData_597 = keysData[597]; - KeysData_598 = keysData[598]; - KeysData_599 = keysData[599]; - KeysData_600 = keysData[600]; - KeysData_601 = keysData[601]; - KeysData_602 = keysData[602]; - KeysData_603 = keysData[603]; - KeysData_604 = keysData[604]; - KeysData_605 = keysData[605]; - KeysData_606 = keysData[606]; - KeysData_607 = keysData[607]; - KeysData_608 = keysData[608]; - KeysData_609 = keysData[609]; - KeysData_610 = keysData[610]; - KeysData_611 = keysData[611]; - KeysData_612 = keysData[612]; - KeysData_613 = keysData[613]; - KeysData_614 = keysData[614]; - KeysData_615 = keysData[615]; - KeysData_616 = keysData[616]; - KeysData_617 = keysData[617]; - KeysData_618 = keysData[618]; - KeysData_619 = keysData[619]; - KeysData_620 = keysData[620]; - KeysData_621 = keysData[621]; - KeysData_622 = keysData[622]; - KeysData_623 = keysData[623]; - KeysData_624 = keysData[624]; - KeysData_625 = keysData[625]; - KeysData_626 = keysData[626]; - KeysData_627 = keysData[627]; - KeysData_628 = keysData[628]; - KeysData_629 = keysData[629]; - KeysData_630 = keysData[630]; - KeysData_631 = keysData[631]; - KeysData_632 = keysData[632]; - KeysData_633 = keysData[633]; - KeysData_634 = keysData[634]; - KeysData_635 = keysData[635]; - KeysData_636 = keysData[636]; - KeysData_637 = keysData[637]; - KeysData_638 = keysData[638]; - KeysData_639 = keysData[639]; - KeysData_640 = keysData[640]; - KeysData_641 = keysData[641]; - KeysData_642 = keysData[642]; - KeysData_643 = keysData[643]; - KeysData_644 = keysData[644]; - } - WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; - MousePosPrev = mousePosPrev; - if (mouseClickedPos != default(Span<Vector2>)) - { - MouseClickedPos_0 = mouseClickedPos[0]; - MouseClickedPos_1 = mouseClickedPos[1]; - MouseClickedPos_2 = mouseClickedPos[2]; - MouseClickedPos_3 = mouseClickedPos[3]; - MouseClickedPos_4 = mouseClickedPos[4]; - } - if (mouseClickedTime != default(Span<double>)) - { - MouseClickedTime_0 = mouseClickedTime[0]; - MouseClickedTime_1 = mouseClickedTime[1]; - MouseClickedTime_2 = mouseClickedTime[2]; - MouseClickedTime_3 = mouseClickedTime[3]; - MouseClickedTime_4 = mouseClickedTime[4]; - } - if (mouseClicked != default(Span<bool>)) - { - MouseClicked_0 = mouseClicked[0]; - MouseClicked_1 = mouseClicked[1]; - MouseClicked_2 = mouseClicked[2]; - MouseClicked_3 = mouseClicked[3]; - MouseClicked_4 = mouseClicked[4]; - } - if (mouseDoubleClicked != default(Span<bool>)) - { - MouseDoubleClicked_0 = mouseDoubleClicked[0]; - MouseDoubleClicked_1 = mouseDoubleClicked[1]; - MouseDoubleClicked_2 = mouseDoubleClicked[2]; - MouseDoubleClicked_3 = mouseDoubleClicked[3]; - MouseDoubleClicked_4 = mouseDoubleClicked[4]; - } - if (mouseClickedCount != default(Span<ushort>)) - { - MouseClickedCount_0 = mouseClickedCount[0]; - MouseClickedCount_1 = mouseClickedCount[1]; - MouseClickedCount_2 = mouseClickedCount[2]; - MouseClickedCount_3 = mouseClickedCount[3]; - MouseClickedCount_4 = mouseClickedCount[4]; - } - if (mouseClickedLastCount != default(Span<ushort>)) - { - MouseClickedLastCount_0 = mouseClickedLastCount[0]; - MouseClickedLastCount_1 = mouseClickedLastCount[1]; - MouseClickedLastCount_2 = mouseClickedLastCount[2]; - MouseClickedLastCount_3 = mouseClickedLastCount[3]; - MouseClickedLastCount_4 = mouseClickedLastCount[4]; - } - if (mouseReleased != default(Span<bool>)) - { - MouseReleased_0 = mouseReleased[0]; - MouseReleased_1 = mouseReleased[1]; - MouseReleased_2 = mouseReleased[2]; - MouseReleased_3 = mouseReleased[3]; - MouseReleased_4 = mouseReleased[4]; - } - if (mouseDownOwned != default(Span<bool>)) - { - MouseDownOwned_0 = mouseDownOwned[0]; - MouseDownOwned_1 = mouseDownOwned[1]; - MouseDownOwned_2 = mouseDownOwned[2]; - MouseDownOwned_3 = mouseDownOwned[3]; - MouseDownOwned_4 = mouseDownOwned[4]; - } - if (mouseDownOwnedUnlessPopupClose != default(Span<bool>)) - { - MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; - MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; - MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; - MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; - MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; - } - if (mouseDownDuration != default(Span<float>)) - { - MouseDownDuration_0 = mouseDownDuration[0]; - MouseDownDuration_1 = mouseDownDuration[1]; - MouseDownDuration_2 = mouseDownDuration[2]; - MouseDownDuration_3 = mouseDownDuration[3]; - MouseDownDuration_4 = mouseDownDuration[4]; - } - if (mouseDownDurationPrev != default(Span<float>)) - { - MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; - MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; - MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; - MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; - MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; - } - if (mouseDragMaxDistanceAbs != default(Span<Vector2>)) - { - MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; - MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; - MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; - MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; - MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; - } - if (mouseDragMaxDistanceSqr != default(Span<float>)) - { - MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; - MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; - MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; - MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; - MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; - } - if (navInputsDownDuration != default(Span<float>)) - { - NavInputsDownDuration_0 = navInputsDownDuration[0]; - NavInputsDownDuration_1 = navInputsDownDuration[1]; - NavInputsDownDuration_2 = navInputsDownDuration[2]; - NavInputsDownDuration_3 = navInputsDownDuration[3]; - NavInputsDownDuration_4 = navInputsDownDuration[4]; - NavInputsDownDuration_5 = navInputsDownDuration[5]; - NavInputsDownDuration_6 = navInputsDownDuration[6]; - NavInputsDownDuration_7 = navInputsDownDuration[7]; - NavInputsDownDuration_8 = navInputsDownDuration[8]; - NavInputsDownDuration_9 = navInputsDownDuration[9]; - NavInputsDownDuration_10 = navInputsDownDuration[10]; - NavInputsDownDuration_11 = navInputsDownDuration[11]; - NavInputsDownDuration_12 = navInputsDownDuration[12]; - NavInputsDownDuration_13 = navInputsDownDuration[13]; - NavInputsDownDuration_14 = navInputsDownDuration[14]; - NavInputsDownDuration_15 = navInputsDownDuration[15]; - NavInputsDownDuration_16 = navInputsDownDuration[16]; - NavInputsDownDuration_17 = navInputsDownDuration[17]; - NavInputsDownDuration_18 = navInputsDownDuration[18]; - NavInputsDownDuration_19 = navInputsDownDuration[19]; - NavInputsDownDuration_20 = navInputsDownDuration[20]; - } - if (navInputsDownDurationPrev != default(Span<float>)) - { - NavInputsDownDurationPrev_0 = navInputsDownDurationPrev[0]; - NavInputsDownDurationPrev_1 = navInputsDownDurationPrev[1]; - NavInputsDownDurationPrev_2 = navInputsDownDurationPrev[2]; - NavInputsDownDurationPrev_3 = navInputsDownDurationPrev[3]; - NavInputsDownDurationPrev_4 = navInputsDownDurationPrev[4]; - NavInputsDownDurationPrev_5 = navInputsDownDurationPrev[5]; - NavInputsDownDurationPrev_6 = navInputsDownDurationPrev[6]; - NavInputsDownDurationPrev_7 = navInputsDownDurationPrev[7]; - NavInputsDownDurationPrev_8 = navInputsDownDurationPrev[8]; - NavInputsDownDurationPrev_9 = navInputsDownDurationPrev[9]; - NavInputsDownDurationPrev_10 = navInputsDownDurationPrev[10]; - NavInputsDownDurationPrev_11 = navInputsDownDurationPrev[11]; - NavInputsDownDurationPrev_12 = navInputsDownDurationPrev[12]; - NavInputsDownDurationPrev_13 = navInputsDownDurationPrev[13]; - NavInputsDownDurationPrev_14 = navInputsDownDurationPrev[14]; - NavInputsDownDurationPrev_15 = navInputsDownDurationPrev[15]; - NavInputsDownDurationPrev_16 = navInputsDownDurationPrev[16]; - NavInputsDownDurationPrev_17 = navInputsDownDurationPrev[17]; - NavInputsDownDurationPrev_18 = navInputsDownDurationPrev[18]; - NavInputsDownDurationPrev_19 = navInputsDownDurationPrev[19]; - NavInputsDownDurationPrev_20 = navInputsDownDurationPrev[20]; - } - PenPressure = penPressure; - AppFocusLost = appFocusLost ? (byte)1 : (byte)0; - AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; - BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; - BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; - InputQueueSurrogate = inputQueueSurrogate; - InputQueueCharacters = inputQueueCharacters; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImGuiKeyData> KeysData - - { - get - { - fixed (ImGuiKeyData* p = &this.KeysData_0) - { - return new Span<ImGuiKeyData>(p, 645); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector2> MouseClickedPos - - { - get - { - fixed (Vector2* p = &this.MouseClickedPos_0) - { - return new Span<Vector2>(p, 5); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector2> MouseDragMaxDistanceAbs - - { - get - { - fixed (Vector2* p = &this.MouseDragMaxDistanceAbs_0) - { - return new Span<Vector2>(p, 5); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddFocusEvent(bool focused) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddFocusEventNative(@this, focused ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharacter(uint c) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddInputCharacterNative(@this, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(byte* str) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddInputCharactersUTF8Native(@this, str); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(ref byte str) - { - fixed (ImGuiIO* @this = &this) - { - fixed (byte* pstr = &str) - { - ImGui.AddInputCharactersUTF8Native(@this, (byte*)pstr); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(ReadOnlySpan<byte> str) - { - fixed (ImGuiIO* @this = &this) - { - fixed (byte* pstr = str) - { - ImGui.AddInputCharactersUTF8Native(@this, (byte*)pstr); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(string str) - { - fixed (ImGuiIO* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddInputCharactersUTF8Native(@this, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharacterUTF16(ushort c) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddInputCharacterUTF16Native(@this, c); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddKeyAnalogEventNative(@this, key, down ? (byte)1 : (byte)0, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddKeyEvent(ImGuiKey key, bool down) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddKeyEventNative(@this, key, down ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMouseButtonEvent(int button, bool down) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddMouseButtonEventNative(@this, button, down ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMousePosEvent(float x, float y) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddMousePosEventNative(@this, x, y); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMouseViewportEvent(uint id) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddMouseViewportEventNative(@this, id); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMouseWheelEvent(float whX, float whY) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.AddMouseWheelEventNative(@this, whX, whY); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearInputCharacters() - { - fixed (ImGuiIO* @this = &this) - { - ImGui.ClearInputCharactersNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearInputKeys() - { - fixed (ImGuiIO* @this = &this) - { - ImGui.ClearInputKeysNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiIO* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAppAcceptingEvents(bool acceptingEvents) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.SetAppAcceptingEventsNative(@this, acceptingEvents ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.SetKeyEventNativeDataNative(@this, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) - { - fixed (ImGuiIO* @this = &this) - { - ImGui.SetKeyEventNativeDataNative(@this, key, nativeKeycode, nativeScancode, (int)(-1)); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiIOPtr : IEquatable<ImGuiIOPtr> - { - public ImGuiIOPtr(ImGuiIO* handle) { Handle = handle; } - - public ImGuiIO* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiIOPtr Null => new ImGuiIOPtr(null); - - public ImGuiIO this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiIOPtr(ImGuiIO* handle) => new ImGuiIOPtr(handle); - - public static implicit operator ImGuiIO*(ImGuiIOPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiIOPtr left, ImGuiIOPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiIOPtr left, ImGuiIO* right) => left.Handle == right; - - public static bool operator !=(ImGuiIOPtr left, ImGuiIO* right) => left.Handle != right; - - public bool Equals(ImGuiIOPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiIOPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiConfigFlags ConfigFlags => ref Unsafe.AsRef<ImGuiConfigFlags>(&Handle->ConfigFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiBackendFlags BackendFlags => ref Unsafe.AsRef<ImGuiBackendFlags>(&Handle->BackendFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 DisplaySize => ref Unsafe.AsRef<Vector2>(&Handle->DisplaySize); - /// <summary> - /// To be documented. - /// </summary> - public ref float DeltaTime => ref Unsafe.AsRef<float>(&Handle->DeltaTime); - /// <summary> - /// To be documented. - /// </summary> - public ref float IniSavingRate => ref Unsafe.AsRef<float>(&Handle->IniSavingRate); - /// <summary> - /// To be documented. - /// </summary> - public byte* IniFilename { get => Handle->IniFilename; set => Handle->IniFilename = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte* LogFilename { get => Handle->LogFilename; set => Handle->LogFilename = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref float MouseDoubleClickTime => ref Unsafe.AsRef<float>(&Handle->MouseDoubleClickTime); - /// <summary> - /// To be documented. - /// </summary> - public ref float MouseDoubleClickMaxDist => ref Unsafe.AsRef<float>(&Handle->MouseDoubleClickMaxDist); - /// <summary> - /// To be documented. - /// </summary> - public ref float MouseDragThreshold => ref Unsafe.AsRef<float>(&Handle->MouseDragThreshold); - /// <summary> - /// To be documented. - /// </summary> - public ref float KeyRepeatDelay => ref Unsafe.AsRef<float>(&Handle->KeyRepeatDelay); - /// <summary> - /// To be documented. - /// </summary> - public ref float KeyRepeatRate => ref Unsafe.AsRef<float>(&Handle->KeyRepeatRate); - /// <summary> - /// To be documented. - /// </summary> - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontAtlasPtr Fonts => ref Unsafe.AsRef<ImFontAtlasPtr>(&Handle->Fonts); - /// <summary> - /// To be documented. - /// </summary> - public ref float FontGlobalScale => ref Unsafe.AsRef<float>(&Handle->FontGlobalScale); - /// <summary> - /// To be documented. - /// </summary> - public ref bool FontAllowUserScaling => ref Unsafe.AsRef<bool>(&Handle->FontAllowUserScaling); - /// <summary> - /// To be documented. - /// </summary> - public ref ImFontPtr FontDefault => ref Unsafe.AsRef<ImFontPtr>(&Handle->FontDefault); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 DisplayFramebufferScale => ref Unsafe.AsRef<Vector2>(&Handle->DisplayFramebufferScale); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigDockingNoSplit => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingNoSplit); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigDockingWithShift => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingWithShift); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigDockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingAlwaysTabBar); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigDockingTransparentPayload => ref Unsafe.AsRef<bool>(&Handle->ConfigDockingTransparentPayload); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigViewportsNoAutoMerge => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoAutoMerge); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigViewportsNoTaskBarIcon => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoTaskBarIcon); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigViewportsNoDecoration => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoDecoration); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigViewportsNoDefaultParent => ref Unsafe.AsRef<bool>(&Handle->ConfigViewportsNoDefaultParent); - /// <summary> - /// To be documented. - /// </summary> - public ref bool MouseDrawCursor => ref Unsafe.AsRef<bool>(&Handle->MouseDrawCursor); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigMacOSXBehaviors => ref Unsafe.AsRef<bool>(&Handle->ConfigMacOSXBehaviors); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigInputTrickleEventQueue => ref Unsafe.AsRef<bool>(&Handle->ConfigInputTrickleEventQueue); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigInputTextCursorBlink => ref Unsafe.AsRef<bool>(&Handle->ConfigInputTextCursorBlink); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigDragClickToInputText => ref Unsafe.AsRef<bool>(&Handle->ConfigDragClickToInputText); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigWindowsResizeFromEdges => ref Unsafe.AsRef<bool>(&Handle->ConfigWindowsResizeFromEdges); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ConfigWindowsMoveFromTitleBarOnly => ref Unsafe.AsRef<bool>(&Handle->ConfigWindowsMoveFromTitleBarOnly); - /// <summary> - /// To be documented. - /// </summary> - public ref float ConfigMemoryCompactTimer => ref Unsafe.AsRef<float>(&Handle->ConfigMemoryCompactTimer); - /// <summary> - /// To be documented. - /// </summary> - public byte* BackendPlatformName { get => Handle->BackendPlatformName; set => Handle->BackendPlatformName = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte* BackendRendererName { get => Handle->BackendRendererName; set => Handle->BackendRendererName = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* BackendPlatformUserData { get => Handle->BackendPlatformUserData; set => Handle->BackendPlatformUserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* BackendRendererUserData { get => Handle->BackendRendererUserData; set => Handle->BackendRendererUserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* BackendLanguageUserData { get => Handle->BackendLanguageUserData; set => Handle->BackendLanguageUserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* GetClipboardTextFn { get => Handle->GetClipboardTextFn; set => Handle->GetClipboardTextFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* SetClipboardTextFn { get => Handle->SetClipboardTextFn; set => Handle->SetClipboardTextFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* ClipboardUserData { get => Handle->ClipboardUserData; set => Handle->ClipboardUserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* SetPlatformImeDataFn { get => Handle->SetPlatformImeDataFn; set => Handle->SetPlatformImeDataFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* UnusedPadding { get => Handle->UnusedPadding; set => Handle->UnusedPadding = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantCaptureMouse => ref Unsafe.AsRef<bool>(&Handle->WantCaptureMouse); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantCaptureKeyboard => ref Unsafe.AsRef<bool>(&Handle->WantCaptureKeyboard); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantTextInput => ref Unsafe.AsRef<bool>(&Handle->WantTextInput); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantSetMousePos => ref Unsafe.AsRef<bool>(&Handle->WantSetMousePos); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantSaveIniSettings => ref Unsafe.AsRef<bool>(&Handle->WantSaveIniSettings); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavActive => ref Unsafe.AsRef<bool>(&Handle->NavActive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool NavVisible => ref Unsafe.AsRef<bool>(&Handle->NavVisible); - /// <summary> - /// To be documented. - /// </summary> - public ref float Framerate => ref Unsafe.AsRef<float>(&Handle->Framerate); - /// <summary> - /// To be documented. - /// </summary> - public ref int MetricsRenderVertices => ref Unsafe.AsRef<int>(&Handle->MetricsRenderVertices); - /// <summary> - /// To be documented. - /// </summary> - public ref int MetricsRenderIndices => ref Unsafe.AsRef<int>(&Handle->MetricsRenderIndices); - /// <summary> - /// To be documented. - /// </summary> - public ref int MetricsRenderWindows => ref Unsafe.AsRef<int>(&Handle->MetricsRenderWindows); - /// <summary> - /// To be documented. - /// </summary> - public ref int MetricsActiveWindows => ref Unsafe.AsRef<int>(&Handle->MetricsActiveWindows); - /// <summary> - /// To be documented. - /// </summary> - public ref int MetricsActiveAllocations => ref Unsafe.AsRef<int>(&Handle->MetricsActiveAllocations); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MouseDelta => ref Unsafe.AsRef<Vector2>(&Handle->MouseDelta); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<int> KeyMap - - { - get - { - return new Span<int>(&Handle->KeyMap_0, 645); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> KeysDown - - { - get - { - return new Span<bool>(&Handle->KeysDown_0, 645); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MousePos => ref Unsafe.AsRef<Vector2>(&Handle->MousePos); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> MouseDown - - { - get - { - return new Span<bool>(&Handle->MouseDown_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref float MouseWheel => ref Unsafe.AsRef<float>(&Handle->MouseWheel); - /// <summary> - /// To be documented. - /// </summary> - public ref float MouseWheelH => ref Unsafe.AsRef<float>(&Handle->MouseWheelH); - /// <summary> - /// To be documented. - /// </summary> - public ref uint MouseHoveredViewport => ref Unsafe.AsRef<uint>(&Handle->MouseHoveredViewport); - /// <summary> - /// To be documented. - /// </summary> - public ref bool KeyCtrl => ref Unsafe.AsRef<bool>(&Handle->KeyCtrl); - /// <summary> - /// To be documented. - /// </summary> - public ref bool KeyShift => ref Unsafe.AsRef<bool>(&Handle->KeyShift); - /// <summary> - /// To be documented. - /// </summary> - public ref bool KeyAlt => ref Unsafe.AsRef<bool>(&Handle->KeyAlt); - /// <summary> - /// To be documented. - /// </summary> - public ref bool KeySuper => ref Unsafe.AsRef<bool>(&Handle->KeySuper); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> NavInputs - - { - get - { - return new Span<float>(&Handle->NavInputs_0, 21); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags KeyMods => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->KeyMods); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImGuiKeyData> KeysData - - { - get - { - return new Span<ImGuiKeyData>(&Handle->KeysData_0, 645); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantCaptureMouseUnlessPopupClose => ref Unsafe.AsRef<bool>(&Handle->WantCaptureMouseUnlessPopupClose); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MousePosPrev => ref Unsafe.AsRef<Vector2>(&Handle->MousePosPrev); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector2> MouseClickedPos - - { - get - { - return new Span<Vector2>(&Handle->MouseClickedPos_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<double> MouseClickedTime - - { - get - { - return new Span<double>(&Handle->MouseClickedTime_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> MouseClicked - - { - get - { - return new Span<bool>(&Handle->MouseClicked_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> MouseDoubleClicked - - { - get - { - return new Span<bool>(&Handle->MouseDoubleClicked_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ushort> MouseClickedCount - - { - get - { - return new Span<ushort>(&Handle->MouseClickedCount_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ushort> MouseClickedLastCount - - { - get - { - return new Span<ushort>(&Handle->MouseClickedLastCount_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> MouseReleased - - { - get - { - return new Span<bool>(&Handle->MouseReleased_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> MouseDownOwned - - { - get - { - return new Span<bool>(&Handle->MouseDownOwned_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> MouseDownOwnedUnlessPopupClose - - { - get - { - return new Span<bool>(&Handle->MouseDownOwnedUnlessPopupClose_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> MouseDownDuration - - { - get - { - return new Span<float>(&Handle->MouseDownDuration_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> MouseDownDurationPrev - - { - get - { - return new Span<float>(&Handle->MouseDownDurationPrev_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector2> MouseDragMaxDistanceAbs - - { - get - { - return new Span<Vector2>(&Handle->MouseDragMaxDistanceAbs_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> MouseDragMaxDistanceSqr - - { - get - { - return new Span<float>(&Handle->MouseDragMaxDistanceSqr_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> NavInputsDownDuration - - { - get - { - return new Span<float>(&Handle->NavInputsDownDuration_0, 21); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> NavInputsDownDurationPrev - - { - get - { - return new Span<float>(&Handle->NavInputsDownDurationPrev_0, 21); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref float PenPressure => ref Unsafe.AsRef<float>(&Handle->PenPressure); - /// <summary> - /// To be documented. - /// </summary> - public ref bool AppFocusLost => ref Unsafe.AsRef<bool>(&Handle->AppFocusLost); - /// <summary> - /// To be documented. - /// </summary> - public ref bool AppAcceptingEvents => ref Unsafe.AsRef<bool>(&Handle->AppAcceptingEvents); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte BackendUsingLegacyKeyArrays => ref Unsafe.AsRef<sbyte>(&Handle->BackendUsingLegacyKeyArrays); - /// <summary> - /// To be documented. - /// </summary> - public ref bool BackendUsingLegacyNavInputArray => ref Unsafe.AsRef<bool>(&Handle->BackendUsingLegacyNavInputArray); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort InputQueueSurrogate => ref Unsafe.AsRef<ushort>(&Handle->InputQueueSurrogate); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ushort> InputQueueCharacters => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->InputQueueCharacters); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddFocusEvent(bool focused) - { - ImGui.AddFocusEventNative(Handle, focused ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharacter(uint c) - { - ImGui.AddInputCharacterNative(Handle, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(byte* str) - { - ImGui.AddInputCharactersUTF8Native(Handle, str); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(ref byte str) - { - fixed (byte* pstr = &str) - { - ImGui.AddInputCharactersUTF8Native(Handle, (byte*)pstr); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - ImGui.AddInputCharactersUTF8Native(Handle, (byte*)pstr); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharactersUTF8(string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.AddInputCharactersUTF8Native(Handle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddInputCharacterUTF16(ushort c) - { - ImGui.AddInputCharacterUTF16Native(Handle, c); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddKeyAnalogEvent(ImGuiKey key, bool down, float v) - { - ImGui.AddKeyAnalogEventNative(Handle, key, down ? (byte)1 : (byte)0, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddKeyEvent(ImGuiKey key, bool down) - { - ImGui.AddKeyEventNative(Handle, key, down ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMouseButtonEvent(int button, bool down) - { - ImGui.AddMouseButtonEventNative(Handle, button, down ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMousePosEvent(float x, float y) - { - ImGui.AddMousePosEventNative(Handle, x, y); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMouseViewportEvent(uint id) - { - ImGui.AddMouseViewportEventNative(Handle, id); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AddMouseWheelEvent(float whX, float whY) - { - ImGui.AddMouseWheelEventNative(Handle, whX, whY); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearInputCharacters() - { - ImGui.ClearInputCharactersNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearInputKeys() - { - ImGui.ClearInputKeysNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAppAcceptingEvents(bool acceptingEvents) - { - ImGui.SetAppAcceptingEventsNative(Handle, acceptingEvents ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) - { - ImGui.SetKeyEventNativeDataNative(Handle, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetKeyEventNativeData(ImGuiKey key, int nativeKeycode, int nativeScancode) - { - ImGui.SetKeyEventNativeDataNative(Handle, key, nativeKeycode, nativeScancode, (int)(-1)); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEvent.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEvent.cs deleted file mode 100644 index 900c2a136..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEvent.cs +++ /dev/null @@ -1,204 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEvent - { - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Explicit)] - public partial struct ImGuiInputEventUnion - { - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public ImGuiInputEventMousePos MousePos; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public ImGuiInputEventMouseWheel MouseWheel; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public ImGuiInputEventMouseButton MouseButton; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public ImGuiInputEventMouseViewport MouseViewport; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public ImGuiInputEventKey Key; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public ImGuiInputEventText Text; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public ImGuiInputEventAppFocused AppFocused; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventUnion(ImGuiInputEventMousePos mousePos = default, ImGuiInputEventMouseWheel mouseWheel = default, ImGuiInputEventMouseButton mouseButton = default, ImGuiInputEventMouseViewport mouseViewport = default, ImGuiInputEventKey key = default, ImGuiInputEventText text = default, ImGuiInputEventAppFocused appFocused = default) - { - MousePos = mousePos; - MouseWheel = mouseWheel; - MouseButton = mouseButton; - MouseViewport = mouseViewport; - Key = key; - Text = text; - AppFocused = appFocused; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputEventType Type; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputSource Source; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputEventUnion Union; - - /// <summary> - /// To be documented. - /// </summary> - public byte AddedByTestEngine; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEvent(ImGuiInputEventType type = default, ImGuiInputSource source = default, ImGuiInputEventUnion union = default, bool addedByTestEngine = default) - { - Type = type; - Source = source; - Union = union; - AddedByTestEngine = addedByTestEngine ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiInputEvent* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiInputEventPtr : IEquatable<ImGuiInputEventPtr> - { - public ImGuiInputEventPtr(ImGuiInputEvent* handle) { Handle = handle; } - - public ImGuiInputEvent* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiInputEventPtr Null => new ImGuiInputEventPtr(null); - - public ImGuiInputEvent this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiInputEventPtr(ImGuiInputEvent* handle) => new ImGuiInputEventPtr(handle); - - public static implicit operator ImGuiInputEvent*(ImGuiInputEventPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEventPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle == right; - - public static bool operator !=(ImGuiInputEventPtr left, ImGuiInputEvent* right) => left.Handle != right; - - public bool Equals(ImGuiInputEventPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiInputEventPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiInputEventPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputEventType Type => ref Unsafe.AsRef<ImGuiInputEventType>(&Handle->Type); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputSource Source => ref Unsafe.AsRef<ImGuiInputSource>(&Handle->Source); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputEvent.ImGuiInputEventUnion Union => ref Unsafe.AsRef<ImGuiInputEvent.ImGuiInputEventUnion>(&Handle->Union); - /// <summary> - /// To be documented. - /// </summary> - public ref bool AddedByTestEngine => ref Unsafe.AsRef<bool>(&Handle->AddedByTestEngine); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventAppFocused.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventAppFocused.cs deleted file mode 100644 index 524a5c1d2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventAppFocused.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventAppFocused - { - /// <summary> - /// To be documented. - /// </summary> - public byte Focused; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventAppFocused(bool focused = default) - { - Focused = focused ? (byte)1 : (byte)0; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventKey.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventKey.cs deleted file mode 100644 index f1ac87a2b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventKey.cs +++ /dev/null @@ -1,54 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventKey - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiKey Key; - - /// <summary> - /// To be documented. - /// </summary> - public byte Down; - - /// <summary> - /// To be documented. - /// </summary> - public float AnalogValue; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventKey(ImGuiKey key = default, bool down = default, float analogValue = default) - { - Key = key; - Down = down ? (byte)1 : (byte)0; - AnalogValue = analogValue; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseButton.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseButton.cs deleted file mode 100644 index 6ef7723fa..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseButton.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMouseButton - { - /// <summary> - /// To be documented. - /// </summary> - public int Button; - - /// <summary> - /// To be documented. - /// </summary> - public byte Down; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventMouseButton(int button = default, bool down = default) - { - Button = button; - Down = down ? (byte)1 : (byte)0; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs deleted file mode 100644 index e0a243474..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMousePos.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMousePos - { - /// <summary> - /// To be documented. - /// </summary> - public float PosX; - - /// <summary> - /// To be documented. - /// </summary> - public float PosY; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventMousePos(float posX = default, float posY = default) - { - PosX = posX; - PosY = posY; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseViewport.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseViewport.cs deleted file mode 100644 index f76363e8f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseViewport.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMouseViewport - { - /// <summary> - /// To be documented. - /// </summary> - public uint HoveredViewportID; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventMouseViewport(uint hoveredViewportId = default) - { - HoveredViewportID = hoveredViewportId; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseWheel.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseWheel.cs deleted file mode 100644 index d5c6e5822..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventMouseWheel.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventMouseWheel - { - /// <summary> - /// To be documented. - /// </summary> - public float WheelX; - - /// <summary> - /// To be documented. - /// </summary> - public float WheelY; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventMouseWheel(float wheelX = default, float wheelY = default) - { - WheelX = wheelX; - WheelY = wheelY; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventText.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventText.cs deleted file mode 100644 index 2d794d71e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputEventText.cs +++ /dev/null @@ -1,42 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputEventText - { - /// <summary> - /// To be documented. - /// </summary> - public uint Char; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputEventText(uint @char = default) - { - Char = @char; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs deleted file mode 100644 index 74b16adf8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextCallbackData.cs +++ /dev/null @@ -1,1162 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputTextCallbackData - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputTextFlags EventFlag; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputTextFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserData; - - /// <summary> - /// To be documented. - /// </summary> - public ushort EventChar; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiKey EventKey; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* Buf; - - /// <summary> - /// To be documented. - /// </summary> - public int BufTextLen; - - /// <summary> - /// To be documented. - /// </summary> - public int BufSize; - - /// <summary> - /// To be documented. - /// </summary> - public byte BufDirty; - - /// <summary> - /// To be documented. - /// </summary> - public int CursorPos; - - /// <summary> - /// To be documented. - /// </summary> - public int SelectionStart; - - /// <summary> - /// To be documented. - /// </summary> - public int SelectionEnd; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputTextCallbackData(ImGuiInputTextFlags eventFlag = default, ImGuiInputTextFlags flags = default, void* userData = default, ushort eventChar = default, ImGuiKey eventKey = default, byte* buf = default, int bufTextLen = default, int bufSize = default, bool bufDirty = default, int cursorPos = default, int selectionStart = default, int selectionEnd = default) - { - EventFlag = eventFlag; - Flags = flags; - UserData = userData; - EventChar = eventChar; - EventKey = eventKey; - Buf = buf; - BufTextLen = bufTextLen; - BufSize = bufSize; - BufDirty = bufDirty ? (byte)1 : (byte)0; - CursorPos = cursorPos; - SelectionStart = selectionStart; - SelectionEnd = selectionEnd; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearSelection() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGui.ClearSelectionNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void DeleteChars(int pos, int bytesCount) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGui.DeleteCharsNative(@this, pos, bytesCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasSelection() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte ret = ImGui.HasSelectionNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGui.InsertCharsNative(@this, pos, text, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGui.InsertCharsNative(@this, pos, text, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = &text) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = &text) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = text) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = text) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(@this, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(@this, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(@this, pos, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(@this, pos, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(@this, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.InsertCharsNative(@this, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, string textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(@this, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(@this, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(@this, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SelectAll() - { - fixed (ImGuiInputTextCallbackData* @this = &this) - { - ImGui.SelectAllNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiInputTextCallbackDataPtr : IEquatable<ImGuiInputTextCallbackDataPtr> - { - public ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) { Handle = handle; } - - public ImGuiInputTextCallbackData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiInputTextCallbackDataPtr Null => new ImGuiInputTextCallbackDataPtr(null); - - public ImGuiInputTextCallbackData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* handle) => new ImGuiInputTextCallbackDataPtr(handle); - - public static implicit operator ImGuiInputTextCallbackData*(ImGuiInputTextCallbackDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle == right; - - public static bool operator !=(ImGuiInputTextCallbackDataPtr left, ImGuiInputTextCallbackData* right) => left.Handle != right; - - public bool Equals(ImGuiInputTextCallbackDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiInputTextCallbackDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiInputTextCallbackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputTextFlags EventFlag => ref Unsafe.AsRef<ImGuiInputTextFlags>(&Handle->EventFlag); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef<ImGuiInputTextFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref ushort EventChar => ref Unsafe.AsRef<ushort>(&Handle->EventChar); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiKey EventKey => ref Unsafe.AsRef<ImGuiKey>(&Handle->EventKey); - /// <summary> - /// To be documented. - /// </summary> - public byte* Buf { get => Handle->Buf; set => Handle->Buf = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref int BufTextLen => ref Unsafe.AsRef<int>(&Handle->BufTextLen); - /// <summary> - /// To be documented. - /// </summary> - public ref int BufSize => ref Unsafe.AsRef<int>(&Handle->BufSize); - /// <summary> - /// To be documented. - /// </summary> - public ref bool BufDirty => ref Unsafe.AsRef<bool>(&Handle->BufDirty); - /// <summary> - /// To be documented. - /// </summary> - public ref int CursorPos => ref Unsafe.AsRef<int>(&Handle->CursorPos); - /// <summary> - /// To be documented. - /// </summary> - public ref int SelectionStart => ref Unsafe.AsRef<int>(&Handle->SelectionStart); - /// <summary> - /// To be documented. - /// </summary> - public ref int SelectionEnd => ref Unsafe.AsRef<int>(&Handle->SelectionEnd); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearSelection() - { - ImGui.ClearSelectionNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void DeleteChars(int pos, int bytesCount) - { - ImGui.DeleteCharsNative(Handle, pos, bytesCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasSelection() - { - byte ret = ImGui.HasSelectionNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, byte* textEnd) - { - ImGui.InsertCharsNative(Handle, pos, text, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text) - { - ImGui.InsertCharsNative(Handle, pos, text, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text) - { - fixed (byte* ptext = &text) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(Handle, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(Handle, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(Handle, pos, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(Handle, pos, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(Handle, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.InsertCharsNative(Handle, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.InsertCharsNative(Handle, pos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - ImGui.InsertCharsNative(Handle, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void InsertChars(int pos, string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - ImGui.InsertCharsNative(Handle, pos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SelectAll() - { - ImGui.SelectAllNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs deleted file mode 100644 index 16900a641..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiInputTextState.cs +++ /dev/null @@ -1,248 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiInputTextState - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public int CurLenW; - - /// <summary> - /// To be documented. - /// </summary> - public int CurLenA; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ushort> TextW; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> TextA; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> InitialTextA; - - /// <summary> - /// To be documented. - /// </summary> - public byte TextAIsValid; - - /// <summary> - /// To be documented. - /// </summary> - public int BufCapacityA; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollX; - - /// <summary> - /// To be documented. - /// </summary> - public STBTexteditState Stb; - - /// <summary> - /// To be documented. - /// </summary> - public float CursorAnim; - - /// <summary> - /// To be documented. - /// </summary> - public byte CursorFollow; - - /// <summary> - /// To be documented. - /// </summary> - public byte SelectedAllMouseLock; - - /// <summary> - /// To be documented. - /// </summary> - public byte Edited; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiInputTextFlags Flags; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiInputTextState(uint id = default, int curLenW = default, int curLenA = default, ImVector<ushort> textW = default, ImVector<byte> textA = default, ImVector<byte> initialTextA = default, bool textAIsValid = default, int bufCapacityA = default, float scrollX = default, STBTexteditState stb = default, float cursorAnim = default, bool cursorFollow = default, bool selectedAllMouseLock = default, bool edited = default, ImGuiInputTextFlags flags = default) - { - ID = id; - CurLenW = curLenW; - CurLenA = curLenA; - TextW = textW; - TextA = textA; - InitialTextA = initialTextA; - TextAIsValid = textAIsValid ? (byte)1 : (byte)0; - BufCapacityA = bufCapacityA; - ScrollX = scrollX; - Stb = stb; - CursorAnim = cursorAnim; - CursorFollow = cursorFollow ? (byte)1 : (byte)0; - SelectedAllMouseLock = selectedAllMouseLock ? (byte)1 : (byte)0; - Edited = edited ? (byte)1 : (byte)0; - Flags = flags; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiInputTextStatePtr : IEquatable<ImGuiInputTextStatePtr> - { - public ImGuiInputTextStatePtr(ImGuiInputTextState* handle) { Handle = handle; } - - public ImGuiInputTextState* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiInputTextStatePtr Null => new ImGuiInputTextStatePtr(null); - - public ImGuiInputTextState this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiInputTextStatePtr(ImGuiInputTextState* handle) => new ImGuiInputTextStatePtr(handle); - - public static implicit operator ImGuiInputTextState*(ImGuiInputTextStatePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextStatePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle == right; - - public static bool operator !=(ImGuiInputTextStatePtr left, ImGuiInputTextState* right) => left.Handle != right; - - public bool Equals(ImGuiInputTextStatePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiInputTextStatePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiInputTextStatePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref int CurLenW => ref Unsafe.AsRef<int>(&Handle->CurLenW); - /// <summary> - /// To be documented. - /// </summary> - public ref int CurLenA => ref Unsafe.AsRef<int>(&Handle->CurLenA); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ushort> TextW => ref Unsafe.AsRef<ImVector<ushort>>(&Handle->TextW); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<byte> TextA => ref Unsafe.AsRef<ImVector<byte>>(&Handle->TextA); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<byte> InitialTextA => ref Unsafe.AsRef<ImVector<byte>>(&Handle->InitialTextA); - /// <summary> - /// To be documented. - /// </summary> - public ref bool TextAIsValid => ref Unsafe.AsRef<bool>(&Handle->TextAIsValid); - /// <summary> - /// To be documented. - /// </summary> - public ref int BufCapacityA => ref Unsafe.AsRef<int>(&Handle->BufCapacityA); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollX => ref Unsafe.AsRef<float>(&Handle->ScrollX); - /// <summary> - /// To be documented. - /// </summary> - public ref STBTexteditState Stb => ref Unsafe.AsRef<STBTexteditState>(&Handle->Stb); - /// <summary> - /// To be documented. - /// </summary> - public ref float CursorAnim => ref Unsafe.AsRef<float>(&Handle->CursorAnim); - /// <summary> - /// To be documented. - /// </summary> - public ref bool CursorFollow => ref Unsafe.AsRef<bool>(&Handle->CursorFollow); - /// <summary> - /// To be documented. - /// </summary> - public ref bool SelectedAllMouseLock => ref Unsafe.AsRef<bool>(&Handle->SelectedAllMouseLock); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Edited => ref Unsafe.AsRef<bool>(&Handle->Edited); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef<ImGuiInputTextFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs deleted file mode 100644 index e59b3e65a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiKeyData.cs +++ /dev/null @@ -1,119 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiKeyData - { - /// <summary> - /// To be documented. - /// </summary> - public byte Down; - - /// <summary> - /// To be documented. - /// </summary> - public float DownDuration; - - /// <summary> - /// To be documented. - /// </summary> - public float DownDurationPrev; - - /// <summary> - /// To be documented. - /// </summary> - public float AnalogValue; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiKeyData(bool down = default, float downDuration = default, float downDurationPrev = default, float analogValue = default) - { - Down = down ? (byte)1 : (byte)0; - DownDuration = downDuration; - DownDurationPrev = downDurationPrev; - AnalogValue = analogValue; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiKeyDataPtr : IEquatable<ImGuiKeyDataPtr> - { - public ImGuiKeyDataPtr(ImGuiKeyData* handle) { Handle = handle; } - - public ImGuiKeyData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiKeyDataPtr Null => new ImGuiKeyDataPtr(null); - - public ImGuiKeyData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiKeyDataPtr(ImGuiKeyData* handle) => new ImGuiKeyDataPtr(handle); - - public static implicit operator ImGuiKeyData*(ImGuiKeyDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle == right; - - public static bool operator !=(ImGuiKeyDataPtr left, ImGuiKeyData* right) => left.Handle != right; - - public bool Equals(ImGuiKeyDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiKeyDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiKeyDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref bool Down => ref Unsafe.AsRef<bool>(&Handle->Down); - /// <summary> - /// To be documented. - /// </summary> - public ref float DownDuration => ref Unsafe.AsRef<float>(&Handle->DownDuration); - /// <summary> - /// To be documented. - /// </summary> - public ref float DownDurationPrev => ref Unsafe.AsRef<float>(&Handle->DownDurationPrev); - /// <summary> - /// To be documented. - /// </summary> - public ref float AnalogValue => ref Unsafe.AsRef<float>(&Handle->AnalogValue); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs deleted file mode 100644 index 489b207e0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiLastItemData.cs +++ /dev/null @@ -1,158 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiLastItemData - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiItemFlags InFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiItemStatusFlags StatusFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect Rect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect NavRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect DisplayRect; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiLastItemData(uint id = default, ImGuiItemFlags inFlags = default, ImGuiItemStatusFlags statusFlags = default, ImRect rect = default, ImRect navRect = default, ImRect displayRect = default) - { - ID = id; - InFlags = inFlags; - StatusFlags = statusFlags; - Rect = rect; - NavRect = navRect; - DisplayRect = displayRect; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiLastItemData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiLastItemDataPtr : IEquatable<ImGuiLastItemDataPtr> - { - public ImGuiLastItemDataPtr(ImGuiLastItemData* handle) { Handle = handle; } - - public ImGuiLastItemData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiLastItemDataPtr Null => new ImGuiLastItemDataPtr(null); - - public ImGuiLastItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiLastItemDataPtr(ImGuiLastItemData* handle) => new ImGuiLastItemDataPtr(handle); - - public static implicit operator ImGuiLastItemData*(ImGuiLastItemDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle == right; - - public static bool operator !=(ImGuiLastItemDataPtr left, ImGuiLastItemData* right) => left.Handle != right; - - public bool Equals(ImGuiLastItemDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiLastItemDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiLastItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef<ImGuiItemFlags>(&Handle->InFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiItemStatusFlags StatusFlags => ref Unsafe.AsRef<ImGuiItemStatusFlags>(&Handle->StatusFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect Rect => ref Unsafe.AsRef<ImRect>(&Handle->Rect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect NavRect => ref Unsafe.AsRef<ImRect>(&Handle->NavRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect DisplayRect => ref Unsafe.AsRef<ImRect>(&Handle->DisplayRect); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs deleted file mode 100644 index 4e732c6e6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipper.cs +++ /dev/null @@ -1,255 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiListClipper - { - /// <summary> - /// To be documented. - /// </summary> - public int DisplayStart; - - /// <summary> - /// To be documented. - /// </summary> - public int DisplayEnd; - - /// <summary> - /// To be documented. - /// </summary> - public int ItemsCount; - - /// <summary> - /// To be documented. - /// </summary> - public float ItemsHeight; - - /// <summary> - /// To be documented. - /// </summary> - public float StartPosY; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* TempData; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiListClipper(int displayStart = default, int displayEnd = default, int itemsCount = default, float itemsHeight = default, float startPosY = default, void* tempData = default) - { - DisplayStart = displayStart; - DisplayEnd = displayEnd; - ItemsCount = itemsCount; - ItemsHeight = itemsHeight; - StartPosY = startPosY; - TempData = tempData; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Begin(int itemsCount, float itemsHeight) - { - fixed (ImGuiListClipper* @this = &this) - { - ImGui.BeginNative(@this, itemsCount, itemsHeight); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Begin(int itemsCount) - { - fixed (ImGuiListClipper* @this = &this) - { - ImGui.BeginNative(@this, itemsCount, (float)(-1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiListClipper* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void End() - { - fixed (ImGuiListClipper* @this = &this) - { - ImGui.EndNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) - { - fixed (ImGuiListClipper* @this = &this) - { - ImGui.ForceDisplayRangeByIndicesNative(@this, itemMin, itemMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Step() - { - fixed (ImGuiListClipper* @this = &this) - { - byte ret = ImGui.StepNative(@this); - return ret != 0; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiListClipperPtr : IEquatable<ImGuiListClipperPtr> - { - public ImGuiListClipperPtr(ImGuiListClipper* handle) { Handle = handle; } - - public ImGuiListClipper* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiListClipperPtr Null => new ImGuiListClipperPtr(null); - - public ImGuiListClipper this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiListClipperPtr(ImGuiListClipper* handle) => new ImGuiListClipperPtr(handle); - - public static implicit operator ImGuiListClipper*(ImGuiListClipperPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipperPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle == right; - - public static bool operator !=(ImGuiListClipperPtr left, ImGuiListClipper* right) => left.Handle != right; - - public bool Equals(ImGuiListClipperPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiListClipperPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiListClipperPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref int DisplayStart => ref Unsafe.AsRef<int>(&Handle->DisplayStart); - /// <summary> - /// To be documented. - /// </summary> - public ref int DisplayEnd => ref Unsafe.AsRef<int>(&Handle->DisplayEnd); - /// <summary> - /// To be documented. - /// </summary> - public ref int ItemsCount => ref Unsafe.AsRef<int>(&Handle->ItemsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref float ItemsHeight => ref Unsafe.AsRef<float>(&Handle->ItemsHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float StartPosY => ref Unsafe.AsRef<float>(&Handle->StartPosY); - /// <summary> - /// To be documented. - /// </summary> - public void* TempData { get => Handle->TempData; set => Handle->TempData = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Begin(int itemsCount, float itemsHeight) - { - ImGui.BeginNative(Handle, itemsCount, itemsHeight); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Begin(int itemsCount) - { - ImGui.BeginNative(Handle, itemsCount, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void End() - { - ImGui.EndNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ForceDisplayRangeByIndices(int itemMin, int itemMax) - { - ImGui.ForceDisplayRangeByIndicesNative(Handle, itemMin, itemMax); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Step() - { - byte ret = ImGui.StepNative(Handle); - return ret != 0; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs deleted file mode 100644 index f30c4c4c0..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperData.cs +++ /dev/null @@ -1,148 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiListClipperData - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiListClipper* ListClipper; - - /// <summary> - /// To be documented. - /// </summary> - public float LossynessOffset; - - /// <summary> - /// To be documented. - /// </summary> - public int StepNo; - - /// <summary> - /// To be documented. - /// </summary> - public int ItemsFrozen; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiListClipperRange> Ranges; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiListClipperData(ImGuiListClipper* listClipper = default, float lossynessOffset = default, int stepNo = default, int itemsFrozen = default, ImVector<ImGuiListClipperRange> ranges = default) - { - ListClipper = listClipper; - LossynessOffset = lossynessOffset; - StepNo = stepNo; - ItemsFrozen = itemsFrozen; - Ranges = ranges; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiListClipperData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiListClipperDataPtr : IEquatable<ImGuiListClipperDataPtr> - { - public ImGuiListClipperDataPtr(ImGuiListClipperData* handle) { Handle = handle; } - - public ImGuiListClipperData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiListClipperDataPtr Null => new ImGuiListClipperDataPtr(null); - - public ImGuiListClipperData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiListClipperDataPtr(ImGuiListClipperData* handle) => new ImGuiListClipperDataPtr(handle); - - public static implicit operator ImGuiListClipperData*(ImGuiListClipperDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle == right; - - public static bool operator !=(ImGuiListClipperDataPtr left, ImGuiListClipperData* right) => left.Handle != right; - - public bool Equals(ImGuiListClipperDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiListClipperDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiListClipperDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiListClipperPtr ListClipper => ref Unsafe.AsRef<ImGuiListClipperPtr>(&Handle->ListClipper); - /// <summary> - /// To be documented. - /// </summary> - public ref float LossynessOffset => ref Unsafe.AsRef<float>(&Handle->LossynessOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref int StepNo => ref Unsafe.AsRef<int>(&Handle->StepNo); - /// <summary> - /// To be documented. - /// </summary> - public ref int ItemsFrozen => ref Unsafe.AsRef<int>(&Handle->ItemsFrozen); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiListClipperRange> Ranges => ref Unsafe.AsRef<ImVector<ImGuiListClipperRange>>(&Handle->Ranges); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs deleted file mode 100644 index aeccdf4de..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiListClipperRange.cs +++ /dev/null @@ -1,129 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiListClipperRange - { - /// <summary> - /// To be documented. - /// </summary> - public int Min; - - /// <summary> - /// To be documented. - /// </summary> - public int Max; - - /// <summary> - /// To be documented. - /// </summary> - public byte PosToIndexConvert; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte PosToIndexOffsetMin; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte PosToIndexOffsetMax; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, sbyte posToIndexOffsetMin = default, sbyte posToIndexOffsetMax = default) - { - Min = min; - Max = max; - PosToIndexConvert = posToIndexConvert ? (byte)1 : (byte)0; - PosToIndexOffsetMin = posToIndexOffsetMin; - PosToIndexOffsetMax = posToIndexOffsetMax; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiListClipperRangePtr : IEquatable<ImGuiListClipperRangePtr> - { - public ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) { Handle = handle; } - - public ImGuiListClipperRange* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiListClipperRangePtr Null => new ImGuiListClipperRangePtr(null); - - public ImGuiListClipperRange this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiListClipperRangePtr(ImGuiListClipperRange* handle) => new ImGuiListClipperRangePtr(handle); - - public static implicit operator ImGuiListClipperRange*(ImGuiListClipperRangePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRangePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle == right; - - public static bool operator !=(ImGuiListClipperRangePtr left, ImGuiListClipperRange* right) => left.Handle != right; - - public bool Equals(ImGuiListClipperRangePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiListClipperRangePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiListClipperRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref int Min => ref Unsafe.AsRef<int>(&Handle->Min); - /// <summary> - /// To be documented. - /// </summary> - public ref int Max => ref Unsafe.AsRef<int>(&Handle->Max); - /// <summary> - /// To be documented. - /// </summary> - public ref bool PosToIndexConvert => ref Unsafe.AsRef<bool>(&Handle->PosToIndexConvert); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte PosToIndexOffsetMin => ref Unsafe.AsRef<sbyte>(&Handle->PosToIndexOffsetMin); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte PosToIndexOffsetMax => ref Unsafe.AsRef<sbyte>(&Handle->PosToIndexOffsetMax); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs deleted file mode 100644 index c1d528633..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMenuColumns.cs +++ /dev/null @@ -1,215 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiMenuColumns - { - /// <summary> - /// To be documented. - /// </summary> - public uint TotalWidth; - - /// <summary> - /// To be documented. - /// </summary> - public uint NextTotalWidth; - - /// <summary> - /// To be documented. - /// </summary> - public ushort Spacing; - - /// <summary> - /// To be documented. - /// </summary> - public ushort OffsetIcon; - - /// <summary> - /// To be documented. - /// </summary> - public ushort OffsetLabel; - - /// <summary> - /// To be documented. - /// </summary> - public ushort OffsetShortcut; - - /// <summary> - /// To be documented. - /// </summary> - public ushort OffsetMark; - - /// <summary> - /// To be documented. - /// </summary> - public ushort Widths_0; - public ushort Widths_1; - public ushort Widths_2; - public ushort Widths_3; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, ushort* widths = default) - { - TotalWidth = totalWidth; - NextTotalWidth = nextTotalWidth; - Spacing = spacing; - OffsetIcon = offsetIcon; - OffsetLabel = offsetLabel; - OffsetShortcut = offsetShortcut; - OffsetMark = offsetMark; - if (widths != default(ushort*)) - { - Widths_0 = widths[0]; - Widths_1 = widths[1]; - Widths_2 = widths[2]; - Widths_3 = widths[3]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, Span<ushort> widths = default) - { - TotalWidth = totalWidth; - NextTotalWidth = nextTotalWidth; - Spacing = spacing; - OffsetIcon = offsetIcon; - OffsetLabel = offsetLabel; - OffsetShortcut = offsetShortcut; - OffsetMark = offsetMark; - if (widths != default(Span<ushort>)) - { - Widths_0 = widths[0]; - Widths_1 = widths[1]; - Widths_2 = widths[2]; - Widths_3 = widths[3]; - } - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiMenuColumns* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiMenuColumnsPtr : IEquatable<ImGuiMenuColumnsPtr> - { - public ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) { Handle = handle; } - - public ImGuiMenuColumns* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiMenuColumnsPtr Null => new ImGuiMenuColumnsPtr(null); - - public ImGuiMenuColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiMenuColumnsPtr(ImGuiMenuColumns* handle) => new ImGuiMenuColumnsPtr(handle); - - public static implicit operator ImGuiMenuColumns*(ImGuiMenuColumnsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumnsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle == right; - - public static bool operator !=(ImGuiMenuColumnsPtr left, ImGuiMenuColumns* right) => left.Handle != right; - - public bool Equals(ImGuiMenuColumnsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiMenuColumnsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiMenuColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint TotalWidth => ref Unsafe.AsRef<uint>(&Handle->TotalWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NextTotalWidth => ref Unsafe.AsRef<uint>(&Handle->NextTotalWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort Spacing => ref Unsafe.AsRef<ushort>(&Handle->Spacing); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort OffsetIcon => ref Unsafe.AsRef<ushort>(&Handle->OffsetIcon); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort OffsetLabel => ref Unsafe.AsRef<ushort>(&Handle->OffsetLabel); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort OffsetShortcut => ref Unsafe.AsRef<ushort>(&Handle->OffsetShortcut); - /// <summary> - /// To be documented. - /// </summary> - public ref ushort OffsetMark => ref Unsafe.AsRef<ushort>(&Handle->OffsetMark); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ushort> Widths - - { - get - { - return new Span<ushort>(&Handle->Widths_0, 4); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMetricsConfig.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMetricsConfig.cs deleted file mode 100644 index 85dcf7be1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiMetricsConfig.cs +++ /dev/null @@ -1,198 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiMetricsConfig - { - /// <summary> - /// To be documented. - /// </summary> - public byte ShowDebugLog; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowStackTool; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowWindowsRects; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowWindowsBeginOrder; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowTablesRects; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowDrawCmdMesh; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowDrawCmdBoundingBoxes; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowDockingNodes; - - /// <summary> - /// To be documented. - /// </summary> - public int ShowWindowsRectsType; - - /// <summary> - /// To be documented. - /// </summary> - public int ShowTablesRectsType; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiMetricsConfig(bool showDebugLog = default, bool showStackTool = default, bool showWindowsRects = default, bool showWindowsBeginOrder = default, bool showTablesRects = default, bool showDrawCmdMesh = default, bool showDrawCmdBoundingBoxes = default, bool showDockingNodes = default, int showWindowsRectsType = default, int showTablesRectsType = default) - { - ShowDebugLog = showDebugLog ? (byte)1 : (byte)0; - ShowStackTool = showStackTool ? (byte)1 : (byte)0; - ShowWindowsRects = showWindowsRects ? (byte)1 : (byte)0; - ShowWindowsBeginOrder = showWindowsBeginOrder ? (byte)1 : (byte)0; - ShowTablesRects = showTablesRects ? (byte)1 : (byte)0; - ShowDrawCmdMesh = showDrawCmdMesh ? (byte)1 : (byte)0; - ShowDrawCmdBoundingBoxes = showDrawCmdBoundingBoxes ? (byte)1 : (byte)0; - ShowDockingNodes = showDockingNodes ? (byte)1 : (byte)0; - ShowWindowsRectsType = showWindowsRectsType; - ShowTablesRectsType = showTablesRectsType; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiMetricsConfig* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiMetricsConfigPtr : IEquatable<ImGuiMetricsConfigPtr> - { - public ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) { Handle = handle; } - - public ImGuiMetricsConfig* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiMetricsConfigPtr Null => new ImGuiMetricsConfigPtr(null); - - public ImGuiMetricsConfig this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiMetricsConfigPtr(ImGuiMetricsConfig* handle) => new ImGuiMetricsConfigPtr(handle); - - public static implicit operator ImGuiMetricsConfig*(ImGuiMetricsConfigPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfigPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle == right; - - public static bool operator !=(ImGuiMetricsConfigPtr left, ImGuiMetricsConfig* right) => left.Handle != right; - - public bool Equals(ImGuiMetricsConfigPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiMetricsConfigPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiMetricsConfigPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowDebugLog => ref Unsafe.AsRef<bool>(&Handle->ShowDebugLog); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowStackTool => ref Unsafe.AsRef<bool>(&Handle->ShowStackTool); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowWindowsRects => ref Unsafe.AsRef<bool>(&Handle->ShowWindowsRects); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowWindowsBeginOrder => ref Unsafe.AsRef<bool>(&Handle->ShowWindowsBeginOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowTablesRects => ref Unsafe.AsRef<bool>(&Handle->ShowTablesRects); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowDrawCmdMesh => ref Unsafe.AsRef<bool>(&Handle->ShowDrawCmdMesh); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowDrawCmdBoundingBoxes => ref Unsafe.AsRef<bool>(&Handle->ShowDrawCmdBoundingBoxes); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowDockingNodes => ref Unsafe.AsRef<bool>(&Handle->ShowDockingNodes); - /// <summary> - /// To be documented. - /// </summary> - public ref int ShowWindowsRectsType => ref Unsafe.AsRef<int>(&Handle->ShowWindowsRectsType); - /// <summary> - /// To be documented. - /// </summary> - public ref int ShowTablesRectsType => ref Unsafe.AsRef<int>(&Handle->ShowTablesRectsType); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs deleted file mode 100644 index 4c272cfaa..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNavItemData.cs +++ /dev/null @@ -1,178 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiNavItemData - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* Window; - - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public uint FocusScopeId; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect RectRel; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiItemFlags InFlags; - - /// <summary> - /// To be documented. - /// </summary> - public float DistBox; - - /// <summary> - /// To be documented. - /// </summary> - public float DistCenter; - - /// <summary> - /// To be documented. - /// </summary> - public float DistAxial; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiNavItemData(ImGuiWindowPtr window = default, uint id = default, uint focusScopeId = default, ImRect rectRel = default, ImGuiItemFlags inFlags = default, float distBox = default, float distCenter = default, float distAxial = default) - { - Window = window; - ID = id; - FocusScopeId = focusScopeId; - RectRel = rectRel; - InFlags = inFlags; - DistBox = distBox; - DistCenter = distCenter; - DistAxial = distAxial; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiNavItemData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiNavItemDataPtr : IEquatable<ImGuiNavItemDataPtr> - { - public ImGuiNavItemDataPtr(ImGuiNavItemData* handle) { Handle = handle; } - - public ImGuiNavItemData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiNavItemDataPtr Null => new ImGuiNavItemDataPtr(null); - - public ImGuiNavItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiNavItemDataPtr(ImGuiNavItemData* handle) => new ImGuiNavItemDataPtr(handle); - - public static implicit operator ImGuiNavItemData*(ImGuiNavItemDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle == right; - - public static bool operator !=(ImGuiNavItemDataPtr left, ImGuiNavItemData* right) => left.Handle != right; - - public bool Equals(ImGuiNavItemDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiNavItemDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiNavItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref uint FocusScopeId => ref Unsafe.AsRef<uint>(&Handle->FocusScopeId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect RectRel => ref Unsafe.AsRef<ImRect>(&Handle->RectRel); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiItemFlags InFlags => ref Unsafe.AsRef<ImGuiItemFlags>(&Handle->InFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref float DistBox => ref Unsafe.AsRef<float>(&Handle->DistBox); - /// <summary> - /// To be documented. - /// </summary> - public ref float DistCenter => ref Unsafe.AsRef<float>(&Handle->DistCenter); - /// <summary> - /// To be documented. - /// </summary> - public ref float DistAxial => ref Unsafe.AsRef<float>(&Handle->DistAxial); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextItemData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextItemData.cs deleted file mode 100644 index 75938ddd5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextItemData.cs +++ /dev/null @@ -1,148 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiNextItemData - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNextItemDataFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public float Width; - - /// <summary> - /// To be documented. - /// </summary> - public uint FocusScopeId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond OpenCond; - - /// <summary> - /// To be documented. - /// </summary> - public byte OpenVal; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiNextItemData(ImGuiNextItemDataFlags flags = default, float width = default, uint focusScopeId = default, ImGuiCond openCond = default, bool openVal = default) - { - Flags = flags; - Width = width; - FocusScopeId = focusScopeId; - OpenCond = openCond; - OpenVal = openVal ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiNextItemData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiNextItemDataPtr : IEquatable<ImGuiNextItemDataPtr> - { - public ImGuiNextItemDataPtr(ImGuiNextItemData* handle) { Handle = handle; } - - public ImGuiNextItemData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiNextItemDataPtr Null => new ImGuiNextItemDataPtr(null); - - public ImGuiNextItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiNextItemDataPtr(ImGuiNextItemData* handle) => new ImGuiNextItemDataPtr(handle); - - public static implicit operator ImGuiNextItemData*(ImGuiNextItemDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle == right; - - public static bool operator !=(ImGuiNextItemDataPtr left, ImGuiNextItemData* right) => left.Handle != right; - - public bool Equals(ImGuiNextItemDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiNextItemDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiNextItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNextItemDataFlags Flags => ref Unsafe.AsRef<ImGuiNextItemDataFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref float Width => ref Unsafe.AsRef<float>(&Handle->Width); - /// <summary> - /// To be documented. - /// </summary> - public ref uint FocusScopeId => ref Unsafe.AsRef<uint>(&Handle->FocusScopeId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiCond OpenCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->OpenCond); - /// <summary> - /// To be documented. - /// </summary> - public ref bool OpenVal => ref Unsafe.AsRef<bool>(&Handle->OpenVal); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs deleted file mode 100644 index 7ef6d0590..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiNextWindowData.cs +++ /dev/null @@ -1,297 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiNextWindowData - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNextWindowDataFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond PosCond; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond SizeCond; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond CollapsedCond; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond DockCond; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 PosVal; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 PosPivotVal; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 SizeVal; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ContentSizeVal; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ScrollVal; - - /// <summary> - /// To be documented. - /// </summary> - public byte PosUndock; - - /// <summary> - /// To be documented. - /// </summary> - public byte CollapsedVal; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect SizeConstraintRect; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* SizeCallback; - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* SizeCallbackUserData; - - /// <summary> - /// To be documented. - /// </summary> - public float BgAlphaVal; - - /// <summary> - /// To be documented. - /// </summary> - public uint ViewportId; - - /// <summary> - /// To be documented. - /// </summary> - public uint DockId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiWindowClass WindowClass; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MenuBarOffsetMinVal; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiNextWindowData(ImGuiNextWindowDataFlags flags = default, ImGuiCond posCond = default, ImGuiCond sizeCond = default, ImGuiCond collapsedCond = default, ImGuiCond dockCond = default, Vector2 posVal = default, Vector2 posPivotVal = default, Vector2 sizeVal = default, Vector2 contentSizeVal = default, Vector2 scrollVal = default, bool posUndock = default, bool collapsedVal = default, ImRect sizeConstraintRect = default, ImGuiSizeCallback sizeCallback = default, void* sizeCallbackUserData = default, float bgAlphaVal = default, uint viewportId = default, uint dockId = default, ImGuiWindowClass windowClass = default, Vector2 menuBarOffsetMinVal = default) - { - Flags = flags; - PosCond = posCond; - SizeCond = sizeCond; - CollapsedCond = collapsedCond; - DockCond = dockCond; - PosVal = posVal; - PosPivotVal = posPivotVal; - SizeVal = sizeVal; - ContentSizeVal = contentSizeVal; - ScrollVal = scrollVal; - PosUndock = posUndock ? (byte)1 : (byte)0; - CollapsedVal = collapsedVal ? (byte)1 : (byte)0; - SizeConstraintRect = sizeConstraintRect; - SizeCallback = (void*)Marshal.GetFunctionPointerForDelegate(sizeCallback); - SizeCallbackUserData = sizeCallbackUserData; - BgAlphaVal = bgAlphaVal; - ViewportId = viewportId; - DockId = dockId; - WindowClass = windowClass; - MenuBarOffsetMinVal = menuBarOffsetMinVal; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiNextWindowData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiNextWindowDataPtr : IEquatable<ImGuiNextWindowDataPtr> - { - public ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) { Handle = handle; } - - public ImGuiNextWindowData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiNextWindowDataPtr Null => new ImGuiNextWindowDataPtr(null); - - public ImGuiNextWindowData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiNextWindowDataPtr(ImGuiNextWindowData* handle) => new ImGuiNextWindowDataPtr(handle); - - public static implicit operator ImGuiNextWindowData*(ImGuiNextWindowDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle == right; - - public static bool operator !=(ImGuiNextWindowDataPtr left, ImGuiNextWindowData* right) => left.Handle != right; - - public bool Equals(ImGuiNextWindowDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiNextWindowDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiNextWindowDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiNextWindowDataFlags Flags => ref Unsafe.AsRef<ImGuiNextWindowDataFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiCond PosCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->PosCond); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiCond SizeCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->SizeCond); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiCond CollapsedCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->CollapsedCond); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiCond DockCond => ref Unsafe.AsRef<ImGuiCond>(&Handle->DockCond); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 PosVal => ref Unsafe.AsRef<Vector2>(&Handle->PosVal); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 PosPivotVal => ref Unsafe.AsRef<Vector2>(&Handle->PosPivotVal); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 SizeVal => ref Unsafe.AsRef<Vector2>(&Handle->SizeVal); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ContentSizeVal => ref Unsafe.AsRef<Vector2>(&Handle->ContentSizeVal); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ScrollVal => ref Unsafe.AsRef<Vector2>(&Handle->ScrollVal); - /// <summary> - /// To be documented. - /// </summary> - public ref bool PosUndock => ref Unsafe.AsRef<bool>(&Handle->PosUndock); - /// <summary> - /// To be documented. - /// </summary> - public ref bool CollapsedVal => ref Unsafe.AsRef<bool>(&Handle->CollapsedVal); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect SizeConstraintRect => ref Unsafe.AsRef<ImRect>(&Handle->SizeConstraintRect); - /// <summary> - /// To be documented. - /// </summary> - public void* SizeCallback { get => Handle->SizeCallback; set => Handle->SizeCallback = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* SizeCallbackUserData { get => Handle->SizeCallbackUserData; set => Handle->SizeCallbackUserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref float BgAlphaVal => ref Unsafe.AsRef<float>(&Handle->BgAlphaVal); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ViewportId => ref Unsafe.AsRef<uint>(&Handle->ViewportId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DockId => ref Unsafe.AsRef<uint>(&Handle->DockId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef<ImGuiWindowClass>(&Handle->WindowClass); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MenuBarOffsetMinVal => ref Unsafe.AsRef<Vector2>(&Handle->MenuBarOffsetMinVal); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumnData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumnData.cs deleted file mode 100644 index 4b48d0a81..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumnData.cs +++ /dev/null @@ -1,138 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiOldColumnData - { - /// <summary> - /// To be documented. - /// </summary> - public float OffsetNorm; - - /// <summary> - /// To be documented. - /// </summary> - public float OffsetNormBeforeResize; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiOldColumnFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect ClipRect; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiOldColumnData(float offsetNorm = default, float offsetNormBeforeResize = default, ImGuiOldColumnFlags flags = default, ImRect clipRect = default) - { - OffsetNorm = offsetNorm; - OffsetNormBeforeResize = offsetNormBeforeResize; - Flags = flags; - ClipRect = clipRect; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiOldColumnData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiOldColumnDataPtr : IEquatable<ImGuiOldColumnDataPtr> - { - public ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) { Handle = handle; } - - public ImGuiOldColumnData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiOldColumnDataPtr Null => new ImGuiOldColumnDataPtr(null); - - public ImGuiOldColumnData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiOldColumnDataPtr(ImGuiOldColumnData* handle) => new ImGuiOldColumnDataPtr(handle); - - public static implicit operator ImGuiOldColumnData*(ImGuiOldColumnDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle == right; - - public static bool operator !=(ImGuiOldColumnDataPtr left, ImGuiOldColumnData* right) => left.Handle != right; - - public bool Equals(ImGuiOldColumnDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiOldColumnDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiOldColumnDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref float OffsetNorm => ref Unsafe.AsRef<float>(&Handle->OffsetNorm); - /// <summary> - /// To be documented. - /// </summary> - public ref float OffsetNormBeforeResize => ref Unsafe.AsRef<float>(&Handle->OffsetNormBeforeResize); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef<ImGuiOldColumnFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect ClipRect => ref Unsafe.AsRef<ImRect>(&Handle->ClipRect); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumns.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumns.cs deleted file mode 100644 index 5932630d5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOldColumns.cs +++ /dev/null @@ -1,268 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiOldColumns - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiOldColumnFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsFirstFrame; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsBeingResized; - - /// <summary> - /// To be documented. - /// </summary> - public int Current; - - /// <summary> - /// To be documented. - /// </summary> - public int Count; - - /// <summary> - /// To be documented. - /// </summary> - public float OffMinX; - - /// <summary> - /// To be documented. - /// </summary> - public float OffMaxX; - - /// <summary> - /// To be documented. - /// </summary> - public float LineMinY; - - /// <summary> - /// To be documented. - /// </summary> - public float LineMaxY; - - /// <summary> - /// To be documented. - /// </summary> - public float HostCursorPosY; - - /// <summary> - /// To be documented. - /// </summary> - public float HostCursorMaxPosX; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HostInitialClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HostBackupClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HostBackupParentWorkRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiOldColumnData> Columns; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawListSplitter Splitter; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiOldColumns(uint id = default, ImGuiOldColumnFlags flags = default, bool isFirstFrame = default, bool isBeingResized = default, int current = default, int count = default, float offMinX = default, float offMaxX = default, float lineMinY = default, float lineMaxY = default, float hostCursorPosY = default, float hostCursorMaxPosX = default, ImRect hostInitialClipRect = default, ImRect hostBackupClipRect = default, ImRect hostBackupParentWorkRect = default, ImVector<ImGuiOldColumnData> columns = default, ImDrawListSplitter splitter = default) - { - ID = id; - Flags = flags; - IsFirstFrame = isFirstFrame ? (byte)1 : (byte)0; - IsBeingResized = isBeingResized ? (byte)1 : (byte)0; - Current = current; - Count = count; - OffMinX = offMinX; - OffMaxX = offMaxX; - LineMinY = lineMinY; - LineMaxY = lineMaxY; - HostCursorPosY = hostCursorPosY; - HostCursorMaxPosX = hostCursorMaxPosX; - HostInitialClipRect = hostInitialClipRect; - HostBackupClipRect = hostBackupClipRect; - HostBackupParentWorkRect = hostBackupParentWorkRect; - Columns = columns; - Splitter = splitter; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiOldColumns* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiOldColumnsPtr : IEquatable<ImGuiOldColumnsPtr> - { - public ImGuiOldColumnsPtr(ImGuiOldColumns* handle) { Handle = handle; } - - public ImGuiOldColumns* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiOldColumnsPtr Null => new ImGuiOldColumnsPtr(null); - - public ImGuiOldColumns this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiOldColumnsPtr(ImGuiOldColumns* handle) => new ImGuiOldColumnsPtr(handle); - - public static implicit operator ImGuiOldColumns*(ImGuiOldColumnsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle == right; - - public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle != right; - - public bool Equals(ImGuiOldColumnsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiOldColumnsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiOldColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef<ImGuiOldColumnFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsFirstFrame => ref Unsafe.AsRef<bool>(&Handle->IsFirstFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsBeingResized => ref Unsafe.AsRef<bool>(&Handle->IsBeingResized); - /// <summary> - /// To be documented. - /// </summary> - public ref int Current => ref Unsafe.AsRef<int>(&Handle->Current); - /// <summary> - /// To be documented. - /// </summary> - public ref int Count => ref Unsafe.AsRef<int>(&Handle->Count); - /// <summary> - /// To be documented. - /// </summary> - public ref float OffMinX => ref Unsafe.AsRef<float>(&Handle->OffMinX); - /// <summary> - /// To be documented. - /// </summary> - public ref float OffMaxX => ref Unsafe.AsRef<float>(&Handle->OffMaxX); - /// <summary> - /// To be documented. - /// </summary> - public ref float LineMinY => ref Unsafe.AsRef<float>(&Handle->LineMinY); - /// <summary> - /// To be documented. - /// </summary> - public ref float LineMaxY => ref Unsafe.AsRef<float>(&Handle->LineMaxY); - /// <summary> - /// To be documented. - /// </summary> - public ref float HostCursorPosY => ref Unsafe.AsRef<float>(&Handle->HostCursorPosY); - /// <summary> - /// To be documented. - /// </summary> - public ref float HostCursorMaxPosX => ref Unsafe.AsRef<float>(&Handle->HostCursorMaxPosX); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HostInitialClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostInitialClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HostBackupClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupParentWorkRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiOldColumnData> Columns => ref Unsafe.AsRef<ImVector<ImGuiOldColumnData>>(&Handle->Columns); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef<ImDrawListSplitter>(&Handle->Splitter); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs deleted file mode 100644 index 68533d36c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiOnceUponAFrame.cs +++ /dev/null @@ -1,108 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiOnceUponAFrame - { - /// <summary> - /// To be documented. - /// </summary> - public int RefFrame; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiOnceUponAFrame(int refFrame = default) - { - RefFrame = refFrame; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiOnceUponAFrame* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiOnceUponAFramePtr : IEquatable<ImGuiOnceUponAFramePtr> - { - public ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) { Handle = handle; } - - public ImGuiOnceUponAFrame* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiOnceUponAFramePtr Null => new ImGuiOnceUponAFramePtr(null); - - public ImGuiOnceUponAFrame this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiOnceUponAFramePtr(ImGuiOnceUponAFrame* handle) => new ImGuiOnceUponAFramePtr(handle); - - public static implicit operator ImGuiOnceUponAFrame*(ImGuiOnceUponAFramePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFramePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle == right; - - public static bool operator !=(ImGuiOnceUponAFramePtr left, ImGuiOnceUponAFrame* right) => left.Handle != right; - - public bool Equals(ImGuiOnceUponAFramePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiOnceUponAFramePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiOnceUponAFramePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref int RefFrame => ref Unsafe.AsRef<int>(&Handle->RefFrame); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs deleted file mode 100644 index a96f66ef4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPayload.cs +++ /dev/null @@ -1,501 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPayload - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* Data; - - /// <summary> - /// To be documented. - /// </summary> - public int DataSize; - - /// <summary> - /// To be documented. - /// </summary> - public uint SourceId; - - /// <summary> - /// To be documented. - /// </summary> - public uint SourceParentId; - - /// <summary> - /// To be documented. - /// </summary> - public int DataFrameCount; - - /// <summary> - /// To be documented. - /// </summary> - public byte DataType_0; - public byte DataType_1; - public byte DataType_2; - public byte DataType_3; - public byte DataType_4; - public byte DataType_5; - public byte DataType_6; - public byte DataType_7; - public byte DataType_8; - public byte DataType_9; - public byte DataType_10; - public byte DataType_11; - public byte DataType_12; - public byte DataType_13; - public byte DataType_14; - public byte DataType_15; - public byte DataType_16; - public byte DataType_17; - public byte DataType_18; - public byte DataType_19; - public byte DataType_20; - public byte DataType_21; - public byte DataType_22; - public byte DataType_23; - public byte DataType_24; - public byte DataType_25; - public byte DataType_26; - public byte DataType_27; - public byte DataType_28; - public byte DataType_29; - public byte DataType_30; - public byte DataType_31; - public byte DataType_32; - - /// <summary> - /// To be documented. - /// </summary> - public byte Preview; - - /// <summary> - /// To be documented. - /// </summary> - public byte Delivery; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, byte* dataType = default, bool preview = default, bool delivery = default) - { - Data = data; - DataSize = dataSize; - SourceId = sourceId; - SourceParentId = sourceParentId; - DataFrameCount = dataFrameCount; - if (dataType != default(byte*)) - { - DataType_0 = dataType[0]; - DataType_1 = dataType[1]; - DataType_2 = dataType[2]; - DataType_3 = dataType[3]; - DataType_4 = dataType[4]; - DataType_5 = dataType[5]; - DataType_6 = dataType[6]; - DataType_7 = dataType[7]; - DataType_8 = dataType[8]; - DataType_9 = dataType[9]; - DataType_10 = dataType[10]; - DataType_11 = dataType[11]; - DataType_12 = dataType[12]; - DataType_13 = dataType[13]; - DataType_14 = dataType[14]; - DataType_15 = dataType[15]; - DataType_16 = dataType[16]; - DataType_17 = dataType[17]; - DataType_18 = dataType[18]; - DataType_19 = dataType[19]; - DataType_20 = dataType[20]; - DataType_21 = dataType[21]; - DataType_22 = dataType[22]; - DataType_23 = dataType[23]; - DataType_24 = dataType[24]; - DataType_25 = dataType[25]; - DataType_26 = dataType[26]; - DataType_27 = dataType[27]; - DataType_28 = dataType[28]; - DataType_29 = dataType[29]; - DataType_30 = dataType[30]; - DataType_31 = dataType[31]; - DataType_32 = dataType[32]; - } - Preview = preview ? (byte)1 : (byte)0; - Delivery = delivery ? (byte)1 : (byte)0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, Span<byte> dataType = default, bool preview = default, bool delivery = default) - { - Data = data; - DataSize = dataSize; - SourceId = sourceId; - SourceParentId = sourceParentId; - DataFrameCount = dataFrameCount; - if (dataType != default(Span<byte>)) - { - DataType_0 = dataType[0]; - DataType_1 = dataType[1]; - DataType_2 = dataType[2]; - DataType_3 = dataType[3]; - DataType_4 = dataType[4]; - DataType_5 = dataType[5]; - DataType_6 = dataType[6]; - DataType_7 = dataType[7]; - DataType_8 = dataType[8]; - DataType_9 = dataType[9]; - DataType_10 = dataType[10]; - DataType_11 = dataType[11]; - DataType_12 = dataType[12]; - DataType_13 = dataType[13]; - DataType_14 = dataType[14]; - DataType_15 = dataType[15]; - DataType_16 = dataType[16]; - DataType_17 = dataType[17]; - DataType_18 = dataType[18]; - DataType_19 = dataType[19]; - DataType_20 = dataType[20]; - DataType_21 = dataType[21]; - DataType_22 = dataType[22]; - DataType_23 = dataType[23]; - DataType_24 = dataType[24]; - DataType_25 = dataType[25]; - DataType_26 = dataType[26]; - DataType_27 = dataType[27]; - DataType_28 = dataType[28]; - DataType_29 = dataType[29]; - DataType_30 = dataType[30]; - DataType_31 = dataType[31]; - DataType_32 = dataType[32]; - } - Preview = preview ? (byte)1 : (byte)0; - Delivery = delivery ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - fixed (ImGuiPayload* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiPayload* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(byte* type) - { - fixed (ImGuiPayload* @this = &this) - { - byte ret = ImGui.IsDataTypeNative(@this, type); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(ref byte type) - { - fixed (ImGuiPayload* @this = &this) - { - fixed (byte* ptype = &type) - { - byte ret = ImGui.IsDataTypeNative(@this, (byte*)ptype); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(ReadOnlySpan<byte> type) - { - fixed (ImGuiPayload* @this = &this) - { - fixed (byte* ptype = type) - { - byte ret = ImGui.IsDataTypeNative(@this, (byte*)ptype); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(string type) - { - fixed (ImGuiPayload* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.IsDataTypeNative(@this, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDelivery() - { - fixed (ImGuiPayload* @this = &this) - { - byte ret = ImGui.IsDeliveryNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsPreview() - { - fixed (ImGuiPayload* @this = &this) - { - byte ret = ImGui.IsPreviewNative(@this); - return ret != 0; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiPayloadPtr : IEquatable<ImGuiPayloadPtr> - { - public ImGuiPayloadPtr(ImGuiPayload* handle) { Handle = handle; } - - public ImGuiPayload* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiPayloadPtr Null => new ImGuiPayloadPtr(null); - - public ImGuiPayload this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiPayloadPtr(ImGuiPayload* handle) => new ImGuiPayloadPtr(handle); - - public static implicit operator ImGuiPayload*(ImGuiPayloadPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayloadPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle == right; - - public static bool operator !=(ImGuiPayloadPtr left, ImGuiPayload* right) => left.Handle != right; - - public bool Equals(ImGuiPayloadPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiPayloadPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiPayloadPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public void* Data { get => Handle->Data; set => Handle->Data = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref int DataSize => ref Unsafe.AsRef<int>(&Handle->DataSize); - /// <summary> - /// To be documented. - /// </summary> - public ref uint SourceId => ref Unsafe.AsRef<uint>(&Handle->SourceId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint SourceParentId => ref Unsafe.AsRef<uint>(&Handle->SourceParentId); - /// <summary> - /// To be documented. - /// </summary> - public ref int DataFrameCount => ref Unsafe.AsRef<int>(&Handle->DataFrameCount); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> DataType - - { - get - { - return new Span<byte>(&Handle->DataType_0, 33); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref bool Preview => ref Unsafe.AsRef<bool>(&Handle->Preview); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Delivery => ref Unsafe.AsRef<bool>(&Handle->Delivery); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - ImGui.ClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(byte* type) - { - byte ret = ImGui.IsDataTypeNative(Handle, type); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(ref byte type) - { - fixed (byte* ptype = &type) - { - byte ret = ImGui.IsDataTypeNative(Handle, (byte*)ptype); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(ReadOnlySpan<byte> type) - { - fixed (byte* ptype = type) - { - byte ret = ImGui.IsDataTypeNative(Handle, (byte*)ptype); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDataType(string type) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.IsDataTypeNative(Handle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsDelivery() - { - byte ret = ImGui.IsDeliveryNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsPreview() - { - byte ret = ImGui.IsPreviewNative(Handle); - return ret != 0; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs deleted file mode 100644 index 2f649346e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformIO.cs +++ /dev/null @@ -1,348 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPlatformIO - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformCreateWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformDestroyWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformShowWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformSetWindowPos; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformGetWindowPos; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformSetWindowSize; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformGetWindowSize; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformSetWindowFocus; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformGetWindowFocus; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformGetWindowMinimized; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformSetWindowTitle; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformSetWindowAlpha; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformUpdateWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformRenderWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformSwapBuffers; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformGetWindowDpiScale; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformOnChangedViewport; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformCreateVkSurface; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* RendererCreateWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* RendererDestroyWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* RendererSetWindowSize; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* RendererRenderWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* RendererSwapBuffers; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiPlatformMonitor> Monitors; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiViewportPtr> Viewports; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiPlatformIO(delegate*<ImGuiViewport*, void> platformCreatewindow = default, delegate*<ImGuiViewport*, void> platformDestroywindow = default, delegate*<ImGuiViewport*, void> platformShowwindow = default, delegate*<ImGuiViewport*, Vector2, void> platformSetwindowpos = default, delegate*<ImGuiViewport*, Vector2> platformGetwindowpos = default, delegate*<ImGuiViewport*, Vector2, void> platformSetwindowsize = default, delegate*<ImGuiViewport*, Vector2> platformGetwindowsize = default, delegate*<ImGuiViewport*, void> platformSetwindowfocus = default, delegate*<ImGuiViewport*, bool> platformGetwindowfocus = default, delegate*<ImGuiViewport*, bool> platformGetwindowminimized = default, delegate*<ImGuiViewport*, byte*, void> platformSetwindowtitle = default, delegate*<ImGuiViewport*, float, void> platformSetwindowalpha = default, delegate*<ImGuiViewport*, void> platformUpdatewindow = default, delegate*<ImGuiViewport*, void*, void> platformRenderwindow = default, delegate*<ImGuiViewport*, void*, void> platformSwapbuffers = default, delegate*<ImGuiViewport*, float> platformGetwindowdpiscale = default, delegate*<ImGuiViewport*, void> platformOnchangedviewport = default, delegate*<ImGuiViewport*, ulong, void*, ulong*, int> platformCreatevksurface = default, delegate*<ImGuiViewport*, void> rendererCreatewindow = default, delegate*<ImGuiViewport*, void> rendererDestroywindow = default, delegate*<ImGuiViewport*, Vector2, void> rendererSetwindowsize = default, delegate*<ImGuiViewport*, void*, void> rendererRenderwindow = default, delegate*<ImGuiViewport*, void*, void> rendererSwapbuffers = default, ImVector<ImGuiPlatformMonitor> monitors = default, ImVector<ImGuiViewportPtr> viewports = default) - { - PlatformCreateWindow = (void*)platformCreatewindow; - PlatformDestroyWindow = (void*)platformDestroywindow; - PlatformShowWindow = (void*)platformShowwindow; - PlatformSetWindowPos = (void*)platformSetwindowpos; - PlatformGetWindowPos = (void*)platformGetwindowpos; - PlatformSetWindowSize = (void*)platformSetwindowsize; - PlatformGetWindowSize = (void*)platformGetwindowsize; - PlatformSetWindowFocus = (void*)platformSetwindowfocus; - PlatformGetWindowFocus = (void*)platformGetwindowfocus; - PlatformGetWindowMinimized = (void*)platformGetwindowminimized; - PlatformSetWindowTitle = (void*)platformSetwindowtitle; - PlatformSetWindowAlpha = (void*)platformSetwindowalpha; - PlatformUpdateWindow = (void*)platformUpdatewindow; - PlatformRenderWindow = (void*)platformRenderwindow; - PlatformSwapBuffers = (void*)platformSwapbuffers; - PlatformGetWindowDpiScale = (void*)platformGetwindowdpiscale; - PlatformOnChangedViewport = (void*)platformOnchangedviewport; - PlatformCreateVkSurface = (void*)platformCreatevksurface; - RendererCreateWindow = (void*)rendererCreatewindow; - RendererDestroyWindow = (void*)rendererDestroywindow; - RendererSetWindowSize = (void*)rendererSetwindowsize; - RendererRenderWindow = (void*)rendererRenderwindow; - RendererSwapBuffers = (void*)rendererSwapbuffers; - Monitors = monitors; - Viewports = viewports; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiPlatformIO* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiPlatformIOPtr : IEquatable<ImGuiPlatformIOPtr> - { - public ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) { Handle = handle; } - - public ImGuiPlatformIO* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiPlatformIOPtr Null => new ImGuiPlatformIOPtr(null); - - public ImGuiPlatformIO this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiPlatformIOPtr(ImGuiPlatformIO* handle) => new ImGuiPlatformIOPtr(handle); - - public static implicit operator ImGuiPlatformIO*(ImGuiPlatformIOPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIOPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle == right; - - public static bool operator !=(ImGuiPlatformIOPtr left, ImGuiPlatformIO* right) => left.Handle != right; - - public bool Equals(ImGuiPlatformIOPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiPlatformIOPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiPlatformIOPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformCreateWindow { get => Handle->PlatformCreateWindow; set => Handle->PlatformCreateWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformDestroyWindow { get => Handle->PlatformDestroyWindow; set => Handle->PlatformDestroyWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformShowWindow { get => Handle->PlatformShowWindow; set => Handle->PlatformShowWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformSetWindowPos { get => Handle->PlatformSetWindowPos; set => Handle->PlatformSetWindowPos = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformGetWindowPos { get => Handle->PlatformGetWindowPos; set => Handle->PlatformGetWindowPos = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformSetWindowSize { get => Handle->PlatformSetWindowSize; set => Handle->PlatformSetWindowSize = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformGetWindowSize { get => Handle->PlatformGetWindowSize; set => Handle->PlatformGetWindowSize = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformSetWindowFocus { get => Handle->PlatformSetWindowFocus; set => Handle->PlatformSetWindowFocus = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformGetWindowFocus { get => Handle->PlatformGetWindowFocus; set => Handle->PlatformGetWindowFocus = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformGetWindowMinimized { get => Handle->PlatformGetWindowMinimized; set => Handle->PlatformGetWindowMinimized = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformSetWindowTitle { get => Handle->PlatformSetWindowTitle; set => Handle->PlatformSetWindowTitle = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformSetWindowAlpha { get => Handle->PlatformSetWindowAlpha; set => Handle->PlatformSetWindowAlpha = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformUpdateWindow { get => Handle->PlatformUpdateWindow; set => Handle->PlatformUpdateWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformRenderWindow { get => Handle->PlatformRenderWindow; set => Handle->PlatformRenderWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformSwapBuffers { get => Handle->PlatformSwapBuffers; set => Handle->PlatformSwapBuffers = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformGetWindowDpiScale { get => Handle->PlatformGetWindowDpiScale; set => Handle->PlatformGetWindowDpiScale = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformOnChangedViewport { get => Handle->PlatformOnChangedViewport; set => Handle->PlatformOnChangedViewport = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformCreateVkSurface { get => Handle->PlatformCreateVkSurface; set => Handle->PlatformCreateVkSurface = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* RendererCreateWindow { get => Handle->RendererCreateWindow; set => Handle->RendererCreateWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* RendererDestroyWindow { get => Handle->RendererDestroyWindow; set => Handle->RendererDestroyWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* RendererSetWindowSize { get => Handle->RendererSetWindowSize; set => Handle->RendererSetWindowSize = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* RendererRenderWindow { get => Handle->RendererRenderWindow; set => Handle->RendererRenderWindow = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* RendererSwapBuffers { get => Handle->RendererSwapBuffers; set => Handle->RendererSwapBuffers = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiPlatformMonitor> Monitors => ref Unsafe.AsRef<ImVector<ImGuiPlatformMonitor>>(&Handle->Monitors); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiViewportPtr> Viewports => ref Unsafe.AsRef<ImVector<ImGuiViewportPtr>>(&Handle->Viewports); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs deleted file mode 100644 index aca26e254..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformImeData.cs +++ /dev/null @@ -1,128 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPlatformImeData - { - /// <summary> - /// To be documented. - /// </summary> - public byte WantVisible; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 InputPos; - - /// <summary> - /// To be documented. - /// </summary> - public float InputLineHeight; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiPlatformImeData(bool wantVisible = default, Vector2 inputPos = default, float inputLineHeight = default) - { - WantVisible = wantVisible ? (byte)1 : (byte)0; - InputPos = inputPos; - InputLineHeight = inputLineHeight; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiPlatformImeData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiPlatformImeDataPtr : IEquatable<ImGuiPlatformImeDataPtr> - { - public ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) { Handle = handle; } - - public ImGuiPlatformImeData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiPlatformImeDataPtr Null => new ImGuiPlatformImeDataPtr(null); - - public ImGuiPlatformImeData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiPlatformImeDataPtr(ImGuiPlatformImeData* handle) => new ImGuiPlatformImeDataPtr(handle); - - public static implicit operator ImGuiPlatformImeData*(ImGuiPlatformImeDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle == right; - - public static bool operator !=(ImGuiPlatformImeDataPtr left, ImGuiPlatformImeData* right) => left.Handle != right; - - public bool Equals(ImGuiPlatformImeDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiPlatformImeDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiPlatformImeDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantVisible => ref Unsafe.AsRef<bool>(&Handle->WantVisible); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 InputPos => ref Unsafe.AsRef<Vector2>(&Handle->InputPos); - /// <summary> - /// To be documented. - /// </summary> - public ref float InputLineHeight => ref Unsafe.AsRef<float>(&Handle->InputLineHeight); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs deleted file mode 100644 index baae4df87..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPlatformMonitor.cs +++ /dev/null @@ -1,148 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPlatformMonitor - { - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MainPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MainSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WorkPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WorkSize; - - /// <summary> - /// To be documented. - /// </summary> - public float DpiScale; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiPlatformMonitor(Vector2 mainPos = default, Vector2 mainSize = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default) - { - MainPos = mainPos; - MainSize = mainSize; - WorkPos = workPos; - WorkSize = workSize; - DpiScale = dpiScale; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiPlatformMonitor* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiPlatformMonitorPtr : IEquatable<ImGuiPlatformMonitorPtr> - { - public ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) { Handle = handle; } - - public ImGuiPlatformMonitor* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiPlatformMonitorPtr Null => new ImGuiPlatformMonitorPtr(null); - - public ImGuiPlatformMonitor this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* handle) => new ImGuiPlatformMonitorPtr(handle); - - public static implicit operator ImGuiPlatformMonitor*(ImGuiPlatformMonitorPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitorPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle == right; - - public static bool operator !=(ImGuiPlatformMonitorPtr left, ImGuiPlatformMonitor* right) => left.Handle != right; - - public bool Equals(ImGuiPlatformMonitorPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiPlatformMonitorPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiPlatformMonitorPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MainPos => ref Unsafe.AsRef<Vector2>(&Handle->MainPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MainSize => ref Unsafe.AsRef<Vector2>(&Handle->MainSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WorkPos => ref Unsafe.AsRef<Vector2>(&Handle->WorkPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WorkSize => ref Unsafe.AsRef<Vector2>(&Handle->WorkSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float DpiScale => ref Unsafe.AsRef<float>(&Handle->DpiScale); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs deleted file mode 100644 index 4e03965aa..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPopupData.cs +++ /dev/null @@ -1,178 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPopupData - { - /// <summary> - /// To be documented. - /// </summary> - public uint PopupId; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* Window; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* SourceWindow; - - /// <summary> - /// To be documented. - /// </summary> - public int ParentNavLayer; - - /// <summary> - /// To be documented. - /// </summary> - public int OpenFrameCount; - - /// <summary> - /// To be documented. - /// </summary> - public uint OpenParentId; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 OpenPopupPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 OpenMousePos; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiPopupData(uint popupId = default, ImGuiWindowPtr window = default, ImGuiWindowPtr sourceWindow = default, int parentNavLayer = default, int openFrameCount = default, uint openParentId = default, Vector2 openPopupPos = default, Vector2 openMousePos = default) - { - PopupId = popupId; - Window = window; - SourceWindow = sourceWindow; - ParentNavLayer = parentNavLayer; - OpenFrameCount = openFrameCount; - OpenParentId = openParentId; - OpenPopupPos = openPopupPos; - OpenMousePos = openMousePos; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiPopupData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiPopupDataPtr : IEquatable<ImGuiPopupDataPtr> - { - public ImGuiPopupDataPtr(ImGuiPopupData* handle) { Handle = handle; } - - public ImGuiPopupData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiPopupDataPtr Null => new ImGuiPopupDataPtr(null); - - public ImGuiPopupData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiPopupDataPtr(ImGuiPopupData* handle) => new ImGuiPopupDataPtr(handle); - - public static implicit operator ImGuiPopupData*(ImGuiPopupDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle == right; - - public static bool operator !=(ImGuiPopupDataPtr left, ImGuiPopupData* right) => left.Handle != right; - - public bool Equals(ImGuiPopupDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiPopupDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiPopupDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint PopupId => ref Unsafe.AsRef<uint>(&Handle->PopupId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr SourceWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->SourceWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref int ParentNavLayer => ref Unsafe.AsRef<int>(&Handle->ParentNavLayer); - /// <summary> - /// To be documented. - /// </summary> - public ref int OpenFrameCount => ref Unsafe.AsRef<int>(&Handle->OpenFrameCount); - /// <summary> - /// To be documented. - /// </summary> - public ref uint OpenParentId => ref Unsafe.AsRef<uint>(&Handle->OpenParentId); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 OpenPopupPos => ref Unsafe.AsRef<Vector2>(&Handle->OpenPopupPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 OpenMousePos => ref Unsafe.AsRef<Vector2>(&Handle->OpenMousePos); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPtrOrIndex.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPtrOrIndex.cs deleted file mode 100644 index 11d8c1ce2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiPtrOrIndex.cs +++ /dev/null @@ -1,118 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiPtrOrIndex - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* Ptr; - - /// <summary> - /// To be documented. - /// </summary> - public int Index; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiPtrOrIndex(void* ptr = default, int index = default) - { - Ptr = ptr; - Index = index; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiPtrOrIndex* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiPtrOrIndexPtr : IEquatable<ImGuiPtrOrIndexPtr> - { - public ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) { Handle = handle; } - - public ImGuiPtrOrIndex* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiPtrOrIndexPtr Null => new ImGuiPtrOrIndexPtr(null); - - public ImGuiPtrOrIndex this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiPtrOrIndexPtr(ImGuiPtrOrIndex* handle) => new ImGuiPtrOrIndexPtr(handle); - - public static implicit operator ImGuiPtrOrIndex*(ImGuiPtrOrIndexPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndexPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle == right; - - public static bool operator !=(ImGuiPtrOrIndexPtr left, ImGuiPtrOrIndex* right) => left.Handle != right; - - public bool Equals(ImGuiPtrOrIndexPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiPtrOrIndexPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiPtrOrIndexPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public void* Ptr { get => Handle->Ptr; set => Handle->Ptr = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref int Index => ref Unsafe.AsRef<int>(&Handle->Index); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSettingsHandler.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSettingsHandler.cs deleted file mode 100644 index d89b34386..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSettingsHandler.cs +++ /dev/null @@ -1,188 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiSettingsHandler - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* TypeName; - - /// <summary> - /// To be documented. - /// </summary> - public uint TypeHash; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* ClearAllFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* ReadInitFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* ReadOpenFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* ReadLineFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* ApplyAllFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* WriteAllFn; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserData; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiSettingsHandler(byte* typeName = default, uint typeHash = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void> clearAllFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void> readInitFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, byte*, void*> readOpenFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void*, byte*, void> readLineFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, void> applyAllFn = default, delegate*<ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer*, void> writeAllFn = default, void* userData = default) - { - TypeName = typeName; - TypeHash = typeHash; - ClearAllFn = (void*)clearAllFn; - ReadInitFn = (void*)readInitFn; - ReadOpenFn = (void*)readOpenFn; - ReadLineFn = (void*)readLineFn; - ApplyAllFn = (void*)applyAllFn; - WriteAllFn = (void*)writeAllFn; - UserData = userData; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiSettingsHandler* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiSettingsHandlerPtr : IEquatable<ImGuiSettingsHandlerPtr> - { - public ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) { Handle = handle; } - - public ImGuiSettingsHandler* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiSettingsHandlerPtr Null => new ImGuiSettingsHandlerPtr(null); - - public ImGuiSettingsHandler this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* handle) => new ImGuiSettingsHandlerPtr(handle); - - public static implicit operator ImGuiSettingsHandler*(ImGuiSettingsHandlerPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandlerPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle == right; - - public static bool operator !=(ImGuiSettingsHandlerPtr left, ImGuiSettingsHandler* right) => left.Handle != right; - - public bool Equals(ImGuiSettingsHandlerPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiSettingsHandlerPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiSettingsHandlerPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public byte* TypeName { get => Handle->TypeName; set => Handle->TypeName = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref uint TypeHash => ref Unsafe.AsRef<uint>(&Handle->TypeHash); - /// <summary> - /// To be documented. - /// </summary> - public void* ClearAllFn { get => Handle->ClearAllFn; set => Handle->ClearAllFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* ReadInitFn { get => Handle->ReadInitFn; set => Handle->ReadInitFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* ReadOpenFn { get => Handle->ReadOpenFn; set => Handle->ReadOpenFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* ReadLineFn { get => Handle->ReadLineFn; set => Handle->ReadLineFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* ApplyAllFn { get => Handle->ApplyAllFn; set => Handle->ApplyAllFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* WriteAllFn { get => Handle->WriteAllFn; set => Handle->WriteAllFn = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* UserData { get => Handle->UserData; set => Handle->UserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiShrinkWidthItem.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiShrinkWidthItem.cs deleted file mode 100644 index 9eea9089c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiShrinkWidthItem.cs +++ /dev/null @@ -1,109 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiShrinkWidthItem - { - /// <summary> - /// To be documented. - /// </summary> - public int Index; - - /// <summary> - /// To be documented. - /// </summary> - public float Width; - - /// <summary> - /// To be documented. - /// </summary> - public float InitialWidth; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiShrinkWidthItem(int index = default, float width = default, float initialWidth = default) - { - Index = index; - Width = width; - InitialWidth = initialWidth; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiShrinkWidthItemPtr : IEquatable<ImGuiShrinkWidthItemPtr> - { - public ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) { Handle = handle; } - - public ImGuiShrinkWidthItem* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiShrinkWidthItemPtr Null => new ImGuiShrinkWidthItemPtr(null); - - public ImGuiShrinkWidthItem this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiShrinkWidthItemPtr(ImGuiShrinkWidthItem* handle) => new ImGuiShrinkWidthItemPtr(handle); - - public static implicit operator ImGuiShrinkWidthItem*(ImGuiShrinkWidthItemPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItemPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle == right; - - public static bool operator !=(ImGuiShrinkWidthItemPtr left, ImGuiShrinkWidthItem* right) => left.Handle != right; - - public bool Equals(ImGuiShrinkWidthItemPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiShrinkWidthItemPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiShrinkWidthItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref int Index => ref Unsafe.AsRef<int>(&Handle->Index); - /// <summary> - /// To be documented. - /// </summary> - public ref float Width => ref Unsafe.AsRef<float>(&Handle->Width); - /// <summary> - /// To be documented. - /// </summary> - public ref float InitialWidth => ref Unsafe.AsRef<float>(&Handle->InitialWidth); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs deleted file mode 100644 index 037782ef3..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiSizeCallbackData.cs +++ /dev/null @@ -1,60 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiSizeCallbackData - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserData; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Pos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CurrentSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 DesiredSize; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiSizeCallbackData(void* userData = default, Vector2 pos = default, Vector2 currentSize = default, Vector2 desiredSize = default) - { - UserData = userData; - Pos = pos; - CurrentSize = currentSize; - DesiredSize = desiredSize; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs deleted file mode 100644 index 041d31f21..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackLevelInfo.cs +++ /dev/null @@ -1,339 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStackLevelInfo - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte QueryFrameCount; - - /// <summary> - /// To be documented. - /// </summary> - public byte QuerySuccess; - - public ImGuiDataType RawBits0; - /// <summary> - /// To be documented. - /// </summary> - public byte Desc_0; - public byte Desc_1; - public byte Desc_2; - public byte Desc_3; - public byte Desc_4; - public byte Desc_5; - public byte Desc_6; - public byte Desc_7; - public byte Desc_8; - public byte Desc_9; - public byte Desc_10; - public byte Desc_11; - public byte Desc_12; - public byte Desc_13; - public byte Desc_14; - public byte Desc_15; - public byte Desc_16; - public byte Desc_17; - public byte Desc_18; - public byte Desc_19; - public byte Desc_20; - public byte Desc_21; - public byte Desc_22; - public byte Desc_23; - public byte Desc_24; - public byte Desc_25; - public byte Desc_26; - public byte Desc_27; - public byte Desc_28; - public byte Desc_29; - public byte Desc_30; - public byte Desc_31; - public byte Desc_32; - public byte Desc_33; - public byte Desc_34; - public byte Desc_35; - public byte Desc_36; - public byte Desc_37; - public byte Desc_38; - public byte Desc_39; - public byte Desc_40; - public byte Desc_41; - public byte Desc_42; - public byte Desc_43; - public byte Desc_44; - public byte Desc_45; - public byte Desc_46; - public byte Desc_47; - public byte Desc_48; - public byte Desc_49; - public byte Desc_50; - public byte Desc_51; - public byte Desc_52; - public byte Desc_53; - public byte Desc_54; - public byte Desc_55; - public byte Desc_56; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, byte* desc = default) - { - ID = id; - QueryFrameCount = queryFrameCount; - QuerySuccess = querySuccess ? (byte)1 : (byte)0; - DataType = dataType; - if (desc != default(byte*)) - { - Desc_0 = desc[0]; - Desc_1 = desc[1]; - Desc_2 = desc[2]; - Desc_3 = desc[3]; - Desc_4 = desc[4]; - Desc_5 = desc[5]; - Desc_6 = desc[6]; - Desc_7 = desc[7]; - Desc_8 = desc[8]; - Desc_9 = desc[9]; - Desc_10 = desc[10]; - Desc_11 = desc[11]; - Desc_12 = desc[12]; - Desc_13 = desc[13]; - Desc_14 = desc[14]; - Desc_15 = desc[15]; - Desc_16 = desc[16]; - Desc_17 = desc[17]; - Desc_18 = desc[18]; - Desc_19 = desc[19]; - Desc_20 = desc[20]; - Desc_21 = desc[21]; - Desc_22 = desc[22]; - Desc_23 = desc[23]; - Desc_24 = desc[24]; - Desc_25 = desc[25]; - Desc_26 = desc[26]; - Desc_27 = desc[27]; - Desc_28 = desc[28]; - Desc_29 = desc[29]; - Desc_30 = desc[30]; - Desc_31 = desc[31]; - Desc_32 = desc[32]; - Desc_33 = desc[33]; - Desc_34 = desc[34]; - Desc_35 = desc[35]; - Desc_36 = desc[36]; - Desc_37 = desc[37]; - Desc_38 = desc[38]; - Desc_39 = desc[39]; - Desc_40 = desc[40]; - Desc_41 = desc[41]; - Desc_42 = desc[42]; - Desc_43 = desc[43]; - Desc_44 = desc[44]; - Desc_45 = desc[45]; - Desc_46 = desc[46]; - Desc_47 = desc[47]; - Desc_48 = desc[48]; - Desc_49 = desc[49]; - Desc_50 = desc[50]; - Desc_51 = desc[51]; - Desc_52 = desc[52]; - Desc_53 = desc[53]; - Desc_54 = desc[54]; - Desc_55 = desc[55]; - Desc_56 = desc[56]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStackLevelInfo(uint id = default, sbyte queryFrameCount = default, bool querySuccess = default, ImGuiDataType dataType = default, Span<byte> desc = default) - { - ID = id; - QueryFrameCount = queryFrameCount; - QuerySuccess = querySuccess ? (byte)1 : (byte)0; - DataType = dataType; - if (desc != default(Span<byte>)) - { - Desc_0 = desc[0]; - Desc_1 = desc[1]; - Desc_2 = desc[2]; - Desc_3 = desc[3]; - Desc_4 = desc[4]; - Desc_5 = desc[5]; - Desc_6 = desc[6]; - Desc_7 = desc[7]; - Desc_8 = desc[8]; - Desc_9 = desc[9]; - Desc_10 = desc[10]; - Desc_11 = desc[11]; - Desc_12 = desc[12]; - Desc_13 = desc[13]; - Desc_14 = desc[14]; - Desc_15 = desc[15]; - Desc_16 = desc[16]; - Desc_17 = desc[17]; - Desc_18 = desc[18]; - Desc_19 = desc[19]; - Desc_20 = desc[20]; - Desc_21 = desc[21]; - Desc_22 = desc[22]; - Desc_23 = desc[23]; - Desc_24 = desc[24]; - Desc_25 = desc[25]; - Desc_26 = desc[26]; - Desc_27 = desc[27]; - Desc_28 = desc[28]; - Desc_29 = desc[29]; - Desc_30 = desc[30]; - Desc_31 = desc[31]; - Desc_32 = desc[32]; - Desc_33 = desc[33]; - Desc_34 = desc[34]; - Desc_35 = desc[35]; - Desc_36 = desc[36]; - Desc_37 = desc[37]; - Desc_38 = desc[38]; - Desc_39 = desc[39]; - Desc_40 = desc[40]; - Desc_41 = desc[41]; - Desc_42 = desc[42]; - Desc_43 = desc[43]; - Desc_44 = desc[44]; - Desc_45 = desc[45]; - Desc_46 = desc[46]; - Desc_47 = desc[47]; - Desc_48 = desc[48]; - Desc_49 = desc[49]; - Desc_50 = desc[50]; - Desc_51 = desc[51]; - Desc_52 = desc[52]; - Desc_53 = desc[53]; - Desc_54 = desc[54]; - Desc_55 = desc[55]; - Desc_56 = desc[56]; - } - } - - - public ImGuiDataType DataType { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiStackLevelInfo* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiStackLevelInfoPtr : IEquatable<ImGuiStackLevelInfoPtr> - { - public ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) { Handle = handle; } - - public ImGuiStackLevelInfo* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiStackLevelInfoPtr Null => new ImGuiStackLevelInfoPtr(null); - - public ImGuiStackLevelInfo this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiStackLevelInfoPtr(ImGuiStackLevelInfo* handle) => new ImGuiStackLevelInfoPtr(handle); - - public static implicit operator ImGuiStackLevelInfo*(ImGuiStackLevelInfoPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfoPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle == right; - - public static bool operator !=(ImGuiStackLevelInfoPtr left, ImGuiStackLevelInfo* right) => left.Handle != right; - - public bool Equals(ImGuiStackLevelInfoPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiStackLevelInfoPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiStackLevelInfoPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte QueryFrameCount => ref Unsafe.AsRef<sbyte>(&Handle->QueryFrameCount); - /// <summary> - /// To be documented. - /// </summary> - public ref bool QuerySuccess => ref Unsafe.AsRef<bool>(&Handle->QuerySuccess); - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDataType DataType { get => Handle->DataType; set => Handle->DataType = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> Desc - - { - get - { - return new Span<byte>(&Handle->Desc_0, 57); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs deleted file mode 100644 index 98c2a4e14..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackSizes.cs +++ /dev/null @@ -1,188 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStackSizes - { - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfIDStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfColorStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfStyleVarStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfFontStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfFocusScopeStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfGroupStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfItemFlagsStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfBeginPopupStack; - - /// <summary> - /// To be documented. - /// </summary> - public short SizeOfDisabledStack; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStackSizes(short sizeOfIdStack = default, short sizeOfColorStack = default, short sizeOfStyleVarStack = default, short sizeOfFontStack = default, short sizeOfFocusScopeStack = default, short sizeOfGroupStack = default, short sizeOfItemFlagsStack = default, short sizeOfBeginPopupStack = default, short sizeOfDisabledStack = default) - { - SizeOfIDStack = sizeOfIdStack; - SizeOfColorStack = sizeOfColorStack; - SizeOfStyleVarStack = sizeOfStyleVarStack; - SizeOfFontStack = sizeOfFontStack; - SizeOfFocusScopeStack = sizeOfFocusScopeStack; - SizeOfGroupStack = sizeOfGroupStack; - SizeOfItemFlagsStack = sizeOfItemFlagsStack; - SizeOfBeginPopupStack = sizeOfBeginPopupStack; - SizeOfDisabledStack = sizeOfDisabledStack; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiStackSizes* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiStackSizesPtr : IEquatable<ImGuiStackSizesPtr> - { - public ImGuiStackSizesPtr(ImGuiStackSizes* handle) { Handle = handle; } - - public ImGuiStackSizes* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiStackSizesPtr Null => new ImGuiStackSizesPtr(null); - - public ImGuiStackSizes this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiStackSizesPtr(ImGuiStackSizes* handle) => new ImGuiStackSizesPtr(handle); - - public static implicit operator ImGuiStackSizes*(ImGuiStackSizesPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizesPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle == right; - - public static bool operator !=(ImGuiStackSizesPtr left, ImGuiStackSizes* right) => left.Handle != right; - - public bool Equals(ImGuiStackSizesPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiStackSizesPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiStackSizesPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfIDStack => ref Unsafe.AsRef<short>(&Handle->SizeOfIDStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfColorStack => ref Unsafe.AsRef<short>(&Handle->SizeOfColorStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfStyleVarStack => ref Unsafe.AsRef<short>(&Handle->SizeOfStyleVarStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfFontStack => ref Unsafe.AsRef<short>(&Handle->SizeOfFontStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfFocusScopeStack => ref Unsafe.AsRef<short>(&Handle->SizeOfFocusScopeStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfGroupStack => ref Unsafe.AsRef<short>(&Handle->SizeOfGroupStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfItemFlagsStack => ref Unsafe.AsRef<short>(&Handle->SizeOfItemFlagsStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfBeginPopupStack => ref Unsafe.AsRef<short>(&Handle->SizeOfBeginPopupStack); - /// <summary> - /// To be documented. - /// </summary> - public ref short SizeOfDisabledStack => ref Unsafe.AsRef<short>(&Handle->SizeOfDisabledStack); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs deleted file mode 100644 index 9858fbd65..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStackTool.cs +++ /dev/null @@ -1,158 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStackTool - { - /// <summary> - /// To be documented. - /// </summary> - public int LastActiveFrame; - - /// <summary> - /// To be documented. - /// </summary> - public int StackLevel; - - /// <summary> - /// To be documented. - /// </summary> - public uint QueryId; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiStackLevelInfo> Results; - - /// <summary> - /// To be documented. - /// </summary> - public byte CopyToClipboardOnCtrlC; - - /// <summary> - /// To be documented. - /// </summary> - public float CopyToClipboardLastTime; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStackTool(int lastActiveFrame = default, int stackLevel = default, uint queryId = default, ImVector<ImGuiStackLevelInfo> results = default, bool copyToClipboardOnCtrlC = default, float copyToClipboardLastTime = default) - { - LastActiveFrame = lastActiveFrame; - StackLevel = stackLevel; - QueryId = queryId; - Results = results; - CopyToClipboardOnCtrlC = copyToClipboardOnCtrlC ? (byte)1 : (byte)0; - CopyToClipboardLastTime = copyToClipboardLastTime; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiStackTool* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiStackToolPtr : IEquatable<ImGuiStackToolPtr> - { - public ImGuiStackToolPtr(ImGuiStackTool* handle) { Handle = handle; } - - public ImGuiStackTool* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiStackToolPtr Null => new ImGuiStackToolPtr(null); - - public ImGuiStackTool this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiStackToolPtr(ImGuiStackTool* handle) => new ImGuiStackToolPtr(handle); - - public static implicit operator ImGuiStackTool*(ImGuiStackToolPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackToolPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle == right; - - public static bool operator !=(ImGuiStackToolPtr left, ImGuiStackTool* right) => left.Handle != right; - - public bool Equals(ImGuiStackToolPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiStackToolPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiStackToolPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref int LastActiveFrame => ref Unsafe.AsRef<int>(&Handle->LastActiveFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref int StackLevel => ref Unsafe.AsRef<int>(&Handle->StackLevel); - /// <summary> - /// To be documented. - /// </summary> - public ref uint QueryId => ref Unsafe.AsRef<uint>(&Handle->QueryId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiStackLevelInfo> Results => ref Unsafe.AsRef<ImVector<ImGuiStackLevelInfo>>(&Handle->Results); - /// <summary> - /// To be documented. - /// </summary> - public ref bool CopyToClipboardOnCtrlC => ref Unsafe.AsRef<bool>(&Handle->CopyToClipboardOnCtrlC); - /// <summary> - /// To be documented. - /// </summary> - public ref float CopyToClipboardLastTime => ref Unsafe.AsRef<float>(&Handle->CopyToClipboardLastTime); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs deleted file mode 100644 index 372738d35..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStorage.cs +++ /dev/null @@ -1,537 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStorage - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiStoragePair> Data; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStorage(ImVector<ImGuiStoragePair> data = default) - { - Data = data; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildSortByKey() - { - fixed (ImGuiStorage* @this = &this) - { - ImGui.BuildSortByKeyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - fixed (ImGuiStorage* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetBool(uint key, bool defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - byte ret = ImGui.GetBoolNative(@this, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetBool(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - byte ret = ImGui.GetBoolNative(@this, key, (byte)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool* GetBoolRef(uint key, bool defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - bool* ret = ImGui.GetBoolRefNative(@this, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool* GetBoolRef(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - bool* ret = ImGui.GetBoolRefNative(@this, key, (byte)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetFloat(uint key, float defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - float ret = ImGui.GetFloatNative(@this, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetFloat(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - float ret = ImGui.GetFloatNative(@this, key, (float)(0.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float* GetFloatRef(uint key, float defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - float* ret = ImGui.GetFloatRefNative(@this, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float* GetFloatRef(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - float* ret = ImGui.GetFloatRefNative(@this, key, (float)(0.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetInt(uint key, int defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - int ret = ImGui.GetIntNative(@this, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetInt(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - int ret = ImGui.GetIntNative(@this, key, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int* GetIntRef(uint key, int defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - int* ret = ImGui.GetIntRefNative(@this, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int* GetIntRef(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - int* ret = ImGui.GetIntRefNative(@this, key, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* GetVoidPtr(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - void* ret = ImGui.GetVoidPtrNative(@this, key); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void** GetVoidPtrRef(uint key, void* defaultVal) - { - fixed (ImGuiStorage* @this = &this) - { - void** ret = ImGui.GetVoidPtrRefNative(@this, key, defaultVal); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void** GetVoidPtrRef(uint key) - { - fixed (ImGuiStorage* @this = &this) - { - void** ret = ImGui.GetVoidPtrRefNative(@this, key, (void*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAllInt(int val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGui.SetAllIntNative(@this, val); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetBool(uint key, bool val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGui.SetBoolNative(@this, key, val ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetFloat(uint key, float val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGui.SetFloatNative(@this, key, val); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetInt(uint key, int val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGui.SetIntNative(@this, key, val); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetVoidPtr(uint key, void* val) - { - fixed (ImGuiStorage* @this = &this) - { - ImGui.SetVoidPtrNative(@this, key, val); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiStoragePtr : IEquatable<ImGuiStoragePtr> - { - public ImGuiStoragePtr(ImGuiStorage* handle) { Handle = handle; } - - public ImGuiStorage* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiStoragePtr Null => new ImGuiStoragePtr(null); - - public ImGuiStorage this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiStoragePtr(ImGuiStorage* handle) => new ImGuiStoragePtr(handle); - - public static implicit operator ImGuiStorage*(ImGuiStoragePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiStoragePtr left, ImGuiStoragePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle == right; - - public static bool operator !=(ImGuiStoragePtr left, ImGuiStorage* right) => left.Handle != right; - - public bool Equals(ImGuiStoragePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiStoragePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiStoragePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiStoragePair> Data => ref Unsafe.AsRef<ImVector<ImGuiStoragePair>>(&Handle->Data); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void BuildSortByKey() - { - ImGui.BuildSortByKeyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - ImGui.ClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetBool(uint key, bool defaultVal) - { - byte ret = ImGui.GetBoolNative(Handle, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool GetBool(uint key) - { - byte ret = ImGui.GetBoolNative(Handle, key, (byte)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool* GetBoolRef(uint key, bool defaultVal) - { - bool* ret = ImGui.GetBoolRefNative(Handle, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool* GetBoolRef(uint key) - { - bool* ret = ImGui.GetBoolRefNative(Handle, key, (byte)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetFloat(uint key, float defaultVal) - { - float ret = ImGui.GetFloatNative(Handle, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float GetFloat(uint key) - { - float ret = ImGui.GetFloatNative(Handle, key, (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float* GetFloatRef(uint key, float defaultVal) - { - float* ret = ImGui.GetFloatRefNative(Handle, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float* GetFloatRef(uint key) - { - float* ret = ImGui.GetFloatRefNative(Handle, key, (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetInt(uint key, int defaultVal) - { - int ret = ImGui.GetIntNative(Handle, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetInt(uint key) - { - int ret = ImGui.GetIntNative(Handle, key, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int* GetIntRef(uint key, int defaultVal) - { - int* ret = ImGui.GetIntRefNative(Handle, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int* GetIntRef(uint key) - { - int* ret = ImGui.GetIntRefNative(Handle, key, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* GetVoidPtr(uint key) - { - void* ret = ImGui.GetVoidPtrNative(Handle, key); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void** GetVoidPtrRef(uint key, void* defaultVal) - { - void** ret = ImGui.GetVoidPtrRefNative(Handle, key, defaultVal); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void** GetVoidPtrRef(uint key) - { - void** ret = ImGui.GetVoidPtrRefNative(Handle, key, (void*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAllInt(int val) - { - ImGui.SetAllIntNative(Handle, val); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetBool(uint key, bool val) - { - ImGui.SetBoolNative(Handle, key, val ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetFloat(uint key, float val) - { - ImGui.SetFloatNative(Handle, key, val); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetInt(uint key, int val) - { - ImGui.SetIntNative(Handle, key, val); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetVoidPtr(uint key, void* val) - { - ImGui.SetVoidPtrNative(Handle, key, val); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs deleted file mode 100644 index b25d13477..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStoragePair.cs +++ /dev/null @@ -1,156 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStoragePair - { - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Explicit)] - public partial struct ImGuiStoragePairUnion - { - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public int ValI; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public float ValF; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public unsafe void* ValP; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStoragePairUnion(int valI = default, float valF = default, void* valP = default) - { - ValI = valI; - ValF = valF; - ValP = valP; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - public uint Key; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStoragePairUnion Union; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStoragePair(uint key = default, ImGuiStoragePairUnion union = default) - { - Key = key; - Union = union; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiStoragePair* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiStoragePairPtr : IEquatable<ImGuiStoragePairPtr> - { - public ImGuiStoragePairPtr(ImGuiStoragePair* handle) { Handle = handle; } - - public ImGuiStoragePair* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiStoragePairPtr Null => new ImGuiStoragePairPtr(null); - - public ImGuiStoragePair this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiStoragePairPtr(ImGuiStoragePair* handle) => new ImGuiStoragePairPtr(handle); - - public static implicit operator ImGuiStoragePair*(ImGuiStoragePairPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePairPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle == right; - - public static bool operator !=(ImGuiStoragePairPtr left, ImGuiStoragePair* right) => left.Handle != right; - - public bool Equals(ImGuiStoragePairPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiStoragePairPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiStoragePairPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint Key => ref Unsafe.AsRef<uint>(&Handle->Key); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStoragePair.ImGuiStoragePairUnion Union => ref Unsafe.AsRef<ImGuiStoragePair.ImGuiStoragePairUnion>(&Handle->Union); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyle.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyle.cs deleted file mode 100644 index 155d259a9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyle.cs +++ /dev/null @@ -1,764 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStyle - { - /// <summary> - /// To be documented. - /// </summary> - public float Alpha; - - /// <summary> - /// To be documented. - /// </summary> - public float DisabledAlpha; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WindowPadding; - - /// <summary> - /// To be documented. - /// </summary> - public float WindowRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float WindowBorderSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WindowMinSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WindowTitleAlign; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDir WindowMenuButtonPosition; - - /// <summary> - /// To be documented. - /// </summary> - public float ChildRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float ChildBorderSize; - - /// <summary> - /// To be documented. - /// </summary> - public float PopupRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float PopupBorderSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 FramePadding; - - /// <summary> - /// To be documented. - /// </summary> - public float FrameRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float FrameBorderSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ItemSpacing; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ItemInnerSpacing; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CellPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 TouchExtraPadding; - - /// <summary> - /// To be documented. - /// </summary> - public float IndentSpacing; - - /// <summary> - /// To be documented. - /// </summary> - public float ColumnsMinSpacing; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollbarSize; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollbarRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float GrabMinSize; - - /// <summary> - /// To be documented. - /// </summary> - public float GrabRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float LogSliderDeadzone; - - /// <summary> - /// To be documented. - /// </summary> - public float TabRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float TabBorderSize; - - /// <summary> - /// To be documented. - /// </summary> - public float TabMinWidthForCloseButton; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDir ColorButtonPosition; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ButtonTextAlign; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 SelectableTextAlign; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 DisplayWindowPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 DisplaySafeAreaPadding; - - /// <summary> - /// To be documented. - /// </summary> - public float MouseCursorScale; - - /// <summary> - /// To be documented. - /// </summary> - public byte AntiAliasedLines; - - /// <summary> - /// To be documented. - /// </summary> - public byte AntiAliasedLinesUseTex; - - /// <summary> - /// To be documented. - /// </summary> - public byte AntiAliasedFill; - - /// <summary> - /// To be documented. - /// </summary> - public float CurveTessellationTol; - - /// <summary> - /// To be documented. - /// </summary> - public float CircleTessellationMaxError; - - /// <summary> - /// To be documented. - /// </summary> - public Vector4 Colors_0; - public Vector4 Colors_1; - public Vector4 Colors_2; - public Vector4 Colors_3; - public Vector4 Colors_4; - public Vector4 Colors_5; - public Vector4 Colors_6; - public Vector4 Colors_7; - public Vector4 Colors_8; - public Vector4 Colors_9; - public Vector4 Colors_10; - public Vector4 Colors_11; - public Vector4 Colors_12; - public Vector4 Colors_13; - public Vector4 Colors_14; - public Vector4 Colors_15; - public Vector4 Colors_16; - public Vector4 Colors_17; - public Vector4 Colors_18; - public Vector4 Colors_19; - public Vector4 Colors_20; - public Vector4 Colors_21; - public Vector4 Colors_22; - public Vector4 Colors_23; - public Vector4 Colors_24; - public Vector4 Colors_25; - public Vector4 Colors_26; - public Vector4 Colors_27; - public Vector4 Colors_28; - public Vector4 Colors_29; - public Vector4 Colors_30; - public Vector4 Colors_31; - public Vector4 Colors_32; - public Vector4 Colors_33; - public Vector4 Colors_34; - public Vector4 Colors_35; - public Vector4 Colors_36; - public Vector4 Colors_37; - public Vector4 Colors_38; - public Vector4 Colors_39; - public Vector4 Colors_40; - public Vector4 Colors_41; - public Vector4 Colors_42; - public Vector4 Colors_43; - public Vector4 Colors_44; - public Vector4 Colors_45; - public Vector4 Colors_46; - public Vector4 Colors_47; - public Vector4 Colors_48; - public Vector4 Colors_49; - public Vector4 Colors_50; - public Vector4 Colors_51; - public Vector4 Colors_52; - public Vector4 Colors_53; - public Vector4 Colors_54; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Vector4* colors = default) - { - Alpha = alpha; - DisabledAlpha = disabledAlpha; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - WindowMinSize = windowMinSize; - WindowTitleAlign = windowTitleAlign; - WindowMenuButtonPosition = windowMenuButtonPosition; - ChildRounding = childRounding; - ChildBorderSize = childBorderSize; - PopupRounding = popupRounding; - PopupBorderSize = popupBorderSize; - FramePadding = framePadding; - FrameRounding = frameRounding; - FrameBorderSize = frameBorderSize; - ItemSpacing = itemSpacing; - ItemInnerSpacing = itemInnerSpacing; - CellPadding = cellPadding; - TouchExtraPadding = touchExtraPadding; - IndentSpacing = indentSpacing; - ColumnsMinSpacing = columnsMinSpacing; - ScrollbarSize = scrollbarSize; - ScrollbarRounding = scrollbarRounding; - GrabMinSize = grabMinSize; - GrabRounding = grabRounding; - LogSliderDeadzone = logSliderDeadzone; - TabRounding = tabRounding; - TabBorderSize = tabBorderSize; - TabMinWidthForCloseButton = tabMinWidthForCloseButton; - ColorButtonPosition = colorButtonPosition; - ButtonTextAlign = buttonTextAlign; - SelectableTextAlign = selectableTextAlign; - DisplayWindowPadding = displayWindowPadding; - DisplaySafeAreaPadding = displaySafeAreaPadding; - MouseCursorScale = mouseCursorScale; - AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; - AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; - AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; - CurveTessellationTol = curveTessellationTol; - CircleTessellationMaxError = circleTessellationMaxError; - if (colors != default(Vector4*)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - Colors_6 = colors[6]; - Colors_7 = colors[7]; - Colors_8 = colors[8]; - Colors_9 = colors[9]; - Colors_10 = colors[10]; - Colors_11 = colors[11]; - Colors_12 = colors[12]; - Colors_13 = colors[13]; - Colors_14 = colors[14]; - Colors_15 = colors[15]; - Colors_16 = colors[16]; - Colors_17 = colors[17]; - Colors_18 = colors[18]; - Colors_19 = colors[19]; - Colors_20 = colors[20]; - Colors_21 = colors[21]; - Colors_22 = colors[22]; - Colors_23 = colors[23]; - Colors_24 = colors[24]; - Colors_25 = colors[25]; - Colors_26 = colors[26]; - Colors_27 = colors[27]; - Colors_28 = colors[28]; - Colors_29 = colors[29]; - Colors_30 = colors[30]; - Colors_31 = colors[31]; - Colors_32 = colors[32]; - Colors_33 = colors[33]; - Colors_34 = colors[34]; - Colors_35 = colors[35]; - Colors_36 = colors[36]; - Colors_37 = colors[37]; - Colors_38 = colors[38]; - Colors_39 = colors[39]; - Colors_40 = colors[40]; - Colors_41 = colors[41]; - Colors_42 = colors[42]; - Colors_43 = colors[43]; - Colors_44 = colors[44]; - Colors_45 = colors[45]; - Colors_46 = colors[46]; - Colors_47 = colors[47]; - Colors_48 = colors[48]; - Colors_49 = colors[49]; - Colors_50 = colors[50]; - Colors_51 = colors[51]; - Colors_52 = colors[52]; - Colors_53 = colors[53]; - Colors_54 = colors[54]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, ImGuiDir windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, ImGuiDir colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Span<Vector4> colors = default) - { - Alpha = alpha; - DisabledAlpha = disabledAlpha; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - WindowMinSize = windowMinSize; - WindowTitleAlign = windowTitleAlign; - WindowMenuButtonPosition = windowMenuButtonPosition; - ChildRounding = childRounding; - ChildBorderSize = childBorderSize; - PopupRounding = popupRounding; - PopupBorderSize = popupBorderSize; - FramePadding = framePadding; - FrameRounding = frameRounding; - FrameBorderSize = frameBorderSize; - ItemSpacing = itemSpacing; - ItemInnerSpacing = itemInnerSpacing; - CellPadding = cellPadding; - TouchExtraPadding = touchExtraPadding; - IndentSpacing = indentSpacing; - ColumnsMinSpacing = columnsMinSpacing; - ScrollbarSize = scrollbarSize; - ScrollbarRounding = scrollbarRounding; - GrabMinSize = grabMinSize; - GrabRounding = grabRounding; - LogSliderDeadzone = logSliderDeadzone; - TabRounding = tabRounding; - TabBorderSize = tabBorderSize; - TabMinWidthForCloseButton = tabMinWidthForCloseButton; - ColorButtonPosition = colorButtonPosition; - ButtonTextAlign = buttonTextAlign; - SelectableTextAlign = selectableTextAlign; - DisplayWindowPadding = displayWindowPadding; - DisplaySafeAreaPadding = displaySafeAreaPadding; - MouseCursorScale = mouseCursorScale; - AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; - AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; - AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; - CurveTessellationTol = curveTessellationTol; - CircleTessellationMaxError = circleTessellationMaxError; - if (colors != default(Span<Vector4>)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - Colors_6 = colors[6]; - Colors_7 = colors[7]; - Colors_8 = colors[8]; - Colors_9 = colors[9]; - Colors_10 = colors[10]; - Colors_11 = colors[11]; - Colors_12 = colors[12]; - Colors_13 = colors[13]; - Colors_14 = colors[14]; - Colors_15 = colors[15]; - Colors_16 = colors[16]; - Colors_17 = colors[17]; - Colors_18 = colors[18]; - Colors_19 = colors[19]; - Colors_20 = colors[20]; - Colors_21 = colors[21]; - Colors_22 = colors[22]; - Colors_23 = colors[23]; - Colors_24 = colors[24]; - Colors_25 = colors[25]; - Colors_26 = colors[26]; - Colors_27 = colors[27]; - Colors_28 = colors[28]; - Colors_29 = colors[29]; - Colors_30 = colors[30]; - Colors_31 = colors[31]; - Colors_32 = colors[32]; - Colors_33 = colors[33]; - Colors_34 = colors[34]; - Colors_35 = colors[35]; - Colors_36 = colors[36]; - Colors_37 = colors[37]; - Colors_38 = colors[38]; - Colors_39 = colors[39]; - Colors_40 = colors[40]; - Colors_41 = colors[41]; - Colors_42 = colors[42]; - Colors_43 = colors[43]; - Colors_44 = colors[44]; - Colors_45 = colors[45]; - Colors_46 = colors[46]; - Colors_47 = colors[47]; - Colors_48 = colors[48]; - Colors_49 = colors[49]; - Colors_50 = colors[50]; - Colors_51 = colors[51]; - Colors_52 = colors[52]; - Colors_53 = colors[53]; - Colors_54 = colors[54]; - } - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> Colors - - { - get - { - fixed (Vector4* p = &this.Colors_0) - { - return new Span<Vector4>(p, 55); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiStyle* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ScaleAllSizes(float scaleFactor) - { - fixed (ImGuiStyle* @this = &this) - { - ImGui.ScaleAllSizesNative(@this, scaleFactor); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiStylePtr : IEquatable<ImGuiStylePtr> - { - public ImGuiStylePtr(ImGuiStyle* handle) { Handle = handle; } - - public ImGuiStyle* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiStylePtr Null => new ImGuiStylePtr(null); - - public ImGuiStyle this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiStylePtr(ImGuiStyle* handle) => new ImGuiStylePtr(handle); - - public static implicit operator ImGuiStyle*(ImGuiStylePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiStylePtr left, ImGuiStylePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle == right; - - public static bool operator !=(ImGuiStylePtr left, ImGuiStyle* right) => left.Handle != right; - - public bool Equals(ImGuiStylePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiStylePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiStylePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref float Alpha => ref Unsafe.AsRef<float>(&Handle->Alpha); - /// <summary> - /// To be documented. - /// </summary> - public ref float DisabledAlpha => ref Unsafe.AsRef<float>(&Handle->DisabledAlpha); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WindowPadding => ref Unsafe.AsRef<Vector2>(&Handle->WindowPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref float WindowRounding => ref Unsafe.AsRef<float>(&Handle->WindowRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float WindowBorderSize => ref Unsafe.AsRef<float>(&Handle->WindowBorderSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WindowMinSize => ref Unsafe.AsRef<Vector2>(&Handle->WindowMinSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WindowTitleAlign => ref Unsafe.AsRef<Vector2>(&Handle->WindowTitleAlign); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDir WindowMenuButtonPosition => ref Unsafe.AsRef<ImGuiDir>(&Handle->WindowMenuButtonPosition); - /// <summary> - /// To be documented. - /// </summary> - public ref float ChildRounding => ref Unsafe.AsRef<float>(&Handle->ChildRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float ChildBorderSize => ref Unsafe.AsRef<float>(&Handle->ChildBorderSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float PopupRounding => ref Unsafe.AsRef<float>(&Handle->PopupRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float PopupBorderSize => ref Unsafe.AsRef<float>(&Handle->PopupBorderSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 FramePadding => ref Unsafe.AsRef<Vector2>(&Handle->FramePadding); - /// <summary> - /// To be documented. - /// </summary> - public ref float FrameRounding => ref Unsafe.AsRef<float>(&Handle->FrameRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float FrameBorderSize => ref Unsafe.AsRef<float>(&Handle->FrameBorderSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ItemSpacing => ref Unsafe.AsRef<Vector2>(&Handle->ItemSpacing); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ItemInnerSpacing => ref Unsafe.AsRef<Vector2>(&Handle->ItemInnerSpacing); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 CellPadding => ref Unsafe.AsRef<Vector2>(&Handle->CellPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 TouchExtraPadding => ref Unsafe.AsRef<Vector2>(&Handle->TouchExtraPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref float IndentSpacing => ref Unsafe.AsRef<float>(&Handle->IndentSpacing); - /// <summary> - /// To be documented. - /// </summary> - public ref float ColumnsMinSpacing => ref Unsafe.AsRef<float>(&Handle->ColumnsMinSpacing); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollbarSize => ref Unsafe.AsRef<float>(&Handle->ScrollbarSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollbarRounding => ref Unsafe.AsRef<float>(&Handle->ScrollbarRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float GrabMinSize => ref Unsafe.AsRef<float>(&Handle->GrabMinSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float GrabRounding => ref Unsafe.AsRef<float>(&Handle->GrabRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float LogSliderDeadzone => ref Unsafe.AsRef<float>(&Handle->LogSliderDeadzone); - /// <summary> - /// To be documented. - /// </summary> - public ref float TabRounding => ref Unsafe.AsRef<float>(&Handle->TabRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float TabBorderSize => ref Unsafe.AsRef<float>(&Handle->TabBorderSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float TabMinWidthForCloseButton => ref Unsafe.AsRef<float>(&Handle->TabMinWidthForCloseButton); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDir ColorButtonPosition => ref Unsafe.AsRef<ImGuiDir>(&Handle->ColorButtonPosition); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ButtonTextAlign => ref Unsafe.AsRef<Vector2>(&Handle->ButtonTextAlign); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 SelectableTextAlign => ref Unsafe.AsRef<Vector2>(&Handle->SelectableTextAlign); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 DisplayWindowPadding => ref Unsafe.AsRef<Vector2>(&Handle->DisplayWindowPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 DisplaySafeAreaPadding => ref Unsafe.AsRef<Vector2>(&Handle->DisplaySafeAreaPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref float MouseCursorScale => ref Unsafe.AsRef<float>(&Handle->MouseCursorScale); - /// <summary> - /// To be documented. - /// </summary> - public ref bool AntiAliasedLines => ref Unsafe.AsRef<bool>(&Handle->AntiAliasedLines); - /// <summary> - /// To be documented. - /// </summary> - public ref bool AntiAliasedLinesUseTex => ref Unsafe.AsRef<bool>(&Handle->AntiAliasedLinesUseTex); - /// <summary> - /// To be documented. - /// </summary> - public ref bool AntiAliasedFill => ref Unsafe.AsRef<bool>(&Handle->AntiAliasedFill); - /// <summary> - /// To be documented. - /// </summary> - public ref float CurveTessellationTol => ref Unsafe.AsRef<float>(&Handle->CurveTessellationTol); - /// <summary> - /// To be documented. - /// </summary> - public ref float CircleTessellationMaxError => ref Unsafe.AsRef<float>(&Handle->CircleTessellationMaxError); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> Colors - - { - get - { - return new Span<Vector4>(&Handle->Colors_0, 55); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ScaleAllSizes(float scaleFactor) - { - ImGui.ScaleAllSizesNative(Handle, scaleFactor); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs deleted file mode 100644 index 90fbe1204..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiStyleMod.cs +++ /dev/null @@ -1,178 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStyleMod - { - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Explicit)] - public partial struct ImGuiStyleModUnion - { - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public int BackupInt_0; - [FieldOffset(8)] - public int BackupInt_1; - - /// <summary> - /// To be documented. - /// </summary> - [FieldOffset(0)] - public float BackupFloat_0; - [FieldOffset(8)] - public float BackupFloat_1; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStyleModUnion(int* backupInt = default, float* backupFloat = default) - { - if (backupInt != default(int*)) - { - BackupInt_0 = backupInt[0]; - BackupInt_1 = backupInt[1]; - } - if (backupFloat != default(float*)) - { - BackupFloat_0 = backupFloat[0]; - BackupFloat_1 = backupFloat[1]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStyleModUnion(Span<int> backupInt = default, Span<float> backupFloat = default) - { - if (backupInt != default(Span<int>)) - { - BackupInt_0 = backupInt[0]; - BackupInt_1 = backupInt[1]; - } - if (backupFloat != default(Span<float>)) - { - BackupFloat_0 = backupFloat[0]; - BackupFloat_1 = backupFloat[1]; - } - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStyleVar VarIdx; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStyleModUnion Union; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStyleMod(ImGuiStyleVar varIdx = default, ImGuiStyleModUnion union = default) - { - VarIdx = varIdx; - Union = union; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiStyleMod* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiStyleModPtr : IEquatable<ImGuiStyleModPtr> - { - public ImGuiStyleModPtr(ImGuiStyleMod* handle) { Handle = handle; } - - public ImGuiStyleMod* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiStyleModPtr Null => new ImGuiStyleModPtr(null); - - public ImGuiStyleMod this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiStyleModPtr(ImGuiStyleMod* handle) => new ImGuiStyleModPtr(handle); - - public static implicit operator ImGuiStyleMod*(ImGuiStyleModPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleModPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle == right; - - public static bool operator !=(ImGuiStyleModPtr left, ImGuiStyleMod* right) => left.Handle != right; - - public bool Equals(ImGuiStyleModPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiStyleModPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiStyleModPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStyleVar VarIdx => ref Unsafe.AsRef<ImGuiStyleVar>(&Handle->VarIdx); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStyleMod.ImGuiStyleModUnion Union => ref Unsafe.AsRef<ImGuiStyleMod.ImGuiStyleModUnion>(&Handle->Union); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs deleted file mode 100644 index e2ad5f169..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabBar.cs +++ /dev/null @@ -1,408 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTabBar - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiTabItem> Tabs; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTabBarFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public uint SelectedTabId; - - /// <summary> - /// To be documented. - /// </summary> - public uint NextSelectedTabId; - - /// <summary> - /// To be documented. - /// </summary> - public uint VisibleTabId; - - /// <summary> - /// To be documented. - /// </summary> - public int CurrFrameVisible; - - /// <summary> - /// To be documented. - /// </summary> - public int PrevFrameVisible; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect BarRect; - - /// <summary> - /// To be documented. - /// </summary> - public float CurrTabsContentsHeight; - - /// <summary> - /// To be documented. - /// </summary> - public float PrevTabsContentsHeight; - - /// <summary> - /// To be documented. - /// </summary> - public float WidthAllTabs; - - /// <summary> - /// To be documented. - /// </summary> - public float WidthAllTabsIdeal; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollingAnim; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollingTarget; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollingTargetDistToVisibility; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollingSpeed; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollingRectMinX; - - /// <summary> - /// To be documented. - /// </summary> - public float ScrollingRectMaxX; - - /// <summary> - /// To be documented. - /// </summary> - public uint ReorderRequestTabId; - - /// <summary> - /// To be documented. - /// </summary> - public short ReorderRequestOffset; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte BeginCount; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantLayout; - - /// <summary> - /// To be documented. - /// </summary> - public byte VisibleTabWasSubmitted; - - /// <summary> - /// To be documented. - /// </summary> - public byte TabsAddedNew; - - /// <summary> - /// To be documented. - /// </summary> - public short TabsActiveCount; - - /// <summary> - /// To be documented. - /// </summary> - public short LastTabItemIdx; - - /// <summary> - /// To be documented. - /// </summary> - public float ItemSpacingY; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 FramePadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BackupCursorPos; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer TabsNames; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTabBar(ImVector<ImGuiTabItem> tabs = default, ImGuiTabBarFlags flags = default, uint id = default, uint selectedTabId = default, uint nextSelectedTabId = default, uint visibleTabId = default, int currFrameVisible = default, int prevFrameVisible = default, ImRect barRect = default, float currTabsContentsHeight = default, float prevTabsContentsHeight = default, float widthAllTabs = default, float widthAllTabsIdeal = default, float scrollingAnim = default, float scrollingTarget = default, float scrollingTargetDistToVisibility = default, float scrollingSpeed = default, float scrollingRectMinX = default, float scrollingRectMaxX = default, uint reorderRequestTabId = default, short reorderRequestOffset = default, sbyte beginCount = default, bool wantLayout = default, bool visibleTabWasSubmitted = default, bool tabsAddedNew = default, short tabsActiveCount = default, short lastTabItemIdx = default, float itemSpacingY = default, Vector2 framePadding = default, Vector2 backupCursorPos = default, ImGuiTextBuffer tabsNames = default) - { - Tabs = tabs; - Flags = flags; - ID = id; - SelectedTabId = selectedTabId; - NextSelectedTabId = nextSelectedTabId; - VisibleTabId = visibleTabId; - CurrFrameVisible = currFrameVisible; - PrevFrameVisible = prevFrameVisible; - BarRect = barRect; - CurrTabsContentsHeight = currTabsContentsHeight; - PrevTabsContentsHeight = prevTabsContentsHeight; - WidthAllTabs = widthAllTabs; - WidthAllTabsIdeal = widthAllTabsIdeal; - ScrollingAnim = scrollingAnim; - ScrollingTarget = scrollingTarget; - ScrollingTargetDistToVisibility = scrollingTargetDistToVisibility; - ScrollingSpeed = scrollingSpeed; - ScrollingRectMinX = scrollingRectMinX; - ScrollingRectMaxX = scrollingRectMaxX; - ReorderRequestTabId = reorderRequestTabId; - ReorderRequestOffset = reorderRequestOffset; - BeginCount = beginCount; - WantLayout = wantLayout ? (byte)1 : (byte)0; - VisibleTabWasSubmitted = visibleTabWasSubmitted ? (byte)1 : (byte)0; - TabsAddedNew = tabsAddedNew ? (byte)1 : (byte)0; - TabsActiveCount = tabsActiveCount; - LastTabItemIdx = lastTabItemIdx; - ItemSpacingY = itemSpacingY; - FramePadding = framePadding; - BackupCursorPos = backupCursorPos; - TabsNames = tabsNames; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTabBar* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTabBarPtr : IEquatable<ImGuiTabBarPtr> - { - public ImGuiTabBarPtr(ImGuiTabBar* handle) { Handle = handle; } - - public ImGuiTabBar* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTabBarPtr Null => new ImGuiTabBarPtr(null); - - public ImGuiTabBar this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTabBarPtr(ImGuiTabBar* handle) => new ImGuiTabBarPtr(handle); - - public static implicit operator ImGuiTabBar*(ImGuiTabBarPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBarPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle == right; - - public static bool operator !=(ImGuiTabBarPtr left, ImGuiTabBar* right) => left.Handle != right; - - public bool Equals(ImGuiTabBarPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTabBarPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTabBarPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiTabItem> Tabs => ref Unsafe.AsRef<ImVector<ImGuiTabItem>>(&Handle->Tabs); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTabBarFlags Flags => ref Unsafe.AsRef<ImGuiTabBarFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref uint SelectedTabId => ref Unsafe.AsRef<uint>(&Handle->SelectedTabId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint NextSelectedTabId => ref Unsafe.AsRef<uint>(&Handle->NextSelectedTabId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint VisibleTabId => ref Unsafe.AsRef<uint>(&Handle->VisibleTabId); - /// <summary> - /// To be documented. - /// </summary> - public ref int CurrFrameVisible => ref Unsafe.AsRef<int>(&Handle->CurrFrameVisible); - /// <summary> - /// To be documented. - /// </summary> - public ref int PrevFrameVisible => ref Unsafe.AsRef<int>(&Handle->PrevFrameVisible); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect BarRect => ref Unsafe.AsRef<ImRect>(&Handle->BarRect); - /// <summary> - /// To be documented. - /// </summary> - public ref float CurrTabsContentsHeight => ref Unsafe.AsRef<float>(&Handle->CurrTabsContentsHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float PrevTabsContentsHeight => ref Unsafe.AsRef<float>(&Handle->PrevTabsContentsHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float WidthAllTabs => ref Unsafe.AsRef<float>(&Handle->WidthAllTabs); - /// <summary> - /// To be documented. - /// </summary> - public ref float WidthAllTabsIdeal => ref Unsafe.AsRef<float>(&Handle->WidthAllTabsIdeal); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollingAnim => ref Unsafe.AsRef<float>(&Handle->ScrollingAnim); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollingTarget => ref Unsafe.AsRef<float>(&Handle->ScrollingTarget); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollingTargetDistToVisibility => ref Unsafe.AsRef<float>(&Handle->ScrollingTargetDistToVisibility); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollingSpeed => ref Unsafe.AsRef<float>(&Handle->ScrollingSpeed); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollingRectMinX => ref Unsafe.AsRef<float>(&Handle->ScrollingRectMinX); - /// <summary> - /// To be documented. - /// </summary> - public ref float ScrollingRectMaxX => ref Unsafe.AsRef<float>(&Handle->ScrollingRectMaxX); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ReorderRequestTabId => ref Unsafe.AsRef<uint>(&Handle->ReorderRequestTabId); - /// <summary> - /// To be documented. - /// </summary> - public ref short ReorderRequestOffset => ref Unsafe.AsRef<short>(&Handle->ReorderRequestOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte BeginCount => ref Unsafe.AsRef<sbyte>(&Handle->BeginCount); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantLayout => ref Unsafe.AsRef<bool>(&Handle->WantLayout); - /// <summary> - /// To be documented. - /// </summary> - public ref bool VisibleTabWasSubmitted => ref Unsafe.AsRef<bool>(&Handle->VisibleTabWasSubmitted); - /// <summary> - /// To be documented. - /// </summary> - public ref bool TabsAddedNew => ref Unsafe.AsRef<bool>(&Handle->TabsAddedNew); - /// <summary> - /// To be documented. - /// </summary> - public ref short TabsActiveCount => ref Unsafe.AsRef<short>(&Handle->TabsActiveCount); - /// <summary> - /// To be documented. - /// </summary> - public ref short LastTabItemIdx => ref Unsafe.AsRef<short>(&Handle->LastTabItemIdx); - /// <summary> - /// To be documented. - /// </summary> - public ref float ItemSpacingY => ref Unsafe.AsRef<float>(&Handle->ItemSpacingY); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 FramePadding => ref Unsafe.AsRef<Vector2>(&Handle->FramePadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BackupCursorPos => ref Unsafe.AsRef<Vector2>(&Handle->BackupCursorPos); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer TabsNames => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TabsNames); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs deleted file mode 100644 index ecb52d50c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTabItem.cs +++ /dev/null @@ -1,228 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTabItem - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTabItemFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* Window; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameVisible; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameSelected; - - /// <summary> - /// To be documented. - /// </summary> - public float Offset; - - /// <summary> - /// To be documented. - /// </summary> - public float Width; - - /// <summary> - /// To be documented. - /// </summary> - public float ContentWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float RequestedWidth; - - /// <summary> - /// To be documented. - /// </summary> - public int NameOffset; - - /// <summary> - /// To be documented. - /// </summary> - public short BeginOrder; - - /// <summary> - /// To be documented. - /// </summary> - public short IndexDuringLayout; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantClose; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTabItem(uint id = default, ImGuiTabItemFlags flags = default, ImGuiWindowPtr window = default, int lastFrameVisible = default, int lastFrameSelected = default, float offset = default, float width = default, float contentWidth = default, float requestedWidth = default, int nameOffset = default, short beginOrder = default, short indexDuringLayout = default, bool wantClose = default) - { - ID = id; - Flags = flags; - Window = window; - LastFrameVisible = lastFrameVisible; - LastFrameSelected = lastFrameSelected; - Offset = offset; - Width = width; - ContentWidth = contentWidth; - RequestedWidth = requestedWidth; - NameOffset = nameOffset; - BeginOrder = beginOrder; - IndexDuringLayout = indexDuringLayout; - WantClose = wantClose ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTabItem* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTabItemPtr : IEquatable<ImGuiTabItemPtr> - { - public ImGuiTabItemPtr(ImGuiTabItem* handle) { Handle = handle; } - - public ImGuiTabItem* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTabItemPtr Null => new ImGuiTabItemPtr(null); - - public ImGuiTabItem this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTabItemPtr(ImGuiTabItem* handle) => new ImGuiTabItemPtr(handle); - - public static implicit operator ImGuiTabItem*(ImGuiTabItemPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItemPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle == right; - - public static bool operator !=(ImGuiTabItemPtr left, ImGuiTabItem* right) => left.Handle != right; - - public bool Equals(ImGuiTabItemPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTabItemPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTabItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTabItemFlags Flags => ref Unsafe.AsRef<ImGuiTabItemFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameVisible => ref Unsafe.AsRef<int>(&Handle->LastFrameVisible); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameSelected => ref Unsafe.AsRef<int>(&Handle->LastFrameSelected); - /// <summary> - /// To be documented. - /// </summary> - public ref float Offset => ref Unsafe.AsRef<float>(&Handle->Offset); - /// <summary> - /// To be documented. - /// </summary> - public ref float Width => ref Unsafe.AsRef<float>(&Handle->Width); - /// <summary> - /// To be documented. - /// </summary> - public ref float ContentWidth => ref Unsafe.AsRef<float>(&Handle->ContentWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref float RequestedWidth => ref Unsafe.AsRef<float>(&Handle->RequestedWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref int NameOffset => ref Unsafe.AsRef<int>(&Handle->NameOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref short BeginOrder => ref Unsafe.AsRef<short>(&Handle->BeginOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref short IndexDuringLayout => ref Unsafe.AsRef<short>(&Handle->IndexDuringLayout); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantClose => ref Unsafe.AsRef<bool>(&Handle->WantClose); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs deleted file mode 100644 index f57d974c8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTable.cs +++ /dev/null @@ -1,1241 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTable - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* RawData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableTempData* TempData; - - /// <summary> - /// To be documented. - /// </summary> - public ImSpanImGuiTableColumn Columns; - - /// <summary> - /// To be documented. - /// </summary> - public ImSpanImGuiTableColumnIdx DisplayOrderToIndex; - - /// <summary> - /// To be documented. - /// </summary> - public ImSpanImGuiTableCellData RowCellData; - - /// <summary> - /// To be documented. - /// </summary> - public ulong EnabledMaskByDisplayOrder; - - /// <summary> - /// To be documented. - /// </summary> - public ulong EnabledMaskByIndex; - - /// <summary> - /// To be documented. - /// </summary> - public ulong VisibleMaskByIndex; - - /// <summary> - /// To be documented. - /// </summary> - public ulong RequestOutputMaskByIndex; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableFlags SettingsLoadedFlags; - - /// <summary> - /// To be documented. - /// </summary> - public int SettingsOffset; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameActive; - - /// <summary> - /// To be documented. - /// </summary> - public int ColumnsCount; - - /// <summary> - /// To be documented. - /// </summary> - public int CurrentRow; - - /// <summary> - /// To be documented. - /// </summary> - public int CurrentColumn; - - /// <summary> - /// To be documented. - /// </summary> - public short InstanceCurrent; - - /// <summary> - /// To be documented. - /// </summary> - public short InstanceInteracted; - - /// <summary> - /// To be documented. - /// </summary> - public float RowPosY1; - - /// <summary> - /// To be documented. - /// </summary> - public float RowPosY2; - - /// <summary> - /// To be documented. - /// </summary> - public float RowMinHeight; - - /// <summary> - /// To be documented. - /// </summary> - public float RowTextBaseline; - - /// <summary> - /// To be documented. - /// </summary> - public float RowIndentOffsetX; - - public ImGuiTableRowFlags RawBits0; - /// <summary> - /// To be documented. - /// </summary> - public int RowBgColorCounter; - - /// <summary> - /// To be documented. - /// </summary> - public uint RowBgColor_0; - public uint RowBgColor_1; - - /// <summary> - /// To be documented. - /// </summary> - public uint BorderColorStrong; - - /// <summary> - /// To be documented. - /// </summary> - public uint BorderColorLight; - - /// <summary> - /// To be documented. - /// </summary> - public float BorderX1; - - /// <summary> - /// To be documented. - /// </summary> - public float BorderX2; - - /// <summary> - /// To be documented. - /// </summary> - public float HostIndentX; - - /// <summary> - /// To be documented. - /// </summary> - public float MinColumnWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float OuterPaddingX; - - /// <summary> - /// To be documented. - /// </summary> - public float CellPaddingX; - - /// <summary> - /// To be documented. - /// </summary> - public float CellPaddingY; - - /// <summary> - /// To be documented. - /// </summary> - public float CellSpacingX1; - - /// <summary> - /// To be documented. - /// </summary> - public float CellSpacingX2; - - /// <summary> - /// To be documented. - /// </summary> - public float InnerWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float ColumnsGivenWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float ColumnsAutoFitWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float ColumnsStretchSumWeights; - - /// <summary> - /// To be documented. - /// </summary> - public float ResizedColumnNextWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float ResizeLockMinContentsX2; - - /// <summary> - /// To be documented. - /// </summary> - public float RefScale; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect OuterRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect InnerRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect WorkRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect InnerClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect BgClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect Bg0ClipRectForDrawCmd; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect Bg2ClipRectForDrawCmd; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HostClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HostBackupInnerClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* OuterWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* InnerWindow; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer ColumnsNames; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawListSplitter* DrawSplitter; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableInstanceData InstanceDataFirst; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiTableInstanceData> InstanceDataExtra; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableColumnSortSpecs SortSpecsSingle; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiTableColumnSortSpecs> SortSpecsMulti; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableSortSpecs SortSpecs; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte SortSpecsCount; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ColumnsEnabledCount; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ColumnsEnabledFixedCount; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte DeclColumnsCount; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte HoveredColumnBody; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte HoveredColumnBorder; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte AutoFitSingleColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ResizedColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte LastResizedColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte HeldHeaderColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ReorderColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ReorderColumnDir; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte LeftMostEnabledColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte RightMostEnabledColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte LeftMostStretchedColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte RightMostStretchedColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ContextPopupColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte FreezeRowsRequest; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte FreezeRowsCount; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte FreezeColumnsRequest; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte FreezeColumnsCount; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte RowCellDataCurrent; - - /// <summary> - /// To be documented. - /// </summary> - public byte DummyDrawChannel; - - /// <summary> - /// To be documented. - /// </summary> - public byte Bg2DrawChannelCurrent; - - /// <summary> - /// To be documented. - /// </summary> - public byte Bg2DrawChannelUnfrozen; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsLayoutLocked; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsInsideRow; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsInitializing; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsSortSpecsDirty; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsUsingHeaders; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsContextPopupOpen; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsSettingsRequestLoad; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsSettingsDirty; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsDefaultDisplayOrder; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsResetAllRequest; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsResetDisplayOrderRequest; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsUnfrozenRows; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsDefaultSizingPolicy; - - /// <summary> - /// To be documented. - /// </summary> - public byte MemoryCompacted; - - /// <summary> - /// To be documented. - /// </summary> - public byte HostSkipItems; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, uint* rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector<ImGuiTableInstanceData> instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector<ImGuiTableColumnSortSpecs> sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) - { - ID = id; - Flags = flags; - RawData = rawData; - TempData = tempData; - Columns = columns; - DisplayOrderToIndex = displayOrderToIndex; - RowCellData = rowCellData; - EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; - EnabledMaskByIndex = enabledMaskByIndex; - VisibleMaskByIndex = visibleMaskByIndex; - RequestOutputMaskByIndex = requestOutputMaskByIndex; - SettingsLoadedFlags = settingsLoadedFlags; - SettingsOffset = settingsOffset; - LastFrameActive = lastFrameActive; - ColumnsCount = columnsCount; - CurrentRow = currentRow; - CurrentColumn = currentColumn; - InstanceCurrent = instanceCurrent; - InstanceInteracted = instanceInteracted; - RowPosY1 = rowPosY1; - RowPosY2 = rowPosY2; - RowMinHeight = rowMinHeight; - RowTextBaseline = rowTextBaseline; - RowIndentOffsetX = rowIndentOffsetX; - RowFlags = rowFlags; - LastRowFlags = lastRowFlags; - RowBgColorCounter = rowBgColorCounter; - if (rowBgColor != default(uint*)) - { - RowBgColor_0 = rowBgColor[0]; - RowBgColor_1 = rowBgColor[1]; - } - BorderColorStrong = borderColorStrong; - BorderColorLight = borderColorLight; - BorderX1 = borderX1; - BorderX2 = borderX2; - HostIndentX = hostIndentX; - MinColumnWidth = minColumnWidth; - OuterPaddingX = outerPaddingX; - CellPaddingX = cellPaddingX; - CellPaddingY = cellPaddingY; - CellSpacingX1 = cellSpacingX1; - CellSpacingX2 = cellSpacingX2; - InnerWidth = innerWidth; - ColumnsGivenWidth = columnsGivenWidth; - ColumnsAutoFitWidth = columnsAutoFitWidth; - ColumnsStretchSumWeights = columnsStretchSumWeights; - ResizedColumnNextWidth = resizedColumnNextWidth; - ResizeLockMinContentsX2 = resizeLockMinContentsX2; - RefScale = refScale; - OuterRect = outerRect; - InnerRect = innerRect; - WorkRect = workRect; - InnerClipRect = innerClipRect; - BgClipRect = bgClipRect; - Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; - Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; - HostClipRect = hostClipRect; - HostBackupInnerClipRect = hostBackupInnerClipRect; - OuterWindow = outerWindow; - InnerWindow = innerWindow; - ColumnsNames = columnsNames; - DrawSplitter = drawSplitter; - InstanceDataFirst = instanceDataFirst; - InstanceDataExtra = instanceDataExtra; - SortSpecsSingle = sortSpecsSingle; - SortSpecsMulti = sortSpecsMulti; - SortSpecs = sortSpecs; - SortSpecsCount = sortSpecsCount; - ColumnsEnabledCount = columnsEnabledCount; - ColumnsEnabledFixedCount = columnsEnabledFixedCount; - DeclColumnsCount = declColumnsCount; - HoveredColumnBody = hoveredColumnBody; - HoveredColumnBorder = hoveredColumnBorder; - AutoFitSingleColumn = autoFitSingleColumn; - ResizedColumn = resizedColumn; - LastResizedColumn = lastResizedColumn; - HeldHeaderColumn = heldHeaderColumn; - ReorderColumn = reorderColumn; - ReorderColumnDir = reorderColumnDir; - LeftMostEnabledColumn = leftMostEnabledColumn; - RightMostEnabledColumn = rightMostEnabledColumn; - LeftMostStretchedColumn = leftMostStretchedColumn; - RightMostStretchedColumn = rightMostStretchedColumn; - ContextPopupColumn = contextPopupColumn; - FreezeRowsRequest = freezeRowsRequest; - FreezeRowsCount = freezeRowsCount; - FreezeColumnsRequest = freezeColumnsRequest; - FreezeColumnsCount = freezeColumnsCount; - RowCellDataCurrent = rowCellDataCurrent; - DummyDrawChannel = dummyDrawChannel; - Bg2DrawChannelCurrent = bg2DrawChannelCurrent; - Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; - IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; - IsInsideRow = isInsideRow ? (byte)1 : (byte)0; - IsInitializing = isInitializing ? (byte)1 : (byte)0; - IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; - IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; - IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; - IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; - IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; - IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; - IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; - IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; - IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; - IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTable(uint id = default, ImGuiTableFlags flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ulong enabledMaskByDisplayOrder = default, ulong enabledMaskByIndex = default, ulong visibleMaskByIndex = default, ulong requestOutputMaskByIndex = default, ImGuiTableFlags settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowTextBaseline = default, float rowIndentOffsetX = default, ImGuiTableRowFlags rowFlags = default, ImGuiTableRowFlags lastRowFlags = default, int rowBgColorCounter = default, Span<uint> rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellPaddingY = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindowPtr outerWindow = default, ImGuiWindowPtr innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitterPtr drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVector<ImGuiTableInstanceData> instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVector<ImGuiTableColumnSortSpecs> sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool memoryCompacted = default, bool hostSkipItems = default) - { - ID = id; - Flags = flags; - RawData = rawData; - TempData = tempData; - Columns = columns; - DisplayOrderToIndex = displayOrderToIndex; - RowCellData = rowCellData; - EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; - EnabledMaskByIndex = enabledMaskByIndex; - VisibleMaskByIndex = visibleMaskByIndex; - RequestOutputMaskByIndex = requestOutputMaskByIndex; - SettingsLoadedFlags = settingsLoadedFlags; - SettingsOffset = settingsOffset; - LastFrameActive = lastFrameActive; - ColumnsCount = columnsCount; - CurrentRow = currentRow; - CurrentColumn = currentColumn; - InstanceCurrent = instanceCurrent; - InstanceInteracted = instanceInteracted; - RowPosY1 = rowPosY1; - RowPosY2 = rowPosY2; - RowMinHeight = rowMinHeight; - RowTextBaseline = rowTextBaseline; - RowIndentOffsetX = rowIndentOffsetX; - RowFlags = rowFlags; - LastRowFlags = lastRowFlags; - RowBgColorCounter = rowBgColorCounter; - if (rowBgColor != default(Span<uint>)) - { - RowBgColor_0 = rowBgColor[0]; - RowBgColor_1 = rowBgColor[1]; - } - BorderColorStrong = borderColorStrong; - BorderColorLight = borderColorLight; - BorderX1 = borderX1; - BorderX2 = borderX2; - HostIndentX = hostIndentX; - MinColumnWidth = minColumnWidth; - OuterPaddingX = outerPaddingX; - CellPaddingX = cellPaddingX; - CellPaddingY = cellPaddingY; - CellSpacingX1 = cellSpacingX1; - CellSpacingX2 = cellSpacingX2; - InnerWidth = innerWidth; - ColumnsGivenWidth = columnsGivenWidth; - ColumnsAutoFitWidth = columnsAutoFitWidth; - ColumnsStretchSumWeights = columnsStretchSumWeights; - ResizedColumnNextWidth = resizedColumnNextWidth; - ResizeLockMinContentsX2 = resizeLockMinContentsX2; - RefScale = refScale; - OuterRect = outerRect; - InnerRect = innerRect; - WorkRect = workRect; - InnerClipRect = innerClipRect; - BgClipRect = bgClipRect; - Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; - Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; - HostClipRect = hostClipRect; - HostBackupInnerClipRect = hostBackupInnerClipRect; - OuterWindow = outerWindow; - InnerWindow = innerWindow; - ColumnsNames = columnsNames; - DrawSplitter = drawSplitter; - InstanceDataFirst = instanceDataFirst; - InstanceDataExtra = instanceDataExtra; - SortSpecsSingle = sortSpecsSingle; - SortSpecsMulti = sortSpecsMulti; - SortSpecs = sortSpecs; - SortSpecsCount = sortSpecsCount; - ColumnsEnabledCount = columnsEnabledCount; - ColumnsEnabledFixedCount = columnsEnabledFixedCount; - DeclColumnsCount = declColumnsCount; - HoveredColumnBody = hoveredColumnBody; - HoveredColumnBorder = hoveredColumnBorder; - AutoFitSingleColumn = autoFitSingleColumn; - ResizedColumn = resizedColumn; - LastResizedColumn = lastResizedColumn; - HeldHeaderColumn = heldHeaderColumn; - ReorderColumn = reorderColumn; - ReorderColumnDir = reorderColumnDir; - LeftMostEnabledColumn = leftMostEnabledColumn; - RightMostEnabledColumn = rightMostEnabledColumn; - LeftMostStretchedColumn = leftMostStretchedColumn; - RightMostStretchedColumn = rightMostStretchedColumn; - ContextPopupColumn = contextPopupColumn; - FreezeRowsRequest = freezeRowsRequest; - FreezeRowsCount = freezeRowsCount; - FreezeColumnsRequest = freezeColumnsRequest; - FreezeColumnsCount = freezeColumnsCount; - RowCellDataCurrent = rowCellDataCurrent; - DummyDrawChannel = dummyDrawChannel; - Bg2DrawChannelCurrent = bg2DrawChannelCurrent; - Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; - IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; - IsInsideRow = isInsideRow ? (byte)1 : (byte)0; - IsInitializing = isInitializing ? (byte)1 : (byte)0; - IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; - IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; - IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; - IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; - IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; - IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; - IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; - IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; - IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; - IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; - } - - - public ImGuiTableRowFlags RowFlags { get => Bitfield.Get(RawBits0, 0, 16); set => Bitfield.Set(ref RawBits0, value, 0, 16); } - - public ImGuiTableRowFlags LastRowFlags { get => Bitfield.Get(RawBits0, 16, 16); set => Bitfield.Set(ref RawBits0, value, 16, 16); } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTablePtr : IEquatable<ImGuiTablePtr> - { - public ImGuiTablePtr(ImGuiTable* handle) { Handle = handle; } - - public ImGuiTable* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTablePtr Null => new ImGuiTablePtr(null); - - public ImGuiTable this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTablePtr(ImGuiTable* handle) => new ImGuiTablePtr(handle); - - public static implicit operator ImGuiTable*(ImGuiTablePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTablePtr left, ImGuiTablePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTablePtr left, ImGuiTable* right) => left.Handle == right; - - public static bool operator !=(ImGuiTablePtr left, ImGuiTable* right) => left.Handle != right; - - public bool Equals(ImGuiTablePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTablePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTablePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableFlags Flags => ref Unsafe.AsRef<ImGuiTableFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public void* RawData { get => Handle->RawData; set => Handle->RawData = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableTempDataPtr TempData => ref Unsafe.AsRef<ImGuiTableTempDataPtr>(&Handle->TempData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImSpanImGuiTableColumn Columns => ref Unsafe.AsRef<ImSpanImGuiTableColumn>(&Handle->Columns); - /// <summary> - /// To be documented. - /// </summary> - public ref ImSpanImGuiTableColumnIdx DisplayOrderToIndex => ref Unsafe.AsRef<ImSpanImGuiTableColumnIdx>(&Handle->DisplayOrderToIndex); - /// <summary> - /// To be documented. - /// </summary> - public ref ImSpanImGuiTableCellData RowCellData => ref Unsafe.AsRef<ImSpanImGuiTableCellData>(&Handle->RowCellData); - /// <summary> - /// To be documented. - /// </summary> - public ref ulong EnabledMaskByDisplayOrder => ref Unsafe.AsRef<ulong>(&Handle->EnabledMaskByDisplayOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref ulong EnabledMaskByIndex => ref Unsafe.AsRef<ulong>(&Handle->EnabledMaskByIndex); - /// <summary> - /// To be documented. - /// </summary> - public ref ulong VisibleMaskByIndex => ref Unsafe.AsRef<ulong>(&Handle->VisibleMaskByIndex); - /// <summary> - /// To be documented. - /// </summary> - public ref ulong RequestOutputMaskByIndex => ref Unsafe.AsRef<ulong>(&Handle->RequestOutputMaskByIndex); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableFlags SettingsLoadedFlags => ref Unsafe.AsRef<ImGuiTableFlags>(&Handle->SettingsLoadedFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref int SettingsOffset => ref Unsafe.AsRef<int>(&Handle->SettingsOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - /// <summary> - /// To be documented. - /// </summary> - public ref int ColumnsCount => ref Unsafe.AsRef<int>(&Handle->ColumnsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref int CurrentRow => ref Unsafe.AsRef<int>(&Handle->CurrentRow); - /// <summary> - /// To be documented. - /// </summary> - public ref int CurrentColumn => ref Unsafe.AsRef<int>(&Handle->CurrentColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref short InstanceCurrent => ref Unsafe.AsRef<short>(&Handle->InstanceCurrent); - /// <summary> - /// To be documented. - /// </summary> - public ref short InstanceInteracted => ref Unsafe.AsRef<short>(&Handle->InstanceInteracted); - /// <summary> - /// To be documented. - /// </summary> - public ref float RowPosY1 => ref Unsafe.AsRef<float>(&Handle->RowPosY1); - /// <summary> - /// To be documented. - /// </summary> - public ref float RowPosY2 => ref Unsafe.AsRef<float>(&Handle->RowPosY2); - /// <summary> - /// To be documented. - /// </summary> - public ref float RowMinHeight => ref Unsafe.AsRef<float>(&Handle->RowMinHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float RowTextBaseline => ref Unsafe.AsRef<float>(&Handle->RowTextBaseline); - /// <summary> - /// To be documented. - /// </summary> - public ref float RowIndentOffsetX => ref Unsafe.AsRef<float>(&Handle->RowIndentOffsetX); - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableRowFlags RowFlags { get => Handle->RowFlags; set => Handle->RowFlags = value; } - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableRowFlags LastRowFlags { get => Handle->LastRowFlags; set => Handle->LastRowFlags = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref int RowBgColorCounter => ref Unsafe.AsRef<int>(&Handle->RowBgColorCounter); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<uint> RowBgColor - - { - get - { - return new Span<uint>(&Handle->RowBgColor_0, 2); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref uint BorderColorStrong => ref Unsafe.AsRef<uint>(&Handle->BorderColorStrong); - /// <summary> - /// To be documented. - /// </summary> - public ref uint BorderColorLight => ref Unsafe.AsRef<uint>(&Handle->BorderColorLight); - /// <summary> - /// To be documented. - /// </summary> - public ref float BorderX1 => ref Unsafe.AsRef<float>(&Handle->BorderX1); - /// <summary> - /// To be documented. - /// </summary> - public ref float BorderX2 => ref Unsafe.AsRef<float>(&Handle->BorderX2); - /// <summary> - /// To be documented. - /// </summary> - public ref float HostIndentX => ref Unsafe.AsRef<float>(&Handle->HostIndentX); - /// <summary> - /// To be documented. - /// </summary> - public ref float MinColumnWidth => ref Unsafe.AsRef<float>(&Handle->MinColumnWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref float OuterPaddingX => ref Unsafe.AsRef<float>(&Handle->OuterPaddingX); - /// <summary> - /// To be documented. - /// </summary> - public ref float CellPaddingX => ref Unsafe.AsRef<float>(&Handle->CellPaddingX); - /// <summary> - /// To be documented. - /// </summary> - public ref float CellPaddingY => ref Unsafe.AsRef<float>(&Handle->CellPaddingY); - /// <summary> - /// To be documented. - /// </summary> - public ref float CellSpacingX1 => ref Unsafe.AsRef<float>(&Handle->CellSpacingX1); - /// <summary> - /// To be documented. - /// </summary> - public ref float CellSpacingX2 => ref Unsafe.AsRef<float>(&Handle->CellSpacingX2); - /// <summary> - /// To be documented. - /// </summary> - public ref float InnerWidth => ref Unsafe.AsRef<float>(&Handle->InnerWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref float ColumnsGivenWidth => ref Unsafe.AsRef<float>(&Handle->ColumnsGivenWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref float ColumnsAutoFitWidth => ref Unsafe.AsRef<float>(&Handle->ColumnsAutoFitWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref float ColumnsStretchSumWeights => ref Unsafe.AsRef<float>(&Handle->ColumnsStretchSumWeights); - /// <summary> - /// To be documented. - /// </summary> - public ref float ResizedColumnNextWidth => ref Unsafe.AsRef<float>(&Handle->ResizedColumnNextWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref float ResizeLockMinContentsX2 => ref Unsafe.AsRef<float>(&Handle->ResizeLockMinContentsX2); - /// <summary> - /// To be documented. - /// </summary> - public ref float RefScale => ref Unsafe.AsRef<float>(&Handle->RefScale); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect OuterRect => ref Unsafe.AsRef<ImRect>(&Handle->OuterRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect InnerRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect WorkRect => ref Unsafe.AsRef<ImRect>(&Handle->WorkRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect InnerClipRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect BgClipRect => ref Unsafe.AsRef<ImRect>(&Handle->BgClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect Bg0ClipRectForDrawCmd => ref Unsafe.AsRef<ImRect>(&Handle->Bg0ClipRectForDrawCmd); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect Bg2ClipRectForDrawCmd => ref Unsafe.AsRef<ImRect>(&Handle->Bg2ClipRectForDrawCmd); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HostClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HostBackupInnerClipRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupInnerClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr OuterWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->OuterWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr InnerWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->InnerWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer ColumnsNames => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->ColumnsNames); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListSplitterPtr DrawSplitter => ref Unsafe.AsRef<ImDrawListSplitterPtr>(&Handle->DrawSplitter); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableInstanceData InstanceDataFirst => ref Unsafe.AsRef<ImGuiTableInstanceData>(&Handle->InstanceDataFirst); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiTableInstanceData> InstanceDataExtra => ref Unsafe.AsRef<ImVector<ImGuiTableInstanceData>>(&Handle->InstanceDataExtra); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableColumnSortSpecs SortSpecsSingle => ref Unsafe.AsRef<ImGuiTableColumnSortSpecs>(&Handle->SortSpecsSingle); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiTableColumnSortSpecs> SortSpecsMulti => ref Unsafe.AsRef<ImVector<ImGuiTableColumnSortSpecs>>(&Handle->SortSpecsMulti); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableSortSpecs SortSpecs => ref Unsafe.AsRef<ImGuiTableSortSpecs>(&Handle->SortSpecs); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte SortSpecsCount => ref Unsafe.AsRef<sbyte>(&Handle->SortSpecsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ColumnsEnabledCount => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsEnabledCount); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ColumnsEnabledFixedCount => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsEnabledFixedCount); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte DeclColumnsCount => ref Unsafe.AsRef<sbyte>(&Handle->DeclColumnsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte HoveredColumnBody => ref Unsafe.AsRef<sbyte>(&Handle->HoveredColumnBody); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte HoveredColumnBorder => ref Unsafe.AsRef<sbyte>(&Handle->HoveredColumnBorder); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte AutoFitSingleColumn => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitSingleColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ResizedColumn => ref Unsafe.AsRef<sbyte>(&Handle->ResizedColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte LastResizedColumn => ref Unsafe.AsRef<sbyte>(&Handle->LastResizedColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte HeldHeaderColumn => ref Unsafe.AsRef<sbyte>(&Handle->HeldHeaderColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ReorderColumn => ref Unsafe.AsRef<sbyte>(&Handle->ReorderColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ReorderColumnDir => ref Unsafe.AsRef<sbyte>(&Handle->ReorderColumnDir); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte LeftMostEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->LeftMostEnabledColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte RightMostEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->RightMostEnabledColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte LeftMostStretchedColumn => ref Unsafe.AsRef<sbyte>(&Handle->LeftMostStretchedColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte RightMostStretchedColumn => ref Unsafe.AsRef<sbyte>(&Handle->RightMostStretchedColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ContextPopupColumn => ref Unsafe.AsRef<sbyte>(&Handle->ContextPopupColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte FreezeRowsRequest => ref Unsafe.AsRef<sbyte>(&Handle->FreezeRowsRequest); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte FreezeRowsCount => ref Unsafe.AsRef<sbyte>(&Handle->FreezeRowsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte FreezeColumnsRequest => ref Unsafe.AsRef<sbyte>(&Handle->FreezeColumnsRequest); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte FreezeColumnsCount => ref Unsafe.AsRef<sbyte>(&Handle->FreezeColumnsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte RowCellDataCurrent => ref Unsafe.AsRef<sbyte>(&Handle->RowCellDataCurrent); - /// <summary> - /// To be documented. - /// </summary> - public ref byte DummyDrawChannel => ref Unsafe.AsRef<byte>(&Handle->DummyDrawChannel); - /// <summary> - /// To be documented. - /// </summary> - public ref byte Bg2DrawChannelCurrent => ref Unsafe.AsRef<byte>(&Handle->Bg2DrawChannelCurrent); - /// <summary> - /// To be documented. - /// </summary> - public ref byte Bg2DrawChannelUnfrozen => ref Unsafe.AsRef<byte>(&Handle->Bg2DrawChannelUnfrozen); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsLayoutLocked => ref Unsafe.AsRef<bool>(&Handle->IsLayoutLocked); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsInsideRow => ref Unsafe.AsRef<bool>(&Handle->IsInsideRow); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsInitializing => ref Unsafe.AsRef<bool>(&Handle->IsInitializing); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsSortSpecsDirty => ref Unsafe.AsRef<bool>(&Handle->IsSortSpecsDirty); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsUsingHeaders => ref Unsafe.AsRef<bool>(&Handle->IsUsingHeaders); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsContextPopupOpen => ref Unsafe.AsRef<bool>(&Handle->IsContextPopupOpen); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsSettingsRequestLoad => ref Unsafe.AsRef<bool>(&Handle->IsSettingsRequestLoad); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsSettingsDirty => ref Unsafe.AsRef<bool>(&Handle->IsSettingsDirty); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsDefaultDisplayOrder => ref Unsafe.AsRef<bool>(&Handle->IsDefaultDisplayOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsResetAllRequest => ref Unsafe.AsRef<bool>(&Handle->IsResetAllRequest); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsResetDisplayOrderRequest => ref Unsafe.AsRef<bool>(&Handle->IsResetDisplayOrderRequest); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsUnfrozenRows => ref Unsafe.AsRef<bool>(&Handle->IsUnfrozenRows); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsDefaultSizingPolicy => ref Unsafe.AsRef<bool>(&Handle->IsDefaultSizingPolicy); - /// <summary> - /// To be documented. - /// </summary> - public ref bool MemoryCompacted => ref Unsafe.AsRef<bool>(&Handle->MemoryCompacted); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HostSkipItems => ref Unsafe.AsRef<bool>(&Handle->HostSkipItems); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs deleted file mode 100644 index 0b5790a96..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableCellData.cs +++ /dev/null @@ -1,99 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableCellData - { - /// <summary> - /// To be documented. - /// </summary> - public uint BgColor; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte Column; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableCellData(uint bgColor = default, sbyte column = default) - { - BgColor = bgColor; - Column = column; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableCellDataPtr : IEquatable<ImGuiTableCellDataPtr> - { - public ImGuiTableCellDataPtr(ImGuiTableCellData* handle) { Handle = handle; } - - public ImGuiTableCellData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableCellDataPtr Null => new ImGuiTableCellDataPtr(null); - - public ImGuiTableCellData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableCellDataPtr(ImGuiTableCellData* handle) => new ImGuiTableCellDataPtr(handle); - - public static implicit operator ImGuiTableCellData*(ImGuiTableCellDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableCellDataPtr left, ImGuiTableCellData* right) => left.Handle != right; - - public bool Equals(ImGuiTableCellDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableCellDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableCellDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint BgColor => ref Unsafe.AsRef<uint>(&Handle->BgColor); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte Column => ref Unsafe.AsRef<sbyte>(&Handle->Column); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs deleted file mode 100644 index c21d809e1..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumn.cs +++ /dev/null @@ -1,500 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumn - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableColumnFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public float WidthGiven; - - /// <summary> - /// To be documented. - /// </summary> - public float MinX; - - /// <summary> - /// To be documented. - /// </summary> - public float MaxX; - - /// <summary> - /// To be documented. - /// </summary> - public float WidthRequest; - - /// <summary> - /// To be documented. - /// </summary> - public float WidthAuto; - - /// <summary> - /// To be documented. - /// </summary> - public float StretchWeight; - - /// <summary> - /// To be documented. - /// </summary> - public float InitStretchWeightOrWidth; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect ClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public uint UserID; - - /// <summary> - /// To be documented. - /// </summary> - public float WorkMinX; - - /// <summary> - /// To be documented. - /// </summary> - public float WorkMaxX; - - /// <summary> - /// To be documented. - /// </summary> - public float ItemWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float ContentMaxXFrozen; - - /// <summary> - /// To be documented. - /// </summary> - public float ContentMaxXUnfrozen; - - /// <summary> - /// To be documented. - /// </summary> - public float ContentMaxXHeadersUsed; - - /// <summary> - /// To be documented. - /// </summary> - public float ContentMaxXHeadersIdeal; - - /// <summary> - /// To be documented. - /// </summary> - public short NameOffset; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte DisplayOrder; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte IndexWithinEnabledSet; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte PrevEnabledColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte NextEnabledColumn; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte SortOrder; - - /// <summary> - /// To be documented. - /// </summary> - public byte DrawChannelCurrent; - - /// <summary> - /// To be documented. - /// </summary> - public byte DrawChannelFrozen; - - /// <summary> - /// To be documented. - /// </summary> - public byte DrawChannelUnfrozen; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsEnabled; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsUserEnabled; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsUserEnabledNextFrame; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsVisibleX; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsVisibleY; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsRequestOutput; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsSkipItems; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsPreserveWidthAuto; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte NavLayerCurrent; - - /// <summary> - /// To be documented. - /// </summary> - public byte AutoFitQueue; - - /// <summary> - /// To be documented. - /// </summary> - public byte CannotSkipItemsQueue; - - public byte RawBits0; - /// <summary> - /// To be documented. - /// </summary> - public byte SortDirectionsAvailList; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableColumn(ImGuiTableColumnFlags flags = default, float widthGiven = default, float minX = default, float maxX = default, float widthRequest = default, float widthAuto = default, float stretchWeight = default, float initStretchWeightOrWidth = default, ImRect clipRect = default, uint userId = default, float workMinX = default, float workMaxX = default, float itemWidth = default, float contentMaxXFrozen = default, float contentMaxXUnfrozen = default, float contentMaxXHeadersUsed = default, float contentMaxXHeadersIdeal = default, short nameOffset = default, sbyte displayOrder = default, sbyte indexWithinEnabledSet = default, sbyte prevEnabledColumn = default, sbyte nextEnabledColumn = default, sbyte sortOrder = default, byte drawChannelCurrent = default, byte drawChannelFrozen = default, byte drawChannelUnfrozen = default, bool isEnabled = default, bool isUserEnabled = default, bool isUserEnabledNextFrame = default, bool isVisibleX = default, bool isVisibleY = default, bool isRequestOutput = default, bool isSkipItems = default, bool isPreserveWidthAuto = default, sbyte navLayerCurrent = default, byte autoFitQueue = default, byte cannotSkipItemsQueue = default, byte sortDirection = default, byte sortDirectionsAvailCount = default, byte sortDirectionsAvailMask = default, byte sortDirectionsAvailList = default) - { - Flags = flags; - WidthGiven = widthGiven; - MinX = minX; - MaxX = maxX; - WidthRequest = widthRequest; - WidthAuto = widthAuto; - StretchWeight = stretchWeight; - InitStretchWeightOrWidth = initStretchWeightOrWidth; - ClipRect = clipRect; - UserID = userId; - WorkMinX = workMinX; - WorkMaxX = workMaxX; - ItemWidth = itemWidth; - ContentMaxXFrozen = contentMaxXFrozen; - ContentMaxXUnfrozen = contentMaxXUnfrozen; - ContentMaxXHeadersUsed = contentMaxXHeadersUsed; - ContentMaxXHeadersIdeal = contentMaxXHeadersIdeal; - NameOffset = nameOffset; - DisplayOrder = displayOrder; - IndexWithinEnabledSet = indexWithinEnabledSet; - PrevEnabledColumn = prevEnabledColumn; - NextEnabledColumn = nextEnabledColumn; - SortOrder = sortOrder; - DrawChannelCurrent = drawChannelCurrent; - DrawChannelFrozen = drawChannelFrozen; - DrawChannelUnfrozen = drawChannelUnfrozen; - IsEnabled = isEnabled ? (byte)1 : (byte)0; - IsUserEnabled = isUserEnabled ? (byte)1 : (byte)0; - IsUserEnabledNextFrame = isUserEnabledNextFrame ? (byte)1 : (byte)0; - IsVisibleX = isVisibleX ? (byte)1 : (byte)0; - IsVisibleY = isVisibleY ? (byte)1 : (byte)0; - IsRequestOutput = isRequestOutput ? (byte)1 : (byte)0; - IsSkipItems = isSkipItems ? (byte)1 : (byte)0; - IsPreserveWidthAuto = isPreserveWidthAuto ? (byte)1 : (byte)0; - NavLayerCurrent = navLayerCurrent; - AutoFitQueue = autoFitQueue; - CannotSkipItemsQueue = cannotSkipItemsQueue; - SortDirection = sortDirection; - SortDirectionsAvailCount = sortDirectionsAvailCount; - SortDirectionsAvailMask = sortDirectionsAvailMask; - SortDirectionsAvailList = sortDirectionsAvailList; - } - - - public byte SortDirection { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } - - public byte SortDirectionsAvailCount { get => Bitfield.Get(RawBits0, 2, 2); set => Bitfield.Set(ref RawBits0, value, 2, 2); } - - public byte SortDirectionsAvailMask { get => Bitfield.Get(RawBits0, 4, 4); set => Bitfield.Set(ref RawBits0, value, 4, 4); } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTableColumn* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableColumnPtr : IEquatable<ImGuiTableColumnPtr> - { - public ImGuiTableColumnPtr(ImGuiTableColumn* handle) { Handle = handle; } - - public ImGuiTableColumn* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableColumnPtr Null => new ImGuiTableColumnPtr(null); - - public ImGuiTableColumn this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableColumnPtr(ImGuiTableColumn* handle) => new ImGuiTableColumnPtr(handle); - - public static implicit operator ImGuiTableColumn*(ImGuiTableColumnPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumnPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableColumnPtr left, ImGuiTableColumn* right) => left.Handle != right; - - public bool Equals(ImGuiTableColumnPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableColumnPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableColumnPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableColumnFlags Flags => ref Unsafe.AsRef<ImGuiTableColumnFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref float WidthGiven => ref Unsafe.AsRef<float>(&Handle->WidthGiven); - /// <summary> - /// To be documented. - /// </summary> - public ref float MinX => ref Unsafe.AsRef<float>(&Handle->MinX); - /// <summary> - /// To be documented. - /// </summary> - public ref float MaxX => ref Unsafe.AsRef<float>(&Handle->MaxX); - /// <summary> - /// To be documented. - /// </summary> - public ref float WidthRequest => ref Unsafe.AsRef<float>(&Handle->WidthRequest); - /// <summary> - /// To be documented. - /// </summary> - public ref float WidthAuto => ref Unsafe.AsRef<float>(&Handle->WidthAuto); - /// <summary> - /// To be documented. - /// </summary> - public ref float StretchWeight => ref Unsafe.AsRef<float>(&Handle->StretchWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float InitStretchWeightOrWidth => ref Unsafe.AsRef<float>(&Handle->InitStretchWeightOrWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect ClipRect => ref Unsafe.AsRef<ImRect>(&Handle->ClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref uint UserID => ref Unsafe.AsRef<uint>(&Handle->UserID); - /// <summary> - /// To be documented. - /// </summary> - public ref float WorkMinX => ref Unsafe.AsRef<float>(&Handle->WorkMinX); - /// <summary> - /// To be documented. - /// </summary> - public ref float WorkMaxX => ref Unsafe.AsRef<float>(&Handle->WorkMaxX); - /// <summary> - /// To be documented. - /// </summary> - public ref float ItemWidth => ref Unsafe.AsRef<float>(&Handle->ItemWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref float ContentMaxXFrozen => ref Unsafe.AsRef<float>(&Handle->ContentMaxXFrozen); - /// <summary> - /// To be documented. - /// </summary> - public ref float ContentMaxXUnfrozen => ref Unsafe.AsRef<float>(&Handle->ContentMaxXUnfrozen); - /// <summary> - /// To be documented. - /// </summary> - public ref float ContentMaxXHeadersUsed => ref Unsafe.AsRef<float>(&Handle->ContentMaxXHeadersUsed); - /// <summary> - /// To be documented. - /// </summary> - public ref float ContentMaxXHeadersIdeal => ref Unsafe.AsRef<float>(&Handle->ContentMaxXHeadersIdeal); - /// <summary> - /// To be documented. - /// </summary> - public ref short NameOffset => ref Unsafe.AsRef<short>(&Handle->NameOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte DisplayOrder => ref Unsafe.AsRef<sbyte>(&Handle->DisplayOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte IndexWithinEnabledSet => ref Unsafe.AsRef<sbyte>(&Handle->IndexWithinEnabledSet); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte PrevEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->PrevEnabledColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte NextEnabledColumn => ref Unsafe.AsRef<sbyte>(&Handle->NextEnabledColumn); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte SortOrder => ref Unsafe.AsRef<sbyte>(&Handle->SortOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref byte DrawChannelCurrent => ref Unsafe.AsRef<byte>(&Handle->DrawChannelCurrent); - /// <summary> - /// To be documented. - /// </summary> - public ref byte DrawChannelFrozen => ref Unsafe.AsRef<byte>(&Handle->DrawChannelFrozen); - /// <summary> - /// To be documented. - /// </summary> - public ref byte DrawChannelUnfrozen => ref Unsafe.AsRef<byte>(&Handle->DrawChannelUnfrozen); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsEnabled => ref Unsafe.AsRef<bool>(&Handle->IsEnabled); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsUserEnabled => ref Unsafe.AsRef<bool>(&Handle->IsUserEnabled); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsUserEnabledNextFrame => ref Unsafe.AsRef<bool>(&Handle->IsUserEnabledNextFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsVisibleX => ref Unsafe.AsRef<bool>(&Handle->IsVisibleX); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsVisibleY => ref Unsafe.AsRef<bool>(&Handle->IsVisibleY); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsRequestOutput => ref Unsafe.AsRef<bool>(&Handle->IsRequestOutput); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsSkipItems => ref Unsafe.AsRef<bool>(&Handle->IsSkipItems); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsPreserveWidthAuto => ref Unsafe.AsRef<bool>(&Handle->IsPreserveWidthAuto); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte NavLayerCurrent => ref Unsafe.AsRef<sbyte>(&Handle->NavLayerCurrent); - /// <summary> - /// To be documented. - /// </summary> - public ref byte AutoFitQueue => ref Unsafe.AsRef<byte>(&Handle->AutoFitQueue); - /// <summary> - /// To be documented. - /// </summary> - public ref byte CannotSkipItemsQueue => ref Unsafe.AsRef<byte>(&Handle->CannotSkipItemsQueue); - /// <summary> - /// To be documented. - /// </summary> - public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte SortDirectionsAvailCount { get => Handle->SortDirectionsAvailCount; set => Handle->SortDirectionsAvailCount = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte SortDirectionsAvailMask { get => Handle->SortDirectionsAvailMask; set => Handle->SortDirectionsAvailMask = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref byte SortDirectionsAvailList => ref Unsafe.AsRef<byte>(&Handle->SortDirectionsAvailList); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs deleted file mode 100644 index 13316f03e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSettings.cs +++ /dev/null @@ -1,170 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumnSettings - { - /// <summary> - /// To be documented. - /// </summary> - public float WidthOrWeight; - - /// <summary> - /// To be documented. - /// </summary> - public uint UserID; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte Index; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte DisplayOrder; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte SortOrder; - - public byte RawBits0; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableColumnSettings(float widthOrWeight = default, uint userId = default, sbyte index = default, sbyte displayOrder = default, sbyte sortOrder = default, byte sortDirection = default, byte isEnabled = default, byte isStretch = default) - { - WidthOrWeight = widthOrWeight; - UserID = userId; - Index = index; - DisplayOrder = displayOrder; - SortOrder = sortOrder; - SortDirection = sortDirection; - IsEnabled = isEnabled; - IsStretch = isStretch; - } - - - public byte SortDirection { get => Bitfield.Get(RawBits0, 0, 2); set => Bitfield.Set(ref RawBits0, value, 0, 2); } - - public byte IsEnabled { get => Bitfield.Get(RawBits0, 2, 1); set => Bitfield.Set(ref RawBits0, value, 2, 1); } - - public byte IsStretch { get => Bitfield.Get(RawBits0, 3, 1); set => Bitfield.Set(ref RawBits0, value, 3, 1); } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTableColumnSettings* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableColumnSettingsPtr : IEquatable<ImGuiTableColumnSettingsPtr> - { - public ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) { Handle = handle; } - - public ImGuiTableColumnSettings* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableColumnSettingsPtr Null => new ImGuiTableColumnSettingsPtr(null); - - public ImGuiTableColumnSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableColumnSettingsPtr(ImGuiTableColumnSettings* handle) => new ImGuiTableColumnSettingsPtr(handle); - - public static implicit operator ImGuiTableColumnSettings*(ImGuiTableColumnSettingsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettingsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableColumnSettingsPtr left, ImGuiTableColumnSettings* right) => left.Handle != right; - - public bool Equals(ImGuiTableColumnSettingsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableColumnSettingsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableColumnSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref float WidthOrWeight => ref Unsafe.AsRef<float>(&Handle->WidthOrWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref uint UserID => ref Unsafe.AsRef<uint>(&Handle->UserID); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte Index => ref Unsafe.AsRef<sbyte>(&Handle->Index); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte DisplayOrder => ref Unsafe.AsRef<sbyte>(&Handle->DisplayOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte SortOrder => ref Unsafe.AsRef<sbyte>(&Handle->SortOrder); - /// <summary> - /// To be documented. - /// </summary> - public byte SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte IsEnabled { get => Handle->IsEnabled; set => Handle->IsEnabled = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte IsStretch { get => Handle->IsStretch; set => Handle->IsStretch = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs deleted file mode 100644 index c4a74254d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnSortSpecs.cs +++ /dev/null @@ -1,136 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumnSortSpecs - { - /// <summary> - /// To be documented. - /// </summary> - public uint ColumnUserID; - - /// <summary> - /// To be documented. - /// </summary> - public short ColumnIndex; - - /// <summary> - /// To be documented. - /// </summary> - public short SortOrder; - - public ImGuiSortDirection RawBits0; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableColumnSortSpecs(uint columnUserId = default, short columnIndex = default, short sortOrder = default, ImGuiSortDirection sortDirection = default) - { - ColumnUserID = columnUserId; - ColumnIndex = columnIndex; - SortOrder = sortOrder; - SortDirection = sortDirection; - } - - - public ImGuiSortDirection SortDirection { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTableColumnSortSpecs* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableColumnSortSpecsPtr : IEquatable<ImGuiTableColumnSortSpecsPtr> - { - public ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) { Handle = handle; } - - public ImGuiTableColumnSortSpecs* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableColumnSortSpecsPtr Null => new ImGuiTableColumnSortSpecsPtr(null); - - public ImGuiTableColumnSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableColumnSortSpecsPtr(ImGuiTableColumnSortSpecs* handle) => new ImGuiTableColumnSortSpecsPtr(handle); - - public static implicit operator ImGuiTableColumnSortSpecs*(ImGuiTableColumnSortSpecsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableColumnSortSpecsPtr left, ImGuiTableColumnSortSpecs* right) => left.Handle != right; - - public bool Equals(ImGuiTableColumnSortSpecsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableColumnSortSpecsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableColumnSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColumnUserID => ref Unsafe.AsRef<uint>(&Handle->ColumnUserID); - /// <summary> - /// To be documented. - /// </summary> - public ref short ColumnIndex => ref Unsafe.AsRef<short>(&Handle->ColumnIndex); - /// <summary> - /// To be documented. - /// </summary> - public ref short SortOrder => ref Unsafe.AsRef<short>(&Handle->SortOrder); - /// <summary> - /// To be documented. - /// </summary> - public ImGuiSortDirection SortDirection { get => Handle->SortDirection; set => Handle->SortDirection = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnsSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnsSettings.cs deleted file mode 100644 index c0945b51b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableColumnsSettings.cs +++ /dev/null @@ -1,29 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableColumnsSettings - { - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs deleted file mode 100644 index 8d17461ef..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableInstanceData.cs +++ /dev/null @@ -1,118 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableInstanceData - { - /// <summary> - /// To be documented. - /// </summary> - public float LastOuterHeight; - - /// <summary> - /// To be documented. - /// </summary> - public float LastFirstRowHeight; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableInstanceData(float lastOuterHeight = default, float lastFirstRowHeight = default) - { - LastOuterHeight = lastOuterHeight; - LastFirstRowHeight = lastFirstRowHeight; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTableInstanceData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableInstanceDataPtr : IEquatable<ImGuiTableInstanceDataPtr> - { - public ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) { Handle = handle; } - - public ImGuiTableInstanceData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableInstanceDataPtr Null => new ImGuiTableInstanceDataPtr(null); - - public ImGuiTableInstanceData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableInstanceDataPtr(ImGuiTableInstanceData* handle) => new ImGuiTableInstanceDataPtr(handle); - - public static implicit operator ImGuiTableInstanceData*(ImGuiTableInstanceDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableInstanceDataPtr left, ImGuiTableInstanceData* right) => left.Handle != right; - - public bool Equals(ImGuiTableInstanceDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableInstanceDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableInstanceDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref float LastOuterHeight => ref Unsafe.AsRef<float>(&Handle->LastOuterHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float LastFirstRowHeight => ref Unsafe.AsRef<float>(&Handle->LastFirstRowHeight); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs deleted file mode 100644 index 383cd2a22..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSettings.cs +++ /dev/null @@ -1,158 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableSettings - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTableFlags SaveFlags; - - /// <summary> - /// To be documented. - /// </summary> - public float RefScale; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ColumnsCount; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte ColumnsCountMax; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantApply; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableSettings(uint id = default, ImGuiTableFlags saveFlags = default, float refScale = default, sbyte columnsCount = default, sbyte columnsCountMax = default, bool wantApply = default) - { - ID = id; - SaveFlags = saveFlags; - RefScale = refScale; - ColumnsCount = columnsCount; - ColumnsCountMax = columnsCountMax; - WantApply = wantApply ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTableSettings* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableSettingsPtr : IEquatable<ImGuiTableSettingsPtr> - { - public ImGuiTableSettingsPtr(ImGuiTableSettings* handle) { Handle = handle; } - - public ImGuiTableSettings* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableSettingsPtr Null => new ImGuiTableSettingsPtr(null); - - public ImGuiTableSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableSettingsPtr(ImGuiTableSettings* handle) => new ImGuiTableSettingsPtr(handle); - - public static implicit operator ImGuiTableSettings*(ImGuiTableSettingsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettingsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableSettingsPtr left, ImGuiTableSettings* right) => left.Handle != right; - - public bool Equals(ImGuiTableSettingsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableSettingsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableFlags SaveFlags => ref Unsafe.AsRef<ImGuiTableFlags>(&Handle->SaveFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref float RefScale => ref Unsafe.AsRef<float>(&Handle->RefScale); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ColumnsCount => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte ColumnsCountMax => ref Unsafe.AsRef<sbyte>(&Handle->ColumnsCountMax); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantApply => ref Unsafe.AsRef<bool>(&Handle->WantApply); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs deleted file mode 100644 index 1543c6da8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableSortSpecs.cs +++ /dev/null @@ -1,128 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableSortSpecs - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableColumnSortSpecs* Specs; - - /// <summary> - /// To be documented. - /// </summary> - public int SpecsCount; - - /// <summary> - /// To be documented. - /// </summary> - public byte SpecsDirty; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableSortSpecs(ImGuiTableColumnSortSpecsPtr specs = default, int specsCount = default, bool specsDirty = default) - { - Specs = specs; - SpecsCount = specsCount; - SpecsDirty = specsDirty ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTableSortSpecs* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableSortSpecsPtr : IEquatable<ImGuiTableSortSpecsPtr> - { - public ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) { Handle = handle; } - - public ImGuiTableSortSpecs* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableSortSpecsPtr Null => new ImGuiTableSortSpecsPtr(null); - - public ImGuiTableSortSpecs this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableSortSpecsPtr(ImGuiTableSortSpecs* handle) => new ImGuiTableSortSpecsPtr(handle); - - public static implicit operator ImGuiTableSortSpecs*(ImGuiTableSortSpecsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableSortSpecsPtr left, ImGuiTableSortSpecs* right) => left.Handle != right; - - public bool Equals(ImGuiTableSortSpecsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableSortSpecsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableSortSpecsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTableColumnSortSpecsPtr Specs => ref Unsafe.AsRef<ImGuiTableColumnSortSpecsPtr>(&Handle->Specs); - /// <summary> - /// To be documented. - /// </summary> - public ref int SpecsCount => ref Unsafe.AsRef<int>(&Handle->SpecsCount); - /// <summary> - /// To be documented. - /// </summary> - public ref bool SpecsDirty => ref Unsafe.AsRef<bool>(&Handle->SpecsDirty); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs deleted file mode 100644 index 06bb694c9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTableTempData.cs +++ /dev/null @@ -1,218 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTableTempData - { - /// <summary> - /// To be documented. - /// </summary> - public int TableIndex; - - /// <summary> - /// To be documented. - /// </summary> - public float LastTimeActive; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 UserOuterSize; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawListSplitter DrawSplitter; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HostBackupWorkRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HostBackupParentWorkRect; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 HostBackupPrevLineSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 HostBackupCurrLineSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 HostBackupCursorMaxPos; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec1 HostBackupColumnsOffset; - - /// <summary> - /// To be documented. - /// </summary> - public float HostBackupItemWidth; - - /// <summary> - /// To be documented. - /// </summary> - public int HostBackupItemWidthStackSize; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableTempData(int tableIndex = default, float lastTimeActive = default, Vector2 userOuterSize = default, ImDrawListSplitter drawSplitter = default, ImRect hostBackupWorkRect = default, ImRect hostBackupParentWorkRect = default, Vector2 hostBackupPrevLineSize = default, Vector2 hostBackupCurrLineSize = default, Vector2 hostBackupCursorMaxPos = default, ImVec1 hostBackupColumnsOffset = default, float hostBackupItemWidth = default, int hostBackupItemWidthStackSize = default) - { - TableIndex = tableIndex; - LastTimeActive = lastTimeActive; - UserOuterSize = userOuterSize; - DrawSplitter = drawSplitter; - HostBackupWorkRect = hostBackupWorkRect; - HostBackupParentWorkRect = hostBackupParentWorkRect; - HostBackupPrevLineSize = hostBackupPrevLineSize; - HostBackupCurrLineSize = hostBackupCurrLineSize; - HostBackupCursorMaxPos = hostBackupCursorMaxPos; - HostBackupColumnsOffset = hostBackupColumnsOffset; - HostBackupItemWidth = hostBackupItemWidth; - HostBackupItemWidthStackSize = hostBackupItemWidthStackSize; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTableTempData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTableTempDataPtr : IEquatable<ImGuiTableTempDataPtr> - { - public ImGuiTableTempDataPtr(ImGuiTableTempData* handle) { Handle = handle; } - - public ImGuiTableTempData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTableTempDataPtr Null => new ImGuiTableTempDataPtr(null); - - public ImGuiTableTempData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTableTempDataPtr(ImGuiTableTempData* handle) => new ImGuiTableTempDataPtr(handle); - - public static implicit operator ImGuiTableTempData*(ImGuiTableTempDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle == right; - - public static bool operator !=(ImGuiTableTempDataPtr left, ImGuiTableTempData* right) => left.Handle != right; - - public bool Equals(ImGuiTableTempDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTableTempDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTableTempDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref int TableIndex => ref Unsafe.AsRef<int>(&Handle->TableIndex); - /// <summary> - /// To be documented. - /// </summary> - public ref float LastTimeActive => ref Unsafe.AsRef<float>(&Handle->LastTimeActive); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 UserOuterSize => ref Unsafe.AsRef<Vector2>(&Handle->UserOuterSize); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListSplitter DrawSplitter => ref Unsafe.AsRef<ImDrawListSplitter>(&Handle->DrawSplitter); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HostBackupWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupWorkRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->HostBackupParentWorkRect); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 HostBackupPrevLineSize => ref Unsafe.AsRef<Vector2>(&Handle->HostBackupPrevLineSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 HostBackupCurrLineSize => ref Unsafe.AsRef<Vector2>(&Handle->HostBackupCurrLineSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 HostBackupCursorMaxPos => ref Unsafe.AsRef<Vector2>(&Handle->HostBackupCursorMaxPos); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec1 HostBackupColumnsOffset => ref Unsafe.AsRef<ImVec1>(&Handle->HostBackupColumnsOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref float HostBackupItemWidth => ref Unsafe.AsRef<float>(&Handle->HostBackupItemWidth); - /// <summary> - /// To be documented. - /// </summary> - public ref int HostBackupItemWidthStackSize => ref Unsafe.AsRef<int>(&Handle->HostBackupItemWidthStackSize); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs deleted file mode 100644 index ff3ec7e37..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextBuffer.cs +++ /dev/null @@ -1,1440 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTextBuffer - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<byte> Buf; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTextBuffer(ImVector<byte> buf = default) - { - Buf = buf; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, byte* strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGui.appendNative(@this, str, strEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str) - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGui.appendNative(@this, str, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, byte* strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = &str) - { - ImGui.appendNative(@this, (byte*)pstr, strEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = &str) - { - ImGui.appendNative(@this, (byte*)pstr, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = str) - { - ImGui.appendNative(@this, (byte*)pstr, strEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = str) - { - ImGui.appendNative(@this, (byte*)pstr, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, byte* strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(@this, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(@this, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(@this, str, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(@this, str, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, string strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(@this, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, string strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.appendNative(@this, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, string strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(@this, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, string strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(@this, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, ref byte strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(@this, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(@this, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(byte* fmt) - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGui.appendfNative(@this, fmt); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(ref byte fmt) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pfmt = &fmt) - { - ImGui.appendfNative(@this, (byte*)pfmt); - } - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(ReadOnlySpan<byte> fmt) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pfmt = fmt) - { - ImGui.appendfNative(@this, (byte*)pfmt); - } - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(string fmt) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendfNative(@this, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(byte* fmt, nuint args) - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGui.appendfvNative(@this, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(ref byte fmt, nuint args) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pfmt = &fmt) - { - ImGui.appendfvNative(@this, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (ImGuiTextBuffer* @this = &this) - { - fixed (byte* pfmt = fmt) - { - ImGui.appendfvNative(@this, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(string fmt, nuint args) - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendfvNative(@this, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* begin() - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* ret = ImGui.beginNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string beginS() - { - fixed (ImGuiTextBuffer* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.beginNative(@this)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* c_str() - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* ret = ImGui.c_strNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string c_strS() - { - fixed (ImGuiTextBuffer* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.c_strNative(@this)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void clear() - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGui.clearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool empty() - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte ret = ImGui.emptyNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* end() - { - fixed (ImGuiTextBuffer* @this = &this) - { - byte* ret = ImGui.endNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string endS() - { - fixed (ImGuiTextBuffer* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.endNative(@this)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void reserve(int capacity) - { - fixed (ImGuiTextBuffer* @this = &this) - { - ImGui.reserveNative(@this, capacity); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int size() - { - fixed (ImGuiTextBuffer* @this = &this) - { - int ret = ImGui.sizeNative(@this); - return ret; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTextBufferPtr : IEquatable<ImGuiTextBufferPtr> - { - public ImGuiTextBufferPtr(ImGuiTextBuffer* handle) { Handle = handle; } - - public ImGuiTextBuffer* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTextBufferPtr Null => new ImGuiTextBufferPtr(null); - - public ImGuiTextBuffer this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTextBufferPtr(ImGuiTextBuffer* handle) => new ImGuiTextBufferPtr(handle); - - public static implicit operator ImGuiTextBuffer*(ImGuiTextBufferPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBufferPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle == right; - - public static bool operator !=(ImGuiTextBufferPtr left, ImGuiTextBuffer* right) => left.Handle != right; - - public bool Equals(ImGuiTextBufferPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTextBufferPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTextBufferPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<byte> Buf => ref Unsafe.AsRef<ImVector<byte>>(&Handle->Buf); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, byte* strEnd) - { - ImGui.appendNative(Handle, str, strEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str) - { - ImGui.appendNative(Handle, str, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, byte* strEnd) - { - fixed (byte* pstr = &str) - { - ImGui.appendNative(Handle, (byte*)pstr, strEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str) - { - fixed (byte* pstr = &str) - { - ImGui.appendNative(Handle, (byte*)pstr, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (byte* pstr = str) - { - ImGui.appendNative(Handle, (byte*)pstr, strEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - ImGui.appendNative(Handle, (byte*)pstr, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(Handle, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(Handle, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(Handle, str, (byte*)pstrEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(Handle, str, (byte*)pstrEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(byte* str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(Handle, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGui.appendNative(Handle, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ref byte str, string strEnd) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(Handle, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(Handle, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(ReadOnlySpan<byte> str, string strEnd) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(Handle, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - ImGui.appendNative(Handle, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void append(string str, ReadOnlySpan<byte> strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - ImGui.appendNative(Handle, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(byte* fmt) - { - ImGui.appendfNative(Handle, fmt); - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - ImGui.appendfNative(Handle, (byte*)pfmt); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - ImGui.appendfNative(Handle, (byte*)pfmt); - } - } - - /// <summary> - /// no appendfV<br/> - /// </summary> - public unsafe void appendf(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendfNative(Handle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(byte* fmt, nuint args) - { - ImGui.appendfvNative(Handle, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - ImGui.appendfvNative(Handle, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - ImGui.appendfvNative(Handle, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void appendfv(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendfvNative(Handle, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* begin() - { - byte* ret = ImGui.beginNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string beginS() - { - string ret = Utils.DecodeStringUTF8(ImGui.beginNative(Handle)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* c_str() - { - byte* ret = ImGui.c_strNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string c_strS() - { - string ret = Utils.DecodeStringUTF8(ImGui.c_strNative(Handle)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void clear() - { - ImGui.clearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool empty() - { - byte ret = ImGui.emptyNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* end() - { - byte* ret = ImGui.endNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string endS() - { - string ret = Utils.DecodeStringUTF8(ImGui.endNative(Handle)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void reserve(int capacity) - { - ImGui.reserveNative(Handle, capacity); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int size() - { - int ret = ImGui.sizeNative(Handle); - return ret; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs deleted file mode 100644 index 305833d44..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextFilter.cs +++ /dev/null @@ -1,2199 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTextFilter - { - /// <summary> - /// To be documented. - /// </summary> - public byte InputBuf_0; - public byte InputBuf_1; - public byte InputBuf_2; - public byte InputBuf_3; - public byte InputBuf_4; - public byte InputBuf_5; - public byte InputBuf_6; - public byte InputBuf_7; - public byte InputBuf_8; - public byte InputBuf_9; - public byte InputBuf_10; - public byte InputBuf_11; - public byte InputBuf_12; - public byte InputBuf_13; - public byte InputBuf_14; - public byte InputBuf_15; - public byte InputBuf_16; - public byte InputBuf_17; - public byte InputBuf_18; - public byte InputBuf_19; - public byte InputBuf_20; - public byte InputBuf_21; - public byte InputBuf_22; - public byte InputBuf_23; - public byte InputBuf_24; - public byte InputBuf_25; - public byte InputBuf_26; - public byte InputBuf_27; - public byte InputBuf_28; - public byte InputBuf_29; - public byte InputBuf_30; - public byte InputBuf_31; - public byte InputBuf_32; - public byte InputBuf_33; - public byte InputBuf_34; - public byte InputBuf_35; - public byte InputBuf_36; - public byte InputBuf_37; - public byte InputBuf_38; - public byte InputBuf_39; - public byte InputBuf_40; - public byte InputBuf_41; - public byte InputBuf_42; - public byte InputBuf_43; - public byte InputBuf_44; - public byte InputBuf_45; - public byte InputBuf_46; - public byte InputBuf_47; - public byte InputBuf_48; - public byte InputBuf_49; - public byte InputBuf_50; - public byte InputBuf_51; - public byte InputBuf_52; - public byte InputBuf_53; - public byte InputBuf_54; - public byte InputBuf_55; - public byte InputBuf_56; - public byte InputBuf_57; - public byte InputBuf_58; - public byte InputBuf_59; - public byte InputBuf_60; - public byte InputBuf_61; - public byte InputBuf_62; - public byte InputBuf_63; - public byte InputBuf_64; - public byte InputBuf_65; - public byte InputBuf_66; - public byte InputBuf_67; - public byte InputBuf_68; - public byte InputBuf_69; - public byte InputBuf_70; - public byte InputBuf_71; - public byte InputBuf_72; - public byte InputBuf_73; - public byte InputBuf_74; - public byte InputBuf_75; - public byte InputBuf_76; - public byte InputBuf_77; - public byte InputBuf_78; - public byte InputBuf_79; - public byte InputBuf_80; - public byte InputBuf_81; - public byte InputBuf_82; - public byte InputBuf_83; - public byte InputBuf_84; - public byte InputBuf_85; - public byte InputBuf_86; - public byte InputBuf_87; - public byte InputBuf_88; - public byte InputBuf_89; - public byte InputBuf_90; - public byte InputBuf_91; - public byte InputBuf_92; - public byte InputBuf_93; - public byte InputBuf_94; - public byte InputBuf_95; - public byte InputBuf_96; - public byte InputBuf_97; - public byte InputBuf_98; - public byte InputBuf_99; - public byte InputBuf_100; - public byte InputBuf_101; - public byte InputBuf_102; - public byte InputBuf_103; - public byte InputBuf_104; - public byte InputBuf_105; - public byte InputBuf_106; - public byte InputBuf_107; - public byte InputBuf_108; - public byte InputBuf_109; - public byte InputBuf_110; - public byte InputBuf_111; - public byte InputBuf_112; - public byte InputBuf_113; - public byte InputBuf_114; - public byte InputBuf_115; - public byte InputBuf_116; - public byte InputBuf_117; - public byte InputBuf_118; - public byte InputBuf_119; - public byte InputBuf_120; - public byte InputBuf_121; - public byte InputBuf_122; - public byte InputBuf_123; - public byte InputBuf_124; - public byte InputBuf_125; - public byte InputBuf_126; - public byte InputBuf_127; - public byte InputBuf_128; - public byte InputBuf_129; - public byte InputBuf_130; - public byte InputBuf_131; - public byte InputBuf_132; - public byte InputBuf_133; - public byte InputBuf_134; - public byte InputBuf_135; - public byte InputBuf_136; - public byte InputBuf_137; - public byte InputBuf_138; - public byte InputBuf_139; - public byte InputBuf_140; - public byte InputBuf_141; - public byte InputBuf_142; - public byte InputBuf_143; - public byte InputBuf_144; - public byte InputBuf_145; - public byte InputBuf_146; - public byte InputBuf_147; - public byte InputBuf_148; - public byte InputBuf_149; - public byte InputBuf_150; - public byte InputBuf_151; - public byte InputBuf_152; - public byte InputBuf_153; - public byte InputBuf_154; - public byte InputBuf_155; - public byte InputBuf_156; - public byte InputBuf_157; - public byte InputBuf_158; - public byte InputBuf_159; - public byte InputBuf_160; - public byte InputBuf_161; - public byte InputBuf_162; - public byte InputBuf_163; - public byte InputBuf_164; - public byte InputBuf_165; - public byte InputBuf_166; - public byte InputBuf_167; - public byte InputBuf_168; - public byte InputBuf_169; - public byte InputBuf_170; - public byte InputBuf_171; - public byte InputBuf_172; - public byte InputBuf_173; - public byte InputBuf_174; - public byte InputBuf_175; - public byte InputBuf_176; - public byte InputBuf_177; - public byte InputBuf_178; - public byte InputBuf_179; - public byte InputBuf_180; - public byte InputBuf_181; - public byte InputBuf_182; - public byte InputBuf_183; - public byte InputBuf_184; - public byte InputBuf_185; - public byte InputBuf_186; - public byte InputBuf_187; - public byte InputBuf_188; - public byte InputBuf_189; - public byte InputBuf_190; - public byte InputBuf_191; - public byte InputBuf_192; - public byte InputBuf_193; - public byte InputBuf_194; - public byte InputBuf_195; - public byte InputBuf_196; - public byte InputBuf_197; - public byte InputBuf_198; - public byte InputBuf_199; - public byte InputBuf_200; - public byte InputBuf_201; - public byte InputBuf_202; - public byte InputBuf_203; - public byte InputBuf_204; - public byte InputBuf_205; - public byte InputBuf_206; - public byte InputBuf_207; - public byte InputBuf_208; - public byte InputBuf_209; - public byte InputBuf_210; - public byte InputBuf_211; - public byte InputBuf_212; - public byte InputBuf_213; - public byte InputBuf_214; - public byte InputBuf_215; - public byte InputBuf_216; - public byte InputBuf_217; - public byte InputBuf_218; - public byte InputBuf_219; - public byte InputBuf_220; - public byte InputBuf_221; - public byte InputBuf_222; - public byte InputBuf_223; - public byte InputBuf_224; - public byte InputBuf_225; - public byte InputBuf_226; - public byte InputBuf_227; - public byte InputBuf_228; - public byte InputBuf_229; - public byte InputBuf_230; - public byte InputBuf_231; - public byte InputBuf_232; - public byte InputBuf_233; - public byte InputBuf_234; - public byte InputBuf_235; - public byte InputBuf_236; - public byte InputBuf_237; - public byte InputBuf_238; - public byte InputBuf_239; - public byte InputBuf_240; - public byte InputBuf_241; - public byte InputBuf_242; - public byte InputBuf_243; - public byte InputBuf_244; - public byte InputBuf_245; - public byte InputBuf_246; - public byte InputBuf_247; - public byte InputBuf_248; - public byte InputBuf_249; - public byte InputBuf_250; - public byte InputBuf_251; - public byte InputBuf_252; - public byte InputBuf_253; - public byte InputBuf_254; - public byte InputBuf_255; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiTextRange> Filters; - - /// <summary> - /// To be documented. - /// </summary> - public int CountGrep; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTextFilter(byte* inputBuf = default, ImVector<ImGuiTextRange> filters = default, int countGrep = default) - { - if (inputBuf != default(byte*)) - { - InputBuf_0 = inputBuf[0]; - InputBuf_1 = inputBuf[1]; - InputBuf_2 = inputBuf[2]; - InputBuf_3 = inputBuf[3]; - InputBuf_4 = inputBuf[4]; - InputBuf_5 = inputBuf[5]; - InputBuf_6 = inputBuf[6]; - InputBuf_7 = inputBuf[7]; - InputBuf_8 = inputBuf[8]; - InputBuf_9 = inputBuf[9]; - InputBuf_10 = inputBuf[10]; - InputBuf_11 = inputBuf[11]; - InputBuf_12 = inputBuf[12]; - InputBuf_13 = inputBuf[13]; - InputBuf_14 = inputBuf[14]; - InputBuf_15 = inputBuf[15]; - InputBuf_16 = inputBuf[16]; - InputBuf_17 = inputBuf[17]; - InputBuf_18 = inputBuf[18]; - InputBuf_19 = inputBuf[19]; - InputBuf_20 = inputBuf[20]; - InputBuf_21 = inputBuf[21]; - InputBuf_22 = inputBuf[22]; - InputBuf_23 = inputBuf[23]; - InputBuf_24 = inputBuf[24]; - InputBuf_25 = inputBuf[25]; - InputBuf_26 = inputBuf[26]; - InputBuf_27 = inputBuf[27]; - InputBuf_28 = inputBuf[28]; - InputBuf_29 = inputBuf[29]; - InputBuf_30 = inputBuf[30]; - InputBuf_31 = inputBuf[31]; - InputBuf_32 = inputBuf[32]; - InputBuf_33 = inputBuf[33]; - InputBuf_34 = inputBuf[34]; - InputBuf_35 = inputBuf[35]; - InputBuf_36 = inputBuf[36]; - InputBuf_37 = inputBuf[37]; - InputBuf_38 = inputBuf[38]; - InputBuf_39 = inputBuf[39]; - InputBuf_40 = inputBuf[40]; - InputBuf_41 = inputBuf[41]; - InputBuf_42 = inputBuf[42]; - InputBuf_43 = inputBuf[43]; - InputBuf_44 = inputBuf[44]; - InputBuf_45 = inputBuf[45]; - InputBuf_46 = inputBuf[46]; - InputBuf_47 = inputBuf[47]; - InputBuf_48 = inputBuf[48]; - InputBuf_49 = inputBuf[49]; - InputBuf_50 = inputBuf[50]; - InputBuf_51 = inputBuf[51]; - InputBuf_52 = inputBuf[52]; - InputBuf_53 = inputBuf[53]; - InputBuf_54 = inputBuf[54]; - InputBuf_55 = inputBuf[55]; - InputBuf_56 = inputBuf[56]; - InputBuf_57 = inputBuf[57]; - InputBuf_58 = inputBuf[58]; - InputBuf_59 = inputBuf[59]; - InputBuf_60 = inputBuf[60]; - InputBuf_61 = inputBuf[61]; - InputBuf_62 = inputBuf[62]; - InputBuf_63 = inputBuf[63]; - InputBuf_64 = inputBuf[64]; - InputBuf_65 = inputBuf[65]; - InputBuf_66 = inputBuf[66]; - InputBuf_67 = inputBuf[67]; - InputBuf_68 = inputBuf[68]; - InputBuf_69 = inputBuf[69]; - InputBuf_70 = inputBuf[70]; - InputBuf_71 = inputBuf[71]; - InputBuf_72 = inputBuf[72]; - InputBuf_73 = inputBuf[73]; - InputBuf_74 = inputBuf[74]; - InputBuf_75 = inputBuf[75]; - InputBuf_76 = inputBuf[76]; - InputBuf_77 = inputBuf[77]; - InputBuf_78 = inputBuf[78]; - InputBuf_79 = inputBuf[79]; - InputBuf_80 = inputBuf[80]; - InputBuf_81 = inputBuf[81]; - InputBuf_82 = inputBuf[82]; - InputBuf_83 = inputBuf[83]; - InputBuf_84 = inputBuf[84]; - InputBuf_85 = inputBuf[85]; - InputBuf_86 = inputBuf[86]; - InputBuf_87 = inputBuf[87]; - InputBuf_88 = inputBuf[88]; - InputBuf_89 = inputBuf[89]; - InputBuf_90 = inputBuf[90]; - InputBuf_91 = inputBuf[91]; - InputBuf_92 = inputBuf[92]; - InputBuf_93 = inputBuf[93]; - InputBuf_94 = inputBuf[94]; - InputBuf_95 = inputBuf[95]; - InputBuf_96 = inputBuf[96]; - InputBuf_97 = inputBuf[97]; - InputBuf_98 = inputBuf[98]; - InputBuf_99 = inputBuf[99]; - InputBuf_100 = inputBuf[100]; - InputBuf_101 = inputBuf[101]; - InputBuf_102 = inputBuf[102]; - InputBuf_103 = inputBuf[103]; - InputBuf_104 = inputBuf[104]; - InputBuf_105 = inputBuf[105]; - InputBuf_106 = inputBuf[106]; - InputBuf_107 = inputBuf[107]; - InputBuf_108 = inputBuf[108]; - InputBuf_109 = inputBuf[109]; - InputBuf_110 = inputBuf[110]; - InputBuf_111 = inputBuf[111]; - InputBuf_112 = inputBuf[112]; - InputBuf_113 = inputBuf[113]; - InputBuf_114 = inputBuf[114]; - InputBuf_115 = inputBuf[115]; - InputBuf_116 = inputBuf[116]; - InputBuf_117 = inputBuf[117]; - InputBuf_118 = inputBuf[118]; - InputBuf_119 = inputBuf[119]; - InputBuf_120 = inputBuf[120]; - InputBuf_121 = inputBuf[121]; - InputBuf_122 = inputBuf[122]; - InputBuf_123 = inputBuf[123]; - InputBuf_124 = inputBuf[124]; - InputBuf_125 = inputBuf[125]; - InputBuf_126 = inputBuf[126]; - InputBuf_127 = inputBuf[127]; - InputBuf_128 = inputBuf[128]; - InputBuf_129 = inputBuf[129]; - InputBuf_130 = inputBuf[130]; - InputBuf_131 = inputBuf[131]; - InputBuf_132 = inputBuf[132]; - InputBuf_133 = inputBuf[133]; - InputBuf_134 = inputBuf[134]; - InputBuf_135 = inputBuf[135]; - InputBuf_136 = inputBuf[136]; - InputBuf_137 = inputBuf[137]; - InputBuf_138 = inputBuf[138]; - InputBuf_139 = inputBuf[139]; - InputBuf_140 = inputBuf[140]; - InputBuf_141 = inputBuf[141]; - InputBuf_142 = inputBuf[142]; - InputBuf_143 = inputBuf[143]; - InputBuf_144 = inputBuf[144]; - InputBuf_145 = inputBuf[145]; - InputBuf_146 = inputBuf[146]; - InputBuf_147 = inputBuf[147]; - InputBuf_148 = inputBuf[148]; - InputBuf_149 = inputBuf[149]; - InputBuf_150 = inputBuf[150]; - InputBuf_151 = inputBuf[151]; - InputBuf_152 = inputBuf[152]; - InputBuf_153 = inputBuf[153]; - InputBuf_154 = inputBuf[154]; - InputBuf_155 = inputBuf[155]; - InputBuf_156 = inputBuf[156]; - InputBuf_157 = inputBuf[157]; - InputBuf_158 = inputBuf[158]; - InputBuf_159 = inputBuf[159]; - InputBuf_160 = inputBuf[160]; - InputBuf_161 = inputBuf[161]; - InputBuf_162 = inputBuf[162]; - InputBuf_163 = inputBuf[163]; - InputBuf_164 = inputBuf[164]; - InputBuf_165 = inputBuf[165]; - InputBuf_166 = inputBuf[166]; - InputBuf_167 = inputBuf[167]; - InputBuf_168 = inputBuf[168]; - InputBuf_169 = inputBuf[169]; - InputBuf_170 = inputBuf[170]; - InputBuf_171 = inputBuf[171]; - InputBuf_172 = inputBuf[172]; - InputBuf_173 = inputBuf[173]; - InputBuf_174 = inputBuf[174]; - InputBuf_175 = inputBuf[175]; - InputBuf_176 = inputBuf[176]; - InputBuf_177 = inputBuf[177]; - InputBuf_178 = inputBuf[178]; - InputBuf_179 = inputBuf[179]; - InputBuf_180 = inputBuf[180]; - InputBuf_181 = inputBuf[181]; - InputBuf_182 = inputBuf[182]; - InputBuf_183 = inputBuf[183]; - InputBuf_184 = inputBuf[184]; - InputBuf_185 = inputBuf[185]; - InputBuf_186 = inputBuf[186]; - InputBuf_187 = inputBuf[187]; - InputBuf_188 = inputBuf[188]; - InputBuf_189 = inputBuf[189]; - InputBuf_190 = inputBuf[190]; - InputBuf_191 = inputBuf[191]; - InputBuf_192 = inputBuf[192]; - InputBuf_193 = inputBuf[193]; - InputBuf_194 = inputBuf[194]; - InputBuf_195 = inputBuf[195]; - InputBuf_196 = inputBuf[196]; - InputBuf_197 = inputBuf[197]; - InputBuf_198 = inputBuf[198]; - InputBuf_199 = inputBuf[199]; - InputBuf_200 = inputBuf[200]; - InputBuf_201 = inputBuf[201]; - InputBuf_202 = inputBuf[202]; - InputBuf_203 = inputBuf[203]; - InputBuf_204 = inputBuf[204]; - InputBuf_205 = inputBuf[205]; - InputBuf_206 = inputBuf[206]; - InputBuf_207 = inputBuf[207]; - InputBuf_208 = inputBuf[208]; - InputBuf_209 = inputBuf[209]; - InputBuf_210 = inputBuf[210]; - InputBuf_211 = inputBuf[211]; - InputBuf_212 = inputBuf[212]; - InputBuf_213 = inputBuf[213]; - InputBuf_214 = inputBuf[214]; - InputBuf_215 = inputBuf[215]; - InputBuf_216 = inputBuf[216]; - InputBuf_217 = inputBuf[217]; - InputBuf_218 = inputBuf[218]; - InputBuf_219 = inputBuf[219]; - InputBuf_220 = inputBuf[220]; - InputBuf_221 = inputBuf[221]; - InputBuf_222 = inputBuf[222]; - InputBuf_223 = inputBuf[223]; - InputBuf_224 = inputBuf[224]; - InputBuf_225 = inputBuf[225]; - InputBuf_226 = inputBuf[226]; - InputBuf_227 = inputBuf[227]; - InputBuf_228 = inputBuf[228]; - InputBuf_229 = inputBuf[229]; - InputBuf_230 = inputBuf[230]; - InputBuf_231 = inputBuf[231]; - InputBuf_232 = inputBuf[232]; - InputBuf_233 = inputBuf[233]; - InputBuf_234 = inputBuf[234]; - InputBuf_235 = inputBuf[235]; - InputBuf_236 = inputBuf[236]; - InputBuf_237 = inputBuf[237]; - InputBuf_238 = inputBuf[238]; - InputBuf_239 = inputBuf[239]; - InputBuf_240 = inputBuf[240]; - InputBuf_241 = inputBuf[241]; - InputBuf_242 = inputBuf[242]; - InputBuf_243 = inputBuf[243]; - InputBuf_244 = inputBuf[244]; - InputBuf_245 = inputBuf[245]; - InputBuf_246 = inputBuf[246]; - InputBuf_247 = inputBuf[247]; - InputBuf_248 = inputBuf[248]; - InputBuf_249 = inputBuf[249]; - InputBuf_250 = inputBuf[250]; - InputBuf_251 = inputBuf[251]; - InputBuf_252 = inputBuf[252]; - InputBuf_253 = inputBuf[253]; - InputBuf_254 = inputBuf[254]; - InputBuf_255 = inputBuf[255]; - } - Filters = filters; - CountGrep = countGrep; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTextFilter(Span<byte> inputBuf = default, ImVector<ImGuiTextRange> filters = default, int countGrep = default) - { - if (inputBuf != default(Span<byte>)) - { - InputBuf_0 = inputBuf[0]; - InputBuf_1 = inputBuf[1]; - InputBuf_2 = inputBuf[2]; - InputBuf_3 = inputBuf[3]; - InputBuf_4 = inputBuf[4]; - InputBuf_5 = inputBuf[5]; - InputBuf_6 = inputBuf[6]; - InputBuf_7 = inputBuf[7]; - InputBuf_8 = inputBuf[8]; - InputBuf_9 = inputBuf[9]; - InputBuf_10 = inputBuf[10]; - InputBuf_11 = inputBuf[11]; - InputBuf_12 = inputBuf[12]; - InputBuf_13 = inputBuf[13]; - InputBuf_14 = inputBuf[14]; - InputBuf_15 = inputBuf[15]; - InputBuf_16 = inputBuf[16]; - InputBuf_17 = inputBuf[17]; - InputBuf_18 = inputBuf[18]; - InputBuf_19 = inputBuf[19]; - InputBuf_20 = inputBuf[20]; - InputBuf_21 = inputBuf[21]; - InputBuf_22 = inputBuf[22]; - InputBuf_23 = inputBuf[23]; - InputBuf_24 = inputBuf[24]; - InputBuf_25 = inputBuf[25]; - InputBuf_26 = inputBuf[26]; - InputBuf_27 = inputBuf[27]; - InputBuf_28 = inputBuf[28]; - InputBuf_29 = inputBuf[29]; - InputBuf_30 = inputBuf[30]; - InputBuf_31 = inputBuf[31]; - InputBuf_32 = inputBuf[32]; - InputBuf_33 = inputBuf[33]; - InputBuf_34 = inputBuf[34]; - InputBuf_35 = inputBuf[35]; - InputBuf_36 = inputBuf[36]; - InputBuf_37 = inputBuf[37]; - InputBuf_38 = inputBuf[38]; - InputBuf_39 = inputBuf[39]; - InputBuf_40 = inputBuf[40]; - InputBuf_41 = inputBuf[41]; - InputBuf_42 = inputBuf[42]; - InputBuf_43 = inputBuf[43]; - InputBuf_44 = inputBuf[44]; - InputBuf_45 = inputBuf[45]; - InputBuf_46 = inputBuf[46]; - InputBuf_47 = inputBuf[47]; - InputBuf_48 = inputBuf[48]; - InputBuf_49 = inputBuf[49]; - InputBuf_50 = inputBuf[50]; - InputBuf_51 = inputBuf[51]; - InputBuf_52 = inputBuf[52]; - InputBuf_53 = inputBuf[53]; - InputBuf_54 = inputBuf[54]; - InputBuf_55 = inputBuf[55]; - InputBuf_56 = inputBuf[56]; - InputBuf_57 = inputBuf[57]; - InputBuf_58 = inputBuf[58]; - InputBuf_59 = inputBuf[59]; - InputBuf_60 = inputBuf[60]; - InputBuf_61 = inputBuf[61]; - InputBuf_62 = inputBuf[62]; - InputBuf_63 = inputBuf[63]; - InputBuf_64 = inputBuf[64]; - InputBuf_65 = inputBuf[65]; - InputBuf_66 = inputBuf[66]; - InputBuf_67 = inputBuf[67]; - InputBuf_68 = inputBuf[68]; - InputBuf_69 = inputBuf[69]; - InputBuf_70 = inputBuf[70]; - InputBuf_71 = inputBuf[71]; - InputBuf_72 = inputBuf[72]; - InputBuf_73 = inputBuf[73]; - InputBuf_74 = inputBuf[74]; - InputBuf_75 = inputBuf[75]; - InputBuf_76 = inputBuf[76]; - InputBuf_77 = inputBuf[77]; - InputBuf_78 = inputBuf[78]; - InputBuf_79 = inputBuf[79]; - InputBuf_80 = inputBuf[80]; - InputBuf_81 = inputBuf[81]; - InputBuf_82 = inputBuf[82]; - InputBuf_83 = inputBuf[83]; - InputBuf_84 = inputBuf[84]; - InputBuf_85 = inputBuf[85]; - InputBuf_86 = inputBuf[86]; - InputBuf_87 = inputBuf[87]; - InputBuf_88 = inputBuf[88]; - InputBuf_89 = inputBuf[89]; - InputBuf_90 = inputBuf[90]; - InputBuf_91 = inputBuf[91]; - InputBuf_92 = inputBuf[92]; - InputBuf_93 = inputBuf[93]; - InputBuf_94 = inputBuf[94]; - InputBuf_95 = inputBuf[95]; - InputBuf_96 = inputBuf[96]; - InputBuf_97 = inputBuf[97]; - InputBuf_98 = inputBuf[98]; - InputBuf_99 = inputBuf[99]; - InputBuf_100 = inputBuf[100]; - InputBuf_101 = inputBuf[101]; - InputBuf_102 = inputBuf[102]; - InputBuf_103 = inputBuf[103]; - InputBuf_104 = inputBuf[104]; - InputBuf_105 = inputBuf[105]; - InputBuf_106 = inputBuf[106]; - InputBuf_107 = inputBuf[107]; - InputBuf_108 = inputBuf[108]; - InputBuf_109 = inputBuf[109]; - InputBuf_110 = inputBuf[110]; - InputBuf_111 = inputBuf[111]; - InputBuf_112 = inputBuf[112]; - InputBuf_113 = inputBuf[113]; - InputBuf_114 = inputBuf[114]; - InputBuf_115 = inputBuf[115]; - InputBuf_116 = inputBuf[116]; - InputBuf_117 = inputBuf[117]; - InputBuf_118 = inputBuf[118]; - InputBuf_119 = inputBuf[119]; - InputBuf_120 = inputBuf[120]; - InputBuf_121 = inputBuf[121]; - InputBuf_122 = inputBuf[122]; - InputBuf_123 = inputBuf[123]; - InputBuf_124 = inputBuf[124]; - InputBuf_125 = inputBuf[125]; - InputBuf_126 = inputBuf[126]; - InputBuf_127 = inputBuf[127]; - InputBuf_128 = inputBuf[128]; - InputBuf_129 = inputBuf[129]; - InputBuf_130 = inputBuf[130]; - InputBuf_131 = inputBuf[131]; - InputBuf_132 = inputBuf[132]; - InputBuf_133 = inputBuf[133]; - InputBuf_134 = inputBuf[134]; - InputBuf_135 = inputBuf[135]; - InputBuf_136 = inputBuf[136]; - InputBuf_137 = inputBuf[137]; - InputBuf_138 = inputBuf[138]; - InputBuf_139 = inputBuf[139]; - InputBuf_140 = inputBuf[140]; - InputBuf_141 = inputBuf[141]; - InputBuf_142 = inputBuf[142]; - InputBuf_143 = inputBuf[143]; - InputBuf_144 = inputBuf[144]; - InputBuf_145 = inputBuf[145]; - InputBuf_146 = inputBuf[146]; - InputBuf_147 = inputBuf[147]; - InputBuf_148 = inputBuf[148]; - InputBuf_149 = inputBuf[149]; - InputBuf_150 = inputBuf[150]; - InputBuf_151 = inputBuf[151]; - InputBuf_152 = inputBuf[152]; - InputBuf_153 = inputBuf[153]; - InputBuf_154 = inputBuf[154]; - InputBuf_155 = inputBuf[155]; - InputBuf_156 = inputBuf[156]; - InputBuf_157 = inputBuf[157]; - InputBuf_158 = inputBuf[158]; - InputBuf_159 = inputBuf[159]; - InputBuf_160 = inputBuf[160]; - InputBuf_161 = inputBuf[161]; - InputBuf_162 = inputBuf[162]; - InputBuf_163 = inputBuf[163]; - InputBuf_164 = inputBuf[164]; - InputBuf_165 = inputBuf[165]; - InputBuf_166 = inputBuf[166]; - InputBuf_167 = inputBuf[167]; - InputBuf_168 = inputBuf[168]; - InputBuf_169 = inputBuf[169]; - InputBuf_170 = inputBuf[170]; - InputBuf_171 = inputBuf[171]; - InputBuf_172 = inputBuf[172]; - InputBuf_173 = inputBuf[173]; - InputBuf_174 = inputBuf[174]; - InputBuf_175 = inputBuf[175]; - InputBuf_176 = inputBuf[176]; - InputBuf_177 = inputBuf[177]; - InputBuf_178 = inputBuf[178]; - InputBuf_179 = inputBuf[179]; - InputBuf_180 = inputBuf[180]; - InputBuf_181 = inputBuf[181]; - InputBuf_182 = inputBuf[182]; - InputBuf_183 = inputBuf[183]; - InputBuf_184 = inputBuf[184]; - InputBuf_185 = inputBuf[185]; - InputBuf_186 = inputBuf[186]; - InputBuf_187 = inputBuf[187]; - InputBuf_188 = inputBuf[188]; - InputBuf_189 = inputBuf[189]; - InputBuf_190 = inputBuf[190]; - InputBuf_191 = inputBuf[191]; - InputBuf_192 = inputBuf[192]; - InputBuf_193 = inputBuf[193]; - InputBuf_194 = inputBuf[194]; - InputBuf_195 = inputBuf[195]; - InputBuf_196 = inputBuf[196]; - InputBuf_197 = inputBuf[197]; - InputBuf_198 = inputBuf[198]; - InputBuf_199 = inputBuf[199]; - InputBuf_200 = inputBuf[200]; - InputBuf_201 = inputBuf[201]; - InputBuf_202 = inputBuf[202]; - InputBuf_203 = inputBuf[203]; - InputBuf_204 = inputBuf[204]; - InputBuf_205 = inputBuf[205]; - InputBuf_206 = inputBuf[206]; - InputBuf_207 = inputBuf[207]; - InputBuf_208 = inputBuf[208]; - InputBuf_209 = inputBuf[209]; - InputBuf_210 = inputBuf[210]; - InputBuf_211 = inputBuf[211]; - InputBuf_212 = inputBuf[212]; - InputBuf_213 = inputBuf[213]; - InputBuf_214 = inputBuf[214]; - InputBuf_215 = inputBuf[215]; - InputBuf_216 = inputBuf[216]; - InputBuf_217 = inputBuf[217]; - InputBuf_218 = inputBuf[218]; - InputBuf_219 = inputBuf[219]; - InputBuf_220 = inputBuf[220]; - InputBuf_221 = inputBuf[221]; - InputBuf_222 = inputBuf[222]; - InputBuf_223 = inputBuf[223]; - InputBuf_224 = inputBuf[224]; - InputBuf_225 = inputBuf[225]; - InputBuf_226 = inputBuf[226]; - InputBuf_227 = inputBuf[227]; - InputBuf_228 = inputBuf[228]; - InputBuf_229 = inputBuf[229]; - InputBuf_230 = inputBuf[230]; - InputBuf_231 = inputBuf[231]; - InputBuf_232 = inputBuf[232]; - InputBuf_233 = inputBuf[233]; - InputBuf_234 = inputBuf[234]; - InputBuf_235 = inputBuf[235]; - InputBuf_236 = inputBuf[236]; - InputBuf_237 = inputBuf[237]; - InputBuf_238 = inputBuf[238]; - InputBuf_239 = inputBuf[239]; - InputBuf_240 = inputBuf[240]; - InputBuf_241 = inputBuf[241]; - InputBuf_242 = inputBuf[242]; - InputBuf_243 = inputBuf[243]; - InputBuf_244 = inputBuf[244]; - InputBuf_245 = inputBuf[245]; - InputBuf_246 = inputBuf[246]; - InputBuf_247 = inputBuf[247]; - InputBuf_248 = inputBuf[248]; - InputBuf_249 = inputBuf[249]; - InputBuf_250 = inputBuf[250]; - InputBuf_251 = inputBuf[251]; - InputBuf_252 = inputBuf[252]; - InputBuf_253 = inputBuf[253]; - InputBuf_254 = inputBuf[254]; - InputBuf_255 = inputBuf[255]; - } - Filters = filters; - CountGrep = countGrep; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Build() - { - fixed (ImGuiTextFilter* @this = &this) - { - ImGui.BuildNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - fixed (ImGuiTextFilter* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTextFilter* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(byte* label, float width) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte ret = ImGui.DrawNative(@this, label, width); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(byte* label) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte ret = ImGui.DrawNative(@this, label, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw() - { - fixed (ImGuiTextFilter* @this = &this) - { - bool ret = ImGui.Draw(@this, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(float width) - { - fixed (ImGuiTextFilter* @this = &this) - { - bool ret = ImGui.Draw(@this, (string)"Filter(inc,-exc)", width); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ref byte label, float width) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* plabel = &label) - { - byte ret = ImGui.DrawNative(@this, (byte*)plabel, width); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ref byte label) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* plabel = &label) - { - byte ret = ImGui.DrawNative(@this, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ReadOnlySpan<byte> label, float width) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* plabel = label) - { - byte ret = ImGui.DrawNative(@this, (byte*)plabel, width); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ReadOnlySpan<byte> label) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* plabel = label) - { - byte ret = ImGui.DrawNative(@this, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(string label, float width) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.DrawNative(@this, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(string label) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.DrawNative(@this, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsActive() - { - fixed (ImGuiTextFilter* @this = &this) - { - byte ret = ImGui.IsActiveNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, byte* textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte ret = ImGui.PassFilterNative(@this, text, textEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte ret = ImGui.PassFilterNative(@this, text, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, byte* textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = &text) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, textEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = &text) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = text) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, textEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = text) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, byte* textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(@this, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(@this, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, ref byte textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(@this, text, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(@this, text, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, string textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(@this, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, ref byte textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, string textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ImGui.PassFilterNative(@this, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, string textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, string textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, ref byte textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(@this, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, ReadOnlySpan<byte> textEnd) - { - fixed (ImGuiTextFilter* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(@this, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTextFilterPtr : IEquatable<ImGuiTextFilterPtr> - { - public ImGuiTextFilterPtr(ImGuiTextFilter* handle) { Handle = handle; } - - public ImGuiTextFilter* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTextFilterPtr Null => new ImGuiTextFilterPtr(null); - - public ImGuiTextFilter this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTextFilterPtr(ImGuiTextFilter* handle) => new ImGuiTextFilterPtr(handle); - - public static implicit operator ImGuiTextFilter*(ImGuiTextFilterPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilterPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle == right; - - public static bool operator !=(ImGuiTextFilterPtr left, ImGuiTextFilter* right) => left.Handle != right; - - public bool Equals(ImGuiTextFilterPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTextFilterPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTextFilterPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> InputBuf - - { - get - { - return new Span<byte>(&Handle->InputBuf_0, 256); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiTextRange> Filters => ref Unsafe.AsRef<ImVector<ImGuiTextRange>>(&Handle->Filters); - /// <summary> - /// To be documented. - /// </summary> - public ref int CountGrep => ref Unsafe.AsRef<int>(&Handle->CountGrep); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Build() - { - ImGui.BuildNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Clear() - { - ImGui.ClearNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(byte* label, float width) - { - byte ret = ImGui.DrawNative(Handle, label, width); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(byte* label) - { - byte ret = ImGui.DrawNative(Handle, label, (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw() - { - bool ret = ImGui.Draw(Handle, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(float width) - { - bool ret = ImGui.Draw(Handle, (string)"Filter(inc,-exc)", width); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ref byte label, float width) - { - fixed (byte* plabel = &label) - { - byte ret = ImGui.DrawNative(Handle, (byte*)plabel, width); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ImGui.DrawNative(Handle, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ReadOnlySpan<byte> label, float width) - { - fixed (byte* plabel = label) - { - byte ret = ImGui.DrawNative(Handle, (byte*)plabel, width); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ImGui.DrawNative(Handle, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(string label, float width) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.DrawNative(Handle, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Draw(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.DrawNative(Handle, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsActive() - { - byte ret = ImGui.IsActiveNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, byte* textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, text, textEnd); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text) - { - byte ret = ImGui.PassFilterNative(Handle, text, (byte*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, textEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text) - { - fixed (byte* ptext = &text) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, textEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(Handle, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(Handle, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, text, (byte*)ptextEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, text, (byte*)ptextEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(Handle, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ImGui.PassFilterNative(Handle, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImGui.PassFilterNative(Handle, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool PassFilter(string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte ret = ImGui.PassFilterNative(Handle, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs deleted file mode 100644 index 6724cbc1b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiTextRange.cs +++ /dev/null @@ -1,183 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTextRange - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* B; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* E; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTextRange(byte* b = default, byte* e = default) - { - B = b; - E = e; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiTextRange* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool empty() - { - fixed (ImGuiTextRange* @this = &this) - { - byte ret = ImGui.emptyNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void split(byte separator, ImVector<ImGuiTextRange>* output) - { - fixed (ImGuiTextRange* @this = &this) - { - ImGui.splitNative(@this, separator, output); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void split(byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImGuiTextRange* @this = &this) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - ImGui.splitNative(@this, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiTextRangePtr : IEquatable<ImGuiTextRangePtr> - { - public ImGuiTextRangePtr(ImGuiTextRange* handle) { Handle = handle; } - - public ImGuiTextRange* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiTextRangePtr Null => new ImGuiTextRangePtr(null); - - public ImGuiTextRange this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiTextRangePtr(ImGuiTextRange* handle) => new ImGuiTextRangePtr(handle); - - public static implicit operator ImGuiTextRange*(ImGuiTextRangePtr handle) => handle.Handle; - - public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRangePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle == right; - - public static bool operator !=(ImGuiTextRangePtr left, ImGuiTextRange* right) => left.Handle != right; - - public bool Equals(ImGuiTextRangePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiTextRangePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiTextRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public byte* B { get => Handle->B; set => Handle->B = value; } - /// <summary> - /// To be documented. - /// </summary> - public byte* E { get => Handle->E; set => Handle->E = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool empty() - { - byte ret = ImGui.emptyNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void split(byte separator, ImVector<ImGuiTextRange>* output) - { - ImGui.splitNative(Handle, separator, output); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void split(byte separator, ref ImVector<ImGuiTextRange> output) - { - fixed (ImVector<ImGuiTextRange>* poutput = &output) - { - ImGui.splitNative(Handle, separator, (ImVector<ImGuiTextRange>*)poutput); - } - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs deleted file mode 100644 index bdc46a98c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewport.cs +++ /dev/null @@ -1,301 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiViewport - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiViewportFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Pos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Size; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WorkPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WorkSize; - - /// <summary> - /// To be documented. - /// </summary> - public float DpiScale; - - /// <summary> - /// To be documented. - /// </summary> - public uint ParentViewportId; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawData* DrawData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* RendererUserData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformUserData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformHandle; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* PlatformHandleRaw; - - /// <summary> - /// To be documented. - /// </summary> - public byte PlatformRequestMove; - - /// <summary> - /// To be documented. - /// </summary> - public byte PlatformRequestResize; - - /// <summary> - /// To be documented. - /// </summary> - public byte PlatformRequestClose; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewport(uint id = default, ImGuiViewportFlags flags = default, Vector2 pos = default, Vector2 size = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, uint parentViewportId = default, ImDrawDataPtr drawData = default, void* rendererUserData = default, void* platformUserData = default, void* platformHandle = default, void* platformHandleRaw = default, bool platformRequestMove = default, bool platformRequestResize = default, bool platformRequestClose = default) - { - ID = id; - Flags = flags; - Pos = pos; - Size = size; - WorkPos = workPos; - WorkSize = workSize; - DpiScale = dpiScale; - ParentViewportId = parentViewportId; - DrawData = drawData; - RendererUserData = rendererUserData; - PlatformUserData = platformUserData; - PlatformHandle = platformHandle; - PlatformHandleRaw = platformHandleRaw; - PlatformRequestMove = platformRequestMove ? (byte)1 : (byte)0; - PlatformRequestResize = platformRequestResize ? (byte)1 : (byte)0; - PlatformRequestClose = platformRequestClose ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiViewport* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiViewportPtr : IEquatable<ImGuiViewportPtr> - { - public ImGuiViewportPtr(ImGuiViewport* handle) { Handle = handle; } - - public ImGuiViewport* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiViewportPtr Null => new ImGuiViewportPtr(null); - - public ImGuiViewport this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiViewportPtr(ImGuiViewport* handle) => new ImGuiViewportPtr(handle); - - public static implicit operator ImGuiViewport*(ImGuiViewportPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiViewportPtr left, ImGuiViewportPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle == right; - - public static bool operator !=(ImGuiViewportPtr left, ImGuiViewport* right) => left.Handle != right; - - public bool Equals(ImGuiViewportPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiViewportPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiViewportPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportFlags Flags => ref Unsafe.AsRef<ImGuiViewportFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Size => ref Unsafe.AsRef<Vector2>(&Handle->Size); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WorkPos => ref Unsafe.AsRef<Vector2>(&Handle->WorkPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WorkSize => ref Unsafe.AsRef<Vector2>(&Handle->WorkSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float DpiScale => ref Unsafe.AsRef<float>(&Handle->DpiScale); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ParentViewportId => ref Unsafe.AsRef<uint>(&Handle->ParentViewportId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawDataPtr DrawData => ref Unsafe.AsRef<ImDrawDataPtr>(&Handle->DrawData); - /// <summary> - /// To be documented. - /// </summary> - public void* RendererUserData { get => Handle->RendererUserData; set => Handle->RendererUserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformUserData { get => Handle->PlatformUserData; set => Handle->PlatformUserData = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformHandle { get => Handle->PlatformHandle; set => Handle->PlatformHandle = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* PlatformHandleRaw { get => Handle->PlatformHandleRaw; set => Handle->PlatformHandleRaw = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref bool PlatformRequestMove => ref Unsafe.AsRef<bool>(&Handle->PlatformRequestMove); - /// <summary> - /// To be documented. - /// </summary> - public ref bool PlatformRequestResize => ref Unsafe.AsRef<bool>(&Handle->PlatformRequestResize); - /// <summary> - /// To be documented. - /// </summary> - public ref bool PlatformRequestClose => ref Unsafe.AsRef<bool>(&Handle->PlatformRequestClose); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiViewportPtrPtr : IEquatable<ImGuiViewportPtrPtr> - { - public ImGuiViewportPtrPtr(ImGuiViewport** handle) { Handle = handle; } - - public ImGuiViewport** Handle; - - public bool IsNull => Handle == null; - - public static ImGuiViewportPtrPtr Null => new ImGuiViewportPtrPtr(null); - - public ImGuiViewport* this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiViewportPtrPtr(ImGuiViewport** handle) => new ImGuiViewportPtrPtr(handle); - - public static implicit operator ImGuiViewport**(ImGuiViewportPtrPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewportPtrPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle == right; - - public static bool operator !=(ImGuiViewportPtrPtr left, ImGuiViewport** right) => left.Handle != right; - - public bool Equals(ImGuiViewportPtrPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiViewportPtrPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiViewportPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs deleted file mode 100644 index 1db47d6a6..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiViewportP.cs +++ /dev/null @@ -1,409 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiViewportP - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiViewport ImGuiViewport; - - /// <summary> - /// To be documented. - /// </summary> - public int Idx; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameActive; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrontMostStampCount; - - /// <summary> - /// To be documented. - /// </summary> - public uint LastNameHash; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LastPos; - - /// <summary> - /// To be documented. - /// </summary> - public float Alpha; - - /// <summary> - /// To be documented. - /// </summary> - public float LastAlpha; - - /// <summary> - /// To be documented. - /// </summary> - public short PlatformMonitor; - - /// <summary> - /// To be documented. - /// </summary> - public byte PlatformWindowCreated; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* Window; - - /// <summary> - /// To be documented. - /// </summary> - public int DrawListsLastFrame_0; - public int DrawListsLastFrame_1; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawList* DrawLists_0; - public unsafe ImDrawList* DrawLists_1; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawData DrawDataP; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawDataBuilder DrawDataBuilder; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LastPlatformPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LastPlatformSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LastRendererSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WorkOffsetMin; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WorkOffsetMax; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BuildWorkOffsetMin; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 BuildWorkOffsetMax; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, int* drawListsLastFrame = default, ImDrawListPtrPtr drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) - { - ImGuiViewport = imGuiViewport; - Idx = idx; - LastFrameActive = lastFrameActive; - LastFrontMostStampCount = lastFrontMostStampCount; - LastNameHash = lastNameHash; - LastPos = lastPos; - Alpha = alpha; - LastAlpha = lastAlpha; - PlatformMonitor = platformMonitor; - PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; - Window = window; - if (drawListsLastFrame != default(int*)) - { - DrawListsLastFrame_0 = drawListsLastFrame[0]; - DrawListsLastFrame_1 = drawListsLastFrame[1]; - } - if (drawLists != default(ImDrawListPtrPtr)) - { - DrawLists_0 = drawLists[0]; - DrawLists_1 = drawLists[1]; - } - DrawDataP = drawDataP; - DrawDataBuilder = drawDataBuilder; - LastPlatformPos = lastPlatformPos; - LastPlatformSize = lastPlatformSize; - LastRendererSize = lastRendererSize; - WorkOffsetMin = workOffsetMin; - WorkOffsetMax = workOffsetMax; - BuildWorkOffsetMin = buildWorkOffsetMin; - BuildWorkOffsetMax = buildWorkOffsetMax; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewportP(ImGuiViewport imGuiViewport = default, int idx = default, int lastFrameActive = default, int lastFrontMostStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, short platformMonitor = default, bool platformWindowCreated = default, ImGuiWindowPtr window = default, Span<int> drawListsLastFrame = default, Span<Pointer<ImDrawList>> drawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) - { - ImGuiViewport = imGuiViewport; - Idx = idx; - LastFrameActive = lastFrameActive; - LastFrontMostStampCount = lastFrontMostStampCount; - LastNameHash = lastNameHash; - LastPos = lastPos; - Alpha = alpha; - LastAlpha = lastAlpha; - PlatformMonitor = platformMonitor; - PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; - Window = window; - if (drawListsLastFrame != default(Span<int>)) - { - DrawListsLastFrame_0 = drawListsLastFrame[0]; - DrawListsLastFrame_1 = drawListsLastFrame[1]; - } - if (drawLists != default(Span<Pointer<ImDrawList>>)) - { - DrawLists_0 = drawLists[0]; - DrawLists_1 = drawLists[1]; - } - DrawDataP = drawDataP; - DrawDataBuilder = drawDataBuilder; - LastPlatformPos = lastPlatformPos; - LastPlatformSize = lastPlatformSize; - LastRendererSize = lastRendererSize; - WorkOffsetMin = workOffsetMin; - WorkOffsetMax = workOffsetMax; - BuildWorkOffsetMin = buildWorkOffsetMin; - BuildWorkOffsetMax = buildWorkOffsetMax; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Pointer<ImDrawList>> DrawLists - - { - get - { - fixed (ImDrawList** p = &this.DrawLists_0) - { - return new Span<Pointer<ImDrawList>>(p, 2); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiViewportPPtr : IEquatable<ImGuiViewportPPtr> - { - public ImGuiViewportPPtr(ImGuiViewportP* handle) { Handle = handle; } - - public ImGuiViewportP* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiViewportPPtr Null => new ImGuiViewportPPtr(null); - - public ImGuiViewportP this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiViewportPPtr(ImGuiViewportP* handle) => new ImGuiViewportPPtr(handle); - - public static implicit operator ImGuiViewportP*(ImGuiViewportPPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportPPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle == right; - - public static bool operator !=(ImGuiViewportPPtr left, ImGuiViewportP* right) => left.Handle != right; - - public bool Equals(ImGuiViewportPPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiViewportPPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiViewportPPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewport ImGuiViewport => ref Unsafe.AsRef<ImGuiViewport>(&Handle->ImGuiViewport); - /// <summary> - /// To be documented. - /// </summary> - public ref int Idx => ref Unsafe.AsRef<int>(&Handle->Idx); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrontMostStampCount => ref Unsafe.AsRef<int>(&Handle->LastFrontMostStampCount); - /// <summary> - /// To be documented. - /// </summary> - public ref uint LastNameHash => ref Unsafe.AsRef<uint>(&Handle->LastNameHash); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LastPos => ref Unsafe.AsRef<Vector2>(&Handle->LastPos); - /// <summary> - /// To be documented. - /// </summary> - public ref float Alpha => ref Unsafe.AsRef<float>(&Handle->Alpha); - /// <summary> - /// To be documented. - /// </summary> - public ref float LastAlpha => ref Unsafe.AsRef<float>(&Handle->LastAlpha); - /// <summary> - /// To be documented. - /// </summary> - public ref short PlatformMonitor => ref Unsafe.AsRef<short>(&Handle->PlatformMonitor); - /// <summary> - /// To be documented. - /// </summary> - public ref bool PlatformWindowCreated => ref Unsafe.AsRef<bool>(&Handle->PlatformWindowCreated); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<int> DrawListsLastFrame - - { - get - { - return new Span<int>(&Handle->DrawListsLastFrame_0, 2); - } - } - /// <summary> - /// To be documented. - /// </summary> - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawData DrawDataP => ref Unsafe.AsRef<ImDrawData>(&Handle->DrawDataP); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawDataBuilder DrawDataBuilder => ref Unsafe.AsRef<ImDrawDataBuilder>(&Handle->DrawDataBuilder); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LastPlatformPos => ref Unsafe.AsRef<Vector2>(&Handle->LastPlatformPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LastPlatformSize => ref Unsafe.AsRef<Vector2>(&Handle->LastPlatformSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LastRendererSize => ref Unsafe.AsRef<Vector2>(&Handle->LastRendererSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WorkOffsetMin => ref Unsafe.AsRef<Vector2>(&Handle->WorkOffsetMin); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WorkOffsetMax => ref Unsafe.AsRef<Vector2>(&Handle->WorkOffsetMax); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BuildWorkOffsetMin => ref Unsafe.AsRef<Vector2>(&Handle->BuildWorkOffsetMin); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 BuildWorkOffsetMax => ref Unsafe.AsRef<Vector2>(&Handle->BuildWorkOffsetMax); - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiViewportPPtrPtr : IEquatable<ImGuiViewportPPtrPtr> - { - public ImGuiViewportPPtrPtr(ImGuiViewportP** handle) { Handle = handle; } - - public ImGuiViewportP** Handle; - - public bool IsNull => Handle == null; - - public static ImGuiViewportPPtrPtr Null => new ImGuiViewportPPtrPtr(null); - - public ImGuiViewportP* this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiViewportPPtrPtr(ImGuiViewportP** handle) => new ImGuiViewportPPtrPtr(handle); - - public static implicit operator ImGuiViewportP**(ImGuiViewportPPtrPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportPPtrPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle == right; - - public static bool operator !=(ImGuiViewportPPtrPtr left, ImGuiViewportP** right) => left.Handle != right; - - public bool Equals(ImGuiViewportPPtrPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiViewportPPtrPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiViewportPPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs deleted file mode 100644 index 59f1af13c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindow.cs +++ /dev/null @@ -1,1363 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindow - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* Name; - - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiWindowFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiWindowFlags FlagsPreviousFrame; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiWindowClass WindowClass; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiViewportP* Viewport; - - /// <summary> - /// To be documented. - /// </summary> - public uint ViewportId; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ViewportPos; - - /// <summary> - /// To be documented. - /// </summary> - public int ViewportAllowPlatformMonitorExtend; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Pos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Size; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 SizeFull; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ContentSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ContentSizeIdeal; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ContentSizeExplicit; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 WindowPadding; - - /// <summary> - /// To be documented. - /// </summary> - public float WindowRounding; - - /// <summary> - /// To be documented. - /// </summary> - public float WindowBorderSize; - - /// <summary> - /// To be documented. - /// </summary> - public int NameBufLen; - - /// <summary> - /// To be documented. - /// </summary> - public uint MoveId; - - /// <summary> - /// To be documented. - /// </summary> - public uint TabId; - - /// <summary> - /// To be documented. - /// </summary> - public uint ChildId; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Scroll; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ScrollMax; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ScrollTarget; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ScrollTargetCenterRatio; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ScrollTargetEdgeSnapDist; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 ScrollbarSizes; - - /// <summary> - /// To be documented. - /// </summary> - public byte ScrollbarX; - - /// <summary> - /// To be documented. - /// </summary> - public byte ScrollbarY; - - /// <summary> - /// To be documented. - /// </summary> - public byte ViewportOwned; - - /// <summary> - /// To be documented. - /// </summary> - public byte Active; - - /// <summary> - /// To be documented. - /// </summary> - public byte WasActive; - - /// <summary> - /// To be documented. - /// </summary> - public byte WriteAccessed; - - /// <summary> - /// To be documented. - /// </summary> - public byte Collapsed; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantCollapseToggle; - - /// <summary> - /// To be documented. - /// </summary> - public byte SkipItems; - - /// <summary> - /// To be documented. - /// </summary> - public byte Appearing; - - /// <summary> - /// To be documented. - /// </summary> - public byte Hidden; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsFallbackWindow; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsExplicitChild; - - /// <summary> - /// To be documented. - /// </summary> - public byte HasCloseButton; - - /// <summary> - /// To be documented. - /// </summary> - public byte ResizeBorderHeld; - - /// <summary> - /// To be documented. - /// </summary> - public short BeginCount; - - /// <summary> - /// To be documented. - /// </summary> - public short BeginOrderWithinParent; - - /// <summary> - /// To be documented. - /// </summary> - public short BeginOrderWithinContext; - - /// <summary> - /// To be documented. - /// </summary> - public short FocusOrder; - - /// <summary> - /// To be documented. - /// </summary> - public uint PopupId; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte AutoFitFramesX; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte AutoFitFramesY; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte AutoFitChildAxises; - - /// <summary> - /// To be documented. - /// </summary> - public byte AutoFitOnlyGrows; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDir AutoPosLastDirection; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte HiddenFramesCanSkipItems; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte HiddenFramesCannotSkipItems; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte HiddenFramesForRenderOnly; - - /// <summary> - /// To be documented. - /// </summary> - public sbyte DisableInputsFrames; - - public ImGuiCond RawBits0; - /// <summary> - /// To be documented. - /// </summary> - public Vector2 SetWindowPosVal; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 SetWindowPosPivot; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<uint> IDStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiWindowTempData DC; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect OuterRectClipped; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect InnerRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect InnerClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect WorkRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect ParentWorkRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect ClipRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect ContentRegionRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec2Ih HitTestHoleSize; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec2Ih HitTestHoleOffset; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameActive; - - /// <summary> - /// To be documented. - /// </summary> - public int LastFrameJustFocused; - - /// <summary> - /// To be documented. - /// </summary> - public float LastTimeActive; - - /// <summary> - /// To be documented. - /// </summary> - public float ItemWidthDefault; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage StateStorage; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiOldColumns> ColumnsStorage; - - /// <summary> - /// To be documented. - /// </summary> - public float FontWindowScale; - - /// <summary> - /// To be documented. - /// </summary> - public float FontDpiScale; - - /// <summary> - /// To be documented. - /// </summary> - public int SettingsOffset; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImDrawList* DrawList; - - /// <summary> - /// To be documented. - /// </summary> - public ImDrawList DrawListInst; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* ParentWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* ParentWindowInBeginStack; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* RootWindow; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* RootWindowPopupTree; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* RootWindowDockTree; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* RootWindowForTitleBarHighlight; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* RootWindowForNav; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* NavLastChildNavWindow; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavLastIds_0; - public uint NavLastIds_1; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect NavRectRel_0; - public ImRect NavRectRel_1; - - /// <summary> - /// To be documented. - /// </summary> - public int MemoryDrawListIdxCapacity; - - /// <summary> - /// To be documented. - /// </summary> - public int MemoryDrawListVtxCapacity; - - /// <summary> - /// To be documented. - /// </summary> - public byte MemoryCompacted; - - public bool RawBits1; - /// <summary> - /// To be documented. - /// </summary> - public short DockOrder; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiWindowDockStyle DockStyle; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode* DockNode; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiDockNode* DockNodeAsHost; - - /// <summary> - /// To be documented. - /// </summary> - public uint DockId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiItemStatusFlags DockTabItemStatusFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect DockTabItemRect; - - /// <summary> - /// To be documented. - /// </summary> - public byte InheritNoInputs; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector<uint> idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector<ImGuiOldColumns> columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, uint* navLastIds = default, ImRect* navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) - { - Name = name; - ID = id; - Flags = flags; - FlagsPreviousFrame = flagsPreviousFrame; - WindowClass = windowClass; - Viewport = viewport; - ViewportId = viewportId; - ViewportPos = viewportPos; - ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; - Pos = pos; - Size = size; - SizeFull = sizeFull; - ContentSize = contentSize; - ContentSizeIdeal = contentSizeIdeal; - ContentSizeExplicit = contentSizeExplicit; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - NameBufLen = nameBufLen; - MoveId = moveId; - TabId = tabId; - ChildId = childId; - Scroll = scroll; - ScrollMax = scrollMax; - ScrollTarget = scrollTarget; - ScrollTargetCenterRatio = scrollTargetCenterRatio; - ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; - ScrollbarSizes = scrollbarSizes; - ScrollbarX = scrollbarX ? (byte)1 : (byte)0; - ScrollbarY = scrollbarY ? (byte)1 : (byte)0; - ViewportOwned = viewportOwned ? (byte)1 : (byte)0; - Active = active ? (byte)1 : (byte)0; - WasActive = wasActive ? (byte)1 : (byte)0; - WriteAccessed = writeAccessed ? (byte)1 : (byte)0; - Collapsed = collapsed ? (byte)1 : (byte)0; - WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; - SkipItems = skipItems ? (byte)1 : (byte)0; - Appearing = appearing ? (byte)1 : (byte)0; - Hidden = hidden ? (byte)1 : (byte)0; - IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; - IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; - HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; - ResizeBorderHeld = resizeBorderHeld; - BeginCount = beginCount; - BeginOrderWithinParent = beginOrderWithinParent; - BeginOrderWithinContext = beginOrderWithinContext; - FocusOrder = focusOrder; - PopupId = popupId; - AutoFitFramesX = autoFitFramesX; - AutoFitFramesY = autoFitFramesY; - AutoFitChildAxises = autoFitChildAxises; - AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; - AutoPosLastDirection = autoPosLastDirection; - HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; - HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; - HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; - DisableInputsFrames = disableInputsFrames; - SetWindowPosAllowFlags = setWindowPosAllowFlags; - SetWindowSizeAllowFlags = setWindowSizeAllowFlags; - SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; - SetWindowDockAllowFlags = setWindowDockAllowFlags; - SetWindowPosVal = setWindowPosVal; - SetWindowPosPivot = setWindowPosPivot; - IDStack = idStack; - DC = dc; - OuterRectClipped = outerRectClipped; - InnerRect = innerRect; - InnerClipRect = innerClipRect; - WorkRect = workRect; - ParentWorkRect = parentWorkRect; - ClipRect = clipRect; - ContentRegionRect = contentRegionRect; - HitTestHoleSize = hitTestHoleSize; - HitTestHoleOffset = hitTestHoleOffset; - LastFrameActive = lastFrameActive; - LastFrameJustFocused = lastFrameJustFocused; - LastTimeActive = lastTimeActive; - ItemWidthDefault = itemWidthDefault; - StateStorage = stateStorage; - ColumnsStorage = columnsStorage; - FontWindowScale = fontWindowScale; - FontDpiScale = fontDpiScale; - SettingsOffset = settingsOffset; - DrawList = drawList; - DrawListInst = drawListInst; - ParentWindow = parentWindow; - ParentWindowInBeginStack = parentWindowInBeginStack; - RootWindow = rootWindow; - RootWindowPopupTree = rootWindowPopupTree; - RootWindowDockTree = rootWindowDockTree; - RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; - RootWindowForNav = rootWindowForNav; - NavLastChildNavWindow = navLastChildNavWindow; - if (navLastIds != default(uint*)) - { - NavLastIds_0 = navLastIds[0]; - NavLastIds_1 = navLastIds[1]; - } - if (navRectRel != default(ImRect*)) - { - NavRectRel_0 = navRectRel[0]; - NavRectRel_1 = navRectRel[1]; - } - MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; - MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - DockIsActive = dockIsActive; - DockNodeIsVisible = dockNodeIsVisible; - DockTabIsVisible = dockTabIsVisible; - DockTabWantClose = dockTabWantClose; - DockOrder = dockOrder; - DockStyle = dockStyle; - DockNode = dockNode; - DockNodeAsHost = dockNodeAsHost; - DockId = dockId; - DockTabItemStatusFlags = dockTabItemStatusFlags; - DockTabItemRect = dockTabItemRect; - InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector<uint> idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector<ImGuiOldColumns> columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, Span<uint> navLastIds = default, Span<ImRect> navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default) - { - Name = name; - ID = id; - Flags = flags; - FlagsPreviousFrame = flagsPreviousFrame; - WindowClass = windowClass; - Viewport = viewport; - ViewportId = viewportId; - ViewportPos = viewportPos; - ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; - Pos = pos; - Size = size; - SizeFull = sizeFull; - ContentSize = contentSize; - ContentSizeIdeal = contentSizeIdeal; - ContentSizeExplicit = contentSizeExplicit; - WindowPadding = windowPadding; - WindowRounding = windowRounding; - WindowBorderSize = windowBorderSize; - NameBufLen = nameBufLen; - MoveId = moveId; - TabId = tabId; - ChildId = childId; - Scroll = scroll; - ScrollMax = scrollMax; - ScrollTarget = scrollTarget; - ScrollTargetCenterRatio = scrollTargetCenterRatio; - ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; - ScrollbarSizes = scrollbarSizes; - ScrollbarX = scrollbarX ? (byte)1 : (byte)0; - ScrollbarY = scrollbarY ? (byte)1 : (byte)0; - ViewportOwned = viewportOwned ? (byte)1 : (byte)0; - Active = active ? (byte)1 : (byte)0; - WasActive = wasActive ? (byte)1 : (byte)0; - WriteAccessed = writeAccessed ? (byte)1 : (byte)0; - Collapsed = collapsed ? (byte)1 : (byte)0; - WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; - SkipItems = skipItems ? (byte)1 : (byte)0; - Appearing = appearing ? (byte)1 : (byte)0; - Hidden = hidden ? (byte)1 : (byte)0; - IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; - IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; - HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; - ResizeBorderHeld = resizeBorderHeld; - BeginCount = beginCount; - BeginOrderWithinParent = beginOrderWithinParent; - BeginOrderWithinContext = beginOrderWithinContext; - FocusOrder = focusOrder; - PopupId = popupId; - AutoFitFramesX = autoFitFramesX; - AutoFitFramesY = autoFitFramesY; - AutoFitChildAxises = autoFitChildAxises; - AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; - AutoPosLastDirection = autoPosLastDirection; - HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; - HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; - HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; - DisableInputsFrames = disableInputsFrames; - SetWindowPosAllowFlags = setWindowPosAllowFlags; - SetWindowSizeAllowFlags = setWindowSizeAllowFlags; - SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; - SetWindowDockAllowFlags = setWindowDockAllowFlags; - SetWindowPosVal = setWindowPosVal; - SetWindowPosPivot = setWindowPosPivot; - IDStack = idStack; - DC = dc; - OuterRectClipped = outerRectClipped; - InnerRect = innerRect; - InnerClipRect = innerClipRect; - WorkRect = workRect; - ParentWorkRect = parentWorkRect; - ClipRect = clipRect; - ContentRegionRect = contentRegionRect; - HitTestHoleSize = hitTestHoleSize; - HitTestHoleOffset = hitTestHoleOffset; - LastFrameActive = lastFrameActive; - LastFrameJustFocused = lastFrameJustFocused; - LastTimeActive = lastTimeActive; - ItemWidthDefault = itemWidthDefault; - StateStorage = stateStorage; - ColumnsStorage = columnsStorage; - FontWindowScale = fontWindowScale; - FontDpiScale = fontDpiScale; - SettingsOffset = settingsOffset; - DrawList = drawList; - DrawListInst = drawListInst; - ParentWindow = parentWindow; - ParentWindowInBeginStack = parentWindowInBeginStack; - RootWindow = rootWindow; - RootWindowPopupTree = rootWindowPopupTree; - RootWindowDockTree = rootWindowDockTree; - RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; - RootWindowForNav = rootWindowForNav; - NavLastChildNavWindow = navLastChildNavWindow; - if (navLastIds != default(Span<uint>)) - { - NavLastIds_0 = navLastIds[0]; - NavLastIds_1 = navLastIds[1]; - } - if (navRectRel != default(Span<ImRect>)) - { - NavRectRel_0 = navRectRel[0]; - NavRectRel_1 = navRectRel[1]; - } - MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; - MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; - MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; - DockIsActive = dockIsActive; - DockNodeIsVisible = dockNodeIsVisible; - DockTabIsVisible = dockTabIsVisible; - DockTabWantClose = dockTabWantClose; - DockOrder = dockOrder; - DockStyle = dockStyle; - DockNode = dockNode; - DockNodeAsHost = dockNodeAsHost; - DockId = dockId; - DockTabItemStatusFlags = dockTabItemStatusFlags; - DockTabItemRect = dockTabItemRect; - InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0; - } - - - public ImGuiCond SetWindowPosAllowFlags { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); } - - public ImGuiCond SetWindowSizeAllowFlags { get => Bitfield.Get(RawBits0, 8, 8); set => Bitfield.Set(ref RawBits0, value, 8, 8); } - - public ImGuiCond SetWindowCollapsedAllowFlags { get => Bitfield.Get(RawBits0, 16, 8); set => Bitfield.Set(ref RawBits0, value, 16, 8); } - - public ImGuiCond SetWindowDockAllowFlags { get => Bitfield.Get(RawBits0, 24, 8); set => Bitfield.Set(ref RawBits0, value, 24, 8); } - - public bool DockIsActive { get => Bitfield.Get(RawBits1, 0, 1); set => Bitfield.Set(ref RawBits1, value, 0, 1); } - - public bool DockNodeIsVisible { get => Bitfield.Get(RawBits1, 1, 1); set => Bitfield.Set(ref RawBits1, value, 1, 1); } - - public bool DockTabIsVisible { get => Bitfield.Get(RawBits1, 2, 1); set => Bitfield.Set(ref RawBits1, value, 2, 1); } - - public bool DockTabWantClose { get => Bitfield.Get(RawBits1, 3, 1); set => Bitfield.Set(ref RawBits1, value, 3, 1); } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImRect> NavRectRel - - { - get - { - fixed (ImRect* p = &this.NavRectRel_0) - { - return new Span<ImRect>(p, 2); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiWindowPtr : IEquatable<ImGuiWindowPtr> - { - public ImGuiWindowPtr(ImGuiWindow* handle) { Handle = handle; } - - public ImGuiWindow* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiWindowPtr Null => new ImGuiWindowPtr(null); - - public ImGuiWindow this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiWindowPtr(ImGuiWindow* handle) => new ImGuiWindowPtr(handle); - - public static implicit operator ImGuiWindow*(ImGuiWindowPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle == right; - - public static bool operator !=(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle != right; - - public bool Equals(ImGuiWindowPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiWindowPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiWindowPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public byte* Name { get => Handle->Name; set => Handle->Name = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowFlags Flags => ref Unsafe.AsRef<ImGuiWindowFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowFlags FlagsPreviousFrame => ref Unsafe.AsRef<ImGuiWindowFlags>(&Handle->FlagsPreviousFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef<ImGuiWindowClass>(&Handle->WindowClass); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportPPtr Viewport => ref Unsafe.AsRef<ImGuiViewportPPtr>(&Handle->Viewport); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ViewportId => ref Unsafe.AsRef<uint>(&Handle->ViewportId); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ViewportPos => ref Unsafe.AsRef<Vector2>(&Handle->ViewportPos); - /// <summary> - /// To be documented. - /// </summary> - public ref int ViewportAllowPlatformMonitorExtend => ref Unsafe.AsRef<int>(&Handle->ViewportAllowPlatformMonitorExtend); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Size => ref Unsafe.AsRef<Vector2>(&Handle->Size); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 SizeFull => ref Unsafe.AsRef<Vector2>(&Handle->SizeFull); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ContentSize => ref Unsafe.AsRef<Vector2>(&Handle->ContentSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ContentSizeIdeal => ref Unsafe.AsRef<Vector2>(&Handle->ContentSizeIdeal); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ContentSizeExplicit => ref Unsafe.AsRef<Vector2>(&Handle->ContentSizeExplicit); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 WindowPadding => ref Unsafe.AsRef<Vector2>(&Handle->WindowPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref float WindowRounding => ref Unsafe.AsRef<float>(&Handle->WindowRounding); - /// <summary> - /// To be documented. - /// </summary> - public ref float WindowBorderSize => ref Unsafe.AsRef<float>(&Handle->WindowBorderSize); - /// <summary> - /// To be documented. - /// </summary> - public ref int NameBufLen => ref Unsafe.AsRef<int>(&Handle->NameBufLen); - /// <summary> - /// To be documented. - /// </summary> - public ref uint MoveId => ref Unsafe.AsRef<uint>(&Handle->MoveId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint TabId => ref Unsafe.AsRef<uint>(&Handle->TabId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ChildId => ref Unsafe.AsRef<uint>(&Handle->ChildId); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Scroll => ref Unsafe.AsRef<Vector2>(&Handle->Scroll); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ScrollMax => ref Unsafe.AsRef<Vector2>(&Handle->ScrollMax); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ScrollTarget => ref Unsafe.AsRef<Vector2>(&Handle->ScrollTarget); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ScrollTargetCenterRatio => ref Unsafe.AsRef<Vector2>(&Handle->ScrollTargetCenterRatio); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ScrollTargetEdgeSnapDist => ref Unsafe.AsRef<Vector2>(&Handle->ScrollTargetEdgeSnapDist); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 ScrollbarSizes => ref Unsafe.AsRef<Vector2>(&Handle->ScrollbarSizes); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ScrollbarX => ref Unsafe.AsRef<bool>(&Handle->ScrollbarX); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ScrollbarY => ref Unsafe.AsRef<bool>(&Handle->ScrollbarY); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ViewportOwned => ref Unsafe.AsRef<bool>(&Handle->ViewportOwned); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Active => ref Unsafe.AsRef<bool>(&Handle->Active); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WasActive => ref Unsafe.AsRef<bool>(&Handle->WasActive); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WriteAccessed => ref Unsafe.AsRef<bool>(&Handle->WriteAccessed); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Collapsed => ref Unsafe.AsRef<bool>(&Handle->Collapsed); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantCollapseToggle => ref Unsafe.AsRef<bool>(&Handle->WantCollapseToggle); - /// <summary> - /// To be documented. - /// </summary> - public ref bool SkipItems => ref Unsafe.AsRef<bool>(&Handle->SkipItems); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Appearing => ref Unsafe.AsRef<bool>(&Handle->Appearing); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Hidden => ref Unsafe.AsRef<bool>(&Handle->Hidden); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsFallbackWindow => ref Unsafe.AsRef<bool>(&Handle->IsFallbackWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref bool IsExplicitChild => ref Unsafe.AsRef<bool>(&Handle->IsExplicitChild); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HasCloseButton => ref Unsafe.AsRef<bool>(&Handle->HasCloseButton); - /// <summary> - /// To be documented. - /// </summary> - public ref byte ResizeBorderHeld => ref Unsafe.AsRef<byte>(&Handle->ResizeBorderHeld); - /// <summary> - /// To be documented. - /// </summary> - public ref short BeginCount => ref Unsafe.AsRef<short>(&Handle->BeginCount); - /// <summary> - /// To be documented. - /// </summary> - public ref short BeginOrderWithinParent => ref Unsafe.AsRef<short>(&Handle->BeginOrderWithinParent); - /// <summary> - /// To be documented. - /// </summary> - public ref short BeginOrderWithinContext => ref Unsafe.AsRef<short>(&Handle->BeginOrderWithinContext); - /// <summary> - /// To be documented. - /// </summary> - public ref short FocusOrder => ref Unsafe.AsRef<short>(&Handle->FocusOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref uint PopupId => ref Unsafe.AsRef<uint>(&Handle->PopupId); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte AutoFitFramesX => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitFramesX); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte AutoFitFramesY => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitFramesY); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte AutoFitChildAxises => ref Unsafe.AsRef<sbyte>(&Handle->AutoFitChildAxises); - /// <summary> - /// To be documented. - /// </summary> - public ref bool AutoFitOnlyGrows => ref Unsafe.AsRef<bool>(&Handle->AutoFitOnlyGrows); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDir AutoPosLastDirection => ref Unsafe.AsRef<ImGuiDir>(&Handle->AutoPosLastDirection); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte HiddenFramesCanSkipItems => ref Unsafe.AsRef<sbyte>(&Handle->HiddenFramesCanSkipItems); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte HiddenFramesCannotSkipItems => ref Unsafe.AsRef<sbyte>(&Handle->HiddenFramesCannotSkipItems); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte HiddenFramesForRenderOnly => ref Unsafe.AsRef<sbyte>(&Handle->HiddenFramesForRenderOnly); - /// <summary> - /// To be documented. - /// </summary> - public ref sbyte DisableInputsFrames => ref Unsafe.AsRef<sbyte>(&Handle->DisableInputsFrames); - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond SetWindowPosAllowFlags { get => Handle->SetWindowPosAllowFlags; set => Handle->SetWindowPosAllowFlags = value; } - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond SetWindowSizeAllowFlags { get => Handle->SetWindowSizeAllowFlags; set => Handle->SetWindowSizeAllowFlags = value; } - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond SetWindowCollapsedAllowFlags { get => Handle->SetWindowCollapsedAllowFlags; set => Handle->SetWindowCollapsedAllowFlags = value; } - /// <summary> - /// To be documented. - /// </summary> - public ImGuiCond SetWindowDockAllowFlags { get => Handle->SetWindowDockAllowFlags; set => Handle->SetWindowDockAllowFlags = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 SetWindowPosVal => ref Unsafe.AsRef<Vector2>(&Handle->SetWindowPosVal); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 SetWindowPosPivot => ref Unsafe.AsRef<Vector2>(&Handle->SetWindowPosPivot); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<uint> IDStack => ref Unsafe.AsRef<ImVector<uint>>(&Handle->IDStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowTempData DC => ref Unsafe.AsRef<ImGuiWindowTempData>(&Handle->DC); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect OuterRectClipped => ref Unsafe.AsRef<ImRect>(&Handle->OuterRectClipped); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect InnerRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect InnerClipRect => ref Unsafe.AsRef<ImRect>(&Handle->InnerClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect WorkRect => ref Unsafe.AsRef<ImRect>(&Handle->WorkRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect ParentWorkRect => ref Unsafe.AsRef<ImRect>(&Handle->ParentWorkRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect ClipRect => ref Unsafe.AsRef<ImRect>(&Handle->ClipRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect ContentRegionRect => ref Unsafe.AsRef<ImRect>(&Handle->ContentRegionRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec2Ih HitTestHoleSize => ref Unsafe.AsRef<ImVec2Ih>(&Handle->HitTestHoleSize); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec2Ih HitTestHoleOffset => ref Unsafe.AsRef<ImVec2Ih>(&Handle->HitTestHoleOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameActive => ref Unsafe.AsRef<int>(&Handle->LastFrameActive); - /// <summary> - /// To be documented. - /// </summary> - public ref int LastFrameJustFocused => ref Unsafe.AsRef<int>(&Handle->LastFrameJustFocused); - /// <summary> - /// To be documented. - /// </summary> - public ref float LastTimeActive => ref Unsafe.AsRef<float>(&Handle->LastTimeActive); - /// <summary> - /// To be documented. - /// </summary> - public ref float ItemWidthDefault => ref Unsafe.AsRef<float>(&Handle->ItemWidthDefault); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStorage StateStorage => ref Unsafe.AsRef<ImGuiStorage>(&Handle->StateStorage); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiOldColumns> ColumnsStorage => ref Unsafe.AsRef<ImVector<ImGuiOldColumns>>(&Handle->ColumnsStorage); - /// <summary> - /// To be documented. - /// </summary> - public ref float FontWindowScale => ref Unsafe.AsRef<float>(&Handle->FontWindowScale); - /// <summary> - /// To be documented. - /// </summary> - public ref float FontDpiScale => ref Unsafe.AsRef<float>(&Handle->FontDpiScale); - /// <summary> - /// To be documented. - /// </summary> - public ref int SettingsOffset => ref Unsafe.AsRef<int>(&Handle->SettingsOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawListPtr DrawList => ref Unsafe.AsRef<ImDrawListPtr>(&Handle->DrawList); - /// <summary> - /// To be documented. - /// </summary> - public ref ImDrawList DrawListInst => ref Unsafe.AsRef<ImDrawList>(&Handle->DrawListInst); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr ParentWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ParentWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr ParentWindowInBeginStack => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->ParentWindowInBeginStack); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr RootWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindow); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr RootWindowPopupTree => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowPopupTree); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr RootWindowDockTree => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowDockTree); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr RootWindowForTitleBarHighlight => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowForTitleBarHighlight); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr RootWindowForNav => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->RootWindowForNav); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr NavLastChildNavWindow => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->NavLastChildNavWindow); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<uint> NavLastIds - - { - get - { - return new Span<uint>(&Handle->NavLastIds_0, 2); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImRect> NavRectRel - - { - get - { - return new Span<ImRect>(&Handle->NavRectRel_0, 2); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref int MemoryDrawListIdxCapacity => ref Unsafe.AsRef<int>(&Handle->MemoryDrawListIdxCapacity); - /// <summary> - /// To be documented. - /// </summary> - public ref int MemoryDrawListVtxCapacity => ref Unsafe.AsRef<int>(&Handle->MemoryDrawListVtxCapacity); - /// <summary> - /// To be documented. - /// </summary> - public ref bool MemoryCompacted => ref Unsafe.AsRef<bool>(&Handle->MemoryCompacted); - /// <summary> - /// To be documented. - /// </summary> - public bool DockIsActive { get => Handle->DockIsActive; set => Handle->DockIsActive = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool DockNodeIsVisible { get => Handle->DockNodeIsVisible; set => Handle->DockNodeIsVisible = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool DockTabIsVisible { get => Handle->DockTabIsVisible; set => Handle->DockTabIsVisible = value; } - /// <summary> - /// To be documented. - /// </summary> - public bool DockTabWantClose { get => Handle->DockTabWantClose; set => Handle->DockTabWantClose = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref short DockOrder => ref Unsafe.AsRef<short>(&Handle->DockOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowDockStyle DockStyle => ref Unsafe.AsRef<ImGuiWindowDockStyle>(&Handle->DockStyle); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodePtr DockNode => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->DockNode); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodePtr DockNodeAsHost => ref Unsafe.AsRef<ImGuiDockNodePtr>(&Handle->DockNodeAsHost); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DockId => ref Unsafe.AsRef<uint>(&Handle->DockId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiItemStatusFlags DockTabItemStatusFlags => ref Unsafe.AsRef<ImGuiItemStatusFlags>(&Handle->DockTabItemStatusFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect DockTabItemRect => ref Unsafe.AsRef<ImRect>(&Handle->DockTabItemRect); - /// <summary> - /// To be documented. - /// </summary> - public ref bool InheritNoInputs => ref Unsafe.AsRef<bool>(&Handle->InheritNoInputs); - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiWindowPtrPtr : IEquatable<ImGuiWindowPtrPtr> - { - public ImGuiWindowPtrPtr(ImGuiWindow** handle) { Handle = handle; } - - public ImGuiWindow** Handle; - - public bool IsNull => Handle == null; - - public static ImGuiWindowPtrPtr Null => new ImGuiWindowPtrPtr(null); - - public ImGuiWindow* this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiWindowPtrPtr(ImGuiWindow** handle) => new ImGuiWindowPtrPtr(handle); - - public static implicit operator ImGuiWindow**(ImGuiWindowPtrPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle == right; - - public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle != right; - - public bool Equals(ImGuiWindowPtrPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiWindowPtrPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiWindowPtrPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs deleted file mode 100644 index 8e2df005f..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowClass.cs +++ /dev/null @@ -1,178 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowClass - { - /// <summary> - /// To be documented. - /// </summary> - public uint ClassId; - - /// <summary> - /// To be documented. - /// </summary> - public uint ParentViewportId; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiViewportFlags ViewportFlagsOverrideSet; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiViewportFlags ViewportFlagsOverrideClear; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTabItemFlags TabItemFlagsOverrideSet; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiDockNodeFlags DockNodeFlagsOverrideSet; - - /// <summary> - /// To be documented. - /// </summary> - public byte DockingAlwaysTabBar; - - /// <summary> - /// To be documented. - /// </summary> - public byte DockingAllowUnclassed; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindowClass(uint classId = default, uint parentViewportId = default, ImGuiViewportFlags viewportFlagsOverrideSet = default, ImGuiViewportFlags viewportFlagsOverrideClear = default, ImGuiTabItemFlags tabItemFlagsOverrideSet = default, ImGuiDockNodeFlags dockNodeFlagsOverrideSet = default, bool dockingAlwaysTabBar = default, bool dockingAllowUnclassed = default) - { - ClassId = classId; - ParentViewportId = parentViewportId; - ViewportFlagsOverrideSet = viewportFlagsOverrideSet; - ViewportFlagsOverrideClear = viewportFlagsOverrideClear; - TabItemFlagsOverrideSet = tabItemFlagsOverrideSet; - DockNodeFlagsOverrideSet = dockNodeFlagsOverrideSet; - DockingAlwaysTabBar = dockingAlwaysTabBar ? (byte)1 : (byte)0; - DockingAllowUnclassed = dockingAllowUnclassed ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiWindowClass* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiWindowClassPtr : IEquatable<ImGuiWindowClassPtr> - { - public ImGuiWindowClassPtr(ImGuiWindowClass* handle) { Handle = handle; } - - public ImGuiWindowClass* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiWindowClassPtr Null => new ImGuiWindowClassPtr(null); - - public ImGuiWindowClass this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiWindowClassPtr(ImGuiWindowClass* handle) => new ImGuiWindowClassPtr(handle); - - public static implicit operator ImGuiWindowClass*(ImGuiWindowClassPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClassPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle == right; - - public static bool operator !=(ImGuiWindowClassPtr left, ImGuiWindowClass* right) => left.Handle != right; - - public bool Equals(ImGuiWindowClassPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiWindowClassPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiWindowClassPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ClassId => ref Unsafe.AsRef<uint>(&Handle->ClassId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ParentViewportId => ref Unsafe.AsRef<uint>(&Handle->ParentViewportId); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportFlags ViewportFlagsOverrideSet => ref Unsafe.AsRef<ImGuiViewportFlags>(&Handle->ViewportFlagsOverrideSet); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiViewportFlags ViewportFlagsOverrideClear => ref Unsafe.AsRef<ImGuiViewportFlags>(&Handle->ViewportFlagsOverrideClear); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTabItemFlags TabItemFlagsOverrideSet => ref Unsafe.AsRef<ImGuiTabItemFlags>(&Handle->TabItemFlagsOverrideSet); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&Handle->DockNodeFlagsOverrideSet); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&Handle->DockingAlwaysTabBar); - /// <summary> - /// To be documented. - /// </summary> - public ref bool DockingAllowUnclassed => ref Unsafe.AsRef<bool>(&Handle->DockingAllowUnclassed); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs deleted file mode 100644 index 8125cf9bd..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowDockStyle.cs +++ /dev/null @@ -1,71 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowDockStyle - { - /// <summary> - /// To be documented. - /// </summary> - public uint Colors_0; - public uint Colors_1; - public uint Colors_2; - public uint Colors_3; - public uint Colors_4; - public uint Colors_5; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindowDockStyle(uint* colors = default) - { - if (colors != default(uint*)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindowDockStyle(Span<uint> colors = default) - { - if (colors != default(Span<uint>)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - } - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs deleted file mode 100644 index 6345c2151..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowSettings.cs +++ /dev/null @@ -1,198 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowSettings - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec2Ih Pos; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec2Ih Size; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec2Ih ViewportPos; - - /// <summary> - /// To be documented. - /// </summary> - public uint ViewportId; - - /// <summary> - /// To be documented. - /// </summary> - public uint DockId; - - /// <summary> - /// To be documented. - /// </summary> - public uint ClassId; - - /// <summary> - /// To be documented. - /// </summary> - public short DockOrder; - - /// <summary> - /// To be documented. - /// </summary> - public byte Collapsed; - - /// <summary> - /// To be documented. - /// </summary> - public byte WantApply; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindowSettings(uint id = default, ImVec2Ih pos = default, ImVec2Ih size = default, ImVec2Ih viewportPos = default, uint viewportId = default, uint dockId = default, uint classId = default, short dockOrder = default, bool collapsed = default, bool wantApply = default) - { - ID = id; - Pos = pos; - Size = size; - ViewportPos = viewportPos; - ViewportId = viewportId; - DockId = dockId; - ClassId = classId; - DockOrder = dockOrder; - Collapsed = collapsed ? (byte)1 : (byte)0; - WantApply = wantApply ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImGuiWindowSettings* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiWindowSettingsPtr : IEquatable<ImGuiWindowSettingsPtr> - { - public ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) { Handle = handle; } - - public ImGuiWindowSettings* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiWindowSettingsPtr Null => new ImGuiWindowSettingsPtr(null); - - public ImGuiWindowSettings this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiWindowSettingsPtr(ImGuiWindowSettings* handle) => new ImGuiWindowSettingsPtr(handle); - - public static implicit operator ImGuiWindowSettings*(ImGuiWindowSettingsPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettingsPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle == right; - - public static bool operator !=(ImGuiWindowSettingsPtr left, ImGuiWindowSettings* right) => left.Handle != right; - - public bool Equals(ImGuiWindowSettingsPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiWindowSettingsPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiWindowSettingsPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec2Ih Pos => ref Unsafe.AsRef<ImVec2Ih>(&Handle->Pos); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec2Ih Size => ref Unsafe.AsRef<ImVec2Ih>(&Handle->Size); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVec2Ih ViewportPos => ref Unsafe.AsRef<ImVec2Ih>(&Handle->ViewportPos); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ViewportId => ref Unsafe.AsRef<uint>(&Handle->ViewportId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint DockId => ref Unsafe.AsRef<uint>(&Handle->DockId); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ClassId => ref Unsafe.AsRef<uint>(&Handle->ClassId); - /// <summary> - /// To be documented. - /// </summary> - public ref short DockOrder => ref Unsafe.AsRef<short>(&Handle->DockOrder); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Collapsed => ref Unsafe.AsRef<bool>(&Handle->Collapsed); - /// <summary> - /// To be documented. - /// </summary> - public ref bool WantApply => ref Unsafe.AsRef<bool>(&Handle->WantApply); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs deleted file mode 100644 index 307059db4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowStackData.cs +++ /dev/null @@ -1,109 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowStackData - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindow* Window; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiLastItemData ParentLastItemDataBackup; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStackSizes StackSizesOnBegin; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindowStackData(ImGuiWindowPtr window = default, ImGuiLastItemData parentLastItemDataBackup = default, ImGuiStackSizes stackSizesOnBegin = default) - { - Window = window; - ParentLastItemDataBackup = parentLastItemDataBackup; - StackSizesOnBegin = stackSizesOnBegin; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImGuiWindowStackDataPtr : IEquatable<ImGuiWindowStackDataPtr> - { - public ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) { Handle = handle; } - - public ImGuiWindowStackData* Handle; - - public bool IsNull => Handle == null; - - public static ImGuiWindowStackDataPtr Null => new ImGuiWindowStackDataPtr(null); - - public ImGuiWindowStackData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImGuiWindowStackDataPtr(ImGuiWindowStackData* handle) => new ImGuiWindowStackDataPtr(handle); - - public static implicit operator ImGuiWindowStackData*(ImGuiWindowStackDataPtr handle) => handle.Handle; - - public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle == right; - - public static bool operator !=(ImGuiWindowStackDataPtr left, ImGuiWindowStackData* right) => left.Handle != right; - - public bool Equals(ImGuiWindowStackDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImGuiWindowStackDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImGuiWindowStackDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiWindowPtr Window => ref Unsafe.AsRef<ImGuiWindowPtr>(&Handle->Window); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiLastItemData ParentLastItemDataBackup => ref Unsafe.AsRef<ImGuiLastItemData>(&Handle->ParentLastItemDataBackup); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStackSizes StackSizesOnBegin => ref Unsafe.AsRef<ImGuiStackSizes>(&Handle->StackSizesOnBegin); - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs deleted file mode 100644 index 118d62337..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImGuiWindowTempData.cs +++ /dev/null @@ -1,246 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowTempData - { - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CursorPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CursorPosPrevLine; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CursorStartPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CursorMaxPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 IdealMaxPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CurrLineSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 PrevLineSize; - - /// <summary> - /// To be documented. - /// </summary> - public float CurrLineTextBaseOffset; - - /// <summary> - /// To be documented. - /// </summary> - public float PrevLineTextBaseOffset; - - /// <summary> - /// To be documented. - /// </summary> - public byte IsSameLine; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec1 Indent; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec1 ColumnsOffset; - - /// <summary> - /// To be documented. - /// </summary> - public ImVec1 GroupOffset; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CursorStartPosLossyness; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiNavLayer NavLayerCurrent; - - /// <summary> - /// To be documented. - /// </summary> - public short NavLayersActiveMask; - - /// <summary> - /// To be documented. - /// </summary> - public short NavLayersActiveMaskNext; - - /// <summary> - /// To be documented. - /// </summary> - public uint NavFocusScopeIdCurrent; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavHideHighlightOneFrame; - - /// <summary> - /// To be documented. - /// </summary> - public byte NavHasScroll; - - /// <summary> - /// To be documented. - /// </summary> - public byte MenuBarAppending; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MenuBarOffset; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMenuColumns MenuColumns; - - /// <summary> - /// To be documented. - /// </summary> - public int TreeDepth; - - /// <summary> - /// To be documented. - /// </summary> - public uint TreeJumpToParentOnPopMask; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiWindowPtr> ChildWindows; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiStorage* StateStorage; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiOldColumns* CurrentColumns; - - /// <summary> - /// To be documented. - /// </summary> - public int CurrentTableIdx; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiLayoutType LayoutType; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiLayoutType ParentLayoutType; - - /// <summary> - /// To be documented. - /// </summary> - public float ItemWidth; - - /// <summary> - /// To be documented. - /// </summary> - public float TextWrapPos; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<float> ItemWidthStack; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<float> TextWrapPosStack; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiWindowTempData(Vector2 cursorPos = default, Vector2 cursorPosPrevLine = default, Vector2 cursorStartPos = default, Vector2 cursorMaxPos = default, Vector2 idealMaxPos = default, Vector2 currLineSize = default, Vector2 prevLineSize = default, float currLineTextBaseOffset = default, float prevLineTextBaseOffset = default, bool isSameLine = default, ImVec1 indent = default, ImVec1 columnsOffset = default, ImVec1 groupOffset = default, Vector2 cursorStartPosLossyness = default, ImGuiNavLayer navLayerCurrent = default, short navLayersActiveMask = default, short navLayersActiveMaskNext = default, uint navFocusScopeIdCurrent = default, bool navHideHighlightOneFrame = default, bool navHasScroll = default, bool menuBarAppending = default, Vector2 menuBarOffset = default, ImGuiMenuColumns menuColumns = default, int treeDepth = default, uint treeJumpToParentOnPopMask = default, ImVector<ImGuiWindowPtr> childWindows = default, ImGuiStorage* stateStorage = default, ImGuiOldColumns* currentColumns = default, int currentTableIdx = default, ImGuiLayoutType layoutType = default, ImGuiLayoutType parentLayoutType = default, float itemWidth = default, float textWrapPos = default, ImVector<float> itemWidthStack = default, ImVector<float> textWrapPosStack = default) - { - CursorPos = cursorPos; - CursorPosPrevLine = cursorPosPrevLine; - CursorStartPos = cursorStartPos; - CursorMaxPos = cursorMaxPos; - IdealMaxPos = idealMaxPos; - CurrLineSize = currLineSize; - PrevLineSize = prevLineSize; - CurrLineTextBaseOffset = currLineTextBaseOffset; - PrevLineTextBaseOffset = prevLineTextBaseOffset; - IsSameLine = isSameLine ? (byte)1 : (byte)0; - Indent = indent; - ColumnsOffset = columnsOffset; - GroupOffset = groupOffset; - CursorStartPosLossyness = cursorStartPosLossyness; - NavLayerCurrent = navLayerCurrent; - NavLayersActiveMask = navLayersActiveMask; - NavLayersActiveMaskNext = navLayersActiveMaskNext; - NavFocusScopeIdCurrent = navFocusScopeIdCurrent; - NavHideHighlightOneFrame = navHideHighlightOneFrame ? (byte)1 : (byte)0; - NavHasScroll = navHasScroll ? (byte)1 : (byte)0; - MenuBarAppending = menuBarAppending ? (byte)1 : (byte)0; - MenuBarOffset = menuBarOffset; - MenuColumns = menuColumns; - TreeDepth = treeDepth; - TreeJumpToParentOnPopMask = treeJumpToParentOnPopMask; - ChildWindows = childWindows; - StateStorage = stateStorage; - CurrentColumns = currentColumns; - CurrentTableIdx = currentTableIdx; - LayoutType = layoutType; - ParentLayoutType = parentLayoutType; - ItemWidth = itemWidth; - TextWrapPos = textWrapPos; - ItemWidthStack = itemWidthStack; - TextWrapPosStack = textWrapPosStack; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTabBar.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTabBar.cs deleted file mode 100644 index e16aed08c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTabBar.cs +++ /dev/null @@ -1,60 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImGuiTabBar - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiTabBar> Buf; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Map; - - /// <summary> - /// To be documented. - /// </summary> - public int FreeIdx; - - /// <summary> - /// To be documented. - /// </summary> - public int AliveCount; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPoolImGuiTabBar(ImVector<ImGuiTabBar> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTable.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTable.cs deleted file mode 100644 index 3c546e300..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImPoolImGuiTable.cs +++ /dev/null @@ -1,60 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImGuiTable - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiTable> Buf; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Map; - - /// <summary> - /// To be documented. - /// </summary> - public int FreeIdx; - - /// <summary> - /// To be documented. - /// </summary> - public int AliveCount; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPoolImGuiTable(ImVector<ImGuiTable> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs deleted file mode 100644 index 0130247c9..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImRect.cs +++ /dev/null @@ -1,118 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImRect - { - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Min; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Max; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImRect(Vector2 min = default, Vector2 max = default) - { - Min = min; - Max = max; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImRect* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImRectPtr : IEquatable<ImRectPtr> - { - public ImRectPtr(ImRect* handle) { Handle = handle; } - - public ImRect* Handle; - - public bool IsNull => Handle == null; - - public static ImRectPtr Null => new ImRectPtr(null); - - public ImRect this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImRectPtr(ImRect* handle) => new ImRectPtr(handle); - - public static implicit operator ImRect*(ImRectPtr handle) => handle.Handle; - - public static bool operator ==(ImRectPtr left, ImRectPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImRectPtr left, ImRectPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImRectPtr left, ImRect* right) => left.Handle == right; - - public static bool operator !=(ImRectPtr left, ImRect* right) => left.Handle != right; - - public bool Equals(ImRectPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImRectPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Min => ref Unsafe.AsRef<Vector2>(&Handle->Min); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Max => ref Unsafe.AsRef<Vector2>(&Handle->Max); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableCellData.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableCellData.cs deleted file mode 100644 index 7b087362a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableCellData.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImSpanImGuiTableCellData - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableCellData* Data; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableCellData* DataEnd; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImSpanImGuiTableCellData(ImGuiTableCellData* data = default, ImGuiTableCellData* dataEnd = default) - { - Data = data; - DataEnd = dataEnd; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumn.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumn.cs deleted file mode 100644 index 37bbcc2c4..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumn.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImSpanImGuiTableColumn - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableColumn* Data; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImGuiTableColumn* DataEnd; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImSpanImGuiTableColumn(ImGuiTableColumn* data = default, ImGuiTableColumn* dataEnd = default) - { - Data = data; - DataEnd = dataEnd; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumnIdx.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumnIdx.cs deleted file mode 100644 index b28325a51..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImSpanImGuiTableColumnIdx.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImSpanImGuiTableColumnIdx - { - /// <summary> - /// To be documented. - /// </summary> - public unsafe sbyte* Data; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe sbyte* DataEnd; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImSpanImGuiTableColumnIdx(sbyte* data = default, sbyte* dataEnd = default) - { - Data = data; - DataEnd = dataEnd; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec1.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec1.cs deleted file mode 100644 index 2dce2f41c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec1.cs +++ /dev/null @@ -1,108 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImVec1 - { - /// <summary> - /// To be documented. - /// </summary> - public float X; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImVec1(float x = default) - { - X = x; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImVec1* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImVec1Ptr : IEquatable<ImVec1Ptr> - { - public ImVec1Ptr(ImVec1* handle) { Handle = handle; } - - public ImVec1* Handle; - - public bool IsNull => Handle == null; - - public static ImVec1Ptr Null => new ImVec1Ptr(null); - - public ImVec1 this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImVec1Ptr(ImVec1* handle) => new ImVec1Ptr(handle); - - public static implicit operator ImVec1*(ImVec1Ptr handle) => handle.Handle; - - public static bool operator ==(ImVec1Ptr left, ImVec1Ptr right) => left.Handle == right.Handle; - - public static bool operator !=(ImVec1Ptr left, ImVec1Ptr right) => left.Handle != right.Handle; - - public static bool operator ==(ImVec1Ptr left, ImVec1* right) => left.Handle == right; - - public static bool operator !=(ImVec1Ptr left, ImVec1* right) => left.Handle != right; - - public bool Equals(ImVec1Ptr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImVec1Ptr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImVec1Ptr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref float X => ref Unsafe.AsRef<float>(&Handle->X); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs deleted file mode 100644 index 2b4457e0b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs +++ /dev/null @@ -1,118 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImVec2Ih - { - /// <summary> - /// To be documented. - /// </summary> - public short X; - - /// <summary> - /// To be documented. - /// </summary> - public short Y; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImVec2Ih(short x = default, short y = default) - { - X = x; - Y = y; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImVec2Ih* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImVec2IhPtr : IEquatable<ImVec2IhPtr> - { - public ImVec2IhPtr(ImVec2Ih* handle) { Handle = handle; } - - public ImVec2Ih* Handle; - - public bool IsNull => Handle == null; - - public static ImVec2IhPtr Null => new ImVec2IhPtr(null); - - public ImVec2Ih this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImVec2IhPtr(ImVec2Ih* handle) => new ImVec2IhPtr(handle); - - public static implicit operator ImVec2Ih*(ImVec2IhPtr handle) => handle.Handle; - - public static bool operator ==(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle == right; - - public static bool operator !=(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle != right; - - public bool Equals(ImVec2IhPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImVec2IhPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImVec2IhPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref short X => ref Unsafe.AsRef<short>(&Handle->X); - /// <summary> - /// To be documented. - /// </summary> - public ref short Y => ref Unsafe.AsRef<short>(&Handle->Y); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImGui.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/STBTexteditState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/STBTexteditState.cs deleted file mode 100644 index 49d3e236e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/STBTexteditState.cs +++ /dev/null @@ -1,120 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct STBTexteditState - { - /// <summary> - /// To be documented. - /// </summary> - public int Cursor; - - /// <summary> - /// To be documented. - /// </summary> - public int SelectStart; - - /// <summary> - /// To be documented. - /// </summary> - public int SelectEnd; - - /// <summary> - /// To be documented. - /// </summary> - public byte InsertMode; - - /// <summary> - /// To be documented. - /// </summary> - public int RowCountPerPage; - - /// <summary> - /// To be documented. - /// </summary> - public byte CursorAtEndOfLine; - - /// <summary> - /// To be documented. - /// </summary> - public byte Initialized; - - /// <summary> - /// To be documented. - /// </summary> - public byte HasPreferredX; - - /// <summary> - /// To be documented. - /// </summary> - public byte SingleLine; - - /// <summary> - /// To be documented. - /// </summary> - public byte Padding1; - - /// <summary> - /// To be documented. - /// </summary> - public byte Padding2; - - /// <summary> - /// To be documented. - /// </summary> - public byte Padding3; - - /// <summary> - /// To be documented. - /// </summary> - public float PreferredX; - - /// <summary> - /// To be documented. - /// </summary> - public StbUndoState Undostate; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe STBTexteditState(int cursor = default, int selectStart = default, int selectEnd = default, byte insertMode = default, int rowCountPerPage = default, byte cursorAtEndOfLine = default, byte initialized = default, byte hasPreferredX = default, byte singleLine = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, float preferredX = default, StbUndoState undostate = default) - { - Cursor = cursor; - SelectStart = selectStart; - SelectEnd = selectEnd; - InsertMode = insertMode; - RowCountPerPage = rowCountPerPage; - CursorAtEndOfLine = cursorAtEndOfLine; - Initialized = initialized; - HasPreferredX = hasPreferredX; - SingleLine = singleLine; - Padding1 = padding1; - Padding2 = padding2; - Padding3 = padding3; - PreferredX = preferredX; - Undostate = undostate; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbTexteditRow.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbTexteditRow.cs deleted file mode 100644 index b1600a592..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbTexteditRow.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct StbTexteditRow - { - /// <summary> - /// To be documented. - /// </summary> - public float X0; - - /// <summary> - /// To be documented. - /// </summary> - public float X1; - - /// <summary> - /// To be documented. - /// </summary> - public float BaselineYDelta; - - /// <summary> - /// To be documented. - /// </summary> - public float Ymin; - - /// <summary> - /// To be documented. - /// </summary> - public float Ymax; - - /// <summary> - /// To be documented. - /// </summary> - public int NumChars; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe StbTexteditRow(float x0 = default, float x1 = default, float baselineYDelta = default, float ymin = default, float ymax = default, int numChars = default) - { - X0 = x0; - X1 = x1; - BaselineYDelta = baselineYDelta; - Ymin = ymin; - Ymax = ymax; - NumChars = numChars; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoRecord.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoRecord.cs deleted file mode 100644 index f86fb607a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoRecord.cs +++ /dev/null @@ -1,60 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct StbUndoRecord - { - /// <summary> - /// To be documented. - /// </summary> - public int Where; - - /// <summary> - /// To be documented. - /// </summary> - public int InsertLength; - - /// <summary> - /// To be documented. - /// </summary> - public int DeleteLength; - - /// <summary> - /// To be documented. - /// </summary> - public int CharStorage; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe StbUndoRecord(int where = default, int insertLength = default, int deleteLength = default, int charStorage = default) - { - Where = where; - InsertLength = insertLength; - DeleteLength = deleteLength; - CharStorage = charStorage; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoState.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoState.cs deleted file mode 100644 index 7825af3e5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbUndoState.cs +++ /dev/null @@ -1,3399 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct StbUndoState - { - /// <summary> - /// To be documented. - /// </summary> - public StbUndoRecord UndoRec_0; - public StbUndoRecord UndoRec_1; - public StbUndoRecord UndoRec_2; - public StbUndoRecord UndoRec_3; - public StbUndoRecord UndoRec_4; - public StbUndoRecord UndoRec_5; - public StbUndoRecord UndoRec_6; - public StbUndoRecord UndoRec_7; - public StbUndoRecord UndoRec_8; - public StbUndoRecord UndoRec_9; - public StbUndoRecord UndoRec_10; - public StbUndoRecord UndoRec_11; - public StbUndoRecord UndoRec_12; - public StbUndoRecord UndoRec_13; - public StbUndoRecord UndoRec_14; - public StbUndoRecord UndoRec_15; - public StbUndoRecord UndoRec_16; - public StbUndoRecord UndoRec_17; - public StbUndoRecord UndoRec_18; - public StbUndoRecord UndoRec_19; - public StbUndoRecord UndoRec_20; - public StbUndoRecord UndoRec_21; - public StbUndoRecord UndoRec_22; - public StbUndoRecord UndoRec_23; - public StbUndoRecord UndoRec_24; - public StbUndoRecord UndoRec_25; - public StbUndoRecord UndoRec_26; - public StbUndoRecord UndoRec_27; - public StbUndoRecord UndoRec_28; - public StbUndoRecord UndoRec_29; - public StbUndoRecord UndoRec_30; - public StbUndoRecord UndoRec_31; - public StbUndoRecord UndoRec_32; - public StbUndoRecord UndoRec_33; - public StbUndoRecord UndoRec_34; - public StbUndoRecord UndoRec_35; - public StbUndoRecord UndoRec_36; - public StbUndoRecord UndoRec_37; - public StbUndoRecord UndoRec_38; - public StbUndoRecord UndoRec_39; - public StbUndoRecord UndoRec_40; - public StbUndoRecord UndoRec_41; - public StbUndoRecord UndoRec_42; - public StbUndoRecord UndoRec_43; - public StbUndoRecord UndoRec_44; - public StbUndoRecord UndoRec_45; - public StbUndoRecord UndoRec_46; - public StbUndoRecord UndoRec_47; - public StbUndoRecord UndoRec_48; - public StbUndoRecord UndoRec_49; - public StbUndoRecord UndoRec_50; - public StbUndoRecord UndoRec_51; - public StbUndoRecord UndoRec_52; - public StbUndoRecord UndoRec_53; - public StbUndoRecord UndoRec_54; - public StbUndoRecord UndoRec_55; - public StbUndoRecord UndoRec_56; - public StbUndoRecord UndoRec_57; - public StbUndoRecord UndoRec_58; - public StbUndoRecord UndoRec_59; - public StbUndoRecord UndoRec_60; - public StbUndoRecord UndoRec_61; - public StbUndoRecord UndoRec_62; - public StbUndoRecord UndoRec_63; - public StbUndoRecord UndoRec_64; - public StbUndoRecord UndoRec_65; - public StbUndoRecord UndoRec_66; - public StbUndoRecord UndoRec_67; - public StbUndoRecord UndoRec_68; - public StbUndoRecord UndoRec_69; - public StbUndoRecord UndoRec_70; - public StbUndoRecord UndoRec_71; - public StbUndoRecord UndoRec_72; - public StbUndoRecord UndoRec_73; - public StbUndoRecord UndoRec_74; - public StbUndoRecord UndoRec_75; - public StbUndoRecord UndoRec_76; - public StbUndoRecord UndoRec_77; - public StbUndoRecord UndoRec_78; - public StbUndoRecord UndoRec_79; - public StbUndoRecord UndoRec_80; - public StbUndoRecord UndoRec_81; - public StbUndoRecord UndoRec_82; - public StbUndoRecord UndoRec_83; - public StbUndoRecord UndoRec_84; - public StbUndoRecord UndoRec_85; - public StbUndoRecord UndoRec_86; - public StbUndoRecord UndoRec_87; - public StbUndoRecord UndoRec_88; - public StbUndoRecord UndoRec_89; - public StbUndoRecord UndoRec_90; - public StbUndoRecord UndoRec_91; - public StbUndoRecord UndoRec_92; - public StbUndoRecord UndoRec_93; - public StbUndoRecord UndoRec_94; - public StbUndoRecord UndoRec_95; - public StbUndoRecord UndoRec_96; - public StbUndoRecord UndoRec_97; - public StbUndoRecord UndoRec_98; - - /// <summary> - /// To be documented. - /// </summary> - public ushort UndoChar_0; - public ushort UndoChar_1; - public ushort UndoChar_2; - public ushort UndoChar_3; - public ushort UndoChar_4; - public ushort UndoChar_5; - public ushort UndoChar_6; - public ushort UndoChar_7; - public ushort UndoChar_8; - public ushort UndoChar_9; - public ushort UndoChar_10; - public ushort UndoChar_11; - public ushort UndoChar_12; - public ushort UndoChar_13; - public ushort UndoChar_14; - public ushort UndoChar_15; - public ushort UndoChar_16; - public ushort UndoChar_17; - public ushort UndoChar_18; - public ushort UndoChar_19; - public ushort UndoChar_20; - public ushort UndoChar_21; - public ushort UndoChar_22; - public ushort UndoChar_23; - public ushort UndoChar_24; - public ushort UndoChar_25; - public ushort UndoChar_26; - public ushort UndoChar_27; - public ushort UndoChar_28; - public ushort UndoChar_29; - public ushort UndoChar_30; - public ushort UndoChar_31; - public ushort UndoChar_32; - public ushort UndoChar_33; - public ushort UndoChar_34; - public ushort UndoChar_35; - public ushort UndoChar_36; - public ushort UndoChar_37; - public ushort UndoChar_38; - public ushort UndoChar_39; - public ushort UndoChar_40; - public ushort UndoChar_41; - public ushort UndoChar_42; - public ushort UndoChar_43; - public ushort UndoChar_44; - public ushort UndoChar_45; - public ushort UndoChar_46; - public ushort UndoChar_47; - public ushort UndoChar_48; - public ushort UndoChar_49; - public ushort UndoChar_50; - public ushort UndoChar_51; - public ushort UndoChar_52; - public ushort UndoChar_53; - public ushort UndoChar_54; - public ushort UndoChar_55; - public ushort UndoChar_56; - public ushort UndoChar_57; - public ushort UndoChar_58; - public ushort UndoChar_59; - public ushort UndoChar_60; - public ushort UndoChar_61; - public ushort UndoChar_62; - public ushort UndoChar_63; - public ushort UndoChar_64; - public ushort UndoChar_65; - public ushort UndoChar_66; - public ushort UndoChar_67; - public ushort UndoChar_68; - public ushort UndoChar_69; - public ushort UndoChar_70; - public ushort UndoChar_71; - public ushort UndoChar_72; - public ushort UndoChar_73; - public ushort UndoChar_74; - public ushort UndoChar_75; - public ushort UndoChar_76; - public ushort UndoChar_77; - public ushort UndoChar_78; - public ushort UndoChar_79; - public ushort UndoChar_80; - public ushort UndoChar_81; - public ushort UndoChar_82; - public ushort UndoChar_83; - public ushort UndoChar_84; - public ushort UndoChar_85; - public ushort UndoChar_86; - public ushort UndoChar_87; - public ushort UndoChar_88; - public ushort UndoChar_89; - public ushort UndoChar_90; - public ushort UndoChar_91; - public ushort UndoChar_92; - public ushort UndoChar_93; - public ushort UndoChar_94; - public ushort UndoChar_95; - public ushort UndoChar_96; - public ushort UndoChar_97; - public ushort UndoChar_98; - public ushort UndoChar_99; - public ushort UndoChar_100; - public ushort UndoChar_101; - public ushort UndoChar_102; - public ushort UndoChar_103; - public ushort UndoChar_104; - public ushort UndoChar_105; - public ushort UndoChar_106; - public ushort UndoChar_107; - public ushort UndoChar_108; - public ushort UndoChar_109; - public ushort UndoChar_110; - public ushort UndoChar_111; - public ushort UndoChar_112; - public ushort UndoChar_113; - public ushort UndoChar_114; - public ushort UndoChar_115; - public ushort UndoChar_116; - public ushort UndoChar_117; - public ushort UndoChar_118; - public ushort UndoChar_119; - public ushort UndoChar_120; - public ushort UndoChar_121; - public ushort UndoChar_122; - public ushort UndoChar_123; - public ushort UndoChar_124; - public ushort UndoChar_125; - public ushort UndoChar_126; - public ushort UndoChar_127; - public ushort UndoChar_128; - public ushort UndoChar_129; - public ushort UndoChar_130; - public ushort UndoChar_131; - public ushort UndoChar_132; - public ushort UndoChar_133; - public ushort UndoChar_134; - public ushort UndoChar_135; - public ushort UndoChar_136; - public ushort UndoChar_137; - public ushort UndoChar_138; - public ushort UndoChar_139; - public ushort UndoChar_140; - public ushort UndoChar_141; - public ushort UndoChar_142; - public ushort UndoChar_143; - public ushort UndoChar_144; - public ushort UndoChar_145; - public ushort UndoChar_146; - public ushort UndoChar_147; - public ushort UndoChar_148; - public ushort UndoChar_149; - public ushort UndoChar_150; - public ushort UndoChar_151; - public ushort UndoChar_152; - public ushort UndoChar_153; - public ushort UndoChar_154; - public ushort UndoChar_155; - public ushort UndoChar_156; - public ushort UndoChar_157; - public ushort UndoChar_158; - public ushort UndoChar_159; - public ushort UndoChar_160; - public ushort UndoChar_161; - public ushort UndoChar_162; - public ushort UndoChar_163; - public ushort UndoChar_164; - public ushort UndoChar_165; - public ushort UndoChar_166; - public ushort UndoChar_167; - public ushort UndoChar_168; - public ushort UndoChar_169; - public ushort UndoChar_170; - public ushort UndoChar_171; - public ushort UndoChar_172; - public ushort UndoChar_173; - public ushort UndoChar_174; - public ushort UndoChar_175; - public ushort UndoChar_176; - public ushort UndoChar_177; - public ushort UndoChar_178; - public ushort UndoChar_179; - public ushort UndoChar_180; - public ushort UndoChar_181; - public ushort UndoChar_182; - public ushort UndoChar_183; - public ushort UndoChar_184; - public ushort UndoChar_185; - public ushort UndoChar_186; - public ushort UndoChar_187; - public ushort UndoChar_188; - public ushort UndoChar_189; - public ushort UndoChar_190; - public ushort UndoChar_191; - public ushort UndoChar_192; - public ushort UndoChar_193; - public ushort UndoChar_194; - public ushort UndoChar_195; - public ushort UndoChar_196; - public ushort UndoChar_197; - public ushort UndoChar_198; - public ushort UndoChar_199; - public ushort UndoChar_200; - public ushort UndoChar_201; - public ushort UndoChar_202; - public ushort UndoChar_203; - public ushort UndoChar_204; - public ushort UndoChar_205; - public ushort UndoChar_206; - public ushort UndoChar_207; - public ushort UndoChar_208; - public ushort UndoChar_209; - public ushort UndoChar_210; - public ushort UndoChar_211; - public ushort UndoChar_212; - public ushort UndoChar_213; - public ushort UndoChar_214; - public ushort UndoChar_215; - public ushort UndoChar_216; - public ushort UndoChar_217; - public ushort UndoChar_218; - public ushort UndoChar_219; - public ushort UndoChar_220; - public ushort UndoChar_221; - public ushort UndoChar_222; - public ushort UndoChar_223; - public ushort UndoChar_224; - public ushort UndoChar_225; - public ushort UndoChar_226; - public ushort UndoChar_227; - public ushort UndoChar_228; - public ushort UndoChar_229; - public ushort UndoChar_230; - public ushort UndoChar_231; - public ushort UndoChar_232; - public ushort UndoChar_233; - public ushort UndoChar_234; - public ushort UndoChar_235; - public ushort UndoChar_236; - public ushort UndoChar_237; - public ushort UndoChar_238; - public ushort UndoChar_239; - public ushort UndoChar_240; - public ushort UndoChar_241; - public ushort UndoChar_242; - public ushort UndoChar_243; - public ushort UndoChar_244; - public ushort UndoChar_245; - public ushort UndoChar_246; - public ushort UndoChar_247; - public ushort UndoChar_248; - public ushort UndoChar_249; - public ushort UndoChar_250; - public ushort UndoChar_251; - public ushort UndoChar_252; - public ushort UndoChar_253; - public ushort UndoChar_254; - public ushort UndoChar_255; - public ushort UndoChar_256; - public ushort UndoChar_257; - public ushort UndoChar_258; - public ushort UndoChar_259; - public ushort UndoChar_260; - public ushort UndoChar_261; - public ushort UndoChar_262; - public ushort UndoChar_263; - public ushort UndoChar_264; - public ushort UndoChar_265; - public ushort UndoChar_266; - public ushort UndoChar_267; - public ushort UndoChar_268; - public ushort UndoChar_269; - public ushort UndoChar_270; - public ushort UndoChar_271; - public ushort UndoChar_272; - public ushort UndoChar_273; - public ushort UndoChar_274; - public ushort UndoChar_275; - public ushort UndoChar_276; - public ushort UndoChar_277; - public ushort UndoChar_278; - public ushort UndoChar_279; - public ushort UndoChar_280; - public ushort UndoChar_281; - public ushort UndoChar_282; - public ushort UndoChar_283; - public ushort UndoChar_284; - public ushort UndoChar_285; - public ushort UndoChar_286; - public ushort UndoChar_287; - public ushort UndoChar_288; - public ushort UndoChar_289; - public ushort UndoChar_290; - public ushort UndoChar_291; - public ushort UndoChar_292; - public ushort UndoChar_293; - public ushort UndoChar_294; - public ushort UndoChar_295; - public ushort UndoChar_296; - public ushort UndoChar_297; - public ushort UndoChar_298; - public ushort UndoChar_299; - public ushort UndoChar_300; - public ushort UndoChar_301; - public ushort UndoChar_302; - public ushort UndoChar_303; - public ushort UndoChar_304; - public ushort UndoChar_305; - public ushort UndoChar_306; - public ushort UndoChar_307; - public ushort UndoChar_308; - public ushort UndoChar_309; - public ushort UndoChar_310; - public ushort UndoChar_311; - public ushort UndoChar_312; - public ushort UndoChar_313; - public ushort UndoChar_314; - public ushort UndoChar_315; - public ushort UndoChar_316; - public ushort UndoChar_317; - public ushort UndoChar_318; - public ushort UndoChar_319; - public ushort UndoChar_320; - public ushort UndoChar_321; - public ushort UndoChar_322; - public ushort UndoChar_323; - public ushort UndoChar_324; - public ushort UndoChar_325; - public ushort UndoChar_326; - public ushort UndoChar_327; - public ushort UndoChar_328; - public ushort UndoChar_329; - public ushort UndoChar_330; - public ushort UndoChar_331; - public ushort UndoChar_332; - public ushort UndoChar_333; - public ushort UndoChar_334; - public ushort UndoChar_335; - public ushort UndoChar_336; - public ushort UndoChar_337; - public ushort UndoChar_338; - public ushort UndoChar_339; - public ushort UndoChar_340; - public ushort UndoChar_341; - public ushort UndoChar_342; - public ushort UndoChar_343; - public ushort UndoChar_344; - public ushort UndoChar_345; - public ushort UndoChar_346; - public ushort UndoChar_347; - public ushort UndoChar_348; - public ushort UndoChar_349; - public ushort UndoChar_350; - public ushort UndoChar_351; - public ushort UndoChar_352; - public ushort UndoChar_353; - public ushort UndoChar_354; - public ushort UndoChar_355; - public ushort UndoChar_356; - public ushort UndoChar_357; - public ushort UndoChar_358; - public ushort UndoChar_359; - public ushort UndoChar_360; - public ushort UndoChar_361; - public ushort UndoChar_362; - public ushort UndoChar_363; - public ushort UndoChar_364; - public ushort UndoChar_365; - public ushort UndoChar_366; - public ushort UndoChar_367; - public ushort UndoChar_368; - public ushort UndoChar_369; - public ushort UndoChar_370; - public ushort UndoChar_371; - public ushort UndoChar_372; - public ushort UndoChar_373; - public ushort UndoChar_374; - public ushort UndoChar_375; - public ushort UndoChar_376; - public ushort UndoChar_377; - public ushort UndoChar_378; - public ushort UndoChar_379; - public ushort UndoChar_380; - public ushort UndoChar_381; - public ushort UndoChar_382; - public ushort UndoChar_383; - public ushort UndoChar_384; - public ushort UndoChar_385; - public ushort UndoChar_386; - public ushort UndoChar_387; - public ushort UndoChar_388; - public ushort UndoChar_389; - public ushort UndoChar_390; - public ushort UndoChar_391; - public ushort UndoChar_392; - public ushort UndoChar_393; - public ushort UndoChar_394; - public ushort UndoChar_395; - public ushort UndoChar_396; - public ushort UndoChar_397; - public ushort UndoChar_398; - public ushort UndoChar_399; - public ushort UndoChar_400; - public ushort UndoChar_401; - public ushort UndoChar_402; - public ushort UndoChar_403; - public ushort UndoChar_404; - public ushort UndoChar_405; - public ushort UndoChar_406; - public ushort UndoChar_407; - public ushort UndoChar_408; - public ushort UndoChar_409; - public ushort UndoChar_410; - public ushort UndoChar_411; - public ushort UndoChar_412; - public ushort UndoChar_413; - public ushort UndoChar_414; - public ushort UndoChar_415; - public ushort UndoChar_416; - public ushort UndoChar_417; - public ushort UndoChar_418; - public ushort UndoChar_419; - public ushort UndoChar_420; - public ushort UndoChar_421; - public ushort UndoChar_422; - public ushort UndoChar_423; - public ushort UndoChar_424; - public ushort UndoChar_425; - public ushort UndoChar_426; - public ushort UndoChar_427; - public ushort UndoChar_428; - public ushort UndoChar_429; - public ushort UndoChar_430; - public ushort UndoChar_431; - public ushort UndoChar_432; - public ushort UndoChar_433; - public ushort UndoChar_434; - public ushort UndoChar_435; - public ushort UndoChar_436; - public ushort UndoChar_437; - public ushort UndoChar_438; - public ushort UndoChar_439; - public ushort UndoChar_440; - public ushort UndoChar_441; - public ushort UndoChar_442; - public ushort UndoChar_443; - public ushort UndoChar_444; - public ushort UndoChar_445; - public ushort UndoChar_446; - public ushort UndoChar_447; - public ushort UndoChar_448; - public ushort UndoChar_449; - public ushort UndoChar_450; - public ushort UndoChar_451; - public ushort UndoChar_452; - public ushort UndoChar_453; - public ushort UndoChar_454; - public ushort UndoChar_455; - public ushort UndoChar_456; - public ushort UndoChar_457; - public ushort UndoChar_458; - public ushort UndoChar_459; - public ushort UndoChar_460; - public ushort UndoChar_461; - public ushort UndoChar_462; - public ushort UndoChar_463; - public ushort UndoChar_464; - public ushort UndoChar_465; - public ushort UndoChar_466; - public ushort UndoChar_467; - public ushort UndoChar_468; - public ushort UndoChar_469; - public ushort UndoChar_470; - public ushort UndoChar_471; - public ushort UndoChar_472; - public ushort UndoChar_473; - public ushort UndoChar_474; - public ushort UndoChar_475; - public ushort UndoChar_476; - public ushort UndoChar_477; - public ushort UndoChar_478; - public ushort UndoChar_479; - public ushort UndoChar_480; - public ushort UndoChar_481; - public ushort UndoChar_482; - public ushort UndoChar_483; - public ushort UndoChar_484; - public ushort UndoChar_485; - public ushort UndoChar_486; - public ushort UndoChar_487; - public ushort UndoChar_488; - public ushort UndoChar_489; - public ushort UndoChar_490; - public ushort UndoChar_491; - public ushort UndoChar_492; - public ushort UndoChar_493; - public ushort UndoChar_494; - public ushort UndoChar_495; - public ushort UndoChar_496; - public ushort UndoChar_497; - public ushort UndoChar_498; - public ushort UndoChar_499; - public ushort UndoChar_500; - public ushort UndoChar_501; - public ushort UndoChar_502; - public ushort UndoChar_503; - public ushort UndoChar_504; - public ushort UndoChar_505; - public ushort UndoChar_506; - public ushort UndoChar_507; - public ushort UndoChar_508; - public ushort UndoChar_509; - public ushort UndoChar_510; - public ushort UndoChar_511; - public ushort UndoChar_512; - public ushort UndoChar_513; - public ushort UndoChar_514; - public ushort UndoChar_515; - public ushort UndoChar_516; - public ushort UndoChar_517; - public ushort UndoChar_518; - public ushort UndoChar_519; - public ushort UndoChar_520; - public ushort UndoChar_521; - public ushort UndoChar_522; - public ushort UndoChar_523; - public ushort UndoChar_524; - public ushort UndoChar_525; - public ushort UndoChar_526; - public ushort UndoChar_527; - public ushort UndoChar_528; - public ushort UndoChar_529; - public ushort UndoChar_530; - public ushort UndoChar_531; - public ushort UndoChar_532; - public ushort UndoChar_533; - public ushort UndoChar_534; - public ushort UndoChar_535; - public ushort UndoChar_536; - public ushort UndoChar_537; - public ushort UndoChar_538; - public ushort UndoChar_539; - public ushort UndoChar_540; - public ushort UndoChar_541; - public ushort UndoChar_542; - public ushort UndoChar_543; - public ushort UndoChar_544; - public ushort UndoChar_545; - public ushort UndoChar_546; - public ushort UndoChar_547; - public ushort UndoChar_548; - public ushort UndoChar_549; - public ushort UndoChar_550; - public ushort UndoChar_551; - public ushort UndoChar_552; - public ushort UndoChar_553; - public ushort UndoChar_554; - public ushort UndoChar_555; - public ushort UndoChar_556; - public ushort UndoChar_557; - public ushort UndoChar_558; - public ushort UndoChar_559; - public ushort UndoChar_560; - public ushort UndoChar_561; - public ushort UndoChar_562; - public ushort UndoChar_563; - public ushort UndoChar_564; - public ushort UndoChar_565; - public ushort UndoChar_566; - public ushort UndoChar_567; - public ushort UndoChar_568; - public ushort UndoChar_569; - public ushort UndoChar_570; - public ushort UndoChar_571; - public ushort UndoChar_572; - public ushort UndoChar_573; - public ushort UndoChar_574; - public ushort UndoChar_575; - public ushort UndoChar_576; - public ushort UndoChar_577; - public ushort UndoChar_578; - public ushort UndoChar_579; - public ushort UndoChar_580; - public ushort UndoChar_581; - public ushort UndoChar_582; - public ushort UndoChar_583; - public ushort UndoChar_584; - public ushort UndoChar_585; - public ushort UndoChar_586; - public ushort UndoChar_587; - public ushort UndoChar_588; - public ushort UndoChar_589; - public ushort UndoChar_590; - public ushort UndoChar_591; - public ushort UndoChar_592; - public ushort UndoChar_593; - public ushort UndoChar_594; - public ushort UndoChar_595; - public ushort UndoChar_596; - public ushort UndoChar_597; - public ushort UndoChar_598; - public ushort UndoChar_599; - public ushort UndoChar_600; - public ushort UndoChar_601; - public ushort UndoChar_602; - public ushort UndoChar_603; - public ushort UndoChar_604; - public ushort UndoChar_605; - public ushort UndoChar_606; - public ushort UndoChar_607; - public ushort UndoChar_608; - public ushort UndoChar_609; - public ushort UndoChar_610; - public ushort UndoChar_611; - public ushort UndoChar_612; - public ushort UndoChar_613; - public ushort UndoChar_614; - public ushort UndoChar_615; - public ushort UndoChar_616; - public ushort UndoChar_617; - public ushort UndoChar_618; - public ushort UndoChar_619; - public ushort UndoChar_620; - public ushort UndoChar_621; - public ushort UndoChar_622; - public ushort UndoChar_623; - public ushort UndoChar_624; - public ushort UndoChar_625; - public ushort UndoChar_626; - public ushort UndoChar_627; - public ushort UndoChar_628; - public ushort UndoChar_629; - public ushort UndoChar_630; - public ushort UndoChar_631; - public ushort UndoChar_632; - public ushort UndoChar_633; - public ushort UndoChar_634; - public ushort UndoChar_635; - public ushort UndoChar_636; - public ushort UndoChar_637; - public ushort UndoChar_638; - public ushort UndoChar_639; - public ushort UndoChar_640; - public ushort UndoChar_641; - public ushort UndoChar_642; - public ushort UndoChar_643; - public ushort UndoChar_644; - public ushort UndoChar_645; - public ushort UndoChar_646; - public ushort UndoChar_647; - public ushort UndoChar_648; - public ushort UndoChar_649; - public ushort UndoChar_650; - public ushort UndoChar_651; - public ushort UndoChar_652; - public ushort UndoChar_653; - public ushort UndoChar_654; - public ushort UndoChar_655; - public ushort UndoChar_656; - public ushort UndoChar_657; - public ushort UndoChar_658; - public ushort UndoChar_659; - public ushort UndoChar_660; - public ushort UndoChar_661; - public ushort UndoChar_662; - public ushort UndoChar_663; - public ushort UndoChar_664; - public ushort UndoChar_665; - public ushort UndoChar_666; - public ushort UndoChar_667; - public ushort UndoChar_668; - public ushort UndoChar_669; - public ushort UndoChar_670; - public ushort UndoChar_671; - public ushort UndoChar_672; - public ushort UndoChar_673; - public ushort UndoChar_674; - public ushort UndoChar_675; - public ushort UndoChar_676; - public ushort UndoChar_677; - public ushort UndoChar_678; - public ushort UndoChar_679; - public ushort UndoChar_680; - public ushort UndoChar_681; - public ushort UndoChar_682; - public ushort UndoChar_683; - public ushort UndoChar_684; - public ushort UndoChar_685; - public ushort UndoChar_686; - public ushort UndoChar_687; - public ushort UndoChar_688; - public ushort UndoChar_689; - public ushort UndoChar_690; - public ushort UndoChar_691; - public ushort UndoChar_692; - public ushort UndoChar_693; - public ushort UndoChar_694; - public ushort UndoChar_695; - public ushort UndoChar_696; - public ushort UndoChar_697; - public ushort UndoChar_698; - public ushort UndoChar_699; - public ushort UndoChar_700; - public ushort UndoChar_701; - public ushort UndoChar_702; - public ushort UndoChar_703; - public ushort UndoChar_704; - public ushort UndoChar_705; - public ushort UndoChar_706; - public ushort UndoChar_707; - public ushort UndoChar_708; - public ushort UndoChar_709; - public ushort UndoChar_710; - public ushort UndoChar_711; - public ushort UndoChar_712; - public ushort UndoChar_713; - public ushort UndoChar_714; - public ushort UndoChar_715; - public ushort UndoChar_716; - public ushort UndoChar_717; - public ushort UndoChar_718; - public ushort UndoChar_719; - public ushort UndoChar_720; - public ushort UndoChar_721; - public ushort UndoChar_722; - public ushort UndoChar_723; - public ushort UndoChar_724; - public ushort UndoChar_725; - public ushort UndoChar_726; - public ushort UndoChar_727; - public ushort UndoChar_728; - public ushort UndoChar_729; - public ushort UndoChar_730; - public ushort UndoChar_731; - public ushort UndoChar_732; - public ushort UndoChar_733; - public ushort UndoChar_734; - public ushort UndoChar_735; - public ushort UndoChar_736; - public ushort UndoChar_737; - public ushort UndoChar_738; - public ushort UndoChar_739; - public ushort UndoChar_740; - public ushort UndoChar_741; - public ushort UndoChar_742; - public ushort UndoChar_743; - public ushort UndoChar_744; - public ushort UndoChar_745; - public ushort UndoChar_746; - public ushort UndoChar_747; - public ushort UndoChar_748; - public ushort UndoChar_749; - public ushort UndoChar_750; - public ushort UndoChar_751; - public ushort UndoChar_752; - public ushort UndoChar_753; - public ushort UndoChar_754; - public ushort UndoChar_755; - public ushort UndoChar_756; - public ushort UndoChar_757; - public ushort UndoChar_758; - public ushort UndoChar_759; - public ushort UndoChar_760; - public ushort UndoChar_761; - public ushort UndoChar_762; - public ushort UndoChar_763; - public ushort UndoChar_764; - public ushort UndoChar_765; - public ushort UndoChar_766; - public ushort UndoChar_767; - public ushort UndoChar_768; - public ushort UndoChar_769; - public ushort UndoChar_770; - public ushort UndoChar_771; - public ushort UndoChar_772; - public ushort UndoChar_773; - public ushort UndoChar_774; - public ushort UndoChar_775; - public ushort UndoChar_776; - public ushort UndoChar_777; - public ushort UndoChar_778; - public ushort UndoChar_779; - public ushort UndoChar_780; - public ushort UndoChar_781; - public ushort UndoChar_782; - public ushort UndoChar_783; - public ushort UndoChar_784; - public ushort UndoChar_785; - public ushort UndoChar_786; - public ushort UndoChar_787; - public ushort UndoChar_788; - public ushort UndoChar_789; - public ushort UndoChar_790; - public ushort UndoChar_791; - public ushort UndoChar_792; - public ushort UndoChar_793; - public ushort UndoChar_794; - public ushort UndoChar_795; - public ushort UndoChar_796; - public ushort UndoChar_797; - public ushort UndoChar_798; - public ushort UndoChar_799; - public ushort UndoChar_800; - public ushort UndoChar_801; - public ushort UndoChar_802; - public ushort UndoChar_803; - public ushort UndoChar_804; - public ushort UndoChar_805; - public ushort UndoChar_806; - public ushort UndoChar_807; - public ushort UndoChar_808; - public ushort UndoChar_809; - public ushort UndoChar_810; - public ushort UndoChar_811; - public ushort UndoChar_812; - public ushort UndoChar_813; - public ushort UndoChar_814; - public ushort UndoChar_815; - public ushort UndoChar_816; - public ushort UndoChar_817; - public ushort UndoChar_818; - public ushort UndoChar_819; - public ushort UndoChar_820; - public ushort UndoChar_821; - public ushort UndoChar_822; - public ushort UndoChar_823; - public ushort UndoChar_824; - public ushort UndoChar_825; - public ushort UndoChar_826; - public ushort UndoChar_827; - public ushort UndoChar_828; - public ushort UndoChar_829; - public ushort UndoChar_830; - public ushort UndoChar_831; - public ushort UndoChar_832; - public ushort UndoChar_833; - public ushort UndoChar_834; - public ushort UndoChar_835; - public ushort UndoChar_836; - public ushort UndoChar_837; - public ushort UndoChar_838; - public ushort UndoChar_839; - public ushort UndoChar_840; - public ushort UndoChar_841; - public ushort UndoChar_842; - public ushort UndoChar_843; - public ushort UndoChar_844; - public ushort UndoChar_845; - public ushort UndoChar_846; - public ushort UndoChar_847; - public ushort UndoChar_848; - public ushort UndoChar_849; - public ushort UndoChar_850; - public ushort UndoChar_851; - public ushort UndoChar_852; - public ushort UndoChar_853; - public ushort UndoChar_854; - public ushort UndoChar_855; - public ushort UndoChar_856; - public ushort UndoChar_857; - public ushort UndoChar_858; - public ushort UndoChar_859; - public ushort UndoChar_860; - public ushort UndoChar_861; - public ushort UndoChar_862; - public ushort UndoChar_863; - public ushort UndoChar_864; - public ushort UndoChar_865; - public ushort UndoChar_866; - public ushort UndoChar_867; - public ushort UndoChar_868; - public ushort UndoChar_869; - public ushort UndoChar_870; - public ushort UndoChar_871; - public ushort UndoChar_872; - public ushort UndoChar_873; - public ushort UndoChar_874; - public ushort UndoChar_875; - public ushort UndoChar_876; - public ushort UndoChar_877; - public ushort UndoChar_878; - public ushort UndoChar_879; - public ushort UndoChar_880; - public ushort UndoChar_881; - public ushort UndoChar_882; - public ushort UndoChar_883; - public ushort UndoChar_884; - public ushort UndoChar_885; - public ushort UndoChar_886; - public ushort UndoChar_887; - public ushort UndoChar_888; - public ushort UndoChar_889; - public ushort UndoChar_890; - public ushort UndoChar_891; - public ushort UndoChar_892; - public ushort UndoChar_893; - public ushort UndoChar_894; - public ushort UndoChar_895; - public ushort UndoChar_896; - public ushort UndoChar_897; - public ushort UndoChar_898; - public ushort UndoChar_899; - public ushort UndoChar_900; - public ushort UndoChar_901; - public ushort UndoChar_902; - public ushort UndoChar_903; - public ushort UndoChar_904; - public ushort UndoChar_905; - public ushort UndoChar_906; - public ushort UndoChar_907; - public ushort UndoChar_908; - public ushort UndoChar_909; - public ushort UndoChar_910; - public ushort UndoChar_911; - public ushort UndoChar_912; - public ushort UndoChar_913; - public ushort UndoChar_914; - public ushort UndoChar_915; - public ushort UndoChar_916; - public ushort UndoChar_917; - public ushort UndoChar_918; - public ushort UndoChar_919; - public ushort UndoChar_920; - public ushort UndoChar_921; - public ushort UndoChar_922; - public ushort UndoChar_923; - public ushort UndoChar_924; - public ushort UndoChar_925; - public ushort UndoChar_926; - public ushort UndoChar_927; - public ushort UndoChar_928; - public ushort UndoChar_929; - public ushort UndoChar_930; - public ushort UndoChar_931; - public ushort UndoChar_932; - public ushort UndoChar_933; - public ushort UndoChar_934; - public ushort UndoChar_935; - public ushort UndoChar_936; - public ushort UndoChar_937; - public ushort UndoChar_938; - public ushort UndoChar_939; - public ushort UndoChar_940; - public ushort UndoChar_941; - public ushort UndoChar_942; - public ushort UndoChar_943; - public ushort UndoChar_944; - public ushort UndoChar_945; - public ushort UndoChar_946; - public ushort UndoChar_947; - public ushort UndoChar_948; - public ushort UndoChar_949; - public ushort UndoChar_950; - public ushort UndoChar_951; - public ushort UndoChar_952; - public ushort UndoChar_953; - public ushort UndoChar_954; - public ushort UndoChar_955; - public ushort UndoChar_956; - public ushort UndoChar_957; - public ushort UndoChar_958; - public ushort UndoChar_959; - public ushort UndoChar_960; - public ushort UndoChar_961; - public ushort UndoChar_962; - public ushort UndoChar_963; - public ushort UndoChar_964; - public ushort UndoChar_965; - public ushort UndoChar_966; - public ushort UndoChar_967; - public ushort UndoChar_968; - public ushort UndoChar_969; - public ushort UndoChar_970; - public ushort UndoChar_971; - public ushort UndoChar_972; - public ushort UndoChar_973; - public ushort UndoChar_974; - public ushort UndoChar_975; - public ushort UndoChar_976; - public ushort UndoChar_977; - public ushort UndoChar_978; - public ushort UndoChar_979; - public ushort UndoChar_980; - public ushort UndoChar_981; - public ushort UndoChar_982; - public ushort UndoChar_983; - public ushort UndoChar_984; - public ushort UndoChar_985; - public ushort UndoChar_986; - public ushort UndoChar_987; - public ushort UndoChar_988; - public ushort UndoChar_989; - public ushort UndoChar_990; - public ushort UndoChar_991; - public ushort UndoChar_992; - public ushort UndoChar_993; - public ushort UndoChar_994; - public ushort UndoChar_995; - public ushort UndoChar_996; - public ushort UndoChar_997; - public ushort UndoChar_998; - - /// <summary> - /// To be documented. - /// </summary> - public short UndoPoint; - - /// <summary> - /// To be documented. - /// </summary> - public short RedoPoint; - - /// <summary> - /// To be documented. - /// </summary> - public int UndoCharPoint; - - /// <summary> - /// To be documented. - /// </summary> - public int RedoCharPoint; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe StbUndoState(StbUndoRecord* undoRec = default, ushort* undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) - { - if (undoRec != default(StbUndoRecord*)) - { - UndoRec_0 = undoRec[0]; - UndoRec_1 = undoRec[1]; - UndoRec_2 = undoRec[2]; - UndoRec_3 = undoRec[3]; - UndoRec_4 = undoRec[4]; - UndoRec_5 = undoRec[5]; - UndoRec_6 = undoRec[6]; - UndoRec_7 = undoRec[7]; - UndoRec_8 = undoRec[8]; - UndoRec_9 = undoRec[9]; - UndoRec_10 = undoRec[10]; - UndoRec_11 = undoRec[11]; - UndoRec_12 = undoRec[12]; - UndoRec_13 = undoRec[13]; - UndoRec_14 = undoRec[14]; - UndoRec_15 = undoRec[15]; - UndoRec_16 = undoRec[16]; - UndoRec_17 = undoRec[17]; - UndoRec_18 = undoRec[18]; - UndoRec_19 = undoRec[19]; - UndoRec_20 = undoRec[20]; - UndoRec_21 = undoRec[21]; - UndoRec_22 = undoRec[22]; - UndoRec_23 = undoRec[23]; - UndoRec_24 = undoRec[24]; - UndoRec_25 = undoRec[25]; - UndoRec_26 = undoRec[26]; - UndoRec_27 = undoRec[27]; - UndoRec_28 = undoRec[28]; - UndoRec_29 = undoRec[29]; - UndoRec_30 = undoRec[30]; - UndoRec_31 = undoRec[31]; - UndoRec_32 = undoRec[32]; - UndoRec_33 = undoRec[33]; - UndoRec_34 = undoRec[34]; - UndoRec_35 = undoRec[35]; - UndoRec_36 = undoRec[36]; - UndoRec_37 = undoRec[37]; - UndoRec_38 = undoRec[38]; - UndoRec_39 = undoRec[39]; - UndoRec_40 = undoRec[40]; - UndoRec_41 = undoRec[41]; - UndoRec_42 = undoRec[42]; - UndoRec_43 = undoRec[43]; - UndoRec_44 = undoRec[44]; - UndoRec_45 = undoRec[45]; - UndoRec_46 = undoRec[46]; - UndoRec_47 = undoRec[47]; - UndoRec_48 = undoRec[48]; - UndoRec_49 = undoRec[49]; - UndoRec_50 = undoRec[50]; - UndoRec_51 = undoRec[51]; - UndoRec_52 = undoRec[52]; - UndoRec_53 = undoRec[53]; - UndoRec_54 = undoRec[54]; - UndoRec_55 = undoRec[55]; - UndoRec_56 = undoRec[56]; - UndoRec_57 = undoRec[57]; - UndoRec_58 = undoRec[58]; - UndoRec_59 = undoRec[59]; - UndoRec_60 = undoRec[60]; - UndoRec_61 = undoRec[61]; - UndoRec_62 = undoRec[62]; - UndoRec_63 = undoRec[63]; - UndoRec_64 = undoRec[64]; - UndoRec_65 = undoRec[65]; - UndoRec_66 = undoRec[66]; - UndoRec_67 = undoRec[67]; - UndoRec_68 = undoRec[68]; - UndoRec_69 = undoRec[69]; - UndoRec_70 = undoRec[70]; - UndoRec_71 = undoRec[71]; - UndoRec_72 = undoRec[72]; - UndoRec_73 = undoRec[73]; - UndoRec_74 = undoRec[74]; - UndoRec_75 = undoRec[75]; - UndoRec_76 = undoRec[76]; - UndoRec_77 = undoRec[77]; - UndoRec_78 = undoRec[78]; - UndoRec_79 = undoRec[79]; - UndoRec_80 = undoRec[80]; - UndoRec_81 = undoRec[81]; - UndoRec_82 = undoRec[82]; - UndoRec_83 = undoRec[83]; - UndoRec_84 = undoRec[84]; - UndoRec_85 = undoRec[85]; - UndoRec_86 = undoRec[86]; - UndoRec_87 = undoRec[87]; - UndoRec_88 = undoRec[88]; - UndoRec_89 = undoRec[89]; - UndoRec_90 = undoRec[90]; - UndoRec_91 = undoRec[91]; - UndoRec_92 = undoRec[92]; - UndoRec_93 = undoRec[93]; - UndoRec_94 = undoRec[94]; - UndoRec_95 = undoRec[95]; - UndoRec_96 = undoRec[96]; - UndoRec_97 = undoRec[97]; - UndoRec_98 = undoRec[98]; - } - if (undoChar != default(ushort*)) - { - UndoChar_0 = undoChar[0]; - UndoChar_1 = undoChar[1]; - UndoChar_2 = undoChar[2]; - UndoChar_3 = undoChar[3]; - UndoChar_4 = undoChar[4]; - UndoChar_5 = undoChar[5]; - UndoChar_6 = undoChar[6]; - UndoChar_7 = undoChar[7]; - UndoChar_8 = undoChar[8]; - UndoChar_9 = undoChar[9]; - UndoChar_10 = undoChar[10]; - UndoChar_11 = undoChar[11]; - UndoChar_12 = undoChar[12]; - UndoChar_13 = undoChar[13]; - UndoChar_14 = undoChar[14]; - UndoChar_15 = undoChar[15]; - UndoChar_16 = undoChar[16]; - UndoChar_17 = undoChar[17]; - UndoChar_18 = undoChar[18]; - UndoChar_19 = undoChar[19]; - UndoChar_20 = undoChar[20]; - UndoChar_21 = undoChar[21]; - UndoChar_22 = undoChar[22]; - UndoChar_23 = undoChar[23]; - UndoChar_24 = undoChar[24]; - UndoChar_25 = undoChar[25]; - UndoChar_26 = undoChar[26]; - UndoChar_27 = undoChar[27]; - UndoChar_28 = undoChar[28]; - UndoChar_29 = undoChar[29]; - UndoChar_30 = undoChar[30]; - UndoChar_31 = undoChar[31]; - UndoChar_32 = undoChar[32]; - UndoChar_33 = undoChar[33]; - UndoChar_34 = undoChar[34]; - UndoChar_35 = undoChar[35]; - UndoChar_36 = undoChar[36]; - UndoChar_37 = undoChar[37]; - UndoChar_38 = undoChar[38]; - UndoChar_39 = undoChar[39]; - UndoChar_40 = undoChar[40]; - UndoChar_41 = undoChar[41]; - UndoChar_42 = undoChar[42]; - UndoChar_43 = undoChar[43]; - UndoChar_44 = undoChar[44]; - UndoChar_45 = undoChar[45]; - UndoChar_46 = undoChar[46]; - UndoChar_47 = undoChar[47]; - UndoChar_48 = undoChar[48]; - UndoChar_49 = undoChar[49]; - UndoChar_50 = undoChar[50]; - UndoChar_51 = undoChar[51]; - UndoChar_52 = undoChar[52]; - UndoChar_53 = undoChar[53]; - UndoChar_54 = undoChar[54]; - UndoChar_55 = undoChar[55]; - UndoChar_56 = undoChar[56]; - UndoChar_57 = undoChar[57]; - UndoChar_58 = undoChar[58]; - UndoChar_59 = undoChar[59]; - UndoChar_60 = undoChar[60]; - UndoChar_61 = undoChar[61]; - UndoChar_62 = undoChar[62]; - UndoChar_63 = undoChar[63]; - UndoChar_64 = undoChar[64]; - UndoChar_65 = undoChar[65]; - UndoChar_66 = undoChar[66]; - UndoChar_67 = undoChar[67]; - UndoChar_68 = undoChar[68]; - UndoChar_69 = undoChar[69]; - UndoChar_70 = undoChar[70]; - UndoChar_71 = undoChar[71]; - UndoChar_72 = undoChar[72]; - UndoChar_73 = undoChar[73]; - UndoChar_74 = undoChar[74]; - UndoChar_75 = undoChar[75]; - UndoChar_76 = undoChar[76]; - UndoChar_77 = undoChar[77]; - UndoChar_78 = undoChar[78]; - UndoChar_79 = undoChar[79]; - UndoChar_80 = undoChar[80]; - UndoChar_81 = undoChar[81]; - UndoChar_82 = undoChar[82]; - UndoChar_83 = undoChar[83]; - UndoChar_84 = undoChar[84]; - UndoChar_85 = undoChar[85]; - UndoChar_86 = undoChar[86]; - UndoChar_87 = undoChar[87]; - UndoChar_88 = undoChar[88]; - UndoChar_89 = undoChar[89]; - UndoChar_90 = undoChar[90]; - UndoChar_91 = undoChar[91]; - UndoChar_92 = undoChar[92]; - UndoChar_93 = undoChar[93]; - UndoChar_94 = undoChar[94]; - UndoChar_95 = undoChar[95]; - UndoChar_96 = undoChar[96]; - UndoChar_97 = undoChar[97]; - UndoChar_98 = undoChar[98]; - UndoChar_99 = undoChar[99]; - UndoChar_100 = undoChar[100]; - UndoChar_101 = undoChar[101]; - UndoChar_102 = undoChar[102]; - UndoChar_103 = undoChar[103]; - UndoChar_104 = undoChar[104]; - UndoChar_105 = undoChar[105]; - UndoChar_106 = undoChar[106]; - UndoChar_107 = undoChar[107]; - UndoChar_108 = undoChar[108]; - UndoChar_109 = undoChar[109]; - UndoChar_110 = undoChar[110]; - UndoChar_111 = undoChar[111]; - UndoChar_112 = undoChar[112]; - UndoChar_113 = undoChar[113]; - UndoChar_114 = undoChar[114]; - UndoChar_115 = undoChar[115]; - UndoChar_116 = undoChar[116]; - UndoChar_117 = undoChar[117]; - UndoChar_118 = undoChar[118]; - UndoChar_119 = undoChar[119]; - UndoChar_120 = undoChar[120]; - UndoChar_121 = undoChar[121]; - UndoChar_122 = undoChar[122]; - UndoChar_123 = undoChar[123]; - UndoChar_124 = undoChar[124]; - UndoChar_125 = undoChar[125]; - UndoChar_126 = undoChar[126]; - UndoChar_127 = undoChar[127]; - UndoChar_128 = undoChar[128]; - UndoChar_129 = undoChar[129]; - UndoChar_130 = undoChar[130]; - UndoChar_131 = undoChar[131]; - UndoChar_132 = undoChar[132]; - UndoChar_133 = undoChar[133]; - UndoChar_134 = undoChar[134]; - UndoChar_135 = undoChar[135]; - UndoChar_136 = undoChar[136]; - UndoChar_137 = undoChar[137]; - UndoChar_138 = undoChar[138]; - UndoChar_139 = undoChar[139]; - UndoChar_140 = undoChar[140]; - UndoChar_141 = undoChar[141]; - UndoChar_142 = undoChar[142]; - UndoChar_143 = undoChar[143]; - UndoChar_144 = undoChar[144]; - UndoChar_145 = undoChar[145]; - UndoChar_146 = undoChar[146]; - UndoChar_147 = undoChar[147]; - UndoChar_148 = undoChar[148]; - UndoChar_149 = undoChar[149]; - UndoChar_150 = undoChar[150]; - UndoChar_151 = undoChar[151]; - UndoChar_152 = undoChar[152]; - UndoChar_153 = undoChar[153]; - UndoChar_154 = undoChar[154]; - UndoChar_155 = undoChar[155]; - UndoChar_156 = undoChar[156]; - UndoChar_157 = undoChar[157]; - UndoChar_158 = undoChar[158]; - UndoChar_159 = undoChar[159]; - UndoChar_160 = undoChar[160]; - UndoChar_161 = undoChar[161]; - UndoChar_162 = undoChar[162]; - UndoChar_163 = undoChar[163]; - UndoChar_164 = undoChar[164]; - UndoChar_165 = undoChar[165]; - UndoChar_166 = undoChar[166]; - UndoChar_167 = undoChar[167]; - UndoChar_168 = undoChar[168]; - UndoChar_169 = undoChar[169]; - UndoChar_170 = undoChar[170]; - UndoChar_171 = undoChar[171]; - UndoChar_172 = undoChar[172]; - UndoChar_173 = undoChar[173]; - UndoChar_174 = undoChar[174]; - UndoChar_175 = undoChar[175]; - UndoChar_176 = undoChar[176]; - UndoChar_177 = undoChar[177]; - UndoChar_178 = undoChar[178]; - UndoChar_179 = undoChar[179]; - UndoChar_180 = undoChar[180]; - UndoChar_181 = undoChar[181]; - UndoChar_182 = undoChar[182]; - UndoChar_183 = undoChar[183]; - UndoChar_184 = undoChar[184]; - UndoChar_185 = undoChar[185]; - UndoChar_186 = undoChar[186]; - UndoChar_187 = undoChar[187]; - UndoChar_188 = undoChar[188]; - UndoChar_189 = undoChar[189]; - UndoChar_190 = undoChar[190]; - UndoChar_191 = undoChar[191]; - UndoChar_192 = undoChar[192]; - UndoChar_193 = undoChar[193]; - UndoChar_194 = undoChar[194]; - UndoChar_195 = undoChar[195]; - UndoChar_196 = undoChar[196]; - UndoChar_197 = undoChar[197]; - UndoChar_198 = undoChar[198]; - UndoChar_199 = undoChar[199]; - UndoChar_200 = undoChar[200]; - UndoChar_201 = undoChar[201]; - UndoChar_202 = undoChar[202]; - UndoChar_203 = undoChar[203]; - UndoChar_204 = undoChar[204]; - UndoChar_205 = undoChar[205]; - UndoChar_206 = undoChar[206]; - UndoChar_207 = undoChar[207]; - UndoChar_208 = undoChar[208]; - UndoChar_209 = undoChar[209]; - UndoChar_210 = undoChar[210]; - UndoChar_211 = undoChar[211]; - UndoChar_212 = undoChar[212]; - UndoChar_213 = undoChar[213]; - UndoChar_214 = undoChar[214]; - UndoChar_215 = undoChar[215]; - UndoChar_216 = undoChar[216]; - UndoChar_217 = undoChar[217]; - UndoChar_218 = undoChar[218]; - UndoChar_219 = undoChar[219]; - UndoChar_220 = undoChar[220]; - UndoChar_221 = undoChar[221]; - UndoChar_222 = undoChar[222]; - UndoChar_223 = undoChar[223]; - UndoChar_224 = undoChar[224]; - UndoChar_225 = undoChar[225]; - UndoChar_226 = undoChar[226]; - UndoChar_227 = undoChar[227]; - UndoChar_228 = undoChar[228]; - UndoChar_229 = undoChar[229]; - UndoChar_230 = undoChar[230]; - UndoChar_231 = undoChar[231]; - UndoChar_232 = undoChar[232]; - UndoChar_233 = undoChar[233]; - UndoChar_234 = undoChar[234]; - UndoChar_235 = undoChar[235]; - UndoChar_236 = undoChar[236]; - UndoChar_237 = undoChar[237]; - UndoChar_238 = undoChar[238]; - UndoChar_239 = undoChar[239]; - UndoChar_240 = undoChar[240]; - UndoChar_241 = undoChar[241]; - UndoChar_242 = undoChar[242]; - UndoChar_243 = undoChar[243]; - UndoChar_244 = undoChar[244]; - UndoChar_245 = undoChar[245]; - UndoChar_246 = undoChar[246]; - UndoChar_247 = undoChar[247]; - UndoChar_248 = undoChar[248]; - UndoChar_249 = undoChar[249]; - UndoChar_250 = undoChar[250]; - UndoChar_251 = undoChar[251]; - UndoChar_252 = undoChar[252]; - UndoChar_253 = undoChar[253]; - UndoChar_254 = undoChar[254]; - UndoChar_255 = undoChar[255]; - UndoChar_256 = undoChar[256]; - UndoChar_257 = undoChar[257]; - UndoChar_258 = undoChar[258]; - UndoChar_259 = undoChar[259]; - UndoChar_260 = undoChar[260]; - UndoChar_261 = undoChar[261]; - UndoChar_262 = undoChar[262]; - UndoChar_263 = undoChar[263]; - UndoChar_264 = undoChar[264]; - UndoChar_265 = undoChar[265]; - UndoChar_266 = undoChar[266]; - UndoChar_267 = undoChar[267]; - UndoChar_268 = undoChar[268]; - UndoChar_269 = undoChar[269]; - UndoChar_270 = undoChar[270]; - UndoChar_271 = undoChar[271]; - UndoChar_272 = undoChar[272]; - UndoChar_273 = undoChar[273]; - UndoChar_274 = undoChar[274]; - UndoChar_275 = undoChar[275]; - UndoChar_276 = undoChar[276]; - UndoChar_277 = undoChar[277]; - UndoChar_278 = undoChar[278]; - UndoChar_279 = undoChar[279]; - UndoChar_280 = undoChar[280]; - UndoChar_281 = undoChar[281]; - UndoChar_282 = undoChar[282]; - UndoChar_283 = undoChar[283]; - UndoChar_284 = undoChar[284]; - UndoChar_285 = undoChar[285]; - UndoChar_286 = undoChar[286]; - UndoChar_287 = undoChar[287]; - UndoChar_288 = undoChar[288]; - UndoChar_289 = undoChar[289]; - UndoChar_290 = undoChar[290]; - UndoChar_291 = undoChar[291]; - UndoChar_292 = undoChar[292]; - UndoChar_293 = undoChar[293]; - UndoChar_294 = undoChar[294]; - UndoChar_295 = undoChar[295]; - UndoChar_296 = undoChar[296]; - UndoChar_297 = undoChar[297]; - UndoChar_298 = undoChar[298]; - UndoChar_299 = undoChar[299]; - UndoChar_300 = undoChar[300]; - UndoChar_301 = undoChar[301]; - UndoChar_302 = undoChar[302]; - UndoChar_303 = undoChar[303]; - UndoChar_304 = undoChar[304]; - UndoChar_305 = undoChar[305]; - UndoChar_306 = undoChar[306]; - UndoChar_307 = undoChar[307]; - UndoChar_308 = undoChar[308]; - UndoChar_309 = undoChar[309]; - UndoChar_310 = undoChar[310]; - UndoChar_311 = undoChar[311]; - UndoChar_312 = undoChar[312]; - UndoChar_313 = undoChar[313]; - UndoChar_314 = undoChar[314]; - UndoChar_315 = undoChar[315]; - UndoChar_316 = undoChar[316]; - UndoChar_317 = undoChar[317]; - UndoChar_318 = undoChar[318]; - UndoChar_319 = undoChar[319]; - UndoChar_320 = undoChar[320]; - UndoChar_321 = undoChar[321]; - UndoChar_322 = undoChar[322]; - UndoChar_323 = undoChar[323]; - UndoChar_324 = undoChar[324]; - UndoChar_325 = undoChar[325]; - UndoChar_326 = undoChar[326]; - UndoChar_327 = undoChar[327]; - UndoChar_328 = undoChar[328]; - UndoChar_329 = undoChar[329]; - UndoChar_330 = undoChar[330]; - UndoChar_331 = undoChar[331]; - UndoChar_332 = undoChar[332]; - UndoChar_333 = undoChar[333]; - UndoChar_334 = undoChar[334]; - UndoChar_335 = undoChar[335]; - UndoChar_336 = undoChar[336]; - UndoChar_337 = undoChar[337]; - UndoChar_338 = undoChar[338]; - UndoChar_339 = undoChar[339]; - UndoChar_340 = undoChar[340]; - UndoChar_341 = undoChar[341]; - UndoChar_342 = undoChar[342]; - UndoChar_343 = undoChar[343]; - UndoChar_344 = undoChar[344]; - UndoChar_345 = undoChar[345]; - UndoChar_346 = undoChar[346]; - UndoChar_347 = undoChar[347]; - UndoChar_348 = undoChar[348]; - UndoChar_349 = undoChar[349]; - UndoChar_350 = undoChar[350]; - UndoChar_351 = undoChar[351]; - UndoChar_352 = undoChar[352]; - UndoChar_353 = undoChar[353]; - UndoChar_354 = undoChar[354]; - UndoChar_355 = undoChar[355]; - UndoChar_356 = undoChar[356]; - UndoChar_357 = undoChar[357]; - UndoChar_358 = undoChar[358]; - UndoChar_359 = undoChar[359]; - UndoChar_360 = undoChar[360]; - UndoChar_361 = undoChar[361]; - UndoChar_362 = undoChar[362]; - UndoChar_363 = undoChar[363]; - UndoChar_364 = undoChar[364]; - UndoChar_365 = undoChar[365]; - UndoChar_366 = undoChar[366]; - UndoChar_367 = undoChar[367]; - UndoChar_368 = undoChar[368]; - UndoChar_369 = undoChar[369]; - UndoChar_370 = undoChar[370]; - UndoChar_371 = undoChar[371]; - UndoChar_372 = undoChar[372]; - UndoChar_373 = undoChar[373]; - UndoChar_374 = undoChar[374]; - UndoChar_375 = undoChar[375]; - UndoChar_376 = undoChar[376]; - UndoChar_377 = undoChar[377]; - UndoChar_378 = undoChar[378]; - UndoChar_379 = undoChar[379]; - UndoChar_380 = undoChar[380]; - UndoChar_381 = undoChar[381]; - UndoChar_382 = undoChar[382]; - UndoChar_383 = undoChar[383]; - UndoChar_384 = undoChar[384]; - UndoChar_385 = undoChar[385]; - UndoChar_386 = undoChar[386]; - UndoChar_387 = undoChar[387]; - UndoChar_388 = undoChar[388]; - UndoChar_389 = undoChar[389]; - UndoChar_390 = undoChar[390]; - UndoChar_391 = undoChar[391]; - UndoChar_392 = undoChar[392]; - UndoChar_393 = undoChar[393]; - UndoChar_394 = undoChar[394]; - UndoChar_395 = undoChar[395]; - UndoChar_396 = undoChar[396]; - UndoChar_397 = undoChar[397]; - UndoChar_398 = undoChar[398]; - UndoChar_399 = undoChar[399]; - UndoChar_400 = undoChar[400]; - UndoChar_401 = undoChar[401]; - UndoChar_402 = undoChar[402]; - UndoChar_403 = undoChar[403]; - UndoChar_404 = undoChar[404]; - UndoChar_405 = undoChar[405]; - UndoChar_406 = undoChar[406]; - UndoChar_407 = undoChar[407]; - UndoChar_408 = undoChar[408]; - UndoChar_409 = undoChar[409]; - UndoChar_410 = undoChar[410]; - UndoChar_411 = undoChar[411]; - UndoChar_412 = undoChar[412]; - UndoChar_413 = undoChar[413]; - UndoChar_414 = undoChar[414]; - UndoChar_415 = undoChar[415]; - UndoChar_416 = undoChar[416]; - UndoChar_417 = undoChar[417]; - UndoChar_418 = undoChar[418]; - UndoChar_419 = undoChar[419]; - UndoChar_420 = undoChar[420]; - UndoChar_421 = undoChar[421]; - UndoChar_422 = undoChar[422]; - UndoChar_423 = undoChar[423]; - UndoChar_424 = undoChar[424]; - UndoChar_425 = undoChar[425]; - UndoChar_426 = undoChar[426]; - UndoChar_427 = undoChar[427]; - UndoChar_428 = undoChar[428]; - UndoChar_429 = undoChar[429]; - UndoChar_430 = undoChar[430]; - UndoChar_431 = undoChar[431]; - UndoChar_432 = undoChar[432]; - UndoChar_433 = undoChar[433]; - UndoChar_434 = undoChar[434]; - UndoChar_435 = undoChar[435]; - UndoChar_436 = undoChar[436]; - UndoChar_437 = undoChar[437]; - UndoChar_438 = undoChar[438]; - UndoChar_439 = undoChar[439]; - UndoChar_440 = undoChar[440]; - UndoChar_441 = undoChar[441]; - UndoChar_442 = undoChar[442]; - UndoChar_443 = undoChar[443]; - UndoChar_444 = undoChar[444]; - UndoChar_445 = undoChar[445]; - UndoChar_446 = undoChar[446]; - UndoChar_447 = undoChar[447]; - UndoChar_448 = undoChar[448]; - UndoChar_449 = undoChar[449]; - UndoChar_450 = undoChar[450]; - UndoChar_451 = undoChar[451]; - UndoChar_452 = undoChar[452]; - UndoChar_453 = undoChar[453]; - UndoChar_454 = undoChar[454]; - UndoChar_455 = undoChar[455]; - UndoChar_456 = undoChar[456]; - UndoChar_457 = undoChar[457]; - UndoChar_458 = undoChar[458]; - UndoChar_459 = undoChar[459]; - UndoChar_460 = undoChar[460]; - UndoChar_461 = undoChar[461]; - UndoChar_462 = undoChar[462]; - UndoChar_463 = undoChar[463]; - UndoChar_464 = undoChar[464]; - UndoChar_465 = undoChar[465]; - UndoChar_466 = undoChar[466]; - UndoChar_467 = undoChar[467]; - UndoChar_468 = undoChar[468]; - UndoChar_469 = undoChar[469]; - UndoChar_470 = undoChar[470]; - UndoChar_471 = undoChar[471]; - UndoChar_472 = undoChar[472]; - UndoChar_473 = undoChar[473]; - UndoChar_474 = undoChar[474]; - UndoChar_475 = undoChar[475]; - UndoChar_476 = undoChar[476]; - UndoChar_477 = undoChar[477]; - UndoChar_478 = undoChar[478]; - UndoChar_479 = undoChar[479]; - UndoChar_480 = undoChar[480]; - UndoChar_481 = undoChar[481]; - UndoChar_482 = undoChar[482]; - UndoChar_483 = undoChar[483]; - UndoChar_484 = undoChar[484]; - UndoChar_485 = undoChar[485]; - UndoChar_486 = undoChar[486]; - UndoChar_487 = undoChar[487]; - UndoChar_488 = undoChar[488]; - UndoChar_489 = undoChar[489]; - UndoChar_490 = undoChar[490]; - UndoChar_491 = undoChar[491]; - UndoChar_492 = undoChar[492]; - UndoChar_493 = undoChar[493]; - UndoChar_494 = undoChar[494]; - UndoChar_495 = undoChar[495]; - UndoChar_496 = undoChar[496]; - UndoChar_497 = undoChar[497]; - UndoChar_498 = undoChar[498]; - UndoChar_499 = undoChar[499]; - UndoChar_500 = undoChar[500]; - UndoChar_501 = undoChar[501]; - UndoChar_502 = undoChar[502]; - UndoChar_503 = undoChar[503]; - UndoChar_504 = undoChar[504]; - UndoChar_505 = undoChar[505]; - UndoChar_506 = undoChar[506]; - UndoChar_507 = undoChar[507]; - UndoChar_508 = undoChar[508]; - UndoChar_509 = undoChar[509]; - UndoChar_510 = undoChar[510]; - UndoChar_511 = undoChar[511]; - UndoChar_512 = undoChar[512]; - UndoChar_513 = undoChar[513]; - UndoChar_514 = undoChar[514]; - UndoChar_515 = undoChar[515]; - UndoChar_516 = undoChar[516]; - UndoChar_517 = undoChar[517]; - UndoChar_518 = undoChar[518]; - UndoChar_519 = undoChar[519]; - UndoChar_520 = undoChar[520]; - UndoChar_521 = undoChar[521]; - UndoChar_522 = undoChar[522]; - UndoChar_523 = undoChar[523]; - UndoChar_524 = undoChar[524]; - UndoChar_525 = undoChar[525]; - UndoChar_526 = undoChar[526]; - UndoChar_527 = undoChar[527]; - UndoChar_528 = undoChar[528]; - UndoChar_529 = undoChar[529]; - UndoChar_530 = undoChar[530]; - UndoChar_531 = undoChar[531]; - UndoChar_532 = undoChar[532]; - UndoChar_533 = undoChar[533]; - UndoChar_534 = undoChar[534]; - UndoChar_535 = undoChar[535]; - UndoChar_536 = undoChar[536]; - UndoChar_537 = undoChar[537]; - UndoChar_538 = undoChar[538]; - UndoChar_539 = undoChar[539]; - UndoChar_540 = undoChar[540]; - UndoChar_541 = undoChar[541]; - UndoChar_542 = undoChar[542]; - UndoChar_543 = undoChar[543]; - UndoChar_544 = undoChar[544]; - UndoChar_545 = undoChar[545]; - UndoChar_546 = undoChar[546]; - UndoChar_547 = undoChar[547]; - UndoChar_548 = undoChar[548]; - UndoChar_549 = undoChar[549]; - UndoChar_550 = undoChar[550]; - UndoChar_551 = undoChar[551]; - UndoChar_552 = undoChar[552]; - UndoChar_553 = undoChar[553]; - UndoChar_554 = undoChar[554]; - UndoChar_555 = undoChar[555]; - UndoChar_556 = undoChar[556]; - UndoChar_557 = undoChar[557]; - UndoChar_558 = undoChar[558]; - UndoChar_559 = undoChar[559]; - UndoChar_560 = undoChar[560]; - UndoChar_561 = undoChar[561]; - UndoChar_562 = undoChar[562]; - UndoChar_563 = undoChar[563]; - UndoChar_564 = undoChar[564]; - UndoChar_565 = undoChar[565]; - UndoChar_566 = undoChar[566]; - UndoChar_567 = undoChar[567]; - UndoChar_568 = undoChar[568]; - UndoChar_569 = undoChar[569]; - UndoChar_570 = undoChar[570]; - UndoChar_571 = undoChar[571]; - UndoChar_572 = undoChar[572]; - UndoChar_573 = undoChar[573]; - UndoChar_574 = undoChar[574]; - UndoChar_575 = undoChar[575]; - UndoChar_576 = undoChar[576]; - UndoChar_577 = undoChar[577]; - UndoChar_578 = undoChar[578]; - UndoChar_579 = undoChar[579]; - UndoChar_580 = undoChar[580]; - UndoChar_581 = undoChar[581]; - UndoChar_582 = undoChar[582]; - UndoChar_583 = undoChar[583]; - UndoChar_584 = undoChar[584]; - UndoChar_585 = undoChar[585]; - UndoChar_586 = undoChar[586]; - UndoChar_587 = undoChar[587]; - UndoChar_588 = undoChar[588]; - UndoChar_589 = undoChar[589]; - UndoChar_590 = undoChar[590]; - UndoChar_591 = undoChar[591]; - UndoChar_592 = undoChar[592]; - UndoChar_593 = undoChar[593]; - UndoChar_594 = undoChar[594]; - UndoChar_595 = undoChar[595]; - UndoChar_596 = undoChar[596]; - UndoChar_597 = undoChar[597]; - UndoChar_598 = undoChar[598]; - UndoChar_599 = undoChar[599]; - UndoChar_600 = undoChar[600]; - UndoChar_601 = undoChar[601]; - UndoChar_602 = undoChar[602]; - UndoChar_603 = undoChar[603]; - UndoChar_604 = undoChar[604]; - UndoChar_605 = undoChar[605]; - UndoChar_606 = undoChar[606]; - UndoChar_607 = undoChar[607]; - UndoChar_608 = undoChar[608]; - UndoChar_609 = undoChar[609]; - UndoChar_610 = undoChar[610]; - UndoChar_611 = undoChar[611]; - UndoChar_612 = undoChar[612]; - UndoChar_613 = undoChar[613]; - UndoChar_614 = undoChar[614]; - UndoChar_615 = undoChar[615]; - UndoChar_616 = undoChar[616]; - UndoChar_617 = undoChar[617]; - UndoChar_618 = undoChar[618]; - UndoChar_619 = undoChar[619]; - UndoChar_620 = undoChar[620]; - UndoChar_621 = undoChar[621]; - UndoChar_622 = undoChar[622]; - UndoChar_623 = undoChar[623]; - UndoChar_624 = undoChar[624]; - UndoChar_625 = undoChar[625]; - UndoChar_626 = undoChar[626]; - UndoChar_627 = undoChar[627]; - UndoChar_628 = undoChar[628]; - UndoChar_629 = undoChar[629]; - UndoChar_630 = undoChar[630]; - UndoChar_631 = undoChar[631]; - UndoChar_632 = undoChar[632]; - UndoChar_633 = undoChar[633]; - UndoChar_634 = undoChar[634]; - UndoChar_635 = undoChar[635]; - UndoChar_636 = undoChar[636]; - UndoChar_637 = undoChar[637]; - UndoChar_638 = undoChar[638]; - UndoChar_639 = undoChar[639]; - UndoChar_640 = undoChar[640]; - UndoChar_641 = undoChar[641]; - UndoChar_642 = undoChar[642]; - UndoChar_643 = undoChar[643]; - UndoChar_644 = undoChar[644]; - UndoChar_645 = undoChar[645]; - UndoChar_646 = undoChar[646]; - UndoChar_647 = undoChar[647]; - UndoChar_648 = undoChar[648]; - UndoChar_649 = undoChar[649]; - UndoChar_650 = undoChar[650]; - UndoChar_651 = undoChar[651]; - UndoChar_652 = undoChar[652]; - UndoChar_653 = undoChar[653]; - UndoChar_654 = undoChar[654]; - UndoChar_655 = undoChar[655]; - UndoChar_656 = undoChar[656]; - UndoChar_657 = undoChar[657]; - UndoChar_658 = undoChar[658]; - UndoChar_659 = undoChar[659]; - UndoChar_660 = undoChar[660]; - UndoChar_661 = undoChar[661]; - UndoChar_662 = undoChar[662]; - UndoChar_663 = undoChar[663]; - UndoChar_664 = undoChar[664]; - UndoChar_665 = undoChar[665]; - UndoChar_666 = undoChar[666]; - UndoChar_667 = undoChar[667]; - UndoChar_668 = undoChar[668]; - UndoChar_669 = undoChar[669]; - UndoChar_670 = undoChar[670]; - UndoChar_671 = undoChar[671]; - UndoChar_672 = undoChar[672]; - UndoChar_673 = undoChar[673]; - UndoChar_674 = undoChar[674]; - UndoChar_675 = undoChar[675]; - UndoChar_676 = undoChar[676]; - UndoChar_677 = undoChar[677]; - UndoChar_678 = undoChar[678]; - UndoChar_679 = undoChar[679]; - UndoChar_680 = undoChar[680]; - UndoChar_681 = undoChar[681]; - UndoChar_682 = undoChar[682]; - UndoChar_683 = undoChar[683]; - UndoChar_684 = undoChar[684]; - UndoChar_685 = undoChar[685]; - UndoChar_686 = undoChar[686]; - UndoChar_687 = undoChar[687]; - UndoChar_688 = undoChar[688]; - UndoChar_689 = undoChar[689]; - UndoChar_690 = undoChar[690]; - UndoChar_691 = undoChar[691]; - UndoChar_692 = undoChar[692]; - UndoChar_693 = undoChar[693]; - UndoChar_694 = undoChar[694]; - UndoChar_695 = undoChar[695]; - UndoChar_696 = undoChar[696]; - UndoChar_697 = undoChar[697]; - UndoChar_698 = undoChar[698]; - UndoChar_699 = undoChar[699]; - UndoChar_700 = undoChar[700]; - UndoChar_701 = undoChar[701]; - UndoChar_702 = undoChar[702]; - UndoChar_703 = undoChar[703]; - UndoChar_704 = undoChar[704]; - UndoChar_705 = undoChar[705]; - UndoChar_706 = undoChar[706]; - UndoChar_707 = undoChar[707]; - UndoChar_708 = undoChar[708]; - UndoChar_709 = undoChar[709]; - UndoChar_710 = undoChar[710]; - UndoChar_711 = undoChar[711]; - UndoChar_712 = undoChar[712]; - UndoChar_713 = undoChar[713]; - UndoChar_714 = undoChar[714]; - UndoChar_715 = undoChar[715]; - UndoChar_716 = undoChar[716]; - UndoChar_717 = undoChar[717]; - UndoChar_718 = undoChar[718]; - UndoChar_719 = undoChar[719]; - UndoChar_720 = undoChar[720]; - UndoChar_721 = undoChar[721]; - UndoChar_722 = undoChar[722]; - UndoChar_723 = undoChar[723]; - UndoChar_724 = undoChar[724]; - UndoChar_725 = undoChar[725]; - UndoChar_726 = undoChar[726]; - UndoChar_727 = undoChar[727]; - UndoChar_728 = undoChar[728]; - UndoChar_729 = undoChar[729]; - UndoChar_730 = undoChar[730]; - UndoChar_731 = undoChar[731]; - UndoChar_732 = undoChar[732]; - UndoChar_733 = undoChar[733]; - UndoChar_734 = undoChar[734]; - UndoChar_735 = undoChar[735]; - UndoChar_736 = undoChar[736]; - UndoChar_737 = undoChar[737]; - UndoChar_738 = undoChar[738]; - UndoChar_739 = undoChar[739]; - UndoChar_740 = undoChar[740]; - UndoChar_741 = undoChar[741]; - UndoChar_742 = undoChar[742]; - UndoChar_743 = undoChar[743]; - UndoChar_744 = undoChar[744]; - UndoChar_745 = undoChar[745]; - UndoChar_746 = undoChar[746]; - UndoChar_747 = undoChar[747]; - UndoChar_748 = undoChar[748]; - UndoChar_749 = undoChar[749]; - UndoChar_750 = undoChar[750]; - UndoChar_751 = undoChar[751]; - UndoChar_752 = undoChar[752]; - UndoChar_753 = undoChar[753]; - UndoChar_754 = undoChar[754]; - UndoChar_755 = undoChar[755]; - UndoChar_756 = undoChar[756]; - UndoChar_757 = undoChar[757]; - UndoChar_758 = undoChar[758]; - UndoChar_759 = undoChar[759]; - UndoChar_760 = undoChar[760]; - UndoChar_761 = undoChar[761]; - UndoChar_762 = undoChar[762]; - UndoChar_763 = undoChar[763]; - UndoChar_764 = undoChar[764]; - UndoChar_765 = undoChar[765]; - UndoChar_766 = undoChar[766]; - UndoChar_767 = undoChar[767]; - UndoChar_768 = undoChar[768]; - UndoChar_769 = undoChar[769]; - UndoChar_770 = undoChar[770]; - UndoChar_771 = undoChar[771]; - UndoChar_772 = undoChar[772]; - UndoChar_773 = undoChar[773]; - UndoChar_774 = undoChar[774]; - UndoChar_775 = undoChar[775]; - UndoChar_776 = undoChar[776]; - UndoChar_777 = undoChar[777]; - UndoChar_778 = undoChar[778]; - UndoChar_779 = undoChar[779]; - UndoChar_780 = undoChar[780]; - UndoChar_781 = undoChar[781]; - UndoChar_782 = undoChar[782]; - UndoChar_783 = undoChar[783]; - UndoChar_784 = undoChar[784]; - UndoChar_785 = undoChar[785]; - UndoChar_786 = undoChar[786]; - UndoChar_787 = undoChar[787]; - UndoChar_788 = undoChar[788]; - UndoChar_789 = undoChar[789]; - UndoChar_790 = undoChar[790]; - UndoChar_791 = undoChar[791]; - UndoChar_792 = undoChar[792]; - UndoChar_793 = undoChar[793]; - UndoChar_794 = undoChar[794]; - UndoChar_795 = undoChar[795]; - UndoChar_796 = undoChar[796]; - UndoChar_797 = undoChar[797]; - UndoChar_798 = undoChar[798]; - UndoChar_799 = undoChar[799]; - UndoChar_800 = undoChar[800]; - UndoChar_801 = undoChar[801]; - UndoChar_802 = undoChar[802]; - UndoChar_803 = undoChar[803]; - UndoChar_804 = undoChar[804]; - UndoChar_805 = undoChar[805]; - UndoChar_806 = undoChar[806]; - UndoChar_807 = undoChar[807]; - UndoChar_808 = undoChar[808]; - UndoChar_809 = undoChar[809]; - UndoChar_810 = undoChar[810]; - UndoChar_811 = undoChar[811]; - UndoChar_812 = undoChar[812]; - UndoChar_813 = undoChar[813]; - UndoChar_814 = undoChar[814]; - UndoChar_815 = undoChar[815]; - UndoChar_816 = undoChar[816]; - UndoChar_817 = undoChar[817]; - UndoChar_818 = undoChar[818]; - UndoChar_819 = undoChar[819]; - UndoChar_820 = undoChar[820]; - UndoChar_821 = undoChar[821]; - UndoChar_822 = undoChar[822]; - UndoChar_823 = undoChar[823]; - UndoChar_824 = undoChar[824]; - UndoChar_825 = undoChar[825]; - UndoChar_826 = undoChar[826]; - UndoChar_827 = undoChar[827]; - UndoChar_828 = undoChar[828]; - UndoChar_829 = undoChar[829]; - UndoChar_830 = undoChar[830]; - UndoChar_831 = undoChar[831]; - UndoChar_832 = undoChar[832]; - UndoChar_833 = undoChar[833]; - UndoChar_834 = undoChar[834]; - UndoChar_835 = undoChar[835]; - UndoChar_836 = undoChar[836]; - UndoChar_837 = undoChar[837]; - UndoChar_838 = undoChar[838]; - UndoChar_839 = undoChar[839]; - UndoChar_840 = undoChar[840]; - UndoChar_841 = undoChar[841]; - UndoChar_842 = undoChar[842]; - UndoChar_843 = undoChar[843]; - UndoChar_844 = undoChar[844]; - UndoChar_845 = undoChar[845]; - UndoChar_846 = undoChar[846]; - UndoChar_847 = undoChar[847]; - UndoChar_848 = undoChar[848]; - UndoChar_849 = undoChar[849]; - UndoChar_850 = undoChar[850]; - UndoChar_851 = undoChar[851]; - UndoChar_852 = undoChar[852]; - UndoChar_853 = undoChar[853]; - UndoChar_854 = undoChar[854]; - UndoChar_855 = undoChar[855]; - UndoChar_856 = undoChar[856]; - UndoChar_857 = undoChar[857]; - UndoChar_858 = undoChar[858]; - UndoChar_859 = undoChar[859]; - UndoChar_860 = undoChar[860]; - UndoChar_861 = undoChar[861]; - UndoChar_862 = undoChar[862]; - UndoChar_863 = undoChar[863]; - UndoChar_864 = undoChar[864]; - UndoChar_865 = undoChar[865]; - UndoChar_866 = undoChar[866]; - UndoChar_867 = undoChar[867]; - UndoChar_868 = undoChar[868]; - UndoChar_869 = undoChar[869]; - UndoChar_870 = undoChar[870]; - UndoChar_871 = undoChar[871]; - UndoChar_872 = undoChar[872]; - UndoChar_873 = undoChar[873]; - UndoChar_874 = undoChar[874]; - UndoChar_875 = undoChar[875]; - UndoChar_876 = undoChar[876]; - UndoChar_877 = undoChar[877]; - UndoChar_878 = undoChar[878]; - UndoChar_879 = undoChar[879]; - UndoChar_880 = undoChar[880]; - UndoChar_881 = undoChar[881]; - UndoChar_882 = undoChar[882]; - UndoChar_883 = undoChar[883]; - UndoChar_884 = undoChar[884]; - UndoChar_885 = undoChar[885]; - UndoChar_886 = undoChar[886]; - UndoChar_887 = undoChar[887]; - UndoChar_888 = undoChar[888]; - UndoChar_889 = undoChar[889]; - UndoChar_890 = undoChar[890]; - UndoChar_891 = undoChar[891]; - UndoChar_892 = undoChar[892]; - UndoChar_893 = undoChar[893]; - UndoChar_894 = undoChar[894]; - UndoChar_895 = undoChar[895]; - UndoChar_896 = undoChar[896]; - UndoChar_897 = undoChar[897]; - UndoChar_898 = undoChar[898]; - UndoChar_899 = undoChar[899]; - UndoChar_900 = undoChar[900]; - UndoChar_901 = undoChar[901]; - UndoChar_902 = undoChar[902]; - UndoChar_903 = undoChar[903]; - UndoChar_904 = undoChar[904]; - UndoChar_905 = undoChar[905]; - UndoChar_906 = undoChar[906]; - UndoChar_907 = undoChar[907]; - UndoChar_908 = undoChar[908]; - UndoChar_909 = undoChar[909]; - UndoChar_910 = undoChar[910]; - UndoChar_911 = undoChar[911]; - UndoChar_912 = undoChar[912]; - UndoChar_913 = undoChar[913]; - UndoChar_914 = undoChar[914]; - UndoChar_915 = undoChar[915]; - UndoChar_916 = undoChar[916]; - UndoChar_917 = undoChar[917]; - UndoChar_918 = undoChar[918]; - UndoChar_919 = undoChar[919]; - UndoChar_920 = undoChar[920]; - UndoChar_921 = undoChar[921]; - UndoChar_922 = undoChar[922]; - UndoChar_923 = undoChar[923]; - UndoChar_924 = undoChar[924]; - UndoChar_925 = undoChar[925]; - UndoChar_926 = undoChar[926]; - UndoChar_927 = undoChar[927]; - UndoChar_928 = undoChar[928]; - UndoChar_929 = undoChar[929]; - UndoChar_930 = undoChar[930]; - UndoChar_931 = undoChar[931]; - UndoChar_932 = undoChar[932]; - UndoChar_933 = undoChar[933]; - UndoChar_934 = undoChar[934]; - UndoChar_935 = undoChar[935]; - UndoChar_936 = undoChar[936]; - UndoChar_937 = undoChar[937]; - UndoChar_938 = undoChar[938]; - UndoChar_939 = undoChar[939]; - UndoChar_940 = undoChar[940]; - UndoChar_941 = undoChar[941]; - UndoChar_942 = undoChar[942]; - UndoChar_943 = undoChar[943]; - UndoChar_944 = undoChar[944]; - UndoChar_945 = undoChar[945]; - UndoChar_946 = undoChar[946]; - UndoChar_947 = undoChar[947]; - UndoChar_948 = undoChar[948]; - UndoChar_949 = undoChar[949]; - UndoChar_950 = undoChar[950]; - UndoChar_951 = undoChar[951]; - UndoChar_952 = undoChar[952]; - UndoChar_953 = undoChar[953]; - UndoChar_954 = undoChar[954]; - UndoChar_955 = undoChar[955]; - UndoChar_956 = undoChar[956]; - UndoChar_957 = undoChar[957]; - UndoChar_958 = undoChar[958]; - UndoChar_959 = undoChar[959]; - UndoChar_960 = undoChar[960]; - UndoChar_961 = undoChar[961]; - UndoChar_962 = undoChar[962]; - UndoChar_963 = undoChar[963]; - UndoChar_964 = undoChar[964]; - UndoChar_965 = undoChar[965]; - UndoChar_966 = undoChar[966]; - UndoChar_967 = undoChar[967]; - UndoChar_968 = undoChar[968]; - UndoChar_969 = undoChar[969]; - UndoChar_970 = undoChar[970]; - UndoChar_971 = undoChar[971]; - UndoChar_972 = undoChar[972]; - UndoChar_973 = undoChar[973]; - UndoChar_974 = undoChar[974]; - UndoChar_975 = undoChar[975]; - UndoChar_976 = undoChar[976]; - UndoChar_977 = undoChar[977]; - UndoChar_978 = undoChar[978]; - UndoChar_979 = undoChar[979]; - UndoChar_980 = undoChar[980]; - UndoChar_981 = undoChar[981]; - UndoChar_982 = undoChar[982]; - UndoChar_983 = undoChar[983]; - UndoChar_984 = undoChar[984]; - UndoChar_985 = undoChar[985]; - UndoChar_986 = undoChar[986]; - UndoChar_987 = undoChar[987]; - UndoChar_988 = undoChar[988]; - UndoChar_989 = undoChar[989]; - UndoChar_990 = undoChar[990]; - UndoChar_991 = undoChar[991]; - UndoChar_992 = undoChar[992]; - UndoChar_993 = undoChar[993]; - UndoChar_994 = undoChar[994]; - UndoChar_995 = undoChar[995]; - UndoChar_996 = undoChar[996]; - UndoChar_997 = undoChar[997]; - UndoChar_998 = undoChar[998]; - } - UndoPoint = undoPoint; - RedoPoint = redoPoint; - UndoCharPoint = undoCharPoint; - RedoCharPoint = redoCharPoint; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe StbUndoState(Span<StbUndoRecord> undoRec = default, Span<ushort> undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) - { - if (undoRec != default(Span<StbUndoRecord>)) - { - UndoRec_0 = undoRec[0]; - UndoRec_1 = undoRec[1]; - UndoRec_2 = undoRec[2]; - UndoRec_3 = undoRec[3]; - UndoRec_4 = undoRec[4]; - UndoRec_5 = undoRec[5]; - UndoRec_6 = undoRec[6]; - UndoRec_7 = undoRec[7]; - UndoRec_8 = undoRec[8]; - UndoRec_9 = undoRec[9]; - UndoRec_10 = undoRec[10]; - UndoRec_11 = undoRec[11]; - UndoRec_12 = undoRec[12]; - UndoRec_13 = undoRec[13]; - UndoRec_14 = undoRec[14]; - UndoRec_15 = undoRec[15]; - UndoRec_16 = undoRec[16]; - UndoRec_17 = undoRec[17]; - UndoRec_18 = undoRec[18]; - UndoRec_19 = undoRec[19]; - UndoRec_20 = undoRec[20]; - UndoRec_21 = undoRec[21]; - UndoRec_22 = undoRec[22]; - UndoRec_23 = undoRec[23]; - UndoRec_24 = undoRec[24]; - UndoRec_25 = undoRec[25]; - UndoRec_26 = undoRec[26]; - UndoRec_27 = undoRec[27]; - UndoRec_28 = undoRec[28]; - UndoRec_29 = undoRec[29]; - UndoRec_30 = undoRec[30]; - UndoRec_31 = undoRec[31]; - UndoRec_32 = undoRec[32]; - UndoRec_33 = undoRec[33]; - UndoRec_34 = undoRec[34]; - UndoRec_35 = undoRec[35]; - UndoRec_36 = undoRec[36]; - UndoRec_37 = undoRec[37]; - UndoRec_38 = undoRec[38]; - UndoRec_39 = undoRec[39]; - UndoRec_40 = undoRec[40]; - UndoRec_41 = undoRec[41]; - UndoRec_42 = undoRec[42]; - UndoRec_43 = undoRec[43]; - UndoRec_44 = undoRec[44]; - UndoRec_45 = undoRec[45]; - UndoRec_46 = undoRec[46]; - UndoRec_47 = undoRec[47]; - UndoRec_48 = undoRec[48]; - UndoRec_49 = undoRec[49]; - UndoRec_50 = undoRec[50]; - UndoRec_51 = undoRec[51]; - UndoRec_52 = undoRec[52]; - UndoRec_53 = undoRec[53]; - UndoRec_54 = undoRec[54]; - UndoRec_55 = undoRec[55]; - UndoRec_56 = undoRec[56]; - UndoRec_57 = undoRec[57]; - UndoRec_58 = undoRec[58]; - UndoRec_59 = undoRec[59]; - UndoRec_60 = undoRec[60]; - UndoRec_61 = undoRec[61]; - UndoRec_62 = undoRec[62]; - UndoRec_63 = undoRec[63]; - UndoRec_64 = undoRec[64]; - UndoRec_65 = undoRec[65]; - UndoRec_66 = undoRec[66]; - UndoRec_67 = undoRec[67]; - UndoRec_68 = undoRec[68]; - UndoRec_69 = undoRec[69]; - UndoRec_70 = undoRec[70]; - UndoRec_71 = undoRec[71]; - UndoRec_72 = undoRec[72]; - UndoRec_73 = undoRec[73]; - UndoRec_74 = undoRec[74]; - UndoRec_75 = undoRec[75]; - UndoRec_76 = undoRec[76]; - UndoRec_77 = undoRec[77]; - UndoRec_78 = undoRec[78]; - UndoRec_79 = undoRec[79]; - UndoRec_80 = undoRec[80]; - UndoRec_81 = undoRec[81]; - UndoRec_82 = undoRec[82]; - UndoRec_83 = undoRec[83]; - UndoRec_84 = undoRec[84]; - UndoRec_85 = undoRec[85]; - UndoRec_86 = undoRec[86]; - UndoRec_87 = undoRec[87]; - UndoRec_88 = undoRec[88]; - UndoRec_89 = undoRec[89]; - UndoRec_90 = undoRec[90]; - UndoRec_91 = undoRec[91]; - UndoRec_92 = undoRec[92]; - UndoRec_93 = undoRec[93]; - UndoRec_94 = undoRec[94]; - UndoRec_95 = undoRec[95]; - UndoRec_96 = undoRec[96]; - UndoRec_97 = undoRec[97]; - UndoRec_98 = undoRec[98]; - } - if (undoChar != default(Span<ushort>)) - { - UndoChar_0 = undoChar[0]; - UndoChar_1 = undoChar[1]; - UndoChar_2 = undoChar[2]; - UndoChar_3 = undoChar[3]; - UndoChar_4 = undoChar[4]; - UndoChar_5 = undoChar[5]; - UndoChar_6 = undoChar[6]; - UndoChar_7 = undoChar[7]; - UndoChar_8 = undoChar[8]; - UndoChar_9 = undoChar[9]; - UndoChar_10 = undoChar[10]; - UndoChar_11 = undoChar[11]; - UndoChar_12 = undoChar[12]; - UndoChar_13 = undoChar[13]; - UndoChar_14 = undoChar[14]; - UndoChar_15 = undoChar[15]; - UndoChar_16 = undoChar[16]; - UndoChar_17 = undoChar[17]; - UndoChar_18 = undoChar[18]; - UndoChar_19 = undoChar[19]; - UndoChar_20 = undoChar[20]; - UndoChar_21 = undoChar[21]; - UndoChar_22 = undoChar[22]; - UndoChar_23 = undoChar[23]; - UndoChar_24 = undoChar[24]; - UndoChar_25 = undoChar[25]; - UndoChar_26 = undoChar[26]; - UndoChar_27 = undoChar[27]; - UndoChar_28 = undoChar[28]; - UndoChar_29 = undoChar[29]; - UndoChar_30 = undoChar[30]; - UndoChar_31 = undoChar[31]; - UndoChar_32 = undoChar[32]; - UndoChar_33 = undoChar[33]; - UndoChar_34 = undoChar[34]; - UndoChar_35 = undoChar[35]; - UndoChar_36 = undoChar[36]; - UndoChar_37 = undoChar[37]; - UndoChar_38 = undoChar[38]; - UndoChar_39 = undoChar[39]; - UndoChar_40 = undoChar[40]; - UndoChar_41 = undoChar[41]; - UndoChar_42 = undoChar[42]; - UndoChar_43 = undoChar[43]; - UndoChar_44 = undoChar[44]; - UndoChar_45 = undoChar[45]; - UndoChar_46 = undoChar[46]; - UndoChar_47 = undoChar[47]; - UndoChar_48 = undoChar[48]; - UndoChar_49 = undoChar[49]; - UndoChar_50 = undoChar[50]; - UndoChar_51 = undoChar[51]; - UndoChar_52 = undoChar[52]; - UndoChar_53 = undoChar[53]; - UndoChar_54 = undoChar[54]; - UndoChar_55 = undoChar[55]; - UndoChar_56 = undoChar[56]; - UndoChar_57 = undoChar[57]; - UndoChar_58 = undoChar[58]; - UndoChar_59 = undoChar[59]; - UndoChar_60 = undoChar[60]; - UndoChar_61 = undoChar[61]; - UndoChar_62 = undoChar[62]; - UndoChar_63 = undoChar[63]; - UndoChar_64 = undoChar[64]; - UndoChar_65 = undoChar[65]; - UndoChar_66 = undoChar[66]; - UndoChar_67 = undoChar[67]; - UndoChar_68 = undoChar[68]; - UndoChar_69 = undoChar[69]; - UndoChar_70 = undoChar[70]; - UndoChar_71 = undoChar[71]; - UndoChar_72 = undoChar[72]; - UndoChar_73 = undoChar[73]; - UndoChar_74 = undoChar[74]; - UndoChar_75 = undoChar[75]; - UndoChar_76 = undoChar[76]; - UndoChar_77 = undoChar[77]; - UndoChar_78 = undoChar[78]; - UndoChar_79 = undoChar[79]; - UndoChar_80 = undoChar[80]; - UndoChar_81 = undoChar[81]; - UndoChar_82 = undoChar[82]; - UndoChar_83 = undoChar[83]; - UndoChar_84 = undoChar[84]; - UndoChar_85 = undoChar[85]; - UndoChar_86 = undoChar[86]; - UndoChar_87 = undoChar[87]; - UndoChar_88 = undoChar[88]; - UndoChar_89 = undoChar[89]; - UndoChar_90 = undoChar[90]; - UndoChar_91 = undoChar[91]; - UndoChar_92 = undoChar[92]; - UndoChar_93 = undoChar[93]; - UndoChar_94 = undoChar[94]; - UndoChar_95 = undoChar[95]; - UndoChar_96 = undoChar[96]; - UndoChar_97 = undoChar[97]; - UndoChar_98 = undoChar[98]; - UndoChar_99 = undoChar[99]; - UndoChar_100 = undoChar[100]; - UndoChar_101 = undoChar[101]; - UndoChar_102 = undoChar[102]; - UndoChar_103 = undoChar[103]; - UndoChar_104 = undoChar[104]; - UndoChar_105 = undoChar[105]; - UndoChar_106 = undoChar[106]; - UndoChar_107 = undoChar[107]; - UndoChar_108 = undoChar[108]; - UndoChar_109 = undoChar[109]; - UndoChar_110 = undoChar[110]; - UndoChar_111 = undoChar[111]; - UndoChar_112 = undoChar[112]; - UndoChar_113 = undoChar[113]; - UndoChar_114 = undoChar[114]; - UndoChar_115 = undoChar[115]; - UndoChar_116 = undoChar[116]; - UndoChar_117 = undoChar[117]; - UndoChar_118 = undoChar[118]; - UndoChar_119 = undoChar[119]; - UndoChar_120 = undoChar[120]; - UndoChar_121 = undoChar[121]; - UndoChar_122 = undoChar[122]; - UndoChar_123 = undoChar[123]; - UndoChar_124 = undoChar[124]; - UndoChar_125 = undoChar[125]; - UndoChar_126 = undoChar[126]; - UndoChar_127 = undoChar[127]; - UndoChar_128 = undoChar[128]; - UndoChar_129 = undoChar[129]; - UndoChar_130 = undoChar[130]; - UndoChar_131 = undoChar[131]; - UndoChar_132 = undoChar[132]; - UndoChar_133 = undoChar[133]; - UndoChar_134 = undoChar[134]; - UndoChar_135 = undoChar[135]; - UndoChar_136 = undoChar[136]; - UndoChar_137 = undoChar[137]; - UndoChar_138 = undoChar[138]; - UndoChar_139 = undoChar[139]; - UndoChar_140 = undoChar[140]; - UndoChar_141 = undoChar[141]; - UndoChar_142 = undoChar[142]; - UndoChar_143 = undoChar[143]; - UndoChar_144 = undoChar[144]; - UndoChar_145 = undoChar[145]; - UndoChar_146 = undoChar[146]; - UndoChar_147 = undoChar[147]; - UndoChar_148 = undoChar[148]; - UndoChar_149 = undoChar[149]; - UndoChar_150 = undoChar[150]; - UndoChar_151 = undoChar[151]; - UndoChar_152 = undoChar[152]; - UndoChar_153 = undoChar[153]; - UndoChar_154 = undoChar[154]; - UndoChar_155 = undoChar[155]; - UndoChar_156 = undoChar[156]; - UndoChar_157 = undoChar[157]; - UndoChar_158 = undoChar[158]; - UndoChar_159 = undoChar[159]; - UndoChar_160 = undoChar[160]; - UndoChar_161 = undoChar[161]; - UndoChar_162 = undoChar[162]; - UndoChar_163 = undoChar[163]; - UndoChar_164 = undoChar[164]; - UndoChar_165 = undoChar[165]; - UndoChar_166 = undoChar[166]; - UndoChar_167 = undoChar[167]; - UndoChar_168 = undoChar[168]; - UndoChar_169 = undoChar[169]; - UndoChar_170 = undoChar[170]; - UndoChar_171 = undoChar[171]; - UndoChar_172 = undoChar[172]; - UndoChar_173 = undoChar[173]; - UndoChar_174 = undoChar[174]; - UndoChar_175 = undoChar[175]; - UndoChar_176 = undoChar[176]; - UndoChar_177 = undoChar[177]; - UndoChar_178 = undoChar[178]; - UndoChar_179 = undoChar[179]; - UndoChar_180 = undoChar[180]; - UndoChar_181 = undoChar[181]; - UndoChar_182 = undoChar[182]; - UndoChar_183 = undoChar[183]; - UndoChar_184 = undoChar[184]; - UndoChar_185 = undoChar[185]; - UndoChar_186 = undoChar[186]; - UndoChar_187 = undoChar[187]; - UndoChar_188 = undoChar[188]; - UndoChar_189 = undoChar[189]; - UndoChar_190 = undoChar[190]; - UndoChar_191 = undoChar[191]; - UndoChar_192 = undoChar[192]; - UndoChar_193 = undoChar[193]; - UndoChar_194 = undoChar[194]; - UndoChar_195 = undoChar[195]; - UndoChar_196 = undoChar[196]; - UndoChar_197 = undoChar[197]; - UndoChar_198 = undoChar[198]; - UndoChar_199 = undoChar[199]; - UndoChar_200 = undoChar[200]; - UndoChar_201 = undoChar[201]; - UndoChar_202 = undoChar[202]; - UndoChar_203 = undoChar[203]; - UndoChar_204 = undoChar[204]; - UndoChar_205 = undoChar[205]; - UndoChar_206 = undoChar[206]; - UndoChar_207 = undoChar[207]; - UndoChar_208 = undoChar[208]; - UndoChar_209 = undoChar[209]; - UndoChar_210 = undoChar[210]; - UndoChar_211 = undoChar[211]; - UndoChar_212 = undoChar[212]; - UndoChar_213 = undoChar[213]; - UndoChar_214 = undoChar[214]; - UndoChar_215 = undoChar[215]; - UndoChar_216 = undoChar[216]; - UndoChar_217 = undoChar[217]; - UndoChar_218 = undoChar[218]; - UndoChar_219 = undoChar[219]; - UndoChar_220 = undoChar[220]; - UndoChar_221 = undoChar[221]; - UndoChar_222 = undoChar[222]; - UndoChar_223 = undoChar[223]; - UndoChar_224 = undoChar[224]; - UndoChar_225 = undoChar[225]; - UndoChar_226 = undoChar[226]; - UndoChar_227 = undoChar[227]; - UndoChar_228 = undoChar[228]; - UndoChar_229 = undoChar[229]; - UndoChar_230 = undoChar[230]; - UndoChar_231 = undoChar[231]; - UndoChar_232 = undoChar[232]; - UndoChar_233 = undoChar[233]; - UndoChar_234 = undoChar[234]; - UndoChar_235 = undoChar[235]; - UndoChar_236 = undoChar[236]; - UndoChar_237 = undoChar[237]; - UndoChar_238 = undoChar[238]; - UndoChar_239 = undoChar[239]; - UndoChar_240 = undoChar[240]; - UndoChar_241 = undoChar[241]; - UndoChar_242 = undoChar[242]; - UndoChar_243 = undoChar[243]; - UndoChar_244 = undoChar[244]; - UndoChar_245 = undoChar[245]; - UndoChar_246 = undoChar[246]; - UndoChar_247 = undoChar[247]; - UndoChar_248 = undoChar[248]; - UndoChar_249 = undoChar[249]; - UndoChar_250 = undoChar[250]; - UndoChar_251 = undoChar[251]; - UndoChar_252 = undoChar[252]; - UndoChar_253 = undoChar[253]; - UndoChar_254 = undoChar[254]; - UndoChar_255 = undoChar[255]; - UndoChar_256 = undoChar[256]; - UndoChar_257 = undoChar[257]; - UndoChar_258 = undoChar[258]; - UndoChar_259 = undoChar[259]; - UndoChar_260 = undoChar[260]; - UndoChar_261 = undoChar[261]; - UndoChar_262 = undoChar[262]; - UndoChar_263 = undoChar[263]; - UndoChar_264 = undoChar[264]; - UndoChar_265 = undoChar[265]; - UndoChar_266 = undoChar[266]; - UndoChar_267 = undoChar[267]; - UndoChar_268 = undoChar[268]; - UndoChar_269 = undoChar[269]; - UndoChar_270 = undoChar[270]; - UndoChar_271 = undoChar[271]; - UndoChar_272 = undoChar[272]; - UndoChar_273 = undoChar[273]; - UndoChar_274 = undoChar[274]; - UndoChar_275 = undoChar[275]; - UndoChar_276 = undoChar[276]; - UndoChar_277 = undoChar[277]; - UndoChar_278 = undoChar[278]; - UndoChar_279 = undoChar[279]; - UndoChar_280 = undoChar[280]; - UndoChar_281 = undoChar[281]; - UndoChar_282 = undoChar[282]; - UndoChar_283 = undoChar[283]; - UndoChar_284 = undoChar[284]; - UndoChar_285 = undoChar[285]; - UndoChar_286 = undoChar[286]; - UndoChar_287 = undoChar[287]; - UndoChar_288 = undoChar[288]; - UndoChar_289 = undoChar[289]; - UndoChar_290 = undoChar[290]; - UndoChar_291 = undoChar[291]; - UndoChar_292 = undoChar[292]; - UndoChar_293 = undoChar[293]; - UndoChar_294 = undoChar[294]; - UndoChar_295 = undoChar[295]; - UndoChar_296 = undoChar[296]; - UndoChar_297 = undoChar[297]; - UndoChar_298 = undoChar[298]; - UndoChar_299 = undoChar[299]; - UndoChar_300 = undoChar[300]; - UndoChar_301 = undoChar[301]; - UndoChar_302 = undoChar[302]; - UndoChar_303 = undoChar[303]; - UndoChar_304 = undoChar[304]; - UndoChar_305 = undoChar[305]; - UndoChar_306 = undoChar[306]; - UndoChar_307 = undoChar[307]; - UndoChar_308 = undoChar[308]; - UndoChar_309 = undoChar[309]; - UndoChar_310 = undoChar[310]; - UndoChar_311 = undoChar[311]; - UndoChar_312 = undoChar[312]; - UndoChar_313 = undoChar[313]; - UndoChar_314 = undoChar[314]; - UndoChar_315 = undoChar[315]; - UndoChar_316 = undoChar[316]; - UndoChar_317 = undoChar[317]; - UndoChar_318 = undoChar[318]; - UndoChar_319 = undoChar[319]; - UndoChar_320 = undoChar[320]; - UndoChar_321 = undoChar[321]; - UndoChar_322 = undoChar[322]; - UndoChar_323 = undoChar[323]; - UndoChar_324 = undoChar[324]; - UndoChar_325 = undoChar[325]; - UndoChar_326 = undoChar[326]; - UndoChar_327 = undoChar[327]; - UndoChar_328 = undoChar[328]; - UndoChar_329 = undoChar[329]; - UndoChar_330 = undoChar[330]; - UndoChar_331 = undoChar[331]; - UndoChar_332 = undoChar[332]; - UndoChar_333 = undoChar[333]; - UndoChar_334 = undoChar[334]; - UndoChar_335 = undoChar[335]; - UndoChar_336 = undoChar[336]; - UndoChar_337 = undoChar[337]; - UndoChar_338 = undoChar[338]; - UndoChar_339 = undoChar[339]; - UndoChar_340 = undoChar[340]; - UndoChar_341 = undoChar[341]; - UndoChar_342 = undoChar[342]; - UndoChar_343 = undoChar[343]; - UndoChar_344 = undoChar[344]; - UndoChar_345 = undoChar[345]; - UndoChar_346 = undoChar[346]; - UndoChar_347 = undoChar[347]; - UndoChar_348 = undoChar[348]; - UndoChar_349 = undoChar[349]; - UndoChar_350 = undoChar[350]; - UndoChar_351 = undoChar[351]; - UndoChar_352 = undoChar[352]; - UndoChar_353 = undoChar[353]; - UndoChar_354 = undoChar[354]; - UndoChar_355 = undoChar[355]; - UndoChar_356 = undoChar[356]; - UndoChar_357 = undoChar[357]; - UndoChar_358 = undoChar[358]; - UndoChar_359 = undoChar[359]; - UndoChar_360 = undoChar[360]; - UndoChar_361 = undoChar[361]; - UndoChar_362 = undoChar[362]; - UndoChar_363 = undoChar[363]; - UndoChar_364 = undoChar[364]; - UndoChar_365 = undoChar[365]; - UndoChar_366 = undoChar[366]; - UndoChar_367 = undoChar[367]; - UndoChar_368 = undoChar[368]; - UndoChar_369 = undoChar[369]; - UndoChar_370 = undoChar[370]; - UndoChar_371 = undoChar[371]; - UndoChar_372 = undoChar[372]; - UndoChar_373 = undoChar[373]; - UndoChar_374 = undoChar[374]; - UndoChar_375 = undoChar[375]; - UndoChar_376 = undoChar[376]; - UndoChar_377 = undoChar[377]; - UndoChar_378 = undoChar[378]; - UndoChar_379 = undoChar[379]; - UndoChar_380 = undoChar[380]; - UndoChar_381 = undoChar[381]; - UndoChar_382 = undoChar[382]; - UndoChar_383 = undoChar[383]; - UndoChar_384 = undoChar[384]; - UndoChar_385 = undoChar[385]; - UndoChar_386 = undoChar[386]; - UndoChar_387 = undoChar[387]; - UndoChar_388 = undoChar[388]; - UndoChar_389 = undoChar[389]; - UndoChar_390 = undoChar[390]; - UndoChar_391 = undoChar[391]; - UndoChar_392 = undoChar[392]; - UndoChar_393 = undoChar[393]; - UndoChar_394 = undoChar[394]; - UndoChar_395 = undoChar[395]; - UndoChar_396 = undoChar[396]; - UndoChar_397 = undoChar[397]; - UndoChar_398 = undoChar[398]; - UndoChar_399 = undoChar[399]; - UndoChar_400 = undoChar[400]; - UndoChar_401 = undoChar[401]; - UndoChar_402 = undoChar[402]; - UndoChar_403 = undoChar[403]; - UndoChar_404 = undoChar[404]; - UndoChar_405 = undoChar[405]; - UndoChar_406 = undoChar[406]; - UndoChar_407 = undoChar[407]; - UndoChar_408 = undoChar[408]; - UndoChar_409 = undoChar[409]; - UndoChar_410 = undoChar[410]; - UndoChar_411 = undoChar[411]; - UndoChar_412 = undoChar[412]; - UndoChar_413 = undoChar[413]; - UndoChar_414 = undoChar[414]; - UndoChar_415 = undoChar[415]; - UndoChar_416 = undoChar[416]; - UndoChar_417 = undoChar[417]; - UndoChar_418 = undoChar[418]; - UndoChar_419 = undoChar[419]; - UndoChar_420 = undoChar[420]; - UndoChar_421 = undoChar[421]; - UndoChar_422 = undoChar[422]; - UndoChar_423 = undoChar[423]; - UndoChar_424 = undoChar[424]; - UndoChar_425 = undoChar[425]; - UndoChar_426 = undoChar[426]; - UndoChar_427 = undoChar[427]; - UndoChar_428 = undoChar[428]; - UndoChar_429 = undoChar[429]; - UndoChar_430 = undoChar[430]; - UndoChar_431 = undoChar[431]; - UndoChar_432 = undoChar[432]; - UndoChar_433 = undoChar[433]; - UndoChar_434 = undoChar[434]; - UndoChar_435 = undoChar[435]; - UndoChar_436 = undoChar[436]; - UndoChar_437 = undoChar[437]; - UndoChar_438 = undoChar[438]; - UndoChar_439 = undoChar[439]; - UndoChar_440 = undoChar[440]; - UndoChar_441 = undoChar[441]; - UndoChar_442 = undoChar[442]; - UndoChar_443 = undoChar[443]; - UndoChar_444 = undoChar[444]; - UndoChar_445 = undoChar[445]; - UndoChar_446 = undoChar[446]; - UndoChar_447 = undoChar[447]; - UndoChar_448 = undoChar[448]; - UndoChar_449 = undoChar[449]; - UndoChar_450 = undoChar[450]; - UndoChar_451 = undoChar[451]; - UndoChar_452 = undoChar[452]; - UndoChar_453 = undoChar[453]; - UndoChar_454 = undoChar[454]; - UndoChar_455 = undoChar[455]; - UndoChar_456 = undoChar[456]; - UndoChar_457 = undoChar[457]; - UndoChar_458 = undoChar[458]; - UndoChar_459 = undoChar[459]; - UndoChar_460 = undoChar[460]; - UndoChar_461 = undoChar[461]; - UndoChar_462 = undoChar[462]; - UndoChar_463 = undoChar[463]; - UndoChar_464 = undoChar[464]; - UndoChar_465 = undoChar[465]; - UndoChar_466 = undoChar[466]; - UndoChar_467 = undoChar[467]; - UndoChar_468 = undoChar[468]; - UndoChar_469 = undoChar[469]; - UndoChar_470 = undoChar[470]; - UndoChar_471 = undoChar[471]; - UndoChar_472 = undoChar[472]; - UndoChar_473 = undoChar[473]; - UndoChar_474 = undoChar[474]; - UndoChar_475 = undoChar[475]; - UndoChar_476 = undoChar[476]; - UndoChar_477 = undoChar[477]; - UndoChar_478 = undoChar[478]; - UndoChar_479 = undoChar[479]; - UndoChar_480 = undoChar[480]; - UndoChar_481 = undoChar[481]; - UndoChar_482 = undoChar[482]; - UndoChar_483 = undoChar[483]; - UndoChar_484 = undoChar[484]; - UndoChar_485 = undoChar[485]; - UndoChar_486 = undoChar[486]; - UndoChar_487 = undoChar[487]; - UndoChar_488 = undoChar[488]; - UndoChar_489 = undoChar[489]; - UndoChar_490 = undoChar[490]; - UndoChar_491 = undoChar[491]; - UndoChar_492 = undoChar[492]; - UndoChar_493 = undoChar[493]; - UndoChar_494 = undoChar[494]; - UndoChar_495 = undoChar[495]; - UndoChar_496 = undoChar[496]; - UndoChar_497 = undoChar[497]; - UndoChar_498 = undoChar[498]; - UndoChar_499 = undoChar[499]; - UndoChar_500 = undoChar[500]; - UndoChar_501 = undoChar[501]; - UndoChar_502 = undoChar[502]; - UndoChar_503 = undoChar[503]; - UndoChar_504 = undoChar[504]; - UndoChar_505 = undoChar[505]; - UndoChar_506 = undoChar[506]; - UndoChar_507 = undoChar[507]; - UndoChar_508 = undoChar[508]; - UndoChar_509 = undoChar[509]; - UndoChar_510 = undoChar[510]; - UndoChar_511 = undoChar[511]; - UndoChar_512 = undoChar[512]; - UndoChar_513 = undoChar[513]; - UndoChar_514 = undoChar[514]; - UndoChar_515 = undoChar[515]; - UndoChar_516 = undoChar[516]; - UndoChar_517 = undoChar[517]; - UndoChar_518 = undoChar[518]; - UndoChar_519 = undoChar[519]; - UndoChar_520 = undoChar[520]; - UndoChar_521 = undoChar[521]; - UndoChar_522 = undoChar[522]; - UndoChar_523 = undoChar[523]; - UndoChar_524 = undoChar[524]; - UndoChar_525 = undoChar[525]; - UndoChar_526 = undoChar[526]; - UndoChar_527 = undoChar[527]; - UndoChar_528 = undoChar[528]; - UndoChar_529 = undoChar[529]; - UndoChar_530 = undoChar[530]; - UndoChar_531 = undoChar[531]; - UndoChar_532 = undoChar[532]; - UndoChar_533 = undoChar[533]; - UndoChar_534 = undoChar[534]; - UndoChar_535 = undoChar[535]; - UndoChar_536 = undoChar[536]; - UndoChar_537 = undoChar[537]; - UndoChar_538 = undoChar[538]; - UndoChar_539 = undoChar[539]; - UndoChar_540 = undoChar[540]; - UndoChar_541 = undoChar[541]; - UndoChar_542 = undoChar[542]; - UndoChar_543 = undoChar[543]; - UndoChar_544 = undoChar[544]; - UndoChar_545 = undoChar[545]; - UndoChar_546 = undoChar[546]; - UndoChar_547 = undoChar[547]; - UndoChar_548 = undoChar[548]; - UndoChar_549 = undoChar[549]; - UndoChar_550 = undoChar[550]; - UndoChar_551 = undoChar[551]; - UndoChar_552 = undoChar[552]; - UndoChar_553 = undoChar[553]; - UndoChar_554 = undoChar[554]; - UndoChar_555 = undoChar[555]; - UndoChar_556 = undoChar[556]; - UndoChar_557 = undoChar[557]; - UndoChar_558 = undoChar[558]; - UndoChar_559 = undoChar[559]; - UndoChar_560 = undoChar[560]; - UndoChar_561 = undoChar[561]; - UndoChar_562 = undoChar[562]; - UndoChar_563 = undoChar[563]; - UndoChar_564 = undoChar[564]; - UndoChar_565 = undoChar[565]; - UndoChar_566 = undoChar[566]; - UndoChar_567 = undoChar[567]; - UndoChar_568 = undoChar[568]; - UndoChar_569 = undoChar[569]; - UndoChar_570 = undoChar[570]; - UndoChar_571 = undoChar[571]; - UndoChar_572 = undoChar[572]; - UndoChar_573 = undoChar[573]; - UndoChar_574 = undoChar[574]; - UndoChar_575 = undoChar[575]; - UndoChar_576 = undoChar[576]; - UndoChar_577 = undoChar[577]; - UndoChar_578 = undoChar[578]; - UndoChar_579 = undoChar[579]; - UndoChar_580 = undoChar[580]; - UndoChar_581 = undoChar[581]; - UndoChar_582 = undoChar[582]; - UndoChar_583 = undoChar[583]; - UndoChar_584 = undoChar[584]; - UndoChar_585 = undoChar[585]; - UndoChar_586 = undoChar[586]; - UndoChar_587 = undoChar[587]; - UndoChar_588 = undoChar[588]; - UndoChar_589 = undoChar[589]; - UndoChar_590 = undoChar[590]; - UndoChar_591 = undoChar[591]; - UndoChar_592 = undoChar[592]; - UndoChar_593 = undoChar[593]; - UndoChar_594 = undoChar[594]; - UndoChar_595 = undoChar[595]; - UndoChar_596 = undoChar[596]; - UndoChar_597 = undoChar[597]; - UndoChar_598 = undoChar[598]; - UndoChar_599 = undoChar[599]; - UndoChar_600 = undoChar[600]; - UndoChar_601 = undoChar[601]; - UndoChar_602 = undoChar[602]; - UndoChar_603 = undoChar[603]; - UndoChar_604 = undoChar[604]; - UndoChar_605 = undoChar[605]; - UndoChar_606 = undoChar[606]; - UndoChar_607 = undoChar[607]; - UndoChar_608 = undoChar[608]; - UndoChar_609 = undoChar[609]; - UndoChar_610 = undoChar[610]; - UndoChar_611 = undoChar[611]; - UndoChar_612 = undoChar[612]; - UndoChar_613 = undoChar[613]; - UndoChar_614 = undoChar[614]; - UndoChar_615 = undoChar[615]; - UndoChar_616 = undoChar[616]; - UndoChar_617 = undoChar[617]; - UndoChar_618 = undoChar[618]; - UndoChar_619 = undoChar[619]; - UndoChar_620 = undoChar[620]; - UndoChar_621 = undoChar[621]; - UndoChar_622 = undoChar[622]; - UndoChar_623 = undoChar[623]; - UndoChar_624 = undoChar[624]; - UndoChar_625 = undoChar[625]; - UndoChar_626 = undoChar[626]; - UndoChar_627 = undoChar[627]; - UndoChar_628 = undoChar[628]; - UndoChar_629 = undoChar[629]; - UndoChar_630 = undoChar[630]; - UndoChar_631 = undoChar[631]; - UndoChar_632 = undoChar[632]; - UndoChar_633 = undoChar[633]; - UndoChar_634 = undoChar[634]; - UndoChar_635 = undoChar[635]; - UndoChar_636 = undoChar[636]; - UndoChar_637 = undoChar[637]; - UndoChar_638 = undoChar[638]; - UndoChar_639 = undoChar[639]; - UndoChar_640 = undoChar[640]; - UndoChar_641 = undoChar[641]; - UndoChar_642 = undoChar[642]; - UndoChar_643 = undoChar[643]; - UndoChar_644 = undoChar[644]; - UndoChar_645 = undoChar[645]; - UndoChar_646 = undoChar[646]; - UndoChar_647 = undoChar[647]; - UndoChar_648 = undoChar[648]; - UndoChar_649 = undoChar[649]; - UndoChar_650 = undoChar[650]; - UndoChar_651 = undoChar[651]; - UndoChar_652 = undoChar[652]; - UndoChar_653 = undoChar[653]; - UndoChar_654 = undoChar[654]; - UndoChar_655 = undoChar[655]; - UndoChar_656 = undoChar[656]; - UndoChar_657 = undoChar[657]; - UndoChar_658 = undoChar[658]; - UndoChar_659 = undoChar[659]; - UndoChar_660 = undoChar[660]; - UndoChar_661 = undoChar[661]; - UndoChar_662 = undoChar[662]; - UndoChar_663 = undoChar[663]; - UndoChar_664 = undoChar[664]; - UndoChar_665 = undoChar[665]; - UndoChar_666 = undoChar[666]; - UndoChar_667 = undoChar[667]; - UndoChar_668 = undoChar[668]; - UndoChar_669 = undoChar[669]; - UndoChar_670 = undoChar[670]; - UndoChar_671 = undoChar[671]; - UndoChar_672 = undoChar[672]; - UndoChar_673 = undoChar[673]; - UndoChar_674 = undoChar[674]; - UndoChar_675 = undoChar[675]; - UndoChar_676 = undoChar[676]; - UndoChar_677 = undoChar[677]; - UndoChar_678 = undoChar[678]; - UndoChar_679 = undoChar[679]; - UndoChar_680 = undoChar[680]; - UndoChar_681 = undoChar[681]; - UndoChar_682 = undoChar[682]; - UndoChar_683 = undoChar[683]; - UndoChar_684 = undoChar[684]; - UndoChar_685 = undoChar[685]; - UndoChar_686 = undoChar[686]; - UndoChar_687 = undoChar[687]; - UndoChar_688 = undoChar[688]; - UndoChar_689 = undoChar[689]; - UndoChar_690 = undoChar[690]; - UndoChar_691 = undoChar[691]; - UndoChar_692 = undoChar[692]; - UndoChar_693 = undoChar[693]; - UndoChar_694 = undoChar[694]; - UndoChar_695 = undoChar[695]; - UndoChar_696 = undoChar[696]; - UndoChar_697 = undoChar[697]; - UndoChar_698 = undoChar[698]; - UndoChar_699 = undoChar[699]; - UndoChar_700 = undoChar[700]; - UndoChar_701 = undoChar[701]; - UndoChar_702 = undoChar[702]; - UndoChar_703 = undoChar[703]; - UndoChar_704 = undoChar[704]; - UndoChar_705 = undoChar[705]; - UndoChar_706 = undoChar[706]; - UndoChar_707 = undoChar[707]; - UndoChar_708 = undoChar[708]; - UndoChar_709 = undoChar[709]; - UndoChar_710 = undoChar[710]; - UndoChar_711 = undoChar[711]; - UndoChar_712 = undoChar[712]; - UndoChar_713 = undoChar[713]; - UndoChar_714 = undoChar[714]; - UndoChar_715 = undoChar[715]; - UndoChar_716 = undoChar[716]; - UndoChar_717 = undoChar[717]; - UndoChar_718 = undoChar[718]; - UndoChar_719 = undoChar[719]; - UndoChar_720 = undoChar[720]; - UndoChar_721 = undoChar[721]; - UndoChar_722 = undoChar[722]; - UndoChar_723 = undoChar[723]; - UndoChar_724 = undoChar[724]; - UndoChar_725 = undoChar[725]; - UndoChar_726 = undoChar[726]; - UndoChar_727 = undoChar[727]; - UndoChar_728 = undoChar[728]; - UndoChar_729 = undoChar[729]; - UndoChar_730 = undoChar[730]; - UndoChar_731 = undoChar[731]; - UndoChar_732 = undoChar[732]; - UndoChar_733 = undoChar[733]; - UndoChar_734 = undoChar[734]; - UndoChar_735 = undoChar[735]; - UndoChar_736 = undoChar[736]; - UndoChar_737 = undoChar[737]; - UndoChar_738 = undoChar[738]; - UndoChar_739 = undoChar[739]; - UndoChar_740 = undoChar[740]; - UndoChar_741 = undoChar[741]; - UndoChar_742 = undoChar[742]; - UndoChar_743 = undoChar[743]; - UndoChar_744 = undoChar[744]; - UndoChar_745 = undoChar[745]; - UndoChar_746 = undoChar[746]; - UndoChar_747 = undoChar[747]; - UndoChar_748 = undoChar[748]; - UndoChar_749 = undoChar[749]; - UndoChar_750 = undoChar[750]; - UndoChar_751 = undoChar[751]; - UndoChar_752 = undoChar[752]; - UndoChar_753 = undoChar[753]; - UndoChar_754 = undoChar[754]; - UndoChar_755 = undoChar[755]; - UndoChar_756 = undoChar[756]; - UndoChar_757 = undoChar[757]; - UndoChar_758 = undoChar[758]; - UndoChar_759 = undoChar[759]; - UndoChar_760 = undoChar[760]; - UndoChar_761 = undoChar[761]; - UndoChar_762 = undoChar[762]; - UndoChar_763 = undoChar[763]; - UndoChar_764 = undoChar[764]; - UndoChar_765 = undoChar[765]; - UndoChar_766 = undoChar[766]; - UndoChar_767 = undoChar[767]; - UndoChar_768 = undoChar[768]; - UndoChar_769 = undoChar[769]; - UndoChar_770 = undoChar[770]; - UndoChar_771 = undoChar[771]; - UndoChar_772 = undoChar[772]; - UndoChar_773 = undoChar[773]; - UndoChar_774 = undoChar[774]; - UndoChar_775 = undoChar[775]; - UndoChar_776 = undoChar[776]; - UndoChar_777 = undoChar[777]; - UndoChar_778 = undoChar[778]; - UndoChar_779 = undoChar[779]; - UndoChar_780 = undoChar[780]; - UndoChar_781 = undoChar[781]; - UndoChar_782 = undoChar[782]; - UndoChar_783 = undoChar[783]; - UndoChar_784 = undoChar[784]; - UndoChar_785 = undoChar[785]; - UndoChar_786 = undoChar[786]; - UndoChar_787 = undoChar[787]; - UndoChar_788 = undoChar[788]; - UndoChar_789 = undoChar[789]; - UndoChar_790 = undoChar[790]; - UndoChar_791 = undoChar[791]; - UndoChar_792 = undoChar[792]; - UndoChar_793 = undoChar[793]; - UndoChar_794 = undoChar[794]; - UndoChar_795 = undoChar[795]; - UndoChar_796 = undoChar[796]; - UndoChar_797 = undoChar[797]; - UndoChar_798 = undoChar[798]; - UndoChar_799 = undoChar[799]; - UndoChar_800 = undoChar[800]; - UndoChar_801 = undoChar[801]; - UndoChar_802 = undoChar[802]; - UndoChar_803 = undoChar[803]; - UndoChar_804 = undoChar[804]; - UndoChar_805 = undoChar[805]; - UndoChar_806 = undoChar[806]; - UndoChar_807 = undoChar[807]; - UndoChar_808 = undoChar[808]; - UndoChar_809 = undoChar[809]; - UndoChar_810 = undoChar[810]; - UndoChar_811 = undoChar[811]; - UndoChar_812 = undoChar[812]; - UndoChar_813 = undoChar[813]; - UndoChar_814 = undoChar[814]; - UndoChar_815 = undoChar[815]; - UndoChar_816 = undoChar[816]; - UndoChar_817 = undoChar[817]; - UndoChar_818 = undoChar[818]; - UndoChar_819 = undoChar[819]; - UndoChar_820 = undoChar[820]; - UndoChar_821 = undoChar[821]; - UndoChar_822 = undoChar[822]; - UndoChar_823 = undoChar[823]; - UndoChar_824 = undoChar[824]; - UndoChar_825 = undoChar[825]; - UndoChar_826 = undoChar[826]; - UndoChar_827 = undoChar[827]; - UndoChar_828 = undoChar[828]; - UndoChar_829 = undoChar[829]; - UndoChar_830 = undoChar[830]; - UndoChar_831 = undoChar[831]; - UndoChar_832 = undoChar[832]; - UndoChar_833 = undoChar[833]; - UndoChar_834 = undoChar[834]; - UndoChar_835 = undoChar[835]; - UndoChar_836 = undoChar[836]; - UndoChar_837 = undoChar[837]; - UndoChar_838 = undoChar[838]; - UndoChar_839 = undoChar[839]; - UndoChar_840 = undoChar[840]; - UndoChar_841 = undoChar[841]; - UndoChar_842 = undoChar[842]; - UndoChar_843 = undoChar[843]; - UndoChar_844 = undoChar[844]; - UndoChar_845 = undoChar[845]; - UndoChar_846 = undoChar[846]; - UndoChar_847 = undoChar[847]; - UndoChar_848 = undoChar[848]; - UndoChar_849 = undoChar[849]; - UndoChar_850 = undoChar[850]; - UndoChar_851 = undoChar[851]; - UndoChar_852 = undoChar[852]; - UndoChar_853 = undoChar[853]; - UndoChar_854 = undoChar[854]; - UndoChar_855 = undoChar[855]; - UndoChar_856 = undoChar[856]; - UndoChar_857 = undoChar[857]; - UndoChar_858 = undoChar[858]; - UndoChar_859 = undoChar[859]; - UndoChar_860 = undoChar[860]; - UndoChar_861 = undoChar[861]; - UndoChar_862 = undoChar[862]; - UndoChar_863 = undoChar[863]; - UndoChar_864 = undoChar[864]; - UndoChar_865 = undoChar[865]; - UndoChar_866 = undoChar[866]; - UndoChar_867 = undoChar[867]; - UndoChar_868 = undoChar[868]; - UndoChar_869 = undoChar[869]; - UndoChar_870 = undoChar[870]; - UndoChar_871 = undoChar[871]; - UndoChar_872 = undoChar[872]; - UndoChar_873 = undoChar[873]; - UndoChar_874 = undoChar[874]; - UndoChar_875 = undoChar[875]; - UndoChar_876 = undoChar[876]; - UndoChar_877 = undoChar[877]; - UndoChar_878 = undoChar[878]; - UndoChar_879 = undoChar[879]; - UndoChar_880 = undoChar[880]; - UndoChar_881 = undoChar[881]; - UndoChar_882 = undoChar[882]; - UndoChar_883 = undoChar[883]; - UndoChar_884 = undoChar[884]; - UndoChar_885 = undoChar[885]; - UndoChar_886 = undoChar[886]; - UndoChar_887 = undoChar[887]; - UndoChar_888 = undoChar[888]; - UndoChar_889 = undoChar[889]; - UndoChar_890 = undoChar[890]; - UndoChar_891 = undoChar[891]; - UndoChar_892 = undoChar[892]; - UndoChar_893 = undoChar[893]; - UndoChar_894 = undoChar[894]; - UndoChar_895 = undoChar[895]; - UndoChar_896 = undoChar[896]; - UndoChar_897 = undoChar[897]; - UndoChar_898 = undoChar[898]; - UndoChar_899 = undoChar[899]; - UndoChar_900 = undoChar[900]; - UndoChar_901 = undoChar[901]; - UndoChar_902 = undoChar[902]; - UndoChar_903 = undoChar[903]; - UndoChar_904 = undoChar[904]; - UndoChar_905 = undoChar[905]; - UndoChar_906 = undoChar[906]; - UndoChar_907 = undoChar[907]; - UndoChar_908 = undoChar[908]; - UndoChar_909 = undoChar[909]; - UndoChar_910 = undoChar[910]; - UndoChar_911 = undoChar[911]; - UndoChar_912 = undoChar[912]; - UndoChar_913 = undoChar[913]; - UndoChar_914 = undoChar[914]; - UndoChar_915 = undoChar[915]; - UndoChar_916 = undoChar[916]; - UndoChar_917 = undoChar[917]; - UndoChar_918 = undoChar[918]; - UndoChar_919 = undoChar[919]; - UndoChar_920 = undoChar[920]; - UndoChar_921 = undoChar[921]; - UndoChar_922 = undoChar[922]; - UndoChar_923 = undoChar[923]; - UndoChar_924 = undoChar[924]; - UndoChar_925 = undoChar[925]; - UndoChar_926 = undoChar[926]; - UndoChar_927 = undoChar[927]; - UndoChar_928 = undoChar[928]; - UndoChar_929 = undoChar[929]; - UndoChar_930 = undoChar[930]; - UndoChar_931 = undoChar[931]; - UndoChar_932 = undoChar[932]; - UndoChar_933 = undoChar[933]; - UndoChar_934 = undoChar[934]; - UndoChar_935 = undoChar[935]; - UndoChar_936 = undoChar[936]; - UndoChar_937 = undoChar[937]; - UndoChar_938 = undoChar[938]; - UndoChar_939 = undoChar[939]; - UndoChar_940 = undoChar[940]; - UndoChar_941 = undoChar[941]; - UndoChar_942 = undoChar[942]; - UndoChar_943 = undoChar[943]; - UndoChar_944 = undoChar[944]; - UndoChar_945 = undoChar[945]; - UndoChar_946 = undoChar[946]; - UndoChar_947 = undoChar[947]; - UndoChar_948 = undoChar[948]; - UndoChar_949 = undoChar[949]; - UndoChar_950 = undoChar[950]; - UndoChar_951 = undoChar[951]; - UndoChar_952 = undoChar[952]; - UndoChar_953 = undoChar[953]; - UndoChar_954 = undoChar[954]; - UndoChar_955 = undoChar[955]; - UndoChar_956 = undoChar[956]; - UndoChar_957 = undoChar[957]; - UndoChar_958 = undoChar[958]; - UndoChar_959 = undoChar[959]; - UndoChar_960 = undoChar[960]; - UndoChar_961 = undoChar[961]; - UndoChar_962 = undoChar[962]; - UndoChar_963 = undoChar[963]; - UndoChar_964 = undoChar[964]; - UndoChar_965 = undoChar[965]; - UndoChar_966 = undoChar[966]; - UndoChar_967 = undoChar[967]; - UndoChar_968 = undoChar[968]; - UndoChar_969 = undoChar[969]; - UndoChar_970 = undoChar[970]; - UndoChar_971 = undoChar[971]; - UndoChar_972 = undoChar[972]; - UndoChar_973 = undoChar[973]; - UndoChar_974 = undoChar[974]; - UndoChar_975 = undoChar[975]; - UndoChar_976 = undoChar[976]; - UndoChar_977 = undoChar[977]; - UndoChar_978 = undoChar[978]; - UndoChar_979 = undoChar[979]; - UndoChar_980 = undoChar[980]; - UndoChar_981 = undoChar[981]; - UndoChar_982 = undoChar[982]; - UndoChar_983 = undoChar[983]; - UndoChar_984 = undoChar[984]; - UndoChar_985 = undoChar[985]; - UndoChar_986 = undoChar[986]; - UndoChar_987 = undoChar[987]; - UndoChar_988 = undoChar[988]; - UndoChar_989 = undoChar[989]; - UndoChar_990 = undoChar[990]; - UndoChar_991 = undoChar[991]; - UndoChar_992 = undoChar[992]; - UndoChar_993 = undoChar[993]; - UndoChar_994 = undoChar[994]; - UndoChar_995 = undoChar[995]; - UndoChar_996 = undoChar[996]; - UndoChar_997 = undoChar[997]; - UndoChar_998 = undoChar[998]; - } - UndoPoint = undoPoint; - RedoPoint = redoPoint; - UndoCharPoint = undoCharPoint; - RedoCharPoint = redoCharPoint; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<StbUndoRecord> UndoRec - - { - get - { - fixed (StbUndoRecord* p = &this.UndoRec_0) - { - return new Span<StbUndoRecord>(p, 99); - } - } - } - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbttPackContext.cs b/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbttPackContext.cs deleted file mode 100644 index 2bd237867..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Generated/Structs/StbttPackContext.cs +++ /dev/null @@ -1,72 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct StbttPackContext - { - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct StbttPackContextPtr : IEquatable<StbttPackContextPtr> - { - public StbttPackContextPtr(StbttPackContext* handle) { Handle = handle; } - - public StbttPackContext* Handle; - - public bool IsNull => Handle == null; - - public static StbttPackContextPtr Null => new StbttPackContextPtr(null); - - public StbttPackContext this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator StbttPackContextPtr(StbttPackContext* handle) => new StbttPackContextPtr(handle); - - public static implicit operator StbttPackContext*(StbttPackContextPtr handle) => handle.Handle; - - public static bool operator ==(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle == right.Handle; - - public static bool operator !=(StbttPackContextPtr left, StbttPackContextPtr right) => left.Handle != right.Handle; - - public static bool operator ==(StbttPackContextPtr left, StbttPackContext* right) => left.Handle == right; - - public static bool operator !=(StbttPackContextPtr left, StbttPackContext* right) => left.Handle != right; - - public bool Equals(StbttPackContextPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is StbttPackContextPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("StbttPackContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - } - -} diff --git a/imgui/Dalamud.Bindings.ImGui/ImGui.cs b/imgui/Dalamud.Bindings.ImGui/ImGui.cs deleted file mode 100644 index 42e1c2174..000000000 --- a/imgui/Dalamud.Bindings.ImGui/ImGui.cs +++ /dev/null @@ -1,45 +0,0 @@ -#nullable disable - -using System.Reflection; - -namespace Dalamud.Bindings.ImGui -{ - using HexaGen.Runtime; - using System.Diagnostics; - - public static class ImGuiConfig - { - public static bool AotStaticLink; - } - - public static unsafe partial class ImGui - { - static ImGui() - { - if (ImGuiConfig.AotStaticLink) - { - InitApi(new NativeLibraryContext(Process.GetCurrentProcess().MainModule!.BaseAddress)); - } - - var linuxPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".so"); - var windowsPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".dll"); - - // This shouldn't affect wine as it'll be reported as Win32NT - if (System.Environment.OSVersion.Platform == PlatformID.Unix && File.Exists(linuxPath)) - { - InitApi(new NativeLibraryContext(linuxPath)); - } - else - { - InitApi(new NativeLibraryContext(windowsPath)); - } - } - - public static string GetLibraryName() - { - return "cimgui"; - } - - public const nint ImDrawCallbackResetRenderState = -8; - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/ImGuiP.cs b/imgui/Dalamud.Bindings.ImGui/ImGuiP.cs deleted file mode 100644 index 57a243397..000000000 --- a/imgui/Dalamud.Bindings.ImGui/ImGuiP.cs +++ /dev/null @@ -1,16 +0,0 @@ -#nullable disable - -namespace Dalamud.Bindings.ImGui -{ - using HexaGen.Runtime; - - public static unsafe partial class ImGuiP - { - internal static FunctionTable funcTable; - - static ImGuiP() - { - funcTable = ImGui.funcTable; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/ImTextureID.cs b/imgui/Dalamud.Bindings.ImGui/ImTextureID.cs deleted file mode 100644 index 7be18f2dc..000000000 --- a/imgui/Dalamud.Bindings.ImGui/ImTextureID.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public readonly unsafe partial struct ImTextureID : IEquatable<ImTextureID> - { - public ImTextureID(ulong handle) { Handle = handle; } - public ImTextureID(nint handle) { Handle = (ulong)handle; } - public ImTextureID(void* handle) { Handle = (ulong)handle; } - public ulong Handle { get; } - public bool IsNull => Handle == 0; - public static ImTextureID Null => default; - public static implicit operator ImTextureID(ulong handle) => new ImTextureID(handle); - public static bool operator ==(ImTextureID left, ImTextureID right) => left.Handle == right.Handle; - public static bool operator !=(ImTextureID left, ImTextureID right) => left.Handle != right.Handle; - public static bool operator ==(ImTextureID left, nint right) => left.Handle == (ulong)right; - public static bool operator !=(ImTextureID left, nint right) => left.Handle != (ulong)right; - public static bool operator ==(ImTextureID left, ulong right) => left.Handle == right; - public static bool operator !=(ImTextureID left, ulong right) => left.Handle != right; - public bool Equals(ImTextureID other) => Handle == other.Handle; - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImTextureID handle && Equals(handle); - /// <inheritdoc/> - public override int GetHashCode() => Handle.GetHashCode(); - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImTextureID [0x{0}]", Handle.ToString("X")); - #endif - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/ImU8String.cs b/imgui/Dalamud.Bindings.ImGui/ImU8String.cs deleted file mode 100644 index f2b635764..000000000 --- a/imgui/Dalamud.Bindings.ImGui/ImU8String.cs +++ /dev/null @@ -1,418 +0,0 @@ -using System.Buffers; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Text; -using System.Text.Unicode; - -namespace Dalamud.Bindings.ImGui; - -[InterpolatedStringHandler] -public ref struct ImU8String -{ - public const int AllocFreeBufferSize = 512; - private const int MinimumRentSize = AllocFreeBufferSize * 2; - - private IFormatProvider? formatProvider; - private byte[]? rentedBuffer; - private ref readonly byte externalFirstByte; - private State state; - private FixedBufferContainer fixedBuffer; - - [Flags] - private enum State : byte - { - None = 0, - Initialized = 1 << 0, - NullTerminated = 1 << 1, - Interpolation = 1 << 2, - } - - public ImU8String() - { - Unsafe.SkipInit(out this.fixedBuffer); - this.FixedBufferByteRef = 0; - } - - public ImU8String(int literalLength, int formattedCount) - : this(""u8) - { - this.state |= State.Interpolation; - literalLength += formattedCount * 4; - this.Reserve(literalLength); - } - - public ImU8String(int literalLength, int formattedCount, IFormatProvider? formatProvider) - : this(literalLength, formattedCount) - { - this.formatProvider = formatProvider; - } - - public ImU8String(ReadOnlySpan<byte> text, bool ensureNullTermination = false) - : this() - { - if (Unsafe.IsNullRef(in MemoryMarshal.GetReference(text))) - { - this.state = State.None; - return; - } - - this.state = State.Initialized; - if (text.IsEmpty) - { - this.state |= State.NullTerminated; - } - else if (ensureNullTermination) - { - this.Reserve(text.Length + 1); - var buffer = this.Buffer; - text.CopyTo(buffer); - buffer[^1] = 0; - this.Length = text.Length; - this.state |= State.NullTerminated; - } - else - { - this.externalFirstByte = ref text[0]; - this.Length = text.Length; - if (Unsafe.Add(ref Unsafe.AsRef(in this.externalFirstByte), this.Length) == 0) - this.state |= State.NullTerminated; - } - } - - public ImU8String(ReadOnlyMemory<byte> text, bool ensureNullTermination = false) - : this(text.Span, ensureNullTermination) - { - } - - public ImU8String(ReadOnlySpan<char> text) - : this() - { - if (Unsafe.IsNullRef(in MemoryMarshal.GetReference(text))) - { - this.state = State.None; - return; - } - - this.state = State.Initialized | State.NullTerminated; - this.Length = Encoding.UTF8.GetByteCount(text); - if (this.Length + 1 < AllocFreeBufferSize) - { - var newSpan = this.FixedBufferSpan[..this.Length]; - Encoding.UTF8.GetBytes(text, newSpan); - this.FixedBufferSpan[this.Length] = 0; - } - else - { - this.rentedBuffer = ArrayPool<byte>.Shared.Rent(this.Length + 1); - var newSpan = this.rentedBuffer.AsSpan(0, this.Length); - Encoding.UTF8.GetBytes(text, newSpan); - this.rentedBuffer[this.Length] = 0; - } - } - - public ImU8String(ReadOnlyMemory<char> text) - : this(text.Span) - { - } - - public ImU8String(string? text) - : this(text.AsSpan()) - { - } - - public unsafe ImU8String(byte* text) - : this(MemoryMarshal.CreateReadOnlySpanFromNullTerminated(text)) - { - this.state |= State.NullTerminated; - } - - public unsafe ImU8String(char* text) - : this(MemoryMarshal.CreateReadOnlySpanFromNullTerminated(text)) - { - } - - public static ImU8String Empty => default; - - public readonly ReadOnlySpan<byte> Span => - !Unsafe.IsNullRef(in this.externalFirstByte) - ? MemoryMarshal.CreateReadOnlySpan(in this.externalFirstByte, this.Length) - : this.rentedBuffer is { } rented - ? rented.AsSpan(0, this.Length) - : Unsafe.AsRef(in this).FixedBufferSpan[..this.Length]; - - public int Length { get; private set; } - - public readonly bool IsNull => (this.state & State.Initialized) == 0; - - public readonly bool IsEmpty => this.Length == 0; - - internal Span<byte> Buffer - { - get - { - if (Unsafe.IsNullRef(in this.externalFirstByte)) - this.ConvertToOwned(); - - return this.rentedBuffer is { } buf - ? buf.AsSpan() - : MemoryMarshal.Cast<FixedBufferContainer, byte>(new Span<FixedBufferContainer>(ref Unsafe.AsRef(ref this.fixedBuffer))); - } - } - - private Span<byte> RemainingBuffer => this.Buffer[this.Length..]; - - private ref byte FixedBufferByteRef => ref this.FixedBufferSpan[0]; - - private Span<byte> FixedBufferSpan => - MemoryMarshal.Cast<FixedBufferContainer, byte>(new Span<FixedBufferContainer>(ref Unsafe.AsRef(ref this.fixedBuffer))); - - public static implicit operator ImU8String(ReadOnlySpan<byte> text) => new(text); - public static implicit operator ImU8String(ReadOnlyMemory<byte> text) => new(text); - public static implicit operator ImU8String(Span<byte> text) => new(text); - public static implicit operator ImU8String(Memory<byte> text) => new(text); - public static implicit operator ImU8String(byte[]? text) => new(text.AsSpan()); - public static implicit operator ImU8String(ReadOnlySpan<char> text) => new(text); - public static implicit operator ImU8String(ReadOnlyMemory<char> text) => new(text); - public static implicit operator ImU8String(Span<char> text) => new(text); - public static implicit operator ImU8String(Memory<char> text) => new(text); - public static implicit operator ImU8String(char[]? text) => new(text.AsSpan()); - public static implicit operator ImU8String(string? text) => new(text); - public static unsafe implicit operator ImU8String(byte* text) => new(text); - public static unsafe implicit operator ImU8String(char* text) => new(text); - - public ref readonly byte GetPinnableReference() - { - if (this.IsNull) - return ref Unsafe.NullRef<byte>(); - - if (this.IsEmpty) - return ref this.FixedBufferSpan[0]; - - return ref this.Span.GetPinnableReference(); - } - - public ref readonly byte GetPinnableReference(ReadOnlySpan<byte> defaultValue) - { - if (this.IsNull) - return ref defaultValue.GetPinnableReference(); - - if (this.IsEmpty) - return ref this.FixedBufferSpan[0]; - - return ref this.Span.GetPinnableReference(); - } - - public ref readonly byte GetPinnableNullTerminatedReference(ReadOnlySpan<byte> defaultValue = default) - { - if (this.IsNull) - return ref defaultValue.GetPinnableReference(); - - if (this.IsEmpty) - { - ref var t = ref this.FixedBufferSpan[0]; - t = 0; - return ref t; - } - - if ((this.state & State.NullTerminated) == 0) - this.ConvertToOwned(); - - return ref this.Span[0]; - } - - private void ConvertToOwned() - { - if (Unsafe.IsNullRef(in this.externalFirstByte)) - return; - - Debug.Assert(this.rentedBuffer is null); - - if (this.Length + 1 < AllocFreeBufferSize) - { - var fixedBufferSpan = this.FixedBufferSpan; - this.Span.CopyTo(fixedBufferSpan); - fixedBufferSpan[this.Length] = 0; - } - else - { - var newBuffer = ArrayPool<byte>.Shared.Rent(this.Length + 1); - this.Span.CopyTo(newBuffer); - - newBuffer[this.Length] = 0; - this.rentedBuffer = newBuffer; - } - - this.state |= State.NullTerminated; - this.externalFirstByte = ref Unsafe.NullRef<byte>(); - } - - public void Recycle() - { - if (this.rentedBuffer is { } buf) - { - this.rentedBuffer = null; - ArrayPool<byte>.Shared.Return(buf); - } - } - - public ImU8String MoveOrDefault(ImU8String other) - { - if (!this.IsNull) - { - other.Recycle(); - var res = this; - this = default; - return res; - } - - return other; - } - - public override readonly string ToString() => Encoding.UTF8.GetString(this.Span); - - public void AppendLiteral(string value) - { - if (string.IsNullOrEmpty(value)) - return; - - var remaining = this.RemainingBuffer; - var len = Encoding.UTF8.GetByteCount(value); - if (remaining.Length <= len) - this.IncreaseBuffer(out remaining, this.Length + len + 1); - this.Buffer[this.Length += Encoding.UTF8.GetBytes(value.AsSpan(), remaining)] = 0; - } - - public void AppendFormatted(ReadOnlySpan<byte> value) => this.AppendFormatted(value, null); - - public void AppendFormatted(ReadOnlySpan<byte> value, string? format) - { - var remaining = this.RemainingBuffer; - if (remaining.Length < value.Length + 1) - this.IncreaseBuffer(out remaining, this.Length + value.Length + 1); - value.CopyTo(remaining); - this.Buffer[this.Length += value.Length] = 0; - } - - public void AppendFormatted(ReadOnlySpan<byte> value, int alignment) => - this.AppendFormatted(value, alignment, null); - - public void AppendFormatted(ReadOnlySpan<byte> value, int alignment, string? format) - { - var startingPos = this.Length; - this.AppendFormatted(value, format); - this.FixAlignment(startingPos, alignment); - } - - public void AppendFormatted(ReadOnlySpan<char> value) => this.AppendFormatted(value, null); - - public void AppendFormatted(ReadOnlySpan<char> value, string? format) - { - var remaining = this.RemainingBuffer; - var len = Encoding.UTF8.GetByteCount(value); - if (remaining.Length < len + 1) - this.IncreaseBuffer(out remaining, this.Length + len + 1); - this.Buffer[this.Length += Encoding.UTF8.GetBytes(value, remaining)] = 0; - } - - public void AppendFormatted(ReadOnlySpan<char> value, int alignment) => - this.AppendFormatted(value, alignment, null); - - public void AppendFormatted(ReadOnlySpan<char> value, int alignment, string? format) - { - var startingPos = this.Length; - this.AppendFormatted(value, format); - this.FixAlignment(startingPos, alignment); - } - - public void AppendFormatted(object? value) => this.AppendFormatted<object>(value!); - public void AppendFormatted(object? value, string? format) => this.AppendFormatted<object>(value!, format); - public void AppendFormatted(object? value, int alignment) => this.AppendFormatted<object>(value!, alignment); - public void AppendFormatted(object? value, int alignment, string? format) => - this.AppendFormatted<object>(value!, alignment, format); - - public void AppendFormatted<T>(T value) => this.AppendFormatted(value, null); - - public void AppendFormatted<T>(T value, string? format) - { - var remaining = this.RemainingBuffer; - if (remaining.Length < 1) - this.IncreaseBuffer(out remaining); - - int written; - while (true) - { - var handler = new Utf8.TryWriteInterpolatedStringHandler(1, 1, remaining[..^1], this.formatProvider, out _); - handler.AppendFormatted(value, format); - if (Utf8.TryWrite(remaining, this.formatProvider, ref handler, out written)) - break; - this.IncreaseBuffer(out remaining); - } - - this.Buffer[this.Length += written] = 0; - } - - public void AppendFormatted<T>(T value, int alignment) => this.AppendFormatted(value, alignment, null); - - public void AppendFormatted<T>(T value, int alignment, string? format) - { - var startingPos = this.Length; - this.AppendFormatted(value, format); - this.FixAlignment(startingPos, alignment); - } - - public void Reserve(int length) - { - if (length >= AllocFreeBufferSize) - this.IncreaseBuffer(out _, length); - } - - private void FixAlignment(int startingPos, int alignment) - { - var appendedLength = this.Length - startingPos; - - var leftAlign = alignment < 0; - if (leftAlign) - alignment = -alignment; - - var fillLength = alignment - appendedLength; - if (fillLength <= 0) - return; - - var destination = this.Buffer; - if (fillLength > destination.Length - this.Length) - { - this.IncreaseBuffer(out _, fillLength + 1); - destination = this.Buffer; - } - - if (leftAlign) - { - destination.Slice(this.Length, fillLength).Fill((byte)' '); - } - else - { - destination.Slice(startingPos, appendedLength).CopyTo(destination[(startingPos + fillLength)..]); - destination.Slice(startingPos, fillLength).Fill((byte)' '); - } - - this.Buffer[this.Length += fillLength] = 0; - } - - private void IncreaseBuffer(out Span<byte> remaining, int minCapacity = 0) - { - minCapacity = Math.Max(minCapacity, Math.Max(this.Buffer.Length * 2, MinimumRentSize)); - var newBuffer = ArrayPool<byte>.Shared.Rent(minCapacity); - this.Span.CopyTo(newBuffer); - newBuffer[this.Length] = 0; - if (this.rentedBuffer is not null) - ArrayPool<byte>.Shared.Return(this.rentedBuffer); - - this.rentedBuffer = newBuffer; - this.externalFirstByte = ref Unsafe.NullRef<byte>(); - remaining = newBuffer.AsSpan(this.Length); - } - - [StructLayout(LayoutKind.Sequential, Size = AllocFreeBufferSize)] - private struct FixedBufferContainer; -} diff --git a/imgui/Dalamud.Bindings.ImGui/ImVector.cs b/imgui/Dalamud.Bindings.ImGui/ImVector.cs deleted file mode 100644 index 67e450193..000000000 --- a/imgui/Dalamud.Bindings.ImGui/ImVector.cs +++ /dev/null @@ -1,324 +0,0 @@ -using System.Collections; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace Dalamud.Bindings.ImGui; - -/// <summary> -/// A structure representing a dynamic array for unmanaged types. -/// </summary> -public unsafe struct ImVector -{ - public readonly int Size; - public readonly int Capacity; - public readonly void* Data; - - public ImVector(int size, int capacity, void* data) - { - Size = size; - Capacity = capacity; - Data = data; - } - - public readonly ref T Ref<T>(int index) => ref Unsafe.AsRef<T>((byte*)this.Data + (index * Unsafe.SizeOf<T>())); - - public readonly nint Address<T>(int index) => (nint)((byte*)this.Data + (index * Unsafe.SizeOf<T>())); -} - -/// <summary> -/// A structure representing a dynamic array for unmanaged types. -/// </summary> -/// <typeparam name="T">The type of elements in the vector, must be unmanaged.</typeparam> -[StructLayout(LayoutKind.Sequential)] -public unsafe struct ImVector<T> : IEnumerable<T> - where T : unmanaged -{ - private int size; - private int capacity; - private T* data; - - /// <summary> - /// Initializes a new instance of the <see cref="ImVector{T}"/> struct with the specified size, capacity, and data pointer. - /// </summary> - /// <param name="size">The initial size of the vector.</param> - /// <param name="capacity">The initial capacity of the vector.</param> - /// <param name="data">Pointer to the initial data.</param> - public ImVector(int size, int capacity, T* data) - { - this.size = size; - this.capacity = capacity; - this.data = data; - } - - /// <summary> - /// Gets or sets the element at the specified index. - /// </summary> - /// <param name="index">The zero-based index of the element to get or set.</param> - /// <returns>The element at the specified index.</returns> - /// <exception cref="IndexOutOfRangeException">Thrown when the index is out of range.</exception> - public T this[int index] - { - readonly get - { - if (index < 0 || index >= this.size) - throw new IndexOutOfRangeException(); - return this.data[index]; - } - set - { - if (index < 0 || index >= this.size) - throw new IndexOutOfRangeException(); - this.data[index] = value; - } - } - - /// <summary> - /// Gets a pointer to the first element of the vector. - /// </summary> - public readonly T* Data => this.data; - - /// <summary> - /// Gets a pointer to the first element of the vector. - /// </summary> - public readonly T* Front => this.data; - - /// <summary> - /// Gets a pointer to the last element of the vector. - /// </summary> - public readonly T* Back => this.size > 0 ? this.data + this.size - 1 : null; - - /// <summary> - /// Gets or sets the capacity of the vector. - /// </summary> - public int Capacity - { - readonly get => this.capacity; - set - { - ArgumentOutOfRangeException.ThrowIfLessThan(value, this.size, nameof(Capacity)); - if (this.capacity == value) - return; - - if (this.data == null) - { - this.data = (T*)ImGui.MemAlloc((nuint)(value * sizeof(T))); - } - else - { - var newSize = Math.Min(this.size, value); - var newData = (T*)ImGui.MemAlloc((nuint)(value * sizeof(T))); - Buffer.MemoryCopy(this.data, newData, (nuint)(value * sizeof(T)), (nuint)(newSize * sizeof(T))); - ImGui.MemFree(this.data); - this.data = newData; - this.size = newSize; - } - - this.capacity = value; - - // Clear the rest of the data - new Span<T>(this.data + this.size, this.capacity - this.size).Clear(); - } - } - - /// <summary> - /// Gets the number of elements in the vector. - /// </summary> - public readonly int Size => this.size; - - /// <summary> - /// Grows the capacity of the vector to at least the specified value. - /// </summary> - /// <param name="newCapacity">The new capacity.</param> - public void Grow(int newCapacity) - { - var newCapacity2 = this.capacity > 0 ? this.capacity + (this.capacity / 2) : 8; - this.Capacity = newCapacity2 > newCapacity ? newCapacity2 : newCapacity; - } - - /// <summary> - /// Ensures that the vector has at least the specified capacity. - /// </summary> - /// <param name="size">The minimum capacity required.</param> - public void EnsureCapacity(int size) - { - if (size > this.capacity) - Grow(size); - } - - /// <summary> - /// Resizes the vector to the specified size. - /// </summary> - /// <param name="newSize">The new size of the vector.</param> - public void Resize(int newSize) - { - EnsureCapacity(newSize); - this.size = newSize; - } - - /// <summary> - /// Clears all elements from the vector. - /// </summary> - public void Clear() => this.size = 0; - - /// <summary> - /// Adds an element to the end of the vector. - /// </summary> - /// <param name="value">The value to add.</param> - [OverloadResolutionPriority(1)] - public void PushBack(T value) - { - this.EnsureCapacity(this.size + 1); - this.data[this.size++] = value; - } - - /// <summary> - /// Adds an element to the end of the vector. - /// </summary> - /// <param name="value">The value to add.</param> - [OverloadResolutionPriority(2)] - public void PushBack(in T value) - { - EnsureCapacity(this.size + 1); - this.data[this.size++] = value; - } - - /// <summary> - /// Adds an element to the front of the vector. - /// </summary> - /// <param name="value">The value to add.</param> - public void PushFront(in T value) - { - if (this.size == 0) - this.PushBack(value); - else - this.Insert(0, value); - } - - /// <summary> - /// Removes the last element from the vector. - /// </summary> - public void PopBack() - { - if (this.size > 0) - { - this.size--; - } - } - - public ref T Insert(int index, in T v) { - ArgumentOutOfRangeException.ThrowIfNegative(index, nameof(index)); - ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, this.size, nameof(index)); - this.EnsureCapacity(this.size + 1); - if (index < this.size) - { - Buffer.MemoryCopy( - this.data + index, - this.data + index + 1, - (this.size - index) * sizeof(T), - (this.size - index) * sizeof(T)); - } - - this.data[index] = v; - this.size++; - return ref this.data[index]; - } - - public Span<T> InsertRange(int index, ReadOnlySpan<T> v) - { - ArgumentOutOfRangeException.ThrowIfNegative(index, nameof(index)); - ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, this.size, nameof(index)); - this.EnsureCapacity(this.size + v.Length); - if (index < this.size) - { - Buffer.MemoryCopy( - this.data + index, - this.data + index + v.Length, - (this.size - index) * sizeof(T), - (this.size - index) * sizeof(T)); - } - - var dstSpan = new Span<T>(this.data + index, v.Length); - v.CopyTo(new(this.data + index, v.Length)); - this.size += v.Length; - return dstSpan; - } - - /// <summary> - /// Frees the memory allocated for the vector. - /// </summary> - public void Free() - { - if (this.data != null) - { - ImGui.MemFree(this.data); - this.data = null; - this.size = 0; - this.capacity = 0; - } - } - - public readonly ref T Ref(int index) - { - return ref Unsafe.AsRef<T>((byte*)Data + (index * Unsafe.SizeOf<T>())); - } - - public readonly ref TCast Ref<TCast>(int index) - { - return ref Unsafe.AsRef<TCast>((byte*)Data + (index * Unsafe.SizeOf<TCast>())); - } - - public readonly void* Address(int index) - { - return (byte*)Data + (index * Unsafe.SizeOf<T>()); - } - - public readonly void* Address<TCast>(int index) - { - return (byte*)Data + (index * Unsafe.SizeOf<TCast>()); - } - - public readonly ImVector* ToUntyped() - { - return (ImVector*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - } - - public readonly Span<T> AsSpan() => new(this.data, this.size); - - public readonly Enumerator GetEnumerator() => new(this.data, this.data + this.size); - - readonly IEnumerator<T> IEnumerable<T>.GetEnumerator() => this.GetEnumerator(); - - readonly IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator(); - - public struct Enumerator(T* begin, T* end) : IEnumerator<T>, IEnumerable<T> - { - private T* current = null; - - public readonly ref T Current => ref *this.current; - - readonly T IEnumerator<T>.Current => this.Current; - - readonly object IEnumerator.Current => this.Current; - - public bool MoveNext() - { - var next = this.current == null ? begin : this.current + 1; - if (next == end) - return false; - this.current = next; - return true; - } - - public void Reset() => this.current = null; - - public readonly Enumerator GetEnumerator() => new(begin, end); - - readonly void IDisposable.Dispose() - { - } - - readonly IEnumerator<T> IEnumerable<T>.GetEnumerator() => this.GetEnumerator(); - - readonly IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator(); - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs deleted file mode 100644 index 46d424749..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.000.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImHashDataNative(void* data, nuint dataSize, uint seed) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, nuint, uint, uint>)funcTable[688])(data, dataSize, seed); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nuint, uint, uint>)funcTable[688])((nint)data, dataSize, seed); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashData(void* data, nuint dataSize, uint seed) - { - uint ret = ImHashDataNative(data, dataSize, seed); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashData(void* data, nuint dataSize) - { - uint ret = ImHashDataNative(data, dataSize, (uint)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImHashStrNative(byte* data, nuint dataSize, uint seed) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, nuint, uint, uint>)funcTable[689])(data, dataSize, seed); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nuint, uint, uint>)funcTable[689])((nint)data, dataSize, seed); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(byte* data, nuint dataSize, uint seed) - { - uint ret = ImHashStrNative(data, dataSize, seed); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(byte* data, nuint dataSize) - { - uint ret = ImHashStrNative(data, dataSize, (uint)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(byte* data) - { - uint ret = ImHashStrNative(data, (nuint)(0), (uint)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(byte* data, uint seed) - { - uint ret = ImHashStrNative(data, (nuint)(0), seed); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ref byte data, nuint dataSize, uint seed) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ref byte data, nuint dataSize) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, (uint)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ref byte data) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), (uint)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ref byte data, uint seed) - { - fixed (byte* pdata = &data) - { - uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ReadOnlySpan<byte> data, nuint dataSize, uint seed) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ReadOnlySpan<byte> data, nuint dataSize) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, dataSize, (uint)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ReadOnlySpan<byte> data) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), (uint)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(ReadOnlySpan<byte> data, uint seed) - { - fixed (byte* pdata = data) - { - uint ret = ImHashStrNative((byte*)pdata, (nuint)(0), seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(string data, nuint dataSize, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, dataSize, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(string data, nuint dataSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, dataSize, (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(string data) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, (nuint)(0), (uint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImHashStr(string data, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (data != null) - { - pStrSize0 = Utils.GetByteCountUTF8(data); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImHashStrNative(pStr0, (nuint)(0), seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImQsortNative(void* baseValue, nuint count, nuint sizeOfElement, delegate*<void*, nuint, nuint, delegate*<void*, void*, int>, int> compareFunc) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void*, nuint, nuint, delegate*<void*, nuint, nuint, delegate*<void*, void*, int>, int>, void>)funcTable[690])(baseValue, count, sizeOfElement, compareFunc); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, nuint, nint, void>)funcTable[690])((nint)baseValue, count, sizeOfElement, (nint)compareFunc); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*<void*, nuint, nuint, delegate*<void*, void*, int>, int> compareFunc) - { - ImQsortNative(baseValue, count, sizeOfElement, compareFunc); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImAlphaBlendColorsNative(uint colA, uint colB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint, uint>)funcTable[691])(colA, colB); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, uint, uint>)funcTable[691])(colA, colB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImAlphaBlendColors(uint colA, uint colB) - { - uint ret = ImAlphaBlendColorsNative(colA, colB); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImIsPowerOfTwoNative(int v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, byte>)funcTable[692])(v); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, byte>)funcTable[692])(v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImIsPowerOfTwo(int v) - { - byte ret = ImIsPowerOfTwoNative(v); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImIsPowerOfTwoNative(ulong v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong, byte>)funcTable[693])(v); - #else - return (byte)((delegate* unmanaged[Cdecl]<ulong, byte>)funcTable[693])(v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImIsPowerOfTwo(ulong v) - { - byte ret = ImIsPowerOfTwoNative(v); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImUpperPowerOfTwoNative(int v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int>)funcTable[694])(v); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int>)funcTable[694])(v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImUpperPowerOfTwo(int v) - { - int ret = ImUpperPowerOfTwoNative(v); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImStricmpNative(byte* str1, byte* str2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, int>)funcTable[695])(str1, str2); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, int>)funcTable[695])((nint)str1, (nint)str2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(byte* str1, byte* str2) - { - int ret = ImStricmpNative(str1, str2); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ref byte str1, byte* str2) - { - fixed (byte* pstr1 = &str1) - { - int ret = ImStricmpNative((byte*)pstr1, str2); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ReadOnlySpan<byte> str1, byte* str2) - { - fixed (byte* pstr1 = str1) - { - int ret = ImStricmpNative((byte*)pstr1, str2); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(string str1, byte* str2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStricmpNative(pStr0, str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(byte* str1, ref byte str2) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStricmpNative(str1, (byte*)pstr2); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(byte* str1, ReadOnlySpan<byte> str2) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStricmpNative(str1, (byte*)pstr2); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(byte* str1, string str2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStricmpNative(str1, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ref byte str1, ref byte str2) - { - fixed (byte* pstr1 = &str1) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ReadOnlySpan<byte> str1, ReadOnlySpan<byte> str2) - { - fixed (byte* pstr1 = str1) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(string str1, string str2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str2 != null) - { - pStrSize1 = Utils.GetByteCountUTF8(str2); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(str2, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImStricmpNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ref byte str1, ReadOnlySpan<byte> str2) - { - fixed (byte* pstr1 = &str1) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ref byte str1, string str2) - { - fixed (byte* pstr1 = &str1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStricmpNative((byte*)pstr1, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ReadOnlySpan<byte> str1, ref byte str2) - { - fixed (byte* pstr1 = str1) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(ReadOnlySpan<byte> str1, string str2) - { - fixed (byte* pstr1 = str1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStricmpNative((byte*)pstr1, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(string str1, ref byte str2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr2 = &str2) - { - int ret = ImStricmpNative(pStr0, (byte*)pstr2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStricmp(string str1, ReadOnlySpan<byte> str2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr2 = str2) - { - int ret = ImStricmpNative(pStr0, (byte*)pstr2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImStrnicmpNative(byte* str1, byte* str2, nuint count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, int>)funcTable[696])(str1, str2, count); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, nuint, int>)funcTable[696])((nint)str1, (nint)str2, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(byte* str1, byte* str2, nuint count) - { - int ret = ImStrnicmpNative(str1, str2, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ref byte str1, byte* str2, nuint count) - { - fixed (byte* pstr1 = &str1) - { - int ret = ImStrnicmpNative((byte*)pstr1, str2, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ReadOnlySpan<byte> str1, byte* str2, nuint count) - { - fixed (byte* pstr1 = str1) - { - int ret = ImStrnicmpNative((byte*)pstr1, str2, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(string str1, byte* str2, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative(pStr0, str2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(byte* str1, ref byte str2, nuint count) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(byte* str1, ReadOnlySpan<byte> str2, nuint count) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(byte* str1, string str2, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative(str1, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ref byte str1, ref byte str2, nuint count) - { - fixed (byte* pstr1 = &str1) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ReadOnlySpan<byte> str1, ReadOnlySpan<byte> str2, nuint count) - { - fixed (byte* pstr1 = str1) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(string str1, string str2, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str2 != null) - { - pStrSize1 = Utils.GetByteCountUTF8(str2); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(str2, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImStrnicmpNative(pStr0, pStr1, count); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ref byte str1, ReadOnlySpan<byte> str2, nuint count) - { - fixed (byte* pstr1 = &str1) - { - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ref byte str1, string str2, nuint count) - { - fixed (byte* pstr1 = &str1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative((byte*)pstr1, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ReadOnlySpan<byte> str1, ref byte str2, nuint count) - { - fixed (byte* pstr1 = str1) - { - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(ReadOnlySpan<byte> str1, string str2, nuint count) - { - fixed (byte* pstr1 = str1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str2 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImStrnicmpNative((byte*)pstr1, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(string str1, ref byte str2, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr2 = &str2) - { - int ret = ImStrnicmpNative(pStr0, (byte*)pstr2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrnicmp(string str1, ReadOnlySpan<byte> str2, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str1 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str1); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr2 = str2) - { - int ret = ImStrnicmpNative(pStr0, (byte*)pstr2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImStrncpyNative(byte* dst, byte* src, nuint count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, void>)funcTable[697])(dst, src, count); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nuint, void>)funcTable[697])((nint)dst, (nint)src, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(byte* dst, byte* src, nuint count) - { - ImStrncpyNative(dst, src, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref byte dst, byte* src, nuint count) - { - fixed (byte* pdst = &dst) - { - ImStrncpyNative((byte*)pdst, src, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref string dst, byte* src, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImStrncpyNative(pStr0, src, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(byte* dst, ref byte src, nuint count) - { - fixed (byte* psrc = &src) - { - ImStrncpyNative(dst, (byte*)psrc, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(byte* dst, ReadOnlySpan<byte> src, nuint count) - { - fixed (byte* psrc = src) - { - ImStrncpyNative(dst, (byte*)psrc, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(byte* dst, string src, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (src != null) - { - pStrSize0 = Utils.GetByteCountUTF8(src); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImStrncpyNative(dst, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref byte dst, ref byte src, nuint count) - { - fixed (byte* pdst = &dst) - { - fixed (byte* psrc = &src) - { - ImStrncpyNative((byte*)pdst, (byte*)psrc, count); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref byte dst, ReadOnlySpan<byte> src, nuint count) - { - fixed (byte* pdst = &dst) - { - fixed (byte* psrc = src) - { - ImStrncpyNative((byte*)pdst, (byte*)psrc, count); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref string dst, string src, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (src != null) - { - pStrSize1 = Utils.GetByteCountUTF8(src); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(src, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImStrncpyNative(pStr0, pStr1, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref byte dst, string src, nuint count) - { - fixed (byte* pdst = &dst) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (src != null) - { - pStrSize0 = Utils.GetByteCountUTF8(src); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImStrncpyNative((byte*)pdst, pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref string dst, ref byte src, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* psrc = &src) - { - ImStrncpyNative(pStr0, (byte*)psrc, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrncpy(ref string dst, ReadOnlySpan<byte> src, nuint count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* psrc = src) - { - ImStrncpyNative(pStr0, (byte*)psrc, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStrdupNative(byte* str) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)funcTable[698])(str); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[698])((nint)str); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdup(byte* str) - { - byte* ret = ImStrdupNative(str); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupS(byte* str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupNative(str)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdup(ref byte str) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStrdupNative((byte*)pstr); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupS(ref byte str) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupNative((byte*)pstr)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdup(ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - byte* ret = ImStrdupNative((byte*)pstr); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupS(ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupNative((byte*)pstr)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdup(string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrdupNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupS(string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupNative(pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStrdupcpyNative(byte* dst, nuint* pDstSize, byte* str) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, nuint*, byte*, byte*>)funcTable[699])(dst, pDstSize, str); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nint, nint>)funcTable[699])((nint)dst, (nint)pDstSize, (nint)str); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str) - { - byte* ret = ImStrdupcpyNative(dst, pDstSize, str); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, byte* str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, str)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, byte* str) - { - fixed (byte* pdst = &dst) - { - byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, str); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, byte* str) - { - fixed (byte* pdst = &dst) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, str)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, byte* str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrdupcpyNative(pStr0, pDstSize, str); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, byte* str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, str)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ref byte str) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStrdupcpyNative(dst, pDstSize, (byte*)pstr); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ref byte str) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, (byte*)pstr)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - byte* ret = ImStrdupcpyNative(dst, pDstSize, (byte*)pstr); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, (byte*)pstr)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrdupcpyNative(dst, pDstSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ref byte str) - { - fixed (byte* pdst = &dst) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ref byte str) - { - fixed (byte* pdst = &dst) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ReadOnlySpan<byte> str) - { - fixed (byte* pdst = &dst) - { - fixed (byte* pstr = str) - { - byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ReadOnlySpan<byte> str) - { - fixed (byte* pdst = &dst) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) - { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStrdupcpyNative(pStr0, pDstSize, pStr1); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) - { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, pStr1)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, string str) - { - fixed (byte* pdst = &dst) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, string str) - { - fixed (byte* pdst = &dst) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, ref byte str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr = &str) - { - byte* ret = ImStrdupcpyNative(pStr0, pDstSize, (byte*)pstr); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, ref byte str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, (byte*)pstr)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, ReadOnlySpan<byte> str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr = str) - { - byte* ret = ImStrdupcpyNative(pStr0, pDstSize, (byte*)pstr); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, ReadOnlySpan<byte> str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, (byte*)pstr)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStrchrRangeNative(byte* strBegin, byte* strEnd, byte c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte, byte*>)funcTable[700])(strBegin, strEnd, c); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, byte, nint>)funcTable[700])((nint)strBegin, (nint)strEnd, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(byte* strBegin, byte* strEnd, byte c) - { - byte* ret = ImStrchrRangeNative(strBegin, strEnd, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(byte* strBegin, byte* strEnd, byte c) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, strEnd, c)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ref byte strBegin, byte* strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, strEnd, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ref byte strBegin, byte* strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, strEnd, c)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ReadOnlySpan<byte> strBegin, byte* strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, strEnd, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ReadOnlySpan<byte> strBegin, byte* strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, strEnd, c)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(string strBegin, byte* strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrchrRangeNative(pStr0, strEnd, c); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(string strBegin, byte* strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, strEnd, c)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(byte* strBegin, ref byte strEnd, byte c) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(byte* strBegin, ref byte strEnd, byte c) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(byte* strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(byte* strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(byte* strBegin, string strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrchrRangeNative(strBegin, pStr0, c); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(byte* strBegin, string strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, pStr0, c)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ref byte strBegin, ref byte strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ref byte strBegin, ref byte strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ReadOnlySpan<byte> strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ReadOnlySpan<byte> strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(string strBegin, string strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStrchrRangeNative(pStr0, pStr1, c); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(string strBegin, string strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, pStr1, c)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ref byte strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ref byte strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ref byte strBegin, string strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, pStr0, c); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ref byte strBegin, string strEnd, byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, pStr0, c)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ReadOnlySpan<byte> strBegin, ref byte strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ReadOnlySpan<byte> strBegin, ref byte strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(ReadOnlySpan<byte> strBegin, string strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, pStr0, c); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(ReadOnlySpan<byte> strBegin, string strEnd, byte c) - { - fixed (byte* pstrBegin = strBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, pStr0, c)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(string strBegin, ref byte strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(string strBegin, ref byte strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrchrRange(string strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrchrRangeS(string strBegin, ReadOnlySpan<byte> strEnd, byte c) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, (byte*)pstrEnd, c)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImStrlenWNative(ushort* str) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, int>)funcTable[701])(str); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[701])((nint)str); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImStrlenW(ushort* str) - { - int ret = ImStrlenWNative(str); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStreolRangeNative(byte* str, byte* strEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*>)funcTable[702])(str, strEnd); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[702])((nint)str, (nint)strEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(byte* str, byte* strEnd) - { - byte* ret = ImStreolRangeNative(str, strEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(byte* str, byte* strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, strEnd)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ref byte str, byte* strEnd) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStreolRangeNative((byte*)pstr, strEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ref byte str, byte* strEnd) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, strEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (byte* pstr = str) - { - byte* ret = ImStreolRangeNative((byte*)pstr, strEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, strEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(string str, byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStreolRangeNative(pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(string str, byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, strEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(byte* str, ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStreolRangeNative(str, (byte*)pstrEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(byte* str, ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, (byte*)pstrEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStreolRangeNative(str, (byte*)pstrEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, (byte*)pstrEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(byte* str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStreolRangeNative(str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(byte* str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ref byte str, ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ref byte str, ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(string str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStreolRangeNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(string str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ref byte str, string strEnd) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStreolRangeNative((byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ref byte str, string strEnd) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(ReadOnlySpan<byte> str, string strEnd) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStreolRangeNative((byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(ReadOnlySpan<byte> str, string strEnd) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStreolRangeNative(pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, (byte*)pstrEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStreolRange(string str, ReadOnlySpan<byte> strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - byte* ret = ImStreolRangeNative(pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStreolRangeS(string str, ReadOnlySpan<byte> strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, (byte*)pstrEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort* ImStrbolWNative(ushort* bufMidLine, ushort* bufBegin) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, ushort*, ushort*>)funcTable[703])(bufMidLine, bufBegin); - #else - return (ushort*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[703])((nint)bufMidLine, (nint)bufBegin); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin) - { - ushort* ret = ImStrbolWNative(bufMidLine, bufBegin); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStristrNative(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, byte*, byte*>)funcTable[704])(haystack, haystackEnd, needle, needleEnd); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint>)funcTable[704])((nint)haystack, (nint)haystackEnd, (nint)needle, (nint)needleEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, needle, needleEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, needleEnd)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, needle, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs deleted file mode 100644 index 72b23b295..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.001.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, pStr2, needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, needleEnd)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, byte* needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ref byte needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, byte* needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, needle, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, byte* needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs deleted file mode 100644 index df197992c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.002.cs +++ /dev/null @@ -1,5097 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, byte* needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, needle, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, byte* needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, needle, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, byte* needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, byte* haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, byte* haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, byte* haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ref byte haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ref byte haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(byte* haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* pStr3 = null; - int pStrSize3 = 0; - if (needleEnd != null) - { - pStrSize3 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - pStr3 = Utils.Alloc<byte>(pStrSize3 + 1); - } - else - { - byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; - pStr3 = pStrStack3; - } - int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); - pStr3[pStrOffset3] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, pStr2, pStr3); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr3); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* pStr3 = null; - int pStrSize3 = 0; - if (needleEnd != null) - { - pStrSize3 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - pStr3 = Utils.Alloc<byte>(pStrSize3 + 1); - } - else - { - byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; - pStr3 = pStrStack3; - } - int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); - pStr3[pStrOffset3] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, pStr3)); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr3); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs deleted file mode 100644 index a886b0486..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.003.cs +++ /dev/null @@ -1,5067 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ref byte haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ref byte haystack, string haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ref byte haystack, string haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = &haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ref byte haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ref byte needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, ref byte needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(ReadOnlySpan<byte> haystack, string haystackEnd, string needle, string needleEnd) - { - fixed (byte* phaystack = haystack) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, pStr0, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ref byte haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs deleted file mode 100644 index e9231ce91..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.004.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - fixed (byte* pneedle = needle) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, (byte*)pneedle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, ReadOnlySpan<byte> haystackEnd, string needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phaystackEnd = haystackEnd) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, (byte*)phaystackEnd, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ref byte needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ref byte needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ref byte needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = &needle) - { - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, (byte*)pneedleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, (byte*)pneedle, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, ReadOnlySpan<byte> needle, string needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pneedle = needle) - { - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, (byte*)pneedle, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, string needle, ref byte needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStristr(string haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - byte* ret = ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStristrS(string haystack, string haystackEnd, string needle, ReadOnlySpan<byte> needleEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) - { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - fixed (byte* pneedleEnd = needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, (byte*)pneedleEnd)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImStrTrimBlanksNative(byte* str) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[705])(str); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[705])((nint)str); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrTrimBlanks(byte* str) - { - ImStrTrimBlanksNative(str); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrTrimBlanks(ref byte str) - { - fixed (byte* pstr = &str) - { - ImStrTrimBlanksNative((byte*)pstr); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImStrTrimBlanks(ref string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImStrTrimBlanksNative(pStr0); - str = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImStrSkipBlankNative(byte* str) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)funcTable[706])(str); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[706])((nint)str); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrSkipBlank(byte* str) - { - byte* ret = ImStrSkipBlankNative(str); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrSkipBlankS(byte* str) - { - string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative(str)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrSkipBlank(ref byte str) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStrSkipBlankNative((byte*)pstr); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrSkipBlankS(ref byte str) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative((byte*)pstr)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrSkipBlank(ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - byte* ret = ImStrSkipBlankNative((byte*)pstr); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrSkipBlankS(ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative((byte*)pstr)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImStrSkipBlank(string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrSkipBlankNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImStrSkipBlankS(string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative(pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImCharIsBlankANative(byte c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte, byte>)funcTable[707])(c); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte, byte>)funcTable[707])(c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImCharIsBlankA(byte c) - { - byte ret = ImCharIsBlankANative(c); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImCharIsBlankWNative(uint c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, byte>)funcTable[708])(c); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, byte>)funcTable[708])(c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImCharIsBlankW(uint c) - { - byte ret = ImCharIsBlankWNative(c); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFormatStringToTempBufferNative(byte** outBuf, byte** outBufEnd, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, byte**, byte*, void>)funcTable[709])(outBuf, outBufEnd, fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[709])((nint)outBuf, (nint)outBufEnd, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, byte* fmt) - { - ImFormatStringToTempBufferNative(outBuf, outBufEnd, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, byte* fmt) - { - fixed (byte** poutBuf = &outBuf) - { - ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, byte* fmt) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, byte* fmt) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, fmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferNative(outBuf, outBufEnd, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferNative(outBuf, outBufEnd, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, byte** outBufEnd, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferNative(outBuf, outBufEnd, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, ref byte fmt) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, ReadOnlySpan<byte> fmt) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, byte** outBufEnd, string fmt) - { - fixed (byte** poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, ref byte fmt) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, ReadOnlySpan<byte> fmt) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(byte** outBuf, ref byte* outBufEnd, string fmt) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, ref byte fmt) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, ReadOnlySpan<byte> fmt) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBuffer(ref byte* outBuf, ref byte* outBufEnd, string fmt) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFormatStringToTempBufferVNative(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, byte**, byte*, nuint, void>)funcTable[710])(outBuf, outBufEnd, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nuint, void>)funcTable[710])((nint)outBuf, (nint)outBufEnd, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) - { - ImFormatStringToTempBufferVNative(outBuf, outBufEnd, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, byte* fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, byte* fmt, nuint args) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, byte* fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, fmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative(outBuf, outBufEnd, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferVNative(outBuf, outBufEnd, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, byte** outBufEnd, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferVNative(outBuf, outBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, ref byte fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, byte** outBufEnd, string fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, ref byte fmt, nuint args) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(byte** outBuf, ref byte* outBufEnd, string fmt, nuint args) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, ref byte fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt, args); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = fmt) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt, args); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFormatStringToTempBufferV(ref byte* outBuf, ref byte* outBufEnd, string fmt, nuint args) - { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImParseFormatFindStartNative(byte* format) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)funcTable[711])(format); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[711])((nint)format); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindStart(byte* format) - { - byte* ret = ImParseFormatFindStartNative(format); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindStartS(byte* format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(format)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindStart(ref byte format) - { - fixed (byte* pformat = &format) - { - byte* ret = ImParseFormatFindStartNative((byte*)pformat); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindStartS(ref byte format) - { - fixed (byte* pformat = &format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative((byte*)pformat)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindStart(ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte* ret = ImParseFormatFindStartNative((byte*)pformat); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindStartS(ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative((byte*)pformat)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindStart(string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatFindStartNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindStartS(string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImParseFormatFindEndNative(byte* format) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*>)funcTable[712])(format); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[712])((nint)format); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindEnd(byte* format) - { - byte* ret = ImParseFormatFindEndNative(format); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindEndS(byte* format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(format)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindEnd(ref byte format) - { - fixed (byte* pformat = &format) - { - byte* ret = ImParseFormatFindEndNative((byte*)pformat); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindEndS(ref byte format) - { - fixed (byte* pformat = &format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative((byte*)pformat)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindEnd(ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte* ret = ImParseFormatFindEndNative((byte*)pformat); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindEndS(ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative((byte*)pformat)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatFindEnd(string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatFindEndNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatFindEndS(string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, void>)funcTable[713])(fmtIn, fmtOut, fmtOutSize); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nuint, void>)funcTable[713])((nint)fmtIn, (nint)fmtOut, fmtOutSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, fmtOut, fmtOutSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan<byte> fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, fmtOut, fmtOutSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(string fmtIn, byte* fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative(pStr0, fmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan<byte> fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImParseFormatSanitizeForPrintingNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(ReadOnlySpan<byte> fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImParseFormatSanitizeForPrinting(string fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative(pStr0, (byte*)pfmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImParseFormatSanitizeForScanningNative(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, byte*>)funcTable[714])(fmtIn, fmtOut, fmtOutSize); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nuint, nint>)funcTable[714])((nint)fmtIn, (nint)fmtOut, fmtOutSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, byte* fmtOut, nuint fmtOutSize) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan<byte> fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan<byte> fmtIn, byte* fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, byte* fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(string fmtIn, byte* fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(byte* fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan<byte> fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan<byte> fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref string fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(ref byte fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(ReadOnlySpan<byte> fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(ReadOnlySpan<byte> fmtIn, ref string fmtOut, nuint fmtOutSize) - { - fixed (byte* pfmtIn = fmtIn) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatSanitizeForScanning(string fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatSanitizeForScanningS(string fmtIn, ref byte fmtOut, nuint fmtOutSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtIn != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, (byte*)pfmtOut, fmtOutSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImParseFormatPrecisionNative(byte* format, int defaultValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, int>)funcTable[715])(format, defaultValue); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, int>)funcTable[715])((nint)format, defaultValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImParseFormatPrecision(byte* format, int defaultValue) - { - int ret = ImParseFormatPrecisionNative(format, defaultValue); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImParseFormatPrecision(ref byte format, int defaultValue) - { - fixed (byte* pformat = &format) - { - int ret = ImParseFormatPrecisionNative((byte*)pformat, defaultValue); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImParseFormatPrecision(ReadOnlySpan<byte> format, int defaultValue) - { - fixed (byte* pformat = format) - { - int ret = ImParseFormatPrecisionNative((byte*)pformat, defaultValue); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImParseFormatPrecision(string format, int defaultValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImParseFormatPrecisionNative(pStr0, defaultValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImTextCharToUtf8Native(byte* outBuf, uint c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint, byte*>)funcTable[716])(outBuf, c); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, uint, nint>)funcTable[716])((nint)outBuf, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImTextCharToUtf8(byte* outBuf, uint c) - { - byte* ret = ImTextCharToUtf8Native(outBuf, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImTextCharToUtf8S(byte* outBuf, uint c) - { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native(outBuf, c)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImTextCharToUtf8(ref byte outBuf, uint c) - { - fixed (byte* poutBuf = &outBuf) - { - byte* ret = ImTextCharToUtf8Native((byte*)poutBuf, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImTextCharToUtf8S(ref byte outBuf, uint c) - { - fixed (byte* poutBuf = &outBuf) - { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native((byte*)poutBuf, c)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImTextCharToUtf8(ReadOnlySpan<byte> outBuf, uint c) - { - fixed (byte* poutBuf = outBuf) - { - byte* ret = ImTextCharToUtf8Native((byte*)poutBuf, c); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImTextCharToUtf8S(ReadOnlySpan<byte> outBuf, uint c) - { - fixed (byte* poutBuf = outBuf) - { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native((byte*)poutBuf, c)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextCharFromUtf8Native(uint* outChar, byte* inText, byte* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, byte*, byte*, int>)funcTable[717])(outChar, inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, nint, int>)funcTable[717])((nint)outChar, (nint)inText, (nint)inTextEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, byte* inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, inText, inTextEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, byte* inTextEnd) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan<byte> inText, byte* inTextEnd) - { - fixed (byte* pinText = inText) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, string inText, byte* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, inTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan<byte> inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, inTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, string inText, byte* inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, ref byte inTextEnd) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, byte* inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, byte* inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, ref byte inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan<byte> inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, string inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ref byte inText, string inTextEnd) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan<byte> inText, ref byte inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, ReadOnlySpan<byte> inText, string inTextEnd) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, string inText, ref byte inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(uint* outChar, string inText, ReadOnlySpan<byte> inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan<byte> inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, string inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ref byte inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan<byte> inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, ReadOnlySpan<byte> inText, string inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, string inText, ref byte inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCharFromUtf8(ref uint outChar, string inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextCountCharsFromUtf8Native(byte* inText, byte* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, int>)funcTable[718])(inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, int>)funcTable[718])((nint)inText, (nint)inTextEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(byte* inText, byte* inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(inText, inTextEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ref byte inText, byte* inTextEnd) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ReadOnlySpan<byte> inText, byte* inTextEnd) - { - fixed (byte* pinText = inText) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(string inText, byte* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountCharsFromUtf8Native(pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(byte* inText, ref byte inTextEnd) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(byte* inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs deleted file mode 100644 index 61e059812..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.005.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(byte* inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountCharsFromUtf8Native(inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ref byte inText, ref byte inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ReadOnlySpan<byte> inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(string inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCountCharsFromUtf8Native(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ref byte inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ref byte inText, string inTextEnd) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ReadOnlySpan<byte> inText, ref byte inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(ReadOnlySpan<byte> inText, string inTextEnd) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(string inText, ref byte inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountCharsFromUtf8(string inText, ReadOnlySpan<byte> inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, int>)funcTable[719])(inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, int>)funcTable[719])((nint)inText, (nint)inTextEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(byte* inText, byte* inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative(inText, inTextEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ref byte inText, byte* inTextEnd) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan<byte> inText, byte* inTextEnd) - { - fixed (byte* pinText = inText) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(string inText, byte* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative(pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(byte* inText, ref byte inTextEnd) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(byte* inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(byte* inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative(inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ref byte inText, ref byte inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan<byte> inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(string inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ref byte inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ref byte inText, string inTextEnd) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan<byte> inText, ref byte inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(ReadOnlySpan<byte> inText, string inTextEnd) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(string inText, ref byte inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative(pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromChar(string inText, ReadOnlySpan<byte> inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative(pStr0, (byte*)pinTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextCountUtf8BytesFromStrNative(ushort* inText, ushort* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, ushort*, int>)funcTable[720])(inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, int>)funcTable[720])((nint)inText, (nint)inTextEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextCountUtf8BytesFromStr(ushort* inText, ushort* inTextEnd) - { - int ret = ImTextCountUtf8BytesFromStrNative(inText, inTextEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFileHandle ImFileOpenNative(byte* filename, byte* mode) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, ImFileHandle>)funcTable[721])(filename, mode); - #else - return (ImFileHandle)((delegate* unmanaged[Cdecl]<nint, nint, ImFileHandle>)funcTable[721])((nint)filename, (nint)mode); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(byte* filename, byte* mode) - { - ImFileHandle ret = ImFileOpenNative(filename, mode); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ref byte filename, byte* mode) - { - fixed (byte* pfilename = &filename) - { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, mode); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ReadOnlySpan<byte> filename, byte* mode) - { - fixed (byte* pfilename = filename) - { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, mode); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(string filename, byte* mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFileHandle ret = ImFileOpenNative(pStr0, mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(byte* filename, ref byte mode) - { - fixed (byte* pmode = &mode) - { - ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(byte* filename, ReadOnlySpan<byte> mode) - { - fixed (byte* pmode = mode) - { - ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(byte* filename, string mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFileHandle ret = ImFileOpenNative(filename, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ref byte filename, ref byte mode) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = &mode) - { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ReadOnlySpan<byte> filename, ReadOnlySpan<byte> mode) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = mode) - { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(string filename, string mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImFileHandle ret = ImFileOpenNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ref byte filename, ReadOnlySpan<byte> mode) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = mode) - { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ref byte filename, string mode) - { - fixed (byte* pfilename = &filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ReadOnlySpan<byte> filename, ref byte mode) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = &mode) - { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(ReadOnlySpan<byte> filename, string mode) - { - fixed (byte* pfilename = filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(string filename, ref byte mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = &mode) - { - ImFileHandle ret = ImFileOpenNative(pStr0, (byte*)pmode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFileHandle ImFileOpen(string filename, ReadOnlySpan<byte> mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - ImFileHandle ret = ImFileOpenNative(pStr0, (byte*)pmode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImFileCloseNative(ImFileHandle file) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFileHandle, byte>)funcTable[722])(file); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImFileHandle, byte>)funcTable[722])(file); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImFileClose(ImFileHandle file) - { - byte ret = ImFileCloseNative(file); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImFileGetSizeNative(ImFileHandle file) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFileHandle, ulong>)funcTable[723])(file); - #else - return (ulong)((delegate* unmanaged[Cdecl]<ImFileHandle, ulong>)funcTable[723])(file); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImFileGetSize(ImFileHandle file) - { - ulong ret = ImFileGetSizeNative(file); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImFileReadNative(void* data, ulong size, ulong count, ImFileHandle file) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, ulong, ulong, ImFileHandle, ulong>)funcTable[724])(data, size, count, file); - #else - return (ulong)((delegate* unmanaged[Cdecl]<nint, ulong, ulong, ImFileHandle, ulong>)funcTable[724])((nint)data, size, count, file); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImFileRead(void* data, ulong size, ulong count, ImFileHandle file) - { - ulong ret = ImFileReadNative(data, size, count, file); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImFileWriteNative(void* data, ulong size, ulong count, ImFileHandle file) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, ulong, ulong, ImFileHandle, ulong>)funcTable[725])(data, size, count, file); - #else - return (ulong)((delegate* unmanaged[Cdecl]<nint, ulong, ulong, ImFileHandle, ulong>)funcTable[725])((nint)data, size, count, file); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImFileWrite(void* data, ulong size, ulong count, ImFileHandle file) - { - ulong ret = ImFileWriteNative(data, size, count, file); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void* ImFileLoadToMemoryNative(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint*, int, void*>)funcTable[726])(filename, mode, outFileSize, paddingBytes); - #else - return (void*)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, nint>)funcTable[726])((nint)filename, (nint)mode, (nint)outFileSize, paddingBytes); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize, int paddingBytes) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, paddingBytes); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, byte* mode, nuint* outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, byte* mode) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, byte* mode, int paddingBytes) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), paddingBytes); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, byte* mode, nuint* outFileSize) - { - fixed (byte* pfilename = &filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, byte* mode) - { - fixed (byte* pfilename = &filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, byte* mode, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, byte* mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, byte* mode, nuint* outFileSize) - { - fixed (byte* pfilename = filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, byte* mode) - { - fixed (byte* pfilename = filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, byte* mode, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, byte* mode, nuint* outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, byte* mode, nuint* outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, byte* mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, byte* mode, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ref byte mode, nuint* outFileSize) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ref byte mode) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ref byte mode, int paddingBytes) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan<byte> mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan<byte> mode, nuint* outFileSize) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan<byte> mode) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, ReadOnlySpan<byte> mode, int paddingBytes) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, string mode, nuint* outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, string mode, nuint* outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, string mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(byte* filename, string mode, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, nuint* outFileSize) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ref byte mode, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ReadOnlySpan<byte> mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ReadOnlySpan<byte> mode, nuint* outFileSize) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ReadOnlySpan<byte> mode) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ReadOnlySpan<byte> mode, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, string mode, nuint* outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, paddingBytes); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, string mode, nuint* outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, (int)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, string mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), (int)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, string mode, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), paddingBytes); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan<byte> mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan<byte> mode, nuint* outFileSize) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan<byte> mode) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, ReadOnlySpan<byte> mode, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, string mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, string mode, nuint* outFileSize) - { - fixed (byte* pfilename = &filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, string mode) - { - fixed (byte* pfilename = &filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ref byte filename, string mode, int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ref byte mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ref byte mode, nuint* outFileSize) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ref byte mode) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, ref byte mode, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, string mode, nuint* outFileSize, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, string mode, nuint* outFileSize) - { - fixed (byte* pfilename = filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, outFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, string mode) - { - fixed (byte* pfilename = filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(ReadOnlySpan<byte> filename, string mode, int paddingBytes) - { - fixed (byte* pfilename = filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, pStr0, (nuint*)(default), paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ref byte mode, nuint* outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ref byte mode, nuint* outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ref byte mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ref byte mode, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = &mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan<byte> mode, nuint* outFileSize, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan<byte> mode, nuint* outFileSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, outFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan<byte> mode) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void* ImFileLoadToMemory(string filename, ReadOnlySpan<byte> mode, int paddingBytes) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pmode = mode) - { - void* ret = ImFileLoadToMemoryNative(pStr0, (byte*)pmode, (nuint*)(default), paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImPowNative(float x, float y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float>)funcTable[727])(x, y); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float, float>)funcTable[727])(x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImPow(float x, float y) - { - float ret = ImPowNative(x, y); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImPowNative(double x, double y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, double>)funcTable[728])(x, y); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double, double>)funcTable[728])(x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImPow(double x, double y) - { - double ret = ImPowNative(x, y); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLogNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[729])(x); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[729])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImLog(float x) - { - float ret = ImLogNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImLogNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[730])(x); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[730])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImLog(double x) - { - double ret = ImLogNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImAbsNative(int x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int>)funcTable[731])(x); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int>)funcTable[731])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImAbs(int x) - { - int ret = ImAbsNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImAbsNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[732])(x); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[732])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImAbs(float x) - { - float ret = ImAbsNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImAbsNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[733])(x); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[733])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImAbs(double x) - { - double ret = ImAbsNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSignNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[734])(x); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[734])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImSign(float x) - { - float ret = ImSignNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImSignNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[735])(x); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[735])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImSign(double x) - { - double ret = ImSignNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImRsqrtNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[736])(x); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[736])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImRsqrt(float x) - { - float ret = ImRsqrtNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImRsqrtNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[737])(x); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[737])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImRsqrt(double x) - { - double ret = ImRsqrtNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, void>)funcTable[738])(pOut, lhs, rhs); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, void>)funcTable[738])((nint)pOut, lhs, rhs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImMin(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImMinNative(&ret, lhs, rhs); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImMinNative(pOut, lhs, rhs); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMin(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImMinNative((Vector2*)ppOut, lhs, rhs); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMaxNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, void>)funcTable[739])(pOut, lhs, rhs); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, void>)funcTable[739])((nint)pOut, lhs, rhs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImMax(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImMaxNative(&ret, lhs, rhs); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImMaxNative(pOut, lhs, rhs); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMax(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImMaxNative((Vector2*)ppOut, lhs, rhs); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImClampNative(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, void>)funcTable[740])(pOut, v, mn, mx); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, void>)funcTable[740])((nint)pOut, v, mn, mx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImClamp(Vector2 v, Vector2 mn, Vector2 mx) - { - Vector2 ret; - ImClampNative(&ret, v, mn, mx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - ImClampNative(pOut, v, mn, mx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImClamp(ref Vector2 pOut, Vector2 v, Vector2 mn, Vector2 mx) - { - fixed (Vector2* ppOut = &pOut) - { - ImClampNative((Vector2*)ppOut, v, mn, mx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, float, void>)funcTable[741])(pOut, a, b, t); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, float, void>)funcTable[741])((nint)pOut, a, b, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImLerp(Vector2 a, Vector2 b, float t) - { - Vector2 ret; - ImLerpNative(&ret, a, b, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, float t) - { - ImLerpNative(pOut, a, b, t); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImLerpNative((Vector2*)ppOut, a, b, t); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLerpNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, void>)funcTable[742])(pOut, a, b, t); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, void>)funcTable[742])((nint)pOut, a, b, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImLerp(Vector2 a, Vector2 b, Vector2 t) - { - Vector2 ret; - ImLerpNative(&ret, a, b, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLerp(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) - { - ImLerpNative(pOut, a, b, t); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLerp(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 t) - { - fixed (Vector2* ppOut = &pOut) - { - ImLerpNative((Vector2*)ppOut, a, b, t); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLerpNative(Vector4* pOut, Vector4 a, Vector4 b, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, Vector4, Vector4, float, void>)funcTable[743])(pOut, a, b, t); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector4, Vector4, float, void>)funcTable[743])((nint)pOut, a, b, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 ImLerp(Vector4 a, Vector4 b, float t) - { - Vector4 ret; - ImLerpNative(&ret, a, b, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLerp(Vector4* pOut, Vector4 a, Vector4 b, float t) - { - ImLerpNative(pOut, a, b, t); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLerp(ref Vector4 pOut, Vector4 a, Vector4 b, float t) - { - fixed (Vector4* ppOut = &pOut) - { - ImLerpNative((Vector4*)ppOut, a, b, t); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSaturateNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[744])(f); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[744])(f); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImSaturate(float f) - { - float ret = ImSaturateNative(f); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLengthSqrNative(Vector2 lhs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, float>)funcTable[745])(lhs); - #else - return (float)((delegate* unmanaged[Cdecl]<Vector2, float>)funcTable[745])(lhs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImLengthSqr(Vector2 lhs) - { - float ret = ImLengthSqrNative(lhs); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLengthSqrNative(Vector4 lhs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4, float>)funcTable[746])(lhs); - #else - return (float)((delegate* unmanaged[Cdecl]<Vector4, float>)funcTable[746])(lhs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImLengthSqr(Vector4 lhs) - { - float ret = ImLengthSqrNative(lhs); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImInvLengthNative(Vector2 lhs, float failValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, float, float>)funcTable[747])(lhs, failValue); - #else - return (float)((delegate* unmanaged[Cdecl]<Vector2, float, float>)funcTable[747])(lhs, failValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImInvLength(Vector2 lhs, float failValue) - { - float ret = ImInvLengthNative(lhs, failValue); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImFloorNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[748])(f); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[748])(f); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImFloor(float f) - { - float ret = ImFloorNative(f); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImFloorSignedNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[749])(f); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[749])(f); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImFloorSigned(float f) - { - float ret = ImFloorSignedNative(f); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFloorNative(Vector2* pOut, Vector2 v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, void>)funcTable[750])(pOut, v); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[750])((nint)pOut, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImFloor(Vector2 v) - { - Vector2 ret; - ImFloorNative(&ret, v); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFloor(Vector2* pOut, Vector2 v) - { - ImFloorNative(pOut, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFloor(ref Vector2 pOut, Vector2 v) - { - fixed (Vector2* ppOut = &pOut) - { - ImFloorNative((Vector2*)ppOut, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFloorSignedNative(Vector2* pOut, Vector2 v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, void>)funcTable[751])(pOut, v); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[751])((nint)pOut, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImFloorSigned(Vector2 v) - { - Vector2 ret; - ImFloorSignedNative(&ret, v); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFloorSigned(Vector2* pOut, Vector2 v) - { - ImFloorSignedNative(pOut, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFloorSigned(ref Vector2 pOut, Vector2 v) - { - fixed (Vector2* ppOut = &pOut) - { - ImFloorSignedNative((Vector2*)ppOut, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImModPositiveNative(int a, int b) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, int>)funcTable[752])(a, b); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int, int>)funcTable[752])(a, b); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImModPositive(int a, int b) - { - int ret = ImModPositiveNative(a, b); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImDotNative(Vector2 a, Vector2 b) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, float>)funcTable[753])(a, b); - #else - return (float)((delegate* unmanaged[Cdecl]<Vector2, Vector2, float>)funcTable[753])(a, b); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImDot(Vector2 a, Vector2 b) - { - float ret = ImDotNative(a, b); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImRotateNative(Vector2* pOut, Vector2 v, float cosA, float sinA) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, float, float, void>)funcTable[754])(pOut, v, cosA, sinA); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, float, void>)funcTable[754])((nint)pOut, v, cosA, sinA); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImRotate(Vector2 v, float cosA, float sinA) - { - Vector2 ret; - ImRotateNative(&ret, v, cosA, sinA); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImRotate(Vector2* pOut, Vector2 v, float cosA, float sinA) - { - ImRotateNative(pOut, v, cosA, sinA); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImRotate(ref Vector2 pOut, Vector2 v, float cosA, float sinA) - { - fixed (Vector2* ppOut = &pOut) - { - ImRotateNative((Vector2*)ppOut, v, cosA, sinA); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLinearSweepNative(float current, float target, float speed) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float>)funcTable[755])(current, target, speed); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float, float, float>)funcTable[755])(current, target, speed); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImLinearSweep(float current, float target, float speed) - { - float ret = ImLinearSweepNative(current, target, speed); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMulNative(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, void>)funcTable[756])(pOut, lhs, rhs); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, void>)funcTable[756])((nint)pOut, lhs, rhs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImMul(Vector2 lhs, Vector2 rhs) - { - Vector2 ret; - ImMulNative(&ret, lhs, rhs); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs) - { - ImMulNative(pOut, lhs, rhs); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMul(ref Vector2 pOut, Vector2 lhs, Vector2 rhs) - { - fixed (Vector2* ppOut = &pOut) - { - ImMulNative((Vector2*)ppOut, lhs, rhs); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImIsFloatAboveGuaranteedIntegerPrecisionNative(float f) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, byte>)funcTable[757])(f); - #else - return (byte)((delegate* unmanaged[Cdecl]<float, byte>)funcTable[757])(f); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) - { - byte ret = ImIsFloatAboveGuaranteedIntegerPrecisionNative(f); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierCubicCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, float, void>)funcTable[758])(pOut, p1, p2, p3, p4, t); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, float, void>)funcTable[758])((nint)pOut, p1, p2, p3, p4, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImBezierCubicCalc(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - Vector2 ret; - ImBezierCubicCalcNative(&ret, p1, p2, p3, p4, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - ImBezierCubicCalcNative(pOut, p1, p2, p3, p4, t); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierCubicCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicCalcNative((Vector2*)ppOut, p1, p2, p3, p4, t); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierCubicClosestPointNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, Vector2, int, void>)funcTable[759])(pOut, p1, p2, p3, p4, p, numSegments); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, Vector2, int, void>)funcTable[759])((nint)pOut, p1, p2, p3, p4, p, numSegments); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImBezierCubicClosestPoint(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - Vector2 ret; - ImBezierCubicClosestPointNative(&ret, p1, p2, p3, p4, p, numSegments); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - ImBezierCubicClosestPointNative(pOut, p1, p2, p3, p4, p, numSegments); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierCubicClosestPoint(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicClosestPointNative((Vector2*)ppOut, p1, p2, p3, p4, p, numSegments); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierCubicClosestPointCasteljauNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, Vector2, float, void>)funcTable[760])(pOut, p1, p2, p3, p4, p, tessTol); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, Vector2, float, void>)funcTable[760])((nint)pOut, p1, p2, p3, p4, p, tessTol); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImBezierCubicClosestPointCasteljau(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - Vector2 ret; - ImBezierCubicClosestPointCasteljauNative(&ret, p1, p2, p3, p4, p, tessTol); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - ImBezierCubicClosestPointCasteljauNative(pOut, p1, p2, p3, p4, p, tessTol); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierCubicClosestPointCasteljau(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicClosestPointCasteljauNative((Vector2*)ppOut, p1, p2, p3, p4, p, tessTol); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBezierQuadraticCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, float, void>)funcTable[761])(pOut, p1, p2, p3, t); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, float, void>)funcTable[761])((nint)pOut, p1, p2, p3, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImBezierQuadraticCalc(Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - Vector2 ret; - ImBezierQuadraticCalcNative(&ret, p1, p2, p3, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - ImBezierQuadraticCalcNative(pOut, p1, p2, p3, t); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBezierQuadraticCalc(ref Vector2 pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) - { - fixed (Vector2* ppOut = &pOut) - { - ImBezierQuadraticCalcNative((Vector2*)ppOut, p1, p2, p3, t); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImLineClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, void>)funcTable[762])(pOut, a, b, p); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, void>)funcTable[762])((nint)pOut, a, b, p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImLineClosestPoint(Vector2 a, Vector2 b, Vector2 p) - { - Vector2 ret; - ImLineClosestPointNative(&ret, a, b, p); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) - { - ImLineClosestPointNative(pOut, a, b, p); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImLineClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 p) - { - fixed (Vector2* ppOut = &pOut) - { - ImLineClosestPointNative((Vector2*)ppOut, a, b, p); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImTriangleContainsPointNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, Vector2, byte>)funcTable[763])(a, b, c, p); - #else - return (byte)((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, Vector2, byte>)funcTable[763])(a, b, c, p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - byte ret = ImTriangleContainsPointNative(a, b, c, p); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImTriangleClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, void>)funcTable[764])(pOut, a, b, c, p); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, void>)funcTable[764])((nint)pOut, a, b, c, p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ImTriangleClosestPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - Vector2 ret; - ImTriangleClosestPointNative(&ret, a, b, c, p); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - ImTriangleClosestPointNative(pOut, a, b, c, p); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleClosestPoint(ref Vector2 pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) - { - fixed (Vector2* ppOut = &pOut) - { - ImTriangleClosestPointNative((Vector2*)ppOut, a, b, c, p); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImTriangleBarycentricCoordsNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, Vector2, float*, float*, float*, void>)funcTable[765])(a, b, c, p, outU, outV, outW); - #else - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, Vector2, nint, nint, nint, void>)funcTable[765])(a, b, c, p, (nint)outU, (nint)outV, (nint)outW); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, outW); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) - { - fixed (float* poutU = &outU) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, outW); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) - { - fixed (float* poutV = &outV) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, outW); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, float* outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, outW); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, (float*)poutW); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, ref float outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, (float*)poutW); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, ref float outW) - { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, (float*)poutW); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, ref float outW) - { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImTriangleAreaNative(Vector2 a, Vector2 b, Vector2 c) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, float>)funcTable[766])(a, b, c); - #else - return (float)((delegate* unmanaged[Cdecl]<Vector2, Vector2, Vector2, float>)funcTable[766])(a, b, c); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImTriangleArea(Vector2 a, Vector2 b, Vector2 c) - { - float ret = ImTriangleAreaNative(a, b, c); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDir ImGetDirQuadrantFromDeltaNative(float dx, float dy) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, ImGuiDir>)funcTable[767])(dx, dy); - #else - return (ImGuiDir)((delegate* unmanaged[Cdecl]<float, float, ImGuiDir>)funcTable[767])(dx, dy); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) - { - ImGuiDir ret = ImGetDirQuadrantFromDeltaNative(dx, dy); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec1* ImVec1Native() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImVec1*>)funcTable[768])(); - #else - return (ImVec1*)((delegate* unmanaged[Cdecl]<nint>)funcTable[768])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImVec1Ptr ImVec1() - { - ImVec1Ptr ret = ImVec1Native(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec1* ImVec1Native(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, ImVec1*>)funcTable[769])(x); - #else - return (ImVec1*)((delegate* unmanaged[Cdecl]<float, nint>)funcTable[769])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImVec1Ptr ImVec1(float x) - { - ImVec1Ptr ret = ImVec1Native(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec2Ih* ImVec2ihNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImVec2Ih*>)funcTable[770])(); - #else - return (ImVec2Ih*)((delegate* unmanaged[Cdecl]<nint>)funcTable[770])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImVec2IhPtr ImVec2ih() - { - ImVec2IhPtr ret = ImVec2ihNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec2Ih* ImVec2ihNative(short x, short y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short, short, ImVec2Ih*>)funcTable[771])(x, y); - #else - return (ImVec2Ih*)((delegate* unmanaged[Cdecl]<short, short, nint>)funcTable[771])(x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImVec2IhPtr ImVec2ih(short x, short y) - { - ImVec2IhPtr ret = ImVec2ihNative(x, y); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImVec2Ih* ImVec2ihNative(Vector2 rhs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, ImVec2Ih*>)funcTable[772])(rhs); - #else - return (ImVec2Ih*)((delegate* unmanaged[Cdecl]<Vector2, nint>)funcTable[772])(rhs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImVec2IhPtr ImVec2ih(Vector2 rhs) - { - ImVec2IhPtr ret = ImVec2ihNative(rhs); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*>)funcTable[773])(); - #else - return (ImRect*)((delegate* unmanaged[Cdecl]<nint>)funcTable[773])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRectPtr ImRect() - { - ImRectPtr ret = ImRectNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative(Vector2 min, Vector2 max) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, Vector2, ImRect*>)funcTable[774])(min, max); - #else - return (ImRect*)((delegate* unmanaged[Cdecl]<Vector2, Vector2, nint>)funcTable[774])(min, max); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRectPtr ImRect(Vector2 min, Vector2 max) - { - ImRectPtr ret = ImRectNative(min, max); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative(Vector4 v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4, ImRect*>)funcTable[775])(v); - #else - return (ImRect*)((delegate* unmanaged[Cdecl]<Vector4, nint>)funcTable[775])(v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRectPtr ImRect(Vector4 v) - { - ImRectPtr ret = ImRectNative(v); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImRect* ImRectNative(float x1, float y1, float x2, float y2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float, ImRect*>)funcTable[776])(x1, y1, x2, y2); - #else - return (ImRect*)((delegate* unmanaged[Cdecl]<float, float, float, float, nint>)funcTable[776])(x1, y1, x2, y2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRectPtr ImRect(float x1, float y1, float x2, float y2) - { - ImRectPtr ret = ImRectNative(x1, y1, x2, y2); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetCenterNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)funcTable[777])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[777])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetCenter(ImRectPtr self) - { - Vector2 ret; - GetCenterNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(Vector2* pOut, ImRectPtr self) - { - GetCenterNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetCenterNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetCenter(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetCenterNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetCenterNative(pOut, (ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetCenter(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetCenterNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetSizeNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)funcTable[778])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[778])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetSize(ImRectPtr self) - { - Vector2 ret; - GetSizeNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetSize(Vector2* pOut, ImRectPtr self) - { - GetSizeNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetSize(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetSizeNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetSize(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetSizeNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetSize(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetSizeNative(pOut, (ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetSize(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetSizeNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetWidthNative(ImRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*, float>)funcTable[779])(self); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float>)funcTable[779])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetWidth(ImRectPtr self) - { - float ret = GetWidthNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetWidth(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetWidthNative((ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetHeightNative(ImRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*, float>)funcTable[780])(self); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float>)funcTable[780])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetHeight(ImRectPtr self) - { - float ret = GetHeightNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetHeight(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetHeightNative((ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetAreaNative(ImRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*, float>)funcTable[781])(self); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float>)funcTable[781])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetArea(ImRectPtr self) - { - float ret = GetAreaNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetArea(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetAreaNative((ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTLNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)funcTable[782])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[782])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetTL(ImRectPtr self) - { - Vector2 ret; - GetTLNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTL(Vector2* pOut, ImRectPtr self) - { - GetTLNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTL(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetTLNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetTL(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetTLNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTL(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetTLNative(pOut, (ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTL(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetTLNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetTRNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)funcTable[783])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[783])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetTR(ImRectPtr self) - { - Vector2 ret; - GetTRNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTR(Vector2* pOut, ImRectPtr self) - { - GetTRNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTR(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetTRNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetTR(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetTRNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTR(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetTRNative(pOut, (ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetTR(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetTRNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetBLNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)funcTable[784])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[784])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetBL(ImRectPtr self) - { - Vector2 ret; - GetBLNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBL(Vector2* pOut, ImRectPtr self) - { - GetBLNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBL(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetBLNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetBL(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetBLNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBL(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetBLNative(pOut, (ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBL(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetBLNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetBRNative(Vector2* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect*, void>)funcTable[785])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[785])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetBR(ImRectPtr self) - { - Vector2 ret; - GetBRNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBR(Vector2* pOut, ImRectPtr self) - { - GetBRNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBR(ref Vector2 pOut, ImRectPtr self) - { - fixed (Vector2* ppOut = &pOut) - { - GetBRNative((Vector2*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetBR(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector2 ret; - GetBRNative(&ret, (ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBR(Vector2* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetBRNative(pOut, (ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBR(ref Vector2 pOut, ref ImRect self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetBRNative((Vector2*)ppOut, (ImRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ContainsNative(ImRect* self, Vector2 p) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, byte>)funcTable[786])(self, p); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, byte>)funcTable[786])((nint)self, p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ImRectPtr self, Vector2 p) - { - byte ret = ContainsNative(self, p); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ref ImRect self, Vector2 p) - { - fixed (ImRect* pself = &self) - { - byte ret = ContainsNative((ImRect*)pself, p); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ContainsNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, byte>)funcTable[787])(self, r); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImRect, byte>)funcTable[787])((nint)self, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ImRectPtr self, ImRect r) - { - byte ret = ContainsNative(self, r); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - byte ret = ContainsNative((ImRect*)pself, r); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte OverlapsNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, byte>)funcTable[788])(self, r); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImRect, byte>)funcTable[788])((nint)self, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Overlaps(ImRectPtr self, ImRect r) - { - byte ret = OverlapsNative(self, r); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Overlaps(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - byte ret = OverlapsNative((ImRect*)pself, r); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNative(ImRect* self, Vector2 p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, void>)funcTable[789])(self, p); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[789])((nint)self, p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Add(ImRectPtr self, Vector2 p) - { - AddNative(self, p); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Add(ref ImRect self, Vector2 p) - { - fixed (ImRect* pself = &self) - { - AddNative((ImRect*)pself, p); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, void>)funcTable[790])(self, r); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, void>)funcTable[790])((nint)self, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Add(ImRectPtr self, ImRect r) - { - AddNative(self, r); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Add(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - AddNative((ImRect*)pself, r); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExpandNative(ImRect* self, float amount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, float, void>)funcTable[791])(self, amount); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[791])((nint)self, amount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Expand(ImRectPtr self, float amount) - { - ExpandNative(self, amount); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Expand(ref ImRect self, float amount) - { - fixed (ImRect* pself = &self) - { - ExpandNative((ImRect*)pself, amount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExpandNative(ImRect* self, Vector2 amount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, void>)funcTable[792])(self, amount); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[792])((nint)self, amount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Expand(ImRectPtr self, Vector2 amount) - { - ExpandNative(self, amount); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Expand(ref ImRect self, Vector2 amount) - { - fixed (ImRect* pself = &self) - { - ExpandNative((ImRect*)pself, amount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TranslateNative(ImRect* self, Vector2 d) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, Vector2, void>)funcTable[793])(self, d); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[793])((nint)self, d); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Translate(ImRectPtr self, Vector2 d) - { - TranslateNative(self, d); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Translate(ref ImRect self, Vector2 d) - { - fixed (ImRect* pself = &self) - { - TranslateNative((ImRect*)pself, d); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TranslateXNative(ImRect* self, float dx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, float, void>)funcTable[794])(self, dx); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[794])((nint)self, dx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TranslateX(ImRectPtr self, float dx) - { - TranslateXNative(self, dx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TranslateX(ref ImRect self, float dx) - { - fixed (ImRect* pself = &self) - { - TranslateXNative((ImRect*)pself, dx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TranslateYNative(ImRect* self, float dy) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, float, void>)funcTable[795])(self, dy); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[795])((nint)self, dy); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TranslateY(ImRectPtr self, float dy) - { - TranslateYNative(self, dy); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TranslateY(ref ImRect self, float dy) - { - fixed (ImRect* pself = &self) - { - TranslateYNative((ImRect*)pself, dy); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs deleted file mode 100644 index 8e4414279..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.006.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClipWithNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, void>)funcTable[796])(self, r); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, void>)funcTable[796])((nint)self, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClipWith(ImRectPtr self, ImRect r) - { - ClipWithNative(self, r); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClipWith(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - ClipWithNative((ImRect*)pself, r); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClipWithFullNative(ImRect* self, ImRect r) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImRect, void>)funcTable[797])(self, r); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, void>)funcTable[797])((nint)self, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClipWithFull(ImRectPtr self, ImRect r) - { - ClipWithFullNative(self, r); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClipWithFull(ref ImRect self, ImRect r) - { - fixed (ImRect* pself = &self) - { - ClipWithFullNative((ImRect*)pself, r); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FloorNative(ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, void>)funcTable[798])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[798])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Floor(ImRectPtr self) - { - FloorNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Floor(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - FloorNative((ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInvertedNative(ImRect* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect*, byte>)funcTable[799])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[799])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInverted(ImRectPtr self) - { - byte ret = IsInvertedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInverted(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - byte ret = IsInvertedNative((ImRect*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ToVec4Native(Vector4* pOut, ImRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, ImRect*, void>)funcTable[800])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[800])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 ToVec4(ImRectPtr self) - { - Vector4 ret; - ToVec4Native(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ToVec4(Vector4* pOut, ImRectPtr self) - { - ToVec4Native(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ToVec4(ref Vector4 pOut, ImRectPtr self) - { - fixed (Vector4* ppOut = &pOut) - { - ToVec4Native((Vector4*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 ToVec4(ref ImRect self) - { - fixed (ImRect* pself = &self) - { - Vector4 ret; - ToVec4Native(&ret, (ImRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ToVec4(Vector4* pOut, ref ImRect self) - { - fixed (ImRect* pself = &self) - { - ToVec4Native(pOut, (ImRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ToVec4(ref Vector4 pOut, ref ImRect self) - { - fixed (Vector4* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - ToVec4Native((Vector4*)ppOut, (ImRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImBitArrayTestBitNative(uint* arr, int n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, int, byte>)funcTable[801])(arr, n); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[801])((nint)arr, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImBitArrayTestBit(uint* arr, int n) - { - byte ret = ImBitArrayTestBitNative(arr, n); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBitArrayClearBitNative(uint* arr, int n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint*, int, void>)funcTable[802])(arr, n); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[802])((nint)arr, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBitArrayClearBit(uint* arr, int n) - { - ImBitArrayClearBitNative(arr, n); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBitArraySetBitNative(uint* arr, int n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint*, int, void>)funcTable[803])(arr, n); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[803])((nint)arr, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBitArraySetBit(uint* arr, int n) - { - ImBitArraySetBitNative(arr, n); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImBitArraySetBitRangeNative(uint* arr, int n, int n2) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint*, int, int, void>)funcTable[804])(arr, n, n2); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, void>)funcTable[804])((nint)arr, n, n2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImBitArraySetBitRange(uint* arr, int n, int n2) - { - ImBitArraySetBitRangeNative(arr, n, n2); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CreateNative(ImBitVector* self, int sz) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImBitVector*, int, void>)funcTable[805])(self, sz); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[805])((nint)self, sz); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Create(ImBitVectorPtr self, int sz) - { - CreateNative(self, sz); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Create(ref ImBitVector self, int sz) - { - fixed (ImBitVector* pself = &self) - { - CreateNative((ImBitVector*)pself, sz); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImBitVector* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImBitVector*, void>)funcTable[806])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[806])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImBitVectorPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImBitVector self) - { - fixed (ImBitVector* pself = &self) - { - ClearNative((ImBitVector*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TestBitNative(ImBitVector* self, int n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImBitVector*, int, byte>)funcTable[807])(self, n); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[807])((nint)self, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TestBit(ImBitVectorPtr self, int n) - { - byte ret = TestBitNative(self, n); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TestBit(ref ImBitVector self, int n) - { - fixed (ImBitVector* pself = &self) - { - byte ret = TestBitNative((ImBitVector*)pself, n); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetBitNative(ImBitVector* self, int n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImBitVector*, int, void>)funcTable[808])(self, n); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[808])((nint)self, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetBit(ImBitVectorPtr self, int n) - { - SetBitNative(self, n); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetBit(ref ImBitVector self, int n) - { - fixed (ImBitVector* pself = &self) - { - SetBitNative((ImBitVector*)pself, n); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearBitNative(ImBitVector* self, int n) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImBitVector*, int, void>)funcTable[809])(self, n); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[809])((nint)self, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearBit(ImBitVectorPtr self, int n) - { - ClearBitNative(self, n); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearBit(ref ImBitVector self, int n) - { - fixed (ImBitVector* pself = &self) - { - ClearBitNative((ImBitVector*)pself, n); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawListSharedData* ImDrawListSharedDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*>)funcTable[810])(); - #else - return (ImDrawListSharedData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[810])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListSharedDataPtr ImDrawListSharedData() - { - ImDrawListSharedDataPtr ret = ImDrawListSharedDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCircleTessellationMaxErrorNative(ImDrawListSharedData* self, float maxError) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawListSharedData*, float, void>)funcTable[811])(self, maxError); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[811])((nint)self, maxError); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCircleTessellationMaxError(ImDrawListSharedDataPtr self, float maxError) - { - SetCircleTessellationMaxErrorNative(self, maxError); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCircleTessellationMaxError(ref ImDrawListSharedData self, float maxError) - { - fixed (ImDrawListSharedData* pself = &self) - { - SetCircleTessellationMaxErrorNative((ImDrawListSharedData*)pself, maxError); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImDrawDataBuilder* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, void>)funcTable[812])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[812])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImDrawDataBuilderPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - ClearNative((ImDrawDataBuilder*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFreeMemoryNative(ImDrawDataBuilder* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, void>)funcTable[813])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[813])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFreeMemory(ImDrawDataBuilderPtr self) - { - ClearFreeMemoryNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFreeMemory(ref ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - ClearFreeMemoryNative((ImDrawDataBuilder*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetDrawListCountNative(ImDrawDataBuilder* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, int>)funcTable[814])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[814])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetDrawListCount(ImDrawDataBuilderPtr self) - { - int ret = GetDrawListCountNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetDrawListCount(ref ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - int ret = GetDrawListCountNative((ImDrawDataBuilder*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FlattenIntoSingleLayerNative(ImDrawDataBuilder* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawDataBuilder*, void>)funcTable[815])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[815])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FlattenIntoSingleLayer(ImDrawDataBuilderPtr self) - { - FlattenIntoSingleLayerNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FlattenIntoSingleLayer(ref ImDrawDataBuilder self) - { - fixed (ImDrawDataBuilder* pself = &self) - { - FlattenIntoSingleLayerNative((ImDrawDataBuilder*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, int v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, int, ImGuiStyleMod*>)funcTable[816])(idx, v); - #else - return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl]<ImGuiStyleVar, int, nint>)funcTable[816])(idx, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, int v) - { - ImGuiStyleModPtr ret = ImGuiStyleModNative(idx, v); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, float v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, float, ImGuiStyleMod*>)funcTable[817])(idx, v); - #else - return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl]<ImGuiStyleVar, float, nint>)funcTable[817])(idx, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, float v) - { - ImGuiStyleModPtr ret = ImGuiStyleModNative(idx, v); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStyleMod* ImGuiStyleModNative(ImGuiStyleVar idx, Vector2 v) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStyleVar, Vector2, ImGuiStyleMod*>)funcTable[818])(idx, v); - #else - return (ImGuiStyleMod*)((delegate* unmanaged[Cdecl]<ImGuiStyleVar, Vector2, nint>)funcTable[818])(idx, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStyleModPtr ImGuiStyleMod(ImGuiStyleVar idx, Vector2 v) - { - ImGuiStyleModPtr ret = ImGuiStyleModNative(idx, v); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiComboPreviewData* ImGuiComboPreviewDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiComboPreviewData*>)funcTable[819])(); - #else - return (ImGuiComboPreviewData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[819])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiComboPreviewDataPtr ImGuiComboPreviewData() - { - ImGuiComboPreviewDataPtr ret = ImGuiComboPreviewDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiMenuColumns* ImGuiMenuColumnsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*>)funcTable[820])(); - #else - return (ImGuiMenuColumns*)((delegate* unmanaged[Cdecl]<nint>)funcTable[820])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiMenuColumnsPtr ImGuiMenuColumns() - { - ImGuiMenuColumnsPtr ret = ImGuiMenuColumnsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateNative(ImGuiMenuColumns* self, float spacing, byte windowReappearing) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, float, byte, void>)funcTable[821])(self, spacing, windowReappearing); - #else - ((delegate* unmanaged[Cdecl]<nint, float, byte, void>)funcTable[821])((nint)self, spacing, windowReappearing); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImGuiMenuColumnsPtr self, float spacing, bool windowReappearing) - { - UpdateNative(self, spacing, windowReappearing ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImGuiMenuColumns self, float spacing, bool windowReappearing) - { - fixed (ImGuiMenuColumns* pself = &self) - { - UpdateNative((ImGuiMenuColumns*)pself, spacing, windowReappearing ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float DeclColumnsNative(ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, float, float, float, float, float>)funcTable[822])(self, wIcon, wLabel, wShortcut, wMark); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float, float, float, float, float>)funcTable[822])((nint)self, wIcon, wLabel, wShortcut, wMark); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float DeclColumns(ImGuiMenuColumnsPtr self, float wIcon, float wLabel, float wShortcut, float wMark) - { - float ret = DeclColumnsNative(self, wIcon, wLabel, wShortcut, wMark); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float DeclColumns(ref ImGuiMenuColumns self, float wIcon, float wLabel, float wShortcut, float wMark) - { - fixed (ImGuiMenuColumns* pself = &self) - { - float ret = DeclColumnsNative((ImGuiMenuColumns*)pself, wIcon, wLabel, wShortcut, wMark); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcNextTotalWidthNative(ImGuiMenuColumns* self, byte updateOffsets) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiMenuColumns*, byte, void>)funcTable[823])(self, updateOffsets); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, void>)funcTable[823])((nint)self, updateOffsets); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcNextTotalWidth(ImGuiMenuColumnsPtr self, bool updateOffsets) - { - CalcNextTotalWidthNative(self, updateOffsets ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcNextTotalWidth(ref ImGuiMenuColumns self, bool updateOffsets) - { - fixed (ImGuiMenuColumns* pself = &self) - { - CalcNextTotalWidthNative((ImGuiMenuColumns*)pself, updateOffsets ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiInputTextState* ImGuiInputTextStateNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*>)funcTable[824])(); - #else - return (ImGuiInputTextState*)((delegate* unmanaged[Cdecl]<nint>)funcTable[824])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiInputTextStatePtr ImGuiInputTextState() - { - ImGuiInputTextStatePtr ret = ImGuiInputTextStateNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearTextNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[825])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[825])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearText(ImGuiInputTextStatePtr self) - { - ClearTextNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearText(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ClearTextNative((ImGuiInputTextState*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFreeMemoryNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[826])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[826])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFreeMemory(ImGuiInputTextStatePtr self) - { - ClearFreeMemoryNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFreeMemory(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ClearFreeMemoryNative((ImGuiInputTextState*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetUndoAvailCountNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)funcTable[827])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[827])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetUndoAvailCount(ImGuiInputTextStatePtr self) - { - int ret = GetUndoAvailCountNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetUndoAvailCount(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetUndoAvailCountNative((ImGuiInputTextState*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetRedoAvailCountNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)funcTable[828])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[828])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetRedoAvailCount(ImGuiInputTextStatePtr self) - { - int ret = GetRedoAvailCountNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetRedoAvailCount(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetRedoAvailCountNative((ImGuiInputTextState*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void OnKeyPressedNative(ImGuiInputTextState* self, int key) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int, void>)funcTable[829])(self, key); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[829])((nint)self, key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OnKeyPressed(ImGuiInputTextStatePtr self, int key) - { - OnKeyPressedNative(self, key); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OnKeyPressed(ref ImGuiInputTextState self, int key) - { - fixed (ImGuiInputTextState* pself = &self) - { - OnKeyPressedNative((ImGuiInputTextState*)pself, key); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CursorAnimResetNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[830])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[830])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CursorAnimReset(ImGuiInputTextStatePtr self) - { - CursorAnimResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CursorAnimReset(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - CursorAnimResetNative((ImGuiInputTextState*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CursorClampNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[831])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[831])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CursorClamp(ImGuiInputTextStatePtr self) - { - CursorClampNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CursorClamp(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - CursorClampNative((ImGuiInputTextState*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasSelectionNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, byte>)funcTable[832])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[832])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasSelection(ImGuiInputTextStatePtr self) - { - byte ret = HasSelectionNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasSelection(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - byte ret = HasSelectionNative((ImGuiInputTextState*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearSelectionNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[833])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[833])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearSelection(ImGuiInputTextStatePtr self) - { - ClearSelectionNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearSelection(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - ClearSelectionNative((ImGuiInputTextState*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetCursorPosNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)funcTable[834])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[834])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetCursorPos(ImGuiInputTextStatePtr self) - { - int ret = GetCursorPosNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetCursorPos(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetCursorPosNative((ImGuiInputTextState*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetSelectionStartNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)funcTable[835])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[835])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetSelectionStart(ImGuiInputTextStatePtr self) - { - int ret = GetSelectionStartNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetSelectionStart(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetSelectionStartNative((ImGuiInputTextState*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetSelectionEndNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int>)funcTable[836])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[836])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetSelectionEnd(ImGuiInputTextStatePtr self) - { - int ret = GetSelectionEndNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetSelectionEnd(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetSelectionEndNative((ImGuiInputTextState*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SelectAllNative(ImGuiInputTextState* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[837])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[837])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SelectAll(ImGuiInputTextStatePtr self) - { - SelectAllNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SelectAll(ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - SelectAllNative((ImGuiInputTextState*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPopupData* ImGuiPopupDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPopupData*>)funcTable[838])(); - #else - return (ImGuiPopupData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[838])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPopupDataPtr ImGuiPopupData() - { - ImGuiPopupDataPtr ret = ImGuiPopupDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiNextWindowData* ImGuiNextWindowDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNextWindowData*>)funcTable[839])(); - #else - return (ImGuiNextWindowData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[839])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiNextWindowDataPtr ImGuiNextWindowData() - { - ImGuiNextWindowDataPtr ret = ImGuiNextWindowDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFlagsNative(ImGuiNextWindowData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiNextWindowData*, void>)funcTable[840])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[840])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFlags(ImGuiNextWindowDataPtr self) - { - ClearFlagsNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFlags(ref ImGuiNextWindowData self) - { - fixed (ImGuiNextWindowData* pself = &self) - { - ClearFlagsNative((ImGuiNextWindowData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiNextItemData* ImGuiNextItemDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNextItemData*>)funcTable[841])(); - #else - return (ImGuiNextItemData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[841])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiNextItemDataPtr ImGuiNextItemData() - { - ImGuiNextItemDataPtr ret = ImGuiNextItemDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearFlagsNative(ImGuiNextItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiNextItemData*, void>)funcTable[842])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[842])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFlags(ImGuiNextItemDataPtr self) - { - ClearFlagsNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearFlags(ref ImGuiNextItemData self) - { - fixed (ImGuiNextItemData* pself = &self) - { - ClearFlagsNative((ImGuiNextItemData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiLastItemData* ImGuiLastItemDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiLastItemData*>)funcTable[843])(); - #else - return (ImGuiLastItemData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[843])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiLastItemDataPtr ImGuiLastItemData() - { - ImGuiLastItemDataPtr ret = ImGuiLastItemDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStackSizes* ImGuiStackSizesNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*>)funcTable[844])(); - #else - return (ImGuiStackSizes*)((delegate* unmanaged[Cdecl]<nint>)funcTable[844])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStackSizesPtr ImGuiStackSizes() - { - ImGuiStackSizesPtr ret = ImGuiStackSizesNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetToCurrentStateNative(ImGuiStackSizes* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*, void>)funcTable[845])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[845])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetToCurrentState(ImGuiStackSizesPtr self) - { - SetToCurrentStateNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetToCurrentState(ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - SetToCurrentStateNative((ImGuiStackSizes*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CompareWithCurrentStateNative(ImGuiStackSizes* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStackSizes*, void>)funcTable[846])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[846])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CompareWithCurrentState(ImGuiStackSizesPtr self) - { - CompareWithCurrentStateNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CompareWithCurrentState(ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - CompareWithCurrentStateNative((ImGuiStackSizes*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPtrOrIndex* ImGuiPtrOrIndexNative(void* ptr) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<void*, ImGuiPtrOrIndex*>)funcTable[847])(ptr); - #else - return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[847])((nint)ptr); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(void* ptr) - { - ImGuiPtrOrIndexPtr ret = ImGuiPtrOrIndexNative(ptr); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPtrOrIndex* ImGuiPtrOrIndexNative(int index) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, ImGuiPtrOrIndex*>)funcTable[848])(index); - #else - return (ImGuiPtrOrIndex*)((delegate* unmanaged[Cdecl]<int, nint>)funcTable[848])(index); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPtrOrIndexPtr ImGuiPtrOrIndex(int index) - { - ImGuiPtrOrIndexPtr ret = ImGuiPtrOrIndexNative(index); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiInputEvent* ImGuiInputEventNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiInputEvent*>)funcTable[849])(); - #else - return (ImGuiInputEvent*)((delegate* unmanaged[Cdecl]<nint>)funcTable[849])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiInputEventPtr ImGuiInputEvent() - { - ImGuiInputEventPtr ret = ImGuiInputEventNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiListClipperRange FromIndicesNative(int min, int max) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, ImGuiListClipperRange>)funcTable[850])(min, max); - #else - return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl]<int, int, ImGuiListClipperRange>)funcTable[850])(min, max); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiListClipperRange FromIndices(int min, int max) - { - ImGuiListClipperRange ret = FromIndicesNative(min, max); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiListClipperRange FromPositionsNative(float y1, float y2, int offMin, int offMax) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, int, int, ImGuiListClipperRange>)funcTable[851])(y1, y2, offMin, offMax); - #else - return (ImGuiListClipperRange)((delegate* unmanaged[Cdecl]<float, float, int, int, ImGuiListClipperRange>)funcTable[851])(y1, y2, offMin, offMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiListClipperRange FromPositions(float y1, float y2, int offMin, int offMax) - { - ImGuiListClipperRange ret = FromPositionsNative(y1, y2, offMin, offMax); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiListClipperData* ImGuiListClipperDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiListClipperData*>)funcTable[852])(); - #else - return (ImGuiListClipperData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[852])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiListClipperDataPtr ImGuiListClipperData() - { - ImGuiListClipperDataPtr ret = ImGuiListClipperDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImGuiListClipperData* self, ImGuiListClipper* clipper) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiListClipperData*, ImGuiListClipper*, void>)funcTable[853])(self, clipper); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[853])((nint)self, (nint)clipper); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImGuiListClipperDataPtr self, ImGuiListClipperPtr clipper) - { - ResetNative(self, clipper); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImGuiListClipperData self, ImGuiListClipperPtr clipper) - { - fixed (ImGuiListClipperData* pself = &self) - { - ResetNative((ImGuiListClipperData*)pself, clipper); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImGuiListClipperDataPtr self, ref ImGuiListClipper clipper) - { - fixed (ImGuiListClipper* pclipper = &clipper) - { - ResetNative(self, (ImGuiListClipper*)pclipper); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImGuiListClipperData self, ref ImGuiListClipper clipper) - { - fixed (ImGuiListClipperData* pself = &self) - { - fixed (ImGuiListClipper* pclipper = &clipper) - { - ResetNative((ImGuiListClipperData*)pself, (ImGuiListClipper*)pclipper); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiNavItemData* ImGuiNavItemDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*>)funcTable[854])(); - #else - return (ImGuiNavItemData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[854])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiNavItemDataPtr ImGuiNavItemData() - { - ImGuiNavItemDataPtr ret = ImGuiNavItemDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearNative(ImGuiNavItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*, void>)funcTable[855])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[855])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ImGuiNavItemDataPtr self) - { - ClearNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clear(ref ImGuiNavItemData self) - { - fixed (ImGuiNavItemData* pself = &self) - { - ClearNative((ImGuiNavItemData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiOldColumnData* ImGuiOldColumnDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumnData*>)funcTable[856])(); - #else - return (ImGuiOldColumnData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[856])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiOldColumnDataPtr ImGuiOldColumnData() - { - ImGuiOldColumnDataPtr ret = ImGuiOldColumnDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiOldColumns* ImGuiOldColumnsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*>)funcTable[857])(); - #else - return (ImGuiOldColumns*)((delegate* unmanaged[Cdecl]<nint>)funcTable[857])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiOldColumnsPtr ImGuiOldColumns() - { - ImGuiOldColumnsPtr ret = ImGuiOldColumnsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockNode* ImGuiDockNodeNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)funcTable[858])(id); - #else - return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[858])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDockNodePtr ImGuiDockNode(uint id) - { - ImGuiDockNodePtr ret = ImGuiDockNodeNative(id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, void>)funcTable[859])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[859])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiDockNodePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - DestroyNative((ImGuiDockNode*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsRootNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[860])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[860])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsRootNode(ImGuiDockNodePtr self) - { - byte ret = IsRootNodeNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsRootNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsRootNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDockSpaceNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[861])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[861])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDockSpace(ImGuiDockNodePtr self) - { - byte ret = IsDockSpaceNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDockSpace(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsDockSpaceNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsFloatingNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[862])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[862])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsFloatingNode(ImGuiDockNodePtr self) - { - byte ret = IsFloatingNodeNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsFloatingNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsFloatingNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsCentralNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[863])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[863])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsCentralNode(ImGuiDockNodePtr self) - { - byte ret = IsCentralNodeNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsCentralNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsCentralNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsHiddenTabBarNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[864])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[864])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsHiddenTabBar(ImGuiDockNodePtr self) - { - byte ret = IsHiddenTabBarNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsHiddenTabBar(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsHiddenTabBarNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNoTabBarNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[865])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[865])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsNoTabBar(ImGuiDockNodePtr self) - { - byte ret = IsNoTabBarNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsNoTabBar(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsNoTabBarNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsSplitNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[866])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[866])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsSplitNode(ImGuiDockNodePtr self) - { - byte ret = IsSplitNodeNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsSplitNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsSplitNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLeafNodeNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[867])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[867])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLeafNode(ImGuiDockNodePtr self) - { - byte ret = IsLeafNodeNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLeafNode(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsLeafNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsEmptyNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[868])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[868])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsEmpty(ImGuiDockNodePtr self) - { - byte ret = IsEmptyNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsEmpty(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsEmptyNative((ImGuiDockNode*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RectNative(ImRect* pOut, ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiDockNode*, void>)funcTable[869])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[869])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect Rect(ImGuiDockNodePtr self) - { - ImRect ret; - RectNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ImRectPtr pOut, ImGuiDockNodePtr self) - { - RectNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ref ImRect pOut, ImGuiDockNodePtr self) - { - fixed (ImRect* ppOut = &pOut) - { - RectNative((ImRect*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect Rect(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - ImRect ret; - RectNative(&ret, (ImGuiDockNode*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ImRectPtr pOut, ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - RectNative(pOut, (ImGuiDockNode*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ref ImRect pOut, ref ImGuiDockNode self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiDockNode* pself = &self) - { - RectNative((ImRect*)ppOut, (ImGuiDockNode*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetLocalFlagsNative(ImGuiDockNode* self, ImGuiDockNodeFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNodeFlags, void>)funcTable[870])(self, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiDockNodeFlags, void>)funcTable[870])((nint)self, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetLocalFlags(ImGuiDockNodePtr self, ImGuiDockNodeFlags flags) - { - SetLocalFlagsNative(self, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetLocalFlags(ref ImGuiDockNode self, ImGuiDockNodeFlags flags) - { - fixed (ImGuiDockNode* pself = &self) - { - SetLocalFlagsNative((ImGuiDockNode*)pself, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateMergedFlagsNative(ImGuiDockNode* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, void>)funcTable[871])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[871])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateMergedFlags(ImGuiDockNodePtr self) - { - UpdateMergedFlagsNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateMergedFlags(ref ImGuiDockNode self) - { - fixed (ImGuiDockNode* pself = &self) - { - UpdateMergedFlagsNative((ImGuiDockNode*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockContext* ImGuiDockContextNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockContext*>)funcTable[872])(); - #else - return (ImGuiDockContext*)((delegate* unmanaged[Cdecl]<nint>)funcTable[872])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDockContextPtr ImGuiDockContext() - { - ImGuiDockContextPtr ret = ImGuiDockContextNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewportP* ImGuiViewportPNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewportP*>)funcTable[873])(); - #else - return (ImGuiViewportP*)((delegate* unmanaged[Cdecl]<nint>)funcTable[873])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiViewportPPtr ImGuiViewportP() - { - ImGuiViewportPPtr ret = ImGuiViewportPNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)funcTable[874])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[874])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiViewportPPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - DestroyNative((ImGuiViewportP*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearRequestFlagsNative(ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)funcTable[875])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[875])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearRequestFlags(ImGuiViewportPPtr self) - { - ClearRequestFlagsNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearRequestFlags(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ClearRequestFlagsNative((ImGuiViewportP*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcWorkRectPosNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportP*, Vector2, void>)funcTable[876])(pOut, self, offMin); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, Vector2, void>)funcTable[876])((nint)pOut, (nint)self, offMin); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcWorkRectPos(ImGuiViewportPPtr self, Vector2 offMin) - { - Vector2 ret; - CalcWorkRectPosNative(&ret, self, offMin); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectPos(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin) - { - CalcWorkRectPosNative(pOut, self, offMin); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectPos(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin) - { - fixed (Vector2* ppOut = &pOut) - { - CalcWorkRectPosNative((Vector2*)ppOut, self, offMin); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcWorkRectPos(ref ImGuiViewportP self, Vector2 offMin) - { - fixed (ImGuiViewportP* pself = &self) - { - Vector2 ret; - CalcWorkRectPosNative(&ret, (ImGuiViewportP*)pself, offMin); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectPos(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectPosNative(pOut, (ImGuiViewportP*)pself, offMin); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectPos(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectPosNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcWorkRectSizeNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportP*, Vector2, Vector2, void>)funcTable[877])(pOut, self, offMin, offMax); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, Vector2, Vector2, void>)funcTable[877])((nint)pOut, (nint)self, offMin, offMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcWorkRectSize(ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - Vector2 ret; - CalcWorkRectSizeNative(&ret, self, offMin, offMax); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectSize(Vector2* pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - CalcWorkRectSizeNative(pOut, self, offMin, offMax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectSize(ref Vector2 pOut, ImGuiViewportPPtr self, Vector2 offMin, Vector2 offMax) - { - fixed (Vector2* ppOut = &pOut) - { - CalcWorkRectSizeNative((Vector2*)ppOut, self, offMin, offMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcWorkRectSize(ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (ImGuiViewportP* pself = &self) - { - Vector2 ret; - CalcWorkRectSizeNative(&ret, (ImGuiViewportP*)pself, offMin, offMax); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectSize(Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectSizeNative(pOut, (ImGuiViewportP*)pself, offMin, offMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWorkRectSize(ref Vector2 pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - CalcWorkRectSizeNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin, offMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateWorkRectNative(ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)funcTable[878])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[878])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateWorkRect(ImGuiViewportPPtr self) - { - UpdateWorkRectNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateWorkRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - UpdateWorkRectNative((ImGuiViewportP*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetMainRectNative(ImRect* pOut, ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiViewportP*, void>)funcTable[879])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[879])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetMainRect(ImGuiViewportPPtr self) - { - ImRect ret; - GetMainRectNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMainRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - GetMainRectNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMainRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - GetMainRectNative((ImRect*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetMainRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - GetMainRectNative(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMainRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - GetMainRectNative(pOut, (ImGuiViewportP*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetMainRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - GetMainRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWorkRectNative(ImRect* pOut, ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiViewportP*, void>)funcTable[880])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[880])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetWorkRect(ImGuiViewportPPtr self) - { - ImRect ret; - GetWorkRectNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - GetWorkRectNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - GetWorkRectNative((ImRect*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetWorkRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - GetWorkRectNative(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - GetWorkRectNative(pOut, (ImGuiViewportP*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWorkRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - GetWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetBuildWorkRectNative(ImRect* pOut, ImGuiViewportP* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiViewportP*, void>)funcTable[881])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[881])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetBuildWorkRect(ImGuiViewportPPtr self) - { - ImRect ret; - GetBuildWorkRectNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBuildWorkRect(ImRectPtr pOut, ImGuiViewportPPtr self) - { - GetBuildWorkRectNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBuildWorkRect(ref ImRect pOut, ImGuiViewportPPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - GetBuildWorkRectNative((ImRect*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetBuildWorkRect(ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - ImRect ret; - GetBuildWorkRectNative(&ret, (ImGuiViewportP*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBuildWorkRect(ImRectPtr pOut, ref ImGuiViewportP self) - { - fixed (ImGuiViewportP* pself = &self) - { - GetBuildWorkRectNative(pOut, (ImGuiViewportP*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetBuildWorkRect(ref ImRect pOut, ref ImGuiViewportP self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiViewportP* pself = &self) - { - GetBuildWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* ImGuiWindowSettingsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*>)funcTable[882])(); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl]<nint>)funcTable[882])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr ImGuiWindowSettings() - { - ImGuiWindowSettingsPtr ret = ImGuiWindowSettingsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetNameNative(ImGuiWindowSettings* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*, byte*>)funcTable[883])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[883])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetName(ImGuiWindowSettingsPtr self) - { - byte* ret = GetNameNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetNameS(ImGuiWindowSettingsPtr self) - { - string ret = Utils.DecodeStringUTF8(GetNameNative(self)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetName(ref ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* pself = &self) - { - byte* ret = GetNameNative((ImGuiWindowSettings*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetNameS(ref ImGuiWindowSettings self) - { - fixed (ImGuiWindowSettings* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetNameNative((ImGuiWindowSettings*)pself)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiSettingsHandler* ImGuiSettingsHandlerNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiSettingsHandler*>)funcTable[884])(); - #else - return (ImGuiSettingsHandler*)((delegate* unmanaged[Cdecl]<nint>)funcTable[884])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiSettingsHandlerPtr ImGuiSettingsHandler() - { - ImGuiSettingsHandlerPtr ret = ImGuiSettingsHandlerNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiMetricsConfig* ImGuiMetricsConfigNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMetricsConfig*>)funcTable[885])(); - #else - return (ImGuiMetricsConfig*)((delegate* unmanaged[Cdecl]<nint>)funcTable[885])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiMetricsConfigPtr ImGuiMetricsConfig() - { - ImGuiMetricsConfigPtr ret = ImGuiMetricsConfigNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStackLevelInfo* ImGuiStackLevelInfoNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStackLevelInfo*>)funcTable[886])(); - #else - return (ImGuiStackLevelInfo*)((delegate* unmanaged[Cdecl]<nint>)funcTable[886])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStackLevelInfoPtr ImGuiStackLevelInfo() - { - ImGuiStackLevelInfoPtr ret = ImGuiStackLevelInfoNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiStackTool* ImGuiStackToolNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiStackTool*>)funcTable[887])(); - #else - return (ImGuiStackTool*)((delegate* unmanaged[Cdecl]<nint>)funcTable[887])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiStackToolPtr ImGuiStackTool() - { - ImGuiStackToolPtr ret = ImGuiStackToolNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiContextHook* ImGuiContextHookNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiContextHook*>)funcTable[888])(); - #else - return (ImGuiContextHook*)((delegate* unmanaged[Cdecl]<nint>)funcTable[888])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiContextHookPtr ImGuiContextHook() - { - ImGuiContextHookPtr ret = ImGuiContextHookNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiContext* ImGuiContextNative(ImFontAtlas* sharedFontAtlas) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImGuiContext*>)funcTable[889])(sharedFontAtlas); - #else - return (ImGuiContext*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[889])((nint)sharedFontAtlas); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiContextPtr ImGuiContext(ImFontAtlasPtr sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiContextNative(sharedFontAtlas); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiContextPtr ImGuiContext(ref ImFontAtlas sharedFontAtlas) - { - fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) - { - ImGuiContextPtr ret = ImGuiContextNative((ImFontAtlas*)psharedFontAtlas); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* ImGuiWindowNative(ImGuiContext* context, byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiContext*, byte*, ImGuiWindow*>)funcTable[890])(context, name); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[890])((nint)context, (nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, byte* name) - { - ImGuiWindowPtr ret = ImGuiWindowNative(context, name); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, byte* name) - { - fixed (ImGuiContext* pcontext = &context) - { - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, name); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ref byte name) - { - fixed (byte* pname = &name) - { - ImGuiWindowPtr ret = ImGuiWindowNative(context, (byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - ImGuiWindowPtr ret = ImGuiWindowNative(context, (byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ImGuiContextPtr context, string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowPtr ret = ImGuiWindowNative(context, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, ref byte name) - { - fixed (ImGuiContext* pcontext = &context) - { - fixed (byte* pname = &name) - { - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, (byte*)pname); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, ReadOnlySpan<byte> name) - { - fixed (ImGuiContext* pcontext = &context) - { - fixed (byte* pname = name) - { - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, (byte*)pname); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr ImGuiWindow(ref ImGuiContext context, string name) - { - fixed (ImGuiContext* pcontext = &context) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowPtr ret = ImGuiWindowNative((ImGuiContext*)pcontext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[891])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[891])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiWindowPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - DestroyNative((ImGuiWindow*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(ImGuiWindow* self, byte* str, byte* strEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte*, byte*, uint>)funcTable[892])(self, str, strEnd); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nint, nint, uint>)funcTable[892])((nint)self, (nint)str, (nint)strEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, byte* str, byte* strEnd) - { - uint ret = GetIDNative(self, str, strEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, byte* str) - { - uint ret = GetIDNative(self, str, (byte*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, byte* str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, strEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, byte* str) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ref byte str, byte* strEnd) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative(self, (byte*)pstr, strEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ref byte str) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative(self, (byte*)pstr, strEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan<byte> str) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, string str, byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ref byte str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, strEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ref byte str) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan<byte> str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, strEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan<byte> str) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, string str, byte* strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, string str) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, byte* str, ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, str, (byte*)pstrEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, str, (byte*)pstrEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, byte* str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, byte* str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, byte* str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, byte* str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ref byte str, ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, string str, string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - uint ret = GetIDNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ref byte str, string strEnd) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, ReadOnlySpan<byte> str, string strEnd) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative(self, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, string str, ref byte strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, string str, ReadOnlySpan<byte> strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative(self, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ref byte str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan<byte> str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, string str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ref byte str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ref byte str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan<byte> str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, ReadOnlySpan<byte> str, string strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, string str, ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = &strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, string str, ReadOnlySpan<byte> strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrEnd = strEnd) - { - uint ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)pstrEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(ImGuiWindow* self, void* ptr) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void*, uint>)funcTable[893])(self, ptr); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nint, uint>)funcTable[893])((nint)self, (nint)ptr); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, void* ptr) - { - uint ret = GetIDNative(self, ptr); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, void* ptr) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, ptr); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDNative(ImGuiWindow* self, int n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, int, uint>)funcTable[894])(self, n); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[894])((nint)self, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ImGuiWindowPtr self, int n) - { - uint ret = GetIDNative(self, n); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetID(ref ImGuiWindow self, int n) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDNative((ImGuiWindow*)pself, n); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDFromRectangleNative(ImGuiWindow* self, ImRect rAbs) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, uint>)funcTable[895])(self, rAbs); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, ImRect, uint>)funcTable[895])((nint)self, rAbs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDFromRectangle(ImGuiWindowPtr self, ImRect rAbs) - { - uint ret = GetIDFromRectangleNative(self, rAbs); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDFromRectangle(ref ImGuiWindow self, ImRect rAbs) - { - fixed (ImGuiWindow* pself = &self) - { - uint ret = GetIDFromRectangleNative((ImGuiWindow*)pself, rAbs); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RectNative(ImRect* pOut, ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)funcTable[896])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[896])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect Rect(ImGuiWindowPtr self) - { - ImRect ret; - RectNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ImRectPtr pOut, ImGuiWindowPtr self) - { - RectNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - RectNative((ImRect*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect Rect(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - RectNative(&ret, (ImGuiWindow*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - RectNative(pOut, (ImGuiWindow*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Rect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - RectNative((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float CalcFontSizeNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float>)funcTable[897])(self); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float>)funcTable[897])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float CalcFontSize(ImGuiWindowPtr self) - { - float ret = CalcFontSizeNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float CalcFontSize(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = CalcFontSizeNative((ImGuiWindow*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float TitleBarHeightNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float>)funcTable[898])(self); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float>)funcTable[898])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TitleBarHeight(ImGuiWindowPtr self) - { - float ret = TitleBarHeightNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TitleBarHeight(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = TitleBarHeightNative((ImGuiWindow*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TitleBarRectNative(ImRect* pOut, ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)funcTable[899])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[899])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect TitleBarRect(ImGuiWindowPtr self) - { - ImRect ret; - TitleBarRectNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TitleBarRect(ImRectPtr pOut, ImGuiWindowPtr self) - { - TitleBarRectNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TitleBarRect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - TitleBarRectNative((ImRect*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect TitleBarRect(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - TitleBarRectNative(&ret, (ImGuiWindow*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TitleBarRect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - TitleBarRectNative(pOut, (ImGuiWindow*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TitleBarRect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - TitleBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float MenuBarHeightNative(ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float>)funcTable[900])(self); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float>)funcTable[900])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float MenuBarHeight(ImGuiWindowPtr self) - { - float ret = MenuBarHeightNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float MenuBarHeight(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = MenuBarHeightNative((ImGuiWindow*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MenuBarRectNative(ImRect* pOut, ImGuiWindow* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)funcTable[901])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[901])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect MenuBarRect(ImGuiWindowPtr self) - { - ImRect ret; - MenuBarRectNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MenuBarRect(ImRectPtr pOut, ImGuiWindowPtr self) - { - MenuBarRectNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MenuBarRect(ref ImRect pOut, ImGuiWindowPtr self) - { - fixed (ImRect* ppOut = &pOut) - { - MenuBarRectNative((ImRect*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect MenuBarRect(ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - ImRect ret; - MenuBarRectNative(&ret, (ImGuiWindow*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MenuBarRect(ImRectPtr pOut, ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - MenuBarRectNative(pOut, (ImGuiWindow*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MenuBarRect(ref ImRect pOut, ref ImGuiWindow self) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pself = &self) - { - MenuBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabItem* ImGuiTabItemNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabItem*>)funcTable[902])(); - #else - return (ImGuiTabItem*)((delegate* unmanaged[Cdecl]<nint>)funcTable[902])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTabItemPtr ImGuiTabItem() - { - ImGuiTabItemPtr ret = ImGuiTabItemNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabBar* ImGuiTabBarNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*>)funcTable[903])(); - #else - return (ImGuiTabBar*)((delegate* unmanaged[Cdecl]<nint>)funcTable[903])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTabBarPtr ImGuiTabBar() - { - ImGuiTabBarPtr ret = ImGuiTabBarNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetTabOrderNative(ImGuiTabBar* self, ImGuiTabItem* tab) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, int>)funcTable[904])(self, tab); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, int>)funcTable[904])((nint)self, (nint)tab); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetTabOrder(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) - { - int ret = GetTabOrderNative(self, tab); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetTabOrder(ref ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* pself = &self) - { - int ret = GetTabOrderNative((ImGuiTabBar*)pself, tab); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetTabOrder(ImGuiTabBarPtr self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = GetTabOrderNative(self, (ImGuiTabItem*)ptab); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetTabOrder(ref ImGuiTabBar self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* pself = &self) - { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = GetTabOrderNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTabNameNative(ImGuiTabBar* self, ImGuiTabItem* tab) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, byte*>)funcTable[905])(self, tab); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[905])((nint)self, (nint)tab); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetTabName(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) - { - byte* ret = GetTabNameNative(self, tab); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTabNameS(ImGuiTabBarPtr self, ImGuiTabItemPtr tab) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative(self, tab)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetTabName(ref ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* pself = &self) - { - byte* ret = GetTabNameNative((ImGuiTabBar*)pself, tab); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTabNameS(ref ImGuiTabBar self, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative((ImGuiTabBar*)pself, tab)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetTabName(ImGuiTabBarPtr self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - byte* ret = GetTabNameNative(self, (ImGuiTabItem*)ptab); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTabNameS(ImGuiTabBarPtr self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative(self, (ImGuiTabItem*)ptab)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetTabName(ref ImGuiTabBar self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* pself = &self) - { - fixed (ImGuiTabItem* ptab = &tab) - { - byte* ret = GetTabNameNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTabNameS(ref ImGuiTabBar self, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* pself = &self) - { - fixed (ImGuiTabItem* ptab = &tab) - { - string ret = Utils.DecodeStringUTF8(GetTabNameNative((ImGuiTabBar*)pself, (ImGuiTabItem*)ptab)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumn* ImGuiTableColumnNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumn*>)funcTable[906])(); - #else - return (ImGuiTableColumn*)((delegate* unmanaged[Cdecl]<nint>)funcTable[906])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableColumnPtr ImGuiTableColumn() - { - ImGuiTableColumnPtr ret = ImGuiTableColumnNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableInstanceData* ImGuiTableInstanceDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableInstanceData*>)funcTable[907])(); - #else - return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[907])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableInstanceDataPtr ImGuiTableInstanceData() - { - ImGuiTableInstanceDataPtr ret = ImGuiTableInstanceDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTable* ImGuiTableNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*>)funcTable[908])(); - #else - return (ImGuiTable*)((delegate* unmanaged[Cdecl]<nint>)funcTable[908])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTablePtr ImGuiTable() - { - ImGuiTablePtr ret = ImGuiTableNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImGuiTable* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[909])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[909])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImGuiTablePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImGuiTable self) - { - fixed (ImGuiTable* pself = &self) - { - DestroyNative((ImGuiTable*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableTempData* ImGuiTableTempDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableTempData*>)funcTable[910])(); - #else - return (ImGuiTableTempData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[910])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableTempDataPtr ImGuiTableTempData() - { - ImGuiTableTempDataPtr ret = ImGuiTableTempDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumnSettings* ImGuiTableColumnSettingsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumnSettings*>)funcTable[911])(); - #else - return (ImGuiTableColumnSettings*)((delegate* unmanaged[Cdecl]<nint>)funcTable[911])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableColumnSettingsPtr ImGuiTableColumnSettings() - { - ImGuiTableColumnSettingsPtr ret = ImGuiTableColumnSettingsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* ImGuiTableSettingsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*>)funcTable[912])(); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl]<nint>)funcTable[912])(); - #endif - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs deleted file mode 100644 index bf1832ee3..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.007.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableSettingsPtr ImGuiTableSettings() - { - ImGuiTableSettingsPtr ret = ImGuiTableSettingsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableColumnSettings* GetColumnSettingsNative(ImGuiTableSettings* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*, ImGuiTableColumnSettings*>)funcTable[913])(self); - #else - return (ImGuiTableColumnSettings*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[913])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableColumnSettingsPtr GetColumnSettings(ImGuiTableSettingsPtr self) - { - ImGuiTableColumnSettingsPtr ret = GetColumnSettingsNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableColumnSettingsPtr GetColumnSettings(ref ImGuiTableSettings self) - { - fixed (ImGuiTableSettings* pself = &self) - { - ImGuiTableColumnSettingsPtr ret = GetColumnSettingsNative((ImGuiTableSettings*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* GetCurrentWindowReadNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)funcTable[914])(); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<nint>)funcTable[914])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr GetCurrentWindowRead() - { - ImGuiWindowPtr ret = GetCurrentWindowReadNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* GetCurrentWindowNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)funcTable[915])(); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<nint>)funcTable[915])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr GetCurrentWindow() - { - ImGuiWindowPtr ret = GetCurrentWindowNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* FindWindowByIDNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiWindow*>)funcTable[916])(id); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[916])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr FindWindowByID(uint id) - { - ImGuiWindowPtr ret = FindWindowByIDNative(id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* FindWindowByNameNative(byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindow*>)funcTable[917])(name); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[917])((nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr FindWindowByName(byte* name) - { - ImGuiWindowPtr ret = FindWindowByNameNative(name); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr FindWindowByName(ref byte name) - { - fixed (byte* pname = &name) - { - ImGuiWindowPtr ret = FindWindowByNameNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr FindWindowByName(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - ImGuiWindowPtr ret = FindWindowByNameNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr FindWindowByName(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowPtr ret = FindWindowByNameNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateWindowParentAndRootLinksNative(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parentWindow) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindowFlags, ImGuiWindow*, void>)funcTable[918])(window, flags, parentWindow); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiWindowFlags, nint, void>)funcTable[918])((nint)window, flags, (nint)parentWindow); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) - { - UpdateWindowParentAndRootLinksNative(window, flags, parentWindow); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, parentWindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateWindowParentAndRootLinks(ImGuiWindowPtr window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) - { - fixed (ImGuiWindow* pparentWindow = &parentWindow) - { - UpdateWindowParentAndRootLinksNative(window, flags, (ImGuiWindow*)pparentWindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateWindowParentAndRootLinks(ref ImGuiWindow window, ImGuiWindowFlags flags, ref ImGuiWindow parentWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* pparentWindow = &parentWindow) - { - UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, (ImGuiWindow*)pparentWindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcWindowNextAutoFitSizeNative(Vector2* pOut, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiWindow*, void>)funcTable[919])(pOut, window); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[919])((nint)pOut, (nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcWindowNextAutoFitSize(ImGuiWindowPtr window) - { - Vector2 ret; - CalcWindowNextAutoFitSizeNative(&ret, window); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindowPtr window) - { - CalcWindowNextAutoFitSizeNative(pOut, window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ImGuiWindowPtr window) - { - fixed (Vector2* ppOut = &pOut) - { - CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, window); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcWindowNextAutoFitSize(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - CalcWindowNextAutoFitSizeNative(&ret, (ImGuiWindow*)pwindow); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWindowNextAutoFitSize(Vector2* pOut, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - CalcWindowNextAutoFitSizeNative(pOut, (ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcWindowNextAutoFitSize(ref Vector2 pOut, ref ImGuiWindow window) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowChildOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent, byte popupHierarchy, byte dockHierarchy) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, byte, byte, byte>)funcTable[920])(window, potentialParent, popupHierarchy, dockHierarchy); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte, byte, byte>)funcTable[920])((nint)window, (nint)potentialParent, popupHierarchy, dockHierarchy); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowChildOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) - { - byte ret = IsWindowChildOfNative(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowChildOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowChildOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = IsWindowChildOfNative(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowChildOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowWithinBeginStackOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, byte>)funcTable[921])(window, potentialParent); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[921])((nint)window, (nint)potentialParent); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ImGuiWindowPtr potentialParent) - { - byte ret = IsWindowWithinBeginStackOfNative(window, potentialParent); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ImGuiWindowPtr potentialParent) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, potentialParent); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowWithinBeginStackOf(ImGuiWindowPtr window, ref ImGuiWindow potentialParent) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = IsWindowWithinBeginStackOfNative(window, (ImGuiWindow*)ppotentialParent); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowWithinBeginStackOf(ref ImGuiWindow window, ref ImGuiWindow potentialParent) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) - { - byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowAboveNative(ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, byte>)funcTable[922])(potentialAbove, potentialBelow); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[922])((nint)potentialAbove, (nint)potentialBelow); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ImGuiWindowPtr potentialBelow) - { - byte ret = IsWindowAboveNative(potentialAbove, potentialBelow); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ImGuiWindowPtr potentialBelow) - { - fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) - { - byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, potentialBelow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ref ImGuiWindow potentialBelow) - { - fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) - { - byte ret = IsWindowAboveNative(potentialAbove, (ImGuiWindow*)ppotentialBelow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowAbove(ref ImGuiWindow potentialAbove, ref ImGuiWindow potentialBelow) - { - fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) - { - fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) - { - byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, (ImGuiWindow*)ppotentialBelow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsWindowNavFocusableNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte>)funcTable[923])(window); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[923])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowNavFocusable(ImGuiWindowPtr window) - { - byte ret = IsWindowNavFocusableNative(window); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsWindowNavFocusable(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = IsWindowNavFocusableNative((ImGuiWindow*)pwindow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowPosNative(ImGuiWindow* window, Vector2 pos, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, Vector2, ImGuiCond, void>)funcTable[924])(window, pos, cond); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiCond, void>)funcTable[924])((nint)window, pos, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos, ImGuiCond cond) - { - SetWindowPosNative(window, pos, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ImGuiWindowPtr window, Vector2 pos) - { - SetWindowPosNative(window, pos, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowPosNative((ImGuiWindow*)pwindow, pos, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowPos(ref ImGuiWindow window, Vector2 pos) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowPosNative((ImGuiWindow*)pwindow, pos, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowSizeNative(ImGuiWindow* window, Vector2 size, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, Vector2, ImGuiCond, void>)funcTable[925])(window, size, cond); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiCond, void>)funcTable[925])((nint)window, size, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size, ImGuiCond cond) - { - SetWindowSizeNative(window, size, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ImGuiWindowPtr window, Vector2 size) - { - SetWindowSizeNative(window, size, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ref ImGuiWindow window, Vector2 size, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowSizeNative((ImGuiWindow*)pwindow, size, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowSize(ref ImGuiWindow window, Vector2 size) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowSizeNative((ImGuiWindow*)pwindow, size, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowCollapsedNative(ImGuiWindow* window, byte collapsed, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte, ImGuiCond, void>)funcTable[926])(window, collapsed, cond); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, ImGuiCond, void>)funcTable[926])((nint)window, collapsed, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed, ImGuiCond cond) - { - SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ImGuiWindowPtr window, bool collapsed) - { - SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowCollapsed(ref ImGuiWindow window, bool collapsed) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowHitTestHoleNative(ImGuiWindow* window, Vector2 pos, Vector2 size) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, Vector2, Vector2, void>)funcTable[927])(window, pos, size); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, void>)funcTable[927])((nint)window, pos, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowHitTestHole(ImGuiWindowPtr window, Vector2 pos, Vector2 size) - { - SetWindowHitTestHoleNative(window, pos, size); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowHitTestHole(ref ImGuiWindow window, Vector2 pos, Vector2 size) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowHitTestHoleNative((ImGuiWindow*)pwindow, pos, size); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void WindowRectAbsToRelNative(ImRect* pOut, ImGuiWindow* window, ImRect r) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, ImRect, void>)funcTable[928])(pOut, window, r); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImRect, void>)funcTable[928])((nint)pOut, (nint)window, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect WindowRectAbsToRel(ImGuiWindowPtr window, ImRect r) - { - ImRect ret; - WindowRectAbsToRelNative(&ret, window, r); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectAbsToRel(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) - { - WindowRectAbsToRelNative(pOut, window, r); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectAbsToRel(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - WindowRectAbsToRelNative((ImRect*)ppOut, window, r); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect WindowRectAbsToRel(ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - WindowRectAbsToRelNative(&ret, (ImGuiWindow*)pwindow, r); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectAbsToRel(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectAbsToRelNative(pOut, (ImGuiWindow*)pwindow, r); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectAbsToRel(ref ImRect pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectAbsToRelNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void WindowRectRelToAbsNative(ImRect* pOut, ImGuiWindow* window, ImRect r) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, ImRect, void>)funcTable[929])(pOut, window, r); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImRect, void>)funcTable[929])((nint)pOut, (nint)window, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect WindowRectRelToAbs(ImGuiWindowPtr window, ImRect r) - { - ImRect ret; - WindowRectRelToAbsNative(&ret, window, r); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectRelToAbs(ImRectPtr pOut, ImGuiWindowPtr window, ImRect r) - { - WindowRectRelToAbsNative(pOut, window, r); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectRelToAbs(ref ImRect pOut, ImGuiWindowPtr window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - WindowRectRelToAbsNative((ImRect*)ppOut, window, r); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect WindowRectRelToAbs(ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - WindowRectRelToAbsNative(&ret, (ImGuiWindow*)pwindow, r); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectRelToAbs(ImRectPtr pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectRelToAbsNative(pOut, (ImGuiWindow*)pwindow, r); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void WindowRectRelToAbs(ref ImRect pOut, ref ImGuiWindow window, ImRect r) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectRelToAbsNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FocusWindowNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[930])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[930])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FocusWindow(ImGuiWindowPtr window) - { - FocusWindowNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FocusWindow(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - FocusWindowNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FocusTopMostWindowUnderOneNative(ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, void>)funcTable[931])(underThisWindow, ignoreWindow); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[931])((nint)underThisWindow, (nint)ignoreWindow); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ImGuiWindowPtr ignoreWindow) - { - FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ImGuiWindowPtr ignoreWindow) - { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, ignoreWindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FocusTopMostWindowUnderOne(ImGuiWindowPtr underThisWindow, ref ImGuiWindow ignoreWindow) - { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FocusTopMostWindowUnderOne(ref ImGuiWindow underThisWindow, ref ImGuiWindow ignoreWindow) - { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, (ImGuiWindow*)pignoreWindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BringWindowToFocusFrontNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[932])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[932])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToFocusFront(ImGuiWindowPtr window) - { - BringWindowToFocusFrontNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToFocusFront(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToFocusFrontNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BringWindowToDisplayFrontNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[933])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[933])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayFront(ImGuiWindowPtr window) - { - BringWindowToDisplayFrontNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayFront(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToDisplayFrontNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BringWindowToDisplayBackNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[934])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[934])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayBack(ImGuiWindowPtr window) - { - BringWindowToDisplayBackNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayBack(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToDisplayBackNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BringWindowToDisplayBehindNative(ImGuiWindow* window, ImGuiWindow* aboveWindow) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*, void>)funcTable[935])(window, aboveWindow); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[935])((nint)window, (nint)aboveWindow); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ImGuiWindowPtr aboveWindow) - { - BringWindowToDisplayBehindNative(window, aboveWindow); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ImGuiWindowPtr aboveWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, aboveWindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayBehind(ImGuiWindowPtr window, ref ImGuiWindow aboveWindow) - { - fixed (ImGuiWindow* paboveWindow = &aboveWindow) - { - BringWindowToDisplayBehindNative(window, (ImGuiWindow*)paboveWindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BringWindowToDisplayBehind(ref ImGuiWindow window, ref ImGuiWindow aboveWindow) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* paboveWindow = &aboveWindow) - { - BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, (ImGuiWindow*)paboveWindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int FindWindowDisplayIndexNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, int>)funcTable[936])(window); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[936])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FindWindowDisplayIndex(ImGuiWindowPtr window) - { - int ret = FindWindowDisplayIndexNative(window); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FindWindowDisplayIndex(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - int ret = FindWindowDisplayIndexNative((ImGuiWindow*)pwindow); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStackNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiWindow*>)funcTable[937])(window); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[937])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindowPtr window) - { - ImGuiWindowPtr ret = FindBottomMostVisibleWindowWithinBeginStackNative(window); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiWindowPtr ret = FindBottomMostVisibleWindowWithinBeginStackNative((ImGuiWindow*)pwindow); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCurrentFontNative(ImFont* font) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, void>)funcTable[938])(font); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[938])((nint)font); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentFont(ImFontPtr font) - { - SetCurrentFontNative(font); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentFont(ref ImFont font) - { - fixed (ImFont* pfont = &font) - { - SetCurrentFontNative((ImFont*)pfont); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFont* GetDefaultFontNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFont*>)funcTable[939])(); - #else - return (ImFont*)((delegate* unmanaged[Cdecl]<nint>)funcTable[939])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontPtr GetDefaultFont() - { - ImFontPtr ret = GetDefaultFontNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetForegroundDrawListNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImDrawList*>)funcTable[940])(window); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[940])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetForegroundDrawList(ImGuiWindowPtr window) - { - ImDrawListPtr ret = GetForegroundDrawListNative(window); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetForegroundDrawList(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImDrawListPtr ret = GetForegroundDrawListNative((ImGuiWindow*)pwindow); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void InitializeNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[941])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[941])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Initialize() - { - InitializeNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShutdownNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[942])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[942])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Shutdown() - { - ShutdownNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateInputEventsNative(byte trickleFastInputs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[943])(trickleFastInputs); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[943])(trickleFastInputs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateInputEvents(bool trickleFastInputs) - { - UpdateInputEventsNative(trickleFastInputs ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateHoveredWindowAndCaptureFlagsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[944])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[944])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateHoveredWindowAndCaptureFlags() - { - UpdateHoveredWindowAndCaptureFlagsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StartMouseMovingWindowNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[945])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[945])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StartMouseMovingWindow(ImGuiWindowPtr window) - { - StartMouseMovingWindowNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StartMouseMovingWindow(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - StartMouseMovingWindowNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StartMouseMovingWindowOrNodeNative(ImGuiWindow* window, ImGuiDockNode* node, byte undockFloatingNode) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiDockNode*, byte, void>)funcTable[946])(window, node, undockFloatingNode); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, byte, void>)funcTable[946])((nint)window, (nint)node, undockFloatingNode); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ImGuiDockNodePtr node, bool undockFloatingNode) - { - StartMouseMovingWindowOrNodeNative(window, node, undockFloatingNode ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ImGuiDockNodePtr node, bool undockFloatingNode) - { - fixed (ImGuiWindow* pwindow = &window) - { - StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, node, undockFloatingNode ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StartMouseMovingWindowOrNode(ImGuiWindowPtr window, ref ImGuiDockNode node, bool undockFloatingNode) - { - fixed (ImGuiDockNode* pnode = &node) - { - StartMouseMovingWindowOrNodeNative(window, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StartMouseMovingWindowOrNode(ref ImGuiWindow window, ref ImGuiDockNode node, bool undockFloatingNode) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiDockNode* pnode = &node) - { - StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateMouseMovingWindowNewFrameNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[947])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[947])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateMouseMovingWindowNewFrame() - { - UpdateMouseMovingWindowNewFrameNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateMouseMovingWindowEndFrameNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[948])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[948])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateMouseMovingWindowEndFrame() - { - UpdateMouseMovingWindowEndFrameNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint AddContextHookNative(ImGuiContext* context, ImGuiContextHook* hook) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiContextHook*, uint>)funcTable[949])(context, hook); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nint, uint>)funcTable[949])((nint)context, (nint)hook); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint AddContextHook(ImGuiContextPtr context, ImGuiContextHookPtr hook) - { - uint ret = AddContextHookNative(context, hook); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint AddContextHook(ref ImGuiContext context, ImGuiContextHookPtr hook) - { - fixed (ImGuiContext* pcontext = &context) - { - uint ret = AddContextHookNative((ImGuiContext*)pcontext, hook); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint AddContextHook(ImGuiContextPtr context, ref ImGuiContextHook hook) - { - fixed (ImGuiContextHook* phook = &hook) - { - uint ret = AddContextHookNative(context, (ImGuiContextHook*)phook); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint AddContextHook(ref ImGuiContext context, ref ImGuiContextHook hook) - { - fixed (ImGuiContext* pcontext = &context) - { - fixed (ImGuiContextHook* phook = &hook) - { - uint ret = AddContextHookNative((ImGuiContext*)pcontext, (ImGuiContextHook*)phook); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RemoveContextHookNative(ImGuiContext* context, uint hookToRemove) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, uint, void>)funcTable[950])(context, hookToRemove); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[950])((nint)context, hookToRemove); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RemoveContextHook(ImGuiContextPtr context, uint hookToRemove) - { - RemoveContextHookNative(context, hookToRemove); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RemoveContextHook(ref ImGuiContext context, uint hookToRemove) - { - fixed (ImGuiContext* pcontext = &context) - { - RemoveContextHookNative((ImGuiContext*)pcontext, hookToRemove); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CallContextHooksNative(ImGuiContext* context, ImGuiContextHookType type) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiContextHookType, void>)funcTable[951])(context, type); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiContextHookType, void>)funcTable[951])((nint)context, type); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CallContextHooks(ImGuiContextPtr context, ImGuiContextHookType type) - { - CallContextHooksNative(context, type); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CallContextHooks(ref ImGuiContext context, ImGuiContextHookType type) - { - fixed (ImGuiContext* pcontext = &context) - { - CallContextHooksNative((ImGuiContext*)pcontext, type); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TranslateWindowsInViewportNative(ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, Vector2, Vector2, void>)funcTable[952])(viewport, oldPos, newPos); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, void>)funcTable[952])((nint)viewport, oldPos, newPos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TranslateWindowsInViewport(ImGuiViewportPPtr viewport, Vector2 oldPos, Vector2 newPos) - { - TranslateWindowsInViewportNative(viewport, oldPos, newPos); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TranslateWindowsInViewport(ref ImGuiViewportP viewport, Vector2 oldPos, Vector2 newPos) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - TranslateWindowsInViewportNative((ImGuiViewportP*)pviewport, oldPos, newPos); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScaleWindowsInViewportNative(ImGuiViewportP* viewport, float scale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, float, void>)funcTable[953])(viewport, scale); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[953])((nint)viewport, scale); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScaleWindowsInViewport(ImGuiViewportPPtr viewport, float scale) - { - ScaleWindowsInViewportNative(viewport, scale); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScaleWindowsInViewport(ref ImGuiViewportP viewport, float scale) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ScaleWindowsInViewportNative((ImGuiViewportP*)pviewport, scale); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyPlatformWindowNative(ImGuiViewportP* viewport) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)funcTable[954])(viewport); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[954])((nint)viewport); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyPlatformWindow(ImGuiViewportPPtr viewport) - { - DestroyPlatformWindowNative(viewport); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyPlatformWindow(ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DestroyPlatformWindowNative((ImGuiViewportP*)pviewport); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiViewportP*, void>)funcTable[955])(window, viewport); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[955])((nint)window, (nint)viewport); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) - { - SetWindowViewportNative(window, viewport); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowViewportNative((ImGuiWindow*)pwindow, viewport); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetWindowViewportNative(window, (ImGuiViewportP*)pviewport); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetWindowViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCurrentViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiViewportP*, void>)funcTable[956])(window, viewport); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[956])((nint)window, (nint)viewport); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) - { - SetCurrentViewportNative(window, viewport); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentViewport(ref ImGuiWindow window, ImGuiViewportPPtr viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetCurrentViewportNative((ImGuiWindow*)pwindow, viewport); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentViewport(ImGuiWindowPtr window, ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetCurrentViewportNative(window, (ImGuiViewportP*)pviewport); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentViewport(ref ImGuiWindow window, ref ImGuiViewportP viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetCurrentViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiPlatformMonitor* GetViewportPlatformMonitorNative(ImGuiViewport* viewport) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiViewport*, ImGuiPlatformMonitor*>)funcTable[957])(viewport); - #else - return (ImGuiPlatformMonitor*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[957])((nint)viewport); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) - { - ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative(viewport); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImGuiPlatformMonitorPtr ret = GetViewportPlatformMonitorNative((ImGuiViewport*)pviewport); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStackNative(Vector2 mousePlatformPos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, ImGuiViewportP*>)funcTable[958])(mousePlatformPos); - #else - return (ImGuiViewportP*)((delegate* unmanaged[Cdecl]<Vector2, nint>)funcTable[958])(mousePlatformPos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack(Vector2 mousePlatformPos) - { - ImGuiViewportPPtr ret = FindHoveredViewportFromPlatformWindowStackNative(mousePlatformPos); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MarkIniSettingsDirtyNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[959])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[959])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MarkIniSettingsDirty() - { - MarkIniSettingsDirtyNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MarkIniSettingsDirtyNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[960])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[960])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MarkIniSettingsDirty(ImGuiWindowPtr window) - { - MarkIniSettingsDirtyNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MarkIniSettingsDirty(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - MarkIniSettingsDirtyNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearIniSettingsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[961])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[961])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearIniSettings() - { - ClearIniSettingsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindowSettings*>)funcTable[962])(name); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[962])((nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(byte* name) - { - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(name); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ref byte name) - { - fixed (byte* pname = &name) - { - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr CreateNewWindowSettings(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowSettingsPtr ret = CreateNewWindowSettingsNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* FindWindowSettingsNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiWindowSettings*>)funcTable[963])(id); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[963])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr FindWindowSettings(uint id) - { - ImGuiWindowSettingsPtr ret = FindWindowSettingsNative(id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindowSettings* FindOrCreateWindowSettingsNative(byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiWindowSettings*>)funcTable[964])(name); - #else - return (ImGuiWindowSettings*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[964])((nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(byte* name) - { - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(name); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ref byte name) - { - fixed (byte* pname = &name) - { - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowSettingsPtr FindOrCreateWindowSettings(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiWindowSettingsPtr ret = FindOrCreateWindowSettingsNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddSettingsHandlerNative(ImGuiSettingsHandler* handler) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiSettingsHandler*, void>)funcTable[965])(handler); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[965])((nint)handler); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) - { - AddSettingsHandlerNative(handler); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddSettingsHandler(ref ImGuiSettingsHandler handler) - { - fixed (ImGuiSettingsHandler* phandler = &handler) - { - AddSettingsHandlerNative((ImGuiSettingsHandler*)phandler); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RemoveSettingsHandlerNative(byte* typeName) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[966])(typeName); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[966])((nint)typeName); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RemoveSettingsHandler(byte* typeName) - { - RemoveSettingsHandlerNative(typeName); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RemoveSettingsHandler(ref byte typeName) - { - fixed (byte* ptypeName = &typeName) - { - RemoveSettingsHandlerNative((byte*)ptypeName); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RemoveSettingsHandler(ReadOnlySpan<byte> typeName) - { - fixed (byte* ptypeName = typeName) - { - RemoveSettingsHandlerNative((byte*)ptypeName); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RemoveSettingsHandler(string typeName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (typeName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(typeName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RemoveSettingsHandlerNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiSettingsHandler*>)funcTable[967])(typeName); - #else - return (ImGuiSettingsHandler*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[967])((nint)typeName); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiSettingsHandlerPtr FindSettingsHandler(byte* typeName) - { - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(typeName); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiSettingsHandlerPtr FindSettingsHandler(ref byte typeName) - { - fixed (byte* ptypeName = &typeName) - { - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiSettingsHandlerPtr FindSettingsHandler(ReadOnlySpan<byte> typeName) - { - fixed (byte* ptypeName = typeName) - { - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative((byte*)ptypeName); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiSettingsHandlerPtr FindSettingsHandler(string typeName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (typeName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(typeName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiSettingsHandlerPtr ret = FindSettingsHandlerNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextWindowScrollNative(Vector2 scroll) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[968])(scroll); - #else - ((delegate* unmanaged[Cdecl]<Vector2, void>)funcTable[968])(scroll); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextWindowScroll(Vector2 scroll) - { - SetNextWindowScrollNative(scroll); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollXNative(ImGuiWindow* window, float scrollX) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, void>)funcTable[969])(window, scrollX); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[969])((nint)window, scrollX); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollX(ImGuiWindowPtr window, float scrollX) - { - SetScrollXNative(window, scrollX); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollX(ref ImGuiWindow window, float scrollX) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollXNative((ImGuiWindow*)pwindow, scrollX); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollYNative(ImGuiWindow* window, float scrollY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, void>)funcTable[970])(window, scrollY); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[970])((nint)window, scrollY); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollY(ImGuiWindowPtr window, float scrollY) - { - SetScrollYNative(window, scrollY); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollY(ref ImGuiWindow window, float scrollY) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollYNative((ImGuiWindow*)pwindow, scrollY); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollFromPosXNative(ImGuiWindow* window, float localX, float centerXRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, float, void>)funcTable[971])(window, localX, centerXRatio); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, void>)funcTable[971])((nint)window, localX, centerXRatio); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) - { - SetScrollFromPosXNative(window, localX, centerXRatio); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosX(ref ImGuiWindow window, float localX, float centerXRatio) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollFromPosXNative((ImGuiWindow*)pwindow, localX, centerXRatio); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetScrollFromPosYNative(ImGuiWindow* window, float localY, float centerYRatio) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, float, float, void>)funcTable[972])(window, localY, centerYRatio); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, void>)funcTable[972])((nint)window, localY, centerYRatio); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) - { - SetScrollFromPosYNative(window, localY, centerYRatio); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetScrollFromPosY(ref ImGuiWindow window, float localY, float centerYRatio) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollFromPosYNative((ImGuiWindow*)pwindow, localY, centerYRatio); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToItemNative(ImGuiScrollFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiScrollFlags, void>)funcTable[973])(flags); - #else - ((delegate* unmanaged[Cdecl]<ImGuiScrollFlags, void>)funcTable[973])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToItem(ImGuiScrollFlags flags) - { - ScrollToItemNative(flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToItem() - { - ScrollToItemNative((ImGuiScrollFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToRectNative(ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, ImGuiScrollFlags, void>)funcTable[974])(window, rect, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, ImGuiScrollFlags, void>)funcTable[974])((nint)window, rect, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - ScrollToRectNative(window, rect, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRect(ImGuiWindowPtr window, ImRect rect) - { - ScrollToRectNative(window, rect, (ImGuiScrollFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRect(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectNative((ImGuiWindow*)pwindow, rect, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRect(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectNative((ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToRectExNative(Vector2* pOut, ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiWindow*, ImRect, ImGuiScrollFlags, void>)funcTable[975])(pOut, window, rect, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImRect, ImGuiScrollFlags, void>)funcTable[975])((nint)pOut, (nint)window, rect, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect) - { - Vector2 ret; - ScrollToRectExNative(&ret, window, rect, (ImGuiScrollFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ScrollToRectEx(ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - Vector2 ret; - ScrollToRectExNative(&ret, window, rect, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - ScrollToRectExNative(pOut, window, rect, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(Vector2* pOut, ImGuiWindowPtr window, ImRect rect) - { - ScrollToRectExNative(pOut, window, rect, (ImGuiScrollFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (Vector2* ppOut = &pOut) - { - ScrollToRectExNative((Vector2*)ppOut, window, rect, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(ref Vector2 pOut, ImGuiWindowPtr window, ImRect rect) - { - fixed (Vector2* ppOut = &pOut) - { - ScrollToRectExNative((Vector2*)ppOut, window, rect, (ImGuiScrollFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ScrollToRectEx(ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - ScrollToRectExNative(&ret, (ImGuiWindow*)pwindow, rect, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(Vector2* pOut, ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect, ImGuiScrollFlags flags) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToRectEx(ref Vector2 pOut, ref ImGuiWindow window, ImRect rect) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollToBringRectIntoViewNative(ImGuiWindow* window, ImRect rect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, void>)funcTable[976])(window, rect); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, void>)funcTable[976])((nint)window, rect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToBringRectIntoView(ImGuiWindowPtr window, ImRect rect) - { - ScrollToBringRectIntoViewNative(window, rect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ScrollToBringRectIntoView(ref ImGuiWindow window, ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToBringRectIntoViewNative((ImGuiWindow*)pwindow, rect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetItemIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[977])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[977])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID() - { - uint ret = GetItemIDNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiItemStatusFlags GetItemStatusFlagsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiItemStatusFlags>)funcTable[978])(); - #else - return (ImGuiItemStatusFlags)((delegate* unmanaged[Cdecl]<ImGuiItemStatusFlags>)funcTable[978])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiItemStatusFlags GetItemStatusFlags() - { - ImGuiItemStatusFlags ret = GetItemStatusFlagsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiItemFlags GetItemFlagsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiItemFlags>)funcTable[979])(); - #else - return (ImGuiItemFlags)((delegate* unmanaged[Cdecl]<ImGuiItemFlags>)funcTable[979])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiItemFlags GetItemFlags() - { - ImGuiItemFlags ret = GetItemFlagsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetActiveIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[980])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[980])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetActiveID() - { - uint ret = GetActiveIDNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetFocusIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[981])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[981])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetFocusID() - { - uint ret = GetFocusIDNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetActiveIDNative(uint id, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiWindow*, void>)funcTable[982])(id, window); - #else - ((delegate* unmanaged[Cdecl]<uint, nint, void>)funcTable[982])(id, (nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetActiveID(uint id, ImGuiWindowPtr window) - { - SetActiveIDNative(id, window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetActiveID(uint id, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetActiveIDNative(id, (ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetFocusIDNative(uint id, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiWindow*, void>)funcTable[983])(id, window); - #else - ((delegate* unmanaged[Cdecl]<uint, nint, void>)funcTable[983])(id, (nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetFocusID(uint id, ImGuiWindowPtr window) - { - SetFocusIDNative(id, window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetFocusID(uint id, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetFocusIDNative(id, (ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearActiveIDNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[984])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[984])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearActiveID() - { - ClearActiveIDNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetHoveredIDNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[985])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[985])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetHoveredID() - { - uint ret = GetHoveredIDNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetHoveredIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[986])(id); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[986])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetHoveredID(uint id) - { - SetHoveredIDNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void KeepAliveIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[987])(id); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[987])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void KeepAliveID(uint id) - { - KeepAliveIDNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MarkItemEditedNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[988])(id); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[988])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MarkItemEdited(uint id) - { - MarkItemEditedNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushOverrideIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[989])(id); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[989])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushOverrideID(uint id) - { - PushOverrideIDNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, uint, uint>)funcTable[990])(strIdBegin, strIdEnd, seed); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nint, uint, uint>)funcTable[990])((nint)strIdBegin, (nint)strIdEnd, seed); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(byte* strIdBegin, byte* strIdEnd, uint seed) - { - uint ret = GetIDWithSeedNative(strIdBegin, strIdEnd, seed); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ref byte strIdBegin, byte* strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ReadOnlySpan<byte> strIdBegin, byte* strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(string strIdBegin, byte* strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative(pStr0, strIdEnd, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(byte* strIdBegin, ref byte strIdEnd, uint seed) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(byte* strIdBegin, ReadOnlySpan<byte> strIdEnd, uint seed) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(byte* strIdBegin, string strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative(strIdBegin, pStr0, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ref byte strIdBegin, ref byte strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ReadOnlySpan<byte> strIdBegin, ReadOnlySpan<byte> strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(string strIdBegin, string strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strIdEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - uint ret = GetIDWithSeedNative(pStr0, pStr1, seed); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ref byte strIdBegin, ReadOnlySpan<byte> strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ref byte strIdBegin, string strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ReadOnlySpan<byte> strIdBegin, ref byte strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(ReadOnlySpan<byte> strIdBegin, string strIdEnd, uint seed) - { - fixed (byte* pstrIdBegin = strIdBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetIDWithSeedNative((byte*)pstrIdBegin, pStr0, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(string strIdBegin, ref byte strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = &strIdEnd) - { - uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetIDWithSeed(string strIdBegin, ReadOnlySpan<byte> strIdEnd, uint seed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pstrIdEnd = strIdEnd) - { - uint ret = GetIDWithSeedNative(pStr0, (byte*)pstrIdEnd, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemSizeNative(Vector2 size, float textBaselineY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, float, void>)funcTable[991])(size, textBaselineY); - #else - ((delegate* unmanaged[Cdecl]<Vector2, float, void>)funcTable[991])(size, textBaselineY); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ItemSize(Vector2 size, float textBaselineY) - { - ItemSizeNative(size, textBaselineY); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ItemSize(Vector2 size) - { - ItemSizeNative(size, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemSizeNative(ImRect bb, float textBaselineY) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect, float, void>)funcTable[992])(bb, textBaselineY); - #else - ((delegate* unmanaged[Cdecl]<ImRect, float, void>)funcTable[992])(bb, textBaselineY); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ItemSize(ImRect bb, float textBaselineY) - { - ItemSizeNative(bb, textBaselineY); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ItemSize(ImRect bb) - { - ItemSizeNative(bb, (float)(-1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ItemAddNative(ImRect bb, uint id, ImRect* navBb, ImGuiItemFlags extraFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImRect*, ImGuiItemFlags, byte>)funcTable[993])(bb, id, navBb, extraFlags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, nint, ImGuiItemFlags, byte>)funcTable[993])(bb, id, (nint)navBb, extraFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb, ImGuiItemFlags extraFlags) - { - byte ret = ItemAddNative(bb, id, navBb, extraFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ItemAdd(ImRect bb, uint id, ImRectPtr navBb) - { - byte ret = ItemAddNative(bb, id, navBb, (ImGuiItemFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ItemAdd(ImRect bb, uint id) - { - byte ret = ItemAddNative(bb, id, (ImRect*)(default), (ImGuiItemFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ItemAdd(ImRect bb, uint id, ImGuiItemFlags extraFlags) - { - byte ret = ItemAddNative(bb, id, (ImRect*)(default), extraFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb, ImGuiItemFlags extraFlags) - { - fixed (ImRect* pnavBb = &navBb) - { - byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, extraFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ItemAdd(ImRect bb, uint id, ref ImRect navBb) - { - fixed (ImRect* pnavBb = &navBb) - { - byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, (ImGuiItemFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ItemHoverableNative(ImRect bb, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[994])(bb, id); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[994])(bb, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ItemHoverable(ImRect bb, uint id) - { - byte ret = ItemHoverableNative(bb, id); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsClippedExNative(ImRect bb, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[995])(bb, id); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[995])(bb, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsClippedEx(ImRect bb, uint id) - { - byte ret = IsClippedExNative(bb, id); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetLastItemDataNative(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiItemFlags, ImGuiItemStatusFlags, ImRect, void>)funcTable[996])(itemId, inFlags, statusFlags, itemRect); - #else - ((delegate* unmanaged[Cdecl]<uint, ImGuiItemFlags, ImGuiItemStatusFlags, ImRect, void>)funcTable[996])(itemId, inFlags, statusFlags, itemRect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetLastItemData(uint itemId, ImGuiItemFlags inFlags, ImGuiItemStatusFlags statusFlags, ImRect itemRect) - { - SetLastItemDataNative(itemId, inFlags, statusFlags, itemRect); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcItemSizeNative(Vector2* pOut, Vector2 size, float defaultW, float defaultH) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, float, float, void>)funcTable[997])(pOut, size, defaultW, defaultH); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, float, void>)funcTable[997])((nint)pOut, size, defaultW, defaultH); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcItemSize(Vector2 size, float defaultW, float defaultH) - { - Vector2 ret; - CalcItemSizeNative(&ret, size, defaultW, defaultH); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcItemSize(Vector2* pOut, Vector2 size, float defaultW, float defaultH) - { - CalcItemSizeNative(pOut, size, defaultW, defaultH); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcItemSize(ref Vector2 pOut, Vector2 size, float defaultW, float defaultH) - { - fixed (Vector2* ppOut = &pOut) - { - CalcItemSizeNative((Vector2*)ppOut, size, defaultW, defaultH); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float CalcWrapWidthForPosNative(Vector2 pos, float wrapPosX) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, float, float>)funcTable[998])(pos, wrapPosX); - #else - return (float)((delegate* unmanaged[Cdecl]<Vector2, float, float>)funcTable[998])(pos, wrapPosX); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float CalcWrapWidthForPos(Vector2 pos, float wrapPosX) - { - float ret = CalcWrapWidthForPosNative(pos, wrapPosX); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushMultiItemsWidthsNative(int components, float widthFull) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[999])(components, widthFull); - #else - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[999])(components, widthFull); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushMultiItemsWidths(int components, float widthFull) - { - PushMultiItemsWidthsNative(components, widthFull); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsItemToggledSelectionNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1000])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1000])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsItemToggledSelection() - { - byte ret = IsItemToggledSelectionNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetContentRegionMaxAbsNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[1001])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1001])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetContentRegionMaxAbs() - { - Vector2 ret; - GetContentRegionMaxAbsNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetContentRegionMaxAbs(Vector2* pOut) - { - GetContentRegionMaxAbsNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetContentRegionMaxAbs(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetContentRegionMaxAbsNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShrinkWidthsNative(ImGuiShrinkWidthItem* items, int count, float widthExcess) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiShrinkWidthItem*, int, float, void>)funcTable[1002])(items, count, widthExcess); - #else - ((delegate* unmanaged[Cdecl]<nint, int, float, void>)funcTable[1002])((nint)items, count, widthExcess); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShrinkWidths(ImGuiShrinkWidthItemPtr items, int count, float widthExcess) - { - ShrinkWidthsNative(items, count, widthExcess); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShrinkWidths(ref ImGuiShrinkWidthItem items, int count, float widthExcess) - { - fixed (ImGuiShrinkWidthItem* pitems = &items) - { - ShrinkWidthsNative((ImGuiShrinkWidthItem*)pitems, count, widthExcess); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushItemFlagNative(ImGuiItemFlags option, byte enabled) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiItemFlags, byte, void>)funcTable[1003])(option, enabled); - #else - ((delegate* unmanaged[Cdecl]<ImGuiItemFlags, byte, void>)funcTable[1003])(option, enabled); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushItemFlag(ImGuiItemFlags option, bool enabled) - { - PushItemFlagNative(option, enabled ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopItemFlagNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1004])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1004])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopItemFlag() - { - PopItemFlagNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogBeginNative(ImGuiLogType type, int autoOpenDepth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiLogType, int, void>)funcTable[1005])(type, autoOpenDepth); - #else - ((delegate* unmanaged[Cdecl]<ImGuiLogType, int, void>)funcTable[1005])(type, autoOpenDepth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogBegin(ImGuiLogType type, int autoOpenDepth) - { - LogBeginNative(type, autoOpenDepth); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogToBufferNative(int autoOpenDepth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[1006])(autoOpenDepth); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[1006])(autoOpenDepth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToBuffer(int autoOpenDepth) - { - LogToBufferNative(autoOpenDepth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogToBuffer() - { - LogToBufferNative((int)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, byte*, byte*, void>)funcTable[1007])(refPos, text, textEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[1007])((nint)refPos, (nint)text, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, byte* text, byte* textEnd) - { - LogRenderedTextNative(refPos, text, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, byte* text) - { - LogRenderedTextNative(refPos, text, (byte*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, byte* text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - LogRenderedTextNative((Vector2*)prefPos, text, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, byte* text) - { - fixed (Vector2* prefPos = &refPos) - { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative(refPos, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ref byte text) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative(refPos, (byte*)ptext, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ref byte text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ref byte text) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan<byte> text) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, string text, byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, string text) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, text, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, byte* text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, byte* text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LogRenderedTextNative(refPos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative(refPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(Vector2* refPos, string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative(refPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ref byte text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, string text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ref byte text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, ReadOnlySpan<byte> text, string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, string text, ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogRenderedText(ref Vector2 refPos, string text, ReadOnlySpan<byte> textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LogSetNextTextDecorationNative(byte* prefix, byte* suffix) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)funcTable[1008])(prefix, suffix); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1008])((nint)prefix, (nint)suffix); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(byte* prefix, byte* suffix) - { - LogSetNextTextDecorationNative(prefix, suffix); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ref byte prefix, byte* suffix) - { - fixed (byte* pprefix = &prefix) - { - LogSetNextTextDecorationNative((byte*)pprefix, suffix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ReadOnlySpan<byte> prefix, byte* suffix) - { - fixed (byte* pprefix = prefix) - { - LogSetNextTextDecorationNative((byte*)pprefix, suffix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(string prefix, byte* suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogSetNextTextDecorationNative(pStr0, suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(byte* prefix, ref byte suffix) - { - fixed (byte* psuffix = &suffix) - { - LogSetNextTextDecorationNative(prefix, (byte*)psuffix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(byte* prefix, ReadOnlySpan<byte> suffix) - { - fixed (byte* psuffix = suffix) - { - LogSetNextTextDecorationNative(prefix, (byte*)psuffix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(byte* prefix, string suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (suffix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogSetNextTextDecorationNative(prefix, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ref byte prefix, ref byte suffix) - { - fixed (byte* pprefix = &prefix) - { - fixed (byte* psuffix = &suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ReadOnlySpan<byte> prefix, ReadOnlySpan<byte> suffix) - { - fixed (byte* pprefix = prefix) - { - fixed (byte* psuffix = suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(string prefix, string suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (suffix != null) - { - pStrSize1 = Utils.GetByteCountUTF8(suffix); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(suffix, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LogSetNextTextDecorationNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ref byte prefix, ReadOnlySpan<byte> suffix) - { - fixed (byte* pprefix = &prefix) - { - fixed (byte* psuffix = suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ref byte prefix, string suffix) - { - fixed (byte* pprefix = &prefix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (suffix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogSetNextTextDecorationNative((byte*)pprefix, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ReadOnlySpan<byte> prefix, ref byte suffix) - { - fixed (byte* pprefix = prefix) - { - fixed (byte* psuffix = &suffix) - { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs deleted file mode 100644 index 473d8c16e..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.008.cs +++ /dev/null @@ -1,5053 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(ReadOnlySpan<byte> prefix, string suffix) - { - fixed (byte* pprefix = prefix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (suffix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogSetNextTextDecorationNative((byte*)pprefix, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(string prefix, ref byte suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* psuffix = &suffix) - { - LogSetNextTextDecorationNative(pStr0, (byte*)psuffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LogSetNextTextDecoration(string prefix, ReadOnlySpan<byte> suffix) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* psuffix = suffix) - { - LogSetNextTextDecorationNative(pStr0, (byte*)psuffix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginChildExNative(byte* name, uint id, Vector2 sizeArg, byte border, ImGuiWindowFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint, Vector2, byte, ImGuiWindowFlags, byte>)funcTable[1009])(name, id, sizeArg, border, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, uint, Vector2, byte, ImGuiWindowFlags, byte>)funcTable[1009])((nint)name, id, sizeArg, border, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChildEx(byte* name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) - { - byte ret = BeginChildExNative(name, id, sizeArg, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChildEx(ref byte name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginChildExNative((byte*)pname, id, sizeArg, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChildEx(ReadOnlySpan<byte> name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) - { - fixed (byte* pname = name) - { - byte ret = BeginChildExNative((byte*)pname, id, sizeArg, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginChildEx(string name, uint id, Vector2 sizeArg, bool border, ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildExNative(pStr0, id, sizeArg, border ? (byte)1 : (byte)0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void OpenPopupExNative(uint id, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, void>)funcTable[1010])(id, popupFlags); - #else - ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, void>)funcTable[1010])(id, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupEx(uint id, ImGuiPopupFlags popupFlags) - { - OpenPopupExNative(id, popupFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OpenPopupEx(uint id) - { - OpenPopupExNative(id, (ImGuiPopupFlags)(ImGuiPopupFlags.None)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClosePopupToLevelNative(int remaining, byte restoreFocusToWindowUnderPopup) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, byte, void>)funcTable[1011])(remaining, restoreFocusToWindowUnderPopup); - #else - ((delegate* unmanaged[Cdecl]<int, byte, void>)funcTable[1011])(remaining, restoreFocusToWindowUnderPopup); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClosePopupToLevel(int remaining, bool restoreFocusToWindowUnderPopup) - { - ClosePopupToLevelNative(remaining, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClosePopupsOverWindowNative(ImGuiWindow* refWindow, byte restoreFocusToWindowUnderPopup) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte, void>)funcTable[1012])(refWindow, restoreFocusToWindowUnderPopup); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, void>)funcTable[1012])((nint)refWindow, restoreFocusToWindowUnderPopup); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClosePopupsOverWindow(ImGuiWindowPtr refWindow, bool restoreFocusToWindowUnderPopup) - { - ClosePopupsOverWindowNative(refWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClosePopupsOverWindow(ref ImGuiWindow refWindow, bool restoreFocusToWindowUnderPopup) - { - fixed (ImGuiWindow* prefWindow = &refWindow) - { - ClosePopupsOverWindowNative((ImGuiWindow*)prefWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClosePopupsExceptModalsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1013])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1013])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClosePopupsExceptModals() - { - ClosePopupsExceptModalsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPopupOpenNative(uint id, ImGuiPopupFlags popupFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, byte>)funcTable[1014])(id, popupFlags); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, ImGuiPopupFlags, byte>)funcTable[1014])(id, popupFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPopupOpen(uint id, ImGuiPopupFlags popupFlags) - { - byte ret = IsPopupOpenNative(id, popupFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginPopupExNative(uint id, ImGuiWindowFlags extraFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiWindowFlags, byte>)funcTable[1015])(id, extraFlags); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, ImGuiWindowFlags, byte>)funcTable[1015])(id, extraFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPopupEx(uint id, ImGuiWindowFlags extraFlags) - { - byte ret = BeginPopupExNative(id, extraFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginTooltipExNative(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTooltipFlags, ImGuiWindowFlags, void>)funcTable[1016])(tooltipFlags, extraWindowFlags); - #else - ((delegate* unmanaged[Cdecl]<ImGuiTooltipFlags, ImGuiWindowFlags, void>)funcTable[1016])(tooltipFlags, extraWindowFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginTooltipEx(ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags) - { - BeginTooltipExNative(tooltipFlags, extraWindowFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetPopupAllowedExtentRectNative(ImRect* pOut, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, void>)funcTable[1017])(pOut, window); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1017])((nint)pOut, (nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetPopupAllowedExtentRect(ImGuiWindowPtr window) - { - ImRect ret; - GetPopupAllowedExtentRectNative(&ret, window); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ImGuiWindowPtr window) - { - GetPopupAllowedExtentRectNative(pOut, window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPopupAllowedExtentRect(ref ImRect pOut, ImGuiWindowPtr window) - { - fixed (ImRect* ppOut = &pOut) - { - GetPopupAllowedExtentRectNative((ImRect*)ppOut, window); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetPopupAllowedExtentRect(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - GetPopupAllowedExtentRectNative(&ret, (ImGuiWindow*)pwindow); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPopupAllowedExtentRect(ImRectPtr pOut, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - GetPopupAllowedExtentRectNative(pOut, (ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPopupAllowedExtentRect(ref ImRect pOut, ref ImGuiWindow window) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - GetPopupAllowedExtentRectNative((ImRect*)ppOut, (ImGuiWindow*)pwindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* GetTopMostPopupModalNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)funcTable[1018])(); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<nint>)funcTable[1018])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr GetTopMostPopupModal() - { - ImGuiWindowPtr ret = GetTopMostPopupModalNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiWindow* GetTopMostAndVisiblePopupModalNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*>)funcTable[1019])(); - #else - return (ImGuiWindow*)((delegate* unmanaged[Cdecl]<nint>)funcTable[1019])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiWindowPtr GetTopMostAndVisiblePopupModal() - { - ImGuiWindowPtr ret = GetTopMostAndVisiblePopupModalNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FindBestWindowPosForPopupNative(Vector2* pOut, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiWindow*, void>)funcTable[1020])(pOut, window); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1020])((nint)pOut, (nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 FindBestWindowPosForPopup(ImGuiWindowPtr window) - { - Vector2 ret; - FindBestWindowPosForPopupNative(&ret, window); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FindBestWindowPosForPopup(Vector2* pOut, ImGuiWindowPtr window) - { - FindBestWindowPosForPopupNative(pOut, window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FindBestWindowPosForPopup(ref Vector2 pOut, ImGuiWindowPtr window) - { - fixed (Vector2* ppOut = &pOut) - { - FindBestWindowPosForPopupNative((Vector2*)ppOut, window); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 FindBestWindowPosForPopup(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - Vector2 ret; - FindBestWindowPosForPopupNative(&ret, (ImGuiWindow*)pwindow); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FindBestWindowPosForPopup(Vector2* pOut, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - FindBestWindowPosForPopupNative(pOut, (ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FindBestWindowPosForPopup(ref Vector2 pOut, ref ImGuiWindow window) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - FindBestWindowPosForPopupNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FindBestWindowPosForPopupExNative(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, ImGuiDir*, ImRect, ImRect, ImGuiPopupPositionPolicy, void>)funcTable[1021])(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, nint, ImRect, ImRect, ImGuiPopupPositionPolicy, void>)funcTable[1021])((nint)pOut, refPos, size, (nint)lastDir, rOuter, rAvoid, policy); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 FindBestWindowPosForPopupEx(Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - Vector2 ret; - FindBestWindowPosForPopupExNative(&ret, refPos, size, lastDir, rOuter, rAvoid, policy); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FindBestWindowPosForPopupEx(Vector2* pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - FindBestWindowPosForPopupExNative(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FindBestWindowPosForPopupEx(ref Vector2 pOut, Vector2 refPos, Vector2 size, ImGuiDir* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) - { - fixed (Vector2* ppOut = &pOut) - { - FindBestWindowPosForPopupExNative((Vector2*)ppOut, refPos, size, lastDir, rOuter, rAvoid, policy); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginViewportSideBarNative(byte* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiViewport*, ImGuiDir, float, ImGuiWindowFlags, byte>)funcTable[1022])(name, viewport, dir, size, windowFlags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuiDir, float, ImGuiWindowFlags, byte>)funcTable[1022])((nint)name, (nint)viewport, dir, size, windowFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(byte* name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - byte ret = BeginViewportSideBarNative(name, viewport, dir, size, windowFlags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(ref byte name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - fixed (byte* pname = &name) - { - byte ret = BeginViewportSideBarNative((byte*)pname, viewport, dir, size, windowFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(ReadOnlySpan<byte> name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - fixed (byte* pname = name) - { - byte ret = BeginViewportSideBarNative((byte*)pname, viewport, dir, size, windowFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(string name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginViewportSideBarNative(pStr0, viewport, dir, size, windowFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(byte* name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - byte ret = BeginViewportSideBarNative(name, (ImGuiViewport*)pviewport, dir, size, windowFlags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(ref byte name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - fixed (byte* pname = &name) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - byte ret = BeginViewportSideBarNative((byte*)pname, (ImGuiViewport*)pviewport, dir, size, windowFlags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(ReadOnlySpan<byte> name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - fixed (byte* pname = name) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - byte ret = BeginViewportSideBarNative((byte*)pname, (ImGuiViewport*)pviewport, dir, size, windowFlags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginViewportSideBar(string name, ref ImGuiViewport viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImGuiViewport* pviewport = &viewport) - { - byte ret = BeginViewportSideBarNative(pStr0, (ImGuiViewport*)pviewport, dir, size, windowFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginMenuExNative(byte* label, byte* icon, byte enabled) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte, byte>)funcTable[1023])(label, icon, enabled); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte, byte>)funcTable[1023])((nint)label, (nint)icon, enabled); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, byte* icon, bool enabled) - { - byte ret = BeginMenuExNative(label, icon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, byte* icon) - { - byte ret = BeginMenuExNative(label, icon, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, byte* icon, bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = BeginMenuExNative((byte*)plabel, icon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, byte* icon) - { - fixed (byte* plabel = &label) - { - byte ret = BeginMenuExNative((byte*)plabel, icon, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, byte* icon, bool enabled) - { - fixed (byte* plabel = label) - { - byte ret = BeginMenuExNative((byte*)plabel, icon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, byte* icon) - { - fixed (byte* plabel = label) - { - byte ret = BeginMenuExNative((byte*)plabel, icon, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, byte* icon, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative(pStr0, icon, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, byte* icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative(pStr0, icon, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, ref byte icon, bool enabled) - { - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative(label, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, ref byte icon) - { - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative(label, (byte*)picon, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, ReadOnlySpan<byte> icon, bool enabled) - { - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative(label, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, ReadOnlySpan<byte> icon) - { - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative(label, (byte*)picon, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, string icon, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative(label, pStr0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(byte* label, string icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative(label, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, ref byte icon, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, ref byte icon) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, string icon, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginMenuExNative(pStr0, pStr1, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, string icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginMenuExNative(pStr0, pStr1, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, ReadOnlySpan<byte> icon, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, ReadOnlySpan<byte> icon) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, string icon, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative((byte*)plabel, pStr0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ref byte label, string icon) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative((byte*)plabel, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, ref byte icon, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, ref byte icon) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, string icon, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative((byte*)plabel, pStr0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(ReadOnlySpan<byte> label, string icon) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative((byte*)plabel, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, ref byte icon, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative(pStr0, (byte*)picon, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, ref byte icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = BeginMenuExNative(pStr0, (byte*)picon, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, ReadOnlySpan<byte> icon, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative(pStr0, (byte*)picon, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginMenuEx(string label, ReadOnlySpan<byte> icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = BeginMenuExNative(pStr0, (byte*)picon, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte MenuItemExNative(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, byte, byte, byte>)funcTable[1024])(label, icon, shortcut, selected, enabled); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, byte, byte, byte>)funcTable[1024])((nint)label, (nint)icon, (nint)shortcut, selected, enabled); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, byte* shortcut, bool selected, bool enabled) - { - byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, byte* shortcut, bool selected) - { - byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, byte* shortcut) - { - byte ret = MenuItemExNative(label, icon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon) - { - byte ret = MenuItemExNative(label, icon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, bool selected) - { - byte ret = MenuItemExNative(label, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, bool selected, bool enabled) - { - byte ret = MenuItemExNative(label, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, byte* shortcut) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, byte* shortcut) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, bool selected) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, byte* shortcut) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, bool selected) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, byte* shortcut) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, bool selected) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, byte* shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, byte* shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, byte* shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, byte* shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, byte* shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, byte* shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, byte* shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, byte* shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, byte* shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut, bool selected) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, ref byte shortcut) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, byte* icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, icon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, ref byte shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, string shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, byte* icon, string shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, ref byte shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, string shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, byte* icon, string shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, icon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan<byte> shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, byte* icon, ReadOnlySpan<byte> shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, ref byte shortcut) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, string shortcut, bool selected) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ref byte icon, string shortcut) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, ref byte shortcut) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, string shortcut, bool selected) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs deleted file mode 100644 index 171c74377..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.009.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, ReadOnlySpan<byte> icon, string shortcut) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, (byte*)picon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, ReadOnlySpan<byte> shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(byte* label, string icon, ReadOnlySpan<byte> shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(label, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, ref byte shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (shortcut != null) - { - pStrSize2 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (shortcut != null) - { - pStrSize2 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (shortcut != null) - { - pStrSize2 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, pStr2, (byte)(0), (byte)(1)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, string shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ref byte icon, string shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, ref byte shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, string shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, ReadOnlySpan<byte> icon, string shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, ref byte shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, string shortcut, bool selected) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ref byte label, string icon, string shortcut) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, ref byte shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, string shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ref byte icon, string shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = &icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, ref byte shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, string shortcut, bool selected) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> icon, string shortcut) - { - fixed (byte* plabel = label) - { - fixed (byte* picon = icon) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ref byte shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ref byte shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ref byte shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ReadOnlySpan<byte> shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, ReadOnlySpan<byte> shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, pStr0, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, string shortcut, bool selected, bool enabled) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, string shortcut, bool selected) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(ReadOnlySpan<byte> label, string icon, string shortcut) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) - { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative((byte*)plabel, pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan<byte> shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, ReadOnlySpan<byte> shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ref byte icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = &icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, ReadOnlySpan<byte> shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, string shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, string shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, ReadOnlySpan<byte> icon, string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* picon = icon) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, (byte*)picon, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, ref byte shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, ref byte shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, ref byte shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, ReadOnlySpan<byte> shortcut, bool selected, bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, ReadOnlySpan<byte> shortcut, bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool MenuItemEx(string label, string icon, ReadOnlySpan<byte> shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pshortcut = shortcut) - { - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)pshortcut, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginComboPopupNative(uint popupId, ImRect bb, ImGuiComboFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImRect, ImGuiComboFlags, byte>)funcTable[1025])(popupId, bb, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, ImRect, ImGuiComboFlags, byte>)funcTable[1025])(popupId, bb, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginComboPopup(uint popupId, ImRect bb, ImGuiComboFlags flags) - { - byte ret = BeginComboPopupNative(popupId, bb, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginComboPreviewNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1026])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1026])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginComboPreview() - { - byte ret = BeginComboPreviewNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndComboPreviewNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1027])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1027])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndComboPreview() - { - EndComboPreviewNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavInitWindowNative(ImGuiWindow* window, byte forceReinit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte, void>)funcTable[1028])(window, forceReinit); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, void>)funcTable[1028])((nint)window, forceReinit); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) - { - NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavInitWindow(ref ImGuiWindow window, bool forceReinit) - { - fixed (ImGuiWindow* pwindow = &window) - { - NavInitWindowNative((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavInitRequestApplyResultNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1029])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1029])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavInitRequestApplyResult() - { - NavInitRequestApplyResultNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte NavMoveRequestButNoResultYetNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1030])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1030])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool NavMoveRequestButNoResultYet() - { - byte ret = NavMoveRequestButNoResultYetNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestSubmitNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); - #else - ((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1031])(moveDir, clipDir, moveFlags, scrollFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestSubmit(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestForwardNative(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); - #else - ((delegate* unmanaged[Cdecl]<ImGuiDir, ImGuiDir, ImGuiNavMoveFlags, ImGuiScrollFlags, void>)funcTable[1032])(moveDir, clipDir, moveFlags, scrollFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestForward(ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags) - { - NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestResolveWithLastItemNative(ImGuiNavItemData* result) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiNavItemData*, void>)funcTable[1033])(result); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1033])((nint)result); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) - { - NavMoveRequestResolveWithLastItemNative(result); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestResolveWithLastItem(ref ImGuiNavItemData result) - { - fixed (ImGuiNavItemData* presult = &result) - { - NavMoveRequestResolveWithLastItemNative((ImGuiNavItemData*)presult); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestCancelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1034])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1034])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestCancel() - { - NavMoveRequestCancelNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestApplyResultNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1035])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1035])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestApplyResult() - { - NavMoveRequestApplyResultNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NavMoveRequestTryWrappingNative(ImGuiWindow* window, ImGuiNavMoveFlags moveFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiNavMoveFlags, void>)funcTable[1036])(window, moveFlags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiNavMoveFlags, void>)funcTable[1036])((nint)window, moveFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) - { - NavMoveRequestTryWrappingNative(window, moveFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NavMoveRequestTryWrapping(ref ImGuiWindow window, ImGuiNavMoveFlags moveFlags) - { - fixed (ImGuiWindow* pwindow = &window) - { - NavMoveRequestTryWrappingNative((ImGuiWindow*)pwindow, moveFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetNavInputNameNative(ImGuiNavInput n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte*>)funcTable[1037])(n); - #else - return (byte*)((delegate* unmanaged[Cdecl]<ImGuiNavInput, nint>)funcTable[1037])(n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetNavInputName(ImGuiNavInput n) - { - byte* ret = GetNavInputNameNative(n); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetNavInputNameS(ImGuiNavInput n) - { - string ret = Utils.DecodeStringUTF8(GetNavInputNameNative(n)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetNavInputAmountNative(ImGuiNavInput n, ImGuiNavReadMode mode) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, float>)funcTable[1038])(n, mode); - #else - return (float)((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, float>)funcTable[1038])(n, mode); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode) - { - float ret = GetNavInputAmountNative(n, mode); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetNavInputAmount2dNative(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImGuiNavDirSourceFlags, ImGuiNavReadMode, float, float, void>)funcTable[1039])(pOut, dirSources, mode, slowFactor, fastFactor); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiNavDirSourceFlags, ImGuiNavReadMode, float, float, void>)funcTable[1039])((nint)pOut, dirSources, mode, slowFactor, fastFactor); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - Vector2 ret; - GetNavInputAmount2dNative(&ret, dirSources, mode, (float)(0.0f), (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - Vector2 ret; - GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, (float)(0.0f)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - GetNavInputAmount2dNative(pOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - Vector2 ret; - GetNavInputAmount2dNative(&ret, dirSources, mode, slowFactor, fastFactor); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, fastFactor); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - GetNavInputAmount2dNative(pOut, dirSources, mode, slowFactor, (float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor, float fastFactor) - { - fixed (Vector2* ppOut = &pOut) - { - GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, fastFactor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode, float slowFactor) - { - fixed (Vector2* ppOut = &pOut) - { - GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, slowFactor, (float)(0.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetNavInputAmount2d(ref Vector2 pOut, ImGuiNavDirSourceFlags dirSources, ImGuiNavReadMode mode) - { - fixed (Vector2* ppOut = &pOut) - { - GetNavInputAmount2dNative((Vector2*)ppOut, dirSources, mode, (float)(0.0f), (float)(0.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int CalcTypematicRepeatAmountNative(float t0, float t1, float repeatDelay, float repeatRate) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float, int>)funcTable[1040])(t0, t1, repeatDelay, repeatRate); - #else - return (int)((delegate* unmanaged[Cdecl]<float, float, float, float, int>)funcTable[1040])(t0, t1, repeatDelay, repeatRate); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int CalcTypematicRepeatAmount(float t0, float t1, float repeatDelay, float repeatRate) - { - int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ActivateItemNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1041])(id); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1041])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ActivateItem(uint id) - { - ActivateItemNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNavWindowNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1042])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1042])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNavWindow(ImGuiWindowPtr window) - { - SetNavWindowNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNavWindow(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetNavWindowNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNavIDNative(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiNavLayer, uint, ImRect, void>)funcTable[1043])(id, navLayer, focusScopeId, rectRel); - #else - ((delegate* unmanaged[Cdecl]<uint, ImGuiNavLayer, uint, ImRect, void>)funcTable[1043])(id, navLayer, focusScopeId, rectRel); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNavID(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) - { - SetNavIDNative(id, navLayer, focusScopeId, rectRel); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushFocusScopeNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1044])(id); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1044])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushFocusScope(uint id) - { - PushFocusScopeNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopFocusScopeNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1045])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1045])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopFocusScope() - { - PopFocusScopeNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetFocusedFocusScopeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[1046])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[1046])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetFocusedFocusScope() - { - uint ret = GetFocusedFocusScopeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetFocusScopeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[1047])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[1047])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetFocusScope() - { - uint ret = GetFocusScopeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNamedKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1048])(key); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1048])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsNamedKey(ImGuiKey key) - { - byte ret = IsNamedKeyNative(key); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLegacyKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1049])(key); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1049])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLegacyKey(ImGuiKey key) - { - byte ret = IsLegacyKeyNative(key); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsGamepadKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1050])(key); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1050])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsGamepadKey(ImGuiKey key) - { - byte ret = IsGamepadKeyNative(key); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiKeyData* GetKeyDataNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, ImGuiKeyData*>)funcTable[1051])(key); - #else - return (ImGuiKeyData*)((delegate* unmanaged[Cdecl]<ImGuiKey, nint>)funcTable[1051])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiKeyDataPtr GetKeyData(ImGuiKey key) - { - ImGuiKeyDataPtr ret = GetKeyDataNative(key); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetItemUsingMouseWheelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1052])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1052])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetItemUsingMouseWheel() - { - SetItemUsingMouseWheelNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetActiveIdUsingNavAndKeysNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1053])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1053])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetActiveIdUsingNavAndKeys() - { - SetActiveIdUsingNavAndKeysNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsActiveIdUsingNavDirNative(ImGuiDir dir) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDir, byte>)funcTable[1054])(dir); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiDir, byte>)funcTable[1054])(dir); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsActiveIdUsingNavDir(ImGuiDir dir) - { - byte ret = IsActiveIdUsingNavDirNative(dir); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsActiveIdUsingNavInputNative(ImGuiNavInput input) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1055])(input); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1055])(input); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsActiveIdUsingNavInput(ImGuiNavInput input) - { - byte ret = IsActiveIdUsingNavInputNative(input); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsActiveIdUsingKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1056])(key); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte>)funcTable[1056])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsActiveIdUsingKey(ImGuiKey key) - { - byte ret = IsActiveIdUsingKeyNative(key); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetActiveIdUsingKeyNative(ImGuiKey key) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiKey, void>)funcTable[1057])(key); - #else - ((delegate* unmanaged[Cdecl]<ImGuiKey, void>)funcTable[1057])(key); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetActiveIdUsingKey(ImGuiKey key) - { - SetActiveIdUsingKeyNative(key); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsMouseDragPastThresholdNative(ImGuiMouseButton button, float lockThreshold) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)funcTable[1058])(button, lockThreshold); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiMouseButton, float, byte>)funcTable[1058])(button, lockThreshold); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold) - { - byte ret = IsMouseDragPastThresholdNative(button, lockThreshold); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsMouseDragPastThreshold(ImGuiMouseButton button) - { - byte ret = IsMouseDragPastThresholdNative(button, (float)(-1.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNavInputDownNative(ImGuiNavInput n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1059])(n); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiNavInput, byte>)funcTable[1059])(n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsNavInputDown(ImGuiNavInput n) - { - byte ret = IsNavInputDownNative(n); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsNavInputTestNative(ImGuiNavInput n, ImGuiNavReadMode rm) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, byte>)funcTable[1060])(n, rm); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiNavInput, ImGuiNavReadMode, byte>)funcTable[1060])(n, rm); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsNavInputTest(ImGuiNavInput n, ImGuiNavReadMode rm) - { - byte ret = IsNavInputTestNative(n, rm); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiModFlags GetMergedModFlagsNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiModFlags>)funcTable[1061])(); - #else - return (ImGuiModFlags)((delegate* unmanaged[Cdecl]<ImGuiModFlags>)funcTable[1061])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiModFlags GetMergedModFlags() - { - ImGuiModFlags ret = GetMergedModFlagsNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsKeyPressedMapNative(ImGuiKey key, byte repeat) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)funcTable[1062])(key, repeat); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiKey, byte, byte>)funcTable[1062])(key, repeat); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsKeyPressedMap(ImGuiKey key, bool repeat) - { - byte ret = IsKeyPressedMapNative(key, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsKeyPressedMap(ImGuiKey key) - { - byte ret = IsKeyPressedMapNative(key, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextInitializeNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1063])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1063])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextInitialize(ImGuiContextPtr ctx) - { - DockContextInitializeNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextInitialize(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextInitializeNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextShutdownNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1064])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1064])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextShutdown(ImGuiContextPtr ctx) - { - DockContextShutdownNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextShutdown(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextShutdownNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextClearNodesNative(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, uint, byte, void>)funcTable[1065])(ctx, rootId, clearSettingsRefs); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, byte, void>)funcTable[1065])((nint)ctx, rootId, clearSettingsRefs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextClearNodes(ImGuiContextPtr ctx, uint rootId, bool clearSettingsRefs) - { - DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextClearNodes(ref ImGuiContext ctx, uint rootId, bool clearSettingsRefs) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextClearNodesNative((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextRebuildNodesNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1066])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1066])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextRebuildNodes(ImGuiContextPtr ctx) - { - DockContextRebuildNodesNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextRebuildNodes(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextRebuildNodesNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextNewFrameUpdateUndockingNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1067])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1067])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) - { - DockContextNewFrameUpdateUndockingNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextNewFrameUpdateUndocking(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextNewFrameUpdateUndockingNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextNewFrameUpdateDockingNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1068])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1068])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) - { - DockContextNewFrameUpdateDockingNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextNewFrameUpdateDocking(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextNewFrameUpdateDockingNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextEndFrameNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[1069])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1069])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextEndFrame(ImGuiContextPtr ctx) - { - DockContextEndFrameNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextEndFrame(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextEndFrameNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint DockContextGenNodeIDNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiContext*, uint>)funcTable[1070])(ctx); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, uint>)funcTable[1070])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockContextGenNodeID(ImGuiContextPtr ctx) - { - uint ret = DockContextGenNodeIDNative(ctx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockContextGenNodeID(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - uint ret = DockContextGenNodeIDNative((ImGuiContext*)pctx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextQueueDockNative(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, float splitRatio, byte splitOuter) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiWindow*, ImGuiDockNode*, ImGuiWindow*, ImGuiDir, float, byte, void>)funcTable[1071])(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, ImGuiDir, float, byte, void>)funcTable[1071])((nint)ctx, (nint)target, (nint)targetNode, (nint)payload, splitDir, splitRatio, splitOuter); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - DockContextQueueDockNative(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ImGuiContextPtr ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueDock(ref ImGuiContext ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, float splitRatio, bool splitOuter) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextQueueUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiWindow*, void>)funcTable[1072])(ctx, window); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1072])((nint)ctx, (nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) - { - DockContextQueueUndockWindowNative(ctx, window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ImGuiWindowPtr window) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextQueueUndockWindowNative((ImGuiContext*)pctx, window); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockWindow(ref ImGuiContext ctx, ref ImGuiWindow window) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiWindow* pwindow = &window) - { - DockContextQueueUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockContextQueueUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, ImGuiDockNode*, void>)funcTable[1073])(ctx, node); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1073])((nint)ctx, (nint)node); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) - { - DockContextQueueUndockNodeNative(ctx, node); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ImGuiDockNodePtr node) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextQueueUndockNodeNative((ImGuiContext*)pctx, node); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockNode(ImGuiContextPtr ctx, ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockContextQueueUndockNode(ref ImGuiContext ctx, ref ImGuiDockNode node) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* pnode = &node) - { - DockContextQueueUndockNodeNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DockContextCalcDropPosForDockingNative(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, ImGuiDir splitDir, byte splitOuter, Vector2* outPos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiDockNode*, ImGuiWindow*, ImGuiDir, byte, Vector2*, byte>)funcTable[1074])(target, targetNode, payload, splitDir, splitOuter, outPos); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, ImGuiDir, byte, nint, byte>)funcTable[1074])((nint)target, (nint)targetNode, (nint)payload, splitDir, splitOuter, (nint)outPos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ImGuiDockNodePtr targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ImGuiWindowPtr target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockContextCalcDropPosForDocking(ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, ImGuiDir splitDir, bool splitOuter, ref Vector2 outPos) - { - fixed (ImGuiWindow* ptarget = &target) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayload = &payload) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DockNodeBeginAmendTabBarNative(ImGuiDockNode* node) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte>)funcTable[1075])(node); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[1075])((nint)node); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) - { - byte ret = DockNodeBeginAmendTabBarNative(node); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockNodeBeginAmendTabBar(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte ret = DockNodeBeginAmendTabBarNative((ImGuiDockNode*)pnode); - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs deleted file mode 100644 index e21e476a7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.010.cs +++ /dev/null @@ -1,5021 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockNodeEndAmendTabBarNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1076])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1076])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockNodeEndAmendTabBar() - { - DockNodeEndAmendTabBarNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockNode* DockNodeGetRootNodeNative(ImGuiDockNode* node) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNode*>)funcTable[1077])(node); - #else - return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[1077])((nint)node); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node) - { - ImGuiDockNodePtr ret = DockNodeGetRootNodeNative(node); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDockNodePtr DockNodeGetRootNode(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - ImGuiDockNodePtr ret = DockNodeGetRootNodeNative((ImGuiDockNode*)pnode); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DockNodeIsInHierarchyOfNative(ImGuiDockNode* node, ImGuiDockNode* parent) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, ImGuiDockNode*, byte>)funcTable[1078])(node, parent); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[1078])((nint)node, (nint)parent); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent) - { - byte ret = DockNodeIsInHierarchyOfNative(node, parent); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ImGuiDockNodePtr parent) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, parent); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ref ImGuiDockNode parent) - { - fixed (ImGuiDockNode* pparent = &parent) - { - byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DockNodeIsInHierarchyOf(ref ImGuiDockNode node, ref ImGuiDockNode parent) - { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (ImGuiDockNode* pparent = &parent) - { - byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, (ImGuiDockNode*)pparent); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int DockNodeGetDepthNative(ImGuiDockNode* node) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, int>)funcTable[1079])(node); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[1079])((nint)node); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DockNodeGetDepth(ImGuiDockNodePtr node) - { - int ret = DockNodeGetDepthNative(node); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DockNodeGetDepth(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - int ret = DockNodeGetDepthNative((ImGuiDockNode*)pnode); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint DockNodeGetWindowMenuButtonIdNative(ImGuiDockNode* node) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, uint>)funcTable[1080])(node); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, uint>)funcTable[1080])((nint)node); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node) - { - uint ret = DockNodeGetWindowMenuButtonIdNative(node); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockNodeGetWindowMenuButtonId(ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - uint ret = DockNodeGetWindowMenuButtonIdNative((ImGuiDockNode*)pnode); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockNode* GetWindowDockNodeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDockNode*>)funcTable[1081])(); - #else - return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<nint>)funcTable[1081])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDockNodePtr GetWindowDockNode() - { - ImGuiDockNodePtr ret = GetWindowDockNodeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetWindowAlwaysWantOwnTabBarNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte>)funcTable[1082])(window); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[1082])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window) - { - byte ret = GetWindowAlwaysWantOwnTabBarNative(window); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool GetWindowAlwaysWantOwnTabBar(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = GetWindowAlwaysWantOwnTabBarNative((ImGuiWindow*)pwindow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginDockedNative(ImGuiWindow* window, bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, bool*, void>)funcTable[1083])(window, pOpen); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1083])((nint)window, (nint)pOpen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDocked(ImGuiWindowPtr window, bool* pOpen) - { - BeginDockedNative(window, pOpen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDocked(ref ImGuiWindow window, bool* pOpen) - { - fixed (ImGuiWindow* pwindow = &window) - { - BeginDockedNative((ImGuiWindow*)pwindow, pOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDocked(ImGuiWindowPtr window, ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - BeginDockedNative(window, (bool*)ppOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDocked(ref ImGuiWindow window, ref bool pOpen) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (bool* ppOpen = &pOpen) - { - BeginDockedNative((ImGuiWindow*)pwindow, (bool*)ppOpen); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginDockableDragDropSourceNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1084])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1084])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDockableDragDropSource(ImGuiWindowPtr window) - { - BeginDockableDragDropSourceNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDockableDragDropSource(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - BeginDockableDragDropSourceNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginDockableDragDropTargetNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1085])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1085])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDockableDragDropTarget(ImGuiWindowPtr window) - { - BeginDockableDragDropTargetNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginDockableDragDropTarget(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - BeginDockableDragDropTargetNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowDockNative(ImGuiWindow* window, uint dockId, ImGuiCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, uint, ImGuiCond, void>)funcTable[1086])(window, dockId, cond); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, ImGuiCond, void>)funcTable[1086])((nint)window, dockId, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowDock(ImGuiWindowPtr window, uint dockId, ImGuiCond cond) - { - SetWindowDockNative(window, dockId, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowDock(ref ImGuiWindow window, uint dockId, ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowDockNative((ImGuiWindow*)pwindow, dockId, cond); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderDockWindowNative(byte* windowName, uint nodeId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint, void>)funcTable[1087])(windowName, nodeId); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[1087])((nint)windowName, nodeId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderDockWindow(byte* windowName, uint nodeId) - { - DockBuilderDockWindowNative(windowName, nodeId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderDockWindow(ref byte windowName, uint nodeId) - { - fixed (byte* pwindowName = &windowName) - { - DockBuilderDockWindowNative((byte*)pwindowName, nodeId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderDockWindow(ReadOnlySpan<byte> windowName, uint nodeId) - { - fixed (byte* pwindowName = windowName) - { - DockBuilderDockWindowNative((byte*)pwindowName, nodeId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderDockWindow(string windowName, uint nodeId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (windowName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(windowName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(windowName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DockBuilderDockWindowNative(pStr0, nodeId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockNode* DockBuilderGetNodeNative(uint nodeId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)funcTable[1088])(nodeId); - #else - return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[1088])(nodeId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDockNodePtr DockBuilderGetNode(uint nodeId) - { - ImGuiDockNodePtr ret = DockBuilderGetNodeNative(nodeId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDockNode* DockBuilderGetCentralNodeNative(uint nodeId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNode*>)funcTable[1089])(nodeId); - #else - return (ImGuiDockNode*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[1089])(nodeId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDockNodePtr DockBuilderGetCentralNode(uint nodeId) - { - ImGuiDockNodePtr ret = DockBuilderGetCentralNodeNative(nodeId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint DockBuilderAddNodeNative(uint nodeId, ImGuiDockNodeFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDockNodeFlags, uint>)funcTable[1090])(nodeId, flags); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, ImGuiDockNodeFlags, uint>)funcTable[1090])(nodeId, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockBuilderAddNode(uint nodeId, ImGuiDockNodeFlags flags) - { - uint ret = DockBuilderAddNodeNative(nodeId, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockBuilderAddNode(uint nodeId) - { - uint ret = DockBuilderAddNodeNative(nodeId, (ImGuiDockNodeFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockBuilderAddNode() - { - uint ret = DockBuilderAddNodeNative((uint)(0), (ImGuiDockNodeFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockBuilderAddNode(ImGuiDockNodeFlags flags) - { - uint ret = DockBuilderAddNodeNative((uint)(0), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderRemoveNodeNative(uint nodeId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1091])(nodeId); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1091])(nodeId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderRemoveNode(uint nodeId) - { - DockBuilderRemoveNodeNative(nodeId); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderRemoveNodeDockedWindowsNative(uint nodeId, byte clearSettingsRefs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, byte, void>)funcTable[1092])(nodeId, clearSettingsRefs); - #else - ((delegate* unmanaged[Cdecl]<uint, byte, void>)funcTable[1092])(nodeId, clearSettingsRefs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderRemoveNodeDockedWindows(uint nodeId, bool clearSettingsRefs) - { - DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderRemoveNodeDockedWindows(uint nodeId) - { - DockBuilderRemoveNodeDockedWindowsNative(nodeId, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderRemoveNodeChildNodesNative(uint nodeId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1093])(nodeId); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1093])(nodeId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderRemoveNodeChildNodes(uint nodeId) - { - DockBuilderRemoveNodeChildNodesNative(nodeId); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderSetNodePosNative(uint nodeId, Vector2 pos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1094])(nodeId, pos); - #else - ((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1094])(nodeId, pos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderSetNodePos(uint nodeId, Vector2 pos) - { - DockBuilderSetNodePosNative(nodeId, pos); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderSetNodeSizeNative(uint nodeId, Vector2 size) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1095])(nodeId, size); - #else - ((delegate* unmanaged[Cdecl]<uint, Vector2, void>)funcTable[1095])(nodeId, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderSetNodeSize(uint nodeId, Vector2 size) - { - DockBuilderSetNodeSizeNative(nodeId, size); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint DockBuilderSplitNodeNative(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDir, float, uint*, uint*, uint>)funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, ImGuiDir, float, nint, nint, uint>)funcTable[1096])(nodeId, splitDir, sizeRatioForNodeAtDir, (nint)outIdAtDir, (nint)outIdAtOppositeDir); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint DockBuilderSplitNode(uint nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) - { - uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderCopyDockSpaceNative(uint srcDockspaceId, uint dstDockspaceId, ImVector<ConstPointer<byte>>* inWindowRemapPairs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, uint, ImVector<ConstPointer<byte>>*, void>)funcTable[1097])(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); - #else - ((delegate* unmanaged[Cdecl]<uint, uint, nint, void>)funcTable[1097])(srcDockspaceId, dstDockspaceId, (nint)inWindowRemapPairs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ImVector<ConstPointer<byte>>* inWindowRemapPairs) - { - DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyDockSpace(uint srcDockspaceId, uint dstDockspaceId, ref ImVector<ConstPointer<byte>> inWindowRemapPairs) - { - fixed (ImVector<ConstPointer<byte>>* pinWindowRemapPairs = &inWindowRemapPairs) - { - DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVector<ConstPointer<byte>>*)pinWindowRemapPairs); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVector<uint>* outNodeRemapPairs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, uint, ImVector<uint>*, void>)funcTable[1098])(srcNodeId, dstNodeId, outNodeRemapPairs); - #else - ((delegate* unmanaged[Cdecl]<uint, uint, nint, void>)funcTable[1098])(srcNodeId, dstNodeId, (nint)outNodeRemapPairs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ImVector<uint>* outNodeRemapPairs) - { - DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyNode(uint srcNodeId, uint dstNodeId, ref ImVector<uint> outNodeRemapPairs) - { - fixed (ImVector<uint>* poutNodeRemapPairs = &outNodeRemapPairs) - { - DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVector<uint>*)poutNodeRemapPairs); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, void>)funcTable[1099])(srcName, dstName); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1099])((nint)srcName, (nint)dstName); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(byte* srcName, byte* dstName) - { - DockBuilderCopyWindowSettingsNative(srcName, dstName); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ref byte srcName, byte* dstName) - { - fixed (byte* psrcName = &srcName) - { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ReadOnlySpan<byte> srcName, byte* dstName) - { - fixed (byte* psrcName = srcName) - { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(string srcName, byte* dstName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (srcName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(srcName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DockBuilderCopyWindowSettingsNative(pStr0, dstName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(byte* srcName, ref byte dstName) - { - fixed (byte* pdstName = &dstName) - { - DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(byte* srcName, ReadOnlySpan<byte> dstName) - { - fixed (byte* pdstName = dstName) - { - DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(byte* srcName, string dstName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dstName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dstName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DockBuilderCopyWindowSettingsNative(srcName, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ref byte srcName, ref byte dstName) - { - fixed (byte* psrcName = &srcName) - { - fixed (byte* pdstName = &dstName) - { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ReadOnlySpan<byte> srcName, ReadOnlySpan<byte> dstName) - { - fixed (byte* psrcName = srcName) - { - fixed (byte* pdstName = dstName) - { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(string srcName, string dstName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (srcName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(srcName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (dstName != null) - { - pStrSize1 = Utils.GetByteCountUTF8(dstName); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(dstName, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - DockBuilderCopyWindowSettingsNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ref byte srcName, ReadOnlySpan<byte> dstName) - { - fixed (byte* psrcName = &srcName) - { - fixed (byte* pdstName = dstName) - { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ref byte srcName, string dstName) - { - fixed (byte* psrcName = &srcName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dstName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dstName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ReadOnlySpan<byte> srcName, ref byte dstName) - { - fixed (byte* psrcName = srcName) - { - fixed (byte* pdstName = &dstName) - { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(ReadOnlySpan<byte> srcName, string dstName) - { - fixed (byte* psrcName = srcName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dstName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(dstName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DockBuilderCopyWindowSettingsNative((byte*)psrcName, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(string srcName, ref byte dstName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (srcName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(srcName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pdstName = &dstName) - { - DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderCopyWindowSettings(string srcName, ReadOnlySpan<byte> dstName) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (srcName != null) - { - pStrSize0 = Utils.GetByteCountUTF8(srcName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pdstName = dstName) - { - DockBuilderCopyWindowSettingsNative(pStr0, (byte*)pdstName); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DockBuilderFinishNative(uint nodeId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1100])(nodeId); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1100])(nodeId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DockBuilderFinish(uint nodeId) - { - DockBuilderFinishNative(nodeId); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDragDropActiveNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1101])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1101])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDragDropActive() - { - byte ret = IsDragDropActiveNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetCustomNative(ImRect bb, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[1102])(bb, id); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, byte>)funcTable[1102])(bb, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropTargetCustom(ImRect bb, uint id) - { - byte ret = BeginDragDropTargetCustomNative(bb, id); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearDragDropNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1103])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1103])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearDragDrop() - { - ClearDragDropNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsDragDropPayloadBeingAcceptedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[1104])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[1104])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsDragDropPayloadBeingAccepted() - { - byte ret = IsDragDropPayloadBeingAcceptedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetWindowClipRectBeforeSetChannelNative(ImGuiWindow* window, ImRect clipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImRect, void>)funcTable[1105])(window, clipRect); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, void>)funcTable[1105])((nint)window, clipRect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, ImRect clipRect) - { - SetWindowClipRectBeforeSetChannelNative(window, clipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetWindowClipRectBeforeSetChannel(ref ImGuiWindow window, ImRect clipRect) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowClipRectBeforeSetChannelNative((ImGuiWindow*)pwindow, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginColumnsNative(byte* strId, int count, ImGuiOldColumnFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int, ImGuiOldColumnFlags, void>)funcTable[1106])(strId, count, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImGuiOldColumnFlags, void>)funcTable[1106])((nint)strId, count, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(byte* strId, int count, ImGuiOldColumnFlags flags) - { - BeginColumnsNative(strId, count, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(byte* strId, int count) - { - BeginColumnsNative(strId, count, (ImGuiOldColumnFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(ref byte strId, int count, ImGuiOldColumnFlags flags) - { - fixed (byte* pstrId = &strId) - { - BeginColumnsNative((byte*)pstrId, count, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(ref byte strId, int count) - { - fixed (byte* pstrId = &strId) - { - BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(ReadOnlySpan<byte> strId, int count, ImGuiOldColumnFlags flags) - { - fixed (byte* pstrId = strId) - { - BeginColumnsNative((byte*)pstrId, count, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(ReadOnlySpan<byte> strId, int count) - { - fixed (byte* pstrId = strId) - { - BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(string strId, int count, ImGuiOldColumnFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - BeginColumnsNative(pStr0, count, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginColumns(string strId, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - BeginColumnsNative(pStr0, count, (ImGuiOldColumnFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndColumnsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1107])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1107])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndColumns() - { - EndColumnsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushColumnClipRectNative(int columnIndex) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[1108])(columnIndex); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[1108])(columnIndex); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushColumnClipRect(int columnIndex) - { - PushColumnClipRectNative(columnIndex); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushColumnsBackgroundNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1109])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1109])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushColumnsBackground() - { - PushColumnsBackgroundNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopColumnsBackgroundNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1110])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1110])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopColumnsBackground() - { - PopColumnsBackgroundNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetColumnsIDNative(byte* strId, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, uint>)funcTable[1111])(strId, count); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[1111])((nint)strId, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColumnsID(byte* strId, int count) - { - uint ret = GetColumnsIDNative(strId, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColumnsID(ref byte strId, int count) - { - fixed (byte* pstrId = &strId) - { - uint ret = GetColumnsIDNative((byte*)pstrId, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColumnsID(ReadOnlySpan<byte> strId, int count) - { - fixed (byte* pstrId = strId) - { - uint ret = GetColumnsIDNative((byte*)pstrId, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColumnsID(string strId, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetColumnsIDNative(pStr0, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiOldColumns* FindOrCreateColumnsNative(ImGuiWindow* window, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, uint, ImGuiOldColumns*>)funcTable[1112])(window, id); - #else - return (ImGuiOldColumns*)((delegate* unmanaged[Cdecl]<nint, uint, nint>)funcTable[1112])((nint)window, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, uint id) - { - ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative(window, id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiOldColumnsPtr FindOrCreateColumns(ref ImGuiWindow window, uint id) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiOldColumnsPtr ret = FindOrCreateColumnsNative((ImGuiWindow*)pwindow, id); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetColumnOffsetFromNormNative(ImGuiOldColumns* columns, float offsetNorm) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, float, float>)funcTable[1113])(columns, offsetNorm); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float, float>)funcTable[1113])((nint)columns, offsetNorm); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm) - { - float ret = GetColumnOffsetFromNormNative(columns, offsetNorm); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnOffsetFromNorm(ref ImGuiOldColumns columns, float offsetNorm) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - float ret = GetColumnOffsetFromNormNative((ImGuiOldColumns*)pcolumns, offsetNorm); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float GetColumnNormFromOffsetNative(ImGuiOldColumns* columns, float offset) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, float, float>)funcTable[1114])(columns, offset); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float, float>)funcTable[1114])((nint)columns, offset); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset) - { - float ret = GetColumnNormFromOffsetNative(columns, offset); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float GetColumnNormFromOffset(ref ImGuiOldColumns columns, float offset) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - float ret = GetColumnNormFromOffsetNative((ImGuiOldColumns*)pcolumns, offset); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableOpenContextMenuNative(int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[1115])(columnN); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[1115])(columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableOpenContextMenu(int columnN) - { - TableOpenContextMenuNative(columnN); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableOpenContextMenu() - { - TableOpenContextMenuNative((int)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetColumnWidthNative(int columnN, float width) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[1116])(columnN, width); - #else - ((delegate* unmanaged[Cdecl]<int, float, void>)funcTable[1116])(columnN, width); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetColumnWidth(int columnN, float width) - { - TableSetColumnWidthNative(columnN, width); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetColumnSortDirectionNative(int columnN, ImGuiSortDirection sortDirection, byte appendToSortSpecs) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, ImGuiSortDirection, byte, void>)funcTable[1117])(columnN, sortDirection, appendToSortSpecs); - #else - ((delegate* unmanaged[Cdecl]<int, ImGuiSortDirection, byte, void>)funcTable[1117])(columnN, sortDirection, appendToSortSpecs); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetColumnSortDirection(int columnN, ImGuiSortDirection sortDirection, bool appendToSortSpecs) - { - TableSetColumnSortDirectionNative(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int TableGetHoveredColumnNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[1118])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[1118])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int TableGetHoveredColumn() - { - int ret = TableGetHoveredColumnNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float TableGetHeaderRowHeightNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float>)funcTable[1119])(); - #else - return (float)((delegate* unmanaged[Cdecl]<float>)funcTable[1119])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TableGetHeaderRowHeight() - { - float ret = TableGetHeaderRowHeightNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TablePushBackgroundChannelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1120])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1120])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TablePushBackgroundChannel() - { - TablePushBackgroundChannelNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TablePopBackgroundChannelNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1121])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1121])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TablePopBackgroundChannel() - { - TablePopBackgroundChannelNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTable* GetCurrentTableNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*>)funcTable[1122])(); - #else - return (ImGuiTable*)((delegate* unmanaged[Cdecl]<nint>)funcTable[1122])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTablePtr GetCurrentTable() - { - ImGuiTablePtr ret = GetCurrentTableNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTable* TableFindByIDNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTable*>)funcTable[1123])(id); - #else - return (ImGuiTable*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[1123])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTablePtr TableFindByID(uint id) - { - ImGuiTablePtr ret = TableFindByIDNative(id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginTableExNative(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint, int, ImGuiTableFlags, Vector2, float, byte>)funcTable[1124])(name, id, columnsCount, flags, outerSize, innerWidth); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, uint, int, ImGuiTableFlags, Vector2, float, byte>)funcTable[1124])((nint)name, id, columnsCount, flags, outerSize, innerWidth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(byte* name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ref byte name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = &name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount, ImGuiTableFlags flags) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount, Vector2 outerSize) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(ReadOnlySpan<byte> name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - fixed (byte* pname = name) - { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount, ImGuiTableFlags flags, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTableEx(string name, uint id, int columnsCount, Vector2 outerSize, float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginInitMemoryNative(ImGuiTable* table, int columnsCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, void>)funcTable[1125])(table, columnsCount); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[1125])((nint)table, columnsCount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) - { - TableBeginInitMemoryNative(table, columnsCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginInitMemory(ref ImGuiTable table, int columnsCount) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginInitMemoryNative((ImGuiTable*)ptable, columnsCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginApplyRequestsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1126])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1126])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginApplyRequests(ImGuiTablePtr table) - { - TableBeginApplyRequestsNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginApplyRequests(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginApplyRequestsNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetupDrawChannelsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1127])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1127])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupDrawChannels(ImGuiTablePtr table) - { - TableSetupDrawChannelsNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetupDrawChannels(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSetupDrawChannelsNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableUpdateLayoutNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1128])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1128])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableUpdateLayout(ImGuiTablePtr table) - { - TableUpdateLayoutNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableUpdateLayout(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateLayoutNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableUpdateBordersNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1129])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1129])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableUpdateBorders(ImGuiTablePtr table) - { - TableUpdateBordersNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableUpdateBorders(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateBordersNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableUpdateColumnsWeightFromWidthNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1130])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1130])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) - { - TableUpdateColumnsWeightFromWidthNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableUpdateColumnsWeightFromWidth(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateColumnsWeightFromWidthNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableDrawBordersNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1131])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1131])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableDrawBorders(ImGuiTablePtr table) - { - TableDrawBordersNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableDrawBorders(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableDrawBordersNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableDrawContextMenuNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1132])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1132])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableDrawContextMenu(ImGuiTablePtr table) - { - TableDrawContextMenuNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableDrawContextMenu(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableDrawContextMenuNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableMergeDrawChannelsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1133])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1133])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableMergeDrawChannels(ImGuiTablePtr table) - { - TableMergeDrawChannelsNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableMergeDrawChannels(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableMergeDrawChannelsNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableInstanceData* TableGetInstanceDataNative(ImGuiTable* table, int instanceNo) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, ImGuiTableInstanceData*>)funcTable[1134])(table, instanceNo); - #else - return (ImGuiTableInstanceData*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[1134])((nint)table, instanceNo); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) - { - ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative(table, instanceNo); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableInstanceDataPtr TableGetInstanceData(ref ImGuiTable table, int instanceNo) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiTableInstanceDataPtr ret = TableGetInstanceDataNative((ImGuiTable*)ptable, instanceNo); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSortSpecsSanitizeNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1135])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1135])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSortSpecsSanitize(ImGuiTablePtr table) - { - TableSortSpecsSanitizeNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSortSpecsSanitize(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSortSpecsSanitizeNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSortSpecsBuildNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1136])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1136])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSortSpecsBuild(ImGuiTablePtr table) - { - TableSortSpecsBuildNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSortSpecsBuild(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSortSpecsBuildNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiSortDirection TableGetColumnNextSortDirectionNative(ImGuiTableColumn* column) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTableColumn*, ImGuiSortDirection>)funcTable[1137])(column); - #else - return (ImGuiSortDirection)((delegate* unmanaged[Cdecl]<nint, ImGuiSortDirection>)funcTable[1137])((nint)column); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) - { - ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative(column); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiSortDirection TableGetColumnNextSortDirection(ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative((ImGuiTableColumn*)pcolumn); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableFixColumnSortDirectionNative(ImGuiTable* table, ImGuiTableColumn* column) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, ImGuiTableColumn*, void>)funcTable[1138])(table, column); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1138])((nint)table, (nint)column); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) - { - TableFixColumnSortDirectionNative(table, column); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableFixColumnSortDirection(ref ImGuiTable table, ImGuiTableColumnPtr column) - { - fixed (ImGuiTable* ptable = &table) - { - TableFixColumnSortDirectionNative((ImGuiTable*)ptable, column); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableFixColumnSortDirection(ImGuiTablePtr table, ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableFixColumnSortDirection(ref ImGuiTable table, ref ImGuiTableColumn column) - { - fixed (ImGuiTable* ptable = &table) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - TableFixColumnSortDirectionNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float TableGetColumnWidthAutoNative(ImGuiTable* table, ImGuiTableColumn* column) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, ImGuiTableColumn*, float>)funcTable[1139])(table, column); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, nint, float>)funcTable[1139])((nint)table, (nint)column); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) - { - float ret = TableGetColumnWidthAutoNative(table, column); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TableGetColumnWidthAuto(ref ImGuiTable table, ImGuiTableColumnPtr column) - { - fixed (ImGuiTable* ptable = &table) - { - float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, column); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TableGetColumnWidthAuto(ImGuiTablePtr table, ref ImGuiTableColumn column) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TableGetColumnWidthAuto(ref ImGuiTable table, ref ImGuiTableColumn column) - { - fixed (ImGuiTable* ptable = &table) - { - fixed (ImGuiTableColumn* pcolumn = &column) - { - float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginRowNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1140])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1140])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginRow(ImGuiTablePtr table) - { - TableBeginRowNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginRow(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginRowNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableEndRowNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1141])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1141])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableEndRow(ImGuiTablePtr table) - { - TableEndRowNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableEndRow(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableEndRowNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableBeginCellNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, void>)funcTable[1142])(table, columnN); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[1142])((nint)table, columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginCell(ImGuiTablePtr table, int columnN) - { - TableBeginCellNative(table, columnN); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableBeginCell(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - TableBeginCellNative((ImGuiTable*)ptable, columnN); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableEndCellNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1143])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1143])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableEndCell(ImGuiTablePtr table) - { - TableEndCellNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableEndCell(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableEndCellNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGetCellBgRectNative(ImRect* pOut, ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiTable*, int, void>)funcTable[1144])(pOut, table, columnN); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, void>)funcTable[1144])((nint)pOut, (nint)table, columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) - { - ImRect ret; - TableGetCellBgRectNative(&ret, table, columnN); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGetCellBgRect(ImRectPtr pOut, ImGuiTablePtr table, int columnN) - { - TableGetCellBgRectNative(pOut, table, columnN); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGetCellBgRect(ref ImRect pOut, ImGuiTablePtr table, int columnN) - { - fixed (ImRect* ppOut = &pOut) - { - TableGetCellBgRectNative((ImRect*)ppOut, table, columnN); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect TableGetCellBgRect(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - ImRect ret; - TableGetCellBgRectNative(&ret, (ImGuiTable*)ptable, columnN); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGetCellBgRect(ImRectPtr pOut, ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGetCellBgRect(ref ImRect pOut, ref ImGuiTable table, int columnN) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiTable* ptable = &table) - { - TableGetCellBgRectNative((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* TableGetColumnNameNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, byte*>)funcTable[1145])(table, columnN); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[1145])((nint)table, columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* TableGetColumnName(ImGuiTablePtr table, int columnN) - { - byte* ret = TableGetColumnNameNative(table, columnN); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string TableGetColumnNameS(ImGuiTablePtr table, int columnN) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(table, columnN)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* TableGetColumnName(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - byte* ret = TableGetColumnNameNative((ImGuiTable*)ptable, columnN); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string TableGetColumnNameS(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((ImGuiTable*)ptable, columnN)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint TableGetColumnResizeIDNative(ImGuiTable* table, int columnN, int instanceNo) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, int, uint>)funcTable[1146])(table, columnN, instanceNo); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, int, uint>)funcTable[1146])((nint)table, columnN, instanceNo); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo) - { - uint ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint TableGetColumnResizeID(ImGuiTablePtr table, int columnN) - { - uint ret = TableGetColumnResizeIDNative(table, columnN, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN, int instanceNo) - { - fixed (ImGuiTable* ptable = &table) - { - uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, instanceNo); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint TableGetColumnResizeID(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - uint ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, (int)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float TableGetMaxColumnWidthNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, float>)funcTable[1147])(table, columnN); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, int, float>)funcTable[1147])((nint)table, columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TableGetMaxColumnWidth(ImGuiTablePtr table, int columnN) - { - float ret = TableGetMaxColumnWidthNative(table, columnN); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float TableGetMaxColumnWidth(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - float ret = TableGetMaxColumnWidthNative((ImGuiTable*)ptable, columnN); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetColumnWidthAutoSingleNative(ImGuiTable* table, int columnN) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, int, void>)funcTable[1148])(table, columnN); - #else - ((delegate* unmanaged[Cdecl]<nint, int, void>)funcTable[1148])((nint)table, columnN); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) - { - TableSetColumnWidthAutoSingleNative(table, columnN); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetColumnWidthAutoSingle(ref ImGuiTable table, int columnN) - { - fixed (ImGuiTable* ptable = &table) - { - TableSetColumnWidthAutoSingleNative((ImGuiTable*)ptable, columnN); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSetColumnWidthAutoAllNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1149])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1149])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetColumnWidthAutoAll(ImGuiTablePtr table) - { - TableSetColumnWidthAutoAllNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSetColumnWidthAutoAll(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSetColumnWidthAutoAllNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableRemoveNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1150])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1150])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableRemove(ImGuiTablePtr table) - { - TableRemoveNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableRemove(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableRemoveNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGcCompactTransientBuffersNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1151])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1151])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGcCompactTransientBuffers(ImGuiTablePtr table) - { - TableGcCompactTransientBuffersNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGcCompactTransientBuffers(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableGcCompactTransientBuffersNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGcCompactTransientBuffersNative(ImGuiTableTempData* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableTempData*, void>)funcTable[1152])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1152])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) - { - TableGcCompactTransientBuffersNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGcCompactTransientBuffers(ref ImGuiTableTempData table) - { - fixed (ImGuiTableTempData* ptable = &table) - { - TableGcCompactTransientBuffersNative((ImGuiTableTempData*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableGcCompactSettingsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1153])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1153])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableGcCompactSettings() - { - TableGcCompactSettingsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableLoadSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1154])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1154])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableLoadSettings(ImGuiTablePtr table) - { - TableLoadSettingsNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableLoadSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableLoadSettingsNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSaveSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1155])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1155])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSaveSettings(ImGuiTablePtr table) - { - TableSaveSettingsNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSaveSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableSaveSettingsNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableResetSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1156])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1156])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableResetSettings(ImGuiTablePtr table) - { - TableResetSettingsNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableResetSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - TableResetSettingsNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* TableGetBoundSettingsNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTable*, ImGuiTableSettings*>)funcTable[1157])(table); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[1157])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) - { - ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative(table); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableSettingsPtr TableGetBoundSettings(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - ImGuiTableSettingsPtr ret = TableGetBoundSettingsNative((ImGuiTable*)ptable); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TableSettingsAddSettingsHandlerNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1158])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1158])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TableSettingsAddSettingsHandler() - { - TableSettingsAddSettingsHandlerNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* TableSettingsCreateNative(uint id, int columnsCount) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, int, ImGuiTableSettings*>)funcTable[1159])(id, columnsCount); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl]<uint, int, nint>)funcTable[1159])(id, columnsCount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableSettingsPtr TableSettingsCreate(uint id, int columnsCount) - { - ImGuiTableSettingsPtr ret = TableSettingsCreateNative(id, columnsCount); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTableSettings* TableSettingsFindByIDNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTableSettings*>)funcTable[1160])(id); - #else - return (ImGuiTableSettings*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[1160])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTableSettingsPtr TableSettingsFindByID(uint id) - { - ImGuiTableSettingsPtr ret = TableSettingsFindByIDNative(id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginTabBarExNative(ImGuiTabBar* tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dockNode) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImRect, ImGuiTabBarFlags, ImGuiDockNode*, byte>)funcTable[1161])(tabBar, bb, flags, dockNode); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImRect, ImGuiTabBarFlags, nint, byte>)funcTable[1161])((nint)tabBar, bb, flags, (nint)dockNode); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) - { - byte ret = BeginTabBarExNative(tabBar, bb, flags, dockNode); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNodePtr dockNode) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, dockNode); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBarEx(ImGuiTabBarPtr tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = BeginTabBarExNative(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginTabBarEx(ref ImGuiTabBar tabBar, ImRect bb, ImGuiTabBarFlags flags, ref ImGuiDockNode dockNode) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabItem* TabBarFindTabByIDNative(ImGuiTabBar* tabBar, uint tabId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, uint, ImGuiTabItem*>)funcTable[1162])(tabBar, tabId); - #else - return (ImGuiTabItem*)((delegate* unmanaged[Cdecl]<nint, uint, nint>)funcTable[1162])((nint)tabBar, tabId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, uint tabId) - { - ImGuiTabItemPtr ret = TabBarFindTabByIDNative(tabBar, tabId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTabItemPtr TabBarFindTabByID(ref ImGuiTabBar tabBar, uint tabId) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItemPtr ret = TabBarFindTabByIDNative((ImGuiTabBar*)ptabBar, tabId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative(ImGuiTabBar* tabBar) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*>)funcTable[1163])(tabBar); - #else - return (ImGuiTabItem*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[1163])((nint)tabBar); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBarPtr tabBar) - { - ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow(ref ImGuiTabBar tabBar) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItemPtr ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative((ImGuiTabBar*)ptabBar); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarAddTabNative(ImGuiTabBar* tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItemFlags, ImGuiWindow*, void>)funcTable[1164])(tabBar, tabFlags, window); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiTabItemFlags, nint, void>)funcTable[1164])((nint)tabBar, tabFlags, (nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) - { - TabBarAddTabNative(tabBar, tabFlags, window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, window); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarAddTab(ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarAddTab(ref ImGuiTabBar tabBar, ImGuiTabItemFlags tabFlags, ref ImGuiWindow window) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiWindow* pwindow = &window) - { - TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarRemoveTabNative(ImGuiTabBar* tabBar, uint tabId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, uint, void>)funcTable[1165])(tabBar, tabId); - #else - ((delegate* unmanaged[Cdecl]<nint, uint, void>)funcTable[1165])((nint)tabBar, tabId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarRemoveTab(ImGuiTabBarPtr tabBar, uint tabId) - { - TabBarRemoveTabNative(tabBar, tabId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarRemoveTab(ref ImGuiTabBar tabBar, uint tabId) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarRemoveTabNative((ImGuiTabBar*)ptabBar, tabId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarCloseTabNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, void>)funcTable[1166])(tabBar, tab); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1166])((nint)tabBar, (nint)tab); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) - { - TabBarCloseTabNative(tabBar, tab); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarCloseTabNative((ImGuiTabBar*)ptabBar, tab); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarCloseTab(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarCloseTab(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarCloseTabNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarQueueReorderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, int, void>)funcTable[1167])(tabBar, tab, offset); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, void>)funcTable[1167])((nint)tabBar, (nint)tab, offset); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) - { - TabBarQueueReorderNative(tabBar, tab, offset); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, int offset) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, tab, offset); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, int offset) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorder(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, int offset) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabBarQueueReorderFromMousePosNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, ImGuiTabItem*, Vector2, void>)funcTable[1168])(tabBar, tab, mousePos); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, Vector2, void>)funcTable[1168])((nint)tabBar, (nint)tab, mousePos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) - { - TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ImGuiTabItemPtr tab, Vector2 mousePos) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, tab, mousePos); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorderFromMousePos(ImGuiTabBarPtr tabBar, ref ImGuiTabItem tab, Vector2 mousePos) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabBarQueueReorderFromMousePos(ref ImGuiTabBar tabBar, ref ImGuiTabItem tab, Vector2 mousePos) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TabBarProcessReorderNative(ImGuiTabBar* tabBar) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, byte>)funcTable[1169])(tabBar); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[1169])((nint)tabBar); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) - { - byte ret = TabBarProcessReorderNative(tabBar); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabBarProcessReorder(ref ImGuiTabBar tabBar) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = TabBarProcessReorderNative((ImGuiTabBar*)ptabBar); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindow* dockedWindow) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, byte*, bool*, ImGuiTabItemFlags, ImGuiWindow*, byte>)funcTable[1170])(tabBar, label, pOpen, flags, dockedWindow); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, ImGuiTabItemFlags, nint, byte>)funcTable[1170])((nint)tabBar, (nint)label, (nint)pOpen, flags, (nint)dockedWindow); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan<byte> label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = label) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan<byte> label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan<byte> label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan<byte> label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = &label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan<byte> label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan<byte> label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, bool* pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, byte* label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, ReadOnlySpan<byte> label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ImGuiTabBarPtr tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ref byte label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, ReadOnlySpan<byte> label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TabItemEx(ref ImGuiTabBar tabBar, string label, ref bool pOpen, ImGuiTabItemFlags flags, ref ImGuiWindow dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (bool*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButton) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, byte*, byte, void>)funcTable[1171])(pOut, label, hasCloseButton); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, byte, void>)funcTable[1171])((nint)pOut, (nint)label, hasCloseButton); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 TabItemCalcSize(byte* label, bool hasCloseButton) - { - Vector2 ret; - TabItemCalcSizeNative(&ret, label, hasCloseButton ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(Vector2* pOut, byte* label, bool hasCloseButton) - { - TabItemCalcSizeNative(pOut, label, hasCloseButton ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(ref Vector2 pOut, byte* label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - TabItemCalcSizeNative((Vector2*)ppOut, label, hasCloseButton ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 TabItemCalcSize(ref byte label, bool hasCloseButton) - { - fixed (byte* plabel = &label) - { - Vector2 ret; - TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 TabItemCalcSize(ReadOnlySpan<byte> label, bool hasCloseButton) - { - fixed (byte* plabel = label) - { - Vector2 ret; - TabItemCalcSizeNative(&ret, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 TabItemCalcSize(string label, bool hasCloseButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - TabItemCalcSizeNative(&ret, pStr0, hasCloseButton ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(ref Vector2 pOut, ref byte label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* plabel = &label) - { - TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(ref Vector2 pOut, ReadOnlySpan<byte> label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* plabel = label) - { - TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(ref Vector2 pOut, string label, bool hasCloseButton) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemCalcSizeNative((Vector2*)ppOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(Vector2* pOut, ref byte label, bool hasCloseButton) - { - fixed (byte* plabel = &label) - { - TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(Vector2* pOut, ReadOnlySpan<byte> label, bool hasCloseButton) - { - fixed (byte* plabel = label) - { - TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButton ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemCalcSize(Vector2* pOut, string label, bool hasCloseButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemCalcSizeNative(pOut, pStr0, hasCloseButton ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabItemBackgroundNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, ImGuiTabItemFlags, uint, void>)funcTable[1172])(drawList, bb, flags, col); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, ImGuiTabItemFlags, uint, void>)funcTable[1172])((nint)drawList, bb, flags, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemBackground(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - TabItemBackgroundNative(drawList, bb, flags, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemBackground(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - TabItemBackgroundNative((ImDrawList*)pdrawList, bb, flags, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, ImGuiTabItemFlags, Vector2, byte*, uint, uint, byte, bool*, bool*, void>)funcTable[1173])(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible, outJustClosed, outTextClipped); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, ImGuiTabItemFlags, Vector2, nint, uint, uint, byte, nint, nint, void>)funcTable[1173])((nint)drawList, bb, flags, framePadding, (nint)label, tabId, closeButtonId, isContentsVisible, (nint)outJustClosed, (nint)outTextClipped); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (byte* plabel = &label) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs deleted file mode 100644 index f7d2e4988..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.011.cs +++ /dev/null @@ -1,5036 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (byte* plabel = label) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - fixed (byte* plabel = &label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - fixed (byte* plabel = label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, bool* outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - fixed (byte* plabel = &label) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - fixed (byte* plabel = label) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, bool* outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (bool*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - fixed (byte* plabel = &label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - fixed (byte* plabel = label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ImDrawListPtr drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, ReadOnlySpan<byte> label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TabItemLabelAndCloseButton(ref ImDrawList drawList, ImRect bb, ImGuiTabItemFlags flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref bool outJustClosed, ref bool outTextClipped) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* poutJustClosed = &outJustClosed) - { - fixed (bool* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (bool*)poutJustClosed, (bool*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextNative(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, byte*, byte*, byte, void>)funcTable[1174])(pos, text, textEnd, hideTextAfterHash); - #else - ((delegate* unmanaged[Cdecl]<Vector2, nint, nint, byte, void>)funcTable[1174])(pos, (nint)text, (nint)textEnd, hideTextAfterHash); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, byte* textEnd, bool hideTextAfterHash) - { - RenderTextNative(pos, text, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, byte* textEnd) - { - RenderTextNative(pos, text, textEnd, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text) - { - RenderTextNative(pos, text, (byte*)(default), (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, bool hideTextAfterHash) - { - RenderTextNative(pos, text, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, byte* textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, textEnd, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text) - { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, (byte*)(default), (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, bool hideTextAfterHash) - { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, byte* textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = text) - { - RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - RenderTextNative(pos, (byte*)ptext, textEnd, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - RenderTextNative(pos, (byte*)ptext, (byte*)(default), (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, bool hideTextAfterHash) - { - fixed (byte* ptext = text) - { - RenderTextNative(pos, (byte*)ptext, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, byte* textEnd, bool hideTextAfterHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, textEnd, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, (byte*)(default), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, bool hideTextAfterHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, ref byte textEnd, bool hideTextAfterHash) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, text, (byte*)ptextEnd, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, ReadOnlySpan<byte> textEnd, bool hideTextAfterHash) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, text, (byte*)ptextEnd, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, string textEnd, bool hideTextAfterHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, text, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, text, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, ref byte textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, string textEnd, bool hideTextAfterHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(pos, pStr0, pStr1, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(pos, pStr0, pStr1, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, ReadOnlySpan<byte> textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, string textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, (byte*)ptext, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, (byte*)ptext, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, ref byte textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, string textEnd, bool hideTextAfterHash) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, (byte*)ptext, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, (byte*)ptext, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, ref byte textEnd, bool hideTextAfterHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, pStr0, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, pStr0, (byte*)ptextEnd, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, ReadOnlySpan<byte> textEnd, bool hideTextAfterHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, pStr0, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderText(Vector2 pos, string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextNative(pos, pStr0, (byte*)ptextEnd, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextWrappedNative(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, byte*, byte*, float, void>)funcTable[1175])(pos, text, textEnd, wrapWidth); - #else - ((delegate* unmanaged[Cdecl]<Vector2, nint, nint, float, void>)funcTable[1175])(pos, (nint)text, (nint)textEnd, wrapWidth); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, byte* text, byte* textEnd, float wrapWidth) - { - RenderTextWrappedNative(pos, text, textEnd, wrapWidth); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ref byte text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan<byte> text, byte* textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, string text, byte* textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextWrappedNative(pos, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, byte* text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, byte* text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, byte* text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextWrappedNative(pos, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ref byte text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, string text, string textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextWrappedNative(pos, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ref byte text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ref byte text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextWrappedNative(pos, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan<byte> text, ref byte textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, ReadOnlySpan<byte> text, string textEnd, float wrapWidth) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextWrappedNative(pos, (byte*)ptext, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, string text, ref byte textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextWrappedNative(pos, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextWrapped(Vector2 pos, string text, ReadOnlySpan<byte> textEnd, float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextWrappedNative(pos, pStr0, (byte*)ptextEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextClippedNative(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, byte*, byte*, Vector2*, Vector2, ImRect*, void>)funcTable[1176])(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - #else - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, nint, nint, nint, Vector2, nint, void>)funcTable[1176])(posMin, posMax, (nint)text, (nint)textEnd, (nint)textSizeIfKnown, align, (nint)clipRect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs deleted file mode 100644 index 76ce5b14c..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.012.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClipped(Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextClippedExNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, byte*, byte*, Vector2*, Vector2, ImRect*, void>)funcTable[1177])(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, nint, nint, nint, Vector2, nint, void>)funcTable[1177])((nint)drawList, posMin, posMax, (nint)text, (nint)textEnd, (nint)textSizeIfKnown, align, (nint)clipRect); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs deleted file mode 100644 index c57d27c26..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.013.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ImRectPtr clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs deleted file mode 100644 index 39b8a423a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.014.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ref byte text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ref byte textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextClippedEx(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown, ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderTextEllipsisNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, float, float, byte*, byte*, Vector2*, void>)funcTable[1178])(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, float, float, nint, nint, nint, void>)funcTable[1178])((nint)drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (nint)text, (nint)textEnd, (nint)textSizeIfKnown); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, string textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan<byte> textEnd, Vector2* textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ImDrawListPtr drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ReadOnlySpan<byte> text, string textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ref byte textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderTextEllipsis(ref ImDrawList drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, ReadOnlySpan<byte> textEnd, ref Vector2 textSizeIfKnown) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderFrameNative(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, uint, byte, float, void>)funcTable[1179])(pMin, pMax, fillCol, border, rounding); - #else - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, uint, byte, float, void>)funcTable[1179])(pMin, pMax, fillCol, border, rounding); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding) - { - RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, bool border) - { - RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, (float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol) - { - RenderFrameNative(pMin, pMax, fillCol, (byte)(1), (float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderFrame(Vector2 pMin, Vector2 pMax, uint fillCol, float rounding) - { - RenderFrameNative(pMin, pMax, fillCol, (byte)(1), rounding); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderFrameBorderNative(Vector2 pMin, Vector2 pMax, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, float, void>)funcTable[1180])(pMin, pMax, rounding); - #else - ((delegate* unmanaged[Cdecl]<Vector2, Vector2, float, void>)funcTable[1180])(pMin, pMax, rounding); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax, float rounding) - { - RenderFrameBorderNative(pMin, pMax, rounding); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderFrameBorder(Vector2 pMin, Vector2 pMax) - { - RenderFrameBorderNative(pMin, pMax, (float)(0.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderColorRectWithAlphaCheckerboardNative(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, uint, float, Vector2, float, ImDrawFlags, void>)funcTable[1181])(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, float, Vector2, float, ImDrawFlags, void>)funcTable[1181])((nint)drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ImDrawListPtr drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) - { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, ImDrawFlags flags) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorRectWithAlphaCheckerboard(ref ImDrawList drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, ImDrawFlags flags) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderNavHighlightNative(ImRect bb, uint id, ImGuiNavHighlightFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiNavHighlightFlags, void>)funcTable[1182])(bb, id, flags); - #else - ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiNavHighlightFlags, void>)funcTable[1182])(bb, id, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderNavHighlight(ImRect bb, uint id, ImGuiNavHighlightFlags flags) - { - RenderNavHighlightNative(bb, id, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderNavHighlight(ImRect bb, uint id) - { - RenderNavHighlightNative(bb, id, (ImGuiNavHighlightFlags)(ImGuiNavHighlightFlags.TypeDefault)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* FindRenderedTextEndNative(byte* text, byte* textEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*>)funcTable[1183])(text, textEnd); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[1183])((nint)text, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(byte* text, byte* textEnd) - { - byte* ret = FindRenderedTextEndNative(text, textEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(byte* text) - { - byte* ret = FindRenderedTextEndNative(text, (byte*)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(byte* text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)(default))); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(byte* text, byte* textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, textEnd)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ref byte text) - { - fixed (byte* ptext = &text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ref byte text) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)(default))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, textEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative((byte*)ptext, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* FindRenderedTextEnd(string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - byte* ret = FindRenderedTextEndNative(pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string FindRenderedTextEndS(string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)ptextEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderMouseCursorNative(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2, float, ImGuiMouseCursor, uint, uint, uint, void>)funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); - #else - ((delegate* unmanaged[Cdecl]<Vector2, float, ImGuiMouseCursor, uint, uint, uint, void>)funcTable[1184])(pos, scale, mouseCursor, colFill, colBorder, colShadow); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderMouseCursor(Vector2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow) - { - RenderMouseCursorNative(pos, scale, mouseCursor, colFill, colBorder, colShadow); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderArrowNative(ImDrawList* drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, ImGuiDir, float, void>)funcTable[1185])(drawList, pos, col, dir, scale); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, uint, ImGuiDir, float, void>)funcTable[1185])((nint)drawList, pos, col, dir, scale); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - RenderArrowNative(drawList, pos, col, dir, scale); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrow(ImDrawListPtr drawList, Vector2 pos, uint col, ImGuiDir dir) - { - RenderArrowNative(drawList, pos, col, dir, (float)(1.0f)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir, float scale) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, scale); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrow(ref ImDrawList drawList, Vector2 pos, uint col, ImGuiDir dir) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, (float)(1.0f)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderBulletNative(ImDrawList* drawList, Vector2 pos, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, void>)funcTable[1186])(drawList, pos, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, uint, void>)funcTable[1186])((nint)drawList, pos, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderBullet(ImDrawListPtr drawList, Vector2 pos, uint col) - { - RenderBulletNative(drawList, pos, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderBullet(ref ImDrawList drawList, Vector2 pos, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderBulletNative((ImDrawList*)pdrawList, pos, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderCheckMarkNative(ImDrawList* drawList, Vector2 pos, uint col, float sz) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, float, void>)funcTable[1187])(drawList, pos, col, sz); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, uint, float, void>)funcTable[1187])((nint)drawList, pos, col, sz); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderCheckMark(ImDrawListPtr drawList, Vector2 pos, uint col, float sz) - { - RenderCheckMarkNative(drawList, pos, col, sz); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderCheckMark(ref ImDrawList drawList, Vector2 pos, uint col, float sz) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderCheckMarkNative((ImDrawList*)pdrawList, pos, col, sz); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderArrowPointingAtNative(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, Vector2, ImGuiDir, uint, void>)funcTable[1188])(drawList, pos, halfSz, direction, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, ImGuiDir, uint, void>)funcTable[1188])((nint)drawList, pos, halfSz, direction, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrowPointingAt(ImDrawListPtr drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - RenderArrowPointingAtNative(drawList, pos, halfSz, direction, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrowPointingAt(ref ImDrawList drawList, Vector2 pos, Vector2 halfSz, ImGuiDir direction, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowPointingAtNative((ImDrawList*)pdrawList, pos, halfSz, direction, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderArrowDockMenuNative(ImDrawList* drawList, Vector2 pMin, float sz, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, float, uint, void>)funcTable[1189])(drawList, pMin, sz, col); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, float, uint, void>)funcTable[1189])((nint)drawList, pMin, sz, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrowDockMenu(ImDrawListPtr drawList, Vector2 pMin, float sz, uint col) - { - RenderArrowDockMenuNative(drawList, pMin, sz, col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderArrowDockMenu(ref ImDrawList drawList, Vector2 pMin, float sz, uint col) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowDockMenuNative((ImDrawList*)pdrawList, pMin, sz, col); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderRectFilledRangeHNative(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, uint, float, float, float, void>)funcTable[1190])(drawList, rect, col, xStartNorm, xEndNorm, rounding); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, uint, float, float, float, void>)funcTable[1190])((nint)drawList, rect, col, xStartNorm, xEndNorm, rounding); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderRectFilledRangeH(ImDrawListPtr drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - RenderRectFilledRangeHNative(drawList, rect, col, xStartNorm, xEndNorm, rounding); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderRectFilledRangeH(ref ImDrawList drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderRectFilledRangeHNative((ImDrawList*)pdrawList, rect, col, xStartNorm, xEndNorm, rounding); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderRectFilledWithHoleNative(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImRect, ImRect, uint, float, void>)funcTable[1191])(drawList, outer, inner, col, rounding); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, ImRect, uint, float, void>)funcTable[1191])((nint)drawList, outer, inner, col, rounding); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderRectFilledWithHole(ImDrawListPtr drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - RenderRectFilledWithHoleNative(drawList, outer, inner, col, rounding); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderRectFilledWithHole(ref ImDrawList drawList, ImRect outer, ImRect inner, uint col, float rounding) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderRectFilledWithHoleNative((ImDrawList*)pdrawList, outer, inner, col, rounding); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawFlags CalcRoundingFlagsForRectInRectNative(ImRect rIn, ImRect rOuter, float threshold) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, ImRect, float, ImDrawFlags>)funcTable[1192])(rIn, rOuter, threshold); - #else - return (ImDrawFlags)((delegate* unmanaged[Cdecl]<ImRect, ImRect, float, ImDrawFlags>)funcTable[1192])(rIn, rOuter, threshold); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawFlags CalcRoundingFlagsForRectInRect(ImRect rIn, ImRect rOuter, float threshold) - { - ImDrawFlags ret = CalcRoundingFlagsForRectInRectNative(rIn, rOuter, threshold); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TextExNative(byte* text, byte* textEnd, ImGuiTextFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, ImGuiTextFlags, void>)funcTable[1193])(text, textEnd, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImGuiTextFlags, void>)funcTable[1193])((nint)text, (nint)textEnd, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, byte* textEnd, ImGuiTextFlags flags) - { - TextExNative(text, textEnd, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, byte* textEnd) - { - TextExNative(text, textEnd, (ImGuiTextFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text) - { - TextExNative(text, (byte*)(default), (ImGuiTextFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, ImGuiTextFlags flags) - { - TextExNative(text, (byte*)(default), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, byte* textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, textEnd, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, byte* textEnd) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, (byte*)(default), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, byte* textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, textEnd, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, byte* textEnd) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - TextExNative((byte*)ptext, (byte*)(default), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, byte* textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, textEnd, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, textEnd, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, (byte*)(default), (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, ref byte textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(text, (byte*)ptextEnd, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative(text, (byte*)ptextEnd, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, string textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(text, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(byte* text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(text, pStr0, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, ref byte textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, string textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextExNative(pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextExNative(pStr0, pStr1, (ImGuiTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, string textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ref byte text, string textEnd) - { - fixed (byte* ptext = &text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, ref byte textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, ref byte textEnd) - { - fixed (byte* ptext = text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, string textEnd, ImGuiTextFlags flags) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(ReadOnlySpan<byte> text, string textEnd) - { - fixed (byte* ptext = text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative((byte*)ptext, pStr0, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, ref byte textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, ReadOnlySpan<byte> textEnd, ImGuiTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TextEx(string text, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - TextExNative(pStr0, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ButtonExNative(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImGuiButtonFlags, byte>)funcTable[1194])(label, sizeArg, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, ImGuiButtonFlags, byte>)funcTable[1194])((nint)label, sizeArg, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(byte* label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - byte ret = ButtonExNative(label, sizeArg, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(byte* label, Vector2 sizeArg) - { - byte ret = ButtonExNative(label, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(byte* label) - { - byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(byte* label, ImGuiButtonFlags flags) - { - byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ref byte label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ref byte label, Vector2 sizeArg) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ref byte label, ImGuiButtonFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ReadOnlySpan<byte> label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ReadOnlySpan<byte> label, Vector2 sizeArg) - { - fixed (byte* plabel = label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs deleted file mode 100644 index 768ed1aa7..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.015.cs +++ /dev/null @@ -1,5027 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(ReadOnlySpan<byte> label, ImGuiButtonFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(string label, Vector2 sizeArg, ImGuiButtonFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, sizeArg, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(string label, Vector2 sizeArg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, sizeArg, (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonEx(string label, ImGuiButtonFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CloseButtonNative(uint id, Vector2 pos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, Vector2, byte>)funcTable[1195])(id, pos); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, Vector2, byte>)funcTable[1195])(id, pos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CloseButton(uint id, Vector2 pos) - { - byte ret = CloseButtonNative(id, pos); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CollapseButtonNative(uint id, Vector2 pos, ImGuiDockNode* dockNode) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, Vector2, ImGuiDockNode*, byte>)funcTable[1196])(id, pos, dockNode); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, Vector2, nint, byte>)funcTable[1196])(id, pos, (nint)dockNode); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapseButton(uint id, Vector2 pos, ImGuiDockNodePtr dockNode) - { - byte ret = CollapseButtonNative(id, pos, dockNode); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CollapseButton(uint id, Vector2 pos, ref ImGuiDockNode dockNode) - { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = CollapseButtonNative(id, pos, (ImGuiDockNode*)pdockNode); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ArrowButtonExNative(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDir, Vector2, ImGuiButtonFlags, byte>)funcTable[1197])(strId, dir, sizeArg, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDir, Vector2, ImGuiButtonFlags, byte>)funcTable[1197])((nint)strId, dir, sizeArg, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) - { - byte ret = ArrowButtonExNative(strId, dir, sizeArg, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(byte* strId, ImGuiDir dir, Vector2 sizeArg) - { - byte ret = ArrowButtonExNative(strId, dir, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(ref byte strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(ref byte strId, ImGuiDir dir, Vector2 sizeArg) - { - fixed (byte* pstrId = &strId) - { - byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(ReadOnlySpan<byte> strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) - { - fixed (byte* pstrId = strId) - { - byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(ReadOnlySpan<byte> strId, ImGuiDir dir, Vector2 sizeArg) - { - fixed (byte* pstrId = strId) - { - byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(string strId, ImGuiDir dir, Vector2 sizeArg, ImGuiButtonFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ArrowButtonExNative(pStr0, dir, sizeArg, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ArrowButtonEx(string strId, ImGuiDir dir, Vector2 sizeArg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ArrowButtonExNative(pStr0, dir, sizeArg, (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ScrollbarNative(ImGuiAxis axis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiAxis, void>)funcTable[1198])(axis); - #else - ((delegate* unmanaged[Cdecl]<ImGuiAxis, void>)funcTable[1198])(axis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Scrollbar(ImGuiAxis axis) - { - ScrollbarNative(axis); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ScrollbarExNative(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, long*, long, long, ImDrawFlags, byte>)funcTable[1199])(bb, id, axis, pScrollV, availV, contentsV, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, nint, long, long, ImDrawFlags, byte>)funcTable[1199])(bb, id, axis, (nint)pScrollV, availV, contentsV, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ScrollbarEx(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, ImDrawFlags flags) - { - byte ret = ScrollbarExNative(bb, id, axis, pScrollV, availV, contentsV, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImageButtonExNative(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector4, Vector4, byte>)funcTable[1200])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, ImTextureID, Vector2, Vector2, Vector2, Vector2, Vector4, Vector4, byte>)funcTable[1200])(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImageButtonEx(uint id, ImTextureID textureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bgCol, Vector4 tintCol) - { - byte ret = ImageButtonExNative(id, textureId, size, uv0, uv1, padding, bgCol, tintCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetWindowScrollbarRectNative(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImRect*, ImGuiWindow*, ImGuiAxis, void>)funcTable[1201])(pOut, window, axis); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImGuiAxis, void>)funcTable[1201])((nint)pOut, (nint)window, axis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetWindowScrollbarRect(ImGuiWindowPtr window, ImGuiAxis axis) - { - ImRect ret; - GetWindowScrollbarRectNative(&ret, window, axis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowScrollbarRect(ImRectPtr pOut, ImGuiWindowPtr window, ImGuiAxis axis) - { - GetWindowScrollbarRectNative(pOut, window, axis); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowScrollbarRect(ref ImRect pOut, ImGuiWindowPtr window, ImGuiAxis axis) - { - fixed (ImRect* ppOut = &pOut) - { - GetWindowScrollbarRectNative((ImRect*)ppOut, window, axis); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImRect GetWindowScrollbarRect(ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImRect ret; - GetWindowScrollbarRectNative(&ret, (ImGuiWindow*)pwindow, axis); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowScrollbarRect(ImRectPtr pOut, ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImGuiWindow* pwindow = &window) - { - GetWindowScrollbarRectNative(pOut, (ImGuiWindow*)pwindow, axis); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetWindowScrollbarRect(ref ImRect pOut, ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - GetWindowScrollbarRectNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, axis); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetWindowScrollbarIDNative(ImGuiWindow* window, ImGuiAxis axis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiAxis, uint>)funcTable[1202])(window, axis); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, ImGuiAxis, uint>)funcTable[1202])((nint)window, axis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetWindowScrollbarID(ImGuiWindowPtr window, ImGuiAxis axis) - { - uint ret = GetWindowScrollbarIDNative(window, axis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetWindowScrollbarID(ref ImGuiWindow window, ImGuiAxis axis) - { - fixed (ImGuiWindow* pwindow = &window) - { - uint ret = GetWindowScrollbarIDNative((ImGuiWindow*)pwindow, axis); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetWindowResizeCornerIDNative(ImGuiWindow* window, int n) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, int, uint>)funcTable[1203])(window, n); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[1203])((nint)window, n); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetWindowResizeCornerID(ImGuiWindowPtr window, int n) - { - uint ret = GetWindowResizeCornerIDNative(window, n); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetWindowResizeCornerID(ref ImGuiWindow window, int n) - { - fixed (ImGuiWindow* pwindow = &window) - { - uint ret = GetWindowResizeCornerIDNative((ImGuiWindow*)pwindow, n); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetWindowResizeBorderIDNative(ImGuiWindow* window, ImGuiDir dir) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiDir, uint>)funcTable[1204])(window, dir); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, ImGuiDir, uint>)funcTable[1204])((nint)window, dir); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetWindowResizeBorderID(ImGuiWindowPtr window, ImGuiDir dir) - { - uint ret = GetWindowResizeBorderIDNative(window, dir); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetWindowResizeBorderID(ref ImGuiWindow window, ImGuiDir dir) - { - fixed (ImGuiWindow* pwindow = &window) - { - uint ret = GetWindowResizeBorderIDNative((ImGuiWindow*)pwindow, dir); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SeparatorExNative(ImGuiSeparatorFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiSeparatorFlags, void>)funcTable[1205])(flags); - #else - ((delegate* unmanaged[Cdecl]<ImGuiSeparatorFlags, void>)funcTable[1205])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SeparatorEx(ImGuiSeparatorFlags flags) - { - SeparatorExNative(flags); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CheckboxFlagsNative(byte* label, long* flags, long flagsValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, long*, long, byte>)funcTable[1206])(label, flags, flagsValue); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, long, byte>)funcTable[1206])((nint)label, (nint)flags, flagsValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(byte* label, long* flags, long flagsValue) - { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ref byte label, long* flags, long flagsValue) - { - fixed (byte* plabel = &label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ReadOnlySpan<byte> label, long* flags, long flagsValue) - { - fixed (byte* plabel = label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(string label, long* flags, long flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CheckboxFlagsNative(byte* label, ulong* flags, ulong flagsValue) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong, byte>)funcTable[1207])(label, flags, flagsValue); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ulong, byte>)funcTable[1207])((nint)label, (nint)flags, flagsValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(byte* label, ulong* flags, ulong flagsValue) - { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ref byte label, ulong* flags, ulong flagsValue) - { - fixed (byte* plabel = &label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(ReadOnlySpan<byte> label, ulong* flags, ulong flagsValue) - { - fixed (byte* plabel = label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CheckboxFlags(string label, ulong* flags, ulong flagsValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ButtonBehaviorNative(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, bool*, bool*, ImGuiButtonFlags, byte>)funcTable[1208])(bb, id, outHovered, outHeld, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, nint, nint, ImGuiButtonFlags, byte>)funcTable[1208])(bb, id, (nint)outHovered, (nint)outHeld, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld, ImGuiButtonFlags flags) - { - byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, bool* outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld, ImGuiButtonFlags flags) - { - fixed (bool* poutHovered = &outHovered) - { - byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, outHeld, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, bool* outHeld) - { - fixed (bool* poutHovered = &outHovered) - { - byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, outHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld, ImGuiButtonFlags flags) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, outHovered, (bool*)poutHeld, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, bool* outHovered, ref bool outHeld) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, outHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld, ImGuiButtonFlags flags) - { - fixed (bool* poutHovered = &outHovered) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, (bool*)poutHeld, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ButtonBehavior(ImRect bb, uint id, ref bool outHovered, ref bool outHeld) - { - fixed (bool* poutHovered = &outHovered) - { - fixed (bool* poutHeld = &outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, (bool*)poutHovered, (bool*)poutHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragBehaviorNative(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, void*, float, void*, void*, byte*, ImGuiSliderFlags, byte>)funcTable[1209])(id, dataType, pV, vSpeed, pMin, pMax, format, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, nint, float, nint, nint, nint, ImGuiSliderFlags, byte>)funcTable[1209])(id, dataType, (nint)pV, vSpeed, (nint)pMin, (nint)pMax, (nint)format, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags) - { - byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags) - { - fixed (byte* pformat = format) - { - byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragBehavior(uint id, ImGuiDataType dataType, void* pV, float vSpeed, void* pMin, void* pMax, string format, ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SliderBehaviorNative(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRect* outGrabBb) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiDataType, void*, void*, void*, byte*, ImGuiSliderFlags, ImRect*, byte>)funcTable[1210])(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiDataType, nint, nint, nint, nint, ImGuiSliderFlags, nint, byte>)funcTable[1210])(bb, id, dataType, (nint)pV, (nint)pMin, (nint)pMax, (nint)format, flags, (nint)outGrabBb); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) - { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) - { - fixed (byte* pformat = &format) - { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) - { - fixed (byte* pformat = format) - { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, string format, ImGuiSliderFlags flags, ImRectPtr outGrabBb) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, outGrabBb); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags, ref ImRect outGrabBb) - { - fixed (ImRect* poutGrabBb = &outGrabBb) - { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, (ImRect*)poutGrabBb); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ref byte format, ImGuiSliderFlags flags, ref ImRect outGrabBb) - { - fixed (byte* pformat = &format) - { - fixed (ImRect* poutGrabBb = &outGrabBb) - { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, ReadOnlySpan<byte> format, ImGuiSliderFlags flags, ref ImRect outGrabBb) - { - fixed (byte* pformat = format) - { - fixed (ImRect* poutGrabBb = &outGrabBb) - { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SliderBehavior(ImRect bb, uint id, ImGuiDataType dataType, void* pV, void* pMin, void* pMax, string format, ImGuiSliderFlags flags, ref ImRect outGrabBb) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* poutGrabBb = &outGrabBb) - { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, (ImRect*)poutGrabBb); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SplitterBehaviorNative(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, float*, float*, float, float, float, float, uint, byte>)funcTable[1211])(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, ImGuiAxis, nint, nint, float, float, float, float, uint, byte>)funcTable[1211])(bb, id, axis, (nint)size1, (nint)size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, uint bgCol) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend) - { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2) - { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, uint bgCol) - { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, uint bgCol) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, uint bgCol) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SplitterBehavior(ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, uint bgCol) - { - fixed (float* psize1 = &size1) - { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeBehaviorNative(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, byte*, byte*, byte>)funcTable[1212])(id, flags, label, labelEnd); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, nint, nint, byte>)funcTable[1212])(id, flags, (nint)label, (nint)labelEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, byte* labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, label, labelEnd); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label) - { - byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, byte* labelEnd) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label, byte* labelEnd) - { - fixed (byte* plabel = label) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, byte* labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, ref byte labelEnd) - { - fixed (byte* plabelEnd = &labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, ReadOnlySpan<byte> labelEnd) - { - fixed (byte* plabelEnd = labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, byte* label, string labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, label, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, ref byte labelEnd) - { - fixed (byte* plabel = &label) - { - fixed (byte* plabelEnd = &labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label, ReadOnlySpan<byte> labelEnd) - { - fixed (byte* plabel = label) - { - fixed (byte* plabelEnd = labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, string labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, ReadOnlySpan<byte> labelEnd) - { - fixed (byte* plabel = &label) - { - fixed (byte* plabelEnd = labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ref byte label, string labelEnd) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label, ref byte labelEnd) - { - fixed (byte* plabel = label) - { - fixed (byte* plabelEnd = &labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, ReadOnlySpan<byte> label, string labelEnd) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, ref byte labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelEnd = &labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)plabelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehavior(uint id, ImGuiTreeNodeFlags flags, string label, ReadOnlySpan<byte> labelEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelEnd = labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)plabelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TreeNodeBehaviorIsOpenNative(uint id, ImGuiTreeNodeFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, byte>)funcTable[1213])(id, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, ImGuiTreeNodeFlags, byte>)funcTable[1213])(id, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehaviorIsOpen(uint id, ImGuiTreeNodeFlags flags) - { - byte ret = TreeNodeBehaviorIsOpenNative(id, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TreeNodeBehaviorIsOpen(uint id) - { - byte ret = TreeNodeBehaviorIsOpenNative(id, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TreePushOverrideIDNative(uint id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1214])(id); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1214])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TreePushOverrideID(uint id) - { - TreePushOverrideIDNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiDataTypeInfo* DataTypeGetInfoNative(ImGuiDataType dataType) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDataType, ImGuiDataTypeInfo*>)funcTable[1215])(dataType); - #else - return (ImGuiDataTypeInfo*)((delegate* unmanaged[Cdecl]<ImGuiDataType, nint>)funcTable[1215])(dataType); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiDataTypeInfoPtr DataTypeGetInfo(ImGuiDataType dataType) - { - ImGuiDataTypeInfoPtr ret = DataTypeGetInfoNative(dataType); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DataTypeApplyOpNative(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDataType, int, void*, void*, void*, void>)funcTable[1216])(dataType, op, output, arg1, arg2); - #else - ((delegate* unmanaged[Cdecl]<ImGuiDataType, int, nint, nint, nint, void>)funcTable[1216])(dataType, op, (nint)output, (nint)arg1, (nint)arg2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DataTypeApplyOp(ImGuiDataType dataType, int op, void* output, void* arg1, void* arg2) - { - DataTypeApplyOpNative(dataType, op, output, arg1, arg2); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DataTypeApplyFromTextNative(byte* buf, ImGuiDataType dataType, void* pData, byte* format) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDataType, void*, byte*, byte>)funcTable[1217])(buf, dataType, pData, format); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDataType, nint, nint, byte>)funcTable[1217])((nint)buf, dataType, (nint)pData, (nint)format); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, byte* format) - { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, format); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* pbuf = &buf) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, format); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ReadOnlySpan<byte> buf, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* pbuf = buf) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, format); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(byte* buf, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ReadOnlySpan<byte> buf, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pbuf = buf) - { - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ref byte buf, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ReadOnlySpan<byte> buf, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pbuf = buf) - { - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(ReadOnlySpan<byte> buf, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* pbuf = buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, (byte*)pformat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeApplyFromText(string buf, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, (byte*)pformat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int DataTypeCompareNative(ImGuiDataType dataType, void* arg1, void* arg2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDataType, void*, void*, int>)funcTable[1218])(dataType, arg1, arg2); - #else - return (int)((delegate* unmanaged[Cdecl]<ImGuiDataType, nint, nint, int>)funcTable[1218])(dataType, (nint)arg1, (nint)arg2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeCompare(ImGuiDataType dataType, void* arg1, void* arg2) - { - int ret = DataTypeCompareNative(dataType, arg1, arg2); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DataTypeClampNative(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDataType, void*, void*, void*, byte>)funcTable[1219])(dataType, pData, pMin, pMax); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiDataType, nint, nint, nint, byte>)funcTable[1219])(dataType, (nint)pData, (nint)pMin, (nint)pMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DataTypeClamp(ImGuiDataType dataType, void* pData, void* pMin, void* pMax) - { - byte ret = DataTypeClampNative(dataType, pData, pMin, pMax); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TempInputScalarNative(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte*, ImGuiDataType, void*, byte*, void*, void*, byte>)funcTable[1220])(bb, id, label, dataType, pData, format, pClampMin, pClampMax); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, nint, ImGuiDataType, nint, nint, nint, nint, byte>)funcTable[1220])(bb, id, (nint)label, dataType, (nint)pData, (nint)format, (nint)pClampMin, (nint)pClampMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, pClampMax); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, byte* format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, (void*)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - fixed (byte* plabel = label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin, void* pClampMax) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, byte* label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, pClampMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, (void*)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ref byte label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, string format, void* pClampMin, void* pClampMax) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, string format, void* pClampMin) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, ReadOnlySpan<byte> label, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, pStr0, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin, void* pClampMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format, void* pClampMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputScalar(ImRect bb, uint id, string label, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TempInputIsActiveNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, byte>)funcTable[1221])(id); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, byte>)funcTable[1221])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputIsActive(uint id) - { - byte ret = TempInputIsActiveNative(id); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImGuiInputTextState* GetInputTextStateNative(uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, ImGuiInputTextState*>)funcTable[1222])(id); - #else - return (ImGuiInputTextState*)((delegate* unmanaged[Cdecl]<uint, nint>)funcTable[1222])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImGuiInputTextStatePtr GetInputTextState(uint id) - { - ImGuiInputTextStatePtr ret = GetInputTextStateNative(id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Custom_StbTextMakeUndoReplaceNative(ImGuiInputTextState* str, int where, int oldLength, int newLength) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, int, int, int, void>)funcTable[1223])(str, where, oldLength, newLength); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, int, void>)funcTable[1223])((nint)str, where, oldLength, newLength); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Custom_StbTextMakeUndoReplace(ImGuiInputTextStatePtr str, int where, int oldLength, int newLength) - { - Custom_StbTextMakeUndoReplaceNative(str, where, oldLength, newLength); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Custom_StbTextMakeUndoReplace(ref ImGuiInputTextState str, int where, int oldLength, int newLength) - { - fixed (ImGuiInputTextState* pstr = &str) - { - Custom_StbTextMakeUndoReplaceNative((ImGuiInputTextState*)pstr, where, oldLength, newLength); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Custom_StbTextUndoNative(ImGuiInputTextState* str) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[1224])(str); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1224])((nint)str); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Custom_StbTextUndo(ImGuiInputTextStatePtr str) - { - Custom_StbTextUndoNative(str); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Custom_StbTextUndo(ref ImGuiInputTextState str) - { - fixed (ImGuiInputTextState* pstr = &str) - { - Custom_StbTextUndoNative((ImGuiInputTextState*)pstr); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorTooltipNative(byte* text, float* col, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, ImGuiColorEditFlags, void>)funcTable[1225])(text, col, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImGuiColorEditFlags, void>)funcTable[1225])((nint)text, (nint)col, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(byte* text, float* col, ImGuiColorEditFlags flags) - { - ColorTooltipNative(text, col, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(ref byte text, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = &text) - { - ColorTooltipNative((byte*)ptext, col, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(ReadOnlySpan<byte> text, float* col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = text) - { - ColorTooltipNative((byte*)ptext, col, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(string text, float* col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColorTooltipNative(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(byte* text, ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - ColorTooltipNative(text, (float*)pcol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(ref byte text, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = &text) - { - fixed (float* pcol = &col) - { - ColorTooltipNative((byte*)ptext, (float*)pcol, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(ReadOnlySpan<byte> text, ref float col, ImGuiColorEditFlags flags) - { - fixed (byte* ptext = text) - { - fixed (float* pcol = &col) - { - ColorTooltipNative((byte*)ptext, (float*)pcol, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorTooltip(string text, ref float col, ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - ColorTooltipNative(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorEditOptionsPopupNative(float* col, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, ImGuiColorEditFlags, void>)funcTable[1226])(col, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiColorEditFlags, void>)funcTable[1226])((nint)col, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorEditOptionsPopup(float* col, ImGuiColorEditFlags flags) - { - ColorEditOptionsPopupNative(col, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorEditOptionsPopup(ref float col, ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - ColorEditOptionsPopupNative((float*)pcol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColorPickerOptionsPopupNative(float* refCol, ImGuiColorEditFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, ImGuiColorEditFlags, void>)funcTable[1227])(refCol, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImGuiColorEditFlags, void>)funcTable[1227])((nint)refCol, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorPickerOptionsPopup(float* refCol, ImGuiColorEditFlags flags) - { - ColorPickerOptionsPopupNative(refCol, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColorPickerOptionsPopup(ref float refCol, ImGuiColorEditFlags flags) - { - fixed (float* prefCol = &refCol) - { - ColorPickerOptionsPopupNative((float*)prefCol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int PlotExNative(ImGuiPlotType plotType, byte* label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiPlotType, byte*, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float>, void*, int, int, byte*, float, float, Vector2, int>)funcTable[1228])(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - #else - return (int)((delegate* unmanaged[Cdecl]<ImGuiPlotType, nint, nint, nint, int, int, nint, float, float, Vector2, int>)funcTable[1228])(plotType, (nint)label, (nint)valuesGetter, (nint)data, valuesCount, valuesOffset, (nint)overlayText, scaleMin, scaleMax, frameSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan<byte> label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, byte* label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan<byte> label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, frameSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ref byte label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan<byte> label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, ReadOnlySpan<byte> label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = &overlayText) - { - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int PlotEx(ImGuiPlotType plotType, string label, delegate*<ImGuiPlotType, byte*, delegate*<void*, int, float>, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ReadOnlySpan<byte> overlayText, float scaleMin, float scaleMax, Vector2 frameSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poverlayText = overlayText) - { - int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, frameSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShadeVertsLinearColorGradientKeepAlphaNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, Vector2, Vector2, uint, uint, void>)funcTable[1229])(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, Vector2, Vector2, uint, uint, void>)funcTable[1229])((nint)drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShadeVertsLinearColorGradientKeepAlpha(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - ShadeVertsLinearColorGradientKeepAlphaNative(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShadeVertsLinearColorGradientKeepAlpha(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ShadeVertsLinearColorGradientKeepAlphaNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShadeVertsLinearUVNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, byte clamp) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, int, int, Vector2, Vector2, Vector2, Vector2, byte, void>)funcTable[1230])(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, Vector2, Vector2, Vector2, Vector2, byte, void>)funcTable[1230])((nint)drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShadeVertsLinearUV(ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) - { - ShadeVertsLinearUVNative(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShadeVertsLinearUV(ref ImDrawList drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) - { - fixed (ImDrawList* pdrawList = &drawList) - { - ShadeVertsLinearUVNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GcCompactTransientMiscBuffersNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1231])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1231])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GcCompactTransientMiscBuffers() - { - GcCompactTransientMiscBuffersNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GcCompactTransientWindowBuffersNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1232])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1232])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GcCompactTransientWindowBuffers(ImGuiWindowPtr window) - { - GcCompactTransientWindowBuffersNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GcCompactTransientWindowBuffers(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - GcCompactTransientWindowBuffersNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GcAwakeTransientWindowBuffersNative(ImGuiWindow* window) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, void>)funcTable[1233])(window); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1233])((nint)window); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GcAwakeTransientWindowBuffers(ImGuiWindowPtr window) - { - GcAwakeTransientWindowBuffersNative(window); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GcAwakeTransientWindowBuffers(ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - GcAwakeTransientWindowBuffersNative((ImGuiWindow*)pwindow); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugLogNative(byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[1234])(fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1234])((nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLog(byte* fmt) - { - DebugLogNative(fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLog(ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - DebugLogNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLog(ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - DebugLogNative((byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLog(string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugLogNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugLogVNative(byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, nuint, void>)funcTable[1235])(fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, nuint, void>)funcTable[1235])((nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLogV(byte* fmt, nuint args) - { - DebugLogVNative(fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLogV(ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - DebugLogVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLogV(ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - DebugLogVNative((byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugLogV(string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugLogVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ErrorCheckEndFrameRecoverNative(ImGuiErrorLogCallback logCallback, void* userData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<delegate*<void*, byte*, void>, void*, void>)funcTable[1236])((delegate*<void*, byte*, void>)Utils.GetFunctionPointerForDelegate(logCallback), userData); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1236])((nint)Utils.GetFunctionPointerForDelegate(logCallback), (nint)userData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - ErrorCheckEndFrameRecoverNative(logCallback, userData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback logCallback) - { - ErrorCheckEndFrameRecoverNative(logCallback, (void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ErrorCheckEndWindowRecoverNative(ImGuiErrorLogCallback logCallback, void* userData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<delegate*<void*, byte*, void>, void*, void>)funcTable[1237])((delegate*<void*, byte*, void>)Utils.GetFunctionPointerForDelegate(logCallback), userData); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1237])((nint)Utils.GetFunctionPointerForDelegate(logCallback), (nint)userData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback, void* userData) - { - ErrorCheckEndWindowRecoverNative(logCallback, userData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback logCallback) - { - ErrorCheckEndWindowRecoverNative(logCallback, (void*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugDrawItemRectNative(uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1238])(col); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[1238])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugDrawItemRect(uint col) - { - DebugDrawItemRectNative(col); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugDrawItemRect() - { - DebugDrawItemRectNative((uint)(4278190335)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugStartItemPickerNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1239])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1239])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugStartItemPicker() - { - DebugStartItemPickerNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowFontAtlasNative(ImFontAtlas* atlas) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[1240])(atlas); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1240])((nint)atlas); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowFontAtlas(ImFontAtlasPtr atlas) - { - ShowFontAtlasNative(atlas); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowFontAtlas(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ShowFontAtlasNative((ImFontAtlas*)patlas); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugHookIdInfoNative(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, void*, void*, void>)funcTable[1241])(id, dataType, dataId, dataIdEnd); - #else - ((delegate* unmanaged[Cdecl]<uint, ImGuiDataType, nint, nint, void>)funcTable[1241])(id, dataType, (nint)dataId, (nint)dataIdEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugHookIdInfo(uint id, ImGuiDataType dataType, void* dataId, void* dataIdEnd) - { - DebugHookIdInfoNative(id, dataType, dataId, dataIdEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeColumnsNative(ImGuiOldColumns* columns) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiOldColumns*, void>)funcTable[1242])(columns); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1242])((nint)columns); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeColumns(ImGuiOldColumnsPtr columns) - { - DebugNodeColumnsNative(columns); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeColumns(ref ImGuiOldColumns columns) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - DebugNodeColumnsNative((ImGuiOldColumns*)pcolumns); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeDockNodeNative(ImGuiDockNode* node, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiDockNode*, byte*, void>)funcTable[1243])(node, label); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1243])((nint)node, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ImGuiDockNodePtr node, byte* label) - { - DebugNodeDockNodeNative(node, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ref ImGuiDockNode node, byte* label) - { - fixed (ImGuiDockNode* pnode = &node) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ImGuiDockNodePtr node, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeDockNodeNative(node, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ImGuiDockNodePtr node, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - DebugNodeDockNodeNative(node, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ImGuiDockNodePtr node, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDockNodeNative(node, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ref ImGuiDockNode node, ref byte label) - { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (byte* plabel = &label) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ref ImGuiDockNode node, ReadOnlySpan<byte> label) - { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (byte* plabel = label) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDockNode(ref ImGuiDockNode node, string label) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeDrawListNative(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, ImGuiViewportP*, ImDrawList*, byte*, void>)funcTable[1244])(window, viewport, drawList, label); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, void>)funcTable[1244])((nint)window, (nint)viewport, (nint)drawList, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, byte* label) - { - DebugNodeDrawListNative(window, viewport, drawList, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, byte* label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, label); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, label); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative(window, viewport, drawList, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative(window, viewport, drawList, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative(window, viewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ReadOnlySpan<byte> label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ref byte label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ReadOnlySpan<byte> label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs deleted file mode 100644 index 6e47757d5..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs +++ /dev/null @@ -1,2114 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGuiP - { - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, string label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, ReadOnlySpan<byte> label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ImDrawListPtr drawList, string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ref byte label) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ReadOnlySpan<byte> label) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, string label) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, ReadOnlySpan<byte> label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ImGuiViewportPPtr viewport, ref ImDrawList drawList, string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ref byte label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ReadOnlySpan<byte> label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ImGuiWindowPtr window, ref ImGuiViewportP viewport, ref ImDrawList drawList, string label) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ReadOnlySpan<byte> label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawList(ref ImGuiWindow window, ref ImGuiViewportP viewport, ref ImDrawList drawList, string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeDrawCmdShowMeshAndBoundingBoxNative(ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, byte showMesh, byte showAabb) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImDrawList*, ImDrawCmd*, byte, byte, void>)funcTable[1245])(outDrawList, drawList, drawCmd, showMesh, showAabb); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, byte, byte, void>)funcTable[1245])((nint)outDrawList, (nint)drawList, (nint)drawCmd, showMesh, showAabb); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ImDrawListPtr drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawListPtr outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeDrawCmdShowMeshAndBoundingBox(ref ImDrawList outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeFontNative(ImFont* font) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, void>)funcTable[1246])(font); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1246])((nint)font); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeFont(ImFontPtr font) - { - DebugNodeFontNative(font); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeFont(ref ImFont font) - { - fixed (ImFont* pfont = &font) - { - DebugNodeFontNative((ImFont*)pfont); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeFontGlyphNative(ImFont* font, ImFontGlyph* glyph) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFont*, ImFontGlyph*, void>)funcTable[1247])(font, glyph); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1247])((nint)font, (nint)glyph); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeFontGlyph(ImFontPtr font, ImFontGlyphPtr glyph) - { - DebugNodeFontGlyphNative(font, glyph); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeFontGlyph(ref ImFont font, ImFontGlyphPtr glyph) - { - fixed (ImFont* pfont = &font) - { - DebugNodeFontGlyphNative((ImFont*)pfont, glyph); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeFontGlyph(ImFontPtr font, ref ImFontGlyph glyph) - { - fixed (ImFontGlyph* pglyph = &glyph) - { - DebugNodeFontGlyphNative(font, (ImFontGlyph*)pglyph); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeFontGlyph(ref ImFont font, ref ImFontGlyph glyph) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontGlyph* pglyph = &glyph) - { - DebugNodeFontGlyphNative((ImFont*)pfont, (ImFontGlyph*)pglyph); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeStorageNative(ImGuiStorage* storage, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiStorage*, byte*, void>)funcTable[1248])(storage, label); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1248])((nint)storage, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ImGuiStoragePtr storage, byte* label) - { - DebugNodeStorageNative(storage, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ref ImGuiStorage storage, byte* label) - { - fixed (ImGuiStorage* pstorage = &storage) - { - DebugNodeStorageNative((ImGuiStorage*)pstorage, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ImGuiStoragePtr storage, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeStorageNative(storage, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ImGuiStoragePtr storage, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - DebugNodeStorageNative(storage, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ImGuiStoragePtr storage, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeStorageNative(storage, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ref ImGuiStorage storage, ref byte label) - { - fixed (ImGuiStorage* pstorage = &storage) - { - fixed (byte* plabel = &label) - { - DebugNodeStorageNative((ImGuiStorage*)pstorage, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ref ImGuiStorage storage, ReadOnlySpan<byte> label) - { - fixed (ImGuiStorage* pstorage = &storage) - { - fixed (byte* plabel = label) - { - DebugNodeStorageNative((ImGuiStorage*)pstorage, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeStorage(ref ImGuiStorage storage, string label) - { - fixed (ImGuiStorage* pstorage = &storage) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeStorageNative((ImGuiStorage*)pstorage, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeTabBarNative(ImGuiTabBar* tabBar, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTabBar*, byte*, void>)funcTable[1249])(tabBar, label); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1249])((nint)tabBar, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, byte* label) - { - DebugNodeTabBarNative(tabBar, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, byte* label) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeTabBarNative(tabBar, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - DebugNodeTabBarNative(tabBar, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ImGuiTabBarPtr tabBar, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeTabBarNative(tabBar, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, ref byte label) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, ReadOnlySpan<byte> label) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = label) - { - DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTabBar(ref ImGuiTabBar tabBar, string label) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeTableNative(ImGuiTable* table) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTable*, void>)funcTable[1250])(table); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1250])((nint)table); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTable(ImGuiTablePtr table) - { - DebugNodeTableNative(table); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTable(ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - DebugNodeTableNative((ImGuiTable*)ptable); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeTableSettingsNative(ImGuiTableSettings* settings) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiTableSettings*, void>)funcTable[1251])(settings); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1251])((nint)settings); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTableSettings(ImGuiTableSettingsPtr settings) - { - DebugNodeTableSettingsNative(settings); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeTableSettings(ref ImGuiTableSettings settings) - { - fixed (ImGuiTableSettings* psettings = &settings) - { - DebugNodeTableSettingsNative((ImGuiTableSettings*)psettings); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeInputTextStateNative(ImGuiInputTextState* state) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiInputTextState*, void>)funcTable[1252])(state); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1252])((nint)state); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeInputTextState(ImGuiInputTextStatePtr state) - { - DebugNodeInputTextStateNative(state); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeInputTextState(ref ImGuiInputTextState state) - { - fixed (ImGuiInputTextState* pstate = &state) - { - DebugNodeInputTextStateNative((ImGuiInputTextState*)pstate); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeWindowNative(ImGuiWindow* window, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow*, byte*, void>)funcTable[1253])(window, label); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1253])((nint)window, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ImGuiWindowPtr window, byte* label) - { - DebugNodeWindowNative(window, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ref ImGuiWindow window, byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - DebugNodeWindowNative((ImGuiWindow*)pwindow, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ImGuiWindowPtr window, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeWindowNative(window, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ImGuiWindowPtr window, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - DebugNodeWindowNative(window, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ImGuiWindowPtr window, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeWindowNative(window, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ref ImGuiWindow window, ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = &label) - { - DebugNodeWindowNative((ImGuiWindow*)pwindow, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ref ImGuiWindow window, ReadOnlySpan<byte> label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = label) - { - DebugNodeWindowNative((ImGuiWindow*)pwindow, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindow(ref ImGuiWindow window, string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeWindowNative((ImGuiWindow*)pwindow, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeWindowSettingsNative(ImGuiWindowSettings* settings) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindowSettings*, void>)funcTable[1254])(settings); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1254])((nint)settings); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowSettings(ImGuiWindowSettingsPtr settings) - { - DebugNodeWindowSettingsNative(settings); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowSettings(ref ImGuiWindowSettings settings) - { - fixed (ImGuiWindowSettings* psettings = &settings) - { - DebugNodeWindowSettingsNative((ImGuiWindowSettings*)psettings); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeWindowsListNative(ImVector<ImGuiWindowPtr>* windows, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<ImGuiWindowPtr>*, byte*, void>)funcTable[1255])(windows, label); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1255])((nint)windows, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ImVector<ImGuiWindowPtr>* windows, byte* label) - { - DebugNodeWindowsListNative(windows, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ref ImVector<ImGuiWindowPtr> windows, byte* label) - { - fixed (ImVector<ImGuiWindowPtr>* pwindows = &windows) - { - DebugNodeWindowsListNative((ImVector<ImGuiWindowPtr>*)pwindows, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ImVector<ImGuiWindowPtr>* windows, ref byte label) - { - fixed (byte* plabel = &label) - { - DebugNodeWindowsListNative(windows, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ImVector<ImGuiWindowPtr>* windows, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - DebugNodeWindowsListNative(windows, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ImVector<ImGuiWindowPtr>* windows, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeWindowsListNative(windows, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ref ImVector<ImGuiWindowPtr> windows, ref byte label) - { - fixed (ImVector<ImGuiWindowPtr>* pwindows = &windows) - { - fixed (byte* plabel = &label) - { - DebugNodeWindowsListNative((ImVector<ImGuiWindowPtr>*)pwindows, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ref ImVector<ImGuiWindowPtr> windows, ReadOnlySpan<byte> label) - { - fixed (ImVector<ImGuiWindowPtr>* pwindows = &windows) - { - fixed (byte* plabel = label) - { - DebugNodeWindowsListNative((ImVector<ImGuiWindowPtr>*)pwindows, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsList(ref ImVector<ImGuiWindowPtr> windows, string label) - { - fixed (ImVector<ImGuiWindowPtr>* pwindows = &windows) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeWindowsListNative((ImVector<ImGuiWindowPtr>*)pwindows, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeWindowsListByBeginStackParentNative(ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiWindow**, int, ImGuiWindow*, void>)funcTable[1256])(windows, windowsSize, parentInBeginStack); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, void>)funcTable[1256])((nint)windows, windowsSize, (nint)parentInBeginStack); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) - { - DebugNodeWindowsListByBeginStackParentNative(windows, windowsSize, parentInBeginStack); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ImGuiWindowPtr parentInBeginStack) - { - fixed (ImGuiWindow** pwindows = &windows) - { - DebugNodeWindowsListByBeginStackParentNative((ImGuiWindow**)pwindows, windowsSize, parentInBeginStack); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsListByBeginStackParent(ImGuiWindowPtrPtr windows, int windowsSize, ref ImGuiWindow parentInBeginStack) - { - fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) - { - DebugNodeWindowsListByBeginStackParentNative(windows, windowsSize, (ImGuiWindow*)pparentInBeginStack); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeWindowsListByBeginStackParent(ref ImGuiWindow* windows, int windowsSize, ref ImGuiWindow parentInBeginStack) - { - fixed (ImGuiWindow** pwindows = &windows) - { - fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) - { - DebugNodeWindowsListByBeginStackParentNative((ImGuiWindow**)pwindows, windowsSize, (ImGuiWindow*)pparentInBeginStack); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugNodeViewportNative(ImGuiViewportP* viewport) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiViewportP*, void>)funcTable[1257])(viewport); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1257])((nint)viewport); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeViewport(ImGuiViewportPPtr viewport) - { - DebugNodeViewportNative(viewport); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugNodeViewport(ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugNodeViewportNative((ImGuiViewportP*)pviewport); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DebugRenderViewportThumbnailNative(ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, ImGuiViewportP*, ImRect, void>)funcTable[1258])(drawList, viewport, bb); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImRect, void>)funcTable[1258])((nint)drawList, (nint)viewport, bb); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ImGuiViewportPPtr viewport, ImRect bb) - { - DebugRenderViewportThumbnailNative(drawList, viewport, bb); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ImGuiViewportPPtr viewport, ImRect bb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugRenderViewportThumbnailNative((ImDrawList*)pdrawList, viewport, bb); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugRenderViewportThumbnail(ImDrawListPtr drawList, ref ImGuiViewportP viewport, ImRect bb) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugRenderViewportThumbnailNative(drawList, (ImGuiViewportP*)pviewport, bb); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DebugRenderViewportThumbnail(ref ImDrawList drawList, ref ImGuiViewportP viewport, ImRect bb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugRenderViewportThumbnailNative((ImDrawList*)pdrawList, (ImGuiViewportP*)pviewport, bb); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetypeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImFontBuilderIO*>)funcTable[1259])(); - #else - return (ImFontBuilderIO*)((delegate* unmanaged[Cdecl]<nint>)funcTable[1259])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImFontBuilderIOPtr ImFontAtlasGetBuilderForStbTruetype() - { - ImFontBuilderIOPtr ret = ImFontAtlasGetBuilderForStbTruetypeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildInitNative(ImFontAtlas* atlas) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[1260])(atlas); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1260])((nint)atlas); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildInit(ImFontAtlasPtr atlas) - { - ImFontAtlasBuildInitNative(atlas); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildInit(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildInitNative((ImFontAtlas*)patlas); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildSetupFontNative(ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImFont*, ImFontConfig*, float, float, void>)funcTable[1261])(atlas, font, fontConfig, ascent, descent); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, float, float, void>)funcTable[1261])((nint)atlas, (nint)font, (nint)fontConfig, ascent, descent); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - ImFontAtlasBuildSetupFontNative(atlas, font, fontConfig, ascent, descent); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, font, fontConfig, ascent, descent); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - fixed (ImFont* pfont = &font) - { - ImFontAtlasBuildSetupFontNative(atlas, (ImFont*)pfont, fontConfig, ascent, descent); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ImFontConfigPtr fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFont* pfont = &font) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, (ImFont*)pfont, fontConfig, ascent, descent); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImFontAtlasBuildSetupFontNative(atlas, font, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ImFontPtr font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, font, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ImFontAtlasPtr atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImFontAtlasBuildSetupFontNative(atlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildSetupFont(ref ImFontAtlas atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildPackCustomRectsNative(ImFontAtlas* atlas, ImVector<stbtt_pack_context>* packContexts) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, ImVector<stbtt_pack_context>*, void>)funcTable[1262])(atlas, packContexts); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[1262])((nint)atlas, (nint)packContexts); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildPackCustomRects(ImFontAtlasPtr atlas, ImVector<stbtt_pack_context>* packContexts) - { - ImFontAtlasBuildPackCustomRectsNative(atlas, packContexts); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildPackCustomRects(ref ImFontAtlas atlas, ImVector<stbtt_pack_context>* packContexts) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildPackCustomRectsNative((ImFontAtlas*)patlas, packContexts); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildPackCustomRects(ImFontAtlasPtr atlas, ref ImVector<stbtt_pack_context> packContexts) - { - fixed (ImVector<stbtt_pack_context>* ppackContexts = &packContexts) - { - ImFontAtlasBuildPackCustomRectsNative(atlas, (ImVector<stbtt_pack_context>*)ppackContexts); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildPackCustomRects(ref ImFontAtlas atlas, ref ImVector<stbtt_pack_context> packContexts) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImVector<stbtt_pack_context>* ppackContexts = &packContexts) - { - ImFontAtlasBuildPackCustomRectsNative((ImFontAtlas*)patlas, (ImVector<stbtt_pack_context>*)ppackContexts); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildFinishNative(ImFontAtlas* atlas) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, void>)funcTable[1263])(atlas); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1263])((nint)atlas); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildFinish(ImFontAtlasPtr atlas) - { - ImFontAtlasBuildFinishNative(atlas); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildFinish(ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildFinishNative((ImFontAtlas*)patlas); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildRender8bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, int, int, int, int, byte*, byte, byte, void>)funcTable[1264])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, int, int, int, nint, byte, byte, void>)funcTable[1264])((nint)atlas, textureIndex, x, y, w, h, (nint)inStr, inMarkerChar, inMarkerPixelValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan<byte> inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan<byte> inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender8bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildRender32bppRectFromStringNative(ImFontAtlas* atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImFontAtlas*, int, int, int, int, int, byte*, byte, uint, void>)funcTable[1265])(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, int, int, int, nint, byte, uint, void>)funcTable[1265])((nint)atlas, textureIndex, x, y, w, h, (nint)inStr, inMarkerChar, inMarkerPixelValue); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan<byte> inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlasPtr atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, ReadOnlySpan<byte> inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildRender32bppRectFromString(ref ImFontAtlas atlas, int textureIndex, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, textureIndex, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildMultiplyCalcLookupTableNative(byte* outTable, float inMultiplyFactor, float gammaFactor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float, float, void>)funcTable[1266])(outTable, inMultiplyFactor, gammaFactor); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, void>)funcTable[1266])((nint)outTable, inMultiplyFactor, gammaFactor); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyCalcLookupTable(byte* outTable, float inMultiplyFactor, float gammaFactor) - { - ImFontAtlasBuildMultiplyCalcLookupTableNative(outTable, inMultiplyFactor, gammaFactor); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyCalcLookupTable(ref byte outTable, float inMultiplyFactor, float gammaFactor) - { - fixed (byte* poutTable = &outTable) - { - ImFontAtlasBuildMultiplyCalcLookupTableNative((byte*)poutTable, inMultiplyFactor, gammaFactor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyCalcLookupTable(ReadOnlySpan<byte> outTable, float inMultiplyFactor, float gammaFactor) - { - fixed (byte* poutTable = outTable) - { - ImFontAtlasBuildMultiplyCalcLookupTableNative((byte*)poutTable, inMultiplyFactor, gammaFactor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImFontAtlasBuildMultiplyRectAlpha8Native(byte* table, byte* pixels, int x, int y, int w, int h, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, int, int, int, int, void>)funcTable[1267])(table, pixels, x, y, w, h, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, int, int, int, void>)funcTable[1267])((nint)table, (nint)pixels, x, y, w, h, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, byte* pixels, int x, int y, int w, int h, int stride) - { - ImFontAtlasBuildMultiplyRectAlpha8Native(table, pixels, x, y, w, h, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyRectAlpha8(ref byte table, byte* pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = &table) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, pixels, x, y, w, h, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyRectAlpha8(ReadOnlySpan<byte> table, byte* pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = table) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, pixels, x, y, w, h, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyRectAlpha8(byte* table, ref byte pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ppixels = &pixels) - { - ImFontAtlasBuildMultiplyRectAlpha8Native(table, (byte*)ppixels, x, y, w, h, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyRectAlpha8(ref byte table, ref byte pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = &table) - { - fixed (byte* ppixels = &pixels) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, (byte*)ppixels, x, y, w, h, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImFontAtlasBuildMultiplyRectAlpha8(ReadOnlySpan<byte> table, ref byte pixels, int x, int y, int w, int h, int stride) - { - fixed (byte* ptable = table) - { - fixed (byte* ppixels = &pixels) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, (byte*)ppixels, x, y, w, h, stride); - } - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/LICENSE.txt b/imgui/Dalamud.Bindings.ImGui/LICENSE.txt deleted file mode 100644 index b5dae7ac2..000000000 --- a/imgui/Dalamud.Bindings.ImGui/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Juna Meinhold - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs deleted file mode 100644 index c69cf3a9a..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.000.cs +++ /dev/null @@ -1,5063 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextNative(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)funcTable[1268])(label, buf, bufSize, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nuint, ImGuiInputTextFlags, nint, nint, byte>)funcTable[1268])((nint)label, (nint)buf, bufSize, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, flags, callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextNative(label, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative((byte*)plabel, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputText(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextMultilineNative(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, Vector2, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)funcTable[1269])(label, buf, bufSize, size, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nuint, Vector2, ImGuiInputTextFlags, nint, nint, byte>)funcTable[1269])((nint)label, (nint)buf, bufSize, size, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(byte* label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs deleted file mode 100644 index 7d2e8a977..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.001.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ref byte label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(ReadOnlySpan<byte> label, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative((byte*)plabel, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, Vector2 size, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextMultiline(string label, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(pStr0, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextWithHintNative(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, nuint, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)funcTable[1270])(label, hint, buf, bufSize, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, nuint, ImGuiInputTextFlags, nint, nint, byte>)funcTable[1270])((nint)label, (nint)hint, (nint)buf, bufSize, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs deleted file mode 100644 index 123aae9c8..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.002.cs +++ /dev/null @@ -1,5040 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, byte* buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, byte* hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, byte* hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(byte* label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs deleted file mode 100644 index a9cf6e9ba..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.003.cs +++ /dev/null @@ -1,5049 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ref byte label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(ReadOnlySpan<byte> label, string hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative((byte*)plabel, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ref byte hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, ReadOnlySpan<byte> hint, ref string buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, (byte*)phint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (ret != 0) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextWithHint(string label, string hint, ref byte buf, nuint bufSize, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(pStr0, pStr1, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImFormatStringNative(byte* buf, nuint bufSize, byte* fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, nuint, byte*, int>)funcTable[1271])(buf, bufSize, fmt); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nuint, nint, int>)funcTable[1271])((nint)buf, bufSize, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(byte* buf, nuint bufSize, byte* fmt) - { - int ret = ImFormatStringNative(buf, bufSize, fmt); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref byte buf, nuint bufSize, byte* fmt) - { - fixed (byte* pbuf = &buf) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, fmt); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref string buf, nuint bufSize, byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative(pStr0, bufSize, fmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(byte* buf, nuint bufSize, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(byte* buf, nuint bufSize, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(byte* buf, nuint bufSize, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative(buf, bufSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref byte buf, nuint bufSize, ref byte fmt) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref byte buf, nuint bufSize, ReadOnlySpan<byte> fmt) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref string buf, nuint bufSize, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImFormatStringNative(pStr0, bufSize, pStr1); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref byte buf, nuint bufSize, string fmt) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringNative((byte*)pbuf, bufSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref string buf, nuint bufSize, ref byte fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatString(ref string buf, nuint bufSize, ReadOnlySpan<byte> fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringNative(pStr0, bufSize, (byte*)pfmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImFormatStringVNative(byte* buf, nuint bufSize, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, nuint, byte*, nuint, int>)funcTable[1272])(buf, bufSize, fmt, args); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nuint, nint, nuint, int>)funcTable[1272])((nint)buf, bufSize, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(byte* buf, nuint bufSize, byte* fmt, nuint args) - { - int ret = ImFormatStringVNative(buf, bufSize, fmt, args); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref byte buf, nuint bufSize, byte* fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, fmt, args); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref string buf, nuint bufSize, byte* fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, fmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(byte* buf, nuint bufSize, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(byte* buf, nuint bufSize, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(byte* buf, nuint bufSize, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative(buf, bufSize, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref byte buf, nuint bufSize, ref byte fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref byte buf, nuint bufSize, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref string buf, nuint bufSize, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, pStr1, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref byte buf, nuint bufSize, string fmt, nuint args) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref string buf, nuint bufSize, ref byte fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = &fmt) - { - int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImFormatStringV(ref string buf, nuint bufSize, ReadOnlySpan<byte> fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pfmt = fmt) - { - int ret = ImFormatStringVNative(pStr0, bufSize, (byte*)pfmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs deleted file mode 100644 index 7f6b7f843..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.004.cs +++ /dev/null @@ -1,5050 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* ImParseFormatTrimDecorationsNative(byte* format, byte* buf, nuint bufSize) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, nuint, byte*>)funcTable[1273])(format, buf, bufSize); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint, nuint, nint>)funcTable[1273])((nint)format, (nint)buf, bufSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(byte* format, byte* buf, nuint bufSize) - { - byte* ret = ImParseFormatTrimDecorationsNative(format, buf, bufSize); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(byte* format, byte* buf, nuint bufSize) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, buf, bufSize)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(ref byte format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(ref byte format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan<byte> format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan<byte> format, byte* buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(string format, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(string format, byte* buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(byte* format, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(byte* format, ref byte buf, nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(byte* format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(format, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(byte* format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(ref byte format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(ref byte format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan<byte> format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan<byte> format, ref byte buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(string format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(string format, ref string buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(ref byte format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(ref byte format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = &format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(ReadOnlySpan<byte> format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(ReadOnlySpan<byte> format, ref string buf, nuint bufSize) - { - fixed (byte* pformat = format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* ImParseFormatTrimDecorations(string format, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string ImParseFormatTrimDecorationsS(string format, ref byte buf, nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, (byte*)pbuf, bufSize)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextStrToUtf8Native(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, ushort*, ushort*, int>)funcTable[1274])(outBuf, outBufSize, inText, inTextEnd); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, nint, nint, int>)funcTable[1274])((nint)outBuf, outBufSize, (nint)inText, (nint)inTextEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrToUtf8(byte* outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, inText, inTextEnd); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrToUtf8(ref byte outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - fixed (byte* poutBuf = &outBuf) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, inText, inTextEnd); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrToUtf8(ref string outBuf, int outBufSize, ushort* inText, ushort* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, inText, inTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImTextStrFromUtf8Native(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, int, byte*, byte*, byte**, int>)funcTable[1275])(outBuf, outBufSize, inText, inTextEnd, inRemaining); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, nint, nint, nint, int>)funcTable[1275])((nint)outBuf, outBufSize, (nint)inText, (nint)inTextEnd, (nint)inRemaining); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, byte** inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, inRemaining); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)(default)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, byte* inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, byte* inTextEnd) - { - fixed (byte* pinText = inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan<byte> inTextEnd, byte** inRemaining) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, ReadOnlySpan<byte> inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, inRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan<byte> inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan<byte> inTextEnd) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, ref byte inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, ref byte inTextEnd) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, string inTextEnd, byte** inRemaining) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, string inTextEnd) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan<byte> inTextEnd, byte** inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan<byte> inTextEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, byte* inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, byte* inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, ReadOnlySpan<byte> inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, byte* inText, string inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, ReadOnlySpan<byte> inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, string inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)pinRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, ReadOnlySpan<byte> inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ref byte inText, string inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = &inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, ref byte inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, ReadOnlySpan<byte> inText, string inTextEnd, ref byte* inRemaining) - { - fixed (byte* pinText = inText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ref byte inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImTextStrFromUtf8(ushort* outBuf, int outBufSize, string inText, ReadOnlySpan<byte> inTextEnd, ref byte* inRemaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pinTextEnd = inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, (byte*)pinTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int DataTypeFormatStringNative(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, ImGuiDataType, void*, byte*, int>)funcTable[1276])(buf, bufSize, dataType, pData, format); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, ImGuiDataType, nint, nint, int>)funcTable[1276])((nint)buf, bufSize, dataType, (nint)pData, (nint)format); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, format); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - fixed (byte* pbuf = &buf) - { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, format); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, format); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pformat = &format) - { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(byte* buf, int bufSize, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = &format) - { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - fixed (byte* pbuf = &buf) - { - fixed (byte* pformat = format) - { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, (byte*)pformat); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, pStr1); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref byte buf, int bufSize, ImGuiDataType dataType, void* pData, string format) - { - fixed (byte* pbuf = &buf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, (byte*)pformat); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int DataTypeFormatString(ref string buf, int bufSize, ImGuiDataType dataType, void* pData, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, (byte*)pformat); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte InputTextExNative(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, Vector2, ImGuiInputTextFlags, delegate*<ImGuiInputTextCallbackData*, int>, void*, byte>)funcTable[1277])(label, hint, buf, bufSize, sizeArg, flags, (delegate*<ImGuiInputTextCallbackData*, int>)Utils.GetFunctionPointerForDelegate(callback), userData); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, Vector2, ImGuiInputTextFlags, nint, nint, byte>)funcTable[1277])((nint)label, (nint)hint, (nint)buf, bufSize, sizeArg, flags, (nint)Utils.GetFunctionPointerForDelegate(callback), (nint)userData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, byte* buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, byte* hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, byte* hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs deleted file mode 100644 index 5147fc41b..000000000 --- a/imgui/Dalamud.Bindings.ImGui/Manual/Functions/Functions.005.cs +++ /dev/null @@ -1,3531 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Dalamud.Bindings.ImGui -{ - public unsafe partial class ImGui - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(byte* label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc<byte>(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr2); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ref byte label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = &hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - fixed (byte* phint = hint) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, pStr0, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(ReadOnlySpan<byte> label, string hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative((byte*)plabel, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ref byte hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = &hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, ReadOnlySpan<byte> hint, ref string buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* phint = hint) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, (byte*)phint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool InputTextEx(string label, string hint, ref byte buf, int bufSize, Vector2 sizeArg, ImGuiInputTextFlags flags, void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(pStr0, pStr1, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte TempInputTextNative(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImRect, uint, byte*, byte*, int, ImGuiInputTextFlags, byte>)funcTable[1278])(bb, id, label, buf, bufSize, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImRect, uint, nint, nint, int, ImGuiInputTextFlags, byte>)funcTable[1278])(bb, id, (nint)label, (nint)buf, bufSize, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, byte* label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - byte ret = TempInputTextNative(bb, id, label, buf, bufSize, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, ref byte label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, buf, bufSize, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan<byte> label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, buf, bufSize, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, string label, byte* buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, pStr0, buf, bufSize, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, byte* label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, label, (byte*)pbuf, bufSize, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, byte* label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, label, pStr0, bufSize, flags); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, ref byte label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, (byte*)pbuf, bufSize, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan<byte> label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, (byte*)pbuf, bufSize, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, string label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputTextNative(bb, id, pStr0, pStr1, bufSize, flags); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr1); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, ref byte label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, (byte*)plabel, pStr0, bufSize, flags); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, ReadOnlySpan<byte> label, ref string buf, int bufSize, ImGuiInputTextFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Math.Max(Utils.GetByteCountUTF8(buf), (int)bufSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TempInputTextNative(bb, id, (byte*)plabel, pStr0, bufSize, flags); - if (ret != 0 || ((flags & ImGuiInputTextFlags.EnterReturnsTrue) != 0 && IsItemDeactivatedAfterEdit())) - { - buf = Utils.DecodeStringUTF8(pStr0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool TempInputText(ImRect bb, uint id, string label, ref byte buf, int bufSize, ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pbuf = &buf) - { - byte ret = TempInputTextNative(bb, id, pStr0, (byte*)pbuf, bufSize, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImGui/STBTexteditStatePtr.cs b/imgui/Dalamud.Bindings.ImGui/STBTexteditStatePtr.cs deleted file mode 100644 index 8927bda0d..000000000 --- a/imgui/Dalamud.Bindings.ImGui/STBTexteditStatePtr.cs +++ /dev/null @@ -1,45 +0,0 @@ -#nullable disable - -namespace Dalamud.Bindings.ImGui -{ - using System; - - public unsafe struct STBTexteditStatePtr : IEquatable<STBTexteditStatePtr> - { - public STBTexteditState* Handle; - - public unsafe STBTexteditStatePtr(STBTexteditState* handle) - { - Handle = handle; - } - - public override readonly bool Equals(object obj) - { - return obj is STBTexteditStatePtr ptr && Equals(ptr); - } - - public readonly bool Equals(STBTexteditStatePtr other) - { - return Handle == other.Handle; - } - - public override readonly int GetHashCode() - { - return ((nint)Handle).GetHashCode(); - } - - public static bool operator ==(STBTexteditStatePtr left, STBTexteditStatePtr right) - { - return left.Equals(right); - } - - public static bool operator !=(STBTexteditStatePtr left, STBTexteditStatePtr right) - { - return !(left == right); - } - - public static implicit operator STBTexteditState*(STBTexteditStatePtr handle) => handle.Handle; - - public static implicit operator STBTexteditStatePtr(STBTexteditState* handle) => new(handle); - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj b/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj deleted file mode 100644 index 6cdd80470..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Dalamud.Bindings.ImGuizmo.csproj +++ /dev/null @@ -1,19 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <ImplicitUsings>enable</ImplicitUsings> - <Nullable>enable</Nullable> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - - <DisableRuntimeMarshalling>true</DisableRuntimeMarshalling> - </PropertyGroup> - - <ItemGroup> - <PackageReference Include="HexaGen.Runtime" /> - </ItemGroup> - - <ItemGroup> - <ProjectReference Include="..\Dalamud.Bindings.ImGui\Dalamud.Bindings.ImGui.csproj" /> - </ItemGroup> - -</Project> diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Constants/Constants.000.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Constants/Constants.000.cs deleted file mode 100644 index b9dc65c06..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Constants/Constants.000.cs +++ /dev/null @@ -1,20 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImGuizmo -{ - public unsafe partial class ImGuizmo - { - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Delegates/Delegates.000.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Delegates/Delegates.000.cs deleted file mode 100644 index 2e0866799..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Delegates/Delegates.000.cs +++ /dev/null @@ -1,20 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImGuizmo -{ -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoMode.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoMode.cs deleted file mode 100644 index e76e5d5d6..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoMode.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImGuizmo -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuizmoMode : int - { - /// <summary> - /// To be documented. - /// </summary> - Local = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - World = unchecked(1), - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoOperation.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoOperation.cs deleted file mode 100644 index 5d5b65fff..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Enums/ImGuizmoOperation.cs +++ /dev/null @@ -1,118 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImGuizmo -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImGuizmoOperation : int - { - /// <summary> - /// To be documented. - /// </summary> - TranslateX = unchecked((int)(1U<<0)), - - /// <summary> - /// To be documented. - /// </summary> - TranslateY = unchecked((int)(1U<<1)), - - /// <summary> - /// To be documented. - /// </summary> - TranslateZ = unchecked((int)(1U<<2)), - - /// <summary> - /// To be documented. - /// </summary> - RotateX = unchecked((int)(1U<<3)), - - /// <summary> - /// To be documented. - /// </summary> - RotateY = unchecked((int)(1U<<4)), - - /// <summary> - /// To be documented. - /// </summary> - RotateZ = unchecked((int)(1U<<5)), - - /// <summary> - /// To be documented. - /// </summary> - RotateScreen = unchecked((int)(1U<<6)), - - /// <summary> - /// To be documented. - /// </summary> - ScaleX = unchecked((int)(1U<<7)), - - /// <summary> - /// To be documented. - /// </summary> - ScaleY = unchecked((int)(1U<<8)), - - /// <summary> - /// To be documented. - /// </summary> - ScaleZ = unchecked((int)(1U<<9)), - - /// <summary> - /// To be documented. - /// </summary> - Bounds = unchecked((int)(1U<<10)), - - /// <summary> - /// To be documented. - /// </summary> - ScaleXu = unchecked((int)(1U<<11)), - - /// <summary> - /// To be documented. - /// </summary> - ScaleYu = unchecked((int)(1U<<12)), - - /// <summary> - /// To be documented. - /// </summary> - ScaleZu = unchecked((int)(1U<<13)), - - /// <summary> - /// To be documented. - /// </summary> - Translate = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - Rotate = unchecked(120), - - /// <summary> - /// To be documented. - /// </summary> - Scale = unchecked(896), - - /// <summary> - /// To be documented. - /// </summary> - Scaleu = unchecked(14336), - - /// <summary> - /// To be documented. - /// </summary> - Universal = unchecked(14463), - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/FunctionTable.cs deleted file mode 100644 index 6ac542095..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Generated/FunctionTable.cs +++ /dev/null @@ -1,55 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImGuizmo -{ - public unsafe partial class ImGuizmo - { - internal static FunctionTable funcTable; - - /// <summary> - /// Initializes the function table, automatically called. Do not call manually, only after <see cref="FreeApi"/>. - /// </summary> - public static void InitApi(INativeContext context) - { - funcTable = new FunctionTable(context, 19); - funcTable.Load(0, "ImGuizmo_SetDrawlist"); - funcTable.Load(1, "ImGuizmo_BeginFrame"); - funcTable.Load(2, "ImGuizmo_SetImGuiContext"); - funcTable.Load(3, "ImGuizmo_IsOver_Nil"); - funcTable.Load(4, "ImGuizmo_IsUsing"); - funcTable.Load(5, "ImGuizmo_Enable"); - funcTable.Load(6, "ImGuizmo_DecomposeMatrixToComponents"); - funcTable.Load(7, "ImGuizmo_RecomposeMatrixFromComponents"); - funcTable.Load(8, "ImGuizmo_SetRect"); - funcTable.Load(9, "ImGuizmo_SetOrthographic"); - funcTable.Load(10, "ImGuizmo_DrawCubes"); - funcTable.Load(11, "ImGuizmo_DrawGrid"); - funcTable.Load(12, "ImGuizmo_Manipulate"); - funcTable.Load(13, "ImGuizmo_ViewManipulate_Float"); - funcTable.Load(14, "ImGuizmo_ViewManipulate_FloatPtr"); - funcTable.Load(15, "ImGuizmo_SetID"); - funcTable.Load(16, "ImGuizmo_IsOver_OPERATION"); - funcTable.Load(17, "ImGuizmo_SetGizmoSizeClipSpace"); - funcTable.Load(18, "ImGuizmo_AllowAxisFlip"); - } - - public static void FreeApi() - { - funcTable.Free(); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.000.cs deleted file mode 100644 index 40916326c..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.000.cs +++ /dev/null @@ -1,5021 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImGuizmo -{ - public unsafe partial class ImGuizmo - { - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetDrawlistNative(ImDrawList* drawlist) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, void>)funcTable[0])(drawlist); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[0])((nint)drawlist); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetDrawlist(ImDrawListPtr drawlist) - { - SetDrawlistNative(drawlist); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetDrawlist() - { - SetDrawlistNative((ImDrawList*)(default)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetDrawlist(ref ImDrawList drawlist) - { - fixed (ImDrawList* pdrawlist = &drawlist) - { - SetDrawlistNative((ImDrawList*)pdrawlist); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginFrameNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[1])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[1])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BeginFrame() - { - BeginFrameNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetImGuiContextNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[2])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[2])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetImGuiContext(ImGuiContextPtr ctx) - { - SetImGuiContextNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetImGuiContext(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - SetImGuiContextNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsOverNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[3])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[3])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsOver() - { - byte ret = IsOverNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsUsingNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[4])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[4])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsUsing() - { - byte ret = IsUsingNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EnableNative(byte enable) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[5])(enable); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[5])(enable); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Enable(bool enable) - { - EnableNative(enable ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DecomposeMatrixToComponentsNative(float* matrix, float* translation, float* rotation, float* scale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, float*, float*, float*, void>)funcTable[6])(matrix, translation, rotation, scale); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, void>)funcTable[6])((nint)matrix, (nint)translation, (nint)rotation, (nint)scale); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, float* translation, float* rotation, float* scale) - { - DecomposeMatrixToComponentsNative(matrix, translation, rotation, scale); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref Matrix4x4 matrix, ref Matrix4x4 translation, ref Matrix4x4 rotation, ref Matrix4x4 scale) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (Matrix4x4* ptranslation = &translation) - { - fixed (Matrix4x4* protation = &rotation) - { - fixed (Matrix4x4* pscale = &scale) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, (float*)protation, (float*)pscale); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, float* translation, float* rotation, float* scale) - { - fixed (float* pmatrix = &matrix) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, translation, rotation, scale); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, ref float translation, float* rotation, float* scale) - { - fixed (float* ptranslation = &translation) - { - DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, rotation, scale); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, float* rotation, float* scale) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* ptranslation = &translation) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, rotation, scale); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, float* translation, ref float rotation, float* scale) - { - fixed (float* protation = &rotation) - { - DecomposeMatrixToComponentsNative(matrix, translation, (float*)protation, scale); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, float* translation, ref float rotation, float* scale) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* protation = &rotation) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, translation, (float*)protation, scale); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, ref float translation, ref float rotation, float* scale) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, (float*)protation, scale); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, ref float rotation, float* scale) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, (float*)protation, scale); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, float* translation, float* rotation, ref float scale) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative(matrix, translation, rotation, (float*)pscale); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, float* translation, float* rotation, ref float scale) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, translation, rotation, (float*)pscale); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, ref float translation, float* rotation, ref float scale) - { - fixed (float* ptranslation = &translation) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, rotation, (float*)pscale); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, float* rotation, ref float scale) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, rotation, (float*)pscale); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, float* translation, ref float rotation, ref float scale) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative(matrix, translation, (float*)protation, (float*)pscale); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, float* translation, ref float rotation, ref float scale) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, translation, (float*)protation, (float*)pscale); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(float* matrix, ref float translation, ref float rotation, ref float scale) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative(matrix, (float*)ptranslation, (float*)protation, (float*)pscale); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, ref float rotation, ref float scale) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - DecomposeMatrixToComponentsNative((float*)pmatrix, (float*)ptranslation, (float*)protation, (float*)pscale); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RecomposeMatrixFromComponentsNative(float* translation, float* rotation, float* scale, float* matrix) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, float*, float*, float*, void>)funcTable[7])(translation, rotation, scale, matrix); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, void>)funcTable[7])((nint)translation, (nint)rotation, (nint)scale, (nint)matrix); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, float* rotation, float* scale, float* matrix) - { - RecomposeMatrixFromComponentsNative(translation, rotation, scale, matrix); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref Matrix4x4 translation, ref Matrix4x4 rotation, ref Matrix4x4 scale, ref Matrix4x4 matrix) - { - fixed (Matrix4x4* ptranslation = &translation) - { - fixed (Matrix4x4* protation = &rotation) - { - fixed (Matrix4x4* pscale = &scale) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, (float*)pscale, (float*)pmatrix); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, float* scale, float* matrix) - { - fixed (float* ptranslation = &translation) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, scale, matrix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, float* scale, float* matrix) - { - fixed (float* protation = &rotation) - { - RecomposeMatrixFromComponentsNative(translation, (float*)protation, scale, matrix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, float* scale, float* matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, scale, matrix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, float* rotation, ref float scale, float* matrix) - { - fixed (float* pscale = &scale) - { - RecomposeMatrixFromComponentsNative(translation, rotation, (float*)pscale, matrix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, ref float scale, float* matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* pscale = &scale) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, (float*)pscale, matrix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, ref float scale, float* matrix) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - RecomposeMatrixFromComponentsNative(translation, (float*)protation, (float*)pscale, matrix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, ref float scale, float* matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, (float*)pscale, matrix); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, float* rotation, float* scale, ref float matrix) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative(translation, rotation, scale, (float*)pmatrix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, float* scale, ref float matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, scale, (float*)pmatrix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, float* scale, ref float matrix) - { - fixed (float* protation = &rotation) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative(translation, (float*)protation, scale, (float*)pmatrix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, float* scale, ref float matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, scale, (float*)pmatrix); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, float* rotation, ref float scale, ref float matrix) - { - fixed (float* pscale = &scale) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative(translation, rotation, (float*)pscale, (float*)pmatrix); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, float* rotation, ref float scale, ref float matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* pscale = &scale) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, rotation, (float*)pscale, (float*)pmatrix); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(float* translation, ref float rotation, ref float scale, ref float matrix) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative(translation, (float*)protation, (float*)pscale, (float*)pmatrix); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RecomposeMatrixFromComponents(ref float translation, ref float rotation, ref float scale, ref float matrix) - { - fixed (float* ptranslation = &translation) - { - fixed (float* protation = &rotation) - { - fixed (float* pscale = &scale) - { - fixed (float* pmatrix = &matrix) - { - RecomposeMatrixFromComponentsNative((float*)ptranslation, (float*)protation, (float*)pscale, (float*)pmatrix); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetRectNative(float x, float y, float width, float height) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, float, float, float, void>)funcTable[8])(x, y, width, height); - #else - ((delegate* unmanaged[Cdecl]<float, float, float, float, void>)funcTable[8])(x, y, width, height); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetRect(float x, float y, float width, float height) - { - SetRectNative(x, y, width, height); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetOrthographicNative(byte isOrthographic) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[9])(isOrthographic); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[9])(isOrthographic); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetOrthographic(bool isOrthographic) - { - SetOrthographicNative(isOrthographic ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DrawCubesNative(float* view, float* projection, float* matrices, int matrixCount) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, float*, float*, int, void>)funcTable[10])(view, projection, matrices, matrixCount); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, void>)funcTable[10])((nint)view, (nint)projection, (nint)matrices, matrixCount); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(float* view, float* projection, float* matrices, int matrixCount) - { - DrawCubesNative(view, projection, matrices, matrixCount); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(ref Matrix4x4 view, ref Matrix4x4 projection, Matrix4x4[] matrices, int matrixCount) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrices = matrices) - { - DrawCubesNative((float*)pview, (float*)pprojection, (float*)pmatrices, matrixCount); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(ref Matrix4x4 view, ref Matrix4x4 projection, ref Matrix4x4 matrices, int matrixCount) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrices = &matrices) - { - DrawCubesNative((float*)pview, (float*)pprojection, (float*)pmatrices, matrixCount); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(ref float view, float* projection, float* matrices, int matrixCount) - { - fixed (float* pview = &view) - { - DrawCubesNative((float*)pview, projection, matrices, matrixCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(float* view, ref float projection, float* matrices, int matrixCount) - { - fixed (float* pprojection = &projection) - { - DrawCubesNative(view, (float*)pprojection, matrices, matrixCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(ref float view, ref float projection, float* matrices, int matrixCount) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - DrawCubesNative((float*)pview, (float*)pprojection, matrices, matrixCount); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(float* view, float* projection, ref float matrices, int matrixCount) - { - fixed (float* pmatrices = &matrices) - { - DrawCubesNative(view, projection, (float*)pmatrices, matrixCount); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(ref float view, float* projection, ref float matrices, int matrixCount) - { - fixed (float* pview = &view) - { - fixed (float* pmatrices = &matrices) - { - DrawCubesNative((float*)pview, projection, (float*)pmatrices, matrixCount); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(float* view, ref float projection, ref float matrices, int matrixCount) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrices = &matrices) - { - DrawCubesNative(view, (float*)pprojection, (float*)pmatrices, matrixCount); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawCubes(ref float view, ref float projection, ref float matrices, int matrixCount) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrices = &matrices) - { - DrawCubesNative((float*)pview, (float*)pprojection, (float*)pmatrices, matrixCount); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DrawGridNative(float* view, float* projection, float* matrix, float gridSize) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, float*, float*, float, void>)funcTable[11])(view, projection, matrix, gridSize); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, float, void>)funcTable[11])((nint)view, (nint)projection, (nint)matrix, gridSize); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(float* view, float* projection, float* matrix, float gridSize) - { - DrawGridNative(view, projection, matrix, gridSize); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(ref Matrix4x4 view, ref Matrix4x4 projection, ref Matrix4x4 matrix, float gridSize) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - DrawGridNative((float*)pview, (float*)pprojection, (float*)pmatrix, gridSize); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(ref float view, float* projection, float* matrix, float gridSize) - { - fixed (float* pview = &view) - { - DrawGridNative((float*)pview, projection, matrix, gridSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(float* view, ref float projection, float* matrix, float gridSize) - { - fixed (float* pprojection = &projection) - { - DrawGridNative(view, (float*)pprojection, matrix, gridSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(ref float view, ref float projection, float* matrix, float gridSize) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - DrawGridNative((float*)pview, (float*)pprojection, matrix, gridSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(float* view, float* projection, ref float matrix, float gridSize) - { - fixed (float* pmatrix = &matrix) - { - DrawGridNative(view, projection, (float*)pmatrix, gridSize); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(ref float view, float* projection, ref float matrix, float gridSize) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - DrawGridNative((float*)pview, projection, (float*)pmatrix, gridSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(float* view, ref float projection, ref float matrix, float gridSize) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - DrawGridNative(view, (float*)pprojection, (float*)pmatrix, gridSize); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DrawGrid(ref float view, ref float projection, ref float matrix, float gridSize) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - DrawGridNative((float*)pview, (float*)pprojection, (float*)pmatrix, gridSize); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ManipulateNative(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float*, float*, ImGuizmoOperation, ImGuizmoMode, float*, float*, float*, float*, float*, byte>)funcTable[12])(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, ImGuizmoOperation, ImGuizmoMode, nint, nint, nint, nint, nint, byte>)funcTable[12])((nint)view, (nint)projection, operation, mode, (nint)matrix, (nint)deltaMatrix, (nint)snap, (nint)localBounds, (nint)boundsSnap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix, ref float snap, ref float localBounds) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, default); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix, ref float snap) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, default, default); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref Matrix4x4 deltaMatrix) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (Matrix4x4* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, default, default, default); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, default, default, default); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref float snap) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, (float*)psnap, default, default); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref float snap, ref float localBounds) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, (float*)psnap, (float*)plocalBounds, default); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, default, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) - { - fixed (float* pview = &view) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) - { - fixed (float* pview = &view) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)(default), (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)(default), (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)(default), (float*)(default)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, float* boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, boundsSnap); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)(default)); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, float* localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, localBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.001.cs deleted file mode 100644 index 700c21572..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/Generated/Functions/Functions.001.cs +++ /dev/null @@ -1,1001 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImGuizmo -{ - public unsafe partial class ImGuizmo - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - fixed (float* pdeltaMatrix = &deltaMatrix) - { - fixed (float* psnap = &snap) - { - fixed (float* plocalBounds = &localBounds) - { - fixed (float* pboundsSnap = &boundsSnap) - { - byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); - return ret != 0; - } - } - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ViewManipulateNative(float* view, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, float, Vector2, Vector2, uint, void>)funcTable[13])(view, length, position, size, backgroundColor); - #else - ((delegate* unmanaged[Cdecl]<nint, float, Vector2, Vector2, uint, void>)funcTable[13])((nint)view, length, position, size, backgroundColor); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(float* view, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - ViewManipulateNative(view, length, position, size, backgroundColor); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(ref Matrix4x4 view, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (Matrix4x4* pview = &view) - { - ViewManipulateNative((float*)pview, length, position, size, backgroundColor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(ref float view, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pview = &view) - { - ViewManipulateNative((float*)pview, length, position, size, backgroundColor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ViewManipulateNative(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, float*, ImGuizmoOperation, ImGuizmoMode, float*, float, Vector2, Vector2, uint, void>)funcTable[14])(view, projection, operation, mode, matrix, length, position, size, backgroundColor); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImGuizmoOperation, ImGuizmoMode, nint, float, Vector2, Vector2, uint, void>)funcTable[14])((nint)view, (nint)projection, operation, mode, (nint)matrix, length, position, size, backgroundColor); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - ViewManipulateNative(view, projection, operation, mode, matrix, length, position, size, backgroundColor); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (Matrix4x4* pview = &view) - { - fixed (Matrix4x4* pprojection = &projection) - { - fixed (Matrix4x4* pmatrix = &matrix) - { - ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pview = &view) - { - ViewManipulateNative((float*)pview, projection, operation, mode, matrix, length, position, size, backgroundColor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pprojection = &projection) - { - ViewManipulateNative(view, (float*)pprojection, operation, mode, matrix, length, position, size, backgroundColor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, length, position, size, backgroundColor); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pmatrix = &matrix) - { - ViewManipulateNative(view, projection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pview = &view) - { - fixed (float* pmatrix = &matrix) - { - ViewManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - ViewManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ViewManipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) - { - fixed (float* pview = &view) - { - fixed (float* pprojection = &projection) - { - fixed (float* pmatrix = &matrix) - { - ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetIDNative(int id) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[15])(id); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[15])(id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetID(int id) - { - SetIDNative(id); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsOverNative(ImGuizmoOperation op) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuizmoOperation, byte>)funcTable[16])(op); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuizmoOperation, byte>)funcTable[16])(op); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsOver(ImGuizmoOperation op) - { - byte ret = IsOverNative(op); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetGizmoSizeClipSpaceNative(float value) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[17])(value); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[17])(value); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetGizmoSizeClipSpace(float value) - { - SetGizmoSizeClipSpaceNative(value); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AllowAxisFlipNative(byte value) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[18])(value); - #else - ((delegate* unmanaged[Cdecl]<byte, void>)funcTable[18])(value); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AllowAxisFlip(bool value) - { - AllowAxisFlipNative(value ? (byte)1 : (byte)0); - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/ImGuizmo.cs b/imgui/Dalamud.Bindings.ImGuizmo/ImGuizmo.cs deleted file mode 100644 index 7c03bdfa2..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/ImGuizmo.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; - -namespace Dalamud.Bindings.ImGuizmo -{ - using HexaGen.Runtime; - using System.Diagnostics; - - public static class ImGuizmoConfig - { - public static bool AotStaticLink; - } - - public static unsafe partial class ImGuizmo - { - static ImGuizmo() - { - if (ImGuizmoConfig.AotStaticLink) - { - InitApi(new NativeLibraryContext(Process.GetCurrentProcess().MainModule!.BaseAddress)); - } - else - { - // InitApi(new NativeLibraryContext(LibraryLoader.LoadLibrary(GetLibraryName, null))); - InitApi(new NativeLibraryContext(Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".dll"))); - } - } - - public static string GetLibraryName() - { - return "cimguizmo"; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImGuizmo/LICENSE.txt b/imgui/Dalamud.Bindings.ImGuizmo/LICENSE.txt deleted file mode 100644 index b5dae7ac2..000000000 --- a/imgui/Dalamud.Bindings.ImGuizmo/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Juna Meinhold - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj b/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj deleted file mode 100644 index 6cdd80470..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Dalamud.Bindings.ImPlot.csproj +++ /dev/null @@ -1,19 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <ImplicitUsings>enable</ImplicitUsings> - <Nullable>enable</Nullable> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - - <DisableRuntimeMarshalling>true</DisableRuntimeMarshalling> - </PropertyGroup> - - <ItemGroup> - <PackageReference Include="HexaGen.Runtime" /> - </ItemGroup> - - <ItemGroup> - <ProjectReference Include="..\Dalamud.Bindings.ImGui\Dalamud.Bindings.ImGui.csproj" /> - </ItemGroup> - -</Project> diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Constants/Constants.000.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Constants/Constants.000.cs deleted file mode 100644 index bb286f3cc..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Constants/Constants.000.cs +++ /dev/null @@ -1,20 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Delegates/Delegates.000.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Delegates/Delegates.000.cs deleted file mode 100644 index 209000c11..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Delegates/Delegates.000.cs +++ /dev/null @@ -1,180 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int Formatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] byte* buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int Formatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] nint buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void Locator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] ImPlotTicker* ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] ImPlotRange* range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] delegate*<double, byte*, int, void*, int> formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] void* formatterData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void Locator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] nint ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] nint range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] nint formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] nint formatterData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate double TransformForward([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate double TransformForward([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate double TransformInverse([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate double TransformInverse([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int UserFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] byte* buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int UserFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] nint buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int ImPlotFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] byte* buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int ImPlotFormatter([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "buff")] [NativeName(NativeNameType.Type, "char*")] nint buff, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "int")] int size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImPlotLocator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] ImPlotTicker* ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] ImPlotRange* range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] delegate*<double, byte*, int, void*, int> formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] void* formatterData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImPlotLocator([NativeName(NativeNameType.Param, "ticker")] [NativeName(NativeNameType.Type, "ImPlotTicker&")] nint ticker, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "const ImPlotRange&")] nint range, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "float")] float pixels, [NativeName(NativeNameType.Param, "vertical")] [NativeName(NativeNameType.Type, "bool")] byte vertical, [NativeName(NativeNameType.Param, "formatter")] [NativeName(NativeNameType.Type, "ImPlotFormatter")] nint formatter, [NativeName(NativeNameType.Param, "formatter_data")] [NativeName(NativeNameType.Type, "void*")] nint formatterData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate double ImPlotTransform([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate double ImPlotTransform([NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate ImPlotPoint ImPlotGetter([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate ImPlotPoint ImPlotGetter([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] nint userData); - - #endif - - #if NET5_0_OR_GREATER - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void* ImPlotPointGetter([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "point")] [NativeName(NativeNameType.Type, "ImPlotPoint*")] ImPlotPoint* point); - - #else - /// <summary> - /// To be documented. - /// </summary> - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate nint ImPlotPointGetter([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] nint data, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "int")] int idx, [NativeName(NativeNameType.Param, "point")] [NativeName(NativeNameType.Type, "ImPlotPoint*")] nint point); - - #endif - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImAxis.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImAxis.cs deleted file mode 100644 index 19413110b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImAxis.cs +++ /dev/null @@ -1,58 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImAxis : int - { - /// <summary> - /// To be documented. - /// </summary> - X1 = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - X2 = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - X3 = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Y1 = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Y2 = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Y3 = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(6), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotAxisFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotAxisFlags.cs deleted file mode 100644 index 44648730c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotAxisFlags.cs +++ /dev/null @@ -1,123 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotAxisFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoLabel = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoGridLines = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoTickMarks = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoTickLabels = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoInitialFit = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoMenus = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoSideSwitch = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - NoHighlight = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - Opposite = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - Foreground = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - Invert = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - AutoFit = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - RangeFit = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - PanStretch = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - LockMin = unchecked(16384), - - /// <summary> - /// To be documented. - /// </summary> - LockMax = unchecked(32768), - - /// <summary> - /// To be documented. - /// </summary> - Lock = unchecked(49152), - - /// <summary> - /// To be documented. - /// </summary> - NoDecorations = unchecked(15), - - /// <summary> - /// To be documented. - /// </summary> - AuxDefault = unchecked(258), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarGroupsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarGroupsFlags.cs deleted file mode 100644 index 9f0946a92..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarGroupsFlags.cs +++ /dev/null @@ -1,38 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotBarGroupsFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - Stacked = unchecked(2048), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarsFlags.cs deleted file mode 100644 index c694a3162..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBarsFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotBarsFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBin.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBin.cs deleted file mode 100644 index c432a1425..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotBin.cs +++ /dev/null @@ -1,43 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotBin : int - { - /// <summary> - /// To be documented. - /// </summary> - Sqrt = unchecked(-1), - - /// <summary> - /// To be documented. - /// </summary> - Sturges = unchecked(-2), - - /// <summary> - /// To be documented. - /// </summary> - Rice = unchecked(-3), - - /// <summary> - /// To be documented. - /// </summary> - Scott = unchecked(-4), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCol.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCol.cs deleted file mode 100644 index aafb2314a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCol.cs +++ /dev/null @@ -1,133 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotCol : int - { - /// <summary> - /// To be documented. - /// </summary> - Line = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Fill = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - MarkerOutline = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - MarkerFill = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - ErrorBar = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - FrameBg = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Bg = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - Border = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - LegendBg = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - LegendBorder = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - LegendText = unchecked(10), - - /// <summary> - /// To be documented. - /// </summary> - TitleText = unchecked(11), - - /// <summary> - /// To be documented. - /// </summary> - InlayText = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - AxisText = unchecked(13), - - /// <summary> - /// To be documented. - /// </summary> - AxisGrid = unchecked(14), - - /// <summary> - /// To be documented. - /// </summary> - AxisTick = unchecked(15), - - /// <summary> - /// To be documented. - /// </summary> - AxisBg = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - AxisBgHovered = unchecked(17), - - /// <summary> - /// To be documented. - /// </summary> - AxisBgActive = unchecked(18), - - /// <summary> - /// To be documented. - /// </summary> - Selection = unchecked(19), - - /// <summary> - /// To be documented. - /// </summary> - Crosshairs = unchecked(20), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(21), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormap.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormap.cs deleted file mode 100644 index c750ea39c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormap.cs +++ /dev/null @@ -1,103 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotColormap : int - { - /// <summary> - /// To be documented. - /// </summary> - Deep = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Dark = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Pastel = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Paired = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Viridis = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Plasma = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Hot = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - Cool = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - Pink = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - Jet = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - Twilight = unchecked(10), - - /// <summary> - /// To be documented. - /// </summary> - RdBu = unchecked(11), - - /// <summary> - /// To be documented. - /// </summary> - BrBg = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - PiYg = unchecked(13), - - /// <summary> - /// To be documented. - /// </summary> - Spectral = unchecked(14), - - /// <summary> - /// To be documented. - /// </summary> - Greys = unchecked(15), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormapScaleFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormapScaleFlags.cs deleted file mode 100644 index 01209d93b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotColormapScaleFlags.cs +++ /dev/null @@ -1,43 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotColormapScaleFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoLabel = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Opposite = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Invert = unchecked(4), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCond.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCond.cs deleted file mode 100644 index 73136b129..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotCond.cs +++ /dev/null @@ -1,38 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotCond : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked((int)0), - - /// <summary> - /// To be documented. - /// </summary> - Always = unchecked((int)1), - - /// <summary> - /// To be documented. - /// </summary> - Once = unchecked((int)2), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDateFmt.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDateFmt.cs deleted file mode 100644 index 908807931..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDateFmt.cs +++ /dev/null @@ -1,53 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotDateFmt : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - DayMo = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - DayMoYr = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - MoYr = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Mo = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Yr = unchecked(5), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDigitalFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDigitalFlags.cs deleted file mode 100644 index 54cf62553..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDigitalFlags.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotDigitalFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDragToolFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDragToolFlags.cs deleted file mode 100644 index 5eac2c51d..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDragToolFlags.cs +++ /dev/null @@ -1,48 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotDragToolFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoCursors = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoFit = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoInputs = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Delayed = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDummyFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDummyFlags.cs deleted file mode 100644 index 3be1ac4af..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotDummyFlags.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotDummyFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotErrorBarsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotErrorBarsFlags.cs deleted file mode 100644 index 1225bd575..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotErrorBarsFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotErrorBarsFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotFlags.cs deleted file mode 100644 index 5eba7ef23..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotFlags.cs +++ /dev/null @@ -1,83 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoTitle = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoLegend = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoMouseText = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoInputs = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoMenus = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - NoBoxSelect = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - NoChild = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - NoFrame = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - Equal = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - Crosshairs = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - CanvasOnly = unchecked(55), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHeatmapFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHeatmapFlags.cs deleted file mode 100644 index 9bc31be74..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHeatmapFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotHeatmapFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - ColMajor = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHistogramFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHistogramFlags.cs deleted file mode 100644 index 9706cf645..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotHistogramFlags.cs +++ /dev/null @@ -1,53 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotHistogramFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - Cumulative = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - Density = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - NoOutliers = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - ColMajor = unchecked(16384), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotImageFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotImageFlags.cs deleted file mode 100644 index bca33cd13..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotImageFlags.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotImageFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotInfLinesFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotInfLinesFlags.cs deleted file mode 100644 index 59c259efe..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotInfLinesFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotInfLinesFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotItemFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotItemFlags.cs deleted file mode 100644 index e16d40db4..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotItemFlags.cs +++ /dev/null @@ -1,38 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotItemFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoLegend = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoFit = unchecked(2), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLegendFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLegendFlags.cs deleted file mode 100644 index d3596a413..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLegendFlags.cs +++ /dev/null @@ -1,58 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotLegendFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoButtons = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoHighlightItem = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoHighlightAxis = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoMenus = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - Outside = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(32), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLineFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLineFlags.cs deleted file mode 100644 index ee52730f5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLineFlags.cs +++ /dev/null @@ -1,53 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotLineFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Segments = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - Loop = unchecked(2048), - - /// <summary> - /// To be documented. - /// </summary> - SkipNaN = unchecked(4096), - - /// <summary> - /// To be documented. - /// </summary> - NoClip = unchecked(8192), - - /// <summary> - /// To be documented. - /// </summary> - Shaded = unchecked(16384), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLocation.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLocation.cs deleted file mode 100644 index f1a58d9c3..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotLocation.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotLocation : int - { - /// <summary> - /// To be documented. - /// </summary> - Center = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - North = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - South = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - West = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - East = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NorthWest = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - NorthEast = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - SouthWest = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - SouthEast = unchecked(10), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMarker.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMarker.cs deleted file mode 100644 index 5ab69893b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMarker.cs +++ /dev/null @@ -1,83 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotMarker : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(-1), - - /// <summary> - /// To be documented. - /// </summary> - Circle = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Square = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Diamond = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Up = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Down = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Left = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Right = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - Cross = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - Plus = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - Asterisk = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(10), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMouseTextFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMouseTextFlags.cs deleted file mode 100644 index 2c28345d1..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotMouseTextFlags.cs +++ /dev/null @@ -1,43 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotMouseTextFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoAuxAxes = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoFormat = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - ShowAlways = unchecked(4), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotPieChartFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotPieChartFlags.cs deleted file mode 100644 index 1d90a94aa..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotPieChartFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotPieChartFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Normalize = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScale.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScale.cs deleted file mode 100644 index 1f6923bc3..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScale.cs +++ /dev/null @@ -1,43 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotScale : int - { - /// <summary> - /// To be documented. - /// </summary> - Linear = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Time = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - Log10 = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - SymLog = unchecked(3), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScatterFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScatterFlags.cs deleted file mode 100644 index 36e6c2885..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotScatterFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotScatterFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoClip = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotShadedFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotShadedFlags.cs deleted file mode 100644 index 1d3aa01bb..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotShadedFlags.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotShadedFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStairsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStairsFlags.cs deleted file mode 100644 index 96709f1e6..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStairsFlags.cs +++ /dev/null @@ -1,38 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotStairsFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - PreStep = unchecked(1024), - - /// <summary> - /// To be documented. - /// </summary> - Shaded = unchecked(2048), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStemsFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStemsFlags.cs deleted file mode 100644 index 42c4f46f1..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStemsFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotStemsFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Horizontal = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStyleVar.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStyleVar.cs deleted file mode 100644 index 5216632f0..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotStyleVar.cs +++ /dev/null @@ -1,163 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotStyleVar : int - { - /// <summary> - /// To be documented. - /// </summary> - LineWeight = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Marker = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - MarkerSize = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - MarkerWeight = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - FillAlpha = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - ErrorBarSize = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - ErrorBarWeight = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - DigitalHeight = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - DigitalGap = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - BorderSize = unchecked(9), - - /// <summary> - /// To be documented. - /// </summary> - MinorAlpha = unchecked(10), - - /// <summary> - /// To be documented. - /// </summary> - MajorTickLen = unchecked(11), - - /// <summary> - /// To be documented. - /// </summary> - MinorTickLen = unchecked(12), - - /// <summary> - /// To be documented. - /// </summary> - MajorTickSize = unchecked(13), - - /// <summary> - /// To be documented. - /// </summary> - MinorTickSize = unchecked(14), - - /// <summary> - /// To be documented. - /// </summary> - MajorGridSize = unchecked(15), - - /// <summary> - /// To be documented. - /// </summary> - MinorGridSize = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - Padding = unchecked(17), - - /// <summary> - /// To be documented. - /// </summary> - LabelPadding = unchecked(18), - - /// <summary> - /// To be documented. - /// </summary> - LegendPadding = unchecked(19), - - /// <summary> - /// To be documented. - /// </summary> - LegendInnerPadding = unchecked(20), - - /// <summary> - /// To be documented. - /// </summary> - LegendSpacing = unchecked(21), - - /// <summary> - /// To be documented. - /// </summary> - MousePosPadding = unchecked(22), - - /// <summary> - /// To be documented. - /// </summary> - AnnotationPadding = unchecked(23), - - /// <summary> - /// To be documented. - /// </summary> - FitPadding = unchecked(24), - - /// <summary> - /// To be documented. - /// </summary> - DefaultSize = unchecked(25), - - /// <summary> - /// To be documented. - /// </summary> - MinSize = unchecked(26), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(27), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotSubplotFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotSubplotFlags.cs deleted file mode 100644 index 885250abf..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotSubplotFlags.cs +++ /dev/null @@ -1,83 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotSubplotFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - NoTitle = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - NoLegend = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - NoMenus = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - NoResize = unchecked(8), - - /// <summary> - /// To be documented. - /// </summary> - NoAlign = unchecked(16), - - /// <summary> - /// To be documented. - /// </summary> - ShareItems = unchecked(32), - - /// <summary> - /// To be documented. - /// </summary> - LinkRows = unchecked(64), - - /// <summary> - /// To be documented. - /// </summary> - LinkCols = unchecked(128), - - /// <summary> - /// To be documented. - /// </summary> - LinkAllX = unchecked(256), - - /// <summary> - /// To be documented. - /// </summary> - LinkAllY = unchecked(512), - - /// <summary> - /// To be documented. - /// </summary> - ColMajor = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTextFlags.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTextFlags.cs deleted file mode 100644 index b3a1fa084..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTextFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotTextFlags : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Vertical = unchecked(1024), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeFmt.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeFmt.cs deleted file mode 100644 index 78c646fcb..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeFmt.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotTimeFmt : int - { - /// <summary> - /// To be documented. - /// </summary> - None = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Us = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - SUs = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - SMs = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - S = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - HrMinSMs = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - HrMinS = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - HrMin = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - Hr = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeUnit.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeUnit.cs deleted file mode 100644 index 1400fd463..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Enums/ImPlotTimeUnit.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [Flags] - public enum ImPlotTimeUnit : int - { - /// <summary> - /// To be documented. - /// </summary> - Us = unchecked(0), - - /// <summary> - /// To be documented. - /// </summary> - Ms = unchecked(1), - - /// <summary> - /// To be documented. - /// </summary> - S = unchecked(2), - - /// <summary> - /// To be documented. - /// </summary> - Min = unchecked(3), - - /// <summary> - /// To be documented. - /// </summary> - Hr = unchecked(4), - - /// <summary> - /// To be documented. - /// </summary> - Day = unchecked(5), - - /// <summary> - /// To be documented. - /// </summary> - Mo = unchecked(6), - - /// <summary> - /// To be documented. - /// </summary> - Yr = unchecked(7), - - /// <summary> - /// To be documented. - /// </summary> - Count = unchecked(8), - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs deleted file mode 100644 index 3b3d48bc7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/FunctionTable.cs +++ /dev/null @@ -1,763 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - internal static FunctionTable funcTable; - - /// <summary> - /// Initializes the function table, automatically called. Do not call manually, only after <see cref="FreeApi"/>. - /// </summary> - public static void InitApi(INativeContext context) - { - funcTable = new FunctionTable(context, 727); - funcTable.Load(0, "ImPlotPoint_ImPlotPoint_Nil"); - funcTable.Load(1, "ImPlotPoint_destroy"); - funcTable.Load(2, "ImPlotPoint_ImPlotPoint_double"); - funcTable.Load(3, "ImPlotPoint_ImPlotPoint_Vec2"); - funcTable.Load(4, "ImPlotRange_ImPlotRange_Nil"); - funcTable.Load(5, "ImPlotRange_destroy"); - funcTable.Load(6, "ImPlotRange_ImPlotRange_double"); - funcTable.Load(7, "ImPlotRange_Contains"); - funcTable.Load(8, "ImPlotRange_Size"); - funcTable.Load(9, "ImPlotRange_Clamp"); - funcTable.Load(10, "ImPlotRect_ImPlotRect_Nil"); - funcTable.Load(11, "ImPlotRect_destroy"); - funcTable.Load(12, "ImPlotRect_ImPlotRect_double"); - funcTable.Load(13, "ImPlotRect_Contains_PlotPoInt"); - funcTable.Load(14, "ImPlotRect_Contains_double"); - funcTable.Load(15, "ImPlotRect_Size"); - funcTable.Load(16, "ImPlotRect_Clamp_PlotPoInt"); - funcTable.Load(17, "ImPlotRect_Clamp_double"); - funcTable.Load(18, "ImPlotRect_Min"); - funcTable.Load(19, "ImPlotRect_Max"); - funcTable.Load(20, "ImPlotStyle_ImPlotStyle"); - funcTable.Load(21, "ImPlotStyle_destroy"); - funcTable.Load(22, "ImPlotInputMap_ImPlotInputMap"); - funcTable.Load(23, "ImPlotInputMap_destroy"); - funcTable.Load(24, "ImPlot_CreateContext"); - funcTable.Load(25, "ImPlot_DestroyContext"); - funcTable.Load(26, "ImPlot_GetCurrentContext"); - funcTable.Load(27, "ImPlot_SetCurrentContext"); - funcTable.Load(28, "ImPlot_SetImGuiContext"); - funcTable.Load(29, "ImPlot_BeginPlot"); - funcTable.Load(30, "ImPlot_EndPlot"); - funcTable.Load(31, "ImPlot_BeginSubplots"); - funcTable.Load(32, "ImPlot_EndSubplots"); - funcTable.Load(33, "ImPlot_SetupAxis"); - funcTable.Load(34, "ImPlot_SetupAxisLimits"); - funcTable.Load(35, "ImPlot_SetupAxisLinks"); - funcTable.Load(36, "ImPlot_SetupAxisFormat_Str"); - funcTable.Load(37, "ImPlot_SetupAxisFormat_PlotFormatter"); - funcTable.Load(38, "ImPlot_SetupAxisTicks_doublePtr"); - funcTable.Load(39, "ImPlot_SetupAxisTicks_double"); - funcTable.Load(40, "ImPlot_SetupAxisScale_PlotScale"); - funcTable.Load(41, "ImPlot_SetupAxisScale_PlotTransform"); - funcTable.Load(42, "ImPlot_SetupAxisLimitsConstraints"); - funcTable.Load(43, "ImPlot_SetupAxisZoomConstraints"); - funcTable.Load(44, "ImPlot_SetupAxes"); - funcTable.Load(45, "ImPlot_SetupAxesLimits"); - funcTable.Load(46, "ImPlot_SetupLegend"); - funcTable.Load(47, "ImPlot_SetupMouseText"); - funcTable.Load(48, "ImPlot_SetupFinish"); - funcTable.Load(49, "ImPlot_SetNextAxisLimits"); - funcTable.Load(50, "ImPlot_SetNextAxisLinks"); - funcTable.Load(51, "ImPlot_SetNextAxisToFit"); - funcTable.Load(52, "ImPlot_SetNextAxesLimits"); - funcTable.Load(53, "ImPlot_SetNextAxesToFit"); - funcTable.Load(54, "ImPlot_PlotLine_FloatPtrInt"); - funcTable.Load(55, "ImPlot_PlotLine_doublePtrInt"); - funcTable.Load(56, "ImPlot_PlotLine_S8PtrInt"); - funcTable.Load(57, "ImPlot_PlotLine_U8PtrInt"); - funcTable.Load(58, "ImPlot_PlotLine_S16PtrInt"); - funcTable.Load(59, "ImPlot_PlotLine_U16PtrInt"); - funcTable.Load(60, "ImPlot_PlotLine_S32PtrInt"); - funcTable.Load(61, "ImPlot_PlotLine_U32PtrInt"); - funcTable.Load(62, "ImPlot_PlotLine_S64PtrInt"); - funcTable.Load(63, "ImPlot_PlotLine_U64PtrInt"); - funcTable.Load(64, "ImPlot_PlotLine_FloatPtrFloatPtr"); - funcTable.Load(65, "ImPlot_PlotLine_doublePtrdoublePtr"); - funcTable.Load(66, "ImPlot_PlotLine_S8PtrS8Ptr"); - funcTable.Load(67, "ImPlot_PlotLine_U8PtrU8Ptr"); - funcTable.Load(68, "ImPlot_PlotLine_S16PtrS16Ptr"); - funcTable.Load(69, "ImPlot_PlotLine_U16PtrU16Ptr"); - funcTable.Load(70, "ImPlot_PlotLine_S32PtrS32Ptr"); - funcTable.Load(71, "ImPlot_PlotLine_U32PtrU32Ptr"); - funcTable.Load(72, "ImPlot_PlotLine_S64PtrS64Ptr"); - funcTable.Load(73, "ImPlot_PlotLine_U64PtrU64Ptr"); - funcTable.Load(74, "ImPlot_PlotScatter_FloatPtrInt"); - funcTable.Load(75, "ImPlot_PlotScatter_doublePtrInt"); - funcTable.Load(76, "ImPlot_PlotScatter_S8PtrInt"); - funcTable.Load(77, "ImPlot_PlotScatter_U8PtrInt"); - funcTable.Load(78, "ImPlot_PlotScatter_S16PtrInt"); - funcTable.Load(79, "ImPlot_PlotScatter_U16PtrInt"); - funcTable.Load(80, "ImPlot_PlotScatter_S32PtrInt"); - funcTable.Load(81, "ImPlot_PlotScatter_U32PtrInt"); - funcTable.Load(82, "ImPlot_PlotScatter_S64PtrInt"); - funcTable.Load(83, "ImPlot_PlotScatter_U64PtrInt"); - funcTable.Load(84, "ImPlot_PlotScatter_FloatPtrFloatPtr"); - funcTable.Load(85, "ImPlot_PlotScatter_doublePtrdoublePtr"); - funcTable.Load(86, "ImPlot_PlotScatter_S8PtrS8Ptr"); - funcTable.Load(87, "ImPlot_PlotScatter_U8PtrU8Ptr"); - funcTable.Load(88, "ImPlot_PlotScatter_S16PtrS16Ptr"); - funcTable.Load(89, "ImPlot_PlotScatter_U16PtrU16Ptr"); - funcTable.Load(90, "ImPlot_PlotScatter_S32PtrS32Ptr"); - funcTable.Load(91, "ImPlot_PlotScatter_U32PtrU32Ptr"); - funcTable.Load(92, "ImPlot_PlotScatter_S64PtrS64Ptr"); - funcTable.Load(93, "ImPlot_PlotScatter_U64PtrU64Ptr"); - funcTable.Load(94, "ImPlot_PlotStairs_FloatPtrInt"); - funcTable.Load(95, "ImPlot_PlotStairs_doublePtrInt"); - funcTable.Load(96, "ImPlot_PlotStairs_S8PtrInt"); - funcTable.Load(97, "ImPlot_PlotStairs_U8PtrInt"); - funcTable.Load(98, "ImPlot_PlotStairs_S16PtrInt"); - funcTable.Load(99, "ImPlot_PlotStairs_U16PtrInt"); - funcTable.Load(100, "ImPlot_PlotStairs_S32PtrInt"); - funcTable.Load(101, "ImPlot_PlotStairs_U32PtrInt"); - funcTable.Load(102, "ImPlot_PlotStairs_S64PtrInt"); - funcTable.Load(103, "ImPlot_PlotStairs_U64PtrInt"); - funcTable.Load(104, "ImPlot_PlotStairs_FloatPtrFloatPtr"); - funcTable.Load(105, "ImPlot_PlotStairs_doublePtrdoublePtr"); - funcTable.Load(106, "ImPlot_PlotStairs_S8PtrS8Ptr"); - funcTable.Load(107, "ImPlot_PlotStairs_U8PtrU8Ptr"); - funcTable.Load(108, "ImPlot_PlotStairs_S16PtrS16Ptr"); - funcTable.Load(109, "ImPlot_PlotStairs_U16PtrU16Ptr"); - funcTable.Load(110, "ImPlot_PlotStairs_S32PtrS32Ptr"); - funcTable.Load(111, "ImPlot_PlotStairs_U32PtrU32Ptr"); - funcTable.Load(112, "ImPlot_PlotStairs_S64PtrS64Ptr"); - funcTable.Load(113, "ImPlot_PlotStairs_U64PtrU64Ptr"); - funcTable.Load(114, "ImPlot_PlotStairsG"); - funcTable.Load(115, "ImPlot_PlotShaded_FloatPtrInt"); - funcTable.Load(116, "ImPlot_PlotShaded_doublePtrInt"); - funcTable.Load(117, "ImPlot_PlotShaded_S8PtrInt"); - funcTable.Load(118, "ImPlot_PlotShaded_U8PtrInt"); - funcTable.Load(119, "ImPlot_PlotShaded_S16PtrInt"); - funcTable.Load(120, "ImPlot_PlotShaded_U16PtrInt"); - funcTable.Load(121, "ImPlot_PlotShaded_S32PtrInt"); - funcTable.Load(122, "ImPlot_PlotShaded_U32PtrInt"); - funcTable.Load(123, "ImPlot_PlotShaded_S64PtrInt"); - funcTable.Load(124, "ImPlot_PlotShaded_U64PtrInt"); - funcTable.Load(125, "ImPlot_PlotShaded_FloatPtrFloatPtrInt"); - funcTable.Load(126, "ImPlot_PlotShaded_doublePtrdoublePtrInt"); - funcTable.Load(127, "ImPlot_PlotShaded_S8PtrS8PtrInt"); - funcTable.Load(128, "ImPlot_PlotShaded_U8PtrU8PtrInt"); - funcTable.Load(129, "ImPlot_PlotShaded_S16PtrS16PtrInt"); - funcTable.Load(130, "ImPlot_PlotShaded_U16PtrU16PtrInt"); - funcTable.Load(131, "ImPlot_PlotShaded_S32PtrS32PtrInt"); - funcTable.Load(132, "ImPlot_PlotShaded_U32PtrU32PtrInt"); - funcTable.Load(133, "ImPlot_PlotShaded_S64PtrS64PtrInt"); - funcTable.Load(134, "ImPlot_PlotShaded_U64PtrU64PtrInt"); - funcTable.Load(135, "ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr"); - funcTable.Load(136, "ImPlot_PlotShaded_doublePtrdoublePtrdoublePtr"); - funcTable.Load(137, "ImPlot_PlotShaded_S8PtrS8PtrS8Ptr"); - funcTable.Load(138, "ImPlot_PlotShaded_U8PtrU8PtrU8Ptr"); - funcTable.Load(139, "ImPlot_PlotShaded_S16PtrS16PtrS16Ptr"); - funcTable.Load(140, "ImPlot_PlotShaded_U16PtrU16PtrU16Ptr"); - funcTable.Load(141, "ImPlot_PlotShaded_S32PtrS32PtrS32Ptr"); - funcTable.Load(142, "ImPlot_PlotShaded_U32PtrU32PtrU32Ptr"); - funcTable.Load(143, "ImPlot_PlotShaded_S64PtrS64PtrS64Ptr"); - funcTable.Load(144, "ImPlot_PlotShaded_U64PtrU64PtrU64Ptr"); - funcTable.Load(145, "ImPlot_PlotBars_FloatPtrInt"); - funcTable.Load(146, "ImPlot_PlotBars_doublePtrInt"); - funcTable.Load(147, "ImPlot_PlotBars_S8PtrInt"); - funcTable.Load(148, "ImPlot_PlotBars_U8PtrInt"); - funcTable.Load(149, "ImPlot_PlotBars_S16PtrInt"); - funcTable.Load(150, "ImPlot_PlotBars_U16PtrInt"); - funcTable.Load(151, "ImPlot_PlotBars_S32PtrInt"); - funcTable.Load(152, "ImPlot_PlotBars_U32PtrInt"); - funcTable.Load(153, "ImPlot_PlotBars_S64PtrInt"); - funcTable.Load(154, "ImPlot_PlotBars_U64PtrInt"); - funcTable.Load(155, "ImPlot_PlotBars_FloatPtrFloatPtr"); - funcTable.Load(156, "ImPlot_PlotBars_doublePtrdoublePtr"); - funcTable.Load(157, "ImPlot_PlotBars_S8PtrS8Ptr"); - funcTable.Load(158, "ImPlot_PlotBars_U8PtrU8Ptr"); - funcTable.Load(159, "ImPlot_PlotBars_S16PtrS16Ptr"); - funcTable.Load(160, "ImPlot_PlotBars_U16PtrU16Ptr"); - funcTable.Load(161, "ImPlot_PlotBars_S32PtrS32Ptr"); - funcTable.Load(162, "ImPlot_PlotBars_U32PtrU32Ptr"); - funcTable.Load(163, "ImPlot_PlotBars_S64PtrS64Ptr"); - funcTable.Load(164, "ImPlot_PlotBars_U64PtrU64Ptr"); - funcTable.Load(165, "ImPlot_PlotBarGroups_FloatPtr"); - funcTable.Load(166, "ImPlot_PlotBarGroups_doublePtr"); - funcTable.Load(167, "ImPlot_PlotBarGroups_S8Ptr"); - funcTable.Load(168, "ImPlot_PlotBarGroups_U8Ptr"); - funcTable.Load(169, "ImPlot_PlotBarGroups_S16Ptr"); - funcTable.Load(170, "ImPlot_PlotBarGroups_U16Ptr"); - funcTable.Load(171, "ImPlot_PlotBarGroups_S32Ptr"); - funcTable.Load(172, "ImPlot_PlotBarGroups_U32Ptr"); - funcTable.Load(173, "ImPlot_PlotBarGroups_S64Ptr"); - funcTable.Load(174, "ImPlot_PlotBarGroups_U64Ptr"); - funcTable.Load(175, "ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt"); - funcTable.Load(176, "ImPlot_PlotErrorBars_doublePtrdoublePtrdoublePtrInt"); - funcTable.Load(177, "ImPlot_PlotErrorBars_S8PtrS8PtrS8PtrInt"); - funcTable.Load(178, "ImPlot_PlotErrorBars_U8PtrU8PtrU8PtrInt"); - funcTable.Load(179, "ImPlot_PlotErrorBars_S16PtrS16PtrS16PtrInt"); - funcTable.Load(180, "ImPlot_PlotErrorBars_U16PtrU16PtrU16PtrInt"); - funcTable.Load(181, "ImPlot_PlotErrorBars_S32PtrS32PtrS32PtrInt"); - funcTable.Load(182, "ImPlot_PlotErrorBars_U32PtrU32PtrU32PtrInt"); - funcTable.Load(183, "ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt"); - funcTable.Load(184, "ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt"); - funcTable.Load(185, "ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr"); - funcTable.Load(186, "ImPlot_PlotErrorBars_doublePtrdoublePtrdoublePtrdoublePtr"); - funcTable.Load(187, "ImPlot_PlotErrorBars_S8PtrS8PtrS8PtrS8Ptr"); - funcTable.Load(188, "ImPlot_PlotErrorBars_U8PtrU8PtrU8PtrU8Ptr"); - funcTable.Load(189, "ImPlot_PlotErrorBars_S16PtrS16PtrS16PtrS16Ptr"); - funcTable.Load(190, "ImPlot_PlotErrorBars_U16PtrU16PtrU16PtrU16Ptr"); - funcTable.Load(191, "ImPlot_PlotErrorBars_S32PtrS32PtrS32PtrS32Ptr"); - funcTable.Load(192, "ImPlot_PlotErrorBars_U32PtrU32PtrU32PtrU32Ptr"); - funcTable.Load(193, "ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr"); - funcTable.Load(194, "ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr"); - funcTable.Load(195, "ImPlot_PlotStems_FloatPtrInt"); - funcTable.Load(196, "ImPlot_PlotStems_doublePtrInt"); - funcTable.Load(197, "ImPlot_PlotStems_S8PtrInt"); - funcTable.Load(198, "ImPlot_PlotStems_U8PtrInt"); - funcTable.Load(199, "ImPlot_PlotStems_S16PtrInt"); - funcTable.Load(200, "ImPlot_PlotStems_U16PtrInt"); - funcTable.Load(201, "ImPlot_PlotStems_S32PtrInt"); - funcTable.Load(202, "ImPlot_PlotStems_U32PtrInt"); - funcTable.Load(203, "ImPlot_PlotStems_S64PtrInt"); - funcTable.Load(204, "ImPlot_PlotStems_U64PtrInt"); - funcTable.Load(205, "ImPlot_PlotStems_FloatPtrFloatPtr"); - funcTable.Load(206, "ImPlot_PlotStems_doublePtrdoublePtr"); - funcTable.Load(207, "ImPlot_PlotStems_S8PtrS8Ptr"); - funcTable.Load(208, "ImPlot_PlotStems_U8PtrU8Ptr"); - funcTable.Load(209, "ImPlot_PlotStems_S16PtrS16Ptr"); - funcTable.Load(210, "ImPlot_PlotStems_U16PtrU16Ptr"); - funcTable.Load(211, "ImPlot_PlotStems_S32PtrS32Ptr"); - funcTable.Load(212, "ImPlot_PlotStems_U32PtrU32Ptr"); - funcTable.Load(213, "ImPlot_PlotStems_S64PtrS64Ptr"); - funcTable.Load(214, "ImPlot_PlotStems_U64PtrU64Ptr"); - funcTable.Load(215, "ImPlot_PlotInfLines_FloatPtr"); - funcTable.Load(216, "ImPlot_PlotInfLines_doublePtr"); - funcTable.Load(217, "ImPlot_PlotInfLines_S8Ptr"); - funcTable.Load(218, "ImPlot_PlotInfLines_U8Ptr"); - funcTable.Load(219, "ImPlot_PlotInfLines_S16Ptr"); - funcTable.Load(220, "ImPlot_PlotInfLines_U16Ptr"); - funcTable.Load(221, "ImPlot_PlotInfLines_S32Ptr"); - funcTable.Load(222, "ImPlot_PlotInfLines_U32Ptr"); - funcTable.Load(223, "ImPlot_PlotInfLines_S64Ptr"); - funcTable.Load(224, "ImPlot_PlotInfLines_U64Ptr"); - funcTable.Load(225, "ImPlot_PlotPieChart_FloatPtr"); - funcTable.Load(226, "ImPlot_PlotPieChart_doublePtr"); - funcTable.Load(227, "ImPlot_PlotPieChart_S8Ptr"); - funcTable.Load(228, "ImPlot_PlotPieChart_U8Ptr"); - funcTable.Load(229, "ImPlot_PlotPieChart_S16Ptr"); - funcTable.Load(230, "ImPlot_PlotPieChart_U16Ptr"); - funcTable.Load(231, "ImPlot_PlotPieChart_S32Ptr"); - funcTable.Load(232, "ImPlot_PlotPieChart_U32Ptr"); - funcTable.Load(233, "ImPlot_PlotPieChart_S64Ptr"); - funcTable.Load(234, "ImPlot_PlotPieChart_U64Ptr"); - funcTable.Load(235, "ImPlot_PlotHeatmap_FloatPtr"); - funcTable.Load(236, "ImPlot_PlotHeatmap_doublePtr"); - funcTable.Load(237, "ImPlot_PlotHeatmap_S8Ptr"); - funcTable.Load(238, "ImPlot_PlotHeatmap_U8Ptr"); - funcTable.Load(239, "ImPlot_PlotHeatmap_S16Ptr"); - funcTable.Load(240, "ImPlot_PlotHeatmap_U16Ptr"); - funcTable.Load(241, "ImPlot_PlotHeatmap_S32Ptr"); - funcTable.Load(242, "ImPlot_PlotHeatmap_U32Ptr"); - funcTable.Load(243, "ImPlot_PlotHeatmap_S64Ptr"); - funcTable.Load(244, "ImPlot_PlotHeatmap_U64Ptr"); - funcTable.Load(245, "ImPlot_PlotHistogram_FloatPtr"); - funcTable.Load(246, "ImPlot_PlotHistogram_doublePtr"); - funcTable.Load(247, "ImPlot_PlotHistogram_S8Ptr"); - funcTable.Load(248, "ImPlot_PlotHistogram_U8Ptr"); - funcTable.Load(249, "ImPlot_PlotHistogram_S16Ptr"); - funcTable.Load(250, "ImPlot_PlotHistogram_U16Ptr"); - funcTable.Load(251, "ImPlot_PlotHistogram_S32Ptr"); - funcTable.Load(252, "ImPlot_PlotHistogram_U32Ptr"); - funcTable.Load(253, "ImPlot_PlotHistogram_S64Ptr"); - funcTable.Load(254, "ImPlot_PlotHistogram_U64Ptr"); - funcTable.Load(255, "ImPlot_PlotHistogram2D_FloatPtr"); - funcTable.Load(256, "ImPlot_PlotHistogram2D_doublePtr"); - funcTable.Load(257, "ImPlot_PlotHistogram2D_S8Ptr"); - funcTable.Load(258, "ImPlot_PlotHistogram2D_U8Ptr"); - funcTable.Load(259, "ImPlot_PlotHistogram2D_S16Ptr"); - funcTable.Load(260, "ImPlot_PlotHistogram2D_U16Ptr"); - funcTable.Load(261, "ImPlot_PlotHistogram2D_S32Ptr"); - funcTable.Load(262, "ImPlot_PlotHistogram2D_U32Ptr"); - funcTable.Load(263, "ImPlot_PlotHistogram2D_S64Ptr"); - funcTable.Load(264, "ImPlot_PlotHistogram2D_U64Ptr"); - funcTable.Load(265, "ImPlot_PlotDigital_FloatPtr"); - funcTable.Load(266, "ImPlot_PlotDigital_doublePtr"); - funcTable.Load(267, "ImPlot_PlotDigital_S8Ptr"); - funcTable.Load(268, "ImPlot_PlotDigital_U8Ptr"); - funcTable.Load(269, "ImPlot_PlotDigital_S16Ptr"); - funcTable.Load(270, "ImPlot_PlotDigital_U16Ptr"); - funcTable.Load(271, "ImPlot_PlotDigital_S32Ptr"); - funcTable.Load(272, "ImPlot_PlotDigital_U32Ptr"); - funcTable.Load(273, "ImPlot_PlotDigital_S64Ptr"); - funcTable.Load(274, "ImPlot_PlotDigital_U64Ptr"); - funcTable.Load(275, "ImPlot_PlotImage"); - funcTable.Load(276, "ImPlot_PlotText"); - funcTable.Load(277, "ImPlot_PlotDummy"); - funcTable.Load(278, "ImPlot_DragPoint"); - funcTable.Load(279, "ImPlot_DragLineX"); - funcTable.Load(280, "ImPlot_DragLineY"); - funcTable.Load(281, "ImPlot_DragRect"); - funcTable.Load(282, "ImPlot_Annotation_Bool"); - funcTable.Load(283, "ImPlot_Annotation_Str"); - funcTable.Load(284, "ImPlot_AnnotationV"); - funcTable.Load(285, "ImPlot_TagX_Bool"); - funcTable.Load(286, "ImPlot_TagX_Str"); - funcTable.Load(287, "ImPlot_TagXV"); - funcTable.Load(288, "ImPlot_TagY_Bool"); - funcTable.Load(289, "ImPlot_TagY_Str"); - funcTable.Load(290, "ImPlot_TagYV"); - funcTable.Load(291, "ImPlot_SetAxis"); - funcTable.Load(292, "ImPlot_SetAxes"); - funcTable.Load(293, "ImPlot_PixelsToPlot_Vec2"); - funcTable.Load(294, "ImPlot_PixelsToPlot_Float"); - funcTable.Load(295, "ImPlot_PlotToPixels_PlotPoInt"); - funcTable.Load(296, "ImPlot_PlotToPixels_double"); - funcTable.Load(297, "ImPlot_GetPlotPos"); - funcTable.Load(298, "ImPlot_GetPlotSize"); - funcTable.Load(299, "ImPlot_GetPlotMousePos"); - funcTable.Load(300, "ImPlot_GetPlotLimits"); - funcTable.Load(301, "ImPlot_IsPlotHovered"); - funcTable.Load(302, "ImPlot_IsAxisHovered"); - funcTable.Load(303, "ImPlot_IsSubplotsHovered"); - funcTable.Load(304, "ImPlot_IsPlotSelected"); - funcTable.Load(305, "ImPlot_GetPlotSelection"); - funcTable.Load(306, "ImPlot_CancelPlotSelection"); - funcTable.Load(307, "ImPlot_HideNextItem"); - funcTable.Load(308, "ImPlot_BeginAlignedPlots"); - funcTable.Load(309, "ImPlot_EndAlignedPlots"); - funcTable.Load(310, "ImPlot_BeginLegendPopup"); - funcTable.Load(311, "ImPlot_EndLegendPopup"); - funcTable.Load(312, "ImPlot_IsLegendEntryHovered"); - funcTable.Load(313, "ImPlot_BeginDragDropTargetPlot"); - funcTable.Load(314, "ImPlot_BeginDragDropTargetAxis"); - funcTable.Load(315, "ImPlot_BeginDragDropTargetLegend"); - funcTable.Load(316, "ImPlot_EndDragDropTarget"); - funcTable.Load(317, "ImPlot_BeginDragDropSourcePlot"); - funcTable.Load(318, "ImPlot_BeginDragDropSourceAxis"); - funcTable.Load(319, "ImPlot_BeginDragDropSourceItem"); - funcTable.Load(320, "ImPlot_EndDragDropSource"); - funcTable.Load(321, "ImPlot_GetStyle"); - funcTable.Load(322, "ImPlot_StyleColorsAuto"); - funcTable.Load(323, "ImPlot_StyleColorsClassic"); - funcTable.Load(324, "ImPlot_StyleColorsDark"); - funcTable.Load(325, "ImPlot_StyleColorsLight"); - funcTable.Load(326, "ImPlot_PushStyleColor_U32"); - funcTable.Load(327, "ImPlot_PushStyleColor_Vec4"); - funcTable.Load(328, "ImPlot_PopStyleColor"); - funcTable.Load(329, "ImPlot_PushStyleVar_Float"); - funcTable.Load(330, "ImPlot_PushStyleVar_Int"); - funcTable.Load(331, "ImPlot_PushStyleVar_Vec2"); - funcTable.Load(332, "ImPlot_PopStyleVar"); - funcTable.Load(333, "ImPlot_SetNextLineStyle"); - funcTable.Load(334, "ImPlot_SetNextFillStyle"); - funcTable.Load(335, "ImPlot_SetNextMarkerStyle"); - funcTable.Load(336, "ImPlot_SetNextErrorBarStyle"); - funcTable.Load(337, "ImPlot_GetLastItemColor"); - funcTable.Load(338, "ImPlot_GetStyleColorName"); - funcTable.Load(339, "ImPlot_GetMarkerName"); - funcTable.Load(340, "ImPlot_AddColormap_Vec4Ptr"); - funcTable.Load(341, "ImPlot_AddColormap_U32Ptr"); - funcTable.Load(342, "ImPlot_GetColormapCount"); - funcTable.Load(343, "ImPlot_GetColormapName"); - funcTable.Load(344, "ImPlot_GetColormapIndex"); - funcTable.Load(345, "ImPlot_PushColormap_PlotColormap"); - funcTable.Load(346, "ImPlot_PushColormap_Str"); - funcTable.Load(347, "ImPlot_PopColormap"); - funcTable.Load(348, "ImPlot_NextColormapColor"); - funcTable.Load(349, "ImPlot_GetColormapSize"); - funcTable.Load(350, "ImPlot_GetColormapColor"); - funcTable.Load(351, "ImPlot_SampleColormap"); - funcTable.Load(352, "ImPlot_ColormapScale"); - funcTable.Load(353, "ImPlot_ColormapSlider"); - funcTable.Load(354, "ImPlot_ColormapButton"); - funcTable.Load(355, "ImPlot_BustColorCache"); - funcTable.Load(356, "ImPlot_GetInputMap"); - funcTable.Load(357, "ImPlot_MapInputDefault"); - funcTable.Load(358, "ImPlot_MapInputReverse"); - funcTable.Load(359, "ImPlot_ItemIcon_Vec4"); - funcTable.Load(360, "ImPlot_ItemIcon_U32"); - funcTable.Load(361, "ImPlot_ColormapIcon"); - funcTable.Load(362, "ImPlot_GetPlotDrawList"); - funcTable.Load(363, "ImPlot_PushPlotClipRect"); - funcTable.Load(364, "ImPlot_PopPlotClipRect"); - funcTable.Load(365, "ImPlot_ShowStyleSelector"); - funcTable.Load(366, "ImPlot_ShowColormapSelector"); - funcTable.Load(367, "ImPlot_ShowInputMapSelector"); - funcTable.Load(368, "ImPlot_ShowStyleEditor"); - funcTable.Load(369, "ImPlot_ShowUserGuide"); - funcTable.Load(370, "ImPlot_ShowMetricsWindow"); - funcTable.Load(371, "ImPlot_ShowDemoWindow"); - funcTable.Load(372, "ImPlot_ImLog10_Float"); - funcTable.Load(373, "ImPlot_ImLog10_double"); - funcTable.Load(374, "ImPlot_ImSinh_Float"); - funcTable.Load(375, "ImPlot_ImSinh_double"); - funcTable.Load(376, "ImPlot_ImAsinh_Float"); - funcTable.Load(377, "ImPlot_ImAsinh_double"); - funcTable.Load(378, "ImPlot_ImRemap_Float"); - funcTable.Load(379, "ImPlot_ImRemap_double"); - funcTable.Load(380, "ImPlot_ImRemap_S8"); - funcTable.Load(381, "ImPlot_ImRemap_U8"); - funcTable.Load(382, "ImPlot_ImRemap_S16"); - funcTable.Load(383, "ImPlot_ImRemap_U16"); - funcTable.Load(384, "ImPlot_ImRemap_S32"); - funcTable.Load(385, "ImPlot_ImRemap_U32"); - funcTable.Load(386, "ImPlot_ImRemap_S64"); - funcTable.Load(387, "ImPlot_ImRemap_U64"); - funcTable.Load(388, "ImPlot_ImRemap01_Float"); - funcTable.Load(389, "ImPlot_ImRemap01_double"); - funcTable.Load(390, "ImPlot_ImRemap01_S8"); - funcTable.Load(391, "ImPlot_ImRemap01_U8"); - funcTable.Load(392, "ImPlot_ImRemap01_S16"); - funcTable.Load(393, "ImPlot_ImRemap01_U16"); - funcTable.Load(394, "ImPlot_ImRemap01_S32"); - funcTable.Load(395, "ImPlot_ImRemap01_U32"); - funcTable.Load(396, "ImPlot_ImRemap01_S64"); - funcTable.Load(397, "ImPlot_ImRemap01_U64"); - funcTable.Load(398, "ImPlot_ImPosMod"); - funcTable.Load(399, "ImPlot_ImNan"); - funcTable.Load(400, "ImPlot_ImNanOrInf"); - funcTable.Load(401, "ImPlot_ImConstrainNan"); - funcTable.Load(402, "ImPlot_ImConstrainInf"); - funcTable.Load(403, "ImPlot_ImConstrainLog"); - funcTable.Load(404, "ImPlot_ImConstrainTime"); - funcTable.Load(405, "ImPlot_ImAlmostEqual"); - funcTable.Load(406, "ImPlot_ImMinArray_FloatPtr"); - funcTable.Load(407, "ImPlot_ImMinArray_doublePtr"); - funcTable.Load(408, "ImPlot_ImMinArray_S8Ptr"); - funcTable.Load(409, "ImPlot_ImMinArray_U8Ptr"); - funcTable.Load(410, "ImPlot_ImMinArray_S16Ptr"); - funcTable.Load(411, "ImPlot_ImMinArray_U16Ptr"); - funcTable.Load(412, "ImPlot_ImMinArray_S32Ptr"); - funcTable.Load(413, "ImPlot_ImMinArray_U32Ptr"); - funcTable.Load(414, "ImPlot_ImMinArray_S64Ptr"); - funcTable.Load(415, "ImPlot_ImMinArray_U64Ptr"); - funcTable.Load(416, "ImPlot_ImMaxArray_FloatPtr"); - funcTable.Load(417, "ImPlot_ImMaxArray_doublePtr"); - funcTable.Load(418, "ImPlot_ImMaxArray_S8Ptr"); - funcTable.Load(419, "ImPlot_ImMaxArray_U8Ptr"); - funcTable.Load(420, "ImPlot_ImMaxArray_S16Ptr"); - funcTable.Load(421, "ImPlot_ImMaxArray_U16Ptr"); - funcTable.Load(422, "ImPlot_ImMaxArray_S32Ptr"); - funcTable.Load(423, "ImPlot_ImMaxArray_U32Ptr"); - funcTable.Load(424, "ImPlot_ImMaxArray_S64Ptr"); - funcTable.Load(425, "ImPlot_ImMaxArray_U64Ptr"); - funcTable.Load(426, "ImPlot_ImMinMaxArray_FloatPtr"); - funcTable.Load(427, "ImPlot_ImMinMaxArray_doublePtr"); - funcTable.Load(428, "ImPlot_ImMinMaxArray_S8Ptr"); - funcTable.Load(429, "ImPlot_ImMinMaxArray_U8Ptr"); - funcTable.Load(430, "ImPlot_ImMinMaxArray_S16Ptr"); - funcTable.Load(431, "ImPlot_ImMinMaxArray_U16Ptr"); - funcTable.Load(432, "ImPlot_ImMinMaxArray_S32Ptr"); - funcTable.Load(433, "ImPlot_ImMinMaxArray_U32Ptr"); - funcTable.Load(434, "ImPlot_ImMinMaxArray_S64Ptr"); - funcTable.Load(435, "ImPlot_ImMinMaxArray_U64Ptr"); - funcTable.Load(436, "ImPlot_ImSum_FloatPtr"); - funcTable.Load(437, "ImPlot_ImSum_doublePtr"); - funcTable.Load(438, "ImPlot_ImSum_S8Ptr"); - funcTable.Load(439, "ImPlot_ImSum_U8Ptr"); - funcTable.Load(440, "ImPlot_ImSum_S16Ptr"); - funcTable.Load(441, "ImPlot_ImSum_U16Ptr"); - funcTable.Load(442, "ImPlot_ImSum_S32Ptr"); - funcTable.Load(443, "ImPlot_ImSum_U32Ptr"); - funcTable.Load(444, "ImPlot_ImSum_S64Ptr"); - funcTable.Load(445, "ImPlot_ImSum_U64Ptr"); - funcTable.Load(446, "ImPlot_ImMean_FloatPtr"); - funcTable.Load(447, "ImPlot_ImMean_doublePtr"); - funcTable.Load(448, "ImPlot_ImMean_S8Ptr"); - funcTable.Load(449, "ImPlot_ImMean_U8Ptr"); - funcTable.Load(450, "ImPlot_ImMean_S16Ptr"); - funcTable.Load(451, "ImPlot_ImMean_U16Ptr"); - funcTable.Load(452, "ImPlot_ImMean_S32Ptr"); - funcTable.Load(453, "ImPlot_ImMean_U32Ptr"); - funcTable.Load(454, "ImPlot_ImMean_S64Ptr"); - funcTable.Load(455, "ImPlot_ImMean_U64Ptr"); - funcTable.Load(456, "ImPlot_ImStdDev_FloatPtr"); - funcTable.Load(457, "ImPlot_ImStdDev_doublePtr"); - funcTable.Load(458, "ImPlot_ImStdDev_S8Ptr"); - funcTable.Load(459, "ImPlot_ImStdDev_U8Ptr"); - funcTable.Load(460, "ImPlot_ImStdDev_S16Ptr"); - funcTable.Load(461, "ImPlot_ImStdDev_U16Ptr"); - funcTable.Load(462, "ImPlot_ImStdDev_S32Ptr"); - funcTable.Load(463, "ImPlot_ImStdDev_U32Ptr"); - funcTable.Load(464, "ImPlot_ImStdDev_S64Ptr"); - funcTable.Load(465, "ImPlot_ImStdDev_U64Ptr"); - funcTable.Load(466, "ImPlot_ImMixU32"); - funcTable.Load(467, "ImPlot_ImLerpU32"); - funcTable.Load(468, "ImPlot_ImAlphaU32"); - funcTable.Load(469, "ImPlot_ImOverlaps_Float"); - funcTable.Load(470, "ImPlot_ImOverlaps_double"); - funcTable.Load(471, "ImPlot_ImOverlaps_S8"); - funcTable.Load(472, "ImPlot_ImOverlaps_U8"); - funcTable.Load(473, "ImPlot_ImOverlaps_S16"); - funcTable.Load(474, "ImPlot_ImOverlaps_U16"); - funcTable.Load(475, "ImPlot_ImOverlaps_S32"); - funcTable.Load(476, "ImPlot_ImOverlaps_U32"); - funcTable.Load(477, "ImPlot_ImOverlaps_S64"); - funcTable.Load(478, "ImPlot_ImOverlaps_U64"); - funcTable.Load(479, "ImPlotDateTimeSpec_ImPlotDateTimeSpec_Nil"); - funcTable.Load(480, "ImPlotDateTimeSpec_destroy"); - funcTable.Load(481, "ImPlotDateTimeSpec_ImPlotDateTimeSpec_PlotDateFmt"); - funcTable.Load(482, "ImPlotTime_ImPlotTime_Nil"); - funcTable.Load(483, "ImPlotTime_destroy"); - funcTable.Load(484, "ImPlotTime_ImPlotTime_time_t"); - funcTable.Load(485, "ImPlotTime_RollOver"); - funcTable.Load(486, "ImPlotTime_ToDouble"); - funcTable.Load(487, "ImPlotTime_FromDouble"); - funcTable.Load(488, "ImPlotColormapData_ImPlotColormapData"); - funcTable.Load(489, "ImPlotColormapData_destroy"); - funcTable.Load(490, "ImPlotColormapData_Append"); - funcTable.Load(491, "ImPlotColormapData__AppendTable"); - funcTable.Load(492, "ImPlotColormapData_RebuildTables"); - funcTable.Load(493, "ImPlotColormapData_IsQual"); - funcTable.Load(494, "ImPlotColormapData_GetName"); - funcTable.Load(495, "ImPlotColormapData_GetIndex"); - funcTable.Load(496, "ImPlotColormapData_GetKeys"); - funcTable.Load(497, "ImPlotColormapData_GetKeyCount"); - funcTable.Load(498, "ImPlotColormapData_GetKeyColor"); - funcTable.Load(499, "ImPlotColormapData_SetKeyColor"); - funcTable.Load(500, "ImPlotColormapData_GetTable"); - funcTable.Load(501, "ImPlotColormapData_GetTableSize"); - funcTable.Load(502, "ImPlotColormapData_GetTableColor"); - funcTable.Load(503, "ImPlotColormapData_LerpTable"); - funcTable.Load(504, "ImPlotPointError_ImPlotPointError"); - funcTable.Load(505, "ImPlotPointError_destroy"); - funcTable.Load(506, "ImPlotAnnotationCollection_ImPlotAnnotationCollection"); - funcTable.Load(507, "ImPlotAnnotationCollection_destroy"); - funcTable.Load(508, "ImPlotAnnotationCollection_AppendV"); - funcTable.Load(509, "ImPlotAnnotationCollection_Append"); - funcTable.Load(510, "ImPlotAnnotationCollection_GetText"); - funcTable.Load(511, "ImPlotAnnotationCollection_Reset"); - funcTable.Load(512, "ImPlotTagCollection_ImPlotTagCollection"); - funcTable.Load(513, "ImPlotTagCollection_destroy"); - funcTable.Load(514, "ImPlotTagCollection_AppendV"); - funcTable.Load(515, "ImPlotTagCollection_Append"); - funcTable.Load(516, "ImPlotTagCollection_GetText"); - funcTable.Load(517, "ImPlotTagCollection_Reset"); - funcTable.Load(518, "ImPlotTick_ImPlotTick"); - funcTable.Load(519, "ImPlotTick_destroy"); - funcTable.Load(520, "ImPlotTicker_ImPlotTicker"); - funcTable.Load(521, "ImPlotTicker_destroy"); - funcTable.Load(522, "ImPlotTicker_AddTick_doubleStr"); - funcTable.Load(523, "ImPlotTicker_AddTick_doublePlotFormatter"); - funcTable.Load(524, "ImPlotTicker_AddTick_PlotTick"); - funcTable.Load(525, "ImPlotTicker_GetText_Int"); - funcTable.Load(526, "ImPlotTicker_GetText_PlotTick"); - funcTable.Load(527, "ImPlotTicker_OverrideSizeLate"); - funcTable.Load(528, "ImPlotTicker_Reset"); - funcTable.Load(529, "ImPlotTicker_TickCount"); - funcTable.Load(530, "ImPlotAxis_ImPlotAxis"); - funcTable.Load(531, "ImPlotAxis_destroy"); - funcTable.Load(532, "ImPlotAxis_Reset"); - funcTable.Load(533, "ImPlotAxis_SetMin"); - funcTable.Load(534, "ImPlotAxis_SetMax"); - funcTable.Load(535, "ImPlotAxis_SetRange_double"); - funcTable.Load(536, "ImPlotAxis_SetRange_PlotRange"); - funcTable.Load(537, "ImPlotAxis_SetAspect"); - funcTable.Load(538, "ImPlotAxis_PixelSize"); - funcTable.Load(539, "ImPlotAxis_GetAspect"); - funcTable.Load(540, "ImPlotAxis_Constrain"); - funcTable.Load(541, "ImPlotAxis_UpdateTransformCache"); - funcTable.Load(542, "ImPlotAxis_PlotToPixels"); - funcTable.Load(543, "ImPlotAxis_PixelsToPlot"); - funcTable.Load(544, "ImPlotAxis_ExtendFit"); - funcTable.Load(545, "ImPlotAxis_ExtendFitWith"); - funcTable.Load(546, "ImPlotAxis_ApplyFit"); - funcTable.Load(547, "ImPlotAxis_HasLabel"); - funcTable.Load(548, "ImPlotAxis_HasGridLines"); - funcTable.Load(549, "ImPlotAxis_HasTickLabels"); - funcTable.Load(550, "ImPlotAxis_HasTickMarks"); - funcTable.Load(551, "ImPlotAxis_WillRender"); - funcTable.Load(552, "ImPlotAxis_IsOpposite"); - funcTable.Load(553, "ImPlotAxis_IsInverted"); - funcTable.Load(554, "ImPlotAxis_IsForeground"); - funcTable.Load(555, "ImPlotAxis_IsAutoFitting"); - funcTable.Load(556, "ImPlotAxis_CanInitFit"); - funcTable.Load(557, "ImPlotAxis_IsRangeLocked"); - funcTable.Load(558, "ImPlotAxis_IsLockedMin"); - funcTable.Load(559, "ImPlotAxis_IsLockedMax"); - funcTable.Load(560, "ImPlotAxis_IsLocked"); - funcTable.Load(561, "ImPlotAxis_IsInputLockedMin"); - funcTable.Load(562, "ImPlotAxis_IsInputLockedMax"); - funcTable.Load(563, "ImPlotAxis_IsInputLocked"); - funcTable.Load(564, "ImPlotAxis_HasMenus"); - funcTable.Load(565, "ImPlotAxis_IsPanLocked"); - funcTable.Load(566, "ImPlotAxis_PushLinks"); - funcTable.Load(567, "ImPlotAxis_PullLinks"); - funcTable.Load(568, "ImPlotAlignmentData_ImPlotAlignmentData"); - funcTable.Load(569, "ImPlotAlignmentData_destroy"); - funcTable.Load(570, "ImPlotAlignmentData_Begin"); - funcTable.Load(571, "ImPlotAlignmentData_Update"); - funcTable.Load(572, "ImPlotAlignmentData_End"); - funcTable.Load(573, "ImPlotAlignmentData_Reset"); - funcTable.Load(574, "ImPlotItem_ImPlotItem"); - funcTable.Load(575, "ImPlotItem_destroy"); - funcTable.Load(576, "ImPlotLegend_ImPlotLegend"); - funcTable.Load(577, "ImPlotLegend_destroy"); - funcTable.Load(578, "ImPlotLegend_Reset"); - funcTable.Load(579, "ImPlotItemGroup_ImPlotItemGroup"); - funcTable.Load(580, "ImPlotItemGroup_destroy"); - funcTable.Load(581, "ImPlotItemGroup_GetItemCount"); - funcTable.Load(582, "ImPlotItemGroup_GetItemID"); - funcTable.Load(583, "ImPlotItemGroup_GetItem_ID"); - funcTable.Load(584, "ImPlotItemGroup_GetItem_Str"); - funcTable.Load(585, "ImPlotItemGroup_GetOrAddItem"); - funcTable.Load(586, "ImPlotItemGroup_GetItemByIndex"); - funcTable.Load(587, "ImPlotItemGroup_GetItemIndex"); - funcTable.Load(588, "ImPlotItemGroup_GetLegendCount"); - funcTable.Load(589, "ImPlotItemGroup_GetLegendItem"); - funcTable.Load(590, "ImPlotItemGroup_GetLegendLabel"); - funcTable.Load(591, "ImPlotItemGroup_Reset"); - funcTable.Load(592, "ImPlotPlot_ImPlotPlot"); - funcTable.Load(593, "ImPlotPlot_destroy"); - funcTable.Load(594, "ImPlotPlot_IsInputLocked"); - funcTable.Load(595, "ImPlotPlot_ClearTextBuffer"); - funcTable.Load(596, "ImPlotPlot_SetTitle"); - funcTable.Load(597, "ImPlotPlot_HasTitle"); - funcTable.Load(598, "ImPlotPlot_GetTitle"); - funcTable.Load(599, "ImPlotPlot_XAxis_Nil"); - funcTable.Load(600, "ImPlotPlot_XAxis__const"); - funcTable.Load(601, "ImPlotPlot_YAxis_Nil"); - funcTable.Load(602, "ImPlotPlot_YAxis__const"); - funcTable.Load(603, "ImPlotPlot_EnabledAxesX"); - funcTable.Load(604, "ImPlotPlot_EnabledAxesY"); - funcTable.Load(605, "ImPlotPlot_SetAxisLabel"); - funcTable.Load(606, "ImPlotPlot_GetAxisLabel"); - funcTable.Load(607, "ImPlotSubplot_ImPlotSubplot"); - funcTable.Load(608, "ImPlotSubplot_destroy"); - funcTable.Load(609, "ImPlotNextPlotData_ImPlotNextPlotData"); - funcTable.Load(610, "ImPlotNextPlotData_destroy"); - funcTable.Load(611, "ImPlotNextPlotData_Reset"); - funcTable.Load(612, "ImPlotNextItemData_ImPlotNextItemData"); - funcTable.Load(613, "ImPlotNextItemData_destroy"); - funcTable.Load(614, "ImPlotNextItemData_Reset"); - funcTable.Load(615, "ImPlot_Initialize"); - funcTable.Load(616, "ImPlot_ResetCtxForNextPlot"); - funcTable.Load(617, "ImPlot_ResetCtxForNextAlignedPlots"); - funcTable.Load(618, "ImPlot_ResetCtxForNextSubplot"); - funcTable.Load(619, "ImPlot_GetPlot"); - funcTable.Load(620, "ImPlot_GetCurrentPlot"); - funcTable.Load(621, "ImPlot_BustPlotCache"); - funcTable.Load(622, "ImPlot_ShowPlotContextMenu"); - funcTable.Load(623, "ImPlot_SetupLock"); - funcTable.Load(624, "ImPlot_SubplotNextCell"); - funcTable.Load(625, "ImPlot_ShowSubplotsContextMenu"); - funcTable.Load(626, "ImPlot_BeginItem"); - funcTable.Load(627, "ImPlot_EndItem"); - funcTable.Load(628, "ImPlot_RegisterOrGetItem"); - funcTable.Load(629, "ImPlot_GetItem"); - funcTable.Load(630, "ImPlot_GetCurrentItem"); - funcTable.Load(631, "ImPlot_BustItemCache"); - funcTable.Load(632, "ImPlot_AnyAxesInputLocked"); - funcTable.Load(633, "ImPlot_AllAxesInputLocked"); - funcTable.Load(634, "ImPlot_AnyAxesHeld"); - funcTable.Load(635, "ImPlot_AnyAxesHovered"); - funcTable.Load(636, "ImPlot_FitThisFrame"); - funcTable.Load(637, "ImPlot_FitPointX"); - funcTable.Load(638, "ImPlot_FitPointY"); - funcTable.Load(639, "ImPlot_FitPoint"); - funcTable.Load(640, "ImPlot_RangesOverlap"); - funcTable.Load(641, "ImPlot_ShowAxisContextMenu"); - funcTable.Load(642, "ImPlot_GetLocationPos"); - funcTable.Load(643, "ImPlot_CalcLegendSize"); - funcTable.Load(644, "ImPlot_ShowLegendEntries"); - funcTable.Load(645, "ImPlot_ShowAltLegend"); - funcTable.Load(646, "ImPlot_ShowLegendContextMenu"); - funcTable.Load(647, "ImPlot_LabelAxisValue"); - funcTable.Load(648, "ImPlot_GetItemData"); - funcTable.Load(649, "ImPlot_IsColorAuto_Vec4"); - funcTable.Load(650, "ImPlot_IsColorAuto_PlotCol"); - funcTable.Load(651, "ImPlot_GetAutoColor"); - funcTable.Load(652, "ImPlot_GetStyleColorVec4"); - funcTable.Load(653, "ImPlot_GetStyleColorU32"); - funcTable.Load(654, "ImPlot_AddTextVertical"); - funcTable.Load(655, "ImPlot_AddTextCentered"); - funcTable.Load(656, "ImPlot_CalcTextSizeVertical"); - funcTable.Load(657, "ImPlot_CalcTextColor_Vec4"); - funcTable.Load(658, "ImPlot_CalcTextColor_U32"); - funcTable.Load(659, "ImPlot_CalcHoverColor"); - funcTable.Load(660, "ImPlot_ClampLabelPos"); - funcTable.Load(661, "ImPlot_GetColormapColorU32"); - funcTable.Load(662, "ImPlot_NextColormapColorU32"); - funcTable.Load(663, "ImPlot_SampleColormapU32"); - funcTable.Load(664, "ImPlot_RenderColorBar"); - funcTable.Load(665, "ImPlot_NiceNum"); - funcTable.Load(666, "ImPlot_OrderOfMagnitude"); - funcTable.Load(667, "ImPlot_OrderToPrecision"); - funcTable.Load(668, "ImPlot_Precision"); - funcTable.Load(669, "ImPlot_RoundTo"); - funcTable.Load(670, "ImPlot_Intersection"); - funcTable.Load(671, "ImPlot_FillRange_Vector_Float_Ptr"); - funcTable.Load(672, "ImPlot_FillRange_Vector_double_Ptr"); - funcTable.Load(673, "ImPlot_FillRange_Vector_S8_Ptr"); - funcTable.Load(674, "ImPlot_FillRange_Vector_U8_Ptr"); - funcTable.Load(675, "ImPlot_FillRange_Vector_S16_Ptr"); - funcTable.Load(676, "ImPlot_FillRange_Vector_U16_Ptr"); - funcTable.Load(677, "ImPlot_FillRange_Vector_S32_Ptr"); - funcTable.Load(678, "ImPlot_FillRange_Vector_U32_Ptr"); - funcTable.Load(679, "ImPlot_FillRange_Vector_S64_Ptr"); - funcTable.Load(680, "ImPlot_FillRange_Vector_U64_Ptr"); - funcTable.Load(681, "ImPlot_CalculateBins_FloatPtr"); - funcTable.Load(682, "ImPlot_CalculateBins_doublePtr"); - funcTable.Load(683, "ImPlot_CalculateBins_S8Ptr"); - funcTable.Load(684, "ImPlot_CalculateBins_U8Ptr"); - funcTable.Load(685, "ImPlot_CalculateBins_S16Ptr"); - funcTable.Load(686, "ImPlot_CalculateBins_U16Ptr"); - funcTable.Load(687, "ImPlot_CalculateBins_S32Ptr"); - funcTable.Load(688, "ImPlot_CalculateBins_U32Ptr"); - funcTable.Load(689, "ImPlot_CalculateBins_S64Ptr"); - funcTable.Load(690, "ImPlot_CalculateBins_U64Ptr"); - funcTable.Load(691, "ImPlot_IsLeapYear"); - funcTable.Load(692, "ImPlot_GetDaysInMonth"); - funcTable.Load(693, "ImPlot_MkGmtTime"); - funcTable.Load(694, "ImPlot_GetGmtTime"); - funcTable.Load(695, "ImPlot_MkLocTime"); - funcTable.Load(696, "ImPlot_GetLocTime"); - funcTable.Load(697, "ImPlot_MakeTime"); - funcTable.Load(698, "ImPlot_GetYear"); - funcTable.Load(699, "ImPlot_AddTime"); - funcTable.Load(700, "ImPlot_FloorTime"); - funcTable.Load(701, "ImPlot_CeilTime"); - funcTable.Load(702, "ImPlot_RoundTime"); - funcTable.Load(703, "ImPlot_CombineDateTime"); - funcTable.Load(704, "ImPlot_FormatTime"); - funcTable.Load(705, "ImPlot_FormatDate"); - funcTable.Load(706, "ImPlot_FormatDateTime"); - funcTable.Load(707, "ImPlot_ShowDatePicker"); - funcTable.Load(708, "ImPlot_ShowTimePicker"); - funcTable.Load(709, "ImPlot_TransformForward_Log10"); - funcTable.Load(710, "ImPlot_TransformInverse_Log10"); - funcTable.Load(711, "ImPlot_TransformForward_SymLog"); - funcTable.Load(712, "ImPlot_TransformInverse_SymLog"); - funcTable.Load(713, "ImPlot_TransformForward_Logit"); - funcTable.Load(714, "ImPlot_TransformInverse_Logit"); - funcTable.Load(715, "ImPlot_Formatter_Default"); - funcTable.Load(716, "ImPlot_Formatter_Logit"); - funcTable.Load(717, "ImPlot_Formatter_Time"); - funcTable.Load(718, "ImPlot_Locator_Default"); - funcTable.Load(719, "ImPlot_Locator_Time"); - funcTable.Load(720, "ImPlot_Locator_Log10"); - funcTable.Load(721, "ImPlot_Locator_SymLog"); - funcTable.Load(722, "ImPlot_PlotLineG"); - funcTable.Load(723, "ImPlot_PlotScatterG"); - funcTable.Load(724, "ImPlot_PlotShadedG"); - funcTable.Load(725, "ImPlot_PlotBarsG"); - funcTable.Load(726, "ImPlot_PlotDigitalG"); - } - - public static void FreeApi() - { - funcTable.Free(); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.000.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.000.cs deleted file mode 100644 index 1e7e1b53e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.000.cs +++ /dev/null @@ -1,5019 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPoint* ImPlotPointNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPoint*>)funcTable[0])(); - #else - return (ImPlotPoint*)((delegate* unmanaged[Cdecl]<nint>)funcTable[0])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPointPtr ImPlotPoint() - { - ImPlotPointPtr ret = ImPlotPointNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotPoint* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, void>)funcTable[1])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[1])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotPointPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotPoint self) - { - fixed (ImPlotPoint* pself = &self) - { - DestroyNative((ImPlotPoint*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPoint* ImPlotPointNative(double x, double y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, ImPlotPoint*>)funcTable[2])(x, y); - #else - return (ImPlotPoint*)((delegate* unmanaged[Cdecl]<double, double, nint>)funcTable[2])(x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPointPtr ImPlotPoint(double x, double y) - { - ImPlotPointPtr ret = ImPlotPointNative(x, y); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPoint* ImPlotPointNative(Vector2 p) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector2, ImPlotPoint*>)funcTable[3])(p); - #else - return (ImPlotPoint*)((delegate* unmanaged[Cdecl]<Vector2, nint>)funcTable[3])(p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPointPtr ImPlotPoint(Vector2 p) - { - ImPlotPointPtr ret = ImPlotPointNative(p); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRange* ImPlotRangeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRange*>)funcTable[4])(); - #else - return (ImPlotRange*)((delegate* unmanaged[Cdecl]<nint>)funcTable[4])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRangePtr ImPlotRange() - { - ImPlotRangePtr ret = ImPlotRangeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotRange* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotRange*, void>)funcTable[5])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[5])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotRangePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotRange self) - { - fixed (ImPlotRange* pself = &self) - { - DestroyNative((ImPlotRange*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRange* ImPlotRangeNative(double min, double max) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, ImPlotRange*>)funcTable[6])(min, max); - #else - return (ImPlotRange*)((delegate* unmanaged[Cdecl]<double, double, nint>)funcTable[6])(min, max); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRangePtr ImPlotRange(double min, double max) - { - ImPlotRangePtr ret = ImPlotRangeNative(min, max); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ContainsNative(ImPlotRange* self, double value) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRange*, double, byte>)funcTable[7])(self, value); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, double, byte>)funcTable[7])((nint)self, value); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ImPlotRangePtr self, double value) - { - byte ret = ContainsNative(self, value); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ref ImPlotRange self, double value) - { - fixed (ImPlotRange* pself = &self) - { - byte ret = ContainsNative((ImPlotRange*)pself, value); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double SizeNative(ImPlotRange* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRange*, double>)funcTable[8])(self); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, double>)funcTable[8])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double Size(ImPlotRangePtr self) - { - double ret = SizeNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double Size(ref ImPlotRange self) - { - fixed (ImPlotRange* pself = &self) - { - double ret = SizeNative((ImPlotRange*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ClampNative(ImPlotRange* self, double value) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRange*, double, double>)funcTable[9])(self, value); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, double, double>)funcTable[9])((nint)self, value); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double Clamp(ImPlotRangePtr self, double value) - { - double ret = ClampNative(self, value); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double Clamp(ref ImPlotRange self, double value) - { - fixed (ImPlotRange* pself = &self) - { - double ret = ClampNative((ImPlotRange*)pself, value); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRect* ImPlotRectNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRect*>)funcTable[10])(); - #else - return (ImPlotRect*)((delegate* unmanaged[Cdecl]<nint>)funcTable[10])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRectPtr ImPlotRect() - { - ImPlotRectPtr ret = ImPlotRectNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotRect*, void>)funcTable[11])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[11])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotRectPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotRect self) - { - fixed (ImPlotRect* pself = &self) - { - DestroyNative((ImPlotRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRect* ImPlotRectNative(double xMin, double xMax, double yMin, double yMax) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, double, double, ImPlotRect*>)funcTable[12])(xMin, xMax, yMin, yMax); - #else - return (ImPlotRect*)((delegate* unmanaged[Cdecl]<double, double, double, double, nint>)funcTable[12])(xMin, xMax, yMin, yMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRectPtr ImPlotRect(double xMin, double xMax, double yMin, double yMax) - { - ImPlotRectPtr ret = ImPlotRectNative(xMin, xMax, yMin, yMax); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ContainsNative(ImPlotRect* self, ImPlotPoint p) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRect*, ImPlotPoint, byte>)funcTable[13])(self, p); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImPlotPoint, byte>)funcTable[13])((nint)self, p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ImPlotRectPtr self, ImPlotPoint p) - { - byte ret = ContainsNative(self, p); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ref ImPlotRect self, ImPlotPoint p) - { - fixed (ImPlotRect* pself = &self) - { - byte ret = ContainsNative((ImPlotRect*)pself, p); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ContainsNative(ImPlotRect* self, double x, double y) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRect*, double, double, byte>)funcTable[14])(self, x, y); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, double, double, byte>)funcTable[14])((nint)self, x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ImPlotRectPtr self, double x, double y) - { - byte ret = ContainsNative(self, x, y); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool Contains(ref ImPlotRect self, double x, double y) - { - fixed (ImPlotRect* pself = &self) - { - byte ret = ContainsNative((ImPlotRect*)pself, x, y); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SizeNative(ImPlotPoint* pOut, ImPlotRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, ImPlotRect*, void>)funcTable[15])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[15])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Size(ImPlotRectPtr self) - { - ImPlotPoint ret; - SizeNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Size(ImPlotPointPtr pOut, ImPlotRectPtr self) - { - SizeNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Size(ref ImPlotPoint pOut, ImPlotRectPtr self) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - SizeNative((ImPlotPoint*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Size(ref ImPlotRect self) - { - fixed (ImPlotRect* pself = &self) - { - ImPlotPoint ret; - SizeNative(&ret, (ImPlotRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Size(ImPlotPointPtr pOut, ref ImPlotRect self) - { - fixed (ImPlotRect* pself = &self) - { - SizeNative(pOut, (ImPlotRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Size(ref ImPlotPoint pOut, ref ImPlotRect self) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - fixed (ImPlotRect* pself = &self) - { - SizeNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClampNative(ImPlotPoint* pOut, ImPlotRect* self, ImPlotPoint p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, ImPlotRect*, ImPlotPoint, void>)funcTable[16])(pOut, self, p); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImPlotPoint, void>)funcTable[16])((nint)pOut, (nint)self, p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Clamp(ImPlotRectPtr self, ImPlotPoint p) - { - ImPlotPoint ret; - ClampNative(&ret, self, p); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ImPlotPointPtr pOut, ImPlotRectPtr self, ImPlotPoint p) - { - ClampNative(pOut, self, p); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ref ImPlotPoint pOut, ImPlotRectPtr self, ImPlotPoint p) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - ClampNative((ImPlotPoint*)ppOut, self, p); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Clamp(ref ImPlotRect self, ImPlotPoint p) - { - fixed (ImPlotRect* pself = &self) - { - ImPlotPoint ret; - ClampNative(&ret, (ImPlotRect*)pself, p); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ImPlotPointPtr pOut, ref ImPlotRect self, ImPlotPoint p) - { - fixed (ImPlotRect* pself = &self) - { - ClampNative(pOut, (ImPlotRect*)pself, p); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ref ImPlotPoint pOut, ref ImPlotRect self, ImPlotPoint p) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - fixed (ImPlotRect* pself = &self) - { - ClampNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself, p); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClampNative(ImPlotPoint* pOut, ImPlotRect* self, double x, double y) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, ImPlotRect*, double, double, void>)funcTable[17])(pOut, self, x, y); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, double, double, void>)funcTable[17])((nint)pOut, (nint)self, x, y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Clamp(ImPlotRectPtr self, double x, double y) - { - ImPlotPoint ret; - ClampNative(&ret, self, x, y); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ImPlotPointPtr pOut, ImPlotRectPtr self, double x, double y) - { - ClampNative(pOut, self, x, y); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ref ImPlotPoint pOut, ImPlotRectPtr self, double x, double y) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - ClampNative((ImPlotPoint*)ppOut, self, x, y); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Clamp(ref ImPlotRect self, double x, double y) - { - fixed (ImPlotRect* pself = &self) - { - ImPlotPoint ret; - ClampNative(&ret, (ImPlotRect*)pself, x, y); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ImPlotPointPtr pOut, ref ImPlotRect self, double x, double y) - { - fixed (ImPlotRect* pself = &self) - { - ClampNative(pOut, (ImPlotRect*)pself, x, y); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Clamp(ref ImPlotPoint pOut, ref ImPlotRect self, double x, double y) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - fixed (ImPlotRect* pself = &self) - { - ClampNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself, x, y); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MinNative(ImPlotPoint* pOut, ImPlotRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, ImPlotRect*, void>)funcTable[18])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[18])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Min(ImPlotRectPtr self) - { - ImPlotPoint ret; - MinNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Min(ImPlotPointPtr pOut, ImPlotRectPtr self) - { - MinNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Min(ref ImPlotPoint pOut, ImPlotRectPtr self) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - MinNative((ImPlotPoint*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Min(ref ImPlotRect self) - { - fixed (ImPlotRect* pself = &self) - { - ImPlotPoint ret; - MinNative(&ret, (ImPlotRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Min(ImPlotPointPtr pOut, ref ImPlotRect self) - { - fixed (ImPlotRect* pself = &self) - { - MinNative(pOut, (ImPlotRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Min(ref ImPlotPoint pOut, ref ImPlotRect self) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - fixed (ImPlotRect* pself = &self) - { - MinNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MaxNative(ImPlotPoint* pOut, ImPlotRect* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, ImPlotRect*, void>)funcTable[19])(pOut, self); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[19])((nint)pOut, (nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Max(ImPlotRectPtr self) - { - ImPlotPoint ret; - MaxNative(&ret, self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Max(ImPlotPointPtr pOut, ImPlotRectPtr self) - { - MaxNative(pOut, self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Max(ref ImPlotPoint pOut, ImPlotRectPtr self) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - MaxNative((ImPlotPoint*)ppOut, self); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint Max(ref ImPlotRect self) - { - fixed (ImPlotRect* pself = &self) - { - ImPlotPoint ret; - MaxNative(&ret, (ImPlotRect*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Max(ImPlotPointPtr pOut, ref ImPlotRect self) - { - fixed (ImPlotRect* pself = &self) - { - MaxNative(pOut, (ImPlotRect*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Max(ref ImPlotPoint pOut, ref ImPlotRect self) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - fixed (ImPlotRect* pself = &self) - { - MaxNative((ImPlotPoint*)ppOut, (ImPlotRect*)pself); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotStyle* ImPlotStyleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotStyle*>)funcTable[20])(); - #else - return (ImPlotStyle*)((delegate* unmanaged[Cdecl]<nint>)funcTable[20])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotStylePtr ImPlotStyle() - { - ImPlotStylePtr ret = ImPlotStyleNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotStyle* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyle*, void>)funcTable[21])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[21])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotStylePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotStyle self) - { - fixed (ImPlotStyle* pself = &self) - { - DestroyNative((ImPlotStyle*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotInputMap* ImPlotInputMapNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotInputMap*>)funcTable[22])(); - #else - return (ImPlotInputMap*)((delegate* unmanaged[Cdecl]<nint>)funcTable[22])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotInputMapPtr ImPlotInputMap() - { - ImPlotInputMapPtr ret = ImPlotInputMapNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotInputMap* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotInputMap*, void>)funcTable[23])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[23])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotInputMapPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotInputMap self) - { - fixed (ImPlotInputMap* pself = &self) - { - DestroyNative((ImPlotInputMap*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotContext* CreateContextNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotContext*>)funcTable[24])(); - #else - return (ImPlotContext*)((delegate* unmanaged[Cdecl]<nint>)funcTable[24])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotContextPtr CreateContext() - { - ImPlotContextPtr ret = CreateContextNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyContextNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotContext*, void>)funcTable[25])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[25])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyContext(ImPlotContextPtr ctx) - { - DestroyContextNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyContext() - { - DestroyContextNative((ImPlotContext*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void DestroyContext(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - DestroyContextNative((ImPlotContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotContext* GetCurrentContextNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotContext*>)funcTable[26])(); - #else - return (ImPlotContext*)((delegate* unmanaged[Cdecl]<nint>)funcTable[26])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotContextPtr GetCurrentContext() - { - ImPlotContextPtr ret = GetCurrentContextNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetCurrentContextNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotContext*, void>)funcTable[27])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[27])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentContext(ImPlotContextPtr ctx) - { - SetCurrentContextNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetCurrentContext(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - SetCurrentContextNative((ImPlotContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetImGuiContextNative(ImGuiContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImGuiContext*, void>)funcTable[28])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[28])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetImGuiContext(ImGuiContextPtr ctx) - { - SetImGuiContextNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetImGuiContext(ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - SetImGuiContextNative((ImGuiContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginPlotNative(byte* titleId, Vector2 size, ImPlotFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImPlotFlags, byte>)funcTable[29])(titleId, size, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, ImPlotFlags, byte>)funcTable[29])((nint)titleId, size, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(byte* titleId, Vector2 size, ImPlotFlags flags) - { - byte ret = BeginPlotNative(titleId, size, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(byte* titleId, Vector2 size) - { - byte ret = BeginPlotNative(titleId, size, (ImPlotFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(byte* titleId) - { - byte ret = BeginPlotNative(titleId, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(byte* titleId, ImPlotFlags flags) - { - byte ret = BeginPlotNative(titleId, (Vector2)(new Vector2(-1,0)), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ref byte titleId, Vector2 size, ImPlotFlags flags) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, size, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ref byte titleId, Vector2 size) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, size, (ImPlotFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ref byte titleId) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ref byte titleId, ImPlotFlags flags) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ReadOnlySpan<byte> titleId, Vector2 size, ImPlotFlags flags) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, size, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ReadOnlySpan<byte> titleId, Vector2 size) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, size, (ImPlotFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ReadOnlySpan<byte> titleId) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(ReadOnlySpan<byte> titleId, ImPlotFlags flags) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginPlotNative((byte*)ptitleId, (Vector2)(new Vector2(-1,0)), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(string titleId, Vector2 size, ImPlotFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPlotNative(pStr0, size, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(string titleId, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPlotNative(pStr0, size, (ImPlotFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(string titleId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPlotNative(pStr0, (Vector2)(new Vector2(-1,0)), (ImPlotFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginPlot(string titleId, ImPlotFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPlotNative(pStr0, (Vector2)(new Vector2(-1,0)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndPlotNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[30])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[30])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndPlot() - { - EndPlotNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginSubplotsNative(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, int, Vector2, ImPlotSubplotFlags, float*, float*, byte>)funcTable[31])(titleId, rows, cols, size, flags, rowRatios, colRatios); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, int, Vector2, ImPlotSubplotFlags, nint, nint, byte>)funcTable[31])((nint)titleId, rows, cols, size, flags, (nint)rowRatios, (nint)colRatios); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, rowRatios, colRatios); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, float* rowRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, colRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, float* rowRatios) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) - { - fixed (byte* ptitleId = &titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, colRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, float* rowRatios) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) - { - fixed (byte* ptitleId = titleId) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, float* colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, rowRatios, colRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, rowRatios, (float*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)(((void*)0)), (float*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)(((void*)0)), (float*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, float* rowRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, float* rowRatios, float* colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, colRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)prowRatios, colRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ref float rowRatios) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, colRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ref float rowRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, colRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ref float rowRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, float* colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)prowRatios, colRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)prowRatios, (float*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ref float rowRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ref float rowRatios, float* colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prowRatios = &rowRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, colRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, rowRatios, (float*)pcolRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, rowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, float* rowRatios, ref float colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, rowRatios, (float*)pcolRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, float* rowRatios, ref float colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), rowRatios, (float*)pcolRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) - { - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(byte* titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) - { - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(titleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ref byte titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = &titleId) - { - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(ReadOnlySpan<byte> titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) - { - fixed (byte* ptitleId = titleId) - { - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative((byte*)ptitleId, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ImPlotSubplotFlags flags, ref float rowRatios, ref float colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, flags, (float*)prowRatios, (float*)pcolRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginSubplots(string titleId, int rows, int cols, Vector2 size, ref float rowRatios, ref float colRatios) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prowRatios = &rowRatios) - { - fixed (float* pcolRatios = &colRatios) - { - byte ret = BeginSubplotsNative(pStr0, rows, cols, size, (ImPlotSubplotFlags)(0), (float*)prowRatios, (float*)pcolRatios); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndSubplotsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[32])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[32])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndSubplots() - { - EndSubplotsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisNative(ImAxis axis, byte* label, ImPlotAxisFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, byte*, ImPlotAxisFlags, void>)funcTable[33])(axis, label, flags); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, nint, ImPlotAxisFlags, void>)funcTable[33])(axis, (nint)label, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, byte* label, ImPlotAxisFlags flags) - { - SetupAxisNative(axis, label, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, byte* label) - { - SetupAxisNative(axis, label, (ImPlotAxisFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis) - { - SetupAxisNative(axis, (byte*)(((void*)0)), (ImPlotAxisFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, ImPlotAxisFlags flags) - { - SetupAxisNative(axis, (byte*)(((void*)0)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, ref byte label, ImPlotAxisFlags flags) - { - fixed (byte* plabel = &label) - { - SetupAxisNative(axis, (byte*)plabel, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, ref byte label) - { - fixed (byte* plabel = &label) - { - SetupAxisNative(axis, (byte*)plabel, (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, ReadOnlySpan<byte> label, ImPlotAxisFlags flags) - { - fixed (byte* plabel = label) - { - SetupAxisNative(axis, (byte*)plabel, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - SetupAxisNative(axis, (byte*)plabel, (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, string label, ImPlotAxisFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxisNative(axis, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxis(ImAxis axis, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxisNative(axis, pStr0, (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisLimitsNative(ImAxis axis, double vMin, double vMax, ImPlotCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, ImPlotCond, void>)funcTable[34])(axis, vMin, vMax, cond); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, ImPlotCond, void>)funcTable[34])(axis, vMin, vMax, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisLimits(ImAxis axis, double vMin, double vMax, ImPlotCond cond) - { - SetupAxisLimitsNative(axis, vMin, vMax, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisLimits(ImAxis axis, double vMin, double vMax) - { - SetupAxisLimitsNative(axis, vMin, vMax, (ImPlotCond)(ImPlotCond.Once)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisLinksNative(ImAxis axis, double* linkMin, double* linkMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double*, double*, void>)funcTable[35])(axis, linkMin, linkMax); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, nint, nint, void>)funcTable[35])(axis, (nint)linkMin, (nint)linkMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisLinks(ImAxis axis, double* linkMin, double* linkMax) - { - SetupAxisLinksNative(axis, linkMin, linkMax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisLinks(ImAxis axis, ref double linkMin, double* linkMax) - { - fixed (double* plinkMin = &linkMin) - { - SetupAxisLinksNative(axis, (double*)plinkMin, linkMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisLinks(ImAxis axis, double* linkMin, ref double linkMax) - { - fixed (double* plinkMax = &linkMax) - { - SetupAxisLinksNative(axis, linkMin, (double*)plinkMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisLinks(ImAxis axis, ref double linkMin, ref double linkMax) - { - fixed (double* plinkMin = &linkMin) - { - fixed (double* plinkMax = &linkMax) - { - SetupAxisLinksNative(axis, (double*)plinkMin, (double*)plinkMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisFormatNative(ImAxis axis, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, byte*, void>)funcTable[36])(axis, fmt); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, nint, void>)funcTable[36])(axis, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisFormat(ImAxis axis, byte* fmt) - { - SetupAxisFormatNative(axis, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisFormat(ImAxis axis, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - SetupAxisFormatNative(axis, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisFormat(ImAxis axis, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - SetupAxisFormatNative(axis, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisFormat(ImAxis axis, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxisFormatNative(axis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisFormatNative(ImAxis axis, ImPlotFormatter formatter, void* data) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, delegate*<double, byte*, int, void*, int>, void*, void>)funcTable[37])(axis, (delegate*<double, byte*, int, void*, int>)Utils.GetFunctionPointerForDelegate(formatter), data); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, nint, nint, void>)funcTable[37])(axis, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)data); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisFormat(ImAxis axis, ImPlotFormatter formatter, void* data) - { - SetupAxisFormatNative(axis, formatter, data); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisFormat(ImAxis axis, ImPlotFormatter formatter) - { - SetupAxisFormatNative(axis, formatter, (void*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisTicksNative(ImAxis axis, double* values, int nTicks, byte** labels, byte keepDefault) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double*, int, byte**, byte, void>)funcTable[38])(axis, values, nTicks, labels, keepDefault); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, nint, int, nint, byte, void>)funcTable[38])(axis, (nint)values, nTicks, (nint)labels, keepDefault); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, byte** labels, bool keepDefault) - { - SetupAxisTicksNative(axis, values, nTicks, labels, keepDefault ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, byte** labels) - { - SetupAxisTicksNative(axis, values, nTicks, labels, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks) - { - SetupAxisTicksNative(axis, values, nTicks, (byte**)(((void*)0)), (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, bool keepDefault) - { - SetupAxisTicksNative(axis, values, nTicks, (byte**)(((void*)0)), keepDefault ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, byte** labels, bool keepDefault) - { - fixed (double* pvalues = &values) - { - SetupAxisTicksNative(axis, (double*)pvalues, nTicks, labels, keepDefault ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, byte** labels) - { - fixed (double* pvalues = &values) - { - SetupAxisTicksNative(axis, (double*)pvalues, nTicks, labels, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks) - { - fixed (double* pvalues = &values) - { - SetupAxisTicksNative(axis, (double*)pvalues, nTicks, (byte**)(((void*)0)), (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, bool keepDefault) - { - fixed (double* pvalues = &values) - { - SetupAxisTicksNative(axis, (double*)pvalues, nTicks, (byte**)(((void*)0)), keepDefault ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, string[] labels, bool keepDefault) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labels); - if (labels != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labels.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); - } - SetupAxisTicksNative(axis, values, nTicks, pStrArray0, keepDefault ? (byte)1 : (byte)0); - for (int i = 0; i < labels.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double* values, int nTicks, string[] labels) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labels); - if (labels != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labels.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); - } - SetupAxisTicksNative(axis, values, nTicks, pStrArray0, (byte)(0)); - for (int i = 0; i < labels.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, string[] labels, bool keepDefault) - { - fixed (double* pvalues = &values) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labels); - if (labels != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labels.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); - } - SetupAxisTicksNative(axis, (double*)pvalues, nTicks, pStrArray0, keepDefault ? (byte)1 : (byte)0); - for (int i = 0; i < labels.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, ref double values, int nTicks, string[] labels) - { - fixed (double* pvalues = &values) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labels); - if (labels != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labels.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); - } - SetupAxisTicksNative(axis, (double*)pvalues, nTicks, pStrArray0, (byte)(0)); - for (int i = 0; i < labels.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisTicksNative(ImAxis axis, double vMin, double vMax, int nTicks, byte** labels, byte keepDefault) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, int, byte**, byte, void>)funcTable[39])(axis, vMin, vMax, nTicks, labels, keepDefault); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, int, nint, byte, void>)funcTable[39])(axis, vMin, vMax, nTicks, (nint)labels, keepDefault); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, byte** labels, bool keepDefault) - { - SetupAxisTicksNative(axis, vMin, vMax, nTicks, labels, keepDefault ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, byte** labels) - { - SetupAxisTicksNative(axis, vMin, vMax, nTicks, labels, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks) - { - SetupAxisTicksNative(axis, vMin, vMax, nTicks, (byte**)(((void*)0)), (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, bool keepDefault) - { - SetupAxisTicksNative(axis, vMin, vMax, nTicks, (byte**)(((void*)0)), keepDefault ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, string[] labels, bool keepDefault) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labels); - if (labels != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labels.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); - } - SetupAxisTicksNative(axis, vMin, vMax, nTicks, pStrArray0, keepDefault ? (byte)1 : (byte)0); - for (int i = 0; i < labels.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisTicks(ImAxis axis, double vMin, double vMax, int nTicks, string[] labels) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labels); - if (labels != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labels.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labels[i]); - } - SetupAxisTicksNative(axis, vMin, vMax, nTicks, pStrArray0, (byte)(0)); - for (int i = 0; i < labels.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisScaleNative(ImAxis axis, ImPlotScale scale) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, ImPlotScale, void>)funcTable[40])(axis, scale); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, ImPlotScale, void>)funcTable[40])(axis, scale); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisScale(ImAxis axis, ImPlotScale scale) - { - SetupAxisScaleNative(axis, scale); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisScaleNative(ImAxis axis, ImPlotTransform forward, ImPlotTransform inverse, void* data) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, delegate*<double, void*, double>, delegate*<double, void*, double>, void*, void>)funcTable[41])(axis, (delegate*<double, void*, double>)Utils.GetFunctionPointerForDelegate(forward), (delegate*<double, void*, double>)Utils.GetFunctionPointerForDelegate(inverse), data); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, nint, nint, nint, void>)funcTable[41])(axis, (nint)Utils.GetFunctionPointerForDelegate(forward), (nint)Utils.GetFunctionPointerForDelegate(inverse), (nint)data); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisScale(ImAxis axis, ImPlotTransform forward, ImPlotTransform inverse, void* data) - { - SetupAxisScaleNative(axis, forward, inverse, data); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisScale(ImAxis axis, ImPlotTransform forward, ImPlotTransform inverse) - { - SetupAxisScaleNative(axis, forward, inverse, (void*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisLimitsConstraintsNative(ImAxis axis, double vMin, double vMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, void>)funcTable[42])(axis, vMin, vMax); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, void>)funcTable[42])(axis, vMin, vMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisLimitsConstraints(ImAxis axis, double vMin, double vMax) - { - SetupAxisLimitsConstraintsNative(axis, vMin, vMax); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxisZoomConstraintsNative(ImAxis axis, double zMin, double zMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, void>)funcTable[43])(axis, zMin, zMax); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, void>)funcTable[43])(axis, zMin, zMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxisZoomConstraints(ImAxis axis, double zMin, double zMax) - { - SetupAxisZoomConstraintsNative(axis, zMin, zMax); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxesNative(byte* xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, ImPlotAxisFlags, ImPlotAxisFlags, void>)funcTable[44])(xLabel, yLabel, xFlags, yFlags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, ImPlotAxisFlags, ImPlotAxisFlags, void>)funcTable[44])((nint)xLabel, (nint)yLabel, xFlags, yFlags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - SetupAxesNative(xLabel, yLabel, xFlags, yFlags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, byte* yLabel, ImPlotAxisFlags xFlags) - { - SetupAxesNative(xLabel, yLabel, xFlags, (ImPlotAxisFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, byte* yLabel) - { - SetupAxesNative(xLabel, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = &xLabel) - { - SetupAxesNative((byte*)pxLabel, yLabel, xFlags, yFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, byte* yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = &xLabel) - { - SetupAxesNative((byte*)pxLabel, yLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, byte* yLabel) - { - fixed (byte* pxLabel = &xLabel) - { - SetupAxesNative((byte*)pxLabel, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = xLabel) - { - SetupAxesNative((byte*)pxLabel, yLabel, xFlags, yFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, byte* yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = xLabel) - { - SetupAxesNative((byte*)pxLabel, yLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, byte* yLabel) - { - fixed (byte* pxLabel = xLabel) - { - SetupAxesNative((byte*)pxLabel, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, byte* yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative(pStr0, yLabel, xFlags, yFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, byte* yLabel, ImPlotAxisFlags xFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative(pStr0, yLabel, xFlags, (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, byte* yLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative(pStr0, yLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, yFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, ref byte yLabel) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative(xLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, yFlags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative(xLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, ReadOnlySpan<byte> yLabel) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative(xLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative(xLabel, pStr0, xFlags, yFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, string yLabel, ImPlotAxisFlags xFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative(xLabel, pStr0, xFlags, (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(byte* xLabel, string yLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative(xLabel, pStr0, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = &xLabel) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = &xLabel) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, ref byte yLabel) - { - fixed (byte* pxLabel = &xLabel) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = xLabel) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = xLabel) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, ReadOnlySpan<byte> yLabel) - { - fixed (byte* pxLabel = xLabel) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (yLabel != null) - { - pStrSize1 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(yLabel, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - SetupAxesNative(pStr0, pStr1, xFlags, yFlags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, string yLabel, ImPlotAxisFlags xFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (yLabel != null) - { - pStrSize1 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(yLabel, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - SetupAxesNative(pStr0, pStr1, xFlags, (ImPlotAxisFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, string yLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (yLabel != null) - { - pStrSize1 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(yLabel, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - SetupAxesNative(pStr0, pStr1, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = &xLabel) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = &xLabel) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, ReadOnlySpan<byte> yLabel) - { - fixed (byte* pxLabel = &xLabel) - { - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = &xLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative((byte*)pxLabel, pStr0, xFlags, yFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, string yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = &xLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative((byte*)pxLabel, pStr0, xFlags, (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ref byte xLabel, string yLabel) - { - fixed (byte* pxLabel = &xLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative((byte*)pxLabel, pStr0, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = xLabel) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, yFlags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = xLabel) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, ref byte yLabel) - { - fixed (byte* pxLabel = xLabel) - { - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative((byte*)pxLabel, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, string yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - fixed (byte* pxLabel = xLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative((byte*)pxLabel, pStr0, xFlags, yFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, string yLabel, ImPlotAxisFlags xFlags) - { - fixed (byte* pxLabel = xLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative((byte*)pxLabel, pStr0, xFlags, (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(ReadOnlySpan<byte> xLabel, string yLabel) - { - fixed (byte* pxLabel = xLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (yLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(yLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(yLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetupAxesNative((byte*)pxLabel, pStr0, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, ref byte yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, yFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, ref byte yLabel, ImPlotAxisFlags xFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, ref byte yLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pyLabel = &yLabel) - { - SetupAxesNative(pStr0, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags, ImPlotAxisFlags yFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, yFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, ReadOnlySpan<byte> yLabel, ImPlotAxisFlags xFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative(pStr0, (byte*)pyLabel, xFlags, (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxes(string xLabel, ReadOnlySpan<byte> yLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (xLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(xLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(xLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pyLabel = yLabel) - { - SetupAxesNative(pStr0, (byte*)pyLabel, (ImPlotAxisFlags)(0), (ImPlotAxisFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupAxesLimitsNative(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, double, double, double, ImPlotCond, void>)funcTable[45])(xMin, xMax, yMin, yMax, cond); - #else - ((delegate* unmanaged[Cdecl]<double, double, double, double, ImPlotCond, void>)funcTable[45])(xMin, xMax, yMin, yMax, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxesLimits(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) - { - SetupAxesLimitsNative(xMin, xMax, yMin, yMax, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupAxesLimits(double xMin, double xMax, double yMin, double yMax) - { - SetupAxesLimitsNative(xMin, xMax, yMin, yMax, (ImPlotCond)(ImPlotCond.Once)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupLegendNative(ImPlotLocation location, ImPlotLegendFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotLocation, ImPlotLegendFlags, void>)funcTable[46])(location, flags); - #else - ((delegate* unmanaged[Cdecl]<ImPlotLocation, ImPlotLegendFlags, void>)funcTable[46])(location, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupLegend(ImPlotLocation location, ImPlotLegendFlags flags) - { - SetupLegendNative(location, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupLegend(ImPlotLocation location) - { - SetupLegendNative(location, (ImPlotLegendFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupMouseTextNative(ImPlotLocation location, ImPlotMouseTextFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotLocation, ImPlotMouseTextFlags, void>)funcTable[47])(location, flags); - #else - ((delegate* unmanaged[Cdecl]<ImPlotLocation, ImPlotMouseTextFlags, void>)funcTable[47])(location, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupMouseText(ImPlotLocation location, ImPlotMouseTextFlags flags) - { - SetupMouseTextNative(location, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupMouseText(ImPlotLocation location) - { - SetupMouseTextNative(location, (ImPlotMouseTextFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupFinishNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[48])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[48])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupFinish() - { - SetupFinishNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextAxisLimitsNative(ImAxis axis, double vMin, double vMax, ImPlotCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, ImPlotCond, void>)funcTable[49])(axis, vMin, vMax, cond); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, double, double, ImPlotCond, void>)funcTable[49])(axis, vMin, vMax, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxisLimits(ImAxis axis, double vMin, double vMax, ImPlotCond cond) - { - SetNextAxisLimitsNative(axis, vMin, vMax, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxisLimits(ImAxis axis, double vMin, double vMax) - { - SetNextAxisLimitsNative(axis, vMin, vMax, (ImPlotCond)(ImPlotCond.Once)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextAxisLinksNative(ImAxis axis, double* linkMin, double* linkMax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, double*, double*, void>)funcTable[50])(axis, linkMin, linkMax); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, nint, nint, void>)funcTable[50])(axis, (nint)linkMin, (nint)linkMax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxisLinks(ImAxis axis, double* linkMin, double* linkMax) - { - SetNextAxisLinksNative(axis, linkMin, linkMax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxisLinks(ImAxis axis, ref double linkMin, double* linkMax) - { - fixed (double* plinkMin = &linkMin) - { - SetNextAxisLinksNative(axis, (double*)plinkMin, linkMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxisLinks(ImAxis axis, double* linkMin, ref double linkMax) - { - fixed (double* plinkMax = &linkMax) - { - SetNextAxisLinksNative(axis, linkMin, (double*)plinkMax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxisLinks(ImAxis axis, ref double linkMin, ref double linkMax) - { - fixed (double* plinkMin = &linkMin) - { - fixed (double* plinkMax = &linkMax) - { - SetNextAxisLinksNative(axis, (double*)plinkMin, (double*)plinkMax); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextAxisToFitNative(ImAxis axis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, void>)funcTable[51])(axis); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, void>)funcTable[51])(axis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxisToFit(ImAxis axis) - { - SetNextAxisToFitNative(axis); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextAxesLimitsNative(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, double, double, double, ImPlotCond, void>)funcTable[52])(xMin, xMax, yMin, yMax, cond); - #else - ((delegate* unmanaged[Cdecl]<double, double, double, double, ImPlotCond, void>)funcTable[52])(xMin, xMax, yMin, yMax, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxesLimits(double xMin, double xMax, double yMin, double yMax, ImPlotCond cond) - { - SetNextAxesLimitsNative(xMin, xMax, yMin, yMax, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxesLimits(double xMin, double xMax, double yMin, double yMax) - { - SetNextAxesLimitsNative(xMin, xMax, yMin, yMax, (ImPlotCond)(ImPlotCond.Once)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextAxesToFitNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[53])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[53])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextAxesToFit() - { - SetNextAxesToFitNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[54])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[54])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs deleted file mode 100644 index 43be86995..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.001.cs +++ /dev/null @@ -1,5022 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, ImPlotLineFlags flags) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, int offset) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, ImPlotLineFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotLineNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLineNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[55])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[55])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, ImPlotLineFlags flags) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, int offset) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, ImPlotLineFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotLineNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotLineNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotLineNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[56])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[56])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs deleted file mode 100644 index e10e1296d..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.002.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[57])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[57])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[58])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[58])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[59])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[59])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[60])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[60])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[61])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[61])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs deleted file mode 100644 index 6eb0f58e9..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.003.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[62])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[62])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[63])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotLineFlags, int, int, void>)funcTable[63])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, xstart, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* values, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, ImPlotLineFlags, int, int, void>)funcTable[64])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[64])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, float* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, float* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotLineNative(labelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotLineNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotLineNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, float* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotLineNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotLineNative(pStr0, (float*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, xs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, ref float ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, xs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotLineNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, ImPlotLineFlags, int, int, void>)funcTable[65])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[65])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, double* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, double* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotLineNative(labelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs deleted file mode 100644 index 1a02c80c1..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.004.cs +++ /dev/null @@ -1,5044 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotLineNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotLineNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotLineNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, double* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotLineNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotLineNative(pStr0, (double*)pxs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, ref double ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, xs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotLineNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, ImPlotLineFlags, int, int, void>)funcTable[66])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[66])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, ImPlotLineFlags, int, int, void>)funcTable[67])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[67])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, ImPlotLineFlags, int, int, void>)funcTable[68])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[68])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* xs, short* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* xs, short* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, ImPlotLineFlags, int, int, void>)funcTable[69])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[69])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, ImPlotLineFlags, int, int, void>)funcTable[70])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[70])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* xs, int* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* xs, int* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, ImPlotLineFlags, int, int, void>)funcTable[71])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[71])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, ImPlotLineFlags, int, int, void>)funcTable[72])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[72])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* xs, long* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* xs, long* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, ImPlotLineFlags, int, int, void>)funcTable[73])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, int, int, void>)funcTable[73])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - PlotLineNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - PlotLineNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotLineNative(labelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotLineNative((byte*)plabelId, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotLine(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineNative(pStr0, xs, ys, count, (ImPlotLineFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[74])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[74])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs deleted file mode 100644 index 766e3129f..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.005.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotScatterNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotScatterNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[75])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[75])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotScatterNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotScatterNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotScatterNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[76])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[76])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[77])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[77])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs deleted file mode 100644 index 93f58eaa5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.006.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[78])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[78])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[79])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[79])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[80])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[80])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[81])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[81])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs deleted file mode 100644 index d13ff40de..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.007.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[82])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[82])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[83])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotScatterFlags, int, int, void>)funcTable[83])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, xstart, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, double xscale, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* values, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, ImPlotScatterFlags, int, int, void>)funcTable[84])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[84])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, float* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotScatterNative(labelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotScatterNative(pStr0, (float*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, xs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotScatterNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, ImPlotScatterFlags, int, int, void>)funcTable[85])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[85])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, double* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) - { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotScatterNative(labelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotScatterNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotScatterNative(pStr0, (double*)pxs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs deleted file mode 100644 index 5ca337f13..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.008.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, xs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotScatterNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, ImPlotScatterFlags, int, int, void>)funcTable[86])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[86])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, ImPlotScatterFlags, int, int, void>)funcTable[87])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[87])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, ImPlotScatterFlags, int, int, void>)funcTable[88])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[88])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* xs, short* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, ImPlotScatterFlags, int, int, void>)funcTable[89])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[89])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, ImPlotScatterFlags, int, int, void>)funcTable[90])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[90])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* xs, int* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, ImPlotScatterFlags, int, int, void>)funcTable[91])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[91])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, ImPlotScatterFlags, int, int, void>)funcTable[92])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[92])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* xs, long* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, ImPlotScatterFlags, int, int, void>)funcTable[93])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotScatterFlags, int, int, void>)funcTable[93])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) - { - PlotScatterNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) - { - PlotScatterNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotScatterNative(labelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotScatterNative((byte*)plabelId, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, ImPlotScatterFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatter(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterNative(pStr0, xs, ys, count, (ImPlotScatterFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[94])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[94])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs deleted file mode 100644 index feb156111..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.009.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStairsNative(labelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStairsNative(pStr0, (float*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[95])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[95])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStairsNative(labelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStairsNative((byte*)plabelId, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStairsNative(pStr0, (double*)pvalues, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[96])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[96])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[97])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[97])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs deleted file mode 100644 index 513659690..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.010.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[98])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[98])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[99])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[99])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[100])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[100])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[101])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[101])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[102])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[102])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs deleted file mode 100644 index c625fdfa6..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.011.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[103])(labelId, values, count, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotStairsFlags, int, int, void>)funcTable[103])((nint)labelId, (nint)values, count, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, values, count, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, xstart, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, double xscale, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* values, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, values, count, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, ImPlotStairsFlags, int, int, void>)funcTable[104])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[104])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, float* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStairsNative(labelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStairsNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStairsNative(pStr0, (float*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, xs, (float*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, xs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, xs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStairsNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, ImPlotStairsFlags, int, int, void>)funcTable[105])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[105])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, double* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStairsNative(labelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStairsNative(pStr0, (double*)pxs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, xs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs deleted file mode 100644 index ffb03c49e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.012.cs +++ /dev/null @@ -1,5027 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStairsNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, ImPlotStairsFlags, int, int, void>)funcTable[106])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[106])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, ImPlotStairsFlags, int, int, void>)funcTable[107])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[107])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, ImPlotStairsFlags, int, int, void>)funcTable[108])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[108])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* xs, short* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, ImPlotStairsFlags, int, int, void>)funcTable[109])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[109])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, ImPlotStairsFlags, int, int, void>)funcTable[110])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[110])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* xs, int* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, ImPlotStairsFlags, int, int, void>)funcTable[111])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[111])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, ImPlotStairsFlags, int, int, void>)funcTable[112])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[112])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* xs, long* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, ImPlotStairsFlags, int, int, void>)funcTable[113])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, int, int, void>)funcTable[113])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - PlotStairsNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - PlotStairsNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotStairsNative(labelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStairsNative((byte*)plabelId, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairs(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsNative(pStr0, xs, ys, count, (ImPlotStairsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStairsGNative(byte* labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<int, void*, ImPlotPoint>, void*, int, ImPlotStairsFlags, void>)funcTable[114])(labelId, (delegate*<int, void*, ImPlotPoint>)Utils.GetFunctionPointerForDelegate(getter), data, count, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotStairsFlags, void>)funcTable[114])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(byte* labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - PlotStairsGNative(labelId, getter, data, count, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(byte* labelId, ImPlotGetter getter, void* data, int count) - { - PlotStairsGNative(labelId, getter, data, count, (ImPlotStairsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(ref byte labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(ref byte labelId, ImPlotGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, (ImPlotStairsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(ReadOnlySpan<byte> labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(ReadOnlySpan<byte> labelId, ImPlotGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStairsGNative((byte*)plabelId, getter, data, count, (ImPlotStairsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(string labelId, ImPlotGetter getter, void* data, int count, ImPlotStairsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsGNative(pStr0, getter, data, count, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStairsG(string labelId, ImPlotGetter getter, void* data, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStairsGNative(pStr0, getter, data, count, (ImPlotStairsFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[115])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[115])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs deleted file mode 100644 index 9dba7c8e5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.013.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotShadedNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotShadedNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[116])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[116])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotShadedNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotShadedNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotShadedNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[117])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[117])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs deleted file mode 100644 index a075894b6..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.014.cs +++ /dev/null @@ -1,5035 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[118])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[118])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[119])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[119])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[120])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[120])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs deleted file mode 100644 index e4a95237a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.015.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[121])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[121])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[122])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[122])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[123])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[123])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[124])(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotShadedFlags, int, int, void>)funcTable[124])((nint)labelId, (nint)values, count, yref, xscale, xstart, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs deleted file mode 100644 index 3710e13f2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.016.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, double xstart) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, xscale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, double xstart, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, xstart, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, double xscale, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, xscale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, yref, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* values, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[125])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[125])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, int offset) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[126])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[126])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs deleted file mode 100644 index 602ccfd0e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.017.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, int offset) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[127])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[127])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[128])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[128])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[129])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[129])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs deleted file mode 100644 index a60c3b1a4..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.018.cs +++ /dev/null @@ -1,5046 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[130])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[130])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[131])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[131])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[132])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[132])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[133])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[133])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, double, ImPlotShadedFlags, int, int, void>)funcTable[134])(labelId, xs, ys, count, yref, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotShadedFlags, int, int, void>)funcTable[134])((nint)labelId, (nint)xs, (nint)ys, count, yref, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, int offset) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double yref) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double yref, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, double yref, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, yref, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, float*, int, ImPlotShadedFlags, int, int, void>)funcTable[135])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[135])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, float* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, float* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotShadedNative(labelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, float* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, float* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, int offset) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, float* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs deleted file mode 100644 index d219f078e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.019.cs +++ /dev/null @@ -1,5045 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, float* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, float* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, ref float ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, ref float ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, float* ys1, ref float ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, ys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, float* xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(labelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref float xs, ref float ys1, ref float ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys1 = &ys1) - { - fixed (float* pys2 = &ys2) - { - PlotShadedNative(pStr0, (float*)pxs, (float*)pys1, (float*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, double*, int, ImPlotShadedFlags, int, int, void>)funcTable[136])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[136])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, double* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, double* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotShadedNative(labelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, double* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, double* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, double* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, xs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, double* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, double* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, ref double ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs deleted file mode 100644 index 90c2c33e0..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.020.cs +++ /dev/null @@ -1,5038 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, double* ys1, ref double ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, ys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, ref double ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, double* xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, xs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(labelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, ref double ys2, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative((byte*)plabelId, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ref double xs, ref double ys1, ref double ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys1 = &ys1) - { - fixed (double* pys2 = &ys2) - { - PlotShadedNative(pStr0, (double*)pxs, (double*)pys1, (double*)pys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, sbyte*, int, ImPlotShadedFlags, int, int, void>)funcTable[137])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[137])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, sbyte* xs, sbyte* ys1, sbyte* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, byte*, int, ImPlotShadedFlags, int, int, void>)funcTable[138])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[138])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys1, byte* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, byte* xs, byte* ys1, byte* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, short*, int, ImPlotShadedFlags, int, int, void>)funcTable[139])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[139])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys1, short* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys1, short* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, short* xs, short* ys1, short* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, ushort*, int, ImPlotShadedFlags, int, int, void>)funcTable[140])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[140])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ushort* xs, ushort* ys1, ushort* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int*, int, ImPlotShadedFlags, int, int, void>)funcTable[141])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[141])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys1, int* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys1, int* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, int* xs, int* ys1, int* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, uint*, int, ImPlotShadedFlags, int, int, void>)funcTable[142])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[142])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys1, uint* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, uint* xs, uint* ys1, uint* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, long*, int, ImPlotShadedFlags, int, int, void>)funcTable[143])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[143])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys1, long* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys1, long* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, long* xs, long* ys1, long* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedNative(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, ulong*, int, ImPlotShadedFlags, int, int, void>)funcTable[144])(labelId, xs, ys1, ys2, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotShadedFlags, int, int, void>)funcTable[144])((nint)labelId, (nint)xs, (nint)ys1, (nint)ys2, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(byte* labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) - { - PlotShadedNative(labelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ref byte labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotShadedNative((byte*)plabelId, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, ImPlotShadedFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShaded(string labelId, ulong* xs, ulong* ys1, ulong* ys2, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedNative(pStr0, xs, ys1, ys2, count, (ImPlotShadedFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[145])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[145])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs deleted file mode 100644 index f1912925c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.021.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, double shift, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotBarsNative(labelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotBarsNative(pStr0, (float*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[146])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[146])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, int offset) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, int offset) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, double shift, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotBarsNative(labelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotBarsNative((byte*)plabelId, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotBarsNative(pStr0, (double*)pvalues, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[147])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[147])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[148])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[148])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs deleted file mode 100644 index 2078ecf30..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.022.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[149])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[149])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[150])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[150])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[151])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[151])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[152])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[152])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs deleted file mode 100644 index 16984fb2c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.023.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[153])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[153])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[154])(labelId, values, count, barSize, shift, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, ImPlotBarsFlags, int, int, void>)funcTable[154])((nint)labelId, (nint)values, count, barSize, shift, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, int offset) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, barSize, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, double shift) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, double shift, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, barSize, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, values, count, (double)(0.67), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, double shift, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, shift, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, barSize, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* values, int count, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, values, count, (double)(0.67), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[155])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[155])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, float* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, int offset) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotBarsNative(labelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, float* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotBarsNative(pStr0, (float*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, int offset) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, float* xs, ref float ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, xs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(labelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref float xs, ref float ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotBarsNative(pStr0, (float*)pxs, (float*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[156])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[156])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, double* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, int offset) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotBarsNative(labelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, double* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotBarsNative(pStr0, (double*)pxs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs deleted file mode 100644 index 920c32de1..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.024.cs +++ /dev/null @@ -1,5037 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, double* xs, ref double ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, xs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(labelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ref double xs, ref double ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotBarsNative(pStr0, (double*)pxs, (double*)pys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[157])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[157])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, sbyte* xs, sbyte* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[158])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[158])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, byte* xs, byte* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[159])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[159])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, short* xs, short* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[160])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[160])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ushort* xs, ushort* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[161])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[161])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, int* xs, int* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[162])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[162])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, uint* xs, uint* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[163])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[163])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, long* xs, long* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsNative(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, double, ImPlotBarsFlags, int, int, void>)funcTable[164])(labelId, xs, ys, count, barSize, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotBarsFlags, int, int, void>)funcTable[164])((nint)labelId, (nint)xs, (nint)ys, count, barSize, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - PlotBarsNative(labelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(byte* labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) - { - PlotBarsNative(labelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ref byte labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double barSize) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotBarsNative((byte*)plabelId, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, ImPlotBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBars(string labelId, ulong* xs, ulong* ys, int count, double barSize, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsNative(pStr0, xs, ys, count, barSize, (ImPlotBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, float*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[165])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[165])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, float* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, float* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref float values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref float values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (float*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, double*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[166])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[166])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, double* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, double* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, shift, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ref double values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(labelIds, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ref double values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotBarGroupsNative(pStrArray0, (double*)pvalues, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, sbyte*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[167])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[167])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, sbyte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs deleted file mode 100644 index d88d01fd0..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.025.cs +++ /dev/null @@ -1,5047 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, sbyte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, byte*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[168])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[168])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, byte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, byte* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, short*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[169])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[169])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, short* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, short* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, ushort*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[170])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[170])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ushort* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ushort* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, int*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[171])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[171])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, int* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, int* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, uint*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[172])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[172])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, uint* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, uint* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, long*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[173])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[173])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, long* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, long* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarGroupsNative(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, ulong*, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[174])(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, ImPlotBarGroupsFlags, void>)funcTable[174])((nint)labelIds, (nint)values, itemCount, groupCount, groupSize, shift, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, groupSize, (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(byte** labelIds, ulong* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - PlotBarGroupsNative(labelIds, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, double shift) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, shift, (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), (ImPlotBarGroupsFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, double groupSize, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, groupSize, (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarGroups(string[] labelIds, ulong* values, int itemCount, int groupCount, ImPlotBarGroupsFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotBarGroupsNative(pStrArray0, values, itemCount, groupCount, (double)(0.67), (double)(0), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, float*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[175])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[175])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, int offset) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs deleted file mode 100644 index 4bcc5c49b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.026.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* perr = &err) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, double*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[176])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[176])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, int offset) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double err, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* perr = &err) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)perr, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, sbyte*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[177])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[177])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, byte*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[178])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[178])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs deleted file mode 100644 index c96bb69cd..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.027.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, short*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[179])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[179])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, ushort*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[180])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[180])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[181])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[181])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, uint*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[182])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[182])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, long*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[183])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[183])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, ulong*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[184])(labelId, xs, ys, err, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[184])((nint)labelId, (nint)xs, (nint)ys, (nint)err, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* err, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* err, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, err, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, float*, float*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[185])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[185])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs deleted file mode 100644 index f07595c3b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.028.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, float* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, float* neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, float* neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, neg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, float* ys, ref float neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, ys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, float* xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(labelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs deleted file mode 100644 index d646397fc..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.029.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref float xs, ref float ys, ref float neg, ref float pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - fixed (float* pneg = &neg) - { - fixed (float* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (float*)pxs, (float*)pys, (float*)pneg, (float*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, double*, double*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[186])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[186])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, double* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, double* neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs deleted file mode 100644 index 60c618d88..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.030.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, double* neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, neg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, double* ys, ref double neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, ys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, double* xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, xs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(labelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative((byte*)plabelId, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ref double xs, ref double ys, ref double neg, ref double pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - fixed (double* pneg = &neg) - { - fixed (double* ppos = &pos) - { - PlotErrorBarsNative(pStr0, (double*)pxs, (double*)pys, (double*)pneg, (double*)ppos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, sbyte*, sbyte*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[187])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[187])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, sbyte* xs, sbyte* ys, sbyte* neg, sbyte* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, byte*, byte*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[188])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[188])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, byte* xs, byte* ys, byte* neg, byte* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, short*, short*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[189])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[189])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* neg, short* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, short* xs, short* ys, short* neg, short* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, ushort*, ushort*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[190])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[190])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ushort* xs, ushort* ys, ushort* neg, ushort* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int*, int*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[191])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[191])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* neg, int* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs deleted file mode 100644 index 3218a2cc0..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.031.cs +++ /dev/null @@ -1,5032 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, int* xs, int* ys, int* neg, int* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, uint*, uint*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[192])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[192])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, uint* xs, uint* ys, uint* neg, uint* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, long*, long*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[193])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[193])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* neg, long* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, long* xs, long* ys, long* neg, long* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotErrorBarsNative(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, ulong*, ulong*, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[194])(labelId, xs, ys, neg, pos, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, ImPlotErrorBarsFlags, int, int, void>)funcTable[194])((nint)labelId, (nint)xs, (nint)ys, (nint)neg, (nint)pos, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(byte* labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - PlotErrorBarsNative(labelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ref byte labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotErrorBarsNative((byte*)plabelId, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, ImPlotErrorBarsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotErrorBars(string labelId, ulong* xs, ulong* ys, ulong* neg, ulong* pos, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotErrorBarsNative(pStr0, xs, ys, neg, pos, count, (ImPlotErrorBarsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[195])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[195])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotStemsNative(labelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotStemsNative(pStr0, (float*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[196])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[196])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs deleted file mode 100644 index a1f541b64..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.032.cs +++ /dev/null @@ -1,5034 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotStemsNative(labelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotStemsNative((byte*)plabelId, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotStemsNative(pStr0, (double*)pvalues, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[197])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[197])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[198])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[198])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs deleted file mode 100644 index a20535ba4..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.033.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[199])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[199])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[200])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[200])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[201])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[201])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[202])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[202])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs deleted file mode 100644 index 26478d957..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.034.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[203])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[203])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[204])(labelId, values, count, reference, scale, start, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, ImPlotStemsFlags, int, int, void>)funcTable[204])((nint)labelId, (nint)values, count, reference, scale, start, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, double start) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, scale, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, double start, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, start, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, double scale, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, scale, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, reference, (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* values, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, values, count, (double)(0), (double)(1), (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[205])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[205])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotStemsNative(labelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs deleted file mode 100644 index dcd840414..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.035.cs +++ /dev/null @@ -1,5025 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, float* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotStemsNative(pStr0, (float*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, float* xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, xs, (float*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(labelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref float xs, ref float ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotStemsNative(pStr0, (float*)pxs, (float*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[206])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[206])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotStemsNative(labelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, double* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotStemsNative(pStr0, (double*)pxs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, xs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, double* xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, xs, (double*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(labelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs deleted file mode 100644 index 1baf25fb0..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.036.cs +++ /dev/null @@ -1,5040 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ref double xs, ref double ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotStemsNative(pStr0, (double*)pxs, (double*)pys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[207])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[207])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[208])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[208])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, byte* xs, byte* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[209])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[209])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, short* xs, short* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[210])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[210])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ushort* xs, ushort* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[211])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[211])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, int* xs, int* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[212])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[212])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, uint* xs, uint* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs deleted file mode 100644 index 3f7f934b2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.037.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[213])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[213])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, long* xs, long* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotStemsNative(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, double, ImPlotStemsFlags, int, int, void>)funcTable[214])(labelId, xs, ys, count, reference, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, ImPlotStemsFlags, int, int, void>)funcTable[214])((nint)labelId, (nint)xs, (nint)ys, count, reference, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - PlotStemsNative(labelId, xs, ys, count, (double)(0), flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double reference) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotStemsNative((byte*)plabelId, xs, ys, count, (double)(0), flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, double reference, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, reference, (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), (ImPlotStemsFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotStems(string labelId, ulong* xs, ulong* ys, int count, ImPlotStemsFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotStemsNative(pStr0, xs, ys, count, (double)(0), flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[215])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[215])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, float* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, float* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, float* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, float* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, float* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, float* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, float* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, float* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref float values, int count, int offset) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref float values, int count, int offset, int stride) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative(labelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref float values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref float values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref float values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref float values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref float values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotInfLinesNative(pStr0, (float*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[216])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[216])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, double* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, double* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, double* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, double* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, double* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, double* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, double* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, double* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref double values, int count, int offset) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ref double values, int count, int offset, int stride) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative(labelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref double values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ref double values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotInfLinesNative((byte*)plabelId, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref double values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref double values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ref double values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotInfLinesNative(pStr0, (double*)pvalues, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[217])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[217])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, sbyte* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, sbyte* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, sbyte* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, sbyte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, sbyte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, sbyte* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, sbyte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, sbyte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[218])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[218])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, byte* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, byte* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, byte* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, byte* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, byte* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, byte* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, byte* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, byte* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[219])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[219])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, short* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, short* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, short* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, short* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, short* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, short* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, short* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, short* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[220])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[220])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ushort* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ushort* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ushort* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ushort* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ushort* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ushort* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ushort* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[221])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[221])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, int* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, int* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, int* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, int* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, int* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, int* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, int* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, int* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[222])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[222])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, uint* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, uint* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, uint* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs deleted file mode 100644 index 476739bd3..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.038.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, uint* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, uint* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, uint* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, uint* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[223])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[223])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, long* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, long* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, long* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, long* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, long* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, long* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, long* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotInfLinesNative(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, ImPlotInfLinesFlags, int, int, void>)funcTable[224])(labelId, values, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, ImPlotInfLinesFlags, int, int, void>)funcTable[224])((nint)labelId, (nint)values, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - PlotInfLinesNative(labelId, values, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - PlotInfLinesNative(labelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ulong* values, int count) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(byte* labelId, ulong* values, int count, int offset, int stride) - { - PlotInfLinesNative(labelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ref byte labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(ReadOnlySpan<byte> labelId, ulong* values, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotInfLinesNative((byte*)plabelId, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ulong* values, int count, ImPlotInfLinesFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ulong* values, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotInfLines(string labelId, ulong* values, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotInfLinesNative(pStr0, values, count, (ImPlotInfLinesFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, float*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[225])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[225])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - PlotPieChart(labelIds, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - PlotPieChart(pStrArray0, (float*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, float* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref float values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (float*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, double*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[226])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[226])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - PlotPieChart(labelIds, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - PlotPieChart(pStrArray0, (double*)pvalues, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, double* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ref double values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, (double*)pvalues, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, sbyte*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[227])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[227])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, sbyte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, byte*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[228])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[228])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs deleted file mode 100644 index 863edf631..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.039.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, byte* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, short*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[229])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[229])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, short* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, short* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, ushort*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[230])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[230])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ushort* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, int*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[231])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[231])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, int* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, int* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, uint*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[232])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[232])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, uint* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, long*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[233])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[233])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, long* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, long* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotPieChartNative(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte**, ulong*, int, double, double, double, byte*, double, ImPlotPieChartFlags, void>)funcTable[234])(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, double, double, double, nint, double, ImPlotPieChartFlags, void>)funcTable[234])((nint)labelIds, (nint)values, count, x, y, radius, (nint)labelFmt, angle0, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, double angle0) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, labelFmt, (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - PlotPieChart(labelIds, values, count, x, y, radius, (string)"%.1f", angle0, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, byte* labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, labelFmt, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - PlotPieChart(pStrArray0, values, count, x, y, radius, (string)"%.1f", angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, double angle0) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs deleted file mode 100644 index c1e7c9548..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.040.cs +++ /dev/null @@ -1,5042 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ref byte labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, double angle0) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, angle0, (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), (ImPlotPieChartFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, ReadOnlySpan<byte> labelFmt, ImPlotPieChartFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotPieChartNative(labelIds, values, count, x, y, radius, (byte*)plabelFmt, (double)(90), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(byte** labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(labelIds, values, count, x, y, radius, pStr0, (double)(90), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, double angle0) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, angle0, (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), (ImPlotPieChartFlags)(0)); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotPieChart(string[] labelIds, ulong* values, int count, double x, double y, double radius, string labelFmt, ImPlotPieChartFlags flags) - { - byte** pStrArray0 = null; - int pStrArray0Size = Utils.GetByteCountArray(labelIds); - if (labelIds != null) - { - if (pStrArray0Size > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc<byte>(pStrArray0Size); - } - else - { - byte* pStrArray0Stack = stackalloc byte[pStrArray0Size]; - pStrArray0 = (byte**)pStrArray0Stack; - } - } - for (int i = 0; i < labelIds.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(labelIds[i]); - } - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotPieChartNative(pStrArray0, values, count, x, y, radius, pStr0, (double)(90), flags); - for (int i = 0; i < labelIds.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArray0Size >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[235])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[235])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmap(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmap(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs deleted file mode 100644 index ee2962286..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.041.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, float* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs deleted file mode 100644 index 8c17ac67b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.042.cs +++ /dev/null @@ -1,5047 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, float* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref float values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (float*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs deleted file mode 100644 index 7a7e406ed..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.043.cs +++ /dev/null @@ -1,5052 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref float values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (float*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[236])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[236])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmap(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmap((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs deleted file mode 100644 index a9bae8d48..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.044.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmap(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, double* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs deleted file mode 100644 index 434049058..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.045.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, double* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs deleted file mode 100644 index 10c81bfd9..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.046.cs +++ /dev/null @@ -1,5030 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ref double values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, (double*)pvalues, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ref double values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, (double*)pvalues, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[237])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[237])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs deleted file mode 100644 index 74a2b2e73..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.047.cs +++ /dev/null @@ -1,5024 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, sbyte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, sbyte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[238])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[238])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs deleted file mode 100644 index e0627f308..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.048.cs +++ /dev/null @@ -1,5027 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, byte* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs deleted file mode 100644 index 040d74de2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.049.cs +++ /dev/null @@ -1,5055 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, byte* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[239])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[239])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs deleted file mode 100644 index 4a42303ca..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.050.cs +++ /dev/null @@ -1,5040 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, short* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, short* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[240])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[240])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs deleted file mode 100644 index 00f9ff4ad..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.051.cs +++ /dev/null @@ -1,5049 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ushort* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs deleted file mode 100644 index 0d9962ced..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.052.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ushort* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[241])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[241])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs deleted file mode 100644 index 427b133db..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.053.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, int* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, int* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[242])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[242])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs deleted file mode 100644 index 3f3b85227..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.054.cs +++ /dev/null @@ -1,5033 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, uint* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, uint* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[243])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[243])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs deleted file mode 100644 index f5aff30cd..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.055.cs +++ /dev/null @@ -1,5040 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs deleted file mode 100644 index dc2139595..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.056.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, long* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, long* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotHeatmapNative(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, int, double, double, byte*, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[244])(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, double, nint, ImPlotPoint, ImPlotPoint, ImPlotHeatmapFlags, void>)funcTable[244])((nint)labelId, (nint)values, rows, cols, scaleMin, scaleMax, (nint)labelFmt, boundsMin, boundsMax, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmap(labelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmap((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, scaleMax, (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, scaleMin, (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmap(pStr0, values, rows, cols, (double)(0), (double)(0), (string)"%.1f", boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, byte* labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), labelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs deleted file mode 100644 index 58af123f9..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.057.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(byte* labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative(labelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelFmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelFmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), pStr1, boundsMin, boundsMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ref byte labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, string labelFmt) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, scaleMax, pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, double scaleMin, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, scaleMin, (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(ReadOnlySpan<byte> labelId, ulong* values, int rows, int cols, string labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelFmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelFmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelFmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHeatmapNative((byte*)plabelId, values, rows, cols, (double)(0), (double)(0), pStr0, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ref byte labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = &labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, (ImPlotHeatmapFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, double scaleMax, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, scaleMax, (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, (ImPlotPoint)(*ImPlotPointNative(0,0)), (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, (ImPlotPoint)(*ImPlotPointNative(1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, double scaleMin, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, scaleMin, (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotHeatmap(string labelId, ulong* values, int rows, int cols, ReadOnlySpan<byte> labelFmt, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotHeatmapFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* plabelFmt = labelFmt) - { - PlotHeatmapNative(pStr0, values, rows, cols, (double)(0), (double)(0), (byte*)plabelFmt, boundsMin, boundsMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[245])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[245])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs deleted file mode 100644 index c0e3fa542..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.058.cs +++ /dev/null @@ -1,5029 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, float* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotRange range) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref float values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (float*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, double*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[246])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[246])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, double* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotRange range) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(labelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, bins, (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative((byte*)plabelId, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ref double values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pvalues = &values) - { - double ret = PlotHistogramNative(pStr0, (double*)pvalues, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, sbyte*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[247])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[247])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, sbyte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[248])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[248])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs deleted file mode 100644 index 68c25b06b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.059.cs +++ /dev/null @@ -1,5048 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, byte* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, short*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[249])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[249])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, short* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ushort*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[250])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[250])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ushort* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[251])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[251])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, int* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[252])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[252])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs deleted file mode 100644 index e3e180a0a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.060.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, uint* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, long*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[253])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[253])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, long* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogramNative(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ulong*, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[254])(labelId, values, count, bins, barScale, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, int, int, double, ImPlotRange, ImPlotHistogramFlags, double>)funcTable[254])((nint)labelId, (nint)values, count, bins, barScale, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(byte* labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogramNative(labelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ref byte labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, double barScale) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, bins, (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(ReadOnlySpan<byte> labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogramNative((byte*)plabelId, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotRange range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, (ImPlotRange)(*ImPlotRangeNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, int bins, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, bins, (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), (double)(1.0), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram(string labelId, ulong* values, int count, double barScale, ImPlotRange range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogramNative(pStr0, values, count, (int)((int)ImPlotBin.Sturges), barScale, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[255])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[255])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, float* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, float* xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs deleted file mode 100644 index cc33cdc3e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.061.cs +++ /dev/null @@ -1,5028 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref float xs, ref float ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (float*)pxs, (float*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[256])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[256])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, double* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, double* xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, xs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(labelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ref double xs, ref double ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - double ret = PlotHistogram2DNative(pStr0, (double*)pxs, (double*)pys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[257])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[257])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs deleted file mode 100644 index de631b144..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.062.cs +++ /dev/null @@ -1,5033 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[258])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[258])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, byte* xs, byte* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[259])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[259])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, short* xs, short* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[260])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[260])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ushort* xs, ushort* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[261])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[261])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, int* xs, int* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[262])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[262])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, uint* xs, uint* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[263])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[263])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, long* xs, long* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PlotHistogram2DNative(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[264])(labelId, xs, ys, count, xBins, yBins, range, flags); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, int, int, ImPlotRect, ImPlotHistogramFlags, double>)funcTable[264])((nint)labelId, (nint)xs, (nint)ys, count, xBins, yBins, range, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - double ret = PlotHistogram2DNative(labelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = &labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs deleted file mode 100644 index fe3fbae24..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.063.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - fixed (byte* plabelId = labelId) - { - double ret = PlotHistogram2DNative((byte*)plabelId, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotRect range) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, (ImPlotHistogramFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, int yBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, yBins, (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), (ImPlotRect)(*ImPlotRectNative()), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, int xBins, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, xBins, (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PlotHistogram2D(string labelId, ulong* xs, ulong* ys, int count, ImPlotRect range, ImPlotHistogramFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - double ret = PlotHistogram2DNative(pStr0, xs, ys, count, (int)((int)ImPlotBin.Sturges), (int)((int)ImPlotBin.Sturges), range, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, float*, float*, int, ImPlotDigitalFlags, int, int, void>)funcTable[265])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[265])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, float* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, float* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative(labelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, float* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, float* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, float* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - PlotDigitalNative(pStr0, (float*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, int offset) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, float* xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, float* xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(labelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, flags, (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref float xs, ref float ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pxs = &xs) - { - fixed (float* pys = &ys) - { - PlotDigitalNative(pStr0, (float*)pxs, (float*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double*, double*, int, ImPlotDigitalFlags, int, int, void>)funcTable[266])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[266])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, double* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, double* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative(labelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, double* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, double* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, double* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - PlotDigitalNative(pStr0, (double*)pxs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, int offset) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, double* xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, double* xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, xs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(labelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative((byte*)plabelId, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, flags, (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(double))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ref double xs, ref double ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pxs = &xs) - { - fixed (double* pys = &ys) - { - PlotDigitalNative(pStr0, (double*)pxs, (double*)pys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, sbyte*, sbyte*, int, ImPlotDigitalFlags, int, int, void>)funcTable[267])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[267])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(sbyte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, sbyte* xs, sbyte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte*, byte*, int, ImPlotDigitalFlags, int, int, void>)funcTable[268])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[268])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(byte))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, byte* xs, byte* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, short*, short*, int, ImPlotDigitalFlags, int, int, void>)funcTable[269])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[269])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, short* xs, short* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, short* xs, short* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, short* xs, short* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, short* xs, short* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, short* xs, short* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(short))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, short* xs, short* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ushort*, ushort*, int, ImPlotDigitalFlags, int, int, void>)funcTable[270])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[270])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs deleted file mode 100644 index f1cbb2b9b..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.064.cs +++ /dev/null @@ -1,5033 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ushort))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ushort* xs, ushort* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int*, int*, int, ImPlotDigitalFlags, int, int, void>)funcTable[271])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[271])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, int* xs, int* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, int* xs, int* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, int* xs, int* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, int* xs, int* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, int* xs, int* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(int))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, int* xs, int* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, uint*, uint*, int, ImPlotDigitalFlags, int, int, void>)funcTable[272])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[272])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(uint))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, uint* xs, uint* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, long*, long*, int, ImPlotDigitalFlags, int, int, void>)funcTable[273])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[273])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, long* xs, long* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, long* xs, long* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, long* xs, long* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, long* xs, long* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, long* xs, long* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(long))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, long* xs, long* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalNative(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ulong*, ulong*, int, ImPlotDigitalFlags, int, int, void>)funcTable[274])(labelId, xs, ys, count, flags, offset, stride); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotDigitalFlags, int, int, void>)funcTable[274])((nint)labelId, (nint)xs, (nint)ys, count, flags, offset, stride); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - PlotDigitalNative(labelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, int offset) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(byte* labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - PlotDigitalNative(labelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ref byte labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(ReadOnlySpan<byte> labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalNative((byte*)plabelId, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, ImPlotDigitalFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, flags, (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), (int)(0), (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, int offset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, (int)(sizeof(ulong))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDigital(string labelId, ulong* xs, ulong* ys, int count, int offset, int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalNative(pStr0, xs, ys, count, (ImPlotDigitalFlags)(0), offset, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotImageNative(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ImTextureID, ImPlotPoint, ImPlotPoint, Vector2, Vector2, Vector4, ImPlotImageFlags, void>)funcTable[275])(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImTextureID, ImPlotPoint, ImPlotPoint, Vector2, Vector2, Vector4, ImPlotImageFlags, void>)funcTable[275])((nint)labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(byte* labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - PlotImageNative(labelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ref byte labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(ReadOnlySpan<byte> labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotImageNative((byte*)plabelId, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, Vector4 tintCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, tintCol, (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (ImPlotImageFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector2 uv1, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector2 uv0, Vector4 tintCol, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, uv0, (Vector2)(new Vector2(1,1)), tintCol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotImage(string labelId, ImTextureID userTextureId, ImPlotPoint boundsMin, ImPlotPoint boundsMax, Vector4 tintCol, ImPlotImageFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotImageNative(pStr0, userTextureId, boundsMin, boundsMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotTextNative(byte* text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double, double, Vector2, ImPlotTextFlags, void>)funcTable[276])(text, x, y, pixOffset, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, double, double, Vector2, ImPlotTextFlags, void>)funcTable[276])((nint)text, x, y, pixOffset, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(byte* text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - PlotTextNative(text, x, y, pixOffset, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(byte* text, double x, double y, Vector2 pixOffset) - { - PlotTextNative(text, x, y, pixOffset, (ImPlotTextFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(byte* text, double x, double y) - { - PlotTextNative(text, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(byte* text, double x, double y, ImPlotTextFlags flags) - { - PlotTextNative(text, x, y, (Vector2)(new Vector2(0,0)), flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ref byte text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ref byte text, double x, double y, Vector2 pixOffset) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, (ImPlotTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ref byte text, double x, double y) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ref byte text, double x, double y, ImPlotTextFlags flags) - { - fixed (byte* ptext = &text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ReadOnlySpan<byte> text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ReadOnlySpan<byte> text, double x, double y, Vector2 pixOffset) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, pixOffset, (ImPlotTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ReadOnlySpan<byte> text, double x, double y) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(ReadOnlySpan<byte> text, double x, double y, ImPlotTextFlags flags) - { - fixed (byte* ptext = text) - { - PlotTextNative((byte*)ptext, x, y, (Vector2)(new Vector2(0,0)), flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(string text, double x, double y, Vector2 pixOffset, ImPlotTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, pixOffset, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(string text, double x, double y, Vector2 pixOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, pixOffset, (ImPlotTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(string text, double x, double y) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, (Vector2)(new Vector2(0,0)), (ImPlotTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotText(string text, double x, double y, ImPlotTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotTextNative(pStr0, x, y, (Vector2)(new Vector2(0,0)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDummyNative(byte* labelId, ImPlotDummyFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, ImPlotDummyFlags, void>)funcTable[277])(labelId, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotDummyFlags, void>)funcTable[277])((nint)labelId, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(byte* labelId, ImPlotDummyFlags flags) - { - PlotDummyNative(labelId, flags); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(byte* labelId) - { - PlotDummyNative(labelId, (ImPlotDummyFlags)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(ref byte labelId, ImPlotDummyFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotDummyNative((byte*)plabelId, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - PlotDummyNative((byte*)plabelId, (ImPlotDummyFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(ReadOnlySpan<byte> labelId, ImPlotDummyFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotDummyNative((byte*)plabelId, flags); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - PlotDummyNative((byte*)plabelId, (ImPlotDummyFlags)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(string labelId, ImPlotDummyFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDummyNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotDummy(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDummyNative(pStr0, (ImPlotDummyFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragPointNative(int id, double* x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, double*, double*, Vector4, float, ImPlotDragToolFlags, byte>)funcTable[278])(id, x, y, col, size, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, nint, nint, Vector4, float, ImPlotDragToolFlags, byte>)funcTable[278])(id, (nint)x, (nint)y, col, size, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - byte ret = DragPointNative(id, x, y, col, size, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, double* y, Vector4 col, float size) - { - byte ret = DragPointNative(id, x, y, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, double* y, Vector4 col) - { - byte ret = DragPointNative(id, x, y, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, double* y, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragPointNative(id, x, y, col, (float)(4), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, double* y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, size, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, double* y, Vector4 col, float size) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, double* y, Vector4 col) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, double* y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragPointNative(id, (double*)px, y, col, (float)(4), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, ref double y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, size, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, ref double y, Vector4 col, float size) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, ref double y, Vector4 col) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, double* x, ref double y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, x, (double*)py, col, (float)(4), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, float size, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, size, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, float size) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, size, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, (float)(4), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragPoint(int id, ref double x, ref double y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - fixed (double* py = &y) - { - byte ret = DragPointNative(id, (double*)px, (double*)py, col, (float)(4), flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragLineXNative(int id, double* x, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, double*, Vector4, float, ImPlotDragToolFlags, byte>)funcTable[279])(id, x, col, thickness, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, nint, Vector4, float, ImPlotDragToolFlags, byte>)funcTable[279])(id, (nint)x, col, thickness, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, double* x, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - byte ret = DragLineXNative(id, x, col, thickness, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, double* x, Vector4 col, float thickness) - { - byte ret = DragLineXNative(id, x, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, double* x, Vector4 col) - { - byte ret = DragLineXNative(id, x, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, double* x, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragLineXNative(id, x, col, (float)(1), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, ref double x, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, thickness, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, ref double x, Vector4 col, float thickness) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, ref double x, Vector4 col) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineX(int id, ref double x, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px = &x) - { - byte ret = DragLineXNative(id, (double*)px, col, (float)(1), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragLineYNative(int id, double* y, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, double*, Vector4, float, ImPlotDragToolFlags, byte>)funcTable[280])(id, y, col, thickness, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, nint, Vector4, float, ImPlotDragToolFlags, byte>)funcTable[280])(id, (nint)y, col, thickness, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, double* y, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - byte ret = DragLineYNative(id, y, col, thickness, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, double* y, Vector4 col, float thickness) - { - byte ret = DragLineYNative(id, y, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, double* y, Vector4 col) - { - byte ret = DragLineYNative(id, y, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, double* y, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragLineYNative(id, y, col, (float)(1), flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, ref double y, Vector4 col, float thickness, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, thickness, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, ref double y, Vector4 col, float thickness) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, thickness, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, ref double y, Vector4 col) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, (float)(1), (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragLineY(int id, ref double y, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py = &y) - { - byte ret = DragLineYNative(id, (double*)py, col, (float)(1), flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte DragRectNative(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, double*, double*, double*, double*, Vector4, ImPlotDragToolFlags, byte>)funcTable[281])(id, x1, y1, x2, y2, col, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, nint, nint, nint, nint, Vector4, ImPlotDragToolFlags, byte>)funcTable[281])(id, (nint)x1, (nint)y1, (nint)x2, (nint)y2, col, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - byte ret = DragRectNative(id, x1, y1, x2, y2, col, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, double* x2, double* y2, Vector4 col) - { - byte ret = DragRectNative(id, x1, y1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, y2, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, double* x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, y2, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, double* x2, double* y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, y2, col, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, double* y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, y2, col, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, double* y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, y2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, double* x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, x2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, double* y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, y1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, double* y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, y1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, double* x1, ref double y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, x1, (double*)py1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, ref double y2, Vector4 col, ImPlotDragToolFlags flags) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, (double*)py2, col, flags); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool DragRect(int id, ref double x1, ref double y1, ref double x2, ref double y2, Vector4 col) - { - fixed (double* px1 = &x1) - { - fixed (double* py1 = &y1) - { - fixed (double* px2 = &x2) - { - fixed (double* py2 = &y2) - { - byte ret = DragRectNative(id, (double*)px1, (double*)py1, (double*)px2, (double*)py2, col, (ImPlotDragToolFlags)(0)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AnnotationNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, double, Vector4, Vector2, byte, byte, void>)funcTable[282])(x, y, col, pixOffset, clamp, round); - #else - ((delegate* unmanaged[Cdecl]<double, double, Vector4, Vector2, byte, byte, void>)funcTable[282])(x, y, col, pixOffset, clamp, round); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, bool round) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, round ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AnnotationNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, double, Vector4, Vector2, byte, byte*, void>)funcTable[283])(x, y, col, pixOffset, clamp, fmt); - #else - ((delegate* unmanaged[Cdecl]<double, double, Vector4, Vector2, byte, nint, void>)funcTable[283])(x, y, col, pixOffset, clamp, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, byte* fmt) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Annotation(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AnnotationNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AnnotationVNative(double x, double y, Vector4 col, Vector2 pixOffset, byte clamp, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, double, Vector4, Vector2, byte, byte*, nuint, void>)funcTable[284])(x, y, col, pixOffset, clamp, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<double, double, Vector4, Vector2, byte, nint, nuint, void>)funcTable[284])(x, y, col, pixOffset, clamp, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, byte* fmt, nuint args) - { - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AnnotationV(double x, double y, Vector4 col, Vector2 pixOffset, bool clamp, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AnnotationVNative(x, y, col, pixOffset, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagXNative(double x, Vector4 col, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, Vector4, byte, void>)funcTable[285])(x, col, round); - #else - ((delegate* unmanaged[Cdecl]<double, Vector4, byte, void>)funcTable[285])(x, col, round); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagX(double x, Vector4 col, bool round) - { - TagXNative(x, col, round ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagX(double x, Vector4 col) - { - TagXNative(x, col, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagXNative(double x, Vector4 col, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, Vector4, byte*, void>)funcTable[286])(x, col, fmt); - #else - ((delegate* unmanaged[Cdecl]<double, Vector4, nint, void>)funcTable[286])(x, col, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagX(double x, Vector4 col, byte* fmt) - { - TagXNative(x, col, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagX(double x, Vector4 col, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TagXNative(x, col, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagX(double x, Vector4 col, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - TagXNative(x, col, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagX(double x, Vector4 col, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagXNative(x, col, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagXVNative(double x, Vector4 col, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, Vector4, byte*, nuint, void>)funcTable[287])(x, col, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<double, Vector4, nint, nuint, void>)funcTable[287])(x, col, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagXV(double x, Vector4 col, byte* fmt, nuint args) - { - TagXVNative(x, col, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagXV(double x, Vector4 col, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TagXVNative(x, col, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagXV(double x, Vector4 col, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TagXVNative(x, col, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagXV(double x, Vector4 col, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagXVNative(x, col, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagYNative(double y, Vector4 col, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, Vector4, byte, void>)funcTable[288])(y, col, round); - #else - ((delegate* unmanaged[Cdecl]<double, Vector4, byte, void>)funcTable[288])(y, col, round); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagY(double y, Vector4 col, bool round) - { - TagYNative(y, col, round ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagY(double y, Vector4 col) - { - TagYNative(y, col, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagYNative(double y, Vector4 col, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, Vector4, byte*, void>)funcTable[289])(y, col, fmt); - #else - ((delegate* unmanaged[Cdecl]<double, Vector4, nint, void>)funcTable[289])(y, col, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagY(double y, Vector4 col, byte* fmt) - { - TagYNative(y, col, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagY(double y, Vector4 col, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - TagYNative(y, col, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagY(double y, Vector4 col, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - TagYNative(y, col, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagY(double y, Vector4 col, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagYNative(y, col, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void TagYVNative(double y, Vector4 col, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, Vector4, byte*, nuint, void>)funcTable[290])(y, col, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<double, Vector4, nint, nuint, void>)funcTable[290])(y, col, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagYV(double y, Vector4 col, byte* fmt, nuint args) - { - TagYVNative(y, col, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagYV(double y, Vector4 col, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - TagYVNative(y, col, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagYV(double y, Vector4 col, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - TagYVNative(y, col, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void TagYV(double y, Vector4 col, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TagYVNative(y, col, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAxisNative(ImAxis axis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, void>)funcTable[291])(axis); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, void>)funcTable[291])(axis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxis(ImAxis axis) - { - SetAxisNative(axis); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAxesNative(ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImAxis, ImAxis, void>)funcTable[292])(xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl]<ImAxis, ImAxis, void>)funcTable[292])(xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxes(ImAxis xAxis, ImAxis yAxis) - { - SetAxesNative(xAxis, yAxis); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PixelsToPlotNative(ImPlotPoint* pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, Vector2, ImAxis, ImAxis, void>)funcTable[293])(pOut, pix, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, ImAxis, ImAxis, void>)funcTable[293])((nint)pOut, pix, xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint PixelsToPlot(Vector2 pix) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, pix, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint PixelsToPlot(Vector2 pix, ImAxis xAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, pix, xAxis, (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix) - { - PixelsToPlotNative(pOut, pix, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint PixelsToPlot(Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, pix, xAxis, yAxis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - PixelsToPlotNative(pOut, pix, xAxis, yAxis); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ImPlotPointPtr pOut, Vector2 pix, ImAxis xAxis) - { - PixelsToPlotNative(pOut, pix, xAxis, (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix, ImAxis xAxis, ImAxis yAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, pix, xAxis, yAxis); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix, ImAxis xAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, pix, xAxis, (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ref ImPlotPoint pOut, Vector2 pix) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, pix, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PixelsToPlotNative(ImPlotPoint* pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, float, float, ImAxis, ImAxis, void>)funcTable[294])(pOut, x, y, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl]<nint, float, float, ImAxis, ImAxis, void>)funcTable[294])((nint)pOut, x, y, xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint PixelsToPlot(float x, float y) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, x, y, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint PixelsToPlot(float x, float y, ImAxis xAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, x, y, xAxis, (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y) - { - PixelsToPlotNative(pOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint PixelsToPlot(float x, float y, ImAxis xAxis, ImAxis yAxis) - { - ImPlotPoint ret; - PixelsToPlotNative(&ret, x, y, xAxis, yAxis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) - { - PixelsToPlotNative(pOut, x, y, xAxis, yAxis); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ImPlotPointPtr pOut, float x, float y, ImAxis xAxis) - { - PixelsToPlotNative(pOut, x, y, xAxis, (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y, ImAxis xAxis, ImAxis yAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, xAxis, yAxis); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y, ImAxis xAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, xAxis, (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PixelsToPlot(ref ImPlotPoint pOut, float x, float y) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - PixelsToPlotNative((ImPlotPoint*)ppOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotToPixelsNative(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImPlotPoint, ImAxis, ImAxis, void>)funcTable[295])(pOut, plt, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotPoint, ImAxis, ImAxis, void>)funcTable[295])((nint)pOut, plt, xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 PlotToPixels(ImPlotPoint plt) - { - Vector2 ret; - PlotToPixelsNative(&ret, plt, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 PlotToPixels(ImPlotPoint plt, ImAxis xAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, plt, xAxis, (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt) - { - PlotToPixelsNative(pOut, plt, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 PlotToPixels(ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, plt, xAxis, yAxis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - PlotToPixelsNative(pOut, plt, xAxis, yAxis); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(Vector2* pOut, ImPlotPoint plt, ImAxis xAxis) - { - PlotToPixelsNative(pOut, plt, xAxis, (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt, ImAxis xAxis, ImAxis yAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, plt, xAxis, yAxis); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt, ImAxis xAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, plt, xAxis, (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(ref Vector2 pOut, ImPlotPoint plt) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, plt, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotToPixelsNative(Vector2* pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, double, double, ImAxis, ImAxis, void>)funcTable[296])(pOut, x, y, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl]<nint, double, double, ImAxis, ImAxis, void>)funcTable[296])((nint)pOut, x, y, xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 PlotToPixels(double x, double y) - { - Vector2 ret; - PlotToPixelsNative(&ret, x, y, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 PlotToPixels(double x, double y, ImAxis xAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, x, y, xAxis, (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(Vector2* pOut, double x, double y) - { - PlotToPixelsNative(pOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 PlotToPixels(double x, double y, ImAxis xAxis, ImAxis yAxis) - { - Vector2 ret; - PlotToPixelsNative(&ret, x, y, xAxis, yAxis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(Vector2* pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) - { - PlotToPixelsNative(pOut, x, y, xAxis, yAxis); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(Vector2* pOut, double x, double y, ImAxis xAxis) - { - PlotToPixelsNative(pOut, x, y, xAxis, (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(ref Vector2 pOut, double x, double y, ImAxis xAxis, ImAxis yAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, x, y, xAxis, yAxis); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(ref Vector2 pOut, double x, double y, ImAxis xAxis) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, x, y, xAxis, (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotToPixels(ref Vector2 pOut, double x, double y) - { - fixed (Vector2* ppOut = &pOut) - { - PlotToPixelsNative((Vector2*)ppOut, x, y, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetPlotPosNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[297])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[297])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetPlotPos() - { - Vector2 ret; - GetPlotPosNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotPos(Vector2* pOut) - { - GetPlotPosNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotPos(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetPlotPosNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetPlotSizeNative(Vector2* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, void>)funcTable[298])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[298])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetPlotSize() - { - Vector2 ret; - GetPlotSizeNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotSize(Vector2* pOut) - { - GetPlotSizeNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotSize(ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetPlotSizeNative((Vector2*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetPlotMousePosNative(ImPlotPoint* pOut, ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint*, ImAxis, ImAxis, void>)funcTable[299])(pOut, xAxis, yAxis); - #else - ((delegate* unmanaged[Cdecl]<nint, ImAxis, ImAxis, void>)funcTable[299])((nint)pOut, xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint GetPlotMousePos() - { - ImPlotPoint ret; - GetPlotMousePosNative(&ret, (ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint GetPlotMousePos(ImAxis xAxis) - { - ImPlotPoint ret; - GetPlotMousePosNative(&ret, xAxis, (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotMousePos(ImPlotPointPtr pOut) - { - GetPlotMousePosNative(pOut, (ImAxis)(-1), (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPoint GetPlotMousePos(ImAxis xAxis, ImAxis yAxis) - { - ImPlotPoint ret; - GetPlotMousePosNative(&ret, xAxis, yAxis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotMousePos(ImPlotPointPtr pOut, ImAxis xAxis, ImAxis yAxis) - { - GetPlotMousePosNative(pOut, xAxis, yAxis); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotMousePos(ImPlotPointPtr pOut, ImAxis xAxis) - { - GetPlotMousePosNative(pOut, xAxis, (ImAxis)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotMousePos(ref ImPlotPoint pOut, ImAxis xAxis, ImAxis yAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - GetPlotMousePosNative((ImPlotPoint*)ppOut, xAxis, yAxis); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotMousePos(ref ImPlotPoint pOut, ImAxis xAxis) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - GetPlotMousePosNative((ImPlotPoint*)ppOut, xAxis, (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetPlotMousePos(ref ImPlotPoint pOut) - { - fixed (ImPlotPoint* ppOut = &pOut) - { - GetPlotMousePosNative((ImPlotPoint*)ppOut, (ImAxis)(-1), (ImAxis)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRect GetPlotLimitsNative(ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImAxis, ImAxis, ImPlotRect>)funcTable[300])(xAxis, yAxis); - #else - return (ImPlotRect)((delegate* unmanaged[Cdecl]<ImAxis, ImAxis, ImPlotRect>)funcTable[300])(xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRect GetPlotLimits(ImAxis xAxis, ImAxis yAxis) - { - ImPlotRect ret = GetPlotLimitsNative(xAxis, yAxis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRect GetPlotLimits(ImAxis xAxis) - { - ImPlotRect ret = GetPlotLimitsNative(xAxis, (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRect GetPlotLimits() - { - ImPlotRect ret = GetPlotLimitsNative((ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPlotHoveredNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[301])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[301])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPlotHovered() - { - byte ret = IsPlotHoveredNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAxisHoveredNative(ImAxis axis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImAxis, byte>)funcTable[302])(axis); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImAxis, byte>)funcTable[302])(axis); - #endif - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs deleted file mode 100644 index 5da30f965..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.065.cs +++ /dev/null @@ -1,5026 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsAxisHovered(ImAxis axis) - { - byte ret = IsAxisHoveredNative(axis); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsSubplotsHoveredNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[303])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[303])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsSubplotsHovered() - { - byte ret = IsSubplotsHoveredNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPlotSelectedNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[304])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[304])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPlotSelected() - { - byte ret = IsPlotSelectedNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotRect GetPlotSelectionNative(ImAxis xAxis, ImAxis yAxis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImAxis, ImAxis, ImPlotRect>)funcTable[305])(xAxis, yAxis); - #else - return (ImPlotRect)((delegate* unmanaged[Cdecl]<ImAxis, ImAxis, ImPlotRect>)funcTable[305])(xAxis, yAxis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRect GetPlotSelection(ImAxis xAxis, ImAxis yAxis) - { - ImPlotRect ret = GetPlotSelectionNative(xAxis, yAxis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRect GetPlotSelection(ImAxis xAxis) - { - ImPlotRect ret = GetPlotSelectionNative(xAxis, (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotRect GetPlotSelection() - { - ImPlotRect ret = GetPlotSelectionNative((ImAxis)(-1), (ImAxis)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CancelPlotSelectionNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[306])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[306])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CancelPlotSelection() - { - CancelPlotSelectionNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void HideNextItemNative(byte hidden, ImPlotCond cond) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte, ImPlotCond, void>)funcTable[307])(hidden, cond); - #else - ((delegate* unmanaged[Cdecl]<byte, ImPlotCond, void>)funcTable[307])(hidden, cond); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HideNextItem(bool hidden, ImPlotCond cond) - { - HideNextItemNative(hidden ? (byte)1 : (byte)0, cond); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HideNextItem(bool hidden) - { - HideNextItemNative(hidden ? (byte)1 : (byte)0, (ImPlotCond)(ImPlotCond.Once)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HideNextItem() - { - HideNextItemNative((byte)(1), (ImPlotCond)(ImPlotCond.Once)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void HideNextItem(ImPlotCond cond) - { - HideNextItemNative((byte)(1), cond); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginAlignedPlotsNative(byte* groupId, byte vertical) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte, byte>)funcTable[308])(groupId, vertical); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte, byte>)funcTable[308])((nint)groupId, vertical); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(byte* groupId, bool vertical) - { - byte ret = BeginAlignedPlotsNative(groupId, vertical ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(byte* groupId) - { - byte ret = BeginAlignedPlotsNative(groupId, (byte)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(ref byte groupId, bool vertical) - { - fixed (byte* pgroupId = &groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, vertical ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(ref byte groupId) - { - fixed (byte* pgroupId = &groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(ReadOnlySpan<byte> groupId, bool vertical) - { - fixed (byte* pgroupId = groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, vertical ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(ReadOnlySpan<byte> groupId) - { - fixed (byte* pgroupId = groupId) - { - byte ret = BeginAlignedPlotsNative((byte*)pgroupId, (byte)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(string groupId, bool vertical) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (groupId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(groupId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(groupId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginAlignedPlotsNative(pStr0, vertical ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginAlignedPlots(string groupId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (groupId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(groupId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(groupId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginAlignedPlotsNative(pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndAlignedPlotsNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[309])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[309])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndAlignedPlots() - { - EndAlignedPlotsNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginLegendPopupNative(byte* labelId, ImGuiMouseButton mouseButton) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiMouseButton, byte>)funcTable[310])(labelId, mouseButton); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiMouseButton, byte>)funcTable[310])((nint)labelId, mouseButton); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(byte* labelId, ImGuiMouseButton mouseButton) - { - byte ret = BeginLegendPopupNative(labelId, mouseButton); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(byte* labelId) - { - byte ret = BeginLegendPopupNative(labelId, (ImGuiMouseButton)(1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(ref byte labelId, ImGuiMouseButton mouseButton) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, mouseButton); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, (ImGuiMouseButton)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(ReadOnlySpan<byte> labelId, ImGuiMouseButton mouseButton) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, mouseButton); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginLegendPopupNative((byte*)plabelId, (ImGuiMouseButton)(1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(string labelId, ImGuiMouseButton mouseButton) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginLegendPopupNative(pStr0, mouseButton); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginLegendPopup(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginLegendPopupNative(pStr0, (ImGuiMouseButton)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndLegendPopupNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[311])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[311])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndLegendPopup() - { - EndLegendPopupNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLegendEntryHoveredNative(byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte>)funcTable[312])(labelId); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[312])((nint)labelId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLegendEntryHovered(byte* labelId) - { - byte ret = IsLegendEntryHoveredNative(labelId); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLegendEntryHovered(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = IsLegendEntryHoveredNative((byte*)plabelId); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLegendEntryHovered(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = IsLegendEntryHoveredNative((byte*)plabelId); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLegendEntryHovered(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsLegendEntryHoveredNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetPlotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[313])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[313])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropTargetPlot() - { - byte ret = BeginDragDropTargetPlotNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetAxisNative(ImAxis axis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImAxis, byte>)funcTable[314])(axis); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImAxis, byte>)funcTable[314])(axis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropTargetAxis(ImAxis axis) - { - byte ret = BeginDragDropTargetAxisNative(axis); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropTargetLegendNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[315])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[315])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropTargetLegend() - { - byte ret = BeginDragDropTargetLegendNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndDragDropTargetNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[316])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[316])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndDragDropTarget() - { - EndDragDropTargetNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropSourcePlotNative(ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImGuiDragDropFlags, byte>)funcTable[317])(flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImGuiDragDropFlags, byte>)funcTable[317])(flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourcePlot(ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourcePlotNative(flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourcePlot() - { - byte ret = BeginDragDropSourcePlotNative((ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropSourceAxisNative(ImAxis axis, ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImAxis, ImGuiDragDropFlags, byte>)funcTable[318])(axis, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImAxis, ImGuiDragDropFlags, byte>)funcTable[318])(axis, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceAxis(ImAxis axis, ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourceAxisNative(axis, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceAxis(ImAxis axis) - { - byte ret = BeginDragDropSourceAxisNative(axis, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginDragDropSourceItemNative(byte* labelId, ImGuiDragDropFlags flags) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImGuiDragDropFlags, byte>)funcTable[319])(labelId, flags); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImGuiDragDropFlags, byte>)funcTable[319])((nint)labelId, flags); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(byte* labelId, ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourceItemNative(labelId, flags); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(byte* labelId) - { - byte ret = BeginDragDropSourceItemNative(labelId, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(ref byte labelId, ImGuiDragDropFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(ReadOnlySpan<byte> labelId, ImGuiDragDropFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, flags); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginDragDropSourceItemNative((byte*)plabelId, (ImGuiDragDropFlags)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(string labelId, ImGuiDragDropFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginDragDropSourceItemNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginDragDropSourceItem(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginDragDropSourceItemNative(pStr0, (ImGuiDragDropFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndDragDropSourceNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[320])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[320])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndDragDropSource() - { - EndDragDropSourceNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotStyle* GetStyleNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotStyle*>)funcTable[321])(); - #else - return (ImPlotStyle*)((delegate* unmanaged[Cdecl]<nint>)funcTable[321])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotStylePtr GetStyle() - { - ImPlotStylePtr ret = GetStyleNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsAutoNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyle*, void>)funcTable[322])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[322])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsAuto(ImPlotStylePtr dst) - { - StyleColorsAutoNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsAuto() - { - StyleColorsAutoNative((ImPlotStyle*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsAuto(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsAutoNative((ImPlotStyle*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsClassicNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyle*, void>)funcTable[323])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[323])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsClassic(ImPlotStylePtr dst) - { - StyleColorsClassicNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsClassic() - { - StyleColorsClassicNative((ImPlotStyle*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsClassic(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsClassicNative((ImPlotStyle*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsDarkNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyle*, void>)funcTable[324])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[324])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsDark(ImPlotStylePtr dst) - { - StyleColorsDarkNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsDark() - { - StyleColorsDarkNative((ImPlotStyle*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsDark(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsDarkNative((ImPlotStyle*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void StyleColorsLightNative(ImPlotStyle* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyle*, void>)funcTable[325])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[325])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsLight(ImPlotStylePtr dst) - { - StyleColorsLightNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsLight() - { - StyleColorsLightNative((ImPlotStyle*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void StyleColorsLight(ref ImPlotStyle dst) - { - fixed (ImPlotStyle* pdst = &dst) - { - StyleColorsLightNative((ImPlotStyle*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleColorNative(ImPlotCol idx, uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotCol, uint, void>)funcTable[326])(idx, col); - #else - ((delegate* unmanaged[Cdecl]<ImPlotCol, uint, void>)funcTable[326])(idx, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleColor(ImPlotCol idx, uint col) - { - PushStyleColorNative(idx, col); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleColorNative(ImPlotCol idx, Vector4 col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotCol, Vector4, void>)funcTable[327])(idx, col); - #else - ((delegate* unmanaged[Cdecl]<ImPlotCol, Vector4, void>)funcTable[327])(idx, col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleColor(ImPlotCol idx, Vector4 col) - { - PushStyleColorNative(idx, col); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopStyleColorNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[328])(count); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[328])(count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleColor(int count) - { - PopStyleColorNative(count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleColor() - { - PopStyleColorNative((int)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImPlotStyleVar idx, float val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyleVar, float, void>)funcTable[329])(idx, val); - #else - ((delegate* unmanaged[Cdecl]<ImPlotStyleVar, float, void>)funcTable[329])(idx, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleVar(ImPlotStyleVar idx, float val) - { - PushStyleVarNative(idx, val); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImPlotStyleVar idx, int val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyleVar, int, void>)funcTable[330])(idx, val); - #else - ((delegate* unmanaged[Cdecl]<ImPlotStyleVar, int, void>)funcTable[330])(idx, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleVar(ImPlotStyleVar idx, int val) - { - PushStyleVarNative(idx, val); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushStyleVarNative(ImPlotStyleVar idx, Vector2 val) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyleVar, Vector2, void>)funcTable[331])(idx, val); - #else - ((delegate* unmanaged[Cdecl]<ImPlotStyleVar, Vector2, void>)funcTable[331])(idx, val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushStyleVar(ImPlotStyleVar idx, Vector2 val) - { - PushStyleVarNative(idx, val); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopStyleVarNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[332])(count); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[332])(count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleVar(int count) - { - PopStyleVarNative(count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopStyleVar() - { - PopStyleVarNative((int)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextLineStyleNative(Vector4 col, float weight) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4, float, void>)funcTable[333])(col, weight); - #else - ((delegate* unmanaged[Cdecl]<Vector4, float, void>)funcTable[333])(col, weight); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextLineStyle(Vector4 col, float weight) - { - SetNextLineStyleNative(col, weight); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextLineStyle(Vector4 col) - { - SetNextLineStyleNative(col, (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextLineStyle() - { - SetNextLineStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextLineStyle(float weight) - { - SetNextLineStyleNative((Vector4)(new Vector4(0,0,0,-1)), weight); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextFillStyleNative(Vector4 col, float alphaMod) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4, float, void>)funcTable[334])(col, alphaMod); - #else - ((delegate* unmanaged[Cdecl]<Vector4, float, void>)funcTable[334])(col, alphaMod); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextFillStyle(Vector4 col, float alphaMod) - { - SetNextFillStyleNative(col, alphaMod); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextFillStyle(Vector4 col) - { - SetNextFillStyleNative(col, (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextFillStyle() - { - SetNextFillStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextFillStyle(float alphaMod) - { - SetNextFillStyleNative((Vector4)(new Vector4(0,0,0,-1)), alphaMod); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextMarkerStyleNative(ImPlotMarker marker, float size, Vector4 fill, float weight, Vector4 outline) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotMarker, float, Vector4, float, Vector4, void>)funcTable[335])(marker, size, fill, weight, outline); - #else - ((delegate* unmanaged[Cdecl]<ImPlotMarker, float, Vector4, float, Vector4, void>)funcTable[335])(marker, size, fill, weight, outline); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative(marker, size, fill, weight, outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, float weight) - { - SetNextMarkerStyleNative(marker, size, fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill) - { - SetNextMarkerStyleNative(marker, size, fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, float size) - { - SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker) - { - SetNextMarkerStyleNative(marker, (float)(-1), (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle() - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(float size) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(Vector4 fill) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(float size, Vector4 fill) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, (float)(-1), (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, float weight) - { - SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(float size, float weight) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, float weight) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(Vector4 fill, float weight) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(float size, Vector4 fill, float weight) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, weight, (Vector4)(new Vector4(0,0,0,-1))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative(marker, size, fill, (float)(-1), outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, (float)(-1), outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, (float)(-1), outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(float size, Vector4 fill, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, (float)(-1), outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, float size, float weight, Vector4 outline) - { - SetNextMarkerStyleNative(marker, size, (Vector4)(new Vector4(0,0,0,-1)), weight, outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(float size, float weight, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, (Vector4)(new Vector4(0,0,0,-1)), weight, outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(ImPlotMarker marker, Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative(marker, (float)(-1), fill, weight, outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), (float)(-1), fill, weight, outline); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextMarkerStyle(float size, Vector4 fill, float weight, Vector4 outline) - { - SetNextMarkerStyleNative((ImPlotMarker)(-1), size, fill, weight, outline); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetNextErrorBarStyleNative(Vector4 col, float size, float weight) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4, float, float, void>)funcTable[336])(col, size, weight); - #else - ((delegate* unmanaged[Cdecl]<Vector4, float, float, void>)funcTable[336])(col, size, weight); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextErrorBarStyle(Vector4 col, float size, float weight) - { - SetNextErrorBarStyleNative(col, size, weight); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextErrorBarStyle(Vector4 col, float size) - { - SetNextErrorBarStyleNative(col, size, (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextErrorBarStyle(Vector4 col) - { - SetNextErrorBarStyleNative(col, (float)(-1), (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextErrorBarStyle() - { - SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), (float)(-1), (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextErrorBarStyle(float size) - { - SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), size, (float)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetNextErrorBarStyle(float size, float weight) - { - SetNextErrorBarStyleNative((Vector4)(new Vector4(0,0,0,-1)), size, weight); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetLastItemColorNative(Vector4* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, void>)funcTable[337])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[337])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 GetLastItemColor() - { - Vector4 ret; - GetLastItemColorNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetLastItemColor(Vector4* pOut) - { - GetLastItemColorNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetLastItemColor(ref Vector4 pOut) - { - fixed (Vector4* ppOut = &pOut) - { - GetLastItemColorNative((Vector4*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetStyleColorNameNative(ImPlotCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotCol, byte*>)funcTable[338])(idx); - #else - return (byte*)((delegate* unmanaged[Cdecl]<ImPlotCol, nint>)funcTable[338])(idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetStyleColorName(ImPlotCol idx) - { - byte* ret = GetStyleColorNameNative(idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetStyleColorNameS(ImPlotCol idx) - { - string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetMarkerNameNative(ImPlotMarker idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotMarker, byte*>)funcTable[339])(idx); - #else - return (byte*)((delegate* unmanaged[Cdecl]<ImPlotMarker, nint>)funcTable[339])(idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetMarkerName(ImPlotMarker idx) - { - byte* ret = GetMarkerNameNative(idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetMarkerNameS(ImPlotMarker idx) - { - string ret = Utils.DecodeStringUTF8(GetMarkerNameNative(idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap AddColormapNative(byte* name, Vector4* cols, int size, byte qual) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector4*, int, byte, ImPlotColormap>)funcTable[340])(name, cols, size, qual); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl]<nint, nint, int, byte, ImPlotColormap>)funcTable[340])((nint)name, (nint)cols, size, qual); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(byte* name, Vector4* cols, int size, bool qual) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(byte* name, Vector4* cols, int size) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, (byte)(1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ref byte name, Vector4* cols, int size, bool qual) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ref byte name, Vector4* cols, int size) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ReadOnlySpan<byte> name, Vector4* cols, int size, bool qual) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ReadOnlySpan<byte> name, Vector4* cols, int size) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(string name, Vector4* cols, int size, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(string name, Vector4* cols, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(byte* name, ref Vector4 cols, int size, bool qual) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(name, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(byte* name, ref Vector4 cols, int size) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(name, (Vector4*)pcols, size, (byte)(1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ref byte name, ref Vector4 cols, int size, bool qual) - { - fixed (byte* pname = &name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ref byte name, ref Vector4 cols, int size) - { - fixed (byte* pname = &name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, (byte)(1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ReadOnlySpan<byte> name, ref Vector4 cols, int size, bool qual) - { - fixed (byte* pname = name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ReadOnlySpan<byte> name, ref Vector4 cols, int size) - { - fixed (byte* pname = name) - { - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, (Vector4*)pcols, size, (byte)(1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(string name, ref Vector4 cols, int size, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(pStr0, (Vector4*)pcols, size, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(string name, ref Vector4 cols, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcols = &cols) - { - ImPlotColormap ret = AddColormapNative(pStr0, (Vector4*)pcols, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap AddColormapNative(byte* name, uint* cols, int size, byte qual) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, uint*, int, byte, ImPlotColormap>)funcTable[341])(name, cols, size, qual); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl]<nint, nint, int, byte, ImPlotColormap>)funcTable[341])((nint)name, (nint)cols, size, qual); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(byte* name, uint* cols, int size, bool qual) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(byte* name, uint* cols, int size) - { - ImPlotColormap ret = AddColormapNative(name, cols, size, (byte)(1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ref byte name, uint* cols, int size, bool qual) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ref byte name, uint* cols, int size) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ReadOnlySpan<byte> name, uint* cols, int size, bool qual) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(ReadOnlySpan<byte> name, uint* cols, int size) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = AddColormapNative((byte*)pname, cols, size, (byte)(1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(string name, uint* cols, int size, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap AddColormap(string name, uint* cols, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = AddColormapNative(pStr0, cols, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetColormapCountNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int>)funcTable[342])(); - #else - return (int)((delegate* unmanaged[Cdecl]<int>)funcTable[342])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetColormapCount() - { - int ret = GetColormapCountNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetColormapNameNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormap, byte*>)funcTable[343])(cmap); - #else - return (byte*)((delegate* unmanaged[Cdecl]<ImPlotColormap, nint>)funcTable[343])(cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetColormapName(ImPlotColormap cmap) - { - byte* ret = GetColormapNameNative(cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetColormapNameS(ImPlotColormap cmap) - { - string ret = Utils.DecodeStringUTF8(GetColormapNameNative(cmap)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap GetColormapIndexNative(byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImPlotColormap>)funcTable[344])(name); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap>)funcTable[344])((nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetColormapIndex(byte* name) - { - ImPlotColormap ret = GetColormapIndexNative(name); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetColormapIndex(ref byte name) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = GetColormapIndexNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetColormapIndex(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = GetColormapIndexNative((byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetColormapIndex(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = GetColormapIndexNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushColormapNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotColormap, void>)funcTable[345])(cmap); - #else - ((delegate* unmanaged[Cdecl]<ImPlotColormap, void>)funcTable[345])(cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushColormap(ImPlotColormap cmap) - { - PushColormapNative(cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushColormapNative(byte* name) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[346])(name); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[346])((nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushColormap(byte* name) - { - PushColormapNative(name); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushColormap(ref byte name) - { - fixed (byte* pname = &name) - { - PushColormapNative((byte*)pname); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushColormap(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - PushColormapNative((byte*)pname); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushColormap(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushColormapNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopColormapNative(int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[347])(count); - #else - ((delegate* unmanaged[Cdecl]<int, void>)funcTable[347])(count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopColormap(int count) - { - PopColormapNative(count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopColormap() - { - PopColormapNative((int)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NextColormapColorNative(Vector4* pOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, void>)funcTable[348])(pOut); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[348])((nint)pOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 NextColormapColor() - { - Vector4 ret; - NextColormapColorNative(&ret); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NextColormapColor(Vector4* pOut) - { - NextColormapColorNative(pOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void NextColormapColor(ref Vector4 pOut) - { - fixed (Vector4* ppOut = &pOut) - { - NextColormapColorNative((Vector4*)ppOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetColormapSizeNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormap, int>)funcTable[349])(cmap); - #else - return (int)((delegate* unmanaged[Cdecl]<ImPlotColormap, int>)funcTable[349])(cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetColormapSize(ImPlotColormap cmap) - { - int ret = GetColormapSizeNative(cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetColormapSize() - { - int ret = GetColormapSizeNative((ImPlotColormap)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetColormapColorNative(Vector4* pOut, int idx, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, int, ImPlotColormap, void>)funcTable[350])(pOut, idx, cmap); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotColormap, void>)funcTable[350])((nint)pOut, idx, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 GetColormapColor(int idx) - { - Vector4 ret; - GetColormapColorNative(&ret, idx, (ImPlotColormap)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 GetColormapColor(int idx, ImPlotColormap cmap) - { - Vector4 ret; - GetColormapColorNative(&ret, idx, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetColormapColor(Vector4* pOut, int idx, ImPlotColormap cmap) - { - GetColormapColorNative(pOut, idx, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetColormapColor(Vector4* pOut, int idx) - { - GetColormapColorNative(pOut, idx, (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetColormapColor(ref Vector4 pOut, int idx, ImPlotColormap cmap) - { - fixed (Vector4* ppOut = &pOut) - { - GetColormapColorNative((Vector4*)ppOut, idx, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetColormapColor(ref Vector4 pOut, int idx) - { - fixed (Vector4* ppOut = &pOut) - { - GetColormapColorNative((Vector4*)ppOut, idx, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SampleColormapNative(Vector4* pOut, float t, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, float, ImPlotColormap, void>)funcTable[351])(pOut, t, cmap); - #else - ((delegate* unmanaged[Cdecl]<nint, float, ImPlotColormap, void>)funcTable[351])((nint)pOut, t, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 SampleColormap(float t) - { - Vector4 ret; - SampleColormapNative(&ret, t, (ImPlotColormap)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 SampleColormap(float t, ImPlotColormap cmap) - { - Vector4 ret; - SampleColormapNative(&ret, t, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SampleColormap(Vector4* pOut, float t, ImPlotColormap cmap) - { - SampleColormapNative(pOut, t, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SampleColormap(Vector4* pOut, float t) - { - SampleColormapNative(pOut, t, (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SampleColormap(ref Vector4 pOut, float t, ImPlotColormap cmap) - { - fixed (Vector4* ppOut = &pOut) - { - SampleColormapNative((Vector4*)ppOut, t, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SampleColormap(ref Vector4 pOut, float t) - { - fixed (Vector4* ppOut = &pOut) - { - SampleColormapNative((Vector4*)ppOut, t, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColormapScaleNative(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, double, double, Vector2, byte*, ImPlotColormapScaleFlags, ImPlotColormap, void>)funcTable[352])(label, scaleMin, scaleMax, size, format, flags, cmap); - #else - ((delegate* unmanaged[Cdecl]<nint, double, double, Vector2, nint, ImPlotColormapScaleFlags, ImPlotColormap, void>)funcTable[352])((nint)label, scaleMin, scaleMax, size, (nint)format, flags, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, flags, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScale(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, byte* format) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScale((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, format, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, size, (string)"%g", flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScale(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (string)"%g", flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, byte* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), format, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(byte* label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative(label, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, flags, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, flags, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, flags, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, pStr1, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr1, flags, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ref byte label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs deleted file mode 100644 index 4e7748ef9..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.066.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, Vector2 size, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, size, pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(ReadOnlySpan<byte> label, double scaleMin, double scaleMax, string format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColormapScaleNative((byte*)plabel, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), pStr0, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ref byte format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, Vector2 size, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, size, (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, (ImPlotColormapScaleFlags)(0), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapScale(string label, double scaleMin, double scaleMax, ReadOnlySpan<byte> format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - ColormapScaleNative(pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (byte*)pformat, flags, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColormapSliderNative(byte* label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, float*, Vector4*, byte*, ImPlotColormap, byte>)funcTable[353])(label, t, output, format, cmap); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, ImPlotColormap, byte>)funcTable[353])((nint)label, (nint)t, (nint)output, (nint)format, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - byte ret = ColormapSliderNative(label, t, output, format, cmap); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, byte* format) - { - byte ret = ColormapSliderNative(label, t, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output) - { - bool ret = ColormapSlider(label, t, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t) - { - bool ret = ColormapSlider(label, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, byte* format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ImPlotColormap cmap) - { - bool ret = ColormapSlider(label, t, output, (string)"", cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ImPlotColormap cmap) - { - bool ret = ColormapSlider(label, t, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, byte* format, ImPlotColormap cmap) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, byte* format) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, output, (string)"", cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, output, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, output, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = ColormapSlider(pStr0, t, (Vector4*)(((void*)0)), (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, format, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, byte* format) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, byte* format) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, output, (string)"", cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, byte* format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", cmap); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, output, (string)"", cmap); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, output, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)(((void*)0)), (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, output, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)(((void*)0)), (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, byte* format) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, t, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, t, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, t, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, t, (Vector4*)poutput, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, byte* format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(label, (float*)pt, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, byte* format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider((byte*)plabel, (float*)pt, (Vector4*)poutput, (string)"", cmap); - return ret; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, byte* format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, format, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, format, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)poutput, (string)"", (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - bool ret = ColormapSlider(pStr0, (float*)pt, (Vector4*)poutput, (string)"", cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ReadOnlySpan<byte> format) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, Vector4* output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, output, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, Vector4* output, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, string format) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, Vector4* output, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, string format) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, Vector4* output, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ref byte format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref byte format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref byte format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, ReadOnlySpan<byte> format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ReadOnlySpan<byte> format) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, Vector4* output, string format) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, string format) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, string format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, Vector4* output, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, Vector4* output, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, output, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)(((void*)0)), pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, Vector4* output, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, output, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs deleted file mode 100644 index bf4b6eba1..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.067.cs +++ /dev/null @@ -1,5031 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)(((void*)0)), (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ref byte format) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, ReadOnlySpan<byte> format) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, float* t, ref Vector4 output, string format) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, float* t, ref Vector4 output, string format) - { - fixed (byte* plabel = &label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, float* t, ref Vector4 output, string format) - { - fixed (byte* plabel = label) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, t, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, float* t, ref Vector4 output, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, t, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ref byte format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(byte* label, ref float t, ref Vector4 output, string format) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative(label, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, pStr1, cmap); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, pStr1, (ImPlotColormap)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ref byte label, ref float t, ref Vector4 output, string format) - { - fixed (byte* plabel = &label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, ref byte format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, string format, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(ReadOnlySpan<byte> label, ref float t, ref Vector4 output, string format) - { - fixed (byte* plabel = label) - { - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapSliderNative((byte*)plabel, (float*)pt, (Vector4*)poutput, pStr0, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ref byte format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ref byte format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = &format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapSlider(string label, ref float t, ref Vector4 output, ReadOnlySpan<byte> format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pt = &t) - { - fixed (Vector4* poutput = &output) - { - fixed (byte* pformat = format) - { - byte ret = ColormapSliderNative(pStr0, (float*)pt, (Vector4*)poutput, (byte*)pformat, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ColormapButtonNative(byte* label, Vector2 size, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, Vector2, ImPlotColormap, byte>)funcTable[354])(label, size, cmap); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, Vector2, ImPlotColormap, byte>)funcTable[354])((nint)label, size, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(byte* label, Vector2 size, ImPlotColormap cmap) - { - byte ret = ColormapButtonNative(label, size, cmap); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(byte* label, Vector2 size) - { - byte ret = ColormapButtonNative(label, size, (ImPlotColormap)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(byte* label) - { - byte ret = ColormapButtonNative(label, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(byte* label, ImPlotColormap cmap) - { - byte ret = ColormapButtonNative(label, (Vector2)(new Vector2(0,0)), cmap); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ref byte label, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ref byte label, Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ref byte label, ImPlotColormap cmap) - { - fixed (byte* plabel = &label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ReadOnlySpan<byte> label, Vector2 size, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ReadOnlySpan<byte> label, Vector2 size) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, size, (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(ReadOnlySpan<byte> label, ImPlotColormap cmap) - { - fixed (byte* plabel = label) - { - byte ret = ColormapButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0)), cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(string label, Vector2 size, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, size, cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(string label, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, size, (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, (Vector2)(new Vector2(0,0)), (ImPlotColormap)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ColormapButton(string label, ImPlotColormap cmap) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColormapButtonNative(pStr0, (Vector2)(new Vector2(0,0)), cmap); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BustColorCacheNative(byte* plotTitleId) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, void>)funcTable[355])(plotTitleId); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[355])((nint)plotTitleId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BustColorCache(byte* plotTitleId) - { - BustColorCacheNative(plotTitleId); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BustColorCache() - { - BustColorCacheNative((byte*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BustColorCache(ref byte plotTitleId) - { - fixed (byte* pplotTitleId = &plotTitleId) - { - BustColorCacheNative((byte*)pplotTitleId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BustColorCache(ReadOnlySpan<byte> plotTitleId) - { - fixed (byte* pplotTitleId = plotTitleId) - { - BustColorCacheNative((byte*)pplotTitleId); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BustColorCache(string plotTitleId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (plotTitleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(plotTitleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(plotTitleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - BustColorCacheNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotInputMap* GetInputMapNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotInputMap*>)funcTable[356])(); - #else - return (ImPlotInputMap*)((delegate* unmanaged[Cdecl]<nint>)funcTable[356])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotInputMapPtr GetInputMap() - { - ImPlotInputMapPtr ret = GetInputMapNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MapInputDefaultNative(ImPlotInputMap* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotInputMap*, void>)funcTable[357])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[357])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MapInputDefault(ImPlotInputMapPtr dst) - { - MapInputDefaultNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MapInputDefault() - { - MapInputDefaultNative((ImPlotInputMap*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MapInputDefault(ref ImPlotInputMap dst) - { - fixed (ImPlotInputMap* pdst = &dst) - { - MapInputDefaultNative((ImPlotInputMap*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MapInputReverseNative(ImPlotInputMap* dst) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotInputMap*, void>)funcTable[358])(dst); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[358])((nint)dst); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MapInputReverse(ImPlotInputMapPtr dst) - { - MapInputReverseNative(dst); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MapInputReverse() - { - MapInputReverseNative((ImPlotInputMap*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MapInputReverse(ref ImPlotInputMap dst) - { - fixed (ImPlotInputMap* pdst = &dst) - { - MapInputReverseNative((ImPlotInputMap*)pdst); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemIconNative(Vector4 col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4, void>)funcTable[359])(col); - #else - ((delegate* unmanaged[Cdecl]<Vector4, void>)funcTable[359])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ItemIcon(Vector4 col) - { - ItemIconNative(col); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ItemIconNative(uint col) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[360])(col); - #else - ((delegate* unmanaged[Cdecl]<uint, void>)funcTable[360])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ItemIcon(uint col) - { - ItemIconNative(col); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ColormapIconNative(ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotColormap, void>)funcTable[361])(cmap); - #else - ((delegate* unmanaged[Cdecl]<ImPlotColormap, void>)funcTable[361])(cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ColormapIcon(ImPlotColormap cmap) - { - ColormapIconNative(cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImDrawList* GetPlotDrawListNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImDrawList*>)funcTable[362])(); - #else - return (ImDrawList*)((delegate* unmanaged[Cdecl]<nint>)funcTable[362])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImDrawListPtr GetPlotDrawList() - { - ImDrawListPtr ret = GetPlotDrawListNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushPlotClipRectNative(float expand) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[363])(expand); - #else - ((delegate* unmanaged[Cdecl]<float, void>)funcTable[363])(expand); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushPlotClipRect(float expand) - { - PushPlotClipRectNative(expand); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushPlotClipRect() - { - PushPlotClipRectNative((float)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PopPlotClipRectNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[364])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[364])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PopPlotClipRect() - { - PopPlotClipRectNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowStyleSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte>)funcTable[365])(label); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[365])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(byte* label) - { - byte ret = ShowStyleSelectorNative(label); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowStyleSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ShowStyleSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowStyleSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowStyleSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowColormapSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte>)funcTable[366])(label); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[366])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowColormapSelector(byte* label) - { - byte ret = ShowColormapSelectorNative(label); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowColormapSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowColormapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowColormapSelector(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ShowColormapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowColormapSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowColormapSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowInputMapSelectorNative(byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, byte>)funcTable[367])(label); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[367])((nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowInputMapSelector(byte* label) - { - byte ret = ShowInputMapSelectorNative(label); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowInputMapSelector(ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowInputMapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowInputMapSelector(ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - byte ret = ShowInputMapSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowInputMapSelector(string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowInputMapSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowStyleEditorNative(ImPlotStyle* reference) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotStyle*, void>)funcTable[368])(reference); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[368])((nint)reference); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStyleEditor(ImPlotStylePtr reference) - { - ShowStyleEditorNative(reference); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStyleEditor() - { - ShowStyleEditorNative((ImPlotStyle*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowStyleEditor(ref ImPlotStyle reference) - { - fixed (ImPlotStyle* preference = &reference) - { - ShowStyleEditorNative((ImPlotStyle*)preference); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowUserGuideNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[369])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[369])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowUserGuide() - { - ShowUserGuideNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowMetricsWindowNative(bool* pPopen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<bool*, void>)funcTable[370])(pPopen); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[370])((nint)pPopen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowMetricsWindow(bool* pPopen) - { - ShowMetricsWindowNative(pPopen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowMetricsWindow() - { - ShowMetricsWindowNative((bool*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowMetricsWindow(ref bool pPopen) - { - fixed (bool* ppPopen = &pPopen) - { - ShowMetricsWindowNative((bool*)ppPopen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowDemoWindowNative(bool* pOpen) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<bool*, void>)funcTable[371])(pOpen); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[371])((nint)pOpen); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDemoWindow(bool* pOpen) - { - ShowDemoWindowNative(pOpen); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDemoWindow() - { - ShowDemoWindowNative((bool*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowDemoWindow(ref bool pOpen) - { - fixed (bool* ppOpen = &pOpen) - { - ShowDemoWindowNative((bool*)ppOpen); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImLog10Native(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[372])(x); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[372])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImLog10(float x) - { - float ret = ImLog10Native(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImLog10Native(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[373])(x); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[373])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImLog10(double x) - { - double ret = ImLog10Native(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSinhNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[374])(x); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[374])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImSinh(float x) - { - float ret = ImSinhNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImSinhNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[375])(x); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[375])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImSinh(double x) - { - double ret = ImSinhNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImAsinhNative(float x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float>)funcTable[376])(x); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float>)funcTable[376])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImAsinh(float x) - { - float ret = ImAsinhNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImAsinhNative(double x) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[377])(x); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[377])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImAsinh(double x) - { - double ret = ImAsinhNative(x); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImRemapNative(float x, float x0, float x1, float y0, float y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float, float, float>)funcTable[378])(x, x0, x1, y0, y1); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float, float, float, float, float>)funcTable[378])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImRemap(float x, float x0, float x1, float y0, float y1) - { - float ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImRemapNative(double x, double x0, double x1, double y0, double y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, double, double, double, double>)funcTable[379])(x, x0, x1, y0, y1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double, double, double, double, double>)funcTable[379])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImRemap(double x, double x0, double x1, double y0, double y1) - { - double ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static sbyte ImRemapNative(sbyte x, sbyte x0, sbyte x1, sbyte y0, sbyte y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte, sbyte, sbyte, sbyte, sbyte, sbyte>)funcTable[380])(x, x0, x1, y0, y1); - #else - return (sbyte)((delegate* unmanaged[Cdecl]<sbyte, sbyte, sbyte, sbyte, sbyte, sbyte>)funcTable[380])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static sbyte ImRemap(sbyte x, sbyte x0, sbyte x1, sbyte y0, sbyte y1) - { - sbyte ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImRemapNative(byte x, byte x0, byte x1, byte y0, byte y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte, byte, byte, byte, byte, byte>)funcTable[381])(x, x0, x1, y0, y1); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte, byte, byte, byte, byte, byte>)funcTable[381])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte ImRemap(byte x, byte x0, byte x1, byte y0, byte y1) - { - byte ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImRemapNative(short x, short x0, short x1, short y0, short y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short, short, short, short, short, short>)funcTable[382])(x, x0, x1, y0, y1); - #else - return (short)((delegate* unmanaged[Cdecl]<short, short, short, short, short, short>)funcTable[382])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static short ImRemap(short x, short x0, short x1, short y0, short y1) - { - short ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImRemapNative(ushort x, ushort x0, ushort x1, ushort y0, ushort y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort, ushort, ushort, ushort, ushort, ushort>)funcTable[383])(x, x0, x1, y0, y1); - #else - return (ushort)((delegate* unmanaged[Cdecl]<ushort, ushort, ushort, ushort, ushort, ushort>)funcTable[383])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort ImRemap(ushort x, ushort x0, ushort x1, ushort y0, ushort y1) - { - ushort ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImRemapNative(int x, int x0, int x1, int y0, int y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, int, int, int, int>)funcTable[384])(x, x0, x1, y0, y1); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int, int, int, int, int>)funcTable[384])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImRemap(int x, int x0, int x1, int y0, int y1) - { - int ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImRemapNative(uint x, uint x0, uint x1, uint y0, uint y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint, uint, uint, uint, uint>)funcTable[385])(x, x0, x1, y0, y1); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, uint, uint, uint, uint, uint>)funcTable[385])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImRemap(uint x, uint x0, uint x1, uint y0, uint y1) - { - uint ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImRemapNative(long x, long x0, long x1, long y0, long y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long, long, long, long, long, long>)funcTable[386])(x, x0, x1, y0, y1); - #else - return (long)((delegate* unmanaged[Cdecl]<long, long, long, long, long, long>)funcTable[386])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static long ImRemap(long x, long x0, long x1, long y0, long y1) - { - long ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImRemapNative(ulong x, ulong x0, ulong x1, ulong y0, ulong y1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong, ulong, ulong, ulong, ulong, ulong>)funcTable[387])(x, x0, x1, y0, y1); - #else - return (ulong)((delegate* unmanaged[Cdecl]<ulong, ulong, ulong, ulong, ulong, ulong>)funcTable[387])(x, x0, x1, y0, y1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImRemap(ulong x, ulong x0, ulong x1, ulong y0, ulong y1) - { - ulong ret = ImRemapNative(x, x0, x1, y0, y1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImRemap01Native(float x, float x0, float x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float>)funcTable[388])(x, x0, x1); - #else - return (float)((delegate* unmanaged[Cdecl]<float, float, float, float>)funcTable[388])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImRemap01(float x, float x0, float x1) - { - float ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImRemap01Native(double x, double x0, double x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, double, double>)funcTable[389])(x, x0, x1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double, double, double>)funcTable[389])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImRemap01(double x, double x0, double x1) - { - double ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static sbyte ImRemap01Native(sbyte x, sbyte x0, sbyte x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte, sbyte, sbyte, sbyte>)funcTable[390])(x, x0, x1); - #else - return (sbyte)((delegate* unmanaged[Cdecl]<sbyte, sbyte, sbyte, sbyte>)funcTable[390])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static sbyte ImRemap01(sbyte x, sbyte x0, sbyte x1) - { - sbyte ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImRemap01Native(byte x, byte x0, byte x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte, byte, byte, byte>)funcTable[391])(x, x0, x1); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte, byte, byte, byte>)funcTable[391])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte ImRemap01(byte x, byte x0, byte x1) - { - byte ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImRemap01Native(short x, short x0, short x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short, short, short, short>)funcTable[392])(x, x0, x1); - #else - return (short)((delegate* unmanaged[Cdecl]<short, short, short, short>)funcTable[392])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static short ImRemap01(short x, short x0, short x1) - { - short ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImRemap01Native(ushort x, ushort x0, ushort x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort, ushort, ushort, ushort>)funcTable[393])(x, x0, x1); - #else - return (ushort)((delegate* unmanaged[Cdecl]<ushort, ushort, ushort, ushort>)funcTable[393])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort ImRemap01(ushort x, ushort x0, ushort x1) - { - ushort ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImRemap01Native(int x, int x0, int x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, int, int>)funcTable[394])(x, x0, x1); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int, int, int>)funcTable[394])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImRemap01(int x, int x0, int x1) - { - int ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImRemap01Native(uint x, uint x0, uint x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint, uint, uint>)funcTable[395])(x, x0, x1); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, uint, uint, uint>)funcTable[395])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImRemap01(uint x, uint x0, uint x1) - { - uint ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImRemap01Native(long x, long x0, long x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long, long, long, long>)funcTable[396])(x, x0, x1); - #else - return (long)((delegate* unmanaged[Cdecl]<long, long, long, long>)funcTable[396])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static long ImRemap01(long x, long x0, long x1) - { - long ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImRemap01Native(ulong x, ulong x0, ulong x1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong, ulong, ulong, ulong>)funcTable[397])(x, x0, x1); - #else - return (ulong)((delegate* unmanaged[Cdecl]<ulong, ulong, ulong, ulong>)funcTable[397])(x, x0, x1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImRemap01(ulong x, ulong x0, ulong x1) - { - ulong ret = ImRemap01Native(x, x0, x1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImPosModNative(int l, int r) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, int>)funcTable[398])(l, r); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int, int>)funcTable[398])(l, r); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImPosMod(int l, int r) - { - int ret = ImPosModNative(l, r); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImNanNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, byte>)funcTable[399])(val); - #else - return (byte)((delegate* unmanaged[Cdecl]<double, byte>)funcTable[399])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImNan(double val) - { - byte ret = ImNanNative(val); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImNanOrInfNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, byte>)funcTable[400])(val); - #else - return (byte)((delegate* unmanaged[Cdecl]<double, byte>)funcTable[400])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImNanOrInf(double val) - { - byte ret = ImNanOrInfNative(val); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainNanNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[401])(val); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[401])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImConstrainNan(double val) - { - double ret = ImConstrainNanNative(val); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainInfNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[402])(val); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[402])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImConstrainInf(double val) - { - double ret = ImConstrainInfNative(val); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainLogNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[403])(val); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[403])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImConstrainLog(double val) - { - double ret = ImConstrainLogNative(val); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImConstrainTimeNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double>)funcTable[404])(val); - #else - return (double)((delegate* unmanaged[Cdecl]<double, double>)funcTable[404])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImConstrainTime(double val) - { - double ret = ImConstrainTimeNative(val); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImAlmostEqualNative(double v1, double v2, int ulp) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, int, byte>)funcTable[405])(v1, v2, ulp); - #else - return (byte)((delegate* unmanaged[Cdecl]<double, double, int, byte>)funcTable[405])(v1, v2, ulp); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImAlmostEqual(double v1, double v2, int ulp) - { - byte ret = ImAlmostEqualNative(v1, v2, ulp); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImAlmostEqual(double v1, double v2) - { - byte ret = ImAlmostEqualNative(v1, v2, (int)(2)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImMinArrayNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float*, int, float>)funcTable[406])(values, count); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, int, float>)funcTable[406])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImMinArray(float* values, int count) - { - float ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImMinArray(ref float values, int count) - { - fixed (float* pvalues = &values) - { - float ret = ImMinArrayNative((float*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMinArrayNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double*, int, double>)funcTable[407])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[407])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMinArray(double* values, int count) - { - double ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMinArray(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImMinArrayNative((double*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static sbyte ImMinArrayNative(sbyte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte*, int, sbyte>)funcTable[408])(values, count); - #else - return (sbyte)((delegate* unmanaged[Cdecl]<nint, int, sbyte>)funcTable[408])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static sbyte ImMinArray(sbyte* values, int count) - { - sbyte ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImMinArrayNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, byte>)funcTable[409])(values, count); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[409])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte ImMinArray(byte* values, int count) - { - byte ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImMinArrayNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short*, int, short>)funcTable[410])(values, count); - #else - return (short)((delegate* unmanaged[Cdecl]<nint, int, short>)funcTable[410])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static short ImMinArray(short* values, int count) - { - short ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImMinArrayNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, int, ushort>)funcTable[411])(values, count); - #else - return (ushort)((delegate* unmanaged[Cdecl]<nint, int, ushort>)funcTable[411])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort ImMinArray(ushort* values, int count) - { - ushort ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImMinArrayNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int*, int, int>)funcTable[412])(values, count); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, int>)funcTable[412])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImMinArray(int* values, int count) - { - int ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImMinArrayNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, int, uint>)funcTable[413])(values, count); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[413])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImMinArray(uint* values, int count) - { - uint ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImMinArrayNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long*, int, long>)funcTable[414])(values, count); - #else - return (long)((delegate* unmanaged[Cdecl]<nint, int, long>)funcTable[414])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static long ImMinArray(long* values, int count) - { - long ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImMinArrayNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong*, int, ulong>)funcTable[415])(values, count); - #else - return (ulong)((delegate* unmanaged[Cdecl]<nint, int, ulong>)funcTable[415])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImMinArray(ulong* values, int count) - { - ulong ret = ImMinArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImMaxArrayNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float*, int, float>)funcTable[416])(values, count); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, int, float>)funcTable[416])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImMaxArray(float* values, int count) - { - float ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImMaxArray(ref float values, int count) - { - fixed (float* pvalues = &values) - { - float ret = ImMaxArrayNative((float*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMaxArrayNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double*, int, double>)funcTable[417])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[417])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMaxArray(double* values, int count) - { - double ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMaxArray(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImMaxArrayNative((double*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static sbyte ImMaxArrayNative(sbyte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte*, int, sbyte>)funcTable[418])(values, count); - #else - return (sbyte)((delegate* unmanaged[Cdecl]<nint, int, sbyte>)funcTable[418])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static sbyte ImMaxArray(sbyte* values, int count) - { - sbyte ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImMaxArrayNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, byte>)funcTable[419])(values, count); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[419])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte ImMaxArray(byte* values, int count) - { - byte ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImMaxArrayNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short*, int, short>)funcTable[420])(values, count); - #else - return (short)((delegate* unmanaged[Cdecl]<nint, int, short>)funcTable[420])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static short ImMaxArray(short* values, int count) - { - short ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImMaxArrayNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, int, ushort>)funcTable[421])(values, count); - #else - return (ushort)((delegate* unmanaged[Cdecl]<nint, int, ushort>)funcTable[421])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort ImMaxArray(ushort* values, int count) - { - ushort ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImMaxArrayNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int*, int, int>)funcTable[422])(values, count); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, int>)funcTable[422])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImMaxArray(int* values, int count) - { - int ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImMaxArrayNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, int, uint>)funcTable[423])(values, count); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[423])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImMaxArray(uint* values, int count) - { - uint ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImMaxArrayNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long*, int, long>)funcTable[424])(values, count); - #else - return (long)((delegate* unmanaged[Cdecl]<nint, int, long>)funcTable[424])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static long ImMaxArray(long* values, int count) - { - long ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImMaxArrayNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong*, int, ulong>)funcTable[425])(values, count); - #else - return (ulong)((delegate* unmanaged[Cdecl]<nint, int, ulong>)funcTable[425])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImMaxArray(ulong* values, int count) - { - ulong ret = ImMaxArrayNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(float* values, int count, float* minOut, float* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, int, float*, float*, void>)funcTable[426])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[426])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(float* values, int count, float* minOut, float* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref float values, int count, float* minOut, float* maxOut) - { - fixed (float* pvalues = &values) - { - ImMinMaxArrayNative((float*)pvalues, count, minOut, maxOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(float* values, int count, ref float minOut, float* maxOut) - { - fixed (float* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (float*)pminOut, maxOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref float values, int count, ref float minOut, float* maxOut) - { - fixed (float* pvalues = &values) - { - fixed (float* pminOut = &minOut) - { - ImMinMaxArrayNative((float*)pvalues, count, (float*)pminOut, maxOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(float* values, int count, float* minOut, ref float maxOut) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (float*)pmaxOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref float values, int count, float* minOut, ref float maxOut) - { - fixed (float* pvalues = &values) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((float*)pvalues, count, minOut, (float*)pmaxOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(float* values, int count, ref float minOut, ref float maxOut) - { - fixed (float* pminOut = &minOut) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (float*)pminOut, (float*)pmaxOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref float values, int count, ref float minOut, ref float maxOut) - { - fixed (float* pvalues = &values) - { - fixed (float* pminOut = &minOut) - { - fixed (float* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((float*)pvalues, count, (float*)pminOut, (float*)pmaxOut); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(double* values, int count, double* minOut, double* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double*, int, double*, double*, void>)funcTable[427])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[427])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(double* values, int count, double* minOut, double* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref double values, int count, double* minOut, double* maxOut) - { - fixed (double* pvalues = &values) - { - ImMinMaxArrayNative((double*)pvalues, count, minOut, maxOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(double* values, int count, ref double minOut, double* maxOut) - { - fixed (double* pminOut = &minOut) - { - ImMinMaxArrayNative(values, count, (double*)pminOut, maxOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref double values, int count, ref double minOut, double* maxOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pminOut = &minOut) - { - ImMinMaxArrayNative((double*)pvalues, count, (double*)pminOut, maxOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(double* values, int count, double* minOut, ref double maxOut) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, minOut, (double*)pmaxOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref double values, int count, double* minOut, ref double maxOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((double*)pvalues, count, minOut, (double*)pmaxOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(double* values, int count, ref double minOut, ref double maxOut) - { - fixed (double* pminOut = &minOut) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative(values, count, (double*)pminOut, (double*)pmaxOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ref double values, int count, ref double minOut, ref double maxOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pminOut = &minOut) - { - fixed (double* pmaxOut = &maxOut) - { - ImMinMaxArrayNative((double*)pvalues, count, (double*)pminOut, (double*)pmaxOut); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(sbyte* values, int count, sbyte* minOut, sbyte* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<sbyte*, int, sbyte*, sbyte*, void>)funcTable[428])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[428])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(sbyte* values, int count, sbyte* minOut, sbyte* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(byte* values, int count, byte* minOut, byte* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int, byte*, byte*, void>)funcTable[429])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[429])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(byte* values, int count, byte* minOut, byte* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(short* values, int count, short* minOut, short* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<short*, int, short*, short*, void>)funcTable[430])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[430])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(short* values, int count, short* minOut, short* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(ushort* values, int count, ushort* minOut, ushort* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ushort*, int, ushort*, ushort*, void>)funcTable[431])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[431])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ushort* values, int count, ushort* minOut, ushort* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(int* values, int count, int* minOut, int* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int*, int, int*, int*, void>)funcTable[432])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[432])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(int* values, int count, int* minOut, int* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(uint* values, int count, uint* minOut, uint* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint*, int, uint*, uint*, void>)funcTable[433])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[433])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(uint* values, int count, uint* minOut, uint* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(long* values, int count, long* minOut, long* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<long*, int, long*, long*, void>)funcTable[434])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[434])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(long* values, int count, long* minOut, long* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ImMinMaxArrayNative(ulong* values, int count, ulong* minOut, ulong* maxOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ulong*, int, ulong*, ulong*, void>)funcTable[435])(values, count, minOut, maxOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, nint, void>)funcTable[435])((nint)values, count, (nint)minOut, (nint)maxOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ImMinMaxArray(ulong* values, int count, ulong* minOut, ulong* maxOut) - { - ImMinMaxArrayNative(values, count, minOut, maxOut); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float ImSumNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float*, int, float>)funcTable[436])(values, count); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, int, float>)funcTable[436])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImSum(float* values, int count) - { - float ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float ImSum(ref float values, int count) - { - fixed (float* pvalues = &values) - { - float ret = ImSumNative((float*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImSumNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double*, int, double>)funcTable[437])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[437])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImSum(double* values, int count) - { - double ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImSum(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImSumNative((double*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static sbyte ImSumNative(sbyte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte*, int, sbyte>)funcTable[438])(values, count); - #else - return (sbyte)((delegate* unmanaged[Cdecl]<nint, int, sbyte>)funcTable[438])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static sbyte ImSum(sbyte* values, int count) - { - sbyte ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImSumNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, byte>)funcTable[439])(values, count); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[439])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte ImSum(byte* values, int count) - { - byte ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static short ImSumNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short*, int, short>)funcTable[440])(values, count); - #else - return (short)((delegate* unmanaged[Cdecl]<nint, int, short>)funcTable[440])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static short ImSum(short* values, int count) - { - short ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort ImSumNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, int, ushort>)funcTable[441])(values, count); - #else - return (ushort)((delegate* unmanaged[Cdecl]<nint, int, ushort>)funcTable[441])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ushort ImSum(ushort* values, int count) - { - ushort ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int ImSumNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int*, int, int>)funcTable[442])(values, count); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int, int>)funcTable[442])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int ImSum(int* values, int count) - { - int ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImSumNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, int, uint>)funcTable[443])(values, count); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, uint>)funcTable[443])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImSum(uint* values, int count) - { - uint ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static long ImSumNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long*, int, long>)funcTable[444])(values, count); - #else - return (long)((delegate* unmanaged[Cdecl]<nint, int, long>)funcTable[444])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static long ImSum(long* values, int count) - { - long ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ulong ImSumNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong*, int, ulong>)funcTable[445])(values, count); - #else - return (ulong)((delegate* unmanaged[Cdecl]<nint, int, ulong>)funcTable[445])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ulong ImSum(ulong* values, int count) - { - ulong ret = ImSumNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float*, int, double>)funcTable[446])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[446])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(float* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(ref float values, int count) - { - fixed (float* pvalues = &values) - { - double ret = ImMeanNative((float*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double*, int, double>)funcTable[447])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[447])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(double* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImMeanNative((double*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(sbyte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte*, int, double>)funcTable[448])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[448])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(sbyte* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, double>)funcTable[449])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[449])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(byte* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short*, int, double>)funcTable[450])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[450])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(short* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, int, double>)funcTable[451])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[451])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(ushort* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int*, int, double>)funcTable[452])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[452])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(int* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, int, double>)funcTable[453])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[453])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(uint* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long*, int, double>)funcTable[454])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[454])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(long* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImMeanNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong*, int, double>)funcTable[455])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[455])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImMean(ulong* values, int count) - { - double ret = ImMeanNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(float* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float*, int, double>)funcTable[456])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[456])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(float* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(ref float values, int count) - { - fixed (float* pvalues = &values) - { - double ret = ImStdDevNative((float*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(double* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double*, int, double>)funcTable[457])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[457])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(double* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(ref double values, int count) - { - fixed (double* pvalues = &values) - { - double ret = ImStdDevNative((double*)pvalues, count); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(sbyte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte*, int, double>)funcTable[458])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[458])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(sbyte* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(byte* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int, double>)funcTable[459])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[459])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(byte* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(short* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short*, int, double>)funcTable[460])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[460])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(short* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(ushort* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort*, int, double>)funcTable[461])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[461])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(ushort* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(int* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int*, int, double>)funcTable[462])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[462])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(int* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(uint* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, int, double>)funcTable[463])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[463])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(uint* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(long* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long*, int, double>)funcTable[464])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[464])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(long* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ImStdDevNative(ulong* values, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong*, int, double>)funcTable[465])(values, count); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, int, double>)funcTable[465])((nint)values, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ImStdDev(ulong* values, int count) - { - double ret = ImStdDevNative(values, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImMixU32Native(uint a, uint b, uint s) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint, uint, uint>)funcTable[466])(a, b, s); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, uint, uint, uint>)funcTable[466])(a, b, s); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImMixU32(uint a, uint b, uint s) - { - uint ret = ImMixU32Native(a, b, s); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImLerpU32Native(uint* colors, int size, float t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint*, int, float, uint>)funcTable[467])(colors, size, t); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, int, float, uint>)funcTable[467])((nint)colors, size, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImLerpU32(uint* colors, int size, float t) - { - uint ret = ImLerpU32Native(colors, size, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint ImAlphaU32Native(uint col, float alpha) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, float, uint>)funcTable[468])(col, alpha); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, float, uint>)funcTable[468])(col, alpha); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint ImAlphaU32(uint col, float alpha) - { - uint ret = ImAlphaU32Native(col, alpha); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(float minA, float maxA, float minB, float maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, float, float, float, byte>)funcTable[469])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<float, float, float, float, byte>)funcTable[469])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(float minA, float maxA, float minB, float maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(double minA, double maxA, double minB, double maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, double, double, byte>)funcTable[470])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<double, double, double, double, byte>)funcTable[470])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(double minA, double maxA, double minB, double maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(sbyte minA, sbyte maxA, sbyte minB, sbyte maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<sbyte, sbyte, sbyte, sbyte, byte>)funcTable[471])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<sbyte, sbyte, sbyte, sbyte, byte>)funcTable[471])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(sbyte minA, sbyte maxA, sbyte minB, sbyte maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(byte minA, byte maxA, byte minB, byte maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte, byte, byte, byte, byte>)funcTable[472])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte, byte, byte, byte, byte>)funcTable[472])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(byte minA, byte maxA, byte minB, byte maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(short minA, short maxA, short minB, short maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<short, short, short, short, byte>)funcTable[473])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<short, short, short, short, byte>)funcTable[473])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(short minA, short maxA, short minB, short maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(ushort minA, ushort maxA, ushort minB, ushort maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ushort, ushort, ushort, ushort, byte>)funcTable[474])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<ushort, ushort, ushort, ushort, byte>)funcTable[474])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(ushort minA, ushort maxA, ushort minB, ushort maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(int minA, int maxA, int minB, int maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, int, int, byte>)funcTable[475])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, int, int, int, byte>)funcTable[475])(minA, maxA, minB, maxB); - #endif - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs deleted file mode 100644 index 6264f658d..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.068.cs +++ /dev/null @@ -1,5023 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(int minA, int maxA, int minB, int maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(uint minA, uint maxA, uint minB, uint maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint, uint, uint, byte>)funcTable[476])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<uint, uint, uint, uint, byte>)funcTable[476])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(uint minA, uint maxA, uint minB, uint maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(long minA, long maxA, long minB, long maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long, long, long, long, byte>)funcTable[477])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<long, long, long, long, byte>)funcTable[477])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(long minA, long maxA, long minB, long maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ImOverlapsNative(ulong minA, ulong maxA, ulong minB, ulong maxB) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ulong, ulong, ulong, ulong, byte>)funcTable[478])(minA, maxA, minB, maxB); - #else - return (byte)((delegate* unmanaged[Cdecl]<ulong, ulong, ulong, ulong, byte>)funcTable[478])(minA, maxA, minB, maxB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ImOverlaps(ulong minA, ulong maxA, ulong minB, ulong maxB) - { - byte ret = ImOverlapsNative(minA, maxA, minB, maxB); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotDateTimeSpec* ImPlotDateTimeSpecNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotDateTimeSpec*>)funcTable[479])(); - #else - return (ImPlotDateTimeSpec*)((delegate* unmanaged[Cdecl]<nint>)funcTable[479])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec() - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotDateTimeSpec* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotDateTimeSpec*, void>)funcTable[480])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[480])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotDateTimeSpecPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotDateTimeSpec self) - { - fixed (ImPlotDateTimeSpec* pself = &self) - { - DestroyNative((ImPlotDateTimeSpec*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotDateTimeSpec* ImPlotDateTimeSpecNative(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, byte use24HrClk, byte useIso8601) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotDateFmt, ImPlotTimeFmt, byte, byte, ImPlotDateTimeSpec*>)funcTable[481])(dateFmt, timeFmt, use24HrClk, useIso8601); - #else - return (ImPlotDateTimeSpec*)((delegate* unmanaged[Cdecl]<ImPlotDateFmt, ImPlotTimeFmt, byte, byte, nint>)funcTable[481])(dateFmt, timeFmt, use24HrClk, useIso8601); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, bool use24HrClk, bool useIso8601) - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, use24HrClk ? (byte)1 : (byte)0, useIso8601 ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt, bool use24HrClk) - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, use24HrClk ? (byte)1 : (byte)0, (byte)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotDateTimeSpecPtr ImPlotDateTimeSpec(ImPlotDateFmt dateFmt, ImPlotTimeFmt timeFmt) - { - ImPlotDateTimeSpecPtr ret = ImPlotDateTimeSpecNative(dateFmt, timeFmt, (byte)(0), (byte)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTime* ImPlotTimeNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime*>)funcTable[482])(); - #else - return (ImPlotTime*)((delegate* unmanaged[Cdecl]<nint>)funcTable[482])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTimePtr ImPlotTime() - { - ImPlotTimePtr ret = ImPlotTimeNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTime* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, void>)funcTable[483])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[483])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotTimePtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotTime self) - { - fixed (ImPlotTime* pself = &self) - { - DestroyNative((ImPlotTime*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTime* ImPlotTimeNative(long s, int us) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<long, int, ImPlotTime*>)funcTable[484])(s, us); - #else - return (ImPlotTime*)((delegate* unmanaged[Cdecl]<long, int, nint>)funcTable[484])(s, us); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTimePtr ImPlotTime(long s, int us) - { - ImPlotTimePtr ret = ImPlotTimeNative(s, us); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTimePtr ImPlotTime(long s) - { - ImPlotTimePtr ret = ImPlotTimeNative(s, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RollOverNative(ImPlotTime* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, void>)funcTable[485])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[485])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RollOver(ImPlotTimePtr self) - { - RollOverNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RollOver(ref ImPlotTime self) - { - fixed (ImPlotTime* pself = &self) - { - RollOverNative((ImPlotTime*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double ToDoubleNative(ImPlotTime* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime*, double>)funcTable[486])(self); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, double>)funcTable[486])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ToDouble(ImPlotTimePtr self) - { - double ret = ToDoubleNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double ToDouble(ref ImPlotTime self) - { - fixed (ImPlotTime* pself = &self) - { - double ret = ToDoubleNative((ImPlotTime*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FromDoubleNative(ImPlotTime* pOut, double t) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, double, void>)funcTable[487])(pOut, t); - #else - ((delegate* unmanaged[Cdecl]<nint, double, void>)funcTable[487])((nint)pOut, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime FromDouble(double t) - { - ImPlotTime ret; - FromDoubleNative(&ret, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FromDouble(ImPlotTimePtr pOut, double t) - { - FromDoubleNative(pOut, t); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FromDouble(ref ImPlotTime pOut, double t) - { - fixed (ImPlotTime* ppOut = &pOut) - { - FromDoubleNative((ImPlotTime*)ppOut, t); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormapData* ImPlotColormapDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*>)funcTable[488])(); - #else - return (ImPlotColormapData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[488])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormapDataPtr ImPlotColormapData() - { - ImPlotColormapDataPtr ret = ImPlotColormapDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotColormapData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, void>)funcTable[489])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[489])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotColormapDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotColormapData self) - { - fixed (ImPlotColormapData* pself = &self) - { - DestroyNative((ImPlotColormapData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int AppendNative(ImPlotColormapData* self, byte* name, uint* keys, int count, byte qual) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, byte*, uint*, int, byte, int>)funcTable[490])(self, name, keys, count, qual); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, nint, int, byte, int>)funcTable[490])((nint)self, (nint)name, (nint)keys, count, qual); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ImPlotColormapDataPtr self, byte* name, uint* keys, int count, bool qual) - { - int ret = AppendNative(self, name, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ref ImPlotColormapData self, byte* name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - int ret = AppendNative((ImPlotColormapData*)pself, name, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ImPlotColormapDataPtr self, ref byte name, uint* keys, int count, bool qual) - { - fixed (byte* pname = &name) - { - int ret = AppendNative(self, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ImPlotColormapDataPtr self, ReadOnlySpan<byte> name, uint* keys, int count, bool qual) - { - fixed (byte* pname = name) - { - int ret = AppendNative(self, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ImPlotColormapDataPtr self, string name, uint* keys, int count, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = AppendNative(self, pStr0, keys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ref ImPlotColormapData self, ref byte name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = &name) - { - int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ref ImPlotColormapData self, ReadOnlySpan<byte> name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = name) - { - int ret = AppendNative((ImPlotColormapData*)pself, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Append(ref ImPlotColormapData self, string name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = AppendNative((ImPlotColormapData*)pself, pStr0, keys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void _AppendTableNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, void>)funcTable[491])(self, cmap); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, void>)funcTable[491])((nint)self, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _AppendTable(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - _AppendTableNative(self, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void _AppendTable(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - _AppendTableNative((ImPlotColormapData*)pself, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RebuildTablesNative(ImPlotColormapData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, void>)funcTable[492])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[492])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RebuildTables(ImPlotColormapDataPtr self) - { - RebuildTablesNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RebuildTables(ref ImPlotColormapData self) - { - fixed (ImPlotColormapData* pself = &self) - { - RebuildTablesNative((ImPlotColormapData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsQualNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, byte>)funcTable[493])(self, cmap); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, byte>)funcTable[493])((nint)self, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsQual(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - byte ret = IsQualNative(self, cmap); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsQual(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - byte ret = IsQualNative((ImPlotColormapData*)pself, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetNameNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, byte*>)funcTable[494])(self, cmap); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, nint>)funcTable[494])((nint)self, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetName(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - byte* ret = GetNameNative(self, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetNameS(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - string ret = Utils.DecodeStringUTF8(GetNameNative(self, cmap)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetName(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - byte* ret = GetNameNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetNameS(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetNameNative((ImPlotColormapData*)pself, cmap)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotColormap GetIndexNative(ImPlotColormapData* self, byte* name) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, byte*, ImPlotColormap>)funcTable[495])(self, name); - #else - return (ImPlotColormap)((delegate* unmanaged[Cdecl]<nint, nint, ImPlotColormap>)funcTable[495])((nint)self, (nint)name); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, byte* name) - { - ImPlotColormap ret = GetIndexNative(self, name); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, byte* name) - { - fixed (ImPlotColormapData* pself = &self) - { - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, name); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, ref byte name) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = GetIndexNative(self, (byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = GetIndexNative(self, (byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ImPlotColormapDataPtr self, string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = GetIndexNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, ref byte name) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, (byte*)pname); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, ReadOnlySpan<byte> name) - { - fixed (ImPlotColormapData* pself = &self) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, (byte*)pname); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotColormap GetIndex(ref ImPlotColormapData self, string name) - { - fixed (ImPlotColormapData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = GetIndexNative((ImPlotColormapData*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint* GetKeysNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, uint*>)funcTable[496])(self, cmap); - #else - return (uint*)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, nint>)funcTable[496])((nint)self, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint* GetKeys(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - uint* ret = GetKeysNative(self, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint* GetKeys(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - uint* ret = GetKeysNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetKeyCountNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, int>)funcTable[497])(self, cmap); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, int>)funcTable[497])((nint)self, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetKeyCount(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - int ret = GetKeyCountNative(self, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetKeyCount(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - int ret = GetKeyCountNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetKeyColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, int, uint>)funcTable[498])(self, cmap, idx); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, int, uint>)funcTable[498])((nint)self, cmap, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetKeyColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx) - { - uint ret = GetKeyColorNative(self, cmap, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetKeyColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx) - { - fixed (ImPlotColormapData* pself = &self) - { - uint ret = GetKeyColorNative((ImPlotColormapData*)pself, cmap, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetKeyColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx, uint value) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, int, uint, void>)funcTable[499])(self, cmap, idx, value); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, int, uint, void>)funcTable[499])((nint)self, cmap, idx, value); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx, uint value) - { - SetKeyColorNative(self, cmap, idx, value); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetKeyColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx, uint value) - { - fixed (ImPlotColormapData* pself = &self) - { - SetKeyColorNative((ImPlotColormapData*)pself, cmap, idx, value); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint* GetTableNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, uint*>)funcTable[500])(self, cmap); - #else - return (uint*)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, nint>)funcTable[500])((nint)self, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint* GetTable(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - uint* ret = GetTableNative(self, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint* GetTable(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - uint* ret = GetTableNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetTableSizeNative(ImPlotColormapData* self, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, int>)funcTable[501])(self, cmap); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, int>)funcTable[501])((nint)self, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetTableSize(ImPlotColormapDataPtr self, ImPlotColormap cmap) - { - int ret = GetTableSizeNative(self, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetTableSize(ref ImPlotColormapData self, ImPlotColormap cmap) - { - fixed (ImPlotColormapData* pself = &self) - { - int ret = GetTableSizeNative((ImPlotColormapData*)pself, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetTableColorNative(ImPlotColormapData* self, ImPlotColormap cmap, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, int, uint>)funcTable[502])(self, cmap, idx); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, int, uint>)funcTable[502])((nint)self, cmap, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetTableColor(ImPlotColormapDataPtr self, ImPlotColormap cmap, int idx) - { - uint ret = GetTableColorNative(self, cmap, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetTableColor(ref ImPlotColormapData self, ImPlotColormap cmap, int idx) - { - fixed (ImPlotColormapData* pself = &self) - { - uint ret = GetTableColorNative((ImPlotColormapData*)pself, cmap, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint LerpTableNative(ImPlotColormapData* self, ImPlotColormap cmap, float t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotColormapData*, ImPlotColormap, float, uint>)funcTable[503])(self, cmap, t); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, ImPlotColormap, float, uint>)funcTable[503])((nint)self, cmap, t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint LerpTable(ImPlotColormapDataPtr self, ImPlotColormap cmap, float t) - { - uint ret = LerpTableNative(self, cmap, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint LerpTable(ref ImPlotColormapData self, ImPlotColormap cmap, float t) - { - fixed (ImPlotColormapData* pself = &self) - { - uint ret = LerpTableNative((ImPlotColormapData*)pself, cmap, t); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPointError* ImPlotPointErrorNative(double x, double y, double neg, double pos) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, double, double, double, ImPlotPointError*>)funcTable[504])(x, y, neg, pos); - #else - return (ImPlotPointError*)((delegate* unmanaged[Cdecl]<double, double, double, double, nint>)funcTable[504])(x, y, neg, pos); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPointErrorPtr ImPlotPointError(double x, double y, double neg, double pos) - { - ImPlotPointErrorPtr ret = ImPlotPointErrorNative(x, y, neg, pos); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotPointError* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPointError*, void>)funcTable[505])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[505])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotPointErrorPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotPointError self) - { - fixed (ImPlotPointError* pself = &self) - { - DestroyNative((ImPlotPointError*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAnnotationCollection* ImPlotAnnotationCollectionNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAnnotationCollection*>)funcTable[506])(); - #else - return (ImPlotAnnotationCollection*)((delegate* unmanaged[Cdecl]<nint>)funcTable[506])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAnnotationCollectionPtr ImPlotAnnotationCollection() - { - ImPlotAnnotationCollectionPtr ret = ImPlotAnnotationCollectionNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotAnnotationCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAnnotationCollection*, void>)funcTable[507])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[507])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotAnnotationCollectionPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotAnnotationCollection self) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - DestroyNative((ImPlotAnnotationCollection*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendVNative(ImPlotAnnotationCollection* self, Vector2 pos, Vector2 off, uint bg, uint fg, byte clamp, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAnnotationCollection*, Vector2, Vector2, uint, uint, byte, byte*, nuint, void>)funcTable[508])(self, pos, off, bg, fg, clamp, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, uint, byte, nint, nuint, void>)funcTable[508])((nint)self, pos, off, bg, fg, clamp, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) - { - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendNative(ImPlotAnnotationCollection* self, Vector2 pos, Vector2 off, uint bg, uint fg, byte clamp, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAnnotationCollection*, Vector2, Vector2, uint, uint, byte, byte*, void>)funcTable[509])(self, pos, off, bg, fg, clamp, fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, uint, uint, byte, nint, void>)funcTable[509])((nint)self, pos, off, bg, fg, clamp, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) - { - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotAnnotationCollectionPtr self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative(self, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotAnnotationCollection self, Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative((ImPlotAnnotationCollection*)pself, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotAnnotationCollection* self, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAnnotationCollection*, int, byte*>)funcTable[510])(self, idx); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[510])((nint)self, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ImPlotAnnotationCollectionPtr self, int idx) - { - byte* ret = GetTextNative(self, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ImPlotAnnotationCollectionPtr self, int idx) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ref ImPlotAnnotationCollection self, int idx) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - byte* ret = GetTextNative((ImPlotAnnotationCollection*)pself, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ref ImPlotAnnotationCollection self, int idx) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotAnnotationCollection*)pself, idx)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotAnnotationCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAnnotationCollection*, void>)funcTable[511])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[511])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotAnnotationCollectionPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotAnnotationCollection self) - { - fixed (ImPlotAnnotationCollection* pself = &self) - { - ResetNative((ImPlotAnnotationCollection*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTagCollection* ImPlotTagCollectionNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTagCollection*>)funcTable[512])(); - #else - return (ImPlotTagCollection*)((delegate* unmanaged[Cdecl]<nint>)funcTable[512])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTagCollectionPtr ImPlotTagCollection() - { - ImPlotTagCollectionPtr ret = ImPlotTagCollectionNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTagCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTagCollection*, void>)funcTable[513])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[513])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotTagCollectionPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotTagCollection self) - { - fixed (ImPlotTagCollection* pself = &self) - { - DestroyNative((ImPlotTagCollection*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendVNative(ImPlotTagCollection* self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTagCollection*, ImAxis, double, uint, uint, byte*, nuint, void>)funcTable[514])(self, axis, value, bg, fg, fmt, args); - #else - ((delegate* unmanaged[Cdecl]<nint, ImAxis, double, uint, uint, nint, nuint, void>)funcTable[514])((nint)self, axis, value, bg, fg, (nint)fmt, args); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - AppendVNative(self, axis, value, bg, fg, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative(self, axis, value, bg, fg, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - AppendVNative(self, axis, value, bg, fg, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative(self, axis, value, bg, fg, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AppendV(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) - { - fixed (ImPlotTagCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendVNative((ImPlotTagCollection*)pself, axis, value, bg, fg, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AppendNative(ImPlotTagCollection* self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTagCollection*, ImAxis, double, uint, uint, byte*, void>)funcTable[515])(self, axis, value, bg, fg, fmt); - #else - ((delegate* unmanaged[Cdecl]<nint, ImAxis, double, uint, uint, nint, void>)funcTable[515])((nint)self, axis, value, bg, fg, (nint)fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - AppendNative(self, axis, value, bg, fg, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - AppendNative(self, axis, value, bg, fg, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - AppendNative(self, axis, value, bg, fg, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ImPlotTagCollectionPtr self, ImAxis axis, double value, uint bg, uint fg, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative(self, axis, value, bg, fg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ref byte fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - fixed (byte* pfmt = fmt) - { - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Append(ref ImPlotTagCollection self, ImAxis axis, double value, uint bg, uint fg, string fmt) - { - fixed (ImPlotTagCollection* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AppendNative((ImPlotTagCollection*)pself, axis, value, bg, fg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotTagCollection* self, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTagCollection*, int, byte*>)funcTable[516])(self, idx); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[516])((nint)self, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ImPlotTagCollectionPtr self, int idx) - { - byte* ret = GetTextNative(self, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ImPlotTagCollectionPtr self, int idx) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ref ImPlotTagCollection self, int idx) - { - fixed (ImPlotTagCollection* pself = &self) - { - byte* ret = GetTextNative((ImPlotTagCollection*)pself, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ref ImPlotTagCollection self, int idx) - { - fixed (ImPlotTagCollection* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTagCollection*)pself, idx)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotTagCollection* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTagCollection*, void>)funcTable[517])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[517])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotTagCollectionPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotTagCollection self) - { - fixed (ImPlotTagCollection* pself = &self) - { - ResetNative((ImPlotTagCollection*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* ImPlotTickNative(double value, byte major, int level, byte showLabel) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, byte, int, byte, ImPlotTick*>)funcTable[518])(value, major, level, showLabel); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl]<double, byte, int, byte, nint>)funcTable[518])(value, major, level, showLabel); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr ImPlotTick(double value, bool major, int level, bool showLabel) - { - ImPlotTickPtr ret = ImPlotTickNative(value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTick* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTick*, void>)funcTable[519])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[519])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotTickPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotTick self) - { - fixed (ImPlotTick* pself = &self) - { - DestroyNative((ImPlotTick*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTicker* ImPlotTickerNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTicker*>)funcTable[520])(); - #else - return (ImPlotTicker*)((delegate* unmanaged[Cdecl]<nint>)funcTable[520])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickerPtr ImPlotTicker() - { - ImPlotTickerPtr ret = ImPlotTickerNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotTicker* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTicker*, void>)funcTable[521])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[521])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotTickerPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotTicker self) - { - fixed (ImPlotTicker* pself = &self) - { - DestroyNative((ImPlotTicker*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* AddTickNative(ImPlotTicker* self, double value, byte major, int level, byte showLabel, byte* label) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTicker*, double, byte, int, byte, byte*, ImPlotTick*>)funcTable[522])(self, value, major, level, showLabel, label); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl]<nint, double, byte, int, byte, nint, nint>)funcTable[522])((nint)self, value, major, level, showLabel, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, byte* label) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, byte* label) - { - fixed (ImPlotTicker* pself = &self) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ref byte label) - { - fixed (byte* plabel = &label) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ref byte label) - { - fixed (ImPlotTicker* pself = &self) - { - fixed (byte* plabel = &label) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ReadOnlySpan<byte> label) - { - fixed (ImPlotTicker* pself = &self) - { - fixed (byte* plabel = label) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, string label) - { - fixed (ImPlotTicker* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* AddTickNative(ImPlotTicker* self, double value, byte major, int level, byte showLabel, ImPlotFormatter formatter, void* data) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTicker*, double, byte, int, byte, delegate*<double, byte*, int, void*, int>, void*, ImPlotTick*>)funcTable[523])(self, value, major, level, showLabel, (delegate*<double, byte*, int, void*, int>)Utils.GetFunctionPointerForDelegate(formatter), data); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl]<nint, double, byte, int, byte, nint, nint, nint>)funcTable[523])((nint)self, value, major, level, showLabel, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)data); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) - { - ImPlotTickPtr ret = AddTickNative(self, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) - { - fixed (ImPlotTicker* pself = &self) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotTick* AddTickNative(ImPlotTicker* self, ImPlotTick tick) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTicker*, ImPlotTick, ImPlotTick*>)funcTable[524])(self, tick); - #else - return (ImPlotTick*)((delegate* unmanaged[Cdecl]<nint, ImPlotTick, nint>)funcTable[524])((nint)self, tick); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ImPlotTickerPtr self, ImPlotTick tick) - { - ImPlotTickPtr ret = AddTickNative(self, tick); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTickPtr AddTick(ref ImPlotTicker self, ImPlotTick tick) - { - fixed (ImPlotTicker* pself = &self) - { - ImPlotTickPtr ret = AddTickNative((ImPlotTicker*)pself, tick); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotTicker* self, int idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTicker*, int, byte*>)funcTable[525])(self, idx); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[525])((nint)self, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ImPlotTickerPtr self, int idx) - { - byte* ret = GetTextNative(self, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ImPlotTickerPtr self, int idx) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ref ImPlotTicker self, int idx) - { - fixed (ImPlotTicker* pself = &self) - { - byte* ret = GetTextNative((ImPlotTicker*)pself, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ref ImPlotTicker self, int idx) - { - fixed (ImPlotTicker* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTicker*)pself, idx)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTextNative(ImPlotTicker* self, ImPlotTick tick) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTicker*, ImPlotTick, byte*>)funcTable[526])(self, tick); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, ImPlotTick, nint>)funcTable[526])((nint)self, tick); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ImPlotTickerPtr self, ImPlotTick tick) - { - byte* ret = GetTextNative(self, tick); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ImPlotTickerPtr self, ImPlotTick tick) - { - string ret = Utils.DecodeStringUTF8(GetTextNative(self, tick)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetText(ref ImPlotTicker self, ImPlotTick tick) - { - fixed (ImPlotTicker* pself = &self) - { - byte* ret = GetTextNative((ImPlotTicker*)pself, tick); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTextS(ref ImPlotTicker self, ImPlotTick tick) - { - fixed (ImPlotTicker* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTextNative((ImPlotTicker*)pself, tick)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void OverrideSizeLateNative(ImPlotTicker* self, Vector2 size) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTicker*, Vector2, void>)funcTable[527])(self, size); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, void>)funcTable[527])((nint)self, size); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OverrideSizeLate(ImPlotTickerPtr self, Vector2 size) - { - OverrideSizeLateNative(self, size); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void OverrideSizeLate(ref ImPlotTicker self, Vector2 size) - { - fixed (ImPlotTicker* pself = &self) - { - OverrideSizeLateNative((ImPlotTicker*)pself, size); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotTicker* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTicker*, void>)funcTable[528])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[528])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotTickerPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotTicker self) - { - fixed (ImPlotTicker* pself = &self) - { - ResetNative((ImPlotTicker*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int TickCountNative(ImPlotTicker* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTicker*, int>)funcTable[529])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[529])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int TickCount(ImPlotTickerPtr self) - { - int ret = TickCountNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int TickCount(ref ImPlotTicker self) - { - fixed (ImPlotTicker* pself = &self) - { - int ret = TickCountNative((ImPlotTicker*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* ImPlotAxisNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*>)funcTable[530])(); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl]<nint>)funcTable[530])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr ImPlotAxis() - { - ImPlotAxisPtr ret = ImPlotAxisNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, void>)funcTable[531])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[531])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotAxisPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - DestroyNative((ImPlotAxis*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, void>)funcTable[532])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[532])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotAxisPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - ResetNative((ImPlotAxis*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SetMinNative(ImPlotAxis* self, double min, byte force) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, double, byte, byte>)funcTable[533])(self, min, force); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, double, byte, byte>)funcTable[533])((nint)self, min, force); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMin(ImPlotAxisPtr self, double min, bool force) - { - byte ret = SetMinNative(self, min, force ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMin(ImPlotAxisPtr self, double min) - { - byte ret = SetMinNative(self, min, (byte)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMin(ref ImPlotAxis self, double min, bool force) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMinNative((ImPlotAxis*)pself, min, force ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMin(ref ImPlotAxis self, double min) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMinNative((ImPlotAxis*)pself, min, (byte)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte SetMaxNative(ImPlotAxis* self, double max, byte force) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, double, byte, byte>)funcTable[534])(self, max, force); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, double, byte, byte>)funcTable[534])((nint)self, max, force); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMax(ImPlotAxisPtr self, double max, bool force) - { - byte ret = SetMaxNative(self, max, force ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMax(ImPlotAxisPtr self, double max) - { - byte ret = SetMaxNative(self, max, (byte)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMax(ref ImPlotAxis self, double max, bool force) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMaxNative((ImPlotAxis*)pself, max, force ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool SetMax(ref ImPlotAxis self, double max) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = SetMaxNative((ImPlotAxis*)pself, max, (byte)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetRangeNative(ImPlotAxis* self, double v1, double v2) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, double, double, void>)funcTable[535])(self, v1, v2); - #else - ((delegate* unmanaged[Cdecl]<nint, double, double, void>)funcTable[535])((nint)self, v1, v2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetRange(ImPlotAxisPtr self, double v1, double v2) - { - SetRangeNative(self, v1, v2); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetRange(ref ImPlotAxis self, double v1, double v2) - { - fixed (ImPlotAxis* pself = &self) - { - SetRangeNative((ImPlotAxis*)pself, v1, v2); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetRangeNative(ImPlotAxis* self, ImPlotRange range) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, ImPlotRange, void>)funcTable[536])(self, range); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotRange, void>)funcTable[536])((nint)self, range); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetRange(ImPlotAxisPtr self, ImPlotRange range) - { - SetRangeNative(self, range); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetRange(ref ImPlotAxis self, ImPlotRange range) - { - fixed (ImPlotAxis* pself = &self) - { - SetRangeNative((ImPlotAxis*)pself, range); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAspectNative(ImPlotAxis* self, double unitPerPix) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, double, void>)funcTable[537])(self, unitPerPix); - #else - ((delegate* unmanaged[Cdecl]<nint, double, void>)funcTable[537])((nint)self, unitPerPix); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAspect(ImPlotAxisPtr self, double unitPerPix) - { - SetAspectNative(self, unitPerPix); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAspect(ref ImPlotAxis self, double unitPerPix) - { - fixed (ImPlotAxis* pself = &self) - { - SetAspectNative((ImPlotAxis*)pself, unitPerPix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float PixelSizeNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, float>)funcTable[538])(self); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, float>)funcTable[538])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float PixelSize(ImPlotAxisPtr self) - { - float ret = PixelSizeNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float PixelSize(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - float ret = PixelSizeNative((ImPlotAxis*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double GetAspectNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, double>)funcTable[539])(self); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, double>)funcTable[539])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double GetAspect(ImPlotAxisPtr self) - { - double ret = GetAspectNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double GetAspect(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - double ret = GetAspectNative((ImPlotAxis*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ConstrainNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, void>)funcTable[540])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[540])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Constrain(ImPlotAxisPtr self) - { - ConstrainNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Constrain(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - ConstrainNative((ImPlotAxis*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateTransformCacheNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, void>)funcTable[541])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[541])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateTransformCache(ImPlotAxisPtr self) - { - UpdateTransformCacheNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void UpdateTransformCache(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - UpdateTransformCacheNative((ImPlotAxis*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float PlotToPixelsNative(ImPlotAxis* self, double plt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, double, float>)funcTable[542])(self, plt); - #else - return (float)((delegate* unmanaged[Cdecl]<nint, double, float>)funcTable[542])((nint)self, plt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static float PlotToPixels(ImPlotAxisPtr self, double plt) - { - float ret = PlotToPixelsNative(self, plt); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static float PlotToPixels(ref ImPlotAxis self, double plt) - { - fixed (ImPlotAxis* pself = &self) - { - float ret = PlotToPixelsNative((ImPlotAxis*)pself, plt); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double PixelsToPlotNative(ImPlotAxis* self, float pix) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, float, double>)funcTable[543])(self, pix); - #else - return (double)((delegate* unmanaged[Cdecl]<nint, float, double>)funcTable[543])((nint)self, pix); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PixelsToPlot(ImPlotAxisPtr self, float pix) - { - double ret = PixelsToPlotNative(self, pix); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static double PixelsToPlot(ref ImPlotAxis self, float pix) - { - fixed (ImPlotAxis* pself = &self) - { - double ret = PixelsToPlotNative((ImPlotAxis*)pself, pix); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExtendFitNative(ImPlotAxis* self, double v) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, double, void>)funcTable[544])(self, v); - #else - ((delegate* unmanaged[Cdecl]<nint, double, void>)funcTable[544])((nint)self, v); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ExtendFit(ImPlotAxisPtr self, double v) - { - ExtendFitNative(self, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ExtendFit(ref ImPlotAxis self, double v) - { - fixed (ImPlotAxis* pself = &self) - { - ExtendFitNative((ImPlotAxis*)pself, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ExtendFitWithNative(ImPlotAxis* self, ImPlotAxis* alt, double v, double vAlt) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, ImPlotAxis*, double, double, void>)funcTable[545])(self, alt, v, vAlt); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, double, double, void>)funcTable[545])((nint)self, (nint)alt, v, vAlt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ExtendFitWith(ImPlotAxisPtr self, ImPlotAxisPtr alt, double v, double vAlt) - { - ExtendFitWithNative(self, alt, v, vAlt); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ExtendFitWith(ref ImPlotAxis self, ImPlotAxisPtr alt, double v, double vAlt) - { - fixed (ImPlotAxis* pself = &self) - { - ExtendFitWithNative((ImPlotAxis*)pself, alt, v, vAlt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ExtendFitWith(ImPlotAxisPtr self, ref ImPlotAxis alt, double v, double vAlt) - { - fixed (ImPlotAxis* palt = &alt) - { - ExtendFitWithNative(self, (ImPlotAxis*)palt, v, vAlt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ExtendFitWith(ref ImPlotAxis self, ref ImPlotAxis alt, double v, double vAlt) - { - fixed (ImPlotAxis* pself = &self) - { - fixed (ImPlotAxis* palt = &alt) - { - ExtendFitWithNative((ImPlotAxis*)pself, (ImPlotAxis*)palt, v, vAlt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ApplyFitNative(ImPlotAxis* self, float padding) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, float, void>)funcTable[546])(self, padding); - #else - ((delegate* unmanaged[Cdecl]<nint, float, void>)funcTable[546])((nint)self, padding); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ApplyFit(ImPlotAxisPtr self, float padding) - { - ApplyFitNative(self, padding); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ApplyFit(ref ImPlotAxis self, float padding) - { - fixed (ImPlotAxis* pself = &self) - { - ApplyFitNative((ImPlotAxis*)pself, padding); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasLabelNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[547])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[547])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasLabel(ImPlotAxisPtr self) - { - byte ret = HasLabelNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasLabel(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasLabelNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasGridLinesNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[548])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[548])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasGridLines(ImPlotAxisPtr self) - { - byte ret = HasGridLinesNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasGridLines(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasGridLinesNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasTickLabelsNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[549])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[549])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasTickLabels(ImPlotAxisPtr self) - { - byte ret = HasTickLabelsNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasTickLabels(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasTickLabelsNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasTickMarksNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[550])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[550])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasTickMarks(ImPlotAxisPtr self) - { - byte ret = HasTickMarksNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasTickMarks(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasTickMarksNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte WillRenderNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[551])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[551])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool WillRender(ImPlotAxisPtr self) - { - byte ret = WillRenderNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool WillRender(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = WillRenderNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsOppositeNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[552])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[552])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsOpposite(ImPlotAxisPtr self) - { - byte ret = IsOppositeNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsOpposite(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsOppositeNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInvertedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[553])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[553])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInverted(ImPlotAxisPtr self) - { - byte ret = IsInvertedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInverted(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInvertedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsForegroundNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[554])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[554])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsForeground(ImPlotAxisPtr self) - { - byte ret = IsForegroundNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsForeground(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsForegroundNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsAutoFittingNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[555])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[555])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsAutoFitting(ImPlotAxisPtr self) - { - byte ret = IsAutoFittingNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsAutoFitting(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsAutoFittingNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte CanInitFitNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[556])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[556])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CanInitFit(ImPlotAxisPtr self) - { - byte ret = CanInitFitNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool CanInitFit(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = CanInitFitNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsRangeLockedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[557])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[557])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsRangeLocked(ImPlotAxisPtr self) - { - byte ret = IsRangeLockedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsRangeLocked(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsRangeLockedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLockedMinNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[558])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[558])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLockedMin(ImPlotAxisPtr self) - { - byte ret = IsLockedMinNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLockedMin(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsLockedMinNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLockedMaxNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[559])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[559])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLockedMax(ImPlotAxisPtr self) - { - byte ret = IsLockedMaxNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLockedMax(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsLockedMaxNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLockedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[560])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[560])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLocked(ImPlotAxisPtr self) - { - byte ret = IsLockedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLocked(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsLockedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedMinNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[561])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[561])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLockedMin(ImPlotAxisPtr self) - { - byte ret = IsInputLockedMinNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLockedMin(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInputLockedMinNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedMaxNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[562])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[562])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLockedMax(ImPlotAxisPtr self) - { - byte ret = IsInputLockedMaxNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLockedMax(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInputLockedMaxNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[563])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[563])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLocked(ImPlotAxisPtr self) - { - byte ret = IsInputLockedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLocked(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsInputLockedNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasMenusNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte>)funcTable[564])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[564])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasMenus(ImPlotAxisPtr self) - { - byte ret = HasMenusNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasMenus(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = HasMenusNative((ImPlotAxis*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsPanLockedNative(ImPlotAxis* self, byte increasing) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, byte, byte>)funcTable[565])(self, increasing); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte, byte>)funcTable[565])((nint)self, increasing); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPanLocked(ImPlotAxisPtr self, bool increasing) - { - byte ret = IsPanLockedNative(self, increasing ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsPanLocked(ref ImPlotAxis self, bool increasing) - { - fixed (ImPlotAxis* pself = &self) - { - byte ret = IsPanLockedNative((ImPlotAxis*)pself, increasing ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PushLinksNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, void>)funcTable[566])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[566])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushLinks(ImPlotAxisPtr self) - { - PushLinksNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PushLinks(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - PushLinksNative((ImPlotAxis*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PullLinksNative(ImPlotAxis* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, void>)funcTable[567])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[567])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PullLinks(ImPlotAxisPtr self) - { - PullLinksNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PullLinks(ref ImPlotAxis self) - { - fixed (ImPlotAxis* pself = &self) - { - PullLinksNative((ImPlotAxis*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAlignmentData* ImPlotAlignmentDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAlignmentData*>)funcTable[568])(); - #else - return (ImPlotAlignmentData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[568])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAlignmentDataPtr ImPlotAlignmentData() - { - ImPlotAlignmentDataPtr ret = ImPlotAlignmentDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAlignmentData*, void>)funcTable[569])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[569])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotAlignmentDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - DestroyNative((ImPlotAlignmentData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BeginNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAlignmentData*, void>)funcTable[570])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[570])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Begin(ImPlotAlignmentDataPtr self) - { - BeginNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Begin(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - BeginNative((ImPlotAlignmentData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void UpdateNative(ImPlotAlignmentData* self, float* padA, float* padB, float* deltaA, float* deltaB) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAlignmentData*, float*, float*, float*, float*, void>)funcTable[571])(self, padA, padB, deltaA, deltaB); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, void>)funcTable[571])((nint)self, (nint)padA, (nint)padB, (nint)deltaA, (nint)deltaB); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, float* deltaA, float* deltaB) - { - UpdateNative(self, padA, padB, deltaA, deltaB); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, deltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, float* deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - UpdateNative(self, (float*)ppadA, padB, deltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, deltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (float* ppadB = &padB) - { - UpdateNative(self, padA, (float*)ppadB, deltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, deltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, deltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, deltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, padA, padB, (float*)pdeltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, (float*)pdeltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, (float*)ppadA, padB, (float*)pdeltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, padA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, padB, deltaA, (float*)pdeltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, deltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, padB, deltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, float* padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, float* padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ImPlotAlignmentDataPtr self, ref float padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative(self, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Update(ref ImPlotAlignmentData self, ref float padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* pself = &self) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - UpdateNative((ImPlotAlignmentData*)pself, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAlignmentData*, void>)funcTable[572])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[572])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void End(ImPlotAlignmentDataPtr self) - { - EndNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void End(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - EndNative((ImPlotAlignmentData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotAlignmentData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAlignmentData*, void>)funcTable[573])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[573])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotAlignmentDataPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotAlignmentData self) - { - fixed (ImPlotAlignmentData* pself = &self) - { - ResetNative((ImPlotAlignmentData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* ImPlotItemNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItem*>)funcTable[574])(); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint>)funcTable[574])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr ImPlotItem() - { - ImPlotItemPtr ret = ImPlotItemNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotItem* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotItem*, void>)funcTable[575])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[575])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotItemPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotItem self) - { - fixed (ImPlotItem* pself = &self) - { - DestroyNative((ImPlotItem*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotLegend* ImPlotLegendNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotLegend*>)funcTable[576])(); - #else - return (ImPlotLegend*)((delegate* unmanaged[Cdecl]<nint>)funcTable[576])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotLegendPtr ImPlotLegend() - { - ImPlotLegendPtr ret = ImPlotLegendNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotLegend* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotLegend*, void>)funcTable[577])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[577])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotLegendPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotLegend self) - { - fixed (ImPlotLegend* pself = &self) - { - DestroyNative((ImPlotLegend*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotLegend* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotLegend*, void>)funcTable[578])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[578])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotLegendPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotLegend self) - { - fixed (ImPlotLegend* pself = &self) - { - ResetNative((ImPlotLegend*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItemGroup* ImPlotItemGroupNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*>)funcTable[579])(); - #else - return (ImPlotItemGroup*)((delegate* unmanaged[Cdecl]<nint>)funcTable[579])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemGroupPtr ImPlotItemGroup() - { - ImPlotItemGroupPtr ret = ImPlotItemGroupNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, void>)funcTable[580])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[580])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotItemGroupPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - DestroyNative((ImPlotItemGroup*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetItemCountNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, int>)funcTable[581])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[581])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetItemCount(ImPlotItemGroupPtr self) - { - int ret = GetItemCountNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetItemCount(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - int ret = GetItemCountNative((ImPlotItemGroup*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetItemIDNative(ImPlotItemGroup* self, byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, byte*, uint>)funcTable[582])(self, labelId); - #else - return (uint)((delegate* unmanaged[Cdecl]<nint, nint, uint>)funcTable[582])((nint)self, (nint)labelId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ImPlotItemGroupPtr self, byte* labelId) - { - uint ret = GetItemIDNative(self, labelId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ref ImPlotItemGroup self, byte* labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, labelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ImPlotItemGroupPtr self, ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - uint ret = GetItemIDNative(self, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ImPlotItemGroupPtr self, ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - uint ret = GetItemIDNative(self, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ImPlotItemGroupPtr self, string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetItemIDNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ref ImPlotItemGroup self, ref byte labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = &labelId) - { - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ref ImPlotItemGroup self, ReadOnlySpan<byte> labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = labelId) - { - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetItemID(ref ImPlotItemGroup self, string labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = GetItemIDNative((ImPlotItemGroup*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemNative(ImPlotItemGroup* self, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, uint, ImPlotItem*>)funcTable[583])(self, id); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint, uint, nint>)funcTable[583])((nint)self, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, uint id) - { - ImPlotItemPtr ret = GetItemNative(self, id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, uint id) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, id); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemNative(ImPlotItemGroup* self, byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, byte*, ImPlotItem*>)funcTable[584])(self, labelId); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint, nint, nint>)funcTable[584])((nint)self, (nint)labelId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, byte* labelId) - { - ImPlotItemPtr ret = GetItemNative(self, labelId); - return ret; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs deleted file mode 100644 index 26c28f510..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.069.cs +++ /dev/null @@ -1,5043 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, byte* labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, labelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = GetItemNative(self, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ImPlotItemGroupPtr self, string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = GetItemNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ref byte labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, ReadOnlySpan<byte> labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ref ImPlotItemGroup self, string labelId) - { - fixed (ImPlotItemGroup* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = GetItemNative((ImPlotItemGroup*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetOrAddItemNative(ImPlotItemGroup* self, uint id) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, uint, ImPlotItem*>)funcTable[585])(self, id); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint, uint, nint>)funcTable[585])((nint)self, id); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetOrAddItem(ImPlotItemGroupPtr self, uint id) - { - ImPlotItemPtr ret = GetOrAddItemNative(self, id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetOrAddItem(ref ImPlotItemGroup self, uint id) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetOrAddItemNative((ImPlotItemGroup*)pself, id); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemByIndexNative(ImPlotItemGroup* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, int, ImPlotItem*>)funcTable[586])(self, i); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[586])((nint)self, i); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItemByIndex(ImPlotItemGroupPtr self, int i) - { - ImPlotItemPtr ret = GetItemByIndexNative(self, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItemByIndex(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetItemByIndexNative((ImPlotItemGroup*)pself, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetItemIndexNative(ImPlotItemGroup* self, ImPlotItem* item) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, ImPlotItem*, int>)funcTable[587])(self, item); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, nint, int>)funcTable[587])((nint)self, (nint)item); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetItemIndex(ImPlotItemGroupPtr self, ImPlotItemPtr item) - { - int ret = GetItemIndexNative(self, item); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetItemIndex(ref ImPlotItemGroup self, ImPlotItemPtr item) - { - fixed (ImPlotItemGroup* pself = &self) - { - int ret = GetItemIndexNative((ImPlotItemGroup*)pself, item); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetItemIndex(ImPlotItemGroupPtr self, ref ImPlotItem item) - { - fixed (ImPlotItem* pitem = &item) - { - int ret = GetItemIndexNative(self, (ImPlotItem*)pitem); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetItemIndex(ref ImPlotItemGroup self, ref ImPlotItem item) - { - fixed (ImPlotItemGroup* pself = &self) - { - fixed (ImPlotItem* pitem = &item) - { - int ret = GetItemIndexNative((ImPlotItemGroup*)pself, (ImPlotItem*)pitem); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetLegendCountNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, int>)funcTable[588])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[588])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetLegendCount(ImPlotItemGroupPtr self) - { - int ret = GetLegendCountNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetLegendCount(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - int ret = GetLegendCountNative((ImPlotItemGroup*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetLegendItemNative(ImPlotItemGroup* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, int, ImPlotItem*>)funcTable[589])(self, i); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[589])((nint)self, i); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetLegendItem(ImPlotItemGroupPtr self, int i) - { - ImPlotItemPtr ret = GetLegendItemNative(self, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetLegendItem(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - ImPlotItemPtr ret = GetLegendItemNative((ImPlotItemGroup*)pself, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetLegendLabelNative(ImPlotItemGroup* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, int, byte*>)funcTable[590])(self, i); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[590])((nint)self, i); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetLegendLabel(ImPlotItemGroupPtr self, int i) - { - byte* ret = GetLegendLabelNative(self, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetLegendLabelS(ImPlotItemGroupPtr self, int i) - { - string ret = Utils.DecodeStringUTF8(GetLegendLabelNative(self, i)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetLegendLabel(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - byte* ret = GetLegendLabelNative((ImPlotItemGroup*)pself, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetLegendLabelS(ref ImPlotItemGroup self, int i) - { - fixed (ImPlotItemGroup* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetLegendLabelNative((ImPlotItemGroup*)pself, i)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotItemGroup* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, void>)funcTable[591])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[591])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotItemGroupPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotItemGroup self) - { - fixed (ImPlotItemGroup* pself = &self) - { - ResetNative((ImPlotItemGroup*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPlot* ImPlotPlotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*>)funcTable[592])(); - #else - return (ImPlotPlot*)((delegate* unmanaged[Cdecl]<nint>)funcTable[592])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPlotPtr ImPlotPlot() - { - ImPlotPlotPtr ret = ImPlotPlotNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPlot*, void>)funcTable[593])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[593])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotPlotPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - DestroyNative((ImPlotPlot*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsInputLockedNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, byte>)funcTable[594])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[594])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLocked(ImPlotPlotPtr self) - { - byte ret = IsInputLockedNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsInputLocked(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - byte ret = IsInputLockedNative((ImPlotPlot*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClearTextBufferNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPlot*, void>)funcTable[595])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[595])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearTextBuffer(ImPlotPlotPtr self) - { - ClearTextBufferNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClearTextBuffer(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - ClearTextBufferNative((ImPlotPlot*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetTitleNative(ImPlotPlot* self, byte* title) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPlot*, byte*, void>)funcTable[596])(self, title); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[596])((nint)self, (nint)title); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ImPlotPlotPtr self, byte* title) - { - SetTitleNative(self, title); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ref ImPlotPlot self, byte* title) - { - fixed (ImPlotPlot* pself = &self) - { - SetTitleNative((ImPlotPlot*)pself, title); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ImPlotPlotPtr self, ref byte title) - { - fixed (byte* ptitle = &title) - { - SetTitleNative(self, (byte*)ptitle); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ImPlotPlotPtr self, ReadOnlySpan<byte> title) - { - fixed (byte* ptitle = title) - { - SetTitleNative(self, (byte*)ptitle); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ImPlotPlotPtr self, string title) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTitleNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ref ImPlotPlot self, ref byte title) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* ptitle = &title) - { - SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ref ImPlotPlot self, ReadOnlySpan<byte> title) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* ptitle = title) - { - SetTitleNative((ImPlotPlot*)pself, (byte*)ptitle); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetTitle(ref ImPlotPlot self, string title) - { - fixed (ImPlotPlot* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTitleNative((ImPlotPlot*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte HasTitleNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, byte>)funcTable[597])(self); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte>)funcTable[597])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasTitle(ImPlotPlotPtr self) - { - byte ret = HasTitleNative(self); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool HasTitle(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - byte ret = HasTitleNative((ImPlotPlot*)pself); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetTitleNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, byte*>)funcTable[598])(self); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[598])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetTitle(ImPlotPlotPtr self) - { - byte* ret = GetTitleNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTitleS(ImPlotPlotPtr self) - { - string ret = Utils.DecodeStringUTF8(GetTitleNative(self)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetTitle(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - byte* ret = GetTitleNative((ImPlotPlot*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetTitleS(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetTitleNative((ImPlotPlot*)pself)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* XAxisNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, int, ImPlotAxis*>)funcTable[599])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[599])((nint)self, i); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr XAxis(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = XAxisNative(self, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr XAxis(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = XAxisNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* ImPlotPlotXAxisConstNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, int, ImPlotAxis*>)funcTable[600])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[600])((nint)self, i); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr ImPlotPlotXAxisConst(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative(self, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr ImPlotPlotXAxisConst(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = ImPlotPlotXAxisConstNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* YAxisNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, int, ImPlotAxis*>)funcTable[601])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[601])((nint)self, i); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr YAxis(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = YAxisNative(self, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr YAxis(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = YAxisNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotAxis* ImPlotPlotYAxisConstNative(ImPlotPlot* self, int i) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, int, ImPlotAxis*>)funcTable[602])(self, i); - #else - return (ImPlotAxis*)((delegate* unmanaged[Cdecl]<nint, int, nint>)funcTable[602])((nint)self, i); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr ImPlotPlotYAxisConst(ImPlotPlotPtr self, int i) - { - ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative(self, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotAxisPtr ImPlotPlotYAxisConst(ref ImPlotPlot self, int i) - { - fixed (ImPlotPlot* pself = &self) - { - ImPlotAxisPtr ret = ImPlotPlotYAxisConstNative((ImPlotPlot*)pself, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int EnabledAxesXNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, int>)funcTable[603])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[603])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int EnabledAxesX(ImPlotPlotPtr self) - { - int ret = EnabledAxesXNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int EnabledAxesX(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - int ret = EnabledAxesXNative((ImPlotPlot*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int EnabledAxesYNative(ImPlotPlot* self) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, int>)funcTable[604])(self); - #else - return (int)((delegate* unmanaged[Cdecl]<nint, int>)funcTable[604])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int EnabledAxesY(ImPlotPlotPtr self) - { - int ret = EnabledAxesYNative(self); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int EnabledAxesY(ref ImPlotPlot self) - { - fixed (ImPlotPlot* pself = &self) - { - int ret = EnabledAxesYNative((ImPlotPlot*)pself); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetAxisLabelNative(ImPlotPlot* self, ImPlotAxis* axis, byte* label) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPlot*, ImPlotAxis*, byte*, void>)funcTable[605])(self, axis, label); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, void>)funcTable[605])((nint)self, (nint)axis, (nint)label); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, byte* label) - { - SetAxisLabelNative(self, axis, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, byte* label) - { - fixed (ImPlotPlot* pself = &self) - { - SetAxisLabelNative((ImPlotPlot*)pself, axis, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, byte* label) - { - fixed (ImPlotAxis* paxis = &axis) - { - SetAxisLabelNative(self, (ImPlotAxis*)paxis, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, byte* label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, label); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ref byte label) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative(self, axis, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative(self, axis, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ImPlotAxisPtr axis, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative(self, axis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ref byte label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, ReadOnlySpan<byte> label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative((ImPlotPlot*)pself, axis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ImPlotAxisPtr axis, string label) - { - fixed (ImPlotPlot* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative((ImPlotPlot*)pself, axis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ref byte label) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, ReadOnlySpan<byte> label) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative(self, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ImPlotPlotPtr self, ref ImPlotAxis axis, string label) - { - fixed (ImPlotAxis* paxis = &axis) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative(self, (ImPlotAxis*)paxis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ref byte label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = &label) - { - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, ReadOnlySpan<byte> label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = label) - { - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetAxisLabel(ref ImPlotPlot self, ref ImPlotAxis axis, string label) - { - fixed (ImPlotPlot* pself = &self) - { - fixed (ImPlotAxis* paxis = &axis) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetAxisLabelNative((ImPlotPlot*)pself, (ImPlotAxis*)paxis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte* GetAxisLabelNative(ImPlotPlot* self, ImPlotAxis axis) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*, ImPlotAxis, byte*>)funcTable[606])(self, axis); - #else - return (byte*)((delegate* unmanaged[Cdecl]<nint, ImPlotAxis, nint>)funcTable[606])((nint)self, axis); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetAxisLabel(ImPlotPlotPtr self, ImPlotAxis axis) - { - byte* ret = GetAxisLabelNative(self, axis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetAxisLabelS(ImPlotPlotPtr self, ImPlotAxis axis) - { - string ret = Utils.DecodeStringUTF8(GetAxisLabelNative(self, axis)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static byte* GetAxisLabel(ref ImPlotPlot self, ImPlotAxis axis) - { - fixed (ImPlotPlot* pself = &self) - { - byte* ret = GetAxisLabelNative((ImPlotPlot*)pself, axis); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static string GetAxisLabelS(ref ImPlotPlot self, ImPlotAxis axis) - { - fixed (ImPlotPlot* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetAxisLabelNative((ImPlotPlot*)pself, axis)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotSubplot* ImPlotSubplotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotSubplot*>)funcTable[607])(); - #else - return (ImPlotSubplot*)((delegate* unmanaged[Cdecl]<nint>)funcTable[607])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotSubplotPtr ImPlotSubplot() - { - ImPlotSubplotPtr ret = ImPlotSubplotNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotSubplot* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotSubplot*, void>)funcTable[608])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[608])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotSubplotPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotSubplot self) - { - fixed (ImPlotSubplot* pself = &self) - { - DestroyNative((ImPlotSubplot*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotNextPlotData* ImPlotNextPlotDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotNextPlotData*>)funcTable[609])(); - #else - return (ImPlotNextPlotData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[609])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotNextPlotDataPtr ImPlotNextPlotData() - { - ImPlotNextPlotDataPtr ret = ImPlotNextPlotDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotNextPlotData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotNextPlotData*, void>)funcTable[610])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[610])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotNextPlotDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotNextPlotData self) - { - fixed (ImPlotNextPlotData* pself = &self) - { - DestroyNative((ImPlotNextPlotData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotNextPlotData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotNextPlotData*, void>)funcTable[611])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[611])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotNextPlotDataPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotNextPlotData self) - { - fixed (ImPlotNextPlotData* pself = &self) - { - ResetNative((ImPlotNextPlotData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotNextItemData* ImPlotNextItemDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotNextItemData*>)funcTable[612])(); - #else - return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[612])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotNextItemDataPtr ImPlotNextItemData() - { - ImPlotNextItemDataPtr ret = ImPlotNextItemDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void DestroyNative(ImPlotNextItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotNextItemData*, void>)funcTable[613])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[613])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ImPlotNextItemDataPtr self) - { - DestroyNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Destroy(ref ImPlotNextItemData self) - { - fixed (ImPlotNextItemData* pself = &self) - { - DestroyNative((ImPlotNextItemData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetNative(ImPlotNextItemData* self) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotNextItemData*, void>)funcTable[614])(self); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[614])((nint)self); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ImPlotNextItemDataPtr self) - { - ResetNative(self); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Reset(ref ImPlotNextItemData self) - { - fixed (ImPlotNextItemData* pself = &self) - { - ResetNative((ImPlotNextItemData*)pself); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void InitializeNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotContext*, void>)funcTable[615])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[615])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Initialize(ImPlotContextPtr ctx) - { - InitializeNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Initialize(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - InitializeNative((ImPlotContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetCtxForNextPlotNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotContext*, void>)funcTable[616])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[616])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetCtxForNextPlot(ImPlotContextPtr ctx) - { - ResetCtxForNextPlotNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetCtxForNextPlot(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - ResetCtxForNextPlotNative((ImPlotContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetCtxForNextAlignedPlotsNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotContext*, void>)funcTable[617])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[617])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetCtxForNextAlignedPlots(ImPlotContextPtr ctx) - { - ResetCtxForNextAlignedPlotsNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetCtxForNextAlignedPlots(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - ResetCtxForNextAlignedPlotsNative((ImPlotContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ResetCtxForNextSubplotNative(ImPlotContext* ctx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotContext*, void>)funcTable[618])(ctx); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[618])((nint)ctx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetCtxForNextSubplot(ImPlotContextPtr ctx) - { - ResetCtxForNextSubplotNative(ctx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ResetCtxForNextSubplot(ref ImPlotContext ctx) - { - fixed (ImPlotContext* pctx = &ctx) - { - ResetCtxForNextSubplotNative((ImPlotContext*)pctx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPlot* GetPlotNative(byte* title) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImPlotPlot*>)funcTable[619])(title); - #else - return (ImPlotPlot*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[619])((nint)title); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPlotPtr GetPlot(byte* title) - { - ImPlotPlotPtr ret = GetPlotNative(title); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPlotPtr GetPlot(ref byte title) - { - fixed (byte* ptitle = &title) - { - ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPlotPtr GetPlot(ReadOnlySpan<byte> title) - { - fixed (byte* ptitle = title) - { - ImPlotPlotPtr ret = GetPlotNative((byte*)ptitle); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPlotPtr GetPlot(string title) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotPlotPtr ret = GetPlotNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotPlot* GetCurrentPlotNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotPlot*>)funcTable[620])(); - #else - return (ImPlotPlot*)((delegate* unmanaged[Cdecl]<nint>)funcTable[620])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotPlotPtr GetCurrentPlot() - { - ImPlotPlotPtr ret = GetCurrentPlotNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BustPlotCacheNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[621])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[621])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BustPlotCache() - { - BustPlotCacheNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowPlotContextMenuNative(ImPlotPlot* plot) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPlot*, void>)funcTable[622])(plot); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[622])((nint)plot); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowPlotContextMenu(ImPlotPlotPtr plot) - { - ShowPlotContextMenuNative(plot); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowPlotContextMenu(ref ImPlotPlot plot) - { - fixed (ImPlotPlot* pplot = &plot) - { - ShowPlotContextMenuNative((ImPlotPlot*)pplot); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SetupLockNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[623])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[623])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SetupLock() - { - SetupLockNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void SubplotNextCellNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[624])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[624])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void SubplotNextCell() - { - SubplotNextCellNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowSubplotsContextMenuNative(ImPlotSubplot* subplot) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotSubplot*, void>)funcTable[625])(subplot); - #else - ((delegate* unmanaged[Cdecl]<nint, void>)funcTable[625])((nint)subplot); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowSubplotsContextMenu(ImPlotSubplotPtr subplot) - { - ShowSubplotsContextMenuNative(subplot); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowSubplotsContextMenu(ref ImPlotSubplot subplot) - { - fixed (ImPlotSubplot* psubplot = &subplot) - { - ShowSubplotsContextMenuNative((ImPlotSubplot*)psubplot); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte BeginItemNative(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImPlotItemFlags, ImPlotCol, byte>)funcTable[626])(labelId, flags, recolorFrom); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImPlotItemFlags, ImPlotCol, byte>)funcTable[626])((nint)labelId, flags, recolorFrom); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(byte* labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - byte ret = BeginItemNative(labelId, flags, recolorFrom); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(byte* labelId, ImPlotItemFlags flags) - { - byte ret = BeginItemNative(labelId, flags, (ImPlotCol)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(byte* labelId) - { - byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(byte* labelId, ImPlotCol recolorFrom) - { - byte ret = BeginItemNative(labelId, (ImPlotItemFlags)(0), recolorFrom); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ref byte labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ref byte labelId, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = &labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ReadOnlySpan<byte> labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, recolorFrom); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ReadOnlySpan<byte> labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, flags, (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(ReadOnlySpan<byte> labelId, ImPlotCol recolorFrom) - { - fixed (byte* plabelId = labelId) - { - byte ret = BeginItemNative((byte*)plabelId, (ImPlotItemFlags)(0), recolorFrom); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(string labelId, ImPlotItemFlags flags, ImPlotCol recolorFrom) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, flags, recolorFrom); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(string labelId, ImPlotItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, flags, (ImPlotCol)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), (ImPlotCol)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool BeginItem(string labelId, ImPlotCol recolorFrom) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginItemNative(pStr0, (ImPlotItemFlags)(0), recolorFrom); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void EndItemNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[627])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[627])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void EndItem() - { - EndItemNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* RegisterOrGetItemNative(byte* labelId, ImPlotItemFlags flags, bool* justCreated) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImPlotItemFlags, bool*, ImPlotItem*>)funcTable[628])(labelId, flags, justCreated); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint, ImPlotItemFlags, nint, nint>)funcTable[628])((nint)labelId, flags, (nint)justCreated); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, bool* justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, justCreated); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)(((void*)0))); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, bool* justCreated) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan<byte> labelId, ImPlotItemFlags flags, bool* justCreated) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, justCreated); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan<byte> labelId, ImPlotItemFlags flags) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)(((void*)0))); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, bool* justCreated) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, justCreated); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(byte* labelId, ImPlotItemFlags flags, ref bool justCreated) - { - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(labelId, flags, (bool*)pjustCreated); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(ref byte labelId, ImPlotItemFlags flags, ref bool justCreated) - { - fixed (byte* plabelId = &labelId) - { - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(ReadOnlySpan<byte> labelId, ImPlotItemFlags flags, ref bool justCreated) - { - fixed (byte* plabelId = labelId) - { - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative((byte*)plabelId, flags, (bool*)pjustCreated); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr RegisterOrGetItem(string labelId, ImPlotItemFlags flags, ref bool justCreated) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (bool* pjustCreated = &justCreated) - { - ImPlotItemPtr ret = RegisterOrGetItemNative(pStr0, flags, (bool*)pjustCreated); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetItemNative(byte* labelId) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImPlotItem*>)funcTable[629])(labelId); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint, nint>)funcTable[629])((nint)labelId); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(byte* labelId) - { - ImPlotItemPtr ret = GetItemNative(labelId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItemPtr ret = GetItemNative((byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - ImPlotItemPtr ret = GetItemNative((byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetItem(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItemPtr ret = GetItemNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotItem* GetCurrentItemNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItem*>)funcTable[630])(); - #else - return (ImPlotItem*)((delegate* unmanaged[Cdecl]<nint>)funcTable[630])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotItemPtr GetCurrentItem() - { - ImPlotItemPtr ret = GetCurrentItemNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void BustItemCacheNative() - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<void>)funcTable[631])(); - #else - ((delegate* unmanaged[Cdecl]<void>)funcTable[631])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void BustItemCache() - { - BustItemCacheNative(); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AnyAxesInputLockedNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, int, byte>)funcTable[632])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[632])((nint)axes, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AnyAxesInputLocked(ImPlotAxisPtr axes, int count) - { - byte ret = AnyAxesInputLockedNative(axes, count); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AnyAxesInputLocked(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AnyAxesInputLockedNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AllAxesInputLockedNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, int, byte>)funcTable[633])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[633])((nint)axes, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AllAxesInputLocked(ImPlotAxisPtr axes, int count) - { - byte ret = AllAxesInputLockedNative(axes, count); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AllAxesInputLocked(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AllAxesInputLockedNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AnyAxesHeldNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, int, byte>)funcTable[634])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[634])((nint)axes, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AnyAxesHeld(ImPlotAxisPtr axes, int count) - { - byte ret = AnyAxesHeldNative(axes, count); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AnyAxesHeld(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AnyAxesHeldNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte AnyAxesHoveredNative(ImPlotAxis* axes, int count) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotAxis*, int, byte>)funcTable[635])(axes, count); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, int, byte>)funcTable[635])((nint)axes, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AnyAxesHovered(ImPlotAxisPtr axes, int count) - { - byte ret = AnyAxesHoveredNative(axes, count); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool AnyAxesHovered(ref ImPlotAxis axes, int count) - { - fixed (ImPlotAxis* paxes = &axes) - { - byte ret = AnyAxesHoveredNative((ImPlotAxis*)paxes, count); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte FitThisFrameNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte>)funcTable[636])(); - #else - return (byte)((delegate* unmanaged[Cdecl]<byte>)funcTable[636])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool FitThisFrame() - { - byte ret = FitThisFrameNative(); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FitPointXNative(double x) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, void>)funcTable[637])(x); - #else - ((delegate* unmanaged[Cdecl]<double, void>)funcTable[637])(x); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FitPointX(double x) - { - FitPointXNative(x); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FitPointYNative(double y) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double, void>)funcTable[638])(y); - #else - ((delegate* unmanaged[Cdecl]<double, void>)funcTable[638])(y); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FitPointY(double y) - { - FitPointYNative(y); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FitPointNative(ImPlotPoint p) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotPoint, void>)funcTable[639])(p); - #else - ((delegate* unmanaged[Cdecl]<ImPlotPoint, void>)funcTable[639])(p); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FitPoint(ImPlotPoint p) - { - FitPointNative(p); - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte RangesOverlapNative(ImPlotRange r1, ImPlotRange r2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotRange, ImPlotRange, byte>)funcTable[640])(r1, r2); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImPlotRange, ImPlotRange, byte>)funcTable[640])(r1, r2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool RangesOverlap(ImPlotRange r1, ImPlotRange r2) - { - byte ret = RangesOverlapNative(r1, r2); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowAxisContextMenuNative(ImPlotAxis* axis, ImPlotAxis* equalAxis, byte timeAllowed) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis*, ImPlotAxis*, byte, void>)funcTable[641])(axis, equalAxis, timeAllowed); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, byte, void>)funcTable[641])((nint)axis, (nint)equalAxis, timeAllowed); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis, bool timeAllowed) - { - ShowAxisContextMenuNative(axis, equalAxis, timeAllowed ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ImPlotAxisPtr equalAxis) - { - ShowAxisContextMenuNative(axis, equalAxis, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis, bool timeAllowed) - { - fixed (ImPlotAxis* paxis = &axis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, timeAllowed ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ImPlotAxisPtr equalAxis) - { - fixed (ImPlotAxis* paxis = &axis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, equalAxis, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis, bool timeAllowed) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ImPlotAxisPtr axis, ref ImPlotAxis equalAxis) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative(axis, (ImPlotAxis*)pequalAxis, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis, bool timeAllowed) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, timeAllowed ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAxisContextMenu(ref ImPlotAxis axis, ref ImPlotAxis equalAxis) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (ImPlotAxis* pequalAxis = &equalAxis) - { - ShowAxisContextMenuNative((ImPlotAxis*)paxis, (ImPlotAxis*)pequalAxis, (byte)(0)); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetLocationPosNative(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImRect, Vector2, ImPlotLocation, Vector2, void>)funcTable[642])(pOut, outerRect, innerSize, location, pad); - #else - ((delegate* unmanaged[Cdecl]<nint, ImRect, Vector2, ImPlotLocation, Vector2, void>)funcTable[642])((nint)pOut, outerRect, innerSize, location, pad); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location) - { - Vector2 ret; - GetLocationPosNative(&ret, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 GetLocationPos(ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - Vector2 ret; - GetLocationPosNative(&ret, outerRect, innerSize, location, pad); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - GetLocationPosNative(pOut, outerRect, innerSize, location, pad); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetLocationPos(Vector2* pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) - { - GetLocationPosNative(pOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location, Vector2 pad) - { - fixed (Vector2* ppOut = &pOut) - { - GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, pad); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetLocationPos(ref Vector2 pOut, ImRect outerRect, Vector2 innerSize, ImPlotLocation location) - { - fixed (Vector2* ppOut = &pOut) - { - GetLocationPosNative((Vector2*)ppOut, outerRect, innerSize, location, (Vector2)(new Vector2(0,0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcLegendSizeNative(Vector2* pOut, ImPlotItemGroup* items, Vector2 pad, Vector2 spacing, byte vertical) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, ImPlotItemGroup*, Vector2, Vector2, byte, void>)funcTable[643])(pOut, items, pad, spacing, vertical); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, Vector2, Vector2, byte, void>)funcTable[643])((nint)pOut, (nint)items, pad, spacing, vertical); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcLegendSize(ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) - { - Vector2 ret; - CalcLegendSizeNative(&ret, items, pad, spacing, vertical ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcLegendSize(Vector2* pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) - { - CalcLegendSizeNative(pOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcLegendSize(ref Vector2 pOut, ImPlotItemGroupPtr items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (Vector2* ppOut = &pOut) - { - CalcLegendSizeNative((Vector2*)ppOut, items, pad, spacing, vertical ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcLegendSize(ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (ImPlotItemGroup* pitems = &items) - { - Vector2 ret; - CalcLegendSizeNative(&ret, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcLegendSize(Vector2* pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (ImPlotItemGroup* pitems = &items) - { - CalcLegendSizeNative(pOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcLegendSize(ref Vector2 pOut, ref ImPlotItemGroup items, Vector2 pad, Vector2 spacing, bool vertical) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImPlotItemGroup* pitems = &items) - { - CalcLegendSizeNative((Vector2*)ppOut, (ImPlotItemGroup*)pitems, pad, spacing, vertical ? (byte)1 : (byte)0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowLegendEntriesNative(ImPlotItemGroup* items, ImRect legendBb, byte interactable, Vector2 pad, Vector2 spacing, byte vertical, ImDrawList* drawList) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotItemGroup*, ImRect, byte, Vector2, Vector2, byte, ImDrawList*, byte>)funcTable[644])(items, legendBb, interactable, pad, spacing, vertical, drawList); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, ImRect, byte, Vector2, Vector2, byte, nint, byte>)funcTable[644])((nint)items, legendBb, interactable, pad, spacing, vertical, (nint)drawList); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) - { - byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ImDrawListPtr drawList) - { - fixed (ImPlotItemGroup* pitems = &items) - { - byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, drawList); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowLegendEntries(ImPlotItemGroupPtr items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte ret = ShowLegendEntriesNative(items, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowLegendEntries(ref ImPlotItemGroup items, ImRect legendBb, bool interactable, Vector2 pad, Vector2 spacing, bool vertical, ref ImDrawList drawList) - { - fixed (ImPlotItemGroup* pitems = &items) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte ret = ShowLegendEntriesNative((ImPlotItemGroup*)pitems, legendBb, interactable ? (byte)1 : (byte)0, pad, spacing, vertical ? (byte)1 : (byte)0, (ImDrawList*)pdrawList); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ShowAltLegendNative(byte* titleId, byte vertical, Vector2 size, byte interactable) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, byte, Vector2, byte, void>)funcTable[645])(titleId, vertical, size, interactable); - #else - ((delegate* unmanaged[Cdecl]<nint, byte, Vector2, byte, void>)funcTable[645])((nint)titleId, vertical, size, interactable); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size, bool interactable) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(byte* titleId, bool vertical, Vector2 size) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(byte* titleId, bool vertical) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(byte* titleId) - { - ShowAltLegendNative(titleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(byte* titleId, Vector2 size) - { - ShowAltLegendNative(titleId, (byte)(1), size, (byte)(1)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(byte* titleId, bool vertical, bool interactable) - { - ShowAltLegendNative(titleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(byte* titleId, Vector2 size, bool interactable) - { - ShowAltLegendNative(titleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ref byte titleId, bool vertical, Vector2 size) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ref byte titleId, bool vertical) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ref byte titleId) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ref byte titleId, Vector2 size) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ref byte titleId, bool vertical, bool interactable) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ref byte titleId, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = &titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ReadOnlySpan<byte> titleId, bool vertical, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ReadOnlySpan<byte> titleId, bool vertical, Vector2 size) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ReadOnlySpan<byte> titleId, bool vertical) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ReadOnlySpan<byte> titleId) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ReadOnlySpan<byte> titleId, Vector2 size) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, (byte)(1)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ReadOnlySpan<byte> titleId, bool vertical, bool interactable) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(ReadOnlySpan<byte> titleId, Vector2 size, bool interactable) - { - fixed (byte* ptitleId = titleId) - { - ShowAltLegendNative((byte*)ptitleId, (byte)(1), size, interactable ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(string titleId, bool vertical, Vector2 size, bool interactable) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, interactable ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(string titleId, bool vertical, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(string titleId, bool vertical) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(string titleId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, (byte)(1), (Vector2)(new Vector2(0,0)), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(string titleId, Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, (byte)(1), size, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(string titleId, bool vertical, bool interactable) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, vertical ? (byte)1 : (byte)0, (Vector2)(new Vector2(0,0)), interactable ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ShowAltLegend(string titleId, Vector2 size, bool interactable) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (titleId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(titleId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(titleId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowAltLegendNative(pStr0, (byte)(1), size, interactable ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowLegendContextMenuNative(ImPlotLegend* legend, byte visible) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotLegend*, byte, byte>)funcTable[646])(legend, visible); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, byte, byte>)funcTable[646])((nint)legend, visible); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowLegendContextMenu(ImPlotLegendPtr legend, bool visible) - { - byte ret = ShowLegendContextMenuNative(legend, visible ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowLegendContextMenu(ref ImPlotLegend legend, bool visible) - { - fixed (ImPlotLegend* plegend = &legend) - { - byte ret = ShowLegendContextMenuNative((ImPlotLegend*)plegend, visible ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void LabelAxisValueNative(ImPlotAxis axis, double value, byte* buff, int size, byte round) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotAxis, double, byte*, int, byte, void>)funcTable[647])(axis, value, buff, size, round); - #else - ((delegate* unmanaged[Cdecl]<ImPlotAxis, double, nint, int, byte, void>)funcTable[647])(axis, value, (nint)buff, size, round); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size, bool round) - { - LabelAxisValueNative(axis, value, buff, size, round ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelAxisValue(ImPlotAxis axis, double value, byte* buff, int size) - { - LabelAxisValueNative(axis, value, buff, size, (byte)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size, bool round) - { - fixed (byte* pbuff = &buff) - { - LabelAxisValueNative(axis, value, (byte*)pbuff, size, round ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelAxisValue(ImPlotAxis axis, double value, ref byte buff, int size) - { - fixed (byte* pbuff = &buff) - { - LabelAxisValueNative(axis, value, (byte*)pbuff, size, (byte)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size, bool round) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelAxisValueNative(axis, value, pStr0, size, round ? (byte)1 : (byte)0); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void LabelAxisValue(ImPlotAxis axis, double value, ref string buff, int size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LabelAxisValueNative(axis, value, pStr0, size, (byte)(0)); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ImPlotNextItemData* GetItemDataNative() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotNextItemData*>)funcTable[648])(); - #else - return (ImPlotNextItemData*)((delegate* unmanaged[Cdecl]<nint>)funcTable[648])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotNextItemDataPtr GetItemData() - { - ImPlotNextItemDataPtr ret = GetItemDataNative(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsColorAutoNative(Vector4 col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4, byte>)funcTable[649])(col); - #else - return (byte)((delegate* unmanaged[Cdecl]<Vector4, byte>)funcTable[649])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsColorAuto(Vector4 col) - { - byte ret = IsColorAutoNative(col); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsColorAutoNative(ImPlotCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotCol, byte>)funcTable[650])(idx); - #else - return (byte)((delegate* unmanaged[Cdecl]<ImPlotCol, byte>)funcTable[650])(idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsColorAuto(ImPlotCol idx) - { - byte ret = IsColorAutoNative(idx); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetAutoColorNative(Vector4* pOut, ImPlotCol idx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, ImPlotCol, void>)funcTable[651])(pOut, idx); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotCol, void>)funcTable[651])((nint)pOut, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 GetAutoColor(ImPlotCol idx) - { - Vector4 ret; - GetAutoColorNative(&ret, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetAutoColor(Vector4* pOut, ImPlotCol idx) - { - GetAutoColorNative(pOut, idx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetAutoColor(ref Vector4 pOut, ImPlotCol idx) - { - fixed (Vector4* ppOut = &pOut) - { - GetAutoColorNative((Vector4*)ppOut, idx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void GetStyleColorVec4Native(Vector4* pOut, ImPlotCol idx) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector4*, ImPlotCol, void>)funcTable[652])(pOut, idx); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotCol, void>)funcTable[652])((nint)pOut, idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector4 GetStyleColorVec4(ImPlotCol idx) - { - Vector4 ret; - GetStyleColorVec4Native(&ret, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetStyleColorVec4(Vector4* pOut, ImPlotCol idx) - { - GetStyleColorVec4Native(pOut, idx); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void GetStyleColorVec4(ref Vector4 pOut, ImPlotCol idx) - { - fixed (Vector4* ppOut = &pOut) - { - GetStyleColorVec4Native((Vector4*)ppOut, idx); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetStyleColorU32Native(ImPlotCol idx) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotCol, uint>)funcTable[653])(idx); - #else - return (uint)((delegate* unmanaged[Cdecl]<ImPlotCol, uint>)funcTable[653])(idx); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetStyleColorU32(ImPlotCol idx) - { - uint ret = GetStyleColorU32Native(idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextVerticalNative(ImDrawList* drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, byte*, byte*, void>)funcTable[654])(drawList, pos, col, textBegin, textEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, uint, nint, nint, void>)funcTable[654])((nint)drawList, pos, col, (nint)textBegin, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - AddTextVerticalNative(drawList, pos, col, textBegin, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin) - { - AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)(((void*)0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextVerticalNative(drawList, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative(drawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ImDrawListPtr drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative(drawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextVertical(ref ImDrawList drawList, Vector2 pos, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextVerticalNative((ImDrawList*)pdrawList, pos, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTextCenteredNative(ImDrawList* drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImDrawList*, Vector2, uint, byte*, byte*, void>)funcTable[655])(drawList, topCenter, col, textBegin, textEnd); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, uint, nint, nint, void>)funcTable[655])((nint)drawList, topCenter, col, (nint)textBegin, (nint)textEnd); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, textEnd); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)(((void*)0))); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)(((void*)0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, textEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)(((void*)0))); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, byte* textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs deleted file mode 100644 index 984fbb78c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.070.cs +++ /dev/null @@ -1,5055 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, byte* textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ref byte textBegin, string textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative(drawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, ref byte textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ImDrawListPtr drawList, Vector2 topCenter, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative(drawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc<byte>(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ref byte textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, ReadOnlySpan<byte> textBegin, string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, (byte*)ptextBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = &textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTextCentered(ref ImDrawList drawList, Vector2 topCenter, uint col, string textBegin, ReadOnlySpan<byte> textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ptextEnd = textEnd) - { - AddTextCenteredNative((ImDrawList*)pdrawList, topCenter, col, pStr0, (byte*)ptextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalcTextSizeVerticalNative(Vector2* pOut, byte* text) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, byte*, void>)funcTable[656])(pOut, text); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[656])((nint)pOut, (nint)text); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeVertical(byte* text) - { - Vector2 ret; - CalcTextSizeVerticalNative(&ret, text); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeVertical(Vector2* pOut, byte* text) - { - CalcTextSizeVerticalNative(pOut, text); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeVertical(ref Vector2 pOut, byte* text) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeVerticalNative((Vector2*)ppOut, text); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeVertical(ref byte text) - { - fixed (byte* ptext = &text) - { - Vector2 ret; - CalcTextSizeVerticalNative(&ret, (byte*)ptext); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeVertical(ReadOnlySpan<byte> text) - { - fixed (byte* ptext = text) - { - Vector2 ret; - CalcTextSizeVerticalNative(&ret, (byte*)ptext); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 CalcTextSizeVertical(string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - Vector2 ret; - CalcTextSizeVerticalNative(&ret, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeVertical(ref Vector2 pOut, ref byte text) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeVerticalNative((Vector2*)ppOut, (byte*)ptext); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeVertical(ref Vector2 pOut, ReadOnlySpan<byte> text) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = text) - { - CalcTextSizeVerticalNative((Vector2*)ppOut, (byte*)ptext); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalcTextSizeVertical(ref Vector2 pOut, string text) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeVerticalNative((Vector2*)ppOut, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint CalcTextColorNative(Vector4 bg) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<Vector4, uint>)funcTable[657])(bg); - #else - return (uint)((delegate* unmanaged[Cdecl]<Vector4, uint>)funcTable[657])(bg); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint CalcTextColor(Vector4 bg) - { - uint ret = CalcTextColorNative(bg); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint CalcTextColorNative(uint bg) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint>)funcTable[658])(bg); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, uint>)funcTable[658])(bg); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint CalcTextColor(uint bg) - { - uint ret = CalcTextColorNative(bg); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint CalcHoverColorNative(uint col) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint, uint>)funcTable[659])(col); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint, uint>)funcTable[659])(col); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint CalcHoverColor(uint col) - { - uint ret = CalcHoverColorNative(col); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void ClampLabelPosNative(Vector2* pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, void>)funcTable[660])(pOut, pos, size, min, max); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, void>)funcTable[660])((nint)pOut, pos, size, min, max); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 ClampLabelPos(Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - Vector2 ret; - ClampLabelPosNative(&ret, pos, size, min, max); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClampLabelPos(Vector2* pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - ClampLabelPosNative(pOut, pos, size, min, max); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void ClampLabelPos(ref Vector2 pOut, Vector2 pos, Vector2 size, Vector2 min, Vector2 max) - { - fixed (Vector2* ppOut = &pOut) - { - ClampLabelPosNative((Vector2*)ppOut, pos, size, min, max); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint GetColormapColorU32Native(int idx, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, ImPlotColormap, uint>)funcTable[661])(idx, cmap); - #else - return (uint)((delegate* unmanaged[Cdecl]<int, ImPlotColormap, uint>)funcTable[661])(idx, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint GetColormapColorU32(int idx, ImPlotColormap cmap) - { - uint ret = GetColormapColorU32Native(idx, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint NextColormapColorU32Native() - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<uint>)funcTable[662])(); - #else - return (uint)((delegate* unmanaged[Cdecl]<uint>)funcTable[662])(); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint NextColormapColorU32() - { - uint ret = NextColormapColorU32Native(); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static uint SampleColormapU32Native(float t, ImPlotColormap cmap) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<float, ImPlotColormap, uint>)funcTable[663])(t, cmap); - #else - return (uint)((delegate* unmanaged[Cdecl]<float, ImPlotColormap, uint>)funcTable[663])(t, cmap); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static uint SampleColormapU32(float t, ImPlotColormap cmap) - { - uint ret = SampleColormapU32Native(t, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RenderColorBarNative(uint* colors, int size, ImDrawList* drawList, ImRect bounds, byte vert, byte reversed, byte continuous) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint*, int, ImDrawList*, ImRect, byte, byte, byte, void>)funcTable[664])(colors, size, drawList, bounds, vert, reversed, continuous); - #else - ((delegate* unmanaged[Cdecl]<nint, int, nint, ImRect, byte, byte, byte, void>)funcTable[664])((nint)colors, size, (nint)drawList, bounds, vert, reversed, continuous); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorBar(uint* colors, int size, ImDrawListPtr drawList, ImRect bounds, bool vert, bool reversed, bool continuous) - { - RenderColorBarNative(colors, size, drawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RenderColorBar(uint* colors, int size, ref ImDrawList drawList, ImRect bounds, bool vert, bool reversed, bool continuous) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorBarNative(colors, size, (ImDrawList*)pdrawList, bounds, vert ? (byte)1 : (byte)0, reversed ? (byte)1 : (byte)0, continuous ? (byte)1 : (byte)0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double NiceNumNative(double x, byte round) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, byte, double>)funcTable[665])(x, round); - #else - return (double)((delegate* unmanaged[Cdecl]<double, byte, double>)funcTable[665])(x, round); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double NiceNum(double x, bool round) - { - double ret = NiceNumNative(x, round ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int OrderOfMagnitudeNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, int>)funcTable[666])(val); - #else - return (int)((delegate* unmanaged[Cdecl]<double, int>)funcTable[666])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int OrderOfMagnitude(double val) - { - int ret = OrderOfMagnitudeNative(val); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int OrderToPrecisionNative(int order) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int>)funcTable[667])(order); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int>)funcTable[667])(order); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int OrderToPrecision(int order) - { - int ret = OrderToPrecisionNative(order); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int PrecisionNative(double val) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, int>)funcTable[668])(val); - #else - return (int)((delegate* unmanaged[Cdecl]<double, int>)funcTable[668])(val); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Precision(double val) - { - int ret = PrecisionNative(val); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double RoundToNative(double val, int prec) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, int, double>)funcTable[669])(val, prec); - #else - return (double)((delegate* unmanaged[Cdecl]<double, int, double>)funcTable[669])(val, prec); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double RoundTo(double val, int prec) - { - double ret = RoundToNative(val, prec); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void IntersectionNative(Vector2* pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<Vector2*, Vector2, Vector2, Vector2, Vector2, void>)funcTable[670])(pOut, a1, a2, b1, b2); - #else - ((delegate* unmanaged[Cdecl]<nint, Vector2, Vector2, Vector2, Vector2, void>)funcTable[670])((nint)pOut, a1, a2, b1, b2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Vector2 Intersection(Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - Vector2 ret; - IntersectionNative(&ret, a1, a2, b1, b2); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Intersection(Vector2* pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - IntersectionNative(pOut, a1, a2, b1, b2); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Intersection(ref Vector2 pOut, Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2) - { - fixed (Vector2* ppOut = &pOut) - { - IntersectionNative((Vector2*)ppOut, a1, a2, b1, b2); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<float>* buffer, int n, float vmin, float vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<float>*, int, float, float, void>)funcTable[671])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, float, float, void>)funcTable[671])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<float>* buffer, int n, float vmin, float vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<float> buffer, int n, float vmin, float vmax) - { - fixed (ImVector<float>* pbuffer = &buffer) - { - FillRangeNative((ImVector<float>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<double>* buffer, int n, double vmin, double vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<double>*, int, double, double, void>)funcTable[672])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, double, double, void>)funcTable[672])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<double>* buffer, int n, double vmin, double vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<double> buffer, int n, double vmin, double vmax) - { - fixed (ImVector<double>* pbuffer = &buffer) - { - FillRangeNative((ImVector<double>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<sbyte>* buffer, int n, sbyte vmin, sbyte vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<sbyte>*, int, sbyte, sbyte, void>)funcTable[673])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, sbyte, sbyte, void>)funcTable[673])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<sbyte>* buffer, int n, sbyte vmin, sbyte vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<sbyte> buffer, int n, sbyte vmin, sbyte vmax) - { - fixed (ImVector<sbyte>* pbuffer = &buffer) - { - FillRangeNative((ImVector<sbyte>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<byte>* buffer, int n, byte vmin, byte vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<byte>*, int, byte, byte, void>)funcTable[674])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, byte, byte, void>)funcTable[674])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<byte>* buffer, int n, byte vmin, byte vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<byte> buffer, int n, byte vmin, byte vmax) - { - fixed (ImVector<byte>* pbuffer = &buffer) - { - FillRangeNative((ImVector<byte>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<short>* buffer, int n, short vmin, short vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<short>*, int, short, short, void>)funcTable[675])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, short, short, void>)funcTable[675])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<short>* buffer, int n, short vmin, short vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<short> buffer, int n, short vmin, short vmax) - { - fixed (ImVector<short>* pbuffer = &buffer) - { - FillRangeNative((ImVector<short>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<ushort>* buffer, int n, ushort vmin, ushort vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<ushort>*, int, ushort, ushort, void>)funcTable[676])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ushort, ushort, void>)funcTable[676])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<ushort>* buffer, int n, ushort vmin, ushort vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<ushort> buffer, int n, ushort vmin, ushort vmax) - { - fixed (ImVector<ushort>* pbuffer = &buffer) - { - FillRangeNative((ImVector<ushort>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<int>* buffer, int n, int vmin, int vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<int>*, int, int, int, void>)funcTable[677])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, int, void>)funcTable[677])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<int>* buffer, int n, int vmin, int vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<int> buffer, int n, int vmin, int vmax) - { - fixed (ImVector<int>* pbuffer = &buffer) - { - FillRangeNative((ImVector<int>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<uint>* buffer, int n, uint vmin, uint vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<uint>*, int, uint, uint, void>)funcTable[678])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, uint, uint, void>)funcTable[678])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<uint>* buffer, int n, uint vmin, uint vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<uint> buffer, int n, uint vmin, uint vmax) - { - fixed (ImVector<uint>* pbuffer = &buffer) - { - FillRangeNative((ImVector<uint>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<long>* buffer, int n, long vmin, long vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<long>*, int, long, long, void>)funcTable[679])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, long, long, void>)funcTable[679])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<long>* buffer, int n, long vmin, long vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<long> buffer, int n, long vmin, long vmax) - { - fixed (ImVector<long>* pbuffer = &buffer) - { - FillRangeNative((ImVector<long>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FillRangeNative(ImVector<ulong>* buffer, int n, ulong vmin, ulong vmax) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImVector<ulong>*, int, ulong, ulong, void>)funcTable[680])(buffer, n, vmin, vmax); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ulong, ulong, void>)funcTable[680])((nint)buffer, n, vmin, vmax); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ImVector<ulong>* buffer, int n, ulong vmin, ulong vmax) - { - FillRangeNative(buffer, n, vmin, vmax); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FillRange(ref ImVector<ulong> buffer, int n, ulong vmin, ulong vmax) - { - fixed (ImVector<ulong>* pbuffer = &buffer) - { - FillRangeNative((ImVector<ulong>*)pbuffer, n, vmin, vmax); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<float*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[681])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[681])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (float* pvalues = &values) - { - CalculateBinsNative((float*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (float* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((float*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (float* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((float*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(float* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref float values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (float* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((float*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<double*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[682])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[682])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - fixed (double* pvalues = &values) - { - CalculateBinsNative((double*)pvalues, count, meth, range, binsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (double* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative((double*)pvalues, count, meth, range, (int*)pbinsOut, widthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pvalues = &values) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((double*)pvalues, count, meth, range, binsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(double* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ref double values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (double* pvalues = &values) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative((double*)pvalues, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<sbyte*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[683])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[683])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(sbyte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[684])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[684])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(byte* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<short*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[685])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[685])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(short* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ushort*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[686])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[686])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ushort* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<int*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[687])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[687])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(int* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<uint*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[688])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[688])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(uint* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<long*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[689])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[689])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(long* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CalculateBinsNative(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ulong*, int, ImPlotBin, ImPlotRange, int*, double*, void>)funcTable[690])(values, count, meth, range, binsOut, widthOut); - #else - ((delegate* unmanaged[Cdecl]<nint, int, ImPlotBin, ImPlotRange, nint, nint, void>)funcTable[690])((nint)values, count, meth, range, (nint)binsOut, (nint)widthOut); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, double* widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, widthOut); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, double* widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, widthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, int* binsOut, ref double widthOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, binsOut, (double*)pwidthOut); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CalculateBins(ulong* values, int count, ImPlotBin meth, ImPlotRange range, ref int binsOut, ref double widthOut) - { - fixed (int* pbinsOut = &binsOut) - { - fixed (double* pwidthOut = &widthOut) - { - CalculateBinsNative(values, count, meth, range, (int*)pbinsOut, (double*)pwidthOut); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte IsLeapYearNative(int year) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, byte>)funcTable[691])(year); - #else - return (byte)((delegate* unmanaged[Cdecl]<int, byte>)funcTable[691])(year); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool IsLeapYear(int year) - { - byte ret = IsLeapYearNative(year); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetDaysInMonthNative(int year, int month) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<int, int, int>)funcTable[692])(year, month); - #else - return (int)((delegate* unmanaged[Cdecl]<int, int, int>)funcTable[692])(year, month); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetDaysInMonth(int year, int month) - { - int ret = GetDaysInMonthNative(year, month); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MkGmtTimeNative(ImPlotTime* pOut, Tm* ptm) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, Tm*, void>)funcTable[693])(pOut, ptm); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[693])((nint)pOut, (nint)ptm); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MkGmtTime(Tm* ptm) - { - ImPlotTime ret; - MkGmtTimeNative(&ret, ptm); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkGmtTime(ImPlotTimePtr pOut, Tm* ptm) - { - MkGmtTimeNative(pOut, ptm); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkGmtTime(ref ImPlotTime pOut, Tm* ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MkGmtTimeNative((ImPlotTime*)ppOut, ptm); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MkGmtTime(ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - ImPlotTime ret; - MkGmtTimeNative(&ret, (Tm*)pptm); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkGmtTime(ImPlotTimePtr pOut, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - MkGmtTimeNative(pOut, (Tm*)pptm); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkGmtTime(ref ImPlotTime pOut, ref Tm ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - fixed (Tm* pptm = &ptm) - { - MkGmtTimeNative((ImPlotTime*)ppOut, (Tm*)pptm); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Tm* GetGmtTimeNative(ImPlotTime t, Tm* ptm) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime, Tm*, Tm*>)funcTable[694])(t, ptm); - #else - return (Tm*)((delegate* unmanaged[Cdecl]<ImPlotTime, nint, nint>)funcTable[694])(t, (nint)ptm); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Tm* GetGmtTime(ImPlotTime t, Tm* ptm) - { - Tm* ret = GetGmtTimeNative(t, ptm); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Tm* GetGmtTime(ImPlotTime t, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - Tm* ret = GetGmtTimeNative(t, (Tm*)pptm); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MkLocTimeNative(ImPlotTime* pOut, Tm* ptm) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, Tm*, void>)funcTable[695])(pOut, ptm); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, void>)funcTable[695])((nint)pOut, (nint)ptm); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MkLocTime(Tm* ptm) - { - ImPlotTime ret; - MkLocTimeNative(&ret, ptm); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkLocTime(ImPlotTimePtr pOut, Tm* ptm) - { - MkLocTimeNative(pOut, ptm); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkLocTime(ref ImPlotTime pOut, Tm* ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MkLocTimeNative((ImPlotTime*)ppOut, ptm); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MkLocTime(ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - ImPlotTime ret; - MkLocTimeNative(&ret, (Tm*)pptm); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkLocTime(ImPlotTimePtr pOut, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - MkLocTimeNative(pOut, (Tm*)pptm); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MkLocTime(ref ImPlotTime pOut, ref Tm ptm) - { - fixed (ImPlotTime* ppOut = &pOut) - { - fixed (Tm* pptm = &ptm) - { - MkLocTimeNative((ImPlotTime*)ppOut, (Tm*)pptm); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static Tm* GetLocTimeNative(ImPlotTime t, Tm* ptm) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime, Tm*, Tm*>)funcTable[696])(t, ptm); - #else - return (Tm*)((delegate* unmanaged[Cdecl]<ImPlotTime, nint, nint>)funcTable[696])(t, (nint)ptm); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static Tm* GetLocTime(ImPlotTime t, Tm* ptm) - { - Tm* ret = GetLocTimeNative(t, ptm); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static Tm* GetLocTime(ImPlotTime t, ref Tm ptm) - { - fixed (Tm* pptm = &ptm) - { - Tm* ret = GetLocTimeNative(t, (Tm*)pptm); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void MakeTimeNative(ImPlotTime* pOut, int year, int month, int day, int hour, int min, int sec, int us) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, int, int, int, int, int, int, int, void>)funcTable[697])(pOut, year, month, day, hour, min, sec, us); - #else - ((delegate* unmanaged[Cdecl]<nint, int, int, int, int, int, int, int, void>)funcTable[697])((nint)pOut, year, month, day, hour, min, sec, us); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MakeTime(int year) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MakeTime(int year, int month) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ImPlotTimePtr pOut, int year) - { - MakeTimeNative(pOut, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MakeTime(int year, int month, int day) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ImPlotTimePtr pOut, int year, int month) - { - MakeTimeNative(pOut, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MakeTime(int year, int month, int day, int hour) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, (int)(0), (int)(0), (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day) - { - MakeTimeNative(pOut, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, min, (int)(0), (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour) - { - MakeTimeNative(pOut, year, month, day, hour, (int)(0), (int)(0), (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min, int sec) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, min, sec, (int)(0)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min) - { - MakeTimeNative(pOut, year, month, day, hour, min, (int)(0), (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime MakeTime(int year, int month, int day, int hour, int min, int sec, int us) - { - ImPlotTime ret; - MakeTimeNative(&ret, year, month, day, hour, min, sec, us); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min, int sec, int us) - { - MakeTimeNative(pOut, year, month, day, hour, min, sec, us); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ImPlotTimePtr pOut, int year, int month, int day, int hour, int min, int sec) - { - MakeTimeNative(pOut, year, month, day, hour, min, sec, (int)(0)); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min, int sec, int us) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, sec, us); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min, int sec) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, sec, (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour, int min) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, min, (int)(0), (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day, int hour) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, hour, (int)(0), (int)(0), (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ref ImPlotTime pOut, int year, int month, int day) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, day, (int)(0), (int)(0), (int)(0), (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ref ImPlotTime pOut, int year, int month) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, month, (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void MakeTime(ref ImPlotTime pOut, int year) - { - fixed (ImPlotTime* ppOut = &pOut) - { - MakeTimeNative((ImPlotTime*)ppOut, year, (int)(0), (int)(1), (int)(0), (int)(0), (int)(0), (int)(0)); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int GetYearNative(ImPlotTime t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime, int>)funcTable[698])(t); - #else - return (int)((delegate* unmanaged[Cdecl]<ImPlotTime, int>)funcTable[698])(t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int GetYear(ImPlotTime t) - { - int ret = GetYearNative(t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void AddTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, ImPlotTime, ImPlotTimeUnit, int, void>)funcTable[699])(pOut, t, unit, count); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotTime, ImPlotTimeUnit, int, void>)funcTable[699])((nint)pOut, t, unit, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime AddTime(ImPlotTime t, ImPlotTimeUnit unit, int count) - { - ImPlotTime ret; - AddTimeNative(&ret, t, unit, count); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) - { - AddTimeNative(pOut, t, unit, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void AddTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit, int count) - { - fixed (ImPlotTime* ppOut = &pOut) - { - AddTimeNative((ImPlotTime*)ppOut, t, unit, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void FloorTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, ImPlotTime, ImPlotTimeUnit, void>)funcTable[700])(pOut, t, unit); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotTime, ImPlotTimeUnit, void>)funcTable[700])((nint)pOut, t, unit); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime FloorTime(ImPlotTime t, ImPlotTimeUnit unit) - { - ImPlotTime ret; - FloorTimeNative(&ret, t, unit); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FloorTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - FloorTimeNative(pOut, t, unit); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void FloorTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - fixed (ImPlotTime* ppOut = &pOut) - { - FloorTimeNative((ImPlotTime*)ppOut, t, unit); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CeilTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, ImPlotTime, ImPlotTimeUnit, void>)funcTable[701])(pOut, t, unit); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotTime, ImPlotTimeUnit, void>)funcTable[701])((nint)pOut, t, unit); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime CeilTime(ImPlotTime t, ImPlotTimeUnit unit) - { - ImPlotTime ret; - CeilTimeNative(&ret, t, unit); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CeilTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - CeilTimeNative(pOut, t, unit); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CeilTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - fixed (ImPlotTime* ppOut = &pOut) - { - CeilTimeNative((ImPlotTime*)ppOut, t, unit); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void RoundTimeNative(ImPlotTime* pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, ImPlotTime, ImPlotTimeUnit, void>)funcTable[702])(pOut, t, unit); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotTime, ImPlotTimeUnit, void>)funcTable[702])((nint)pOut, t, unit); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime RoundTime(ImPlotTime t, ImPlotTimeUnit unit) - { - ImPlotTime ret; - RoundTimeNative(&ret, t, unit); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RoundTime(ImPlotTimePtr pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - RoundTimeNative(pOut, t, unit); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void RoundTime(ref ImPlotTime pOut, ImPlotTime t, ImPlotTimeUnit unit) - { - fixed (ImPlotTime* ppOut = &pOut) - { - RoundTimeNative((ImPlotTime*)ppOut, t, unit); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void CombineDateTimeNative(ImPlotTime* pOut, ImPlotTime datePart, ImPlotTime timePart) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTime*, ImPlotTime, ImPlotTime, void>)funcTable[703])(pOut, datePart, timePart); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotTime, ImPlotTime, void>)funcTable[703])((nint)pOut, datePart, timePart); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static ImPlotTime CombineDateTime(ImPlotTime datePart, ImPlotTime timePart) - { - ImPlotTime ret; - CombineDateTimeNative(&ret, datePart, timePart); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CombineDateTime(ImPlotTimePtr pOut, ImPlotTime datePart, ImPlotTime timePart) - { - CombineDateTimeNative(pOut, datePart, timePart); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void CombineDateTime(ref ImPlotTime pOut, ImPlotTime datePart, ImPlotTime timePart) - { - fixed (ImPlotTime* ppOut = &pOut) - { - CombineDateTimeNative((ImPlotTime*)ppOut, datePart, timePart); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int FormatTimeNative(ImPlotTime t, byte* buffer, int size, ImPlotTimeFmt fmt, byte use24HrClk) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime, byte*, int, ImPlotTimeFmt, byte, int>)funcTable[704])(t, buffer, size, fmt, use24HrClk); - #else - return (int)((delegate* unmanaged[Cdecl]<ImPlotTime, nint, int, ImPlotTimeFmt, byte, int>)funcTable[704])(t, (nint)buffer, size, fmt, use24HrClk); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatTime(ImPlotTime t, byte* buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) - { - int ret = FormatTimeNative(t, buffer, size, fmt, use24HrClk ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatTime(ImPlotTime t, ref byte buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) - { - fixed (byte* pbuffer = &buffer) - { - int ret = FormatTimeNative(t, (byte*)pbuffer, size, fmt, use24HrClk ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatTime(ImPlotTime t, ref string buffer, int size, ImPlotTimeFmt fmt, bool use24HrClk) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buffer != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buffer); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = FormatTimeNative(t, pStr0, size, fmt, use24HrClk ? (byte)1 : (byte)0); - buffer = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int FormatDateNative(ImPlotTime t, byte* buffer, int size, ImPlotDateFmt fmt, byte useIso8601) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime, byte*, int, ImPlotDateFmt, byte, int>)funcTable[705])(t, buffer, size, fmt, useIso8601); - #else - return (int)((delegate* unmanaged[Cdecl]<ImPlotTime, nint, int, ImPlotDateFmt, byte, int>)funcTable[705])(t, (nint)buffer, size, fmt, useIso8601); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatDate(ImPlotTime t, byte* buffer, int size, ImPlotDateFmt fmt, bool useIso8601) - { - int ret = FormatDateNative(t, buffer, size, fmt, useIso8601 ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatDate(ImPlotTime t, ref byte buffer, int size, ImPlotDateFmt fmt, bool useIso8601) - { - fixed (byte* pbuffer = &buffer) - { - int ret = FormatDateNative(t, (byte*)pbuffer, size, fmt, useIso8601 ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatDate(ImPlotTime t, ref string buffer, int size, ImPlotDateFmt fmt, bool useIso8601) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buffer != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buffer); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = FormatDateNative(t, pStr0, size, fmt, useIso8601 ? (byte)1 : (byte)0); - buffer = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int FormatDateTimeNative(ImPlotTime t, byte* buffer, int size, ImPlotDateTimeSpec fmt) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<ImPlotTime, byte*, int, ImPlotDateTimeSpec, int>)funcTable[706])(t, buffer, size, fmt); - #else - return (int)((delegate* unmanaged[Cdecl]<ImPlotTime, nint, int, ImPlotDateTimeSpec, int>)funcTable[706])(t, (nint)buffer, size, fmt); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatDateTime(ImPlotTime t, byte* buffer, int size, ImPlotDateTimeSpec fmt) - { - int ret = FormatDateTimeNative(t, buffer, size, fmt); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatDateTime(ImPlotTime t, ref byte buffer, int size, ImPlotDateTimeSpec fmt) - { - fixed (byte* pbuffer = &buffer) - { - int ret = FormatDateTimeNative(t, (byte*)pbuffer, size, fmt); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int FormatDateTime(ImPlotTime t, ref string buffer, int size, ImPlotDateTimeSpec fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buffer != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buffer); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buffer, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = FormatDateTimeNative(t, pStr0, size, fmt); - buffer = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowDatePickerNative(byte* id, int* level, ImPlotTime* t, ImPlotTime* t1, ImPlotTime* t2) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, int*, ImPlotTime*, ImPlotTime*, ImPlotTime*, byte>)funcTable[707])(id, level, t, t1, t2); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, byte>)funcTable[707])((nint)id, (nint)level, (nint)t, (nint)t1, (nint)t2); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte ret = ShowDatePickerNative(id, level, t, t1, t2); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - byte ret = ShowDatePickerNative(id, level, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, t2); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t) - { - fixed (byte* pid = &id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, t2); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ImPlotTimePtr t) - { - fixed (byte* pid = id) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowDatePickerNative(pStr0, level, t, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowDatePickerNative(pStr0, level, t, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, t2); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ImPlotTimePtr t) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ref ImPlotTime t) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, t2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ref ImPlotTime t) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)(((void*)0)), (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ImPlotTimePtr t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, t2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)(((void*)0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, t, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ImPlotTimePtr t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, t1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs deleted file mode 100644 index ce8cab5d7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Functions/Functions.071.cs +++ /dev/null @@ -1,1357 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - public unsafe partial class ImPlot - { - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ImPlotTimePtr t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, t, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, int* level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, level, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(byte* id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(id, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ref byte id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = &id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(ReadOnlySpan<byte> id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - fixed (byte* pid = id) - { - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative((byte*)pid, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - return ret != 0; - } - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowDatePicker(string id, ref int level, ref ImPlotTime t, ref ImPlotTime t1, ref ImPlotTime t2) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* plevel = &level) - { - fixed (ImPlotTime* pt = &t) - { - fixed (ImPlotTime* pt1 = &t1) - { - fixed (ImPlotTime* pt2 = &t2) - { - byte ret = ShowDatePickerNative(pStr0, (int*)plevel, (ImPlotTime*)pt, (ImPlotTime*)pt1, (ImPlotTime*)pt2); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte ShowTimePickerNative(byte* id, ImPlotTime* t) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<byte*, ImPlotTime*, byte>)funcTable[708])(id, t); - #else - return (byte)((delegate* unmanaged[Cdecl]<nint, nint, byte>)funcTable[708])((nint)id, (nint)t); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(byte* id, ImPlotTimePtr t) - { - byte ret = ShowTimePickerNative(id, t); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(ref byte id, ImPlotTimePtr t) - { - fixed (byte* pid = &id) - { - byte ret = ShowTimePickerNative((byte*)pid, t); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(ReadOnlySpan<byte> id, ImPlotTimePtr t) - { - fixed (byte* pid = id) - { - byte ret = ShowTimePickerNative((byte*)pid, t); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(string id, ImPlotTimePtr t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowTimePickerNative(pStr0, t); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(byte* id, ref ImPlotTime t) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative(id, (ImPlotTime*)pt); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(ref byte id, ref ImPlotTime t) - { - fixed (byte* pid = &id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative((byte*)pid, (ImPlotTime*)pt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(ReadOnlySpan<byte> id, ref ImPlotTime t) - { - fixed (byte* pid = id) - { - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative((byte*)pid, (ImPlotTime*)pt); - return ret != 0; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static bool ShowTimePicker(string id, ref ImPlotTime t) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImPlotTime* pt = &t) - { - byte ret = ShowTimePickerNative(pStr0, (ImPlotTime*)pt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformForward_Log10Native(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, void*, double>)funcTable[709])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, nint, double>)funcTable[709])(v, (nint)noname1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double TransformForward_Log10(double v, void* noname1) - { - double ret = TransformForward_Log10Native(v, noname1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformInverse_Log10Native(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, void*, double>)funcTable[710])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, nint, double>)funcTable[710])(v, (nint)noname1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double TransformInverse_Log10(double v, void* noname1) - { - double ret = TransformInverse_Log10Native(v, noname1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformForward_SymLogNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, void*, double>)funcTable[711])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, nint, double>)funcTable[711])(v, (nint)noname1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double TransformForward_SymLog(double v, void* noname1) - { - double ret = TransformForward_SymLogNative(v, noname1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformInverse_SymLogNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, void*, double>)funcTable[712])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, nint, double>)funcTable[712])(v, (nint)noname1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double TransformInverse_SymLog(double v, void* noname1) - { - double ret = TransformInverse_SymLogNative(v, noname1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformForward_LogitNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, void*, double>)funcTable[713])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, nint, double>)funcTable[713])(v, (nint)noname1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double TransformForward_Logit(double v, void* noname1) - { - double ret = TransformForward_LogitNative(v, noname1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static double TransformInverse_LogitNative(double v, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, void*, double>)funcTable[714])(v, noname1); - #else - return (double)((delegate* unmanaged[Cdecl]<double, nint, double>)funcTable[714])(v, (nint)noname1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static double TransformInverse_Logit(double v, void* noname1) - { - double ret = TransformInverse_LogitNative(v, noname1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int Formatter_DefaultNative(double value, byte* buff, int size, void* data) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, byte*, int, void*, int>)funcTable[715])(value, buff, size, data); - #else - return (int)((delegate* unmanaged[Cdecl]<double, nint, int, nint, int>)funcTable[715])(value, (nint)buff, size, (nint)data); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Default(double value, byte* buff, int size, void* data) - { - int ret = Formatter_DefaultNative(value, buff, size, data); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Default(double value, ref byte buff, int size, void* data) - { - fixed (byte* pbuff = &buff) - { - int ret = Formatter_DefaultNative(value, (byte*)pbuff, size, data); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Default(double value, ref string buff, int size, void* data) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = Formatter_DefaultNative(value, pStr0, size, data); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int Formatter_LogitNative(double value, byte* buff, int size, void* noname1) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, byte*, int, void*, int>)funcTable[716])(value, buff, size, noname1); - #else - return (int)((delegate* unmanaged[Cdecl]<double, nint, int, nint, int>)funcTable[716])(value, (nint)buff, size, (nint)noname1); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Logit(double value, byte* buff, int size, void* noname1) - { - int ret = Formatter_LogitNative(value, buff, size, noname1); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Logit(double value, ref byte buff, int size, void* noname1) - { - fixed (byte* pbuff = &buff) - { - int ret = Formatter_LogitNative(value, (byte*)pbuff, size, noname1); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Logit(double value, ref string buff, int size, void* noname1) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = Formatter_LogitNative(value, pStr0, size, noname1); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static int Formatter_TimeNative(double noname1, byte* buff, int size, void* data) - { - #if NET5_0_OR_GREATER - return ((delegate* unmanaged[Cdecl]<double, byte*, int, void*, int>)funcTable[717])(noname1, buff, size, data); - #else - return (int)((delegate* unmanaged[Cdecl]<double, nint, int, nint, int>)funcTable[717])(noname1, (nint)buff, size, (nint)data); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Time(double noname1, byte* buff, int size, void* data) - { - int ret = Formatter_TimeNative(noname1, buff, size, data); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Time(double noname1, ref byte buff, int size, void* data) - { - fixed (byte* pbuff = &buff) - { - int ret = Formatter_TimeNative(noname1, (byte*)pbuff, size, data); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static int Formatter_Time(double noname1, ref string buff, int size, void* data) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buff != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buff); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buff, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = Formatter_TimeNative(noname1, pStr0, size, data); - buff = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_DefaultNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTicker*, ImPlotRange, float, byte, delegate*<double, byte*, int, void*, int>, void*, void>)funcTable[718])(ticker, range, pixels, vertical, (delegate*<double, byte*, int, void*, int>)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotRange, float, byte, nint, nint, void>)funcTable[718])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_Default(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_DefaultNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_Default(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_DefaultNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_TimeNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTicker*, ImPlotRange, float, byte, delegate*<double, byte*, int, void*, int>, void*, void>)funcTable[719])(ticker, range, pixels, vertical, (delegate*<double, byte*, int, void*, int>)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotRange, float, byte, nint, nint, void>)funcTable[719])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_Time(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_TimeNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_Time(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_TimeNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_Log10Native(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTicker*, ImPlotRange, float, byte, delegate*<double, byte*, int, void*, int>, void*, void>)funcTable[720])(ticker, range, pixels, vertical, (delegate*<double, byte*, int, void*, int>)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotRange, float, byte, nint, nint, void>)funcTable[720])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_Log10(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_Log10Native(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_Log10(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_Log10Native((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void Locator_SymLogNative(ImPlotTicker* ticker, ImPlotRange range, float pixels, byte vertical, ImPlotFormatter formatter, void* formatterData) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<ImPlotTicker*, ImPlotRange, float, byte, delegate*<double, byte*, int, void*, int>, void*, void>)funcTable[721])(ticker, range, pixels, vertical, (delegate*<double, byte*, int, void*, int>)Utils.GetFunctionPointerForDelegate(formatter), formatterData); - #else - ((delegate* unmanaged[Cdecl]<nint, ImPlotRange, float, byte, nint, nint, void>)funcTable[721])((nint)ticker, range, pixels, vertical, (nint)Utils.GetFunctionPointerForDelegate(formatter), (nint)formatterData); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_SymLog(ImPlotTickerPtr ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - Locator_SymLogNative(ticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void Locator_SymLog(ref ImPlotTicker ticker, ImPlotRange range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatterData) - { - fixed (ImPlotTicker* pticker = &ticker) - { - Locator_SymLogNative((ImPlotTicker*)pticker, range, pixels, vertical ? (byte)1 : (byte)0, formatter, formatterData); - } - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotLineGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<void*, int, ImPlotPoint*, void*>, void*, int, ImPlotLineFlags, void>)funcTable[722])(labelId, (delegate*<void*, int, ImPlotPoint*, void*>)Utils.GetFunctionPointerForDelegate(getter), data, count, flags); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, ImPlotLineFlags, void>)funcTable[722])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, flags); - #endif - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(byte* labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - PlotLineGNative(labelId, getter, data, count, flags); - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - PlotLineGNative(labelId, getter, data, count, (ImPlotLineFlags)(0)); - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(ref byte labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = &labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, (ImPlotLineFlags)(0)); - } - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(ReadOnlySpan<byte> labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - fixed (byte* plabelId = labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, flags); - } - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(ReadOnlySpan<byte> labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotLineGNative((byte*)plabelId, getter, data, count, (ImPlotLineFlags)(0)); - } - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(string labelId, ImPlotPointGetter getter, void* data, int count, ImPlotLineFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineGNative(pStr0, getter, data, count, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// ImPlotPoint getters manually wrapped<br/> - /// </summary> - public static void PlotLineG(string labelId, ImPlotPointGetter getter, void* data, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLineGNative(pStr0, getter, data, count, (ImPlotLineFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotScatterGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<void*, int, ImPlotPoint*, void*>, void*, int, void>)funcTable[723])(labelId, (delegate*<void*, int, ImPlotPoint*, void*>)Utils.GetFunctionPointerForDelegate(getter), data, count); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, void>)funcTable[723])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatterG(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - PlotScatterGNative(labelId, getter, data, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatterG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotScatterGNative((byte*)plabelId, getter, data, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatterG(ReadOnlySpan<byte> labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotScatterGNative((byte*)plabelId, getter, data, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotScatterG(string labelId, ImPlotPointGetter getter, void* data, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotScatterGNative(pStr0, getter, data, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotShadedGNative(byte* labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<void*, int, ImPlotPoint*, void*>, void*, delegate*<void*, int, ImPlotPoint*, void*>, void*, int, void>)funcTable[724])(labelId, (delegate*<void*, int, ImPlotPoint*, void*>)Utils.GetFunctionPointerForDelegate(getter1), data1, (delegate*<void*, int, ImPlotPoint*, void*>)Utils.GetFunctionPointerForDelegate(getter2), data2, count); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, nint, nint, int, void>)funcTable[724])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter1), (nint)data1, (nint)Utils.GetFunctionPointerForDelegate(getter2), (nint)data2, count); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShadedG(byte* labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - PlotShadedGNative(labelId, getter1, data1, getter2, data2, count); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShadedG(ref byte labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotShadedGNative((byte*)plabelId, getter1, data1, getter2, data2, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShadedG(ReadOnlySpan<byte> labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - fixed (byte* plabelId = labelId) - { - PlotShadedGNative((byte*)plabelId, getter1, data1, getter2, data2, count); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotShadedG(string labelId, ImPlotPointGetter getter1, void* data1, ImPlotPointGetter getter2, void* data2, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotShadedGNative(pStr0, getter1, data1, getter2, data2, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotBarsGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<void*, int, ImPlotPoint*, void*>, void*, int, double, void>)funcTable[725])(labelId, (delegate*<void*, int, ImPlotPoint*, void*>)Utils.GetFunctionPointerForDelegate(getter), data, count, width); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, double, void>)funcTable[725])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count, width); - #endif - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarsG(byte* labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - PlotBarsGNative(labelId, getter, data, count, width); - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarsG(ref byte labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - fixed (byte* plabelId = &labelId) - { - PlotBarsGNative((byte*)plabelId, getter, data, count, width); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarsG(ReadOnlySpan<byte> labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - fixed (byte* plabelId = labelId) - { - PlotBarsGNative((byte*)plabelId, getter, data, count, width); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public static void PlotBarsG(string labelId, ImPlotPointGetter getter, void* data, int count, double width) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotBarsGNative(pStr0, getter, data, count, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);<br/> - /// </summary> - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void PlotDigitalGNative(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - #if NET5_0_OR_GREATER - ((delegate* unmanaged[Cdecl]<byte*, delegate*<void*, int, ImPlotPoint*, void*>, void*, int, void>)funcTable[726])(labelId, (delegate*<void*, int, ImPlotPoint*, void*>)Utils.GetFunctionPointerForDelegate(getter), data, count); - #else - ((delegate* unmanaged[Cdecl]<nint, nint, nint, int, void>)funcTable[726])((nint)labelId, (nint)Utils.GetFunctionPointerForDelegate(getter), (nint)data, count); - #endif - } - - /// <summary> - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);<br/> - /// </summary> - public static void PlotDigitalG(byte* labelId, ImPlotPointGetter getter, void* data, int count) - { - PlotDigitalGNative(labelId, getter, data, count); - } - - /// <summary> - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);<br/> - /// </summary> - public static void PlotDigitalG(ref byte labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = &labelId) - { - PlotDigitalGNative((byte*)plabelId, getter, data, count); - } - } - - /// <summary> - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);<br/> - /// </summary> - public static void PlotDigitalG(ReadOnlySpan<byte> labelId, ImPlotPointGetter getter, void* data, int count) - { - fixed (byte* plabelId = labelId) - { - PlotDigitalGNative((byte*)plabelId, getter, data, count); - } - } - - /// <summary> - /// CIMGUI_API void ImPlot_PlotBarsHG(const char* label_id, ImPlotPoint_getter getter, void* data, int count, double height);<br/> - /// </summary> - public static void PlotDigitalG(string labelId, ImPlotPointGetter getter, void* data, int count) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotDigitalGNative(pStr0, getter, data, count); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/FormatterTimeData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/FormatterTimeData.cs deleted file mode 100644 index c93bd849f..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/FormatterTimeData.cs +++ /dev/null @@ -1,60 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct FormatterTimeData - { - /// <summary> - /// To be documented. - /// </summary> - public ImPlotTime Time; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotDateTimeSpec Spec; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserFormatter; - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* UserFormatterData; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe FormatterTimeData(ImPlotTime time = default, ImPlotDateTimeSpec spec = default, ImPlotFormatter userFormatter = default, void* userFormatterData = default) - { - Time = time; - Spec = spec; - UserFormatter = (void*)Marshal.GetFunctionPointerForDelegate(userFormatter); - UserFormatterData = userFormatterData; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAlignmentData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAlignmentData.cs deleted file mode 100644 index ff075394f..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAlignmentData.cs +++ /dev/null @@ -1,702 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotAlignmentData - { - /// <summary> - /// To be documented. - /// </summary> - public byte Vertical; - - /// <summary> - /// To be documented. - /// </summary> - public float PadA; - - /// <summary> - /// To be documented. - /// </summary> - public float PadB; - - /// <summary> - /// To be documented. - /// </summary> - public float PadAMax; - - /// <summary> - /// To be documented. - /// </summary> - public float PadBMax; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAlignmentData(bool vertical = default, float padA = default, float padB = default, float padAMax = default, float padBMax = default) - { - Vertical = vertical ? (byte)1 : (byte)0; - PadA = padA; - PadB = padB; - PadAMax = padAMax; - PadBMax = padBMax; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Begin() - { - fixed (ImPlotAlignmentData* @this = &this) - { - ImPlot.BeginNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotAlignmentData* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void End() - { - fixed (ImPlotAlignmentData* @this = &this) - { - ImPlot.EndNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotAlignmentData* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - ImPlot.UpdateNative(@this, padA, padB, deltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - ImPlot.UpdateNative(@this, (float*)ppadA, padB, deltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadB = &padB) - { - ImPlot.UpdateNative(@this, padA, (float*)ppadB, deltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, deltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(@this, padA, padB, (float*)pdeltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(@this, (float*)ppadA, padB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(@this, padA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, padA, padB, deltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, (float*)ppadA, padB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, padA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, padA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (ImPlotAlignmentData* @this = &this) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(@this, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotAlignmentDataPtr : IEquatable<ImPlotAlignmentDataPtr> - { - public ImPlotAlignmentDataPtr(ImPlotAlignmentData* handle) { Handle = handle; } - - public ImPlotAlignmentData* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotAlignmentDataPtr Null => new ImPlotAlignmentDataPtr(null); - - public ImPlotAlignmentData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotAlignmentDataPtr(ImPlotAlignmentData* handle) => new ImPlotAlignmentDataPtr(handle); - - public static implicit operator ImPlotAlignmentData*(ImPlotAlignmentDataPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotAlignmentDataPtr left, ImPlotAlignmentDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotAlignmentDataPtr left, ImPlotAlignmentDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotAlignmentDataPtr left, ImPlotAlignmentData* right) => left.Handle == right; - - public static bool operator !=(ImPlotAlignmentDataPtr left, ImPlotAlignmentData* right) => left.Handle != right; - - public bool Equals(ImPlotAlignmentDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotAlignmentDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotAlignmentDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref bool Vertical => ref Unsafe.AsRef<bool>(&Handle->Vertical); - /// <summary> - /// To be documented. - /// </summary> - public ref float PadA => ref Unsafe.AsRef<float>(&Handle->PadA); - /// <summary> - /// To be documented. - /// </summary> - public ref float PadB => ref Unsafe.AsRef<float>(&Handle->PadB); - /// <summary> - /// To be documented. - /// </summary> - public ref float PadAMax => ref Unsafe.AsRef<float>(&Handle->PadAMax); - /// <summary> - /// To be documented. - /// </summary> - public ref float PadBMax => ref Unsafe.AsRef<float>(&Handle->PadBMax); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Begin() - { - ImPlot.BeginNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void End() - { - ImPlot.EndNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, float* deltaA, float* deltaB) - { - ImPlot.UpdateNative(Handle, padA, padB, deltaA, deltaB); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, float* deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, padB, deltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (float* ppadB = &padB) - { - ImPlot.UpdateNative(Handle, padA, (float*)ppadB, deltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, float* deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, deltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(Handle, padA, padB, (float*)pdeltaA, deltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, padB, (float*)pdeltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(Handle, padA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, ref float deltaA, float* deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, deltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, padA, padB, deltaA, (float*)pdeltaB); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, padB, deltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, padA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, float* deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, deltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, padA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, float* padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, padB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(float* padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, padA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Update(ref float padA, ref float padB, ref float deltaA, ref float deltaB) - { - fixed (float* ppadA = &padA) - { - fixed (float* ppadB = &padB) - { - fixed (float* pdeltaA = &deltaA) - { - fixed (float* pdeltaB = &deltaB) - { - ImPlot.UpdateNative(Handle, (float*)ppadA, (float*)ppadB, (float*)pdeltaA, (float*)pdeltaB); - } - } - } - } - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotation.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotation.cs deleted file mode 100644 index 2b1748f63..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotation.cs +++ /dev/null @@ -1,140 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotAnnotation - { - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Pos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 Offset; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorBg; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorFg; - - /// <summary> - /// To be documented. - /// </summary> - public int TextOffset; - - /// <summary> - /// To be documented. - /// </summary> - public byte Clamp; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAnnotation(Vector2 pos = default, Vector2 offset = default, uint colorBg = default, uint colorFg = default, int textOffset = default, bool clamp = default) - { - Pos = pos; - Offset = offset; - ColorBg = colorBg; - ColorFg = colorFg; - TextOffset = textOffset; - Clamp = clamp ? (byte)1 : (byte)0; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotAnnotationPtr : IEquatable<ImPlotAnnotationPtr> - { - public ImPlotAnnotationPtr(ImPlotAnnotation* handle) { Handle = handle; } - - public ImPlotAnnotation* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotAnnotationPtr Null => new ImPlotAnnotationPtr(null); - - public ImPlotAnnotation this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotAnnotationPtr(ImPlotAnnotation* handle) => new ImPlotAnnotationPtr(handle); - - public static implicit operator ImPlotAnnotation*(ImPlotAnnotationPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotAnnotationPtr left, ImPlotAnnotationPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotAnnotationPtr left, ImPlotAnnotationPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotAnnotationPtr left, ImPlotAnnotation* right) => left.Handle == right; - - public static bool operator !=(ImPlotAnnotationPtr left, ImPlotAnnotation* right) => left.Handle != right; - - public bool Equals(ImPlotAnnotationPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotAnnotationPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotAnnotationPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&Handle->Pos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 Offset => ref Unsafe.AsRef<Vector2>(&Handle->Offset); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorBg => ref Unsafe.AsRef<uint>(&Handle->ColorBg); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorFg => ref Unsafe.AsRef<uint>(&Handle->ColorFg); - /// <summary> - /// To be documented. - /// </summary> - public ref int TextOffset => ref Unsafe.AsRef<int>(&Handle->TextOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Clamp => ref Unsafe.AsRef<bool>(&Handle->Clamp); - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotationCollection.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotationCollection.cs deleted file mode 100644 index fced27408..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAnnotationCollection.cs +++ /dev/null @@ -1,450 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotAnnotationCollection - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotAnnotation> Annotations; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer TextBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public int Size; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAnnotationCollection(ImVector<ImPlotAnnotation> annotations = default, ImGuiTextBuffer textBuffer = default, int size = default) - { - Annotations = annotations; - TextBuffer = textBuffer; - Size = size; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendVNative(@this, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(int idx) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - byte* ret = ImPlot.GetTextNative(@this, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(int idx) - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotAnnotationCollection* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotAnnotationCollectionPtr : IEquatable<ImPlotAnnotationCollectionPtr> - { - public ImPlotAnnotationCollectionPtr(ImPlotAnnotationCollection* handle) { Handle = handle; } - - public ImPlotAnnotationCollection* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotAnnotationCollectionPtr Null => new ImPlotAnnotationCollectionPtr(null); - - public ImPlotAnnotationCollection this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotAnnotationCollectionPtr(ImPlotAnnotationCollection* handle) => new ImPlotAnnotationCollectionPtr(handle); - - public static implicit operator ImPlotAnnotationCollection*(ImPlotAnnotationCollectionPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollectionPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollectionPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollection* right) => left.Handle == right; - - public static bool operator !=(ImPlotAnnotationCollectionPtr left, ImPlotAnnotationCollection* right) => left.Handle != right; - - public bool Equals(ImPlotAnnotationCollectionPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotAnnotationCollectionPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotAnnotationCollectionPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotAnnotation> Annotations => ref Unsafe.AsRef<ImVector<ImPlotAnnotation>>(&Handle->Annotations); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TextBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref int Size => ref Unsafe.AsRef<int>(&Handle->Size); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt) - { - ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, byte* fmt, nuint args) - { - ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(Vector2 pos, Vector2 off, uint bg, uint fg, bool clamp, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendVNative(Handle, pos, off, bg, fg, clamp ? (byte)1 : (byte)0, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(int idx) - { - byte* ret = ImPlot.GetTextNative(Handle, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(int idx) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs deleted file mode 100644 index fec898382..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxis.cs +++ /dev/null @@ -1,1489 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotAxis - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotAxisFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotAxisFlags PreviousFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotRange Range; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotCond RangeCond; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotScale Scale; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotRange FitExtents; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* OrthoAxis; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotRange ConstraintRange; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotRange ConstraintZoom; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotTicker Ticker; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* Formatter; - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* FormatterData; - - /// <summary> - /// To be documented. - /// </summary> - public byte FormatSpec_0; - public byte FormatSpec_1; - public byte FormatSpec_2; - public byte FormatSpec_3; - public byte FormatSpec_4; - public byte FormatSpec_5; - public byte FormatSpec_6; - public byte FormatSpec_7; - public byte FormatSpec_8; - public byte FormatSpec_9; - public byte FormatSpec_10; - public byte FormatSpec_11; - public byte FormatSpec_12; - public byte FormatSpec_13; - public byte FormatSpec_14; - public byte FormatSpec_15; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* Locator; - /// <summary> - /// To be documented. - /// </summary> - public unsafe double* LinkedMin; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double* LinkedMax; - - /// <summary> - /// To be documented. - /// </summary> - public int PickerLevel; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotTime PickerTimeMin; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotTime PickerTimeMax; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* TransformForward; - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* TransformInverse; - /// <summary> - /// To be documented. - /// </summary> - public unsafe void* TransformData; - - /// <summary> - /// To be documented. - /// </summary> - public float PixelMin; - - /// <summary> - /// To be documented. - /// </summary> - public float PixelMax; - - /// <summary> - /// To be documented. - /// </summary> - public double ScaleMin; - - /// <summary> - /// To be documented. - /// </summary> - public double ScaleMax; - - /// <summary> - /// To be documented. - /// </summary> - public double ScaleToPixel; - - /// <summary> - /// To be documented. - /// </summary> - public float Datum1; - - /// <summary> - /// To be documented. - /// </summary> - public float Datum2; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect HoverRect; - - /// <summary> - /// To be documented. - /// </summary> - public int LabelOffset; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorMaj; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorMin; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorTick; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorTxt; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorBg; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorHov; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorAct; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorHiLi; - - /// <summary> - /// To be documented. - /// </summary> - public byte Enabled; - - /// <summary> - /// To be documented. - /// </summary> - public byte Vertical; - - /// <summary> - /// To be documented. - /// </summary> - public byte FitThisFrame; - - /// <summary> - /// To be documented. - /// </summary> - public byte HasRange; - - /// <summary> - /// To be documented. - /// </summary> - public byte HasFormatSpec; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowDefaultTicks; - - /// <summary> - /// To be documented. - /// </summary> - public byte Hovered; - - /// <summary> - /// To be documented. - /// </summary> - public byte Held; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis(uint id = default, ImPlotAxisFlags flags = default, ImPlotAxisFlags previousFlags = default, ImPlotRange range = default, ImPlotCond rangeCond = default, ImPlotScale scale = default, ImPlotRange fitExtents = default, ImPlotAxis* orthoAxis = default, ImPlotRange constraintRange = default, ImPlotRange constraintZoom = default, ImPlotTicker ticker = default, ImPlotFormatter formatter = default, void* formatterData = default, byte* formatSpec = default, ImPlotLocator locator = default, double* linkedMin = default, double* linkedMax = default, int pickerLevel = default, ImPlotTime pickerTimeMin = default, ImPlotTime pickerTimeMax = default, ImPlotTransform transformForward = default, ImPlotTransform transformInverse = default, void* transformData = default, float pixelMin = default, float pixelMax = default, double scaleMin = default, double scaleMax = default, double scaleToPixel = default, float datum1 = default, float datum2 = default, ImRect hoverRect = default, int labelOffset = default, uint colorMaj = default, uint colorMin = default, uint colorTick = default, uint colorTxt = default, uint colorBg = default, uint colorHov = default, uint colorAct = default, uint colorHiLi = default, bool enabled = default, bool vertical = default, bool fitThisFrame = default, bool hasRange = default, bool hasFormatSpec = default, bool showDefaultTicks = default, bool hovered = default, bool held = default) - { - ID = id; - Flags = flags; - PreviousFlags = previousFlags; - Range = range; - RangeCond = rangeCond; - Scale = scale; - FitExtents = fitExtents; - OrthoAxis = orthoAxis; - ConstraintRange = constraintRange; - ConstraintZoom = constraintZoom; - Ticker = ticker; - Formatter = (void*)Marshal.GetFunctionPointerForDelegate(formatter); - FormatterData = formatterData; - if (formatSpec != default(byte*)) - { - FormatSpec_0 = formatSpec[0]; - FormatSpec_1 = formatSpec[1]; - FormatSpec_2 = formatSpec[2]; - FormatSpec_3 = formatSpec[3]; - FormatSpec_4 = formatSpec[4]; - FormatSpec_5 = formatSpec[5]; - FormatSpec_6 = formatSpec[6]; - FormatSpec_7 = formatSpec[7]; - FormatSpec_8 = formatSpec[8]; - FormatSpec_9 = formatSpec[9]; - FormatSpec_10 = formatSpec[10]; - FormatSpec_11 = formatSpec[11]; - FormatSpec_12 = formatSpec[12]; - FormatSpec_13 = formatSpec[13]; - FormatSpec_14 = formatSpec[14]; - FormatSpec_15 = formatSpec[15]; - } - Locator = (void*)Marshal.GetFunctionPointerForDelegate(locator); - LinkedMin = linkedMin; - LinkedMax = linkedMax; - PickerLevel = pickerLevel; - PickerTimeMin = pickerTimeMin; - PickerTimeMax = pickerTimeMax; - TransformForward = (void*)Marshal.GetFunctionPointerForDelegate(transformForward); - TransformInverse = (void*)Marshal.GetFunctionPointerForDelegate(transformInverse); - TransformData = transformData; - PixelMin = pixelMin; - PixelMax = pixelMax; - ScaleMin = scaleMin; - ScaleMax = scaleMax; - ScaleToPixel = scaleToPixel; - Datum1 = datum1; - Datum2 = datum2; - HoverRect = hoverRect; - LabelOffset = labelOffset; - ColorMaj = colorMaj; - ColorMin = colorMin; - ColorTick = colorTick; - ColorTxt = colorTxt; - ColorBg = colorBg; - ColorHov = colorHov; - ColorAct = colorAct; - ColorHiLi = colorHiLi; - Enabled = enabled ? (byte)1 : (byte)0; - Vertical = vertical ? (byte)1 : (byte)0; - FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; - HasRange = hasRange ? (byte)1 : (byte)0; - HasFormatSpec = hasFormatSpec ? (byte)1 : (byte)0; - ShowDefaultTicks = showDefaultTicks ? (byte)1 : (byte)0; - Hovered = hovered ? (byte)1 : (byte)0; - Held = held ? (byte)1 : (byte)0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis(uint id = default, ImPlotAxisFlags flags = default, ImPlotAxisFlags previousFlags = default, ImPlotRange range = default, ImPlotCond rangeCond = default, ImPlotScale scale = default, ImPlotRange fitExtents = default, ImPlotAxis* orthoAxis = default, ImPlotRange constraintRange = default, ImPlotRange constraintZoom = default, ImPlotTicker ticker = default, ImPlotFormatter formatter = default, void* formatterData = default, Span<byte> formatSpec = default, ImPlotLocator locator = default, double* linkedMin = default, double* linkedMax = default, int pickerLevel = default, ImPlotTime pickerTimeMin = default, ImPlotTime pickerTimeMax = default, ImPlotTransform transformForward = default, ImPlotTransform transformInverse = default, void* transformData = default, float pixelMin = default, float pixelMax = default, double scaleMin = default, double scaleMax = default, double scaleToPixel = default, float datum1 = default, float datum2 = default, ImRect hoverRect = default, int labelOffset = default, uint colorMaj = default, uint colorMin = default, uint colorTick = default, uint colorTxt = default, uint colorBg = default, uint colorHov = default, uint colorAct = default, uint colorHiLi = default, bool enabled = default, bool vertical = default, bool fitThisFrame = default, bool hasRange = default, bool hasFormatSpec = default, bool showDefaultTicks = default, bool hovered = default, bool held = default) - { - ID = id; - Flags = flags; - PreviousFlags = previousFlags; - Range = range; - RangeCond = rangeCond; - Scale = scale; - FitExtents = fitExtents; - OrthoAxis = orthoAxis; - ConstraintRange = constraintRange; - ConstraintZoom = constraintZoom; - Ticker = ticker; - Formatter = (void*)Marshal.GetFunctionPointerForDelegate(formatter); - FormatterData = formatterData; - if (formatSpec != default(Span<byte>)) - { - FormatSpec_0 = formatSpec[0]; - FormatSpec_1 = formatSpec[1]; - FormatSpec_2 = formatSpec[2]; - FormatSpec_3 = formatSpec[3]; - FormatSpec_4 = formatSpec[4]; - FormatSpec_5 = formatSpec[5]; - FormatSpec_6 = formatSpec[6]; - FormatSpec_7 = formatSpec[7]; - FormatSpec_8 = formatSpec[8]; - FormatSpec_9 = formatSpec[9]; - FormatSpec_10 = formatSpec[10]; - FormatSpec_11 = formatSpec[11]; - FormatSpec_12 = formatSpec[12]; - FormatSpec_13 = formatSpec[13]; - FormatSpec_14 = formatSpec[14]; - FormatSpec_15 = formatSpec[15]; - } - Locator = (void*)Marshal.GetFunctionPointerForDelegate(locator); - LinkedMin = linkedMin; - LinkedMax = linkedMax; - PickerLevel = pickerLevel; - PickerTimeMin = pickerTimeMin; - PickerTimeMax = pickerTimeMax; - TransformForward = (void*)Marshal.GetFunctionPointerForDelegate(transformForward); - TransformInverse = (void*)Marshal.GetFunctionPointerForDelegate(transformInverse); - TransformData = transformData; - PixelMin = pixelMin; - PixelMax = pixelMax; - ScaleMin = scaleMin; - ScaleMax = scaleMax; - ScaleToPixel = scaleToPixel; - Datum1 = datum1; - Datum2 = datum2; - HoverRect = hoverRect; - LabelOffset = labelOffset; - ColorMaj = colorMaj; - ColorMin = colorMin; - ColorTick = colorTick; - ColorTxt = colorTxt; - ColorBg = colorBg; - ColorHov = colorHov; - ColorAct = colorAct; - ColorHiLi = colorHiLi; - Enabled = enabled ? (byte)1 : (byte)0; - Vertical = vertical ? (byte)1 : (byte)0; - FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; - HasRange = hasRange ? (byte)1 : (byte)0; - HasFormatSpec = hasFormatSpec ? (byte)1 : (byte)0; - ShowDefaultTicks = showDefaultTicks ? (byte)1 : (byte)0; - Hovered = hovered ? (byte)1 : (byte)0; - Held = held ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ApplyFit(float padding) - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.ApplyFitNative(@this, padding); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool CanInitFit() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.CanInitFitNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Constrain() - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.ConstrainNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ExtendFit(double v) - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.ExtendFitNative(@this, v); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ExtendFitWith(ImPlotAxis* alt, double v, double vAlt) - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.ExtendFitWithNative(@this, alt, v, vAlt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ExtendFitWith(ref ImPlotAxis alt, double v, double vAlt) - { - fixed (ImPlotAxis* @this = &this) - { - fixed (ImPlotAxis* palt = &alt) - { - ImPlot.ExtendFitWithNative(@this, (ImPlotAxis*)palt, v, vAlt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double GetAspect() - { - fixed (ImPlotAxis* @this = &this) - { - double ret = ImPlot.GetAspectNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasGridLines() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.HasGridLinesNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasLabel() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.HasLabelNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasMenus() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.HasMenusNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasTickLabels() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.HasTickLabelsNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasTickMarks() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.HasTickMarksNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsAutoFitting() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsAutoFittingNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsForeground() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsForegroundNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLocked() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsInputLockedNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLockedMax() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsInputLockedMaxNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLockedMin() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsInputLockedMinNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInverted() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsInvertedNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLocked() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsLockedNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLockedMax() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsLockedMaxNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLockedMin() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsLockedMinNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsOpposite() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsOppositeNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsPanLocked(bool increasing) - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsPanLockedNative(@this, increasing ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsRangeLocked() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.IsRangeLockedNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float PixelSize() - { - fixed (ImPlotAxis* @this = &this) - { - float ret = ImPlot.PixelSizeNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double PixelsToPlot(float pix) - { - fixed (ImPlotAxis* @this = &this) - { - double ret = ImPlot.PixelsToPlotNative(@this, pix); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float PlotToPixels(double plt) - { - fixed (ImPlotAxis* @this = &this) - { - float ret = ImPlot.PlotToPixelsNative(@this, plt); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PullLinks() - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.PullLinksNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushLinks() - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.PushLinksNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAspect(double unitPerPix) - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.SetAspectNative(@this, unitPerPix); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMax(double max, bool force) - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.SetMaxNative(@this, max, force ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMax(double max) - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.SetMaxNative(@this, max, (byte)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMin(double min, bool force) - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.SetMinNative(@this, min, force ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMin(double min) - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.SetMinNative(@this, min, (byte)(0)); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetRange(double v1, double v2) - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.SetRangeNative(@this, v1, v2); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetRange(ImPlotRange range) - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.SetRangeNative(@this, range); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void UpdateTransformCache() - { - fixed (ImPlotAxis* @this = &this) - { - ImPlot.UpdateTransformCacheNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool WillRender() - { - fixed (ImPlotAxis* @this = &this) - { - byte ret = ImPlot.WillRenderNative(@this); - return ret != 0; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotAxisPtr : IEquatable<ImPlotAxisPtr> - { - public ImPlotAxisPtr(ImPlotAxis* handle) { Handle = handle; } - - public ImPlotAxis* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotAxisPtr Null => new ImPlotAxisPtr(null); - - public ImPlotAxis this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotAxisPtr(ImPlotAxis* handle) => new ImPlotAxisPtr(handle); - - public static implicit operator ImPlotAxis*(ImPlotAxisPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotAxisPtr left, ImPlotAxisPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotAxisPtr left, ImPlotAxisPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotAxisPtr left, ImPlotAxis* right) => left.Handle == right; - - public static bool operator !=(ImPlotAxisPtr left, ImPlotAxis* right) => left.Handle != right; - - public bool Equals(ImPlotAxisPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotAxisPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotAxisPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotAxisFlags Flags => ref Unsafe.AsRef<ImPlotAxisFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotAxisFlags PreviousFlags => ref Unsafe.AsRef<ImPlotAxisFlags>(&Handle->PreviousFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotRange Range => ref Unsafe.AsRef<ImPlotRange>(&Handle->Range); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotCond RangeCond => ref Unsafe.AsRef<ImPlotCond>(&Handle->RangeCond); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotScale Scale => ref Unsafe.AsRef<ImPlotScale>(&Handle->Scale); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotRange FitExtents => ref Unsafe.AsRef<ImPlotRange>(&Handle->FitExtents); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotAxisPtr OrthoAxis => ref Unsafe.AsRef<ImPlotAxisPtr>(&Handle->OrthoAxis); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotRange ConstraintRange => ref Unsafe.AsRef<ImPlotRange>(&Handle->ConstraintRange); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotRange ConstraintZoom => ref Unsafe.AsRef<ImPlotRange>(&Handle->ConstraintZoom); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotTicker Ticker => ref Unsafe.AsRef<ImPlotTicker>(&Handle->Ticker); - /// <summary> - /// To be documented. - /// </summary> - public void* Formatter { get => Handle->Formatter; set => Handle->Formatter = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* FormatterData { get => Handle->FormatterData; set => Handle->FormatterData = value; } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<byte> FormatSpec - - { - get - { - return new Span<byte>(&Handle->FormatSpec_0, 16); - } - } - /// <summary> - /// To be documented. - /// </summary> - public void* Locator { get => Handle->Locator; set => Handle->Locator = value; } - /// <summary> - /// To be documented. - /// </summary> - public double* LinkedMin { get => Handle->LinkedMin; set => Handle->LinkedMin = value; } - /// <summary> - /// To be documented. - /// </summary> - public double* LinkedMax { get => Handle->LinkedMax; set => Handle->LinkedMax = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref int PickerLevel => ref Unsafe.AsRef<int>(&Handle->PickerLevel); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotTime PickerTimeMin => ref Unsafe.AsRef<ImPlotTime>(&Handle->PickerTimeMin); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotTime PickerTimeMax => ref Unsafe.AsRef<ImPlotTime>(&Handle->PickerTimeMax); - /// <summary> - /// To be documented. - /// </summary> - public void* TransformForward { get => Handle->TransformForward; set => Handle->TransformForward = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* TransformInverse { get => Handle->TransformInverse; set => Handle->TransformInverse = value; } - /// <summary> - /// To be documented. - /// </summary> - public void* TransformData { get => Handle->TransformData; set => Handle->TransformData = value; } - /// <summary> - /// To be documented. - /// </summary> - public ref float PixelMin => ref Unsafe.AsRef<float>(&Handle->PixelMin); - /// <summary> - /// To be documented. - /// </summary> - public ref float PixelMax => ref Unsafe.AsRef<float>(&Handle->PixelMax); - /// <summary> - /// To be documented. - /// </summary> - public ref double ScaleMin => ref Unsafe.AsRef<double>(&Handle->ScaleMin); - /// <summary> - /// To be documented. - /// </summary> - public ref double ScaleMax => ref Unsafe.AsRef<double>(&Handle->ScaleMax); - /// <summary> - /// To be documented. - /// </summary> - public ref double ScaleToPixel => ref Unsafe.AsRef<double>(&Handle->ScaleToPixel); - /// <summary> - /// To be documented. - /// </summary> - public ref float Datum1 => ref Unsafe.AsRef<float>(&Handle->Datum1); - /// <summary> - /// To be documented. - /// </summary> - public ref float Datum2 => ref Unsafe.AsRef<float>(&Handle->Datum2); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect HoverRect => ref Unsafe.AsRef<ImRect>(&Handle->HoverRect); - /// <summary> - /// To be documented. - /// </summary> - public ref int LabelOffset => ref Unsafe.AsRef<int>(&Handle->LabelOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorMaj => ref Unsafe.AsRef<uint>(&Handle->ColorMaj); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorMin => ref Unsafe.AsRef<uint>(&Handle->ColorMin); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorTick => ref Unsafe.AsRef<uint>(&Handle->ColorTick); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorTxt => ref Unsafe.AsRef<uint>(&Handle->ColorTxt); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorBg => ref Unsafe.AsRef<uint>(&Handle->ColorBg); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorHov => ref Unsafe.AsRef<uint>(&Handle->ColorHov); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorAct => ref Unsafe.AsRef<uint>(&Handle->ColorAct); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorHiLi => ref Unsafe.AsRef<uint>(&Handle->ColorHiLi); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Enabled => ref Unsafe.AsRef<bool>(&Handle->Enabled); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Vertical => ref Unsafe.AsRef<bool>(&Handle->Vertical); - /// <summary> - /// To be documented. - /// </summary> - public ref bool FitThisFrame => ref Unsafe.AsRef<bool>(&Handle->FitThisFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HasRange => ref Unsafe.AsRef<bool>(&Handle->HasRange); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HasFormatSpec => ref Unsafe.AsRef<bool>(&Handle->HasFormatSpec); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowDefaultTicks => ref Unsafe.AsRef<bool>(&Handle->ShowDefaultTicks); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Hovered => ref Unsafe.AsRef<bool>(&Handle->Hovered); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Held => ref Unsafe.AsRef<bool>(&Handle->Held); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ApplyFit(float padding) - { - ImPlot.ApplyFitNative(Handle, padding); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool CanInitFit() - { - byte ret = ImPlot.CanInitFitNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Constrain() - { - ImPlot.ConstrainNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ExtendFit(double v) - { - ImPlot.ExtendFitNative(Handle, v); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ExtendFitWith(ImPlotAxisPtr alt, double v, double vAlt) - { - ImPlot.ExtendFitWithNative(Handle, alt, v, vAlt); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ExtendFitWith(ref ImPlotAxis alt, double v, double vAlt) - { - fixed (ImPlotAxis* palt = &alt) - { - ImPlot.ExtendFitWithNative(Handle, (ImPlotAxis*)palt, v, vAlt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double GetAspect() - { - double ret = ImPlot.GetAspectNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasGridLines() - { - byte ret = ImPlot.HasGridLinesNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasLabel() - { - byte ret = ImPlot.HasLabelNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasMenus() - { - byte ret = ImPlot.HasMenusNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasTickLabels() - { - byte ret = ImPlot.HasTickLabelsNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasTickMarks() - { - byte ret = ImPlot.HasTickMarksNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsAutoFitting() - { - byte ret = ImPlot.IsAutoFittingNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsForeground() - { - byte ret = ImPlot.IsForegroundNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLocked() - { - byte ret = ImPlot.IsInputLockedNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLockedMax() - { - byte ret = ImPlot.IsInputLockedMaxNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLockedMin() - { - byte ret = ImPlot.IsInputLockedMinNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInverted() - { - byte ret = ImPlot.IsInvertedNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLocked() - { - byte ret = ImPlot.IsLockedNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLockedMax() - { - byte ret = ImPlot.IsLockedMaxNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsLockedMin() - { - byte ret = ImPlot.IsLockedMinNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsOpposite() - { - byte ret = ImPlot.IsOppositeNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsPanLocked(bool increasing) - { - byte ret = ImPlot.IsPanLockedNative(Handle, increasing ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsRangeLocked() - { - byte ret = ImPlot.IsRangeLockedNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float PixelSize() - { - float ret = ImPlot.PixelSizeNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double PixelsToPlot(float pix) - { - double ret = ImPlot.PixelsToPlotNative(Handle, pix); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe float PlotToPixels(double plt) - { - float ret = ImPlot.PlotToPixelsNative(Handle, plt); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PullLinks() - { - ImPlot.PullLinksNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void PushLinks() - { - ImPlot.PushLinksNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAspect(double unitPerPix) - { - ImPlot.SetAspectNative(Handle, unitPerPix); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMax(double max, bool force) - { - byte ret = ImPlot.SetMaxNative(Handle, max, force ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMax(double max) - { - byte ret = ImPlot.SetMaxNative(Handle, max, (byte)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMin(double min, bool force) - { - byte ret = ImPlot.SetMinNative(Handle, min, force ? (byte)1 : (byte)0); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool SetMin(double min) - { - byte ret = ImPlot.SetMinNative(Handle, min, (byte)(0)); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetRange(double v1, double v2) - { - ImPlot.SetRangeNative(Handle, v1, v2); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetRange(ImPlotRange range) - { - ImPlot.SetRangeNative(Handle, range); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void UpdateTransformCache() - { - ImPlot.UpdateTransformCacheNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool WillRender() - { - byte ret = ImPlot.WillRenderNative(Handle); - return ret != 0; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxisColor.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxisColor.cs deleted file mode 100644 index 182a908a2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotAxisColor.cs +++ /dev/null @@ -1,30 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotAxisColor - { - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs deleted file mode 100644 index 53d54463c..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotColormapData.cs +++ /dev/null @@ -1,752 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotColormapData - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<uint> Keys; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> KeyCounts; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> KeyOffsets; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<uint> Tables; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> TableSizes; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> TableOffsets; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer Text; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> TextOffsets; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> Quals; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Map; - - /// <summary> - /// To be documented. - /// </summary> - public int Count; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormapData(ImVector<uint> keys = default, ImVector<int> keyCounts = default, ImVector<int> keyOffsets = default, ImVector<uint> tables = default, ImVector<int> tableSizes = default, ImVector<int> tableOffsets = default, ImGuiTextBuffer text = default, ImVector<int> textOffsets = default, ImVector<int> quals = default, ImGuiStorage map = default, int count = default) - { - Keys = keys; - KeyCounts = keyCounts; - KeyOffsets = keyOffsets; - Tables = tables; - TableSizes = tableSizes; - TableOffsets = tableOffsets; - Text = text; - TextOffsets = textOffsets; - Quals = quals; - Map = map; - Count = count; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _AppendTable(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - ImPlot._AppendTableNative(@this, cmap); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(byte* name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - int ret = ImPlot.AppendNative(@this, name, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(ref byte name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - fixed (byte* pname = &name) - { - int ret = ImPlot.AppendNative(@this, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(ReadOnlySpan<byte> name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - fixed (byte* pname = name) - { - int ret = ImPlot.AppendNative(@this, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(string name, uint* keys, int count, bool qual) - { - fixed (ImPlotColormapData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImPlot.AppendNative(@this, pStr0, keys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotColormapData* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(byte* name) - { - fixed (ImPlotColormapData* @this = &this) - { - ImPlotColormap ret = ImPlot.GetIndexNative(@this, name); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(ref byte name) - { - fixed (ImPlotColormapData* @this = &this) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = ImPlot.GetIndexNative(@this, (byte*)pname); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(ReadOnlySpan<byte> name) - { - fixed (ImPlotColormapData* @this = &this) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = ImPlot.GetIndexNative(@this, (byte*)pname); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(string name) - { - fixed (ImPlotColormapData* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = ImPlot.GetIndexNative(@this, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetKeyColor(ImPlotColormap cmap, int idx) - { - fixed (ImPlotColormapData* @this = &this) - { - uint ret = ImPlot.GetKeyColorNative(@this, cmap, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetKeyCount(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - int ret = ImPlot.GetKeyCountNative(@this, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint* GetKeys(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - uint* ret = ImPlot.GetKeysNative(@this, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetName(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - byte* ret = ImPlot.GetNameNative(@this, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetNameS(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetNameNative(@this, cmap)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint* GetTable(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - uint* ret = ImPlot.GetTableNative(@this, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetTableColor(ImPlotColormap cmap, int idx) - { - fixed (ImPlotColormapData* @this = &this) - { - uint ret = ImPlot.GetTableColorNative(@this, cmap, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetTableSize(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - int ret = ImPlot.GetTableSizeNative(@this, cmap); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsQual(ImPlotColormap cmap) - { - fixed (ImPlotColormapData* @this = &this) - { - byte ret = ImPlot.IsQualNative(@this, cmap); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint LerpTable(ImPlotColormap cmap, float t) - { - fixed (ImPlotColormapData* @this = &this) - { - uint ret = ImPlot.LerpTableNative(@this, cmap, t); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RebuildTables() - { - fixed (ImPlotColormapData* @this = &this) - { - ImPlot.RebuildTablesNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetKeyColor(ImPlotColormap cmap, int idx, uint value) - { - fixed (ImPlotColormapData* @this = &this) - { - ImPlot.SetKeyColorNative(@this, cmap, idx, value); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotColormapDataPtr : IEquatable<ImPlotColormapDataPtr> - { - public ImPlotColormapDataPtr(ImPlotColormapData* handle) { Handle = handle; } - - public ImPlotColormapData* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotColormapDataPtr Null => new ImPlotColormapDataPtr(null); - - public ImPlotColormapData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotColormapDataPtr(ImPlotColormapData* handle) => new ImPlotColormapDataPtr(handle); - - public static implicit operator ImPlotColormapData*(ImPlotColormapDataPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotColormapDataPtr left, ImPlotColormapDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotColormapDataPtr left, ImPlotColormapDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotColormapDataPtr left, ImPlotColormapData* right) => left.Handle == right; - - public static bool operator !=(ImPlotColormapDataPtr left, ImPlotColormapData* right) => left.Handle != right; - - public bool Equals(ImPlotColormapDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotColormapDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotColormapDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<uint> Keys => ref Unsafe.AsRef<ImVector<uint>>(&Handle->Keys); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> KeyCounts => ref Unsafe.AsRef<ImVector<int>>(&Handle->KeyCounts); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> KeyOffsets => ref Unsafe.AsRef<ImVector<int>>(&Handle->KeyOffsets); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<uint> Tables => ref Unsafe.AsRef<ImVector<uint>>(&Handle->Tables); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> TableSizes => ref Unsafe.AsRef<ImVector<int>>(&Handle->TableSizes); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> TableOffsets => ref Unsafe.AsRef<ImVector<int>>(&Handle->TableOffsets); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer Text => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->Text); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> TextOffsets => ref Unsafe.AsRef<ImVector<int>>(&Handle->TextOffsets); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> Quals => ref Unsafe.AsRef<ImVector<int>>(&Handle->Quals); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiStorage Map => ref Unsafe.AsRef<ImGuiStorage>(&Handle->Map); - /// <summary> - /// To be documented. - /// </summary> - public ref int Count => ref Unsafe.AsRef<int>(&Handle->Count); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void _AppendTable(ImPlotColormap cmap) - { - ImPlot._AppendTableNative(Handle, cmap); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(byte* name, uint* keys, int count, bool qual) - { - int ret = ImPlot.AppendNative(Handle, name, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(ref byte name, uint* keys, int count, bool qual) - { - fixed (byte* pname = &name) - { - int ret = ImPlot.AppendNative(Handle, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(ReadOnlySpan<byte> name, uint* keys, int count, bool qual) - { - fixed (byte* pname = name) - { - int ret = ImPlot.AppendNative(Handle, (byte*)pname, keys, count, qual ? (byte)1 : (byte)0); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int Append(string name, uint* keys, int count, bool qual) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImPlot.AppendNative(Handle, pStr0, keys, count, qual ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(byte* name) - { - ImPlotColormap ret = ImPlot.GetIndexNative(Handle, name); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(ref byte name) - { - fixed (byte* pname = &name) - { - ImPlotColormap ret = ImPlot.GetIndexNative(Handle, (byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(ReadOnlySpan<byte> name) - { - fixed (byte* pname = name) - { - ImPlotColormap ret = ImPlot.GetIndexNative(Handle, (byte*)pname); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotColormap GetIndex(string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotColormap ret = ImPlot.GetIndexNative(Handle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetKeyColor(ImPlotColormap cmap, int idx) - { - uint ret = ImPlot.GetKeyColorNative(Handle, cmap, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetKeyCount(ImPlotColormap cmap) - { - int ret = ImPlot.GetKeyCountNative(Handle, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint* GetKeys(ImPlotColormap cmap) - { - uint* ret = ImPlot.GetKeysNative(Handle, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetName(ImPlotColormap cmap) - { - byte* ret = ImPlot.GetNameNative(Handle, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetNameS(ImPlotColormap cmap) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetNameNative(Handle, cmap)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint* GetTable(ImPlotColormap cmap) - { - uint* ret = ImPlot.GetTableNative(Handle, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetTableColor(ImPlotColormap cmap, int idx) - { - uint ret = ImPlot.GetTableColorNative(Handle, cmap, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetTableSize(ImPlotColormap cmap) - { - int ret = ImPlot.GetTableSizeNative(Handle, cmap); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsQual(ImPlotColormap cmap) - { - byte ret = ImPlot.IsQualNative(Handle, cmap); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint LerpTable(ImPlotColormap cmap, float t) - { - uint ret = ImPlot.LerpTableNative(Handle, cmap, t); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RebuildTables() - { - ImPlot.RebuildTablesNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetKeyColor(ImPlotColormap cmap, int idx, uint value) - { - ImPlot.SetKeyColorNative(Handle, cmap, idx, value); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotContext.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotContext.cs deleted file mode 100644 index 57327f126..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotContext.cs +++ /dev/null @@ -1,380 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotContext - { - /// <summary> - /// To be documented. - /// </summary> - public ImPoolImPlotPlot Plots; - - /// <summary> - /// To be documented. - /// </summary> - public ImPoolImPlotSubplot Subplots; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotPlot* CurrentPlot; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotSubplot* CurrentSubplot; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItemGroup* CurrentItems; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* CurrentItem; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* PreviousItem; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotTicker CTicker; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotAnnotationCollection Annotations; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotTagCollection Tags; - - /// <summary> - /// To be documented. - /// </summary> - public byte ChildWindowMade; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotStyle Style; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiColorMod> ColorModifiers; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImGuiStyleMod> StyleModifiers; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotColormapData ColormapData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotColormap> ColormapModifiers; - - /// <summary> - /// To be documented. - /// </summary> - public Tm Tm; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<double> TempDouble1; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<double> TempDouble2; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> TempInt1; - - /// <summary> - /// To be documented. - /// </summary> - public int DigitalPlotItemCnt; - - /// <summary> - /// To be documented. - /// </summary> - public int DigitalPlotOffset; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotNextPlotData NextPlotData; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotNextItemData NextItemData; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotInputMap InputMap; - - /// <summary> - /// To be documented. - /// </summary> - public byte OpenContextThisFrame; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer MousePosStringBuilder; - - /// <summary> - /// To be documented. - /// </summary> - public ImPoolImPlotAlignmentData AlignmentData; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAlignmentData* CurrentAlignmentH; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAlignmentData* CurrentAlignmentV; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotContext(ImPoolImPlotPlot plots = default, ImPoolImPlotSubplot subplots = default, ImPlotPlot* currentPlot = default, ImPlotSubplot* currentSubplot = default, ImPlotItemGroup* currentItems = default, ImPlotItem* currentItem = default, ImPlotItem* previousItem = default, ImPlotTicker cTicker = default, ImPlotAnnotationCollection annotations = default, ImPlotTagCollection tags = default, bool childWindowMade = default, ImPlotStyle style = default, ImVector<ImGuiColorMod> colorModifiers = default, ImVector<ImGuiStyleMod> styleModifiers = default, ImPlotColormapData colormapData = default, ImVector<ImPlotColormap> colormapModifiers = default, Tm tm = default, ImVector<double> tempDouble1 = default, ImVector<double> tempDouble2 = default, ImVector<int> tempInt1 = default, int digitalPlotItemCnt = default, int digitalPlotOffset = default, ImPlotNextPlotData nextPlotData = default, ImPlotNextItemData nextItemData = default, ImPlotInputMap inputMap = default, bool openContextThisFrame = default, ImGuiTextBuffer mousePosStringBuilder = default, ImPoolImPlotAlignmentData alignmentData = default, ImPlotAlignmentData* currentAlignmentH = default, ImPlotAlignmentData* currentAlignmentV = default) - { - Plots = plots; - Subplots = subplots; - CurrentPlot = currentPlot; - CurrentSubplot = currentSubplot; - CurrentItems = currentItems; - CurrentItem = currentItem; - PreviousItem = previousItem; - CTicker = cTicker; - Annotations = annotations; - Tags = tags; - ChildWindowMade = childWindowMade ? (byte)1 : (byte)0; - Style = style; - ColorModifiers = colorModifiers; - StyleModifiers = styleModifiers; - ColormapData = colormapData; - ColormapModifiers = colormapModifiers; - Tm = tm; - TempDouble1 = tempDouble1; - TempDouble2 = tempDouble2; - TempInt1 = tempInt1; - DigitalPlotItemCnt = digitalPlotItemCnt; - DigitalPlotOffset = digitalPlotOffset; - NextPlotData = nextPlotData; - NextItemData = nextItemData; - InputMap = inputMap; - OpenContextThisFrame = openContextThisFrame ? (byte)1 : (byte)0; - MousePosStringBuilder = mousePosStringBuilder; - AlignmentData = alignmentData; - CurrentAlignmentH = currentAlignmentH; - CurrentAlignmentV = currentAlignmentV; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotContextPtr : IEquatable<ImPlotContextPtr> - { - public ImPlotContextPtr(ImPlotContext* handle) { Handle = handle; } - - public ImPlotContext* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotContextPtr Null => new ImPlotContextPtr(null); - - public ImPlotContext this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotContextPtr(ImPlotContext* handle) => new ImPlotContextPtr(handle); - - public static implicit operator ImPlotContext*(ImPlotContextPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotContextPtr left, ImPlotContextPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotContextPtr left, ImPlotContextPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotContextPtr left, ImPlotContext* right) => left.Handle == right; - - public static bool operator !=(ImPlotContextPtr left, ImPlotContext* right) => left.Handle != right; - - public bool Equals(ImPlotContextPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotContextPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotContextPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImPoolImPlotPlot Plots => ref Unsafe.AsRef<ImPoolImPlotPlot>(&Handle->Plots); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPoolImPlotSubplot Subplots => ref Unsafe.AsRef<ImPoolImPlotSubplot>(&Handle->Subplots); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotPlotPtr CurrentPlot => ref Unsafe.AsRef<ImPlotPlotPtr>(&Handle->CurrentPlot); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotSubplotPtr CurrentSubplot => ref Unsafe.AsRef<ImPlotSubplotPtr>(&Handle->CurrentSubplot); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotItemGroupPtr CurrentItems => ref Unsafe.AsRef<ImPlotItemGroupPtr>(&Handle->CurrentItems); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotItemPtr CurrentItem => ref Unsafe.AsRef<ImPlotItemPtr>(&Handle->CurrentItem); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotItemPtr PreviousItem => ref Unsafe.AsRef<ImPlotItemPtr>(&Handle->PreviousItem); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotTicker CTicker => ref Unsafe.AsRef<ImPlotTicker>(&Handle->CTicker); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotAnnotationCollection Annotations => ref Unsafe.AsRef<ImPlotAnnotationCollection>(&Handle->Annotations); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotTagCollection Tags => ref Unsafe.AsRef<ImPlotTagCollection>(&Handle->Tags); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ChildWindowMade => ref Unsafe.AsRef<bool>(&Handle->ChildWindowMade); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotStyle Style => ref Unsafe.AsRef<ImPlotStyle>(&Handle->Style); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiColorMod> ColorModifiers => ref Unsafe.AsRef<ImVector<ImGuiColorMod>>(&Handle->ColorModifiers); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImGuiStyleMod> StyleModifiers => ref Unsafe.AsRef<ImVector<ImGuiStyleMod>>(&Handle->StyleModifiers); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotColormapData ColormapData => ref Unsafe.AsRef<ImPlotColormapData>(&Handle->ColormapData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotColormap> ColormapModifiers => ref Unsafe.AsRef<ImVector<ImPlotColormap>>(&Handle->ColormapModifiers); - /// <summary> - /// To be documented. - /// </summary> - public ref Tm Tm => ref Unsafe.AsRef<Tm>(&Handle->Tm); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<double> TempDouble1 => ref Unsafe.AsRef<ImVector<double>>(&Handle->TempDouble1); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<double> TempDouble2 => ref Unsafe.AsRef<ImVector<double>>(&Handle->TempDouble2); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> TempInt1 => ref Unsafe.AsRef<ImVector<int>>(&Handle->TempInt1); - /// <summary> - /// To be documented. - /// </summary> - public ref int DigitalPlotItemCnt => ref Unsafe.AsRef<int>(&Handle->DigitalPlotItemCnt); - /// <summary> - /// To be documented. - /// </summary> - public ref int DigitalPlotOffset => ref Unsafe.AsRef<int>(&Handle->DigitalPlotOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotNextPlotData NextPlotData => ref Unsafe.AsRef<ImPlotNextPlotData>(&Handle->NextPlotData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotNextItemData NextItemData => ref Unsafe.AsRef<ImPlotNextItemData>(&Handle->NextItemData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotInputMap InputMap => ref Unsafe.AsRef<ImPlotInputMap>(&Handle->InputMap); - /// <summary> - /// To be documented. - /// </summary> - public ref bool OpenContextThisFrame => ref Unsafe.AsRef<bool>(&Handle->OpenContextThisFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer MousePosStringBuilder => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->MousePosStringBuilder); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPoolImPlotAlignmentData AlignmentData => ref Unsafe.AsRef<ImPoolImPlotAlignmentData>(&Handle->AlignmentData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotAlignmentDataPtr CurrentAlignmentH => ref Unsafe.AsRef<ImPlotAlignmentDataPtr>(&Handle->CurrentAlignmentH); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotAlignmentDataPtr CurrentAlignmentV => ref Unsafe.AsRef<ImPlotAlignmentDataPtr>(&Handle->CurrentAlignmentV); - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotDateTimeSpec.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotDateTimeSpec.cs deleted file mode 100644 index a46916cb4..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotDateTimeSpec.cs +++ /dev/null @@ -1,139 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotDateTimeSpec - { - /// <summary> - /// To be documented. - /// </summary> - public ImPlotDateFmt Date; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotTimeFmt Time; - - /// <summary> - /// To be documented. - /// </summary> - public byte UseISO8601; - - /// <summary> - /// To be documented. - /// </summary> - public byte Use24HourClock; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotDateTimeSpec(ImPlotDateFmt date = default, ImPlotTimeFmt time = default, bool useIso8601 = default, bool use24HourClock = default) - { - Date = date; - Time = time; - UseISO8601 = useIso8601 ? (byte)1 : (byte)0; - Use24HourClock = use24HourClock ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotDateTimeSpec* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotDateTimeSpecPtr : IEquatable<ImPlotDateTimeSpecPtr> - { - public ImPlotDateTimeSpecPtr(ImPlotDateTimeSpec* handle) { Handle = handle; } - - public ImPlotDateTimeSpec* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotDateTimeSpecPtr Null => new ImPlotDateTimeSpecPtr(null); - - public ImPlotDateTimeSpec this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotDateTimeSpecPtr(ImPlotDateTimeSpec* handle) => new ImPlotDateTimeSpecPtr(handle); - - public static implicit operator ImPlotDateTimeSpec*(ImPlotDateTimeSpecPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpecPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpecPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpec* right) => left.Handle == right; - - public static bool operator !=(ImPlotDateTimeSpecPtr left, ImPlotDateTimeSpec* right) => left.Handle != right; - - public bool Equals(ImPlotDateTimeSpecPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotDateTimeSpecPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotDateTimeSpecPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotDateFmt Date => ref Unsafe.AsRef<ImPlotDateFmt>(&Handle->Date); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotTimeFmt Time => ref Unsafe.AsRef<ImPlotTimeFmt>(&Handle->Time); - /// <summary> - /// To be documented. - /// </summary> - public ref bool UseISO8601 => ref Unsafe.AsRef<bool>(&Handle->UseISO8601); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Use24HourClock => ref Unsafe.AsRef<bool>(&Handle->Use24HourClock); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotInputMap.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotInputMap.cs deleted file mode 100644 index 661b8fe19..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotInputMap.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotInputMap - { - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMouseButton Pan; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags PanMod; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMouseButton Fit; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMouseButton Select; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMouseButton SelectCancel; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags SelectMod; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags SelectHorzMod; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags SelectVertMod; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiMouseButton Menu; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags OverrideMod; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiModFlags ZoomMod; - - /// <summary> - /// To be documented. - /// </summary> - public float ZoomRate; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotInputMap(ImGuiMouseButton pan = default, ImGuiModFlags panMod = default, ImGuiMouseButton fit = default, ImGuiMouseButton select = default, ImGuiMouseButton selectCancel = default, ImGuiModFlags selectMod = default, ImGuiModFlags selectHorzMod = default, ImGuiModFlags selectVertMod = default, ImGuiMouseButton menu = default, ImGuiModFlags overrideMod = default, ImGuiModFlags zoomMod = default, float zoomRate = default) - { - Pan = pan; - PanMod = panMod; - Fit = fit; - Select = select; - SelectCancel = selectCancel; - SelectMod = selectMod; - SelectHorzMod = selectHorzMod; - SelectVertMod = selectVertMod; - Menu = menu; - OverrideMod = overrideMod; - ZoomMod = zoomMod; - ZoomRate = zoomRate; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotInputMap* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotInputMapPtr : IEquatable<ImPlotInputMapPtr> - { - public ImPlotInputMapPtr(ImPlotInputMap* handle) { Handle = handle; } - - public ImPlotInputMap* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotInputMapPtr Null => new ImPlotInputMapPtr(null); - - public ImPlotInputMap this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotInputMapPtr(ImPlotInputMap* handle) => new ImPlotInputMapPtr(handle); - - public static implicit operator ImPlotInputMap*(ImPlotInputMapPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle == right; - - public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle != right; - - public bool Equals(ImPlotInputMapPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotInputMapPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotInputMapPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiMouseButton Pan => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Pan); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags PanMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->PanMod); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiMouseButton Fit => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Fit); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiMouseButton Select => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Select); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiMouseButton SelectCancel => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->SelectCancel); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags SelectMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->SelectMod); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags SelectHorzMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->SelectHorzMod); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags SelectVertMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->SelectVertMod); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiMouseButton Menu => ref Unsafe.AsRef<ImGuiMouseButton>(&Handle->Menu); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags OverrideMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->OverrideMod); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiModFlags ZoomMod => ref Unsafe.AsRef<ImGuiModFlags>(&Handle->ZoomMod); - /// <summary> - /// To be documented. - /// </summary> - public ref float ZoomRate => ref Unsafe.AsRef<float>(&Handle->ZoomRate); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItem.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItem.cs deleted file mode 100644 index c653a62a6..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItem.cs +++ /dev/null @@ -1,169 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotItem - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public uint Color; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect LegendHoverRect; - - /// <summary> - /// To be documented. - /// </summary> - public int NameOffset; - - /// <summary> - /// To be documented. - /// </summary> - public byte Show; - - /// <summary> - /// To be documented. - /// </summary> - public byte LegendHovered; - - /// <summary> - /// To be documented. - /// </summary> - public byte SeenThisFrame; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem(uint id = default, uint color = default, ImRect legendHoverRect = default, int nameOffset = default, bool show = default, bool legendHovered = default, bool seenThisFrame = default) - { - ID = id; - Color = color; - LegendHoverRect = legendHoverRect; - NameOffset = nameOffset; - Show = show ? (byte)1 : (byte)0; - LegendHovered = legendHovered ? (byte)1 : (byte)0; - SeenThisFrame = seenThisFrame ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotItem* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotItemPtr : IEquatable<ImPlotItemPtr> - { - public ImPlotItemPtr(ImPlotItem* handle) { Handle = handle; } - - public ImPlotItem* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotItemPtr Null => new ImPlotItemPtr(null); - - public ImPlotItem this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotItemPtr(ImPlotItem* handle) => new ImPlotItemPtr(handle); - - public static implicit operator ImPlotItem*(ImPlotItemPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotItemPtr left, ImPlotItemPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotItemPtr left, ImPlotItemPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotItemPtr left, ImPlotItem* right) => left.Handle == right; - - public static bool operator !=(ImPlotItemPtr left, ImPlotItem* right) => left.Handle != right; - - public bool Equals(ImPlotItemPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotItemPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotItemPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref uint Color => ref Unsafe.AsRef<uint>(&Handle->Color); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect LegendHoverRect => ref Unsafe.AsRef<ImRect>(&Handle->LegendHoverRect); - /// <summary> - /// To be documented. - /// </summary> - public ref int NameOffset => ref Unsafe.AsRef<int>(&Handle->NameOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Show => ref Unsafe.AsRef<bool>(&Handle->Show); - /// <summary> - /// To be documented. - /// </summary> - public ref bool LegendHovered => ref Unsafe.AsRef<bool>(&Handle->LegendHovered); - /// <summary> - /// To be documented. - /// </summary> - public ref bool SeenThisFrame => ref Unsafe.AsRef<bool>(&Handle->SeenThisFrame); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItemGroup.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItemGroup.cs deleted file mode 100644 index 32109fcc5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotItemGroup.cs +++ /dev/null @@ -1,650 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotItemGroup - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotLegend Legend; - - /// <summary> - /// To be documented. - /// </summary> - public ImPoolImPlotItem ItemPool; - - /// <summary> - /// To be documented. - /// </summary> - public int ColormapIdx; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItemGroup(uint id = default, ImPlotLegend legend = default, ImPoolImPlotItem itemPool = default, int colormapIdx = default) - { - ID = id; - Legend = legend; - ItemPool = itemPool; - ColormapIdx = colormapIdx; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotItemGroup* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(uint id) - { - fixed (ImPlotItemGroup* @this = &this) - { - ImPlotItem* ret = ImPlot.GetItemNative(@this, id); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(byte* labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - ImPlotItem* ret = ImPlot.GetItemNative(@this, labelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(ref byte labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItem* ret = ImPlot.GetItemNative(@this, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(ReadOnlySpan<byte> labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - fixed (byte* plabelId = labelId) - { - ImPlotItem* ret = ImPlot.GetItemNative(@this, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(string labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItem* ret = ImPlot.GetItemNative(@this, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItemByIndex(int i) - { - fixed (ImPlotItemGroup* @this = &this) - { - ImPlotItem* ret = ImPlot.GetItemByIndexNative(@this, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetItemCount() - { - fixed (ImPlotItemGroup* @this = &this) - { - int ret = ImPlot.GetItemCountNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(byte* labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - uint ret = ImPlot.GetItemIDNative(@this, labelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(ref byte labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - fixed (byte* plabelId = &labelId) - { - uint ret = ImPlot.GetItemIDNative(@this, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(ReadOnlySpan<byte> labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - fixed (byte* plabelId = labelId) - { - uint ret = ImPlot.GetItemIDNative(@this, (byte*)plabelId); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(string labelId) - { - fixed (ImPlotItemGroup* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImPlot.GetItemIDNative(@this, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetItemIndex(ImPlotItem* item) - { - fixed (ImPlotItemGroup* @this = &this) - { - int ret = ImPlot.GetItemIndexNative(@this, item); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetItemIndex(ref ImPlotItem item) - { - fixed (ImPlotItemGroup* @this = &this) - { - fixed (ImPlotItem* pitem = &item) - { - int ret = ImPlot.GetItemIndexNative(@this, (ImPlotItem*)pitem); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetLegendCount() - { - fixed (ImPlotItemGroup* @this = &this) - { - int ret = ImPlot.GetLegendCountNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetLegendItem(int i) - { - fixed (ImPlotItemGroup* @this = &this) - { - ImPlotItem* ret = ImPlot.GetLegendItemNative(@this, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetLegendLabel(int i) - { - fixed (ImPlotItemGroup* @this = &this) - { - byte* ret = ImPlot.GetLegendLabelNative(@this, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetLegendLabelS(int i) - { - fixed (ImPlotItemGroup* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetLegendLabelNative(@this, i)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetOrAddItem(uint id) - { - fixed (ImPlotItemGroup* @this = &this) - { - ImPlotItem* ret = ImPlot.GetOrAddItemNative(@this, id); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotItemGroup* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotItemGroupPtr : IEquatable<ImPlotItemGroupPtr> - { - public ImPlotItemGroupPtr(ImPlotItemGroup* handle) { Handle = handle; } - - public ImPlotItemGroup* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotItemGroupPtr Null => new ImPlotItemGroupPtr(null); - - public ImPlotItemGroup this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotItemGroupPtr(ImPlotItemGroup* handle) => new ImPlotItemGroupPtr(handle); - - public static implicit operator ImPlotItemGroup*(ImPlotItemGroupPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotItemGroupPtr left, ImPlotItemGroupPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotItemGroupPtr left, ImPlotItemGroupPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotItemGroupPtr left, ImPlotItemGroup* right) => left.Handle == right; - - public static bool operator !=(ImPlotItemGroupPtr left, ImPlotItemGroup* right) => left.Handle != right; - - public bool Equals(ImPlotItemGroupPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotItemGroupPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotItemGroupPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotLegend Legend => ref Unsafe.AsRef<ImPlotLegend>(&Handle->Legend); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPoolImPlotItem ItemPool => ref Unsafe.AsRef<ImPoolImPlotItem>(&Handle->ItemPool); - /// <summary> - /// To be documented. - /// </summary> - public ref int ColormapIdx => ref Unsafe.AsRef<int>(&Handle->ColormapIdx); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(uint id) - { - ImPlotItem* ret = ImPlot.GetItemNative(Handle, id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(byte* labelId) - { - ImPlotItem* ret = ImPlot.GetItemNative(Handle, labelId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - ImPlotItem* ret = ImPlot.GetItemNative(Handle, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - ImPlotItem* ret = ImPlot.GetItemNative(Handle, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItem(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotItem* ret = ImPlot.GetItemNative(Handle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetItemByIndex(int i) - { - ImPlotItem* ret = ImPlot.GetItemByIndexNative(Handle, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetItemCount() - { - int ret = ImPlot.GetItemCountNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(byte* labelId) - { - uint ret = ImPlot.GetItemIDNative(Handle, labelId); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(ref byte labelId) - { - fixed (byte* plabelId = &labelId) - { - uint ret = ImPlot.GetItemIDNative(Handle, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(ReadOnlySpan<byte> labelId) - { - fixed (byte* plabelId = labelId) - { - uint ret = ImPlot.GetItemIDNative(Handle, (byte*)plabelId); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe uint GetItemID(string labelId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - uint ret = ImPlot.GetItemIDNative(Handle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetItemIndex(ImPlotItem* item) - { - int ret = ImPlot.GetItemIndexNative(Handle, item); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetItemIndex(ref ImPlotItem item) - { - fixed (ImPlotItem* pitem = &item) - { - int ret = ImPlot.GetItemIndexNative(Handle, (ImPlotItem*)pitem); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int GetLegendCount() - { - int ret = ImPlot.GetLegendCountNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetLegendItem(int i) - { - ImPlotItem* ret = ImPlot.GetLegendItemNative(Handle, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetLegendLabel(int i) - { - byte* ret = ImPlot.GetLegendLabelNative(Handle, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetLegendLabelS(int i) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetLegendLabelNative(Handle, i)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotItem* GetOrAddItem(uint id) - { - ImPlotItem* ret = ImPlot.GetOrAddItemNative(Handle, id); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotLegend.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotLegend.cs deleted file mode 100644 index 7906118e2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotLegend.cs +++ /dev/null @@ -1,218 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotLegend - { - /// <summary> - /// To be documented. - /// </summary> - public ImPlotLegendFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotLegendFlags PreviousFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotLocation Location; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotLocation PreviousLocation; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<int> Indices; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer Labels; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect Rect; - - /// <summary> - /// To be documented. - /// </summary> - public byte Hovered; - - /// <summary> - /// To be documented. - /// </summary> - public byte Held; - - /// <summary> - /// To be documented. - /// </summary> - public byte CanGoInside; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotLegend(ImPlotLegendFlags flags = default, ImPlotLegendFlags previousFlags = default, ImPlotLocation location = default, ImPlotLocation previousLocation = default, ImVector<int> indices = default, ImGuiTextBuffer labels = default, ImRect rect = default, bool hovered = default, bool held = default, bool canGoInside = default) - { - Flags = flags; - PreviousFlags = previousFlags; - Location = location; - PreviousLocation = previousLocation; - Indices = indices; - Labels = labels; - Rect = rect; - Hovered = hovered ? (byte)1 : (byte)0; - Held = held ? (byte)1 : (byte)0; - CanGoInside = canGoInside ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotLegend* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotLegend* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotLegendPtr : IEquatable<ImPlotLegendPtr> - { - public ImPlotLegendPtr(ImPlotLegend* handle) { Handle = handle; } - - public ImPlotLegend* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotLegendPtr Null => new ImPlotLegendPtr(null); - - public ImPlotLegend this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotLegendPtr(ImPlotLegend* handle) => new ImPlotLegendPtr(handle); - - public static implicit operator ImPlotLegend*(ImPlotLegendPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotLegendPtr left, ImPlotLegendPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotLegendPtr left, ImPlotLegendPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotLegendPtr left, ImPlotLegend* right) => left.Handle == right; - - public static bool operator !=(ImPlotLegendPtr left, ImPlotLegend* right) => left.Handle != right; - - public bool Equals(ImPlotLegendPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotLegendPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotLegendPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotLegendFlags Flags => ref Unsafe.AsRef<ImPlotLegendFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotLegendFlags PreviousFlags => ref Unsafe.AsRef<ImPlotLegendFlags>(&Handle->PreviousFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotLocation Location => ref Unsafe.AsRef<ImPlotLocation>(&Handle->Location); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotLocation PreviousLocation => ref Unsafe.AsRef<ImPlotLocation>(&Handle->PreviousLocation); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<int> Indices => ref Unsafe.AsRef<ImVector<int>>(&Handle->Indices); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer Labels => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->Labels); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect Rect => ref Unsafe.AsRef<ImRect>(&Handle->Rect); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Hovered => ref Unsafe.AsRef<bool>(&Handle->Hovered); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Held => ref Unsafe.AsRef<bool>(&Handle->Held); - /// <summary> - /// To be documented. - /// </summary> - public ref bool CanGoInside => ref Unsafe.AsRef<bool>(&Handle->CanGoInside); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextItemData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextItemData.cs deleted file mode 100644 index 5b014bd01..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextItemData.cs +++ /dev/null @@ -1,351 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotNextItemData - { - /// <summary> - /// To be documented. - /// </summary> - public Vector4 Colors_0; - public Vector4 Colors_1; - public Vector4 Colors_2; - public Vector4 Colors_3; - public Vector4 Colors_4; - - /// <summary> - /// To be documented. - /// </summary> - public float LineWeight; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotMarker Marker; - - /// <summary> - /// To be documented. - /// </summary> - public float MarkerSize; - - /// <summary> - /// To be documented. - /// </summary> - public float MarkerWeight; - - /// <summary> - /// To be documented. - /// </summary> - public float FillAlpha; - - /// <summary> - /// To be documented. - /// </summary> - public float ErrorBarSize; - - /// <summary> - /// To be documented. - /// </summary> - public float ErrorBarWeight; - - /// <summary> - /// To be documented. - /// </summary> - public float DigitalBitHeight; - - /// <summary> - /// To be documented. - /// </summary> - public float DigitalBitGap; - - /// <summary> - /// To be documented. - /// </summary> - public byte RenderLine; - - /// <summary> - /// To be documented. - /// </summary> - public byte RenderFill; - - /// <summary> - /// To be documented. - /// </summary> - public byte RenderMarkerLine; - - /// <summary> - /// To be documented. - /// </summary> - public byte RenderMarkerFill; - - /// <summary> - /// To be documented. - /// </summary> - public byte HasHidden; - - /// <summary> - /// To be documented. - /// </summary> - public byte Hidden; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotCond HiddenCond; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotNextItemData(Vector4* colors = default, float lineWeight = default, ImPlotMarker marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, bool renderLine = default, bool renderFill = default, bool renderMarkerLine = default, bool renderMarkerFill = default, bool hasHidden = default, bool hidden = default, ImPlotCond hiddenCond = default) - { - if (colors != default(Vector4*)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - } - LineWeight = lineWeight; - Marker = marker; - MarkerSize = markerSize; - MarkerWeight = markerWeight; - FillAlpha = fillAlpha; - ErrorBarSize = errorBarSize; - ErrorBarWeight = errorBarWeight; - DigitalBitHeight = digitalBitHeight; - DigitalBitGap = digitalBitGap; - RenderLine = renderLine ? (byte)1 : (byte)0; - RenderFill = renderFill ? (byte)1 : (byte)0; - RenderMarkerLine = renderMarkerLine ? (byte)1 : (byte)0; - RenderMarkerFill = renderMarkerFill ? (byte)1 : (byte)0; - HasHidden = hasHidden ? (byte)1 : (byte)0; - Hidden = hidden ? (byte)1 : (byte)0; - HiddenCond = hiddenCond; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotNextItemData(Span<Vector4> colors = default, float lineWeight = default, ImPlotMarker marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, bool renderLine = default, bool renderFill = default, bool renderMarkerLine = default, bool renderMarkerFill = default, bool hasHidden = default, bool hidden = default, ImPlotCond hiddenCond = default) - { - if (colors != default(Span<Vector4>)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - } - LineWeight = lineWeight; - Marker = marker; - MarkerSize = markerSize; - MarkerWeight = markerWeight; - FillAlpha = fillAlpha; - ErrorBarSize = errorBarSize; - ErrorBarWeight = errorBarWeight; - DigitalBitHeight = digitalBitHeight; - DigitalBitGap = digitalBitGap; - RenderLine = renderLine ? (byte)1 : (byte)0; - RenderFill = renderFill ? (byte)1 : (byte)0; - RenderMarkerLine = renderMarkerLine ? (byte)1 : (byte)0; - RenderMarkerFill = renderMarkerFill ? (byte)1 : (byte)0; - HasHidden = hasHidden ? (byte)1 : (byte)0; - Hidden = hidden ? (byte)1 : (byte)0; - HiddenCond = hiddenCond; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> Colors - - { - get - { - fixed (Vector4* p = &this.Colors_0) - { - return new Span<Vector4>(p, 5); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotNextItemData* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotNextItemData* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotNextItemDataPtr : IEquatable<ImPlotNextItemDataPtr> - { - public ImPlotNextItemDataPtr(ImPlotNextItemData* handle) { Handle = handle; } - - public ImPlotNextItemData* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotNextItemDataPtr Null => new ImPlotNextItemDataPtr(null); - - public ImPlotNextItemData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotNextItemDataPtr(ImPlotNextItemData* handle) => new ImPlotNextItemDataPtr(handle); - - public static implicit operator ImPlotNextItemData*(ImPlotNextItemDataPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotNextItemDataPtr left, ImPlotNextItemDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotNextItemDataPtr left, ImPlotNextItemDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotNextItemDataPtr left, ImPlotNextItemData* right) => left.Handle == right; - - public static bool operator !=(ImPlotNextItemDataPtr left, ImPlotNextItemData* right) => left.Handle != right; - - public bool Equals(ImPlotNextItemDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotNextItemDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotNextItemDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> Colors - - { - get - { - return new Span<Vector4>(&Handle->Colors_0, 5); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref float LineWeight => ref Unsafe.AsRef<float>(&Handle->LineWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotMarker Marker => ref Unsafe.AsRef<ImPlotMarker>(&Handle->Marker); - /// <summary> - /// To be documented. - /// </summary> - public ref float MarkerSize => ref Unsafe.AsRef<float>(&Handle->MarkerSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float MarkerWeight => ref Unsafe.AsRef<float>(&Handle->MarkerWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float FillAlpha => ref Unsafe.AsRef<float>(&Handle->FillAlpha); - /// <summary> - /// To be documented. - /// </summary> - public ref float ErrorBarSize => ref Unsafe.AsRef<float>(&Handle->ErrorBarSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float ErrorBarWeight => ref Unsafe.AsRef<float>(&Handle->ErrorBarWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float DigitalBitHeight => ref Unsafe.AsRef<float>(&Handle->DigitalBitHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float DigitalBitGap => ref Unsafe.AsRef<float>(&Handle->DigitalBitGap); - /// <summary> - /// To be documented. - /// </summary> - public ref bool RenderLine => ref Unsafe.AsRef<bool>(&Handle->RenderLine); - /// <summary> - /// To be documented. - /// </summary> - public ref bool RenderFill => ref Unsafe.AsRef<bool>(&Handle->RenderFill); - /// <summary> - /// To be documented. - /// </summary> - public ref bool RenderMarkerLine => ref Unsafe.AsRef<bool>(&Handle->RenderMarkerLine); - /// <summary> - /// To be documented. - /// </summary> - public ref bool RenderMarkerFill => ref Unsafe.AsRef<bool>(&Handle->RenderMarkerFill); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HasHidden => ref Unsafe.AsRef<bool>(&Handle->HasHidden); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Hidden => ref Unsafe.AsRef<bool>(&Handle->Hidden); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotCond HiddenCond => ref Unsafe.AsRef<ImPlotCond>(&Handle->HiddenCond); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextPlotData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextPlotData.cs deleted file mode 100644 index e36f126c2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotNextPlotData.cs +++ /dev/null @@ -1,385 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotNextPlotData - { - /// <summary> - /// To be documented. - /// </summary> - public ImPlotCond RangeCond_0; - public ImPlotCond RangeCond_1; - public ImPlotCond RangeCond_2; - public ImPlotCond RangeCond_3; - public ImPlotCond RangeCond_4; - public ImPlotCond RangeCond_5; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotRange Range_0; - public ImPlotRange Range_1; - public ImPlotRange Range_2; - public ImPlotRange Range_3; - public ImPlotRange Range_4; - public ImPlotRange Range_5; - - /// <summary> - /// To be documented. - /// </summary> - public bool HasRange_0; - public bool HasRange_1; - public bool HasRange_2; - public bool HasRange_3; - public bool HasRange_4; - public bool HasRange_5; - - /// <summary> - /// To be documented. - /// </summary> - public bool Fit_0; - public bool Fit_1; - public bool Fit_2; - public bool Fit_3; - public bool Fit_4; - public bool Fit_5; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double* LinkedMin_0; - public unsafe double* LinkedMin_1; - public unsafe double* LinkedMin_2; - public unsafe double* LinkedMin_3; - public unsafe double* LinkedMin_4; - public unsafe double* LinkedMin_5; - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double* LinkedMax_0; - public unsafe double* LinkedMax_1; - public unsafe double* LinkedMax_2; - public unsafe double* LinkedMax_3; - public unsafe double* LinkedMax_4; - public unsafe double* LinkedMax_5; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotNextPlotData(ImPlotCond* rangeCond = default, ImPlotRangePtr range = default, bool* hasRange = default, bool* fit = default, double** linkedMin = default, double** linkedMax = default) - { - if (rangeCond != default(ImPlotCond*)) - { - RangeCond_0 = rangeCond[0]; - RangeCond_1 = rangeCond[1]; - RangeCond_2 = rangeCond[2]; - RangeCond_3 = rangeCond[3]; - RangeCond_4 = rangeCond[4]; - RangeCond_5 = rangeCond[5]; - } - if (range != default(ImPlotRangePtr)) - { - Range_0 = range[0]; - Range_1 = range[1]; - Range_2 = range[2]; - Range_3 = range[3]; - Range_4 = range[4]; - Range_5 = range[5]; - } - if (hasRange != default(bool*)) - { - HasRange_0 = hasRange[0]; - HasRange_1 = hasRange[1]; - HasRange_2 = hasRange[2]; - HasRange_3 = hasRange[3]; - HasRange_4 = hasRange[4]; - HasRange_5 = hasRange[5]; - } - if (fit != default(bool*)) - { - Fit_0 = fit[0]; - Fit_1 = fit[1]; - Fit_2 = fit[2]; - Fit_3 = fit[3]; - Fit_4 = fit[4]; - Fit_5 = fit[5]; - } - if (linkedMin != default(double**)) - { - LinkedMin_0 = linkedMin[0]; - LinkedMin_1 = linkedMin[1]; - LinkedMin_2 = linkedMin[2]; - LinkedMin_3 = linkedMin[3]; - LinkedMin_4 = linkedMin[4]; - LinkedMin_5 = linkedMin[5]; - } - if (linkedMax != default(double**)) - { - LinkedMax_0 = linkedMax[0]; - LinkedMax_1 = linkedMax[1]; - LinkedMax_2 = linkedMax[2]; - LinkedMax_3 = linkedMax[3]; - LinkedMax_4 = linkedMax[4]; - LinkedMax_5 = linkedMax[5]; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotNextPlotData(Span<ImPlotCond> rangeCond = default, Span<ImPlotRange> range = default, Span<bool> hasRange = default, Span<bool> fit = default, Span<Pointer<double>> linkedMin = default, Span<Pointer<double>> linkedMax = default) - { - if (rangeCond != default(Span<ImPlotCond>)) - { - RangeCond_0 = rangeCond[0]; - RangeCond_1 = rangeCond[1]; - RangeCond_2 = rangeCond[2]; - RangeCond_3 = rangeCond[3]; - RangeCond_4 = rangeCond[4]; - RangeCond_5 = rangeCond[5]; - } - if (range != default(Span<ImPlotRange>)) - { - Range_0 = range[0]; - Range_1 = range[1]; - Range_2 = range[2]; - Range_3 = range[3]; - Range_4 = range[4]; - Range_5 = range[5]; - } - if (hasRange != default(Span<bool>)) - { - HasRange_0 = hasRange[0]; - HasRange_1 = hasRange[1]; - HasRange_2 = hasRange[2]; - HasRange_3 = hasRange[3]; - HasRange_4 = hasRange[4]; - HasRange_5 = hasRange[5]; - } - if (fit != default(Span<bool>)) - { - Fit_0 = fit[0]; - Fit_1 = fit[1]; - Fit_2 = fit[2]; - Fit_3 = fit[3]; - Fit_4 = fit[4]; - Fit_5 = fit[5]; - } - if (linkedMin != default(Span<Pointer<double>>)) - { - LinkedMin_0 = linkedMin[0]; - LinkedMin_1 = linkedMin[1]; - LinkedMin_2 = linkedMin[2]; - LinkedMin_3 = linkedMin[3]; - LinkedMin_4 = linkedMin[4]; - LinkedMin_5 = linkedMin[5]; - } - if (linkedMax != default(Span<Pointer<double>>)) - { - LinkedMax_0 = linkedMax[0]; - LinkedMax_1 = linkedMax[1]; - LinkedMax_2 = linkedMax[2]; - LinkedMax_3 = linkedMax[3]; - LinkedMax_4 = linkedMax[4]; - LinkedMax_5 = linkedMax[5]; - } - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImPlotRange> Range - - { - get - { - fixed (ImPlotRange* p = &this.Range_0) - { - return new Span<ImPlotRange>(p, 6); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Pointer<double>> LinkedMin - - { - get - { - fixed (double** p = &this.LinkedMin_0) - { - return new Span<Pointer<double>>(p, 6); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Pointer<double>> LinkedMax - - { - get - { - fixed (double** p = &this.LinkedMax_0) - { - return new Span<Pointer<double>>(p, 6); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotNextPlotData* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotNextPlotData* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotNextPlotDataPtr : IEquatable<ImPlotNextPlotDataPtr> - { - public ImPlotNextPlotDataPtr(ImPlotNextPlotData* handle) { Handle = handle; } - - public ImPlotNextPlotData* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotNextPlotDataPtr Null => new ImPlotNextPlotDataPtr(null); - - public ImPlotNextPlotData this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotNextPlotDataPtr(ImPlotNextPlotData* handle) => new ImPlotNextPlotDataPtr(handle); - - public static implicit operator ImPlotNextPlotData*(ImPlotNextPlotDataPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotNextPlotDataPtr left, ImPlotNextPlotDataPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotNextPlotDataPtr left, ImPlotNextPlotDataPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotNextPlotDataPtr left, ImPlotNextPlotData* right) => left.Handle == right; - - public static bool operator !=(ImPlotNextPlotDataPtr left, ImPlotNextPlotData* right) => left.Handle != right; - - public bool Equals(ImPlotNextPlotDataPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotNextPlotDataPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotNextPlotDataPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<int> RangeCond - - { - get - { - return new Span<int>(&Handle->RangeCond_0, 6); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImPlotRange> Range - - { - get - { - return new Span<ImPlotRange>(&Handle->Range_0, 6); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> HasRange - - { - get - { - return new Span<bool>(&Handle->HasRange_0, 6); - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<bool> Fit - - { - get - { - return new Span<bool>(&Handle->Fit_0, 6); - } - } - /// <summary> - /// To be documented. - /// </summary> - /// <summary> - /// To be documented. - /// </summary> - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPlot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPlot.cs deleted file mode 100644 index ff9da7ba8..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPlot.cs +++ /dev/null @@ -1,1119 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotPlot - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotFlags PreviousFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotLocation MouseTextLocation; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotMouseTextFlags MouseTextFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotAxis Axes_0; - public ImPlotAxis Axes_1; - public ImPlotAxis Axes_2; - public ImPlotAxis Axes_3; - public ImPlotAxis Axes_4; - public ImPlotAxis Axes_5; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer TextBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotItemGroup Items; - - /// <summary> - /// To be documented. - /// </summary> - public ImAxis CurrentX; - - /// <summary> - /// To be documented. - /// </summary> - public ImAxis CurrentY; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect FrameRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect CanvasRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect PlotRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect AxesRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect SelectRect; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 SelectStart; - - /// <summary> - /// To be documented. - /// </summary> - public int TitleOffset; - - /// <summary> - /// To be documented. - /// </summary> - public byte JustCreated; - - /// <summary> - /// To be documented. - /// </summary> - public byte Initialized; - - /// <summary> - /// To be documented. - /// </summary> - public byte SetupLocked; - - /// <summary> - /// To be documented. - /// </summary> - public byte FitThisFrame; - - /// <summary> - /// To be documented. - /// </summary> - public byte Hovered; - - /// <summary> - /// To be documented. - /// </summary> - public byte Held; - - /// <summary> - /// To be documented. - /// </summary> - public byte Selecting; - - /// <summary> - /// To be documented. - /// </summary> - public byte Selected; - - /// <summary> - /// To be documented. - /// </summary> - public byte ContextLocked; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotPlot(uint id = default, ImPlotFlags flags = default, ImPlotFlags previousFlags = default, ImPlotLocation mouseTextLocation = default, ImPlotMouseTextFlags mouseTextFlags = default, ImPlotAxis* axes = default, ImGuiTextBuffer textBuffer = default, ImPlotItemGroup items = default, ImAxis currentX = default, ImAxis currentY = default, ImRect frameRect = default, ImRect canvasRect = default, ImRect plotRect = default, ImRect axesRect = default, ImRect selectRect = default, Vector2 selectStart = default, int titleOffset = default, bool justCreated = default, bool initialized = default, bool setupLocked = default, bool fitThisFrame = default, bool hovered = default, bool held = default, bool selecting = default, bool selected = default, bool contextLocked = default) - { - ID = id; - Flags = flags; - PreviousFlags = previousFlags; - MouseTextLocation = mouseTextLocation; - MouseTextFlags = mouseTextFlags; - if (axes != default(ImPlotAxis*)) - { - Axes_0 = axes[0]; - Axes_1 = axes[1]; - Axes_2 = axes[2]; - Axes_3 = axes[3]; - Axes_4 = axes[4]; - Axes_5 = axes[5]; - } - TextBuffer = textBuffer; - Items = items; - CurrentX = currentX; - CurrentY = currentY; - FrameRect = frameRect; - CanvasRect = canvasRect; - PlotRect = plotRect; - AxesRect = axesRect; - SelectRect = selectRect; - SelectStart = selectStart; - TitleOffset = titleOffset; - JustCreated = justCreated ? (byte)1 : (byte)0; - Initialized = initialized ? (byte)1 : (byte)0; - SetupLocked = setupLocked ? (byte)1 : (byte)0; - FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; - Hovered = hovered ? (byte)1 : (byte)0; - Held = held ? (byte)1 : (byte)0; - Selecting = selecting ? (byte)1 : (byte)0; - Selected = selected ? (byte)1 : (byte)0; - ContextLocked = contextLocked ? (byte)1 : (byte)0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotPlot(uint id = default, ImPlotFlags flags = default, ImPlotFlags previousFlags = default, ImPlotLocation mouseTextLocation = default, ImPlotMouseTextFlags mouseTextFlags = default, Span<ImPlotAxis> axes = default, ImGuiTextBuffer textBuffer = default, ImPlotItemGroup items = default, ImAxis currentX = default, ImAxis currentY = default, ImRect frameRect = default, ImRect canvasRect = default, ImRect plotRect = default, ImRect axesRect = default, ImRect selectRect = default, Vector2 selectStart = default, int titleOffset = default, bool justCreated = default, bool initialized = default, bool setupLocked = default, bool fitThisFrame = default, bool hovered = default, bool held = default, bool selecting = default, bool selected = default, bool contextLocked = default) - { - ID = id; - Flags = flags; - PreviousFlags = previousFlags; - MouseTextLocation = mouseTextLocation; - MouseTextFlags = mouseTextFlags; - if (axes != default(Span<ImPlotAxis>)) - { - Axes_0 = axes[0]; - Axes_1 = axes[1]; - Axes_2 = axes[2]; - Axes_3 = axes[3]; - Axes_4 = axes[4]; - Axes_5 = axes[5]; - } - TextBuffer = textBuffer; - Items = items; - CurrentX = currentX; - CurrentY = currentY; - FrameRect = frameRect; - CanvasRect = canvasRect; - PlotRect = plotRect; - AxesRect = axesRect; - SelectRect = selectRect; - SelectStart = selectStart; - TitleOffset = titleOffset; - JustCreated = justCreated ? (byte)1 : (byte)0; - Initialized = initialized ? (byte)1 : (byte)0; - SetupLocked = setupLocked ? (byte)1 : (byte)0; - FitThisFrame = fitThisFrame ? (byte)1 : (byte)0; - Hovered = hovered ? (byte)1 : (byte)0; - Held = held ? (byte)1 : (byte)0; - Selecting = selecting ? (byte)1 : (byte)0; - Selected = selected ? (byte)1 : (byte)0; - ContextLocked = contextLocked ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImPlotAxis> Axes - - { - get - { - fixed (ImPlotAxis* p = &this.Axes_0) - { - return new Span<ImPlotAxis>(p, 6); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearTextBuffer() - { - fixed (ImPlotPlot* @this = &this) - { - ImPlot.ClearTextBufferNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotPlot* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int EnabledAxesX() - { - fixed (ImPlotPlot* @this = &this) - { - int ret = ImPlot.EnabledAxesXNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int EnabledAxesY() - { - fixed (ImPlotPlot* @this = &this) - { - int ret = ImPlot.EnabledAxesYNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetAxisLabel(ImPlotAxis axis) - { - fixed (ImPlotPlot* @this = &this) - { - byte* ret = ImPlot.GetAxisLabelNative(@this, axis); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetAxisLabelS(ImPlotAxis axis) - { - fixed (ImPlotPlot* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetAxisLabelNative(@this, axis)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetTitle() - { - fixed (ImPlotPlot* @this = &this) - { - byte* ret = ImPlot.GetTitleNative(@this); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTitleS() - { - fixed (ImPlotPlot* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTitleNative(@this)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasTitle() - { - fixed (ImPlotPlot* @this = &this) - { - byte ret = ImPlot.HasTitleNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLocked() - { - fixed (ImPlotPlot* @this = &this) - { - byte ret = ImPlot.IsInputLockedNative(@this); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, byte* label) - { - fixed (ImPlotPlot* @this = &this) - { - ImPlot.SetAxisLabelNative(@this, axis, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, byte* label) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (ImPlotAxis* paxis = &axis) - { - ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, label); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, ref byte label) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (byte* plabel = &label) - { - ImPlot.SetAxisLabelNative(@this, axis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, ReadOnlySpan<byte> label) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (byte* plabel = label) - { - ImPlot.SetAxisLabelNative(@this, axis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, string label) - { - fixed (ImPlotPlot* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.SetAxisLabelNative(@this, axis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, ref byte label) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = &label) - { - ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, ReadOnlySpan<byte> label) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = label) - { - ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, string label) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (ImPlotAxis* paxis = &axis) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.SetAxisLabelNative(@this, (ImPlotAxis*)paxis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(byte* title) - { - fixed (ImPlotPlot* @this = &this) - { - ImPlot.SetTitleNative(@this, title); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(ref byte title) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (byte* ptitle = &title) - { - ImPlot.SetTitleNative(@this, (byte*)ptitle); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(ReadOnlySpan<byte> title) - { - fixed (ImPlotPlot* @this = &this) - { - fixed (byte* ptitle = title) - { - ImPlot.SetTitleNative(@this, (byte*)ptitle); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(string title) - { - fixed (ImPlotPlot* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.SetTitleNative(@this, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* XAxis(int i) - { - fixed (ImPlotPlot* @this = &this) - { - ImPlotAxis* ret = ImPlot.XAxisNative(@this, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* ImPlotPlotXAxisConst(int i) - { - fixed (ImPlotPlot* @this = &this) - { - ImPlotAxis* ret = ImPlot.ImPlotPlotXAxisConstNative(@this, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* YAxis(int i) - { - fixed (ImPlotPlot* @this = &this) - { - ImPlotAxis* ret = ImPlot.YAxisNative(@this, i); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* ImPlotPlotYAxisConst(int i) - { - fixed (ImPlotPlot* @this = &this) - { - ImPlotAxis* ret = ImPlot.ImPlotPlotYAxisConstNative(@this, i); - return ret; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotPlotPtr : IEquatable<ImPlotPlotPtr> - { - public ImPlotPlotPtr(ImPlotPlot* handle) { Handle = handle; } - - public ImPlotPlot* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotPlotPtr Null => new ImPlotPlotPtr(null); - - public ImPlotPlot this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotPlotPtr(ImPlotPlot* handle) => new ImPlotPlotPtr(handle); - - public static implicit operator ImPlotPlot*(ImPlotPlotPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotPlotPtr left, ImPlotPlotPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotPlotPtr left, ImPlotPlotPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotPlotPtr left, ImPlotPlot* right) => left.Handle == right; - - public static bool operator !=(ImPlotPlotPtr left, ImPlotPlot* right) => left.Handle != right; - - public bool Equals(ImPlotPlotPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotPlotPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotPlotPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotFlags Flags => ref Unsafe.AsRef<ImPlotFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotFlags PreviousFlags => ref Unsafe.AsRef<ImPlotFlags>(&Handle->PreviousFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotLocation MouseTextLocation => ref Unsafe.AsRef<ImPlotLocation>(&Handle->MouseTextLocation); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotMouseTextFlags MouseTextFlags => ref Unsafe.AsRef<ImPlotMouseTextFlags>(&Handle->MouseTextFlags); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<ImPlotAxis> Axes - - { - get - { - return new Span<ImPlotAxis>(&Handle->Axes_0, 6); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TextBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotItemGroup Items => ref Unsafe.AsRef<ImPlotItemGroup>(&Handle->Items); - /// <summary> - /// To be documented. - /// </summary> - public ref ImAxis CurrentX => ref Unsafe.AsRef<ImAxis>(&Handle->CurrentX); - /// <summary> - /// To be documented. - /// </summary> - public ref ImAxis CurrentY => ref Unsafe.AsRef<ImAxis>(&Handle->CurrentY); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect FrameRect => ref Unsafe.AsRef<ImRect>(&Handle->FrameRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect CanvasRect => ref Unsafe.AsRef<ImRect>(&Handle->CanvasRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect PlotRect => ref Unsafe.AsRef<ImRect>(&Handle->PlotRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect AxesRect => ref Unsafe.AsRef<ImRect>(&Handle->AxesRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect SelectRect => ref Unsafe.AsRef<ImRect>(&Handle->SelectRect); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 SelectStart => ref Unsafe.AsRef<Vector2>(&Handle->SelectStart); - /// <summary> - /// To be documented. - /// </summary> - public ref int TitleOffset => ref Unsafe.AsRef<int>(&Handle->TitleOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref bool JustCreated => ref Unsafe.AsRef<bool>(&Handle->JustCreated); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Initialized => ref Unsafe.AsRef<bool>(&Handle->Initialized); - /// <summary> - /// To be documented. - /// </summary> - public ref bool SetupLocked => ref Unsafe.AsRef<bool>(&Handle->SetupLocked); - /// <summary> - /// To be documented. - /// </summary> - public ref bool FitThisFrame => ref Unsafe.AsRef<bool>(&Handle->FitThisFrame); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Hovered => ref Unsafe.AsRef<bool>(&Handle->Hovered); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Held => ref Unsafe.AsRef<bool>(&Handle->Held); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Selecting => ref Unsafe.AsRef<bool>(&Handle->Selecting); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Selected => ref Unsafe.AsRef<bool>(&Handle->Selected); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ContextLocked => ref Unsafe.AsRef<bool>(&Handle->ContextLocked); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void ClearTextBuffer() - { - ImPlot.ClearTextBufferNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int EnabledAxesX() - { - int ret = ImPlot.EnabledAxesXNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int EnabledAxesY() - { - int ret = ImPlot.EnabledAxesYNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetAxisLabel(ImPlotAxis axis) - { - byte* ret = ImPlot.GetAxisLabelNative(Handle, axis); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetAxisLabelS(ImPlotAxis axis) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetAxisLabelNative(Handle, axis)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetTitle() - { - byte* ret = ImPlot.GetTitleNative(Handle); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTitleS() - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTitleNative(Handle)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool HasTitle() - { - byte ret = ImPlot.HasTitleNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool IsInputLocked() - { - byte ret = ImPlot.IsInputLockedNative(Handle); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, byte* label) - { - ImPlot.SetAxisLabelNative(Handle, axis, label); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, byte* label) - { - fixed (ImPlotAxis* paxis = &axis) - { - ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, label); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, ref byte label) - { - fixed (byte* plabel = &label) - { - ImPlot.SetAxisLabelNative(Handle, axis, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - ImPlot.SetAxisLabelNative(Handle, axis, (byte*)plabel); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ImPlotAxis* axis, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.SetAxisLabelNative(Handle, axis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, ref byte label) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = &label) - { - ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, ReadOnlySpan<byte> label) - { - fixed (ImPlotAxis* paxis = &axis) - { - fixed (byte* plabel = label) - { - ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, (byte*)plabel); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetAxisLabel(ref ImPlotAxis axis, string label) - { - fixed (ImPlotAxis* paxis = &axis) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.SetAxisLabelNative(Handle, (ImPlotAxis*)paxis, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(byte* title) - { - ImPlot.SetTitleNative(Handle, title); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(ref byte title) - { - fixed (byte* ptitle = &title) - { - ImPlot.SetTitleNative(Handle, (byte*)ptitle); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(ReadOnlySpan<byte> title) - { - fixed (byte* ptitle = title) - { - ImPlot.SetTitleNative(Handle, (byte*)ptitle); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void SetTitle(string title) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (title != null) - { - pStrSize0 = Utils.GetByteCountUTF8(title); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(title, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.SetTitleNative(Handle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* XAxis(int i) - { - ImPlotAxis* ret = ImPlot.XAxisNative(Handle, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* ImPlotPlotXAxisConst(int i) - { - ImPlotAxis* ret = ImPlot.ImPlotPlotXAxisConstNative(Handle, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* YAxis(int i) - { - ImPlotAxis* ret = ImPlot.YAxisNative(Handle, i); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotAxis* ImPlotPlotYAxisConst(int i) - { - ImPlotAxis* ret = ImPlot.ImPlotPlotYAxisConstNative(Handle, i); - return ret; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPoint.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPoint.cs deleted file mode 100644 index d845401f5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPoint.cs +++ /dev/null @@ -1,119 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotPoint - { - /// <summary> - /// To be documented. - /// </summary> - public double X; - - /// <summary> - /// To be documented. - /// </summary> - public double Y; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotPoint(double x = default, double y = default) - { - X = x; - Y = y; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotPoint* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotPointPtr : IEquatable<ImPlotPointPtr> - { - public ImPlotPointPtr(ImPlotPoint* handle) { Handle = handle; } - - public ImPlotPoint* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotPointPtr Null => new ImPlotPointPtr(null); - - public ImPlotPoint this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotPointPtr(ImPlotPoint* handle) => new ImPlotPointPtr(handle); - - public static implicit operator ImPlotPoint*(ImPlotPointPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotPointPtr left, ImPlotPointPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotPointPtr left, ImPlotPointPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotPointPtr left, ImPlotPoint* right) => left.Handle == right; - - public static bool operator !=(ImPlotPointPtr left, ImPlotPoint* right) => left.Handle != right; - - public bool Equals(ImPlotPointPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotPointPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotPointPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref double X => ref Unsafe.AsRef<double>(&Handle->X); - /// <summary> - /// To be documented. - /// </summary> - public ref double Y => ref Unsafe.AsRef<double>(&Handle->Y); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPointError.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPointError.cs deleted file mode 100644 index 348a27da5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotPointError.cs +++ /dev/null @@ -1,139 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotPointError - { - /// <summary> - /// To be documented. - /// </summary> - public double X; - - /// <summary> - /// To be documented. - /// </summary> - public double Y; - - /// <summary> - /// To be documented. - /// </summary> - public double Neg; - - /// <summary> - /// To be documented. - /// </summary> - public double Pos; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotPointError(double x = default, double y = default, double neg = default, double pos = default) - { - X = x; - Y = y; - Neg = neg; - Pos = pos; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotPointError* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotPointErrorPtr : IEquatable<ImPlotPointErrorPtr> - { - public ImPlotPointErrorPtr(ImPlotPointError* handle) { Handle = handle; } - - public ImPlotPointError* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotPointErrorPtr Null => new ImPlotPointErrorPtr(null); - - public ImPlotPointError this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotPointErrorPtr(ImPlotPointError* handle) => new ImPlotPointErrorPtr(handle); - - public static implicit operator ImPlotPointError*(ImPlotPointErrorPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotPointErrorPtr left, ImPlotPointErrorPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotPointErrorPtr left, ImPlotPointErrorPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotPointErrorPtr left, ImPlotPointError* right) => left.Handle == right; - - public static bool operator !=(ImPlotPointErrorPtr left, ImPlotPointError* right) => left.Handle != right; - - public bool Equals(ImPlotPointErrorPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotPointErrorPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotPointErrorPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref double X => ref Unsafe.AsRef<double>(&Handle->X); - /// <summary> - /// To be documented. - /// </summary> - public ref double Y => ref Unsafe.AsRef<double>(&Handle->Y); - /// <summary> - /// To be documented. - /// </summary> - public ref double Neg => ref Unsafe.AsRef<double>(&Handle->Neg); - /// <summary> - /// To be documented. - /// </summary> - public ref double Pos => ref Unsafe.AsRef<double>(&Handle->Pos); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRange.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRange.cs deleted file mode 100644 index 46f59f84a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRange.cs +++ /dev/null @@ -1,182 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotRange - { - /// <summary> - /// To be documented. - /// </summary> - public double Min; - - /// <summary> - /// To be documented. - /// </summary> - public double Max; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotRange(double min = default, double max = default) - { - Min = min; - Max = max; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double Clamp(double value) - { - fixed (ImPlotRange* @this = &this) - { - double ret = ImPlot.ClampNative(@this, value); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Contains(double value) - { - fixed (ImPlotRange* @this = &this) - { - byte ret = ImPlot.ContainsNative(@this, value); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotRange* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double Size() - { - fixed (ImPlotRange* @this = &this) - { - double ret = ImPlot.SizeNative(@this); - return ret; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotRangePtr : IEquatable<ImPlotRangePtr> - { - public ImPlotRangePtr(ImPlotRange* handle) { Handle = handle; } - - public ImPlotRange* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotRangePtr Null => new ImPlotRangePtr(null); - - public ImPlotRange this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotRangePtr(ImPlotRange* handle) => new ImPlotRangePtr(handle); - - public static implicit operator ImPlotRange*(ImPlotRangePtr handle) => handle.Handle; - - public static bool operator ==(ImPlotRangePtr left, ImPlotRangePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotRangePtr left, ImPlotRangePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotRangePtr left, ImPlotRange* right) => left.Handle == right; - - public static bool operator !=(ImPlotRangePtr left, ImPlotRange* right) => left.Handle != right; - - public bool Equals(ImPlotRangePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotRangePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotRangePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref double Min => ref Unsafe.AsRef<double>(&Handle->Min); - /// <summary> - /// To be documented. - /// </summary> - public ref double Max => ref Unsafe.AsRef<double>(&Handle->Max); - /// <summary> - /// To be documented. - /// </summary> - public unsafe double Clamp(double value) - { - double ret = ImPlot.ClampNative(Handle, value); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Contains(double value) - { - byte ret = ImPlot.ContainsNative(Handle, value); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double Size() - { - double ret = ImPlot.SizeNative(Handle); - return ret; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRect.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRect.cs deleted file mode 100644 index 3997c6cd6..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotRect.cs +++ /dev/null @@ -1,161 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotRect - { - /// <summary> - /// To be documented. - /// </summary> - public ImPlotRange X; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotRange Y; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotRect(ImPlotRange x = default, ImPlotRange y = default) - { - X = x; - Y = y; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Contains(ImPlotPoint p) - { - fixed (ImPlotRect* @this = &this) - { - byte ret = ImPlot.ContainsNative(@this, p); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Contains(double x, double y) - { - fixed (ImPlotRect* @this = &this) - { - byte ret = ImPlot.ContainsNative(@this, x, y); - return ret != 0; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotRect* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotRectPtr : IEquatable<ImPlotRectPtr> - { - public ImPlotRectPtr(ImPlotRect* handle) { Handle = handle; } - - public ImPlotRect* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotRectPtr Null => new ImPlotRectPtr(null); - - public ImPlotRect this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotRectPtr(ImPlotRect* handle) => new ImPlotRectPtr(handle); - - public static implicit operator ImPlotRect*(ImPlotRectPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotRectPtr left, ImPlotRectPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotRectPtr left, ImPlotRectPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotRectPtr left, ImPlotRect* right) => left.Handle == right; - - public static bool operator !=(ImPlotRectPtr left, ImPlotRect* right) => left.Handle != right; - - public bool Equals(ImPlotRectPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotRectPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotRectPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotRange X => ref Unsafe.AsRef<ImPlotRange>(&Handle->X); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotRange Y => ref Unsafe.AsRef<ImPlotRange>(&Handle->Y); - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Contains(ImPlotPoint p) - { - byte ret = ImPlot.ContainsNative(Handle, p); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe bool Contains(double x, double y) - { - byte ret = ImPlot.ContainsNative(Handle, x, y); - return ret != 0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotStyle.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotStyle.cs deleted file mode 100644 index bd6d4a4da..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotStyle.cs +++ /dev/null @@ -1,545 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotStyle - { - /// <summary> - /// To be documented. - /// </summary> - public float LineWeight; - - /// <summary> - /// To be documented. - /// </summary> - public int Marker; - - /// <summary> - /// To be documented. - /// </summary> - public float MarkerSize; - - /// <summary> - /// To be documented. - /// </summary> - public float MarkerWeight; - - /// <summary> - /// To be documented. - /// </summary> - public float FillAlpha; - - /// <summary> - /// To be documented. - /// </summary> - public float ErrorBarSize; - - /// <summary> - /// To be documented. - /// </summary> - public float ErrorBarWeight; - - /// <summary> - /// To be documented. - /// </summary> - public float DigitalBitHeight; - - /// <summary> - /// To be documented. - /// </summary> - public float DigitalBitGap; - - /// <summary> - /// To be documented. - /// </summary> - public float PlotBorderSize; - - /// <summary> - /// To be documented. - /// </summary> - public float MinorAlpha; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MajorTickLen; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MinorTickLen; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MajorTickSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MinorTickSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MajorGridSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MinorGridSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 PlotPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LabelPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LegendPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LegendInnerPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LegendSpacing; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MousePosPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 AnnotationPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 FitPadding; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 PlotDefaultSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 PlotMinSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector4 Colors_0; - public Vector4 Colors_1; - public Vector4 Colors_2; - public Vector4 Colors_3; - public Vector4 Colors_4; - public Vector4 Colors_5; - public Vector4 Colors_6; - public Vector4 Colors_7; - public Vector4 Colors_8; - public Vector4 Colors_9; - public Vector4 Colors_10; - public Vector4 Colors_11; - public Vector4 Colors_12; - public Vector4 Colors_13; - public Vector4 Colors_14; - public Vector4 Colors_15; - public Vector4 Colors_16; - public Vector4 Colors_17; - public Vector4 Colors_18; - public Vector4 Colors_19; - public Vector4 Colors_20; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotColormap Colormap; - - /// <summary> - /// To be documented. - /// </summary> - public byte UseLocalTime; - - /// <summary> - /// To be documented. - /// </summary> - public byte UseISO8601; - - /// <summary> - /// To be documented. - /// </summary> - public byte Use24HourClock; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Vector4* colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default) - { - LineWeight = lineWeight; - Marker = marker; - MarkerSize = markerSize; - MarkerWeight = markerWeight; - FillAlpha = fillAlpha; - ErrorBarSize = errorBarSize; - ErrorBarWeight = errorBarWeight; - DigitalBitHeight = digitalBitHeight; - DigitalBitGap = digitalBitGap; - PlotBorderSize = plotBorderSize; - MinorAlpha = minorAlpha; - MajorTickLen = majorTickLen; - MinorTickLen = minorTickLen; - MajorTickSize = majorTickSize; - MinorTickSize = minorTickSize; - MajorGridSize = majorGridSize; - MinorGridSize = minorGridSize; - PlotPadding = plotPadding; - LabelPadding = labelPadding; - LegendPadding = legendPadding; - LegendInnerPadding = legendInnerPadding; - LegendSpacing = legendSpacing; - MousePosPadding = mousePosPadding; - AnnotationPadding = annotationPadding; - FitPadding = fitPadding; - PlotDefaultSize = plotDefaultSize; - PlotMinSize = plotMinSize; - if (colors != default(Vector4*)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - Colors_6 = colors[6]; - Colors_7 = colors[7]; - Colors_8 = colors[8]; - Colors_9 = colors[9]; - Colors_10 = colors[10]; - Colors_11 = colors[11]; - Colors_12 = colors[12]; - Colors_13 = colors[13]; - Colors_14 = colors[14]; - Colors_15 = colors[15]; - Colors_16 = colors[16]; - Colors_17 = colors[17]; - Colors_18 = colors[18]; - Colors_19 = colors[19]; - Colors_20 = colors[20]; - } - Colormap = colormap; - UseLocalTime = useLocalTime ? (byte)1 : (byte)0; - UseISO8601 = useIso8601 ? (byte)1 : (byte)0; - Use24HourClock = use24HourClock ? (byte)1 : (byte)0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Span<Vector4> colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default) - { - LineWeight = lineWeight; - Marker = marker; - MarkerSize = markerSize; - MarkerWeight = markerWeight; - FillAlpha = fillAlpha; - ErrorBarSize = errorBarSize; - ErrorBarWeight = errorBarWeight; - DigitalBitHeight = digitalBitHeight; - DigitalBitGap = digitalBitGap; - PlotBorderSize = plotBorderSize; - MinorAlpha = minorAlpha; - MajorTickLen = majorTickLen; - MinorTickLen = minorTickLen; - MajorTickSize = majorTickSize; - MinorTickSize = minorTickSize; - MajorGridSize = majorGridSize; - MinorGridSize = minorGridSize; - PlotPadding = plotPadding; - LabelPadding = labelPadding; - LegendPadding = legendPadding; - LegendInnerPadding = legendInnerPadding; - LegendSpacing = legendSpacing; - MousePosPadding = mousePosPadding; - AnnotationPadding = annotationPadding; - FitPadding = fitPadding; - PlotDefaultSize = plotDefaultSize; - PlotMinSize = plotMinSize; - if (colors != default(Span<Vector4>)) - { - Colors_0 = colors[0]; - Colors_1 = colors[1]; - Colors_2 = colors[2]; - Colors_3 = colors[3]; - Colors_4 = colors[4]; - Colors_5 = colors[5]; - Colors_6 = colors[6]; - Colors_7 = colors[7]; - Colors_8 = colors[8]; - Colors_9 = colors[9]; - Colors_10 = colors[10]; - Colors_11 = colors[11]; - Colors_12 = colors[12]; - Colors_13 = colors[13]; - Colors_14 = colors[14]; - Colors_15 = colors[15]; - Colors_16 = colors[16]; - Colors_17 = colors[17]; - Colors_18 = colors[18]; - Colors_19 = colors[19]; - Colors_20 = colors[20]; - } - Colormap = colormap; - UseLocalTime = useLocalTime ? (byte)1 : (byte)0; - UseISO8601 = useIso8601 ? (byte)1 : (byte)0; - Use24HourClock = use24HourClock ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> Colors - - { - get - { - fixed (Vector4* p = &this.Colors_0) - { - return new Span<Vector4>(p, 21); - } - } - } - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotStyle* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotStylePtr : IEquatable<ImPlotStylePtr> - { - public ImPlotStylePtr(ImPlotStyle* handle) { Handle = handle; } - - public ImPlotStyle* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotStylePtr Null => new ImPlotStylePtr(null); - - public ImPlotStyle this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotStylePtr(ImPlotStyle* handle) => new ImPlotStylePtr(handle); - - public static implicit operator ImPlotStyle*(ImPlotStylePtr handle) => handle.Handle; - - public static bool operator ==(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle == right; - - public static bool operator !=(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle != right; - - public bool Equals(ImPlotStylePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotStylePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotStylePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref float LineWeight => ref Unsafe.AsRef<float>(&Handle->LineWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref int Marker => ref Unsafe.AsRef<int>(&Handle->Marker); - /// <summary> - /// To be documented. - /// </summary> - public ref float MarkerSize => ref Unsafe.AsRef<float>(&Handle->MarkerSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float MarkerWeight => ref Unsafe.AsRef<float>(&Handle->MarkerWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float FillAlpha => ref Unsafe.AsRef<float>(&Handle->FillAlpha); - /// <summary> - /// To be documented. - /// </summary> - public ref float ErrorBarSize => ref Unsafe.AsRef<float>(&Handle->ErrorBarSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float ErrorBarWeight => ref Unsafe.AsRef<float>(&Handle->ErrorBarWeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float DigitalBitHeight => ref Unsafe.AsRef<float>(&Handle->DigitalBitHeight); - /// <summary> - /// To be documented. - /// </summary> - public ref float DigitalBitGap => ref Unsafe.AsRef<float>(&Handle->DigitalBitGap); - /// <summary> - /// To be documented. - /// </summary> - public ref float PlotBorderSize => ref Unsafe.AsRef<float>(&Handle->PlotBorderSize); - /// <summary> - /// To be documented. - /// </summary> - public ref float MinorAlpha => ref Unsafe.AsRef<float>(&Handle->MinorAlpha); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MajorTickLen => ref Unsafe.AsRef<Vector2>(&Handle->MajorTickLen); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MinorTickLen => ref Unsafe.AsRef<Vector2>(&Handle->MinorTickLen); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MajorTickSize => ref Unsafe.AsRef<Vector2>(&Handle->MajorTickSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MinorTickSize => ref Unsafe.AsRef<Vector2>(&Handle->MinorTickSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MajorGridSize => ref Unsafe.AsRef<Vector2>(&Handle->MajorGridSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MinorGridSize => ref Unsafe.AsRef<Vector2>(&Handle->MinorGridSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 PlotPadding => ref Unsafe.AsRef<Vector2>(&Handle->PlotPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LabelPadding => ref Unsafe.AsRef<Vector2>(&Handle->LabelPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LegendPadding => ref Unsafe.AsRef<Vector2>(&Handle->LegendPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LegendInnerPadding => ref Unsafe.AsRef<Vector2>(&Handle->LegendInnerPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LegendSpacing => ref Unsafe.AsRef<Vector2>(&Handle->LegendSpacing); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MousePosPadding => ref Unsafe.AsRef<Vector2>(&Handle->MousePosPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 AnnotationPadding => ref Unsafe.AsRef<Vector2>(&Handle->AnnotationPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 FitPadding => ref Unsafe.AsRef<Vector2>(&Handle->FitPadding); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 PlotDefaultSize => ref Unsafe.AsRef<Vector2>(&Handle->PlotDefaultSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 PlotMinSize => ref Unsafe.AsRef<Vector2>(&Handle->PlotMinSize); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<Vector4> Colors - - { - get - { - return new Span<Vector4>(&Handle->Colors_0, 21); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotColormap Colormap => ref Unsafe.AsRef<ImPlotColormap>(&Handle->Colormap); - /// <summary> - /// To be documented. - /// </summary> - public ref bool UseLocalTime => ref Unsafe.AsRef<bool>(&Handle->UseLocalTime); - /// <summary> - /// To be documented. - /// </summary> - public ref bool UseISO8601 => ref Unsafe.AsRef<bool>(&Handle->UseISO8601); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Use24HourClock => ref Unsafe.AsRef<bool>(&Handle->Use24HourClock); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotSubplot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotSubplot.cs deleted file mode 100644 index ca1f5f772..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotSubplot.cs +++ /dev/null @@ -1,331 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotSubplot - { - /// <summary> - /// To be documented. - /// </summary> - public uint ID; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotSubplotFlags Flags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotSubplotFlags PreviousFlags; - - /// <summary> - /// To be documented. - /// </summary> - public ImPlotItemGroup Items; - - /// <summary> - /// To be documented. - /// </summary> - public int Rows; - - /// <summary> - /// To be documented. - /// </summary> - public int Cols; - - /// <summary> - /// To be documented. - /// </summary> - public int CurrentIdx; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect FrameRect; - - /// <summary> - /// To be documented. - /// </summary> - public ImRect GridRect; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 CellSize; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotAlignmentData> RowAlignmentData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotAlignmentData> ColAlignmentData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<float> RowRatios; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<float> ColRatios; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotRange> RowLinkData; - - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotRange> ColLinkData; - - /// <summary> - /// To be documented. - /// </summary> - public float TempSizes_0; - public float TempSizes_1; - - /// <summary> - /// To be documented. - /// </summary> - public byte FrameHovered; - - /// <summary> - /// To be documented. - /// </summary> - public byte HasTitle; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotSubplot(uint id = default, ImPlotSubplotFlags flags = default, ImPlotSubplotFlags previousFlags = default, ImPlotItemGroup items = default, int rows = default, int cols = default, int currentIdx = default, ImRect frameRect = default, ImRect gridRect = default, Vector2 cellSize = default, ImVector<ImPlotAlignmentData> rowAlignmentData = default, ImVector<ImPlotAlignmentData> colAlignmentData = default, ImVector<float> rowRatios = default, ImVector<float> colRatios = default, ImVector<ImPlotRange> rowLinkData = default, ImVector<ImPlotRange> colLinkData = default, float* tempSizes = default, bool frameHovered = default, bool hasTitle = default) - { - ID = id; - Flags = flags; - PreviousFlags = previousFlags; - Items = items; - Rows = rows; - Cols = cols; - CurrentIdx = currentIdx; - FrameRect = frameRect; - GridRect = gridRect; - CellSize = cellSize; - RowAlignmentData = rowAlignmentData; - ColAlignmentData = colAlignmentData; - RowRatios = rowRatios; - ColRatios = colRatios; - RowLinkData = rowLinkData; - ColLinkData = colLinkData; - if (tempSizes != default(float*)) - { - TempSizes_0 = tempSizes[0]; - TempSizes_1 = tempSizes[1]; - } - FrameHovered = frameHovered ? (byte)1 : (byte)0; - HasTitle = hasTitle ? (byte)1 : (byte)0; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotSubplot(uint id = default, ImPlotSubplotFlags flags = default, ImPlotSubplotFlags previousFlags = default, ImPlotItemGroup items = default, int rows = default, int cols = default, int currentIdx = default, ImRect frameRect = default, ImRect gridRect = default, Vector2 cellSize = default, ImVector<ImPlotAlignmentData> rowAlignmentData = default, ImVector<ImPlotAlignmentData> colAlignmentData = default, ImVector<float> rowRatios = default, ImVector<float> colRatios = default, ImVector<ImPlotRange> rowLinkData = default, ImVector<ImPlotRange> colLinkData = default, Span<float> tempSizes = default, bool frameHovered = default, bool hasTitle = default) - { - ID = id; - Flags = flags; - PreviousFlags = previousFlags; - Items = items; - Rows = rows; - Cols = cols; - CurrentIdx = currentIdx; - FrameRect = frameRect; - GridRect = gridRect; - CellSize = cellSize; - RowAlignmentData = rowAlignmentData; - ColAlignmentData = colAlignmentData; - RowRatios = rowRatios; - ColRatios = colRatios; - RowLinkData = rowLinkData; - ColLinkData = colLinkData; - if (tempSizes != default(Span<float>)) - { - TempSizes_0 = tempSizes[0]; - TempSizes_1 = tempSizes[1]; - } - FrameHovered = frameHovered ? (byte)1 : (byte)0; - HasTitle = hasTitle ? (byte)1 : (byte)0; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotSubplot* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotSubplotPtr : IEquatable<ImPlotSubplotPtr> - { - public ImPlotSubplotPtr(ImPlotSubplot* handle) { Handle = handle; } - - public ImPlotSubplot* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotSubplotPtr Null => new ImPlotSubplotPtr(null); - - public ImPlotSubplot this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotSubplotPtr(ImPlotSubplot* handle) => new ImPlotSubplotPtr(handle); - - public static implicit operator ImPlotSubplot*(ImPlotSubplotPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotSubplotPtr left, ImPlotSubplotPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotSubplotPtr left, ImPlotSubplotPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotSubplotPtr left, ImPlotSubplot* right) => left.Handle == right; - - public static bool operator !=(ImPlotSubplotPtr left, ImPlotSubplot* right) => left.Handle != right; - - public bool Equals(ImPlotSubplotPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotSubplotPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotSubplotPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref uint ID => ref Unsafe.AsRef<uint>(&Handle->ID); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotSubplotFlags Flags => ref Unsafe.AsRef<ImPlotSubplotFlags>(&Handle->Flags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotSubplotFlags PreviousFlags => ref Unsafe.AsRef<ImPlotSubplotFlags>(&Handle->PreviousFlags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImPlotItemGroup Items => ref Unsafe.AsRef<ImPlotItemGroup>(&Handle->Items); - /// <summary> - /// To be documented. - /// </summary> - public ref int Rows => ref Unsafe.AsRef<int>(&Handle->Rows); - /// <summary> - /// To be documented. - /// </summary> - public ref int Cols => ref Unsafe.AsRef<int>(&Handle->Cols); - /// <summary> - /// To be documented. - /// </summary> - public ref int CurrentIdx => ref Unsafe.AsRef<int>(&Handle->CurrentIdx); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect FrameRect => ref Unsafe.AsRef<ImRect>(&Handle->FrameRect); - /// <summary> - /// To be documented. - /// </summary> - public ref ImRect GridRect => ref Unsafe.AsRef<ImRect>(&Handle->GridRect); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 CellSize => ref Unsafe.AsRef<Vector2>(&Handle->CellSize); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotAlignmentData> RowAlignmentData => ref Unsafe.AsRef<ImVector<ImPlotAlignmentData>>(&Handle->RowAlignmentData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotAlignmentData> ColAlignmentData => ref Unsafe.AsRef<ImVector<ImPlotAlignmentData>>(&Handle->ColAlignmentData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<float> RowRatios => ref Unsafe.AsRef<ImVector<float>>(&Handle->RowRatios); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<float> ColRatios => ref Unsafe.AsRef<ImVector<float>>(&Handle->ColRatios); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotRange> RowLinkData => ref Unsafe.AsRef<ImVector<ImPlotRange>>(&Handle->RowLinkData); - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotRange> ColLinkData => ref Unsafe.AsRef<ImVector<ImPlotRange>>(&Handle->ColLinkData); - /// <summary> - /// To be documented. - /// </summary> - public unsafe Span<float> TempSizes - - { - get - { - return new Span<float>(&Handle->TempSizes_0, 2); - } - } - /// <summary> - /// To be documented. - /// </summary> - public ref bool FrameHovered => ref Unsafe.AsRef<bool>(&Handle->FrameHovered); - /// <summary> - /// To be documented. - /// </summary> - public ref bool HasTitle => ref Unsafe.AsRef<bool>(&Handle->HasTitle); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTag.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTag.cs deleted file mode 100644 index 054426a2e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTag.cs +++ /dev/null @@ -1,130 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotTag - { - /// <summary> - /// To be documented. - /// </summary> - public ImAxis Axis; - - /// <summary> - /// To be documented. - /// </summary> - public double Value; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorBg; - - /// <summary> - /// To be documented. - /// </summary> - public uint ColorFg; - - /// <summary> - /// To be documented. - /// </summary> - public int TextOffset; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTag(ImAxis axis = default, double value = default, uint colorBg = default, uint colorFg = default, int textOffset = default) - { - Axis = axis; - Value = value; - ColorBg = colorBg; - ColorFg = colorFg; - TextOffset = textOffset; - } - - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotTagPtr : IEquatable<ImPlotTagPtr> - { - public ImPlotTagPtr(ImPlotTag* handle) { Handle = handle; } - - public ImPlotTag* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotTagPtr Null => new ImPlotTagPtr(null); - - public ImPlotTag this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotTagPtr(ImPlotTag* handle) => new ImPlotTagPtr(handle); - - public static implicit operator ImPlotTag*(ImPlotTagPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotTagPtr left, ImPlotTagPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotTagPtr left, ImPlotTagPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotTagPtr left, ImPlotTag* right) => left.Handle == right; - - public static bool operator !=(ImPlotTagPtr left, ImPlotTag* right) => left.Handle != right; - - public bool Equals(ImPlotTagPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotTagPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotTagPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImAxis Axis => ref Unsafe.AsRef<ImAxis>(&Handle->Axis); - /// <summary> - /// To be documented. - /// </summary> - public ref double Value => ref Unsafe.AsRef<double>(&Handle->Value); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorBg => ref Unsafe.AsRef<uint>(&Handle->ColorBg); - /// <summary> - /// To be documented. - /// </summary> - public ref uint ColorFg => ref Unsafe.AsRef<uint>(&Handle->ColorFg); - /// <summary> - /// To be documented. - /// </summary> - public ref int TextOffset => ref Unsafe.AsRef<int>(&Handle->TextOffset); - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTagCollection.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTagCollection.cs deleted file mode 100644 index 0549fb9aa..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTagCollection.cs +++ /dev/null @@ -1,450 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotTagCollection - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotTag> Tags; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer TextBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public int Size; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTagCollection(ImVector<ImPlotTag> tags = default, ImGuiTextBuffer textBuffer = default, int size = default) - { - Tags = tags; - TextBuffer = textBuffer; - Size = size; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - fixed (ImPlotTagCollection* @this = &this) - { - ImPlot.AppendNative(@this, axis, value, bg, fg, fmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ref byte fmt) - { - fixed (ImPlotTagCollection* @this = &this) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendNative(@this, axis, value, bg, fg, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt) - { - fixed (ImPlotTagCollection* @this = &this) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendNative(@this, axis, value, bg, fg, (byte*)pfmt); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, string fmt) - { - fixed (ImPlotTagCollection* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendNative(@this, axis, value, bg, fg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - fixed (ImPlotTagCollection* @this = &this) - { - ImPlot.AppendVNative(@this, axis, value, bg, fg, fmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) - { - fixed (ImPlotTagCollection* @this = &this) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendVNative(@this, axis, value, bg, fg, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (ImPlotTagCollection* @this = &this) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendVNative(@this, axis, value, bg, fg, (byte*)pfmt, args); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) - { - fixed (ImPlotTagCollection* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendVNative(@this, axis, value, bg, fg, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotTagCollection* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(int idx) - { - fixed (ImPlotTagCollection* @this = &this) - { - byte* ret = ImPlot.GetTextNative(@this, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(int idx) - { - fixed (ImPlotTagCollection* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotTagCollection* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotTagCollectionPtr : IEquatable<ImPlotTagCollectionPtr> - { - public ImPlotTagCollectionPtr(ImPlotTagCollection* handle) { Handle = handle; } - - public ImPlotTagCollection* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotTagCollectionPtr Null => new ImPlotTagCollectionPtr(null); - - public ImPlotTagCollection this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotTagCollectionPtr(ImPlotTagCollection* handle) => new ImPlotTagCollectionPtr(handle); - - public static implicit operator ImPlotTagCollection*(ImPlotTagCollectionPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotTagCollectionPtr left, ImPlotTagCollectionPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotTagCollectionPtr left, ImPlotTagCollectionPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotTagCollectionPtr left, ImPlotTagCollection* right) => left.Handle == right; - - public static bool operator !=(ImPlotTagCollectionPtr left, ImPlotTagCollection* right) => left.Handle != right; - - public bool Equals(ImPlotTagCollectionPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotTagCollectionPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotTagCollectionPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotTag> Tags => ref Unsafe.AsRef<ImVector<ImPlotTag>>(&Handle->Tags); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TextBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref int Size => ref Unsafe.AsRef<int>(&Handle->Size); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, byte* fmt) - { - ImPlot.AppendNative(Handle, axis, value, bg, fg, fmt); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendNative(Handle, axis, value, bg, fg, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendNative(Handle, axis, value, bg, fg, (byte*)pfmt); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Append(ImAxis axis, double value, uint bg, uint fg, string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendNative(Handle, axis, value, bg, fg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, byte* fmt, nuint args) - { - ImPlot.AppendVNative(Handle, axis, value, bg, fg, fmt, args); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ref byte fmt, nuint args) - { - fixed (byte* pfmt = &fmt) - { - ImPlot.AppendVNative(Handle, axis, value, bg, fg, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, ReadOnlySpan<byte> fmt, nuint args) - { - fixed (byte* pfmt = fmt) - { - ImPlot.AppendVNative(Handle, axis, value, bg, fg, (byte*)pfmt, args); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void AppendV(ImAxis axis, double value, uint bg, uint fg, string fmt, nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlot.AppendVNative(Handle, axis, value, bg, fg, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(int idx) - { - byte* ret = ImPlot.GetTextNative(Handle, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(int idx) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTick.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTick.cs deleted file mode 100644 index f3cd6e92a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTick.cs +++ /dev/null @@ -1,179 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotTick - { - /// <summary> - /// To be documented. - /// </summary> - public double PlotPos; - - /// <summary> - /// To be documented. - /// </summary> - public float PixelPos; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LabelSize; - - /// <summary> - /// To be documented. - /// </summary> - public int TextOffset; - - /// <summary> - /// To be documented. - /// </summary> - public byte Major; - - /// <summary> - /// To be documented. - /// </summary> - public byte ShowLabel; - - /// <summary> - /// To be documented. - /// </summary> - public int Level; - - /// <summary> - /// To be documented. - /// </summary> - public int Idx; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick(double plotPos = default, float pixelPos = default, Vector2 labelSize = default, int textOffset = default, bool major = default, bool showLabel = default, int level = default, int idx = default) - { - PlotPos = plotPos; - PixelPos = pixelPos; - LabelSize = labelSize; - TextOffset = textOffset; - Major = major ? (byte)1 : (byte)0; - ShowLabel = showLabel ? (byte)1 : (byte)0; - Level = level; - Idx = idx; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotTick* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotTickPtr : IEquatable<ImPlotTickPtr> - { - public ImPlotTickPtr(ImPlotTick* handle) { Handle = handle; } - - public ImPlotTick* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotTickPtr Null => new ImPlotTickPtr(null); - - public ImPlotTick this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotTickPtr(ImPlotTick* handle) => new ImPlotTickPtr(handle); - - public static implicit operator ImPlotTick*(ImPlotTickPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotTickPtr left, ImPlotTickPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotTickPtr left, ImPlotTickPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotTickPtr left, ImPlotTick* right) => left.Handle == right; - - public static bool operator !=(ImPlotTickPtr left, ImPlotTick* right) => left.Handle != right; - - public bool Equals(ImPlotTickPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotTickPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotTickPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref double PlotPos => ref Unsafe.AsRef<double>(&Handle->PlotPos); - /// <summary> - /// To be documented. - /// </summary> - public ref float PixelPos => ref Unsafe.AsRef<float>(&Handle->PixelPos); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LabelSize => ref Unsafe.AsRef<Vector2>(&Handle->LabelSize); - /// <summary> - /// To be documented. - /// </summary> - public ref int TextOffset => ref Unsafe.AsRef<int>(&Handle->TextOffset); - /// <summary> - /// To be documented. - /// </summary> - public ref bool Major => ref Unsafe.AsRef<bool>(&Handle->Major); - /// <summary> - /// To be documented. - /// </summary> - public ref bool ShowLabel => ref Unsafe.AsRef<bool>(&Handle->ShowLabel); - /// <summary> - /// To be documented. - /// </summary> - public ref int Level => ref Unsafe.AsRef<int>(&Handle->Level); - /// <summary> - /// To be documented. - /// </summary> - public ref int Idx => ref Unsafe.AsRef<int>(&Handle->Idx); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTicker.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTicker.cs deleted file mode 100644 index b213a57a7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTicker.cs +++ /dev/null @@ -1,472 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotTicker - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotTick> Ticks; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiTextBuffer TextBuffer; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 MaxSize; - - /// <summary> - /// To be documented. - /// </summary> - public Vector2 LateSize; - - /// <summary> - /// To be documented. - /// </summary> - public int Levels; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTicker(ImVector<ImPlotTick> ticks = default, ImGuiTextBuffer textBuffer = default, Vector2 maxSize = default, Vector2 lateSize = default, int levels = default) - { - Ticks = ticks; - TextBuffer = textBuffer; - MaxSize = maxSize; - LateSize = lateSize; - Levels = levels; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, byte* label) - { - fixed (ImPlotTicker* @this = &this) - { - ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ref byte label) - { - fixed (ImPlotTicker* @this = &this) - { - fixed (byte* plabel = &label) - { - ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ReadOnlySpan<byte> label) - { - fixed (ImPlotTicker* @this = &this) - { - fixed (byte* plabel = label) - { - ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, string label) - { - fixed (ImPlotTicker* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) - { - fixed (ImPlotTicker* @this = &this) - { - ImPlotTick* ret = ImPlot.AddTickNative(@this, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(ImPlotTick tick) - { - fixed (ImPlotTicker* @this = &this) - { - ImPlotTick* ret = ImPlot.AddTickNative(@this, tick); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotTicker* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(int idx) - { - fixed (ImPlotTicker* @this = &this) - { - byte* ret = ImPlot.GetTextNative(@this, idx); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(int idx) - { - fixed (ImPlotTicker* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, idx)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(ImPlotTick tick) - { - fixed (ImPlotTicker* @this = &this) - { - byte* ret = ImPlot.GetTextNative(@this, tick); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(ImPlotTick tick) - { - fixed (ImPlotTicker* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(@this, tick)); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void OverrideSizeLate(Vector2 size) - { - fixed (ImPlotTicker* @this = &this) - { - ImPlot.OverrideSizeLateNative(@this, size); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - fixed (ImPlotTicker* @this = &this) - { - ImPlot.ResetNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int TickCount() - { - fixed (ImPlotTicker* @this = &this) - { - int ret = ImPlot.TickCountNative(@this); - return ret; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotTickerPtr : IEquatable<ImPlotTickerPtr> - { - public ImPlotTickerPtr(ImPlotTicker* handle) { Handle = handle; } - - public ImPlotTicker* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotTickerPtr Null => new ImPlotTickerPtr(null); - - public ImPlotTicker this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotTickerPtr(ImPlotTicker* handle) => new ImPlotTickerPtr(handle); - - public static implicit operator ImPlotTicker*(ImPlotTickerPtr handle) => handle.Handle; - - public static bool operator ==(ImPlotTickerPtr left, ImPlotTickerPtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotTickerPtr left, ImPlotTickerPtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotTickerPtr left, ImPlotTicker* right) => left.Handle == right; - - public static bool operator !=(ImPlotTickerPtr left, ImPlotTicker* right) => left.Handle != right; - - public bool Equals(ImPlotTickerPtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotTickerPtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotTickerPtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref ImVector<ImPlotTick> Ticks => ref Unsafe.AsRef<ImVector<ImPlotTick>>(&Handle->Ticks); - /// <summary> - /// To be documented. - /// </summary> - public ref ImGuiTextBuffer TextBuffer => ref Unsafe.AsRef<ImGuiTextBuffer>(&Handle->TextBuffer); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 MaxSize => ref Unsafe.AsRef<Vector2>(&Handle->MaxSize); - /// <summary> - /// To be documented. - /// </summary> - public ref Vector2 LateSize => ref Unsafe.AsRef<Vector2>(&Handle->LateSize); - /// <summary> - /// To be documented. - /// </summary> - public ref int Levels => ref Unsafe.AsRef<int>(&Handle->Levels); - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, byte* label) - { - ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, label); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ref byte label) - { - fixed (byte* plabel = &label) - { - ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ReadOnlySpan<byte> label) - { - fixed (byte* plabel = label) - { - ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, (byte*)plabel); - return ret; - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc<byte>(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(double value, bool major, int level, bool showLabel, ImPlotFormatter formatter, void* data) - { - ImPlotTick* ret = ImPlot.AddTickNative(Handle, value, major ? (byte)1 : (byte)0, level, showLabel ? (byte)1 : (byte)0, formatter, data); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTick* AddTick(ImPlotTick tick) - { - ImPlotTick* ret = ImPlot.AddTickNative(Handle, tick); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(int idx) - { - byte* ret = ImPlot.GetTextNative(Handle, idx); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(int idx) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, idx)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe byte* GetText(ImPlotTick tick) - { - byte* ret = ImPlot.GetTextNative(Handle, tick); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe string GetTextS(ImPlotTick tick) - { - string ret = Utils.DecodeStringUTF8(ImPlot.GetTextNative(Handle, tick)); - return ret; - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void OverrideSizeLate(Vector2 size) - { - ImPlot.OverrideSizeLateNative(Handle, size); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Reset() - { - ImPlot.ResetNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe int TickCount() - { - int ret = ImPlot.TickCountNative(Handle); - return ret; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTime.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTime.cs deleted file mode 100644 index a9881cfaf..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPlotTime.cs +++ /dev/null @@ -1,178 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPlotTime - { - /// <summary> - /// To be documented. - /// </summary> - public long S; - - /// <summary> - /// To be documented. - /// </summary> - public int Us; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPlotTime(long s = default, int us = default) - { - S = s; - Us = us; - } - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - fixed (ImPlotTime* @this = &this) - { - ImPlot.DestroyNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void FromDouble(double t) - { - fixed (ImPlotTime* @this = &this) - { - ImPlot.FromDoubleNative(@this, t); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RollOver() - { - fixed (ImPlotTime* @this = &this) - { - ImPlot.RollOverNative(@this); - } - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double ToDouble() - { - fixed (ImPlotTime* @this = &this) - { - double ret = ImPlot.ToDoubleNative(@this); - return ret; - } - } - - } - - /// <summary> - /// To be documented. - /// </summary> - #if NET5_0_OR_GREATER - [DebuggerDisplay("{DebuggerDisplay,nq}")] - #endif - public unsafe struct ImPlotTimePtr : IEquatable<ImPlotTimePtr> - { - public ImPlotTimePtr(ImPlotTime* handle) { Handle = handle; } - - public ImPlotTime* Handle; - - public bool IsNull => Handle == null; - - public static ImPlotTimePtr Null => new ImPlotTimePtr(null); - - public ImPlotTime this[int index] { get => Handle[index]; set => Handle[index] = value; } - - public static implicit operator ImPlotTimePtr(ImPlotTime* handle) => new ImPlotTimePtr(handle); - - public static implicit operator ImPlotTime*(ImPlotTimePtr handle) => handle.Handle; - - public static bool operator ==(ImPlotTimePtr left, ImPlotTimePtr right) => left.Handle == right.Handle; - - public static bool operator !=(ImPlotTimePtr left, ImPlotTimePtr right) => left.Handle != right.Handle; - - public static bool operator ==(ImPlotTimePtr left, ImPlotTime* right) => left.Handle == right; - - public static bool operator !=(ImPlotTimePtr left, ImPlotTime* right) => left.Handle != right; - - public bool Equals(ImPlotTimePtr other) => Handle == other.Handle; - - /// <inheritdoc/> - public override bool Equals(object obj) => obj is ImPlotTimePtr handle && Equals(handle); - - /// <inheritdoc/> - public override int GetHashCode() => ((nuint)Handle).GetHashCode(); - - #if NET5_0_OR_GREATER - private string DebuggerDisplay => string.Format("ImPlotTimePtr [0x{0}]", ((nuint)Handle).ToString("X")); - #endif - /// <summary> - /// To be documented. - /// </summary> - public ref long S => ref Unsafe.AsRef<long>(&Handle->S); - /// <summary> - /// To be documented. - /// </summary> - public ref int Us => ref Unsafe.AsRef<int>(&Handle->Us); - /// <summary> - /// To be documented. - /// </summary> - public unsafe void Destroy() - { - ImPlot.DestroyNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void FromDouble(double t) - { - ImPlot.FromDoubleNative(Handle, t); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe void RollOver() - { - ImPlot.RollOverNative(Handle); - } - - /// <summary> - /// To be documented. - /// </summary> - public unsafe double ToDouble() - { - double ret = ImPlot.ToDoubleNative(Handle); - return ret; - } - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotAlignmentData.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotAlignmentData.cs deleted file mode 100644 index 5e09b179a..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotAlignmentData.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImPlotAlignmentData - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotAlignmentData> Buf; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Map; - - /// <summary> - /// To be documented. - /// </summary> - public int FreeIdx; - - /// <summary> - /// To be documented. - /// </summary> - public int AliveCount; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPoolImPlotAlignmentData(ImVector<ImPlotAlignmentData> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotItem.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotItem.cs deleted file mode 100644 index a48825a0e..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotItem.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImPlotItem - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotItem> Buf; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Map; - - /// <summary> - /// To be documented. - /// </summary> - public int FreeIdx; - - /// <summary> - /// To be documented. - /// </summary> - public int AliveCount; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPoolImPlotItem(ImVector<ImPlotItem> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotPlot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotPlot.cs deleted file mode 100644 index 417266e20..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotPlot.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImPlotPlot - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotPlot> Buf; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Map; - - /// <summary> - /// To be documented. - /// </summary> - public int FreeIdx; - - /// <summary> - /// To be documented. - /// </summary> - public int AliveCount; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPoolImPlotPlot(ImVector<ImPlotPlot> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotSubplot.cs b/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotSubplot.cs deleted file mode 100644 index 5fecfa8a7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Generated/Structs/ImPoolImPlotSubplot.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ------------------------------------------------------------------------------ -// <auto-generated> -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </auto-generated> -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; -using Dalamud.Bindings.ImGui; - -namespace Dalamud.Bindings.ImPlot -{ - /// <summary> - /// To be documented. - /// </summary> - [StructLayout(LayoutKind.Sequential)] - public partial struct ImPoolImPlotSubplot - { - /// <summary> - /// To be documented. - /// </summary> - public ImVector<ImPlotSubplot> Buf; - - /// <summary> - /// To be documented. - /// </summary> - public ImGuiStorage Map; - - /// <summary> - /// To be documented. - /// </summary> - public int FreeIdx; - - /// <summary> - /// To be documented. - /// </summary> - public int AliveCount; - - - /// <summary> - /// To be documented. - /// </summary> - public unsafe ImPoolImPlotSubplot(ImVector<ImPlotSubplot> buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) - { - Buf = buf; - Map = map; - FreeIdx = freeIdx; - AliveCount = aliveCount; - } - - - } - -} diff --git a/imgui/Dalamud.Bindings.ImPlot/ImPlot.cs b/imgui/Dalamud.Bindings.ImPlot/ImPlot.cs deleted file mode 100644 index 2d43274a7..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/ImPlot.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; - -namespace Dalamud.Bindings.ImPlot -{ - using HexaGen.Runtime; - using System.Diagnostics; - - public static class ImPlotConfig - { - public static bool AotStaticLink; - } - - public static unsafe partial class ImPlot - { - static ImPlot() - { - if (ImPlotConfig.AotStaticLink) - { - InitApi(new NativeLibraryContext(Process.GetCurrentProcess().MainModule!.BaseAddress)); - } - else - { - // InitApi(new NativeLibraryContext(LibraryLoader.LoadLibrary(GetLibraryName, null))); - InitApi(new NativeLibraryContext(Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, GetLibraryName() + ".dll"))); - } - } - - public static string GetLibraryName() - { - return "cimplot"; - } - } -} diff --git a/imgui/Dalamud.Bindings.ImPlot/LICENSE.txt b/imgui/Dalamud.Bindings.ImPlot/LICENSE.txt deleted file mode 100644 index b5dae7ac2..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Juna Meinhold - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/imgui/Dalamud.Bindings.ImPlot/Tm.cs b/imgui/Dalamud.Bindings.ImPlot/Tm.cs deleted file mode 100644 index 5143dcfc5..000000000 --- a/imgui/Dalamud.Bindings.ImPlot/Tm.cs +++ /dev/null @@ -1,109 +0,0 @@ -namespace Dalamud.Bindings.ImPlot -{ - using System; - - public struct Tm : IEquatable<Tm> - { - /// <summary> - /// seconds after the minute - [0, 60] including leap second - /// </summary> - public int Sec; - - /// <summary> - /// minutes after the hour - [0, 59] - /// </summary> - public int Min; - - /// <summary> - /// hours since midnight - [0, 23] - /// </summary> - public int Hour; - - /// <summary> - /// day of the month - [1, 31] - /// </summary> - public int MDay; - - /// <summary> - /// months since January - [0, 11] - /// </summary> - public int Mon; - - /// <summary> - /// years since 1900 - /// </summary> - public int Year; - - /// <summary> - /// days since Sunday - [0, 6] - /// </summary> - public int WDay; - - /// <summary> - /// days since January 1 - [0, 365] - /// </summary> - public int YDay; - - /// <summary> - /// daylight savings time flag - /// </summary> - public int IsDst; - - public override bool Equals(object? obj) - { - return obj is Tm tm && Equals(tm); - } - - public bool Equals(Tm other) - { - return Sec == other.Sec && - Min == other.Min && - Hour == other.Hour && - MDay == other.MDay && - Mon == other.Mon && - Year == other.Year && - WDay == other.WDay && - YDay == other.YDay && - IsDst == other.IsDst; - } - - public override int GetHashCode() - { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER - HashCode hash = new HashCode(); - hash.Add(Sec); - hash.Add(Min); - hash.Add(Hour); - hash.Add(MDay); - hash.Add(Mon); - hash.Add(Year); - hash.Add(WDay); - hash.Add(YDay); - hash.Add(IsDst); - return hash.ToHashCode(); -#else - int hash = 17; - hash = hash * 31 + Sec.GetHashCode(); - hash = hash * 31 + Min.GetHashCode(); - hash = hash * 31 + Hour.GetHashCode(); - hash = hash * 31 + MDay.GetHashCode(); - hash = hash * 31 + Mon.GetHashCode(); - hash = hash * 31 + Year.GetHashCode(); - hash = hash * 31 + WDay.GetHashCode(); - hash = hash * 31 + YDay.GetHashCode(); - hash = hash * 31 + IsDst.GetHashCode(); - return hash; -#endif - } - - public static bool operator ==(Tm left, Tm right) - { - return left.Equals(right); - } - - public static bool operator !=(Tm left, Tm right) - { - return !(left == right); - } - } -} diff --git a/imgui/ImGuiScene/Dummy.cs b/imgui/ImGuiScene/Dummy.cs deleted file mode 100644 index 91d31ff3d..000000000 --- a/imgui/ImGuiScene/Dummy.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace ImGuiScene; - -public class Dummy -{ - // There is nothing here on purpose. This project does nothing. - // XIVLauncher checks if it can read ImGuiScene.dll to see if a Dalamud install is valid, so we need to ship it - // anyway for now... -} diff --git a/imgui/ImGuiScene/ImGuiScene.csproj b/imgui/ImGuiScene/ImGuiScene.csproj deleted file mode 100644 index a652e3197..000000000 --- a/imgui/ImGuiScene/ImGuiScene.csproj +++ /dev/null @@ -1,8 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - - <PropertyGroup> - <ImplicitUsings>enable</ImplicitUsings> - <Nullable>enable</Nullable> - </PropertyGroup> - -</Project> diff --git a/imgui/StandaloneImGuiTestbed/ImGuiBackend.cs b/imgui/StandaloneImGuiTestbed/ImGuiBackend.cs deleted file mode 100644 index 5cf147ec3..000000000 --- a/imgui/StandaloneImGuiTestbed/ImGuiBackend.cs +++ /dev/null @@ -1,638 +0,0 @@ -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -using Dalamud.Bindings.ImGui; - -using Veldrid; -using Veldrid.Sdl2; - -namespace StandaloneImGuiTestbed; - -public class ImGuiBackend : IDisposable -{ - private GraphicsDevice gd; - private bool frameBegun; - - // Veldrid objects - private DeviceBuffer? vertexBuffer; - private DeviceBuffer? indexBuffer; - private DeviceBuffer? projMatrixBuffer; - private Texture? fontTexture; - private TextureView? fontTextureView; - private Shader? vertexShader; - private Shader? fragmentShader; - private ResourceLayout? layout; - private ResourceLayout? textureLayout; - private Pipeline? pipeline; - private ResourceSet? mainResourceSet; - private ResourceSet? fontTextureResourceSet; - - private readonly IntPtr fontAtlasId = (IntPtr)1; - private bool controlDown; - private bool shiftDown; - private bool altDown; - private bool winKeyDown; - - private IntPtr iniPathPtr; - - private int windowWidth; - private int windowHeight; - private Vector2 scaleFactor = Vector2.One; - - // Image trackers - private readonly Dictionary<TextureView, ResourceSetInfo> setsByView = new(); - - private readonly Dictionary<Texture, TextureView> autoViewsByTexture = new(); - - private readonly Dictionary<IntPtr, ResourceSetInfo> viewsById = new Dictionary<IntPtr, ResourceSetInfo>(); - private readonly List<IDisposable> ownedResources = new List<IDisposable>(); - private int lastAssignedID = 100; - - private delegate void SetClipboardTextDelegate(IntPtr userData, string text); - - private delegate string GetClipboardTextDelegate(); - - // variables because they need to exist for the program duration without being gc'd - private SetClipboardTextDelegate setText; - private GetClipboardTextDelegate getText; - - /// <summary> - /// Constructs a new ImGuiBackend. - /// </summary> - public unsafe ImGuiBackend(GraphicsDevice gd, OutputDescription outputDescription, int width, int height, FileInfo iniPath, float fontPxSize) - { - this.gd = gd; - windowWidth = width; - windowHeight = height; - - ImGui.CreateContext(); - - ImGui.GetIO().ConfigFlags |= ImGuiConfigFlags.NavEnableKeyboard | ImGuiConfigFlags.NavEnableGamepad; - ImGui.GetIO().BackendFlags |= ImGuiBackendFlags.HasGamepad; - - SetIniPath(iniPath.FullName); - - setText = SetClipboardText; - getText = GetClipboardText; - - var io = ImGui.GetIO(); - io.SetClipboardTextFn = Marshal.GetFunctionPointerForDelegate(setText).ToPointer(); - io.GetClipboardTextFn = Marshal.GetFunctionPointerForDelegate(getText).ToPointer(); - io.ClipboardUserData = null; - - CreateDeviceResources(gd, outputDescription, fontPxSize); - SetKeyMappings(); - - SetPerFrameImGuiData(1f / 60f); - - ImGui.NewFrame(); - frameBegun = true; - } - - private void SetIniPath(string iniPath) - { - if (iniPathPtr != IntPtr.Zero) - { - Marshal.FreeHGlobal(iniPathPtr); - } - - iniPathPtr = Marshal.StringToHGlobalAnsi(iniPath); - - unsafe - { - var io = ImGui.GetIO(); - io.IniFilename = (byte*)iniPathPtr.ToPointer(); - } - } - - private static void SetClipboardText(IntPtr userData, string text) - { - // text always seems to have an extra newline, but I'll leave it for now - Sdl2Native.SDL_SetClipboardText(text); - } - - private static string GetClipboardText() - { - return Sdl2Native.SDL_GetClipboardText(); - } - - public void WindowResized(int width, int height) - { - windowWidth = width; - windowHeight = height; - } - - public void DestroyDeviceObjects() - { - Dispose(); - } - - public void CreateDeviceResources(GraphicsDevice gd, OutputDescription outputDescription, float fontPxSize) - { - this.gd = gd; - var factory = gd.ResourceFactory; - vertexBuffer = factory.CreateBuffer(new BufferDescription(10000, BufferUsage.VertexBuffer | BufferUsage.Dynamic)); - vertexBuffer.Name = "ImGui.NET Vertex Buffer"; - indexBuffer = factory.CreateBuffer(new BufferDescription(2000, BufferUsage.IndexBuffer | BufferUsage.Dynamic)); - indexBuffer.Name = "ImGui.NET Index Buffer"; - - var ioFonts = ImGui.GetIO().Fonts; - - ImGui.GetIO().Fonts.Clear(); - ImGui.GetIO().Fonts.AddFontDefault(); - ImGui.GetIO().Fonts.Build(); - - RecreateFontDeviceTexture(gd); - - projMatrixBuffer = factory.CreateBuffer(new BufferDescription(64, BufferUsage.UniformBuffer | BufferUsage.Dynamic)); - projMatrixBuffer.Name = "ImGui.NET Projection Buffer"; - - var vertexShaderBytes = LoadEmbeddedShaderCode(gd.ResourceFactory, "imgui-vertex", ShaderStages.Vertex); - var fragmentShaderBytes = LoadEmbeddedShaderCode(gd.ResourceFactory, "imgui-frag", ShaderStages.Fragment); - vertexShader = factory.CreateShader(new ShaderDescription(ShaderStages.Vertex, vertexShaderBytes, gd.BackendType == GraphicsBackend.Metal ? "VS" : "main")); - fragmentShader = factory.CreateShader(new ShaderDescription(ShaderStages.Fragment, fragmentShaderBytes, gd.BackendType == GraphicsBackend.Metal ? "FS" : "main")); - - var vertexLayouts = new VertexLayoutDescription[] - { - new VertexLayoutDescription( - new VertexElementDescription("in_position", VertexElementSemantic.Position, VertexElementFormat.Float2), - new VertexElementDescription("in_texCoord", VertexElementSemantic.TextureCoordinate, VertexElementFormat.Float2), - new VertexElementDescription("in_color", VertexElementSemantic.Color, VertexElementFormat.Byte4_Norm)) - }; - - layout = factory.CreateResourceLayout(new ResourceLayoutDescription( - new ResourceLayoutElementDescription("ProjectionMatrixBuffer", ResourceKind.UniformBuffer, ShaderStages.Vertex), - new ResourceLayoutElementDescription("MainSampler", ResourceKind.Sampler, ShaderStages.Fragment))); - textureLayout = factory.CreateResourceLayout(new ResourceLayoutDescription( - new ResourceLayoutElementDescription("MainTexture", ResourceKind.TextureReadOnly, ShaderStages.Fragment))); - - var pd = new GraphicsPipelineDescription( - BlendStateDescription.SingleAlphaBlend, - new DepthStencilStateDescription(false, false, ComparisonKind.Always), - new RasterizerStateDescription(FaceCullMode.None, PolygonFillMode.Solid, FrontFace.Clockwise, false, true), - PrimitiveTopology.TriangleList, - new ShaderSetDescription(vertexLayouts, new[] { vertexShader, fragmentShader }), - new ResourceLayout[] { layout, textureLayout }, - outputDescription, - ResourceBindingModel.Default); - pipeline = factory.CreateGraphicsPipeline(ref pd); - - mainResourceSet = factory.CreateResourceSet(new ResourceSetDescription(layout, - projMatrixBuffer, - gd.PointSampler)); - - fontTextureResourceSet = factory.CreateResourceSet(new ResourceSetDescription(textureLayout, fontTextureView)); - } - - /// <summary> - /// Gets or creates a handle for a texture to be drawn with ImGui. - /// Pass the returned handle to Image() or ImageButton(). - /// </summary> - public IntPtr GetOrCreateImGuiBinding(ResourceFactory factory, TextureView textureView) - { - if (!setsByView.TryGetValue(textureView, out var rsi)) - { - var resourceSet = factory.CreateResourceSet(new ResourceSetDescription(textureLayout, textureView)); - rsi = new ResourceSetInfo(this.GetNextImGuiBindingId(), resourceSet); - - setsByView.Add(textureView, rsi); - viewsById.Add(rsi.ImGuiBinding, rsi); - ownedResources.Add(resourceSet); - } - - return rsi.ImGuiBinding; - } - - private IntPtr GetNextImGuiBindingId() - { - var newId = lastAssignedID++; - return (IntPtr)newId; - } - - /// <summary> - /// Gets or creates a handle for a texture to be drawn with ImGui. - /// Pass the returned handle to Image() or ImageButton(). - /// </summary> - public IntPtr GetOrCreateImGuiBinding(ResourceFactory factory, Texture texture) - { - if (!autoViewsByTexture.TryGetValue(texture, out var textureView)) - { - textureView = factory.CreateTextureView(texture); - autoViewsByTexture.Add(texture, textureView); - ownedResources.Add(textureView); - } - - return GetOrCreateImGuiBinding(factory, textureView); - } - - /// <summary> - /// Retrieves the shader texture binding for the given helper handle. - /// </summary> - public ResourceSet GetImageResourceSet(IntPtr imGuiBinding) - { - if (!viewsById.TryGetValue(imGuiBinding, out var tvi)) - { - throw new InvalidOperationException("No registered ImGui binding with id " + imGuiBinding.ToString()); - } - - return tvi.ResourceSet; - } - - public void ClearCachedImageResources() - { - foreach (var resource in ownedResources) - { - resource.Dispose(); - } - - ownedResources.Clear(); - setsByView.Clear(); - viewsById.Clear(); - autoViewsByTexture.Clear(); - lastAssignedID = 100; - } - - public static byte[] GetEmbeddedResourceBytes(string resourceName) - { - var assembly = typeof(ImGuiBackend).Assembly; - - using var s = assembly.GetManifestResourceStream(resourceName); - if (s == null) - throw new ArgumentException($"Resource {resourceName} not found", nameof(resourceName)); - - var ret = new byte[s.Length]; - s.ReadExactly(ret, 0, (int)s.Length); - return ret; - } - - private byte[] LoadEmbeddedShaderCode(ResourceFactory factory, string name, ShaderStages stage) - { - switch (factory.BackendType) - { - case GraphicsBackend.Direct3D11: - { - var resourceName = name + ".hlsl.bytes"; - return GetEmbeddedResourceBytes(resourceName); - } - - case GraphicsBackend.OpenGL: - { - var resourceName = name + ".glsl"; - return GetEmbeddedResourceBytes(resourceName); - } - - case GraphicsBackend.Vulkan: - { - var resourceName = name + ".spv"; - return GetEmbeddedResourceBytes(resourceName); - } - - case GraphicsBackend.Metal: - { - var resourceName = name + ".metallib"; - return GetEmbeddedResourceBytes(resourceName); - } - - default: - throw new NotImplementedException(); - } - } - - /// <summary> - /// Recreates the device texture used to render text. - /// </summary> - public unsafe void RecreateFontDeviceTexture(GraphicsDevice gd) - { - var io = ImGui.GetIO(); - // Build - byte* pixels = null; - int width, height, bytesPerPixel; - io.Fonts.GetTexDataAsRGBA32(0, &pixels, &width, &height, &bytesPerPixel); - // Store our identifier - io.Fonts.SetTexID(0, new ImTextureID(this.fontAtlasId)); - - fontTexture = gd.ResourceFactory.CreateTexture(TextureDescription.Texture2D( - (uint)width, - (uint)height, - 1, - 1, - PixelFormat.R8_G8_B8_A8_UNorm, - TextureUsage.Sampled)); - fontTexture.Name = "ImGui.NET Font Texture"; - gd.UpdateTexture( - fontTexture, - new IntPtr(pixels), - (uint)(bytesPerPixel * width * height), - 0, - 0, - 0, - (uint)width, - (uint)height, - 1, - 0, - 0); - fontTextureView = gd.ResourceFactory.CreateTextureView(fontTexture); - - io.Fonts.ClearTexData(); - } - - /// <summary> - /// Renders the ImGui draw list data. - /// This method requires a <see cref="GraphicsDevice"/> because it may create new DeviceBuffers if the size of vertex - /// or index data has increased beyond the capacity of the existing buffers. - /// A <see cref="CommandList"/> is needed to submit drawing and resource update commands. - /// </summary> - public void Render(GraphicsDevice gd, CommandList cl) - { - if (frameBegun) - { - frameBegun = false; - ImGui.Render(); - RenderImDrawData(ImGui.GetDrawData(), gd, cl); - } - } - - /// <summary> - /// Updates ImGui input and IO configuration state. - /// </summary> - public void Update(float deltaSeconds, InputSnapshot snapshot) - { - if (frameBegun) - { - ImGui.Render(); - } - - SetPerFrameImGuiData(deltaSeconds); - UpdateImGuiInput(snapshot); - - frameBegun = true; - ImGui.NewFrame(); - } - - /// <summary> - /// Sets per-frame data based on the associated window. - /// This is called by Update(float). - /// </summary> - private void SetPerFrameImGuiData(float deltaSeconds) - { - var io = ImGui.GetIO(); - io.DisplaySize = new Vector2( - windowWidth / scaleFactor.X, - windowHeight / scaleFactor.Y); - io.DisplayFramebufferScale = scaleFactor; - io.DeltaTime = deltaSeconds; // DeltaTime is in seconds. - } - - private void UpdateImGuiInput(InputSnapshot snapshot) - { - var io = ImGui.GetIO(); - - var mousePosition = snapshot.MousePosition; - - // Determine if any of the mouse buttons were pressed during this snapshot period, even if they are no longer held. - var leftPressed = false; - var middlePressed = false; - var rightPressed = false; - - foreach (var me in snapshot.MouseEvents) - { - if (me.Down) - { - switch (me.MouseButton) - { - case MouseButton.Left: - leftPressed = true; - break; - - case MouseButton.Middle: - middlePressed = true; - break; - - case MouseButton.Right: - rightPressed = true; - break; - } - } - } - - io.MouseDown[0] = leftPressed || snapshot.IsMouseDown(MouseButton.Left); - io.MouseDown[1] = rightPressed || snapshot.IsMouseDown(MouseButton.Right); - io.MouseDown[2] = middlePressed || snapshot.IsMouseDown(MouseButton.Middle); - io.MousePos = mousePosition; - io.MouseWheel = snapshot.WheelDelta; - - var keyCharPresses = snapshot.KeyCharPresses; - - for (var i = 0; i < keyCharPresses.Count; i++) - { - var c = keyCharPresses[i]; - io.AddInputCharacter(c); - } - - var keyEvents = snapshot.KeyEvents; - - for (var i = 0; i < keyEvents.Count; i++) - { - var keyEvent = keyEvents[i]; - io.KeysDown[(int)keyEvent.Key] = keyEvent.Down; - - if (keyEvent.Key == Key.ControlLeft) - { - controlDown = keyEvent.Down; - } - - if (keyEvent.Key == Key.ShiftLeft) - { - shiftDown = keyEvent.Down; - } - - if (keyEvent.Key == Key.AltLeft) - { - altDown = keyEvent.Down; - } - - if (keyEvent.Key == Key.WinLeft) - { - winKeyDown = keyEvent.Down; - } - } - - io.KeyCtrl = controlDown; - io.KeyAlt = altDown; - io.KeyShift = shiftDown; - io.KeySuper = winKeyDown; - } - - private static void SetKeyMappings() - { - var io = ImGui.GetIO(); - io.KeyMap[(int)ImGuiKey.Tab] = (int)Key.Tab; - io.KeyMap[(int)ImGuiKey.LeftArrow] = (int)Key.Left; - io.KeyMap[(int)ImGuiKey.RightArrow] = (int)Key.Right; - io.KeyMap[(int)ImGuiKey.UpArrow] = (int)Key.Up; - io.KeyMap[(int)ImGuiKey.DownArrow] = (int)Key.Down; - io.KeyMap[(int)ImGuiKey.PageUp] = (int)Key.PageUp; - io.KeyMap[(int)ImGuiKey.PageDown] = (int)Key.PageDown; - io.KeyMap[(int)ImGuiKey.Home] = (int)Key.Home; - io.KeyMap[(int)ImGuiKey.End] = (int)Key.End; - io.KeyMap[(int)ImGuiKey.Delete] = (int)Key.Delete; - io.KeyMap[(int)ImGuiKey.Backspace] = (int)Key.BackSpace; - io.KeyMap[(int)ImGuiKey.Enter] = (int)Key.Enter; - io.KeyMap[(int)ImGuiKey.Escape] = (int)Key.Escape; - io.KeyMap[(int)ImGuiKey.Space] = (int)Key.Space; - io.KeyMap[(int)ImGuiKey.KeypadEnter] = (int)Key.KeypadEnter; - io.KeyMap[(int)ImGuiKey.A] = (int)Key.A; - io.KeyMap[(int)ImGuiKey.C] = (int)Key.C; - io.KeyMap[(int)ImGuiKey.V] = (int)Key.V; - io.KeyMap[(int)ImGuiKey.X] = (int)Key.X; - io.KeyMap[(int)ImGuiKey.Y] = (int)Key.Y; - io.KeyMap[(int)ImGuiKey.Z] = (int)Key.Z; - } - - private unsafe void RenderImDrawData(ImDrawDataPtr drawData, GraphicsDevice gd, CommandList cl) - { - uint vertexOffsetInVertices = 0; - uint indexOffsetInElements = 0; - - if (drawData.CmdListsCount == 0) - { - return; - } - - var totalVbSize = (uint)(drawData.TotalVtxCount * Unsafe.SizeOf<ImDrawVert>()); - - if (totalVbSize > vertexBuffer!.SizeInBytes) - { - gd.DisposeWhenIdle(vertexBuffer); - vertexBuffer = gd.ResourceFactory.CreateBuffer(new BufferDescription((uint)(totalVbSize * 1.5f), BufferUsage.VertexBuffer | BufferUsage.Dynamic)); - } - - var totalIbSize = (uint)(drawData.TotalIdxCount * sizeof(ushort)); - - if (totalIbSize > indexBuffer!.SizeInBytes) - { - gd.DisposeWhenIdle(indexBuffer); - indexBuffer = gd.ResourceFactory.CreateBuffer(new BufferDescription((uint)(totalIbSize * 1.5f), BufferUsage.IndexBuffer | BufferUsage.Dynamic)); - } - - for (var i = 0; i < drawData.CmdListsCount; i++) - { - ImDrawListPtr cmdList = drawData.CmdLists[i]; - - cl.UpdateBuffer( - vertexBuffer, - vertexOffsetInVertices * (uint)Unsafe.SizeOf<ImDrawVert>(), - new IntPtr(cmdList.VtxBuffer.Data), - (uint)(cmdList.VtxBuffer.Size * Unsafe.SizeOf<ImDrawVert>())); - - cl.UpdateBuffer( - indexBuffer, - indexOffsetInElements * sizeof(ushort), - new IntPtr(cmdList.IdxBuffer.Data), - (uint)(cmdList.IdxBuffer.Size * sizeof(ushort))); - - vertexOffsetInVertices += (uint)cmdList.VtxBuffer.Size; - indexOffsetInElements += (uint)cmdList.IdxBuffer.Size; - } - - // Setup orthographic projection matrix into our constant buffer - var io = ImGui.GetIO(); - var mvp = Matrix4x4.CreateOrthographicOffCenter( - 0f, - io.DisplaySize.X, - io.DisplaySize.Y, - 0.0f, - -1.0f, - 1.0f); - - this.gd.UpdateBuffer(this.projMatrixBuffer, 0, ref mvp); - - cl.SetVertexBuffer(0, vertexBuffer); - cl.SetIndexBuffer(indexBuffer, IndexFormat.UInt16); - cl.SetPipeline(pipeline); - cl.SetGraphicsResourceSet(0, mainResourceSet); - - drawData.ScaleClipRects(io.DisplayFramebufferScale); - - // Render command lists - var globalIdxOffset = 0; - var globalVtxOffset = 0; - - for (var n = 0; n < drawData.CmdListsCount; n++) - { - ImDrawListPtr cmdList = drawData.CmdLists[n]; - - for (var cmdI = 0; cmdI < cmdList.CmdBuffer.Size; cmdI++) - { - var pcmd = cmdList.CmdBuffer[cmdI]; - - if (pcmd.UserCallback != null) - { - throw new NotImplementedException(); - } - else - { - if (pcmd.TextureId != IntPtr.Zero) - { - if (pcmd.TextureId == this.fontAtlasId) - { - cl.SetGraphicsResourceSet(1, fontTextureResourceSet); - } - else - { - cl.SetGraphicsResourceSet(1, GetImageResourceSet((nint)pcmd.TextureId.Handle)); - } - } - - cl.SetScissorRect( - 0, - (uint)pcmd.ClipRect.X, - (uint)pcmd.ClipRect.Y, - (uint)(pcmd.ClipRect.Z - pcmd.ClipRect.X), - (uint)(pcmd.ClipRect.W - pcmd.ClipRect.Y)); - - cl.DrawIndexed(pcmd.ElemCount, 1, pcmd.IdxOffset + (uint)globalIdxOffset, (int)pcmd.VtxOffset + globalVtxOffset, 0); - } - } - - globalIdxOffset += cmdList.IdxBuffer.Size; - globalVtxOffset += cmdList.VtxBuffer.Size; - } - } - - /// <summary> - /// Frees all graphics resources used by the renderer. - /// </summary> - public void Dispose() - { - vertexBuffer?.Dispose(); - indexBuffer?.Dispose(); - projMatrixBuffer?.Dispose(); - fontTexture?.Dispose(); - fontTextureView?.Dispose(); - vertexShader?.Dispose(); - fragmentShader?.Dispose(); - layout?.Dispose(); - textureLayout?.Dispose(); - pipeline?.Dispose(); - mainResourceSet?.Dispose(); - - foreach (var resource in ownedResources) - { - resource.Dispose(); - } - } - - private struct ResourceSetInfo - { - public readonly IntPtr ImGuiBinding; - public readonly ResourceSet ResourceSet; - - public ResourceSetInfo(IntPtr imGuiBinding, ResourceSet resourceSet) - { - ImGuiBinding = imGuiBinding; - ResourceSet = resourceSet; - } - } -} diff --git a/imgui/StandaloneImGuiTestbed/Program.cs b/imgui/StandaloneImGuiTestbed/Program.cs deleted file mode 100644 index 417c05880..000000000 --- a/imgui/StandaloneImGuiTestbed/Program.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Veldrid; -using Veldrid.Sdl2; -using Veldrid.StartupUtilities; - -namespace StandaloneImGuiTestbed; - -class Program -{ - static void Main(string[] args) - { - Sdl2Window window; - GraphicsDevice gd; - - ImGuiBackend? backend = null; - - VeldridStartup.CreateWindowAndGraphicsDevice( - new WindowCreateInfo(50, 50, 1280, 800, WindowState.Normal, "Dalamud Standalone ImGui Testbed"), - new GraphicsDeviceOptions(false, null, true, ResourceBindingModel.Improved, true, true), - out window, - out gd); - - window.Resized += () => - { - gd.MainSwapchain.Resize((uint)window.Width, (uint)window.Height); - backend!.WindowResized(window.Width, window.Height); - }; - - var cl = gd.ResourceFactory.CreateCommandList(); - backend = new ImGuiBackend(gd, gd.MainSwapchain.Framebuffer.OutputDescription, window.Width, window.Height, new FileInfo("imgui.ini"), 21.0f); - - var testbed = new Testbed(); - - while (window.Exists) - { - Thread.Sleep(50); - - var snapshot = window.PumpEvents(); - - if (!window.Exists) - break; - - backend.Update(1f / 60f, snapshot); - - testbed.Draw(); - - cl.Begin(); - cl.SetFramebuffer(gd.MainSwapchain.Framebuffer); - cl.ClearColorTarget(0, new RgbaFloat(0, 0, 0, 1f)); - backend.Render(gd, cl); - cl.End(); - gd.SubmitCommands(cl); - gd.SwapBuffers(gd.MainSwapchain); - } - - // Clean up Veldrid resources - gd.WaitForIdle(); - backend.Dispose(); - cl.Dispose(); - gd.Dispose(); - } -} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-frag.glsl b/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-frag.glsl deleted file mode 100644 index 85e5ee981..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-frag.glsl +++ /dev/null @@ -1,13 +0,0 @@ -#version 330 core - -uniform sampler2D FontTexture; - -in vec4 color; -in vec2 texCoord; - -out vec4 outputColor; - -void main() -{ - outputColor = color * texture(FontTexture, texCoord); -} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-vertex.glsl b/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-vertex.glsl deleted file mode 100644 index 997ce0d1e..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/GLSL/imgui-vertex.glsl +++ /dev/null @@ -1,20 +0,0 @@ -#version 330 core - -uniform ProjectionMatrixBuffer -{ - mat4 projection_matrix; -}; - -in vec2 in_position; -in vec2 in_texCoord; -in vec4 in_color; - -out vec4 color; -out vec2 texCoord; - -void main() -{ - gl_Position = projection_matrix * vec4(in_position, 0, 1); - color = in_color; - texCoord = in_texCoord; -} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl deleted file mode 100644 index 63d175f0c..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl +++ /dev/null @@ -1,15 +0,0 @@ -struct PS_INPUT -{ - float4 pos : SV_POSITION; - float4 col : COLOR0; - float2 uv : TEXCOORD0; -}; - -Texture2D FontTexture : register(t0); -sampler FontSampler : register(s0); - -float4 FS(PS_INPUT input) : SV_Target -{ - float4 out_col = input.col * FontTexture.Sample(FontSampler, input.uv); - return out_col; -} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl.bytes b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl.bytes deleted file mode 100644 index 2a9fbf5a3..000000000 Binary files a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-frag.hlsl.bytes and /dev/null differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl deleted file mode 100644 index 55793c19e..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl +++ /dev/null @@ -1,27 +0,0 @@ -cbuffer ProjectionMatrixBuffer : register(b0) -{ - float4x4 ProjectionMatrix; -}; - -struct VS_INPUT -{ - float2 pos : POSITION; - float2 uv : TEXCOORD0; - float4 col : COLOR0; -}; - -struct PS_INPUT -{ - float4 pos : SV_POSITION; - float4 col : COLOR0; - float2 uv : TEXCOORD0; -}; - -PS_INPUT VS(VS_INPUT input) -{ - PS_INPUT output; - output.pos = mul(ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f)); - output.col = input.col; - output.uv = input.uv; - return output; -} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl.bytes b/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl.bytes deleted file mode 100644 index 572a04538..000000000 Binary files a/imgui/StandaloneImGuiTestbed/Shaders/HLSL/imgui-vertex.hlsl.bytes and /dev/null differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal deleted file mode 100644 index ff3cbe6bd..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal +++ /dev/null @@ -1,18 +0,0 @@ -#include <metal_stdlib> -using namespace metal; - -struct PS_INPUT -{ - float4 pos [[ position ]]; - float4 col; - float2 uv; -}; - -fragment float4 FS( - PS_INPUT input [[ stage_in ]], - texture2d<float> FontTexture [[ texture(0) ]], - sampler FontSampler [[ sampler(0) ]]) -{ - float4 out_col = input.col * FontTexture.sample(FontSampler, input.uv); - return out_col; -} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metallib b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metallib deleted file mode 100644 index 18a3d73b2..000000000 Binary files a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metallib and /dev/null differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metal b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metal deleted file mode 100644 index 73d649e8b..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metal +++ /dev/null @@ -1,27 +0,0 @@ -#include <metal_stdlib> -using namespace metal; - -struct VS_INPUT -{ - float2 pos [[ attribute(0) ]]; - float2 uv [[ attribute(1) ]]; - float4 col [[ attribute(2) ]]; -}; - -struct PS_INPUT -{ - float4 pos [[ position ]]; - float4 col; - float2 uv; -}; - -vertex PS_INPUT VS( - VS_INPUT input [[ stage_in ]], - constant float4x4 &ProjectionMatrix [[ buffer(1) ]]) -{ - PS_INPUT output; - output.pos = ProjectionMatrix * float4(input.pos.xy, 0.f, 1.f); - output.col = input.col; - output.uv = input.uv; - return output; -} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metallib b/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metallib deleted file mode 100644 index 2998b9480..000000000 Binary files a/imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-vertex.metallib and /dev/null differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/generate-spirv.bat b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/generate-spirv.bat deleted file mode 100644 index 62d1d996b..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/generate-spirv.bat +++ /dev/null @@ -1,2 +0,0 @@ -glslangvalidator -V imgui-vertex.glsl -o imgui-vertex.spv -S vert -glslangvalidator -V imgui-frag.glsl -o imgui-frag.spv -S frag diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.glsl b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.glsl deleted file mode 100644 index f94fa4859..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.glsl +++ /dev/null @@ -1,16 +0,0 @@ -#version 450 - -#extension GL_ARB_separate_shader_objects : enable -#extension GL_ARB_shading_language_420pack : enable - -layout(set = 1, binding = 0) uniform texture2D FontTexture; -layout(set = 0, binding = 1) uniform sampler FontSampler; - -layout (location = 0) in vec4 color; -layout (location = 1) in vec2 texCoord; -layout (location = 0) out vec4 outputColor; - -void main() -{ - outputColor = color * texture(sampler2D(FontTexture, FontSampler), texCoord); -} \ No newline at end of file diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.spv b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.spv deleted file mode 100644 index 5d3d96f32..000000000 Binary files a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-frag.spv and /dev/null differ diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.glsl b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.glsl deleted file mode 100644 index 6249a36dd..000000000 --- a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.glsl +++ /dev/null @@ -1,28 +0,0 @@ -#version 450 - -#extension GL_ARB_separate_shader_objects : enable -#extension GL_ARB_shading_language_420pack : enable - -layout (location = 0) in vec2 in_position; -layout (location = 1) in vec2 in_texCoord; -layout (location = 2) in vec4 in_color; - -layout (binding = 0) uniform ProjectionMatrixBuffer -{ - mat4 projection_matrix; -}; - -layout (location = 0) out vec4 color; -layout (location = 1) out vec2 texCoord; - -out gl_PerVertex -{ - vec4 gl_Position; -}; - -void main() -{ - gl_Position = projection_matrix * vec4(in_position, 0, 1); - color = in_color; - texCoord = in_texCoord; -} diff --git a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.spv b/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.spv deleted file mode 100644 index b40ec8ca5..000000000 Binary files a/imgui/StandaloneImGuiTestbed/Shaders/SPIR-V/imgui-vertex.spv and /dev/null differ diff --git a/imgui/StandaloneImGuiTestbed/StandaloneImGuiTestbed.csproj b/imgui/StandaloneImGuiTestbed/StandaloneImGuiTestbed.csproj deleted file mode 100644 index da31c9a8e..000000000 --- a/imgui/StandaloneImGuiTestbed/StandaloneImGuiTestbed.csproj +++ /dev/null @@ -1,40 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - <PropertyGroup> - <OutputType>Exe</OutputType> - <ImplicitUsings>enable</ImplicitUsings> - <Nullable>enable</Nullable> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> - </PropertyGroup> - - <ItemGroup> - <EmbeddedResource Include="Shaders/GLSL/imgui-vertex.glsl" LogicalName="imgui-vertex.glsl" /> - <EmbeddedResource Include="Shaders/GLSL/imgui-frag.glsl" LogicalName="imgui-frag.glsl" /> - <EmbeddedResource Include="Shaders/HLSL/imgui-vertex.hlsl.bytes" - LogicalName="imgui-vertex.hlsl.bytes" /> - <EmbeddedResource Include="Shaders/HLSL/imgui-frag.hlsl.bytes" - LogicalName="imgui-frag.hlsl.bytes" /> - <EmbeddedResource Include="Shaders/SPIR-V/imgui-vertex.spv" LogicalName="imgui-vertex.spv" /> - <EmbeddedResource Include="Shaders/SPIR-V/imgui-frag.spv" LogicalName="imgui-frag.spv" /> - <EmbeddedResource Include="Shaders/Metal/imgui-vertex.metallib" - LogicalName="imgui-vertex.metallib" /> - <EmbeddedResource Include="Shaders/Metal/imgui-frag.metallib" - LogicalName="imgui-frag.metallib" /> - </ItemGroup> - - <ItemGroup> - <PackageReference Include="Veldrid" Version="4.9.0" /> - <PackageReference Include="Veldrid.SDL2" Version="4.9.0" /> - <PackageReference Include="Veldrid.StartupUtilities" Version="4.9.0" /> - <PackageReference Remove="Microsoft.CodeAnalysis.BannedApiAnalyzers"/> - </ItemGroup> - - <ItemGroup> - <ProjectReference Include="..\Dalamud.Bindings.ImGui\Dalamud.Bindings.ImGui.csproj" /> - </ItemGroup> - - <Target Name="CopyImGuiDLLs" AfterTargets="PostBuildEvent"> - <Copy SourceFiles="$(SolutionDir)bin\$(Configuration)\cimgui.dll" DestinationFolder="$(OutDir)" /> - <Copy SourceFiles="$(SolutionDir)bin\$(Configuration)\cimgui.pdb" DestinationFolder="$(OutDir)" /> - </Target> -</Project> diff --git a/imgui/StandaloneImGuiTestbed/Testbed.cs b/imgui/StandaloneImGuiTestbed/Testbed.cs deleted file mode 100644 index 9025d4b52..000000000 --- a/imgui/StandaloneImGuiTestbed/Testbed.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Dalamud.Bindings.ImGui; - -namespace StandaloneImGuiTestbed; - -public class Testbed -{ - private bool showDemoWindow = false; - - public unsafe void Draw() - { - if (ImGui.Begin("Testbed")) - { - ImGui.Text("Hello!"); - - if (ImGui.Button("Open demo")) - { - this.showDemoWindow = true; - } - - if (this.showDemoWindow) - { - ImGui.ShowDemoWindow(ref this.showDemoWindow); - } - - if (ImGui.Button("Access context")) - { - var context = ImGui.GetCurrentContext(); - var currentWindow = context.CurrentWindow; - ref var dc = ref currentWindow.DC; // BREAKPOINT HERE, currentWindow will be invalid - dc.CurrLineTextBaseOffset = 0; - } - - ImGui.End(); - } - } -} diff --git a/lib/CoreCLR/boot.cpp b/lib/CoreCLR/boot.cpp index 50ddecb89..54276aad1 100644 --- a/lib/CoreCLR/boot.cpp +++ b/lib/CoreCLR/boot.cpp @@ -3,7 +3,6 @@ #include <cstdio> #include <filesystem> #include <Windows.h> -#include <Lmcons.h> #include <Shlobj.h> #include "CoreCLR.h" #include "..\..\Dalamud.Boot\logging.h" @@ -28,64 +27,6 @@ void ConsoleTeardown() std::optional<CoreCLR> g_clr; -static wchar_t* GetRuntimePath() -{ - int result; - std::wstring buffer; - wchar_t* runtime_path; - wchar_t* _appdata; - DWORD username_len = UNLEN + 1; - wchar_t username[UNLEN + 1]; - - buffer.resize(0); - result = GetEnvironmentVariableW(L"DALAMUD_RUNTIME", &buffer[0], 0); - - if (result) - { - buffer.resize(result); // The first pass returns the required length - result = GetEnvironmentVariableW(L"DALAMUD_RUNTIME", &buffer[0], result); - return _wcsdup(buffer.c_str()); - } - - // Detect Windows first - result = SHGetKnownFolderPath(FOLDERID_RoamingAppData, KF_FLAG_DEFAULT, nullptr, &_appdata); - - if (result != 0) - { - logging::E("Unable to get RoamingAppData path (err={})", result); - return NULL; - } - - std::filesystem::path fs_app_data(_appdata); - runtime_path = _wcsdup(fs_app_data.append("XIVLauncher").append("runtime").c_str()); - if (std::filesystem::exists(runtime_path)) - return runtime_path; - free(runtime_path); - - // Next XLCore on Linux - result = GetUserNameW(username, &username_len); - if (result != 0) - { - logging::E("Unable to get user name (err={})", result); - return NULL; - } - - std::filesystem::path homeDir = L"Z:\\home\\" + std::wstring(username); - runtime_path = _wcsdup(homeDir.append(".xlcore").append("runtime").c_str()); - if (std::filesystem::exists(runtime_path)) - return runtime_path; - free(runtime_path); - - // Finally XOM - homeDir = L"Z:\\Users\\" + std::wstring(username); - runtime_path = _wcsdup(homeDir.append("Library").append("Application Suppor").append("XIV on Mac").append("runtime").c_str()); - if (std::filesystem::exists(runtime_path)) - return runtime_path; - free(runtime_path); - - return NULL; -} - HRESULT InitializeClrAndGetEntryPoint( void* calling_module, bool enable_etw, @@ -100,7 +41,8 @@ HRESULT InitializeClrAndGetEntryPoint( int result; SetEnvironmentVariable(L"DOTNET_MULTILEVEL_LOOKUP", L"0"); - + SetEnvironmentVariable(L"COMPlus_legacyCorruptedStateExceptionsPolicy", L"1"); + SetEnvironmentVariable(L"DOTNET_legacyCorruptedStateExceptionsPolicy", L"1"); SetEnvironmentVariable(L"COMPLUS_ForceENC", L"1"); SetEnvironmentVariable(L"DOTNET_ForceENC", L"1"); @@ -114,12 +56,31 @@ HRESULT InitializeClrAndGetEntryPoint( SetEnvironmentVariable(L"COMPlus_ETWEnabled", enable_etw ? L"1" : L"0"); - wchar_t* dotnet_path = GetRuntimePath(); + wchar_t* dotnet_path; + wchar_t* _appdata; - if (!dotnet_path || !std::filesystem::exists(dotnet_path)) + std::wstring buffer; + buffer.resize(0); + result = GetEnvironmentVariableW(L"DALAMUD_RUNTIME", &buffer[0], 0); + + if (result) { - logging::E("Error: Unable to find .NET runtime path"); - return HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND); + buffer.resize(result); // The first pass returns the required length + result = GetEnvironmentVariableW(L"DALAMUD_RUNTIME", &buffer[0], result); + dotnet_path = _wcsdup(buffer.c_str()); + } + else + { + result = SHGetKnownFolderPath(FOLDERID_RoamingAppData, KF_FLAG_DEFAULT, nullptr, &_appdata); + + if (result != 0) + { + logging::E("Unable to get RoamingAppData path (err={})", result); + return HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND); + } + + std::filesystem::path fs_app_data(_appdata); + dotnet_path = _wcsdup(fs_app_data.append("XIVLauncher").append("runtime").c_str()); } // =========================================================================== // @@ -128,6 +89,12 @@ HRESULT InitializeClrAndGetEntryPoint( logging::I("with config_path: {}", runtimeconfig_path); logging::I("with module_path: {}", module_path); + if (!std::filesystem::exists(dotnet_path)) + { + logging::E("Error: Unable to find .NET runtime path"); + return HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND); + } + get_hostfxr_parameters init_parameters { sizeof(get_hostfxr_parameters), diff --git a/lib/Directory.Packages.props b/lib/Directory.Packages.props deleted file mode 100644 index bafcac533..000000000 --- a/lib/Directory.Packages.props +++ /dev/null @@ -1,5 +0,0 @@ -<Project> - <PropertyGroup> - <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> - </PropertyGroup> -</Project> diff --git a/lib/FFXIVClientStructs b/lib/FFXIVClientStructs index a97e9f89d..b3a25a18b 160000 --- a/lib/FFXIVClientStructs +++ b/lib/FFXIVClientStructs @@ -1 +1 @@ -Subproject commit a97e9f89d72d40eabd0f3b52266862dca3eba872 +Subproject commit b3a25a18bab61beda6050ef15aca721cfa14e1a0 diff --git a/lib/Hexa.NET.ImGui b/lib/Hexa.NET.ImGui deleted file mode 160000 index 53ae49bc5..000000000 --- a/lib/Hexa.NET.ImGui +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 53ae49bc558aa8ba9f4fad3515aa17fab99d7ffa diff --git a/lib/ImGuiScene b/lib/ImGuiScene new file mode 160000 index 000000000..b0d41471b --- /dev/null +++ b/lib/ImGuiScene @@ -0,0 +1 @@ +Subproject commit b0d41471b7ef3d69daaf6d862eb74e7e00a25651 diff --git a/lib/Lumina.Excel b/lib/Lumina.Excel deleted file mode 160000 index 31e50c3f2..000000000 --- a/lib/Lumina.Excel +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 31e50c3f267dd845891b328140106a0cc3b1f35e diff --git a/lib/cimgui b/lib/cimgui deleted file mode 160000 index bc3272967..000000000 --- a/lib/cimgui +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bc327296758d57d3bdc963cb6ce71dd5b0c7e54c diff --git a/lib/cimguizmo b/lib/cimguizmo deleted file mode 160000 index dbad4fdb4..000000000 --- a/lib/cimguizmo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit dbad4fdb4d465e1f48d20c4c54a20925095297b0 diff --git a/lib/cimplot b/lib/cimplot deleted file mode 160000 index 939f8f36d..000000000 --- a/lib/cimplot +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 939f8f36deebd895f6cda522ee4bb2b798920935 diff --git a/release.ps1 b/release.ps1 deleted file mode 100644 index 8863a1214..000000000 --- a/release.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -param( - [string]$VersionString -) - -if (-not $VersionString) { - Write-Error "Version string is required as the first argument." - exit 1 -} - -$csprojPath = "Dalamud/Dalamud.csproj" - -if (-not (Test-Path $csprojPath)) { - Write-Error "Cannot find Dalamud.csproj at the specified path." - exit 1 -} - -# Update the version in the csproj file -(Get-Content $csprojPath) -replace '<DalamudVersion>.*?</DalamudVersion>', "<DalamudVersion>$VersionString</DalamudVersion>" | Set-Content $csprojPath - -# Commit the change -git add $csprojPath -git commit -m "build: $VersionString" - -# Get the current branch -$currentBranch = git rev-parse --abbrev-ref HEAD - -# Create a tag -git tag -a -m "v$VersionString" $VersionString - -# Push atomically -git push origin $currentBranch $VersionString \ No newline at end of file diff --git a/targets/Dalamud.Plugin.Bootstrap.targets b/targets/Dalamud.Plugin.Bootstrap.targets new file mode 100644 index 000000000..db4bf6cd7 --- /dev/null +++ b/targets/Dalamud.Plugin.Bootstrap.targets @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <PropertyGroup> + <DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath> + <DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(HOME)/.xlcore/dalamud/Hooks/dev/</DalamudLibPath> + <DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(HOME)/Library/Application Support/XIV on Mac/dalamud/Hooks/dev/</DalamudLibPath> + <DalamudLibPath Condition="$(DALAMUD_HOME) != ''">$(DALAMUD_HOME)/</DalamudLibPath> + </PropertyGroup> + + <Import Project="$(DalamudLibPath)/targets/Dalamud.Plugin.targets"/> +</Project> diff --git a/targets/Dalamud.Plugin.targets b/targets/Dalamud.Plugin.targets new file mode 100644 index 000000000..da897c252 --- /dev/null +++ b/targets/Dalamud.Plugin.targets @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <PropertyGroup> + <TargetFramework>net8.0-windows</TargetFramework> + <Platforms>x64</Platforms> + <Nullable>enable</Nullable> + <LangVersion>latest</LangVersion> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <ProduceReferenceAssembly>false</ProduceReferenceAssembly> + <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> + <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> + <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> + <AssemblySearchPaths>$(AssemblySearchPaths);$(DalamudLibPath)</AssemblySearchPaths> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="DalamudPackager" Version="11.0.0" /> + <Reference Include="FFXIVClientStructs" Private="false" /> + <Reference Include="Newtonsoft.Json" Private="false" /> + <Reference Include="Dalamud" Private="false" /> + <Reference Include="ImGui.NET" Private="false" /> + <Reference Include="ImGuiScene" Private="false" /> + <Reference Include="Lumina" Private="false" /> + <Reference Include="Lumina.Excel" Private="false" /> + <Reference Include="Serilog" Private="false" /> + </ItemGroup> + + <Target Name="Message" BeforeTargets="BeforeBuild"> + <Message Text="Dalamud.Plugin: root at $(DalamudLibPath)" Importance="high" /> + </Target> + + <!-- Uncomment when we... wrote the docs + <Target Name="DeprecationNotice" BeforeTargets="BeforeBuild"> + <Warning Text="Dalamud.Plugin.targets is deprecated. Please upgrade to Dalamud.NET.Sdk - learn more here: https://dalamud.dev/versions/v10/sdk-migration" /> + </Target> + --> +</Project> diff --git a/tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj b/tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj index c0d31c3d6..5701e706f 100644 --- a/tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj +++ b/tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj @@ -1,6 +1,11 @@ <Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> <OutputType>Exe</OutputType> + <TargetFramework>net8.0-windows</TargetFramework> + <PlatformTarget>x64</PlatformTarget> + <Platforms>x64;AnyCPU</Platforms> + <LangVersion>12.0</LangVersion> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> @@ -10,6 +15,7 @@ </ItemGroup> <ItemGroup> - <PackageReference Include="CheapLoc" /> + <PackageReference Include="CheapLoc" Version="1.1.8" /> </ItemGroup> + </Project>